|
|
import{g as f,P as k,n as y,r as o,c as P,o as D,w as C,h as A,t as E,Q as v,b as w,R as b,d as T,K as q,S as W,i as z,e as j}from"./NcSettingsSection-DFav6ob5-DccVMXCj.chunk.mjs";import{g as _,d as U,a as S,N as V}from"./check-BYeDiYNv.chunk.mjs";function L(s,u={},r={}){let{container:i}=r;"container"in u&&typeof u.container=="string"&&(i??=u.container);const a=(typeof i=="string"&&document.querySelector(i)||document.body).appendChild(document.createElement("div"));return new Promise((B,m)=>{const e=f(s,{...u,container:null,onClose(...t){const c=t.length>1?t:t[0];e.unmount(),a.remove(),B(c)},"onVue:unmounted":()=>{e.unmount(),a.remove(),m(new Error("Dialog was unmounted without close event"))}});e.mount(a)})}var h=(s=>(s.Lax="lax",s.Strict="strict",s))(h||{});const N=Date.now();function K(s){if(!window.backendAllowsPasswordConfirmation)return!1;if(s===h.Strict)return!0;const u=N-window.nc_pageLoad*1e3;return Date.now()-(u+window.nc_lastLogin*1e3)>1800*1e3}const F=k().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:"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:"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:u})=>F.addTranslation(s,{headers:{},translations:{"":Object.fromEntries(u.map(r=>[r.msgid,r]))}}));const g=F.build();g.ngettext.bind(g);const n=g.gettext.bind(g),p=_().setApp("@nextcloud/password-confirmation").detectLogLevel().build(),I=y({name:"PasswordDialog",components:{NcButton:V,NcDialog:S,NcLoadingIcon:q,NcPasswordField:U},props:{validate:{type:Function,required:!0}},emits:["close"],data(){return{password:"",loading:!1,error:!1}},computed:{helperText(){if(this.error!==!1){if(this.password==="")return n("Please enter your password");switch(this.error){case!0:return n("Unknown error while checking password");case 403:return n("Wrong password")}}return this.loading?n("Checking password …"):""}},mounted(){this.focusPasswordField()},methods:{t:n,async confirm(){var s;if(this.error=!1,this.loading=!0,this.password===""){this.error=!0;return}try{await this.validate(this.password),this.$emit("close",!0)}catch(u){W(u)&&((s=u.response)==null?void 0:s.status)===403?this.error=403:this.error=!0,p.error("Exception during password confirmation",{error:u}),this.selectPasswordField()}finally{this.loading=!1}},close(s){s||this.$emit("close",!1)},focusPasswordField(){this.$nextTick(()=>{this.$refs.field.focus()})},selectPasswordField(){this.$nextTick(()=>{this.$refs.field.select()})}}}),M=(s,u)=>{const r=s.__vccOpts||s;for(const[i,a]of u)r[i]=a;return r};function O(s,u,r,i,a,B){const m=o("NcPasswordField"),e=o("NcLoadingIcon"),t=o("NcButton"),c=o("NcDialog");return D(),P(c,{name:s.t("Authentication required"),"content-classes":"vue-password-confirmation","onUpdate:open":s.close},{default:C(()=>[A("p",null,E(s.t("This action needs authentication, please confirm it by entering your password.")),1),A("form",{class:"vue-password-confirmation__form",onSubmit:u[1]||(u[1]=v((...l)=>s.confirm&&s.confirm(...l),["prevent"]))},[w(m,{ref:"field",modelValue:s.password,"onUpdate:modelValue":u[0]||(u[0]=l=>s.password=l),label:s.t("Password"),"helper-text":s.helperText,error:s.error!==!1,required:""},null,8,["modelValue","label","helper-text","error"]),w(t,{class:"vue-password-confirmation__submit",variant:"primary",type:"submit",disabled:!s.password||s.loading},b({default:C(()=>[T(" "+E(s.t("Confirm")),1)]),_:2},[s.loading?{name:"icon",fn:C(()=>[w(e,{size:20})]),key:"0"}:void 0]),1032,["disabled"])],32)]),_:1},8,["name","onUpdate:open"])}const H=M(I,[["render",O]]);async function G(){if(!K(h.Lax))return Promise.resolve();await J(async s=>{await $(s)})}async function $(s){p.debug("Confirming password");const u=z("/login/confirm"),{data:r}=await j.post(u,{password:s});window.nc_lastLogin=r.lastLogin,p.debug("Password confirmed")}let d,x;async function J(s){x=s,d||(d=L(H,{validate(r){return x(r)}}));const u=await d;if(d=void 0,!u)throw new Error("Dialog closed")}export{G as c};
|