solid-ui 5.0.2-3 → 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.
Files changed (185) hide show
  1. package/dist/chunks/{DialogProvider-dagk2fHm.js → DialogProvider-CdesAsw-.js} +5 -6
  2. package/dist/chunks/{DialogProvider-dagk2fHm.js.map → DialogProvider-CdesAsw-.js.map} +1 -1
  3. package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js → ResourceActionsMenu-Bllpr4M5.js} +15 -16
  4. package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js.map → ResourceActionsMenu-Bllpr4M5.js.map} +1 -1
  5. package/dist/chunks/{access-control-modal-CWH98HX3.js → access-control-modal-CwmY_Dod.js} +74 -75
  6. package/dist/chunks/{access-control-modal-CWH98HX3.js.map → access-control-modal-CwmY_Dod.js.map} +1 -1
  7. package/dist/chunks/{account-Cocvv0H3.js → account-CoHPKKDu.js} +20 -21
  8. package/dist/chunks/{account-Cocvv0H3.js.map → account-CoHPKKDu.js.map} +1 -1
  9. package/dist/chunks/{auth-Df5uYksz.js → auth-CocCqS1p.js} +18 -19
  10. package/dist/chunks/{auth-Df5uYksz.js.map → auth-CocCqS1p.js.map} +1 -1
  11. package/dist/chunks/{avatar-DeotTinS.js → avatar-sNdKdWVO.js} +10 -11
  12. package/dist/chunks/{avatar-DeotTinS.js.map → avatar-sNdKdWVO.js.map} +1 -1
  13. package/dist/chunks/{button-Dy1aFjqG.js → button-D6qO2idW.js} +10 -11
  14. package/dist/chunks/{button-Dy1aFjqG.js.map → button-D6qO2idW.js.map} +1 -1
  15. package/dist/chunks/{chunk.UEBQI7VV-9M5gO7Ew.js → chunk.UEBQI7VV-lcP-fpUk.js} +12 -9
  16. package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +1 -0
  17. package/dist/chunks/{combobox-BL0-8wef.js → combobox-fSTp9qoT.js} +17 -18
  18. package/dist/chunks/{combobox-BL0-8wef.js.map → combobox-fSTp9qoT.js.map} +1 -1
  19. package/dist/chunks/{combobox-option-DjlmXt1O.js → combobox-option-DOtGuKel.js} +7 -8
  20. package/dist/chunks/{combobox-option-DjlmXt1O.js.map → combobox-option-DOtGuKel.js.map} +1 -1
  21. package/dist/chunks/{components-LxiwG5ae.js → components-C8c2Ucm5.js} +201 -190
  22. package/dist/chunks/components-C8c2Ucm5.js.map +1 -0
  23. package/dist/chunks/{context-By_u12WA.js → context-BDrfQ9bN.js} +2 -2
  24. package/dist/chunks/{context-By_u12WA.js.map → context-BDrfQ9bN.js.map} +1 -1
  25. package/dist/chunks/{dialog-CrmftB9c.js → dialog-CgYK767T.js} +15 -16
  26. package/dist/chunks/{dialog-CrmftB9c.js.map → dialog-CgYK767T.js.map} +1 -1
  27. package/dist/chunks/{dialog-content-Cw3xqJ45.js → dialog-content-DjwRH1ci.js} +5 -6
  28. package/dist/chunks/{dialog-content-Cw3xqJ45.js.map → dialog-content-DjwRH1ci.js.map} +1 -1
  29. package/dist/chunks/{dialog-footer-sFQf-2zD.js → dialog-footer-GQWi8lfB.js} +5 -6
  30. package/dist/chunks/{dialog-footer-sFQf-2zD.js.map → dialog-footer-GQWi8lfB.js.map} +1 -1
  31. package/dist/chunks/{dialog-header-xIWIqfZK.js → dialog-header-c3qOMQfb.js} +5 -6
  32. package/dist/chunks/{dialog-header-xIWIqfZK.js.map → dialog-header-c3qOMQfb.js.map} +1 -1
  33. package/dist/chunks/{dialogs-B3tHtjMf.js → dialogs-BmtLjMzg.js} +2 -2
  34. package/dist/chunks/{dialogs-B3tHtjMf.js.map → dialogs-BmtLjMzg.js.map} +1 -1
  35. package/dist/chunks/{dialogs-root-Lh2u-3Cs.js → dialogs-root-BNF3_SA8.js} +8 -9
  36. package/dist/chunks/{dialogs-root-Lh2u-3Cs.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
  37. package/dist/chunks/{error-state-DnsXVj1z.js → error-state-BD4_Wrkz.js} +10 -11
  38. package/dist/chunks/{error-state-DnsXVj1z.js.map → error-state-BD4_Wrkz.js.map} +1 -1
  39. package/dist/chunks/{file-explorer-header-B6-Q0i6V.js → file-explorer-header-D0TebSYR.js} +33 -34
  40. package/dist/chunks/file-explorer-header-D0TebSYR.js.map +1 -0
  41. package/dist/chunks/{file-explorer-provider-B3gUBkHg.js → file-explorer-provider-DpjC7uds.js} +8 -9
  42. package/dist/chunks/{file-explorer-provider-B3gUBkHg.js.map → file-explorer-provider-DpjC7uds.js.map} +1 -1
  43. package/dist/chunks/{guard-C39y81In.js → guard-BOicu9dt.js} +10 -11
  44. package/dist/chunks/{guard-C39y81In.js.map → guard-BOicu9dt.js.map} +1 -1
  45. package/dist/chunks/{input-Bi6ZBZQw.js → input-Bz3l514j.js} +11 -12
  46. package/dist/chunks/{input-Bi6ZBZQw.js.map → input-Bz3l514j.js.map} +1 -1
  47. package/dist/chunks/{login-button-fo0P8vym.js → login-button-clTw_9tX.js} +9 -10
  48. package/dist/chunks/{login-button-fo0P8vym.js.map → login-button-clTw_9tX.js.map} +1 -1
  49. package/dist/chunks/{logout-button-CF2YFgID.js → logout-button-CP-Pz70O.js} +9 -10
  50. package/dist/chunks/{logout-button-CF2YFgID.js.map → logout-button-CP-Pz70O.js.map} +1 -1
  51. package/dist/chunks/{menu-RumUciM-.js → menu-D0k2fkiE.js} +47 -49
  52. package/dist/chunks/{menu-RumUciM-.js.map → menu-D0k2fkiE.js.map} +1 -1
  53. package/dist/chunks/{menu-item-CVAZyipz.js → menu-item-nfPpH4dN.js} +10 -11
  54. package/dist/chunks/{menu-item-CVAZyipz.js.map → menu-item-nfPpH4dN.js.map} +1 -1
  55. package/dist/chunks/{photo-capture-CAfo7y6-.js → photo-capture-hJaJm4TM.js} +20 -21
  56. package/dist/chunks/photo-capture-hJaJm4TM.js.map +1 -0
  57. package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js → photo-capture-modal-BsHv6wmh.js} +28 -29
  58. package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js.map → photo-capture-modal-BsHv6wmh.js.map} +1 -1
  59. package/dist/chunks/{provide-B5NeVMM_.js → provide-z9U64q4m.js} +2 -2
  60. package/dist/chunks/{provide-B5NeVMM_.js.map → provide-z9U64q4m.js.map} +1 -1
  61. package/dist/chunks/{provider-BbT2duMy.js → provider-Cuv3Kp6G.js} +10 -11
  62. package/dist/chunks/{provider-BbT2duMy.js.map → provider-Cuv3Kp6G.js.map} +1 -1
  63. package/dist/chunks/{rdf-form-CH9bDx98.js → rdf-form-DVmTw3RG.js} +23 -24
  64. package/dist/chunks/{rdf-form-CH9bDx98.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
  65. package/dist/chunks/{rdf-input-C_V0pIS5.js → rdf-input-CRYLK-27.js} +15 -16
  66. package/dist/chunks/{rdf-input-C_V0pIS5.js.map → rdf-input-CRYLK-27.js.map} +1 -1
  67. package/dist/chunks/{select-y1Z6fwmh.js → select-ClPkDkGl.js} +9 -10
  68. package/dist/chunks/{select-y1Z6fwmh.js.map → select-ClPkDkGl.js.map} +1 -1
  69. package/dist/chunks/{select-option-U4ALXL20.js → select-option-DQan7rcB.js} +7 -8
  70. package/dist/chunks/{select-option-U4ALXL20.js.map → select-option-DQan7rcB.js.map} +1 -1
  71. package/dist/chunks/{signup-button-DicFpAjD.js → signup-button-CexdMWj6.js} +9 -10
  72. package/dist/chunks/{signup-button-DicFpAjD.js.map → signup-button-CexdMWj6.js.map} +1 -1
  73. package/dist/chunks/{solid-emblem-CeCXTpve.js → solid-emblem-DwLdkGuO.js} +7 -8
  74. package/dist/chunks/{solid-emblem-CeCXTpve.js.map → solid-emblem-DwLdkGuO.js.map} +1 -1
  75. package/dist/chunks/{src-Bhtor0ZC.js → src-DQgHAH3d.js} +2934 -2926
  76. package/dist/chunks/src-DQgHAH3d.js.map +1 -0
  77. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
  78. package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
  79. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
  80. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  81. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
  82. package/dist/components/access-control-modal.js +1 -1
  83. package/dist/components/account/Account.esm.js.map +1 -1
  84. package/dist/components/account.js +1 -1
  85. package/dist/components/avatar.js +1 -1
  86. package/dist/components/button/Button.esm.js.map +1 -1
  87. package/dist/components/button.js +1 -1
  88. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  89. package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
  90. package/dist/components/combobox-option.js +1 -1
  91. package/dist/components/combobox.js +1 -1
  92. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  93. package/dist/components/dialog-content.js +1 -1
  94. package/dist/components/dialog-footer.js +1 -1
  95. package/dist/components/dialog-header.js +1 -1
  96. package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
  97. package/dist/components/dialog-provider.js +1 -1
  98. package/dist/components/dialog.js +1 -1
  99. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  100. package/dist/components/dialogs-root.js +1 -1
  101. package/dist/components/error-state/ErrorState.esm.js.map +1 -1
  102. package/dist/components/error-state.js +1 -1
  103. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +2 -2
  104. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
  105. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -1
  106. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +20 -19
  107. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
  108. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +6 -6
  109. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
  110. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -1
  111. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +24 -23
  112. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
  113. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +7 -7
  114. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
  115. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -1
  116. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +25 -24
  117. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
  118. package/dist/components/file-explorer-header.js +1 -1
  119. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +1 -1
  120. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -1
  121. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +1 -1
  122. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -1
  123. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +8 -7
  124. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -1
  125. package/dist/components/file-explorer-provider.js +1 -1
  126. package/dist/components/guard.js +1 -1
  127. package/dist/components/input/Input.esm.js.map +1 -1
  128. package/dist/components/input.js +1 -1
  129. package/dist/components/login-button.js +1 -1
  130. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  131. package/dist/components/login-modal.js +1 -1
  132. package/dist/components/logout-button.js +1 -1
  133. package/dist/components/menu/Menu.esm.js.map +1 -1
  134. package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
  135. package/dist/components/menu-item.js +1 -1
  136. package/dist/components/menu.js +1 -1
  137. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
  138. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
  139. package/dist/components/photo-capture-modal.js +1 -1
  140. package/dist/components/photo-capture.js +1 -1
  141. package/dist/components/provider/Provider.esm.js.map +1 -1
  142. package/dist/components/provider.js +1 -1
  143. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  144. package/dist/components/rdf-form.js +1 -1
  145. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  146. package/dist/components/rdf-input.js +1 -1
  147. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +8 -8
  148. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  149. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
  150. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +18 -17
  151. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
  152. package/dist/components/resource-actions-menu.js +1 -1
  153. package/dist/components/select/Select.esm.js.map +1 -1
  154. package/dist/components/select-option/SelectOption.esm.js.map +1 -1
  155. package/dist/components/select-option.js +1 -1
  156. package/dist/components/select.js +1 -1
  157. package/dist/components/signup-button.js +1 -1
  158. package/dist/components/solid-emblem.js +1 -1
  159. package/dist/components.js +30 -30
  160. package/dist/index.cjs.js +1 -1
  161. package/dist/index.esm.js +5 -5
  162. package/dist/index.esm.js.map +1 -1
  163. package/dist/index.js +8 -9
  164. package/dist/lib/file-explorer/index.cjs.js +1 -1
  165. package/dist/lib/file-explorer/index.esm.js +3 -3
  166. package/dist/lib/file-explorer/relevant-panes.cjs.js +1 -1
  167. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -1
  168. package/dist/lib/file-explorer/relevant-panes.d.ts +7 -0
  169. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -1
  170. package/dist/lib/file-explorer/relevant-panes.esm.js +14 -5
  171. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -1
  172. package/dist/loader.js +8 -9
  173. package/dist/solid-ui.js +28 -28
  174. package/dist/solid-ui.min.js +28 -28
  175. package/dist/solid-ui.min.js.map +1 -1
  176. package/package.json +1 -1
  177. package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +0 -1
  178. package/dist/chunks/components-LxiwG5ae.js.map +0 -1
  179. package/dist/chunks/custom-element-BW8Ua4c7.js +0 -9
  180. package/dist/chunks/custom-element-BW8Ua4c7.js.map +0 -1
  181. package/dist/chunks/decorators-V-B013l9.js +0 -12
  182. package/dist/chunks/decorators-V-B013l9.js.map +0 -1
  183. package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +0 -1
  184. package/dist/chunks/photo-capture-CAfo7y6-.js.map +0 -1
  185. package/dist/chunks/src-Bhtor0ZC.js.map +0 -1
@@ -1,7 +1,6 @@
1
- import { c as e, i as t, o as n, p as r, u as i } from "./components-LxiwG5ae.js";
2
- import { t as a } from "./decorators-V-B013l9.js";
1
+ import { c as e, g as t, i as n, o as r, p as i, u as a } from "./components-C8c2Ucm5.js";
3
2
  import "./x-D1JUUSOS.js";
4
- import "./button-Dy1aFjqG.js";
3
+ import "./button-D6qO2idW.js";
5
4
  // ~icons/lucide/triangle-alert
6
5
  var o = class extends HTMLElement {
7
6
  constructor() {
@@ -10,7 +9,7 @@ var o = class extends HTMLElement {
10
9
  };
11
10
  customElements.get("icon-lucide-triangle-alert") || customElements.define("icon-lucide-triangle-alert", o);
12
11
  // src/components/error-state/ErrorState.styles.css
13
- var s = r`:host{color:var(--solid-ui-color-gray-800,#334155);display:block}section{box-sizing:border-box;border:1px solid var(--solid-ui-color-pink-200,#f0d8dc);background:var(--solid-ui-color-pink-50,#fff7f8);border-radius:10px;align-items:flex-start;gap:12px;width:100%;padding:16px 18px;display:flex;position:relative;box-shadow:0 1px 2px #0f172a14}.close-button{--solid-ui-font-size-2xl:var(--solid-ui-font-size-md,1rem);color:var(--solid-ui-color-gray-500);position:absolute;top:10px;right:10px}.icon{height:28px;color:var(--solid-ui-color-red-500,#fb2c36);background:var(--solid-ui-color-pink-100,#ffe7eb);border-radius:7px;flex:0 0 28px;place-items:center;display:grid}icon-lucide-triangle-alert{width:16px;height:16px}.content{flex:1;min-width:0;max-width:100%;padding-right:28px}h2{color:var(--solid-ui-color-red-700,#b00020);font-size:var(--solid-ui-font-size-lg,1.125rem);margin:1px 0 4px;font-weight:600;line-height:1.3}p{width:100%;max-width:70ch;color:var(--solid-ui-color-gray-600,#64748b);font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere;margin:0 0 8px;line-height:1.5}slot:not(:empty){margin-top:8px;display:block}::slotted(*){max-width:100%;color:var(--solid-ui-error-state-slot-color,var(--solid-ui-color-gray-600,#64748b));font-size:var(--solid-ui-error-state-slot-font-size,var(--solid-ui-font-size-xs,.75rem));line-height:1.5}`, c, l, u, d, f, p, m, h, g, _, v, y, b;
12
+ var s = i`:host{color:var(--solid-ui-color-gray-800,#334155);display:block}section{box-sizing:border-box;border:1px solid var(--solid-ui-color-pink-200,#f0d8dc);background:var(--solid-ui-color-pink-50,#fff7f8);border-radius:10px;align-items:flex-start;gap:12px;width:100%;padding:16px 18px;display:flex;position:relative;box-shadow:0 1px 2px #0f172a14}.close-button{--solid-ui-font-size-2xl:var(--solid-ui-font-size-md,1rem);color:var(--solid-ui-color-gray-500);position:absolute;top:10px;right:10px}.icon{height:28px;color:var(--solid-ui-color-red-500,#fb2c36);background:var(--solid-ui-color-pink-100,#ffe7eb);border-radius:7px;flex:0 0 28px;place-items:center;display:grid}icon-lucide-triangle-alert{width:16px;height:16px}.content{flex:1;min-width:0;max-width:100%;padding-right:28px}h2{color:var(--solid-ui-color-red-700,#b00020);font-size:var(--solid-ui-font-size-lg,1.125rem);margin:1px 0 4px;font-weight:600;line-height:1.3}p{width:100%;max-width:70ch;color:var(--solid-ui-color-gray-600,#64748b);font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere;margin:0 0 8px;line-height:1.5}slot:not(:empty){margin-top:8px;display:block}::slotted(*){max-width:100%;color:var(--solid-ui-error-state-slot-color,var(--solid-ui-color-gray-600,#64748b));font-size:var(--solid-ui-error-state-slot-font-size,var(--solid-ui-font-size-xs,.75rem));line-height:1.5}`, c, l, u, d, f, p, m, h, g, _, v, y, b;
14
13
  function x(e, t, n) {
15
14
  S(e, t), t.set(e, n);
16
15
  }
@@ -182,9 +181,9 @@ function j(e) {
182
181
  function M(e) {
183
182
  return e;
184
183
  }
185
- m = [a("solid-ui-error-state")];
184
+ m = [t("solid-ui-error-state")];
186
185
  var N;
187
- new (y = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), b = (h = t({ type: String }), _ = t({ type: String }), "title"), l = class extends n {
186
+ new (y = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), b = (h = n({ type: String }), _ = n({ type: String }), "title"), l = class extends r {
188
187
  constructor(...e) {
189
188
  super(...e), x(this, u, (f(this), g(this, ""))), x(this, d, v(this, ""));
190
189
  }
@@ -201,7 +200,7 @@ new (y = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), b =
201
200
  C(d, this, e);
202
201
  }
203
202
  render() {
204
- return i`
203
+ return a`
205
204
  <section role="alert">
206
205
  <solid-ui-button class="close-button" variant="ghost" @click=${this.onClose}>
207
206
  <icon-lucide-x slot="icon" aria-hidden="true"></icon-lucide-x>
@@ -211,8 +210,8 @@ new (y = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), b =
211
210
  <icon-lucide-triangle-alert aria-hidden="true"></icon-lucide-triangle-alert>
212
211
  </div>
213
212
  <div class="content">
214
- ${this.title ? i`<h2>${this.title}</h2>` : e}
215
- ${this.message ? i`<p>${this.message}</p>` : e}
213
+ ${this.title ? a`<h2>${this.title}</h2>` : e}
214
+ ${this.message ? a`<p>${this.message}</p>` : e}
216
215
  <slot></slot>
217
216
  </div>
218
217
  </section>
@@ -232,11 +231,11 @@ new (y = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), b =
232
231
  _,
233
232
  1,
234
233
  "message"
235
- ]], m, 0, void 0, n), l), c = class extends M {
234
+ ]], m, 0, void 0, r), l), c = class extends M {
236
235
  constructor() {
237
236
  super(N), E(this, "styles", s), p();
238
237
  }
239
238
  }, E(c, y, void 0), c)();
240
239
  export { N as t };
241
240
 
242
- //# sourceMappingURL=error-state-DnsXVj1z.js.map
241
+ //# sourceMappingURL=error-state-BD4_Wrkz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-state-DnsXVj1z.js","names":["customElement","WebComponent","html","nothing","property","styles","_classDecs","_ErrorState","_ErrorState2","_A","WeakMap","_B","_ref","_titleDecs","type","String","_messageDecs","_ErrorState3","ErrorState","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_title","_init_message","_classPrivateFieldGet","title","v","_classPrivateFieldSet","message","render","onClose","dispatchEvent","CustomEvent","bubbles","composed","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","property","nothing","styles","A","n","WebComponent","i","b","customElement","iconlucidetrianglealert","ErrorState_styles_default","_Class","_ErrorState3","_A","_B","_initProto","_initClass","_classDecs","_titleDecs","_init_title","_messageDecs","_init_message","_ErrorState2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","o","c","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_ErrorState","args"],"sources":["../../src/components/error-state/ErrorState.styles.css","../../src/components/error-state/ErrorState.ts"],"sourcesContent":[":host {\n display: block;\n color: var(--solid-ui-color-gray-800, #334155);\n}\n\nsection {\n box-sizing: border-box;\n position: relative;\n width: 100%;\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 16px 18px;\n border: 1px solid var(--solid-ui-color-pink-200, #f0d8dc);\n border-radius: 10px;\n background: var(--solid-ui-color-pink-50, #fff7f8);\n box-shadow: 0 1px 2px rgb(15 23 42 / 8%);\n}\n\n.close-button {\n --solid-ui-font-size-2xl: var(--solid-ui-font-size-md, 1rem);\n\n position: absolute;\n top: 10px;\n right: 10px;\n color: var(--solid-ui-color-gray-500);\n}\n\n.icon {\n display: grid;\n flex: 0 0 28px;\n height: 28px;\n place-items: center;\n border-radius: 7px;\n color: var(--solid-ui-color-red-500, #fb2c36);\n background: var(--solid-ui-color-pink-100, #ffe7eb);\n}\n\nicon-lucide-triangle-alert {\n width: 16px;\n height: 16px;\n}\n\n.content {\n min-width: 0;\n flex: 1;\n max-width: 100%;\n padding-right: 28px;\n}\n\nh2 {\n margin: 1px 0 4px;\n color: var(--solid-ui-color-red-700, #b00020);\n font-size: var(--solid-ui-font-size-lg, 1.125rem);\n font-weight: 600;\n line-height: 1.3;\n}\n\np {\n width: 100%;\n max-width: 70ch;\n margin: 0 0 8px;\n color: var(--solid-ui-color-gray-600, #64748b);\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n line-height: 1.5;\n overflow-wrap: anywhere;\n}\n\nslot:not(:empty) {\n display: block;\n margin-top: 8px;\n}\n\n::slotted(*) {\n max-width: 100%;\n color: var(--solid-ui-error-state-slot-color, var(--solid-ui-color-gray-600, #64748b));\n font-size: var(--solid-ui-error-state-slot-font-size, var(--solid-ui-font-size-xs, 0.75rem));\n line-height: 1.5;\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport '@/components/button'\nimport '~icons/lucide/triangle-alert'\nimport '~icons/lucide/x'\n\nimport styles from './ErrorState.styles.css'\n\n@customElement('solid-ui-error-state')\nexport default class ErrorState extends WebComponent {\n static styles = styles\n\n @property({ type: String })\n accessor title = ''\n\n @property({ type: String })\n accessor message = ''\n\n render () {\n return html`\n <section role=\"alert\">\n <solid-ui-button class=\"close-button\" variant=\"ghost\" @click=${this.onClose}>\n <icon-lucide-x slot=\"icon\" aria-hidden=\"true\"></icon-lucide-x>\n <span class=\"sr-only\">Close</span>\n </solid-ui-button>\n <div class=\"icon\">\n <icon-lucide-triangle-alert aria-hidden=\"true\"></icon-lucide-triangle-alert>\n </div>\n <div class=\"content\">\n ${this.title ? html`<h2>${this.title}</h2>` : nothing}\n ${this.message ? html`<p>${this.message}</p>` : nothing}\n <slot></slot>\n </div>\n </section>\n `\n }\n\n private onClose () {\n this.dispatchEvent(new CustomEvent('close', {\n bubbles: true,\n composed: true\n }))\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACQ4CM,IAAA,CAE3CN,EAAc,sBAAsB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,KAAAC,IAInCT,EAAS,EAAEU,MAAMC,OAAO,CAAC,GAACC,IAG1BZ,EAAS,EAAEU,MAAMC,OAAO,CAAC,GAAC,UAAAE,IAP7B,cACwChB,EAAa;CAAAkB,YAAA,GAAAC,GAAA;EAIhCC,AAJgC,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAZ,IAAAa,EAAA,IAAA,GAAAC,EAAA,MAIlC,EAAE,EAAA,GAAAF,EAAA,MAAAV,GAAAa,EAAA,MAGA,EAAE,CAAA;CAAA;CAAA,KAAAZ,KAAA;EAAA,OAAAa,EAAAhB,GAAA,IAAA;CAAA;CAAA,IAHZiB,MAAKC,GAAA;EAAAC,EAAAnB,GAAA,MAAAkB,CAAA;CAAA;CAAA,IAGLE,UAAO;EAAA,OAAAJ,EAAAd,GAAA,IAAA;CAAA;CAAA,IAAPkB,QAAOF,GAAA;EAAAC,EAAAjB,GAAA,MAAAgB,CAAA;CAAA;CAEhBG,SAAU;EACR,OAAO5B,CAAI;;uEAEwD,KAAK6B,QAAO;;;;;;;;YAQvE,KAAKL,QAAQxB,CAAI,OAAO,KAAKwB,MAAK,SAAUvB,EAAO;YACnD,KAAK0B,UAAU3B,CAAI,MAAM,KAAK2B,QAAO,QAAS1B,EAAO;;;;;CAK/D;CAEQ4B,UAAW;EACjB,KAAKC,cAAc,IAAIC,YAAY,SAAS;GAC1CC,SAAS;GACTC,UAAU;EACZ,CAAC,CAAC;CACJ;AACF,GAAC,CAAAC,GAAA,CAAAb,GAAAC,GAAAF,IAAAe,GAAA,CAAA9B,GAAA+B,MAAAC,EAAAtB,GAAA,CAAA;CAAAJ;CAAA;CAAA;AAAA,GAAA;CAAAG;CAAA;CAAA;AAAA,CAAA,GAAAV,GAAA,GAAA,KAAA,GAlCuCL,CAAY,GAAAgB,IAAAuB,IAAA,cAAAC,EAAA;CAAAtB,cAAA;EAAA,MAAAZ,CAAA,GAAAmC,EAAA,MAAA,UAClCrC,CAAM,GAAAiC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAhC,GAAA,KAAA,CAAA,GAAAgC,GAAA"}
1
+ {"version":3,"file":"error-state-BD4_Wrkz.js","names":["customElement","WebComponent","html","nothing","property","styles","_classDecs","_ErrorState","_ErrorState2","_A","WeakMap","_B","_ref","_titleDecs","type","String","_messageDecs","_ErrorState3","ErrorState","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_title","_init_message","_classPrivateFieldGet","title","v","_classPrivateFieldSet","message","render","onClose","dispatchEvent","CustomEvent","bubbles","composed","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","property","nothing","styles","A","customElement","WebComponent","b","iconlucidetrianglealert","ErrorState_styles_default","_Class","_ErrorState3","_A","_B","_initProto","_initClass","_classDecs","_titleDecs","_init_title","_messageDecs","_init_message","_ErrorState2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_ErrorState","args"],"sources":["../../src/components/error-state/ErrorState.styles.css","../../src/components/error-state/ErrorState.ts"],"sourcesContent":[":host {\n display: block;\n color: var(--solid-ui-color-gray-800, #334155);\n}\n\nsection {\n box-sizing: border-box;\n position: relative;\n width: 100%;\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 16px 18px;\n border: 1px solid var(--solid-ui-color-pink-200, #f0d8dc);\n border-radius: 10px;\n background: var(--solid-ui-color-pink-50, #fff7f8);\n box-shadow: 0 1px 2px rgb(15 23 42 / 8%);\n}\n\n.close-button {\n --solid-ui-font-size-2xl: var(--solid-ui-font-size-md, 1rem);\n\n position: absolute;\n top: 10px;\n right: 10px;\n color: var(--solid-ui-color-gray-500);\n}\n\n.icon {\n display: grid;\n flex: 0 0 28px;\n height: 28px;\n place-items: center;\n border-radius: 7px;\n color: var(--solid-ui-color-red-500, #fb2c36);\n background: var(--solid-ui-color-pink-100, #ffe7eb);\n}\n\nicon-lucide-triangle-alert {\n width: 16px;\n height: 16px;\n}\n\n.content {\n min-width: 0;\n flex: 1;\n max-width: 100%;\n padding-right: 28px;\n}\n\nh2 {\n margin: 1px 0 4px;\n color: var(--solid-ui-color-red-700, #b00020);\n font-size: var(--solid-ui-font-size-lg, 1.125rem);\n font-weight: 600;\n line-height: 1.3;\n}\n\np {\n width: 100%;\n max-width: 70ch;\n margin: 0 0 8px;\n color: var(--solid-ui-color-gray-600, #64748b);\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n line-height: 1.5;\n overflow-wrap: anywhere;\n}\n\nslot:not(:empty) {\n display: block;\n margin-top: 8px;\n}\n\n::slotted(*) {\n max-width: 100%;\n color: var(--solid-ui-error-state-slot-color, var(--solid-ui-color-gray-600, #64748b));\n font-size: var(--solid-ui-error-state-slot-font-size, var(--solid-ui-font-size-xs, 0.75rem));\n line-height: 1.5;\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport '@/components/button'\nimport '~icons/lucide/triangle-alert'\nimport '~icons/lucide/x'\n\nimport styles from './ErrorState.styles.css'\n\n@customElement('solid-ui-error-state')\nexport default class ErrorState extends WebComponent {\n static styles = styles\n\n @property({ type: String })\n accessor title = ''\n\n @property({ type: String })\n accessor message = ''\n\n render () {\n return html`\n <section role=\"alert\">\n <solid-ui-button class=\"close-button\" variant=\"ghost\" @click=${this.onClose}>\n <icon-lucide-x slot=\"icon\" aria-hidden=\"true\"></icon-lucide-x>\n <span class=\"sr-only\">Close</span>\n </solid-ui-button>\n <div class=\"icon\">\n <icon-lucide-triangle-alert aria-hidden=\"true\"></icon-lucide-triangle-alert>\n </div>\n <div class=\"content\">\n ${this.title ? html`<h2>${this.title}</h2>` : nothing}\n ${this.message ? html`<p>${this.message}</p>` : nothing}\n <slot></slot>\n </div>\n </section>\n `\n }\n\n private onClose () {\n this.dispatchEvent(new CustomEvent('close', {\n bubbles: true,\n composed: true\n }))\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACQ4CM,IAAA,CAE3CN,EAAc,sBAAsB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,KAAAC,IAInCT,EAAS,EAAEU,MAAMC,OAAO,CAAC,GAACC,IAG1BZ,EAAS,EAAEU,MAAMC,OAAO,CAAC,GAAC,UAAAE,IAP7B,cACwChB,EAAa;CAAAkB,YAAA,GAAAC,GAAA;EAIhCC,AAJgC,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAZ,IAAAa,EAAA,IAAA,GAAAC,EAAA,MAIlC,EAAE,EAAA,GAAAF,EAAA,MAAAV,GAAAa,EAAA,MAGA,EAAE,CAAA;CAAA;CAAA,KAAAZ,KAAA;EAAA,OAAAa,EAAAhB,GAAA,IAAA;CAAA;CAAA,IAHZiB,MAAKC,GAAA;EAAAC,EAAAnB,GAAA,MAAAkB,CAAA;CAAA;CAAA,IAGLE,UAAO;EAAA,OAAAJ,EAAAd,GAAA,IAAA;CAAA;CAAA,IAAPkB,QAAOF,GAAA;EAAAC,EAAAjB,GAAA,MAAAgB,CAAA;CAAA;CAEhBG,SAAU;EACR,OAAO5B,CAAI;;uEAEwD,KAAK6B,QAAO;;;;;;;;YAQvE,KAAKL,QAAQxB,CAAI,OAAO,KAAKwB,MAAK,SAAUvB,EAAO;YACnD,KAAK0B,UAAU3B,CAAI,MAAM,KAAK2B,QAAO,QAAS1B,EAAO;;;;;CAK/D;CAEQ4B,UAAW;EACjB,KAAKC,cAAc,IAAIC,YAAY,SAAS;GAC1CC,SAAS;GACTC,UAAU;EACZ,CAAC,CAAC;CACJ;AACF,GAAC,CAAAC,GAAA,CAAAb,GAAAC,GAAAF,IAAAe,GAAA,CAAA9B,GAAA+B,MAAAC,EAAAtB,GAAA,CAAA;CAAAJ;CAAA;CAAA;AAAA,GAAA;CAAAG;CAAA;CAAA;AAAA,CAAA,GAAAV,GAAA,GAAA,KAAA,GAlCuCL,CAAY,GAAAgB,IAAAuB,IAAA,cAAAC,EAAA;CAAAtB,cAAA;EAAA,MAAAZ,CAAA,GAAAmC,EAAA,MAAA,UAClCrC,CAAM,GAAAiC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAhC,GAAA,KAAA,CAAA,GAAAgC,GAAA"}
@@ -1,14 +1,13 @@
1
1
  import { E as e, t } from "./solidLogicSingleton.esm-BXyHD7mn.js";
2
2
  import { u as n } from "./style-CXaw5EYi.js";
3
3
  import { S as r } from "./widgets-BBEQu0CS.js";
4
- import { c as i, i as a, o, p as s, r as c, u as l, y as u } from "./components-LxiwG5ae.js";
5
- import { t as d } from "./custom-element-BW8Ua4c7.js";
4
+ import { b as i, c as a, g as o, i as s, o as c, p as l, r as u, u as d } from "./components-C8c2Ucm5.js";
6
5
  import { t as f } from "./query-DjAOg-tk.js";
7
- import "./button-Dy1aFjqG.js";
8
- import { n as p, t as m } from "./context-By_u12WA.js";
6
+ import "./button-D6qO2idW.js";
7
+ import { n as p, t as m } from "./context-BDrfQ9bN.js";
9
8
  import { n as h, t as g } from "./events-CXQHDCs2.js";
10
9
  import "./globe-CsCgZcy5.js";
11
- import { n as _, r as v } from "./ResourceActionsMenu-o-8kWx8z.js";
10
+ import { n as _, r as v } from "./ResourceActionsMenu-Bllpr4M5.js";
12
11
  // ~icons/lucide/share-2
13
12
  var y = class extends HTMLElement {
14
13
  constructor() {
@@ -17,7 +16,7 @@ var y = class extends HTMLElement {
17
16
  };
18
17
  customElements.get("icon-lucide-share-2") || customElements.define("icon-lucide-share-2", y);
19
18
  // src/components/file-explorer-header/FileExplorerHeader.styles.css
20
- var b = s`:host{& header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}}`, x = class extends HTMLElement {
19
+ var b = l`:host{& header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}}`, x = class extends HTMLElement {
21
20
  constructor() {
22
21
  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=\"16\" r=\"1\"/><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 10 0v3\"/></g></svg>";
23
22
  }
@@ -31,7 +30,7 @@ var S = class extends HTMLElement {
31
30
  };
32
31
  customElements.get("icon-lucide-arrow-left") || customElements.define("icon-lucide-arrow-left", S);
33
32
  // src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css
34
- var C = s`:host{& .file-explorer-header-summary{text-align:left;flex-wrap:wrap;flex:auto;justify-content:flex-start;align-items:center;gap:6px;min-width:0;display:flex}& h1{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-xl,1.25rem);align-items:center;gap:8px;margin:0;font-weight:500;display:flex}& .resource-info{flex-direction:column;min-width:0;display:flex}& .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}& .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}& .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}& p{color:var(--solid-ui-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);align-items:center;gap:5px;font-weight:500;display:flex}& .public{color:var(--blue-400,#51a2ff);background:var(--blue-50,#eff6ff);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}& .private{color:var(--yellow-600,#d08700);background:var(--yellow-100,#fef9c2);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}& icon-lucide-globe,& icon-lucide-lock-keyhole{width:.875rem;height:.875rem}& .resource-date{font-size:inherit}& icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){& .file-explorer-header-summary{gap:7px}& h1{font-size:14px}& .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}& p{font-size:14px}& .resource-date{font-size:10px}& .public,& .private{font-size:9px}& icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}}`, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge;
33
+ var C = l`:host{& .file-explorer-header-summary{text-align:left;flex-wrap:wrap;flex:auto;justify-content:flex-start;align-items:center;gap:6px;min-width:0;display:flex}& h1{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-xl,1.25rem);align-items:center;gap:8px;margin:0;font-weight:500;display:flex}& .resource-info{flex-direction:column;min-width:0;display:flex}& .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}& .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}& .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}& p{color:var(--solid-ui-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);align-items:center;gap:5px;font-weight:500;display:flex}& .public{color:var(--blue-400,#51a2ff);background:var(--blue-50,#eff6ff);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}& .private{color:var(--yellow-600,#d08700);background:var(--yellow-100,#fef9c2);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}& icon-lucide-globe,& icon-lucide-lock-keyhole{width:.875rem;height:.875rem}& .resource-date{font-size:inherit}& icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){& .file-explorer-header-summary{gap:7px}& h1{font-size:14px}& .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}& p{font-size:14px}& .resource-date{font-size:10px}& .public,& .private{font-size:9px}& icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}}`, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge;
35
34
  function M(e, t, n) {
36
35
  _e(e, t), t.set(e, n);
37
36
  }
@@ -203,12 +202,12 @@ function Ce(e) {
203
202
  function we(e) {
204
203
  return e;
205
204
  }
206
- ne = [d("solid-ui-file-explorer-header-summary")];
205
+ ne = [o("solid-ui-file-explorer-header-summary")];
207
206
  var Te;
208
- new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), ge = (re = u({
207
+ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), ge = (re = i({
209
208
  context: p,
210
209
  subscribe: !0
211
- }), ae = a({ attribute: !1 }), se = a({ attribute: !1 }), le = a({ attribute: !1 }), de = c(), pe = f("h1"), "_draggableSubjectUri"), T = class extends o {
210
+ }), ae = s({ attribute: !1 }), se = s({ attribute: !1 }), le = s({ attribute: !1 }), de = u(), pe = f("h1"), "_draggableSubjectUri"), T = class extends c {
212
211
  constructor(...e) {
213
212
  super(...e), F(this, ge, void ee(this)), F(this, "_paneIconGeneration", 0), M(this, E, ie(this, m)), M(this, D, oe(this)), M(this, O, ce(this)), M(this, k, ue(this, {
214
213
  modified: void 0,
@@ -285,32 +284,32 @@ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O =
285
284
  }
286
285
  renderContainerResourceHeader(e, t) {
287
286
  let n = _(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
288
- return l`
287
+ return d`
289
288
  <div class="container-info">
290
289
  <h1>
291
290
  <span>${e}</span>
292
291
  </h1>
293
292
  <p>
294
293
  ${n} items
295
- ${t ? l`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : l`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
294
+ ${t ? d`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : d`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
296
295
  </p>
297
296
  </div>
298
297
  `;
299
298
  }
300
299
  renderResourceHeader(e, t) {
301
300
  let n = this.formatModifiedDate(this.responseMetadata.modified);
302
- return l`
301
+ return d`
303
302
  <div class="resource-info">
304
303
  <h1>
305
304
  <span>${e}</span>
306
305
  </h1>
307
- <p><span class="resource-date">${n}</span> ${t ? l`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : l`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
306
+ <p><span class="resource-date">${n}</span> ${t ? d`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : d`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
308
307
  </div>
309
308
  `;
310
309
  }
311
310
  render() {
312
311
  let t = this.fileExplorerContext?.subjectUri ? e(this.fileExplorerContext.subjectUri) : void 0, r = t ? n(t) : "", i = this.responseMetadata.isPublic, a = v(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
313
- return l`
312
+ return d`
314
313
  <div class="file-explorer-header-summary">
315
314
  <solid-ui-button
316
315
  variant="ghost"
@@ -321,7 +320,7 @@ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O =
321
320
  <span class="sr-only">Back</span>
322
321
  </solid-ui-button>
323
322
  <span class="pane-icon">
324
- ${this.resolvedPaneIcon ? l`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
323
+ ${this.resolvedPaneIcon ? d`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
325
324
  </span>
326
325
  ${a ? this.renderContainerResourceHeader(r, i) : this.renderResourceHeader(r, i)}
327
326
  </div>
@@ -359,13 +358,13 @@ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O =
359
358
  1,
360
359
  "titleHeading"
361
360
  ]
362
- ], ne, 0, void 0, o), T), w = class extends we {
361
+ ], ne, 0, void 0, c), T), w = class extends we {
363
362
  constructor() {
364
363
  super(Te), F(this, "styles", C), te();
365
364
  }
366
365
  }, F(w, he, void 0), w)();
367
366
  // src/components/file-explorer-header/FileExplorerHeaderControls.styles.css
368
- var Ee = s`:host{flex:0 auto;min-width:0;& div{text-align:right;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}& div>*{flex:0 auto}& .file-explorer-header-action-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);padding:0}& .dirtyIndicator{color:#92400e;white-space:nowrap;background:#fffbeb;border:1px solid #f59e0b;border-radius:999px;align-items:center;padding:4px 8px;font-size:.72rem;font-weight:600;line-height:1;display:inline-flex}& icon-lucide-user-round-cog,& icon-lucide-pencil{width:16px;height:16px}@media (width<=900px){& div{padding-right:3px}}@media (width<=600px){& div{justify-content:flex-start;gap:5px}& .file-explorer-header-action-button{display:none}& icon-lucide-ellipsis-vertical{aspect-ratio:1;flex-shrink:0;width:15.36px;height:15.36px}}}`, De, Oe, I, L, R, z, B, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue;
367
+ var Ee = l`:host{flex:0 auto;min-width:0;& div{text-align:right;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}& div>*{flex:0 auto}& .file-explorer-header-action-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);padding:0}& .dirtyIndicator{color:#92400e;white-space:nowrap;background:#fffbeb;border:1px solid #f59e0b;border-radius:999px;align-items:center;padding:4px 8px;font-size:.72rem;font-weight:600;line-height:1;display:inline-flex}& icon-lucide-user-round-cog,& icon-lucide-pencil{width:16px;height:16px}@media (width<=900px){& div{padding-right:3px}}@media (width<=600px){& div{justify-content:flex-start;gap:5px}& .file-explorer-header-action-button{display:none}& icon-lucide-ellipsis-vertical{aspect-ratio:1;flex-shrink:0;width:15.36px;height:15.36px}}}`, De, Oe, I, L, R, z, B, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue;
369
368
  function V(e, t, n) {
370
369
  We(e, t), t.set(e, n);
371
370
  }
@@ -537,12 +536,12 @@ function Xe(e) {
537
536
  function Ze(e) {
538
537
  return e;
539
538
  }
540
- je = [d("solid-ui-file-explorer-header-controls")];
539
+ je = [o("solid-ui-file-explorer-header-controls")];
541
540
  var Qe;
542
- new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), Ue = (Me = u({
541
+ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), Ue = (Me = i({
543
542
  context: p,
544
543
  subscribe: !0
545
- }), Pe = a({ attribute: !1 }), Ie = a({ type: Boolean }), Re = a({ type: Boolean }), Be = c(), "mobileMediaQuery"), Oe = class extends o {
544
+ }), Pe = s({ attribute: !1 }), Ie = s({ type: Boolean }), Re = s({ type: Boolean }), Be = u(), "mobileMediaQuery"), Oe = class extends c {
546
545
  constructor(...e) {
547
546
  super(...e), W(this, Ue, void ke(this)), W(this, "mobileQuery", "(max-width: 600px)"), W(this, "handleMobileMediaChange", (e) => {
548
547
  this.isMobile = e.matches;
@@ -595,19 +594,19 @@ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
595
594
  return this.canEdit ? "Edit" : "No Access";
596
595
  }
597
596
  renderDirtyIndicator() {
598
- return this.fileExplorerContext.isDirty ? l`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>` : i;
597
+ return this.fileExplorerContext.isDirty ? d`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>` : a;
599
598
  }
600
599
  render() {
601
600
  let e = v(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri), t = this.fileExplorerContext.canEdit;
602
- return l`
601
+ return d`
603
602
  <div>
604
603
  ${this.renderDirtyIndicator()}
605
- ${!e && !this.isMobile && this.canManageAccess ? l`
604
+ ${!e && !this.isMobile && this.canManageAccess ? d`
606
605
  <solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.handleManageAccess}>
607
606
  <icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
608
607
  <span class="sr-only">Manage access</span>
609
608
  </solid-ui-button>
610
- ${t ? l`
609
+ ${t ? d`
611
610
  <solid-ui-button
612
611
  class="file-explorer-header-action-button"
613
612
  variant="ghost"
@@ -618,8 +617,8 @@ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
618
617
  <icon-lucide-pencil slot="icon"></icon-lucide-pencil>
619
618
  <span class="sr-only">Edit</span>
620
619
  </solid-ui-button>
621
- ` : i}
622
- ` : i}
620
+ ` : a}
621
+ ` : a}
623
622
  <solid-ui-resource-actions-menu
624
623
  .store=${this.fileExplorerContext.store}
625
624
  .handleAccessClick=${this.handleManageAccess}
@@ -660,7 +659,7 @@ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R =
660
659
  1,
661
660
  "isMobile"
662
661
  ]
663
- ], je, 0, void 0, o), Oe), De = class extends Ze {
662
+ ], je, 0, void 0, c), Oe), De = class extends Ze {
664
663
  constructor() {
665
664
  super(Qe), W(this, "styles", Ee), Ae();
666
665
  }
@@ -838,12 +837,12 @@ function bt(e) {
838
837
  function xt(e) {
839
838
  return e;
840
839
  }
841
- rt = [d("solid-ui-file-explorer-header")];
840
+ rt = [o("solid-ui-file-explorer-header")];
842
841
  var $;
843
- new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), pt = (it = u({
842
+ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), pt = (it = i({
844
843
  context: p,
845
844
  subscribe: !0
846
- }), ot = a({ attribute: !1 }), ct = a({ attribute: !1 }), ut = c(), "_loadedMetadataForUri"), et = class extends o {
845
+ }), ot = s({ attribute: !1 }), ct = s({ attribute: !1 }), ut = u(), "_loadedMetadataForUri"), et = class extends c {
847
846
  constructor(...e) {
848
847
  super(...e), Q(this, pt, void tt(this)), Q(this, "_metadataGeneration", 0), Y(this, G, at(this, m)), Y(this, K, st(this, [])), Y(this, q, lt(this, void 0)), Y(this, J, dt(this, {
849
848
  modified: void 0,
@@ -915,7 +914,7 @@ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
915
914
  }
916
915
  }
917
916
  render() {
918
- return l`
917
+ return d`
919
918
  <header>
920
919
  <solid-ui-file-explorer-header-summary
921
920
  .paneIcon=${this.paneIcon}
@@ -951,7 +950,7 @@ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
951
950
  1,
952
951
  "responseMetadata"
953
952
  ]
954
- ], rt, 0, void 0, o), et), $e = class extends xt {
953
+ ], rt, 0, void 0, c), et), $e = class extends xt {
955
954
  constructor() {
956
955
  super($), Q(this, "styles", b), nt();
957
956
  }
@@ -960,4 +959,4 @@ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
960
959
  var St = $;
961
960
  export { $ as n, St as t };
962
961
 
963
- //# sourceMappingURL=file-explorer-header-B6-Q0i6V.js.map
962
+ //# sourceMappingURL=file-explorer-header-D0TebSYR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-explorer-header-D0TebSYR.js","names":["sym","customElement","WebComponent","utils","widgets","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","property","query","state","html","consume","styles","getContainerItemCount","isContainerSubject","_classDecs","_FileExplorerHeaderSu","_FileExplorerHeaderSu2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_fileExplorerContextDecs","context","subscribe","_paneIconDecs","attribute","_onBackClickDecs","_responseMetadataDecs","_resolvedPaneIconDecs","_titleHeadingDecs","_FileExplorerHeaderSummary","FileExplorerHeaderSummary","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","undefined","isPublic","_init_resolvedPaneIcon","_init_titleHeading","_classPrivateFieldGet","v","_classPrivateFieldSet","paneIcon","onBackClick","responseMetadata","resolvedPaneIcon","titleHeading","formatModifiedDate","date","Date","Number","isNaN","getTime","parts","Intl","DateTimeFormat","day","month","year","hour","minute","hour12","formatToParts","getPart","type","find","part","value","dayPeriod","toUpperCase","willUpdate","changedProperties","has","generation","_paneIconGeneration","resolvePaneIcon","updated","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","_Class","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_classPrivateFieldSet","_assertClassBrand","_classPrivateFieldGet","_defineProperty","_toPropertyKey","_applyDecs","_setFunctionName","_checkInRHS","_toPrimitive","_identity","consume","property","state","query","sym","label","utils.label","styles","customElement","WebComponent","property","state","consume","html","nothing","styles","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_MANAGE_ACCESS_EVENT","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_E","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_canManageAccessDecs","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_canEdit","_init_canManageAccess","_init_isMobile","window","matchMedia","subjectUri","dispatchEvent","CustomEvent","bubbles","composed","detail","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","canManageAccess","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","undefined","getEditTooltip","renderDirtyIndicator","isDirty","render","isContainerResource","store","supportsEditing","handleManageAccess","beginEditing","e","c","_initClass","_applyDecs","_Class","_identity","default","_Class","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_classPrivateFieldSet","_assertClassBrand","_classPrivateFieldGet","_defineProperty","_toPropertyKey","_applyDecs","_setFunctionName","_checkInRHS","_toPrimitive","_identity","consume","property","state","nothing","styles","sym","solidLogicSingleton","customElement","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","FILE_EXPLORER_BACK_EVENT","property","state","consume","html","styles","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","_init_menuItems","_init_paneIcon","undefined","_init_responseMetadata","modified","isPublic","canEdit","canManageAccess","aclUri","dispatchEvent","CustomEvent","bubbles","composed","detail","subjectUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","willUpdate","store","_loadedMetadataForUri","generation","_metadataGeneration","loadResponseMetadata","metadata","resource","fetchMetadata","access","error","console","warn","render","handleBack","e","c","_initClass","_applyDecs","_Class","_identity","default","consume","property","state","solidLogicSingleton","sym","styles","FileExplorerHeader","FileExplorerHeader","namedNode","label","makeDraggable","c$1","A","customElement","n","WebComponent","i","b","e","fileExplorerContext","DEFAULT_FILE_EXPLORER_CONTEXT","FILE_EXPLORER_MANAGE_ACCESS_EVENT","FILE_EXPLORER_BACK_EVENT","getContainerItemCount","isContainerSubject","iconlucideshare2","FileExplorerHeader_styles_default","iconlucidelockkeyhole","iconlucidearrowleft","FileExplorerHeaderSummary_styles_default","_Class$2","_FileExplorerHeaderSummary","_A$2","_B$2","_C$2","_D$2","_E$1","_F","_initProto$2","_initClass$2","_classDecs$2","_fileExplorerContextDecs$2","_init_fileExplorerContext$2","_paneIconDecs$1","_init_paneIcon$1","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs$1","_init_responseMetadata$1","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref$2","_classPrivateFieldInitSpec$2","a","_checkPrivateRedeclaration$2","_classPrivateFieldSet$2","s","_assertClassBrand$2","r","_classPrivateFieldGet$2","_defineProperty$2","_toPropertyKey$2","t","_applyDecs$2","o","c","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName$2","P","j","D","I","F","l","f","N","_checkInRHS$2","_toPrimitive$2","_identity$2","_FileExplorerHeaderSu","args","modified","date","parts","getPart","part","type","changedProperties","generation","paneIcon","icon","error","itemCount","isPublic","subject","label$1","isContainerResource","FileExplorerHeaderControls_styles_default","_Class$1","_FileExplorerHeaderControls","_A$1","_B$1","_C$1","_D$1","_E","_initProto$1","_initClass$1","_classDecs$1","_fileExplorerContextDecs$1","_init_fileExplorerContext$1","_menuItemsDecs$1","_init_menuItems$1","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_FileExplorerHeaderCo2","_ref$1","_classPrivateFieldInitSpec$1","_checkPrivateRedeclaration$1","_classPrivateFieldSet$1","_assertClassBrand$1","_classPrivateFieldGet$1","_defineProperty$1","_toPropertyKey$1","_applyDecs$1","_setFunctionName$1","_checkInRHS$1","_toPrimitive$1","_identity$1","_FileExplorerHeaderCo","event","subjectUri","supportsEditing","_Class","_FileExplorerHeader3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_FileExplorerHeader2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_classPrivateFieldSet","_assertClassBrand","_classPrivateFieldGet","_defineProperty","_toPropertyKey","_applyDecs","_setFunctionName","_checkInRHS","_toPrimitive","_identity","_FileExplorerHeader","metadata","file_explorer_header_default"],"sources":["../../src/components/file-explorer-header/FileExplorerHeader.styles.css","../../src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css","../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts","../../src/components/file-explorer-header/FileExplorerHeaderControls.styles.css","../../src/components/file-explorer-header/FileExplorerHeaderControls.ts","../../src/components/file-explorer-header/FileExplorerHeader.ts","../../src/components/file-explorer-header/index.ts"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"," :host {\n .file-explorer-header-summary {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n flex: 1 1 auto;\n min-width: 0;\n text-align: left;\n }\n\n h1 {\n color: var(--solid-ui-color-gray-700, #364153);\n font-size: var(--solid-ui-font-size-xl, 1.25rem); /* while in expand; will go to 2xl when new design is complete */\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n }\n\n .resource-info {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .container-info {\n display: flex;\n flex-direction: row;\n gap: 10px;\n min-width: 0;\n }\n\n .pane-icon {\n display: flex;\n width: 40px;\n height: 40px;\n padding: 7.5px 7px 6.5px 7px;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1/1;\n /* border-radius: 100px; */\n /* background: var(--slate-600, #45556C); */\n }\n\n .pane-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n display: block;\n }\n\n p {\n display: flex;\n align-items: center;\n gap: 5px;\n color: var(--solid-ui-gray-500, #6A7282);\n font-size: var(--solid-ui-font-size-xs, .75rem);\n font-weight: 500;\n }\n\n .public {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--blue-400, #51A2FF);\n border-radius: 5px;\n background: var(--blue-50, #EFF6FF);\n }\n\n icon-lucide-globe {\n stroke-width: 1.021px;\n stroke: var(--blue-400, #51A2FF);\n }\n\n .private {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--yellow-600, #D08700);\n border-radius: 5px;\n background: var(--yellow-100, #FEF9C2);\n }\n\n icon-lucide-lock-keyhole {\n stroke-width: 1.021px;\n stroke: var(--yellow-600, #D08700);\n }\n\n icon-lucide-globe,\n icon-lucide-lock-keyhole {\n width: 0.875rem;\n height: 0.875rem;\n }\n\n .resource-date {\n font-size: inherit;\n }\n\n icon-lucide-arrow-left {\n width: 1.125rem;\n height: 1.125rem;\n }\n\n @media (max-width: 600px) {\n .file-explorer-header-summary {\n gap: 7px;\n }\n\n h1 {\n font-size: 14px;\n }\n\n .pane-icon {\n width: 18.2px;\n height: 18.2px;\n flex-shrink: 0;\n aspect-ratio: 1 / 1;\n padding: 0;\n }\n\n p {\n font-size: 14px;\n }\n\n .resource-date {\n font-size: 10px;\n }\n\n .public,\n .private {\n font-size: 9px;\n }\n\n icon-lucide-arrow-left {\n width: 15px;\n height: 18px;\n flex-shrink: 0;\n aspect-ratio: 5 / 6;\n }\n }\n}\n","import { sym } from 'rdflib'\nimport { customElement, WebComponent } from '@/lib/components'\nimport * as utils from '@/utils'\nimport * as widgets from '@/widgets/index'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport '@/components/button'\nimport { property, query, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport { html } from 'lit'\nimport { consume } from '@lit/context'\nimport { PaneIcon } from './types'\nimport '~icons/lucide/globe'\nimport '~icons/lucide/lock-keyhole'\nimport '~icons/lucide/arrow-left'\nimport '~icons/lucide/folder'\nimport styles from './FileExplorerHeaderSummary.styles.css'\nimport { getContainerItemCount, isContainerSubject } from '@/utils/podUtils'\nimport type { FileExplorerResourceMetadata } from './types'\n\n@customElement('solid-ui-file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _paneIconGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon | undefined\n\n @property({ attribute: false })\n accessor onBackClick: (() => void) | undefined\n\n @property({ attribute: false })\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic'> = {\n modified: undefined,\n isPublic: false\n }\n\n @state()\n accessor resolvedPaneIcon: string | undefined = undefined\n\n @query('h1')\n private accessor titleHeading: HTMLHeadingElement | null = null\n\n private formatModifiedDate (modified: string | undefined) {\n if (!modified) return ''\n\n const date = new Date(modified)\n if (Number.isNaN(date.getTime())) return modified\n\n const parts = new Intl.DateTimeFormat('en-GB', {\n day: '2-digit',\n month: 'short',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n }).formatToParts(date)\n\n const getPart = (type: Intl.DateTimeFormatPartTypes) => parts.find(part => part.type === type)?.value ?? ''\n const day = getPart('day')\n const month = getPart('month')\n const year = getPart('year')\n const hour = getPart('hour')\n const minute = getPart('minute')\n const dayPeriod = getPart('dayPeriod').toUpperCase()\n\n return `${day} ${month}, ${year} at ${hour}:${minute} ${dayPeriod}`\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneIcon')) {\n const generation = ++this._paneIconGeneration\n this.resolvedPaneIcon = undefined\n this.resolvePaneIcon(this.paneIcon, generation)\n }\n }\n\n protected updated () {\n if (!this.titleHeading || !this.fileExplorerContext?.subjectUri || this._draggableSubjectUri === this.fileExplorerContext.subjectUri) return\n\n widgets.makeDraggable(this.titleHeading, sym(this.fileExplorerContext.subjectUri)) // doing it this way for now, just to keep the same functionality\n this._draggableSubjectUri = this.fileExplorerContext.subjectUri\n }\n\n // Needed because humanReadable pane can return a promise for an icon.\n private async resolvePaneIcon (paneIcon: PaneIcon | undefined, generation: number) {\n try {\n if (paneIcon == null) return\n\n const icon = await paneIcon\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = icon ?? undefined\n }\n } catch (error) {\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\n }\n }\n\n private renderContainerResourceHeader (label: string, isPublic: boolean) {\n const itemCount = getContainerItemCount(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0\n return html`\n <div class=\"container-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p>\n ${itemCount} items\n ${isPublic\n ? html`<span class=\"public\"><icon-lucide-globe aria-hidden=\"true\"></icon-lucide-globe><span class=\"sr-only\">Public</span></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole aria-hidden=\"true\"></icon-lucide-lock-keyhole><span class=\"sr-only\">Private</span></span>`}\n </p>\n </div>\n `\n }\n\n private renderResourceHeader (label: string, isPublic: boolean) {\n const modified = this.formatModifiedDate(this.responseMetadata.modified)\n\n return html`\n <div class=\"resource-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p><span class=\"resource-date\">${modified}</span> ${isPublic ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe> Public</span>` : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>\n </div>\n `\n }\n\n render () {\n const subject = this.fileExplorerContext?.subjectUri ? sym(this.fileExplorerContext.subjectUri) : undefined\n const label = subject ? utils.label(subject) : ''\n const isPublic = this.responseMetadata.isPublic\n const isContainerResource = isContainerSubject(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri)\n\n return html`\n <div class=\"file-explorer-header-summary\">\n <solid-ui-button\n variant=\"ghost\"\n @click=${this.onBackClick}\n title=\"Back\"\n >\n <icon-lucide-arrow-left></icon-lucide-arrow-left>\n <span class=\"sr-only\">Back</span>\n </solid-ui-button>\n <span class=\"pane-icon\">\n ${this.resolvedPaneIcon ? html`<img src=${this.resolvedPaneIcon} alt=\"\" />` : ''}\n </span>\n ${isContainerResource ? this.renderContainerResourceHeader(label, isPublic) : this.renderResourceHeader(label, isPublic)}\n </div>\n </div>\n `\n }\n}\n",":host {\n flex: 0 1 auto;\n min-width: 0;\n\n div {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 6px;\n flex: 0 0 auto;\n text-align: right;\n }\n\n /* generative ai */\n div > * {\n flex: 0 1 auto;\n }\n\n .file-explorer-header-action-button {\n width: var(--solid-ui-clickable-area, 42px);\n height: var(--solid-ui-clickable-area, 42px);\n padding: 0;\n }\n\n /* TODO: look into what colors to use this is just to show */\n .dirtyIndicator {\n display: inline-flex;\n align-items: center;\n border: 1px solid #F59E0B;\n color: #92400E;\n background: #FFFBEB;\n border-radius: 999px;\n font-size: 0.72rem;\n font-weight: 600;\n line-height: 1;\n padding: 4px 8px;\n white-space: nowrap;\n }\n\n icon-lucide-user-round-cog,\n icon-lucide-pencil {\n width: 16px;\n height: 16px;\n }\n\n @media (max-width: 900px) {\n div {\n padding-right: 3px;\n }\n }\n\n @media (max-width: 600px) {\n div {\n justify-content: flex-start;\n gap: 5px;\n }\n\n .file-explorer-header-action-button {\n display: none;\n }\n\n icon-lucide-ellipsis-vertical {\n width: 15.36px;\n height: 15.36px;\n flex-shrink: 0;\n aspect-ratio: 1 / 1;\n }\n }\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '@/components/resource-actions-menu/ResourceActionsMenu'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_MANAGE_ACCESS_EVENT } from '@/lib/file-explorer/events'\nimport { isContainerSubject } from '@/utils/podUtils'\n\n@customElement('solid-ui-file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private handleManageAccess = () => {\n const subjectUri = this.fileExplorerContext.subjectUri\n if (!subjectUri) return\n\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_MANAGE_ACCESS_EVENT, {\n bubbles: true,\n composed: true,\n detail: { subjectUri }\n }))\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.canEdit\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile && this.canManageAccess\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.handleManageAccess}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n <span class=\"sr-only\">Manage access</span>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.beginEditing}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n <span class=\"sr-only\">Edit</span>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <solid-ui-resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.handleManageAccess}\n .handleEditingClick=${this.fileExplorerContext.beginEditing}\n .paneSupportsEditing=${this.fileExplorerContext.canEdit}\n .canEdit=${this.canEdit}\n .canManageAccess=${this.canManageAccess}\n .subjectUri=${this.fileExplorerContext.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></solid-ui-resource-actions-menu>\n </div>\n `\n }\n}\n","import { sym } from 'rdflib'\nimport { solidLogicSingleton } from 'solid-logic'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport { FILE_EXPLORER_BACK_EVENT } from '@/lib/file-explorer/events'\nimport { property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { type FileExplorerResourceMetadata } from './types'\n\n@customElement('solid-ui-file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n private _metadataGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n\n private handleBack = () => {\n this.dispatchEvent(new CustomEvent(FILE_EXPLORER_BACK_EVENT, {\n bubbles: true,\n composed: true,\n detail: {\n subjectUri: this.fileExplorerContext.subjectUri\n }\n }))\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'canManageAccess' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n canManageAccess: false,\n aclUri: undefined\n }\n }\n\n protected willUpdate () {\n const subjectUri = this.fileExplorerContext?.subjectUri\n if (this.fileExplorerContext?.store && subjectUri && this._loadedMetadataForUri !== subjectUri) {\n this._loadedMetadataForUri = subjectUri\n const generation = ++this._metadataGeneration\n this.responseMetadata = this.getDefaultResponseMetadata()\n this.loadResponseMetadata(subjectUri, generation)\n }\n }\n\n private async loadResponseMetadata (subjectUri: string, generation: number) {\n try {\n const metadata = await solidLogicSingleton.resource.fetchMetadata(sym(subjectUri))\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.access.isPublic,\n canEdit: metadata.access.canEdit,\n canManageAccess: metadata.access.canManageAccess,\n aclUri: metadata.aclUri\n }\n }\n } catch (error) {\n if (generation === this._metadataGeneration && this.fileExplorerContext.subjectUri === subjectUri) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n }\n\n render () {\n return html`\n <header>\n <solid-ui-file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.handleBack}\n .responseMetadata=${this.responseMetadata}\n ></solid-ui-file-explorer-header-summary>\n <solid-ui-file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n .canManageAccess=${this.responseMetadata.canManageAccess}\n ></solid-ui-file-explorer-header-controls>\n </header>\n `\n }\n}\n","import FileExplorerHeader from './FileExplorerHeader'\n\nexport { FileExplorerHeader }\nexport default FileExplorerHeader\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEgB4Ee,KAAA,CAG3Ed,EAAc,uCAAuC,CAAC;AAAA,IAAAe;AAAA,KAAAC,MAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,MAAAC,KAOpDf,EAAQ;CAAEgB,SAASrB;CAAqBsB,WAAW;AAAK,CAAC,GAACC,KAG1DtB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACC,KAG9BxB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACE,KAG9BzB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACG,KAM9BxB,EAAM,GAACyB,KAGP1B,EAAM,IAAI,GAAC,yBAAA2B,IAzBd,cACuDjC,EAAa;CAAAmC,YAAA,GAAAC,GAAA;EAsBTG,AAtBS,MAAA,GAAAH,CAAA,GAAAC,EAAA,MAAAd,IAAA,KAAAe,GAAA,IAAA,CAAA,GAAAD,EAAA,MAAA,uBAIpC,CAAC,GAAAE,EAAA,MAAAvB,GAAAwB,GAAA,MAGArC,CAA6B,CAAA,GAAAoC,EAAA,MAAArB,GAAAuB,GAAA,IAAA,CAAA,GAAAF,EAAA,MAAApB,GAAAuB,GAAA,IAAA,CAAA,GAAAH,EAAA,MAAAnB,GAA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6 @@
1
- import { i as e, o as t, r as n, u as r } from "./components-LxiwG5ae.js";
2
- import { t as i } from "./provide-B5NeVMM_.js";
3
- import { t as a } from "./custom-element-BW8Ua4c7.js";
4
- import { n as o } from "./context-By_u12WA.js";
1
+ import { g as e, i as t, o as n, r, u as i } from "./components-C8c2Ucm5.js";
2
+ import { t as a } from "./provide-z9U64q4m.js";
3
+ import { n as o } from "./context-BDrfQ9bN.js";
5
4
  // src/components/file-explorer-provider/FileExplorerProvider.ts
6
5
  var s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D;
7
6
  function O(e, t, n) {
@@ -172,9 +171,9 @@ function R(e) {
172
171
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
173
172
  return e;
174
173
  }
175
- u = [a("solid-ui-file-explorer-provider")];
174
+ u = [e("solid-ui-file-explorer-provider")];
176
175
  var z, B = /*#__PURE__*/ new WeakMap(), V = /*#__PURE__*/ new WeakMap(), H = /*#__PURE__*/ new WeakMap(), U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap();
177
- D = (d = e({ attribute: !1 }), p = e({ attribute: !1 }), h = e({ attribute: !1 }), _ = e({ attribute: !1 }), y = e({ attribute: !1 }), x = n(), C = n(), T = i({ context: o }), "context"), s = class extends t {
176
+ D = (d = t({ attribute: !1 }), p = t({ attribute: !1 }), h = t({ attribute: !1 }), _ = t({ attribute: !1 }), y = t({ attribute: !1 }), x = r(), C = r(), T = a({ context: o }), "context"), s = class extends n {
178
177
  constructor(...e) {
179
178
  super(...e), k(this, B, (c(this), f(this))), k(this, V, m(this)), k(this, H, g(this)), k(this, U, v(this, [])), k(this, W, b(this)), k(this, G, S(this)), k(this, K, w(this, !1)), k(this, q, E(this)), O(this, "registerEditor", (e) => (this.editor = e, () => {
180
179
  this.editor === e && (this.editor = void 0);
@@ -245,7 +244,7 @@ D = (d = e({ attribute: !1 }), p = e({ attribute: !1 }), h = e({ attribute: !1 }
245
244
  };
246
245
  }
247
246
  render() {
248
- return r`<slot></slot>`;
247
+ return i`<slot></slot>`;
249
248
  }
250
249
  }, {e: [f, m, g, v, b, S, w, E, c], c: [z, l]} = P(s, [
251
250
  [
@@ -288,9 +287,9 @@ D = (d = e({ attribute: !1 }), p = e({ attribute: !1 }), h = e({ attribute: !1 }
288
287
  1,
289
288
  "value"
290
289
  ]
291
- ], u, 0, void 0, t), l();
290
+ ], u, 0, void 0, n), l();
292
291
  // src/components/file-explorer-provider/index.ts
293
292
  var J = z;
294
293
  export { z as n, J as t };
295
294
 
296
- //# sourceMappingURL=file-explorer-provider-B3gUBkHg.js.map
295
+ //# sourceMappingURL=file-explorer-provider-DpjC7uds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-explorer-provider-B3gUBkHg.js","names":["html","provide","customElement","property","state","WebComponent","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","customElement","property","state","provide","FileExplorerProvider","FileExplorerProvider","n","WebComponent","b","e","fileExplorerContext","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","o","c","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","args","editor","dirty","file_explorer_provider_default"],"sources":["../../src/components/file-explorer-provider/FileExplorerProvider.ts","../../src/components/file-explorer-provider/index.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { WebComponent } from '@/lib/components'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\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AAA;CAAA,IAGxBO,QAAK;EAAA,OAAAR,EAAA5B,GAAA,IAAA;CAAA;CAAA,IAALoC,MAAKP,GAAA;EAAAC,EAAA9B,GAAA,MAAA6B,CAAA;CAAA;CAOJQ,aAAc;EACtB,KAAKD,QAAQ;GACXE,OAAO,KAAK3B,SAAS4B,QAAQD;GAC7BP,YAAY,KAAKA;GACjBC,MAAM,KAAKA;GACXG,SAAS,KAAKA;GACdK,SAAS,CAAC,CAAC,KAAKd;GAChBe,gBAAgB,KAAKA;GACrBC,oBAAoB;IAAE,KAAKhB,QAAQgB,aAAa;GAAE;GAClDC,WAAWC,MAAU;IAAE,KAAKT,UAAUS;GAAM;EAC9C;CACF;CAEAC,SAAU;EACR,OAAO9D,CAAI;CACb;AACF,GAAC,CAAAgE,GAAA,CAAA9B,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAR,IAAAgC,GAAA,CAAAzD,GAAA0D,MAAAC,EAAAJ,GAAA;CAAA;EAAA5C;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAApB,GAAA,GAAA,KAAA,GA3CiDF,CAAY,GAAA6D,EAAA;;ACL9D,IAAAqF,IAAe9E"}
1
+ {"version":3,"file":"file-explorer-provider-DpjC7uds.js","names":["html","provide","customElement","WebComponent","property","state","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","property","state","provide","FileExplorerProvider","FileExplorerProvider","customElement","n","WebComponent","b","e","fileExplorerContext","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","o","c","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","args","editor","dirty","file_explorer_provider_default"],"sources":["../../src/components/file-explorer-provider/FileExplorerProvider.ts","../../src/components/file-explorer-provider/index.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\n}\n","import FileExplorerProvider from './FileExplorerProvider'\n\nexport { FileExplorerProvider }\nexport default FileExplorerProvider\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK0GO,IAAA,CAEzGL,EAAc,iCAAiC,CAAC;AAAA,IAAAM,GAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IAAAP,QAAA;AAAAQ,KAAAC,IAE9Cf,EAAS,EAAEgB,WAAW,GAAM,CAAC,GAACC,IAG9BjB,EAAS,EAAEgB,WAAW,GAAM,CAAC,GAACE,IAG9BlB,EAAS,EAAEgB,WAAW,GAAM,CAAC,GAACG,IAG9BnB,EAAS,EAAEgB,WAAW,GAAM,CAAC,GAACI,IAG9BpB,EAAS,EAAEgB,WAAW,GAAM,CAAC,GA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AA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAApB,GAAA,GAAA,KAAA,GA3CiDJ,CAAY,GAAA+D,EAAA;;ACL9D,IAAAqF,IAAe/E"}
@@ -1,6 +1,5 @@
1
- import { a as e, o as t } from "./auth-Df5uYksz.js";
2
- import { o as n, u as r, y as i } from "./components-LxiwG5ae.js";
3
- import { t as a } from "./decorators-V-B013l9.js";
1
+ import { a as e, o as t } from "./auth-CocCqS1p.js";
2
+ import { b as n, g as r, o as i, u as a } from "./components-C8c2Ucm5.js";
4
3
  // src/components/guard/Guard.ts
5
4
  var o, s, c, l, u, d, f, p, m, h;
6
5
  function g(e, t, n) {
@@ -174,12 +173,12 @@ function E(e) {
174
173
  function D(e) {
175
174
  return e;
176
175
  }
177
- d = [a("solid-ui-guard")];
176
+ d = [r("solid-ui-guard")];
178
177
  var O;
179
- new (m = (c = /*#__PURE__*/ new WeakMap(), h = (f = i({
178
+ new (m = (c = /*#__PURE__*/ new WeakMap(), h = (f = n({
180
179
  context: t,
181
180
  subscribe: !0
182
- }), "auth"), s = class extends n {
181
+ }), "auth"), s = class extends i {
183
182
  constructor(...t) {
184
183
  super(...t), g(this, c, (l(this), p(this, e))), x(this, "unsubscribeSessionUpdated", void 0);
185
184
  }
@@ -196,11 +195,11 @@ new (m = (c = /*#__PURE__*/ new WeakMap(), h = (f = i({
196
195
  super.disconnectedCallback(), this.unsubscribeSessionUpdated?.();
197
196
  }
198
197
  render() {
199
- return this.auth.initialized ? this.auth.account ? r`
198
+ return this.auth.initialized ? this.auth.account ? a`
200
199
  <slot></slot>
201
- ` : r`
200
+ ` : a`
202
201
  <slot name="guest"></slot>
203
- ` : r`
202
+ ` : a`
204
203
  <slot name="initializing"></slot>
205
204
  `;
206
205
  }
@@ -208,7 +207,7 @@ new (m = (c = /*#__PURE__*/ new WeakMap(), h = (f = i({
208
207
  f,
209
208
  1,
210
209
  "auth"
211
- ]], d, 0, void 0, n), s), o = class extends D {
210
+ ]], d, 0, void 0, i), s), o = class extends D {
212
211
  constructor() {
213
212
  super(O), x(this, "states", {
214
213
  initializing: (e) => !e.auth.initialized,
@@ -220,4 +219,4 @@ new (m = (c = /*#__PURE__*/ new WeakMap(), h = (f = i({
220
219
  var k = O;
221
220
  export { O as n, k as t };
222
221
 
223
- //# sourceMappingURL=guard-C39y81In.js.map
222
+ //# sourceMappingURL=guard-BOicu9dt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"guard-C39y81In.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_Guard","_Guard2","_A","WeakMap","_ref","_authDecs","context","subscribe","_Guard3","Guard","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_defineProperty","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","connectedCallback","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","initialized","account","e","c","_initClass","_applyDecs","_Class","_identity","initializing","component","loggedIn","default","consume","Guard","Guard","DEFAULT_AUTH_CONTEXT","authContext","WebComponent","b","c","customElement","_Class","_Guard3","_A","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_Guard2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Guard","args","component","guard_default"],"sources":["../../src/components/guard/Guard.ts","../../src/components/guard/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\n@customElement('solid-ui-guard')\nexport default class Guard extends WebComponent {\n static states = {\n initializing: (component: Guard) => !component.auth.initialized,\n loggedIn: (component: Guard) => !!component.auth.account,\n }\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => this.requestUpdate())\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.initialized) {\n return html`\n <slot name=\"initializing\"></slot>\n `\n }\n\n if (!this.auth.account) {\n return html`\n <slot name=\"guest\"></slot>\n `\n }\n\n return html`\n <slot></slot>\n `\n }\n}\n","import Guard from './Guard'\n\nexport { Guard }\nexport default Guard\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG2EM,IAAA,CAE1EN,EAAc,gBAAgB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,KAAAC,IAO7BV,EAAQ;CAAEW,SAAST;CAAaU,WAAW;AAAK,CAAC,GAAC,SAAAC,IAPrD,cACmCd,EAAa;CAAAgB,YAAA,GAAAC,GAAA;EAOWI,AAPX,MAAA,GAAAJ,CAAA,GAAAC,EAAA,MAAAV,IAAAW,EAAA,IAAA,GAAAC,EAAA,MAOThB,CAAoB,EAAA,GAAAiB,EAAA,MAAA,6BAAA,KAAA,CAAA;CAAA;CAAA,KAAAX,KAAA;EAAA,OAAAY,EAAAd,GAAA,IAAA;CAAA;CAAA,IAAxCe,KAAIC,GAAA;EAAAC,EAAAjB,GAAA,MAAAgB,CAAA;CAAA;CAIrBE,oBAAqB;EAGnB,AAFA,MAAMA,kBAAkB,GAExB,KAAKC,4BAA4B,KAAKJ,KAAKK,uBAAuB,KAAKC,cAAc,CAAC;CACxF;CAEAC,uBAAwB;EAGtB,AAFA,MAAMA,qBAAqB,GAE3B,KAAKH,4BAA4B;CACnC;CAEUI,SAAU;EAalB,OAZK,KAAKR,KAAKS,cAMV,KAAKT,KAAKU,UAMR/B,CAAI;;QALFA,CAAI;;UANJA,CAAI;;;CAcf;AACF,GAAC,CAAAgC,GAAA,CAAAd,GAAAD,IAAAgB,GAAA,CAAA7B,GAAA8B,MAAAC,EAAAvB,GAAA,CAAA;CAAAH;CAAA;CAAA;AAAA,CAAA,GAAAN,GAAA,GAAA,KAAA,GAxCkCL,CAAY,GAAAc,IAAAwB,IAAA,cAAAC,EAAA;CAAAvB,cAAA;EAAA,MAAAV,CAAA,GAAAe,EAAA,MAAA,UAC7B;GACdmB,eAAeC,MAAqB,CAACA,EAAUlB,KAAKS;GACpDU,WAAWD,MAAqB,CAAC,CAACA,EAAUlB,KAAKU;EACnD,CAAC,GAAAG,EAAA;CAAA;AAAA,GAAAf,EAAAiB,GAAA/B,GAAA,KAAA,CAAA,GAAA+B,GAAA;;ACPH,IAAAuE,IAAehE"}
1
+ {"version":3,"file":"guard-BOicu9dt.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_Guard","_Guard2","_A","WeakMap","_ref","_authDecs","context","subscribe","_Guard3","Guard","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_defineProperty","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","connectedCallback","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","initialized","account","e","c","_initClass","_applyDecs","_Class","_identity","initializing","component","loggedIn","default","consume","Guard","Guard","DEFAULT_AUTH_CONTEXT","authContext","c","customElement","WebComponent","b","_Class","_Guard3","_A","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_Guard2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Guard","args","component","guard_default"],"sources":["../../src/components/guard/Guard.ts","../../src/components/guard/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\n@customElement('solid-ui-guard')\nexport default class Guard extends WebComponent {\n static states = {\n initializing: (component: Guard) => !component.auth.initialized,\n loggedIn: (component: Guard) => !!component.auth.account,\n }\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => this.requestUpdate())\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.initialized) {\n return html`\n <slot name=\"initializing\"></slot>\n `\n }\n\n if (!this.auth.account) {\n return html`\n <slot name=\"guest\"></slot>\n `\n }\n\n return html`\n <slot></slot>\n `\n }\n}\n","import Guard from './Guard'\n\nexport { Guard }\nexport default Guard\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG2EM,IAAA,CAE1EN,EAAc,gBAAgB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,KAAAC,IAO7BV,EAAQ;CAAEW,SAAST;CAA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