@everymatrix/user-login 1.85.17 → 1.85.18
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-74c5e8bb.js";const i={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occurred",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occurred when fetching the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_UnexpectedException:"There was an error trying to fetch the data...",Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information",Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service"},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",GmErr_USER_AUTH_FAILED:"Girilen kullanıcı adı/e-posta adresi ve/veya şifre yanlış.",AuthFailedPhoneNumber:"Girilen telefon numarası ve/veya şifre yanlış.",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip.",GmErr_UnexpectedException:"Verileri almaya çalışırken bir hata oluştu...",Forbidden_UserAccount_Timeout:"Belirlediğiniz aktif zaman aşımı nedeniyle şu anda hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_Timeout:"Belirlediğiniz aktif zaman aşımı nedeniyle şu anda hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",Forbidden_UserAccount_SELFEXCLUDED:"Aktif bir kendini dışlama nedeniyle hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Aktif bir kendini dışlama nedeniyle hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz onaylamadığınız anlaşılıyor. Kayıt işleminizi tamamlamak ve hesabınıza erişmek için lütfen e-posta gelen kutunuzu onay mesajı için kontrol edin. E-postayı almadıysanız, lütfen spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız olursa, müşteri hizmetleri aracılığıyla destek talep edebilirsiniz."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_UnexpectedException:"There was an error trying to fetch the data...",Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information",Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service"},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",GmErr_USER_AUTH_FAILED:"Numele de utilizator/adresa de e-mail și/sau parola introduse sunt incorecte.",AuthFailedPhoneNumber:"Numărul de telefon și/sau parola introduse sunt incorecte.",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid.",GmErr_UnexpectedException:"A apărut o eroare la încercarea de a prelua datele...",Forbidden_UserAccount_Timeout:"Accesul la contul dumneavoastră nu este posibil momentan din cauza unei perioade de pauză active setate de dumneavoastră. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_Timeout:"Accesul la contul dumneavoastră nu este posibil momentan din cauza unei perioade de pauză active setate de dumneavoastră. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",Forbidden_UserAccount_SELFEXCLUDED:"Accesul la contul dumneavoastră nu este posibil din cauza unei autoexcluderi active. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Accesul la contul dumneavoastră nu este posibil din cauza unei autoexcluderi active. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de email. Pentru a finaliza înregistrarea și a accesa contul, vă rugăm să verificați inbox-ul de email pentru un mesaj de confirmare. Dacă nu ați primit emailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul clienți."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",GmErr_USER_AUTH_FAILED:"Uneseno korisničko ime/adresa e-pošte i/ili lozinka su netočni.",AuthFailedPhoneNumber:"Uneseni broj telefona i/ili lozinka su netočni.",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format.",GmErr_UnexpectedException:"Došlo je do pogreške prilikom dohvaćanja podataka...",Forbidden_UserAccount_Timeout:"Trenutno nije moguće pristupiti vašem računu zbog aktivne vremenske blokade koju ste postavili. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_Timeout:"Trenutno nije moguće pristupiti vašem računu zbog aktivne vremenske blokade koju ste postavili. Za više informacija kontaktirajte Službu za korisnike.",Forbidden_UserAccount_SELFEXCLUDED:"Nije moguće pristupiti vašem računu zbog aktivne samoisključenosti. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Nije moguće pristupiti vašem računu zbog aktivne samoisključenosti. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Za dovršetak registracije i pristup vašem računu, molimo provjerite svoj inbox za poruku za potvrdu. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti podršku putem korisničke službe."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",GmErr_USER_AUTH_FAILED:"Le nom d'utilisateur/adresse e-mail et/ou le mot de passe saisis sont incorrects.",AuthFailedPhoneNumber:"Le numéro de téléphone et/ou le mot de passe saisis sont incorrects.",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide.",GmErr_UnexpectedException:"Une erreur s'est produite lors de la récupération des données...",Forbidden_UserAccount_Timeout:"Il n'est actuellement pas possible d'accéder à votre compte en raison d'une période de pause active que vous avez définie. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_Timeout:"Il n'est actuellement pas possible d'accéder à votre compte en raison d'une période de pause active que vous avez définie. Veuillez contacter le service client pour plus d'informations.",Forbidden_UserAccount_SELFEXCLUDED:"Il n'est pas possible d'accéder à votre compte en raison d'une auto-exclusion active. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Il n'est pas possible d'accéder à votre compte en raison d'une auto-exclusion active. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_NotActive:"Il semble que vous n’ayez pas encore confirmé votre adresse e-mail. Pour finaliser votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n’avez pas reçu l’e-mail, veuillez également vérifier votre dossier spam. Si vous avez besoin d’assistance, vous pouvez demander de l’aide via le service client."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",GmErr_USER_AUTH_FAILED:"Zadané uživatelské jméno/e-mailová adresa a/nebo heslo jsou nesprávné.",AuthFailedPhoneNumber:"Zadané telefonní číslo a/nebo heslo jsou nesprávné.",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát.",GmErr_UnexpectedException:"Při načítání dat došlo k chybě...",Forbidden_UserAccount_Timeout:"Váš účet není momentálně přístupný kvůli aktivnímu časovému omezení, které jste nastavili. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_Timeout:"Váš účet není momentálně přístupný kvůli aktivnímu časovému omezení, které jste nastavili. Pro více informací kontaktujte zákaznický servis.",Forbidden_UserAccount_SELFEXCLUDED:"Váš účet není přístupný kvůli aktivní sebevyloučení. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Váš účet není přístupný kvůli aktivní sebevyloučení. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_NotActive:"Zdá se, že jste dosud nepotvrdili svou e-mailovou adresu. Chcete-li dokončit registraci a získat přístup ke svému účtu, zkontrolujte prosím svoji e-mailovou schránku pro potvrzovací zprávu. Pokud e-mail nedorazil, zkontrolujte také složku se spamem. Pokud potřebujete pomoc, můžete požádat o podporu prostřednictvím zákaznického servisu."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",GmErr_USER_AUTH_FAILED:"Der eingegebene Benutzername/die E-Mail-Adresse und/oder das Passwort sind falsch.",AuthFailedPhoneNumber:"Die eingegebene Telefonnummer und/oder das Passwort sind falsch.",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format.",GmErr_UnexpectedException:"Beim Abrufen der Daten ist ein Fehler aufgetreten...",Forbidden_UserAccount_Timeout:"Der Zugriff auf Ihr Konto ist derzeit aufgrund einer aktiven Auszeit, die Sie festgelegt haben, nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_Timeout:"Der Zugriff auf Ihr Konto ist derzeit aufgrund einer aktiven Auszeit, die Sie festgelegt haben, nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",Forbidden_UserAccount_SELFEXCLUDED:"Der Zugriff auf Ihr Konto ist aufgrund einer aktiven Selbstausschlussregelung nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Der Zugriff auf Ihr Konto ist aufgrund einer aktiven Selbstausschlussregelung nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihren E-Mail-Posteingang auf eine Bestätigungsnachricht. Falls Sie die E-Mail nicht erhalten haben, prüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie den Kundendienst um Unterstützung bitten."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_UnexpectedException:"Ocorreu um erro ao tentar buscar os dados...",Forbidden_UserAccount_Timeout:"Atualmente não é possível acessar sua conta devido a um período de pausa ativo que você definiu. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_Timeout:"Atualmente não é possível acessar sua conta devido a um período de pausa ativo que você definiu. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",Forbidden_UserAccount_SELFEXCLUDED:"Não é possível acessar sua conta devido a uma autoexclusão ativa. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Não é possível acessar sua conta devido a uma autoexclusão ativa. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu cadastro e acessar sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar suporte através do atendimento ao cliente."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_UnexpectedException:"Ocurrió un error al intentar obtener los datos...",Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta al Servicio al Cliente para más información.",Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_UnexpectedException:"Ocurrió un error al intentar obtener los datos...",Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta con el Servicio de Atención al Cliente para más información.",Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_UnexpectedException:"Ocorreu um erro ao tentar buscar os dados...",Forbidden_UserAccount_Timeout:"De momento não é possível aceder à sua conta devido a uma pausa ativa que definiu. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_Timeout:"De momento não é possível aceder à sua conta devido a uma pausa ativa que definiu. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",Forbidden_UserAccount_SELFEXCLUDED:"Não é possível aceder à sua conta devido a uma autoexclusão ativa. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Não é possível aceder à sua conta devido a uma autoexclusão ativa. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_NotActive:"Parece que ainda não confirmou o seu endereço de e-mail. Para concluir o seu registo e aceder à sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, pode solicitar assistência através do serviço de apoio ao cliente."}},o=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let o in t[e])i[e][o]=t[e][o]})),e(!0)}))})),s=(t,e,o)=>{let s=i[void 0!==e&&e in i?e:"en"][t];if(void 0!==o)for(const[t,e]of Object.entries(o.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s};function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}var a=Object.defineProperty,l=Object.defineProperties,h=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,m=(t,e)=>{for(var i in e||(e={}))d.call(e,i)&&p(t,i,e[i]);if(c)for(var i of c(e))u.call(e,i)&&p(t,i,e[i]);return t},v=(t,e)=>l(t,h(e)),f=(t,e,i)=>(p(t,"symbol"!=typeof e?e+"":e,i),i),b=(t,e,i)=>new Promise(((o,s)=>{var r=t=>{try{a(i.next(t))}catch(t){s(t)}},n=t=>{try{a(i.throw(t))}catch(t){s(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
|
|
1
|
+
import{r as t,h as e}from"./index-74c5e8bb.js";const i={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occurred",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occurred when fetching the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_UnexpectedException:"There was an error trying to fetch the data...",Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information",Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service."},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",GmErr_USER_AUTH_FAILED:"Girilen kullanıcı adı/e-posta adresi ve/veya şifre yanlış.",AuthFailedPhoneNumber:"Girilen telefon numarası ve/veya şifre yanlış.",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip.",GmErr_UnexpectedException:"Verileri almaya çalışırken bir hata oluştu...",Forbidden_UserAccount_Timeout:"Belirlediğiniz aktif zaman aşımı nedeniyle şu anda hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_Timeout:"Belirlediğiniz aktif zaman aşımı nedeniyle şu anda hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",Forbidden_UserAccount_SELFEXCLUDED:"Aktif bir kendini dışlama nedeniyle hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Aktif bir kendini dışlama nedeniyle hesabınıza erişim mümkün değil. Daha fazla bilgi için lütfen Müşteri Hizmetleri ile iletişime geçin.",GmErr_Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz onaylamadığınız anlaşılıyor. Kayıt işleminizi tamamlamak ve hesabınıza erişmek için lütfen e-posta gelen kutunuzu onay mesajı için kontrol edin. E-postayı almadıysanız, lütfen spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız olursa, müşteri hizmetleri aracılığıyla destek talep edebilirsiniz.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz onaylamadığınız anlaşılıyor. Kayıt işleminizi tamamlamak ve hesabınıza erişmek için lütfen e-posta gelen kutunuzu onay mesajı için kontrol edin. E-postayı almadıysanız, lütfen spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız olursa, müşteri hizmetleri aracılığıyla destek talep edebilirsiniz."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format.",GmErr_UnexpectedException:"There was an error trying to fetch the data...",Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_Timeout:"It’s currently not possible to access your account due to an active time-out you’ve set. Please contact Customer Services for more information",Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"It’s not possible to access your account due to an active self-exclusion. Please contact Customer Services for more information.",GmErr_Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service."},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",GmErr_USER_AUTH_FAILED:"Numele de utilizator/adresa de e-mail și/sau parola introduse sunt incorecte.",AuthFailedPhoneNumber:"Numărul de telefon și/sau parola introduse sunt incorecte.",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid.",GmErr_UnexpectedException:"A apărut o eroare la încercarea de a prelua datele...",Forbidden_UserAccount_Timeout:"Accesul la contul dumneavoastră nu este posibil momentan din cauza unei perioade de pauză active setate de dumneavoastră. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_Timeout:"Accesul la contul dumneavoastră nu este posibil momentan din cauza unei perioade de pauză active setate de dumneavoastră. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",Forbidden_UserAccount_SELFEXCLUDED:"Accesul la contul dumneavoastră nu este posibil din cauza unei autoexcluderi active. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Accesul la contul dumneavoastră nu este posibil din cauza unei autoexcluderi active. Vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",GmErr_Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de email. Pentru a finaliza înregistrarea și a accesa contul, vă rugăm să verificați inbox-ul de email pentru un mesaj de confirmare. Dacă nu ați primit emailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul clienți.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de email. Pentru a finaliza înregistrarea și a accesa contul, vă rugăm să verificați inbox-ul de email pentru un mesaj de confirmare. Dacă nu ați primit emailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul clienți."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",GmErr_USER_AUTH_FAILED:"Uneseno korisničko ime/adresa e-pošte i/ili lozinka su netočni.",AuthFailedPhoneNumber:"Uneseni broj telefona i/ili lozinka su netočni.",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format.",GmErr_UnexpectedException:"Došlo je do pogreške prilikom dohvaćanja podataka...",Forbidden_UserAccount_Timeout:"Trenutno nije moguće pristupiti vašem računu zbog aktivne vremenske blokade koju ste postavili. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_Timeout:"Trenutno nije moguće pristupiti vašem računu zbog aktivne vremenske blokade koju ste postavili. Za više informacija kontaktirajte Službu za korisnike.",Forbidden_UserAccount_SELFEXCLUDED:"Nije moguće pristupiti vašem računu zbog aktivne samoisključenosti. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Nije moguće pristupiti vašem računu zbog aktivne samoisključenosti. Za više informacija kontaktirajte Službu za korisnike.",GmErr_Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Za dovršetak registracije i pristup vašem računu, molimo provjerite svoj inbox za poruku za potvrdu. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti podršku putem korisničke službe.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Za dovršetak registracije i pristup vašem računu, molimo provjerite svoj inbox za poruku za potvrdu. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti podršku putem korisničke službe."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",GmErr_USER_AUTH_FAILED:"Le nom d'utilisateur/adresse e-mail et/ou le mot de passe saisis sont incorrects.",AuthFailedPhoneNumber:"Le numéro de téléphone et/ou le mot de passe saisis sont incorrects.",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide.",GmErr_UnexpectedException:"Une erreur s'est produite lors de la récupération des données...",Forbidden_UserAccount_Timeout:"Il n'est actuellement pas possible d'accéder à votre compte en raison d'une période de pause active que vous avez définie. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_Timeout:"Il n'est actuellement pas possible d'accéder à votre compte en raison d'une période de pause active que vous avez définie. Veuillez contacter le service client pour plus d'informations.",Forbidden_UserAccount_SELFEXCLUDED:"Il n'est pas possible d'accéder à votre compte en raison d'une auto-exclusion active. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Il n'est pas possible d'accéder à votre compte en raison d'une auto-exclusion active. Veuillez contacter le service client pour plus d'informations.",GmErr_Forbidden_UserAccount_NotActive:"Il semble que vous n’ayez pas encore confirmé votre adresse e-mail. Pour finaliser votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n’avez pas reçu l’e-mail, veuillez également vérifier votre dossier spam. Si vous avez besoin d’assistance, vous pouvez demander de l’aide via le service client.",Forbidden_UserAccount_NotActive:"Il semble que vous n’ayez pas encore confirmé votre adresse e-mail. Pour finaliser votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n’avez pas reçu l’e-mail, veuillez également vérifier votre dossier spam. Si vous avez besoin d’assistance, vous pouvez demander de l’aide via le service client."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",GmErr_USER_AUTH_FAILED:"Zadané uživatelské jméno/e-mailová adresa a/nebo heslo jsou nesprávné.",AuthFailedPhoneNumber:"Zadané telefonní číslo a/nebo heslo jsou nesprávné.",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát.",GmErr_UnexpectedException:"Při načítání dat došlo k chybě...",Forbidden_UserAccount_Timeout:"Váš účet není momentálně přístupný kvůli aktivnímu časovému omezení, které jste nastavili. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_Timeout:"Váš účet není momentálně přístupný kvůli aktivnímu časovému omezení, které jste nastavili. Pro více informací kontaktujte zákaznický servis.",Forbidden_UserAccount_SELFEXCLUDED:"Váš účet není přístupný kvůli aktivní sebevyloučení. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Váš účet není přístupný kvůli aktivní sebevyloučení. Pro více informací kontaktujte zákaznický servis.",GmErr_Forbidden_UserAccount_NotActive:"Zdá se, že jste dosud nepotvrdili svou e-mailovou adresu. Chcete-li dokončit registraci a získat přístup ke svému účtu, zkontrolujte prosím svoji e-mailovou schránku pro potvrzovací zprávu. Pokud e-mail nedorazil, zkontrolujte také složku se spamem. Pokud potřebujete pomoc, můžete požádat o podporu prostřednictvím zákaznického servisu.",Forbidden_UserAccount_NotActive:"Zdá se, že jste dosud nepotvrdili svou e-mailovou adresu. Chcete-li dokončit registraci a získat přístup ke svému účtu, zkontrolujte prosím svoji e-mailovou schránku pro potvrzovací zprávu. Pokud e-mail nedorazil, zkontrolujte také složku se spamem. Pokud potřebujete pomoc, můžete požádat o podporu prostřednictvím zákaznického servisu."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",GmErr_USER_AUTH_FAILED:"Der eingegebene Benutzername/die E-Mail-Adresse und/oder das Passwort sind falsch.",AuthFailedPhoneNumber:"Die eingegebene Telefonnummer und/oder das Passwort sind falsch.",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format.",GmErr_UnexpectedException:"Beim Abrufen der Daten ist ein Fehler aufgetreten...",Forbidden_UserAccount_Timeout:"Der Zugriff auf Ihr Konto ist derzeit aufgrund einer aktiven Auszeit, die Sie festgelegt haben, nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_Timeout:"Der Zugriff auf Ihr Konto ist derzeit aufgrund einer aktiven Auszeit, die Sie festgelegt haben, nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",Forbidden_UserAccount_SELFEXCLUDED:"Der Zugriff auf Ihr Konto ist aufgrund einer aktiven Selbstausschlussregelung nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Der Zugriff auf Ihr Konto ist aufgrund einer aktiven Selbstausschlussregelung nicht möglich. Bitte wenden Sie sich für weitere Informationen an den Kundenservice.",GmErr_Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihren E-Mail-Posteingang auf eine Bestätigungsnachricht. Falls Sie die E-Mail nicht erhalten haben, prüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie den Kundendienst um Unterstützung bitten.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihren E-Mail-Posteingang auf eine Bestätigungsnachricht. Falls Sie die E-Mail nicht erhalten haben, prüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie den Kundendienst um Unterstützung bitten."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_UnexpectedException:"Ocorreu um erro ao tentar buscar os dados...",Forbidden_UserAccount_Timeout:"Atualmente não é possível acessar sua conta devido a um período de pausa ativo que você definiu. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_Timeout:"Atualmente não é possível acessar sua conta devido a um período de pausa ativo que você definiu. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",Forbidden_UserAccount_SELFEXCLUDED:"Não é possível acessar sua conta devido a uma autoexclusão ativa. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Não é possível acessar sua conta devido a uma autoexclusão ativa. Por favor, entre em contato com o Atendimento ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu cadastro e acessar sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar suporte através do atendimento ao cliente.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu cadastro e acessar sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar suporte através do atendimento ao cliente."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_UnexpectedException:"Ocurrió un error al intentar obtener los datos...",Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta al Servicio al Cliente para más información.",Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta al Servicio al Cliente para más información.",GmErr_Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido.",GmErr_UnexpectedException:"Ocurrió un error al intentar obtener los datos...",Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_Timeout:"Actualmente no es posible acceder a tu cuenta debido a un período de pausa activo que has establecido. Por favor, contacta con el Servicio de Atención al Cliente para más información.",Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"No es posible acceder a tu cuenta debido a una autoexclusión activa. Por favor, contacta con el Servicio de Atención al Cliente para más información.",GmErr_Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, revisa tu bandeja de entrada en busca de un mensaje de confirmación. Si no has recibido el correo electrónico, también revisa la carpeta de spam. Si necesitas ayuda, puedes solicitar asistencia a través del servicio al cliente."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido.",GmErr_UnexpectedException:"Ocorreu um erro ao tentar buscar os dados...",Forbidden_UserAccount_Timeout:"De momento não é possível aceder à sua conta devido a uma pausa ativa que definiu. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_Timeout:"De momento não é possível aceder à sua conta devido a uma pausa ativa que definiu. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",Forbidden_UserAccount_SELFEXCLUDED:"Não é possível aceder à sua conta devido a uma autoexclusão ativa. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_SELFEXCLUDED:"Não é possível aceder à sua conta devido a uma autoexclusão ativa. Por favor, contacte o Serviço de Apoio ao Cliente para mais informações.",GmErr_Forbidden_UserAccount_NotActive:"Parece que ainda não confirmou o seu endereço de e-mail. Para concluir o seu registo e aceder à sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, pode solicitar assistência através do serviço de apoio ao cliente.",Forbidden_UserAccount_NotActive:"Parece que ainda não confirmou o seu endereço de e-mail. Para concluir o seu registo e aceder à sua conta, verifique a caixa de entrada do seu e-mail para uma mensagem de confirmação. Se não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, pode solicitar assistência através do serviço de apoio ao cliente."}},o=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let o in t[e])i[e][o]=t[e][o]})),e(!0)}))})),s=(t,e,o)=>{let s=i[void 0!==e&&e in i?e:"en"][t];if(void 0!==o)for(const[t,e]of Object.entries(o.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s};function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}var a=Object.defineProperty,l=Object.defineProperties,h=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,m=(t,e)=>{for(var i in e||(e={}))d.call(e,i)&&p(t,i,e[i]);if(c)for(var i of c(e))u.call(e,i)&&p(t,i,e[i]);return t},v=(t,e)=>l(t,h(e)),f=(t,e,i)=>(p(t,"symbol"!=typeof e?e+"":e,i),i),b=(t,e,i)=>new Promise(((o,s)=>{var r=t=>{try{a(i.next(t))}catch(t){s(t)}},n=t=>{try{a(i.throw(t))}catch(t){s(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -19,13 +19,13 @@ const _=globalThis,w=_.ShadowRoot&&(void 0===_.ShadyCSS||_.ShadyCSS.nativeShadow
|
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/,{is:S,defineProperty:I,getOwnPropertyDescriptor:P,getOwnPropertyNames:T,getOwnPropertySymbols:D,getPrototypeOf:F}=Object,O=globalThis,N=O.trustedTypes,B=N?N.emptyScript:"",
|
|
22
|
+
*/,{is:S,defineProperty:I,getOwnPropertyDescriptor:P,getOwnPropertyNames:T,getOwnPropertySymbols:D,getPrototypeOf:F}=Object,O=globalThis,N=O.trustedTypes,B=N?N.emptyScript:"",j=O.reactiveElementPolyfillSupport,U={toAttribute(t,e){switch(e){case Boolean:t=t?B:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},M=(t,e)=>!S(t,e),L={attribute:!0,type:String,converter:U,reflect:!1,useDefault:!1,hasChanged:M};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=O.litPropertyMetadata||(O.litPropertyMetadata=new WeakMap);class R extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=L){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&I(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){var o;const{get:s,set:r}=null!=(o=P(this.prototype,t))?o:{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const o=null==s?void 0:s.call(this);null==r||r.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:L}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=F(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...T(t),...D(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(z(t))}else void 0!==t&&e.push(z(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return E(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const r=(void 0!==(null==(i=o.converter)?void 0:i.toAttribute)?o.converter:U).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:U;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(s=null!=l?l:null==(o=this._$Ej)?void 0:o.get(n))?s:l,this._$Em=null}}requestUpdate(t,e,i){var o,s;if(void 0!==t){const r=this.constructor,n=this[t];if(null!=i||(i=r.getPropertyOptions(t)),!((null!=(o=i.hasChanged)?o:M)(n,e)||i.useDefault&&i.reflect&&n===(null==(s=this._$Ej)?void 0:s.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:s},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==s||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return b(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}}var V;R.elementStyles=[],R.shadowRootOptions={mode:"open"},R.elementProperties=new Map,R.finalized=new Map,null==j||j({ReactiveElement:R}),(null!=(V=O.reactiveElementVersions)?V:O.reactiveElementVersions=[]).push("2.1.1");
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const q=globalThis,$=q.trustedTypes,G=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,H="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,K="?"+W,Y=`<${K}>`,Z=document,J=()=>Z.createComment(""),X=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Q=Array.isArray,tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,it=/-->/g,ot=/>/g,st=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,at=/^(?:script|style|textarea|title)$/i,lt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),ct=new WeakMap,dt=Z.createTreeWalker(Z,129);function ut(t,e){if(!Q(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==G?G.createHTML(e):e}class pt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===et?"!--"===l[1]?n=it:void 0!==l[1]?n=ot:void 0!==l[2]?(at.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=st):void 0!==l[3]&&(n=st):n===st?">"===l[0]?(n=null!=s?s:et,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?st:'"'===l[3]?nt:rt):n===nt||n===rt?n=st:n===it||n===ot?n=et:(n=st,s=void 0);const d=n===st&&t[e+1].startsWith("/>")?" ":"";r+=n===et?i+Y:h>=0?(o.push(a),i.slice(0,h)+H+i.slice(h)+W+d):i+W+(-2===h?e:d)}return[ut(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=pt.createElement(l,i),dt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=dt.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(H)){const e=h[r++],i=o.getAttribute(t).split(W),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:n[2],strings:i,ctor:"."===n[1]?gt:"?"===n[1]?yt:"@"===n[1]?_t:bt}),o.removeAttribute(t)}else t.startsWith(W)&&(a.push({type:6,index:s}),o.removeAttribute(t));if(at.test(o.tagName)){const t=o.textContent.split(W),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],J()),dt.nextNode(),a.push({type:2,index:++s});o.append(t[e],J())}}}else if(8===o.nodeType)if(o.data===K)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(W,t+1));)a.push({type:7,index:s}),t+=W.length-1}s++}}static createElement(t,e){const i=Z.createElement("template");return i.innerHTML=t,i}}function mt(t,e,i=t,o){var s,r,n;if(e===lt)return e;let a=void 0!==o?null==(s=i._$Co)?void 0:s[o]:i._$Cl;const l=X(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,o)),void 0!==o?(null!=(n=i._$Co)?n:i._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=mt(t,a._$AS(t,e.values),a,o)),e}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:Z).importNode(i,!0);dt.currentNode=s;let r=dt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new ft(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new wt(r,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=dt.nextNode(),n++)}return dt.currentNode=Z,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ft{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,o){var s;this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=null==(s=null==o?void 0:o.isConnected)||s}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=mt(this,t,e),X(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==lt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):Q(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&X(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=pt.createElement(ut(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new vt(s,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new pt(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new ft(this.O(J()),this.O(J()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class bt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ht}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=mt(this,t,e,0),r=!X(t)||t!==this._$AH&&t!==lt,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=mt(this,o[i+n],e,n),a===lt&&(a=this._$AH[n]),r||(r=!X(a)||a!==this._$AH[n]),a===ht?t=ht:t!==ht&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class gt extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class yt extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class _t extends bt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=mt(this,t,e,0))?i:ht)===lt)return;const o=this._$AH,s=t===ht&&o!==ht||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ht&&(o===ht||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class wt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){mt(this,t)}}const xt=q.litHtmlPolyfillSupport;var kt;null==xt||xt(pt,ft),(null!=(kt=q.litHtmlVersions)?kt:q.litHtmlVersions=[]).push("3.3.1");const Ct=(t,e,i)=>{var o,s;const r=null!=(o=null==i?void 0:i.renderBefore)?o:e;let n=r._$litPart$;if(void 0===n){const t=null!=(s=null==i?void 0:i.renderBefore)?s:null;r._$litPart$=n=new ft(e.insertBefore(J(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
@@ -41,7 +41,7 @@ const Pt=t=>class extends t{static get properties(){return{_theme:{type:String,r
|
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
43
43
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
44
|
-
*/,Tt=[],Dt=new Set,Ft=new Set;function Ot(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Nt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Bt(t){return t.map((t=>t.cssText)).join("\n")}const
|
|
44
|
+
*/,Tt=[],Dt=new Set,Ft=new Set;function Ot(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Nt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Bt(t){return t.map((t=>t.cssText)).join("\n")}const jt="vaadin-themable-mixin-style";function Ut(t){t.prototype instanceof Et?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(jt).textContent=Bt(t.getStylesForThis()),Ft.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Ut(i)}))}function Mt(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof C||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):Tt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&Ft.forEach((i=>{if(Nt(t,i)&&function(t){return Ot(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Ut(t),function(t){Dt.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof Et?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),E(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(jt).textContent=e.prototype._template.content.getElementById(jt).textContent}(i):i||Dt.delete(e)}))}(t)}}))}function Lt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Tt}function Rt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Vt(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Lt().find((e=>e.moduleId===t));i?e.push(...Vt(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function qt(t){const e=`${t}-default-theme`,i=Lt().filter((i=>i.moduleId!==e&&Nt(i.themeFor,t))).map((t=>v(m({},t),{styles:[...Vt(t),...t.styles],includePriority:Rt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Lt().filter((t=>t.moduleId===e))}const $t=t=>class extends(Pt(t)){constructor(){super(),Dt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ft.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Ot(this)||function(t,e){const i=document.createElement("style");i.id=jt,i.textContent=Bt(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...qt(this.is)];const o=this.__themes.flatMap((t=>t.styles));return o.filter(((t,e)=>e===o.lastIndexOf(t)))}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -131,7 +131,7 @@ const Pt=t=>class extends t{static get properties(){return{_theme:{type:String,r
|
|
|
131
131
|
--lumo-disabled-text-color: GrayText;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
`),
|
|
134
|
+
`),Mt("",A`
|
|
135
135
|
[theme~='dark'] {
|
|
136
136
|
/* Base (background) */
|
|
137
137
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -466,7 +466,7 @@ const Ht=A`
|
|
|
466
466
|
--lumo-line-height-s: 1.375;
|
|
467
467
|
--lumo-line-height-m: 1.625;
|
|
468
468
|
}
|
|
469
|
-
`;
|
|
469
|
+
`;Mt("",A`
|
|
470
470
|
body,
|
|
471
471
|
:host {
|
|
472
472
|
font-family: var(--lumo-font-family);
|
|
@@ -558,7 +558,7 @@ const Ht=A`
|
|
|
558
558
|
border-left: none;
|
|
559
559
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
560
560
|
}
|
|
561
|
-
`,{moduleId:"lumo-typography"}),Gt("typography-props",Ht),
|
|
561
|
+
`,{moduleId:"lumo-typography"}),Gt("typography-props",Ht),Mt("vaadin-checkbox",A`
|
|
562
562
|
:host {
|
|
563
563
|
color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
|
|
564
564
|
font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
|
|
@@ -928,7 +928,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
928
928
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
929
929
|
Code distributed by Google as part of the polymer project is also
|
|
930
930
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
931
|
-
*/;function De(t){return t.indexOf(".")>=0}function Fe(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Oe(t,e){return 0===t.indexOf(e+".")}function Ne(t,e){return 0===e.indexOf(t+".")}function Be(t,e,i){return e+i.slice(t.length)}function
|
|
931
|
+
*/;function De(t){return t.indexOf(".")>=0}function Fe(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Oe(t,e){return 0===t.indexOf(e+".")}function Ne(t,e){return 0===e.indexOf(t+".")}function Be(t,e,i){return e+i.slice(t.length)}function je(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let o=t[i].toString().split(".");for(let t=0;t<o.length;t++)e.push(o[t])}return e.join(".")}return t}function Ue(t){return Array.isArray(t)?je(t).split("."):t.toString().split(".")}function Me(t,e,i){let o=t,s=Ue(e);for(let t=0;t<s.length;t++){if(!o)return;o=o[s[t]]}return i&&(i.path=s.join(".")),o}function Le(t,e,i){let o=t,s=Ue(e),r=s[s.length-1];if(s.length>1){for(let t=0;t<s.length-1;t++)if(o=o[s[t]],!o)return;o[r]=i}else o[e]=i;return s.join(".")}
|
|
932
932
|
/**
|
|
933
933
|
@license
|
|
934
934
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
937
937
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
938
938
|
Code distributed by Google as part of the polymer project is also
|
|
939
939
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
940
|
-
*/const Re={},Ve=/-[a-z]/g
|
|
940
|
+
*/const Re={},Ve=/-[a-z]/g,qe=/([A-Z])/g;function $e(t){return Re[t]||(Re[t]=t.indexOf("-")<0?t:t.replace(Ve,(t=>t[1].toUpperCase())))}function Ge(t){return Re[t]||(Re[t]=t.replace(qe,"-$1").toLowerCase())}
|
|
941
941
|
/**
|
|
942
942
|
@license
|
|
943
943
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -955,7 +955,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
955
955
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
956
956
|
Code distributed by Google as part of the polymer project is also
|
|
957
957
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
958
|
-
*/let oi=HTMLElement.prototype;for(;oi;){let t=Object.getOwnPropertyNames(oi);for(let e=0;e<t.length;e++)ii[t[e]]=!0;oi=Object.getPrototypeOf(oi)}const si=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,ri=fe((t=>{const e=ei(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(
|
|
958
|
+
*/let oi=HTMLElement.prototype;for(;oi;){let t=Object.getOwnPropertyNames(oi);for(let e=0;e<t.length;e++)ii[t[e]]=!0;oi=Object.getPrototypeOf(oi)}const si=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,ri=fe((t=>{const e=ei(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor($e(t[e]))}static attributeNameForProperty(t){return Ge(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(si(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){(function(t,e){if(!ii[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}})(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return!(!this.__dataPending||!(t in this.__dataPending))}}})),ni={"dom-if":!0,"dom-repeat":!0};let ai=!1,li=!1;const hi=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,o)=>{const s=i.getAttribute(o);t&&o.startsWith("on-")?e.setAttribute(o,t.createScript(s,o)):e.setAttribute(o,s)}})();function ci(t){let e=t.getAttribute("is");if(e&&ni[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];hi(t,i,e),i.removeAttribute(e)}}return t}function di(t,e){let i=e.parentInfo&&di(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,o=0;t;t=t.nextSibling)if(e.parentIndex===o++)return t}function ui(t,e,i,o){o.id&&(e[o.id]=i)}function pi(t,e,i){if(i.events&&i.events.length)for(let o,s=0,r=i.events;s<r.length&&(o=r[s]);s++)t._addMethodEventListenerToNode(e,o.name,o.value,t)}function mi(t,e,i,o){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=o)}const vi=fe((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=!!e,i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let o=!1,s=t;return"template"!=s.localName||s.hasAttribute("preserve-content")?"slot"===s.localName&&(e.hasInsertionPoint=!0):o=this._parseTemplateNestedTemplate(s,e,i)||o,function(t){(function(){if(!ai){ai=!0;const t=document.createElement("textarea");t.placeholder="a",li=t.placeholder===t.textContent}return li})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(s),s.firstChild&&this._parseTemplateChildNodes(s,e,i),s.hasAttributes&&s.hasAttributes()&&(o=this._parseTemplateNodeAttributes(s,e,i)||o),o||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let o,s=t.firstChild,r=0;s;s=o){if("template"==s.localName&&(s=ci(s)),o=s.nextSibling,s.nodeType===Node.TEXT_NODE){let i=o;for(;i&&i.nodeType===Node.TEXT_NODE;)s.textContent+=i.textContent,o=i.nextSibling,t.removeChild(i),i=o;if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:i};this._parseTemplateNode(s,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),s.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let o=t,s=this._parseTemplate(o,e);return(s.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),i.templateInfo=s,!0}static _parseTemplateNodeAttributes(t,e,i){let o=!1,s=Array.from(t.attributes);for(let r,n=s.length-1;r=s[n];n--)o=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||o;return o}static _parseTemplateNodeAttribute(t,e,i,o,s){return"on-"===o.slice(0,3)?(t.removeAttribute(o),i.events=i.events||[],i.events.push({name:o.slice(3),value:s}),!0):"id"===o&&(i.id=s,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,o=document.importNode(e.content||t.content,!0);o.__noInsertionPoint=!e.hasInsertionPoint;let s=o.nodeList=new Array(i.length);o.$={};for(let t,r=0,n=i.length;r<n&&(t=i[r]);r++){let i=s[r]=di(o,t);ui(0,o.$,i,t),mi(0,i,t,e),pi(this,i,t)}return o}_addMethodEventListenerToNode(t,e,i,o){let s=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(o=o||t,0,i);return this._addEventListenerToNode(t,e,s),s}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
|
|
959
959
|
/**
|
|
960
960
|
* @fileoverview
|
|
961
961
|
* @suppress {checkPrototypalTypes}
|
|
@@ -966,7 +966,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
966
966
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
967
967
|
* Google as part of the polymer project is also subject to an additional IP
|
|
968
968
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
969
|
-
*/let fi=0;const bi=[],gi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},yi="__computeInfo",_i=/[A-Z]/;function wi(t,e,i){let o=t[e];if(o){if(!t.hasOwnProperty(e)&&(o=t[e]=Object.create(t[e]),i))for(let t in o){let e=o[t],i=o[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else o=t[e]={};return o}function xi(t,e,i,o,s,r){if(e){let n=!1;const a=fi++;for(let l in i){let h=e[s?Fe(l):l];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)(!e.info||e.info.lastRun!==a)&&(!s||Ci(l,e.trigger))&&(e.info&&(e.info.lastRun=a),e.fn(t,l,i,o,e.info,s,r),n=!0)}return n}return!1}function ki(t,e,i,o,s,r,n,a){let l=!1,h=e[n?Fe(o):o];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)(!e.info||e.info.lastRun!==i)&&(!n||Ci(o,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,o,s,r,e.info,n,a),l=!0);return l}function Ci(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Oe(i,t))||!(!e.wildcard||!Ne(i,t))}return!0}function Ai(t,e,i,o,s){let r="string"==typeof s.method?t[s.method]:s.method,n=s.property;r?r.call(t,t.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Ei(t,e,i){let o=Fe(e);return o!==e&&(zi(t,Ge(o)+"-changed",i[e],e),!0)}function zi(t,e,i,o){let s={value:i,queueProperty:!0};o&&(s.path=o),Te(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function Si(t,e,i,o,s,r){let n=(r?Fe(e):e)!=e?e:null,a=n?je(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),zi(t,s.eventName,a,n)}function Ii(t,e,i,o,s){let r=t.__data[e];oe&&(r=oe(r,s.attrName,"attribute",t)),t._propertyToAttribute(e,s.attrName,r)}const Pi=(t,e,i)=>{let o=0,s=e.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)o=n+1;else{if(!(a>0)){r=n;break}s=n-1}}r<0&&(r=s+1),e.splice(r,0,t)},Ti=(t,e,i,o,s)=>{const r=e[s?Fe(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun!==fi&&(!s||Ci(t,n.trigger))&&(n.info.lastRun=fi,Pi(n.info,i,o))}};function Di(t,e,i,o,s){let r=ji(t,e,i,0,s);if(r===bi)return!1;let n=s.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function Fi(t,e,i,o,s,r,n){i.bindings=i.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return!!t.target&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Ge(s)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let o=a.parts[i];o.compoundIndex=i,Oi(t,e,a,o,l)}}function Oi(t,e,i,o,s){if(!o.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:s,binding:i,part:o,evaluator:t};for(let i=0;i<r.length;i++){let o=r[i];"string"==typeof o&&(o=Hi(o),o.wildcard=!0),t._addTemplatePropertyEffect(e,o.rootProperty,{fn:Ni,info:n,trigger:o})}}}function Ni(t,e,i,o,s,r,n){let a=n[s.index],l=s.binding,h=s.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let o=i[e];e=Be(h.source,l.target,e),a._setPendingPropertyOrPath(e,o,!1,!0)&&t._enqueueClient(a)}else{let n=s.evaluator._evaluateBinding(t,h,e,i,o,r);n!==bi&&function(t,e,i,o,s){if(s=function(t,e,i,o){if(i.isCompound){let s=t.__dataCompoundStorage[i.target];s[o.compoundIndex]=e,e=s.join("")}return"attribute"!==i.kind&&("textContent"===i.target||"value"===i.target&&("input"===t.localName||"textarea"===t.localName))&&(e=null==e?"":e),e}(e,s,i,o),oe&&(s=oe(s,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,s,i.target);else{let o=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[gi.READ_ONLY]||!e[gi.READ_ONLY][o])&&e._setPendingProperty(o,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,s)}}(t,a,l,h,n)}}function Bi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=e.parts,s=new Array(o.length);for(let t=0;t<o.length;t++)s[t]=o[t].literal;let r=e.target;i[r]=s,e.literal&&"property"==e.kind&&("className"===r&&(t=Te(t)),t[r]=e.literal)}}function Ui(t,e,i){if(i.listenerEvent){let o=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,o,s){let r,n=t.detail,a=n&&n.path;a?(o=Be(i,o,a),r=n&&n.value):r=t.currentTarget[i],r=s?!r:r,(!e[gi.READ_ONLY]||!e[gi.READ_ONLY][o])&&e._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,o.source,o.negate)}))}}function Mi(t,e,i,o,s,r){let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let s,r=0;r<e.args.length&&(s=e.args[r]);r++)s.literal||t._addPropertyEffect(s.rootProperty,i,{fn:o,info:n,trigger:s});return r&&t._addPropertyEffect(e.methodName,i,{fn:o,info:n}),n}function ji(t,e,i,o,s){let r=t._methodHost||t,n=r[s.methodName];if(n){let o=t._marshalArgs(s.args,e,i);return o===bi?bi:n.apply(r,o)}s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Li=[],Ri="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Vi="(?:("+Ri+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",$i=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ri+"\\s*(?:\\(\\s*(?:(?:"+Vi+"(?:,\\s*"+Vi+")*)?)\\)\\s*)?)(?:]]|}})","g");function qi(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Gi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Li};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Hi(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,",").split(","),t):t}return null}function Hi(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},o=e[0];switch("-"===o&&(o=e[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Fe(e),i.structured=De(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Wi(t,e,i){let o=je(t,i);return void 0===o&&(o=e[i]),o}function Ki(t,e,i,o){const s={indexSplices:o};he&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(i+".splices",s),t.notifyPath(i+".length",e.length),he&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function Yi(t,e,i,o,s,r){Ki(t,e,i,[{index:o,addedCount:s,removed:r,object:e,type:"splice"}])}const Zi=fe((t=>{const e=vi(ri(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return gi}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ji.length){let t=Ji[Ji.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[gi.READ_ONLY];for(let i in t)(!e||!e[i])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==gi.READ_ONLY);let o=wi(this,e,!0)[t];o||(o=this[e][t]=[]),o.push(i)}_removePropertyEffect(t,e,i){let o=wi(this,e,!0)[t],s=o.indexOf(i);s>=0&&o.splice(s,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,gi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,gi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,gi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,gi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,o){if(o||Fe(Array.isArray(t)?t[0]:t)!==t){if(!o){let i=je(this,t);if(!(t=Le(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let o=t.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Ne(r,e)?(s=Be(r,n,e),t._setPendingPropertyOrPath(s,i,!0,!0)):Ne(n,e)&&(s=Be(n,r,e),t._setPendingPropertyOrPath(s,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){(i!==t[e]||"object"==typeof i)&&("className"===e&&(t=Te(t)),t[e]=i)}_setPendingProperty(t,e,i){let o=this.__dataHasPaths&&De(t);return!!this._shouldPropertyChange(t,e,(o?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),o?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(o||this[gi.NOTIFY]&&this[gi.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)(e||!this[gi.READ_ONLY]||!this[gi.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let o,s=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,o){let s=t[gi.COMPUTE];if(s)if(ce){fi++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[gi.COMPUTE];let o,{counts:s,ready:r,total:n}=function(t){const e=t[yi],i={},o=t[gi.COMPUTE],s=[];let r=0;for(let t in e){const o=e[t];r+=i[t]=o.args.filter((t=>!t.literal)).length+(o.dynamicFn?1:0)}for(let t in o)e[t]||s.push(t);return{counts:i,ready:s,total:r}}(t);for(;o=r.shift();){e.set(o,e.size);const t=i[o];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--s[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)Ti(t,s,n,r,o);let a;for(;a=n.shift();)Di(t,"",e,0,a)&&Ti(a.methodInfo,s,n,r,o);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;xi(t,s,r,i,o);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,s),o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,s),this._flushClients(),xi(this,this[gi.REFLECT],e,i,s),xi(this,this[gi.OBSERVE],e,i,s),o&&function(t,e,i,o,s){let r,n,a=t[gi.NOTIFY],l=fi++;for(let n in e)e[n]&&(a&&ki(t,a,l,n,i,o,s)||s&&Ei(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,o,e,i,s),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[gi.PROPAGATE]&&xi(this,this[gi.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,o){const s=(e,o)=>{xi(this,t.propertyEffects,e,i,o,t.nodeList);for(let s=t.firstChild;s;s=s.nextSibling)this._runEffectsForTemplate(s,e,i,o)};t.runEffects?t.runEffects(s,e,o):s(e,o)}linkPaths(t,e){t=Ue(t),e=Ue(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ue(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Ki(this,je(this,t,i),i.path,e)}get(t,e){return je(e||this,t)}set(t,e,i){i?Le(i,t,e):(!this[gi.READ_ONLY]||!this[gi.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},o=je(this,t,i),s=o.length,r=o.push(...e);return e.length&&Yi(this,o,i.path,s,e.length,[]),r}pop(t){let e={path:""},i=je(this,t,e),o=!!i.length,s=i.pop();return o&&Yi(this,i,e.path,i.length,0,[s]),s}splice(t,e,i,...o){let s,r={path:""},n=je(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),s=2===arguments.length?n.splice(e):n.splice(e,i,...o),(o.length||s.length)&&Yi(this,n,r.path,e,o.length,s),s}shift(t){let e={path:""},i=je(this,t,e),o=!!i.length,s=i.shift();return o&&Yi(this,i,e.path,0,0,[s]),s}unshift(t,...e){let i={path:""},o=je(this,t,i),s=o.unshift(...e);return e.length&&Yi(this,o,i.path,0,e.length,[]),s}notifyPath(t,e){let i;if(1==arguments.length){let o={path:""};e=je(this,t,o),i=o.path}else i=Array.isArray(t)?Ue(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,gi.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let o={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,gi.OBSERVE,{fn:Ai,info:o,trigger:{name:t}}),i&&this._addPropertyEffect(e,gi.OBSERVE,{fn:Ai,info:o,trigger:{name:e}})}_createMethodObserver(t,e){let i=Gi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Mi(this,i,gi.OBSERVE,ji,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,gi.NOTIFY,{fn:Si,info:{eventName:Ge(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,gi.REFLECT,{fn:Ii,info:{attrName:e}})}_createComputedProperty(t,e,i){let o=Gi(e);if(!o)throw new Error("Malformed computed expression '"+e+"'");const s=Mi(this,o,gi.COMPUTE,Di,t,i);wi(this,yi)[t]=s}_marshalArgs(t,e,i){const o=this.__data,s=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[r];if(!c)if(l){const t=Ne(n,e),s=Wi(o,i,t?e:n);h={path:t?e:n,value:s,base:t?je(o,n):s}}else h=a?Wi(o,i,n):o[n];if(he&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return bi;s[r]=h}return s}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),o=this.__preBoundTemplateInfo==i;if(!o)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=o,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,o=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=o,o?o.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let o=t.propertyEffects=t.propertyEffects||{};(o[e]=o[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ji.push(this);let i=super._stampTemplate(t,e);if(Ji.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){let s=i[e],r=o[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];Bi(s,i),Ui(s,t,i)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:o,parent:s}=e;i?i.nextSibling=o:s&&(s.firstChild=o),o?o.previousSibling=i:s&&(s.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];Te(Te(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,o){let s=e._parseTemplateNode.call(this,t,i,o);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=qi(e)||" ",Fi(this,i,o,"text","textContent",e),s=!0)}return s}static _parseTemplateNodeAttribute(t,i,o,s,r){let n=this._parseBindings(r,i);if(n){let e=s,r="property";_i.test(s)?r="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),r="attribute");let a=qi(n);return a&&"attribute"==r&&("class"==s&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(s)),t.setAttribute(s,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(s,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(s=qe(s)),Fi(this,i,o,r,s,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,o,s,r)}static _parseTemplateNestedTemplate(t,i,o){let s=e._parseTemplateNestedTemplate.call(this,t,i,o);const r=t.parentNode,n=o.templateInfo,a="dom-if"===r.localName;de&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(o=o.parentInfo).templateInfo=n,o.noted=!0,s=!1);let l=n.hostProps;if(ue&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),de||(o.parentInfo.noted=!0));else{let t="{";for(let e in l)Fi(this,i,o,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return s}static _parseBindings(t,e){let i,o=[],s=0;for(;null!==(i=$i.exec(t));){i.index>s&&o.push({literal:t.slice(s,i.index)});let r=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",c=-1;"{"==r&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let d=Gi(a),u=[];if(d){let{args:t,methodName:i}=d;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let o=e.dynamicFns;(o&&o[i]||d.static)&&(u.push(i),d.dynamicFn=!0)}else u.push(a);o.push({source:a,mode:r,negate:n,customEvent:l,signature:d,dependencies:u,event:h}),s=$i.lastIndex}if(s&&s<t.length){let e=t.substring(s);e&&o.push({literal:e})}return o.length?o:null}static _evaluateBinding(t,e,i,o,s,r){let n;return n=e.signature?ji(t,i,o,0,e.signature):i!=e.source?je(t,e.source):r&&De(i)?je(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Ji=[],Xi=fe((t=>{const e=ei(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof s?e:null}function o(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
|
|
969
|
+
*/let fi=0;const bi=[],gi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},yi="__computeInfo",_i=/[A-Z]/;function wi(t,e,i){let o=t[e];if(o){if(!t.hasOwnProperty(e)&&(o=t[e]=Object.create(t[e]),i))for(let t in o){let e=o[t],i=o[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else o=t[e]={};return o}function xi(t,e,i,o,s,r){if(e){let n=!1;const a=fi++;for(let l in i){let h=e[s?Fe(l):l];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)(!e.info||e.info.lastRun!==a)&&(!s||Ci(l,e.trigger))&&(e.info&&(e.info.lastRun=a),e.fn(t,l,i,o,e.info,s,r),n=!0)}return n}return!1}function ki(t,e,i,o,s,r,n,a){let l=!1,h=e[n?Fe(o):o];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)(!e.info||e.info.lastRun!==i)&&(!n||Ci(o,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,o,s,r,e.info,n,a),l=!0);return l}function Ci(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Oe(i,t))||!(!e.wildcard||!Ne(i,t))}return!0}function Ai(t,e,i,o,s){let r="string"==typeof s.method?t[s.method]:s.method,n=s.property;r?r.call(t,t.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Ei(t,e,i){let o=Fe(e);return o!==e&&(zi(t,Ge(o)+"-changed",i[e],e),!0)}function zi(t,e,i,o){let s={value:i,queueProperty:!0};o&&(s.path=o),Te(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function Si(t,e,i,o,s,r){let n=(r?Fe(e):e)!=e?e:null,a=n?Me(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),zi(t,s.eventName,a,n)}function Ii(t,e,i,o,s){let r=t.__data[e];oe&&(r=oe(r,s.attrName,"attribute",t)),t._propertyToAttribute(e,s.attrName,r)}const Pi=(t,e,i)=>{let o=0,s=e.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)o=n+1;else{if(!(a>0)){r=n;break}s=n-1}}r<0&&(r=s+1),e.splice(r,0,t)},Ti=(t,e,i,o,s)=>{const r=e[s?Fe(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun!==fi&&(!s||Ci(t,n.trigger))&&(n.info.lastRun=fi,Pi(n.info,i,o))}};function Di(t,e,i,o,s){let r=Mi(t,e,i,0,s);if(r===bi)return!1;let n=s.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function Fi(t,e,i,o,s,r,n){i.bindings=i.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return!!t.target&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Ge(s)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let o=a.parts[i];o.compoundIndex=i,Oi(t,e,a,o,l)}}function Oi(t,e,i,o,s){if(!o.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:s,binding:i,part:o,evaluator:t};for(let i=0;i<r.length;i++){let o=r[i];"string"==typeof o&&(o=Hi(o),o.wildcard=!0),t._addTemplatePropertyEffect(e,o.rootProperty,{fn:Ni,info:n,trigger:o})}}}function Ni(t,e,i,o,s,r,n){let a=n[s.index],l=s.binding,h=s.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let o=i[e];e=Be(h.source,l.target,e),a._setPendingPropertyOrPath(e,o,!1,!0)&&t._enqueueClient(a)}else{let n=s.evaluator._evaluateBinding(t,h,e,i,o,r);n!==bi&&function(t,e,i,o,s){if(s=function(t,e,i,o){if(i.isCompound){let s=t.__dataCompoundStorage[i.target];s[o.compoundIndex]=e,e=s.join("")}return"attribute"!==i.kind&&("textContent"===i.target||"value"===i.target&&("input"===t.localName||"textarea"===t.localName))&&(e=null==e?"":e),e}(e,s,i,o),oe&&(s=oe(s,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,s,i.target);else{let o=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[gi.READ_ONLY]||!e[gi.READ_ONLY][o])&&e._setPendingProperty(o,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,s)}}(t,a,l,h,n)}}function Bi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=e.parts,s=new Array(o.length);for(let t=0;t<o.length;t++)s[t]=o[t].literal;let r=e.target;i[r]=s,e.literal&&"property"==e.kind&&("className"===r&&(t=Te(t)),t[r]=e.literal)}}function ji(t,e,i){if(i.listenerEvent){let o=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,o,s){let r,n=t.detail,a=n&&n.path;a?(o=Be(i,o,a),r=n&&n.value):r=t.currentTarget[i],r=s?!r:r,(!e[gi.READ_ONLY]||!e[gi.READ_ONLY][o])&&e._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,o.source,o.negate)}))}}function Ui(t,e,i,o,s,r){let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let s,r=0;r<e.args.length&&(s=e.args[r]);r++)s.literal||t._addPropertyEffect(s.rootProperty,i,{fn:o,info:n,trigger:s});return r&&t._addPropertyEffect(e.methodName,i,{fn:o,info:n}),n}function Mi(t,e,i,o,s){let r=t._methodHost||t,n=r[s.methodName];if(n){let o=t._marshalArgs(s.args,e,i);return o===bi?bi:n.apply(r,o)}s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Li=[],Ri="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Vi="(?:("+Ri+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",qi=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ri+"\\s*(?:\\(\\s*(?:(?:"+Vi+"(?:,\\s*"+Vi+")*)?)\\)\\s*)?)(?:]]|}})","g");function $i(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Gi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Li};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Hi(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,",").split(","),t):t}return null}function Hi(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},o=e[0];switch("-"===o&&(o=e[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Fe(e),i.structured=De(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Wi(t,e,i){let o=Me(t,i);return void 0===o&&(o=e[i]),o}function Ki(t,e,i,o){const s={indexSplices:o};he&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(i+".splices",s),t.notifyPath(i+".length",e.length),he&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function Yi(t,e,i,o,s,r){Ki(t,e,i,[{index:o,addedCount:s,removed:r,object:e,type:"splice"}])}const Zi=fe((t=>{const e=vi(ri(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return gi}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ji.length){let t=Ji[Ji.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[gi.READ_ONLY];for(let i in t)(!e||!e[i])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==gi.READ_ONLY);let o=wi(this,e,!0)[t];o||(o=this[e][t]=[]),o.push(i)}_removePropertyEffect(t,e,i){let o=wi(this,e,!0)[t],s=o.indexOf(i);s>=0&&o.splice(s,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,gi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,gi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,gi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,gi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,o){if(o||Fe(Array.isArray(t)?t[0]:t)!==t){if(!o){let i=Me(this,t);if(!(t=Le(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let o=t.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Ne(r,e)?(s=Be(r,n,e),t._setPendingPropertyOrPath(s,i,!0,!0)):Ne(n,e)&&(s=Be(n,r,e),t._setPendingPropertyOrPath(s,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){(i!==t[e]||"object"==typeof i)&&("className"===e&&(t=Te(t)),t[e]=i)}_setPendingProperty(t,e,i){let o=this.__dataHasPaths&&De(t);return!!this._shouldPropertyChange(t,e,(o?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),o?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(o||this[gi.NOTIFY]&&this[gi.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)(e||!this[gi.READ_ONLY]||!this[gi.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let o,s=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,o){let s=t[gi.COMPUTE];if(s)if(ce){fi++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[gi.COMPUTE];let o,{counts:s,ready:r,total:n}=function(t){const e=t[yi],i={},o=t[gi.COMPUTE],s=[];let r=0;for(let t in e){const o=e[t];r+=i[t]=o.args.filter((t=>!t.literal)).length+(o.dynamicFn?1:0)}for(let t in o)e[t]||s.push(t);return{counts:i,ready:s,total:r}}(t);for(;o=r.shift();){e.set(o,e.size);const t=i[o];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--s[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)Ti(t,s,n,r,o);let a;for(;a=n.shift();)Di(t,"",e,0,a)&&Ti(a.methodInfo,s,n,r,o);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;xi(t,s,r,i,o);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,s),o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,s),this._flushClients(),xi(this,this[gi.REFLECT],e,i,s),xi(this,this[gi.OBSERVE],e,i,s),o&&function(t,e,i,o,s){let r,n,a=t[gi.NOTIFY],l=fi++;for(let n in e)e[n]&&(a&&ki(t,a,l,n,i,o,s)||s&&Ei(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,o,e,i,s),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[gi.PROPAGATE]&&xi(this,this[gi.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,o){const s=(e,o)=>{xi(this,t.propertyEffects,e,i,o,t.nodeList);for(let s=t.firstChild;s;s=s.nextSibling)this._runEffectsForTemplate(s,e,i,o)};t.runEffects?t.runEffects(s,e,o):s(e,o)}linkPaths(t,e){t=je(t),e=je(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=je(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Ki(this,Me(this,t,i),i.path,e)}get(t,e){return Me(e||this,t)}set(t,e,i){i?Le(i,t,e):(!this[gi.READ_ONLY]||!this[gi.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},o=Me(this,t,i),s=o.length,r=o.push(...e);return e.length&&Yi(this,o,i.path,s,e.length,[]),r}pop(t){let e={path:""},i=Me(this,t,e),o=!!i.length,s=i.pop();return o&&Yi(this,i,e.path,i.length,0,[s]),s}splice(t,e,i,...o){let s,r={path:""},n=Me(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),s=2===arguments.length?n.splice(e):n.splice(e,i,...o),(o.length||s.length)&&Yi(this,n,r.path,e,o.length,s),s}shift(t){let e={path:""},i=Me(this,t,e),o=!!i.length,s=i.shift();return o&&Yi(this,i,e.path,0,0,[s]),s}unshift(t,...e){let i={path:""},o=Me(this,t,i),s=o.unshift(...e);return e.length&&Yi(this,o,i.path,0,e.length,[]),s}notifyPath(t,e){let i;if(1==arguments.length){let o={path:""};e=Me(this,t,o),i=o.path}else i=Array.isArray(t)?je(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,gi.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let o={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,gi.OBSERVE,{fn:Ai,info:o,trigger:{name:t}}),i&&this._addPropertyEffect(e,gi.OBSERVE,{fn:Ai,info:o,trigger:{name:e}})}_createMethodObserver(t,e){let i=Gi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Ui(this,i,gi.OBSERVE,Mi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,gi.NOTIFY,{fn:Si,info:{eventName:Ge(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,gi.REFLECT,{fn:Ii,info:{attrName:e}})}_createComputedProperty(t,e,i){let o=Gi(e);if(!o)throw new Error("Malformed computed expression '"+e+"'");const s=Ui(this,o,gi.COMPUTE,Di,t,i);wi(this,yi)[t]=s}_marshalArgs(t,e,i){const o=this.__data,s=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[r];if(!c)if(l){const t=Ne(n,e),s=Wi(o,i,t?e:n);h={path:t?e:n,value:s,base:t?Me(o,n):s}}else h=a?Wi(o,i,n):o[n];if(he&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return bi;s[r]=h}return s}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),o=this.__preBoundTemplateInfo==i;if(!o)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=o,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,o=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=o,o?o.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let o=t.propertyEffects=t.propertyEffects||{};(o[e]=o[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ji.push(this);let i=super._stampTemplate(t,e);if(Ji.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){let s=i[e],r=o[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];Bi(s,i),ji(s,t,i)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:o,parent:s}=e;i?i.nextSibling=o:s&&(s.firstChild=o),o?o.previousSibling=i:s&&(s.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];Te(Te(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,o){let s=e._parseTemplateNode.call(this,t,i,o);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=$i(e)||" ",Fi(this,i,o,"text","textContent",e),s=!0)}return s}static _parseTemplateNodeAttribute(t,i,o,s,r){let n=this._parseBindings(r,i);if(n){let e=s,r="property";_i.test(s)?r="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),r="attribute");let a=$i(n);return a&&"attribute"==r&&("class"==s&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(s)),t.setAttribute(s,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(s,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(s=$e(s)),Fi(this,i,o,r,s,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,o,s,r)}static _parseTemplateNestedTemplate(t,i,o){let s=e._parseTemplateNestedTemplate.call(this,t,i,o);const r=t.parentNode,n=o.templateInfo,a="dom-if"===r.localName;de&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(o=o.parentInfo).templateInfo=n,o.noted=!0,s=!1);let l=n.hostProps;if(ue&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),de||(o.parentInfo.noted=!0));else{let t="{";for(let e in l)Fi(this,i,o,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return s}static _parseBindings(t,e){let i,o=[],s=0;for(;null!==(i=qi.exec(t));){i.index>s&&o.push({literal:t.slice(s,i.index)});let r=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",c=-1;"{"==r&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let d=Gi(a),u=[];if(d){let{args:t,methodName:i}=d;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let o=e.dynamicFns;(o&&o[i]||d.static)&&(u.push(i),d.dynamicFn=!0)}else u.push(a);o.push({source:a,mode:r,negate:n,customEvent:l,signature:d,dependencies:u,event:h}),s=qi.lastIndex}if(s&&s<t.length){let e=t.substring(s);e&&o.push({literal:e})}return o.length?o:null}static _evaluateBinding(t,e,i,o,s,r){let n;return n=e.signature?Mi(t,i,o,0,e.signature):i!=e.source?Me(t,e.source):r&&De(i)?Me(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Ji=[],Xi=fe((t=>{const e=ei(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof s?e:null}function o(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
|
|
970
970
|
/**
|
|
971
971
|
@license
|
|
972
972
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1518,17 +1518,17 @@ class Bo{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this.
|
|
|
1518
1518
|
* @license
|
|
1519
1519
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1520
1520
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1521
|
-
*/let
|
|
1521
|
+
*/let jo=0;function Uo(){return jo++}
|
|
1522
1522
|
/**
|
|
1523
1523
|
* @license
|
|
1524
1524
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1525
1525
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1526
|
-
*/class
|
|
1526
|
+
*/class Mo extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Uo()}`}constructor(t,e,i,o={}){super();const{initializer:s,multiple:r,observe:n,useUniqueId:a,uniqueIdPrefix:l}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=s,r&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(""!==e&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new Bo(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],o=t.filter((t=>{return!((e=t).nodeType===Node.TEXT_NODE&&""===e.textContent.trim()||i.includes(t));var e}));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...o].filter((t=>t!==this.defaultNode)),o.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))}))}}
|
|
1527
1527
|
/**
|
|
1528
1528
|
* @license
|
|
1529
1529
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1530
1530
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1531
|
-
*/class Lo extends
|
|
1531
|
+
*/class Lo extends Mo{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
|
|
1532
1532
|
/**
|
|
1533
1533
|
@license
|
|
1534
1534
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1537,7 +1537,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1537
1537
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1538
1538
|
Code distributed by Google as part of the polymer project is also
|
|
1539
1539
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1540
|
-
*/const Ro=t=>t,Vo="string"==typeof document.head.style.touchAction
|
|
1540
|
+
*/const Ro=t=>t,Vo="string"==typeof document.head.style.touchAction,qo="__polymerGestures",$o="__polymerGesturesHandled",Go="__polymerGesturesTouchAction",Ho=["mousedown","mousemove","mouseup","click"],Wo=[0,1,4,2],Ko=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Yo(t){return Ho.indexOf(t)>-1}!function(){try{const t=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Zo=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Jo={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Xo(t){const e=t.type;if(!Yo(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ko&&(e=Wo[t.which]||0),!!(1&e)}return 0===(void 0===t.button?0:t.button)}const Qo={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ts(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function es(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const is=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],os={},ss=[];function rs(t){const e=is(t);return e.length>0?e[0]:t.target}function ns(t){const e=t.type,i=t.currentTarget[qo];if(!i)return;const o=i[e];if(!o)return;if(!t[$o]&&(t[$o]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Qo.touch.id=i.identifier),Qo.touch.id!==i.identifier)return;Vo||("touchstart"===e||"touchmove"===e)&&function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)Qo.touch.x=e.clientX,Qo.touch.y=e.clientY,Qo.touch.scrollDecided=!1;else if("touchmove"===i){if(Qo.touch.scrollDecided)return;Qo.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=is(t);for(let t,o=0;o<i.length;o++)if(t=i[o],t[Go]){e=t[Go];break}return e}(t);let o=!1;const s=Math.abs(Qo.touch.x-e.clientX),r=Math.abs(Qo.touch.y-e.clientY);t.cancelable&&("none"===i?o=!0:"pan-x"===i?o=r>s:"pan-y"===i&&(o=s>r)),o?t.preventDefault():ds("track")}}(t)}const s=t[$o];if(!s.skip){for(let e,i=0;i<ss.length;i++)e=ss[i],o[e.name]&&!s[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,r=0;r<ss.length;r++)i=ss[r],o[i.name]&&!s[i.name]&&(s[i.name]=!0,i[e](t))}}function as(t,e,i){return!!os[e]&&(function(t,e,i){const o=os[e],s=o.deps,r=o.name;let n=t[qo];n||(t[qo]=n={});for(let e,i,o=0;o<s.length;o++)e=s[o],(!Zo||!Yo(e)||"click"===e)&&(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,ns,void 0),i[r]=(i[r]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),o.touchAction&&hs(t,o.touchAction)}(t,e,i),!0)}function ls(t){ss.push(t),t.emits.forEach((e=>{os[e]=t}))}function hs(t,e){Vo&&t instanceof HTMLElement&&yo.run((()=>{t.style.touchAction=e})),t[Go]=e}function cs(t,e,i){const o=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=i,Ro(t).dispatchEvent(o),o.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function ds(t){const e=function(t){for(let e,i=0;i<ss.length;i++){e=ss[i];for(let i,o=0;o<e.emits.length;o++)if(i=e.emits[o],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function us(t,e,i,o){e&&cs(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:o,prevent:t=>ds(t)})}function ps(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const o=Math.abs(t.x-e),s=Math.abs(t.y-i);return o>=5||s>=5}function ms(t,e,i){if(!e)return;const o=t.moves[t.moves.length-2],s=t.moves[t.moves.length-1];let r,n=0;o&&(r=s.x-o.x,n=s.y-o.y),cs(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:s.x-t.x,dy:s.y-t.y,ddx:r,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),o=i;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(t,e),s===o)break;o&&(i=o)}return i}(i.clientX,i.clientY)})}function vs(t,e,i){const o=Math.abs(e.clientX-t.x),s=Math.abs(e.clientY-t.y),r=rs(i||e);!r||Jo[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=25&&s<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=rs(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),o=t.pageX,s=t.pageY;return!(o>=i.left&&o<=i.right&&s>=i.top&&s<=i.bottom)}return!1}(e))&&(t.prevent||cs(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
|
|
1541
1541
|
/**
|
|
1542
1542
|
* @license
|
|
1543
1543
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1568,13 +1568,13 @@ const Is=fe((t=>class extends t{get _keyboardActive(){return ws()}ready(){this.a
|
|
|
1568
1568
|
* @license
|
|
1569
1569
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1570
1570
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1571
|
-
*/function Bs(t){return Ns.has(t)||Ns.set(t,new WeakMap),Ns.get(t)}function
|
|
1571
|
+
*/function Bs(t){return Ns.has(t)||Ns.set(t,new WeakMap),Ns.get(t)}function js(t,e){t&&t.removeAttribute(e)}function Us(t,e){if(!t||!e)return;const i=Bs(e);if(i.has(t))return;const o=Fo(t.getAttribute(e));i.set(t,new Set(o))}function Ms(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:o,oldId:s,fromUser:r}=i,n=Bs(e),a=n.get(t);if(!r&&a)return s&&a.delete(s),void(o&&a.add(o));r&&(a?o||n.delete(t):Us(t,e),js(t,e)),function(t,e,i){const o=Fo(t.getAttribute(e));o.delete(i),0!==o.size?t.setAttribute(e,Oo(o)):t.removeAttribute(e)}(t,e,s);const l=o||Oo(a);l&&No(t,e,l)}
|
|
1572
1572
|
/**
|
|
1573
1573
|
* @license
|
|
1574
1574
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1575
1575
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1576
1576
|
*/
|
|
1577
|
-
class Ls{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){
|
|
1577
|
+
class Ls{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(function(t,e){Us(t,e),js(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Bs(e),o=i.get(t);o&&0!==o.size?No(t,e,Oo(o)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ms(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ms(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ms(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
|
|
1578
1578
|
/**
|
|
1579
1579
|
* @license
|
|
1580
1580
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1584,17 +1584,17 @@ class Ls{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
|
|
|
1584
1584
|
* @license
|
|
1585
1585
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1586
1586
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1587
|
-
*/let
|
|
1587
|
+
*/let qs;function $s(t,e={}){const i=e.mode||"polite",o=void 0===e.timeout?150:e.timeout;"alert"===i?(Vs.removeAttribute("aria-live"),Vs.removeAttribute("role"),qs=wo.debounce(qs,bo,(()=>{Vs.setAttribute("role","alert")}))):(qs&&qs.cancel(),Vs.removeAttribute("role"),Vs.setAttribute("aria-live",i)),Vs.textContent="",setTimeout((()=>{Vs.textContent=t}),o)}
|
|
1588
1588
|
/**
|
|
1589
1589
|
* @license
|
|
1590
1590
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1591
1591
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1592
|
-
*/Vs.style.position="fixed",Vs.style.clip="rect(0px, 0px, 0px, 0px)",Vs.setAttribute("aria-live","polite"),document.body.appendChild(Vs);class Gs extends
|
|
1592
|
+
*/Vs.style.position="fixed",Vs.style.clip="rect(0px, 0px, 0px, 0px)",Vs.setAttribute("aria-live","polite"),document.body.appendChild(Vs);class Gs extends Mo{constructor(t,e,i,o={}){super(t,e,i,v(m({},o),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||!this.nodes||t===this.nodes[0])&&!t.id&&(t.id=this.defaultId)}}
|
|
1593
1593
|
/**
|
|
1594
1594
|
* @license
|
|
1595
1595
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1596
1596
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1597
|
-
*/class Hs extends Gs{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!(!i||!e||""===e.trim());t&&(t.textContent=o?e:"",t.hidden=!o,o
|
|
1597
|
+
*/class Hs extends Gs{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!(!i||!e||""===e.trim());t&&(t.textContent=o?e:"",t.hidden=!o,o&&$s(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
|
|
1598
1598
|
/**
|
|
1599
1599
|
* @license
|
|
1600
1600
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1619,7 +1619,7 @@ class Ls{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
|
|
|
1619
1619
|
* @license
|
|
1620
1620
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1621
1621
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1622
|
-
*/class Xs extends
|
|
1622
|
+
*/class Xs extends Mo{constructor(t,e,i={}){const{uniqueIdPrefix:o}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:o})}}
|
|
1623
1623
|
/**
|
|
1624
1624
|
* @license
|
|
1625
1625
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1640,7 +1640,7 @@ class Ls{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
|
|
|
1640
1640
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1641
1641
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1642
1642
|
*/
|
|
1643
|
-
|
|
1643
|
+
Mt("vaadin-checkbox",A`
|
|
1644
1644
|
:host {
|
|
1645
1645
|
display: inline-block;
|
|
1646
1646
|
}
|
|
@@ -1728,7 +1728,7 @@ jt("vaadin-checkbox",A`
|
|
|
1728
1728
|
outline-width: 2px;
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
|
-
`,{moduleId:"vaadin-checkbox-styles"});class er extends(tr(To(
|
|
1731
|
+
`,{moduleId:"vaadin-checkbox-styles"});class er extends(tr(To($t(no)))){static get is(){return"vaadin-checkbox"}static get template(){return so`
|
|
1732
1732
|
<div class="vaadin-checkbox-container">
|
|
1733
1733
|
<div part="checkbox" aria-hidden="true"></div>
|
|
1734
1734
|
<slot name="input"></slot>
|
|
@@ -1923,7 +1923,7 @@ const ir=A`
|
|
|
1923
1923
|
margin-left: 0;
|
|
1924
1924
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1925
1925
|
}
|
|
1926
|
-
`;
|
|
1926
|
+
`;Mt("",or,{moduleId:"lumo-required-field"}),Mt("vaadin-checkbox-group",[or,ir,A`
|
|
1927
1927
|
:host {
|
|
1928
1928
|
color: var(--lumo-body-text-color);
|
|
1929
1929
|
font-size: var(--lumo-font-size-m);
|
|
@@ -1983,7 +1983,7 @@ const sr=t=>class extends(Js(Is(fs(t)))){static get properties(){return{value:{t
|
|
|
1983
1983
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
1984
1984
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1985
1985
|
*/
|
|
1986
|
-
|
|
1986
|
+
Mt("vaadin-checkbox-group",A`
|
|
1987
1987
|
:host {
|
|
1988
1988
|
display: inline-flex;
|
|
1989
1989
|
}
|
|
@@ -2012,7 +2012,7 @@ jt("vaadin-checkbox-group",A`
|
|
|
2012
2012
|
:host(:not([has-label])) [part='label'] {
|
|
2013
2013
|
display: none;
|
|
2014
2014
|
}
|
|
2015
|
-
`,{moduleId:"vaadin-checkbox-group-styles"});class rr extends(sr(To(
|
|
2015
|
+
`,{moduleId:"vaadin-checkbox-group-styles"});class rr extends(sr(To($t(no)))){static get is(){return"vaadin-checkbox-group"}static get template(){return so`
|
|
2016
2016
|
<div class="vaadin-group-field-container">
|
|
2017
2017
|
<div part="label">
|
|
2018
2018
|
<slot name="label"></slot>
|
|
@@ -2104,7 +2104,7 @@ const nr=A`
|
|
|
2104
2104
|
opacity: 1;
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
|
-
`;
|
|
2107
|
+
`;Mt("",nr,{moduleId:"lumo-overlay"});
|
|
2108
2108
|
/**
|
|
2109
2109
|
* @license
|
|
2110
2110
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -2140,7 +2140,7 @@ const ar=A`
|
|
|
2140
2140
|
opacity: 0;
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
|
-
`;
|
|
2143
|
+
`;Mt("",ar,{moduleId:"lumo-menu-overlay-core"});const lr=[nr,ar,A`
|
|
2144
2144
|
/* Small viewport (bottom sheet) styles */
|
|
2145
2145
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2146
2146
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -2202,7 +2202,7 @@ const ar=A`
|
|
|
2202
2202
|
transform: translateY(150%);
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
`];
|
|
2205
|
+
`];Mt("",lr,{moduleId:"lumo-menu-overlay"}),Mt("vaadin-date-picker-overlay",[lr,A`
|
|
2206
2206
|
[part='overlay'] {
|
|
2207
2207
|
/*
|
|
2208
2208
|
Width:
|
|
@@ -2523,7 +2523,7 @@ const ar=A`
|
|
|
2523
2523
|
margin-left: 0;
|
|
2524
2524
|
margin-right: 0;
|
|
2525
2525
|
}
|
|
2526
|
-
`;
|
|
2526
|
+
`;Mt("vaadin-button",hr,{moduleId:"lumo-button"}),Mt("vaadin-date-picker-year",A`
|
|
2527
2527
|
:host([current]) [part='year-number'] {
|
|
2528
2528
|
color: var(--lumo-primary-text-color);
|
|
2529
2529
|
}
|
|
@@ -2547,7 +2547,7 @@ const ar=A`
|
|
|
2547
2547
|
color: var(--lumo-disabled-text-color);
|
|
2548
2548
|
content: '\\2022';
|
|
2549
2549
|
}
|
|
2550
|
-
`,{moduleId:"lumo-date-picker-year"}),
|
|
2550
|
+
`,{moduleId:"lumo-date-picker-year"}),Mt("vaadin-date-picker-overlay-content",A`
|
|
2551
2551
|
:host {
|
|
2552
2552
|
position: relative;
|
|
2553
2553
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2697,7 +2697,7 @@ const ar=A`
|
|
|
2697
2697
|
padding-left: 50px;
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
|
-
`,{moduleId:"lumo-date-picker-overlay-content"}),
|
|
2700
|
+
`,{moduleId:"lumo-date-picker-overlay-content"}),Mt("vaadin-month-calendar",A`
|
|
2701
2701
|
:host {
|
|
2702
2702
|
-moz-user-select: none;
|
|
2703
2703
|
-webkit-user-select: none;
|
|
@@ -2844,7 +2844,7 @@ const ar=A`
|
|
|
2844
2844
|
:host([disabled]) * {
|
|
2845
2845
|
color: var(--lumo-disabled-text-color) !important;
|
|
2846
2846
|
}
|
|
2847
|
-
`,{moduleId:"lumo-month-calendar"}),
|
|
2847
|
+
`,{moduleId:"lumo-month-calendar"}),Mt("vaadin-input-container",A`
|
|
2848
2848
|
:host {
|
|
2849
2849
|
background: var(--_background);
|
|
2850
2850
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -3055,7 +3055,7 @@ const cr=A`
|
|
|
3055
3055
|
font-family: 'lumo-icons';
|
|
3056
3056
|
display: block;
|
|
3057
3057
|
}
|
|
3058
|
-
`;
|
|
3058
|
+
`;Mt("",cr,{moduleId:"lumo-field-button"});
|
|
3059
3059
|
/**
|
|
3060
3060
|
* @license
|
|
3061
3061
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -3192,7 +3192,7 @@ const dr=[or,cr,ir,A`
|
|
|
3192
3192
|
[part='clear-button']::before {
|
|
3193
3193
|
content: var(--lumo-icons-cross);
|
|
3194
3194
|
}
|
|
3195
|
-
`];
|
|
3195
|
+
`];Mt("",dr,{moduleId:"lumo-input-field-shared-styles"}),Mt("vaadin-date-picker",[dr,A`
|
|
3196
3196
|
[part='toggle-button']::before {
|
|
3197
3197
|
content: var(--lumo-icons-calendar);
|
|
3198
3198
|
}
|
|
@@ -3231,7 +3231,7 @@ const ur=t=>class extends t{static get properties(){return{disabled:{type:Boolea
|
|
|
3231
3231
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3232
3232
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3233
3233
|
*/
|
|
3234
|
-
|
|
3234
|
+
Mt("vaadin-input-container",A`
|
|
3235
3235
|
:host {
|
|
3236
3236
|
display: flex;
|
|
3237
3237
|
align-items: center;
|
|
@@ -3296,7 +3296,7 @@ jt("vaadin-input-container",A`
|
|
|
3296
3296
|
/* Override default opacity in Firefox */
|
|
3297
3297
|
opacity: 1;
|
|
3298
3298
|
}
|
|
3299
|
-
`,{moduleId:"vaadin-input-container-styles"});class pr extends(ur(
|
|
3299
|
+
`,{moduleId:"vaadin-input-container-styles"});class pr extends(ur($t(So(no)))){static get is(){return"vaadin-input-container"}static get template(){return so`
|
|
3300
3300
|
<slot name="prefix"></slot>
|
|
3301
3301
|
<slot></slot>
|
|
3302
3302
|
<slot name="suffix"></slot>
|
|
@@ -3404,27 +3404,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3404
3404
|
* @license
|
|
3405
3405
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3406
3406
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3407
|
-
*/const
|
|
3407
|
+
*/const jr=t=>class extends(Rs(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Fr(this),this.__focusTrapController=new Br(this),this.__focusRestorationController=new Or}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!ws();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=_s();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
|
|
3408
3408
|
/**
|
|
3409
3409
|
* @license
|
|
3410
3410
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3411
3411
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3412
|
-
*/,
|
|
3412
|
+
*/,Ur=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Mr=()=>Ur().filter((t=>t.$.overlay)),Lr=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Mr().pop())()}bringToFront(){let t="";const e=Ur().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Mr().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Mr();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
|
|
3413
3413
|
/**
|
|
3414
3414
|
* @license
|
|
3415
3415
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3416
3416
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3417
|
-
*/,Rr=t=>class extends(
|
|
3417
|
+
*/,Rr=t=>class extends(jr(Lr(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),kr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,o){const s=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const r=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==o;this._oldOpened=o,r&&n&&(this.innerHTML="",delete this._$litPart$),o&&t&&(r||a||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),yr(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,o=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
|
|
3418
3418
|
/**
|
|
3419
3419
|
* @license
|
|
3420
3420
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
3421
3421
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3422
|
-
*/,Vr={start:"top",end:"bottom"}
|
|
3422
|
+
*/,Vr={start:"top",end:"bottom"},qr={start:"left",end:"right"},$r=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Gr=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i=null;const o=document.documentElement;function s(){i&&i.disconnect(),i=null}return function r(n=!1,a=1){s();const{left:l,top:h,width:c,height:d}=t.getBoundingClientRect();if(n||e(),!c||!d)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(o.clientWidth-(l+c))}px ${-Math.floor(o.clientHeight-(h+d))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let p=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!p)return r();0===e&&(e=1e-7),r(!1,e)}p=!1}),u),i.observe(t)}(!0),s}
|
|
3423
3423
|
/**
|
|
3424
3424
|
* @license
|
|
3425
3425
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3426
3426
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3427
|
-
*/(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null
|
|
3427
|
+
*/(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,$r.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,$r.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Vr,this,e),a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,qr,this,o);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,o,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,qr)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Vr)}__shouldAlignStart(t,e,i,o,s,r,n){const a=i-t[r?n.end:n.start]-o[n.end],l=t[r?n.start:n.end]-o[n.start],h=s?a:l;return s===(h>(s?l:a)||h>e)}__adjustBottomProperty(t,e,i){let o;if(t===e.end){if(e.end===Vr.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(o=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===qr.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(o=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return o}__calculatePositionInOneDimension(t,e,i,o,s,r){const n=r?o.start:o.end,a=r?o.end:o.start,l=parseFloat(s.style[n]||getComputedStyle(s)[n]),h=this.__adjustBottomProperty(n,o,l),c=h?`${h}px`:`${l+(e[r?o.start:o.end]-t[i===r?o.end:o.start])*(r?-1:1)}px`;return{[n]:c,[a]:""}}}
|
|
3428
3428
|
/**
|
|
3429
3429
|
* @license
|
|
3430
3430
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
@@ -3440,7 +3440,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3440
3440
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3441
3441
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3442
3442
|
*/
|
|
3443
|
-
|
|
3443
|
+
Mt("vaadin-date-picker-overlay",[mr,A`
|
|
3444
3444
|
[part='overlay'] {
|
|
3445
3445
|
display: flex;
|
|
3446
3446
|
flex: auto;
|
|
@@ -3455,7 +3455,7 @@ jt("vaadin-date-picker-overlay",[mr,A`
|
|
|
3455
3455
|
outline: 3px solid;
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
|
-
`],{moduleId:"vaadin-date-picker-overlay-styles"});class Wr extends(Hr(So(
|
|
3458
|
+
`],{moduleId:"vaadin-date-picker-overlay-styles"});class Wr extends(Hr(So($t(no)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return so`
|
|
3459
3459
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3460
3460
|
<div part="overlay" id="overlay">
|
|
3461
3461
|
<div part="content" id="content">
|
|
@@ -3538,7 +3538,7 @@ const Kr=A`
|
|
|
3538
3538
|
* @license
|
|
3539
3539
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3540
3540
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3541
|
-
*/
|
|
3541
|
+
*/Mt("vaadin-button",Kr,{moduleId:"vaadin-button-styles"});class Zr extends(Yr(To($t(Rs(no))))){static get is(){return"vaadin-button"}static get template(){return so`
|
|
3542
3542
|
<div class="vaadin-button-container">
|
|
3543
3543
|
<span part="prefix" aria-hidden="true">
|
|
3544
3544
|
<slot name="prefix"></slot>
|
|
@@ -3570,7 +3570,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3570
3570
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3571
3571
|
Code distributed by Google as part of the polymer project is also
|
|
3572
3572
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3573
|
-
*/},ln=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=an()}while(t||e)},hn=document.createElement("template");hn.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class cn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(hn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ln()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=wo.debounce(this._debouncerScrollFinish,fo.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=wo.debounce(this._debouncerUpdateClones,fo.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${
|
|
3573
|
+
*/},ln=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=an()}while(t||e)},hn=document.createElement("template");hn.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class cn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(hn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),ln()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=wo.debounce(this._debouncerScrollFinish,fo.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=wo.debounce(this._debouncerUpdateClones,fo.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${Uo()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,e.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,o)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*o;[...i.children].forEach(((i,o)=>{const r=i._itemWrapper;(!t||this._isVisible(r,e))&&this._updateElement(r.instance,s+o)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
|
|
3574
3574
|
/**
|
|
3575
3575
|
* @license
|
|
3576
3576
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
@@ -3592,7 +3592,7 @@ const pn=t=>class extends t{static get properties(){return{year:{type:String,syn
|
|
|
3592
3592
|
* @license
|
|
3593
3593
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3594
3594
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3595
|
-
*/;class mn extends(
|
|
3595
|
+
*/;class mn extends($t(pn(no))){static get is(){return"vaadin-date-picker-year"}static get template(){return so`
|
|
3596
3596
|
<style>
|
|
3597
3597
|
:host {
|
|
3598
3598
|
display: block;
|
|
@@ -3663,7 +3663,7 @@ const Dn=t=>class extends(Is(t)){static get properties(){return{month:{type:Obje
|
|
|
3663
3663
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3664
3664
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3665
3665
|
*/
|
|
3666
|
-
|
|
3666
|
+
Mt("vaadin-month-calendar",A`
|
|
3667
3667
|
:host {
|
|
3668
3668
|
display: block;
|
|
3669
3669
|
}
|
|
@@ -3719,7 +3719,7 @@ jt("vaadin-month-calendar",A`
|
|
|
3719
3719
|
outline: 3px solid;
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
`,{moduleId:"vaadin-month-calendar-styles"});class Fn extends(Dn(
|
|
3722
|
+
`,{moduleId:"vaadin-month-calendar-styles"});class Fn extends(Dn($t(no))){static get template(){return so`
|
|
3723
3723
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3724
3724
|
<table
|
|
3725
3725
|
id="monthGrid"
|
|
@@ -3772,7 +3772,7 @@ class On{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3772
3772
|
* @license
|
|
3773
3773
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3774
3774
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3775
|
-
*/const Nn=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){hs(this.$.scrollers,"pan-y"),as(this.$.scrollers,"track",this._track.bind(this)),as(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),as(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),as(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new On(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new jo(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),as(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new jo(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),as(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new jo(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new jo(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),as(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,o,s){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,e,i,o,s,r,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=o,t.isDateDisabled=h,t.focusedDate=r,t.selectedDate=s,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const o=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+o,e)}const o=this._monthScroller.position>i,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,r=this._monthScroller.position+s-1<i;o?this._scrollToPosition(i,e):r&&this._scrollToPosition(i-s+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=wo.debounce(this._debouncer,fo.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(Qr(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let o=0;const s=this._monthScroller.position,r=t=>{o||(o=t);const e=t-o;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,s,this._targetPosition-s);this._monthScroller.position=t,window.requestAnimationFrame(r)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(r)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return on(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Xr(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Xr(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return b(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return b(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{yr(this,(()=>{ln(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(en(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,o=this.isDateDisabled){return tn(t,e,i,o)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
|
|
3775
|
+
*/const Nn=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){hs(this.$.scrollers,"pan-y"),as(this.$.scrollers,"track",this._track.bind(this)),as(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),as(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),as(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new On(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new Mo(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),as(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Mo(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),as(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Mo(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Mo(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),as(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,o,s){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,e,i,o,s,r,n,a,l,h){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=o,t.isDateDisabled=h,t.focusedDate=r,t.selectedDate=s,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){return!!this._dateAllowed(t)&&(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const o=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+o,e)}const o=this._monthScroller.position>i,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,r=this._monthScroller.position+s-1<i;o?this._scrollToPosition(i,e):r&&this._scrollToPosition(i-s+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=wo.debounce(this._debouncer,fo.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(Qr(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let o=0;const s=this._monthScroller.position,r=t=>{o||(o=t);const e=t-o;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,s,this._targetPosition-s);this._monthScroller.position=t,window.requestAnimationFrame(r)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(r)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return on(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Xr(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),e=!0);break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Xr(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(t,e){return b(this,null,(function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(t=!0){return b(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((t=>{yr(this,(()=>{ln(),t()}))}))),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(t){this.focusDate(en(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t,void 0,void 0,(()=>!1))?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate,o=this.isDateDisabled){return tn(t,e,i,o)}_isTodayAllowed(t,e,i){return this._dateAllowed(this._getTodayMidnight(),t,e,i)}_getTodayMidnight(){const t=new Date,e=new Date(0,0);return e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(t.getDate()),e}}
|
|
3776
3776
|
/**
|
|
3777
3777
|
* @license
|
|
3778
3778
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
@@ -3783,7 +3783,7 @@ class On{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3783
3783
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3784
3784
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3785
3785
|
*/
|
|
3786
|
-
|
|
3786
|
+
Mt("vaadin-date-picker-overlay-content",A`
|
|
3787
3787
|
:host {
|
|
3788
3788
|
display: flex;
|
|
3789
3789
|
flex-direction: column;
|
|
@@ -3843,7 +3843,7 @@ jt("vaadin-date-picker-overlay-content",A`
|
|
|
3843
3843
|
z-index: 2;
|
|
3844
3844
|
flex-shrink: 0;
|
|
3845
3845
|
}
|
|
3846
|
-
`,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Bn extends(Nn(Rs(
|
|
3846
|
+
`,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Bn extends(Nn(Rs($t(So(no))))){static get template(){return so`
|
|
3847
3847
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3848
3848
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3849
3849
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3869,12 +3869,12 @@ jt("vaadin-date-picker-overlay-content",A`
|
|
|
3869
3869
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3870
3870
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3871
3871
|
*/
|
|
3872
|
-
const
|
|
3872
|
+
const jn=new WeakMap,Un=fe((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return jn.has(t)||jn.set(t,new Set),jn.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),Mn=t=>class extends(Fs(bs(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Ar||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
|
|
3873
3873
|
/**
|
|
3874
3874
|
* @license
|
|
3875
3875
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3876
3876
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3877
|
-
*/,Ln=fe((t=>class extends(Ds(Zs(Fs(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||0===t}})),Rn=t=>class extends(
|
|
3877
|
+
*/,Ln=fe((t=>class extends(Ds(Zs(Fs(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||0===t}})),Rn=t=>class extends(Un(Ts(Ln(Js(Mn(bs(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=wo.debounce(this._preventInputDebouncer,fo.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
|
|
3878
3878
|
/**
|
|
3879
3879
|
* @license
|
|
3880
3880
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
@@ -3918,7 +3918,7 @@ const Un=new WeakMap,Mn=fe((t=>class extends t{get slotStyles(){return{}}connect
|
|
|
3918
3918
|
* @license
|
|
3919
3919
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3920
3920
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3921
|
-
|
|
3921
|
+
*/,qn=A`
|
|
3922
3922
|
[class$='container'] {
|
|
3923
3923
|
display: flex;
|
|
3924
3924
|
flex-direction: column;
|
|
@@ -3931,7 +3931,7 @@ const Un=new WeakMap,Mn=fe((t=>class extends t{get slotStyles(){return{}}connect
|
|
|
3931
3931
|
* @license
|
|
3932
3932
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3933
3933
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3934
|
-
|
|
3934
|
+
*/,$n=[Vn,qn,A`
|
|
3935
3935
|
[part='clear-button'] {
|
|
3936
3936
|
display: none;
|
|
3937
3937
|
cursor: default;
|
|
@@ -3970,7 +3970,7 @@ const Un=new WeakMap,Mn=fe((t=>class extends t{get slotStyles(){return{}}connect
|
|
|
3970
3970
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3971
3971
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3972
3972
|
*/
|
|
3973
|
-
|
|
3973
|
+
Mt("vaadin-date-picker",[$n,A`
|
|
3974
3974
|
:host([opened]) {
|
|
3975
3975
|
pointer-events: auto;
|
|
3976
3976
|
}
|
|
@@ -3983,7 +3983,7 @@ jt("vaadin-date-picker",[qn,A`
|
|
|
3983
3983
|
direction: rtl;
|
|
3984
3984
|
text-align: left;
|
|
3985
3985
|
}
|
|
3986
|
-
`],{moduleId:"vaadin-date-picker-styles"});class Kn extends(Wn(Rn(
|
|
3986
|
+
`],{moduleId:"vaadin-date-picker-styles"});class Kn extends(Wn(Rn($t(To(no))))){static get is(){return"vaadin-date-picker"}static get template(){return so`
|
|
3987
3987
|
<div class="vaadin-date-picker-container">
|
|
3988
3988
|
<div part="label">
|
|
3989
3989
|
<slot name="label"></slot>
|
|
@@ -4031,7 +4031,7 @@ jt("vaadin-date-picker",[qn,A`
|
|
|
4031
4031
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4032
4032
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4033
4033
|
*/
|
|
4034
|
-
|
|
4034
|
+
Mt("vaadin-text-field",dr,{moduleId:"lumo-text-field-styles"});
|
|
4035
4035
|
/**
|
|
4036
4036
|
* @license
|
|
4037
4037
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -4047,7 +4047,7 @@ const Yn=t=>class extends(Rn(t)){static get properties(){return{autocomplete:{ty
|
|
|
4047
4047
|
* @license
|
|
4048
4048
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4049
4049
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4050
|
-
*/;
|
|
4050
|
+
*/;Mt("vaadin-text-field",$n,{moduleId:"vaadin-text-field-styles"});class Jn extends(Zn($t(To(no)))){static get is(){return"vaadin-text-field"}static get template(){return so`
|
|
4051
4051
|
<div class="vaadin-field-container">
|
|
4052
4052
|
<div part="label">
|
|
4053
4053
|
<slot name="label"></slot>
|
|
@@ -4076,7 +4076,7 @@ const Yn=t=>class extends(Rn(t)){static get properties(){return{autocomplete:{ty
|
|
|
4076
4076
|
</div>
|
|
4077
4077
|
</div>
|
|
4078
4078
|
<slot name="tooltip"></slot>
|
|
4079
|
-
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Lo(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}g(Jn),
|
|
4079
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Lo(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}g(Jn),Mt("vaadin-password-field-button",[hr,A`
|
|
4080
4080
|
:host {
|
|
4081
4081
|
position: absolute;
|
|
4082
4082
|
right: 0;
|
|
@@ -4089,7 +4089,7 @@ const Yn=t=>class extends(Rn(t)){static get properties(){return{autocomplete:{ty
|
|
|
4089
4089
|
background: transparent;
|
|
4090
4090
|
outline: none;
|
|
4091
4091
|
}
|
|
4092
|
-
`],{moduleId:"lumo-password-field-button"}),
|
|
4092
|
+
`],{moduleId:"lumo-password-field-button"}),Mt("vaadin-password-field",[dr,A`
|
|
4093
4093
|
[part='reveal-button']::before {
|
|
4094
4094
|
content: var(--lumo-icons-eye);
|
|
4095
4095
|
}
|
|
@@ -4113,13 +4113,13 @@ const Yn=t=>class extends(Rn(t)){static get properties(){return{autocomplete:{ty
|
|
|
4113
4113
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4114
4114
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4115
4115
|
*/
|
|
4116
|
-
|
|
4116
|
+
Mt("vaadin-password-field-button",Kr,{moduleId:"vaadin-password-field-button-styles"});class Xn extends(Yr(So($t(no)))){static get is(){return"vaadin-password-field-button"}static get template(){return so``}}g(Xn);
|
|
4117
4117
|
/**
|
|
4118
4118
|
* @license
|
|
4119
4119
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4120
4120
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4121
4121
|
*/
|
|
4122
|
-
const Qn=t=>class extends(
|
|
4122
|
+
const Qn=t=>class extends(Un(fs(Is(Fs(t))))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Mo(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t&&t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}}
|
|
4123
4123
|
/**
|
|
4124
4124
|
* @license
|
|
4125
4125
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -4212,7 +4212,7 @@ const Qn=t=>class extends(Mn(fs(Is(Fs(t))))){static get properties(){return{reve
|
|
|
4212
4212
|
width: var(--lumo-icon-size-m);
|
|
4213
4213
|
height: var(--lumo-icon-size-m);
|
|
4214
4214
|
}
|
|
4215
|
-
`;
|
|
4215
|
+
`;Mt("vaadin-item",oa,{moduleId:"lumo-item"});const sa=A`
|
|
4216
4216
|
:host {
|
|
4217
4217
|
transition: background-color 100ms;
|
|
4218
4218
|
overflow: hidden;
|
|
@@ -4224,7 +4224,7 @@ const Qn=t=>class extends(Mn(fs(Is(Fs(t))))){static get properties(){return{reve
|
|
|
4224
4224
|
:host([focused]:not([disabled])) {
|
|
4225
4225
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
4226
4226
|
}
|
|
4227
|
-
`;
|
|
4227
|
+
`;Mt("vaadin-combo-box-item",[oa,sa],{moduleId:"lumo-combo-box-item"});
|
|
4228
4228
|
/**
|
|
4229
4229
|
* @license
|
|
4230
4230
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
@@ -4301,12 +4301,12 @@ const ra=A`
|
|
|
4301
4301
|
top: var(--lumo-space-s);
|
|
4302
4302
|
margin-inline: auto 0;
|
|
4303
4303
|
}
|
|
4304
|
-
`;
|
|
4304
|
+
`;Mt("vaadin-combo-box-overlay",[nr,ar,na,ra,aa,A`
|
|
4305
4305
|
:host {
|
|
4306
4306
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4307
4307
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
4308
4308
|
}
|
|
4309
|
-
`],{moduleId:"lumo-combo-box-overlay"}),
|
|
4309
|
+
`],{moduleId:"lumo-combo-box-overlay"}),Mt("vaadin-combo-box",[dr,A`
|
|
4310
4310
|
[part='toggle-button']::before {
|
|
4311
4311
|
content: var(--lumo-icons-dropdown);
|
|
4312
4312
|
}
|
|
@@ -4321,7 +4321,7 @@ const la=t=>class extends t{static get properties(){return{index:{type:Number},i
|
|
|
4321
4321
|
* @license
|
|
4322
4322
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4323
4323
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4324
|
-
*/;class ha extends(la(
|
|
4324
|
+
*/;class ha extends(la($t(So(no)))){static get template(){return so`
|
|
4325
4325
|
<style>
|
|
4326
4326
|
:host {
|
|
4327
4327
|
display: block;
|
|
@@ -4346,7 +4346,7 @@ const ca=t=>class extends(Gr(t)){static get observers(){return["_setOverlayWidth
|
|
|
4346
4346
|
* @license
|
|
4347
4347
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4348
4348
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4349
|
-
*/;
|
|
4349
|
+
*/;Mt("vaadin-combo-box-overlay",[mr,A`
|
|
4350
4350
|
#overlay {
|
|
4351
4351
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
4352
4352
|
}
|
|
@@ -4356,7 +4356,7 @@ const ca=t=>class extends(Gr(t)){static get observers(){return["_setOverlayWidth
|
|
|
4356
4356
|
flex-direction: column;
|
|
4357
4357
|
height: 100%;
|
|
4358
4358
|
}
|
|
4359
|
-
`],{moduleId:"vaadin-combo-box-overlay-styles"});class da extends(ca(Rr(So(
|
|
4359
|
+
`],{moduleId:"vaadin-combo-box-overlay-styles"});class da extends(ca(Rr(So($t(no))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return so`
|
|
4360
4360
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4361
4361
|
<div part="overlay" id="overlay">
|
|
4362
4362
|
<div part="loader"></div>
|
|
@@ -4387,7 +4387,7 @@ function ua(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
|
|
|
4387
4387
|
* @license
|
|
4388
4388
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4389
4389
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4390
|
-
*/const ya=class{toString(){return""}},_a=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${
|
|
4390
|
+
*/const ya=class{toString(){return""}},_a=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Uo()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!o||t!==o.index)return;const s=o.getBoundingClientRect(),r=this.getBoundingClientRect(),n=s.bottom-r.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof ya)&&(i&&void 0!==t&&void 0!==e?ua(i,t)===ua(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new ga({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],o=this.focusedIndex,s=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:s,renderer:this.renderer,focused:!this.loading&&o===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",s.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof ya&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
|
|
4391
4391
|
/**
|
|
4392
4392
|
* @license
|
|
4393
4393
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
@@ -4465,7 +4465,7 @@ const xa=t=>class extends(Ln(t)){static get properties(){return{pattern:{type:St
|
|
|
4465
4465
|
* @license
|
|
4466
4466
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4467
4467
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4468
|
-
*/;
|
|
4468
|
+
*/;Mt("vaadin-combo-box",$n,{moduleId:"vaadin-combo-box-styles"});class Fa extends(Sa(Da(xa(Rn($t(To(no))))))){static get is(){return"vaadin-combo-box"}static get template(){return so`
|
|
4469
4469
|
<style>
|
|
4470
4470
|
:host([opened]) {
|
|
4471
4471
|
pointer-events: auto;
|
|
@@ -4510,7 +4510,7 @@ const xa=t=>class extends(Ln(t)){static get properties(){return{pattern:{type:St
|
|
|
4510
4510
|
></vaadin-combo-box-overlay>
|
|
4511
4511
|
|
|
4512
4512
|
<slot name="tooltip"></slot>
|
|
4513
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xs(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new Qs(this.inputElement,this._labelController)),this._tooltipController=new Lo(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}g(Fa),
|
|
4513
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xs(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new Qs(this.inputElement,this._labelController)),this._tooltipController=new Lo(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}g(Fa),Mt("vaadin-multi-select-combo-box-chip",[cr,A`
|
|
4514
4514
|
:host {
|
|
4515
4515
|
font-size: var(--lumo-font-size-xxs);
|
|
4516
4516
|
line-height: 1;
|
|
@@ -4599,23 +4599,23 @@ const xa=t=>class extends(Ln(t)){static get properties(){return{pattern:{type:St
|
|
|
4599
4599
|
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
4600
4600
|
pointer-events: none;
|
|
4601
4601
|
}
|
|
4602
|
-
`],{moduleId:"lumo-multi-select-combo-box-chip"}),
|
|
4602
|
+
`],{moduleId:"lumo-multi-select-combo-box-chip"}),Mt("vaadin-multi-select-combo-box-item",[oa,sa,A`
|
|
4603
4603
|
@media (any-hover: hover) {
|
|
4604
4604
|
:host(:hover[readonly]) {
|
|
4605
4605
|
background-color: transparent;
|
|
4606
4606
|
cursor: default;
|
|
4607
4607
|
}
|
|
4608
4608
|
}
|
|
4609
|
-
`],{moduleId:"lumo-multi-select-combo-box-item"}),
|
|
4609
|
+
`],{moduleId:"lumo-multi-select-combo-box-item"}),Mt("vaadin-multi-select-combo-box-overlay",[nr,ar,na,ra,aa,A`
|
|
4610
4610
|
:host {
|
|
4611
4611
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4612
4612
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
4613
4613
|
}
|
|
4614
|
-
`],{moduleId:"lumo-multi-select-combo-box-overlay"}),
|
|
4614
|
+
`],{moduleId:"lumo-multi-select-combo-box-overlay"}),Mt("vaadin-multi-select-combo-box-container",A`
|
|
4615
4615
|
:host([auto-expand-vertically]) {
|
|
4616
4616
|
padding-block: var(--lumo-space-xs);
|
|
4617
4617
|
}
|
|
4618
|
-
`,{moduleId:"lumo-multi-select-combo-box-container"}),
|
|
4618
|
+
`,{moduleId:"lumo-multi-select-combo-box-container"}),Mt("vaadin-multi-select-combo-box",[dr,A`
|
|
4619
4619
|
:host([has-value]) {
|
|
4620
4620
|
padding-inline-start: 0;
|
|
4621
4621
|
}
|
|
@@ -4674,7 +4674,7 @@ const xa=t=>class extends(Ln(t)){static get properties(){return{pattern:{type:St
|
|
|
4674
4674
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4675
4675
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4676
4676
|
*/
|
|
4677
|
-
class Oa extends(
|
|
4677
|
+
class Oa extends($t(no)){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return so`
|
|
4678
4678
|
<style>
|
|
4679
4679
|
:host {
|
|
4680
4680
|
display: inline-flex;
|
|
@@ -4709,7 +4709,7 @@ class Oa extends(qt(no)){static get is(){return"vaadin-multi-select-combo-box-ch
|
|
|
4709
4709
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4710
4710
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4711
4711
|
*/
|
|
4712
|
-
|
|
4712
|
+
Mt("vaadin-multi-select-combo-box-container",A`
|
|
4713
4713
|
#wrapper {
|
|
4714
4714
|
display: flex;
|
|
4715
4715
|
width: 100%;
|
|
@@ -4725,7 +4725,7 @@ jt("vaadin-multi-select-combo-box-container",A`
|
|
|
4725
4725
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4726
4726
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4727
4727
|
*/
|
|
4728
|
-
class Ba extends(la(
|
|
4728
|
+
class Ba extends(la($t(So(no)))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return so`
|
|
4729
4729
|
<style>
|
|
4730
4730
|
:host {
|
|
4731
4731
|
display: block;
|
|
@@ -4739,7 +4739,7 @@ class Ba extends(la(qt(So(no)))){static get is(){return"vaadin-multi-select-comb
|
|
|
4739
4739
|
<div part="content">
|
|
4740
4740
|
<slot></slot>
|
|
4741
4741
|
</div>
|
|
4742
|
-
`}}g(Ba),
|
|
4742
|
+
`}}g(Ba),Mt("vaadin-multi-select-combo-box-overlay",[mr,A`
|
|
4743
4743
|
#overlay {
|
|
4744
4744
|
width: var(
|
|
4745
4745
|
--vaadin-multi-select-combo-box-overlay-width,
|
|
@@ -4752,19 +4752,19 @@ class Ba extends(la(qt(So(no)))){static get is(){return"vaadin-multi-select-comb
|
|
|
4752
4752
|
flex-direction: column;
|
|
4753
4753
|
height: 100%;
|
|
4754
4754
|
}
|
|
4755
|
-
`],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class
|
|
4755
|
+
`],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class ja extends(ca(Rr(So($t(no))))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return so`
|
|
4756
4756
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4757
4757
|
<div part="overlay" id="overlay">
|
|
4758
4758
|
<div part="loader"></div>
|
|
4759
4759
|
<div part="content" id="content"><slot></slot></div>
|
|
4760
4760
|
</div>
|
|
4761
|
-
`}}g(
|
|
4761
|
+
`}}g(ja);
|
|
4762
4762
|
/**
|
|
4763
4763
|
* @license
|
|
4764
4764
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4765
4765
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4766
4766
|
*/
|
|
4767
|
-
class
|
|
4767
|
+
class Ua extends(_a(no)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return so`
|
|
4768
4768
|
<style>
|
|
4769
4769
|
:host {
|
|
4770
4770
|
display: block;
|
|
@@ -4791,13 +4791,13 @@ class Ma extends(_a(no)){static get is(){return"vaadin-multi-select-combo-box-sc
|
|
|
4791
4791
|
<div id="selector">
|
|
4792
4792
|
<slot></slot>
|
|
4793
4793
|
</div>
|
|
4794
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof ya||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}g(
|
|
4794
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof ya||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}g(Ua);
|
|
4795
4795
|
/**
|
|
4796
4796
|
* @license
|
|
4797
4797
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4798
4798
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4799
4799
|
*/
|
|
4800
|
-
class
|
|
4800
|
+
class Ma extends(Sa(Da($t(no)))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return so`
|
|
4801
4801
|
<style>
|
|
4802
4802
|
:host([opened]) {
|
|
4803
4803
|
pointer-events: auto;
|
|
@@ -4815,7 +4815,7 @@ class ja extends(Sa(Da(qt(no)))){static get is(){return"vaadin-multi-select-comb
|
|
|
4815
4815
|
no-vertical-overlap
|
|
4816
4816
|
restore-focus-node="[[inputElement]]"
|
|
4817
4817
|
></vaadin-multi-select-combo-box-overlay>
|
|
4818
|
-
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof ya||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}g(
|
|
4818
|
+
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof ya||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}g(Ma);
|
|
4819
4819
|
/**
|
|
4820
4820
|
* @license
|
|
4821
4821
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -4826,7 +4826,7 @@ const La=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
|
|
|
4826
4826
|
* @license
|
|
4827
4827
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4828
4828
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4829
|
-
*/
|
|
4829
|
+
*/Mt("vaadin-multi-select-combo-box",[$n,A`
|
|
4830
4830
|
:host {
|
|
4831
4831
|
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
4832
4832
|
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
@@ -4864,7 +4864,7 @@ const La=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
|
|
|
4864
4864
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
4865
4865
|
width: auto;
|
|
4866
4866
|
}
|
|
4867
|
-
`],{moduleId:"vaadin-multi-select-combo-box-styles"});class Va extends(Ra(Rn(
|
|
4867
|
+
`],{moduleId:"vaadin-multi-select-combo-box-styles"});class Va extends(Ra(Rn($t(To(no))))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return so`
|
|
4868
4868
|
<div class="vaadin-multi-select-combo-box-container">
|
|
4869
4869
|
<div part="label">
|
|
4870
4870
|
<slot name="label"></slot>
|
|
@@ -4935,7 +4935,7 @@ const La=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
|
|
|
4935
4935
|
</div>
|
|
4936
4936
|
|
|
4937
4937
|
<slot name="tooltip"></slot>
|
|
4938
|
-
`}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Xs(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new Qs(this.inputElement,this._labelController)),this._tooltipController=new Lo(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new jo(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),Ia(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),qs(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let o=0;o<e.length;o++)if(e[o]&&e[o][i]===t[i])return o;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const o=e?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);qs(`${t} ${this.i18n[o]} ${s}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),o=this._getItemLabel(t);let s=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===o.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),s=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(o,s,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),o=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=e-i;t.length>1&&(o-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,o=null;i>=0;i--){const s=this.__createChip(t[i]);this.insertBefore(s,o),o=s,e.unshift(s)}const r=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),r.unshift(t.pop());const o=r.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=o)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(s,o)}px`)}this._overflowItems=r}else{for(let e=t.length-1,i=null;e>=0;e--){const r=this.__createChip(t[e]);if(this.insertBefore(r,i),!this.autoExpandVertically&&this.$.chips.clientWidth>o){if(null!==i){r.remove();break}r.style.maxWidth=`${Math.max(s,o)}px`}t.pop(),i=r}this._overflowItems=t}}__updateOverflowChip(t,e,i,o){if(t){const s=e.length;t.label=`${s}`,t.setAttribute("count",`${s}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===s),t.disabled=i,t.readonly=o}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let o;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?o=-1:i>-1&&(o=i+1):-1===i?o=t.length-1:i>0&&(o=i-1),void 0!==o&&(this._focusedChipIndex=o)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let o;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?o=t.length-1:i>0&&(o=i-1):i===t.length-1?o=-1:i>-1&&(o=i+1),void 0!==o&&(this._focusedChipIndex=o)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&qs(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}g(Va),jt("vaadin-notification-card",A`
|
|
4938
|
+
`}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Xs(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new Qs(this.inputElement,this._labelController)),this._tooltipController=new Lo(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Mo(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),Ia(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),$s(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let o=0;o<e.length;o++)if(e[o]&&e[o][i]===t[i])return o;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const o=e?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);$s(`${t} ${this.i18n[o]} ${s}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),o=this._getItemLabel(t);let s=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===o.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),s=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(o,s,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),o=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=e-i;t.length>1&&(o-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,o=null;i>=0;i--){const s=this.__createChip(t[i]);this.insertBefore(s,o),o=s,e.unshift(s)}const r=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),r.unshift(t.pop());const o=r.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=o)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(s,o)}px`)}this._overflowItems=r}else{for(let e=t.length-1,i=null;e>=0;e--){const r=this.__createChip(t[e]);if(this.insertBefore(r,i),!this.autoExpandVertically&&this.$.chips.clientWidth>o){if(null!==i){r.remove();break}r.style.maxWidth=`${Math.max(s,o)}px`}t.pop(),i=r}this._overflowItems=t}}__updateOverflowChip(t,e,i,o){if(t){const s=e.length;t.label=`${s}`,t.setAttribute("count",`${s}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===s),t.disabled=i,t.readonly=o}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let o;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?o=-1:i>-1&&(o=i+1):-1===i?o=t.length-1:i>0&&(o=i-1),void 0!==o&&(this._focusedChipIndex=o)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let o;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?o=t.length-1:i>0&&(o=i-1):i===t.length-1?o=-1:i>-1&&(o=i+1),void 0!==o&&(this._focusedChipIndex=o)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&$s(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}g(Va),Mt("vaadin-notification-card",A`
|
|
4939
4939
|
:host {
|
|
4940
4940
|
position: relative;
|
|
4941
4941
|
margin: var(--lumo-space-s);
|
|
@@ -5155,7 +5155,7 @@ const La=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
|
|
|
5155
5155
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5156
5156
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5157
5157
|
*/
|
|
5158
|
-
class
|
|
5158
|
+
class qa extends(Lr($t(To(no)))){static get template(){return so`
|
|
5159
5159
|
<style>
|
|
5160
5160
|
:host {
|
|
5161
5161
|
position: fixed;
|
|
@@ -5222,7 +5222,7 @@ class $a extends(Lr(qt(To(no)))){static get template(){return so`
|
|
|
5222
5222
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
5223
5223
|
</div>
|
|
5224
5224
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
5225
|
-
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),kr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class
|
|
5225
|
+
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),kr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class $a extends($t(no)){static get template(){return so`
|
|
5226
5226
|
<style>
|
|
5227
5227
|
:host {
|
|
5228
5228
|
display: block;
|
|
@@ -5251,7 +5251,7 @@ class $a extends(Lr(qt(To(no)))){static get template(){return so`
|
|
|
5251
5251
|
}
|
|
5252
5252
|
</style>
|
|
5253
5253
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
5254
|
-
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Ga._createAndShowNotification(void 0!==(null==(i=t)?void 0:i._$litType$)?e=>{Ct(t,e)}:e=>{e.innerText=t},e);var i}static _createAndShowNotification(t,e){const i=document.createElement(Ga.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",(t=>{t.detail.value||i.remove()})),i}get _container(){return Ga._container||(Ga._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Ga._container)),Ga._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ia(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`))return void console.warn(`Invalid alignment parameter provided: position=${this.position}`);this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&"none"!==t?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}g(
|
|
5254
|
+
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Ga._createAndShowNotification(void 0!==(null==(i=t)?void 0:i._$litType$)?e=>{Ct(t,e)}:e=>{e.innerText=t},e);var i}static _createAndShowNotification(t,e){const i=document.createElement(Ga.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",(t=>{t.detail.value||i.remove()})),i}get _container(){return Ga._container||(Ga._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Ga._container)),Ga._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ia(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`))return void console.warn(`Invalid alignment parameter provided: position=${this.position}`);this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&"none"!==t?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}g(qa),g($a),g(Ga);const Ha=A`
|
|
5255
5255
|
:host {
|
|
5256
5256
|
-webkit-tap-highlight-color: transparent;
|
|
5257
5257
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -5265,13 +5265,13 @@ class $a extends(Lr(qt(To(no)))){static get template(){return so`
|
|
|
5265
5265
|
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
5266
5266
|
background-color: var(--lumo-contrast-10pct);
|
|
5267
5267
|
}
|
|
5268
|
-
`;
|
|
5268
|
+
`;Mt("vaadin-list-box",Ha,{moduleId:"lumo-list-box"}),
|
|
5269
5269
|
/**
|
|
5270
5270
|
* @license
|
|
5271
5271
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5272
5272
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5273
5273
|
*/
|
|
5274
|
-
|
|
5274
|
+
Mt("vaadin-select-item",oa,{moduleId:"lumo-select-item"}),Mt("vaadin-select-list-box",Ha,{moduleId:"lumo-select-list-box"}),Mt("vaadin-select",[dr,A`
|
|
5275
5275
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
5276
5276
|
text-align: start;
|
|
5277
5277
|
}
|
|
@@ -5314,7 +5314,7 @@ jt("vaadin-select-item",oa,{moduleId:"lumo-select-item"}),jt("vaadin-select-list
|
|
|
5314
5314
|
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
5315
5315
|
--_lumo-selected-item-padding: 0;
|
|
5316
5316
|
}
|
|
5317
|
-
`],{moduleId:"lumo-select"}),
|
|
5317
|
+
`],{moduleId:"lumo-select"}),Mt("vaadin-select-value-button",A`
|
|
5318
5318
|
:host {
|
|
5319
5319
|
font-family: var(--lumo-font-family);
|
|
5320
5320
|
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
@@ -5333,7 +5333,7 @@ jt("vaadin-select-item",oa,{moduleId:"lumo-select-item"}),jt("vaadin-select-list
|
|
|
5333
5333
|
::slotted(*:hover) {
|
|
5334
5334
|
background-color: transparent;
|
|
5335
5335
|
}
|
|
5336
|
-
`,{moduleId:"lumo-select-value-button"}),
|
|
5336
|
+
`,{moduleId:"lumo-select-value-button"}),Mt("vaadin-select-overlay",[lr,A`
|
|
5337
5337
|
:host {
|
|
5338
5338
|
--_lumo-item-selected-icon-display: block;
|
|
5339
5339
|
}
|
|
@@ -5380,7 +5380,7 @@ const Wa=t=>class extends(gs(Is(t))){static get properties(){return{_hasVaadinIt
|
|
|
5380
5380
|
* @license
|
|
5381
5381
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5382
5382
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5383
|
-
*/;class Ka extends(Wa(
|
|
5383
|
+
*/;class Ka extends(Wa($t(So(no)))){static get is(){return"vaadin-select-item"}static get template(){return so`
|
|
5384
5384
|
<style>
|
|
5385
5385
|
:host {
|
|
5386
5386
|
display: inline-block;
|
|
@@ -5416,7 +5416,7 @@ const Za=t=>class extends(bs(t)){get focused(){return(this._getItems()||[]).find
|
|
|
5416
5416
|
* @license
|
|
5417
5417
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5418
5418
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5419
|
-
*/;class Xa extends(Ja(
|
|
5419
|
+
*/;class Xa extends(Ja($t(So(Rs(no))))){static get is(){return"vaadin-select-list-box"}static get template(){return so`
|
|
5420
5420
|
<style>
|
|
5421
5421
|
:host {
|
|
5422
5422
|
display: flex;
|
|
@@ -5447,7 +5447,7 @@ const Qa=t=>class extends(Gr(Rr(So(t)))){static get observers(){return["_updateO
|
|
|
5447
5447
|
* @license
|
|
5448
5448
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5449
5449
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5450
|
-
*/;
|
|
5450
|
+
*/;Mt("vaadin-select-overlay",[mr,A`
|
|
5451
5451
|
:host {
|
|
5452
5452
|
align-items: flex-start;
|
|
5453
5453
|
justify-content: flex-start;
|
|
@@ -5462,7 +5462,7 @@ const Qa=t=>class extends(Gr(Rr(So(t)))){static get observers(){return["_updateO
|
|
|
5462
5462
|
outline: 3px solid;
|
|
5463
5463
|
}
|
|
5464
5464
|
}
|
|
5465
|
-
`],{moduleId:"vaadin-select-overlay-styles"});class tl extends(Qa(
|
|
5465
|
+
`],{moduleId:"vaadin-select-overlay-styles"});class tl extends(Qa($t(no))){static get is(){return"vaadin-select-overlay"}static get template(){return so`
|
|
5466
5466
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5467
5467
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5468
5468
|
<div part="content" id="content">
|
|
@@ -5475,7 +5475,7 @@ const Qa=t=>class extends(Gr(Rr(So(t)))){static get observers(){return["_updateO
|
|
|
5475
5475
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5476
5476
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5477
5477
|
*/
|
|
5478
|
-
|
|
5478
|
+
Mt("vaadin-select-value-button",A`
|
|
5479
5479
|
:host {
|
|
5480
5480
|
display: inline-block;
|
|
5481
5481
|
position: relative;
|
|
@@ -5517,7 +5517,7 @@ jt("vaadin-select-value-button",A`
|
|
|
5517
5517
|
width: 100%;
|
|
5518
5518
|
line-height: inherit;
|
|
5519
5519
|
}
|
|
5520
|
-
`,{moduleId:"vaadin-select-value-button-styles"});class el extends(Yr(
|
|
5520
|
+
`,{moduleId:"vaadin-select-value-button-styles"});class el extends(Yr($t(no))){static get is(){return"vaadin-select-value-button"}static get template(){return so`
|
|
5521
5521
|
<div class="vaadin-button-container">
|
|
5522
5522
|
<span part="label">
|
|
5523
5523
|
<slot></slot>
|
|
@@ -5548,17 +5548,17 @@ const il=A`
|
|
|
5548
5548
|
* @license
|
|
5549
5549
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
5550
5550
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5551
|
-
*/;class ol extends
|
|
5551
|
+
*/;class ol extends Mo{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}
|
|
5552
5552
|
/**
|
|
5553
5553
|
* @license
|
|
5554
5554
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5555
5555
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5556
|
-
*/const sl=t=>class extends(Gn(Ts(Ds(bs(Js(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${
|
|
5556
|
+
*/const sl=t=>class extends(Gn(Ts(Ds(bs(Js(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Uo()}`,this._srLabelController=new Ks(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new ol(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new On(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new Lo(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=!(!e||void 0===e.value||e.value===this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0!==e&&!this.__dispatchChangePending&&this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),Ms(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,o)=>void 0===t&&e.value===i?o:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}__dispatchChange(){return b(this,null,(function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}))}}
|
|
5557
5557
|
/**
|
|
5558
5558
|
* @license
|
|
5559
5559
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5560
5560
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5561
|
-
*/;
|
|
5561
|
+
*/;Mt("vaadin-select",[Vn,qn,il],{moduleId:"vaadin-select-styles"});class rl extends(sl(To($t(no)))){static get is(){return"vaadin-select"}static get template(){return so`
|
|
5562
5562
|
<style>
|
|
5563
5563
|
:host {
|
|
5564
5564
|
position: relative;
|
|
@@ -5711,7 +5711,7 @@ const il=A`
|
|
|
5711
5711
|
transform: scale(1.02);
|
|
5712
5712
|
}
|
|
5713
5713
|
}
|
|
5714
|
-
`;
|
|
5714
|
+
`;Mt("vaadin-dialog-overlay",[nr,nl],{moduleId:"lumo-dialog"}),Mt("vaadin-confirm-dialog-overlay",[nr,nl,A`
|
|
5715
5715
|
[part='header'] ::slotted(h3) {
|
|
5716
5716
|
margin-top: 0 !important;
|
|
5717
5717
|
margin-bottom: 0 !important;
|
|
@@ -5944,7 +5944,7 @@ const al=t=>class extends t{static get properties(){return{opened:{type:Boolean,
|
|
|
5944
5944
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5945
5945
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5946
5946
|
*/
|
|
5947
|
-
|
|
5947
|
+
Mt("vaadin-confirm-dialog-overlay",[mr,ll,A`
|
|
5948
5948
|
:host {
|
|
5949
5949
|
--_vaadin-confirm-dialog-content-width: auto;
|
|
5950
5950
|
--_vaadin-confirm-dialog-content-height: auto;
|
|
@@ -5963,7 +5963,7 @@ jt("vaadin-confirm-dialog-overlay",[mr,ll,A`
|
|
|
5963
5963
|
[part='footer'] > * {
|
|
5964
5964
|
pointer-events: all;
|
|
5965
5965
|
}
|
|
5966
|
-
`],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class cl extends(Rr(So(
|
|
5966
|
+
`],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class cl extends(Rr(So($t(no)))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return so`
|
|
5967
5967
|
<div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5968
5968
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5969
5969
|
<section id="resizerContainer" class="resizer-container">
|
|
@@ -6011,7 +6011,7 @@ jt("vaadin-confirm-dialog-overlay",[mr,ll,A`
|
|
|
6011
6011
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6012
6012
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6013
6013
|
*/
|
|
6014
|
-
const ul=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new
|
|
6014
|
+
const ul=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Mo(this,"header","h3",{initializer:t=>{this._headerNode=t}}),this.addController(this._headerController),this._messageController=new Mo(this,"","div",{multiple:!0,observe:!1,initializer:t=>{const e=document.createElement("div");e.style.display="contents";const i=`confirm-dialog-message-${Uo()}`;e.id=i,this.appendChild(e),e.appendChild(t),this._messageNodes=[...this._messageNodes,e]}}),this.addController(this._messageController),this._cancelController=new Mo(this,"cancel-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("cancel",t)}}),this.addController(this._cancelController),this._rejectController=new Mo(this,"reject-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("reject",t)}}),this.addController(this._rejectController),this._confirmController=new Mo(this,"confirm-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("confirm",t)}}),this.addController(this._confirmController)}_initOverlay(t){t.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),t.addEventListener("vaadin-overlay-open",(()=>this.__onDialogOpened())),t.addEventListener("vaadin-overlay-closed",(()=>this.__onDialogClosed())),t.setAttribute("role","alertdialog")}__onDialogOpened(){const t=this._overlayElement;this.__slottedNodes.forEach((e=>{t.appendChild(e)}));const e=t.querySelector('[slot="confirm-button"]');e&&e.focus()}__onDialogClosed(){this.__slottedNodes.forEach((t=>{this.appendChild(t)})),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(t,e,i){!t||!e||(void 0!==i?Ms(t,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):e.forEach((e=>{Ms(t,"aria-describedby",{newId:e.id})})),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(t,e){const i=`_${t}Button`,o=`__${t}`;this[i]&&this[i]!==e&&this[i].remove(),e.addEventListener("click",this[o]),this[i]=e}__updateCancelButton(t,e,i,o){t&&(t===this._cancelController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!o))}__updateConfirmButton(t,e,i){t&&t===this._confirmController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i))}__updateHeaderNode(t,e){t&&t===this._headerController.defaultNode&&(t.textContent=e)}__updateMessageNodes(t,e){if(t&&t.length>0){const i=t.find((t=>this._messageController.defaultNode&&t===this._messageController.defaultNode.parentElement));i&&(i.firstChild.textContent=e)}}__updateRejectButton(t,e,i,o){t&&(t===this._rejectController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!o))}_escPressed(t){t.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(t){return t||"confirmation"}}
|
|
6015
6015
|
/**
|
|
6016
6016
|
* @license
|
|
6017
6017
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
@@ -6043,7 +6043,7 @@ const ul=t=>class extends t{static get properties(){return{accessibleDescription
|
|
|
6043
6043
|
<slot name="reject-button"></slot>
|
|
6044
6044
|
<slot name="confirm-button"></slot>
|
|
6045
6045
|
</div>
|
|
6046
|
-
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}g(pl),
|
|
6046
|
+
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}g(pl),Mt("vaadin-tab",A`
|
|
6047
6047
|
:host {
|
|
6048
6048
|
box-sizing: border-box;
|
|
6049
6049
|
padding: 0.5rem 0.75rem;
|
|
@@ -6293,7 +6293,7 @@ const ml=t=>class extends(Wa(t)){ready(){super.ready(),this.setAttribute("role",
|
|
|
6293
6293
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6294
6294
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6295
6295
|
*/
|
|
6296
|
-
|
|
6296
|
+
Mt("vaadin-tab",A`
|
|
6297
6297
|
:host {
|
|
6298
6298
|
display: block;
|
|
6299
6299
|
}
|
|
@@ -6312,10 +6312,10 @@ jt("vaadin-tab",A`
|
|
|
6312
6312
|
border-bottom: 2px solid;
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
|
-
`,{moduleId:"vaadin-tab-styles"});class vl extends(To(
|
|
6315
|
+
`,{moduleId:"vaadin-tab-styles"});class vl extends(To($t(ml(Rs(no))))){static get template(){return so`
|
|
6316
6316
|
<slot></slot>
|
|
6317
6317
|
<slot name="tooltip"></slot>
|
|
6318
|
-
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Lo(this),this.addController(this._tooltipController)}}g(vl),
|
|
6318
|
+
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Lo(this),this.addController(this._tooltipController)}}g(vl),Mt("vaadin-tabs",A`
|
|
6319
6319
|
:host {
|
|
6320
6320
|
-webkit-tap-highlight-color: transparent;
|
|
6321
6321
|
}
|
|
@@ -6570,7 +6570,7 @@ const fl=t=>class extends(Ra(Ja(t))){static get properties(){return{orientation:
|
|
|
6570
6570
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6571
6571
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6572
6572
|
*/
|
|
6573
|
-
|
|
6573
|
+
Mt("vaadin-tabs",A`
|
|
6574
6574
|
:host {
|
|
6575
6575
|
display: flex;
|
|
6576
6576
|
align-items: center;
|
|
@@ -6646,7 +6646,7 @@ jt("vaadin-tabs",A`
|
|
|
6646
6646
|
:host([dir='rtl']) [part='forward-button']::after {
|
|
6647
6647
|
content: '\\25C0';
|
|
6648
6648
|
}
|
|
6649
|
-
`,{moduleId:"vaadin-tabs-styles"});class bl extends(fl(To(
|
|
6649
|
+
`,{moduleId:"vaadin-tabs-styles"});class bl extends(fl(To($t(no)))){static get template(){return so`
|
|
6650
6650
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
6651
6651
|
|
|
6652
6652
|
<div id="scroll" part="tabs">
|