phirepass-widgets 0.0.115 → 0.0.117

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 (36) hide show
  1. package/README.md +13 -12
  2. package/dist/cjs/{index-BCgmMoIq.js → index-DehquNXP.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/phirepass-downloader_3.cjs.entry.js +20 -9
  5. package/dist/cjs/phirepass-rdp.cjs.entry.js +2 -2
  6. package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
  7. package/dist/cjs/phirepass-widgets.cjs.js +2 -2
  8. package/dist/cjs/{protocol-CYh109n2.js → protocol-BjOgJZ9-.js} +34 -9
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/phirepass-downloader/phirepass-downloader.js +18 -7
  11. package/dist/collection/phirepass-channel_bg.wasm +0 -0
  12. package/dist/components/{p-DqT-qhTU.js → p-B4kFfbHE.js} +1 -1
  13. package/dist/components/p-BekUePpu.js +1 -0
  14. package/dist/components/phirepass-downloader.js +1 -1
  15. package/dist/components/phirepass-rdp.js +1 -1
  16. package/dist/components/phirepass-sftp-client.js +1 -1
  17. package/dist/components/phirepass-terminal.js +4 -4
  18. package/dist/esm/{index-Dd9o0CbU.js → index-BinptKL7.js} +1 -1
  19. package/dist/esm/loader.js +2 -2
  20. package/dist/esm/phirepass-downloader_3.entry.js +20 -9
  21. package/dist/esm/phirepass-rdp.entry.js +2 -2
  22. package/dist/esm/phirepass-terminal.entry.js +2 -2
  23. package/dist/esm/phirepass-widgets.js +3 -3
  24. package/dist/esm/{protocol-BtMWUitf.js → protocol-BekUePpu.js} +33 -8
  25. package/dist/phirepass-widgets/p-6a192c8d.entry.js +1 -0
  26. package/dist/phirepass-widgets/{p-705501d4.entry.js → p-9e6f9220.entry.js} +4 -4
  27. package/dist/phirepass-widgets/p-BekUePpu.js +1 -0
  28. package/dist/phirepass-widgets/{p-2fd32ec5.entry.js → p-fe1ce8da.entry.js} +1 -1
  29. package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
  30. package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
  31. package/dist/types/components/phirepass-downloader/phirepass-downloader.d.ts +7 -0
  32. package/package.json +9 -9
  33. package/dist/components/p-BtMWUitf.js +0 -1
  34. package/dist/phirepass-widgets/p-BtMWUitf.js +0 -1
  35. package/dist/phirepass-widgets/p-b8caf9e1.entry.js +0 -1
  36. /package/dist/phirepass-widgets/{p-Dd9o0CbU.js → p-BinptKL7.js} +0 -0
package/README.md CHANGED
@@ -16,18 +16,19 @@ Every component takes a `channelFactory` (or the downloader an injected `channel
16
16
 
17
17
  ## Development
18
18
 
19
- Node is pinned in `.nvmrc` (`nvm use`).
19
+ Bun is the package manager / script runner (version pinned in `.bun-version`); Node is still the runtime for Stencil/Vitest and is pinned in `.nvmrc` (`nvm use`).
20
20
 
21
21
  ```bash
22
- npm start # stencil dev server
23
- npm run storybook # stencil build, then Storybook on :6006
24
- npm test # spec tests (vitest, Stencil environment)
25
- npm run test:storybook # every story's play function in headless Chromium
26
- npm run test:all # both
27
- npm run build # production build
22
+ bun install # install deps (bun.lock)
23
+ bun start # stencil dev server
24
+ bun run storybook # stencil build, then Storybook on :6006
25
+ bun run test # spec tests (vitest, Stencil environment)
26
+ bun run test:storybook # every story's play function in headless Chromium
27
+ bun run test:all # both
28
+ bun run build # production build
28
29
  ```
29
30
 
30
- `npm run test:storybook` needs Chromium once: `npx playwright install chromium`.
31
+ `bun run test:storybook` needs Chromium once: `bunx playwright install chromium`.
31
32
 
32
33
  Stories live in `stories/`: one file per existing widget and one per Remote Fetch screen group (`stories/remote-fetch/1-sftp` … `9-notices`). Each screen is its own story, and its `play` function is its test. The mock channel (`src/testing/mock-channel.ts`) and fixtures (`src/testing/fixtures.ts`) are shared by stories and specs.
33
34
 
@@ -56,20 +57,20 @@ git remote rm origin
56
57
  and run:
57
58
 
58
59
  ```bash
59
- npm install
60
- npm start
60
+ bun install
61
+ bun start
61
62
  ```
62
63
 
63
64
  To build the component for production, run:
64
65
 
65
66
  ```bash
66
- npm run build
67
+ bun run build
67
68
  ```
68
69
 
69
70
  To run the unit tests for the components, run:
70
71
 
71
72
  ```bash
72
- npm test
73
+ bun run test
73
74
  ```
74
75
 
75
76
  Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
@@ -4,7 +4,7 @@ const NAMESPACE = 'phirepass-widgets';
4
4
  const BUILD = /* phirepass-widgets */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.45.4 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.45.5 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCgmMoIq.js');
3
+ var index = require('./index-DehquNXP.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCgmMoIq.js');
4
- var protocol = require('./protocol-CYh109n2.js');
3
+ var index = require('./index-DehquNXP.js');
4
+ var protocol = require('./protocol-BjOgJZ9-.js');
5
5
 
6
6
  const DOWNLOAD_METHODS = [
7
7
  'send_download_start',
@@ -1632,6 +1632,15 @@ const PhirepassDownloader = class {
1632
1632
  this.picker = null;
1633
1633
  }
1634
1634
  // ---------------------------------------------------------------- render
1635
+ /**
1636
+ * The dialog's state as it is now, not as it was when the dialog last rendered.
1637
+ * Handlers run between a state change and the re-render it schedules (tick a box,
1638
+ * then click confirm before the frame), so reading `c` from the render closure
1639
+ * would act on the stale value.
1640
+ */
1641
+ latest(c) {
1642
+ return this.confirm?.kind === c.kind ? this.confirm : c;
1643
+ }
1635
1644
  renderConfirm() {
1636
1645
  const c = this.confirm;
1637
1646
  if (!c) {
@@ -1640,13 +1649,15 @@ const PhirepassDownloader = class {
1640
1649
  const cancel = () => (this.confirm = null);
1641
1650
  switch (c.kind) {
1642
1651
  case 'stop':
1643
- return (index.h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...c, discard }), onCancel: cancel, onConfirm: () => {
1644
- this.sendStop(c.row, c.discard);
1652
+ return (index.h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...this.latest(c), discard }), onCancel: cancel, onConfirm: () => {
1653
+ const cur = this.latest(c);
1654
+ this.sendStop(cur.row, cur.discard);
1645
1655
  this.confirm = null;
1646
1656
  } }));
1647
1657
  case 'delete':
1648
- return (index.h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...c, deleteFile }), onCancel: cancel, onConfirm: () => {
1649
- this.sendDelete(c.row, c.deleteFile);
1658
+ return (index.h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...this.latest(c), deleteFile }), onCancel: cancel, onConfirm: () => {
1659
+ const cur = this.latest(c);
1660
+ this.sendDelete(cur.row, cur.deleteFile);
1650
1661
  this.confirm = null;
1651
1662
  } }));
1652
1663
  case 'fastest':
@@ -1656,8 +1667,8 @@ const PhirepassDownloader = class {
1656
1667
  this.confirm = null;
1657
1668
  } }));
1658
1669
  case 'torrent':
1659
- return (index.h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...c, dontAsk }), onCancel: cancel, onConfirm: () => {
1660
- if (c.dontAsk) {
1670
+ return (index.h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...this.latest(c), dontAsk }), onCancel: cancel, onConfirm: () => {
1671
+ if (this.latest(c).dontAsk) {
1661
1672
  writeTorrentAck();
1662
1673
  this.torrentAcked = true;
1663
1674
  }
@@ -1736,7 +1747,7 @@ const PhirepassDownloader = class {
1736
1747
  ]));
1737
1748
  }
1738
1749
  render() {
1739
- return (index.h(index.Host, { key: '6a7316df730c5bc4bc588f7d05e19033d98a9d0a', class: { compact: this.compact, standalone: !this.compact } }, this.compact ? this.renderCompact() : this.renderStandalone(), this.renderConfirm(), this.picker && (index.h(FolderPicker, { key: '412dc8107ea30420f022a49f188ea020eabd46f5', root: this.caps?.folder ?? '', path: this.picker.path, folders: this.picker.folders, error: this.picker.error, newName: this.picker.newName, onOpen: name => this.listFolders([...this.picker.path, name]), onUp: depth => this.listFolders(this.picker.path.slice(0, depth)), onNewName: newName => (this.picker = { ...this.picker, newName }), onCancel: () => (this.picker = null), onSave: () => this.savePicker() })), this.player && (index.h("div", { key: '61bc6c3ab32346d87c0ed02280182fdae234eb71', class: "overlay player" }, index.h("phirepass-media-player", { key: '59d99ac6289a146ba106e9cb8682d5f7b4383e26', src: this.player.src, name: this.player.name, status: this.playerStatus(), ready: this.playerReady(), positionKey: `dl:${this.player.downloadId}`, onPhirepassPlayerClose: () => (this.player = null) }))), index.h(Notices, { key: 'fa27f16c8f72435939e51b48d92b6f10b0535d80', notices: this.notices, onDismiss: id => this.dismiss(id) })));
1750
+ return (index.h(index.Host, { key: 'b7f751d7107ff8f00d791e5c54f4261e2d7cd580', class: { compact: this.compact, standalone: !this.compact } }, this.compact ? this.renderCompact() : this.renderStandalone(), this.renderConfirm(), this.picker && (index.h(FolderPicker, { key: '538f0f433863e0fbd79a8e66c0b7a45c93a8bd28', root: this.caps?.folder ?? '', path: this.picker.path, folders: this.picker.folders, error: this.picker.error, newName: this.picker.newName, onOpen: name => this.listFolders([...this.picker.path, name]), onUp: depth => this.listFolders(this.picker.path.slice(0, depth)), onNewName: newName => (this.picker = { ...this.picker, newName }), onCancel: () => (this.picker = null), onSave: () => this.savePicker() })), this.player && (index.h("div", { key: 'b9d3ade696c6079d6a2e3bc2206c19a6bdd7d640', class: "overlay player" }, index.h("phirepass-media-player", { key: 'c5fa1244ea9766ff37d08478dbc2d096430f2081', src: this.player.src, name: this.player.name, status: this.playerStatus(), ready: this.playerReady(), positionKey: `dl:${this.player.downloadId}`, onPhirepassPlayerClose: () => (this.player = null) }))), index.h(Notices, { key: '34a34a810001815a890a0995aab44f29f34aab61', notices: this.notices, onDismiss: id => this.dismiss(id) })));
1740
1751
  }
1741
1752
  playerRow() {
1742
1753
  return this.player ? this.jobs[this.player.downloadId] : undefined;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCgmMoIq.js');
4
- var protocol = require('./protocol-CYh109n2.js');
3
+ var index = require('./index-DehquNXP.js');
4
+ var protocol = require('./protocol-BjOgJZ9-.js');
5
5
 
6
6
  /**
7
7
  * RDP's display-control PDU describes a monitor in whole, even pixels within
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCgmMoIq.js');
4
- var protocol = require('./protocol-CYh109n2.js');
3
+ var index = require('./index-DehquNXP.js');
4
+ var protocol = require('./protocol-BjOgJZ9-.js');
5
5
 
6
6
  /**
7
7
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCgmMoIq.js');
3
+ var index = require('./index-DehquNXP.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.45.4 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.45.5 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -539,6 +539,31 @@ class Channel {
539
539
  }
540
540
  wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
541
541
  }
542
+ /**
543
+ * Ask the node to let a player read `path` through this SFTP session.
544
+ * Answered with `SFTPOpResult::Stream { token, size, mime }`; the player
545
+ * then reads `/api/web/stream/{node_id}/t/{token}`.
546
+ * @param {string} node_id
547
+ * @param {number} sid
548
+ * @param {string} path
549
+ * @param {number | null} [msg_id]
550
+ */
551
+ send_sftp_open_stream(node_id, sid, path, msg_id) {
552
+ const val3 = +sid;
553
+ const val4 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
554
+ let ptr0, len0, ptr1, len1;
555
+ try {
556
+ ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
557
+ len0 = WASM_VECTOR_LEN;
558
+ ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
559
+ len1 = WASM_VECTOR_LEN;
560
+ } catch (e) {
561
+ if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
562
+ if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
563
+ throw e;
564
+ }
565
+ wasm.channel_send_sftp_open_stream(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
566
+ }
542
567
  /**
543
568
  * Read a whole file for the in-page editor. Answered with an
544
569
  * `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
@@ -959,7 +984,7 @@ function __wbg_get_imports() {
959
984
  const ret = arg0[arg1];
960
985
  return ret;
961
986
  },
962
- __wbg_info_b0bac022aae81d46: function(arg0, arg1) {
987
+ __wbg_info_386f00b314475db5: function(arg0, arg1) {
963
988
  console.info(getStringFromWasm0(arg0, arg1));
964
989
  },
965
990
  __wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
@@ -1069,7 +1094,7 @@ function __wbg_get_imports() {
1069
1094
  const ret = arg0.value;
1070
1095
  return ret;
1071
1096
  },
1072
- __wbg_warn_95c497419b251cd5: function(arg0, arg1) {
1097
+ __wbg_warn_4f0851b2fd19b28b: function(arg0, arg1) {
1073
1098
  console.warn(getStringFromWasm0(arg0, arg1));
1074
1099
  },
1075
1100
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
@@ -1079,12 +1104,12 @@ function __wbg_get_imports() {
1079
1104
  },
1080
1105
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
1081
1106
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1082
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_46);
1107
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_47);
1083
1108
  return ret;
1084
1109
  },
1085
1110
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
1086
1111
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1087
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_47);
1112
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_48);
1088
1113
  return ret;
1089
1114
  },
1090
1115
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
@@ -1135,14 +1160,14 @@ function __wasm_bindgen_func_elem_96(arg0, arg1, arg2) {
1135
1160
  wasm.__wasm_bindgen_func_elem_96(arg0, arg1, arg2);
1136
1161
  }
1137
1162
 
1138
- function __wasm_bindgen_func_elem_96_46(arg0, arg1, arg2) {
1139
- wasm.__wasm_bindgen_func_elem_96_46(arg0, arg1, arg2);
1140
- }
1141
-
1142
1163
  function __wasm_bindgen_func_elem_96_47(arg0, arg1, arg2) {
1143
1164
  wasm.__wasm_bindgen_func_elem_96_47(arg0, arg1, arg2);
1144
1165
  }
1145
1166
 
1167
+ function __wasm_bindgen_func_elem_96_48(arg0, arg1, arg2) {
1168
+ wasm.__wasm_bindgen_func_elem_96_48(arg0, arg1, arg2);
1169
+ }
1170
+
1146
1171
 
1147
1172
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
1148
1173
  const ChannelFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1426,7 +1451,7 @@ async function __wbg_init_once(module_or_path) {
1426
1451
  }
1427
1452
 
1428
1453
  if (module_or_path === undefined) {
1429
- module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-CYh109n2.js', document.baseURI).href)));
1454
+ module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-BjOgJZ9-.js', document.baseURI).href)));
1430
1455
  }
1431
1456
  const imports = __wbg_get_imports();
1432
1457
 
@@ -9,7 +9,7 @@
9
9
  "mixins": [],
10
10
  "compiler": {
11
11
  "name": "@stencil/core",
12
- "version": "4.45.4",
12
+ "version": "4.45.5",
13
13
  "typescriptVersion": "5.8.3"
14
14
  },
15
15
  "collections": [],
@@ -670,6 +670,15 @@ export class PhirepassDownloader {
670
670
  this.picker = null;
671
671
  }
672
672
  // ---------------------------------------------------------------- render
673
+ /**
674
+ * The dialog's state as it is now, not as it was when the dialog last rendered.
675
+ * Handlers run between a state change and the re-render it schedules (tick a box,
676
+ * then click confirm before the frame), so reading `c` from the render closure
677
+ * would act on the stale value.
678
+ */
679
+ latest(c) {
680
+ return this.confirm?.kind === c.kind ? this.confirm : c;
681
+ }
673
682
  renderConfirm() {
674
683
  const c = this.confirm;
675
684
  if (!c) {
@@ -678,13 +687,15 @@ export class PhirepassDownloader {
678
687
  const cancel = () => (this.confirm = null);
679
688
  switch (c.kind) {
680
689
  case 'stop':
681
- return (h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...c, discard }), onCancel: cancel, onConfirm: () => {
682
- this.sendStop(c.row, c.discard);
690
+ return (h(ConfirmStop, { row: c.row, discard: c.discard, onDiscard: discard => (this.confirm = { ...this.latest(c), discard }), onCancel: cancel, onConfirm: () => {
691
+ const cur = this.latest(c);
692
+ this.sendStop(cur.row, cur.discard);
683
693
  this.confirm = null;
684
694
  } }));
685
695
  case 'delete':
686
- return (h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...c, deleteFile }), onCancel: cancel, onConfirm: () => {
687
- this.sendDelete(c.row, c.deleteFile);
696
+ return (h(ConfirmDelete, { row: c.row, nodeName: this.name, deleteFile: c.deleteFile, onDeleteFile: deleteFile => (this.confirm = { ...this.latest(c), deleteFile }), onCancel: cancel, onConfirm: () => {
697
+ const cur = this.latest(c);
698
+ this.sendDelete(cur.row, cur.deleteFile);
688
699
  this.confirm = null;
689
700
  } }));
690
701
  case 'fastest':
@@ -694,8 +705,8 @@ export class PhirepassDownloader {
694
705
  this.confirm = null;
695
706
  } }));
696
707
  case 'torrent':
697
- return (h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...c, dontAsk }), onCancel: cancel, onConfirm: () => {
698
- if (c.dontAsk) {
708
+ return (h(ConfirmTorrent, { nodeName: this.name, dontAsk: c.dontAsk, onDontAsk: dontAsk => (this.confirm = { ...this.latest(c), dontAsk }), onCancel: cancel, onConfirm: () => {
709
+ if (this.latest(c).dontAsk) {
699
710
  writeTorrentAck();
700
711
  this.torrentAcked = true;
701
712
  }
@@ -774,7 +785,7 @@ export class PhirepassDownloader {
774
785
  ]));
775
786
  }
776
787
  render() {
777
- return (h(Host, { key: '6a7316df730c5bc4bc588f7d05e19033d98a9d0a', class: { compact: this.compact, standalone: !this.compact } }, this.compact ? this.renderCompact() : this.renderStandalone(), this.renderConfirm(), this.picker && (h(FolderPicker, { key: '412dc8107ea30420f022a49f188ea020eabd46f5', root: this.caps?.folder ?? '', path: this.picker.path, folders: this.picker.folders, error: this.picker.error, newName: this.picker.newName, onOpen: name => this.listFolders([...this.picker.path, name]), onUp: depth => this.listFolders(this.picker.path.slice(0, depth)), onNewName: newName => (this.picker = { ...this.picker, newName }), onCancel: () => (this.picker = null), onSave: () => this.savePicker() })), this.player && (h("div", { key: '61bc6c3ab32346d87c0ed02280182fdae234eb71', class: "overlay player" }, h("phirepass-media-player", { key: '59d99ac6289a146ba106e9cb8682d5f7b4383e26', src: this.player.src, name: this.player.name, status: this.playerStatus(), ready: this.playerReady(), positionKey: `dl:${this.player.downloadId}`, onPhirepassPlayerClose: () => (this.player = null) }))), h(Notices, { key: 'fa27f16c8f72435939e51b48d92b6f10b0535d80', notices: this.notices, onDismiss: id => this.dismiss(id) })));
788
+ return (h(Host, { key: 'b7f751d7107ff8f00d791e5c54f4261e2d7cd580', class: { compact: this.compact, standalone: !this.compact } }, this.compact ? this.renderCompact() : this.renderStandalone(), this.renderConfirm(), this.picker && (h(FolderPicker, { key: '538f0f433863e0fbd79a8e66c0b7a45c93a8bd28', root: this.caps?.folder ?? '', path: this.picker.path, folders: this.picker.folders, error: this.picker.error, newName: this.picker.newName, onOpen: name => this.listFolders([...this.picker.path, name]), onUp: depth => this.listFolders(this.picker.path.slice(0, depth)), onNewName: newName => (this.picker = { ...this.picker, newName }), onCancel: () => (this.picker = null), onSave: () => this.savePicker() })), this.player && (h("div", { key: 'b9d3ade696c6079d6a2e3bc2206c19a6bdd7d640', class: "overlay player" }, h("phirepass-media-player", { key: 'c5fa1244ea9766ff37d08478dbc2d096430f2081', src: this.player.src, name: this.player.name, status: this.playerStatus(), ready: this.playerReady(), positionKey: `dl:${this.player.downloadId}`, onPhirepassPlayerClose: () => (this.player = null) }))), h(Notices, { key: '34a34a810001815a890a0995aab44f29f34aab61', notices: this.notices, onDismiss: id => this.dismiss(id) })));
778
789
  }
779
790
  playerRow() {
780
791
  return this.player ? this.jobs[this.player.downloadId] : undefined;