phirepass-widgets 0.0.117 → 0.0.118

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 (88) hide show
  1. package/README.md +1 -12
  2. package/dist/cjs/{index-DehquNXP.js → index-C3v5xmUo.js} +2 -74
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/phirepass-rdp.cjs.entry.js +5 -16
  5. package/dist/cjs/phirepass-sftp-client.cjs.entry.js +1470 -0
  6. package/dist/cjs/phirepass-terminal.cjs.entry.js +4 -4
  7. package/dist/cjs/phirepass-widgets.cjs.js +2 -2
  8. package/dist/cjs/{protocol-BjOgJZ9-.js → protocol-DCBMfc2u.js} +21 -277
  9. package/dist/collection/collection-manifest.json +0 -2
  10. package/dist/collection/common/channel.js +1 -21
  11. package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +13 -36
  12. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.css +0 -122
  13. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.js +31 -181
  14. package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +2 -2
  15. package/dist/collection/phirepass-channel_bg.wasm +0 -0
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/p-CsYQJXY2.js +1 -0
  18. package/dist/components/phirepass-rdp.js +1 -1
  19. package/dist/components/phirepass-sftp-client.js +1 -1
  20. package/dist/components/phirepass-terminal.js +5 -5
  21. package/dist/esm/{index-BinptKL7.js → index-BVOulYtW.js} +2 -74
  22. package/dist/esm/loader.js +3 -3
  23. package/dist/esm/phirepass-rdp.entry.js +5 -16
  24. package/dist/esm/phirepass-sftp-client.entry.js +1468 -0
  25. package/dist/esm/phirepass-terminal.entry.js +4 -4
  26. package/dist/esm/phirepass-widgets.js +3 -3
  27. package/dist/esm/{protocol-BekUePpu.js → protocol-CsYQJXY2.js} +20 -276
  28. package/dist/phirepass-widgets/{p-9e6f9220.entry.js → p-7ea2fdbc.entry.js} +5 -5
  29. package/dist/phirepass-widgets/p-BVOulYtW.js +3 -0
  30. package/dist/phirepass-widgets/p-CsYQJXY2.js +1 -0
  31. package/dist/phirepass-widgets/p-c1c616ca.entry.js +1 -0
  32. package/dist/phirepass-widgets/p-f1bc04a8.entry.js +1 -0
  33. package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
  34. package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
  35. package/dist/types/common/channel.d.ts +0 -30
  36. package/dist/types/components/phirepass-rdp/phirepass-rdp.d.ts +0 -10
  37. package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.d.ts +0 -30
  38. package/dist/types/components.d.ts +34 -434
  39. package/package.json +4 -18
  40. package/dist/cjs/phirepass-downloader_3.cjs.entry.js +0 -3823
  41. package/dist/collection/common/fetch.js +0 -44
  42. package/dist/collection/components/phirepass-downloader/form.js +0 -69
  43. package/dist/collection/components/phirepass-downloader/format.js +0 -105
  44. package/dist/collection/components/phirepass-downloader/jobs.js +0 -393
  45. package/dist/collection/components/phirepass-downloader/phirepass-downloader.css +0 -1109
  46. package/dist/collection/components/phirepass-downloader/phirepass-downloader.js +0 -1466
  47. package/dist/collection/components/phirepass-downloader/source.js +0 -120
  48. package/dist/collection/components/phirepass-downloader/views/dialogs.js +0 -34
  49. package/dist/collection/components/phirepass-downloader/views/fetch-form.js +0 -65
  50. package/dist/collection/components/phirepass-downloader/views/icons.js +0 -34
  51. package/dist/collection/components/phirepass-downloader/views/job-row.js +0 -91
  52. package/dist/collection/components/phirepass-downloader/views/notices.js +0 -15
  53. package/dist/collection/components/phirepass-downloader/views/states.js +0 -19
  54. package/dist/collection/components/phirepass-media-player/phirepass-media-player.css +0 -225
  55. package/dist/collection/components/phirepass-media-player/phirepass-media-player.js +0 -549
  56. package/dist/collection/components/phirepass-media-player/player.js +0 -118
  57. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.fetch.js +0 -35
  58. package/dist/collection/testing/fixtures.js +0 -219
  59. package/dist/collection/testing/mock-channel.js +0 -410
  60. package/dist/components/p-B4kFfbHE.js +0 -1
  61. package/dist/components/p-BekUePpu.js +0 -1
  62. package/dist/components/p-DIf-Ru26.js +0 -1
  63. package/dist/components/phirepass-downloader.d.ts +0 -11
  64. package/dist/components/phirepass-downloader.js +0 -1
  65. package/dist/components/phirepass-media-player.d.ts +0 -11
  66. package/dist/components/phirepass-media-player.js +0 -1
  67. package/dist/esm/phirepass-downloader_3.entry.js +0 -3819
  68. package/dist/phirepass-widgets/p-6a192c8d.entry.js +0 -1
  69. package/dist/phirepass-widgets/p-BekUePpu.js +0 -1
  70. package/dist/phirepass-widgets/p-BinptKL7.js +0 -3
  71. package/dist/phirepass-widgets/p-fe1ce8da.entry.js +0 -1
  72. package/dist/types/common/fetch.d.ts +0 -167
  73. package/dist/types/components/phirepass-downloader/form.d.ts +0 -54
  74. package/dist/types/components/phirepass-downloader/format.d.ts +0 -17
  75. package/dist/types/components/phirepass-downloader/jobs.d.ts +0 -123
  76. package/dist/types/components/phirepass-downloader/phirepass-downloader.d.ts +0 -238
  77. package/dist/types/components/phirepass-downloader/source.d.ts +0 -61
  78. package/dist/types/components/phirepass-downloader/views/dialogs.d.ts +0 -52
  79. package/dist/types/components/phirepass-downloader/views/fetch-form.d.ts +0 -31
  80. package/dist/types/components/phirepass-downloader/views/icons.d.ts +0 -5
  81. package/dist/types/components/phirepass-downloader/views/job-row.d.ts +0 -21
  82. package/dist/types/components/phirepass-downloader/views/notices.d.ts +0 -18
  83. package/dist/types/components/phirepass-downloader/views/states.d.ts +0 -38
  84. package/dist/types/components/phirepass-media-player/phirepass-media-player.d.ts +0 -82
  85. package/dist/types/components/phirepass-media-player/player.d.ts +0 -53
  86. package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.fetch.d.ts +0 -40
  87. package/dist/types/testing/fixtures.d.ts +0 -25
  88. package/dist/types/testing/mock-channel.d.ts +0 -132
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DehquNXP.js');
4
- var protocol = require('./protocol-BjOgJZ9-.js');
3
+ var index = require('./index-C3v5xmUo.js');
4
+ var protocol = require('./protocol-DCBMfc2u.js');
5
5
 
6
6
  /**
7
7
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
@@ -955,13 +955,13 @@ const PhirepassTerminal = class {
955
955
  return (index.h("button", { key: id, type: "button", class: { key: true, armed: !!armed }, "aria-label": hint, "aria-pressed": armed === undefined ? undefined : String(armed), onPointerDown: (event) => event.preventDefault(), onMouseDown: (event) => event.preventDefault(), onClick: onPress }, label));
956
956
  }
957
957
  render() {
958
- return (index.h(index.Host, { key: '0cd75107af5640ebcd5fe0b829b0f7910a01f2c6', class: { 'keys-on': this.keyBar === 'on', 'keys-off': this.keyBar === 'off' } }, index.h("div", { key: 'c405840c6ae231c5ef2d0f39d139eaf4eb54f5de', id: "ccc", ref: el => (this.containerEl = el) }), index.h("div", { key: 'a4acfc2ee6b2bc4cdcd159a5c4b794c3ccf1c504', class: "keys", role: "toolbar", "aria-label": "Terminal keys" }, this.key_button('ctrl', 'ctrl', 'Control', () => {
958
+ return (index.h(index.Host, { key: '4f00fba03285e6410d0248df32247f3231199cf8', class: { 'keys-on': this.keyBar === 'on', 'keys-off': this.keyBar === 'off' } }, index.h("div", { key: 'f43351419da2ca6ef1232afd96ea30be5feae138', id: "ccc", ref: el => (this.containerEl = el) }), index.h("div", { key: '56f7929c2045ae17053777b818f3317844ec6467', class: "keys", role: "toolbar", "aria-label": "Terminal keys" }, this.key_button('ctrl', 'ctrl', 'Control', () => {
959
959
  this.ctrlArmed = !this.ctrlArmed;
960
960
  this.terminal?.focus();
961
961
  }, this.ctrlArmed), this.key_button('alt', 'alt', 'Alt', () => {
962
962
  this.altArmed = !this.altArmed;
963
963
  this.terminal?.focus();
964
- }, this.altArmed), KEY_BAR_KEYS.map(entry => this.key_button(entry.id, entry.label, entry.hint, () => this.press(entry.data))), index.h("span", { key: '0d4b62865ccc92b9e82fff8375912f839c3ec32c', class: "spacer" }), this.key_button('left', '←', 'Left arrow', () => this.press(this.arrow('D'))), this.key_button('down', '↓', 'Down arrow', () => this.press(this.arrow('B'))), this.key_button('up', '↑', 'Up arrow', () => this.press(this.arrow('A'))), this.key_button('right', '→', 'Right arrow', () => this.press(this.arrow('C'))))));
964
+ }, this.altArmed), KEY_BAR_KEYS.map(entry => this.key_button(entry.id, entry.label, entry.hint, () => this.press(entry.data))), index.h("span", { key: '6573fdb8605d4a3555589412591d921738c98abb', class: "spacer" }), this.key_button('left', '←', 'Left arrow', () => this.press(this.arrow('D'))), this.key_button('down', '↓', 'Down arrow', () => this.press(this.arrow('B'))), this.key_button('up', '↑', 'Up arrow', () => this.press(this.arrow('A'))), this.key_button('right', '→', 'Right arrow', () => this.press(this.arrow('C'))))));
965
965
  }
966
966
  static get watchers() { return {
967
967
  "nodeId": [{
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DehquNXP.js');
3
+ var index = require('./index-C3v5xmUo.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"channelFactory":[16],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"keyBar":[1,"key-bar"],"serverId":[1,"server-id"],"channelFactory":[16],"ctrlArmed":[32],"altArmed":[32]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-downloader_3.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"channelFactory":[16],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"delete_is_dir":[32],"delete_recursive":[32],"delete_error":[32],"prompt_kind":[32],"prompt_value":[32],"prompt_error":[32],"prompt_busy":[32],"chmod_target":[32],"chmod_mode":[32],"chmod_error":[32],"chmod_busy":[32],"show_editor":[32],"editor_name":[32],"editor_text":[32],"editor_saved_text":[32],"editor_busy":[32],"editor_error":[32],"editor_confirm_discard":[32],"editor_loaded":[32],"filter":[32],"sort_key":[32],"sort_asc":[32],"channel_ready":[32],"fetch_count":[32],"fresh_names":[32],"part_delete":[32],"torrent_menu":[32],"listing_player":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}],[513,"phirepass-downloader",{"nodeId":[1,"node-id"],"nodeLabel":[1,"node-label"],"token":[1],"channel":[16],"connected":[4],"channelFactory":[16],"browsingService":[1,"browsing-service"],"browsingPath":[1025,"browsing-path"],"compact":[516],"streamBase":[1,"stream-base"],"canConfigure":[4,"can-configure"],"inlinePlayer":[4,"inline-player"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"serverId":[1,"server-id"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"connection":[32],"caps":[32],"jobs":[32],"tab":[32],"drawerOpen":[32],"dialogOpen":[32],"unread":[32],"form":[32],"where":[32],"starting":[32],"refusal":[32],"confirm":[32],"notices":[32],"subDir":[32],"picker":[32],"player":[32],"receive":[64],"openFetch":[64],"toggleDrawer":[64],"jobForPath":[64],"deleteDownload":[64],"torrentPathFor":[64],"startTorrentPath":[64]},null,{"channel":[{"onChannel":0}],"connected":[{"onConnected":0}],"browsingPath":[{"onBrowsing":0}],"browsingService":[{"onBrowsing":0}],"nodeId":[{"onNode":0}]}],[513,"phirepass-media-player",{"src":[1],"name":[1],"mime":[1],"status":[1],"ready":[2],"positionStore":[16],"positionKey":[1,"position-key"],"remotePlayback":[16],"linkMinter":[16],"castDevice":[1,"cast-device"],"phase":[32],"stored":[32],"castAvailable":[32],"castSrc":[32],"linkNote":[32],"currentTime":[32],"duration":[32],"close":[64]},null,{"src":[{"onSrc":0}]}]]]], options);
22
+ return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"channelFactory":[16],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"delete_is_dir":[32],"delete_recursive":[32],"delete_error":[32],"prompt_kind":[32],"prompt_value":[32],"prompt_error":[32],"prompt_busy":[32],"chmod_target":[32],"chmod_mode":[32],"chmod_error":[32],"chmod_busy":[32],"show_editor":[32],"editor_name":[32],"editor_text":[32],"editor_saved_text":[32],"editor_busy":[32],"editor_error":[32],"editor_confirm_discard":[32],"editor_loaded":[32],"filter":[32],"sort_key":[32],"sort_asc":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"keyBar":[1,"key-bar"],"serverId":[1,"server-id"],"channelFactory":[16],"ctrlArmed":[32],"altArmed":[32]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -273,117 +273,6 @@ class Channel {
273
273
  }
274
274
  wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, val5);
275
275
  }
276
- /**
277
- * @param {string} download_id
278
- * @param {boolean} delete_file
279
- * @param {number | null} [msg_id]
280
- */
281
- send_download_delete(download_id, delete_file, msg_id) {
282
- const val2 = +delete_file;
283
- const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
284
- const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
285
- const len0 = WASM_VECTOR_LEN;
286
- wasm.channel_send_download_delete(this.__wbg_ptr, ptr0, len0, val2, val3);
287
- }
288
- /**
289
- * @param {string} download_id
290
- * @param {boolean} ignore_window
291
- * @param {number | null} [msg_id]
292
- */
293
- send_download_resume(download_id, ignore_window, msg_id) {
294
- const val2 = +ignore_window;
295
- const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
296
- const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
297
- const len0 = WASM_VECTOR_LEN;
298
- wasm.channel_send_download_resume(this.__wbg_ptr, ptr0, len0, val2, val3);
299
- }
300
- /**
301
- * @param {string} download_id
302
- * @param {boolean} in_order
303
- * @param {number | null} [msg_id]
304
- */
305
- send_download_set_order(download_id, in_order, msg_id) {
306
- const val2 = +in_order;
307
- const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
308
- const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
309
- const len0 = WASM_VECTOR_LEN;
310
- wasm.channel_send_download_set_order(this.__wbg_ptr, ptr0, len0, val2, val3);
311
- }
312
- /**
313
- * @param {string} node_id
314
- * @param {number | null} [msg_id]
315
- */
316
- send_download_settings_get(node_id, msg_id) {
317
- const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
318
- const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
319
- const len0 = WASM_VECTOR_LEN;
320
- wasm.channel_send_download_settings_get(this.__wbg_ptr, ptr0, len0, val2);
321
- }
322
- /**
323
- * @param {string} node_id
324
- * @param {any} settings
325
- * @param {number | null} [msg_id]
326
- */
327
- send_download_settings_save(node_id, settings, msg_id) {
328
- const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
329
- const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
330
- const len0 = WASM_VECTOR_LEN;
331
- wasm.channel_send_download_settings_save(this.__wbg_ptr, ptr0, len0, settings, val2);
332
- }
333
- /**
334
- * @param {string} node_id
335
- * @param {any} source
336
- * @param {string | null | undefined} sub_dir
337
- * @param {any} browsing
338
- * @param {boolean | null | undefined} in_order
339
- * @param {any} options
340
- * @param {number | null} [msg_id]
341
- */
342
- send_download_start(node_id, source, sub_dir, browsing, in_order, options, msg_id) {
343
- const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
344
- let ptr0, len0, ptr1, len1;
345
- try {
346
- ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
347
- len0 = WASM_VECTOR_LEN;
348
- ptr1 = isLikeNone(sub_dir) ? 0 : passStringToWasm0(sub_dir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
349
- len1 = WASM_VECTOR_LEN;
350
- } catch (e) {
351
- if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
352
- if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
353
- throw e;
354
- }
355
- wasm.channel_send_download_start(this.__wbg_ptr, ptr0, len0, source, ptr1, len1, browsing, isLikeNone(in_order) ? 0xFFFFFF : in_order ? 1 : 0, options, val3);
356
- }
357
- /**
358
- * @param {string} download_id
359
- * @param {boolean} discard
360
- * @param {number | null} [msg_id]
361
- */
362
- send_download_stop(download_id, discard, msg_id) {
363
- const val2 = +discard;
364
- const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
365
- const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
366
- const len0 = WASM_VECTOR_LEN;
367
- wasm.channel_send_download_stop(this.__wbg_ptr, ptr0, len0, val2, val3);
368
- }
369
- /**
370
- * `{ Node: "<uuid>" }` or `"All"`.
371
- * @param {any} scope
372
- */
373
- send_download_subscribe(scope) {
374
- wasm.channel_send_download_subscribe(this.__wbg_ptr, scope);
375
- }
376
- /**
377
- * @param {string} node_id
378
- * @param {any} browsing
379
- * @param {number | null} [msg_id]
380
- */
381
- send_download_where(node_id, browsing, msg_id) {
382
- const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
383
- const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
384
- const len0 = WASM_VECTOR_LEN;
385
- wasm.channel_send_download_where(this.__wbg_ptr, ptr0, len0, browsing, val2);
386
- }
387
276
  /**
388
277
  * Set permission bits. The agent masks these to `0o7777`.
389
278
  * @param {string} node_id
@@ -539,31 +428,6 @@ class Channel {
539
428
  }
540
429
  wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
541
430
  }
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
- }
567
431
  /**
568
432
  * Read a whole file for the in-page editor. Answered with an
569
433
  * `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
@@ -840,10 +704,6 @@ function __wbg_get_imports() {
840
704
  const ret = Error(getStringFromWasm0(arg0, arg1));
841
705
  return ret;
842
706
  },
843
- __wbg_Number_ff192a72a0dcdf6d: function(arg0) {
844
- const ret = Number(arg0);
845
- return ret;
846
- },
847
707
  __wbg_String_8564e559799eccda: function(arg0, arg1) {
848
708
  const ret = String(arg1);
849
709
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -851,17 +711,6 @@ function __wbg_get_imports() {
851
711
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
852
712
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
853
713
  },
854
- __wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
855
- const v = arg1;
856
- const ret = typeof(v) === 'bigint' ? v : undefined;
857
- getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
858
- getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
859
- },
860
- __wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
861
- const v = arg0;
862
- const ret = typeof(v) === 'boolean' ? v : undefined;
863
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
864
- },
865
714
  __wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
866
715
  const ret = debugString(arg1);
867
716
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -869,49 +718,6 @@ function __wbg_get_imports() {
869
718
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
870
719
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
871
720
  },
872
- __wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
873
- const ret = arg0 in arg1;
874
- return ret;
875
- },
876
- __wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
877
- const ret = typeof(arg0) === 'bigint';
878
- return ret;
879
- },
880
- __wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
881
- const ret = typeof(arg0) === 'function';
882
- return ret;
883
- },
884
- __wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
885
- const ret = arg0 === null;
886
- return ret;
887
- },
888
- __wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
889
- const val = arg0;
890
- const ret = typeof(val) === 'object' && val !== null;
891
- return ret;
892
- },
893
- __wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
894
- const ret = typeof(arg0) === 'string';
895
- return ret;
896
- },
897
- __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
898
- const ret = arg0 === undefined;
899
- return ret;
900
- },
901
- __wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
902
- const ret = arg0 === arg1;
903
- return ret;
904
- },
905
- __wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
906
- const ret = arg0 == arg1;
907
- return ret;
908
- },
909
- __wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
910
- const obj = arg1;
911
- const ret = typeof(obj) === 'number' ? obj : undefined;
912
- getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
913
- getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
914
- },
915
721
  __wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
916
722
  const obj = arg1;
917
723
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -938,7 +744,7 @@ function __wbg_get_imports() {
938
744
  const ret = arg0.call(arg1, arg2, arg3);
939
745
  return ret;
940
746
  }, arguments); },
941
- __wbg_clearInterval_2ed00e80b9bdc143: function(arg0) {
747
+ __wbg_clearInterval_26ba580547547579: function(arg0) {
942
748
  const ret = clearInterval(arg0);
943
749
  return ret;
944
750
  },
@@ -949,14 +755,6 @@ function __wbg_get_imports() {
949
755
  const ret = arg0.data;
950
756
  return ret;
951
757
  },
952
- __wbg_done_57e08d0be6e30c02: function(arg0) {
953
- const ret = arg0.done;
954
- return ret;
955
- },
956
- __wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
957
- const ret = Object.entries(arg0);
958
- return ret;
959
- },
960
758
  __wbg_from_eac91875c8a5ffa4: function(arg0) {
961
759
  const ret = Array.from(arg0);
962
760
  return ret;
@@ -968,23 +766,7 @@ function __wbg_get_imports() {
968
766
  const ret = Reflect.get(arg0, arg1);
969
767
  return ret;
970
768
  }, arguments); },
971
- __wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) {
972
- const ret = Reflect.get(arg0, arg1);
973
- return ret;
974
- }, arguments); },
975
- __wbg_get_d7176cfb76d71114: function(arg0, arg1) {
976
- const ret = arg0[arg1 >>> 0];
977
- return ret;
978
- },
979
- __wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
980
- const ret = arg0[arg1 >>> 0];
981
- return ret;
982
- },
983
- __wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
984
- const ret = arg0[arg1];
985
- return ret;
986
- },
987
- __wbg_info_386f00b314475db5: function(arg0, arg1) {
769
+ __wbg_info_2b8ee6588e4c6072: function(arg0, arg1) {
988
770
  console.info(getStringFromWasm0(arg0, arg1));
989
771
  },
990
772
  __wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
@@ -997,36 +779,10 @@ function __wbg_get_imports() {
997
779
  const ret = result;
998
780
  return ret;
999
781
  },
1000
- __wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
1001
- let result;
1002
- try {
1003
- result = arg0 instanceof Uint8Array;
1004
- } catch (_) {
1005
- result = false;
1006
- }
1007
- const ret = result;
1008
- return ret;
1009
- },
1010
- __wbg_isArray_bcf1376d0d732d08: function(arg0) {
1011
- const ret = Array.isArray(arg0);
1012
- return ret;
1013
- },
1014
- __wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
1015
- const ret = Number.isSafeInteger(arg0);
1016
- return ret;
1017
- },
1018
- __wbg_iterator_e4c5e8f68ada7b58: function() {
1019
- const ret = Symbol.iterator;
1020
- return ret;
1021
- },
1022
782
  __wbg_length_186163212ffe79c3: function(arg0) {
1023
783
  const ret = arg0.length;
1024
784
  return ret;
1025
785
  },
1026
- __wbg_length_b03a0fabb109b1e9: function(arg0) {
1027
- const ret = arg0.length;
1028
- return ret;
1029
- },
1030
786
  __wbg_new_13de428334042d26: function(arg0) {
1031
787
  const ret = new Uint8Array(arg0);
1032
788
  return ret;
@@ -1043,14 +799,6 @@ function __wbg_get_imports() {
1043
799
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
1044
800
  return ret;
1045
801
  }, arguments); },
1046
- __wbg_next_178c1651c11432b3: function(arg0) {
1047
- const ret = arg0.next;
1048
- return ret;
1049
- },
1050
- __wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
1051
- const ret = arg0.next();
1052
- return ret;
1053
- }, arguments); },
1054
802
  __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
1055
803
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1056
804
  },
@@ -1065,7 +813,7 @@ function __wbg_get_imports() {
1065
813
  __wbg_send_d83d0891cf698779: function() { return handleError(function (arg0, arg1, arg2) {
1066
814
  arg0.send(getArrayU8FromWasm0(arg1, arg2));
1067
815
  }, arguments); },
1068
- __wbg_setInterval_ef738bbfe8cc0974: function() { return handleError(function (arg0, arg1) {
816
+ __wbg_setInterval_d933acbf2578adfa: function() { return handleError(function (arg0, arg1) {
1069
817
  const ret = setInterval(arg0, arg1);
1070
818
  return ret;
1071
819
  }, arguments); },
@@ -1090,31 +838,27 @@ function __wbg_get_imports() {
1090
838
  __wbg_set_onopen_757be120cc7b1ea6: function(arg0, arg1) {
1091
839
  arg0.onopen = arg1;
1092
840
  },
1093
- __wbg_value_e0f328965e184931: function(arg0) {
1094
- const ret = arg0.value;
1095
- return ret;
1096
- },
1097
- __wbg_warn_4f0851b2fd19b28b: function(arg0, arg1) {
841
+ __wbg_warn_b0df9a9e7105e74b: function(arg0, arg1) {
1098
842
  console.warn(getStringFromWasm0(arg0, arg1));
1099
843
  },
1100
844
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
1101
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1102
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96);
845
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
846
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63);
1103
847
  return ret;
1104
848
  },
1105
849
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
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`.
1107
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_47);
850
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
851
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63_37);
1108
852
  return ret;
1109
853
  },
1110
854
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
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`.
1112
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_48);
855
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
856
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63_38);
1113
857
  return ret;
1114
858
  },
1115
859
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
1116
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1117
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_100);
860
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
861
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_67);
1118
862
  return ret;
1119
863
  },
1120
864
  __wbindgen_generic_0000000000000005: function(arg0) {
@@ -1152,20 +896,20 @@ function __wbg_get_imports() {
1152
896
  };
1153
897
  }
1154
898
 
1155
- function __wasm_bindgen_func_elem_100(arg0, arg1) {
1156
- wasm.__wasm_bindgen_func_elem_100(arg0, arg1);
899
+ function __wasm_bindgen_func_elem_67(arg0, arg1) {
900
+ wasm.__wasm_bindgen_func_elem_67(arg0, arg1);
1157
901
  }
1158
902
 
1159
- function __wasm_bindgen_func_elem_96(arg0, arg1, arg2) {
1160
- wasm.__wasm_bindgen_func_elem_96(arg0, arg1, arg2);
903
+ function __wasm_bindgen_func_elem_63(arg0, arg1, arg2) {
904
+ wasm.__wasm_bindgen_func_elem_63(arg0, arg1, arg2);
1161
905
  }
1162
906
 
1163
- function __wasm_bindgen_func_elem_96_47(arg0, arg1, arg2) {
1164
- wasm.__wasm_bindgen_func_elem_96_47(arg0, arg1, arg2);
907
+ function __wasm_bindgen_func_elem_63_37(arg0, arg1, arg2) {
908
+ wasm.__wasm_bindgen_func_elem_63_37(arg0, arg1, arg2);
1165
909
  }
1166
910
 
1167
- function __wasm_bindgen_func_elem_96_48(arg0, arg1, arg2) {
1168
- wasm.__wasm_bindgen_func_elem_96_48(arg0, arg1, arg2);
911
+ function __wasm_bindgen_func_elem_63_38(arg0, arg1, arg2) {
912
+ wasm.__wasm_bindgen_func_elem_63_38(arg0, arg1, arg2);
1169
913
  }
1170
914
 
1171
915
 
@@ -1451,7 +1195,7 @@ async function __wbg_init_once(module_or_path) {
1451
1195
  }
1452
1196
 
1453
1197
  if (module_or_path === undefined) {
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)));
1198
+ 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-DCBMfc2u.js', document.baseURI).href)));
1455
1199
  }
1456
1200
  const imports = __wbg_get_imports();
1457
1201
 
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "entries": [
3
- "components/phirepass-downloader/phirepass-downloader.js",
4
- "components/phirepass-media-player/phirepass-media-player.js",
5
3
  "components/phirepass-rdp/phirepass-rdp.js",
6
4
  "components/phirepass-sftp-client/phirepass-sftp-client.js",
7
5
  "components/phirepass-terminal/phirepass-terminal.js"
@@ -1,21 +1 @@
1
- const DOWNLOAD_METHODS = [
2
- 'send_download_start',
3
- 'send_download_stop',
4
- 'send_download_resume',
5
- 'send_download_set_order',
6
- 'send_download_delete',
7
- 'send_download_subscribe',
8
- 'send_download_where',
9
- ];
10
- /**
11
- * Whether this channel can speak Remote Fetch. A channel built from a
12
- * `phirepass-channel` release older than T1.10 cannot, and the widgets then
13
- * keep the feature out of sight instead of offering buttons that do nothing.
14
- * The folder picker's method is optional (phase 4) and checked where used.
15
- */
16
- export function supportsDownloads(channel) {
17
- if (!channel || typeof channel !== 'object') {
18
- return false;
19
- }
20
- return DOWNLOAD_METHODS.every(name => typeof channel[name] === 'function');
21
- }
1
+ export {};
@@ -3,6 +3,16 @@ import init, { Channel as PhirepassChannel } from "phirepass-channel";
3
3
  import { ConnectionState, ProtocolMessageType, } from "../../common/protocol";
4
4
  import { measure_initial_desktop_size, ViewportSync } from "./phirepass-rdp.viewport";
5
5
  import { focus_client, keyboard_lock_supported, lock_keyboard, shown_fullscreen, toggle_fullscreen, unlock_keyboard, } from "./phirepass-rdp.keyboard";
6
+ /**
7
+ * Remote desktop over RDP.
8
+ *
9
+ * Unlike the terminal and SFTP widgets this one does not pipe protocol bytes
10
+ * through the phirepass channel. The channel is used only to authorise the
11
+ * session; the actual RDP stream runs on a second WebSocket opened by IronRDP's
12
+ * own client, because that client speaks RDCleanPath and can set neither
13
+ * headers nor a subprotocol on the socket it opens. See `RDP.md` in
14
+ * `phirepass-rs` for why the session is split across two sockets.
15
+ */
6
16
  export class PhirepassRdp {
7
17
  channel;
8
18
  containerEl;
@@ -92,12 +102,6 @@ export class PhirepassRdp {
92
102
  }
93
103
  }
94
104
  serverId;
95
- /**
96
- * Supplies the channel instead of a WebSocket to the server — for demos,
97
- * screenshots and tests, as on the terminal and SFTP client. A property
98
- * only; read once, when the widget connects.
99
- */
100
- channelFactory;
101
105
  onServerIdChange(_newValue, _oldValue) {
102
106
  this.onNodeIdChange(this.nodeId, this.nodeId);
103
107
  }
@@ -117,9 +121,7 @@ export class PhirepassRdp {
117
121
  // A widget can be moved in the DOM rather than destroyed, which
118
122
  // disconnects and reconnects it; the second life is a real one.
119
123
  this.disposed = false;
120
- if (!this.channelFactory) {
121
- await init();
122
- }
124
+ await init();
123
125
  this.open_comms();
124
126
  this.runtimeReady = true;
125
127
  if (!this.nodeId) {
@@ -215,10 +217,7 @@ export class PhirepassRdp {
215
217
  this.channel.connect();
216
218
  }
217
219
  open_comms() {
218
- if (this.channelFactory) {
219
- this.channel = this.channelFactory(`${this.create_web_socket_endpoint()}/api/web/ws`, this.nodeId, this.serverId || undefined);
220
- }
221
- else if (this.serverId) {
220
+ if (this.serverId) {
222
221
  this.channel = new PhirepassChannel(`${this.create_web_socket_endpoint()}/api/web/ws`, this.nodeId, this.serverId);
223
222
  }
224
223
  else {
@@ -537,7 +536,7 @@ export class PhirepassRdp {
537
536
  this.request_tunnel();
538
537
  }
539
538
  render() {
540
- return (h(Host, { key: '9db127da5dbe168ef5f7a021767e5cedeb8305e6' }, h("div", { key: '06d2de6763ec479198389032ab65033eefab21d6', class: "screen", ref: (el) => (this.containerEl = el) }, h("slot", { key: '7842ca9fd64795794e1b90e15319ddaa599f85b8' })), this.credentialsPrompt && (h("form", { key: 'ce53830ced182740f139a318f099918c31013d9f', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, h("label", { key: '2b55341b9cfc2e08a847e26985000f5e1bc86eca', htmlFor: "rdp-username" }, "Username"), h("input", { key: '243500ff59de6f16cc67acc5ddf9e15e3c0de0f6', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), h("label", { key: '5a346aa6a730c4cb0dd550eab9a65db9f2e74bc6', htmlFor: "rdp-password" }, "Password"), h("input", { key: '0f1081b05f94e15a7f04df4de390a33a021ffe53', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), h("button", { key: 'e9657c9df124176210508f5125fc526e3c78c5f1', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (h("div", { key: '3c59dbae63b7c5c5ef80344abad4b1a2b4c0b79d', class: "status" }, this.statusMessage))));
539
+ return (h(Host, { key: '56354df7bd0d3f01fcd5ff65ca5618ceb6af1b91' }, h("div", { key: '446dc83e41a29c3bc2c341a26092ed3581565967', class: "screen", ref: (el) => (this.containerEl = el) }, h("slot", { key: '2beafc92d81662dfac5c7b41356f6c6c802643b9' })), this.credentialsPrompt && (h("form", { key: 'dcc29b21fba03bb97526ec3d1cf5a1fb51b483e9', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, h("label", { key: 'b5a3e302089b2282aedbdbefd4fb5eaca7c34455', htmlFor: "rdp-username" }, "Username"), h("input", { key: '3bd1c902a6bc41bc7e69c16258cac78035a949bd', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), h("label", { key: '2defe12d73b609cbad27c06447c3c3221ff3e5aa', htmlFor: "rdp-password" }, "Password"), h("input", { key: '55935891f24f0c1db71a14c42b2fc7a96c0c0ba6', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), h("button", { key: '83439c0e8756001c7042fc3b6754889d62a8eada', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (h("div", { key: '294262625f44a3f45d54bcd492875a9b6fd03219', class: "status" }, this.statusMessage))));
541
540
  }
542
541
  static get is() { return "phirepass-rdp"; }
543
542
  static get encapsulation() { return "shadow"; }
@@ -845,28 +844,6 @@ export class PhirepassRdp {
845
844
  "setter": false,
846
845
  "reflect": false,
847
846
  "attribute": "server-id"
848
- },
849
- "channelFactory": {
850
- "type": "unknown",
851
- "mutable": false,
852
- "complexType": {
853
- "original": "(endpoint: string, nodeId: string, serverId?: string) => RdpChannelLike",
854
- "resolved": "(endpoint: string, nodeId: string, serverId?: string) => RdpChannelLike",
855
- "references": {
856
- "RdpChannelLike": {
857
- "location": "global",
858
- "id": "global::RdpChannelLike"
859
- }
860
- }
861
- },
862
- "required": false,
863
- "optional": true,
864
- "docs": {
865
- "tags": [],
866
- "text": "Supplies the channel instead of a WebSocket to the server \u2014 for demos,\nscreenshots and tests, as on the terminal and SFTP client. A property\nonly; read once, when the widget connects."
867
- },
868
- "getter": false,
869
- "setter": false
870
847
  }
871
848
  };
872
849
  }