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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "./style-
|
|
3
|
-
import { T as d, p as f } from "./widgets-
|
|
1
|
+
import { E as e, _ as t, d as n, g as r, h as i, m as a, n as o, p as s, t as c, y as l } from "./solidLogicSingleton.esm-BXyHD7mn.js";
|
|
2
|
+
import { u } from "./style-CXaw5EYi.js";
|
|
3
|
+
import { T as d, p as f } from "./widgets-BBEQu0CS.js";
|
|
4
4
|
import { a as p, c as m, g as h, i as g, o as _, p as v, r as y, u as b } from "./components-C8c2Ucm5.js";
|
|
5
5
|
import "./x-D1JUUSOS.js";
|
|
6
6
|
import "./button-D6qO2idW.js";
|
|
@@ -9,6 +9,7 @@ import "./dialog-content-DjwRH1ci.js";
|
|
|
9
9
|
import "./dialog-footer-GQWi8lfB.js";
|
|
10
10
|
import { r as x } from "./combobox-fSTp9qoT.js";
|
|
11
11
|
import "./combobox-option-DOtGuKel.js";
|
|
12
|
+
import "./globe-CsCgZcy5.js";
|
|
12
13
|
import "./error-state-BD4_Wrkz.js";
|
|
13
14
|
// ~icons/lucide/circle-x
|
|
14
15
|
var S = class extends HTMLElement {
|
|
@@ -17,54 +18,40 @@ var S = class extends HTMLElement {
|
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
customElements.get("icon-lucide-circle-x") || customElements.define("icon-lucide-circle-x", S);
|
|
20
|
-
// ~icons/lucide/folder
|
|
21
|
-
var C = class extends HTMLElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/></svg>";
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
customElements.get("icon-lucide-folder") || customElements.define("icon-lucide-folder", C);
|
|
27
21
|
// ~icons/lucide/folder-open
|
|
28
|
-
var
|
|
22
|
+
var C = class extends HTMLElement {
|
|
29
23
|
constructor() {
|
|
30
24
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\"/></svg>";
|
|
31
25
|
}
|
|
32
26
|
};
|
|
33
|
-
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open",
|
|
34
|
-
// ~icons/lucide/globe
|
|
35
|
-
var T = class extends HTMLElement {
|
|
36
|
-
constructor() {
|
|
37
|
-
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"/></g></svg>";
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
customElements.get("icon-lucide-globe") || customElements.define("icon-lucide-globe", T);
|
|
27
|
+
customElements.get("icon-lucide-folder-open") || customElements.define("icon-lucide-folder-open", C);
|
|
41
28
|
// src/components/access-control-modal/AccessControlSharedAccess.styles.css
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
|
|
29
|
+
var w = v`:host{& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);font-weight:600}& .access-grants-header,& .access-grants-list{align-self:stretch;padding:0 10px}& .access-grants-header{justify-content:space-between;align-items:center;gap:15px;display:flex;& .access-grants-search-input{--solid-ui-input-border-color:transparent;width:12ch;min-width:12ch;color:var(--solid-ui-color-zinc-500,#71717b);font-size:var(--solid-ui-font-size-sm,.875rem);flex:none;font-weight:500}}& .access-grants-list{align-items:flex-start;gap:20px;display:flex;& ul{box-sizing:border-box;border:1px solid var(--solid-ui-color-gray-200,#e5e7eb);border-radius:10px;flex-direction:column;flex:1 0 0;align-items:flex-start;gap:15px;height:195px;min-height:0;padding:15px;display:flex;overflow:hidden auto}& li{flex:none;align-items:center;gap:10px;width:100%;display:flex;& .access-grants-image{aspect-ratio:1;width:30px;height:30px;color:var(--solid-ui-color-white,#fff);text-align:center;font-size:var(--solid-ui-font-size-xs,.75rem);border-radius:999px;flex:0 0 30px;justify-content:center;align-items:center;font-weight:500;display:flex;overflow:hidden;& img{object-fit:cover;border-radius:999px;width:100%;height:100%;display:flex}& span{justify-content:center;align-items:center;width:100%;height:100%;line-height:1;display:flex}}& .access-grants-image--agentGroup{background:var(--solid-ui-color-blue-900,#083575)}& .access-grants-image--agent,& .access-grants-image--agentClass{background:var(--solid-ui-color-lavender-300,#e6dcff)}& .access-grants-image--origin{background:var(--solid-ui-color-green-700,#15803d)}& .access-grants-image--unknown{background:var(--solid-ui-color-gray-300,#d1d5db)}& h3{min-width:0;color:var(--solid-ui-color-gray-800,#1e2939);font-size:var(--solid-ui-font-size-xs,.75rem);flex:auto;font-weight:600}& span{text-align:right;flex:none;margin-left:auto}& .access-grants-role{font-size:var(--solid-ui-font-size-xs,.75rem);flex:none;margin-left:auto}& .access-grants-role--owner{font-size:var(--solid-ui-font-size-xs,.75rem)}& .access-grants-role--editable{max-width:100%}}}& .access-role-select--compact{--solid-ui-input-border-color:transparent;flex:0 0 110px;width:110px;min-width:110px;max-width:100%;margin-top:0}& .access-grants-list li .access-role-select--compact{flex:0 0 110px;width:110px;min-width:110px}}`, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce;
|
|
30
|
+
function le(e, t, n) {
|
|
31
|
+
ue(e, t), t.set(e, n);
|
|
45
32
|
}
|
|
46
|
-
function
|
|
33
|
+
function ue(e, t) {
|
|
47
34
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
48
35
|
}
|
|
49
|
-
function
|
|
50
|
-
return e.set(
|
|
36
|
+
function de(e, t, n) {
|
|
37
|
+
return e.set(pe(e, t), n), n;
|
|
51
38
|
}
|
|
52
|
-
function
|
|
53
|
-
return e.get(
|
|
39
|
+
function fe(e, t) {
|
|
40
|
+
return e.get(pe(e, t));
|
|
54
41
|
}
|
|
55
|
-
function
|
|
42
|
+
function pe(e, t, n) {
|
|
56
43
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
57
44
|
throw TypeError("Private element is not present on this object");
|
|
58
45
|
}
|
|
59
|
-
function
|
|
60
|
-
return (t =
|
|
46
|
+
function me(e, t, n) {
|
|
47
|
+
return (t = ge(t)) in e ? Object.defineProperty(e, t, {
|
|
61
48
|
value: n,
|
|
62
49
|
enumerable: !0,
|
|
63
50
|
configurable: !0,
|
|
64
51
|
writable: !0
|
|
65
52
|
}) : e[t] = n, e;
|
|
66
53
|
}
|
|
67
|
-
function
|
|
54
|
+
function he(e, t, n, r, i, a) {
|
|
68
55
|
function o(e, t, n) {
|
|
69
56
|
return function(r, i) {
|
|
70
57
|
return n && n(r), e[t].call(r, i);
|
|
@@ -87,13 +74,13 @@ function _e(e, t, n, r, i, a) {
|
|
|
87
74
|
n || Array.isArray(_) || (_ = [_]);
|
|
88
75
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
89
76
|
d ? (f || p ? b = {
|
|
90
|
-
get:
|
|
77
|
+
get: ve(function() {
|
|
91
78
|
return v(this);
|
|
92
79
|
}, r, "get"),
|
|
93
80
|
set: function(e) {
|
|
94
81
|
t[4](this, e);
|
|
95
82
|
}
|
|
96
|
-
} : b[S] = v, f ||
|
|
83
|
+
} : b[S] = v, f || ve(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
97
84
|
}
|
|
98
85
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
99
86
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -153,7 +140,7 @@ function _e(e, t, n, r, i, a) {
|
|
|
153
140
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
154
141
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
155
142
|
var i, a, o = [], c = function(t) {
|
|
156
|
-
return
|
|
143
|
+
return ye(t) === e;
|
|
157
144
|
}, u = /* @__PURE__ */ new Map();
|
|
158
145
|
function d(e) {
|
|
159
146
|
e && o.push(s.bind(null, e));
|
|
@@ -167,7 +154,7 @@ function _e(e, t, n, r, i, a) {
|
|
|
167
154
|
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);
|
|
168
155
|
u.set(b, !(m > 2) || m);
|
|
169
156
|
}
|
|
170
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
157
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : ge(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
171
158
|
}
|
|
172
159
|
}
|
|
173
160
|
return d(i), d(a), o;
|
|
@@ -180,11 +167,11 @@ function _e(e, t, n, r, i, a) {
|
|
|
180
167
|
}
|
|
181
168
|
};
|
|
182
169
|
}
|
|
183
|
-
function
|
|
184
|
-
var t =
|
|
170
|
+
function ge(e) {
|
|
171
|
+
var t = _e(e, "string");
|
|
185
172
|
return typeof t == "symbol" ? t : t + "";
|
|
186
173
|
}
|
|
187
|
-
function
|
|
174
|
+
function _e(e, t) {
|
|
188
175
|
if (typeof e != "object" || !e) return e;
|
|
189
176
|
var n;
|
|
190
177
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -194,7 +181,7 @@ function ye(e, t) {
|
|
|
194
181
|
}
|
|
195
182
|
return (t === "string" ? String : Number)(e);
|
|
196
183
|
}
|
|
197
|
-
function
|
|
184
|
+
function ve(e, t, n) {
|
|
198
185
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
199
186
|
try {
|
|
200
187
|
Object.defineProperty(e, "name", {
|
|
@@ -204,36 +191,36 @@ function be(e, t, n) {
|
|
|
204
191
|
} catch {}
|
|
205
192
|
return e;
|
|
206
193
|
}
|
|
207
|
-
function
|
|
194
|
+
function ye(e) {
|
|
208
195
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
209
196
|
return e;
|
|
210
197
|
}
|
|
211
|
-
function
|
|
198
|
+
function be(e) {
|
|
212
199
|
return e;
|
|
213
200
|
}
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
new (
|
|
201
|
+
ee = [h("solid-ui-access-control-shared-access")];
|
|
202
|
+
var xe;
|
|
203
|
+
new (se = (D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), ce = (te = g({ attribute: !1 }), re = g({ type: Boolean }), ae = y(), "accessGrantViewModels"), E = class extends _ {
|
|
217
204
|
constructor(...e) {
|
|
218
|
-
super(...e),
|
|
205
|
+
super(...e), le(this, D, (A(this), ne(this, []))), le(this, O, ie(this, !1)), le(this, k, oe(this, ""));
|
|
219
206
|
}
|
|
220
|
-
get [
|
|
221
|
-
return
|
|
207
|
+
get [ce]() {
|
|
208
|
+
return fe(D, this);
|
|
222
209
|
}
|
|
223
210
|
set accessGrantViewModels(e) {
|
|
224
|
-
|
|
211
|
+
de(D, this, e);
|
|
225
212
|
}
|
|
226
213
|
get disabled() {
|
|
227
|
-
return
|
|
214
|
+
return fe(O, this);
|
|
228
215
|
}
|
|
229
216
|
set disabled(e) {
|
|
230
|
-
|
|
217
|
+
de(O, this, e);
|
|
231
218
|
}
|
|
232
219
|
get searchValue() {
|
|
233
|
-
return
|
|
220
|
+
return fe(k, this);
|
|
234
221
|
}
|
|
235
222
|
set searchValue(e) {
|
|
236
|
-
|
|
223
|
+
de(k, this, e);
|
|
237
224
|
}
|
|
238
225
|
onSearchInput(e) {
|
|
239
226
|
let t = e.currentTarget;
|
|
@@ -244,14 +231,14 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
244
231
|
typeof t.label == "string" && (this.searchValue = t.label);
|
|
245
232
|
}
|
|
246
233
|
onAccessGrantRoleChange(e, t) {
|
|
247
|
-
let n = t.detail.option.value, r = typeof n == "string" ?
|
|
234
|
+
let n = t.detail.option.value, r = typeof n == "string" ? s.find((e) => e === n) : void 0;
|
|
248
235
|
if (!r) return;
|
|
249
|
-
let
|
|
236
|
+
let i = {
|
|
250
237
|
id: e,
|
|
251
238
|
role: r
|
|
252
239
|
};
|
|
253
240
|
this.dispatchEvent(new CustomEvent("access-grant-role-changed", {
|
|
254
|
-
detail:
|
|
241
|
+
detail: i,
|
|
255
242
|
bubbles: !0,
|
|
256
243
|
composed: !0
|
|
257
244
|
}));
|
|
@@ -277,30 +264,30 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
277
264
|
</div>
|
|
278
265
|
`;
|
|
279
266
|
}
|
|
280
|
-
getAuthorizationBadge(
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
let
|
|
267
|
+
getAuthorizationBadge(t, n) {
|
|
268
|
+
let r = t.agent[0];
|
|
269
|
+
if (r) {
|
|
270
|
+
let t = f(e(r));
|
|
284
271
|
return {
|
|
285
272
|
kind: "agent",
|
|
286
|
-
image:
|
|
287
|
-
text:
|
|
273
|
+
image: t,
|
|
274
|
+
text: t ? "" : this.getInitials(n, 2)
|
|
288
275
|
};
|
|
289
276
|
}
|
|
290
|
-
if (
|
|
277
|
+
if (t.agentGroup[0]) return {
|
|
291
278
|
kind: "agentGroup",
|
|
292
|
-
text: this.getInitials(
|
|
279
|
+
text: this.getInitials(n, 1)
|
|
293
280
|
};
|
|
294
|
-
let
|
|
295
|
-
if (
|
|
296
|
-
let
|
|
281
|
+
let i = t.agentClass[0];
|
|
282
|
+
if (i) {
|
|
283
|
+
let t = f(e(i));
|
|
297
284
|
return {
|
|
298
285
|
kind: "agentClass",
|
|
299
|
-
image:
|
|
300
|
-
text:
|
|
286
|
+
image: t,
|
|
287
|
+
text: t ? "" : this.getInitials(n, 2)
|
|
301
288
|
};
|
|
302
289
|
}
|
|
303
|
-
return
|
|
290
|
+
return t.origin[0] ? {
|
|
304
291
|
kind: "origin",
|
|
305
292
|
text: "O",
|
|
306
293
|
image: ""
|
|
@@ -325,7 +312,7 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
325
312
|
`;
|
|
326
313
|
}
|
|
327
314
|
renderGrantRoleOptions() {
|
|
328
|
-
return
|
|
315
|
+
return s.map((e) => b`
|
|
329
316
|
<solid-ui-combobox-option value=${e}>${e === "No Access" ? "Remove" : e}</solid-ui-combobox-option>
|
|
330
317
|
`);
|
|
331
318
|
}
|
|
@@ -359,61 +346,61 @@ new (le = (k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j =
|
|
|
359
346
|
</section>
|
|
360
347
|
`;
|
|
361
348
|
}
|
|
362
|
-
}, {e: [ie, oe,
|
|
349
|
+
}, {e: [ne, ie, oe, A], c: [xe, j]} = he(E, [
|
|
363
350
|
[
|
|
364
|
-
|
|
351
|
+
te,
|
|
365
352
|
1,
|
|
366
353
|
"accessGrantViewModels"
|
|
367
354
|
],
|
|
368
355
|
[
|
|
369
|
-
|
|
356
|
+
re,
|
|
370
357
|
1,
|
|
371
358
|
"disabled"
|
|
372
359
|
],
|
|
373
360
|
[
|
|
374
|
-
|
|
361
|
+
ae,
|
|
375
362
|
1,
|
|
376
363
|
"searchValue"
|
|
377
364
|
]
|
|
378
|
-
],
|
|
365
|
+
], ee, 0, void 0, _), E), T = class extends be {
|
|
379
366
|
constructor() {
|
|
380
|
-
super(
|
|
367
|
+
super(xe), me(this, "styles", w), j();
|
|
381
368
|
}
|
|
382
|
-
},
|
|
369
|
+
}, me(T, se, void 0), T)();
|
|
383
370
|
// ~icons/lucide/link
|
|
384
|
-
var
|
|
371
|
+
var Se = class extends HTMLElement {
|
|
385
372
|
constructor() {
|
|
386
373
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/></g></svg>";
|
|
387
374
|
}
|
|
388
375
|
};
|
|
389
|
-
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link",
|
|
376
|
+
customElements.get("icon-lucide-link") || customElements.define("icon-lucide-link", Se);
|
|
390
377
|
// src/components/access-control-modal/AccessControlGeneralAccess.styles.css
|
|
391
|
-
var
|
|
392
|
-
function
|
|
393
|
-
|
|
378
|
+
var Ce = v`:host{& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);font-weight:600}& .access-grants-general{flex-direction:column;align-self:stretch;align-items:flex-start;gap:10px;padding:0 10px;display:flex;& solid-ui-combobox,& solid-ui-input{--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0)}& .access-grants-general-header{flex-direction:row;justify-content:space-between;align-self:stretch;align-items:center;gap:15px;display:flex;& .access-grants-copy-link-button-label{font-size:var(--solid-ui-font-size-xs,.75rem);font-weight:500}& .access-grants-copy-link-button icon-lucide-link{aspect-ratio:1;width:12px;height:12px}}& .access-grants-general-share{align-self:stretch;align-items:center;gap:10px;display:flex;& .access-grants-general-share-content{flex-direction:row;flex:1 0 0;align-items:flex-start;gap:10px;display:flex;& .access-grants-general-share-icon{aspect-ratio:1;background:var(--solid-ui-color-violet-50,#f5f3ff);border-radius:50px;justify-content:center;align-items:center;width:30px;height:30px;padding:5px;display:flex}& .access-grants-general-share-icon-inner{aspect-ratio:1;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;padding:1.25px;display:flex;& icon-lucide-globe{aspect-ratio:1;flex-shrink:0;width:17.5px;height:17.5px}}& .access-grants-general-share-text{flex:auto;min-width:0;& .access-grants-general-share-text-title{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:600}& .access-grants-general-share-text-description{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-sm,.875rem)}}}}}& .access-role-select--general{width:120px;min-width:120px;font-size:var(--solid-ui-font-size-xs,.75rem);flex:0 0 120px;font-weight:500}& .access-role-select--compact{--solid-ui-input-border-color:transparent;max-width:100%;margin-top:0;display:block}}`, we, Te, Ee, De, Oe, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He;
|
|
379
|
+
function Ue(e, t, n) {
|
|
380
|
+
We(e, t), t.set(e, n);
|
|
394
381
|
}
|
|
395
|
-
function
|
|
382
|
+
function We(e, t) {
|
|
396
383
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
397
384
|
}
|
|
398
385
|
function M(e, t, n) {
|
|
399
|
-
return e.set(
|
|
386
|
+
return e.set(Ge(e, t), n), n;
|
|
400
387
|
}
|
|
401
388
|
function N(e, t) {
|
|
402
|
-
return e.get(
|
|
389
|
+
return e.get(Ge(e, t));
|
|
403
390
|
}
|
|
404
|
-
function
|
|
391
|
+
function Ge(e, t, n) {
|
|
405
392
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
406
393
|
throw TypeError("Private element is not present on this object");
|
|
407
394
|
}
|
|
408
|
-
function
|
|
409
|
-
return (t =
|
|
395
|
+
function Ke(e, t, n) {
|
|
396
|
+
return (t = Je(t)) in e ? Object.defineProperty(e, t, {
|
|
410
397
|
value: n,
|
|
411
398
|
enumerable: !0,
|
|
412
399
|
configurable: !0,
|
|
413
400
|
writable: !0
|
|
414
401
|
}) : e[t] = n, e;
|
|
415
402
|
}
|
|
416
|
-
function
|
|
403
|
+
function qe(e, t, n, r, i, a) {
|
|
417
404
|
function o(e, t, n) {
|
|
418
405
|
return function(r, i) {
|
|
419
406
|
return n && n(r), e[t].call(r, i);
|
|
@@ -436,13 +423,13 @@ function Ye(e, t, n, r, i, a) {
|
|
|
436
423
|
n || Array.isArray(_) || (_ = [_]);
|
|
437
424
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
438
425
|
d ? (f || p ? b = {
|
|
439
|
-
get:
|
|
426
|
+
get: Xe(function() {
|
|
440
427
|
return v(this);
|
|
441
428
|
}, r, "get"),
|
|
442
429
|
set: function(e) {
|
|
443
430
|
t[4](this, e);
|
|
444
431
|
}
|
|
445
|
-
} : b[S] = v, f ||
|
|
432
|
+
} : b[S] = v, f || Xe(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
446
433
|
}
|
|
447
434
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
448
435
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -502,7 +489,7 @@ function Ye(e, t, n, r, i, a) {
|
|
|
502
489
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
503
490
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
504
491
|
var i, a, o = [], c = function(t) {
|
|
505
|
-
return
|
|
492
|
+
return Ze(t) === e;
|
|
506
493
|
}, u = /* @__PURE__ */ new Map();
|
|
507
494
|
function d(e) {
|
|
508
495
|
e && o.push(s.bind(null, e));
|
|
@@ -516,7 +503,7 @@ function Ye(e, t, n, r, i, a) {
|
|
|
516
503
|
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);
|
|
517
504
|
u.set(b, !(m > 2) || m);
|
|
518
505
|
}
|
|
519
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
506
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Je(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
520
507
|
}
|
|
521
508
|
}
|
|
522
509
|
return d(i), d(a), o;
|
|
@@ -529,11 +516,11 @@ function Ye(e, t, n, r, i, a) {
|
|
|
529
516
|
}
|
|
530
517
|
};
|
|
531
518
|
}
|
|
532
|
-
function
|
|
533
|
-
var t =
|
|
519
|
+
function Je(e) {
|
|
520
|
+
var t = Ye(e, "string");
|
|
534
521
|
return typeof t == "symbol" ? t : t + "";
|
|
535
522
|
}
|
|
536
|
-
function
|
|
523
|
+
function Ye(e, t) {
|
|
537
524
|
if (typeof e != "object" || !e) return e;
|
|
538
525
|
var n;
|
|
539
526
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -543,7 +530,7 @@ function Ze(e, t) {
|
|
|
543
530
|
}
|
|
544
531
|
return (t === "string" ? String : Number)(e);
|
|
545
532
|
}
|
|
546
|
-
function
|
|
533
|
+
function Xe(e, t, n) {
|
|
547
534
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
548
535
|
try {
|
|
549
536
|
Object.defineProperty(e, "name", {
|
|
@@ -553,48 +540,48 @@ function Qe(e, t, n) {
|
|
|
553
540
|
} catch {}
|
|
554
541
|
return e;
|
|
555
542
|
}
|
|
556
|
-
function
|
|
543
|
+
function Ze(e) {
|
|
557
544
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
558
545
|
return e;
|
|
559
546
|
}
|
|
560
|
-
function
|
|
547
|
+
function Qe(e) {
|
|
561
548
|
return e;
|
|
562
549
|
}
|
|
563
|
-
|
|
564
|
-
var
|
|
565
|
-
new (
|
|
550
|
+
Me = [h("solid-ui-access-control-general-access")];
|
|
551
|
+
var $e;
|
|
552
|
+
new (Ve = (Ee = /*#__PURE__*/ new WeakMap(), De = /*#__PURE__*/ new WeakMap(), Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), He = (Ne = g({ attribute: !1 }), Fe = g({ attribute: !1 }), Le = g({ attribute: !1 }), ze = g({ type: Boolean }), "subjectUri"), Te = class extends _ {
|
|
566
553
|
constructor(...e) {
|
|
567
|
-
super(...e),
|
|
554
|
+
super(...e), Ue(this, Ee, (Ae(this), Pe(this, void 0))), Ue(this, De, Ie(this, "No Access")), Ue(this, Oe, Re(this, "No Access")), Ue(this, ke, Be(this, !1));
|
|
568
555
|
}
|
|
569
|
-
get [
|
|
570
|
-
return N(
|
|
556
|
+
get [He]() {
|
|
557
|
+
return N(Ee, this);
|
|
571
558
|
}
|
|
572
559
|
set subjectUri(e) {
|
|
573
|
-
M(
|
|
560
|
+
M(Ee, this, e);
|
|
574
561
|
}
|
|
575
562
|
get authenticatedAccessRoleValue() {
|
|
576
|
-
return N(
|
|
563
|
+
return N(De, this);
|
|
577
564
|
}
|
|
578
565
|
set authenticatedAccessRoleValue(e) {
|
|
579
|
-
M(
|
|
566
|
+
M(De, this, e);
|
|
580
567
|
}
|
|
581
568
|
get publicAccessRoleValue() {
|
|
582
|
-
return N(
|
|
569
|
+
return N(Oe, this);
|
|
583
570
|
}
|
|
584
571
|
set publicAccessRoleValue(e) {
|
|
585
|
-
M(
|
|
572
|
+
M(Oe, this, e);
|
|
586
573
|
}
|
|
587
574
|
get disabled() {
|
|
588
|
-
return N(
|
|
575
|
+
return N(ke, this);
|
|
589
576
|
}
|
|
590
577
|
set disabled(e) {
|
|
591
|
-
M(
|
|
578
|
+
M(ke, this, e);
|
|
592
579
|
}
|
|
593
580
|
onAuthenticatedRoleChange(e) {
|
|
594
|
-
this.dispatchRoleChange("authenticated-role-changed", e,
|
|
581
|
+
this.dispatchRoleChange("authenticated-role-changed", e, s);
|
|
595
582
|
}
|
|
596
583
|
onPublicRoleChange(e) {
|
|
597
|
-
this.dispatchRoleChange("public-role-changed", e,
|
|
584
|
+
this.dispatchRoleChange("public-role-changed", e, i);
|
|
598
585
|
}
|
|
599
586
|
dispatchRoleChange(e, t, n) {
|
|
600
587
|
let r = t.detail.option.value;
|
|
@@ -614,12 +601,12 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
614
601
|
}
|
|
615
602
|
}
|
|
616
603
|
renderAuthenticatedRoleOptions() {
|
|
617
|
-
return
|
|
604
|
+
return s.map((e) => b`
|
|
618
605
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
619
606
|
`);
|
|
620
607
|
}
|
|
621
608
|
renderPublicRoleOptions() {
|
|
622
|
-
return
|
|
609
|
+
return i.map((e) => b`
|
|
623
610
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
624
611
|
`);
|
|
625
612
|
}
|
|
@@ -697,59 +684,59 @@ new (Ue = (Oe = /*#__PURE__*/ new WeakMap(), ke = /*#__PURE__*/ new WeakMap(), A
|
|
|
697
684
|
</section>
|
|
698
685
|
`;
|
|
699
686
|
}
|
|
700
|
-
}, {e: [Ie, Re, Be,
|
|
687
|
+
}, {e: [Pe, Ie, Re, Be, Ae], c: [$e, je]} = qe(Te, [
|
|
701
688
|
[
|
|
702
|
-
|
|
689
|
+
Ne,
|
|
703
690
|
1,
|
|
704
691
|
"subjectUri"
|
|
705
692
|
],
|
|
706
693
|
[
|
|
707
|
-
|
|
694
|
+
Fe,
|
|
708
695
|
1,
|
|
709
696
|
"authenticatedAccessRoleValue"
|
|
710
697
|
],
|
|
711
698
|
[
|
|
712
|
-
|
|
699
|
+
Le,
|
|
713
700
|
1,
|
|
714
701
|
"publicAccessRoleValue"
|
|
715
702
|
],
|
|
716
703
|
[
|
|
717
|
-
|
|
704
|
+
ze,
|
|
718
705
|
1,
|
|
719
706
|
"disabled"
|
|
720
707
|
]
|
|
721
|
-
],
|
|
708
|
+
], Me, 0, void 0, _), Te), we = class extends Qe {
|
|
722
709
|
constructor() {
|
|
723
|
-
super(
|
|
710
|
+
super($e), Ke(this, "styles", Ce), je();
|
|
724
711
|
}
|
|
725
|
-
},
|
|
712
|
+
}, Ke(we, Ve, void 0), we)();
|
|
726
713
|
// src/components/access-control-modal/AccessControlErrors.styles.css
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
|
|
714
|
+
var et = v`:host{contain:inline-size;width:100%;display:block;& solid-ui-error-state{contain:inline-size;width:100%;max-width:100%}& .access-control-save-errors{box-sizing:border-box;gap:8px;width:100%;margin:0;padding-left:0;list-style:none;display:grid;& li{min-width:0;color:var(--solid-ui-color-red-600,#be2e48);font-size:var(--solid-ui-font-size-sm,.875rem);grid-template-columns:minmax(0,18rem) minmax(0,1fr);align-items:baseline;gap:6px;line-height:1.4;display:grid}& .access-control-save-error-label{overflow-wrap:anywhere;font-weight:500}& .access-control-save-error-detail{overflow-wrap:anywhere;min-width:0}}@media (width<=600px){& .access-control-save-errors li{grid-template-columns:minmax(0,40%) minmax(0,1fr)}}}`, tt, nt, P, F, rt, it, at, ot, st, ct, lt, ut, dt;
|
|
715
|
+
function ft(e, t, n) {
|
|
716
|
+
pt(e, t), t.set(e, n);
|
|
730
717
|
}
|
|
731
|
-
function
|
|
718
|
+
function pt(e, t) {
|
|
732
719
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
733
720
|
}
|
|
734
|
-
function
|
|
735
|
-
return e.set(
|
|
721
|
+
function mt(e, t, n) {
|
|
722
|
+
return e.set(gt(e, t), n), n;
|
|
736
723
|
}
|
|
737
|
-
function
|
|
738
|
-
return e.get(
|
|
724
|
+
function ht(e, t) {
|
|
725
|
+
return e.get(gt(e, t));
|
|
739
726
|
}
|
|
740
|
-
function
|
|
727
|
+
function gt(e, t, n) {
|
|
741
728
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
742
729
|
throw TypeError("Private element is not present on this object");
|
|
743
730
|
}
|
|
744
|
-
function
|
|
745
|
-
return (t =
|
|
731
|
+
function _t(e, t, n) {
|
|
732
|
+
return (t = yt(t)) in e ? Object.defineProperty(e, t, {
|
|
746
733
|
value: n,
|
|
747
734
|
enumerable: !0,
|
|
748
735
|
configurable: !0,
|
|
749
736
|
writable: !0
|
|
750
737
|
}) : e[t] = n, e;
|
|
751
738
|
}
|
|
752
|
-
function
|
|
739
|
+
function vt(e, t, n, r, i, a) {
|
|
753
740
|
function o(e, t, n) {
|
|
754
741
|
return function(r, i) {
|
|
755
742
|
return n && n(r), e[t].call(r, i);
|
|
@@ -772,13 +759,13 @@ function bt(e, t, n, r, i, a) {
|
|
|
772
759
|
n || Array.isArray(_) || (_ = [_]);
|
|
773
760
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
774
761
|
d ? (f || p ? b = {
|
|
775
|
-
get:
|
|
762
|
+
get: xt(function() {
|
|
776
763
|
return v(this);
|
|
777
764
|
}, r, "get"),
|
|
778
765
|
set: function(e) {
|
|
779
766
|
t[4](this, e);
|
|
780
767
|
}
|
|
781
|
-
} : b[S] = v, f ||
|
|
768
|
+
} : b[S] = v, f || xt(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
782
769
|
}
|
|
783
770
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
784
771
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -838,7 +825,7 @@ function bt(e, t, n, r, i, a) {
|
|
|
838
825
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
839
826
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
840
827
|
var i, a, o = [], c = function(t) {
|
|
841
|
-
return
|
|
828
|
+
return St(t) === e;
|
|
842
829
|
}, u = /* @__PURE__ */ new Map();
|
|
843
830
|
function d(e) {
|
|
844
831
|
e && o.push(s.bind(null, e));
|
|
@@ -852,7 +839,7 @@ function bt(e, t, n, r, i, a) {
|
|
|
852
839
|
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);
|
|
853
840
|
u.set(b, !(m > 2) || m);
|
|
854
841
|
}
|
|
855
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
842
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : yt(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
856
843
|
}
|
|
857
844
|
}
|
|
858
845
|
return d(i), d(a), o;
|
|
@@ -865,11 +852,11 @@ function bt(e, t, n, r, i, a) {
|
|
|
865
852
|
}
|
|
866
853
|
};
|
|
867
854
|
}
|
|
868
|
-
function
|
|
869
|
-
var t =
|
|
855
|
+
function yt(e) {
|
|
856
|
+
var t = bt(e, "string");
|
|
870
857
|
return typeof t == "symbol" ? t : t + "";
|
|
871
858
|
}
|
|
872
|
-
function
|
|
859
|
+
function bt(e, t) {
|
|
873
860
|
if (typeof e != "object" || !e) return e;
|
|
874
861
|
var n;
|
|
875
862
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -879,7 +866,7 @@ function St(e, t) {
|
|
|
879
866
|
}
|
|
880
867
|
return (t === "string" ? String : Number)(e);
|
|
881
868
|
}
|
|
882
|
-
function
|
|
869
|
+
function xt(e, t, n) {
|
|
883
870
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
884
871
|
try {
|
|
885
872
|
Object.defineProperty(e, "name", {
|
|
@@ -889,30 +876,30 @@ function Ct(e, t, n) {
|
|
|
889
876
|
} catch {}
|
|
890
877
|
return e;
|
|
891
878
|
}
|
|
892
|
-
function
|
|
879
|
+
function St(e) {
|
|
893
880
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
894
881
|
return e;
|
|
895
882
|
}
|
|
896
|
-
function
|
|
883
|
+
function Ct(e) {
|
|
897
884
|
return e;
|
|
898
885
|
}
|
|
899
|
-
|
|
900
|
-
var
|
|
901
|
-
new (
|
|
886
|
+
at = [h("solid-ui-access-control-errors")];
|
|
887
|
+
var wt;
|
|
888
|
+
new (ut = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), dt = (ot = g({ attribute: !1 }), ct = g({ attribute: !1 }), "errors"), nt = class extends _ {
|
|
902
889
|
constructor(...e) {
|
|
903
|
-
super(...e),
|
|
890
|
+
super(...e), ft(this, P, (rt(this), st(this, []))), ft(this, F, lt(this, !0));
|
|
904
891
|
}
|
|
905
|
-
get [
|
|
906
|
-
return
|
|
892
|
+
get [dt]() {
|
|
893
|
+
return ht(P, this);
|
|
907
894
|
}
|
|
908
895
|
set errors(e) {
|
|
909
|
-
|
|
896
|
+
mt(P, this, e);
|
|
910
897
|
}
|
|
911
898
|
get successfulChangesRefreshed() {
|
|
912
|
-
return
|
|
899
|
+
return ht(F, this);
|
|
913
900
|
}
|
|
914
901
|
set successfulChangesRefreshed(e) {
|
|
915
|
-
|
|
902
|
+
mt(F, this, e);
|
|
916
903
|
}
|
|
917
904
|
onClose(e) {
|
|
918
905
|
e.stopPropagation(), this.dispatchEvent(new CustomEvent("close", {
|
|
@@ -944,29 +931,29 @@ new (ft = (P = /*#__PURE__*/ new WeakMap(), F = /*#__PURE__*/ new WeakMap(), pt
|
|
|
944
931
|
</solid-ui-error-state>
|
|
945
932
|
` : b``;
|
|
946
933
|
}
|
|
947
|
-
}, {e: [
|
|
948
|
-
|
|
934
|
+
}, {e: [st, lt, rt], c: [wt, it]} = vt(nt, [[
|
|
935
|
+
ot,
|
|
949
936
|
1,
|
|
950
937
|
"errors"
|
|
951
938
|
], [
|
|
952
|
-
|
|
939
|
+
ct,
|
|
953
940
|
1,
|
|
954
941
|
"successfulChangesRefreshed"
|
|
955
|
-
]],
|
|
942
|
+
]], at, 0, void 0, _), nt), tt = class extends Ct {
|
|
956
943
|
constructor() {
|
|
957
|
-
super(
|
|
944
|
+
super(wt), _t(this, "styles", et), it();
|
|
958
945
|
}
|
|
959
|
-
},
|
|
946
|
+
}, _t(tt, ut, void 0), tt)();
|
|
960
947
|
// src/components/access-control-modal/AccessControlModal.styles.css
|
|
961
|
-
var
|
|
948
|
+
var Tt = v`:host{& .access-control-mixed-policy-warning{border:1px solid var(--solid-ui-color-red-300,#fca5a5);background:var(--solid-ui-color-red-50,#fef2f2);color:var(--solid-ui-color-red-800,#991b1b);font-size:var(--solid-ui-font-size-sm,.875rem);border-radius:5px;gap:4px;margin:0 0 16px;padding:12px 14px;line-height:1.45;display:grid;& strong{font-weight:600}}& .access-control-same-access-toggle{color:var(--solid-ui-color-gray-900,#101828);text-align:left;line-height:1.4;font:inherit;cursor:pointer;background:0 0;border:0;align-items:flex-start;gap:8px;margin-top:12px;padding:0;display:flex}& .access-control-switch-track{background:var(--solid-ui-color-slate-300,#cbd5e1);border-radius:999px;flex:none;width:34px;height:20px;margin-top:1px;padding:2px;transition:background .15s;display:inline-flex}& .access-control-same-access-toggle[aria-checked=true] .access-control-switch-track{background:var(--solid-ui-color-purple-600,#9333ea)}& .access-control-switch-thumb{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;box-shadow:0 1px 2px #00000040}& .access-control-same-access-toggle[aria-checked=true] .access-control-switch-thumb{transform:translate(14px)}& .access-control-same-access-toggle>span:last-child{overflow-wrap:anywhere;min-width:0;max-width:100%}& .access-control-sharing-state,& .access-control-contents-prompt{box-sizing:border-box;min-width:0;max-width:100%;font-size:var(--solid-ui-font-size-sm,.875rem);margin-bottom:16px;padding:10px;& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);margin:0 0 10px;font-weight:600}& .access-control-advanced-sharing{box-sizing:border-box;overflow-wrap:anywhere;width:100%;min-width:0;max-width:100%;margin-top:10px;padding:10px 48px 10px 15px;position:relative;& h2{color:var(--solid-ui-color-gray-900,#101828);font-size:var(--solid-ui-font-size-md,1rem);margin:0 0 4px;font-weight:600}& p{overflow-wrap:anywhere;min-width:0;max-width:100%;color:var(--solid-ui-color-gray-600,#4a5565);font-size:var(--solid-ui-font-size-xs,.75rem);margin:0;line-height:1.5}& .access-control-advanced-sharing-description-line{max-width:100%;display:block}}& .access-control-advanced-sharing-options,& .access-control-advanced-sharing-actions{flex-wrap:wrap;gap:8px;min-width:0;margin-top:10px;display:flex;& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);white-space:normal;min-width:0;max-width:100%}}& .access-control-advanced-sharing-actions{justify-content:flex-end;margin-top:0;position:absolute;top:10px;right:15px;& solid-ui-button{color:var(--solid-ui-color-gray-600,#4a5565)}}& p{overflow-wrap:anywhere;min-width:0;max-width:100%;color:var(--solid-ui-color-gray-600,#4a5565);margin:0;line-height:1.5}}& .access-control-sharing-state-panel,& .access-control-contents-prompt{box-sizing:border-box;border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);border-radius:5px;min-width:0;max-width:100%;padding:10px 15px}& .access-control-sharing-state-panel{gap:10px;display:grid;& p{overflow-wrap:anywhere;min-width:0;max-width:100%}& .access-control-sharing-state-custom-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex;& p{flex:auto}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:none}}}& .access-control-sharing-guidance{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex;& p{overflow-wrap:anywhere;min-width:0;max-width:100%}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:none}}& .access-control-sharing-state-actions{flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;min-width:0;margin-top:10px;display:flex;& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);max-width:100%}}@media (width<=420px){& .access-control-sharing-guidance{flex-direction:column;align-items:flex-start;gap:8px;& solid-ui-button{align-self:flex-end}}}& .access-control-contents-prompt{& .access-control-contents-prompt-actions{flex-wrap:wrap;gap:8px;min-width:0;margin-top:10px;display:flex}& solid-ui-button{--solid-ui-font-size-md:var(--solid-ui-font-size-sm,.875rem);flex:0 auto;max-width:100%}}& .access-control-contents-prompt h2{margin-bottom:4px}& .access-control-footer-actions{justify-content:flex-end;align-items:center;gap:15px;width:100%;display:flex;&>solid-ui-button{min-width:132px}}@media (width<=380px){& .access-control-footer-actions{gap:8px;&>solid-ui-button{flex:1 1 0;min-width:0}}}}`;
|
|
962
949
|
// src/components/access-control-modal/accessGrantDrafts.ts
|
|
963
|
-
function
|
|
950
|
+
function Et(e) {
|
|
964
951
|
return {
|
|
965
952
|
...e,
|
|
966
|
-
agentClass: e.agentClass.filter((e) => e !==
|
|
953
|
+
agentClass: e.agentClass.filter((e) => e !== r.iri && e !== t.iri)
|
|
967
954
|
};
|
|
968
955
|
}
|
|
969
|
-
function
|
|
956
|
+
function Dt(e) {
|
|
970
957
|
return [
|
|
971
958
|
{
|
|
972
959
|
type: "agent",
|
|
@@ -989,118 +976,118 @@ function kt(e) {
|
|
|
989
976
|
iri: t
|
|
990
977
|
})));
|
|
991
978
|
}
|
|
992
|
-
function
|
|
993
|
-
return e.id ? e.id :
|
|
979
|
+
function Ot(e) {
|
|
980
|
+
return e.id ? e.id : Dt(e).map((e) => `${e.type}:${e.iri}`).sort().join("|");
|
|
994
981
|
}
|
|
995
|
-
function
|
|
982
|
+
function kt(e) {
|
|
996
983
|
let t = /* @__PURE__ */ new Map();
|
|
997
984
|
return e.map((e) => {
|
|
998
|
-
let n =
|
|
985
|
+
let n = Ot(Et(e)), r = t.get(n) ?? 0;
|
|
999
986
|
return t.set(n, r + 1), r === 0 ? n : `${n}#${r}`;
|
|
1000
987
|
});
|
|
1001
988
|
}
|
|
1002
|
-
function
|
|
1003
|
-
let
|
|
1004
|
-
...
|
|
1005
|
-
...
|
|
1006
|
-
...
|
|
1007
|
-
...
|
|
989
|
+
function At(t) {
|
|
990
|
+
let n = [
|
|
991
|
+
...t.agent,
|
|
992
|
+
...t.agentGroup,
|
|
993
|
+
...t.agentClass,
|
|
994
|
+
...t.origin
|
|
1008
995
|
];
|
|
1009
|
-
return
|
|
996
|
+
return n.length ? n.map((t) => u(e(t))).join(", ") : "Unknown access holder";
|
|
1010
997
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
998
|
+
function jt(e) {
|
|
999
|
+
return c.acl.roleFromModes(e.mode);
|
|
1013
1000
|
}
|
|
1014
|
-
function
|
|
1015
|
-
let t =
|
|
1001
|
+
function Mt(e) {
|
|
1002
|
+
let t = Et(e);
|
|
1016
1003
|
return {
|
|
1017
|
-
id:
|
|
1004
|
+
id: Ot(t),
|
|
1018
1005
|
authorization: t,
|
|
1019
|
-
role:
|
|
1020
|
-
initialRole:
|
|
1021
|
-
subjectLabel:
|
|
1022
|
-
subjects:
|
|
1006
|
+
role: jt(t),
|
|
1007
|
+
initialRole: jt(e),
|
|
1008
|
+
subjectLabel: At(t),
|
|
1009
|
+
subjects: Dt(t)
|
|
1023
1010
|
};
|
|
1024
1011
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let t =
|
|
1012
|
+
function Nt(e) {
|
|
1013
|
+
let t = kt(e);
|
|
1027
1014
|
return e.map((e, n) => ({
|
|
1028
|
-
...
|
|
1015
|
+
...Mt(e),
|
|
1029
1016
|
id: t[n]
|
|
1030
1017
|
}));
|
|
1031
1018
|
}
|
|
1032
|
-
function
|
|
1019
|
+
function Pt(e) {
|
|
1033
1020
|
return [...e].sort((t, n) => {
|
|
1034
1021
|
let r = t.role === "Owner", i = n.role === "Owner";
|
|
1035
1022
|
return r && !i ? -1 : !r && i ? 1 : e.indexOf(t) - e.indexOf(n);
|
|
1036
1023
|
});
|
|
1037
1024
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return
|
|
1025
|
+
function Ft(e) {
|
|
1026
|
+
return Pt(e).filter(({ role: e, initialRole: t, subjects: n }) => e !== t && n.length > 0).map(({ authorization: e, subjects: t, role: n }) => ({
|
|
1040
1027
|
authorization: e,
|
|
1041
1028
|
subjects: t,
|
|
1042
1029
|
role: n
|
|
1043
1030
|
}));
|
|
1044
1031
|
}
|
|
1045
|
-
function
|
|
1046
|
-
let t = e.filter((e) => e.agentClass.includes(l.iri)).flatMap((e) => e.mode);
|
|
1047
|
-
return t.length ? a.acl.roleFromModes(t) : "No Access";
|
|
1048
|
-
}
|
|
1049
|
-
function zt(e) {
|
|
1032
|
+
function It(e) {
|
|
1050
1033
|
let t = e.filter((e) => e.agentClass.includes(r.iri)).flatMap((e) => e.mode);
|
|
1051
|
-
return t.length ?
|
|
1034
|
+
return t.length ? c.acl.roleFromModes(t) : "No Access";
|
|
1052
1035
|
}
|
|
1053
|
-
function
|
|
1054
|
-
|
|
1036
|
+
function Lt(e) {
|
|
1037
|
+
let n = e.filter((e) => e.agentClass.includes(t.iri)).flatMap((e) => e.mode);
|
|
1038
|
+
return n.length ? c.acl.publicRoleFromModes(n) : "No Access";
|
|
1039
|
+
}
|
|
1040
|
+
function Rt(n) {
|
|
1041
|
+
return n.iri === r.iri ? "Authenticated users" : n.iri === t.iri ? "Public" : u(e(n.iri)).trim() || n.iri;
|
|
1055
1042
|
}
|
|
1056
1043
|
// ~icons/lucide/book-user
|
|
1057
|
-
var
|
|
1044
|
+
var zt = class extends HTMLElement {
|
|
1058
1045
|
constructor() {
|
|
1059
1046
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M15 13a3 3 0 1 0-6 0\"/><path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20\"/><circle cx=\"12\" cy=\"8\" r=\"2\"/></g></svg>";
|
|
1060
1047
|
}
|
|
1061
1048
|
};
|
|
1062
|
-
customElements.get("icon-lucide-book-user") || customElements.define("icon-lucide-book-user",
|
|
1049
|
+
customElements.get("icon-lucide-book-user") || customElements.define("icon-lucide-book-user", zt);
|
|
1063
1050
|
// ~icons/lucide/user-round
|
|
1064
|
-
var
|
|
1051
|
+
var Bt = class extends HTMLElement {
|
|
1065
1052
|
constructor() {
|
|
1066
1053
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"8\" r=\"5\"/><path d=\"M20 21a8 8 0 0 0-16 0\"/></g></svg>";
|
|
1067
1054
|
}
|
|
1068
1055
|
};
|
|
1069
|
-
customElements.get("icon-lucide-user-round") || customElements.define("icon-lucide-user-round",
|
|
1056
|
+
customElements.get("icon-lucide-user-round") || customElements.define("icon-lucide-user-round", Bt);
|
|
1070
1057
|
// ~icons/lucide/users
|
|
1071
|
-
var
|
|
1058
|
+
var Vt = class extends HTMLElement {
|
|
1072
1059
|
constructor() {
|
|
1073
1060
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M16 3.128a4 4 0 0 1 0 7.744M22 21v-2a4 4 0 0 0-3-3.87\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/></g></svg>";
|
|
1074
1061
|
}
|
|
1075
1062
|
};
|
|
1076
|
-
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users",
|
|
1063
|
+
customElements.get("icon-lucide-users") || customElements.define("icon-lucide-users", Vt);
|
|
1077
1064
|
// src/components/access-control-modal/AccessControlAddAccess.styles.css
|
|
1078
|
-
var
|
|
1065
|
+
var Ht = v`:host{& .access-grants-form{font-size:var(--solid-ui-font-size-sm,.875rem);--access-role-select-width:129px;flex-direction:column;align-self:stretch;align-items:flex-start;gap:10px;padding:10px;display:flex;& p{color:var(--solid-ui-color-gray-600,#4a5565);line-height:1.5}& .access-grants-form-main{align-self:stretch;align-items:center;gap:10px;display:flex;& .access-grants-input{border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);border-radius:5px;flex-direction:column;flex:auto;align-items:flex-start;gap:12px;min-width:0;padding:10px 15px;display:flex;& solid-ui-combobox{--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0);width:100%}& .access-principal-error{color:var(--solid-ui-color-red-700,#b42318);font-size:var(--solid-ui-font-size-xs,.75rem);margin:0;line-height:1.4}}}& .access-grants-pending{flex-wrap:wrap;align-items:center;gap:8px;min-height:42px;display:flex}& .access-grants-pending-item{border:1px solid var(--solid-ui-color-gray-300,#d1d5dc);background:var(--solid-ui-color-gray-50,#f9fafb);max-width:100%;color:var(--solid-ui-color-gray-700,#374151);border-radius:5px;align-items:center;gap:6px;padding:5px 10px;display:flex}& .access-grants-pending-item-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);line-height:1;overflow:hidden}& .access-grants-pending-item-remove{color:var(--solid-ui-color-gray-300,#d1d5dc);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex;& icon-lucide-circle-x{width:14px;height:14px}}}& .access-grants-directory-entry{align-items:center;gap:8px;line-height:1;display:inline-flex}& .access-role-select{max-width:100%;width:var(--access-role-select-width);--solid-ui-input-border-color:var(--solid-ui-color-slate-200,#e2e8f0);flex:none;margin-top:25px;display:block}& .access-role-select--top{margin-top:0}}`, Ut, Wt, I, L, R, z, B, V, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn;
|
|
1079
1066
|
function H(e, t, n) {
|
|
1080
|
-
|
|
1067
|
+
ln(e, t), t.set(e, n);
|
|
1081
1068
|
}
|
|
1082
|
-
function
|
|
1069
|
+
function ln(e, t) {
|
|
1083
1070
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
1084
1071
|
}
|
|
1085
1072
|
function U(e, t, n) {
|
|
1086
|
-
return e.set(
|
|
1073
|
+
return e.set(un(e, t), n), n;
|
|
1087
1074
|
}
|
|
1088
1075
|
function W(e, t) {
|
|
1089
|
-
return e.get(
|
|
1076
|
+
return e.get(un(e, t));
|
|
1090
1077
|
}
|
|
1091
|
-
function
|
|
1078
|
+
function un(e, t, n) {
|
|
1092
1079
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1093
1080
|
throw TypeError("Private element is not present on this object");
|
|
1094
1081
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return (t =
|
|
1082
|
+
function dn(e, t, n) {
|
|
1083
|
+
return (t = pn(t)) in e ? Object.defineProperty(e, t, {
|
|
1097
1084
|
value: n,
|
|
1098
1085
|
enumerable: !0,
|
|
1099
1086
|
configurable: !0,
|
|
1100
1087
|
writable: !0
|
|
1101
1088
|
}) : e[t] = n, e;
|
|
1102
1089
|
}
|
|
1103
|
-
function
|
|
1090
|
+
function fn(e, t, n, r, i, a) {
|
|
1104
1091
|
function o(e, t, n) {
|
|
1105
1092
|
return function(r, i) {
|
|
1106
1093
|
return n && n(r), e[t].call(r, i);
|
|
@@ -1123,13 +1110,13 @@ function mn(e, t, n, r, i, a) {
|
|
|
1123
1110
|
n || Array.isArray(_) || (_ = [_]);
|
|
1124
1111
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
1125
1112
|
d ? (f || p ? b = {
|
|
1126
|
-
get:
|
|
1113
|
+
get: hn(function() {
|
|
1127
1114
|
return v(this);
|
|
1128
1115
|
}, r, "get"),
|
|
1129
1116
|
set: function(e) {
|
|
1130
1117
|
t[4](this, e);
|
|
1131
1118
|
}
|
|
1132
|
-
} : b[S] = v, f ||
|
|
1119
|
+
} : b[S] = v, f || hn(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
1133
1120
|
}
|
|
1134
1121
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
1135
1122
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -1189,7 +1176,7 @@ function mn(e, t, n, r, i, a) {
|
|
|
1189
1176
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1190
1177
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
1191
1178
|
var i, a, o = [], c = function(t) {
|
|
1192
|
-
return
|
|
1179
|
+
return gn(t) === e;
|
|
1193
1180
|
}, u = /* @__PURE__ */ new Map();
|
|
1194
1181
|
function d(e) {
|
|
1195
1182
|
e && o.push(s.bind(null, e));
|
|
@@ -1203,7 +1190,7 @@ function mn(e, t, n, r, i, a) {
|
|
|
1203
1190
|
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);
|
|
1204
1191
|
u.set(b, !(m > 2) || m);
|
|
1205
1192
|
}
|
|
1206
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
1193
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : pn(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
1207
1194
|
}
|
|
1208
1195
|
}
|
|
1209
1196
|
return d(i), d(a), o;
|
|
@@ -1216,11 +1203,11 @@ function mn(e, t, n, r, i, a) {
|
|
|
1216
1203
|
}
|
|
1217
1204
|
};
|
|
1218
1205
|
}
|
|
1219
|
-
function
|
|
1220
|
-
var t =
|
|
1206
|
+
function pn(e) {
|
|
1207
|
+
var t = mn(e, "string");
|
|
1221
1208
|
return typeof t == "symbol" ? t : t + "";
|
|
1222
1209
|
}
|
|
1223
|
-
function
|
|
1210
|
+
function mn(e, t) {
|
|
1224
1211
|
if (typeof e != "object" || !e) return e;
|
|
1225
1212
|
var n;
|
|
1226
1213
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -1230,7 +1217,7 @@ function gn(e, t) {
|
|
|
1230
1217
|
}
|
|
1231
1218
|
return (t === "string" ? String : Number)(e);
|
|
1232
1219
|
}
|
|
1233
|
-
function
|
|
1220
|
+
function hn(e, t, n) {
|
|
1234
1221
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
1235
1222
|
try {
|
|
1236
1223
|
Object.defineProperty(e, "name", {
|
|
@@ -1240,31 +1227,31 @@ function _n(e, t, n) {
|
|
|
1240
1227
|
} catch {}
|
|
1241
1228
|
return e;
|
|
1242
1229
|
}
|
|
1243
|
-
function
|
|
1230
|
+
function gn(e) {
|
|
1244
1231
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1245
1232
|
return e;
|
|
1246
1233
|
}
|
|
1247
|
-
function
|
|
1234
|
+
function _n(e) {
|
|
1248
1235
|
return e;
|
|
1249
1236
|
}
|
|
1250
|
-
function
|
|
1237
|
+
function vn(e) {
|
|
1251
1238
|
return b`
|
|
1252
1239
|
<span class="access-grants-directory-entry">
|
|
1253
|
-
${
|
|
1240
|
+
${yn(e)}
|
|
1254
1241
|
<span>${e.label}</span>
|
|
1255
1242
|
</span>
|
|
1256
1243
|
`;
|
|
1257
1244
|
}
|
|
1258
|
-
function
|
|
1245
|
+
function yn(e) {
|
|
1259
1246
|
return e.sources.includes("contacts") || e.sources.includes("groups") ? b`<icon-lucide-book-user style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-book-user>` : e.sources.includes("friends") ? b`<icon-lucide-users style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-users>` : e.sources.includes("catalog") ? b`<icon-lucide-user-round style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-user-round>` : m;
|
|
1260
1247
|
}
|
|
1261
|
-
|
|
1262
|
-
var
|
|
1263
|
-
new (
|
|
1248
|
+
qt = [h("solid-ui-access-control-add-access")];
|
|
1249
|
+
var bn;
|
|
1250
|
+
new (sn = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), V = /*#__PURE__*/ new WeakMap(), cn = (Jt = g({ attribute: !1 }), Xt = g({ attribute: !1 }), Qt = g({ attribute: !1 }), en = g({ attribute: !1 }), nn = g({ type: Boolean }), an = g({ attribute: !1 }), "principalInputValue"), Wt = class extends _ {
|
|
1264
1251
|
constructor(...e) {
|
|
1265
|
-
super(...e), H(this, I, (
|
|
1252
|
+
super(...e), H(this, I, (Gt(this), Yt(this, ""))), H(this, L, Zt(this, "Viewer")), H(this, R, $t(this, [])), H(this, z, tn(this, "")), H(this, B, rn(this, !1)), H(this, V, on(this, null));
|
|
1266
1253
|
}
|
|
1267
|
-
get [
|
|
1254
|
+
get [cn]() {
|
|
1268
1255
|
return W(I, this);
|
|
1269
1256
|
}
|
|
1270
1257
|
set principalInputValue(e) {
|
|
@@ -1321,7 +1308,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1321
1308
|
}));
|
|
1322
1309
|
}
|
|
1323
1310
|
onRoleChange(e) {
|
|
1324
|
-
let t = e.detail.option.value, n = typeof t == "string" ?
|
|
1311
|
+
let t = e.detail.option.value, n = typeof t == "string" ? s.find((e) => e === t) : void 0;
|
|
1325
1312
|
n && this.dispatchEvent(new CustomEvent("role-changed", {
|
|
1326
1313
|
detail: { role: n },
|
|
1327
1314
|
bubbles: !0,
|
|
@@ -1365,7 +1352,7 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1365
1352
|
.value=${this.addAccessRoleValue}
|
|
1366
1353
|
@change=${this.onRoleChange}
|
|
1367
1354
|
>
|
|
1368
|
-
${
|
|
1355
|
+
${s.filter((e) => e !== "No Access").map((e) => b`
|
|
1369
1356
|
<solid-ui-combobox-option value=${e}>${e}</solid-ui-combobox-option>
|
|
1370
1357
|
`)}
|
|
1371
1358
|
</solid-ui-combobox>
|
|
@@ -1397,44 +1384,44 @@ new (ln = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
|
|
|
1397
1384
|
</div>
|
|
1398
1385
|
` : m;
|
|
1399
1386
|
}
|
|
1400
|
-
}, {e: [Zt, $t, tn, rn, on,
|
|
1387
|
+
}, {e: [Yt, Zt, $t, tn, rn, on, Gt], c: [bn, Kt]} = fn(Wt, [
|
|
1401
1388
|
[
|
|
1402
|
-
|
|
1389
|
+
Jt,
|
|
1403
1390
|
1,
|
|
1404
1391
|
"principalInputValue"
|
|
1405
1392
|
],
|
|
1406
1393
|
[
|
|
1407
|
-
|
|
1394
|
+
Xt,
|
|
1408
1395
|
1,
|
|
1409
1396
|
"addAccessRoleValue"
|
|
1410
1397
|
],
|
|
1411
1398
|
[
|
|
1412
|
-
|
|
1399
|
+
Qt,
|
|
1413
1400
|
1,
|
|
1414
1401
|
"pendingAccessGrants"
|
|
1415
1402
|
],
|
|
1416
1403
|
[
|
|
1417
|
-
|
|
1404
|
+
en,
|
|
1418
1405
|
1,
|
|
1419
1406
|
"inputError"
|
|
1420
1407
|
],
|
|
1421
1408
|
[
|
|
1422
|
-
|
|
1409
|
+
nn,
|
|
1423
1410
|
1,
|
|
1424
1411
|
"disabled"
|
|
1425
1412
|
],
|
|
1426
1413
|
[
|
|
1427
|
-
|
|
1414
|
+
an,
|
|
1428
1415
|
1,
|
|
1429
1416
|
"asyncOptionsProvider"
|
|
1430
1417
|
]
|
|
1431
|
-
],
|
|
1418
|
+
], qt, 0, void 0, _), Wt), Ut = class extends _n {
|
|
1432
1419
|
constructor() {
|
|
1433
|
-
super(
|
|
1420
|
+
super(bn), dn(this, "styles", Ht), Kt();
|
|
1434
1421
|
}
|
|
1435
|
-
},
|
|
1422
|
+
}, dn(Ut, sn, void 0), Ut)();
|
|
1436
1423
|
// src/components/access-control-modal/helpers.ts
|
|
1437
|
-
function
|
|
1424
|
+
function xn(e) {
|
|
1438
1425
|
try {
|
|
1439
1426
|
let t = new URL(e);
|
|
1440
1427
|
return (t.protocol === "http:" || t.protocol === "https:") && !!t.hostname;
|
|
@@ -1442,21 +1429,21 @@ function Cn(e) {
|
|
|
1442
1429
|
return !1;
|
|
1443
1430
|
}
|
|
1444
1431
|
}
|
|
1445
|
-
function
|
|
1446
|
-
if (!
|
|
1432
|
+
function Sn(e) {
|
|
1433
|
+
if (!xn(e)) return !1;
|
|
1447
1434
|
let t = new URL(e);
|
|
1448
1435
|
return t.pathname === "/" && !t.search && !t.hash && !t.username && !t.password;
|
|
1449
1436
|
}
|
|
1450
|
-
function
|
|
1437
|
+
function Cn(e) {
|
|
1451
1438
|
let t = e.trim();
|
|
1452
|
-
if (t && !
|
|
1439
|
+
if (t && !xn(t)) try {
|
|
1453
1440
|
let e = new URL(`https://${t}`), n = e.protocol === "http:" || e.protocol === "https:", r = e.pathname === "/" && !e.search && !e.hash, i = e.hostname.includes(".") || e.hostname.includes(":");
|
|
1454
1441
|
return n && r && i && !e.username && !e.password ? e.origin : void 0;
|
|
1455
1442
|
} catch {
|
|
1456
1443
|
return;
|
|
1457
1444
|
}
|
|
1458
1445
|
}
|
|
1459
|
-
function
|
|
1446
|
+
function wn(e, t) {
|
|
1460
1447
|
let n = /* @__PURE__ */ new Map();
|
|
1461
1448
|
for (let r of e) {
|
|
1462
1449
|
let e = t(r);
|
|
@@ -1464,32 +1451,32 @@ function En(e, t) {
|
|
|
1464
1451
|
}
|
|
1465
1452
|
return [...n.values()];
|
|
1466
1453
|
}
|
|
1467
|
-
function
|
|
1468
|
-
return
|
|
1454
|
+
function Tn(e) {
|
|
1455
|
+
return wn(e, (e) => e.value);
|
|
1469
1456
|
}
|
|
1470
1457
|
// src/components/access-control-modal/accessTargetResolver.ts
|
|
1471
|
-
async function
|
|
1472
|
-
let t =
|
|
1458
|
+
async function En(e) {
|
|
1459
|
+
let t = Cn(e);
|
|
1473
1460
|
return t ? {
|
|
1474
1461
|
kind: "origin",
|
|
1475
1462
|
subjectValue: t
|
|
1476
|
-
} :
|
|
1463
|
+
} : Sn(e) ? {
|
|
1477
1464
|
kind: "origin",
|
|
1478
1465
|
subjectValue: new URL(e).origin
|
|
1479
|
-
} : await
|
|
1480
|
-
}
|
|
1481
|
-
async function
|
|
1482
|
-
if (!
|
|
1483
|
-
let
|
|
1484
|
-
await
|
|
1485
|
-
let
|
|
1486
|
-
if (!
|
|
1487
|
-
return
|
|
1488
|
-
}
|
|
1489
|
-
async function
|
|
1490
|
-
let n = await
|
|
1466
|
+
} : await c.acl.classifyAccessControlSubject(e);
|
|
1467
|
+
}
|
|
1468
|
+
async function Dn(t, n) {
|
|
1469
|
+
if (!t || t.kind === "origin") return t?.subjectValue;
|
|
1470
|
+
let r = e(t.subjectValue);
|
|
1471
|
+
await c.store.fetcher.load(r.doc());
|
|
1472
|
+
let i = n?.trim() || u(r).trim();
|
|
1473
|
+
if (!i || i === t.subjectValue) throw Error("The access target has no usable display label.");
|
|
1474
|
+
return i;
|
|
1475
|
+
}
|
|
1476
|
+
async function On(e, t) {
|
|
1477
|
+
let n = await En(e);
|
|
1491
1478
|
if (!n) return;
|
|
1492
|
-
let r = await
|
|
1479
|
+
let r = await Dn(n, t);
|
|
1493
1480
|
if (r) return {
|
|
1494
1481
|
subjectType: n.kind,
|
|
1495
1482
|
subjectValue: n.subjectValue,
|
|
@@ -1497,91 +1484,91 @@ async function An(e, t) {
|
|
|
1497
1484
|
targetKind: n.kind === "origin" ? "origin" : void 0
|
|
1498
1485
|
};
|
|
1499
1486
|
}
|
|
1500
|
-
async function
|
|
1501
|
-
let t = await
|
|
1487
|
+
async function kn(e) {
|
|
1488
|
+
let t = await On(e);
|
|
1502
1489
|
return t ? {
|
|
1503
1490
|
label: t.label,
|
|
1504
1491
|
value: e
|
|
1505
1492
|
} : void 0;
|
|
1506
1493
|
}
|
|
1507
|
-
function
|
|
1494
|
+
function An(e, t) {
|
|
1508
1495
|
return {
|
|
1509
1496
|
label: t,
|
|
1510
1497
|
value: e.uri,
|
|
1511
|
-
template:
|
|
1498
|
+
template: vn({
|
|
1512
1499
|
...e,
|
|
1513
1500
|
label: t
|
|
1514
1501
|
})
|
|
1515
1502
|
};
|
|
1516
1503
|
}
|
|
1517
|
-
async function
|
|
1518
|
-
let t =
|
|
1504
|
+
async function jn(e) {
|
|
1505
|
+
let t = Cn(e);
|
|
1519
1506
|
if (t) return [{
|
|
1520
1507
|
label: `Use origin ${t}`,
|
|
1521
1508
|
value: t,
|
|
1522
1509
|
targetKind: "origin",
|
|
1523
1510
|
template: b`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Use origin ${t}</span></span>`
|
|
1524
1511
|
}];
|
|
1525
|
-
if (!
|
|
1526
|
-
if (
|
|
1512
|
+
if (!xn(e)) return [];
|
|
1513
|
+
if (Sn(e)) return [{
|
|
1527
1514
|
label: `Use origin ${new URL(e).origin}`,
|
|
1528
1515
|
value: new URL(e).origin,
|
|
1529
1516
|
targetKind: "origin",
|
|
1530
1517
|
template: b`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Use origin ${new URL(e).origin}</span></span>`
|
|
1531
1518
|
}];
|
|
1532
|
-
let n = await
|
|
1533
|
-
return
|
|
1519
|
+
let n = await kn(e);
|
|
1520
|
+
return Tn(n ? [n] : []);
|
|
1534
1521
|
}
|
|
1535
|
-
async function
|
|
1522
|
+
async function Mn(e) {
|
|
1536
1523
|
try {
|
|
1537
|
-
let
|
|
1538
|
-
if (!
|
|
1539
|
-
await
|
|
1540
|
-
let
|
|
1541
|
-
return
|
|
1542
|
-
let
|
|
1543
|
-
if (!
|
|
1544
|
-
let
|
|
1545
|
-
return
|
|
1546
|
-
label: `Trusted app: ${
|
|
1547
|
-
value:
|
|
1524
|
+
let t = c.authn.currentUser();
|
|
1525
|
+
if (!t) return [];
|
|
1526
|
+
await c.profile.loadProfile(t);
|
|
1527
|
+
let n = c.store;
|
|
1528
|
+
return n.each(t, l.acl("trustedApp")).flatMap((t) => {
|
|
1529
|
+
let r = n.any(t, l.acl("origin"));
|
|
1530
|
+
if (!r || !Sn(r.value)) return [];
|
|
1531
|
+
let i = new URL(r.value).origin;
|
|
1532
|
+
return e && !`${i} trusted app`.toLowerCase().includes(e.toLowerCase()) ? [] : [{
|
|
1533
|
+
label: `Trusted app: ${i}`,
|
|
1534
|
+
value: i,
|
|
1548
1535
|
targetKind: "trustedApp",
|
|
1549
|
-
template: b`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Trusted app: ${
|
|
1536
|
+
template: b`<span class="access-grants-directory-entry"><icon-lucide-globe style="width: 13px; height: 13px; flex: 0 0 13px;"></icon-lucide-globe><span>Trusted app: ${i}</span></span>`
|
|
1550
1537
|
}];
|
|
1551
1538
|
});
|
|
1552
1539
|
} catch {
|
|
1553
1540
|
return [];
|
|
1554
1541
|
}
|
|
1555
1542
|
}
|
|
1556
|
-
function
|
|
1543
|
+
function Nn(e) {
|
|
1557
1544
|
return e.length ? e : [{
|
|
1558
1545
|
label: "Type at least 2 characters to search",
|
|
1559
1546
|
value: "",
|
|
1560
1547
|
selectable: !1
|
|
1561
1548
|
}];
|
|
1562
1549
|
}
|
|
1563
|
-
var
|
|
1564
|
-
let t = e.trim(),
|
|
1565
|
-
if (t.length < 2) return
|
|
1550
|
+
var Pn = x(async (e) => {
|
|
1551
|
+
let t = e.trim(), n = await jn(t), r = await Mn(t);
|
|
1552
|
+
if (t.length < 2) return wn([
|
|
1553
|
+
...n,
|
|
1566
1554
|
...r,
|
|
1567
|
-
...
|
|
1568
|
-
...Fn(r)
|
|
1555
|
+
...Nn(n)
|
|
1569
1556
|
], (e) => {
|
|
1570
1557
|
let t = e;
|
|
1571
1558
|
return typeof t.value == "string" ? `${t.value}:${t.targetKind ?? "default"}` : void 0;
|
|
1572
1559
|
});
|
|
1573
|
-
let
|
|
1560
|
+
let i = [];
|
|
1574
1561
|
try {
|
|
1575
|
-
|
|
1562
|
+
i = await c.directory.search({
|
|
1576
1563
|
query: t,
|
|
1577
|
-
sources:
|
|
1564
|
+
sources: o
|
|
1578
1565
|
});
|
|
1579
1566
|
} catch (e) {
|
|
1580
|
-
if (!
|
|
1567
|
+
if (!n.length && !r.length) throw e;
|
|
1581
1568
|
}
|
|
1582
|
-
let
|
|
1569
|
+
let a = (await Promise.all(i.map(async (e) => {
|
|
1583
1570
|
try {
|
|
1584
|
-
let t = await
|
|
1571
|
+
let t = await On(e.uri, e.label);
|
|
1585
1572
|
return t ? {
|
|
1586
1573
|
entry: e,
|
|
1587
1574
|
label: t.label
|
|
@@ -1589,44 +1576,44 @@ var In = x(async (e) => {
|
|
|
1589
1576
|
} catch {
|
|
1590
1577
|
return;
|
|
1591
1578
|
}
|
|
1592
|
-
}))).filter((e) => e !== void 0).map(({ entry: e, label: t }) =>
|
|
1593
|
-
return
|
|
1579
|
+
}))).filter((e) => e !== void 0).map(({ entry: e, label: t }) => An(e, t));
|
|
1580
|
+
return wn([
|
|
1581
|
+
...n,
|
|
1594
1582
|
...r,
|
|
1595
|
-
...
|
|
1596
|
-
...s
|
|
1583
|
+
...a
|
|
1597
1584
|
], (e) => {
|
|
1598
1585
|
let t = e;
|
|
1599
1586
|
return typeof t.value == "string" ? `${t.value}:${t.targetKind ?? "default"}` : void 0;
|
|
1600
1587
|
});
|
|
1601
1588
|
});
|
|
1602
1589
|
// src/components/access-control-modal/applyAccessChanges.ts
|
|
1603
|
-
async function
|
|
1590
|
+
async function Fn(e, t, n = {}) {
|
|
1604
1591
|
let r = [], i = n.containerScope ?? "file";
|
|
1605
|
-
for (let { subject: n, label:
|
|
1606
|
-
let t = i === "folder+contents" ?
|
|
1607
|
-
await
|
|
1592
|
+
for (let { subject: n, label: a, role: o } of t) try {
|
|
1593
|
+
let t = i === "folder+contents" ? c.acl.planGrantContainerAndContents : i === "container" ? c.acl.planGrantContainer : i === "contents" ? c.acl.planGrantContainerContents : c.acl.planGrant, r = o === "No Access" ? await (i === "contents" ? c.acl.planRevokeContainerContents(e, n) : c.acl.planRevoke(e, n)) : await t(e, n, In(n, o));
|
|
1594
|
+
await c.acl.applyPlan(r);
|
|
1608
1595
|
} catch (e) {
|
|
1609
1596
|
r.push({
|
|
1610
|
-
action:
|
|
1597
|
+
action: o === "No Access" ? "revoke" : "grant",
|
|
1611
1598
|
targetUri: n.iri,
|
|
1612
|
-
label:
|
|
1613
|
-
role:
|
|
1599
|
+
label: a,
|
|
1600
|
+
role: o,
|
|
1614
1601
|
scope: i,
|
|
1615
1602
|
message: e instanceof Error ? e.message : "Unable to apply access change."
|
|
1616
1603
|
});
|
|
1617
1604
|
}
|
|
1618
1605
|
return r;
|
|
1619
1606
|
}
|
|
1620
|
-
function
|
|
1621
|
-
if (e.type === "agentClass" && e.iri ===
|
|
1622
|
-
let e =
|
|
1623
|
-
if (!e) throw Error(`Public access does not support the ${
|
|
1624
|
-
return
|
|
1607
|
+
function In(e, n) {
|
|
1608
|
+
if (e.type === "agentClass" && e.iri === t.iri) {
|
|
1609
|
+
let e = i.find((e) => e === n);
|
|
1610
|
+
if (!e) throw Error(`Public access does not support the ${n} role.`);
|
|
1611
|
+
return c.acl.modesFromPublicRole(e);
|
|
1625
1612
|
}
|
|
1626
|
-
return
|
|
1613
|
+
return c.acl.modesFromRole(n);
|
|
1627
1614
|
}
|
|
1628
1615
|
// src/components/access-control-modal/buildAccessChanges.ts
|
|
1629
|
-
function
|
|
1616
|
+
function Ln({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGrants: n }) {
|
|
1630
1617
|
return [
|
|
1631
1618
|
...e.map((e) => ({
|
|
1632
1619
|
subject: {
|
|
@@ -1640,37 +1627,37 @@ function zn({ pendingAccessGrants: e, generalAccessChanges: t, changedAccessGran
|
|
|
1640
1627
|
...n.flatMap(({ subjects: e, role: t }) => e.map((e) => ({
|
|
1641
1628
|
subject: e,
|
|
1642
1629
|
role: t,
|
|
1643
|
-
label:
|
|
1630
|
+
label: Rt(e)
|
|
1644
1631
|
})))
|
|
1645
1632
|
];
|
|
1646
1633
|
}
|
|
1647
1634
|
// src/components/access-control-modal/AccessControlModal.ts
|
|
1648
|
-
var
|
|
1635
|
+
var Rn, zn, G, K, q, J, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Y, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, gr, _r, vr, yr, br, xr, Sr, Cr, wr, Tr, Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr, zr;
|
|
1649
1636
|
function X(e, t, n) {
|
|
1650
|
-
|
|
1637
|
+
Br(e, t), t.set(e, n);
|
|
1651
1638
|
}
|
|
1652
|
-
function
|
|
1639
|
+
function Br(e, t) {
|
|
1653
1640
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
1654
1641
|
}
|
|
1655
1642
|
function Z(e, t, n) {
|
|
1656
|
-
return e.set(
|
|
1643
|
+
return e.set(Vr(e, t), n), n;
|
|
1657
1644
|
}
|
|
1658
1645
|
function Q(e, t) {
|
|
1659
|
-
return e.get(
|
|
1646
|
+
return e.get(Vr(e, t));
|
|
1660
1647
|
}
|
|
1661
|
-
function
|
|
1648
|
+
function Vr(e, t, n) {
|
|
1662
1649
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1663
1650
|
throw TypeError("Private element is not present on this object");
|
|
1664
1651
|
}
|
|
1665
1652
|
function $(e, t, n) {
|
|
1666
|
-
return (t =
|
|
1653
|
+
return (t = Ur(t)) in e ? Object.defineProperty(e, t, {
|
|
1667
1654
|
value: n,
|
|
1668
1655
|
enumerable: !0,
|
|
1669
1656
|
configurable: !0,
|
|
1670
1657
|
writable: !0
|
|
1671
1658
|
}) : e[t] = n, e;
|
|
1672
1659
|
}
|
|
1673
|
-
function
|
|
1660
|
+
function Hr(e, t, n, r, i, a) {
|
|
1674
1661
|
function o(e, t, n) {
|
|
1675
1662
|
return function(r, i) {
|
|
1676
1663
|
return n && n(r), e[t].call(r, i);
|
|
@@ -1693,13 +1680,13 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1693
1680
|
n || Array.isArray(_) || (_ = [_]);
|
|
1694
1681
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
1695
1682
|
d ? (f || p ? b = {
|
|
1696
|
-
get:
|
|
1683
|
+
get: Gr(function() {
|
|
1697
1684
|
return v(this);
|
|
1698
1685
|
}, r, "get"),
|
|
1699
1686
|
set: function(e) {
|
|
1700
1687
|
t[4](this, e);
|
|
1701
1688
|
}
|
|
1702
|
-
} : b[S] = v, f ||
|
|
1689
|
+
} : b[S] = v, f || Gr(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
1703
1690
|
}
|
|
1704
1691
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
1705
1692
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -1759,7 +1746,7 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1759
1746
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1760
1747
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
1761
1748
|
var i, a, o = [], c = function(t) {
|
|
1762
|
-
return
|
|
1749
|
+
return Kr(t) === e;
|
|
1763
1750
|
}, u = /* @__PURE__ */ new Map();
|
|
1764
1751
|
function d(e) {
|
|
1765
1752
|
e && o.push(s.bind(null, e));
|
|
@@ -1773,7 +1760,7 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1773
1760
|
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);
|
|
1774
1761
|
u.set(b, !(m > 2) || m);
|
|
1775
1762
|
}
|
|
1776
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
1763
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Ur(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
1777
1764
|
}
|
|
1778
1765
|
}
|
|
1779
1766
|
return d(i), d(a), o;
|
|
@@ -1786,11 +1773,11 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1786
1773
|
}
|
|
1787
1774
|
};
|
|
1788
1775
|
}
|
|
1789
|
-
function
|
|
1790
|
-
var t =
|
|
1776
|
+
function Ur(e) {
|
|
1777
|
+
var t = Wr(e, "string");
|
|
1791
1778
|
return typeof t == "symbol" ? t : t + "";
|
|
1792
1779
|
}
|
|
1793
|
-
function
|
|
1780
|
+
function Wr(e, t) {
|
|
1794
1781
|
if (typeof e != "object" || !e) return e;
|
|
1795
1782
|
var n;
|
|
1796
1783
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -1800,7 +1787,7 @@ function Kr(e, t) {
|
|
|
1800
1787
|
}
|
|
1801
1788
|
return (t === "string" ? String : Number)(e);
|
|
1802
1789
|
}
|
|
1803
|
-
function
|
|
1790
|
+
function Gr(e, t, n) {
|
|
1804
1791
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
1805
1792
|
try {
|
|
1806
1793
|
Object.defineProperty(e, "name", {
|
|
@@ -1810,23 +1797,23 @@ function qr(e, t, n) {
|
|
|
1810
1797
|
} catch {}
|
|
1811
1798
|
return e;
|
|
1812
1799
|
}
|
|
1813
|
-
function
|
|
1800
|
+
function Kr(e) {
|
|
1814
1801
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1815
1802
|
return e;
|
|
1816
1803
|
}
|
|
1817
|
-
function
|
|
1804
|
+
function qr(e) {
|
|
1818
1805
|
return e;
|
|
1819
1806
|
}
|
|
1820
|
-
function
|
|
1807
|
+
function Jr(e) {
|
|
1821
1808
|
return e != null;
|
|
1822
1809
|
}
|
|
1823
|
-
|
|
1824
|
-
var
|
|
1825
|
-
new (
|
|
1810
|
+
tr = [h("solid-ui-access-control-modal")];
|
|
1811
|
+
var Yr;
|
|
1812
|
+
new (Rr = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Bn = /*#__PURE__*/ new WeakMap(), Vn = /*#__PURE__*/ new WeakMap(), Hn = /*#__PURE__*/ new WeakMap(), Un = /*#__PURE__*/ new WeakMap(), Wn = /*#__PURE__*/ new WeakMap(), Gn = /*#__PURE__*/ new WeakMap(), Kn = /*#__PURE__*/ new WeakMap(), qn = /*#__PURE__*/ new WeakMap(), Jn = /*#__PURE__*/ new WeakMap(), Yn = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), Xn = /*#__PURE__*/ new WeakMap(), Zn = /*#__PURE__*/ new WeakMap(), Qn = /*#__PURE__*/ new WeakMap(), zr = (nr = g({ attribute: !1 }), ir = g({ attribute: !1 }), or = y(), cr = y(), ur = y(), fr = y(), mr = y(), gr = y(), vr = y(), br = y(), Sr = y(), wr = y(), Er = y(), Or = y(), Ar = y(), Mr = y(), Pr = y(), Ir = y(), "subjectUri"), zn = class extends p {
|
|
1826
1813
|
constructor(...e) {
|
|
1827
|
-
super(...e), X(this, G, (
|
|
1814
|
+
super(...e), X(this, G, ($n(this), rr(this, void 0))), X(this, K, ar(this, void 0)), X(this, q, sr(this, "")), X(this, J, lr(this, "Viewer")), X(this, Bn, dr(this, "No Access")), X(this, Vn, pr(this, "No Access")), X(this, Hn, hr(this, !1)), X(this, Un, _r(this, [])), X(this, Wn, yr(this, [])), X(this, Gn, xr(this, [])), X(this, Kn, Cr(this, !0)), X(this, qn, Tr(this)), X(this, Jn, Dr(this, !1)), X(this, Yn, kr(this, "")), X(this, Y, jr(this, !1)), X(this, Xn, Nr(this, "folder+contents")), X(this, Zn, Fr(this)), X(this, Qn, Lr(this, !1)), $(this, "accessGrantLabelRequestVersion", 0), $(this, "accessContextRequestVersion", 0), $(this, "accessContextSubjectUri", void 0);
|
|
1828
1815
|
}
|
|
1829
|
-
get [
|
|
1816
|
+
get [zr]() {
|
|
1830
1817
|
return Q(G, this);
|
|
1831
1818
|
}
|
|
1832
1819
|
set subjectUri(e) {
|
|
@@ -1851,64 +1838,64 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1851
1838
|
Z(J, this, e);
|
|
1852
1839
|
}
|
|
1853
1840
|
get authenticatedAccessRoleValue() {
|
|
1854
|
-
return Q(
|
|
1841
|
+
return Q(Bn, this);
|
|
1855
1842
|
}
|
|
1856
1843
|
set authenticatedAccessRoleValue(e) {
|
|
1857
|
-
Z(
|
|
1844
|
+
Z(Bn, this, e);
|
|
1858
1845
|
}
|
|
1859
1846
|
get publicAccessRoleValue() {
|
|
1860
|
-
return Q(
|
|
1847
|
+
return Q(Vn, this);
|
|
1861
1848
|
}
|
|
1862
1849
|
set publicAccessRoleValue(e) {
|
|
1863
|
-
Z(
|
|
1850
|
+
Z(Vn, this, e);
|
|
1864
1851
|
}
|
|
1865
1852
|
get submitting() {
|
|
1866
|
-
return Q(
|
|
1853
|
+
return Q(Hn, this);
|
|
1867
1854
|
}
|
|
1868
1855
|
set submitting(e) {
|
|
1869
|
-
Z(
|
|
1856
|
+
Z(Hn, this, e);
|
|
1870
1857
|
}
|
|
1871
1858
|
get pendingAccessGrants() {
|
|
1872
|
-
return Q(
|
|
1859
|
+
return Q(Un, this);
|
|
1873
1860
|
}
|
|
1874
1861
|
set pendingAccessGrants(e) {
|
|
1875
|
-
Z(
|
|
1862
|
+
Z(Un, this, e);
|
|
1876
1863
|
}
|
|
1877
1864
|
get accessGrantDrafts() {
|
|
1878
|
-
return Q(
|
|
1865
|
+
return Q(Wn, this);
|
|
1879
1866
|
}
|
|
1880
1867
|
set accessGrantDrafts(e) {
|
|
1881
|
-
Z(
|
|
1868
|
+
Z(Wn, this, e);
|
|
1882
1869
|
}
|
|
1883
1870
|
get errors() {
|
|
1884
|
-
return Q(
|
|
1871
|
+
return Q(Gn, this);
|
|
1885
1872
|
}
|
|
1886
1873
|
set errors(e) {
|
|
1887
|
-
Z(
|
|
1874
|
+
Z(Gn, this, e);
|
|
1888
1875
|
}
|
|
1889
1876
|
get successfulChangesRefreshed() {
|
|
1890
|
-
return Q(
|
|
1877
|
+
return Q(Kn, this);
|
|
1891
1878
|
}
|
|
1892
1879
|
set successfulChangesRefreshed(e) {
|
|
1893
|
-
Z(
|
|
1880
|
+
Z(Kn, this, e);
|
|
1894
1881
|
}
|
|
1895
1882
|
get accessContext() {
|
|
1896
|
-
return Q(
|
|
1883
|
+
return Q(qn, this);
|
|
1897
1884
|
}
|
|
1898
1885
|
set accessContext(e) {
|
|
1899
|
-
Z(
|
|
1886
|
+
Z(qn, this, e);
|
|
1900
1887
|
}
|
|
1901
1888
|
get accessContextLoading() {
|
|
1902
|
-
return Q(
|
|
1889
|
+
return Q(Jn, this);
|
|
1903
1890
|
}
|
|
1904
1891
|
set accessContextLoading(e) {
|
|
1905
|
-
Z(
|
|
1892
|
+
Z(Jn, this, e);
|
|
1906
1893
|
}
|
|
1907
1894
|
get accessContextError() {
|
|
1908
|
-
return Q(
|
|
1895
|
+
return Q(Yn, this);
|
|
1909
1896
|
}
|
|
1910
1897
|
set accessContextError(e) {
|
|
1911
|
-
Z(
|
|
1898
|
+
Z(Yn, this, e);
|
|
1912
1899
|
}
|
|
1913
1900
|
get advancedSharingOpen() {
|
|
1914
1901
|
return Q(Y, this);
|
|
@@ -1917,22 +1904,22 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1917
1904
|
Z(Y, this, e);
|
|
1918
1905
|
}
|
|
1919
1906
|
get containerScope() {
|
|
1920
|
-
return Q(
|
|
1907
|
+
return Q(Xn, this);
|
|
1921
1908
|
}
|
|
1922
1909
|
set containerScope(e) {
|
|
1923
|
-
Z(
|
|
1910
|
+
Z(Xn, this, e);
|
|
1924
1911
|
}
|
|
1925
1912
|
get containerScopeAnalysis() {
|
|
1926
|
-
return Q(
|
|
1913
|
+
return Q(Zn, this);
|
|
1927
1914
|
}
|
|
1928
1915
|
set containerScopeAnalysis(e) {
|
|
1929
|
-
Z(
|
|
1916
|
+
Z(Zn, this, e);
|
|
1930
1917
|
}
|
|
1931
1918
|
get protectedTarget() {
|
|
1932
|
-
return Q(
|
|
1919
|
+
return Q(Qn, this);
|
|
1933
1920
|
}
|
|
1934
1921
|
set protectedTarget(e) {
|
|
1935
|
-
Z(
|
|
1922
|
+
Z(Qn, this, e);
|
|
1936
1923
|
}
|
|
1937
1924
|
disconnectedCallback() {
|
|
1938
1925
|
this.accessGrantLabelRequestVersion++, this.accessContextRequestVersion++, this.errors = [], super.disconnectedCallback();
|
|
@@ -1952,7 +1939,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1952
1939
|
willUpdate(e) {
|
|
1953
1940
|
if (super.willUpdate(e), e.has("accessGrants")) {
|
|
1954
1941
|
let e = this.getScopedAccessGrants();
|
|
1955
|
-
this.accessGrantDrafts =
|
|
1942
|
+
this.accessGrantDrafts = Nt(e), this.authenticatedAccessRoleValue = It(e), this.publicAccessRoleValue = Lt(e);
|
|
1956
1943
|
}
|
|
1957
1944
|
}
|
|
1958
1945
|
updated(e) {
|
|
@@ -1963,21 +1950,21 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1963
1950
|
}), e.has("accessContext") && !e.has("subjectUri") && this.refreshContainerScopeAnalysis();
|
|
1964
1951
|
}
|
|
1965
1952
|
refreshContainerScopeAnalysis() {
|
|
1966
|
-
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis =
|
|
1953
|
+
this.isContainer() && this.accessContext ? (this.containerScopeAnalysis = a(this.accessContext), this.containerScope = this.containerScopeAnalysis.primaryScope, this.refreshScopedAccessGrantDrafts()) : this.containerScopeAnalysis = void 0;
|
|
1967
1954
|
}
|
|
1968
1955
|
async refreshAccessGrantLabels() {
|
|
1969
|
-
let
|
|
1970
|
-
if (!
|
|
1956
|
+
let t = ++this.accessGrantLabelRequestVersion, n = this.accessGrants, r = this.subjectUri, i = this.getSelectedContainerScope(), a = this.getScopedAccessGrants(i);
|
|
1957
|
+
if (!a.length) {
|
|
1971
1958
|
this.accessGrantDrafts = [];
|
|
1972
1959
|
return;
|
|
1973
1960
|
}
|
|
1974
|
-
let
|
|
1961
|
+
let o = await Promise.all(a.map(async (t) => (await Promise.all(t.agentGroup.map(async (t) => {
|
|
1975
1962
|
try {
|
|
1976
|
-
await
|
|
1963
|
+
await c.store.fetcher.load(e(t).doc());
|
|
1977
1964
|
} catch {}
|
|
1978
|
-
})),
|
|
1979
|
-
if (
|
|
1980
|
-
let e = new Map(
|
|
1965
|
+
})), At(Et(t)))));
|
|
1966
|
+
if (t === this.accessGrantLabelRequestVersion && this.accessGrants === n && this.subjectUri === r && this.getSelectedContainerScope() === i) {
|
|
1967
|
+
let e = new Map(kt(a).map((e, t) => [e, o[t]]));
|
|
1981
1968
|
this.accessGrantDrafts = this.accessGrantDrafts.map((t) => ({
|
|
1982
1969
|
...t,
|
|
1983
1970
|
subjectLabel: e.get(t.id) ?? t.subjectLabel
|
|
@@ -1985,8 +1972,8 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1985
1972
|
}
|
|
1986
1973
|
}
|
|
1987
1974
|
getDialogTitle() {
|
|
1988
|
-
let
|
|
1989
|
-
return !
|
|
1975
|
+
let t = this.subjectUri ? e(this.subjectUri) : void 0, n = t ? u(t).trim() : "";
|
|
1976
|
+
return !n || n === "this resource" ? "Manage Access of \"this resource\"" : `Manage Access of "${n}"`;
|
|
1990
1977
|
}
|
|
1991
1978
|
isContainer() {
|
|
1992
1979
|
return !!(this.subjectUri && new URL(this.subjectUri).pathname.endsWith("/"));
|
|
@@ -1995,9 +1982,9 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
1995
1982
|
let e = ++this.accessContextRequestVersion, t = this.subjectUri;
|
|
1996
1983
|
if (this.accessContext = void 0, this.accessContextSubjectUri = void 0, this.accessContextError = "", this.accessContextLoading = !!t, !t) this.accessContextLoading = !1;
|
|
1997
1984
|
else try {
|
|
1998
|
-
let n = await
|
|
1985
|
+
let n = await c.acl.findEffectiveAcl(t);
|
|
1999
1986
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
2000
|
-
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget =
|
|
1987
|
+
this.accessContext = n, this.accessContextSubjectUri = t, this.accessContext?.inherited && !this.accessGrants?.length && (this.accessGrants = this.accessContext.authorizations), this.refreshContainerScopeAnalysis(), this.protectedTarget = c.acl.isProtectedResource(t), this.protectedTarget && this.refreshScopedAccessGrantDrafts();
|
|
2001
1988
|
} catch (n) {
|
|
2002
1989
|
if (e !== this.accessContextRequestVersion || this.subjectUri !== t) return;
|
|
2003
1990
|
this.accessContextError = n instanceof Error && n.message.trim() ? n.message : "Unable to load access settings for this resource.", d("Failed to load access control context", n);
|
|
@@ -2016,10 +2003,10 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2016
2003
|
}
|
|
2017
2004
|
renderSharingInformation() {
|
|
2018
2005
|
if (!this.accessContext) return b``;
|
|
2019
|
-
let
|
|
2006
|
+
let t = !this.accessContext.inherited, n = this.accessContext?.effectiveContainer, r = n ? u(e(n)).trim() : "", i = r && r !== n ? b`<strong>${r}</strong> (${n})` : b`<strong>${n ?? "the parent container"}</strong>`;
|
|
2020
2007
|
return b`
|
|
2021
2008
|
<div class="access-control-sharing-state-panel">
|
|
2022
|
-
${
|
|
2009
|
+
${t ? b`
|
|
2023
2010
|
<div class="access-control-sharing-state-custom-row">
|
|
2024
2011
|
<p>This resource has its own sharing settings.</p>
|
|
2025
2012
|
${this.protectedTarget ? b`` : b`
|
|
@@ -2033,7 +2020,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2033
2020
|
</solid-ui-button>
|
|
2034
2021
|
`}
|
|
2035
2022
|
</div>
|
|
2036
|
-
` :
|
|
2023
|
+
` : n ? b`<p>This resource inherits sharing settings from ${i}.</p>` : b`<p>This resource inherits sharing settings, but no inherited default is available.</p>`}
|
|
2037
2024
|
${this.protectedTarget ? b`<p class="access-control-sharing-state-protected-message">This is a protected storage resource. Its primary access-control settings cannot be reset here.</p>` : b``}
|
|
2038
2025
|
</div>
|
|
2039
2026
|
`;
|
|
@@ -2071,17 +2058,17 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2071
2058
|
return this.hasMixedContainerPolicy() ? b`
|
|
2072
2059
|
<div class="access-control-mixed-policy-warning" role="alert">
|
|
2073
2060
|
<strong>This container has different access settings for the folder and its contents.</strong>
|
|
2074
|
-
<span>Changing this mixed policy is an advanced feature
|
|
2061
|
+
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
|
|
2075
2062
|
</div>
|
|
2076
2063
|
` : b``;
|
|
2077
2064
|
}
|
|
2078
2065
|
getScopedAccessGrants(e = this.getSelectedContainerScope()) {
|
|
2079
2066
|
let t = this.accessGrants ?? [];
|
|
2080
|
-
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t :
|
|
2067
|
+
return !this.isContainer() || !this.subjectUri || this.protectedTarget ? t : n(this.subjectUri, t, e, this.accessContext?.inherited ?? !1);
|
|
2081
2068
|
}
|
|
2082
2069
|
refreshScopedAccessGrantDrafts() {
|
|
2083
2070
|
let e = this.getScopedAccessGrants();
|
|
2084
|
-
this.accessGrantDrafts =
|
|
2071
|
+
this.accessGrantDrafts = Nt(e), this.authenticatedAccessRoleValue = It(e), this.publicAccessRoleValue = Lt(e);
|
|
2085
2072
|
}
|
|
2086
2073
|
selectContainerScope(e) {
|
|
2087
2074
|
this.containerScope = e, this.refreshScopedAccessGrantDrafts();
|
|
@@ -2169,7 +2156,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2169
2156
|
.addAccessRoleValue=${this.addAccessRoleValue}
|
|
2170
2157
|
.pendingAccessGrants=${this.pendingAccessGrants}
|
|
2171
2158
|
.inputError=${this.inputError}
|
|
2172
|
-
.asyncOptionsProvider=${
|
|
2159
|
+
.asyncOptionsProvider=${Pn}
|
|
2173
2160
|
@target-input=${this.onPrincipalInput}
|
|
2174
2161
|
@target-selected=${this.onPrincipalSelect}
|
|
2175
2162
|
@role-changed=${this.onAddAccessRoleInput}
|
|
@@ -2177,7 +2164,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2177
2164
|
></solid-ui-access-control-add-access>
|
|
2178
2165
|
<solid-ui-access-control-shared-access
|
|
2179
2166
|
.disabled=${!this.canMutate() || this.hasMixedContainerPolicy()}
|
|
2180
|
-
.accessGrantViewModels=${
|
|
2167
|
+
.accessGrantViewModels=${Pt(this.accessGrantDrafts)}
|
|
2181
2168
|
@access-grant-role-changed=${this.onAccessGrantRoleInput}
|
|
2182
2169
|
></solid-ui-access-control-shared-access>
|
|
2183
2170
|
<solid-ui-access-control-general-access
|
|
@@ -2236,8 +2223,8 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2236
2223
|
if (this.subjectUri && this.canMutate() && this.accessContext && !this.accessContext.inherited && !this.submitting && !this.hasMixedContainerPolicy()) {
|
|
2237
2224
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input");
|
|
2238
2225
|
try {
|
|
2239
|
-
await
|
|
2240
|
-
let e = await
|
|
2226
|
+
await c.acl.resetToDefault(this.subjectUri), await this.loadAccessContext();
|
|
2227
|
+
let e = await c.acl.findAccessGrants(this.subjectUri);
|
|
2241
2228
|
this.accessGrants = this.accessContext?.inherited ? this.accessContext.authorizations : e;
|
|
2242
2229
|
} catch (e) {
|
|
2243
2230
|
this.errors = [...this.errors, {
|
|
@@ -2253,19 +2240,19 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2253
2240
|
}
|
|
2254
2241
|
async saveAccessChanges(e = "file") {
|
|
2255
2242
|
if (this.submitting || !this.canMutate() || this.hasMixedContainerPolicy()) return;
|
|
2256
|
-
let t =
|
|
2243
|
+
let t = Ft(this.accessGrantDrafts), n = this.getGeneralAccessChanges();
|
|
2257
2244
|
if ((this.pendingAccessGrants.length || t.length || n.length) && this.subjectUri) {
|
|
2258
2245
|
this.submitting = !0, this.errors = this.errors.filter((e) => e.action === "input"), this.successfulChangesRefreshed = !0;
|
|
2259
2246
|
try {
|
|
2260
|
-
let r =
|
|
2247
|
+
let r = Ln({
|
|
2261
2248
|
pendingAccessGrants: this.pendingAccessGrants,
|
|
2262
2249
|
generalAccessChanges: n,
|
|
2263
2250
|
changedAccessGrants: t
|
|
2264
|
-
}), i = await
|
|
2251
|
+
}), i = await Fn(this.subjectUri, r, { containerScope: e });
|
|
2265
2252
|
if (i.length) {
|
|
2266
2253
|
this.errors = [...this.errors, ...i], this.principalInputValue = "", this.pendingAccessGrants = [];
|
|
2267
2254
|
try {
|
|
2268
|
-
this.accessGrants = await
|
|
2255
|
+
this.accessGrants = await c.acl.findAccessGrants(this.subjectUri);
|
|
2269
2256
|
} catch (e) {
|
|
2270
2257
|
this.successfulChangesRefreshed = !1, this.errors = [...this.errors, {
|
|
2271
2258
|
action: "save",
|
|
@@ -2298,16 +2285,16 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2298
2285
|
}
|
|
2299
2286
|
getGeneralAccessChanges() {
|
|
2300
2287
|
if (!this.subjectUri) return [];
|
|
2301
|
-
let e = this.getScopedAccessGrants(),
|
|
2302
|
-
return [this.authenticatedAccessRoleValue ===
|
|
2303
|
-
subject:
|
|
2288
|
+
let e = this.getScopedAccessGrants(), n = It(e), i = Lt(e);
|
|
2289
|
+
return [this.authenticatedAccessRoleValue === n ? void 0 : {
|
|
2290
|
+
subject: r,
|
|
2304
2291
|
role: this.authenticatedAccessRoleValue,
|
|
2305
2292
|
label: "Authenticated users"
|
|
2306
|
-
}, this.publicAccessRoleValue ===
|
|
2307
|
-
subject:
|
|
2293
|
+
}, this.publicAccessRoleValue === i ? void 0 : {
|
|
2294
|
+
subject: t,
|
|
2308
2295
|
role: this.publicAccessRoleValue,
|
|
2309
2296
|
label: "Public"
|
|
2310
|
-
}].filter(
|
|
2297
|
+
}].filter(Jr);
|
|
2311
2298
|
}
|
|
2312
2299
|
onAddAccessRoleInput(e) {
|
|
2313
2300
|
this.canMutate() && !this.hasMixedContainerPolicy() && (this.addAccessRoleValue = e.detail.role, this.pendingAccessGrants = this.pendingAccessGrants.map((t) => ({
|
|
@@ -2331,7 +2318,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2331
2318
|
this.canMutate() && !this.hasMixedContainerPolicy() && (this.pendingAccessGrants = this.pendingAccessGrants.filter((t, n) => n !== e.detail.index));
|
|
2332
2319
|
}
|
|
2333
2320
|
hasUnsavedChanges() {
|
|
2334
|
-
return !!(this.pendingAccessGrants.length || this.principalInputValue.trim() ||
|
|
2321
|
+
return !!(this.pendingAccessGrants.length || this.principalInputValue.trim() || Ft(this.accessGrantDrafts).length || this.getGeneralAccessChanges().length);
|
|
2335
2322
|
}
|
|
2336
2323
|
async commitPrincipalFromInput() {
|
|
2337
2324
|
if (!this.canMutate() || this.hasMixedContainerPolicy()) return !1;
|
|
@@ -2359,7 +2346,7 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2359
2346
|
}
|
|
2360
2347
|
async createPendingAccessGrant(e, t = this.addAccessRoleValue, n, r) {
|
|
2361
2348
|
try {
|
|
2362
|
-
let i = e.trim(), a = await
|
|
2349
|
+
let i = e.trim(), a = await On(i, n);
|
|
2363
2350
|
return a ? { grant: {
|
|
2364
2351
|
subjectType: a.subjectType,
|
|
2365
2352
|
subjectValue: a.subjectValue,
|
|
@@ -2386,104 +2373,104 @@ new (Br = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2386
2373
|
for (let n of e) t.set(`${n.subjectType}:${n.subjectValue}`, n);
|
|
2387
2374
|
return [...t.values()];
|
|
2388
2375
|
}
|
|
2389
|
-
}, {e: [ar, sr, lr, dr, pr, hr, _r, yr, xr, Cr, Tr, Dr, kr, jr, Nr, Fr, Lr,
|
|
2376
|
+
}, {e: [rr, ar, sr, lr, dr, pr, hr, _r, yr, xr, Cr, Tr, Dr, kr, jr, Nr, Fr, Lr, $n], c: [Yr, er]} = Hr(zn, [
|
|
2390
2377
|
[
|
|
2391
|
-
|
|
2378
|
+
nr,
|
|
2392
2379
|
1,
|
|
2393
2380
|
"subjectUri"
|
|
2394
2381
|
],
|
|
2395
2382
|
[
|
|
2396
|
-
|
|
2383
|
+
ir,
|
|
2397
2384
|
1,
|
|
2398
2385
|
"accessGrants"
|
|
2399
2386
|
],
|
|
2400
2387
|
[
|
|
2401
|
-
|
|
2388
|
+
or,
|
|
2402
2389
|
1,
|
|
2403
2390
|
"principalInputValue"
|
|
2404
2391
|
],
|
|
2405
2392
|
[
|
|
2406
|
-
|
|
2393
|
+
cr,
|
|
2407
2394
|
1,
|
|
2408
2395
|
"addAccessRoleValue"
|
|
2409
2396
|
],
|
|
2410
2397
|
[
|
|
2411
|
-
|
|
2398
|
+
ur,
|
|
2412
2399
|
1,
|
|
2413
2400
|
"authenticatedAccessRoleValue"
|
|
2414
2401
|
],
|
|
2415
2402
|
[
|
|
2416
|
-
|
|
2403
|
+
fr,
|
|
2417
2404
|
1,
|
|
2418
2405
|
"publicAccessRoleValue"
|
|
2419
2406
|
],
|
|
2420
2407
|
[
|
|
2421
|
-
|
|
2408
|
+
mr,
|
|
2422
2409
|
1,
|
|
2423
2410
|
"submitting"
|
|
2424
2411
|
],
|
|
2425
2412
|
[
|
|
2426
|
-
|
|
2413
|
+
gr,
|
|
2427
2414
|
1,
|
|
2428
2415
|
"pendingAccessGrants"
|
|
2429
2416
|
],
|
|
2430
2417
|
[
|
|
2431
|
-
|
|
2418
|
+
vr,
|
|
2432
2419
|
1,
|
|
2433
2420
|
"accessGrantDrafts"
|
|
2434
2421
|
],
|
|
2435
2422
|
[
|
|
2436
|
-
|
|
2423
|
+
br,
|
|
2437
2424
|
1,
|
|
2438
2425
|
"errors"
|
|
2439
2426
|
],
|
|
2440
2427
|
[
|
|
2441
|
-
|
|
2428
|
+
Sr,
|
|
2442
2429
|
1,
|
|
2443
2430
|
"successfulChangesRefreshed"
|
|
2444
2431
|
],
|
|
2445
2432
|
[
|
|
2446
|
-
|
|
2433
|
+
wr,
|
|
2447
2434
|
1,
|
|
2448
2435
|
"accessContext"
|
|
2449
2436
|
],
|
|
2450
2437
|
[
|
|
2451
|
-
|
|
2438
|
+
Er,
|
|
2452
2439
|
1,
|
|
2453
2440
|
"accessContextLoading"
|
|
2454
2441
|
],
|
|
2455
2442
|
[
|
|
2456
|
-
|
|
2443
|
+
Or,
|
|
2457
2444
|
1,
|
|
2458
2445
|
"accessContextError"
|
|
2459
2446
|
],
|
|
2460
2447
|
[
|
|
2461
|
-
|
|
2448
|
+
Ar,
|
|
2462
2449
|
1,
|
|
2463
2450
|
"advancedSharingOpen"
|
|
2464
2451
|
],
|
|
2465
2452
|
[
|
|
2466
|
-
|
|
2453
|
+
Mr,
|
|
2467
2454
|
1,
|
|
2468
2455
|
"containerScope"
|
|
2469
2456
|
],
|
|
2470
2457
|
[
|
|
2471
|
-
|
|
2458
|
+
Pr,
|
|
2472
2459
|
1,
|
|
2473
2460
|
"containerScopeAnalysis"
|
|
2474
2461
|
],
|
|
2475
2462
|
[
|
|
2476
|
-
|
|
2463
|
+
Ir,
|
|
2477
2464
|
1,
|
|
2478
2465
|
"protectedTarget"
|
|
2479
2466
|
]
|
|
2480
|
-
],
|
|
2467
|
+
], tr, 0, void 0, p), zn), Rn = class extends qr {
|
|
2481
2468
|
constructor() {
|
|
2482
|
-
super(
|
|
2469
|
+
super(Yr), $(this, "styles", Tt), er();
|
|
2483
2470
|
}
|
|
2484
|
-
}, $(
|
|
2471
|
+
}, $(Rn, Rr, void 0), Rn)();
|
|
2485
2472
|
// src/components/access-control-modal/index.ts
|
|
2486
|
-
var
|
|
2487
|
-
export {
|
|
2473
|
+
var Xr = Yr;
|
|
2474
|
+
export { Yr as n, Xr as t };
|
|
2488
2475
|
|
|
2489
|
-
//# sourceMappingURL=access-control-modal-
|
|
2476
|
+
//# sourceMappingURL=access-control-modal-CwmY_Dod.js.map
|