import{d as e,s 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{J as o}from"./hooks-ClTXKdUl.js";import{t as s}from"./Modal-hBkTa-Ee.js";import{t as c}from"./Button-Du0dYm4Z.js";import{t as l}from"./FormTextBox-BLQGoABI.js";e();function u(){let[e,u]=t(!1),[d,f]=t(``),p=n(null);return o(`showProtectedSessionPasswordDialog`,()=>u(!0)),o(`closeProtectedSessionPasswordDialog`,()=>u(!1)),a(s,{className:`protected-session-password-dialog`,title:i(`protected_session_password.modal_title`),size:`md`,helpPageId:`bwg0e8ewQMak`,footer:a(c,{text:i(`protected_session_password.start_button`)}),onSubmit:()=>r.setupProtectedSession(d),onShown:()=>p.current?.focus(),onHidden:()=>u(!1),show:e,children:[a(`label`,{htmlFor:`protected-session-password`,className:`col-form-label`,children:i(`protected_session_password.form_label`)}),a(l,{inputRef:p,id:`protected-session-password`,name:`protected-session-password`,type:`password`,autoComplete:`current-password`,onChange:f})]})}export{u as default};