phirepass-widgets 0.0.81 → 0.0.82

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 (34) hide show
  1. package/dist/cjs/{index-D-l8xaCI.js → index-Dtiw2goq.js} +28 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/phirepass-rdp.cjs.entry.js +296 -8
  4. package/dist/cjs/phirepass-sftp-client.cjs.entry.js +17 -17
  5. package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
  6. package/dist/cjs/phirepass-widgets.cjs.js +2 -2
  7. package/dist/collection/components/phirepass-rdp/phirepass-rdp.css +16 -5
  8. package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +216 -6
  9. package/dist/collection/components/phirepass-rdp/phirepass-rdp.keyboard.js +88 -0
  10. package/dist/collection/components/phirepass-rdp/phirepass-rdp.viewport.js +85 -0
  11. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.js +16 -16
  12. package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +1 -1
  13. package/dist/components/index.js +1 -1
  14. package/dist/components/phirepass-rdp.js +1 -1
  15. package/dist/components/phirepass-sftp-client.js +1 -1
  16. package/dist/components/phirepass-terminal.js +1 -1
  17. package/dist/esm/{index-DovZQ7sb.js → index-Buu-IaNK.js} +28 -0
  18. package/dist/esm/loader.js +3 -3
  19. package/dist/esm/phirepass-rdp.entry.js +296 -8
  20. package/dist/esm/phirepass-sftp-client.entry.js +17 -17
  21. package/dist/esm/phirepass-terminal.entry.js +2 -2
  22. package/dist/esm/phirepass-widgets.js +3 -3
  23. package/dist/phirepass-widgets/p-306c47c5.entry.js +1 -0
  24. package/dist/phirepass-widgets/{p-19789356.entry.js → p-8dca9e3a.entry.js} +1 -1
  25. package/dist/phirepass-widgets/p-Buu-IaNK.js +2 -0
  26. package/dist/phirepass-widgets/{p-2478a6eb.entry.js → p-b74a5300.entry.js} +2 -2
  27. package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
  28. package/dist/types/components/phirepass-rdp/phirepass-rdp.d.ts +65 -0
  29. package/dist/types/components/phirepass-rdp/phirepass-rdp.keyboard.d.ts +42 -0
  30. package/dist/types/components/phirepass-rdp/phirepass-rdp.viewport.d.ts +33 -0
  31. package/dist/types/components.d.ts +34 -0
  32. package/package.json +1 -1
  33. package/dist/phirepass-widgets/p-DovZQ7sb.js +0 -2
  34. package/dist/phirepass-widgets/p-a5528005.entry.js +0 -1
@@ -15,10 +15,12 @@ export declare class PhirepassRdp {
15
15
  private containerEl?;
16
16
  private ironEl?;
17
17
  private userInteraction?;
18
+ private viewport?;
18
19
  private domReady;
19
20
  private runtimeReady;
20
21
  private connected;
21
22
  private session_id?;
23
+ private readonly onFullscreenChange;
22
24
  /** Credentials in force for this session, from props or from the prompt. */
23
25
  private credentials?;
24
26
  private credentialsPrompt;
@@ -53,6 +55,26 @@ export declare class PhirepassRdp {
53
55
  destination?: string;
54
56
  /** `fit` scales the desktop to the widget, `real` keeps 1:1 pixels. */
55
57
  scale: 'fit' | 'full' | 'real';
58
+ /**
59
+ * Ask the remote host to change its resolution to match the widget whenever
60
+ * the widget is resized, so the desktop is rendered at native size rather
61
+ * than scaled.
62
+ *
63
+ * The host has the last word: this needs the display-control channel, and a
64
+ * host that does not offer it simply keeps the resolution it started with —
65
+ * which `scale` then fits into the widget, as before.
66
+ */
67
+ dynamicResize: boolean;
68
+ /**
69
+ * While the widget is fullscreen, take the keys the browser normally keeps
70
+ * for itself (Ctrl+W, Ctrl+T, Alt+Tab, F11) and send them to the remote
71
+ * host instead. Escape is taken too, so leaving fullscreen becomes a
72
+ * press-and-hold.
73
+ *
74
+ * Ordinary keys do not depend on this — they are forwarded whenever the
75
+ * desktop has focus.
76
+ */
77
+ captureKeyboard: boolean;
56
78
  onNodeIdChange(newValue?: string, _oldValue?: string): void;
57
79
  serverId?: string;
58
80
  onServerIdChange(_newValue?: string, _oldValue?: string): void;
@@ -61,6 +83,17 @@ export declare class PhirepassRdp {
61
83
  connectedCallback(): Promise<void>;
62
84
  componentDidLoad(): void;
63
85
  disconnectedCallback(): Promise<void>;
86
+ /**
87
+ * Puts the widget in and out of fullscreen, returning the state it settled
88
+ * in. Fullscreen is also what makes `captureKeyboard` possible, so a host
89
+ * app wanting the browser's own shortcuts to reach the remote desktop has
90
+ * to come through here.
91
+ */
92
+ toggleFullscreen(): Promise<boolean>;
93
+ /** Whether the browser can hand over its reserved keys at all. */
94
+ keyboardLockSupported(): Promise<boolean>;
95
+ /** Directs keystrokes at the remote desktop without waiting for a click. */
96
+ focusDesktop(): Promise<void>;
64
97
  private try_connect;
65
98
  private connect;
66
99
  private open_comms;
@@ -79,7 +112,39 @@ export declare class PhirepassRdp {
79
112
  * TCP + x224 + TLS hop, and the ticket expires 60s from now.
80
113
  */
81
114
  private handle_rdp_authorized;
115
+ /**
116
+ * Mounts the client in the widget's **light** DOM, slotted into `.screen`,
117
+ * rather than as a child of the shadow root.
118
+ *
119
+ * This is what makes the keyboard work. IronRDP forwards a key event only
120
+ * while `document.activeElement` is its own element, and `activeElement`
121
+ * retargets focus to the outermost shadow host: with the client inside this
122
+ * widget's shadow root the answer is always `<phirepass-rdp>`, the check
123
+ * never passes, and not one keystroke reaches the remote host — while the
124
+ * mouse, which is bound to the canvas directly, works fine. Slotting the
125
+ * client leaves it in the document tree, so `activeElement` resolves to the
126
+ * client itself.
127
+ */
128
+ private mount_client;
82
129
  private start_session;
130
+ /**
131
+ * Keeps the remote resolution equal to the widget's size.
132
+ *
133
+ * `setVisibility(true)` is what gives the widget its layout, so the first
134
+ * measurement has to happen after it — measuring earlier reads a hidden,
135
+ * zero-sized box.
136
+ */
137
+ private start_viewport_sync;
138
+ private stop_viewport_sync;
139
+ private resize_desktop;
140
+ private focus_desktop;
141
+ /**
142
+ * Holds the keyboard lock exactly while the widget is fullscreen. Both
143
+ * edges matter: the browser drops the lock on its own when fullscreen ends,
144
+ * but not when the session does, and a lock left behind would keep
145
+ * swallowing shortcuts for the rest of the page.
146
+ */
147
+ private sync_keyboard_lock;
83
148
  /** IronRDP rejects with its own error shape rather than an `Error`. */
84
149
  private describe_error;
85
150
  private handle_tunnel_closed;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Keyboard capture for the RDP widget, in two layers.
3
+ *
4
+ * **Ordinary keys** are IronRDP's own doing: it listens on `window` and
5
+ * forwards a key event only while its element is `document.activeElement`. That
6
+ * check is why the client element is mounted in the widget's *light* DOM — see
7
+ * the note on `mount_client` in the component — and why it has to be focused,
8
+ * which `focus_client` below is for.
9
+ *
10
+ * **Keys the browser reserves** (Ctrl+W, Ctrl+T, Ctrl+N, Alt+Tab, F11, Escape)
11
+ * never reach the page at all, so no amount of focus will forward them. The
12
+ * only way to have them is the Keyboard Lock API, and browsers grant that only
13
+ * to a document that is already fullscreen. So "capture my keyboard" is really
14
+ * "go fullscreen, then lock" — hence `toggle_fullscreen`.
15
+ */
16
+ /** Chromium-only at the time of writing; Firefox and Safari have no equivalent. */
17
+ export declare function keyboard_lock_supported(): boolean;
18
+ /** Strictly this element — what deciding whether to enter or exit turns on. */
19
+ export declare function is_fullscreen(element: Element): boolean;
20
+ /**
21
+ * This element *or* something around it. The lock is granted per document, so
22
+ * a host app that made a whole panel fullscreen should get it too.
23
+ */
24
+ export declare function shown_fullscreen(element: Element): boolean;
25
+ /**
26
+ * Takes every key the browser is willing to give up. Called with no arguments
27
+ * `lock()` claims the lot, including Escape — which is also the key that leaves
28
+ * fullscreen, so the browser substitutes a press-and-hold gesture for it.
29
+ */
30
+ export declare function lock_keyboard(element: Element): Promise<void>;
31
+ export declare function unlock_keyboard(): void;
32
+ /** Returns whether `element` is fullscreen once the request has settled. */
33
+ export declare function toggle_fullscreen(element: HTMLElement): Promise<boolean>;
34
+ /**
35
+ * Gives the client element focus so IronRDP starts forwarding keys.
36
+ *
37
+ * The element's shadow root is opened with `delegatesFocus`, so focusing the
38
+ * host lands on the canvas inside it; the canvas is what IronRDP watches. Doing
39
+ * this on connect saves the user the mouse-over that would otherwise be needed
40
+ * before the first keystroke lands.
41
+ */
42
+ export declare function focus_client(element: HTMLElement | undefined): void;
@@ -0,0 +1,33 @@
1
+ import type { DesktopSize } from '@devolutions/iron-remote-desktop';
2
+ /** How long a drag has to settle before the host is asked for a new size. */
3
+ export declare const RESIZE_DEBOUNCE_MS = 250;
4
+ export declare function clamp_desktop_size(width: number, height: number): DesktopSize;
5
+ /** The size the remote desktop would need to be to fill `element` exactly. */
6
+ export declare function measure_desktop_size(element: Element): DesktopSize;
7
+ export declare function same_desktop_size(a?: DesktopSize, b?: DesktopSize): boolean;
8
+ /**
9
+ * Reports the widget's size to whoever can act on it, as the widget is resized.
10
+ *
11
+ * Two behaviours are deliberate. It **debounces**, because dragging a panel
12
+ * edge emits a resize per frame while every report costs a display-control
13
+ * round trip to the host — and a host that is still applying one layout ignores
14
+ * the next. And it **drops repeats**, because a resize observer also fires for
15
+ * changes that do not move the desktop at all (a scrollbar appearing, the
16
+ * canvas being re-laid-out in response to the resize this class just asked for,
17
+ * which would otherwise loop).
18
+ */
19
+ export declare class ViewportSync {
20
+ private readonly onResize;
21
+ private readonly debounceMs;
22
+ private observer?;
23
+ private handle?;
24
+ private reported?;
25
+ constructor(onResize: (size: DesktopSize) => void, debounceMs?: number);
26
+ /**
27
+ * Starts watching `element`. The current size is reported immediately, so a
28
+ * widget that was resized while disconnected catches up on reconnect.
29
+ */
30
+ observe(element: Element): void;
31
+ disconnect(): void;
32
+ private report;
33
+ }
@@ -22,14 +22,32 @@ export namespace Components {
22
22
  * @default false
23
23
  */
24
24
  "allowInsecure": boolean;
25
+ /**
26
+ * While the widget is fullscreen, take the keys the browser normally keeps for itself (Ctrl+W, Ctrl+T, Alt+Tab, F11) and send them to the remote host instead. Escape is taken too, so leaving fullscreen becomes a press-and-hold. Ordinary keys do not depend on this — they are forwarded whenever the desktop has focus.
27
+ * @default true
28
+ */
29
+ "captureKeyboard": boolean;
25
30
  /**
26
31
  * What to name the host in the CredSSP service principal (`TERMSRV/...`). The agent dials whatever the node's service settings say, so this is never used for routing. It matters only because some hosts check the SPN, and the browser has no other way to learn the host's real address.
27
32
  */
28
33
  "destination"?: string;
34
+ /**
35
+ * Ask the remote host to change its resolution to match the widget whenever the widget is resized, so the desktop is rendered at native size rather than scaled. The host has the last word: this needs the display-control channel, and a host that does not offer it simply keeps the resolution it started with — which `scale` then fits into the widget, as before.
36
+ * @default true
37
+ */
38
+ "dynamicResize": boolean;
39
+ /**
40
+ * Directs keystrokes at the remote desktop without waiting for a click.
41
+ */
42
+ "focusDesktop": () => Promise<void>;
29
43
  /**
30
44
  * @default 30_000
31
45
  */
32
46
  "heartbeatInterval": number;
47
+ /**
48
+ * Whether the browser can hand over its reserved keys at all.
49
+ */
50
+ "keyboardLockSupported": () => Promise<boolean>;
33
51
  "nodeId": string;
34
52
  "password"?: string;
35
53
  /**
@@ -47,6 +65,10 @@ export namespace Components {
47
65
  */
48
66
  "serverPort": number;
49
67
  "serviceId": string;
68
+ /**
69
+ * Puts the widget in and out of fullscreen, returning the state it settled in. Fullscreen is also what makes `captureKeyboard` possible, so a host app wanting the browser's own shortcuts to reach the remote desktop has to come through here.
70
+ */
71
+ "toggleFullscreen": () => Promise<boolean>;
50
72
  "token": string;
51
73
  /**
52
74
  * Credentials for the remote host. When either is missing the widget prompts for both. They serve two purposes at once: the agent checks them before it authorises the tunnel, and the browser uses them for CredSSP. The agent never logs in with them — it discards them once the tunnel is authorised.
@@ -213,10 +235,20 @@ declare namespace LocalJSX {
213
235
  * @default false
214
236
  */
215
237
  "allowInsecure"?: boolean;
238
+ /**
239
+ * While the widget is fullscreen, take the keys the browser normally keeps for itself (Ctrl+W, Ctrl+T, Alt+Tab, F11) and send them to the remote host instead. Escape is taken too, so leaving fullscreen becomes a press-and-hold. Ordinary keys do not depend on this — they are forwarded whenever the desktop has focus.
240
+ * @default true
241
+ */
242
+ "captureKeyboard"?: boolean;
216
243
  /**
217
244
  * What to name the host in the CredSSP service principal (`TERMSRV/...`). The agent dials whatever the node's service settings say, so this is never used for routing. It matters only because some hosts check the SPN, and the browser has no other way to learn the host's real address.
218
245
  */
219
246
  "destination"?: string;
247
+ /**
248
+ * Ask the remote host to change its resolution to match the widget whenever the widget is resized, so the desktop is rendered at native size rather than scaled. The host has the last word: this needs the display-control channel, and a host that does not offer it simply keeps the resolution it started with — which `scale` then fits into the widget, as before.
249
+ * @default true
250
+ */
251
+ "dynamicResize"?: boolean;
220
252
  /**
221
253
  * @default 30_000
222
254
  */
@@ -321,6 +353,8 @@ declare namespace LocalJSX {
321
353
  "password": string;
322
354
  "destination": string;
323
355
  "scale": 'fit' | 'full' | 'real';
356
+ "dynamicResize": boolean;
357
+ "captureKeyboard": boolean;
324
358
  "serverId": string;
325
359
  }
326
360
  interface PhirepassSftpClientAttributes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phirepass-widgets",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "description": "Phirepass widgets for the web application",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],s=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);s&&Object.defineProperty(e,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},s=(t,e)=>e in t,i=(t,e)=>(0,console.error)(t,e),r=new Map,c=new Map,u="undefined"!=typeof window?window:{},f={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),d=(()=>{try{return!!u.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),p=!!d&&(()=>!!u.document&&Object.getOwnPropertyDescriptor(u.document.adoptedStyleSheets,"length").writable)(),h=!1,m=[],v=[],b=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.u?$(w):f.raf(w))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},w=()=>{y(m),y(v),(h=m.length>0)&&f.raf(w)},$=t=>a().then(t),g=b(v,!0);function j(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(p?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var S,k=new WeakMap,E=t=>"sc-"+t.h,M=t=>"object"==(t=typeof t)||"function"===t,C=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!M(o))&&(o+=""),s&&i?r[r.length-1].m+=o:r.push(s?x(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},x=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),L={},N=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},P=(t,e)=>null==t||M(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,R=t=>{var e;return null==(e=o(t))?void 0:e.$hostElement$},D=(t,e)=>{const n=R(t);return{emit:t=>H(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},H=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},T=(t,e,n,l,i,r)=>{if(n===l)return;let c=s(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,o=U(n);let s=U(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&Q(l,t);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let s;{const e=o(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(s=t[1])}}return s||(s=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const o=M(l);if((c||o&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&r||i)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}else if(e="-"===e[2]?e.slice(3):s(u,a)?a.slice(2):a[2]+e.slice(3),n||l){const o=e.endsWith(W);e=e.replace(z,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}},A=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(A):[]),W="Capture",z=RegExp(W+"$"),F=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},s=e.v||{};for(const t of V(Object.keys(l)))t in s||T(o,t,l[t],void 0,n,e.u);for(const t of V(Object.keys(s)))T(o,t,l[t],s[t],n,e.u)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var q=!1,G=[],Y=[],Z=(t,e,n)=>{const o=e.$[n];let l,s,i=0;if(null!=o.m)l=o.S=u.document.createTextNode(o.m);else{if(q||(q="svg"===o.O),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=u.document.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),q&&"foreignObject"===o.O&&(q=!1),F(null,o,q),o.$){const e="template"===o.O?l.content:l;for(i=0;i<o.$.length;++i)s=Z(t,o,i),s&&e.appendChild(s)}"svg"===o.O?q=!1:"foreignObject"===l.tagName&&(q=!0)}return l["s-hn"]=S,l},_=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===S&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=s;++l)o[l]&&(i=Z(null,n,l),i&&(o[l].S=i,X(r,i,e)))},B=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;K(e),t&&t.remove()}}},I=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),J=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,s=e.$,i=e.O,r=e.m;null==r?(F(t,e,q="svg"===i||"foreignObject"!==i&&q),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],h=o.length-1,m=o[0],v=o[h];const b="template"===n.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(I(d,m,l))J(d,m,l),d=e[++r],m=o[++c];else if(I(p,v,l))J(p,v,l),p=e[--a],v=o[--h];else if(I(d,v,l))J(d,v,l),X(b,d.S,p.S.nextSibling),d=e[++r],v=o[--h];else if(I(p,m,l))J(p,m,l),X(b,p.S,d.S),p=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(i=e[u],i.O!==m.O?s=Z(e&&e[c],n,u):(J(i,m,l),e[u]=void 0,s=i.S),m=o[++c]):(s=Z(e&&e[c],n,c),m=o[++c]),s&&X(d.S.parentNode,s,d.S)}r>a?_(t,null==o[h+1]?null:o[h+1].S,n,o,c,h):c>h&&B(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.m&&(o.textContent=""),_(o,null,e,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1),q&&"svg"===i&&(q=!1)):t.m!==r&&(o.data=r)},K=t=>{t.v&&t.v.ref&&G.push((()=>t.v.ref(null))),t.$&&t.$.map(K)},Q=(t,e)=>{Y.push((()=>t(e)))},X=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},et=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);tt(t,t.M);const n=()=>nt(t,e);if(!e)return g(n);queueMicrotask((()=>{n()}))},nt=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=ut(o,"componentWillLoad",void 0,n)):l=ut(o,"componentWillUpdate",void 0,n),l=ot(l,(()=>ut(o,"componentWillRender",void 0,n))),ot(l,(()=>st(t,o,e)))},ot=(t,e)=>lt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),lt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const s=E(e),i=c.get(s);if(!u.document)return s;if(t=11===t.nodeType?t:u.document,i)if("string"==typeof i){let l,r=k.get(t=t.head||t);if(r||k.set(t,r=new Set),!r.has(s)){l=u.document.createElement("style"),l.textContent=i;const c=null!=(n=f.L)?n:O(u.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(i),p?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=i+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(s)}}else{let e=k.get(t);if(e||k.set(t,e=new Set),!e.has(s)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===n.CSSStyleSheet)o=i;else{o=new n.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}p?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(s)}}return s})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},it=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.N||x(null,null),s=(t=>t&&t.O===L)(e)?e:C(null,null,e);if(S=o.tagName,n&&s.v)for(const t of Object.keys(s.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.v[t]=o[t]);s.O=null,s.u|=4,t.N=s,s.S=l.S=o.shadowRoot||o,J(l,s,n),G.forEach((t=>t())),G.length=0,Y.forEach((t=>t())),Y.length=0})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},rt=t=>{const e=t.$hostElement$,n=t.i,o=t.M;ut(n,"componentDidRender",void 0,e),64&t.u?ut(n,"componentDidUpdate",void 0,e):(t.u|=64,ft(e),ut(n,"componentDidLoad",void 0,e),t.P(e),o||ct()),t.R(e),t.k&&(t.k(),t.k=void 0),512&t.u&&$((()=>et(t,!1))),t.u&=-517},ct=()=>{$((()=>H(u,"appload",{detail:{namespace:"phirepass-widgets"}})))},ut=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},ft=t=>t.classList.add("hydrated"),at=(t,e,n,l)=>{const s=o(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${l.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=s.$hostElement$,c=s.l.get(e),u=s.u,f=s.i;if(n=P(n,l.t[e][0]),!(8&u&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n))){if(s.l.set(e,n),l.D){const t=l.D[e];t&&t.map((t=>{try{const[[o,l]]=Object.entries(t);(128&u||1&l)&&(f?f[o](n,c,e):s.C.push((()=>{s.i[o](n,c,e)})))}catch(t){i(t,r)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,c,e)&&!(16&u))return;16&u||et(s,!1)}}},dt=(e,n,l)=>{var s,i;const r=e.prototype;{e.watchers&&!n.D&&(n.D=N(e.watchers)),e.deserializers&&!n.H&&(n.H=e.deserializers),e.serializers&&!n.T&&(n.T=e.serializers);const c=Object.entries(null!=(s=n.t)?s:{});if(c.map((([e,[s]])=>{if(31&s||2&l&&32&s){const{get:i,set:c}=t(r,e)||{};i&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&l||!i)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>o(this).l.get(e))(0,e);const t=o(this),l=t?t.i:r;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const i=o(this);if(i){if(c)return void 0===(32&s?this[e]:i.$hostElement$[e])&&i.l.get(e)&&(t=i.l.get(e)),c.call(this,P(t,s)),void at(this,e,t=32&s?this[e]:i.$hostElement$[e],n);{if(!(1&l&&4096&n.t[e][0]))return at(this,e,t,n),void(1&l&&!i.i&&i.C.push((()=>{4096&n.t[e][0]&&i.i[e]!==i.l.get(e)&&(i.i[e]=t)})));const o=()=>{const o=i.i[e];!i.l.get(e)&&o&&i.l.set(e,o),i.i[e]=P(t,s),at(this,e,i.i[e],n)};i.i?o():i.C.push((()=>{o()}))}}}})}else 1&l&&64&s&&Object.defineProperty(r,e,{value(...t){var n;const l=o(this);return null==(n=null==l?void 0:l.A)?void 0:n.then((()=>{var n;return null==(n=l.i)?void 0:n[e](...t)}))}})})),1&l){const t=new Map;r.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var i;const u=t.get(e),f=o(this);if(this.hasOwnProperty(u)&&(s=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&s!==l){const o=f.i,r=null==(i=n.D)?void 0:i[e];null==r||r.forEach((n=>{const[[i,r]]=Object.entries(n);null!=o[i]&&(128&t||1&r)&&o[i].call(o,s,l,e)}))}return}const a=c.find((([t])=>t===u)),d=a&&4&a[1][0],p=d&&null===s&&void 0===this[u];d&&(s=null!==s&&"false"!==s);const h=Object.getOwnPropertyDescriptor(r,u);p||s==this[u]||h.get&&!h.set||(this[u]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.D)?i:{}),...c.filter((([t,e])=>31&e[0])).map((([e,n])=>{const o=n[1]||e;return t.set(o,e),o}))]))}}return e},pt=(t,e)=>{ut(t,"connectedCallback",void 0,e)},ht=(t,e)=>{ut(t,"disconnectedCallback",void 0,e||t)},mt=(t,e={})=>{var n;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],s=e.exclude||[],a=u.customElements,p=u.document.head,h=p.querySelector("meta[charset]"),m=u.document.createElement("style"),v=[];let b,y=!0;if(Object.assign(f,e),f.p=new URL(e.resourcesUrl||"./",u.document.baseURI).href,t.map((t=>{t[1].map((e=>{var n,u;const p={u:e[0],h:e[1],t:e[2],U:e[3]};p.t=e[2],p.D=N(e[4]),p.T=null!=(n=e[5])?n:{},p.H=null!=(u=e[6])?u:{};const h=p.h,m=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,W:new Map};n.A=new Promise((t=>n.R=t)),n.F=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,p),1&p.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${p.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else j.call(t,p)}connectedCallback(){o(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),y?v.push(this):f.jmp((()=>(t=>{if(!(1&f.u)){const e=o(t);if(!e)return;const n=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?pt(e.i,t):(null==e?void 0:e.F)&&e.F.then((()=>pt(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;try{if(!(32&e.u)){if(e.u|=32,n.V){const l=((t,e)=>{const n=t.h.replace(/-/g,"_"),o=t.V;if(!o)return;const l=r.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(r.set(o,t),t[n])),(t=>{i(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.h}#${e.q}" was not found`);o.isProxied||(n.D=N(o.watchers),n.T=o.serializers,n.H=o.deserializers,dt(o,n,2),o.isProxied=!0);const s=()=>{};e.u|=8;try{new o(e)}catch(e){i(e,t)}e.u&=-9,e.u|=128,s(),pt(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=E(n);if(!c.has(e)){const o=()=>{};((t,e,n)=>{let o=c.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,c.set(t,o)})(e,t,!!(1&n.u)),o()}}}const l=e.M,s=()=>et(e,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(n){i(n,t),e.k&&(e.k(),e.k=void 0),e.P&&e.P(t)}})(t,e,n)}l()}})(this))))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.u)){const e=o(t);(null==e?void 0:e.i)?ht(e.i,t):(null==e?void 0:e.F)&&e.F.then((()=>ht(e.i,t)))}k.has(t)&&k.delete(t),t.shadowRoot&&k.has(t.shadowRoot)&&k.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=o(this);if(!e)return;const n=v.findIndex((t=>t===this));n>-1&&v.splice(n,1),(null==(t=null==e?void 0:e.N)?void 0:t.S)instanceof Node&&!e.N.S.isConnected&&delete e.N.S}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.F}};p.V=t[0],s.includes(h)||a.get(h)||(l.push(h),a.define(h,dt(m,p,1)))}))})),l.length>0&&(m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(n=f.L)?n:O(u.document);null!=t&&m.setAttribute("nonce",t),p.insertBefore(m,h?h.nextSibling:p.firstChild)}y=!1,v.length?v.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(ct,30)))},vt=t=>f.L=t;export{L as H,mt as b,D as c,R as g,C as h,a as p,l as r,vt as s}
@@ -1 +0,0 @@
1
- import{r as t,c as s,g as e,h as i,H as o}from"./p-DovZQ7sb.js";import{_ as n,C as h,a as r,P as a}from"./p-CWIhN33k.js";const d=class{constructor(e){t(this,e),this.connectionStateChanged=s(this,"connectionStateChanged")}channel;containerEl;ironEl;userInteraction;domReady=!1;runtimeReady=!1;connected=!1;session_id;credentials;credentialsPrompt=!1;statusMessage;usernameBuffer="";passwordBuffer="";get el(){return e(this)}serverHost="phirepass.com";serverPort=443;allowInsecure=!1;heartbeatInterval=3e4;nodeId;serviceId;token;username;password;destination;scale="fit";onNodeIdChange(t,s){this.reset_session_state(),this.channel&&this.channel.is_connected()&&this.close_comms(),t&&(this.open_comms(),this.channel.connect())}serverId;onServerIdChange(t,s){this.onNodeIdChange(this.nodeId,this.nodeId)}connectionStateChanged;create_web_socket_endpoint(){const t=this.allowInsecure?"ws":"wss";return this.allowInsecure||443!==this.serverPort?this.allowInsecure&&80===this.serverPort?`${t}://${this.serverHost}`:`${t}://${this.serverHost}:${this.serverPort}`:`${t}://${this.serverHost}`}async connectedCallback(){await n(),this.open_comms(),this.runtimeReady=!0,this.nodeId?this.try_connect():console.warn("Prop node_id is not set. Cannot connect to RDP.")}componentDidLoad(){this.domReady=!0,this.try_connect()}async disconnectedCallback(){this.connected=!1,this.domReady=!1,this.runtimeReady=!1,this.close_comms()}try_connect(){!this.connected&&this.domReady&&this.runtimeReady&&this.containerEl&&this.channel&&this.connect()}connect(){this.connected=!0,this.channel.connect()}open_comms(){this.channel=this.serverId?new h(`${this.create_web_socket_endpoint()}/api/web/ws`,this.nodeId,this.serverId):new h(`${this.create_web_socket_endpoint()}/api/web/ws`,this.nodeId),this.channel.on_connection_open((()=>{this.connectionStateChanged.emit([r.Connected]),this.channel.authenticate(this.token,this.nodeId)})),this.channel.on_connection_close((()=>{this.connectionStateChanged.emit([r.Disconnected]),this.teardown_client()})),this.channel.on_connection_error((t=>{this.connectionStateChanged.emit([r.Error,t])})),this.channel.on_connection_message((()=>{})),this.channel.on_protocol_message((t=>{const{web:s}=t.data;switch(s.type){case a.Error:this.handle_error(s);break;case a.AuthSuccess:this.handle_auth_success(s);break;case a.RDPAuthorized:this.handle_rdp_authorized(s);break;case a.TunnelClosed:this.handle_tunnel_closed(s);break;default:console.warn("Unknown protocol message type:",s)}}))}close_comms(){this.teardown_client(),this.channel&&(this.channel.stop_heartbeat(),this.channel.disconnect())}reset_session_state(){this.session_id=void 0,this.credentials=void 0,this.credentialsPrompt=!1,this.usernameBuffer="",this.passwordBuffer="",this.statusMessage=void 0}handle_auth_success(t){if(this.channel.start_heartbeat(this.heartbeatInterval<=15e3?3e4:this.heartbeatInterval),this.username&&this.password)return this.credentials={username:this.username,password:this.password},void this.request_tunnel();this.credentialsPrompt=!0}request_tunnel(){this.credentials&&(this.statusMessage=void 0,this.channel.open_rdp_tunnel(this.nodeId,this.serviceId,this.credentials.username,this.credentials.password))}async handle_rdp_authorized(t){this.session_id=t.sid,this.statusMessage="Connecting…";const[s]=await Promise.all([import("@devolutions/iron-remote-desktop-rdp"),import("@devolutions/iron-remote-desktop")]);if(!this.containerEl||this.session_id!==t.sid)return;if(await s.init("info"),!this.containerEl||this.session_id!==t.sid)return;const e=document.createElement("iron-remote-desktop");e.module=s.Backend,e.scale=this.scale,e.flexcenter=!0,e.verbose=!1,e.addEventListener("ready",(e=>{this.start_session(e.detail.irgUserInteraction,t.ticket,s.enableCredssp(!0))})),this.ironEl=e,this.containerEl.appendChild(e)}async start_session(t,s,e){this.userInteraction=t;const i=t.configBuilder().withUsername(this.credentials?.username??"").withPassword(this.credentials?.password??"").withDestination(this.destination??this.nodeId).withProxyAddress(`${this.create_web_socket_endpoint()}/api/web/rdp/${this.nodeId}`).withAuthToken(s).withExtension(e).build();try{const s=await t.connect(i);t.setVisibility(!0),this.statusMessage=void 0;const e=await s.run();this.statusMessage=e.reason()}catch(t){const s=this.describe_error(t);this.statusMessage=s,this.connectionStateChanged.emit([r.Error,t])}}describe_error(t){return t&&"function"==typeof t.backtrace?t.backtrace():t instanceof Error?t.message:"Connection failed."}handle_tunnel_closed(t){this.session_id=void 0,this.statusMessage=this.statusMessage??"Connection closed.",this.teardown_client(),this.close_comms()}handle_error(t){this.statusMessage=t.message,this.connectionStateChanged.emit([r.Error,t])}teardown_client(){if(this.userInteraction){try{this.userInteraction.shutdown()}catch(t){console.warn("Failed to shut the RDP session down cleanly:",t)}this.userInteraction=void 0}this.ironEl?.remove(),this.ironEl=void 0,this.credentialsPrompt=!1,this.usernameBuffer="",this.passwordBuffer=""}submit_credentials(t){t.preventDefault(),this.credentialsPrompt=!1,this.credentials={username:this.usernameBuffer,password:this.passwordBuffer},this.usernameBuffer="",this.passwordBuffer="",this.request_tunnel()}render(){return i(o,{key:"97b198af30e4e4b7ae8cbd0d497dc4f4812615f8"},i("div",{key:"f7d01492909a0f3cb6c639345eb70a8e1fbf1b90",class:"screen",ref:t=>this.containerEl=t}),this.credentialsPrompt&&i("form",{key:"1dcfeaa956999dc882943e0d0b49ead8d12840bc",class:"prompt",onSubmit:t=>this.submit_credentials(t)},i("label",{key:"a62e96bfb6b947167f731020c7ab00a1d9a82652",htmlFor:"rdp-username"},"Windows username"),i("input",{key:"3135d24b62b2b612a11d3cbfd2c19f3cf381e74b",id:"rdp-username",type:"text",autocomplete:"username",autofocus:!0,onInput:t=>this.usernameBuffer=t.target.value}),i("label",{key:"d8b901e0fe81de30e6426f80179d5e8da542effc",htmlFor:"rdp-password"},"Password"),i("input",{key:"0bfad07c7f5355a8693856b1e6b51df59944a339",id:"rdp-password",type:"password",autocomplete:"current-password",onInput:t=>this.passwordBuffer=t.target.value}),i("button",{key:"e1cbab525870c34fe85299a8ce883d7069cb4bb8",type:"submit"},"Connect")),this.statusMessage&&!this.credentialsPrompt&&i("div",{key:"4144cff9e5d6fb637655203bf67a13adaa7feede",class:"status"},this.statusMessage))}static get watchers(){return{nodeId:[{onNodeIdChange:0}],serverId:[{onServerIdChange:0}]}}};d.style=':host{display:block;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;position:relative;background:#0b1021}.screen{width:100%;height:100%}.screen iron-remote-desktop{display:block;width:100%;height:100%}.screen canvas{max-width:100%;display:block}.prompt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;background:rgba(11, 16, 33, 0.92);color:#e2e8f0;font-family:"Berkeley Mono", "Fira Code", "SFMono-Regular", Menlo, monospace;font-size:0.875rem}.prompt input{padding:0.5rem 0.75rem;border:1px solid #334155;border-radius:0.375rem;background:#0f172a;color:inherit;font:inherit;min-width:16rem}.prompt input:focus{outline:2px solid #67e8f9;outline-offset:1px}.prompt button{margin-top:0.5rem;padding:0.5rem 1.25rem;border:0;border-radius:0.375rem;background:#67e8f9;color:#0b1021;font:inherit;font-weight:600;cursor:pointer}.status{position:absolute;inset-inline:0;bottom:0;padding:0.5rem 0.75rem;background:rgba(11, 16, 33, 0.92);color:#e2e8f0;font-family:"Berkeley Mono", "Fira Code", "SFMono-Regular", Menlo, monospace;font-size:0.8125rem;text-align:center}';export{d as phirepass_rdp}