import{d as e,f as t,t as n}from"./hooks.module-BrXTvcfS.js";import{tt as r}from"./content_renderer-DOj8g78V.js";import{a as i}from"./i18n-BaLR3UdQ.js";import{t as a}from"./jsxRuntime.module-Cao1NCKs.js";import{t as o}from"./Button-Du0dYm4Z.js";import{t as s}from"./FormTextBox-BLQGoABI.js";import{t as c}from"./FormGroup-DqPd4bBP.js";e();function l(){let e=n(null);return a(`form`,{class:`protected-session-password-form tn-centered-form`,onSubmit:t(t=>{if(!e.current)return;t.preventDefault();let n=String(e.current.value);e.current.value=``,r.setupProtectedSession(n)},[e]),children:[a(`span`,{class:`form-icon bx bx-key`}),a(c,{name:`protected-session-password-in-detail`,label:i(`protected_session.enter_password_instruction`),children:a(s,{type:`password`,className:`protected-session-password`,autocomplete:`current-password`,inputRef:e})}),a(o,{text:i(`protected_session.start_session_button`),kind:`primary`,keyboardShortcut:`Enter`})]})}export{l as default};