import{g as T,a as q}from"./index-Bndk0DrU.chunk.mjs";import{i as W,c as z}from"./index-BT4ljBnH.chunk.mjs";import{l as j,g as _}from"./createElementId-DhjFt1I9-C_WKCRq3.chunk.mjs";import{s as U,N as S}from"./index-BrC2bLMO.chunk.mjs";import{N as V}from"./NcPasswordField-uaMO2pdt-Bi58_jEx.chunk.mjs";import{b as L,A as K,x as I,r as p,L as A,c as N,o as M,w as O,k as H,e as R,t as J,u as m,p as Z}from"./runtime-dom.esm-bundler-CU8rrbZA.chunk.mjs";var o=(s=>(s.Lax="lax",s.Strict="strict",s))(o||{});const G=Date.now();function x(s){if(!window.backendAllowsPasswordConfirmation)return!1;if(s===o.Strict)return!0;const r=G-window.nc_pageLoad*1e3;return Date.now()-(r+window.nc_lastLogin*1e3)>1800*1e3}const F=j().detectLanguage();[{locale:"ar",translations:[{msgid:"Checking password …",msgstr:["يتم التحقق من كلمة المرور..."]},{msgid:"Confirm",msgstr:["تأكيد"]},{msgid:"Confirm your password",msgstr:["تأكيد كلمة المرور"]},{msgid:"Password",msgstr:["كلمة المرور"]},{msgid:"Please enter your password",msgstr:["يرجى إدخال كلمة المرور الخاصة بك"]},{msgid:"This action needs authentication",msgstr:["هذا الإجراء يتطلب التحقق من الهوية"]},{msgid:"Wrong password",msgstr:["كلمة المرور غير صحيحة"]}]},{locale:"ast",translations:[{msgid:"Checking password …",msgstr:["Comprobando la contraseña…"]},{msgid:"Confirm",msgstr:["Confirmación"]},{msgid:"Confirm your password",msgstr:["Confirma la contraseña"]},{msgid:"Password",msgstr:["Contraseña"]},{msgid:"Please enter your password",msgstr:["Introduz la contraseña"]},{msgid:"This action needs authentication",msgstr:["Esta aición precisa l'autenticación"]},{msgid:"Wrong password",msgstr:["La contraseña ye incorreuta"]}]},{locale:"az",translations:[{msgid:"Confirm",msgstr:["Təsdiq edin"]},{msgid:"Confirm your password",msgstr:["Parolunuzu təsdiq edin"]},{msgid:"Password",msgstr:["Parol"]},{msgid:"Password confirmation dialog already mounted",msgstr:["Parolun təsdiqi dialoqu artıq quraşdırılıb"]},{msgid:"This action needs authentication",msgstr:["Bu əməliyyat autentifikasiya tələb edir"]},{msgid:"Wrong password",msgstr:["Səhv parol"]}]},{locale:"be",translations:[{msgid:"Checking password …",msgstr:["Праверка пароля…"]},{msgid:"Confirm",msgstr:["Пацвердзіць"]},{msgid:"Confirm your password",msgstr:["Пацвердзіць пароль"]},{msgid:"Password",msgstr:["Пароль"]},{msgid:"Please enter your password",msgstr:["Калі ласка, увядзіце ваш пароль"]},{msgid:"This action needs authentication",msgstr:["Гэта дзеянне патрабуе аўтэнтыфікацыі"]},{msgid:"Wrong password",msgstr:["Памылковы пароль"]}]},{locale:"ca",translations:[{msgid:"Checking password …",msgstr:["S'està comprovant la contrasenya …"]},{msgid:"Confirm",msgstr:["Confirma"]},{msgid:"Confirm your password",msgstr:["Confirmeu la vostra contrasenya"]},{msgid:"Password",msgstr:["Contrasenya"]},{msgid:"Please enter your password",msgstr:["Introduïu la vostra contrasenya"]},{msgid:"This action needs authentication",msgstr:["Aquesta acció necessita autenticació"]},{msgid:"Wrong password",msgstr:["Contrasenya incorrecta"]}]},{locale:"cs_CZ",translations:[{msgid:"Authentication required",msgstr:["Vyžadováno ověření se"]},{msgid:"Checking password …",msgstr:["Ověřování hesla…"]},{msgid:"Confirm",msgstr:["Potvrdit"]},{msgid:"Password",msgstr:["Heslo"]},{msgid:"Please enter your password",msgstr:["Zadejte heslo"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Tato akce vyžaduje ověření se – potvrďte ji zadáním svého hesla."]},{msgid:"Unknown error while checking password",msgstr:["Neznámá chyba při kontrolování hesla"]},{msgid:"Wrong password",msgstr:["Nesprávné heslo"]}]},{locale:"da",translations:[{msgid:"Authentication required",msgstr:["Bekræft din identitet"]},{msgid:"Checking password …",msgstr:["Kontrollerer adgangskode …"]},{msgid:"Confirm",msgstr:["Bekræft"]},{msgid:"Password",msgstr:["Adgangskode"]},{msgid:"Please enter your password",msgstr:["Indtast venligst dit kodeord"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Denne handling kræver godkendelse. Indtast din adgangskode for at bekræfte."]},{msgid:"Unknown error while checking password",msgstr:["Ukendt fejl under kontrol af adgangskode"]},{msgid:"Wrong password",msgstr:["forkert Adgangskode"]}]},{locale:"de",translations:[{msgid:"Authentication required",msgstr:["Authentifizierung erforderlich"]},{msgid:"Checking password …",msgstr:["Passwort prüfen  …"]},{msgid:"Confirm",msgstr:["Bestätigen"]},{msgid:"Password",msgstr:["Passwort"]},{msgid:"Please enter your password",msgstr:["Bitte gib dein Passwort ein"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Für diese Aktion ist eine Authentifizierung erforderlich. Bitte bestätige diese durch Eingabe deines Passworts."]},{msgid:"Unknown error while checking password",msgstr:["Unbekannter Fehler beim Überprüfen des Passworts"]},{msgid:"Wrong password",msgstr:["Falsches Passwort"]}]},{locale:"de_DE",translations:[{msgid:"Authentication required",msgstr:["Authentifizierung erforderlich"]},{msgid:"Checking password …",msgstr:["Passwort prüfen …"]},{msgid:"Confirm",msgstr:["Bestätigen"]},{msgid:"Password",msgstr:["Passwort"]},{msgid:"Please enter your password",msgstr:["Bitte geben Sie Ihr Passwort ein"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Für diese Aktion ist eine Authentifizierung erforderlich. Bitte bestätigen Sie diese durch Eingabe Ihres Passworts."]},{msgid:"Unknown error while checking password",msgstr:["Unbekannter Fehler beim Überprüfen des Passworts"]},{msgid:"Wrong password",msgstr:["Falsches Passwort"]}]},{locale:"el",translations:[{msgid:"Authentication required",msgstr:["Απαιτείται πιστοποίηση"]},{msgid:"Checking password …",msgstr:["Έλεγχος κωδικού πρόσβασης …"]},{msgid:"Confirm",msgstr:["Επιβεβαίωση"]},{msgid:"Password",msgstr:["Συνθηματικό"]},{msgid:"Please enter your password",msgstr:["Παρακαλώ εισάγετε το συνθηματικό σας"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Αυτή η ενέργεια απαιτεί πιστοποίηση. Επιβεβαιώστε την εισάγοντας τον κωδικό πρόσβασής σας."]},{msgid:"Unknown error while checking password",msgstr:["Άγνωστο σφάλμα κατά τον έλεγχο του κωδικού πρόσβασης"]},{msgid:"Wrong password",msgstr:["Λάθος συνθηματικό"]}]},{locale:"en_GB",translations:[{msgid:"Authentication required",msgstr:["Authentication required"]},{msgid:"Checking password …",msgstr:["Checking password …"]},{msgid:"Confirm",msgstr:["Confirm"]},{msgid:"Password",msgstr:["Password"]},{msgid:"Please enter your password",msgstr:["Please enter your password"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["This action needs authentication, please confirm it by entering your password."]},{msgid:"Unknown error while checking password",msgstr:["Unknown error while checking password"]},{msgid:"Wrong password",msgstr:["Wrong password"]}]},{locale:"es",translations:[{msgid:"Authentication required",msgstr:["Se requiere autenticación"]},{msgid:"Checking password …",msgstr:["Verificando contraseña …"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Password",msgstr:["Contraseña"]},{msgid:"Please enter your password",msgstr:["Por favor, Introduzca su contraseña"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Esta acción requiere autenticación, por favor, confírmela ingresado su contraseña."]},{msgid:"Wrong password",msgstr:["Contraseña errónea"]}]},{locale:"es_AR",translations:[{msgid:"Checking password …",msgstr:["Verificando contraseña …"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Confirm your password",msgstr:["Confirme su contraseña"]},{msgid:"Password",msgstr:["Contraseña"]},{msgid:"Please enter your password",msgstr:["Por favor, introduzca su contraseña"]},{msgid:"This action needs authentication",msgstr:["Esta acción necesita autenticación"]},{msgid:"Wrong password",msgstr:["Contraseña incorrecta"]}]},{locale:"es_CO",translations:[{msgid:"Authentication required",msgstr:["Autenticación requerida"]},{msgid:"Checking password …",msgstr:["Verificando contraseña …"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Password",msgstr:["Contraseña"]},{msgid:"Please enter your password",msgstr:["Por favor introduzca su contraseña"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Esta acción necesita autentificación, por favor confírmela introduciendo su contraseña."]},{msgid:"Wrong password",msgstr:["Contraseña incorrecta"]}]},{locale:"es_MX",translations:[{msgid:"Checking password …",msgstr:["Verificando contraseña …"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Confirm your password",msgstr:["Confirme su contraseña"]},{msgid:"Password",msgstr:["Contraseña"]},{msgid:"Please enter your password",msgstr:["Por favor introduzca su contraseña"]},{msgid:"This action needs authentication",msgstr:["Esta acción necesita autenticación"]},{msgid:"Wrong password",msgstr:["Contraseña incorrecta"]}]},{locale:"et_EE",translations:[{msgid:"Authentication required",msgstr:["Autentimine on vajalik"]},{msgid:"Checking password …",msgstr:["Kontrollin salasõna…"]},{msgid:"Confirm",msgstr:["Kinnita"]},{msgid:"Password",msgstr:["Salasõna"]},{msgid:"Please enter your password",msgstr:["Palun sisesta oma salasõna"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["See tegevus eeldab autentimist, palun tee seda sisestades oma salasõna."]},{msgid:"Unknown error while checking password",msgstr:["Tundmatu viga salasõna kontrollimisel"]},{msgid:"Wrong password",msgstr:["Vale salasõna"]}]},{locale:"fa",translations:[{msgid:"Authentication required",msgstr:["احراز هویت مورد نیاز است"]},{msgid:"Checking password …",msgstr:["در حال بررسی رمز عبور..."]},{msgid:"Confirm",msgstr:["تأیید"]},{msgid:"Password",msgstr:["رمز عبور"]},{msgid:"Please enter your password",msgstr:["لطفاً رمز عبور خود را وارد کنید"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["این عمل نیاز به احراز هویت دارد، لطفاً با وارد کردن رمز عبور خود آن را تأیید کنید."]},{msgid:"Wrong password",msgstr:["رمز عبور اشتباه است"]}]},{locale:"fi_FI",translations:[{msgid:"Authentication required",msgstr:["Tunnistautuminen vaaditaan"]},{msgid:"Checking password …",msgstr:["Tarkistetaan salasanaa …"]},{msgid:"Confirm",msgstr:["Vahvista"]},{msgid:"Password",msgstr:["Salasana"]},{msgid:"Please enter your password",msgstr:["Kirjoita salasanasi"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Tämä toimenpide vaatii tunnistautumisen. Vahvista kirjoittamalla salasanasi."]},{msgid:"Wrong password",msgstr:["Väärä salasana"]}]},{locale:"fr",translations:[{msgid:"Authentication required",msgstr:["Authentification requise"]},{msgid:"Checking password …",msgstr:["Vérification du mot de passe ..."]},{msgid:"Confirm",msgstr:["Confirmer"]},{msgid:"Password",msgstr:["Mot de passe"]},{msgid:"Please enter your password",msgstr:["Veuillez saisir votre mot de passe"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Cette action nécessite une authentification, veuillez confirmer en saisissant votre mot de passe."]},{msgid:"Unknown error while checking password",msgstr:["Erreur inconnue lors de la vérification du mot de passe"]},{msgid:"Wrong password",msgstr:["Mot de passe incorrect"]}]},{locale:"ga",translations:[{msgid:"Authentication required",msgstr:["Fíordheimhniú ag teastáil"]},{msgid:"Checking password …",msgstr:["Ag seiceáil an focal faire …"]},{msgid:"Confirm",msgstr:["Deimhnigh"]},{msgid:"Password",msgstr:["Pasfhocal"]},{msgid:"Please enter your password",msgstr:["Cuir isteach do phasfhocal"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Teastaíonn fíordheimhniú don ghníomh seo, deimhnigh é trí do phasfhocal a iontráil."]},{msgid:"Unknown error while checking password",msgstr:["Earráid anaithnid agus an focal faire á sheiceáil"]},{msgid:"Wrong password",msgstr:["Pasfhocal mícheart"]}]},{locale:"gl",translations:[{msgid:"Authentication required",msgstr:["É necesaria a autenticación"]},{msgid:"Checking password …",msgstr:["Comprobando o contrasinal…"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Password",msgstr:["Contrasinal"]},{msgid:"Please enter your password",msgstr:["Introduza o seu contrasinal"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Esta acción precisa de autenticación, confírmea introducindo o seu contrasinal."]},{msgid:"Unknown error while checking password",msgstr:["Produciuse un erro descoñecido ao comprobar o contrasinal"]},{msgid:"Wrong password",msgstr:["Contrasinal incorrecto"]}]},{locale:"hu_HU",translations:[{msgid:"Authentication required",msgstr:["Azonosítás szükséges"]},{msgid:"Checking password …",msgstr:["Jelszó ellenőrzése ..."]},{msgid:"Confirm",msgstr:["Jóváhagyás"]},{msgid:"Password",msgstr:["Jelszó"]},{msgid:"Please enter your password",msgstr:["Adja meg a jelszavát"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Ehhez a tevékenységhez azonosítás szükséges. Kérlek hagyd jóvá a jelszavad megadásával."]},{msgid:"Wrong password",msgstr:["Hibás jelszó"]}]},{locale:"id",translations:[{msgid:"Authentication required",msgstr:["Autentikasi diperlukan"]},{msgid:"Checking password …",msgstr:["Memeriksa kata sandi ..."]},{msgid:"Confirm",msgstr:["Konfirmasi"]},{msgid:"Password",msgstr:["Kata sandi"]},{msgid:"Please enter your password",msgstr:["Silahkan masukan kata sandi Anda"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Aksi ini memerlukan autentikasi, silahkan konfirmasi dengan memasukan kata sandi Anda."]},{msgid:"Wrong password",msgstr:["Kata sandi salah"]}]},{locale:"is",translations:[{msgid:"Checking password …",msgstr:["Athuga lykilorð …"]},{msgid:"Confirm",msgstr:["Staðfesta"]},{msgid:"Confirm your password",msgstr:["Staðfestu lykilorðið þitt"]},{msgid:"Password",msgstr:["Lykilorð"]},{msgid:"Please enter your password",msgstr:["Settu inn lykilorðið þitt"]},{msgid:"This action needs authentication",msgstr:["Þessi aðgerð krefst auðkenningar"]},{msgid:"Wrong password",msgstr:["Rangt lykilorð"]}]},{locale:"it",translations:[{msgid:"Checking password …",msgstr:["Controllo della password…"]},{msgid:"Confirm",msgstr:["Conferma"]},{msgid:"Confirm your password",msgstr:["Conferma la tua password"]},{msgid:"Password",msgstr:["Password"]},{msgid:"Please enter your password",msgstr:["Inserisci la tua password"]},{msgid:"This action needs authentication",msgstr:["Questa azione richiede l'autenticazione"]},{msgid:"Wrong password",msgstr:["Password errata"]}]},{locale:"ja_JP",translations:[{msgid:"Authentication required",msgstr:["認証が必要です"]},{msgid:"Checking password …",msgstr:["パスワードの確認 …"]},{msgid:"Confirm",msgstr:["確認"]},{msgid:"Password",msgstr:["パスワード"]},{msgid:"Please enter your password",msgstr:["パスワードを入力してください"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["この操作には認証が必要です。パスワードを入力して承認してください。"]},{msgid:"Unknown error while checking password",msgstr:["パスワードのチェック中に不明なエラーが発生しました"]},{msgid:"Wrong password",msgstr:["間違ったパスワード"]}]},{locale:"kab",translations:[{msgid:"Authentication required",msgstr:["Asesteb yettwasra"]},{msgid:"Checking password …",msgstr:["Asenqed n wawal n uɛeddi …"]},{msgid:"Confirm",msgstr:["Sentem"]},{msgid:"Password",msgstr:["Awal n uɛeddi"]},{msgid:"Please enter your password",msgstr:["Txil, sekcem-d awal-ik·im n uɛeddi"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Tigawt-a tesra asesteb, ttxil-k·m, wekked-itt-id s usekcem n wawal-inek·inem n uɛeddi."]},{msgid:"Wrong password",msgstr:["Awal n uɛeddi d arameɣtu"]}]},{locale:"ko",translations:[{msgid:"Authentication required",msgstr:["인증 필요 "]},{msgid:"Checking password …",msgstr:["비밀번호 확인 중 ..."]},{msgid:"Confirm",msgstr:["확인"]},{msgid:"Password",msgstr:["비밀번호"]},{msgid:"Please enter your password",msgstr:["비밀번호를 입력하세요"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["이 작업은 인증이 필요합니다. 비밀번호를 입력하여 확인하십시오. "]},{msgid:"Wrong password",msgstr:["잘못된 비밀번호"]}]},{locale:"lv",translations:[{msgid:"Authentication required",msgstr:["Nepieciešama autentificēšanās"]},{msgid:"Checking password …",msgstr:["Pārbauda paroli..."]},{msgid:"Confirm",msgstr:["Apstiprināt"]},{msgid:"Password",msgstr:["Parole"]},{msgid:"Please enter your password",msgstr:["Lūgums ievadīt savu paroli"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Šai darbībai ir nepieciešama autentificēšanās. Lūgums to apstiprināt ar savas paroles ievadīšanu."]},{msgid:"Wrong password",msgstr:["Nepareiza parole"]}]},{locale:"mk",translations:[{msgid:"Authentication required",msgstr:["Потребна е автентификација"]},{msgid:"Checking password …",msgstr:["Проверка на лозинка …"]},{msgid:"Confirm",msgstr:["Потврди"]},{msgid:"Password",msgstr:["Лозинка"]},{msgid:"Please enter your password",msgstr:["Внесете ја вашата лозинка"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Оваа акција бара автентикација, потврдете ја со внесување на вашата лозинка."]},{msgid:"Unknown error while checking password",msgstr:["Непозната грешка додека се проверува лозинката"]},{msgid:"Wrong password",msgstr:["Погрешна лозинка"]}]},{locale:"ms_MY",translations:[{msgid:"Authentication required",msgstr:["Pengesahan diperlukan"]},{msgid:"Checking password …",msgstr:["Menyemak kata laluan …"]},{msgid:"Confirm",msgstr:["Mengesahkan"]},{msgid:"Password",msgstr:["Kata laluan"]},{msgid:"Please enter your password",msgstr:["Sila masukkan kata laluan anda"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Tindakan ini memerlukan pengesahan, sila sahkan dengan memasukkan kata laluan anda."]},{msgid:"Wrong password",msgstr:["Kata laluan salah"]}]},{locale:"nb_NO",translations:[{msgid:"Checking password …",msgstr:["Sjekker passord …"]},{msgid:"Confirm",msgstr:["Bekreft"]},{msgid:"Confirm your password",msgstr:["Bekreft passordet ditt"]},{msgid:"Password",msgstr:["Passord"]},{msgid:"Please enter your password",msgstr:["Vennligst skriv inn passordet ditt"]},{msgid:"This action needs authentication",msgstr:["Denne handlingen krever autentisering"]},{msgid:"Wrong password",msgstr:["Feil passord"]}]},{locale:"nl",translations:[{msgid:"Authentication required",msgstr:["Authenticatie vereist"]},{msgid:"Checking password …",msgstr:["Wachtwoord controleren…"]},{msgid:"Confirm",msgstr:["Bevestigen"]},{msgid:"Password",msgstr:["Wachtwoord"]},{msgid:"Please enter your password",msgstr:["Voer je wachtwoord in"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Deze actie vereist authenticatie, voer je wachtwoord in."]},{msgid:"Unknown error while checking password",msgstr:["Onbekende fout bij wachtwoord controleren"]},{msgid:"Wrong password",msgstr:["Incorrect wachtwoord"]}]},{locale:"pl",translations:[{msgid:"Checking password …",msgstr:["Sprawdzanie hasła…"]},{msgid:"Confirm",msgstr:["Potwierdź"]},{msgid:"Confirm your password",msgstr:["Potwierdź swoje hasło"]},{msgid:"Password",msgstr:["Hasło"]},{msgid:"Please enter your password",msgstr:["Wprowadź swoje hasło"]},{msgid:"This action needs authentication",msgstr:["Wykonanie tej czynności wymaga autoryzacji"]},{msgid:"Wrong password",msgstr:["Nieprawidłowe hasło"]}]},{locale:"pt_BR",translations:[{msgid:"Authentication required",msgstr:["Autenticação necessária"]},{msgid:"Checking password …",msgstr:["Verificando a senha …"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Password",msgstr:["Senha"]},{msgid:"Please enter your password",msgstr:["Por favor, insira sua senha"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Esta ação precisa de autenticação. Por favor, confirme-a digitando sua senha."]},{msgid:"Unknown error while checking password",msgstr:["Erro desconhecido ao verificar a senha"]},{msgid:"Wrong password",msgstr:["Senha incorreta"]}]},{locale:"pt_PT",translations:[{msgid:"Authentication required",msgstr:["Autenticação necessária"]},{msgid:"Checking password …",msgstr:["A verificar palavra-passe…"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Password",msgstr:["Palavra-passe"]},{msgid:"Please enter your password",msgstr:["Introduza a sua palavra-passe, por favor"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Esta ação requer autenticação; confirme-a introduzindo a sua palavra-passe."]},{msgid:"Wrong password",msgstr:["Palavra-passe incorreta"]}]},{locale:"ro",translations:[{msgid:"Checking password …",msgstr:["Se verifică parola ..."]},{msgid:"Confirm",msgstr:["Confirmare"]},{msgid:"Confirm your password",msgstr:["Confirmare parolă"]},{msgid:"Password",msgstr:["Parolă"]},{msgid:"Please enter your password",msgstr:["Vă rugăm să introduceți parola"]},{msgid:"This action needs authentication",msgstr:["Această acțiune necesită autentificare"]},{msgid:"Wrong password",msgstr:["Parolă incorectă"]}]},{locale:"ru",translations:[{msgid:"Authentication required",msgstr:["Требуется аутентификация"]},{msgid:"Checking password …",msgstr:["Проверка пароля …"]},{msgid:"Confirm",msgstr:["Подтвердить"]},{msgid:"Password",msgstr:["Пароль"]},{msgid:"Please enter your password",msgstr:["Пожалуйста, введите свой пароль"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Это действие требует аутентификации, пожалуйста подтвердите его вводом вашего пароля."]},{msgid:"Unknown error while checking password",msgstr:["Неизвестная ошибка при проверке пароля"]},{msgid:"Wrong password",msgstr:["Неправильный пароль"]}]},{locale:"sk_SK",translations:[{msgid:"Checking password …",msgstr:["Kontrola hesla..."]},{msgid:"Confirm",msgstr:["Potvrdiť"]},{msgid:"Confirm your password",msgstr:["Potvrďte svoje heslo"]},{msgid:"Password",msgstr:["Heslo"]},{msgid:"Please enter your password",msgstr:["Zadajte prosím svoje heslo"]},{msgid:"This action needs authentication",msgstr:["Táto akcia vyžaduje overenie"]},{msgid:"Wrong password",msgstr:["Nesprávne heslo"]}]},{locale:"sl",translations:[{msgid:"Checking password …",msgstr:["Poteka preverjanje gesla ..."]},{msgid:"Confirm",msgstr:["Potrdi"]},{msgid:"Confirm your password",msgstr:["Potrdi geslo"]},{msgid:"Password",msgstr:["Geslo"]},{msgid:"Please enter your password",msgstr:["Vpisati je treba geslo"]},{msgid:"This action needs authentication",msgstr:["To dejanje zahteva overitev"]},{msgid:"Wrong password",msgstr:["Napačno geslo"]}]},{locale:"sr",translations:[{msgid:"Authentication required",msgstr:["Потребна је потврда идентитета"]},{msgid:"Checking password …",msgstr:["Проверава се лозинка…"]},{msgid:"Confirm",msgstr:["Потврда"]},{msgid:"Password",msgstr:["Лозинка"]},{msgid:"Please enter your password",msgstr:["Молимо вас да унесете своју лозинку"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["За ову акцију је потребна провера идентитета, молимо вас да га потврдите уносом своје лозинке."]},{msgid:"Unknown error while checking password",msgstr:["Непозната грешка током провере лозинке"]},{msgid:"Wrong password",msgstr:["Погрешна лозинка"]}]},{locale:"sv",translations:[{msgid:"Authentication required",msgstr:["Autentisering krävs"]},{msgid:"Checking password …",msgstr:["Kontrollerar lösenord …"]},{msgid:"Confirm",msgstr:["Bekräfta"]},{msgid:"Password",msgstr:["Lösenord"]},{msgid:"Please enter your password",msgstr:["Ange ditt lösenord"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Den här åtgärden kräver autentisering, bekräfta genom att ange ditt lösenord."]},{msgid:"Unknown error while checking password",msgstr:["Okänt fel vid kontroll av lösenord"]},{msgid:"Wrong password",msgstr:["Fel lösenord"]}]},{locale:"tr",translations:[{msgid:"Authentication required",msgstr:["Kimlik doğrulaması gerekli"]},{msgid:"Checking password …",msgstr:["Parola denetleniyor…"]},{msgid:"Confirm",msgstr:["Parola onayı"]},{msgid:"Password",msgstr:["Parola"]},{msgid:"Please enter your password",msgstr:["Lütfen parolanızı yazın"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Bu işlemi yapmak için kimliğinizi doğrulamalısınız. Lütfen parolanızı yazın."]},{msgid:"Unknown error while checking password",msgstr:["Parola denetlenirken bilinmeyen bir sorun çıktı"]},{msgid:"Wrong password",msgstr:["Parola geçersiz"]}]},{locale:"uk",translations:[{msgid:"Authentication required",msgstr:["Потрібна авторизація"]},{msgid:"Checking password …",msgstr:["Перевірка паролю ..."]},{msgid:"Confirm",msgstr:["Підтвердити"]},{msgid:"Password",msgstr:["Пароль"]},{msgid:"Please enter your password",msgstr:["Зазначте ваш пароль"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Ця дія вимагає авторизацію, зазначте ваш пароль."]},{msgid:"Wrong password",msgstr:["Помилковий пароль"]}]},{locale:"ur_PK",translations:[{msgid:"Authentication required",msgstr:["تصدیق درکار ہے"]},{msgid:"Checking password …",msgstr:["پاس ورڈ چیک ہو رہا ہے …"]},{msgid:"Confirm",msgstr:["تصدیق کریں"]},{msgid:"Password",msgstr:["پاس ورڈ"]},{msgid:"Please enter your password",msgstr:["براہ کرم اپنا پاس ورڈ درج کریں"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["اس عمل کو تصدیق کی ضرورت ہے، براہ کرم پاس ورڈ درج کرکے اس کی تصدیق کریں۔"]},{msgid:"Unknown error while checking password",msgstr:["پاس ورڈ چیک کرنے میں نامعلوم خرابی"]},{msgid:"Wrong password",msgstr:["نادرست پاس ورڈ"]}]},{locale:"uz",translations:[{msgid:"Authentication required",msgstr:["Autentifikatsiya talab qilinadi"]},{msgid:"Checking password …",msgstr:["Parol tekshirilmoqda…"]},{msgid:"Confirm",msgstr:["Tasdiqlang"]},{msgid:"Password",msgstr:["Parol"]},{msgid:"Please enter your password",msgstr:["Iltimos, parolingizni kiriting"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Ushbu amaliyot autentifikatsiya talab etadi, parolingizni kiritish orqali buni tasdiqlang."]},{msgid:"Unknown error while checking password",msgstr:["Parolni tekshirishda noma'lum xatolik yuz berdi"]},{msgid:"Wrong password",msgstr:["Parol noto'g'ri "]}]},{locale:"vi",translations:[{msgid:"Authentication required",msgstr:["Yêu cầu xác thực"]},{msgid:"Checking password …",msgstr:["Đang kiểm tra mật khẩu ..."]},{msgid:"Confirm",msgstr:["Chấp nhận"]},{msgid:"Password",msgstr:["Mật khẩu"]},{msgid:"Please enter your password",msgstr:["Vui lòng nhập mật khẩu của bạn"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["Thao tác này cần xác thực, vui lòng xác nhận bằng cách nhập mật khẩu của bạn."]},{msgid:"Wrong password",msgstr:["Mật khẩu sai"]}]},{locale:"zh_CN",translations:[{msgid:"Authentication required",msgstr:["需要身份验证"]},{msgid:"Checking password …",msgstr:["正在检查密码 …"]},{msgid:"Confirm",msgstr:["确认"]},{msgid:"Password",msgstr:["密码"]},{msgid:"Please enter your password",msgstr:["请输入您的密码"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["此操作需要身份验证,请输入密码进行确认。"]},{msgid:"Unknown error while checking password",msgstr:["检查密码时出现未知错误"]},{msgid:"Wrong password",msgstr:["密码错误"]}]},{locale:"zh_HK",translations:[{msgid:"Authentication required",msgstr:["需要驗證"]},{msgid:"Checking password …",msgstr:["正在檢查密碼 …"]},{msgid:"Confirm",msgstr:["確認"]},{msgid:"Password",msgstr:["密碼"]},{msgid:"Please enter your password",msgstr:["請輸入您的密碼"]},{msgid:"This action needs authentication, please confirm it by entering your password.",msgstr:["此操作需要身份驗證,請輸入您的密碼以進行確認。"]},{msgid:"Wrong password",msgstr:["密碼錯誤"]}]},{locale:"zh_TW",translations:[{msgid:"Checking password …",msgstr:["正在檢查密碼……"]},{msgid:"Confirm",msgstr:["確認"]},{msgid:"Confirm your password",msgstr:["確認您的密碼"]},{msgid:"Password",msgstr:["密碼"]},{msgid:"Please enter your password",msgstr:["請輸入您的密碼"]},{msgid:"This action needs authentication",msgstr:["此動作需要驗證"]},{msgid:"Wrong password",msgstr:["密碼錯誤"]}]}].map(({locale:s,translations:r})=>F.addTranslation(s,{headers:{},translations:{"":Object.fromEntries(r.map(u=>[u.msgid,u]))}}));const C=F.build();C.ngettext.bind(C);const e=C.gettext.bind(C),i=T().setApp("@nextcloud/password-confirmation").detectLogLevel().build(),Y=L({__name:"PasswordDialog",props:{validate:{type:Function}},emits:["close"],setup(s,{emit:r}){const u=s,g=r;K(v);const t=I("field"),a=p(""),w=p(!1),n=p(!1),y=[{label:e("Confirm"),type:"submit",variant:"primary",callback:D}],P=Z(()=>{if(n.value!==!1){if(a.value==="")return e("Please enter your password");switch(n.value){case!0:return e("Unknown error while checking password");case 403:return e("Wrong password")}}return w.value?e("Checking password …"):""});async function D(){if(n.value=!1,w.value=!0,a.value==="")return n.value=!0,!1;try{return await u.validate(a.value),g("close",!0),!0}catch(d){return W(d)&&d.response?.status===403?n.value=403:n.value=!0,i.error("Exception during password confirmation",{error:d}),b(),!1}finally{w.value=!1}}function v(){A(()=>{t.value.focus()})}function b(){A(()=>{t.value.select()})}return(d,c)=>(M(),N(m(S),{"is-form":"",buttons:y,name:m(e)("Authentication required"),"content-classes":d.$style.passwordDialog,"onUpdate:open":c[1]||(c[1]=h=>g("close",!1))},{default:O(()=>[H("p",null,J(m(e)("This action needs authentication, please confirm it by entering your password.")),1),R(m(V),{ref:"field",modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=h=>a.value=h),label:m(e)("Password"),"helper-text":P.value,error:n.value!==!1,required:""},null,8,["modelValue","label","helper-text","error"])]),_:1},8,["name","content-classes"]))}}),$="_passwordDialog_joix2_2",Q={passwordDialog:$},X=(s,r)=>{const u=s.__vccOpts||s;for(const[g,t]of r)u[g]=t;return u},uu={$style:Q},su=X(Y,[["__cssModules",uu]]);let B=!1;async function ou(){if(!x(o.Lax))return Promise.resolve();await k(async s=>{await f(s)})}async function f(s){i.debug("Confirming password");const r=_("/login/confirm"),{data:u}=await z.post(r,{password:s});window.nc_lastLogin=u.lastLogin,i.debug("Password confirmed")}let l,E;async function k(s){E=s,l||(l=U(su,{validate(u){return E(u)}}));const r=await l;if(l=void 0,!r)throw new Error("Dialog closed")}function gu(s){if(B)return;B=!0;let r;s.interceptors.request.use(async u=>{if(u.confirmPassword===void 0||!x(u.confirmPassword))return u;const{promise:g,resolve:t}=Promise.withResolvers();return k(async a=>{switch(u.confirmPassword){case o.Lax:await f(a),t(u);break;case o.Strict:return r=Promise.withResolvers(),u.auth={username:q()?.uid??"",password:a},i.debug("Adding auth info to the request",{config:u}),t(u),r.promise}}),g}),s.interceptors.response.use(u=>u.config.confirmPassword!==o.Strict?u:r===void 0?(i.debug("Password confirmation not required",{response:u}),u):(i.debug("Password confirmation succeeded",{response:u}),window.nc_lastLogin=Date.now()/1e3,r.resolve(),u),u=>{if(u.config?.confirmPassword!==o.Strict)throw u;if(r===void 0)throw i.debug("Password confirmation not required",{error:u}),u;return i.debug("Password confirmation failed",{error:u}),r.reject(u),i.debug("Triggering new request",{error:u}),s.request(u.config)})}export{o as P,gu as a,ou as c}; //# sourceMappingURL=index-CLPHpMLr.chunk.mjs.map