solid-ui 5.0.2-2 → 5.0.2-4
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/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
- package/dist/chunks/DialogProvider-CdesAsw-.js +208 -0
- package/dist/chunks/DialogProvider-CdesAsw-.js.map +1 -0
- package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js +378 -0
- package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js.map +1 -0
- package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CwmY_Dod.js} +419 -432
- package/dist/chunks/access-control-modal-CwmY_Dod.js.map +1 -0
- package/dist/chunks/{account-D6JK-n7u.js → account-CoHPKKDu.js} +6 -6
- package/dist/chunks/{account-D6JK-n7u.js.map → account-CoHPKKDu.js.map} +1 -1
- package/dist/chunks/{auth-B_abPDvH.js → auth-CocCqS1p.js} +23 -22
- package/dist/chunks/{auth-B_abPDvH.js.map → auth-CocCqS1p.js.map} +1 -1
- package/dist/chunks/{avatar-BR3COVSQ.js → avatar-sNdKdWVO.js} +2 -2
- package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-sNdKdWVO.js.map} +1 -1
- package/dist/chunks/context-BDrfQ9bN.js +21 -0
- package/dist/chunks/context-BDrfQ9bN.js.map +1 -0
- package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-BNF3_SA8.js} +2 -2
- package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
- package/dist/chunks/events-CXQHDCs2.js +8 -0
- package/dist/chunks/events-CXQHDCs2.js.map +1 -0
- package/dist/chunks/file-explorer-header-D0TebSYR.js +962 -0
- package/dist/chunks/file-explorer-header-D0TebSYR.js.map +1 -0
- package/dist/chunks/file-explorer-provider-DpjC7uds.js +295 -0
- package/dist/chunks/file-explorer-provider-DpjC7uds.js.map +1 -0
- package/dist/chunks/globe-CsCgZcy5.js +16 -0
- package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
- package/dist/chunks/{guard-bTeM7wd7.js → guard-BOicu9dt.js} +2 -2
- package/dist/chunks/{guard-bTeM7wd7.js.map → guard-BOicu9dt.js.map} +1 -1
- package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
- package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
- package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
- package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
- package/dist/chunks/{login-button-Div4ZT4J.js → login-button-clTw_9tX.js} +2 -2
- package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-clTw_9tX.js.map} +1 -1
- package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CP-Pz70O.js} +2 -2
- package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CP-Pz70O.js.map} +1 -1
- package/dist/chunks/provide-z9U64q4m.js +111 -0
- package/dist/chunks/provide-z9U64q4m.js.map +1 -0
- package/dist/chunks/{provider-Dcd1NPYx.js → provider-Cuv3Kp6G.js} +4 -4
- package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-Cuv3Kp6G.js.map} +1 -1
- package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-DVmTw3RG.js} +20 -20
- package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
- package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-CRYLK-27.js} +42 -42
- package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-CRYLK-27.js.map} +1 -1
- package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-CexdMWj6.js} +2 -2
- package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-CexdMWj6.js.map} +1 -1
- package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
- package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
- package/dist/chunks/{src-Dx7k_VIe.js → src-DQgHAH3d.js} +4579 -4542
- package/dist/chunks/src-DQgHAH3d.js.map +1 -0
- package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
- package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
- package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
- package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
- package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
- package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/all.cjs.js +1 -1
- package/dist/components/all.esm.js +3 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +310 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +318 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +356 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/index.cjs.js +2 -0
- package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/index.d.ts +4 -0
- package/dist/components/file-explorer-header/index.d.ts.map +1 -0
- package/dist/components/file-explorer-header/index.esm.js +6 -0
- package/dist/components/file-explorer-header/index.esm.js.map +1 -0
- package/dist/components/file-explorer-header/types.d.ts +11 -0
- package/dist/components/file-explorer-header/types.d.ts.map +1 -0
- package/dist/components/file-explorer-header.js +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +297 -0
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
- package/dist/components/file-explorer-provider/index.cjs.js +2 -0
- package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
- package/dist/components/file-explorer-provider/index.d.ts +4 -0
- package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
- package/dist/components/file-explorer-provider/index.esm.js +6 -0
- package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
- package/dist/components/file-explorer-provider.js +1 -0
- package/dist/components/guard.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +1 -0
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +344 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/index.cjs.js +1 -0
- package/dist/components/resource-actions-menu/index.d.ts +2 -0
- package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/index.esm.js +1 -0
- package/dist/components/resource-actions-menu.js +1 -0
- package/dist/components/signup-button.js +1 -1
- package/dist/components.js +15 -12
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +8 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -9
- package/dist/lib/context/noopContext.cjs.js +2 -0
- package/dist/lib/context/noopContext.cjs.js.map +1 -0
- package/dist/lib/context/noopContext.d.ts +2 -0
- package/dist/lib/context/noopContext.d.ts.map +1 -0
- package/dist/lib/context/noopContext.esm.js +18 -0
- package/dist/lib/context/noopContext.esm.js.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
- package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
- package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
- package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
- package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
- package/dist/lib/file-explorer/context.cjs.js +1 -1
- package/dist/lib/file-explorer/context.cjs.js.map +1 -1
- package/dist/lib/file-explorer/context.d.ts +12 -14
- package/dist/lib/file-explorer/context.d.ts.map +1 -1
- package/dist/lib/file-explorer/context.esm.js +4 -3
- package/dist/lib/file-explorer/context.esm.js.map +1 -1
- package/dist/lib/file-explorer/events.cjs.js +2 -0
- package/dist/lib/file-explorer/events.cjs.js.map +1 -0
- package/dist/lib/file-explorer/events.d.ts +16 -0
- package/dist/lib/file-explorer/events.d.ts.map +1 -0
- package/dist/lib/file-explorer/events.esm.js +8 -0
- package/dist/lib/file-explorer/events.esm.js.map +1 -0
- package/dist/lib/file-explorer/index.cjs.js +1 -0
- package/dist/lib/file-explorer/index.d.ts +5 -0
- package/dist/lib/file-explorer/index.d.ts.map +1 -0
- package/dist/lib/file-explorer/index.esm.js +5 -0
- package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
- package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts +22 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
- package/dist/lib/file-explorer/relevant-panes.esm.js +23 -0
- package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
- package/dist/loader.js +11 -9
- package/dist/solid-ui.js +211 -107
- package/dist/solid-ui.min.js +211 -107
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/utils/podUtils.cjs.js +2 -0
- package/dist/utils/podUtils.cjs.js.map +1 -0
- package/dist/utils/podUtils.d.ts +6 -0
- package/dist/utils/podUtils.d.ts.map +1 -0
- package/dist/utils/podUtils.esm.js +22 -0
- package/dist/utils/podUtils.esm.js.map +1 -0
- package/dist/utils/webIdUtils.cjs.js +1 -0
- package/dist/utils/webIdUtils.d.ts +7 -0
- package/dist/utils/webIdUtils.d.ts.map +1 -0
- package/dist/utils/webIdUtils.esm.js +3 -0
- package/package.json +3 -3
- package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
- package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
- package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
- package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
- package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { customElement as e } from "../../lib/components/decorators.esm.js";
|
|
2
|
+
import t from "../../lib/components/web-component/WebComponent.esm.js";
|
|
3
|
+
import "../../lib/components/index.esm.js";
|
|
4
|
+
import { DEFAULT_FILE_EXPLORER_CONTEXT as n, fileExplorerContext as r } from "../../lib/file-explorer/context.esm.js";
|
|
5
|
+
import { FILE_EXPLORER_BACK_EVENT as i } from "../../lib/file-explorer/events.esm.js";
|
|
6
|
+
import "../../_virtual/~icons/lucide/share-2.esm.js";
|
|
7
|
+
import "../../_virtual/~icons/lucide/pencil.esm.js";
|
|
8
|
+
import "../../_virtual/~icons/lucide/ellipsis-vertical.esm.js";
|
|
9
|
+
import a from "./FileExplorerHeader.styles.esm.js";
|
|
10
|
+
import "./FileExplorerHeaderSummary.esm.js";
|
|
11
|
+
import "./FileExplorerHeaderControls.esm.js";
|
|
12
|
+
import { sym as o } from "rdflib";
|
|
13
|
+
import { solidLogicSingleton as s } from "solid-logic";
|
|
14
|
+
import { consume as c } from "@lit/context";
|
|
15
|
+
import { html as l } from "lit";
|
|
16
|
+
import { property as u, state as d } from "lit/decorators.js";
|
|
17
|
+
// src/components/file-explorer-header/FileExplorerHeader.ts
|
|
18
|
+
var f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A;
|
|
19
|
+
function j(e, t, n) {
|
|
20
|
+
M(e, t), t.set(e, n);
|
|
21
|
+
}
|
|
22
|
+
function M(e, t) {
|
|
23
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
24
|
+
}
|
|
25
|
+
function N(e, t, n) {
|
|
26
|
+
return e.set(F(e, t), n), n;
|
|
27
|
+
}
|
|
28
|
+
function P(e, t) {
|
|
29
|
+
return e.get(F(e, t));
|
|
30
|
+
}
|
|
31
|
+
function F(e, t, n) {
|
|
32
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
33
|
+
throw TypeError("Private element is not present on this object");
|
|
34
|
+
}
|
|
35
|
+
function I(e, t, n) {
|
|
36
|
+
return (t = R(t)) in e ? Object.defineProperty(e, t, {
|
|
37
|
+
value: n,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : e[t] = n, e;
|
|
42
|
+
}
|
|
43
|
+
function L(e, t, n, r, i, a) {
|
|
44
|
+
function o(e, t, n) {
|
|
45
|
+
return function(r, i) {
|
|
46
|
+
return n && n(r), e[t].call(r, i);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function s(e, t) {
|
|
50
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function c(e, t, n, r) {
|
|
54
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
55
|
+
return e;
|
|
56
|
+
}
|
|
57
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
58
|
+
function h(e) {
|
|
59
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
60
|
+
}
|
|
61
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
62
|
+
if (!y) {
|
|
63
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
64
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
65
|
+
d ? (f || p ? b = {
|
|
66
|
+
get: B(function() {
|
|
67
|
+
return v(this);
|
|
68
|
+
}, r, "get"),
|
|
69
|
+
set: function(e) {
|
|
70
|
+
t[4](this, e);
|
|
71
|
+
}
|
|
72
|
+
} : b[S] = v, f || B(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
73
|
+
}
|
|
74
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
75
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
76
|
+
kind: [
|
|
77
|
+
"field",
|
|
78
|
+
"accessor",
|
|
79
|
+
"method",
|
|
80
|
+
"getter",
|
|
81
|
+
"setter",
|
|
82
|
+
"class"
|
|
83
|
+
][i],
|
|
84
|
+
name: r,
|
|
85
|
+
metadata: a,
|
|
86
|
+
addInitializer: function(e, t) {
|
|
87
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
88
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
89
|
+
}.bind(null, D)
|
|
90
|
+
};
|
|
91
|
+
try {
|
|
92
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
93
|
+
else {
|
|
94
|
+
var k, A;
|
|
95
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
96
|
+
return h(e), b.value;
|
|
97
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
98
|
+
return e[r];
|
|
99
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
100
|
+
e[r] = t;
|
|
101
|
+
}));
|
|
102
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
103
|
+
return r in e;
|
|
104
|
+
} };
|
|
105
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
106
|
+
get: b.get,
|
|
107
|
+
set: b.set
|
|
108
|
+
} : b[S], O), p) {
|
|
109
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
110
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
111
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
112
|
+
}
|
|
113
|
+
} finally {
|
|
114
|
+
D.v = !0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return (f || p) && l.push(function(e, t) {
|
|
118
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
119
|
+
return t;
|
|
120
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
121
|
+
}
|
|
122
|
+
function u(e, t) {
|
|
123
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
124
|
+
configurable: !0,
|
|
125
|
+
enumerable: !0,
|
|
126
|
+
value: t
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
130
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
131
|
+
var i, a, o = [], c = function(t) {
|
|
132
|
+
return V(t) === e;
|
|
133
|
+
}, u = /* @__PURE__ */ new Map();
|
|
134
|
+
function d(e) {
|
|
135
|
+
e && o.push(s.bind(null, e));
|
|
136
|
+
}
|
|
137
|
+
for (var f = 0; f < t.length; f++) {
|
|
138
|
+
var p = t[f];
|
|
139
|
+
if (Array.isArray(p)) {
|
|
140
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
141
|
+
if (!y && !g) {
|
|
142
|
+
var x = u.get(b);
|
|
143
|
+
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
144
|
+
u.set(b, !(m > 2) || m);
|
|
145
|
+
}
|
|
146
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : R(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return d(i), d(a), o;
|
|
150
|
+
}(e, t, i, f);
|
|
151
|
+
return n.length || u(e, f), {
|
|
152
|
+
e: p,
|
|
153
|
+
get c() {
|
|
154
|
+
var t = [];
|
|
155
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function R(e) {
|
|
160
|
+
var t = z(e, "string");
|
|
161
|
+
return typeof t == "symbol" ? t : t + "";
|
|
162
|
+
}
|
|
163
|
+
function z(e, t) {
|
|
164
|
+
if (typeof e != "object" || !e) return e;
|
|
165
|
+
var n;
|
|
166
|
+
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
167
|
+
var r = n.call(e, t || "default");
|
|
168
|
+
if (typeof r != "object") return r;
|
|
169
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
170
|
+
}
|
|
171
|
+
return (t === "string" ? String : Number)(e);
|
|
172
|
+
}
|
|
173
|
+
function B(e, t, n) {
|
|
174
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
175
|
+
try {
|
|
176
|
+
Object.defineProperty(e, "name", {
|
|
177
|
+
configurable: !0,
|
|
178
|
+
value: n ? n + " " + t : t
|
|
179
|
+
});
|
|
180
|
+
} catch {}
|
|
181
|
+
return e;
|
|
182
|
+
}
|
|
183
|
+
function V(e) {
|
|
184
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
185
|
+
return e;
|
|
186
|
+
}
|
|
187
|
+
function H(e) {
|
|
188
|
+
return e;
|
|
189
|
+
}
|
|
190
|
+
b = [e("solid-ui-file-explorer-header")];
|
|
191
|
+
var U;
|
|
192
|
+
new (k = (m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), A = (x = c({
|
|
193
|
+
context: r,
|
|
194
|
+
subscribe: !0
|
|
195
|
+
}), C = u({ attribute: !1 }), T = u({ attribute: !1 }), D = d(), "_loadedMetadataForUri"), p = class extends t {
|
|
196
|
+
constructor(...e) {
|
|
197
|
+
super(...e), I(this, A, void v(this)), I(this, "_metadataGeneration", 0), j(this, m, S(this, n)), j(this, h, w(this, [])), j(this, g, E(this, void 0)), j(this, _, O(this, {
|
|
198
|
+
modified: void 0,
|
|
199
|
+
isPublic: !1,
|
|
200
|
+
canEdit: !1,
|
|
201
|
+
canManageAccess: !1,
|
|
202
|
+
aclUri: void 0
|
|
203
|
+
})), I(this, "handleBack", () => {
|
|
204
|
+
this.dispatchEvent(new CustomEvent(i, {
|
|
205
|
+
bubbles: !0,
|
|
206
|
+
composed: !0,
|
|
207
|
+
detail: { subjectUri: this.fileExplorerContext.subjectUri }
|
|
208
|
+
}));
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
get fileExplorerContext() {
|
|
212
|
+
return P(m, this);
|
|
213
|
+
}
|
|
214
|
+
set fileExplorerContext(e) {
|
|
215
|
+
N(m, this, e);
|
|
216
|
+
}
|
|
217
|
+
get menuItems() {
|
|
218
|
+
return P(h, this);
|
|
219
|
+
}
|
|
220
|
+
set menuItems(e) {
|
|
221
|
+
N(h, this, e);
|
|
222
|
+
}
|
|
223
|
+
get paneIcon() {
|
|
224
|
+
return P(g, this);
|
|
225
|
+
}
|
|
226
|
+
set paneIcon(e) {
|
|
227
|
+
N(g, this, e);
|
|
228
|
+
}
|
|
229
|
+
get responseMetadata() {
|
|
230
|
+
return P(_, this);
|
|
231
|
+
}
|
|
232
|
+
set responseMetadata(e) {
|
|
233
|
+
N(_, this, e);
|
|
234
|
+
}
|
|
235
|
+
getDefaultResponseMetadata() {
|
|
236
|
+
return {
|
|
237
|
+
modified: void 0,
|
|
238
|
+
isPublic: !1,
|
|
239
|
+
canEdit: !1,
|
|
240
|
+
canManageAccess: !1,
|
|
241
|
+
aclUri: void 0
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
willUpdate() {
|
|
245
|
+
let e = this.fileExplorerContext?.subjectUri;
|
|
246
|
+
if (this.fileExplorerContext?.store && e && this._loadedMetadataForUri !== e) {
|
|
247
|
+
this._loadedMetadataForUri = e;
|
|
248
|
+
let t = ++this._metadataGeneration;
|
|
249
|
+
this.responseMetadata = this.getDefaultResponseMetadata(), this.loadResponseMetadata(e, t);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
async loadResponseMetadata(e, t) {
|
|
253
|
+
try {
|
|
254
|
+
let n = await s.resource.fetchMetadata(o(e));
|
|
255
|
+
t === this._metadataGeneration && this.fileExplorerContext.subjectUri === e && (this.responseMetadata = {
|
|
256
|
+
modified: n.modified,
|
|
257
|
+
isPublic: n.access.isPublic,
|
|
258
|
+
canEdit: n.access.canEdit,
|
|
259
|
+
canManageAccess: n.access.canManageAccess,
|
|
260
|
+
aclUri: n.aclUri
|
|
261
|
+
});
|
|
262
|
+
} catch (n) {
|
|
263
|
+
t === this._metadataGeneration && this.fileExplorerContext.subjectUri === e && (this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", n));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
render() {
|
|
267
|
+
return l`
|
|
268
|
+
<header>
|
|
269
|
+
<solid-ui-file-explorer-header-summary
|
|
270
|
+
.paneIcon=${this.paneIcon}
|
|
271
|
+
.onBackClick=${this.handleBack}
|
|
272
|
+
.responseMetadata=${this.responseMetadata}
|
|
273
|
+
></solid-ui-file-explorer-header-summary>
|
|
274
|
+
<solid-ui-file-explorer-header-controls
|
|
275
|
+
.menuItems=${this.menuItems}
|
|
276
|
+
.canEdit=${this.responseMetadata.canEdit}
|
|
277
|
+
.canManageAccess=${this.responseMetadata.canManageAccess}
|
|
278
|
+
></solid-ui-file-explorer-header-controls>
|
|
279
|
+
</header>
|
|
280
|
+
`;
|
|
281
|
+
}
|
|
282
|
+
}, {e: [S, w, E, O, v], c: [U, y]} = L(p, [
|
|
283
|
+
[
|
|
284
|
+
x,
|
|
285
|
+
1,
|
|
286
|
+
"fileExplorerContext"
|
|
287
|
+
],
|
|
288
|
+
[
|
|
289
|
+
C,
|
|
290
|
+
1,
|
|
291
|
+
"menuItems"
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
T,
|
|
295
|
+
1,
|
|
296
|
+
"paneIcon"
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
D,
|
|
300
|
+
1,
|
|
301
|
+
"responseMetadata"
|
|
302
|
+
]
|
|
303
|
+
], b, 0, void 0, t), p), f = class extends H {
|
|
304
|
+
constructor() {
|
|
305
|
+
super(U), I(this, "styles", a), y();
|
|
306
|
+
}
|
|
307
|
+
}, I(f, k, void 0), f)();
|
|
308
|
+
export { U as default };
|
|
309
|
+
|
|
310
|
+
//# sourceMappingURL=FileExplorerHeader.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.esm.js","names":["sym","solidLogicSingleton","customElement","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_BACK_EVENT","property","state","consume","html","styles","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_paneIcon","undefined","_init_responseMetadata","modified","isPublic","canEdit","canManageAccess","aclUri","dispatchEvent","CustomEvent","bubbles","composed","detail","subjectUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","willUpdate","store","_loadedMetadataForUri","generation","_metadataGeneration","loadResponseMetadata","metadata","resource","fetchMetadata","access","error","console","warn","render","handleBack","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","WebComponent","FileExplorerHeader_styles_default","_Class","_FileExplorerHeader3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_FileExplorerHeader2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FileExplorerHeader","consume","fileExplorerContext","property","state","args","DEFAULT_FILE_EXPLORER_CONTEXT","FILE_EXPLORER_BACK_EVENT","subjectUri","generation","metadata","solidLogicSingleton","sym","error"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { solidLogicSingleton } from 'solid-logic'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_BACK_EVENT } from '@/lib/file-explorer/events'\nimport { property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { type FileExplorerResourceMetadata } from './types'\n\n@customElement('solid-ui-file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n private _metadataGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n\n private handleBack = () => {\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_BACK_EVENT, {\n bubbles: true,\n composed: true,\n detail: {\n subjectUri: this.fileExplorerContext.subjectUri\n }\n }))\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n }\n\n protected willUpdate () {\n const subjectUri = this.fileExplorerContext?.subjectUri\n if (this.fileExplorerContext?.store && subjectUri && this._loadedMetadataForUri !== subjectUri) {\n this._loadedMetadataForUri = subjectUri\n const generation = ++this._metadataGeneration\n this.responseMetadata = this.getDefaultResponseMetadata()\n this.loadResponseMetadata(subjectUri, generation)\n }\n }\n\n private async loadResponseMetadata (subjectUri: string, generation: number) {\n try {\n const metadata = await solidLogicSingleton.resource.fetchMetadata(sym(subjectUri))\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.access.isPublic,\n canEdit: metadata.access.canEdit,\n canManageAccess: metadata.access.canManageAccess,\n aclUri: metadata.aclUri\n }\n }\n } catch (error) {\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n }\n\n render () {\n return html`\n <header>\n <solid-ui-file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.handleBack}\n .responseMetadata=${this.responseMetadata}\n ></solid-ui-file-explorer-header-summary>\n <solid-ui-file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n .canManageAccess=${this.responseMetadata.canManageAccess}\n ></solid-ui-file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaqCY,IAAA,CAIpCV,EAAc,+BAA+B,CAAC;AAAA,IAAAW;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,KAAAC,IAO5CZ,EAAQ;CAAEa,SAASjB;CAAqBkB,WAAW;AAAK,CAAC,GAACC,IAG1DjB,EAAS,EAAEkB,WAAW,GAAM,CAAC,GAACC,IAG9BnB,EAAS,EAAEkB,WAAW,GAAM,CAAC,GAACE,IAG9BnB,EAAM,GAAC,0BAAAoB,IAhBV,cACgDzB,EAAa;CAAA2B,YAAA,GAAAC,GAAA;EAsB1DC,AAtB0D,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAZ,GAAA,KAAAa,EAAA,IAAA,CAAA,GAAAD,EAAA,MAAA,uBAI7B,CAAC,GAAAE,EAAA,MAAAnB,GAAAoB,EAAA,MAGA/B,CAA6B,CAAA,GAAA8B,EAAA,MAAAjB,GAAAmB,EAAA,MAGmB,CAAA,CAAE,CAAA,GAAAF,EAAA,MAAAhB,GAAAmB,EAAA,MAGnDC,KAAAA,CAAS,CAAA,GAAAJ,EAAA,MAAAf,GAAAoB,EAAA,MAG6F;GAClIC,UAAUF,KAAAA;GACVG,UAAU;GACVC,SAAS;GACTC,iBAAiB;GAC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C,cAAclE,EAAIkD,CAAU,CAAC;GACjF,AAAIW,MAAe,KAAKC,uBAAuB,KAAKzD,oBAAoB6C,eAAeA,MACrF,KAAKM,mBAAmB;IACtBhB,UAAUwB,EAASxB;IACnBC,UAAUuB,EAASG,OAAO1B;IAC1BC,SAASsB,EAASG,OAAOzB;IACzBC,iBAAiBqB,EAASG,OAAOxB;IACjCC,QAAQoB,EAASpB;GACnB;EAEJ,SAASwB,GAAO;GACd,AAAIP,MAAe,KAAKC,uBAAuB,KAAKzD,oBAAoB6C,eAAeA,MACrF,KAAKM,mBAAmB,KAAKC,2BAA2B,GACxDY,QAAQC,KAAK,oCAAoCF,CAAK;EAE1D;CACF;CAEAG,SAAU;EACR,OAAO7D,CAAI;;;sBAGO,KAAK6C,SAAQ;yBACV,KAAKiB,WAAU;8BACV,KAAKhB,iBAAgB;;;uBAG5B,KAAKF,UAAS;qBAChB,KAAKE,iBAAiBd,QAAO;6BACrB,KAAKc,iBAAiBb,gBAAe;;;;CAIhE;AACF,GAAC,CAAA8B,GAAA,CAAAtC,GAAAC,GAAAC,GAAAE,GAAAN,IAAAyC,GAAA,CAAA7D,GAAA8D,MAAAC,EAAAhD,GAAA;CAAA;EAAAP;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAf,GAAA,GAAA,KAAA,GA1F+CT,CAAY,GAAAyB,IAAAiD,IAAA,cAAAC,EAAA;CAAAhD,cAAA;EAAA,MAAAjB,CAAA,GAAAmB,EAAA,MAAA,UAC1CrB,CAAM,GAAAgE,EAAA;CAAA;AAAA,GAAA3C,EAAA6C,GAAA/D,GAAA,KAAA,CAAA,GAAA+D,GAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("lit").css`:host header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;exports.default=e;
|
|
2
|
+
//# sourceMappingURL=FileExplorerHeader.styles.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.cjs.js","names":["FileExplorerHeader_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
// src/components/file-explorer-header/FileExplorerHeader.styles.css
|
|
3
|
+
var t = e`:host header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;
|
|
4
|
+
export { t as default };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=FileExplorerHeader.styles.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.esm.js","names":["FileExplorerHeader_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js");const n=require("../../lib/file-explorer/context.cjs.js"),r=require("../../lib/file-explorer/events.cjs.js");require("../../_virtual/~icons/lucide/pencil.cjs.js");const i=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/user-round-cog.cjs.js");const a=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let o=require("@lit/context"),s=require("lit"),c=require("lit/decorators.js");var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;function j(e,t,n){M(e,t),t.set(e,n)}function M(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function N(e,t,n){return e.set(F(e,t),n),n}function P(e,t){return e.get(F(e,t))}function F(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function I(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:B(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||B(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return V(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:R(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function R(e){var t=z(e,`string`);return typeof t==`symbol`?t:t+``}function z(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function B(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function V(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function H(e){return e}v=[e.customElement(`solid-ui-file-explorer-header-controls`)];var U;new(k=(d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,A=(y=(0,o.consume)({context:n.fileExplorerContext,subscribe:!0}),x=(0,c.property)({attribute:!1}),C=(0,c.property)({type:Boolean}),T=(0,c.property)({type:Boolean}),D=(0,c.state)(),`mobileMediaQuery`),u=class extends t.default{constructor(...e){super(...e),I(this,A,void g(this)),I(this,`mobileQuery`,`(max-width: 600px)`),I(this,`handleMobileMediaChange`,e=>{this.isMobile=e.matches}),j(this,d,b(this,n.DEFAULT_FILE_EXPLORER_CONTEXT)),j(this,f,S(this,[])),j(this,p,w(this,!1)),j(this,m,E(this,!1)),j(this,h,O(this,typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(max-width: 600px)`).matches)),I(this,`handleManageAccess`,()=>{let e=this.fileExplorerContext.subjectUri;e&&this.dispatchEvent(new CustomEvent(r.FILE_EXPLORER_MANAGE_ACCESS_EVENT,{bubbles:!0,composed:!0,detail:{subjectUri:e}}))})}get fileExplorerContext(){return P(d,this)}set fileExplorerContext(e){N(d,this,e)}get menuItems(){return P(f,this)}set menuItems(e){N(f,this,e)}get canEdit(){return P(p,this)}set canEdit(e){N(p,this,e)}get canManageAccess(){return P(m,this)}set canManageAccess(e){N(m,this,e)}get isMobile(){return P(h,this)}set isMobile(e){N(h,this,e)}connectedCallback(){super.connectedCallback(),typeof window<`u`&&typeof window.matchMedia==`function`&&(this.mobileMediaQuery=window.matchMedia(this.mobileQuery),this.isMobile=this.mobileMediaQuery.matches,this.mobileMediaQuery.addEventListener(`change`,this.handleMobileMediaChange))}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener(`change`,this.handleMobileMediaChange),this.mobileMediaQuery=void 0,super.disconnectedCallback()}getEditTooltip(){return this.canEdit?`Edit`:`No Access`}renderDirtyIndicator(){return this.fileExplorerContext.isDirty?s.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:s.nothing}render(){let e=i.isContainerSubject(this.fileExplorerContext.store,this.fileExplorerContext.subjectUri),t=this.fileExplorerContext.canEdit;return s.html`
|
|
2
|
+
<div>
|
|
3
|
+
${this.renderDirtyIndicator()}
|
|
4
|
+
${!e&&!this.isMobile&&this.canManageAccess?s.html`
|
|
5
|
+
<solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.handleManageAccess}>
|
|
6
|
+
<icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
|
|
7
|
+
<span class="sr-only">Manage access</span>
|
|
8
|
+
</solid-ui-button>
|
|
9
|
+
${t?s.html`
|
|
10
|
+
<solid-ui-button
|
|
11
|
+
class="file-explorer-header-action-button"
|
|
12
|
+
variant="ghost"
|
|
13
|
+
title=${this.getEditTooltip()}
|
|
14
|
+
?disabled=${!this.canEdit}
|
|
15
|
+
@click=${this.fileExplorerContext.beginEditing}
|
|
16
|
+
>
|
|
17
|
+
<icon-lucide-pencil slot="icon"></icon-lucide-pencil>
|
|
18
|
+
<span class="sr-only">Edit</span>
|
|
19
|
+
</solid-ui-button>
|
|
20
|
+
`:s.nothing}
|
|
21
|
+
`:s.nothing}
|
|
22
|
+
<solid-ui-resource-actions-menu
|
|
23
|
+
.store=${this.fileExplorerContext.store}
|
|
24
|
+
.handleAccessClick=${this.handleManageAccess}
|
|
25
|
+
.handleEditingClick=${this.fileExplorerContext.beginEditing}
|
|
26
|
+
.paneSupportsEditing=${this.fileExplorerContext.canEdit}
|
|
27
|
+
.canEdit=${this.canEdit}
|
|
28
|
+
.canManageAccess=${this.canManageAccess}
|
|
29
|
+
.subjectUri=${this.fileExplorerContext.subjectUri}
|
|
30
|
+
.menuItems=${this.menuItems}
|
|
31
|
+
.isMobile=${this.isMobile}
|
|
32
|
+
></solid-ui-resource-actions-menu>
|
|
33
|
+
</div>
|
|
34
|
+
`}},{e:[b,S,w,E,O,g],c:[U,_]}=L(u,[[y,1,`fileExplorerContext`],[x,1,`menuItems`],[C,1,`canEdit`],[T,1,`canManageAccess`],[D,1,`isMobile`]],v,0,void 0,t.default),u),l=class extends H{constructor(){super(U),I(this,`styles`,a.default),_()}},I(l,k,void 0),l),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return U}});
|
|
35
|
+
//# sourceMappingURL=FileExplorerHeaderControls.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["customElement","WebComponent","property","state","consume","html","nothing","styles","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_MANAGE_ACCESS_EVENT","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_E","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_canManageAccessDecs","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_canEdit","_init_canManageAccess","_init_isMobile","window","matchMedia","subjectUri","dispatchEvent","CustomEvent","bubbles","composed","detail","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","canManageAccess","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","undefined","getEditTooltip","renderDirtyIndicator","isDirty","render","isContainerResource","store","supportsEditing","handleManageAccess","beginEditing","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","FILE_EXPLORER_MANAGE_ACCESS_EVENT","nothing","isContainerSubject","styles","require_decorators","require_WebComponent","require_context","require_events","require_podUtils","require_FileExplorerHeaderControls_styles","_lit_context","lit","lit_decorators_js","_Class","_FileExplorerHeaderControls","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_FileExplorerHeaderCo2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderCo","args","event","subjectUri","isContainerResource","supportsEditing"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '@/components/resource-actions-menu/ResourceActionsMenu'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_MANAGE_ACCESS_EVENT } from '@/lib/file-explorer/events'\nimport { isContainerSubject } from '@/utils/podUtils'\n\n@customElement('solid-ui-file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private handleManageAccess = () => {\n const subjectUri = this.fileExplorerContext.subjectUri\n if (!subjectUri) return\n\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_MANAGE_ACCESS_EVENT, {\n bubbles: true,\n composed: true,\n detail: { subjectUri }\n }))\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.canEdit\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile && this.canManageAccess\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.handleManageAccess}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n <span class=\"sr-only\">Manage access</span>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.beginEditing}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n <span class=\"sr-only\">Edit</span>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <solid-ui-resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.handleManageAccess}\n .handleEditingClick=${this.fileExplorerContext.beginEditing}\n .paneSupportsEditing=${this.fileExplorerContext.canEdit}\n .canEdit=${this.canEdit}\n .canManageAccess=${this.canManageAccess}\n .subjectUri=${this.fileExplorerContext.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></solid-ui-resource-actions-menu>\n </div>\n `\n }\n}\n"],"mappings":"A,iyJAWqDY,EAAA,CAEpDZ,EAAAA,cAAc,wCAAwC,CAAC,EAAA,IAAAa,EAAA,IAAAC,GAAAC,E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AA,EAAA,EAAAoE,G"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WebComponent } from '../../lib/components';
|
|
2
|
+
export default class FileExplorerHeaderControls extends WebComponent {
|
|
3
|
+
static styles: import('lit').CSSResult;
|
|
4
|
+
private mobileMediaQuery;
|
|
5
|
+
private readonly mobileQuery;
|
|
6
|
+
private readonly handleMobileMediaChange;
|
|
7
|
+
accessor fileExplorerContext: import('../../lib/file-explorer/context').FileExplorerContext;
|
|
8
|
+
accessor menuItems: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
action: (event: Event) => void;
|
|
11
|
+
icon?: HTMLElement;
|
|
12
|
+
}>;
|
|
13
|
+
accessor canEdit: boolean;
|
|
14
|
+
accessor canManageAccess: boolean;
|
|
15
|
+
accessor isMobile: boolean;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
private getEditTooltip;
|
|
19
|
+
private handleManageAccess;
|
|
20
|
+
private renderDirtyIndicator;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=FileExplorerHeaderControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAI9D,OAAO,qBAAqB,CAAA;AAC5B,OAAO,8BAA8B,CAAA;AACrC,OAAO,sBAAsB,CAAA;AAE7B,OAAO,wDAAwD,CAAA;AAM/D,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,YAAY;IAClE,MAAM,CAAC,MAAM,0BAAS;IAEtB,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuB;IACnD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAEvC;IAGD,QAAQ,CAAC,mBAAmB,4DAAgC;IAG5D,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAAK;IAGrG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAQ;IAGjC,QAAQ,CAAC,eAAe,UAAQ;IAGhC,QAAQ,CAAC,QAAQ,UAER;IAET,iBAAiB;IAYjB,oBAAoB;IAgBpB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,kBAAkB,CASzB;IAED,OAAO,CAAC,oBAAoB;IAM5B,MAAM;CA2CP"}
|