diff --git a/README.md b/README.md index f21c2f9..723275b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ -# roundcube-multibox +# Roundcube @ MultiBox + +Plugins, skins, configuration, and other things for Roundcube. -Plugins, skins, configuration, and other things for Roundcube \ No newline at end of file diff --git a/config/.htaccess b/config/.htaccess new file mode 100644 index 0000000..43e24ed --- /dev/null +++ b/config/.htaccess @@ -0,0 +1,7 @@ +# deny webserver access to this directory + + Require all denied + + + Deny from all + diff --git a/config/config.inc.php b/config/config.inc.php new file mode 100644 index 0000000..c217aad --- /dev/null +++ b/config/config.inc.php @@ -0,0 +1,202 @@ + 'smtp.example.net'] +$config['smtp_host'] = 'tls://' . $main_domain; + +// SMTP username (if required) if you use %u as the username Roundcube +// will use the current username for login +$config['smtp_user'] = '%u'; + +// SMTP password (if required) if you use %p as the password Roundcube +// will use the current user's password for login +$config['smtp_pass'] = '%p'; + +// SMTP socket context options +// See http://php.net/manual/en/context.ssl.php +// The server certificate validation is disabled, since the server is local +// and the communication should be safe. Note that it can be enabled as +// needed, just uncomment lines and set 'verify_peer' to true. +$config['smtp_conn_options'] = array( + 'ssl' => array( + 'verify_peer' => false, +// 'verify_depth' => 3, +// 'cafile' => '/etc/yunohost/certs/' . $main_domain . '/ca.pem', + ), +); + +// provide an URL where a user can get support for this Roundcube installation +// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! +$config['support_url'] = 'https://forum.yunohost.org/t/roundcube-a-webmail/3965'; + +// Name your service. This is displayed on the login screen and in the window title +$config['product_name'] = 'MultiBox Webmail'; + +// This key is used to encrypt the users imap password which is stored +// in the session record. For the default cipher method it must be +// exactly 24 characters long. +// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS +$config['des_key'] = 'jybvdIgYeTxiEx61YQ5VUkm0'; + + +// ---------------------------------- +// USER INTERFACE +// ---------------------------------- + +// the default locale setting (leave empty for auto-detection) +// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR +$config['language'] = 'en_GB'; + +// use this format for date display (date or strftime format) +$config['date_format'] = 'd.m.Y'; + +// Make use of the built-in spell checker. It is based on GoogieSpell. +$config['enable_spellcheck'] = false; + + +// Enable YunoHost users search in the address book. +$config['ldap_public']['yunohost'] = array( + 'name' => 'YunoHost Users', + 'hosts' => array('localhost:389'), + 'user_specific' => false, + 'base_dn' => 'ou=users,dc=yunohost,dc=org', + 'scope' => 'list', + 'filter' => '(objectClass=mailAccount)', + 'hidden' => false, + 'search_fields' => array( + 'uid', + 'mail', + 'cn' + ), + 'fieldmap' => array( + 'uid' => 'uid', + 'name' => 'cn', + 'surname' => 'sn', + 'firstname' => 'givenName', + 'email' => 'mail:*', + ), +); + +$config['license_key'] = 'RCP-zxM5wAi4xnpx'; + +// List of active plugins (in plugins/ directory) +$config['plugins'] = [ + 'xskin', + 'archive', + 'zipdownload', + 'http_authentication', + 'managesieve', + 'markasjunk', + 'new_user_dialog', + 'new_user_identity', + 'newmail_notifier', + 'enigma', + 'contextmenu', + 'automatic_addressbook', + 'carddav', + 'message_highlight', + 'identity_switch', +]; + +// ---------------------------------- +// PLUGINS +// ---------------------------------- + +// -- new_user_identity +// The id of the address book to use to automatically set a +// user's full name in their new identity. +$config['new_user_identity_addressbook'] = 'yunohost'; +$config['new_user_identity_match'] = 'uid'; +$config['new_user_identity_onlogin'] = true; + +// -- http_authentication +// Redirect the client to this URL after logout. +$config['logout_url'] = 'https://' . $main_domain . '/yunohost/sso/?action=logout'; + +// -- managesieve +// Enables separate management interface for vacation responses (out-of-office) +$config['managesieve_vacation'] = 1; + +// -- ldapAliasSync +$config['ldapAliasSync'] = array( + // Mail parameters + 'mail' => array( + 'dovecot_separator' => '+', + ), + // LDAP parameters + 'ldap' => array( + 'bind_dn' => '', + ), + # 'user_search' holds all config variables for the user search + 'user_search' => array( + 'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org', + 'filter' => '(objectClass=mailAccount)', + 'mail_by' => 'attribute', + 'attr_mail' => 'mail', + 'attr_name' => 'cn', + ), + # 'alias_search' holds all config variables for the alias search + 'alias_search' => array( + 'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org', + 'filter' => '(objectClass=mailAccount)', + 'mail_by' => 'attribute', + 'attr_mail' => 'mailalias', + 'attr_name' => 'cn', + ), +); + +// skin name: folder from skins/ +$config['skin'] = 'litecube-f'; diff --git a/config/config.inc.php.sample b/config/config.inc.php.sample new file mode 100644 index 0000000..4f00ef8 --- /dev/null +++ b/config/config.inc.php.sample @@ -0,0 +1,66 @@ + 'r', +// 'cache_index' => 'r', +// 'cache_thread' => 'r', +// 'cache_messages' => 'r', +]; + +// It is possible to specify database variable values e.g. some limits here. +// Use them if your server is not MySQL or for better performance. +// For example Roundcube uses max_allowed_packet value (in bytes) +// which limits query size for database cache operations. +$config['db_max_allowed_packet'] = null; + + +// ---------------------------------- +// LOGGING/DEBUGGING +// ---------------------------------- + +// log driver: 'syslog', 'stdout' or 'file'. +$config['log_driver'] = 'file'; + +// date format for log entries +// (read https://php.net/manual/en/function.date.php for all format characters) +$config['log_date_format'] = 'd-M-Y H:i:s O'; + +// length of the session ID to prepend each log line with +// set to 0 to avoid session IDs being logged. +$config['log_session_id'] = 8; + +// Default extension used for log file name +$config['log_file_ext'] = '.log'; + +// Syslog ident string to use, if using the 'syslog' log driver. +$config['syslog_id'] = 'roundcube'; + +// Syslog facility to use, if using the 'syslog' log driver. +// For possible values see installer or https://php.net/manual/en/function.openlog.php +$config['syslog_facility'] = LOG_USER; + +// Activate this option if logs should be written to per-user directories. +// Data will only be logged if a directory // exists and is writable. +$config['per_user_logging'] = false; + +// Log sent messages to /sendmail.log or to syslog +$config['smtp_log'] = true; + +// Log successful/failed logins to /userlogins.log or to syslog +$config['log_logins'] = false; + +// Log session debug information/authentication errors to /session.log or to syslog +$config['session_debug'] = false; + +// Log SQL queries to /sql.log or to syslog +$config['sql_debug'] = false; + +// Log IMAP conversation to /imap.log or to syslog +$config['imap_debug'] = false; + +// Log LDAP conversation to /ldap.log or to syslog +$config['ldap_debug'] = false; + +// Log SMTP conversation to /smtp.log or to syslog +$config['smtp_debug'] = false; + +// Log Memcache conversation to /memcache.log or to syslog +$config['memcache_debug'] = false; + +// Log APC conversation to /apc.log or to syslog +$config['apc_debug'] = false; + +// Log Redis conversation to /redis.log or to syslog +$config['redis_debug'] = false; + + +// ---------------------------------- +// IMAP +// ---------------------------------- + +// The IMAP host (and optionally port number) chosen to perform the log-in. +// Leave blank to show a textbox at login, give a list of hosts +// to display a pulldown menu or set one host as string. +// Enter hostname with prefix ssl:// to use Implicit TLS, or use +// prefix tls:// to use STARTTLS. +// If port number is omitted it will be set to 993 (for ssl://) or 143 otherwise. +// Supported replacement variables: +// %n - hostname ($_SERVER['SERVER_NAME']) +// %t - hostname without the first part +// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) +// %s - domain name after the '@' from e-mail address provided at login screen +// For example %n = mail.domain.tld, %t = domain.tld +// WARNING: After hostname change update of mail_host column in users table is +// required to match old user data records with the new host. +$config['imap_host'] = 'localhost:143'; + +// IMAP authentication method (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null). +// Use 'IMAP' to authenticate with IMAP LOGIN command. +// By default the most secure method (from supported) will be selected. +$config['imap_auth_type'] = null; + +// IMAP socket context options +// See https://php.net/manual/en/context.ssl.php +// The example below enables server certificate validation +//$config['imap_conn_options'] = [ +// 'ssl' => [ +// 'verify_peer' => true, +// 'verify_depth' => 3, +// 'cafile' => '/etc/openssl/certs/ca.crt', +// ], +// ]; +// Note: These can be also specified as an array of options indexed by hostname +$config['imap_conn_options'] = null; + +// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout) +$config['imap_timeout'] = 0; + +// Optional IMAP authentication identifier to be used as authorization proxy +$config['imap_auth_cid'] = null; + +// Optional IMAP authentication password to be used for imap_auth_cid +$config['imap_auth_pw'] = null; + +// If you know your imap's folder delimiter, you can specify it here. +// Otherwise it will be determined automatically +$config['imap_delimiter'] = null; + +// If you know your imap's folder vendor, you can specify it here. +// Otherwise it will be determined automatically. Use lower-case +// identifiers, e.g. 'dovecot', 'cyrus', 'gimap', 'hmail', 'uw-imap'. +$config['imap_vendor'] = null; + +// If IMAP server doesn't support NAMESPACE extension, but you're +// using shared folders or personal root folder is non-empty, you'll need to +// set these options. All can be strings or arrays of strings. +// Note: Folders need to be ended with directory separator, e.g. "INBOX." +// (special directory "~" is an exception to this rule) +// Note: These can be used also to overwrite server's namespaces +// Note: Set these to FALSE to disable access to specified namespace +$config['imap_ns_personal'] = null; +$config['imap_ns_other'] = null; +$config['imap_ns_shared'] = null; + +// By default IMAP capabilities are read after connection to IMAP server +// In some cases, e.g. when using IMAP proxy, there's a need to refresh the list +// after login. Set to True if you've got this case. +$config['imap_force_caps'] = false; + +// By default list of subscribed folders is determined using LIST-EXTENDED +// extension if available. Some servers (dovecot 1.x) returns wrong results +// for shared namespaces in this case. https://github.com/roundcube/roundcubemail/issues/2474 +// Enable this option to force LSUB command usage instead. +// Deprecated: Use imap_disabled_caps = ['LIST-EXTENDED'] +$config['imap_force_lsub'] = false; + +// Some server configurations (e.g. Courier) doesn't list folders in all namespaces +// Enable this option to force listing of folders in all namespaces +$config['imap_force_ns'] = false; + +// Some servers return hidden folders (name starting with a dot) +// from user home directory. IMAP RFC does not forbid that. +// Enable this option to hide them and disable possibility to create such. +$config['imap_skip_hidden_folders'] = false; + +// Some servers do not support folders with both folders and messages inside +// If your server supports that use true, if it does not, use false. +// By default it will be determined automatically (once per user session). +$config['imap_dual_use_folders'] = null; + +// List of disabled imap extensions. +// Use if your IMAP server has broken implementation of some feature +// and you can't remove it from CAPABILITY string on server-side. +// For example UW-IMAP server has broken ESEARCH. +// Note: Because the list is cached, re-login is required after change. +$config['imap_disabled_caps'] = []; + +// Log IMAP session identifiers after each IMAP login. +// This is used to relate IMAP session with Roundcube user sessions +$config['imap_log_session'] = false; + +// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache' or 'memcached'. +$config['imap_cache'] = null; + +// Enables messages cache. Only 'db' cache is supported. +// This requires an IMAP server that supports QRESYNC and CONDSTORE +// extensions (RFC7162). See synchronize() in program/lib/Roundcube/rcube_imap_cache.php +// for further info, or if you experience syncing problems. +$config['messages_cache'] = false; + +// Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w +$config['imap_cache_ttl'] = '10d'; + +// Lifetime of messages cache. Possible units: s, m, h, d, w +$config['messages_cache_ttl'] = '10d'; + +// Maximum cached message size in kilobytes. +// Note: On MySQL this should be less than (max_allowed_packet - 30%) +$config['messages_cache_threshold'] = 50; + + +// ---------------------------------- +// SMTP +// ---------------------------------- + +// SMTP server host (and optional port number) for sending mails. +// Enter hostname with prefix ssl:// to use Implicit TLS, or use +// prefix tls:// to use STARTTLS. +// If port number is omitted it will be set to 465 (for ssl://) or 587 otherwise. +// Supported replacement variables: +// %h - user's IMAP hostname +// %n - hostname ($_SERVER['SERVER_NAME']) +// %t - hostname without the first part +// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) +// %z - IMAP domain (IMAP hostname without the first part) +// For example %n = mail.domain.tld, %t = domain.tld +// To specify different SMTP servers for different IMAP hosts provide an array +// of IMAP host (no prefix or port) and SMTP server e.g. ['imap.example.com' => 'smtp.example.net'] +$config['smtp_host'] = 'localhost:587'; + +// SMTP username (if required) +// Note: %u variable will be replaced with current user's username +$config['smtp_user'] = '%u'; + +// SMTP password (if required) +// Note: When set to '%p' current user's password will be used +$config['smtp_pass'] = '%p'; + +// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use +// best server supported one) +$config['smtp_auth_type'] = null; + +// Optional SMTP authentication identifier to be used as authorization proxy +$config['smtp_auth_cid'] = null; + +// Optional SMTP authentication password to be used for smtp_auth_cid +$config['smtp_auth_pw'] = null; + +// Pass the username (XCLIENT LOGIN) to the server +$config['smtp_xclient_login'] = false; + +// Pass the remote IP (XCLIENT ADDR) to the server +$config['smtp_xclient_addr'] = false; + + +// SMTP HELO host +// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages +// Leave this blank and you will get the server variable 'server_name' or +// localhost if that isn't defined. +$config['smtp_helo_host'] = ''; + +// SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout) +// Note: There's a known issue where using ssl connection with +// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511) +$config['smtp_timeout'] = 0; + +// SMTP socket context options +// See https://php.net/manual/en/context.ssl.php +// The example below enables server certificate validation, and +// requires 'smtp_timeout' to be non zero. +// $config['smtp_conn_options'] = [ +// 'ssl' => [ +// 'verify_peer' => true, +// 'verify_depth' => 3, +// 'cafile' => '/etc/openssl/certs/ca.crt', +// ], +// ]; +// Note: These can be also specified as an array of options indexed by hostname +$config['smtp_conn_options'] = null; + + +// ---------------------------------- +// OAuth +// ---------------------------------- + +// Enable OAuth2 by defining a provider. Use 'generic' here +$config['oauth_provider'] = null; + +// Provider name to be displayed on the login button +$config['oauth_provider_name'] = 'Google'; + +// Mandatory: OAuth client ID for your Roundcube installation +$config['oauth_client_id'] = null; + +// Mandatory: OAuth client secret +$config['oauth_client_secret'] = null; + +// Mandatory: URI for OAuth user authentication (redirect) +$config['oauth_auth_uri'] = null; + +// Mandatory: Endpoint for OAuth authentication requests (server-to-server) +$config['oauth_token_uri'] = null; + +// Optional: Endpoint to query user identity if not provided in auth response +$config['oauth_identity_uri'] = null; + +// Optional: disable SSL certificate check on HTTP requests to OAuth server +// See https://docs.guzzlephp.org/en/stable/request-options.html#verify for possible values +$config['oauth_verify_peer'] = true; + +// Mandatory: OAuth scopes to request (space-separated string) +$config['oauth_scope'] = null; + +// Optional: additional query parameters to send with login request (hash array) +$config['oauth_auth_parameters'] = []; + +// Optional: array of field names used to resolve the username within the identity information +$config['oauth_identity_fields'] = null; + +// Boolean: automatically redirect to OAuth login when opening Roundcube without a valid session +$config['oauth_login_redirect'] = false; + +// Optional: For backends that don't support XOAUTH2/OAUTHBEARER method we can still use +// OpenIDC protocol to get a short-living password (claim) for the user to log into IMAP/SMTP. +// That password have to have (at least) the same expiration time as the token, and will be +// renewed on token refresh. +// Note: The claim have to be added to 'oauth_scope' above. +$config['oauth_password_claim'] = null; + +///// Example config for Gmail + +// Register your service at https://console.developers.google.com/ +// - use https:///index.php/login/oauth as redirect URL + +// $config['imap_host'] = 'ssl://imap.gmail.com'; +// $config['oauth_provider'] = 'google'; +// $config['oauth_provider_name'] = 'Google'; +// $config['oauth_client_id'] = ""; +// $config['oauth_client_secret'] = ""; +// $config['oauth_auth_uri'] = "https://accounts.google.com/o/oauth2/auth"; +// $config['oauth_token_uri'] = "https://oauth2.googleapis.com/token"; +// $config['oauth_identity_uri'] = 'https://www.googleapis.com/oauth2/v1/userinfo'; +// $config['oauth_scope'] = "email profile openid https://mail.google.com/"; +// $config['oauth_auth_parameters'] = ['access_type' => 'offline', 'prompt' => 'consent']; + +///// Example config for Outlook.com (Office 365) + +// Register your OAuth client at https://portal.azure.com +// - use https:///index.php/login/oauth as redirect URL +// - grant permissions to Microsoft Graph API "IMAP.AccessAsUser.All", "SMTP.Send", "User.Read" and "offline_access" + +// $config['imap_host'] = 'ssl://outlook.office365.com'; +// $config['smtp_host'] = 'ssl://smtp.office365.com'; + +// $config['oauth_provider'] = 'outlook'; +// $config['oauth_provider_name'] = 'Outlook.com'; +// $config['oauth_client_id'] = ""; +// $config['oauth_client_secret'] = ""; +// $config['oauth_auth_uri'] = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"; +// $config['oauth_token_uri'] = "https://login.microsoftonline.com/common/oauth2/v2.0/token"; +// $config['oauth_identity_uri'] = "https://graph.microsoft.com/v1.0/me"; +// $config['oauth_identity_fields'] = ['email', 'userPrincipalName']; +// $config['oauth_scope'] = "https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/SMTP.Send User.Read offline_access"; +// $config['oauth_auth_parameters'] = ['nonce' => mt_rand()]; + +// ---------------------------------- +// LDAP +// ---------------------------------- + +// Type of LDAP cache. Supported values: 'db', 'apc' and 'memcache' or 'memcached'. +$config['ldap_cache'] = 'db'; + +// Lifetime of LDAP cache. Possible units: s, m, h, d, w +$config['ldap_cache_ttl'] = '10m'; + + +// ---------------------------------- +// CACHE(S) +// ---------------------------------- + +// Use these hosts for accessing memcached +// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file +// Example: ['localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock']; +$config['memcache_hosts'] = null; + +// Controls the use of a persistent connections to memcache servers +// See https://php.net/manual/en/memcache.addserver.php +$config['memcache_pconnect'] = true; + +// Value in seconds which will be used for connecting to the daemon +// See https://php.net/manual/en/memcache.addserver.php +$config['memcache_timeout'] = 1; + +// Controls how often a failed server will be retried (value in seconds). +// Setting this parameter to -1 disables automatic retry. +// See https://php.net/manual/en/memcache.addserver.php +$config['memcache_retry_interval'] = 15; + +// Use these hosts for accessing Redis. +// Currently only one host is supported. Cluster support may come in a future release. +// You can pass 4 fields, host, port (optional), database (optional) and password (optional). +// Unset fields will be set to the default values host=127.0.0.1, port=6379. +// Examples: +// ['localhost:6379']; +// ['192.168.1.1:6379:1:secret']; +// ['unix:///var/run/redis/redis-server.sock:1:secret']; +$config['redis_hosts'] = null; + +// Maximum size of an object in memcache (in bytes). Default: 2MB +$config['memcache_max_allowed_packet'] = '2M'; + +// Maximum size of an object in APC cache (in bytes). Default: 2MB +$config['apc_max_allowed_packet'] = '2M'; + +// Maximum size of an object in Redis cache (in bytes). Default: 2MB +$config['redis_max_allowed_packet'] = '2M'; + + +// ---------------------------------- +// SYSTEM +// ---------------------------------- + +// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. +// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING! +$config['enable_installer'] = false; + +// don't allow these settings to be overridden by the user +$config['dont_override'] = []; + +// List of disabled UI elements/actions +$config['disabled_actions'] = []; + +// define which settings should be listed under the 'advanced' block +// which is hidden by default +$config['advanced_prefs'] = []; + +// provide an URL where a user can get support for this Roundcube installation +// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! +$config['support_url'] = ''; + +// Location of the blank (watermark) frame page. By default it is the watermark.html +// file from the currently selected skin. Prepend name/path with a slash to use +// current skin folder. Remove the slash to point to a file in the Roundcube +// root directory. It can be also a full URL. +$config['blankpage_url'] = '/watermark.html'; + +// Logo image replacement. Specifies location of the image as: +// - URL relative to the document root of this Roundcube installation +// - full URL with http:// or https:// prefix +// - URL relative to the current skin folder (when starts with a '/') +// +// An array can be used to specify different logos for specific template files +// The array key specifies the place(s) the logo should be applied to and +// is made up of (up to) 3 parts: +// - skin name prefix (always with colon, can be replaced with *) +// - template name (or * for all templates) +// - logo type - it is used for logos used on multiple templates and the available types include: +// '[favicon]' for favicon +// '[print]' for logo on all print templates (e.g. messageprint, contactprint) +// '[small]' for small screen logo in supported skins +// '[dark]' and '[small-dark]' for dark mode logo in supported skins +// '[link]' for adding a URL link to the logo image +// +// Example config for skin_logo +/* + [ + // show the image /images/logo_login_small.png for the Login screen in the Elastic skin on small screens + "elastic:login[small]" => "/images/logo_login_small.png", + // show the image /images/logo_login.png for the Login screen in the Elastic skin + "elastic:login" => "/images/logo_login.png", + // add a link to the logo on the Login screen in the Elastic skin + "elastic:login[link]" => "https://www.example.com", + // add a link to the logo on all screens in the Elastic skin + "elastic:*[link]" => "https://www.example.com", + // add a link to the logo on all screens for all skins + "[link]" => "https://www.example.com", + // show the image /images/logo_small.png in the Elastic skin + "elastic:*[small]" => "/images/logo_small.png", + // show the image /images/larry.png in the Larry skin + "larry:*" => "/images/larry.png", + // show the image /images/logo_login.png on the login template in all skins + "login" => "/images/logo_login.png", + // show the image /images/logo_print.png for all print type logos in all skins + "[print]" => "/images/logo_print.png", + ]; +*/ +$config['skin_logo'] = null; + +// Automatically register user in Roundcube database on successful (IMAP) logon. +// Set to false if only registered users should be allowed to the webmail. +// Note: If disabled you have to create records in Roundcube users table by yourself. +// Note: Roundcube does not manage/create users on a mail server. +$config['auto_create_user'] = true; + +// Enables possibility to log in using email address from user identities +$config['user_aliases'] = false; + +// use this folder to store log files +// must be writeable for the user who runs PHP process (Apache user if mod_php is being used) +// This is used by the 'file' log driver. +$config['log_dir'] = RCUBE_INSTALL_PATH . 'logs/'; + +// Location of temporary saved files such as attachments and cache files +// must be writeable for the user who runs PHP process (Apache user if mod_php is being used) +$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/'; + +// expire files in temp_dir after 48 hours +// possible units: s, m, h, d, w +$config['temp_dir_ttl'] = '48h'; + +// Enforce connections over https +// With this option enabled, all non-secure connections will be redirected. +// It can be also a port number, hostname or hostname:port if they are +// different than default HTTP_HOST:443 +$config['force_https'] = false; + +// tell PHP that it should work as under secure connection +// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set) +// e.g. when you're running Roundcube behind a https proxy +// this option is mutually exclusive to 'force_https' and only either one of them should be set to true. +$config['use_https'] = false; + +// Allow browser-autocompletion on login form. +// 0 - disabled, 1 - username and host only, 2 - username, host, password +$config['login_autocomplete'] = 0; + +// Forces conversion of logins to lower case. +// 0 - disabled, 1 - only domain part, 2 - domain and local part. +// If users authentication is case-insensitive this must be enabled. +// Note: After enabling it all user records need to be updated, e.g. with query: +// UPDATE users SET username = LOWER(username); +$config['login_lc'] = 2; + +// Maximum length (in bytes) of logon username and password. +$config['login_username_maxlen'] = 1024; +$config['login_password_maxlen'] = 1024; + +// Logon username filter. Regular expression for use with preg_match(). +// Use special value 'email' if you accept only full email addresses as user logins. +// Example: '/^[a-z0-9_@.-]+$/' +$config['login_username_filter'] = null; + +// Brute-force attacks prevention. +// The value specifies maximum number of failed logon attempts per minute. +$config['login_rate_limit'] = 3; + +// Includes should be interpreted as PHP files +$config['skin_include_php'] = false; + +// display product name and software version on login screen +// 0 - hide product name and version number, 1 - show product name only, 2 - show product name and version number +$config['display_product_info'] = 1; + +// Session lifetime in minutes +$config['session_lifetime'] = 10; + +// Session domain: .example.org +$config['session_domain'] = ''; + +// Session name. Default: 'roundcube_sessid' +$config['session_name'] = null; + +// Session authentication cookie name. Default: 'roundcube_sessauth' +$config['session_auth_name'] = null; + +// Session path. Defaults to PHP session.cookie_path setting. +$config['session_path'] = null; + +// Session samesite. Defaults to PHP session.cookie_samesite setting. +// Requires PHP >= 7.3.0, see https://wiki.php.net/rfc/same-site-cookie for more info +// Possible values: null (default), 'Lax', or 'Strict' +$config['session_samesite'] = null; + +// Backend to use for session storage. Can either be 'db' (default), 'redis', 'memcache', or 'php' +// +// If set to 'memcache' or 'memcached', a list of servers need to be specified in 'memcache_hosts' +// Make sure the Memcache extension (https://pecl.php.net/package/memcache) version >= 2.0.0 +// or the Memcached extension (https://pecl.php.net/package/memcached) version >= 2.0.0 is installed. +// +// If set to 'redis', a server needs to be specified in 'redis_hosts' +// Make sure the Redis extension (https://pecl.php.net/package/redis) version >= 2.0.0 is installed. +// +// Setting this value to 'php' will use the default session save handler configured in PHP +$config['session_storage'] = 'db'; + +// List of trusted proxies +// X_FORWARDED_* and X_REAL_IP headers are only accepted from these IPs +$config['proxy_whitelist'] = []; + +// List of trusted host names +// Attackers can modify Host header of the HTTP request causing $_SERVER['SERVER_NAME'] +// or $_SERVER['HTTP_HOST'] variables pointing to a different host, that could be used +// to collect user names and passwords. Some server configurations prevent that, but not all. +// An empty list accepts any host name. The list can contain host names +// or PCRE patterns (without // delimiters, that will be added automatically). +$config['trusted_host_patterns'] = []; + +// check client IP in session authorization +$config['ip_check'] = false; + +// X-Frame-Options HTTP header value sent to prevent from Clickjacking. +// Possible values: sameorigin|deny|allow-from . +// Set to false in order to disable sending the header. +$config['x_frame_options'] = 'sameorigin'; + +// This key is used for encrypting purposes, like storing of imap password +// in the session. For historical reasons it's called DES_key, but it's used +// with any configured cipher_method (see below). +// For the default cipher_method a required key length is 24 characters. +$config['des_key'] = 'rcmail-!24ByteDESkey*Str'; + +// Encryption algorithm. You can use any method supported by OpenSSL. +// Default is set for backward compatibility to DES-EDE3-CBC, +// but you can choose e.g. AES-256-CBC which we consider a better choice. +$config['cipher_method'] = 'DES-EDE3-CBC'; + +// Automatically add this domain to user names for login +// Only for IMAP servers that require full e-mail addresses for login +// Specify an array with 'host' => 'domain' values to support multiple hosts +// Supported replacement variables: +// %h - user's IMAP hostname +// %n - hostname ($_SERVER['SERVER_NAME']) +// %t - hostname without the first part +// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) +// %z - IMAP domain (IMAP hostname without the first part) +// For example %n = mail.domain.tld, %t = domain.tld +$config['username_domain'] = ''; + +// Force domain configured in username_domain to be used for login. +// Any domain in username will be replaced by username_domain. +$config['username_domain_forced'] = false; + +// This domain will be used to form e-mail addresses of new users +// Specify an array with 'host' => 'domain' values to support multiple hosts +// Supported replacement variables: +// %h - user's IMAP hostname +// %n - http hostname ($_SERVER['SERVER_NAME']) +// %d - domain (http hostname without the first part) +// %z - IMAP domain (IMAP hostname without the first part) +// For example %n = mail.domain.tld, %t = domain.tld +$config['mail_domain'] = ''; + +// Password character set, to change the password for user +// authentication or for password change operations +$config['password_charset'] = 'UTF-8'; + +// How many seconds must pass between emails sent by a user +$config['sendmail_delay'] = 0; + +// Message size limit. Note that SMTP server(s) may use a different value. +// This limit is verified when user attaches files to a composed message. +// Size in bytes (possible unit suffix: K, M, G) +$config['max_message_size'] = '100M'; + +// Maximum number of recipients per message (including To, Cc, Bcc). +// Default: 0 (no limit) +$config['max_recipients'] = 0; + +// Maximum number of recipients per message excluding Bcc header. +// This is a soft limit, which means we only display a warning to the user. +// Default: 5 +$config['max_disclosed_recipients'] = 5; + +// Maximum allowed number of members of an address group. Default: 0 (no limit) +// If 'max_recipients' is set this value should be less or equal +$config['max_group_members'] = 0; + +// Name your service. This is displayed on the login screen and in the window title +$config['product_name'] = 'Roundcube Webmail'; + +// Add this user-agent to message headers when sending. Default: not set. +$config['useragent'] = null; + +// try to load host-specific configuration +// see https://github.com/roundcube/roundcubemail/wiki/Configuration:-Multi-Domain-Setup +// for more details +$config['include_host_config'] = false; + +// path to a text file which will be added to each sent message +// paths are relative to the Roundcube root folder +$config['generic_message_footer'] = ''; + +// path to a text file which will be added to each sent HTML message +// paths are relative to the Roundcube root folder +$config['generic_message_footer_html'] = ''; + +// add a received header to outgoing mails containing the creators IP and hostname +$config['http_received_header'] = false; + +// Whether or not to encrypt the IP address and the host name +// these could, in some circles, be considered as sensitive information; +// however, for the administrator, these could be invaluable help +// when tracking down issues. +$config['http_received_header_encrypt'] = false; + +// number of chars allowed for line when wrapping text. +// text wrapping is done when composing/sending messages +$config['line_length'] = 72; + +// send plaintext messages as format=flowed +$config['send_format_flowed'] = true; + +// According to RFC2298, return receipt envelope sender address must be empty. +// If this option is true, Roundcube will use user's identity as envelope sender for MDN responses. +$config['mdn_use_from'] = false; + +// Set identities access level: +// 0 - many identities with possibility to edit all params +// 1 - many identities with possibility to edit all params but not email address +// 2 - one identity with possibility to edit all params +// 3 - one identity with possibility to edit all params but not email address +// 4 - one identity with possibility to edit only signature +$config['identities_level'] = 0; + +// Maximum size of uploaded image (in kilobytes) for HTML identities. +// Images (in html signatures) are stored in database as data URIs. +$config['identity_image_size'] = 64; + +// Maximum size of uploaded image (in kilobytes) for HTML responses. +// Images (in html responses) are stored in database as data URIs. +$config['response_image_size'] = 64; + +// Mimetypes supported by the browser. +// Attachments of these types will open in a preview window. +// Either a comma-separated list or an array. Default list includes: +// text/plain,text/html, +// image/jpeg,image/gif,image/png,image/bmp,image/tiff,image/webp, +// application/x-javascript,application/pdf,application/x-shockwave-flash +$config['client_mimetypes'] = null; + +// Path to a local mime magic database file for PHPs finfo extension. +// Set to null if the default path should be used. +$config['mime_magic'] = null; + +// Absolute path to a local mime.types mapping table file. +// This is used to derive mime-types from the filename extension or vice versa. +// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system, +// download it from https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types +$config['mime_types'] = null; + +// path to imagemagick identify binary (if not set we'll use Imagick or GD extensions) +$config['im_identify_path'] = null; + +// path to imagemagick convert binary (if not set we'll use Imagick or GD extensions) +$config['im_convert_path'] = null; + +// Size of thumbnails from image attachments displayed below the message content. +// Note: whether images are displayed at all depends on the 'inline_images' option. +// Set to 0 to display images in full size. +$config['image_thumbnail_size'] = 240; + +// maximum size of uploaded contact photos in pixel +$config['contact_photo_size'] = 160; + +// Enable DNS checking for e-mail address validation +$config['email_dns_check'] = false; + +// Disables saving sent messages in Sent folder (like gmail) (Default: false) +// Note: useful when SMTP server stores sent mail in user mailbox +$config['no_save_sent_messages'] = false; + +// Improve system security by using special URL with security token. +// This can be set to a number defining token length. Default: 16. +// Warning: This requires http server configuration. Sample: +// RewriteRule ^/roundcubemail/[a-zA-Z0-9]{16}/(.*) /roundcubemail/$1 [PT] +// Alias /roundcubemail /var/www/roundcubemail/ +// Warning: This feature does NOT work with request_path = 'SCRIPT_NAME' +// Note: Use assets_path to not prevent the browser from caching assets +$config['use_secure_urls'] = false; + +// Specifies the full path of the original HTTP request, either as a real path or +// $_SERVER field name. This might be useful when Roundcube runs behind a reverse +// proxy using a subpath. This is a path part of the URL, not the full URL! +// The reverse proxy config can specify a custom header (e.g. X-Forwarded-Path) containing +// the path under which Roundcube is exposed to the outside world (e.g. /rcube/). +// This header value is then available in PHP with $_SERVER['HTTP_X_FORWARDED_PATH']. +// By default the path comes from 'REDIRECT_SCRIPT_URL', 'SCRIPT_NAME' or 'REQUEST_URI', +// whichever is set (in this order). +$config['request_path'] = null; + +// Allows to define separate server/path for image/js/css files +// Warning: If the domain is different cross-domain access to some +// resources need to be allowed +// Sample: +// +// Header set Access-Control-Allow-Origin "*" +// +$config['assets_path'] = ''; + +// While assets_path is for the browser, assets_dir informs +// PHP code about the location of asset files in filesystem +$config['assets_dir'] = ''; + +// Options passed when creating Guzzle HTTP client, used to fetch remote content +// For example: +// [ +// 'timeout' => 10, +// 'proxy' => 'tcp://localhost:8125', +// ] +$config['http_client'] = []; + +// List of supported subject prefixes for a message reply +// This list is used to clean the subject when replying or sorting messages +$config['subject_reply_prefixes'] = ['Re:']; + +// List of supported subject prefixes for a message forward +// This list is used to clean the subject when forwarding or sorting messages +$config['subject_forward_prefixes'] = ['Fwd:', 'Fw:']; + +// Prefix to use in subject when replying to a message +$config['response_prefix'] = 'Re:'; + +// Prefix to use in subject when forwarding a message +$config['forward_prefix'] = 'Fwd:'; + +// ---------------------------------- +// PLUGINS +// ---------------------------------- + +// List of active plugins (in plugins/ directory) +$config['plugins'] = []; + +// ---------------------------------- +// USER INTERFACE +// ---------------------------------- + +// default messages sort column. Use empty value for default server's sorting, +// or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc' +$config['message_sort_col'] = ''; + +// default messages sort order +$config['message_sort_order'] = 'DESC'; + +// These cols are shown in the message list. Available cols are: +// subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, priority +$config['list_cols'] = ['subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment']; + +// the default locale setting (leave empty for auto-detection) +// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR +$config['language'] = null; + +// use this format for date display (PHP DateTime format) +$config['date_format'] = 'Y-m-d'; + +// give this choice of date formats to the user to select from +// Note: do not use ambiguous formats like m/d/Y +$config['date_formats'] = ['Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y']; + +// use this format for time display (PHP DateTime format) +$config['time_format'] = 'H:i'; + +// give this choice of time formats to the user to select from +$config['time_formats'] = ['G:i', 'H:i', 'g:i a', 'h:i A']; + +// use this format for short date display (derived from date_format and time_format) +$config['date_short'] = 'D H:i'; + +// use this format for detailed date/time formatting (derived from date_format and time_format) +$config['date_long'] = 'Y-m-d H:i'; + +// store draft message is this mailbox +// leave blank if draft messages should not be stored +// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) +$config['drafts_mbox'] = 'Drafts'; + +// store spam messages in this mailbox +// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) +$config['junk_mbox'] = 'Junk'; + +// store sent message is this mailbox +// leave blank if sent messages should not be stored +// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) +$config['sent_mbox'] = 'Sent'; + +// move messages to this folder when deleting them +// leave blank if they should be deleted directly +// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) +$config['trash_mbox'] = 'Trash'; + +// automatically create the above listed default folders on user login +$config['create_default_folders'] = false; + +// protect the default folders from renames, deletes, and subscription changes +$config['protect_default_folders'] = true; + +// Disable localization of the default folder names listed above +$config['show_real_foldernames'] = false; + +// if in your system 0 quota means no limit set this option to true +$config['quota_zero_as_unlimited'] = false; + +// Make use of the built-in spell checker. +$config['enable_spellcheck'] = false; + +// Enables spellchecker exceptions dictionary. +// Setting it to 'shared' will make the dictionary shared by all users. +$config['spellcheck_dictionary'] = false; + +// Set the spell checking engine. Possible values: +// - 'googie' - the default (also used for connecting to Nox Spell Server, see 'spellcheck_uri' setting) +// - 'pspell' - requires the PHP Pspell module and aspell installed +// - 'enchant' - requires the PHP Enchant module +// - 'atd' - install your own After the Deadline server or check with the people at https://www.afterthedeadline.com before using their API +// Since Google shut down their public spell checking service, the default settings +// connect to https://spell.roundcube.net which is a hosted service provided by Roundcube. +// You can connect to any other googie-compliant service by setting 'spellcheck_uri' accordingly. +$config['spellcheck_engine'] = 'googie'; + +// For locally installed Nox Spell Server or After the Deadline services, +// please specify the URI to call it. +// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or +// the After the Deadline package from https://www.afterthedeadline.com. +// Leave empty to use the public API of service.afterthedeadline.com +$config['spellcheck_uri'] = ''; + +// These languages can be selected for spell checking. +// Configure as a PHP style hash array: ['en'=>'English', 'de'=>'Deutsch']; +// Leave empty for default set of available language. +$config['spellcheck_languages'] = null; + +// Makes that words with all letters capitalized will be ignored (e.g. GOOGLE) +$config['spellcheck_ignore_caps'] = false; + +// Makes that words with numbers will be ignored (e.g. g00gle) +$config['spellcheck_ignore_nums'] = false; + +// Makes that words with symbols will be ignored (e.g. g@@gle) +$config['spellcheck_ignore_syms'] = false; + +// Number of lines at the end of a message considered to contain the signature. +// Increase this value if signatures are not properly detected and colored +$config['sig_max_lines'] = 15; + +// don't let users set pagesize to more than this value if set +$config['max_pagesize'] = 200; + +// Minimal value of user's 'refresh_interval' setting (in seconds) +$config['min_refresh_interval'] = 60; + +// Specifies for how many seconds the Undo button will be available +// after object delete action. Currently used with supporting address book sources. +// Setting it to 0, disables the feature. +$config['undo_timeout'] = 0; + +// A static list of canned responses which are immutable for the user +$config['compose_responses_static'] = [ +// ['name' => 'Canned Response 1', 'text' => 'Static Response One'], +// ['name' => 'Canned Response 2', 'text' => 'Static Response Two'], +]; + +// List of HKP key servers for PGP public key lookups in Enigma/Mailvelope +// Note: Lookup is client-side, so the server must support Cross-Origin Resource Sharing +$config['keyservers'] = ['keys.openpgp.org']; + +// Enables use of the Main Keyring in Mailvelope? If disabled, a per-site keyring +// will be used. This is set to false for backwards compatibility. +$config['mailvelope_main_keyring'] = false; + +// Mailvelope RSA bit size for newly generated keys, either 2048 or 4096. +// It maybe desirable to use 2048 for sites with many mobile users. +$config['mailvelope_keysize'] = 4096; + +// Html2Text link handling options: +// 0 - links will be removed +// 1 - a list of link URLs should be listed at the end of the text (default) +// 2 - link should be displayed to the original point in the text they appeared +$config['html2text_links'] = 1; + +// Html2Text text width. Maximum width of the formatted text, in columns. Default: 75. +$config['html2text_width'] = 75; + +// ---------------------------------- +// ADDRESSBOOK SETTINGS +// ---------------------------------- + +// This indicates which type of address book to use. Possible choices: +// 'sql' - built-in sql addressbook enabled (default), +// '' - built-in sql addressbook disabled. +// Still LDAP or plugin-added addressbooks will be available. +// BC Note: The value can actually be anything except 'sql', it does not matter. +$config['address_book_type'] = 'sql'; + +// In order to enable public ldap search, configure an array like the Verisign +// example further below. if you would like to test, simply uncomment the example. +// Array key must contain only safe characters, ie. a-zA-Z0-9_ +$config['ldap_public'] = []; + +// If you are going to use LDAP for individual address books, you will need to +// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it. +// +// The recommended directory structure for LDAP is to store all the address book entries +// under the users main entry, e.g.: +// +// o=root +// ou=people +// uid=user@domain +// mail=contact@contactdomain +// +// So the base_dn would be uid=%fu,ou=people,o=root +// The bind_dn would be the same as based_dn or some super user login. +/* + * example config for Verisign directory + * +$config['ldap_public']['Verisign'] = [ + 'name' => 'Verisign.com', + // Replacement variables supported in host names: + // %h - user's IMAP hostname + // %n - hostname ($_SERVER['SERVER_NAME']) + // %t - hostname without the first part + // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) + // %z - IMAP domain (IMAP hostname without the first part) + // For example %n = mail.domain.tld, %t = domain.tld + // Note: Host can also be a full URI e.g. ldaps://hostname.local:636 (for SSL) + // Note: If port number is omitted, it will be set to 636 (for ldaps://) or 389 otherwise. + // Note: To enable TLS use tls:// prefix + 'hosts' => array('directory.verisign.com:389'), + 'ldap_version' => 3, // using LDAPv3 + 'network_timeout' => 10, // The timeout (in seconds) for connect + bind attempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x + 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. + // When 'user_specific' is enabled following variables can be used in base_dn/bind_dn config: + // %fu - The full username provided, assumes the username is an email + // address, uses the username_domain value if not an email address. + // %u - The username prior to the '@'. + // %d - The domain name after the '@'. + // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" + // %dn - DN found by ldap search when search_filter/search_base_dn are used + 'base_dn' => '', + 'bind_dn' => '', + 'bind_pass' => '', + // It's possible to bind for an individual address book + // The login name is used to search for the DN to bind with + 'search_base_dn' => '', + 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))' + // DN and password to bind as before searching for bind DN, if anonymous search is not allowed + 'search_bind_dn' => '', + 'search_bind_pw' => '', + // Base DN and filter used for resolving the user's domain root DN which feeds the %dc variables + // Leave empty to skip this lookup and derive the root DN from the username domain + 'domain_base_dn' => '', + 'domain_filter' => '', + // Optional map of replacement strings => attributes used when binding for an individual address book + 'search_bind_attrib' => [], // e.g. ['%udc' => 'ou'] + // Default for %dn variable if search doesn't return DN value + 'search_dn_default' => '', + // Optional authentication identifier to be used as SASL authorization proxy + // bind_dn need to be empty + 'auth_cid' => '', + // SASL authentication method (for proxy auth), e.g. DIGEST-MD5 + 'auth_method' => '', + // Indicates if the addressbook shall be hidden from the list. + // With this option enabled you can still search/view contacts. + 'hidden' => false, + // Indicates if the addressbook shall not list contacts but only allows searching. + 'searchonly' => false, + // Indicates if we can write to the LDAP directory or not. + // If writable is true then these fields need to be populated: + // LDAP_Object_Classes, required_fields, LDAP_rdn + 'writable' => false, + // To create a new contact these are the object classes to specify + // (or any other classes you wish to use). + 'LDAP_Object_Classes' => ['top', 'inetOrgPerson'], + // The RDN field that is used for new entries, this field needs + // to be one of the search_fields, the base of base_dn is appended + // to the RDN to insert into the LDAP directory. + 'LDAP_rdn' => 'cn', + // The required attributes needed to build a new contact as required by + // the object classes (can include additional fields not required by the object classes). + 'required_fields' => ['cn', 'sn', 'mail'], + // The attributes used when searching with "All fields" option + // If empty, attributes for name, surname, firstname and email fields will be used + 'search_fields' => ['mail', 'cn'], + // mapping of contact fields to directory attributes + // 1. for every attribute one can specify the number of values (limit) allowed. + // default is 1, a wildcard * means unlimited + // 2. another possible parameter is separator character for composite fields + // 3. it's possible to define field format for write operations, e.g. for date fields + // example: 'birthday:date[YmdHis\\Z]' + 'fieldmap' => [ + // Roundcube => LDAP:limit + 'name' => 'cn', + 'surname' => 'sn', + 'firstname' => 'givenName', + 'jobtitle' => 'title', + 'email' => 'mail:*', + 'phone:home' => 'homePhone', + 'phone:work' => 'telephoneNumber', + 'phone:mobile' => 'mobile', + 'phone:pager' => 'pager', + 'phone:workfax' => 'facsimileTelephoneNumber', + 'street' => 'street', + 'zipcode' => 'postalCode', + 'region' => 'st', + 'locality' => 'l', + // if you country is a complex object, you need to configure 'sub_fields' below + 'country' => 'c', + 'organization' => 'o', + 'department' => 'ou', + 'jobtitle' => 'title', + 'notes' => 'description', + 'photo' => 'jpegPhoto', + // these currently don't work: + // 'manager' => 'manager', + // 'assistant' => 'secretary', + ], + // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country' + 'sub_fields' => [], + // Generate values for the following LDAP attributes automatically when creating a new record + 'autovalues' => [ + // 'uid' => 'md5(microtime())', // You may specify PHP code snippets which are then eval'ed + // 'mail' => '{givenname}.{sn}@mydomain.com', // or composite strings with placeholders for existing attributes + ], + 'sort' => 'cn', // The field to sort the listing by. + 'scope' => 'sub', // search mode: sub|base|list + 'filter' => '(objectClass=inetOrgPerson)', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act + 'fuzzy_search' => true, // server allows wildcard search + 'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it) + 'vlv_search' => false, // Use Virtual List View functions for autocompletion searches (if server supports it) + 'numsub_filter' => '(objectClass=organizationalUnit)', // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting + 'config_root_dn' => 'cn=config', // Root DN to search config entries (e.g. vlv indexes) + 'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit. + 'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit. + 'referrals' => false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups + 'dereference' => 0, // Sets the LDAP_OPT_DEREF option. One of: LDAP_DEREF_NEVER, LDAP_DEREF_SEARCHING, LDAP_DEREF_FINDING, LDAP_DEREF_ALWAYS + // Used where addressbook contains aliases to objects elsewhere in the LDAP tree. + + // definition for contact groups (uncomment if no groups are supported) + // for the groups base_dn, the user replacements %fu, %u, %d and %dc work as for base_dn (see above) + // if the groups base_dn is empty, the contact base_dn is used for the groups as well + // -> in this case, assure that groups and contacts are separated due to the concerning filters! + 'groups' => [ + 'base_dn' => '', + 'scope' => 'sub', // Search mode: sub|base|list + 'filter' => '(objectClass=groupOfNames)', + 'object_classes' => ['top', 'groupOfNames'], // Object classes to be assigned to new groups + 'member_attr' => 'member', // Name of the default member attribute, e.g. uniqueMember + 'name_attr' => 'cn', // Attribute to be used as group name + 'email_attr' => 'mail', // Group email address attribute (e.g. for mailing lists) + 'member_filter' => '(objectclass=*)', // Optional filter to use when querying for group members + 'vlv' => false, // Use VLV controls to list groups + 'class_member_attr' => [ // Mapping of group object class to member attribute used in these objects + 'groupofnames' => 'member', + 'groupofuniquenames' => 'uniquemember' + ], + ], + // this configuration replaces the regular groups listing in the directory tree with + // a hard-coded list of groups, each listing entries with the configured base DN and filter. + // if the 'groups' option from above is set, it'll be shown as the first entry with the name 'Groups' + 'group_filters' => [ + 'departments' => [ + 'name' => 'Company Departments', + 'scope' => 'list', + 'base_dn' => 'ou=Groups,dc=mydomain,dc=com', + 'filter' => '(|(objectclass=groupofuniquenames)(objectclass=groupofurls))', + 'name_attr' => 'cn', + ], + 'customers' => [ + 'name' => 'Customers', + 'scope' => 'sub', + 'base_dn' => 'ou=Customers,dc=mydomain,dc=com', + 'filter' => '(objectClass=inetOrgPerson)', + 'name_attr' => 'sn', + ], + ], +]; +*/ + +// An ordered array of the ids of the addressbooks that should be searched +// when populating address autocomplete fields server-side. ex: ['sql','Verisign']; +$config['autocomplete_addressbooks'] = ['sql']; + +// The minimum number of characters required to be typed in an autocomplete field +// before address books will be searched. Most useful for LDAP directories that +// may need to do lengthy results building given overly-broad searches +$config['autocomplete_min_length'] = 1; + +// Number of parallel autocomplete requests. +// If there's more than one address book, n parallel (async) requests will be created, +// where each request will search in one address book. By default (0), all address +// books are searched in one request. +$config['autocomplete_threads'] = 0; + +// Max. number of entries in autocomplete popup. Default: 15. +$config['autocomplete_max'] = 15; + +// show address fields in this order +// available placeholders: {street}, {locality}, {zipcode}, {country}, {region} +$config['address_template'] = '{street}
{locality} {zipcode}
{country} {region}'; + +// Matching mode for addressbook search (including autocompletion) +// 0 - partial (*abc*), default +// 1 - strict (abc) +// 2 - prefix (abc*) +// Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode +$config['addressbook_search_mode'] = 0; + +// List of fields used on contacts list and for autocompletion searches +// Warning: These are field names not LDAP attributes (see 'fieldmap' setting)! +$config['contactlist_fields'] = ['name', 'firstname', 'surname', 'email']; + +// Template of contact entry on the autocompletion list. +// You can use contact fields as: name, email, organization, department, etc. +// See program/actions/contacts/index.php for a list +$config['contact_search_name'] = '{name} <{email}>'; + +// Contact mode. If your contacts are mostly business, switch it to 'business'. +// This will prioritize form fields related to 'work' (instead of 'home'). +// Default: 'private'. +$config['contact_form_mode'] = 'private'; + +// The addressbook source to store automatically collected recipients in. +// Default: true (the built-in "Collected recipients" addressbook, source id = '1') +// Note: It can be set to any writeable addressbook, e.g. 'sql' +$config['collected_recipients'] = true; + +// The addressbook source to store trusted senders in. +// Default: true (the built-in "Trusted senders" addressbook, source id = '2') +// Note: It can be set to any writeable addressbook, e.g. 'sql' +$config['collected_senders'] = true; + + +// ---------------------------------- +// USER PREFERENCES +// ---------------------------------- + +// Use this charset as fallback for message decoding +$config['default_charset'] = 'ISO-8859-1'; + +// Skin name: folder from skins/ +$config['skin'] = 'elastic'; + +// Limit skins available for the user. +// Note: When not empty, it should include the default skin set in 'skin' option. +$config['skins_allowed'] = []; + +// Enables using standard browser windows (that can be handled as tabs) +// instead of popup windows +$config['standard_windows'] = false; + +// show up to X items in messages list view +$config['mail_pagesize'] = 50; + +// show up to X items in contacts list view +$config['addressbook_pagesize'] = 50; + +// sort contacts by this col (preferably either one of name, firstname, surname) +$config['addressbook_sort_col'] = 'surname'; + +// The way how contact names are displayed in the list. +// 0: prefix firstname middlename surname suffix (only if display name is not set) +// 1: firstname middlename surname +// 2: surname firstname middlename +// 3: surname, firstname middlename +$config['addressbook_name_listing'] = 0; + +// use this timezone to display date/time +// valid timezone identifiers are listed here: php.net/manual/en/timezones.php +// 'auto' will use the browser's timezone settings +$config['timezone'] = 'auto'; + +// prefer displaying HTML messages +$config['prefer_html'] = true; + +// Display remote resources (inline images, styles) in HTML messages. Default: 0. +// 0 - Never, always ask +// 1 - Allow from my contacts (all writeable addressbooks + collected senders and recipients) +// 2 - Always allow +// 3 - Allow from trusted senders only +$config['show_images'] = 0; + +// open messages in new window +$config['message_extwin'] = false; + +// open message compose form in new window +$config['compose_extwin'] = false; + +// compose html formatted messages by default +// 0 - never, +// 1 - always, +// 2 - on reply to HTML message, +// 3 - on forward or reply to HTML message +// 4 - always, except when replying to plain text message +$config['htmleditor'] = 0; + +// save copies of compose messages in the browser's local storage +// for recovery in case of browser crashes and session timeout. +$config['compose_save_localstorage'] = true; + +// show pretty dates as standard +$config['prettydate'] = true; + +// save compose message every 300 seconds (5min) +$config['draft_autosave'] = 300; + +// Interface layout. Default: 'widescreen'. +// 'widescreen' - three columns +// 'desktop' - two columns, preview on bottom +// 'list' - two columns, no preview +$config['layout'] = 'widescreen'; + +// Mark as read when viewing a message (delay in seconds) +// Set to -1 if messages should not be marked as read +$config['mail_read_time'] = 0; + +// Clear Trash on logout. Remove all messages or only older than N days. +// Supported values: false, true, 30, 60, 90. Default: false. +$config['logout_purge'] = false; + +// Compact INBOX on logout +$config['logout_expunge'] = false; + +// Display attached images below the message body +$config['inline_images'] = true; + +// Encoding of long/non-ascii attachment names: +// 0 - Full RFC 2231 compatible +// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default) +// 2 - Full 2047 compatible +$config['mime_param_folding'] = 1; + +// Set true if deleted messages should not be displayed +// This will make the application run slower +$config['skip_deleted'] = false; + +// Set true to Mark deleted messages as read as well as deleted +// False means that a message's read status is not affected by marking it as deleted +$config['read_when_deleted'] = true; + +// Set to true to never delete messages immediately +// Use 'Purge' to remove messages marked as deleted +$config['flag_for_deletion'] = false; + +// Default interval for auto-refresh requests (in seconds) +// These are requests for system state updates e.g. checking for new messages, etc. +// Setting it to 0 disables the feature. +$config['refresh_interval'] = 60; + +// If true all folders will be checked for recent messages +$config['check_all_folders'] = false; + +// If true, after message/contact delete/move, the next message/contact will be displayed +$config['display_next'] = true; + +// Default messages listing mode. One of 'threads' or 'list'. +$config['default_list_mode'] = 'list'; + +// 0 - Do not expand threads +// 1 - Expand all threads automatically +// 2 - Expand only threads with unread messages +$config['autoexpand_threads'] = 0; + +// When replying: +// -1 - don't cite the original message +// 0 - place cursor below the original message +// 1 - place cursor above original message (top posting) +// 2 - place cursor above original message (top posting), but do not indent the quote +$config['reply_mode'] = 0; + +// When replying strip original signature from message +$config['strip_existing_sig'] = true; + +// Show signature: +// 0 - Never +// 1 - Always +// 2 - New messages only +// 3 - Forwards and Replies only +$config['show_sig'] = 1; + +// By default the signature is placed depending on cursor position (reply_mode). +// Sometimes it might be convenient to start the reply on top but keep +// the signature below the quoted text (sig_below = true). +$config['sig_below'] = false; + +// Enables adding of standard separator to the signature +$config['sig_separator'] = true; + +// Use MIME encoding (quoted-printable) for 8bit characters in message body +$config['force_7bit'] = false; + +// Default fields configuration for mail search. +// The array can contain a per-folder list of header fields which should be considered when searching +// The entry with key '*' stands for all folders which do not have a specific list set. +// Supported fields: subject, from, to, cc, bcc, replyto, followupto, body, text. +// Please note that folder names should to be in sync with $config['*_mbox'] options +$config['search_mods'] = null; // Example: ['*' => ['subject'=>1, 'from'=>1], 'Sent' => ['subject'=>1, 'to'=>1]]; + +// Defaults of the addressbook search field configuration. +$config['addressbook_search_mods'] = null; // Example: ['name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1]; + +// Directly delete messages in Junk instead of moving to Trash +$config['delete_junk'] = false; + +// Behavior if a received message requests a message delivery notification (read receipt) +// 0 = ask the user, +// 1 = send automatically, +// 2 = ignore (never send or ask) +// 3 = send automatically if sender is in my contacts, otherwise ask the user +// 4 = send automatically if sender is in my contacts, otherwise ignore +// 5 = send automatically if sender is a trusted sender, otherwise ask the user +// 6 = send automatically if sender is a trusted sender, otherwise ignore +$config['mdn_requests'] = 0; + +// Return receipt checkbox default state +$config['mdn_default'] = 0; + +// Delivery Status Notification checkbox default state +$config['dsn_default'] = 0; + +// Place replies in the folder of the message being replied to +$config['reply_same_folder'] = false; + +// Sets default mode of Forward feature to "forward as attachment" +$config['forward_attachment'] = false; + +// Defines address book (internal index) to which new contacts will be added +// By default it is the first writeable addressbook. +// Note: Use '0' for built-in address book. +$config['default_addressbook'] = null; + +// Enables spell checking before sending a message. +$config['spellcheck_before_send'] = false; + +// Skip alternative email addresses in autocompletion (show one address per contact) +$config['autocomplete_single'] = false; + +// Default font for composed HTML message. +// Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New, +// Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana +$config['default_font'] = 'Verdana'; + +// Default font size for composed HTML message. +// Supported sizes: 8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt +$config['default_font_size'] = '10pt'; + +// Enables display of email address with name instead of a name (and address in title) +$config['message_show_email'] = false; + +// Default behavior of Reply-All button: +// 0 - Reply-All always +// 1 - Reply-List if mailing list is detected +$config['reply_all_mode'] = 0; diff --git a/config/local.inc.php b/config/local.inc.php new file mode 100644 index 0000000..485c3bb --- /dev/null +++ b/config/local.inc.php @@ -0,0 +1,44 @@ + 'application/vnd.ms-excel', + 'xlm' => 'application/vnd.ms-excel', + 'xla' => 'application/vnd.ms-excel', + 'xlc' => 'application/vnd.ms-excel', + 'xlt' => 'application/vnd.ms-excel', + 'xlw' => 'application/vnd.ms-excel', + 'pdf' => 'application/pdf', + 'ppt' => 'application/vnd.ms-powerpoint', + 'pps' => 'application/vnd.ms-powerpoint', + 'pot' => 'application/vnd.ms-powerpoint', + 'doc' => 'application/msword', + 'dot' => 'application/msword', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'otf' => 'application/vnd.oasis.opendocument.formula-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'otm' => 'application/vnd.oasis.opendocument.text-master', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'oth' => 'application/vnd.oasis.opendocument.text-web', + 'docm' => 'application/vnd.ms-word.document.macroEnabled.12', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xps' => 'application/vnd.ms-xpsdocument', + 'rar' => 'application/x-rar-compressed', + '7z' => 'application/x-7z-compressed', + 's7z' => 'application/x-7z-compressed', + 'vcf' => 'text/vcard', + 'ics' => 'text/calendar', +]; diff --git a/plugins/identity_switch/.gitattributes b/plugins/identity_switch/.gitattributes new file mode 100644 index 0000000..0b9f002 --- /dev/null +++ b/plugins/identity_switch/.gitattributes @@ -0,0 +1,8 @@ +* text=auto + +*.sql text +*.php text +*.inc text +*.js text +*.md text +*.php.dist text \ No newline at end of file diff --git a/plugins/identity_switch/Changes.md b/plugins/identity_switch/Changes.md new file mode 100644 index 0000000..fa6f175 --- /dev/null +++ b/plugins/identity_switch/Changes.md @@ -0,0 +1,276 @@ +# Changelog identity switch plugin + +## Release 1.1.12 + +- Added: Additional interegre cast when loading parameter "refresh_interval" from RC +- Chaged: Removing # of unread mail from selected identity when switching + +## Release 1.1.11 + +- Changed: Active identity is now also show in list of selctable identities + +## Release 1.1.10 + +- Changed: Updates to menu bar + +## Release 1.1.9 + +- Fixed: Typo in identity_switch_newmails.php:88 + +## Release 1.1.8 + +- Fixed: Typo in identity_switch_newmails.php:88 +- Added: Object check in identity_switch.php:523 +- Added: Sleep() call to create_menu() - was too fast + +## Release 1.1.7 + +- Update: Mariadb version 10.6.19 support + +## Release 1.1.6 + +- Fixed: Typo in identity_switch.php + +## Release 1.1.5 + +- Added: Debug section in README.MD +- Added: Configuration parameter 'wait' + +## Release 1.1.4 + +- Fixed: Closing stream error +- Added: Update of unseen couter from leaving identity +- Added: Cast 'newmail_check' variable to integer + +## Release 1.1.3 + +- Changed: Updating newmail count on identity switch improved + +## Release 1.1.2 + +- Fixed: Typo in catch_newmails() + +## Release 1.1.1 + +- Added: Possibility to create/edit default identity label for drop down menu +- Fixed: Saving notification mode for default identity + +## Release 1.1.0 + +- Changed: README.MD +- Changed: SQL scripts + +## Release 1.1 + +- Changed: Preconfiguration of identity settings modified +- Fixed: Disabled identities now ignored +- Fixed: Unseen count sometimes wrong, when switching identity +- Fixed: Some typos in code +- Changed renamed from identy_switch to identity_switch +- Fixed: Modification / deletion of default identity in setting handled properly + +## Release 1.0.45 + +- Fixed: 'Delay' not set in identity_switch_newmail.php + +## Release 1.0.44 + +- Added: New mail check delay configuration parameter +- Fixed: Logging in identity_switch_newmail.php + +## Release 1.0.43 + +- Fixed: php8.1-fpm.sock break down resulting in missing return records + +## Release 1.0.41 + +- Fixed: PHP warning regarding missing special folders + +## Release 1.0.40 + +- Fixed: PHP warning regarding missing special folders + +## Release 1.0.39 + +- Fixed: PHP warning regarding missing special folders + +## Release 1.0.38 + +- Fixed: Unssen counter return from catch casted to integer. + +## Release 1.0.37 + +- Fixed: INSTALL_PATH in identity_switch_newmails.php + +## Release 1.0.36 + +- Fixed: In classic skin, selection list of identities was not in foreground + +## Release 1.0.35 + +- Fixed: INSTALL_PATH in identity_switch_newmails.php +- Changed: Position of dropdown in classic skin + +## Release 1.0.34 + +- Added: Some more comments in config.inc.php.dist +- Fixed: In some cases "special folders" were empty. Fix will handle. + +## Release 1.0.33 + +- Fixed: PHP Warning in identity_switch.php:363 + +## Release 1.0.32 + +- Changed: "imap_pwd" now 128 bytes long + +## Release 1.0.31 + +- Fixed: Hostname instead of identity label in desktop test notification shown + +## Release 1.0.30 + +- Added: Debug support extended +- Added: New mail check now waiting for data file + +## Release 1.0.29 + +- Fixed: Loop error in ident_switch_newmail.php +- Fixed: Usage of special characters '%' for SMTP hosts in config/config.inc.php + +## Release 1.0.28 + +- Added: Mentioning limitiations in README.md + +## Release 1.0.27 + +- Fixed: 'interval' not loaded when creating new identity +- Fixed: Some config.php.dist parameter not set as default for identity + +## Release 1.0.26 + +- Added: IMAP folder delimiter configuration parameter +- Added: Wildcard for domain in configuration parameter +- Fixed: Typo in README.md + +## Release 1.0.25 + +- French translation provided by @rglemaire + +## Release 1.0.24 + +- Fixed: Bug in preferences (identity edit) +- Fixed: Bug when trying to send mails with default identity + +## Release 1.0.23 + +- Skipped + +## Release 1.0.22 + +- Skipped + +## Release 1.0.21 + +- Fixed: Minor bug in refresh interval +- Added: Debug configuration option + +## Release 1.0.20 + +- Fixed: Special folder handling +- Fxied: "Check all folders" flag not accepted + +## Release 1.0.19 + +- Fixed isse #14: Bug in composer.json + +## Release 1.0.18 + +- Fixed issue #8: CodeShakingSheep pull request merged to fix MySQL DB table creation for migration from ident_switch plugin +- Fixed issue #9: Protocol selection for SMTP now possible +- Fixed issue #10: CodeShakingSheep pull request merged to fix ident_switch migration DB INSERT statement +- Fixed issue #13: PHP 8.1 warnings for 'show_real_foldernames' +- Fixed issue #13: PHP 8.1 warnings for unknown special folder names + +## Release 1.0.17 + +- identityswitch menu is now automatically closed if user clicks somewhere on screen + +## Release 1.0.15 + +- Bug fixed for 'show_real_foldernames'. +- Special message before record has been created added. + +## Release 1.0.14 + +- Error message prefixed by "idsw". +- If identity is set as default, hen disable identity_switch handling. +- If a new record is created, it is not possible to return any error message due to RoundCube design. +- Fixed some error messages. + +## Release 1.0.13 + +- Thank to https://github.com/HLFH . +- type 'tsl' fixed to 'tls'. +- some README.MD types fixed. +- support for SMTP array in config.inc.php ($config['smtp_host']). + +## Release 1.0.12 + +- 'dont_override' option documented. +- Bug fixed when changing standard identity name. +- Some bugs fixed when trying to edit identity record. + +## Release 1.0.11 + +- Some typos fixed. + +## Release 1.0.10 + +- When switching identity unseen counter update is forced. + +## Release 1.0.9 + +- Notification handling slightly modified. + +## Release 1.0.8 + +- Some fixes to README.md. + +## Release 1.0.7 + +- Unseen count on active account moved to identity_switch_do_switch(). + +## Release 1.0.6 + +- Fixing some unread counter problems. +- Bug in SQlite and postgres SQL files. + +## Release 1.0.5 + +- Some more changes to CSS file. +- Changed CSS and JS compressor. +- Creation of identity selection menu restricted to mail template. + +## Release 1.0.4 + +- Function create_menu() moved back to identity_switch.php. + +## Release 1.0.3 + +- Updates to CSS files. + +## Release 1.0.2 + +- Updates to CSS files. + +## Release 1.0.1 + +- SMTP not working properly for default account. + +## Release 1.0.0 + +- Code completly rewritten. +- New-mail check added. +- Ntification about new mail added. + diff --git a/plugins/identity_switch/LICENSE b/plugins/identity_switch/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/plugins/identity_switch/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/plugins/identity_switch/README.md b/plugins/identity_switch/README.md new file mode 100644 index 0000000..ae17580 --- /dev/null +++ b/plugins/identity_switch/README.md @@ -0,0 +1,127 @@ +# identity switch plugin for Roundcube + +![](https://img.shields.io/packagist/v/toteph42/identity_switch.svg) +![](https://img.shields.io/packagist/l/toteph42/identity_switch.svg) +![](https://img.shields.io/packagist/dt/toteph42/identity_switch.svg) + +This plugin is based on the [ident_switch](https://github.com/dougluce/ident_switch "ident_switch") plugin. It is completly rewritten and additional features have been added. + +This plugin allows users to switch between different accounts in a single Roundcube session like this: + +![Screenshot example](./assets/Pic01.png "Identity selection") + +### Where to start ### +* In settings interface create new identity. +* For all identities except default you will see new section of settings - "Data of your identity" (see screenshot below). Enter data required to connect to remote server. Don't forget to check **Enabled** check box. +* After you have created at least one identity with active plugin you will see combobox in the top right corner instead of plain text field with account name. It will allows you to switch to another account. + +### Settings ### + +![Plugin settings](./assets/Pic02.png "Connection settings") + +* **Enabled** - Enables plugin (i.e. account switching) for this identity. +* **Label** - Text that will be displayed in drop down list for this identity. +* **IMAP** + * **Server host name** - Host name for imap server. If left blank 'localhost' will be used. + * **Encryption** - Connection security (None, SSL or TLS). + * **Port** - Port on server to connect to. If left blank 143 will be used. + * **Username** - Login used *for IMAP and SMTP servers*. + * **Password** - Password used *for IMAP and SMTP servers*. It's stored encrypted in database. + * **Delimiter** - IMAP folder delimiter. +* **SMTP** + * **Server host name** - Host name for imap server. If left blank 'localhost' will be used. + * **Encryption** - Connection security (None, SSL or TLS). + * **Port** - Port on server to connect to. If left blank 25 will be used. + +### Settings for active identity ### + +![Plugin settings](./assets/Pic04.png "New mail checking") + +If you've selected an identity (or use the default identity), you may change settings for new-mail check cycle in `Settings` -> `Preference` -> `User Interface`. + +![Plugin settings](./assets/Pic05.png "Notification settings") + +If you've selected an identity (or use the default identity), you may change settings for notification settings in `Settings` -> `Preference` -> `Mailbox view`. + +### Additional settings ### + +![Plugin settings](./assets/Pic03.png "Notification settings") + +* **Check all folders...** - Select this option, if you want all folders to be check for new mails. +* **Display browser notification...** - Select this option, if you want to get a changed icon for this site. Please be aware, that the icon will change only one time, even if there a new mails for multiple identities available (until next new-mail check-cycle is started). +* **Display desktop notification...** - Select this option, if you want to get a desktop notification about how many new mails were available. Please be aware, you need to allow your mail server site in your browser configuration to send notifications to your desktop. +* **Close desktop notification** - Specify how many seconds should be visible before it is automatically been closed. +* **Play sound...** - Select this option, if you want a sound notification. Please be aware, that only sound will be played one time only, even if there are new mails for multiple identities available (until next new-mail check cycle is started). If you hear no sound playing, please check your browser settings, if auto-play of sound files is enabled. +* **Refresh...** - Specify the new-mail check cycle in minutes. + +![Plugin settings](./assets/Pic06.png "E-Mail notification") + +If you receive new mails, the number of new mails will be shown in identity selection menue. + +### Configuration ### + +There is a file `config.inc.php.dist` in the plugin directory available with mutiple configuration parameters. This file can be used to specify some configuration settings. Please copy file to `config.inc.php` and change there your settings. + +If you want to change sound, icon or desktop icon, please checkout `alert.mp3`, `alert.ico` and `alert.gif` in sub-directory `assets`. + +### Locking configuration ### + +You may use the `dont_override` configuration option in your **RoundCube** configuration file `config/config.inc.php` to lock some options from being overriden. This plugins supports the following options to be protected: + +* `draft_mbox`, `sent_mbox`, `junk_mbox`, `trash_mbox` - User cannot override preconfigured special folder name. +* `check_all_folders` - User cannot override preconfigured flag to check all folders. +* `newmail_notifier_basic`, `newmail_notifier_desktop`, `newmail_notifier_sound` - User cannot override preconfigured notification setting. + +### Performance ### + +New mail checking is performed in background asynchronously. This has the effect that the new mail counter is not always updated immediately after login - it may take some time before this has been performed. It heavily depends on the number of identities you're using. + +If you've select **Check all folders**, this has a huge impact on the time new-mail checking need to collect information. If you have hundreds of folders in your mail box, each of the boxes will be check for new mails. + +Please don't forget to set `Special Folders` in `Settings` -> `Preferences`. All folders specified there (and their sub-folders) will be excluded from new-mail checking. + +### Version compatibility ### + +* Versions 1.x - for Roundcube v1.6. Requires PHP version >= 8.0.0. + +### Limitations ### + +This plugin only supports `Classic`, `Elatic`, `Larry` and `Hivemail` skin. If you wan't to get another skin to be supoorted, then please contact me. I can add support for other skin if you buy for it. + +### Migration from ident_switch plugin ### + +If you've installed the `ident_switch` plugin, there is a migration file available in `SQL` subdirectory which copies the content of the old table to the new table and deletes the `ident_switch` table. To make this happen, you should first install this plugin (during installation a table `identity_switch` will automatically be created) and then you should appy `SQL/migrate.sql`. + +### Upgrade ### + +If you want to upgrade to this plugin, please be aware, the name of the data base table has changed. In subdirectoy `SQL` ther +are scrpst avaibale to ugrade your installation. These scriüps must called manually (look for `20241122.sql`). This script must be called after installation of `identity_switch` plugin, but before removing `identy_switch` plugin. + +### License ### + +This plugin is released under the [GNU General Public License v3.0](./LICENSE). + +### Debugging ### + +If you encounter problems with plugin, take a look at the option available in `config.inc.php`. + +If you encounter **connection problems**, it is a good idea to enable **RoundCube** available debugging options: + +```php +// Log IMAP conversation to /imap.log or to syslog +$config['imap_debug'] = true; +// Log sent messages to /sendmail.log or to syslog +$config['smtp_log'] = true; + +// Log SMTP conversation to /smtp or to syslog +$config['smtp_debug'] = true; +``` +Then switch to the identity which does not work as expected. In log files you'll see how **RoundCube** is trying to establish connection. + +### Donation ### + +If you like this software and you want support my work, feel free to send me a donation: + + Donate with PayPal + +[[List of changes](./Changes.md)] diff --git a/plugins/identity_switch/SQL/migrate.sql b/plugins/identity_switch/SQL/migrate.sql new file mode 100644 index 0000000..f86f18a --- /dev/null +++ b/plugins/identity_switch/SQL/migrate.sql @@ -0,0 +1,46 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with phpmyadmin + +INSERT INTO identity_switch( + `id`, + `user_id`, + `iid`, + `label`, + `flags`, + `imap_user`, + `imap_pwd`, + `imap_host`, + `imap_port`, + `imap_delim`, + `smtp_host`, + `smtp_port`, + `drafts`, + `sent`, + `junk`, + `trash` +) +SELECT + `id`, + `user_id`, + `iid`, + `label`, + `flags`, + `username`, + `password`, + `imap_host`, + `imap_port`, + `imap_delimiter`, + `smtp_host`, + `smtp_port`, + `drafts_mbox`, + `sent_mbox`, + `junk_mbox`, + `trash_mbox` +FROM + ident_switch; +DROP TABLE IF EXISTS ident_switch; diff --git a/plugins/identity_switch/SQL/mysql.initial.sql b/plugins/identity_switch/SQL/mysql.initial.sql new file mode 100644 index 0000000..69aa9b6 --- /dev/null +++ b/plugins/identity_switch/SQL/mysql.initial.sql @@ -0,0 +1,42 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with phpmyadmin + +CREATE TABLE IF NOT EXISTS `identity_switch`( + `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `user_id` INT(10) UNSIGNED NOT NULL, + `iid` INT(10) UNSIGNED NOT NULL, + `label` VARCHAR(32) NOT NULL, + `flags` INT NOT NULL DEFAULT 0, + `imap_user` VARCHAR(64), + `imap_pwd` VARCHAR(128), + `imap_host` VARCHAR(64), + `imap_port` SMALLINT DEFAULT NULL, + `imap_delim` CHAR(1), + `newmail_check` SMALLINT DEFAULT 300, + `notify_timeout` SMALLINT DEFAULT 10, + `smtp_host` VARCHAR(64), + `smtp_port` SMALLINT DEFAULT NULL, + `drafts` VARCHAR(64) DEFAULT '', + `sent` VARCHAR(64) DEFAULT '', + `junk` VARCHAR(64) DEFAULT '', + `trash` VARCHAR(64) DEFAULT '', + UNIQUE `user_id_label`(`user_id`, `label`), + CONSTRAINT `fk_identity_user_id` + FOREIGN KEY(`user_id`) + REFERENCES `users`(`user_id`) + ON DELETE CASCADE + ON UPDATE CASCADE, + CONSTRAINT `fk_identity_identity_id` + FOREIGN KEY(`iid`) + REFERENCES `identities`(`identity_id`) + ON DELETE CASCADE + ON UPDATE CASCADE, + PRIMARY KEY(`id`), + INDEX `IX_identity_switch_user_id`(`user_id`), + INDEX `IX_identity_switch_iid`(`iid`) +); diff --git a/plugins/identity_switch/SQL/mysql/20241122.sql b/plugins/identity_switch/SQL/mysql/20241122.sql new file mode 100644 index 0000000..0073b73 --- /dev/null +++ b/plugins/identity_switch/SQL/mysql/20241122.sql @@ -0,0 +1,12 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with phpmyadmin + +DROP TABLE IF EXISTS `identity_switch`; +RENAME TABLE + `identy_switch` TO `identity_switch`; + \ No newline at end of file diff --git a/plugins/identity_switch/SQL/postgres.initial.sql b/plugins/identity_switch/SQL/postgres.initial.sql new file mode 100644 index 0000000..c43536d --- /dev/null +++ b/plugins/identity_switch/SQL/postgres.initial.sql @@ -0,0 +1,35 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with: https://sqliteonline.com/ + +CREATE TABLE IF NOT EXISTS identity_switch( + id SERIAL PRIMARY KEY, + user_id INTEGER NOT NULL + REFERENCES users(user_id) + ON DELETE CASCADE ON UPDATE CASCADE, + iid INTEGER NOT NULL + REFERENCES identities(identity_id) + ON DELETE CASCADE ON UPDATE CASCADE UNIQUE, + label VARCHAR(32), + flags INTEGER NOT NULL DEFAULT 0, + imap_user VARCHAR(64), + imap_pwd VARCHAR(128), + imap_host VARCHAR(64), + imap_port SMALLINT DEFAULT 0, + imap_delim CHAR(1), + newmail_check SMALLINT DEFAULT 300, + notify_timeout SMALLINT DEFAULT 10, + smtp_host VARCHAR(64), + smtp_port SMALLINT DEFAULT 0, + drafts VARCHAR(64) DEFAULT '', + sent VARCHAR(64) DEFAULT '', + junk VARCHAR(64) DEFAULT '', + trash VARCHAR(64) DEFAULT '', + UNIQUE (user_id, label) +); + +CREATE INDEX IX_identity_switch_user_id ON identity_switch(user_id); \ No newline at end of file diff --git a/plugins/identity_switch/SQL/postgres/20241122.sql b/plugins/identity_switch/SQL/postgres/20241122.sql new file mode 100644 index 0000000..44f455b --- /dev/null +++ b/plugins/identity_switch/SQL/postgres/20241122.sql @@ -0,0 +1,12 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with: https://sqliteonline.com/ + +DROP TABLE IF EXISTS identity_switch; +ALTER TABLE + identy_switch +RENAME TO identity_switch; diff --git a/plugins/identity_switch/SQL/sqlite.initial.sql b/plugins/identity_switch/SQL/sqlite.initial.sql new file mode 100644 index 0000000..21f336a --- /dev/null +++ b/plugins/identity_switch/SQL/sqlite.initial.sql @@ -0,0 +1,36 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with: https://sqliteonline.com/ + +CREATE TABLE IF NOT EXISTS `identity_switch`( + `id` INTEGER NOT NULL , + `user_id` INTEGER NOT NULL + REFERENCES users(user_id) + ON DELETE CASCADE ON UPDATE CASCADE, + `iid` INTEGER NOT NULL + REFERENCES identities(identity_id) + ON DELETE CASCADE ON UPDATE CASCADE UNIQUE, + `label` TEXT, + `flags` INT NOT NULL DEFAULT 0, + `imap_user` TEXT, + `imap_pwd` TEXT, + `imap_host` TEXT, + `imap_port` SMALLINT DEFAULT 0, + `imap_delim` CHAR(1), + `newmail_check` SMALLINT DEFAULT 300, + `notify_timeout` SMALLINT DEFAULT 10, + `smtp_host` TEXT, + `smtp_port` SMALLINT DEFAULT 0, + `drafts` TEXT DEFAULT '', + `sent` TEXT DEFAULT '', + `junk` TEXT DEFAULT '', + `trash` TEXT DEFAULT '', + UNIQUE (user_id, label) +); + +CREATE INDEX IX_identity_switch_user_id ON identity_switch(user_id); +CREATE INDEX IX_identity_switch_iid on identity_switch(iid); diff --git a/plugins/identity_switch/SQL/sqlite/20241122.sql b/plugins/identity_switch/SQL/sqlite/20241122.sql new file mode 100644 index 0000000..54dae8e --- /dev/null +++ b/plugins/identity_switch/SQL/sqlite/20241122.sql @@ -0,0 +1,12 @@ +-- +-- Identity switch RoundCube Bundle +-- +-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved +-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE +-- +-- Created with: https://sqliteonline.com/ + +DROP TABLE IF EXISTS `identity_switch`; +ALTER TABLE + `identy_switch` RENAME TO `identity_switch`; + \ No newline at end of file diff --git a/plugins/identity_switch/assets/Pic01.png b/plugins/identity_switch/assets/Pic01.png new file mode 100644 index 0000000..a18a652 Binary files /dev/null and b/plugins/identity_switch/assets/Pic01.png differ diff --git a/plugins/identity_switch/assets/Pic02.png b/plugins/identity_switch/assets/Pic02.png new file mode 100644 index 0000000..268ba44 Binary files /dev/null and b/plugins/identity_switch/assets/Pic02.png differ diff --git a/plugins/identity_switch/assets/Pic03.png b/plugins/identity_switch/assets/Pic03.png new file mode 100644 index 0000000..6c97ba7 Binary files /dev/null and b/plugins/identity_switch/assets/Pic03.png differ diff --git a/plugins/identity_switch/assets/Pic04.png b/plugins/identity_switch/assets/Pic04.png new file mode 100644 index 0000000..855ccd4 Binary files /dev/null and b/plugins/identity_switch/assets/Pic04.png differ diff --git a/plugins/identity_switch/assets/Pic05.png b/plugins/identity_switch/assets/Pic05.png new file mode 100644 index 0000000..e1c509e Binary files /dev/null and b/plugins/identity_switch/assets/Pic05.png differ diff --git a/plugins/identity_switch/assets/Pic06.png b/plugins/identity_switch/assets/Pic06.png new file mode 100644 index 0000000..2fccc75 Binary files /dev/null and b/plugins/identity_switch/assets/Pic06.png differ diff --git a/plugins/identity_switch/assets/alert.gif b/plugins/identity_switch/assets/alert.gif new file mode 100644 index 0000000..32bdf52 Binary files /dev/null and b/plugins/identity_switch/assets/alert.gif differ diff --git a/plugins/identity_switch/assets/alert.ico b/plugins/identity_switch/assets/alert.ico new file mode 100644 index 0000000..846176d Binary files /dev/null and b/plugins/identity_switch/assets/alert.ico differ diff --git a/plugins/identity_switch/assets/alert.mp3 b/plugins/identity_switch/assets/alert.mp3 new file mode 100644 index 0000000..34cfb25 Binary files /dev/null and b/plugins/identity_switch/assets/alert.mp3 differ diff --git a/plugins/identity_switch/assets/identity_switch-form.js b/plugins/identity_switch/assets/identity_switch-form.js new file mode 100644 index 0000000..d8d24fe --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch-form.js @@ -0,0 +1,71 @@ +/* + * Identity switch RoundCube Bundle + * + * @copyright (c) 2024 Forian Daeumling, Germany. All right reserved + * @license https://github.com/toteph42/identity_switch/blob/master/LICENSE + */ + +$(function() { + + // Reformat tables + var fld = $('table[class="propform"]'); + fld.attr('class', 'propform cols-sm-6-6'); + var fld = $('td[class="title col-sm-4"]'); + fld.attr('class', 'title col-sm-6'); + var fld = $('td[class="col-sm-8"]'); + fld.attr('class', 'col-sm-6'); + + var fld = $('input[name="_enabled"]'); + if (fld.prop('value') == 0) + fld.prop('checked', false); + + identity_switch_enabled(); +}); + +function identity_switch_enabled() { + + var fld = $('input[name="_enabled"]'); + + if (fld.prop('value') == undefined) + return; + + if (!fld.is(':checked')) { + var val = 0; + var dis = true; + } else { + var val = 1; + var dis = false; + } + + fld.prop('value', val); + $('input[name="_label"]').attr('disabled', dis); + $('input[name="_imap_host"]').attr('disabled', dis); + $('input[name="_imap_port"]').attr('disabled', dis); + $('select[name="_imap_auth"]').attr('disabled', dis); + $('input[name="_imap_user"]').attr('disabled', dis); + $('input[name="_imap_pwd"]').attr('disabled', dis); + $('input[name="_imap_delim"]').attr('disabled', dis); + $('input[name="_smtp_host"]').attr('disabled', dis); + $('input[name="_smtp_port"]').attr('disabled', dis); + $('select[name="_smtp_auth"]').attr('disabled', dis); + $('input[name="_check_all_folder"]').attr('disabled', dis); + $('input[name="_notify_basic"]').attr('disabled', dis); + $('input[name="_notify_desktop"]').attr('disabled', dis); + $('select[name="_notify_timeout"]').attr('disabled', dis); + $('input[name="_notify_sound"]').attr('disabled', dis); + $('select[name="_refresh_interval"]').attr('disabled', dis); + + // Disable all links + $('a[name^="_notify"]').each(function(i, obj) { + if (dis) { + obj.setAttribute('save', obj.getAttribute('onclick')); + obj.removeAttribute('href'); + obj.removeAttribute('onclick'); + } else { + if (obj.getAttribute('save')) + obj.setAttribute('onclick', obj.getAttribute('save')); + obj.setAttribute('href', '#'); + } + }); +} + \ No newline at end of file diff --git a/plugins/identity_switch/assets/identity_switch-form.min.js b/plugins/identity_switch/assets/identity_switch-form.min.js new file mode 100644 index 0000000..0d6d0bc --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch-form.min.js @@ -0,0 +1,2 @@ + +$(function(){var fld=$('table[class="propform"]');fld.attr('class','propform cols-sm-6-6');var fld=$('td[class="title col-sm-4"]');fld.attr('class','title col-sm-6');var fld=$('td[class="col-sm-8"]');fld.attr('class','col-sm-6');var fld=$('input[name="_enabled"]');if(fld.prop('value')==0)fld.prop('checked',false);identity_switch_enabled();});function identity_switch_enabled(){var fld=$('input[name="_enabled"]');if(fld.prop('value')==undefined)return;if(!fld.is(':checked')){var val=0;var dis=true;}else{var val=1;var dis=false;}fld.prop('value',val);$('input[name="_label"]').attr('disabled',dis);$('input[name="_imap_host"]').attr('disabled',dis);$('input[name="_imap_port"]').attr('disabled',dis);$('select[name="_imap_auth"]').attr('disabled',dis);$('input[name="_imap_user"]').attr('disabled',dis);$('input[name="_imap_pwd"]').attr('disabled',dis);$('input[name="_imap_delim"]').attr('disabled',dis);$('input[name="_smtp_host"]').attr('disabled',dis);$('input[name="_smtp_port"]').attr('disabled',dis);$('select[name="_smtp_auth"]').attr('disabled',dis);$('input[name="_check_all_folder"]').attr('disabled',dis);$('input[name="_notify_basic"]').attr('disabled',dis);$('input[name="_notify_desktop"]').attr('disabled',dis);$('select[name="_notify_timeout"]').attr('disabled',dis);$('input[name="_notify_sound"]').attr('disabled',dis);$('select[name="_refresh_interval"]').attr('disabled',dis);$('a[name^="_notify"]').each(function(i,obj){if(dis){obj.setAttribute('save',obj.getAttribute('onclick'));obj.removeAttribute('href');obj.removeAttribute('onclick');}else{if(obj.getAttribute('save'))obj.setAttribute('onclick',obj.getAttribute('save'));obj.setAttribute('href','#');}});} \ No newline at end of file diff --git a/plugins/identity_switch/assets/identity_switch.css b/plugins/identity_switch/assets/identity_switch.css new file mode 100644 index 0000000..eaf6980 --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch.css @@ -0,0 +1,131 @@ +/* + * Identity switch RoundCube Bundle + * + * @copyright (c) 2024 Forian Daeumling, Germany. All right reserved + * @license https://github.com/toteph42/identity_switch/blob/master/LICENSE + */ + +#identity_switch_menu { + margin-right: 0px; + overflow: hidden; + text-overflow: ellipsis; + margin-top: -65px; + font-weight: bold; + padding-left: 2rem; + text-align: left; + width: 240px; + border: 1px solid #ccc !important; + border-radius: .4em; + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat left .75rem center/8px 10px; + top: 10px; + left: 200px; + position: relative; + float: inline-start; +} + +#identity_switch_dropdown { + position: fixed; + z-index: 1; + padding: 0 .5rem 0 0; + min-width: 240px; + max-width: 240px; + will-change: transform; + top: 0; + left: 168px; + margin-left: 0; + margin-top: 18px; + width: 240px; + transform: translate3d(63px, 49px, 0px); + border-bottom-color: rgb(212, 219, 222); + box-shadow: 3px 3px 5px #414141; + max-height: 150px; + overflow-x: hidden; + color: #212529; + display: none; + margin-left: -.5rem; + border-color: #d4dbde; + border-radius: .4rem; + border-bottom: 1px solid #f7f7f7; + background-color: rgba(255, 255, 255); + font-weight: 400; + line-height: 35px; +} + +#identity_switch_dropdown ul { + list-style: none; + margin: 0; + padding: 0; +} + +#identity_switch_dropdown li { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + position: relative; + left: 0px; + width: 220px; +} + +#identity_switch_dropdown a { + padding: 0 .5rem; + white-space: nowrap; + color: #2c363a; + background: none; +} + +#identity_switch_dropdown li:hover { + background-color: rgb(236, 236, 236); +} + +#identity_switch_dropdown a:hover { + text-decoration: none; +} + +#identity_switch_dropdown .unseen { + position: absolute; + top: 0; + right: 0; + min-width: 2em; + line-height: 1.4rem; + margin: 7.7px 0px 7.7px 0px; + padding: 0 .3em; + border-radius: .4em; + background: #37beff; + color: #fff; + text-align: center; + font-weight: 700; +} + +html.dark-mode #identity_switch_menu { + margin-right: 0px; + overflow: hidden; + text-overflow: ellipsis; + margin-top: 5px; + font-weight: bold; + padding-left: 2rem; + text-align: left; + width: 240px; + border: 1px solid #ccc !important; + border-radius: .4em; + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='beige' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat left .75rem center/8px 10px; + top: 10px; + left: inherit; + position: relative; + float: inline-start; +} + +html.dark-mode #identity_switch_dropdown { + background-color: #343a40; + border-color: #4d6066; + box-shadow: 3px 3px 5px #374549; +} + +html.dark-mode #identity_switch_dropdown a { + color: #c5d1d3; +} + +html.dark-mode #identity_switch_dropdown li:hover { + background-color: #374549; +} + + diff --git a/plugins/identity_switch/assets/identity_switch.js b/plugins/identity_switch/assets/identity_switch.js new file mode 100644 index 0000000..1fb8f31 --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch.js @@ -0,0 +1,241 @@ +/* + * Identity switch RoundCube Bundle + * + * @copyright (c) 2024 Forian Daeumling, Germany. All right reserved + * @license https://github.com/toteph42/identity_switch/blob/master/LICENSE + */ + +$(function() { + $sw = $('#identity_switch_menu'); + isOk = false; + + switch (rcmail.env['skin']) { + case 'larry': + isOk = identity_switch_addCbLarry($sw); + break; + + case 'classic': + isOk = identity_switch_addCbClassic($sw); + break; + + case 'elastic': + case 'hivemail': + isOk = identity_switch_addCbElastic($sw); + + default: + break; + } + + if (isOk) + $sw.show(); +}); + +// Catch all mouse clicks +$(document).click(function(event) { + + // Check for left button + if (event.button == 0) { + var id = event.target.id; + var d = $('#identity_switch_dropdown'); + if (id != 'identity_switch_menu' && !d.is(':hidden')) + d.hide(); + } +}); + +// Plugin initialization +function identity_switch_init() { + rcmail.addEventListener('plugin.identity_switch_notify', identity_switch_notify) + .addEventListener('init', function() { + // Bind to messages list select event, so favicon will be reverted on message preview too + if (rcmail.message_list) + rcmail.message_list.addEventListener('select', identity_switch_stop_notify); + }); +} + +// Set menu position +function identity_switch_addCbLarry($sw) { + var $truName = $('.topright .username'); + + if ($truName.length > 0) { + if ($sw.length > 0) { + $sw.prependTo('#taskbar'); + $truName.hide(); + // Move our selection menu a bit to the right + $('#identity_switch_menu').css('padding-top', '4px').css('padding-bottom', '4px'); + $('#identity_switch_dropdown').css('margin-left', '-92px'); + + return true; + } + } + + return false; +} + +// Set menu position +function identity_switch_addCbClassic($sw) { + var $taskBar = $('#taskbar'); + + if ($taskBar.length > 0) { + $taskBar.prepend($sw); + // Move our selection menu a bit to the right + $('#identity_switch_menu').css('left', '-10px') + .css('top', '-5px'); + $('#identity_switch_dropdown') + .css('left', '190px') + .css('top', '-40px'); + + return true; + } + + return false; +} + +// Set menu position +function identity_switch_addCbElastic($sw) { + var $taskBar = $('.header-title.username'); + + $sw.css('background-color', 'transparent').css('padding','4px 0 0 2rem'); + if ($taskBar.length > 0) { + $taskBar.prepend($sw); + $taskBar.css('margin-left', '20px'); + + // Remove text from + var $node = $('.header-title.username'); + + var newNode = $('<' + $node[0].nodeName + '/>'); + $.each( $node[0].attributes, function ( i, attribute ) { + newNode.attr(attribute.name, attribute.value); + }); + $node.children().each(function(){ + newNode.append(this); + }); + $node.replaceWith(newNode); + + // Move our selection menu a bit to the bottom + $('#identity_switch_menu') + .css('height', '30px') + .css('width', '180px'); + $('#identity_switch_dropdown') + .css('left', '9px') + .css('margin-top', '0'); + + return true; + } + + return false; +} + +// Change userid in composer window to select proper identity +function identity_switch_fixIdent(iid) { + if (parseInt(iid) > 0) + $("#_from").val(iid); +} + +// Open/close menu +function identity_switch_toggle_menu() { + var d = $('#identity_switch_dropdown'); + + if (d.is(':hidden')) { + // reload window to show new mail counter in menu + d.load(location.href + ' #identity_switch_dropdown > *', ''); + d.show(); + $('#messagelist-fixedcopy').css('z-index', 'auto'); + } else + d.hide(); +} + +// Switch identity +function identity_switch_run(iid) { + rcmail.env.unread_counts = {}; + rcmail.http_post('plugin.identity_switch_do', { 'identity_switch_iid': iid }); +} + +// Perform notification +function identity_switch_notify(ctl) { + + var autoplay = decodeURI(ctl[0].autoplay); + var notification = decodeURI(ctl[0].notification); + var title = decodeURI(ctl[0].title); + + for (var i = 1; i < ctl.length; i++) { + var e = $('#identity_switch_opt_' + ctl[i].iid); + if (ctl[i].unseen == '0') + e.text(''); + else + e.text(ctl[i].unseen); + + if (ctl[i].basic !== undefined) + identity_switch_basic(); + if (ctl[i].desktop !== undefined) + identity_switch_desktop(title, ctl[i].desktop.text, ctl[i].desktop.timeout, notification); + if (ctl[i].sound !== undefined) + identity_switch_sound(autoplay); + } +} + +// Stop notification +function identity_switch_stop_notify(prop) +{ + // Revert original favicon + if (rcmail.env.favicon_href && rcmail.env.favicon_changed && (!prop || prop.action != 'check-recent')) { + $('').replaceAll('link[rel="shortcut icon"]'); + rcmail.env.favicon_changed = 0; + } +} + +// Browser notification: window.focus and favicon change +function identity_switch_basic() +{ + var w = rcmail.is_framed() ? window.parent : window; + w.focus(); + + var src = rcmail.assets_path('plugins/identity_switch/assets'); + + // We cannot simply change a href attribute, we must to replace the link element (at least in FF) + var link = $('').attr('href', src + '/alert.ico'); + var olink = $('link[rel="shortcut icon"]', w.document); + if (!rcmail.env.favicon_href) + rcmail.env.favicon_href = olink.attr('href'); + + rcmail.env.favicon_changed = 1; + link.replaceAll(olink); +} + +// Desktop notification +// - Require window.Notification API support (Chrome 22+ or Firefox 22+) +function identity_switch_desktop(title, msg, timeout, errmsg) +{ + if (!('Notification' in window) || window.Notification.permission !== "granted") { + alert(decodeURIComponent(errmsg)); + window.Notification.requestPermission(); + return; + } + + var popup = new window.Notification(decodeURIComponent(title), { + dir: "auto", + lang: "", + body: decodeURIComponent(msg), + icon: rcmail.assets_path('plugins/identity_switch/assets/alert.gif') + }); + popup.onclick = function() { this.close(); }; + setTimeout(function() { popup.close(); }, timeout * 1000); +} + +// Sound notification +function identity_switch_sound(errmsg) { + var src = rcmail.assets_path('plugins/identity_switch/assets/alert'); + + if (!('Notification' in window) || window.Notification.silent) { + alert(decodeURIComponent(errmsg)); + return; + } + + if (!('Navigator' in window) && window.Navigator.getAutoplayPolicy && + window.Navigator.getAutoplayPolicy('mediaelement') != 'allowed') { + alert(decodeURIComponent(errmsg)); + window.Notification.requestPermission(); + return; + } + + new Audio(src + '.mp3').play(); +} \ No newline at end of file diff --git a/plugins/identity_switch/assets/identity_switch.min.css b/plugins/identity_switch/assets/identity_switch.min.css new file mode 100644 index 0000000..435cdbb --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch.min.css @@ -0,0 +1,123 @@ +#identity_switch_menu { + margin-right: 0; + overflow: hidden; + text-overflow: ellipsis; + margin-top: 5px; + font-weight: 700; + padding-left: 2rem; + text-align: left; + width: 240px; + height: 21px; + border: 1px solid #ccc !important; + border-radius: .4em; + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat left .75rem center/8px 10px; + top: -65px; + left: 240px; + position: relative; + float: inline-start +} + +#identity_switch_dropdown { + position: fixed; + z-index: 1; + padding: 0 .5rem 0 0; + /* min-width: 250px; */ + max-width: 260px; + width: 260px; + will-change: transform; + top: 14px; + left: 178px; + margin-left: 0; + margin-top: 0; + transform: translate3d(63px, 49px, 0); + border-bottom-color: #78b3cc; + box-shadow: 0px 3px 5px #414141a1 !important; + max-height: 150px; + overflow-x: hidden; + color: #212529; + display: none; + border-color: #d4dbde; + border-radius: .4rem; + border-bottom: 1px solid #f7f7f7; + background-color: rgba(255, 255, 255); + font-weight: 400; + line-height: 35px +} + +#identity_switch_dropdown ul { + list-style: none; + margin: 0; + padding: 0 +} + +#identity_switch_dropdown li { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + position: relative; + left: 0; + width: 100% +} + +#identity_switch_dropdown a { + padding: 0 .5rem; + white-space: nowrap; + color: #2c363a; + background: 0 0; + text-decoration: none; +} + +#identity_switch_dropdown li:hover { + background-color: #bbe6f8 +} + +#identity_switch_dropdown a:hover { + text-decoration: none +} + +#identity_switch_dropdown .unseen { + position: absolute; + top: 0; + right: 0; + min-width: 2em; + line-height: 1.4rem; + margin: 7.7px 0 7.7px 0; + padding: 0 .3em; + border-radius: .4em; + background: #37beff; + color: #fff; + text-align: center; + font-weight: 700 +} + +html.dark-mode #identity_switch_menu { + margin-right: 0; + overflow: hidden; + text-overflow: ellipsis; + margin-top: 5px; + font-weight: 700; + padding-left: 2rem; + text-align: left; + width: 240px; + border: 1px solid #ccc !important; + border-radius: .4em; + background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='beige' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat left .75rem center/8px 10px; + top: 10px; + left: inherit; + position: relative; + float: inline-start +} + +html.dark-mode #identity_switch_dropdown { + background-color: #343a40; + border-color: #4d6066; + box-shadow: 3px 3px 5px #374549 +} + +html.dark-mode #identity_switch_dropdown a { + color: #c5d1d3 +} + +html.dark-mode #identity_switch_dropdown li:hover { + background-color: #374549 +} \ No newline at end of file diff --git a/plugins/identity_switch/assets/identity_switch.min.js b/plugins/identity_switch/assets/identity_switch.min.js new file mode 100644 index 0000000..db5c91a --- /dev/null +++ b/plugins/identity_switch/assets/identity_switch.min.js @@ -0,0 +1,4 @@ + +$(function(){$sw=$('#identity_switch_menu');isOk=false;switch(rcmail.env['skin']){case'larry':isOk=identity_switch_addCbLarry($sw);break;case'classic':isOk=identity_switch_addCbClassic($sw);break;case'elastic':case'hivemail':isOk=identity_switch_addCbElastic($sw);default:break;}if(isOk)$sw.show();});$(document).click(function(event){if(event.button==0){var id=event.target.id;var d=$('#identity_switch_dropdown');if(id!='identity_switch_menu'&&!d.is(':hidden'))d.hide();}});function identity_switch_init(){rcmail.addEventListener('plugin.identity_switch_notify',identity_switch_notify).addEventListener('init',function(){if(rcmail.message_list)rcmail.message_list.addEventListener('select',identity_switch_stop_notify);});}function identity_switch_addCbLarry($sw){var $truName=$('.topright .username');if($truName.length>0){if($sw.length>0){$sw.prependTo('#taskbar');$truName.hide();$('#identity_switch_menu').css('padding-top','4px').css('padding-bottom','4px');$('#identity_switch_dropdown').css('margin-left','-92px');return true;}}return false;}function identity_switch_addCbClassic($sw){var $taskBar=$('#taskbar');if($taskBar.length>0){$taskBar.prepend($sw);$('#identity_switch_menu').css('left','-10px').css('top','-5px');$('#identity_switch_dropdown').css('left','190px').css('top','-40px');return true;}return false;}function identity_switch_addCbElastic($sw){var $taskBar=$('.header-title.username');$sw.css('background-color','transparent').css('padding','4px 0 0 2rem');if($taskBar.length>0){$taskBar.prepend($sw);$taskBar.css('margin-left','20px');var $node=$('.header-title.username');var newNode=$('<'+$node[0].nodeName+'/>');$.each($node[0].attributes,function(i,attribute){newNode.attr(attribute.name,attribute.value);});$node.children().each(function(){newNode.append(this);});$node.replaceWith(newNode);$('#identity_switch_menu').css('height','30px').css('width','180px');$('#identity_switch_dropdown').css('left','9px').css('margin-top','0');return true;}return false;}function identity_switch_fixIdent(iid){if(parseInt(iid)>0)$("#_from").val(iid);}function identity_switch_toggle_menu(){var d=$('#identity_switch_dropdown');if(d.is(':hidden')){d.load(location.href+' #identity_switch_dropdown > *','');d.show();$('#messagelist-fixedcopy').css('z-index','auto');}else +d.hide();}function identity_switch_run(iid){rcmail.env.unread_counts={};rcmail.http_post('plugin.identity_switch_do',{'identity_switch_iid':iid});}function identity_switch_notify(ctl){var autoplay=decodeURI(ctl[0].autoplay);var notification=decodeURI(ctl[0].notification);var title=decodeURI(ctl[0].title);for(var i=1;i').replaceAll('link[rel="shortcut icon"]');rcmail.env.favicon_changed=0;}}function identity_switch_basic(){var w=rcmail.is_framed()?window.parent:window;w.focus();var src=rcmail.assets_path('plugins/identity_switch/assets');var link=$('').attr('href',src+'/alert.ico');var olink=$('link[rel="shortcut icon"]',w.document);if(!rcmail.env.favicon_href)rcmail.env.favicon_href=olink.attr('href');rcmail.env.favicon_changed=1;link.replaceAll(olink);}function identity_switch_desktop(title,msg,timeout,errmsg){if(!('Notification'in window)||window.Notification.permission!=="granted"){alert(decodeURIComponent(errmsg));window.Notification.requestPermission();return;}var popup=new window.Notification(decodeURIComponent(title),{dir:"auto",lang:"",body:decodeURIComponent(msg),icon:rcmail.assets_path('plugins/identity_switch/assets/alert.gif')});popup.onclick=function(){this.close();};setTimeout(function(){popup.close();},timeout*1000);}function identity_switch_sound(errmsg){var src=rcmail.assets_path('plugins/identity_switch/assets/alert');if(!('Notification'in window)||window.Notification.silent){alert(decodeURIComponent(errmsg));return;}if(!('Navigator'in window)&&window.Navigator.getAutoplayPolicy&&window.Navigator.getAutoplayPolicy('mediaelement')!='allowed'){alert(decodeURIComponent(errmsg));window.Notification.requestPermission();return;}new Audio(src+'.mp3').play();} \ No newline at end of file diff --git a/plugins/identity_switch/composer.json b/plugins/identity_switch/composer.json new file mode 100644 index 0000000..73fea4f --- /dev/null +++ b/plugins/identity_switch/composer.json @@ -0,0 +1,51 @@ +{ + "name" : "toteph42/identity_switch", + "type" : "roundcube-plugin", + "description" : "This plugin allows users to switch between different accounts (and check for new mails) in a single Roundcube session.", + "homepage" : "https://github.com/totep42/identity_switch", + "keywords" : [ + "identity", + "select identity", + "imap", + "smtp", + "mail", + "switch", + "new mail check", + "notify new mail" + ], + "license" : "GPL-3.0+", + "authors" : [{ + "name" : "Florian Däumling", + "email" : "toteph42@github.com", + "role" : "Developer" + } + ], + "repositories" : [{ + "type" : "composer", + "url" : "https://plugins.roundcube.net" + } + ], + "require" : { + "php" : ">=8.0.0", + "roundcube/plugin-installer" : ">=0.1.3", + "ext-ctype" : "*" + }, + "conflict" : { + "elm/identity_smtp" : "*", + "dougluce/ident_switch" : "*" + }, + "support" : { + "issues" : "https://github.com/totep42/identity_switch/issues" + }, + "extra" : { + "roundcube" : { + "min-version" : "1.6", + "sql-dir" : "SQL" + } + }, + "config": { + "allow-plugins": { + "roundcube/plugin-installer": true + } + } +} diff --git a/plugins/identity_switch/config.inc.php b/plugins/identity_switch/config.inc.php new file mode 100644 index 0000000..1af39ad --- /dev/null +++ b/plugins/identity_switch/config.inc.php @@ -0,0 +1,81 @@ + [ + + // IMAP host name, use ssl:// or tls:// notation if needed, for no security use imap:// + // Must always start with scheme. + // If you use '*' as wild card, the domain and tld of the identity is used + // Defaults to 'not specified' + 'imap' => 'imap://imap.domain.tld:447', + + // Folder delimiter + // Defaults to 'not specified' + 'delimiter' => '.', + + // Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part). + // Any other value is treated as 'not specified' (default). + 'user' => 'email', + + // SMTP host name, use ssl:// or tls:// notation if needed, for no security use imap:// + // Must always start with scheme. + // If you use '*' as wild card, the domain and tld of the identity is used + // Defaults to 'not specified' + 'smtp' => 'imap://smtp.domain.tld:130', + ], + + // 'another.tld' => [ + // 'imap' => 'tls://imap.another.tld', + // 'smtp' => 'tls://smtp.another.tld', + // 'user' => 'mbox', + // ], + + // Catch all (if you specify multiple 'catch all', then only first one is used) + // + // '*' => [ + // 'imap' => 'ssl://imap.*', + // 'smtp' => 'tls://smtp.*', + // 'delimiter' => '/', + // ], + + // Allow logging to 'logs/identity_switch.log'. Default is false. + 'logging' => false, + + // Allow new mail checking. Default is true. + 'check' => true, + + // Specify interval for checking of new mails. Default is 5 min. (5 * 60 sec.) + 'interval' => 300, + + // Specify number of microseconds between each new mail check. Default is 0 micoseconds. + // If value is greater than 1000000 (1 second) delay time is rounded to seconds. + 'delay' => 0, + + // Specify no. of retries for reading data from mail server. Default is 10 times. + 'retries' => 10, + + // Max. number of seconds to wait for response from identity_switch_newmails.php + // Defaults to 60 seconds + 'wait' => 60, + + // Enable some debugging messges saved in log file. Default is false + 'debug' => false, +]; + diff --git a/plugins/identity_switch/config.inc.php.dist b/plugins/identity_switch/config.inc.php.dist new file mode 100644 index 0000000..1af39ad --- /dev/null +++ b/plugins/identity_switch/config.inc.php.dist @@ -0,0 +1,81 @@ + [ + + // IMAP host name, use ssl:// or tls:// notation if needed, for no security use imap:// + // Must always start with scheme. + // If you use '*' as wild card, the domain and tld of the identity is used + // Defaults to 'not specified' + 'imap' => 'imap://imap.domain.tld:447', + + // Folder delimiter + // Defaults to 'not specified' + 'delimiter' => '.', + + // Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part). + // Any other value is treated as 'not specified' (default). + 'user' => 'email', + + // SMTP host name, use ssl:// or tls:// notation if needed, for no security use imap:// + // Must always start with scheme. + // If you use '*' as wild card, the domain and tld of the identity is used + // Defaults to 'not specified' + 'smtp' => 'imap://smtp.domain.tld:130', + ], + + // 'another.tld' => [ + // 'imap' => 'tls://imap.another.tld', + // 'smtp' => 'tls://smtp.another.tld', + // 'user' => 'mbox', + // ], + + // Catch all (if you specify multiple 'catch all', then only first one is used) + // + // '*' => [ + // 'imap' => 'ssl://imap.*', + // 'smtp' => 'tls://smtp.*', + // 'delimiter' => '/', + // ], + + // Allow logging to 'logs/identity_switch.log'. Default is false. + 'logging' => false, + + // Allow new mail checking. Default is true. + 'check' => true, + + // Specify interval for checking of new mails. Default is 5 min. (5 * 60 sec.) + 'interval' => 300, + + // Specify number of microseconds between each new mail check. Default is 0 micoseconds. + // If value is greater than 1000000 (1 second) delay time is rounded to seconds. + 'delay' => 0, + + // Specify no. of retries for reading data from mail server. Default is 10 times. + 'retries' => 10, + + // Max. number of seconds to wait for response from identity_switch_newmails.php + // Defaults to 60 seconds + 'wait' => 60, + + // Enable some debugging messges saved in log file. Default is false + 'debug' => false, +]; + diff --git a/plugins/identity_switch/identity_switch.php b/plugins/identity_switch/identity_switch.php new file mode 100644 index 0000000..dc415bc --- /dev/null +++ b/plugins/identity_switch/identity_switch.php @@ -0,0 +1,655 @@ +add_hook('startup', [ $this, 'on_startup' ]); + $this->add_hook('render_page', [ $this, 'on_render_page' ]); + $this->add_hook('smtp_connect', [ $this, 'on_smtp_connect' ]); + $this->add_hook('template_object_composeheaders', [ $this, 'on_object_composeheaders' ]); + $this->register_action('identity_switch_do', [ $this, 'identity_switch_do_switch' ]); + + // preference hooks and actions + parent::init(); + + // notification hooks and action + if ($rc->output instanceof rcmail_output_html) { + $rc->output->add_script('identity_switch_init();', 'head_top'); + $rc->output->include_script('../../plugins/identity_switch/assets/identity_switch.js'); + } + + // new mail hooks and action + $this->add_hook('new_messages', [ $this, 'catch_newmails' ]); + $this->add_hook('refresh', [ $this, 'check_newmails' ]); + $this->add_hook('ready', [ $this, 'check_newmails' ]); + + // LDAP hooks + if ($rc->config->get('ldapAliasSync', null)) + $this->add_hook('storage_connect', [ $this, 'override_ldap_password' ]); + + $this->include_stylesheet('assets/identity_switch.css'); + } + + /** + * Startup script + * + * @param array $args + * @return array + */ + function on_startup(array $args): array + { + $rc = rcmail::get_instance(); + + // not default user? + if (isset($_SESSION['username']) && strcasecmp($rc->user->data['username'], $_SESSION['username']) !== 0) + { + // we are impersonating + $rc->config->set('imap_cache', null); + $rc->config->set('messages_cache', false); + + if ($args['task'] == 'mail') + { + $this->add_texts('localization/'); + $rc->config->set('create_default_folders', false); + } + } + + return $args; + } + + /** + * Dispatch action + * + * @param array $args + * @return array + */ + function on_render_page(array $args): array + { + $rc = rcmail::get_instance(); + + switch ($rc->task) + { + case 'mail': + + $this->add_texts('localization'); + + if (self::get('iid') > 0) + { + if ($args['template'] == 'mail') + { + while (self::get('lock')) + usleep(100); + self::create_menu(); + } + break; + } + + $iid = $rc->user->get_identity(); + $iid = $iid['identity_id']; + + // create defaults for default user + self::get($iid); + + // set default user number + self::set('iid', $iid); + + // collect data for default identity + $i = $rc->user->get_identity(); + self::set($iid, 'label', $i['name']); + self::set($iid, 'flags', self::ENABLED); + + // swap IMAP data + self::set($iid, 'imap_user', $_SESSION['username']); + self::set($iid, 'imap_pwd', $_SESSION['password']); + self::set($iid, 'imap_host', $_SESSION['storage_host']); + self::set($iid, 'imap_port', $_SESSION['storage_port']); + if ($_SESSION['storage_ssl'] == 'ssl') + self::set($iid, 'flags', self::get($iid, 'flags') | self::IMAP_SSL); + if ($_SESSION['storage_ssl'] == 'tls') + self::set($iid, 'flags', self::get($iid, 'flags') | self::IMAP_TLS); + self::set($iid, 'imap_delim', $_SESSION['imap_delimiter']); + + // Sswap SMTP data + $hosts = $rc->config->get('smtp_host'); + if (!is_array ($hosts)) + $hosts = [ $_SESSION['storage_host'] => $hosts ]; + $host = null; + foreach ($hosts as $imap => $smtp) + { + if (!strcmp($imap, $_SESSION['storage_host'])) + { + $host = $smtp; + break; + } + } + if (!$host) + { + self::write_log('Cannot discover associated SMTP host to IMAP server "'.$_SESSION['storage_host'].'" '. + '- substituting with "localhost"'); + $host = 'localhost'; + } + + // parse host name for special characters + $host = rcube_utils::parse_host($host); + + if (substr($host, 3, 1) == ':') + { + if (strtolower(substr($host, 0, 3)) == 'ssl') + { + self::set($iid, 'flags', self::get($iid, 'flags') | self::SMTP_SSL); + $host = substr($host, 6); + self::set($iid, 'smtp_port', 465); + } + elseif (strtolower(substr($host, 0, 3)) == 'tls') + { + self::set($iid, 'flags', self::get($iid, 'flags') | self::SMTP_TLS); + $host = substr($host, 6); + self::set($iid, 'smtp_port', 587); + } + // Unknown protocoll + if (($p = strpos($host, ':')) !== false) + { + self::set($iid, 'smtp_port', substr($host, $p + 1)); + $host = substr($host, 0, $p); + } + } + self::set($iid, 'smtp_host', $host); + + $prefs = $rc->user->get_prefs(); + + // swap nofication data + $p = 'newmail_notifier_'; + if (isset($prefs['check_all_folders']) && $prefs['check_all_folders']) + self::set($iid, 'flags', self::get($iid, 'flags') | self::CHECK_ALLFOLDER); + foreach ([ 'basic' => self::NOTIFY_BASIC, + 'desktop' => self::NOTIFY_DESKTOP, + 'sound' => self::NOTIFY_SOUND] as $k => $v) + { + if (isset($prefs[$p.$k]) && $prefs[$p.$k] == 1) + self::set($iid, 'flags', self::get($iid, 'flags') | $v); + } + if (isset($prefs[$p.'_desktop_timeout'])) + self::set($iid, 'notify_timeout', $prefs[$p.'_desktop_timeout']); + + // swap new mail check interval + self::set($iid, 'newmail_check', (int)(isset($prefs['refresh_interval']) ? $prefs['refresh_interval'] : + $rc->config->get('refresh_interval'))); + + // swap special folder names + $box = []; + foreach (rcube_storage::$folder_types as $mbox) + $box[$mbox] = isset($prefs[$mbox.'_mbox']) ? $prefs[$mbox.'_mbox'] : ''; + self::set($iid, 'folders', $box); + if (isset($prefs['show_real_foldernames']) && $prefs['show_real_foldernames'] == 'true') + self::set($iid, 'flags', self::get($iid, 'flags') | self::SHOW_REAL_FOLDER); + self::set($iid, 'flags', self::get($iid, 'flags') | (isset($prefs['lock_special_folders']) && + $prefs['lock_special_folders'] == true ? self::LOCK_SPECIAL_FOLDER : 0)); + + // swap data of alternate accounts + $sql = 'SELECT isw.* '. + 'FROM '.$rc->db->table_name(self::TABLE).' isw '. + 'INNER JOIN '.$rc->db->table_name('identities').' ii ON isw.iid=ii.identity_id '. + 'WHERE isw.user_id = ?'; + $q = $rc->db->query($sql, $rc->user->data['user_id']); + + while ($r = $rc->db->fetch_assoc($q)) + { + // is it default identity? + if ($iid == $r['iid']) + self::set($iid, 'label', $r['label']); + else { + // load default settings + self::get($r['iid']); + // swap saved data + foreach ($r as $k => $v) + { + // skip some fields + if ($k == 'id' || $k == 'user_id' || $k == 'iid') + continue; + if ($k == 'folders') + $v = is_null($v) ? [] : json_decode($v); + self::set($r['iid'], $k, $v); + } + } + } + if ($args['template'] == 'mail') + self::create_menu(); + break; + + case 'settings': + $this->include_script('assets/identity_switch-form.js'); + break; + } + + return $args; + } + + /** + * Create selection menu + */ + protected function create_menu(): void + { + // build identity table + $acc = []; + foreach (self::get() as $iid => $rec) + { + // identity switch enabled? + if (is_numeric($iid) && is_array($rec) && ($rec['flags'] & self::ENABLED)) + $acc[rcube::Q($rec['label'])] = [ 'iid' => $iid, 'unseen' => $rec['unseen'] ]; + } + + // sort identities + ksort($acc); + + // render UI if user has extra accounts + if (count($acc) > 1) + { + $iid = self::get('iid'); + $div = '
'. + rcube::Q(self::get($iid, 'label')). + '
'); + } + } + + /** + * Perform identity switch + */ + function identity_switch_do_switch(): void + { + $rc = rcmail::get_instance(); + + $rc->session->remove('folders'); + $rc->session->remove('unseen_count'); + + // update current unseen counter + self::set('lock', 1); + + $iid = self::get('iid'); + $folders = [ 'INBOX' ]; + $storage = $rc->get_storage(); + if (self::get($iid, 'flags') & identity_switch_prefs::CHECK_ALLFOLDER) + $folders += $storage->list_folders_subscribed('', '*'. null, null, true); + $unseen = 0; + foreach ($folders as $mbox) + $unseen += $storage->count($mbox, 'UNSEEN', true, false); + self::set($iid, 'unseen', $unseen); + self::set($iid, 'checked_last', time()); + + // get new account + $rec = self::get($iid = rcube_utils::get_input_value('identity_switch_iid', rcube_utils::INPUT_POST)); + // swap data + self::swap($iid, $rec); + + self::set('lock', 0); + + $this->write_log('Switching to identity "'.$rec['imap_user'].'"'); + + $rc->output->redirect( + [ + '_task' => 'mail', + '_mbox' => 'INBOX', + ] + ); + } + + /** + * Send mail + * + * @param array $args + * @return array + */ + function on_smtp_connect(array $args): array + { + $rc = rcmail::get_instance(); + + $rec = self::get(self::get('iid')); + + $args['smtp_user'] = $rec['imap_user']; + $args['smtp_pass'] = $rec['imap_pwd'] && ($rec['flags'] & (self::SMTP_SSL|self::SMTP_TLS)) ? + $rc->decrypt($rec['imap_pwd']) : ''; + $args['smtp_host'] = $rec['smtp_host'].':'.$rec['smtp_port']; + if ($rec['flags'] & (self::SMTP_SSL|self::SMTP_TLS)) + $args['smtp_host'] = ($rec['flags'] & self::SMTP_SSL ? 'ssl' : 'tls').'://'.$args['smtp_host']; + + return $args; + } + + /** + * Change userid in composer window to select proper identity + * + * @param array $args + */ + function on_object_composeheaders(array $args): void + { + if ($args['id'] == '_from') + { + $rc = rcmail::get_instance(); + if (strcasecmp($_SESSION['username'], $rc->user->data['username']) !== 0) + $rc->output->add_script('identity_switch_fixIdent('.self::get('iid').');', 'docready'); + } + } + + /** + * Override LDAP password + * + * @param array $args + * @return array + */ + function override_ldap_password(array $args): array + { + $rc = rcmail::get_instance(); + + // do not do anything for default identity + if (strcasecmp($args['user'], $rc->user->data['username']) === 0) + return $args; + + $sql = 'SELECT imap_pwd FROM '.$rc->db->table_name(self::TABLE).' WHERE imap_user = ?'; + $q = $rc->db->query($sql, $args['user']); + $r = $rc->db->fetch_assoc($q); + + if(is_array($r)) + { + if($r['imap_pwd']) + { + $this->write_log('Override IMAP password for user "' .$args['user'].'"'); + // replace 'password' with the password you want to use + $args['pass'] = $rc->decrypt($r['imap_pwd']); + } + } + + return $args; + } + + /** + * Catch new mail notification for default user + */ + function catch_newmails(array $args): array + { + // unexpected input? + if (empty($args['diff']['new'])) + return $args; + + $iid = self::get('iid'); + $n = 0; + foreach (explode(':', $args['diff']['new']) as $id) + if (strlen($id) > 1) + $n++; + self::set($iid, 'unseen', (int)(self::get($iid, 'unseen')) + $n); + self::set($iid, 'checked_last', time()); + self::set($iid, 'notify', true); + + self::do_notify(); + + return $args; + } + + /** + * Check for number of new mails + */ + function check_newmails($args) { + + // get configuration + if(!is_array($cfg = self::get('config'))) + return $args; + + // new mail check disabled? + if (!self::get('config', 'check')) + { + self::write_log('New mail check disabled - stop checking', true); + return $args; + } + + // only allow call under special conditions + if (!isset($args['action']) || ($args['action'] != 'refresh' && $args['action'] != 'getunread')) + return $args; + + self::write_log('Starting new mail check with arguments "'.serialize($args).'"."', true); + self::write_log('Configuration loaded "'.serialize($cfg).'".', true); + + // make a copy of our cached data + $cache = self::get(); + + // check if we're outside waiting window + $chk = 0; + foreach ($cache as $iid => $rec) + { + if (!is_integer($iid)) + continue; + + if ((int)$rec['flags'] & identity_switch_prefs::ENABLED && (int)$rec['checked_last'] + $cfg['interval'] < time()) + $chk++; + else + unset($cache[$iid]); + } + + if (!$chk) + { + if (!$chk) + self::write_log('No accounts to check - stop checking', true); + + return $args; + } + + self::write_log('Check allowed for '.$chk.' account(s)', true); + + if ($chk && !file_exists($cfg['cache'])) + { + // The host, we want to reach out + if (!is_resource($cfg['fp'])) + { + $host = ($_SERVER['SERVER_PORT'] != '80' ? 'ssl://' : '').$_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT']; + self::set('config', 'fp', $cfg['fp'] = new identity_switch_rpc()); + if (is_string($cfg['fp']->open($host))) + { + $this->write_log('Cannot open connection - '.$cfg['fp'].' for '.$host.' - stop checking'); + return $args; + } + self::write_log('Host "'.$host.'" connected', true); + } + + // save data for background sharing + file_put_contents($cfg['cache'], serialize($cache)); + + self::write_log('Cache file "'.$cfg['cache'].'" created'); + + // prepare request (no fopen() usage because "allow_url_fopen=FALSE" may be set in PHP.INI) + $req = '/plugins/identity_switch/identity_switch_newmails.php?iid=0&cache='.urlencode($cfg['cache']); + if (!$cfg['fp']->write($req)) + { + if (is_resource($cfg['fp'])) + fclose($cfg['fp']); + self::set('config', 'fp', $cfg['fp'] = 0); + $this->write_log('Cannot write to "'.$host.'" Request: "'.$req.'" - stop checking'); + return $args; + } + self::write_log('Starting request "'.$req.'"', true); + } + + // check for data file + $n = 0; + while (!file_exists($cfg['data'])) + { + if ($n++ > self::get('wait')) + { + self::write_log('No data file exist - stop checking', true); + return $args; + } + sleep (1); + } + + // load data file + self::write_log('Loading and deleting data file', true); + $wrk = file_get_contents($cfg['data']); + @unlink($cfg['data']); + + // process data lines + if (is_string($wrk)) + { + foreach (explode('###', $wrk) as $line) + { + if (!$line) + continue; + + $r = explode('##', $line); + // #35 bad formatted returned string + if (!is_array($r)) + continue; + + // Check for error message + if (!$r[1] && isset($r[2])) + { + $this->write_log('NewMail error: '.$r[2]); + continue; + } + + $rec = &self::get($r[1]); + if ($r[2] != $rec['unseen']) + { + if ($r[2] > $rec['unseen']) + { + // Allow to notify + if (!($rec['flags'] & self::UNSEEN)) + self::set($r[1], 'notify', true); + else + self::set($r[1], 'flags', $rec['flags'] & ~self::UNSEEN); + } + self::set($r[1], 'unseen', $r[2]); + } + self::set($r[1], 'checked_last', $r[0]); + } + + self::write_log('Starting notification.', true); + + self::do_notify(); + } + + return $args; + } + + /** + * Do notification + */ + function do_notify(): void + { + $rc = rcmail::get_instance(); + + $this->add_texts('localization'); + + // control array + $ctl = []; + $ctl[0] = [ + 'autoplay' => rawurlencode($this->gettext('notify.err.autoplay')), + 'notification' => rawurlencode($this->gettext('notify.err.notification')), + 'title' => rawurlencode($this->gettext('notify.title')), + ]; + + $cnt = 1; + $sound = false; + $basic = false; + foreach (self::get() as $iid => $rec) + { + // skip unwanted entries + if (!is_numeric($iid)) + continue; + + // set unseen to provide to browser + $ctl[$cnt]['iid'] = $iid; + $ctl[$cnt]['unseen'] = $rec['unseen']; + + // should we notify? + if ($rec['notify']) + { + self::set($iid, 'notify', false); + + if ($rec['flags'] & self::NOTIFY_BASIC && !$basic) + { + $basic = true; + $ctl[$cnt]['basic'] = 1; + } + + if ($rec['flags'] & self::NOTIFY_DESKTOP) + $ctl[$cnt]['desktop'] = [ + 'text' => rawurlencode(sprintf($this->gettext('notify.msg'), $rec['unseen'], + $rec['label'])), + 'timeout' => $rec['notify_timeout'], + ]; + + if ($rec['flags'] & self::NOTIFY_SOUND && !$sound) + { + $sound = true; + $ctl[$cnt]['sound'] = 1; + } + } + $cnt++; + } + + $rc->output->command('plugin.identity_switch_notify', $ctl); + } + +} diff --git a/plugins/identity_switch/identity_switch_newmails.php b/plugins/identity_switch/identity_switch_newmails.php new file mode 100644 index 0000000..d65bfad --- /dev/null +++ b/plugins/identity_switch/identity_switch_newmails.php @@ -0,0 +1,224 @@ +file = rcube_utils::get_input_value('cache', rcube_utils::INPUT_GET))) + { + identity_switch_prefs::write_log('Cannot get cache file name - stop checking'); + return; + } else + identity_switch_prefs::write_log('Cache file name "'.$this->file.'"', true); + + // get cached data + if (!file_exists($this->file)) + { + identity_switch_prefs::write_log('Cache file "'.$this->file.'" does not exists - stop checking'); + return; + } else + identity_switch_prefs::write_log('Cache file loaded', true); + + // storage initialization hook + $rc->plugins->register_hook('storage_init', [ $this, 'set_language' ]); + + $this->cache = unserialize(file_get_contents($this->file)); + // save logging configuration + $_SESSION[identity_switch_prefs::TABLE]['config'] = [ + 'logging' => $this->cache['config']['logging'], + 'debug' => $this->cache['config']['debug'], + ]; + + if (!$iid) + { + $res = []; + foreach ($this->cache as $iid => $rec) + { + if (!is_numeric($iid)) + continue; + + $host = ($_SERVER['SERVER_PORT'] != '80' ? 'ssl://' : '').$_SERVER['HTTP_HOST']. + ':'.$_SERVER['SERVER_PORT']; + $res[$iid] = new identity_switch_rpc(); + if (!$res[$iid]->open($host)) + { + self::write_data($iid.'##'.$res[$iid]); + identity_switch_prefs::write_log('Cannot open host "'.$host.'" - stop checking', true); + return; + } + + // prepare request (no fopen() usage because "allow_url_fopen=FALSE" may be set in PHP.INI) + $req = '/plugins/identity_switch/identity_switch_newmails.php?iid='.$iid. + '&cache='.urlencode($this->file); + if (!$res[$iid]->write($req)) + { + if (is_resource($res[$iid])) + fclose($res[$iid]); + self::write_data('0##Identity: '.$iid.' Cannot write to "'.$host.'" Request: "'.$req.'" - stop checking'); + return; + } + + // delay execution? + if (count($this->cache) > 1 && isset($this->cache['config']['delay']) && $this->cache['config']['delay'] > 0) + { + if ($this->cache['config']['delay'] > 1000000) + { + identity_switch_prefs::write_log('Delay execution by "'.$this->cache['config']['delay'].'" seconds', true); + sleep ($this->cache['config']['delay'] / 1000000); + } + else + { + identity_switch_prefs::write_log('Delay execution by "'.$this->cache['config']['delay'].'" microseconds', true); + usleep ($this->cache['config']['delay']); + } + } + } + + // collect data + $cnt = 0; + while (count($res) && $cnt++ < $this->cache['config']['retries']) + { + foreach ($res as $iid => $obj) + { + if ($wrk = $res[$iid]->read()) + self::write_data('0##'.$wrk); + unset($res[$iid]); + $cnt = 0; + } + $obj; // Disable Eclipse warning + } + if ($cnt >= $this->cache['config']['retries']) + self::write_data('0##Number of retries exceeded for identity '.$iid.' - stop checking'); + + // delete cache data + @unlink($this->file); + identity_switch_prefs::write_log('Cache file "'.$this->file.'" deleted', true); + + return; + } else { + + $rec = $this->cache[$iid]; + + // must delete storage object, to get SSL status reset + $rc->storage = null; + + // connect + $storage = $rc->get_storage(); + + if (substr($rec['imap_host'], 4, 1) == ':') + $rec['imap_enc'] = ''; + else + $rec['imap_enc'] = $rec['flags'] & identity_switch_prefs::IMAP_SSL ? 'ssl' : + ($rec['flags'] & identity_switch_prefs::IMAP_TLS ? 'tls' : ''); + if (!$storage->connect($rec['imap_host'], $rec['imap_user'], + $rc->decrypt($rec['imap_pwd']), $rec['imap_port'], $rec['imap_enc'])) + { + self::write_data('0##Identity '.$iid.': Cannot connect to "'.($rec['imap_enc'] ? + $rec['imap_enc'].'://' : '').$rec['imap_host'].':'.$rec['imap_port']. + '" for user "'.$rec['imap_user'].'" - stop checking'); + return; + } + + // get list of all subscribed folders + $storage = $rc->get_storage(); + $folders = [ 'INBOX' ]; + if ($rec['flags'] & identity_switch_prefs::CHECK_ALLFOLDER) + $folders += $storage->list_folders_subscribed('', '*'. null, null, true); + + // drop exception folders (and their subfolders) + foreach ($rec['folders'] as $val) + if (($k = array_search($val, $folders)) !== false) + unset($folders[$k]); + + // count unseen + $unseen = 0; + foreach($folders as $mbox) + { + unset($storage->conn->data['STATUS:'.$mbox]); + $unseen += $storage->count($mbox, 'UNSEEN', true, false); + } + + $storage->close(); + + self::write_data($iid.'##'.$unseen); + identity_switch_prefs::write_log('Setting unseen count to '.$unseen.' for identity id '.$iid, true); + + return; + } + } + + /** + * Set language for IMAP connection + * + * @param array $args + * @return array + */ + function set_language (array $args): array + { + $args['language'] = $this->cache['config']['language']; + + return $args; + } + + /** + * Write record to data file + * + * @param string $msg + * @return bool + */ + private function write_data (string $msg): bool + { + if (!$this->fp || fwrite($this->fp, $msg) === false) + { + if (is_resource($this->fp)) + fclose($this->fp); + + // open output file + if (!($this->fp = @fopen($this->cache['config']['data'], 'a'))) + { + identity_switch_prefs::write_log('Error opening data file "'.$this->cache['config']['data'].'"'); + return false; + } + return fwrite($this->fp, time().'##'.$msg.'###') !== false ? true : false; + } + + return true; + } + +} + +$obj = new identity_switch_newmails(); +$obj->run(); diff --git a/plugins/identity_switch/identity_switch_prefs.php b/plugins/identity_switch/identity_switch_prefs.php new file mode 100644 index 0000000..573d509 --- /dev/null +++ b/plugins/identity_switch/identity_switch_prefs.php @@ -0,0 +1,1254 @@ + 0x24 20 IMAP_SSL | SMTP_SSL + 0x18 24 - IMAP_TLS | SAME_AS_IMAP -> 0x28 40 IMAP_TLS | SMTP_TLS + 0x10 16 - NONE | SAME_AS_IMAP -> 0x00 NONE | NONE + 0x04 04 - IMAP_SSL | NONE -> 0x04 04 IMAP_SSL | NONE + 0x08 08 - IMAP_TSL | NONE -> 0x08 08 IMAP_TLS | NONE + */ + + /** + * Initialize Plugin + * + * {@inheritDoc} + * @see rcube_plugin::init() + */ + function init(): void + { + // preference hooks and actions + $this->add_hook('identity_form', [ $this, 'show_identity_switch_prefs' ]); + $this->add_hook('identity_update', [ $this, 'update_identity_switch_prefs' ]); + $this->add_hook('identity_create_after', [ $this, 'update_identity_switch_prefs' ]); + $this->add_hook('identity_delete', [ $this, 'delete_identity_switch_prefs' ]); + $this->add_hook('preferences_list', [ $this, 'show_default_identity_prefs' ]); + $this->add_hook('preferences_save', [ $this, 'save_default_identity_prefs' ]); + $this->add_hook('identity_update', [ $this, 'upd_default_identity_prefs' ]); + + // get default identity + if (!$this->default) + { + $rc = rcmail::get_instance(); + $this->default = $rc->user->get_identity(); + $this->default = $this->default['identity_id']; + } + } + + /** + * Show preference list in settings for default identity + * + * @param array $args + * @return array + */ + function show_default_identity_prefs(array $args): array + { + // handle onlysome preferences + if ($args['section'] != 'folders' && $args['section'] != 'mailbox' && $args['section'] != 'general') + return $args; + + $this->add_texts('localization'); + + // common settings + if ($args['section'] == 'general') + return self::show_general_prefs($args); + + // special folder settings + if ($args['section'] == 'folders') + return self::show_special_folders_prefs($args); + + // mailbox settings + if ($args['section'] == 'mailbox') + return self::show_notification_prefs($args); + + return $args; + } + + /** + * Show general preferences + * + * @param array $args + * @param bool $flag + * @return array + */ + private function show_general_prefs(array $args, bool $int_call = false): array + { + if (!self::get('config', 'check')) + { + if (!$int_call) + unset($args['blocks']['main']['options']['refresh_interval']); + return $args; + } + + $rc = rcmail::get_instance(); + + // check if configuration can be override + if (in_array('refresh_interval', (array) $rc->config->get('dont_override'))) + return $args; + + $cfg = $rc->config->all(); + + $sel = new html_select([ + 'name' => '_refresh_interval', + 'id' => '_refresh_interval', + 'class' => 'custom-select' + ]); + + $sel->add($this->gettext('never'), 0); + foreach ([ 1, 3, 5, 10, 15, 30, 60 ] as $min) + { + if (!$cfg['min_refresh_interval'] || $cfg['min_refresh_interval'] <= $min * 60) + { + $lab = $rc->gettext([ 'name' => 'everynminutes', 'vars' => ['n' => $min ] ]); + $sel->add($lab, $min); + } + } + + $rec = self::get(isset($args['record']['identity_id']) ? $args['record']['identity_id'] : self::USR); + + if ($int_call) + return [ 'refreshinterval' => [ + 'type' => 'select', + 'value' => $sel->show($rec['newmail_check'] / 60), + ] + ]; + + $args['blocks']['main']['options']['refresh_interval'] = [ + 'title' => html::label('_refresh_interval', rcube::Q($this->gettext('refreshinterval'))), + 'content' => $sel->show($rec['newmail_check'] / 60), + ]; + + return $args; + } + + /** + * Show special folder preferences + * + * @param array $args + * @return array + */ + private function show_special_folders_prefs(array $args): array + { + $no_override = array_flip((array)rcmail::get_instance()->config->get('dont_override')); + + $rec = self::get(self::get('iid')); + + $fld = rcmail_action::folder_selector([ 'noselection' => '---', + 'realnames' => true, + 'maxlength' => 30, + 'folder_filter' => 'mail', + 'folder_rights' => 'w' ]); + + // modify template + $args['blocks']['main']['name'] .= ' [ '.rcube::Q($this->gettext('identity')).': '.$rec['label'].' ]'; + + $sel = new html_checkbox([ 'name' => '_show_real_foldernames', + 'id' => 'show_real_foldernames', + 'value' => '1' ]); + + $set = &$args['blocks']['main']['options']; + $set['show_real_foldernames']['content'] = $sel->show(($rec['flags'] & self::SHOW_REAL_FOLDER) ? '1' : '0'); + + foreach ($rec['folders'] as $k => $v) + { + if (isset($no_override[$k.'_mbox'])) + continue; + + $set[$k.'_mbox']['content'] = $fld->show($v, [ + 'id' => '_'.$k.'_mbox', + 'name' => '_'.$k. '_mbox', + 'onchange' => "if ($(this).val() == 'INBOX') $(this).val('')", + ]); + } + + return $args; + } + + /** + * Show notification preferences + * + * @param array $args + * @param bool $flag + * @return array + */ + private function show_notification_prefs(array $args, bool $int_call = false): array + { + // checking disabled? + if (!self::get('config', 'check')) + { + if (!$int_call) + unset($args['blocks']['new_message']['options']['check_all_folders']); + return $args; + } + + // load identity data + $rec = self::get(isset($args['record']['identity_id']) ? $args['record']['identity_id'] : self::get('iid')); + + $rc = rcmail::get_instance(); + + if ($int_call) + { + $args['form']['notify'] = []; + $set = &$args['form']['notify']; + } else + $set = $args['blocks']['new_message']; + $set; // disable Eclipse warning + + $set['name'] = $this->gettext('idsw.notify.caption'); + + // check if configuration is not disabled + $no_override = (array) $rc->config->get('dont_override'); + + if ($int_call) + { + $tit = 'label'; + $val = 'value'; + $set = []; + if (!in_array('check_all_folders', $no_override)) + { + $set['check_all_folders'] = []; + $s = &$set['check_all_folders']; + $s[$tit] = rcube::Q($this->gettext('idsw.notify.allfolder')); + $cb = new html_checkbox([ 'name' => '_check_all_folder', 'value' => '1' ]); + $s[$val] = $cb->show($rec ? ($rec['flags'] & self::CHECK_ALLFOLDER ? '1' : '0') : '0'); + } + } else { + $tit = 'title'; + $val = 'content'; + $set = &$args['blocks']['new_message']['options']; + if (!in_array('check_all_folders', $no_override)) + { + $s = &$set['check_all_folders']; + $s; // disable Eclipse warning + $s[$tit] = rcube::Q($this->gettext('idsw.notify.allfolder')); + $cb = new html_checkbox([ 'name' => '_check_all_folder', 'value' => '1' ]); + $s[$val] = $cb->show($rec ? ($rec['flags'] & self::CHECK_ALLFOLDER ? '1' : '0') : '0'); + } + } + + $to = new html_select([ 'name' => "_notify_timeout" ]); + foreach ([ 5, 10, 15, 30, 45, 60 ] as $sec) + $to->add($this->gettext(['name' => 'afternseconds', 'vars' => [ 'n' => $sec ]]), $sec); + + foreach ([ 'basic' => self::NOTIFY_BASIC, + 'desktop' => self::NOTIFY_DESKTOP, + 'sound' => self::NOTIFY_SOUND ] as $type => $flag) + { + // setting disabled? + if (in_array('newmail_notifier_'.$type, $no_override)) + continue; + + $cb = new html_checkbox([ 'name' => '_notify_'.$type, + 'value' => '1' ]); + + switch($type) + { + case 'basic': + $set['notify_basic'] = [ $tit => $this->gettext('idsw.notify.basic'), + $val => $cb->show($rec['flags'] & $flag ? '1' : '0'). + html::a([ 'href' => '#', + 'onclick' => 'identity_switch_basic(); return false', + 'name' => '_notify_basic_test' ], + $this->gettext('idsw.notify.test')) ]; + break; + + case 'desktop': + $set['notify_desktop'] = [ $tit => $this->gettext('idsw.notify.desktop'), + $val => $cb->show($rec['flags'] & $flag ? '1' : '0').html::a(['href' => '#', + 'onclick' => 'identity_switch_desktop(\''. + rawurlencode($this->gettext('notify.title')).'\',\''. + rawurlencode(sprintf($this->gettext('notify.msg'), 1, $rec['label'])). + '\',\''.$rec['notify_timeout'].'\',\''. + rawurlencode($this->gettext('notify.err.notification')). + '\'); return false', + 'name' => '_notify_desktop_test' ], + $this->gettext('idsw.notify.test')) ]; + $set['notify_timeout'] = [ $tit => $this->gettext('idsw.notify.timeout'), + $val => $to->show($rec['notify_timeout']) ]; + break; + + case 'sound': + $set['notify.sound'] = [ $tit => $this->gettext('idsw.notify.sound'), + $val => $cb->show($rec['flags'] & $flag ? '1' : '0').html::a(['href' => '#', + 'onclick' => 'identity_switch_sound(\''. + rawurlencode($this->gettext('notify.err.autoplay')). + '\'); return false', + 'name' => '_notify_sound_test' ], + $this->gettext('idsw.notify.test')) ]; + default: + break; + + } + } + + return $int_call ? $set + self::show_general_prefs($args, true) : $args; + } + + /** + * Save preferences in settings for default identity + * + * @param array $args + * @return array + */ + function save_default_identity_prefs(array $args): array + { + if ($args['section'] != 'folders' && $args['section'] != 'mailbox' && $args['section'] != 'general') + return $args; + + $this->add_texts('localization'); + + // common settings + if ($args['section'] == 'general') + return self::save_general_prefs($args); + + // special folder settings + if ($args['section'] == 'folders') + return self::save_special_folders_prefs($args); + + // mailbox settings + if ($args['section'] == 'mailbox') + return self::save_notification_prefs($args); + + return $args; + } + + /** + * Save general preferences + * + * @param array $args + * @return array + */ + private function save_general_prefs(array $args): array + { + $iid = self::get('iid'); + $rec = self::get($iid); + + if (!empty($val = rcube_utils::get_input_value('_refresh_interval', rcube_utils::INPUT_POST))) + { + $args['prefs']['refresh_interval'] = (int)$val * 60; + self::set($iid, 'newmail_check', $rec['newmail_check'] = (int)$val * 60); + } + + if ($iid != $this->default) + { + $rc = rcmail::get_instance(); + + $sql = 'UPDATE '.$rc->db->table_name(self::TABLE). + ' SET newmail_check = ? '. + ' WHERE iid = ?'; + $rc->db->query( $sql, $rec['newmail_check'], $iid); + + // abuse $plugin['abort'] to prevent RC main from saving prefs + $args['abort'] = true; + $args['result'] = true; + } + + return $args; + } + + /** + * Set special folder preferences + * + * @param array $args + * @return array + */ + private function save_special_folders_prefs(array $args): array + { + $iid = self::get('iid'); + $rec = self::get($iid); + + if ($args['prefs']['show_real_foldernames']) + self::set($iid, 'flags', $rec['flags'] |= self::SHOW_REAL_FOLDER); + else + self::set($iid, 'flags', $rec['flags'] &= ~self::SHOW_REAL_FOLDER); + + if (isset($args['prefs']['lock_special_folders']) && $args['prefs']['lock_special_folders'] == '1') + self::set($iid, 'flags', $rec['flags'] |= self::LOCK_SPECIAL_FOLDER); + else + self::set($iid, 'flags', $rec['flags'] &= ~self::LOCK_SPECIAL_FOLDER); + + $box = []; + foreach (rcube_storage::$folder_types as $mbox) + if ($args['prefs'][$mbox.'_mbox']) + $box[$mbox] = $args['prefs'][$mbox.'_mbox']; + + self::set($iid, 'folders', $box); + + if ($iid != $this->default) + { + $rc = rcmail::get_instance(); + + $sql = 'UPDATE '.$rc->db->table_name(self::TABLE). + ' SET flags = ?, folders = ?'. + ' WHERE iid = ?'; + $rc->db->query( $sql, $rec['flags'], json_encode($box), $iid); + + // abuse $plugin['abort'] to prevent RoundCube main from saving preferences + $args['abort'] = true; + $args['result'] = true; + } + + return $args; + } + + /** + * Save notification preferences + * + * @param array $args + * @return array + */ + private function save_notification_prefs(array $args): array + { + $iid = self::get('iid'); + $rec = self::get($iid); + $rc = rcmail::get_instance(); + + if (!empty($val = rcube_utils::get_input_value('_check_all_folder', rcube_utils::INPUT_POST))) + { + $args['prefs']['check_all_folders'] = '1'; + self::set($iid, 'flags', $rec['flags'] |= self::CHECK_ALLFOLDER); + } else { + $args['prefs']['check_all_folders'] = '0'; + self::set($iid, 'flags', $rec['flags'] &= ~self::CHECK_ALLFOLDER); + } + + foreach ([ 'basic' => self::NOTIFY_BASIC, + 'desktop' => self::NOTIFY_DESKTOP, + 'sound' => self::NOTIFY_SOUND ] as $type => $flag) { + $key = 'newmail_notifier_' . $type; + if (!empty($val = rcube_utils::get_input_value('_notify_'.$type, rcube_utils::INPUT_POST))) + { + $args['prefs'][$key] = '1'; + self::set($iid, 'flags', $rec['flags'] |= $flag); + } else { + $args['prefs'][$key] = '0'; + self::set($iid, 'flags', $rec['flags'] &= ~$flag); + } + } + + if (!empty($val = rcube_utils::get_input_value('_notify_timeout', rcube_utils::INPUT_POST))) + { + $args['prefs']['newmail_notifier_desktop_timeout'] = $val; + self::set($iid, 'notify_timeout', $rec['notify_timeout'] = $val); + } + + if ($iid != $this->default) + { + $sql = 'UPDATE '.$rc->db->table_name(self::TABLE). + ' SET flags = ?, notify_timeout = ? '. + ' WHERE iid = ?'; + $rc->db->query( $sql, $rec['flags'], $rec['notify_timeout'], $iid); + + // Abuse $plugin['abort'] to prevent RC main from saving prefs + $args['abort'] = true; + $args['result'] = true; + } + + return $args; + } + + /** + * Update identity preferences + * + * @param array $args + * @return array + */ + function upd_default_identity_prefs(array $args): array + { + // default identity? + if ($args['record']['standard']) + { + // is label available? + if (!($label = (string)rcube_utils::get_input_value('_label', rcube_utils::INPUT_POST))) + $label = $args['record']['name']; + self::set($this->default, 'label', $label); + + $rc = rcmail::get_instance(); + $sql = 'SELECT label FROM '.$rc->db->table_name(self::TABLE).' WHERE iid = ?'; + if ($rc->db->fetch_assoc($rc->db->query($sql, $this->default))) + { + $sql = 'UPDATE '. + $rc->db->table_name(self::TABLE). + ' SET label = ? WHERE iid = ?'; + $rc->db->query($sql, $label, $this->default); + } + else + { + $sql = 'INSERT INTO '. + $rc->db->table_name(self::TABLE). + ' (user_id, iid, label) VALUES(?, ?, ?)'; + $rc->db->query($sql, $rc->user->ID, $this->default, $label); + } + } + + return $args; + } + + /** + * Show identity switch preferences + * + * @param array $args + * @return array + */ + function show_identity_switch_prefs(array $args): array + { + $email = isset($args['record']['email']) ? $args['record']['email'] : ''; + + // is this default identity? + $default = isset($args['record']['identity_id']) && $args['record']['identity_id'] == $this->default; + + // apply configuration from identity_switch/config.inc.php + if (!$default && is_array($cfg = $this->get_config($email))) + { + if (isset($args['record']['identity_id'])) + { + // ensure to get default values + self::get($iid = $args['record']['identity_id']); + + self::write_log('Applying predefined configuration for "'.$email.'".'); + + // set up user name + if ($cfg['user']) + { + switch (strtoupper($cfg['user'])) + { + case 'EMAIL': + self::set($iid, 'imap_user', $email); + break; + + case 'MBOX': + self::set($iid, 'imap_user', strstr($email, '@', true)); + + default: + break; + } + } + // check for wild card + if (strpos($cfg['imap'], '*')) + $cfg['imap'] = str_replace('*', substr($email, strpos($email, '@') + 1), $cfg['imap']); + if (strpos($cfg['smtp'], '*')) + $cfg['smtp'] = str_replace('*', substr($email, strpos($email, '@') + 1), $cfg['smtp']); + + // parse and set host and related information + $url = parse_url($cfg['imap']); + self::set($iid, 'imap_host', isset($url['host']) ? rcube::Q($url['host'], 'url') : ''); + self::set($iid, 'imap_port', isset($url['port']) ? intval($url['port']) : ''); + if (strcasecmp('tls', $url['scheme']) === 0) + self::set($iid, 'flags', self::get($iid, 'flags') | self::IMAP_TLS); + if (strcasecmp('ssl', $url['scheme']) === 0) + self::set($iid, 'flags', self::get($iid, 'flags') | self::IMAP_SSL); + self::set($iid, 'imap_delim', $cfg['delimiter']); + self::set($iid, 'newmail_check', (int)$cfg['interval']); + + $url = parse_url($cfg['smtp']); + self::set($iid, 'smtp_host', isset($url['host']) ? rcube::Q($url['host'], 'url') : ''); + self::set($iid, 'smtp_port', isset($url['port']) ? intval($url['port']) : ''); + if (strcasecmp('tls', $url['scheme']) === 0) + self::set($iid, 'flags', self::get($iid, 'flags') | self::SMTP_TLS); + if (strcasecmp('ssl', $url['scheme']) === 0) + self::set($iid, 'flags', self::get($iid, 'flags') | self::SMTP_SSL); + } + } + + $this->add_texts('localization'); + + $args['form']['common'] = [ + 'name' => isset($args['record']['identity_id']) ? $this->gettext('idsw.common.caption') : + $this->gettext('idsw.common.noedit'), + 'content' => $this->show_identity_switch_common_prefs($args), + ]; + + if (!$default) + { + $args['form']['imap'] = [ + 'name' => $this->gettext('idsw.imap.caption'), + 'content' => $this->show_identity_switch_imap_prefs($args), + ]; + + $args['form']['smtp'] = [ + 'name' => $this->gettext('idsw.smtp.caption'), + 'content' => $this->show_identity_switch_smtp_prefs($args), + ]; + + if (self::get('config', 'check')) + $args['form']['notify'] = [ + 'name' => $this->gettext('idsw.notify.caption'), + 'content' => $this->show_notification_prefs($args, true), + ]; + } + + return $args; + } + + /** + * Show common identity switch preferences + * + * @param array $args + * @return array + */ + private function show_identity_switch_common_prefs(array &$args): array + { + // edit existing identity record? + if (isset($args['record']['identity_id'])) + { + $rec = self::get($args['record']['identity_id']); + $ro = ''; + // is this default identity? + $default = $args['record']['identity_id'] == $this->default; + } else + { + $rec = self::get(self::USR); + $ro = 'true'; + } + $args['record']['label'] = $rec['label']; + + $fields = [ 'label' => [ 'label' => $this->gettext('idsw.common.label'), + 'type' => 'text', 'maxlength' => 32 ], ]; + + if ($default) + return $fields; + + $ise = $rec['flags'] & self::ENABLED ? '1' : '0'; + $ena = new html_checkbox([ 'name' => '_enabled', + 'onchange' => 'identity_switch_enabled();', + 'value' => $ise, + 'disabled' => $ro, ]); + + return [ 'enabled' => [ 'label' => $this->gettext('idsw.common.enabled'), + 'value' => $ena->show($ise), ], ] + $fields; + } + + /** + * Show IMAP identity switch preferences + * + * @param array $args + * @return array + */ + private function show_identity_switch_imap_prefs(array &$args): array + { + // creating new identity? + $rec = self::get(isset($args['record']['identity_id']) ? $args['record']['identity_id'] : self::USR); + + $authType = new html_select([ 'name' => "_imap_auth" ]); + $authType->add($this->gettext('idsw.imap.auth.none'), 'none'); + $authType->add($this->gettext('idsw.imap.auth.ssl'), 'ssl'); + $authType->add($this->gettext('idsw.imap.auth.tls'), 'tls'); + + $args['record']['imap_host'] = $rec['imap_host']; + $enc = $rec['flags'] & self::IMAP_SSL ? 'ssl' : + ($rec['flags'] & self::IMAP_TLS ? 'tls' : 'none'); + $args['record']['imap_port'] = $rec['imap_port']; + $args['record']['imap_user'] = $rec['imap_user']; + $args['record']['imap_pwd'] = $rec['imap_pwd'] ? rcmail::get_instance()->decrypt($rec['imap_pwd']) : ''; + $args['record']['imap_delim'] = $rec['imap_delim']; + + return [ + 'imap_host' => [ 'label' => $this->gettext('idsw.imap.host'), + 'type' => 'text', 'maxlength' => 64 ], + 'imap_auth' => [ 'label' => $this->gettext('idsw.imap.auth'), + 'value' => $authType->show($enc) ], + 'imap_port' => [ 'label' => $this->gettext('idsw.imap.port'), + 'type' => 'text', 'maxlength' => 5 ], + 'imap_user' => [ 'label' => $this->gettext('idsw.imap.user'), + 'type' => 'text', 'maxlength' => 32 ], + 'imap_pwd' => [ 'label' => $this->gettext('idsw.imap.pwd'), + 'type' => 'password', 'maxlength' => 128 ], + 'imap_delim' => [ 'label' => $this->gettext('idsw.imap.delim'), + 'type' => 'text', 'maxlength' => 1 ], + ]; + } + + /** + * Show SMTP identity switch preferences + * + * @param array $args + * @return array + */ + private function show_identity_switch_smtp_prefs(array &$args): array + { + // creating new identity? + $rec = self::get(isset($args['record']['identity_id']) ? $args['record']['identity_id'] : self::USR); + + $authType = new html_select([ 'name' => "_smtp_auth" ]); + $authType->add($this->gettext('idsw.smtp.auth.none'), 'none'); + $authType->add($this->gettext('idsw.smtp.auth.ssl'), 'ssl'); + $authType->add($this->gettext('idsw.smtp.auth.tls'), 'tls'); + + $args['record']['smtp_host'] = $rec['smtp_host']; + $enc = $rec['flags'] & self::SMTP_SSL ? 'ssl' : + ($rec['flags'] & self::SMTP_TLS ? 'tls' : 'none'); + $args['record']['smtp_port'] = $rec['smtp_port']; + + return [ + 'smtp_host' => [ 'label' => $this->gettext('idsw.smtp.host'), + 'type' => 'text', 'maxlength' => 64 ], + 'smtp_auth' => [ 'label' => $this->gettext('idsw.smtp.auth'), + 'value' => $authType->show($enc) ], + 'smtp_port' => [ 'label' => $this->gettext('idsw.smtp.port'), + 'type' => 'text', 'maxlength' => 5 ], + ]; + } + + /** + * Create / Update identity switch preferences + * + * @param array $args + * @return array + */ + function update_identity_switch_prefs(array $args): array + { + $rc = rcmail::get_instance(); + + if (!self::get_field_value('0', 'enabled', false)) + { + $sql = 'UPDATE '.$rc->db->table_name(self::TABLE). + ' SET flags = flags & ? WHERE iid = ? AND user_id = ?'; + $rc->db->query($sql, ~self::ENABLED, $args['id'], $rc->user->ID); + return $args; + } + + // check field values + $rec = $this->check_field_values(); + if (isset($rec['err'])) + { + $this->add_texts('localization'); + $args['break'] = $args['abort'] = true; + $args['message'] = $this->gettext('idsw.err.'.$rec['err']); + $args['result'] = false; + + return $args; + } + + // any identity_switch data? + if (!count($rec)) + return $args; + + $rec['iid'] = $args['id']; + + $sql = 'SELECT id, flags FROM '.$rc->db->table_name(self::TABLE). + ' WHERE iid = ? AND user_id = ?'; + $q = $rc->db->query($sql, $rec['iid'], $rc->user->ID); + $r = $rc->db->fetch_assoc($q); + + // if record already exists, we will update it + if ($r) + { + // record enabled? + if (count($rec) == 1) + { + self::set($rec['iid'], 'flags', $rec['flags'] = self::get($rec['iid'], 'flags') & ~self::ENABLED); + + $sql = 'UPDATE '.$rc->db->table_name(self::TABLE).' SET flags = ? WHERE iid = ?'; + $q = $rc->db->query($sql, $rec['flags'], $rec['iid']); + $r = $rc->db->fetch_assoc($q); + + return $args; + } + + $sql = 'UPDATE '. + $rc->db->table_name(self::TABLE). + ' SET flags = ?, label = ?, imap_host = ?, imap_port = ?, imap_delim = ?,'. + ' imap_user = ?, imap_pwd = ?, smtp_host = ?, smtp_port = ?, '. + ' notify_timeout = ?, newmail_check = ?, user_id = ?, iid = ?' . + ' WHERE id = ?'; + } + // no record exists, create new one + else if ($rec['flags'] & self::ENABLED) + { + $sql = 'INSERT INTO '. + $rc->db->table_name(self::TABLE). + '(flags, label, imap_host, imap_port, imap_delim, imap_user, imap_pwd,'. + ' smtp_host, smtp_port, notify_timeout, newmail_check, user_id, iid)'. + ' VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + } + + // did we write anything? + if ($sql) + { + // do we need to update password? + if (isset($rec['imap_pwd'])) + $rec['imap_pwd'] = $rc->encrypt($rec['imap_pwd']); + + $rc->db->query( + $sql, + $rec['flags'], + $rec['label'], + $rec['imap_host'], + $rec['imap_port'], + $rec['imap_delim'], + $rec['imap_user'], + $rec['imap_pwd'], + $rec['smtp_host'], + $rec['smtp_port'], + $rec['notify_timeout'], + $rec['newmail_check'], + $rc->user->ID, + $rec['iid'], + is_bool($r) ? 0 : $r['id'], + ); + + // update fields in cache + foreach ($rec as $k => $v) + if ($k != 'iid') + self::set($rec['iid'], $k, $v); + + // update default identity data + if (($iid = self::get('iid')) == $rec['iid']) + self::swap($iid, self::get($iid)); + } + + return $args; + } + + /** + * Delete identity switch prefereces + * + * @param array $args + * @return array + */ + function delete_identity_switch_prefs(array $args): array + { + $rc = rcmail::get_instance(); + + $sql = 'DELETE FROM '.$rc->db->table_name(self::TABLE).' WHERE iid = ? AND user_id = ?'; + $q = $rc->db->query($sql, $args['id'], $rc->user->ID); + if ($rc->db->affected_rows($q)) + $this->write_log('Deleted identity "'.$args['id'].'"'); + + self::del($args['id']); + + // is default identity deleted - get first available idnetity + if ($args['id'] == self::get('iid')) + foreach (self::get() as $k => $rec) + if (is_numeric($k)) + { + self::swap((string)$k, $rec); + break; + } + + return $args; + } + + /** + * Check settings field values + * + * @return array + */ + private function check_field_values(): array + { + $rec = self::get(-1); + + $iid = (string)rcube_utils::get_input_value('iid', rcube_utils::INPUT_POST); + + if (self::get_field_value($iid, 'enabled')) + $rec['flags'] = self::ENABLED; + else + $rec['flags'] &= ~self::ENABLED; + + if (!($rec['label'] = self::get_field_value($iid, 'label'))) + $rec['label'] = 'identity_switch'; + + if (!($rec['imap_host'] = self::get_field_value($iid, 'imap_host'))) + $rec['err'] = 'imap.host.miss'; + $rec['imap_auth'] = self::get_field_value($iid, 'imap_auth'); + $rec['imap_port'] = self::get_field_value($iid, 'imap_port'); + if (!($rec['imap_user'] = self::get_field_value($iid, 'imap_user'))) + $rec['err'] = 'imap.user.miss'; + if (!($rec['imap_pwd'] = self::get_field_value($iid, 'imap_pwd', true, true))) + $rec['err'] = 'imap.pwd.miss'; + if (!($rec['imap_delim'] = self::get_field_value($iid, 'imap_delim'))) + $rec['err'] = 'imap.delim.miss'; + + // check for overrides + if ($rec['imap_host'] && substr($rec['imap_host'], 3, 3) == '://') + { + $rec['imap_auth'] = strtolower(substr($rec['imap_host'], 0, 3)); + $rec['imap_host'] = substr($rec['imap_host'], 6); + if ($p = strpos($rec['imap_host'], ':')) + { + $rec['imap_port'] = substr($rec['imap_host'], $p + 1); + $rec['imap_host'] = substr($rec['imap_host'], 0, $p); + } + } + if (!$rec['imap_port']) + $rec['err'] = 'imap.port.num'; + elseif (!ctype_digit($rec['imap_port'])) + $rec['err'] = 'imap.port.num'; + elseif (($rec['imap_port'] < 1 || $rec['imap_port'] > 65535)) + $rec['err'] = 'imap.port.range'; + if ($rec['imap_auth'] == 'ssl') + $rec['flags'] |= self::IMAP_SSL; + elseif ($rec['imap_auth'] == 'tls') + $rec['flags'] |= self::IMAP_TLS; + + if (!($rec['smtp_host'] = self::get_field_value($iid, 'smtp_host'))) + $rec['err'] = 'smtp.host.miss'; + $rec['smtp_auth'] = self::get_field_value($iid, 'smtp_auth'); + $rec['smtp_port'] = self::get_field_value($iid, 'smtp_port'); + + // check for overrides + if ($rec['smtp_host']) + { + if (substr($rec['smtp_host'], 3, 3) == '://') + $rec['smtp_host'] = substr($rec['smtp_host'], 6); + if ($p = strpos($rec['smtp_host'], ':')) + { + $rec['smtp_port'] = substr($rec['smtp_host'], $p + 1); + $rec['smtp_host'] = substr($rec['smtp_host'], 0, $p); + } + } + if (!$rec['smtp_port']) + $rec['err'] = 'smtp.port.num'; + elseif (!ctype_digit($rec['smtp_port'])) + $rec['err'] = 'smtp.port.num'; + elseif ($rec['smtp_port'] < 1 || $rec['smtp_port'] > 65535) + $rec['err'] = 'smpt.port.range'; + if ($rec['smtp_auth'] == 'ssl') + $rec['flags'] |= self::SMTP_SSL; + elseif ($rec['smtp_auth'] == 'tls') + $rec['flags'] |= self::SMTP_TLS; + + // Check notification options + if (self::get_field_value($iid, 'check_all_folder')) + $rec['flags'] |= self::CHECK_ALLFOLDER; + if (self::get_field_value($iid, 'notify_basic')) + $rec['flags'] |= self::NOTIFY_BASIC; + if (self::get_field_value($iid, 'notify_desktop')) + $rec['flags'] |= self::NOTIFY_DESKTOP; + if (self::get_field_value($iid, 'notify_sound')) + $rec['flags'] |= self::NOTIFY_SOUND; + $rec['notify_timeout'] = (int)self::get_field_value($iid, 'notify_timeout'); + $rec['newmail_check'] = (int)self::get_field_value($iid, 'refresh_interval') * 60; + + return $rec; + } + + + /** + * Get field value in settings + * + * @param string $iid identity_switch id + * @param string $field Field name + * @param bool $trim Whether to trim data + * @param bool $html Allow HTML tags in field value + * @return string|NULL Request parameter value or NULL if not set + */ + private function get_field_value(string $iid, string $field, bool $trim = true, bool $html = false): ?string + { + if (!($rc = rcube_utils::get_input_value('_'.$field, rcube_utils::INPUT_POST, $html)) && $iid) + { + if ($field == 'imap_auth') + { + $rc = self::get($iid, 'flags'); + if ($rc & self::IMAP_SSL) + $rc = 'ssl'; + elseif ($rc & self::IMAP_TLS) + $rc = 'tls'; + else + $rc = ''; + } + elseif ($field == 'smtp_auth') + { + $rc = self::get($iid, 'flags'); + if ($rc & self::SMTP_SSL) + $rc = 'ssl'; + elseif ($rc & self::SMTP_TLS) + $rc = 'tls'; + else + $rc = ''; + } + elseif ($field == 'notify_all_folder') + { + $rc = self::get($iid, 'flags'); + $rc = $rc & self::CHECK_ALLFOLDER ? '1' : '0'; + } + elseif ($field == 'notify_basic') + { + $rc = self::get($iid, 'flags'); + $rc = $rc & self::NOTIFY_BASIC ? '1' : '0'; + } + elseif ($field == 'notify_desktop') + { + $rc = self::get($iid, 'flags'); + $rc = $rc & self::NOTIFY_DESKTOP ? '1' : '0'; + } + elseif ($field == 'notify_sound') + { + $rc = self::get($iid, 'flags'); + $rc = $rc & self::NOTIFY_SOUND ? '1' : '0'; + } + else + $rc = self::get($iid, $field); + } + + if (!$trim) + return $rc; + + if (is_null($rc)) + return $rc; + + if (!is_string($rc)) + $rc = (string)$rc; + + $s = trim($rc); + if (!$s) + return null; + else + $rc = $s; + + return $rc; + } + + /** + * Swap identity data + * + * @param string + * @param array + */ + protected function swap(string $iid, array $rec): void + { + $rc = rcmail::get_instance(); + + $rc->session->remove('folders'); + $rc->session->remove('unseen_count'); + + $_SESSION['_name'] = $rec['label']; + $_SESSION['username'] = $rec['imap_user']; + $_SESSION['password'] = $rec['imap_pwd']; + $_SESSION['storage_host'] = $rec['imap_host']; + $_SESSION['storage_port'] = $rec['imap_port']; + $_SESSION['storage_ssl'] = $rec['flags'] & self::IMAP_SSL ? 'ssl' : + ($rec['flags'] & self::IMAP_TLS ? 'tls' : ''); + $_SESSION['imap_delimiter'] = $rec['imap_delim']; + $_SESSION['unseen'] = $rec['unseen']; + self::set('iid', $iid); + + $prefs = $rc->user->get_prefs(); + + // set special folder + $prefs['show_real_foldernames'] = $rec['flags'] & self::SHOW_REAL_FOLDER ? true : false; + $prefs['lock_special_folders'] = $rec['flags'] & self::LOCK_SPECIAL_FOLDER ? true : false; + if (isset($rec['folders']) && is_array($rec['folders'])) + foreach ($rec['folders'] as $k => $v) + $prefs[$k.'_mbox'] = $v; + $prefs['check_all_folders'] = $rec['flags'] & self::CHECK_ALLFOLDER ? '1' : '0'; + $prefs['newmail_notifier_desktop_timeout'] = $rec['notify_timeout']; + + // set notification + foreach ([ self::NOTIFY_BASIC => 'basic', + self::NOTIFY_DESKTOP => 'desktop', + self::NOTIFY_SOUND => 'sound' ] as $k => $v) + if ($rec['flags'] & $k) + $prefs['newmail_notifier_'.$v] = '1'; + $prefs['newmail_notifier_timeout'] = $rec['notify_timeout']; + $rc->user->save_prefs($prefs); + + // set new default identity + self::set('iid', $iid); + } + + /** + * Process config.inc.php + * + * @param string $email Users eMail + * @return bool|array + */ + private function get_config(string $email): bool|array + { + // get domain of identity + if (!($p = strstr($email, '@')) || !($dom = substr($p, 1))) + return false; + + // load config.inc.php.dist + $this->load_config(); + + $cfg = rcmail::get_instance()->config->get('identity_switch.config', []); + + if (!isset($cfg[$dom]) && !isset($cfg['*'])) + return false; + + if (!isset($cfg[$dom]) && isset($cfg['*'])) + $dom = '*'; + + $cfg[$dom]['logging'] = $cfg['logging']; + $cfg[$dom]['check'] = $cfg['check']; + $cfg[$dom]['interval'] = $cfg['interval']; + $cfg[$dom]['retries'] = $cfg['retries']; + $cfg[$dom]['debug'] = $cfg['debug']; + + return $cfg[$dom]; + } + + /** + * Set variable in cache + * + * @param string|int $sect + * @param array|string|int $var + * @param string|int|bool $val + * @param string|int|bool $default + */ + protected function set(string|int $sect, array|string|int $var, mixed $val = null, string|int|bool $default = null): void + { + // table defied? + if (!isset($_SESSION[self::TABLE])) + $_SESSION[self::TABLE] = []; + + if (is_array($var)) + { + if (!isset($_SESSION[self::TABLE][$sect])) + $_SESSION[self::TABLE][$sect] = []; + foreach ($var as $k => $v) + $_SESSION[self::TABLE][$sect][$k] = is_null($v) ? $default : $v; + } elseif (is_null($val)) + $_SESSION[self::TABLE][$sect] = $var; + else + $_SESSION[self::TABLE][$sect][$var] = $val; + } + + /** + * Get cached variable + * + * @param string|int $sect + * @param string|int $var + * @return string|int|bool|array + */ + protected function get(string|int $sect = null, string|int $var = null): mixed + { + // get whole table? + if (!$sect && !$var) + { + if (!isset($_SESSION[self::TABLE])) + $_SESSION[self::TABLE] = []; + return $_SESSION[self::TABLE]; + } + + if ($sect && $var && isset($_SESSION[self::TABLE][$sect][$var])) + return $_SESSION[self::TABLE][$sect][$var]; + elseif (isset($_SESSION[self::TABLE][$sect])) + return $_SESSION[self::TABLE][$sect]; + + // not found + + // load configuration? + if (!isset($_SESSION[self::TABLE]['config'])) + { + parent::load_config(); + $rc = rcmail::get_instance(); + foreach ($rc->config->get('identity_switch.config', []) as $k => $v) + { + if ($k == 'logging' || $k == 'debug') + self::set('config', $k, (bool)$v, false); + if ($k == 'check') + self::set('config', $k, (bool)$v, true); + if ($k == 'interval') + self::set('config', $k, (int)$v, 30); + if ($k == 'delay') + self::set('config', $k, (int)$v, 0); + if ($k == 'retries') + self::set('config', $k, (int)$v, 10); + if ($k == 'wait') + self::set('config', $k, (int)$v, 60); + } + self::set('iid', 0); + self::set('config', 'language', $_SESSION['language']); + + self::set('config', 'cache', $c = $rc->config->get('temp_dir', sys_get_temp_dir()). + '/identity_switch_cache.'.session_id()); + self::set('config', 'data', str_replace('_cache', '_ret', $c)); + self::set('config', 'fp', 0); + self::set('lock', 0); + } + + if (!is_numeric($sect)) + return ''; + + $rc = [ + 'label' => 'identity_label', // label + 'flags' => 0, // flags + 'imap_user' => '', // IMAP user + 'imap_pwd' => '', // IMAP password + 'imap_host' => 'localhost', // IMAP host + 'imap_delim' => '.', // folder delimiter + 'imap_port' => 143, // IMAP port + 'smtp_host' => 'localhost', // SMTP host + 'smtp_port' => 25, // SMTP port + 'notify_timeout' => 10, // notification timeout (defaults to 10 sec.) + 'newmail_check' => self::get('config', 'interval'), // new mail check interval + 'folders' => [], // special folder name array + 'unseen' => 0, // # of unseen messages + 'checked_last' => 0, // last time checked + 'notify' => false, // notify user flag + ]; + + // save defaults + foreach ($rc as $k => $v) + self::set($sect, $k, $v); + + return $rc; + } + + /** + * Delete cached variable + * + * @param string|int $sect + * @param string $var + */ + protected function del(string|int $sect = null, string $var = null): void + { + if (!$sect && !$var) + $_SESSION[self::TABLE] = []; + + if ($sect) + unset($_SESSION[self::TABLE][$sect]); + else + unset($_SESSION[self::TABLE][$var]); + } + + /** + * Write log message + * + * @param string $txt Log message + * @param bool $debug TRUE=Is debug message; FALSE=regular message (default) + */ + static public function write_log(string $txt, bool $debug = false): void + { + if (!$debug && isset($_SESSION[self::TABLE]['config']) && $_SESSION[self::TABLE]['config']['logging']) + rcmail::get_instance()->write_log('identity_switch', $txt); + + if ($debug && isset($_SESSION[self::TABLE]['config']) && $_SESSION[self::TABLE]['config']['debug']) + rcmail::get_instance()->write_log('identity_switch', $txt); + } + +} diff --git a/plugins/identity_switch/identity_switch_rpc.php b/plugins/identity_switch/identity_switch_rpc.php new file mode 100644 index 0000000..7ec28d6 --- /dev/null +++ b/plugins/identity_switch/identity_switch_rpc.php @@ -0,0 +1,93 @@ + [ + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => false, + ], + ]); + + // open async connection + if (!($this->fp = stream_socket_client($host, $errno, $errmsg, 30,STREAM_CLIENT_ASYNC_CONNECT, $ctx))) + return 'Cannot connect to "'.$host.'" - ['.$errno.'] '.$errmsg; + + // set timeout + stream_set_timeout($this->fp, 30); + + // save host name + if ($p = strpos($host, '://')) + $host = substr($host, 3 + $p); + if ($p = strpos($host, ':')) + $host = substr($host, 0, $p); + $this->host = $host; + + return $this->fp; + } + + /** + * Write to asynchroneous communication channel + * + * @param string $req + * @return bool + */ + function write(string $req): bool + { + + $this->req = $req; + + // finalize request + $req = 'GET '.$req." HTTP/1.0\r\nHost: ".$this->host."\r\n\r\n"; + + return (bool)fwrite($this->fp, $req); + } + + /** + * Read from asynchroneous communication channel + * + * @return string + */ + function read(): string + { + if (!($wrk = fread($this->fp, 8192))) + return 'Errror reading from "'.$this->host.'" Request: "'.$this->req.'"'; + + $head = explode("\r\n", substr($wrk, 0, $pos = strpos($wrk, "\r\n\r\n"))); + $wrk = substr($wrk, $pos + 4); + + // we use this approach to get "HTTP/1.0 200 OK" as well as "HTTP/1.1 200 OK" + if (count($head) && strpos($head[0], '200 OK') === false) + return '"'.$head[0].'" for "'.$this->host.'" Request: "'.$this->req.'"'; + else { + if (is_string($wrk) && strlen($wrk) > 1) + return $wrk; + } + + return $wrk; + } + +} diff --git a/plugins/identity_switch/localization/de_DE.inc b/plugins/identity_switch/localization/de_DE.inc new file mode 100644 index 0000000..9caa2aa --- /dev/null +++ b/plugins/identity_switch/localization/de_DE.inc @@ -0,0 +1,61 @@ +/plugins directory. +Don't add this plugin to the plugins array in the Roundcube config file. + +COMPATIBILITY +------------- +This plugin has been created for the standard version of Roundcube as provided on the Roundcube website: +https://roundcube.net. It might not work properly with customized versions of Roundcube including the version +provided as part of the Kolab system. Please note that we cannot provide any technical support for the plugin +deployed on a non-standard version of Roundcube. + +CONFIGURATION +------------- +This plugin does not have its own configuration file. But it offers some configuration options that can be added to +the main Roundcube config file: /config/config.inc.php. + +**** LICENSE KEY (REQUIRED) + +This option is required for the plugins and skins to function. The license key can be obtained from the customer area +of the website where you purchased the skins or plugins. Add the license key to the config file this way: + +$config['license_key'] = 'your_license_key'; + +**** SHOW/HIDE SIDEBAR + +Some Roundcube Plus plugins (for example, xcalendar, xlast_login, xnews_feed) add content to the sidebar that appears on +the left side of the screen. The sidebar will be visible by default; if you want to change this behavior and hide the +sidebar to begin with, add this to the config file: + +$config['xsidebar_visible'] = false; + +**** COLLAPSE/EXPAND SIDEBAR ITEMS + +By default, all the items in the sidebar are expanded. If you want to change this default and collapse some items +to begin with, use this config option: + +$config['xsidebar_collapsed'] = array('xcalendar', 'xquote'); + +In the example above, the items added by the calendar and the quote plugins will be collapsed while all the other items +will be expanded. + +**** REORDER SIDEBAR + +The items are added to the sidebar following the order in which the plugins are added to the plugins array. If you want +to change the default order of the sidebar items, change the order of the plugins in the plugins array. + +**** ADD TO APPS MENU + +Using this setting you can add your own, personalized items to the Apps menu. The items should be in the format: + +url => array(title, image) + +For example: + +$config['add_to_apps_menu'] = array( + "?_task=your_plugin" => array("title" => "Your plugin", "image" => "http://path_to_image.png"), +); + +**** REMOVE FROM APPS MENU + +Using this setting you can remove items from the Apps menu. Reference the items by their url, for example: + +$config['remove_from_apps_menu'] = array( + '?_task=settings&_action=preferences&_section=xcalendar', +); + +**** DISABLE APPS MENU + +If you'd like to remove the Apps button from the Roundcube header menu, use this setting: + +$config['disable_apps_menu'] = true; + +**** REMOVE VENDOR BRANDING + +If you'd like to remove the Roundcube Plus branding from the login screen, add this to the config file: + +$config['remove_vendor_branding'] = true; + +**** CHANGE $_SERVER['REMOTE_ADDR'] + +If the user IP on your server is not stored under $_SERVER['REMOTE_ADDR'], you can use this setting to tell the +xframework plugin which $_SERVER variable to retrieve it from. For example: + +$config['remote_addr_key'] = 'HTTP_CLIENT_IP'; + +In this case, the plugin will retrieve the user IP from $_SERVER['HTTP_CLIENT_IP']. + +The user IP is used by some plugins that rely on xframework, for example xlast_login. + +**** OVERWRITE ROUNDCUBE URL + +The Roundcube Plus plugins use the variables from the $_SERVER array to construct the URL through which Roundcube can be +accessed. In some cases, the $_SERVER variables don't provide the right values and the constructed URL is incorrect. +If this is true in your case, you can bypass the xframework functions that construct the URL from the $_SERVER variables +and specify the Roundcube URL directly using this setting: + +$config['overwrite_roundcube_url'] = "https://my-roundcube-is-here.com"; + +ATTRIBUTION +----------- +This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com. + +LICENSE +------- +This plugin is distributed under a commercial license. In order to use the plugin, you must purchase the license +from Tecorama LLC. See the LICENSE file for details. + +COPYRIGHT +--------- +Copyright (c) 2024, Tecorama LLC \ No newline at end of file diff --git a/plugins/xframework/VERSION b/plugins/xframework/VERSION new file mode 100644 index 0000000..9c95127 --- /dev/null +++ b/plugins/xframework/VERSION @@ -0,0 +1 @@ +2.0.3 (2024-11-08) \ No newline at end of file diff --git a/plugins/xframework/assets/bower.json b/plugins/xframework/assets/bower.json new file mode 100644 index 0000000..ae2a91b --- /dev/null +++ b/plugins/xframework/assets/bower.json @@ -0,0 +1,26 @@ +{ + "name": "xcalendar", + "version": "1.0.0", + "authors": [ + "chris " + ], + "license": "Commercial", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "angular": "~1.8", + "angular-animate": "~1.8", + "angular-jquery-timepicker": "~0.13", + "angular-minicolors": "~0.0.11", + "jquery-form": "~3.46.0", + "ngclipboard": "^1.1.1", + "moment": "~2.29", + "howler.js": "howler#^2.0.2", + "js-cookie": "~2.2" + } +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-animate/.bower.json b/plugins/xframework/assets/bower_components/angular-animate/.bower.json new file mode 100644 index 0000000..931ec20 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-animate/.bower.json @@ -0,0 +1,20 @@ +{ + "name": "angular-animate", + "version": "1.8.2", + "license": "MIT", + "main": "./angular-animate.js", + "ignore": [], + "dependencies": { + "angular": "1.8.2" + }, + "homepage": "https://github.com/angular/bower-angular-animate", + "_release": "1.8.2", + "_resolution": { + "type": "version", + "tag": "v1.8.2", + "commit": "9ad6bb07b8f364654552afe7cfd028efc4fce30d" + }, + "_source": "https://github.com/angular/bower-angular-animate.git", + "_target": "~1.8", + "_originalSource": "angular-animate" +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-animate/LICENSE.md b/plugins/xframework/assets/bower_components/angular-animate/LICENSE.md new file mode 100644 index 0000000..2c395ee --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-animate/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Angular + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular-animate/README.md b/plugins/xframework/assets/bower_components/angular-animate/README.md new file mode 100644 index 0000000..8313da6 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-animate/README.md @@ -0,0 +1,68 @@ +# packaged angular-animate + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAnimate). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-animate +``` + +Then add `ngAnimate` as a dependency for your app: + +```javascript +angular.module('myApp', [require('angular-animate')]); +``` + +### bower + +```shell +bower install angular-animate +``` + +Then add a ` +``` + +Then add `ngAnimate` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngAnimate']); +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/api/ngAnimate). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular-animate/angular-animate.min.js b/plugins/xframework/assets/bower_components/angular-animate/angular-animate.min.js new file mode 100644 index 0000000..72162c5 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-animate/angular-animate.min.js @@ -0,0 +1,59 @@ +/* + AngularJS v1.8.2 + (c) 2010-2020 Google LLC. http://angularjs.org + License: MIT +*/ +(function(Y,z){'use strict';function Fa(a,b,c){if(!a)throw Pa("areq",b||"?",c||"required");return a}function Ga(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;Z(a)&&(a=a.join(" "));Z(b)&&(b=b.join(" "));return a+" "+b}function Qa(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function $(a,b,c){var d="";a=Z(a)?a:a&&G(a)&&a.length?a.split(/\s+/):[];s(a,function(a,k){a&&0=a&&(a=t,t=0,b.push(f),f=[]);f.push(g);g.children.forEach(function(a){t++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var C=[],U=aa(a);return function(e, +H,u){function t(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];s(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function I(a){var b=[],c={};s(a,function(a,d){var l=K(a.element),g=0<=["enter","move"].indexOf(a.event),l=a.structural?t(l):[];if(l.length){var f=g?"to":"from";s(l,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][f]={animationID:d,element:A(a)}})}else b.push(a)});var d={},g={};s(c,function(c, +t){var f=c.from,e=c.to;if(f&&e){var h=a[f.animationID],k=a[e.animationID],E=f.animationID.toString();if(!g[E]){var I=g[E]={structural:!0,beforeStart:function(){h.beforeStart();k.beforeStart()},close:function(){h.close();k.close()},classes:da(h.classes,k.classes),from:h,to:k,anchors:[]};I.classes.length?b.push(I):(b.push(h),b.push(k))}g[E].anchors.push({out:f.element,"in":e.element})}else f=f?f.animationID:e.animationID,e=f.toString(),d[e]||(d[e]=!0,b.push(a[f]))});return b}function da(a,b){a=a.split(" "); +b=b.split(" ");for(var c=[],d=0;d=G&&b>=D&&(la=!0,v()))}function F(){function b(){if(!P){u(!1);s(y,function(a){l.style[a[0]]=a[1]});H(a,g);c.addClass(a,ba);if(p.recalculateTimingStyles){T=l.getAttribute("class")+" "+V;ka=k.cacheKey(l,ja,g.addClass,g.removeClass);r=z(l,T,ka,!1);ga=r.maxDelay;W= +Math.max(ga,0);D=r.maxDuration;if(0===D){v();return}p.hasTransitions=0n.expectedEndTime)?f.cancel(n.timer):h.push(v)}F&&(m=f(d,m,!1),h[0]={timer:m,expectedEndTime:e},h.push(v),a.data("$$animateCss",h));if(w.length)a.on(w.join(" "),q);g.to&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.to)),Ja(a,g))}}function d(){var b=a.data("$$animateCss");if(b){for(var c=1;c", + "license": "MIT", + "bugs": { + "url": "https://github.com/angular/angular.js/issues" + }, + "homepage": "http://angularjs.org", + "jspm": { + "shim": { + "angular-animate": { + "deps": ["angular"] + } + } + } +} diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/.bower.json b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/.bower.json new file mode 100644 index 0000000..58d64ad --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/.bower.json @@ -0,0 +1,35 @@ +{ + "name": "angular-jquery-timepicker", + "version": "0.13.1", + "homepage": "https://github.com/Recras/angular-jquery-timepicker", + "description": "An AngularJS directive for jQuery Timepicker", + "main": "./src/timepickerdirective.js", + "authors": [ + "https://github.com/Recras/angular-jquery-timepicker/graphs/contributors" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "angular": ">= 1.3", + "jquery-timepicker-jt": "1.2 - 1.8" + }, + "devDependencies": { + "angular-mocks": "~1.x", + "moment": "~2.9.0" + }, + "_release": "0.13.1", + "_resolution": { + "type": "version", + "tag": "0.13.1", + "commit": "bd97ee88e11614e32d37c0510893a8c98ceef701" + }, + "_source": "https://github.com/Recras/angular-jquery-timepicker.git", + "_target": "~0.13", + "_originalSource": "angular-jquery-timepicker" +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/LICENSE b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/LICENSE new file mode 100644 index 0000000..28f113e --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2014 Recras + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/README.md b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/README.md new file mode 100644 index 0000000..6f54acc --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/README.md @@ -0,0 +1,53 @@ +angular-jquery-timepicker [![Build Status](https://travis-ci.org/Recras/angular-jquery-timepicker.png?branch=master)](https://travis-ci.org/Recras/angular-jquery-timepicker) +===================== + +An AngularJS directive for [jquery-timepicker](https://github.com/jonthornton/jquery-timepicker) + +[See a demo here](http://recras.github.io/angular-jquery-timepicker/) + +# Requirements + +- AngularJS +- JQuery +- [jquery-timepicker](https://github.com/jonthornton/jquery-timepicker) + +# Usage + +You can use Bower or NPM to install this directive. + + bower install angular-jquery-timepicker + +or for NPM: + + npm install angular-jquery-timepicker + +Add the timepicker module as a dependency to your applicatin module: + + var myAppModule = angular.module('MyApp', ['ui.timepicker']) + + +Apply the directive to your form elements. This directive expects ng-model to be a valid javascript Date object (or null). + + + +You can specify a base-date that will be used to initialize the ng-model when it is null + + + +Configure timepicker at a global level. Use the 'asMoment' to use moment.js instead of Date as the ng-model. Note: moment.js timezones will be discarded. + + angular.module('ui.timepicker').value('uiTimepickerConfig',{ + step: 5, + asMoment: true + }); + + +Adding custom options to timepicker. + + $scope.timePickerOptions = { + step: 20, + timeFormat: 'g:ia', + appendTo: 'body' + }; + + diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/bower.json b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/bower.json new file mode 100644 index 0000000..56f13a0 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/bower.json @@ -0,0 +1,26 @@ +{ + "name": "angular-jquery-timepicker", + "version": "0.13.1", + "homepage": "https://github.com/Recras/angular-jquery-timepicker", + "description": "An AngularJS directive for jQuery Timepicker", + "main": "./src/timepickerdirective.js", + "authors": [ + "https://github.com/Recras/angular-jquery-timepicker/graphs/contributors" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "angular": ">= 1.3", + "jquery-timepicker-jt": "1.2 - 1.8" + }, + "devDependencies": { + "angular-mocks": "~1.x", + "moment": "~2.9.0" + } +} diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/gruntFile.js b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/gruntFile.js new file mode 100644 index 0000000..a6ad339 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/gruntFile.js @@ -0,0 +1,48 @@ +module.exports = function (grunt) { + + grunt.loadNpmTasks('grunt-karma'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + + // Default task. + grunt.registerTask('default', ['jshint', 'uglify', 'karma']); + + var testConfig = function(configFile, customOptions) { + var options = { configFile: configFile, keepalive: true }; + var travisOptions = process.env.TRAVIS && { browsers: ['Firefox'], reporters: 'dots' }; + return grunt.util._.extend(options, customOptions, travisOptions); + }; + + + // Project configuration. + grunt.initConfig({ + karma: { + unit: { + options: testConfig('test/test.conf.js') + } + }, + jshint:{ + files:['src/timepickerdirective.js', 'test/**/*.js'], + options:{ + curly:true, + eqeqeq:true, + immed:true, + latedef:true, + newcap:true, + noarg:true, + sub:true, + boss:true, + eqnull:true, + globals:{} + } + }, + uglify: { + dist: { + files: { + 'src/timepickerdirective.min.js': ['src/timepickerdirective.js'] + } + } + } + }); + +}; \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/package.json b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/package.json new file mode 100644 index 0000000..1f91c4d --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/package.json @@ -0,0 +1,26 @@ +{ + "name": "angular-jquery-timepicker", + "version": "0.13.1", + "description": "An AngularJS directive for jQuery Timepicker", + "main": "./src/timepickerdirective.js", + "devDependencies": { + "grunt": "~0.4.2", + "grunt-contrib-jshint": "~0.8.0", + "grunt-contrib-uglify": "~0.3.3", + "grunt-karma": "~0.6.2" + }, + "dependencies": {}, + "scripts": { + "test": "grunt karma" + }, + "repository": { + "type": "git", + "url": "git@github.com:Recras/angular-jquery-timepicker.git" + }, + "author": "https://github.com/Recras/angular-jquery-timepicker/graphs/contributors", + "license": "MIT", + "bugs": { + "url": "https://github.com/Recras/angular-jquery-timepicker/issues" + }, + "homepage": "https://github.com/Recras/angular-jquery-timepicker" +} diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.js b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.js new file mode 100644 index 0000000..fbbc89d --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.js @@ -0,0 +1,126 @@ +/*global angular */ +/* + Directive for jQuery UI timepicker (http://jonthornton.github.io/jquery-timepicker/) + + */ +var m = angular.module('ui.timepicker', []); + + +m.value('uiTimepickerConfig', { + 'step': 15 +}); + +m.directive('uiTimepicker', ['uiTimepickerConfig', '$parse', '$window', function(uiTimepickerConfig, $parse, $window) { + var moment = $window.moment; + + var isAMoment = function(date) { + return moment !== undefined && moment.isMoment(date) && date.isValid(); + }; + var isDateOrMoment = function(date) { + return date !== null && (angular.isDate(date) || isAMoment(date)); + }; + + return { + restrict: 'A', + require: 'ngModel', + scope: { + ngModel: '=', + baseDate: '=', + uiTimepicker: '=', + }, + priority: 1, + link: function(scope, element, attrs, ngModel) { + 'use strict'; + var config = angular.copy(uiTimepickerConfig); + var asMoment = config.asMoment || false; + delete config.asMoment; + + ngModel.$render = function() { + var date = ngModel.$modelValue; + if (!angular.isDefined(date)) { + return; + } + if (date !== null && date !== '' && !isDateOrMoment(date)) { + throw new Error('ng-Model value must be a Date or Moment object - currently it is a ' + typeof date + '.'); + } + if (isAMoment(date)) { + date = date.toDate(); + } + if (!element.is(':focus') && !invalidInput()) { + element.timepicker('setTime', date); + } + if(date === null){ + resetInput(); + } + }; + + scope.$watch('ngModel', function() { + ngModel.$render(); + }, true); + + scope.$watch('uiTimepicker', function() { + element.timepicker( + 'option', + angular.extend( + config, scope.uiTimepicker ? + scope.uiTimepicker : + {} + ) + ); + ngModel.$render(); + }, true); + + config.appendTo = config.appendTo || element.parent(); + + element.timepicker( + angular.extend( + config, scope.uiTimepicker ? + scope.uiTimepicker : + {} + ) + ); + + var resetInput = function(){ + element.timepicker('setTime', null); + }; + + var userInput = function() { + return element.val().trim(); + }; + + var invalidInput = function() { + return userInput() && ngModel.$modelValue === null; + }; + + element.on('$destroy', function() { + element.timepicker('remove'); + }); + + var asDate = function() { + var baseDate = ngModel.$modelValue ? ngModel.$modelValue : scope.baseDate; + return isAMoment(baseDate) ? baseDate.toDate() : baseDate; + }; + + var asMomentOrDate = function(date) { + return asMoment ? moment(date) : date; + }; + + if (element.is('input')) { + ngModel.$parsers.unshift(function(viewValue) { + var date = element.timepicker('getTime', asDate()); + return date ? asMomentOrDate(date) : date; + }); + ngModel.$validators.time = function(modelValue) { + return (!attrs.required && !userInput()) ? true : isDateOrMoment(modelValue); + }; + } else { + element.on('changeTime', function() { + scope.$evalAsync(function() { + var date = element.timepicker('getTime', asDate()); + ngModel.$setViewValue(date); + }); + }); + } + } + }; +}]); diff --git a/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.min.js b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.min.js new file mode 100644 index 0000000..e058276 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-jquery-timepicker/src/timepickerdirective.min.js @@ -0,0 +1 @@ +var m=angular.module("ui.timepicker",[]);m.value("uiTimepickerConfig",{step:15}),m.directive("uiTimepicker",["uiTimepickerConfig","$parse","$window",function(a,b,c){var d=c.moment,e=function(a){return void 0!==d&&d.isMoment(a)&&a.isValid()},f=function(a){return null!==a&&(angular.isDate(a)||e(a))};return{restrict:"A",require:"ngModel",scope:{ngModel:"=",baseDate:"=",uiTimepicker:"="},priority:1,link:function(b,c,g,h){"use strict";var i=angular.copy(a),j=i.asMoment||!1;delete i.asMoment,h.$render=function(){var a=h.$modelValue;if(angular.isDefined(a)){if(null!==a&&""!==a&&!f(a))throw new Error("ng-Model value must be a Date or Moment object - currently it is a "+typeof a+".");e(a)&&(a=a.toDate()),c.is(":focus")||m()||c.timepicker("setTime",a),null===a&&k()}},b.$watch("ngModel",function(){h.$render()},!0),b.$watch("uiTimepicker",function(){c.timepicker("option",angular.extend(i,b.uiTimepicker?b.uiTimepicker:{})),h.$render()},!0),i.appendTo=i.appendTo||c.parent(),c.timepicker(angular.extend(i,b.uiTimepicker?b.uiTimepicker:{}));var k=function(){c.timepicker("setTime",null)},l=function(){return c.val().trim()},m=function(){return l()&&null===h.$modelValue};c.on("$destroy",function(){c.timepicker("remove")});var n=function(){var a=h.$modelValue?h.$modelValue:b.baseDate;return e(a)?a.toDate():a},o=function(a){return j?d(a):a};c.is("input")?(h.$parsers.unshift(function(a){var b=c.timepicker("getTime",n());return b?o(b):b}),h.$validators.time=function(a){return g.required||l()?f(a):!0}):c.on("changeTime",function(){b.$evalAsync(function(){var a=c.timepicker("getTime",n());h.$setViewValue(a)})})}}}]); \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/.bower.json b/plugins/xframework/assets/bower_components/angular-minicolors/.bower.json new file mode 100644 index 0000000..5edbb89 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/.bower.json @@ -0,0 +1,38 @@ +{ + "name": "angular-minicolors", + "version": "0.0.11", + "homepage": "https://github.com/kaihenzler/angular-minicolors", + "authors": [ + "Kai Henzler " + ], + "description": "A wrapper around JQuery MiniColors by Cory LaViska", + "keywords": [ + "angular", + "minicolors", + "colorpicker", + "color-picker", + "color", + "picker" + ], + "main": "angular-minicolors.js", + "dependencies": { + "jquery-minicolors": "2.1.7" + }, + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "_release": "0.0.11", + "_resolution": { + "type": "version", + "tag": "0.0.11", + "commit": "74a40b5fbd56ac4898ded1c4111303329e4debf8" + }, + "_source": "https://github.com/kaihenzler/angular-minicolors.git", + "_target": "~0.0.11", + "_originalSource": "angular-minicolors" +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/LICENSE b/plugins/xframework/assets/bower_components/angular-minicolors/LICENSE new file mode 100644 index 0000000..6e11c83 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 Kai Henzler + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/README.md b/plugins/xframework/assets/bower_components/angular-minicolors/README.md new file mode 100644 index 0000000..4bb5a6f --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/README.md @@ -0,0 +1,117 @@ +angular-minicolors +================== + +## General + +My first try of wrtiting a wrapper-directive around JQuery MiniColors by [Cory LaViska ](https://github.com/claviska) [https://github.com/claviska/jquery-minicolors](https://github.com/claviska/jquery-minicolors) + +Works with Bootstrap 3 and works fine with mobile browsers such as Safari on iPad. + +##[DEMO and API](https://kaihenzler.github.io/angular-minicolors) + +## How To Install + +1. Install by typing `bower install angular-minicolors` consider using the `--save` option to save the dependency to your own bower.json file + +## How To Use + +1. Include the JQuery MiniColors Files from the bower_components folder (bower_components/jquery-minicolors/) in your project. +The files you need are: `jquery-minicolors.js` `jquery-minicolors.css` and `jquery-minicolors.png` and of course JQuery itself + +2. Add the dependency to your app definition `angular.module('myApp', ['minicolors'])` + +3. Append `minicolors` attribute to any input-field. If you want to pass in a settings object, do it like this: `minicolors="MySettingsObject"`. Below you can see a usage example with bootstrap classes. The directive should be wrapped inside a div to preserve correct styling. + +```html +
+ + +
+ + +``` + +angular-minicolors is planned to be API compatible with: [http://labs.abeautifulsite.net/jquery-minicolors/](http://labs.abeautifulsite.net/jquery-minicolors/) + +keep in mind, that this is my first public angular-directive and it is by far not finished. + +## default config + +the default config is as follows: + +```js + theme: 'bootstrap', + position: 'top left', + defaultValue: '', + animationSpeed: 50, + animationEasing: 'swing', + change: null, + changeDelay: 0, + control: 'hue', + hide: null, + hideSpeed: 100, + inline: false, + letterCase: 'lowercase', + opacity: false, + show: null, + showSpeed: 100 +``` + + +## app-wide config + +a Provider is now exposed and you can edit the global config like this: + +```js +angular.module('my-app').config(function (minicolorsProvider) { + angular.extend(minicolorsProvider.defaults, { + control: 'hue', + position: 'top left' + }); +}); +``` + +## TODO + +- wrap the original events in angular events +- add protection against false color values + +## Found an issue? + +Please report the issue and feel free to submit a pull request + +## Copyright and license + +The MIT License (MIT) + +Copyright (c) 2013 Kai Henzler + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/angular-minicolors.js b/plugins/xframework/assets/bower_components/angular-minicolors/angular-minicolors.js new file mode 100644 index 0000000..b172921 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/angular-minicolors.js @@ -0,0 +1,155 @@ +'format cjs'; +'use strict'; + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + define(['angular', 'jquery-minicolors'], factory); + } else if (typeof exports === 'object') { + module.exports = factory(require('angular'), require('jquery-minicolors')); + module.exports = 'minicolors'; + } else { + root.angularMinicolors = factory(root.angular, root.jqueryMinicolors); + } +})(this, function(angular) { + + angular.module('minicolors', []); + + angular.module('minicolors').provider('minicolors', function() { + this.defaults = { + theme: 'bootstrap', + position: 'top left', + defaultValue: '', + animationSpeed: 50, + animationEasing: 'swing', + change: null, + changeDelay: 0, + control: 'hue', + hide: null, + hideSpeed: 100, + inline: false, + letterCase: 'lowercase', + opacity: false, + show: null, + showSpeed: 100 + }; + + this.$get = function() { + return this; + }; + + }); + + angular.module('minicolors').directive('minicolors', ['minicolors', '$timeout', function(minicolors, $timeout) { + return { + require: '?ngModel', + restrict: 'A', + priority: 1, //since we bind on an input element, we have to set a higher priority than angular-default input + link: function(scope, element, attrs, ngModel) { + + var inititalized = false; + + //gets the settings object + var getSettings = function() { + var config = angular.extend({}, minicolors.defaults, scope.$eval(attrs.minicolors)); + return config; + }; + + /** + * check if value is valid color value + * e.g.#fff000 or #fff + * @param color + */ + function isValidColor(color) { + return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(color); + } + + function canSetValue() { + return (element.data('minicolors-settings') != null) + } + + /** + * set color value as minicolors internal color value + * @param color + */ + function setMinicolorsValue(color) { + if (isValidColor(color) && canSetValue()) { + element.minicolors('value', color); + } + } + + //what to do if the value changed + ngModel.$render = function() { + + + //we are in digest or apply, and therefore call a timeout function + $timeout(function() { + var color = ngModel.$viewValue; + setMinicolorsValue(color); + }, 0, false); + }; + + //init method + var initMinicolors = function() { + + if (!ngModel) { + return; + } + var settings = getSettings(); + settings.change = function(hex) { + scope.$apply(function() { + if (isValidColor(hex)) + ngModel.$setViewValue(hex); + }); + }; + + //destroy the old colorpicker if one already exists + if (element.hasClass('minicolors-input')) { + element.minicolors('destroy'); + element.off('blur', onBlur); + } + + // Create the new minicolors widget + element.minicolors(settings); + + // hook up into the jquery-minicolors onBlur event. + element.on('blur', onBlur); + + // are we inititalized yet ? + //needs to be wrapped in $timeout, to prevent $apply / $digest errors + //$scope.$apply will be called by $timeout, so we don't have to handle that case + if (!inititalized) { + $timeout(function() { + var color = ngModel.$viewValue; + setMinicolorsValue(color); + }, 0); + inititalized = true; + return; + } + + function onBlur(e) { + scope.$apply(function() { + var color = element.minicolors('value'); + if (isValidColor(color)) + ngModel.$setViewValue(color); + }); + } + }; + + initMinicolors(); + //initital call + + // Watch for changes to the directives options and then call init method again + var unbindWatch = scope.$watch(getSettings, initMinicolors, true); + + scope.$on('$destroy', function () { + if (element.hasClass('minicolors-input')) { + element.minicolors('destroy'); + element.remove(); + } + if (unbindWatch) unbindWatch(); + }); + + } + }; + }]); +}); \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/bower.json b/plugins/xframework/assets/bower_components/angular-minicolors/bower.json new file mode 100644 index 0000000..ab856ad --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/bower.json @@ -0,0 +1,29 @@ +{ + "name": "angular-minicolors", + "version": "0.0.11", + "homepage": "https://github.com/kaihenzler/angular-minicolors", + "authors": [ + "Kai Henzler " + ], + "description": "A wrapper around JQuery MiniColors by Cory LaViska", + "keywords": [ + "angular", + "minicolors", + "colorpicker", + "color-picker", + "color", + "picker" + ], + "main": "angular-minicolors.js", + "dependencies": { + "jquery-minicolors": "2.1.7" + }, + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/plugins/xframework/assets/bower_components/angular-minicolors/package.json b/plugins/xframework/assets/bower_components/angular-minicolors/package.json new file mode 100644 index 0000000..ea836bd --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular-minicolors/package.json @@ -0,0 +1,31 @@ +{ + "name": "angular-minicolors", + "version": "0.0.11", + "description": "A wrapper around JQuery MiniColors by Cory LaViska", + "main": "angular-minicolors.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/kaihenzler/angular-minicolors.git" + }, + "keywords": [ + "angular", + "minicolors", + "colorpicker", + "color-picker", + "color", + "picker" + ], + "author": "Kai Henzler ", + "license": "MIT", + "bugs": { + "url": "https://github.com/kaihenzler/angular-minicolors/issues" + }, + "homepage": "https://github.com/kaihenzler/angular-minicolors#readme", + "peerDependencies": { + "jquery-minicolors": "^2.1.10", + "angular": "^1.4.0" + } +} diff --git a/plugins/xframework/assets/bower_components/angular/.bower.json b/plugins/xframework/assets/bower_components/angular/.bower.json new file mode 100644 index 0000000..10760e5 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular/.bower.json @@ -0,0 +1,18 @@ +{ + "name": "angular", + "version": "1.8.2", + "license": "MIT", + "main": "./angular.js", + "ignore": [], + "dependencies": {}, + "homepage": "https://github.com/angular/bower-angular", + "_release": "1.8.2", + "_resolution": { + "type": "version", + "tag": "v1.8.2", + "commit": "87e966dfdca26321553d6d289a3cff337865058e" + }, + "_source": "https://github.com/angular/bower-angular.git", + "_target": "1.8.2", + "_originalSource": "angular" +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/angular/LICENSE.md b/plugins/xframework/assets/bower_components/angular/LICENSE.md new file mode 100644 index 0000000..2c395ee --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Angular + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular/README.md b/plugins/xframework/assets/bower_components/angular/README.md new file mode 100644 index 0000000..d1bc0ed --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular/README.md @@ -0,0 +1,64 @@ +# packaged angular + +This repo is for distribution on `npm` and `bower`. The source for this module is in the +[main AngularJS repo](https://github.com/angular/angular.js). +Please file issues and pull requests against that repo. + +## Install + +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular +``` + +Then add a ` +``` + +Or `require('angular')` from your code. + +### bower + +```shell +bower install angular +``` + +Then add a ` +``` + +## Documentation + +Documentation is available on the +[AngularJS docs site](http://docs.angularjs.org/). + +## License + +The MIT License + +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/plugins/xframework/assets/bower_components/angular/angular-csp.css b/plugins/xframework/assets/bower_components/angular/angular-csp.css new file mode 100644 index 0000000..5e3a079 --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular/angular-csp.css @@ -0,0 +1,25 @@ +/* Include this file in your html if you are using the CSP mode. */ + +@charset "UTF-8"; + +[ng\:cloak], +[ng-cloak], +[data-ng-cloak], +[x-ng-cloak], +.ng-cloak, +.x-ng-cloak, +.ng-hide:not(.ng-hide-animate) { + display: none !important; +} + +ng\:form { + display: block; +} + +.ng-animate-shim { + visibility:hidden; +} + +.ng-anchor { + position:absolute; +} diff --git a/plugins/xframework/assets/bower_components/angular/angular.min.js b/plugins/xframework/assets/bower_components/angular/angular.min.js new file mode 100644 index 0000000..8b3981d --- /dev/null +++ b/plugins/xframework/assets/bower_components/angular/angular.min.js @@ -0,0 +1 @@ +"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}(function(window){"use strict";var minErrConfig={objectMaxDepth:5,urlErrorParamsEnabled:true};function errorHandlingConfig(config){if(isObject(config)){if(isDefined(config.objectMaxDepth)){minErrConfig.objectMaxDepth=isValidObjectMaxDepth(config.objectMaxDepth)?config.objectMaxDepth:NaN}if(isDefined(config.urlErrorParamsEnabled)&&isBoolean(config.urlErrorParamsEnabled)){minErrConfig.urlErrorParamsEnabled=config.urlErrorParamsEnabled}}else{return minErrConfig}}function isValidObjectMaxDepth(maxDepth){return isNumber(maxDepth)&&maxDepth>0}function minErr(module,ErrorConstructor){ErrorConstructor=ErrorConstructor||Error;var url="https://errors.angularjs.org/1.8.2/";var regex=url.replace(".","\\.")+"[\\s\\S]*";var errRegExp=new RegExp(regex,"g");return function(){var code=arguments[0],template=arguments[1],message="["+(module?module+":":"")+code+"] ",templateArgs=sliceArgs(arguments,2).map(function(arg){return toDebugString(arg,minErrConfig.objectMaxDepth)}),paramPrefix,i;message+=template.replace(/\{\d+\}/g,function(match){var index=+match.slice(1,-1);if(index=0&&length-1 in obj||typeof obj.item==="function")}function forEach(obj,iterator,context){var key,length;if(obj){if(isFunction(obj)){for(key in obj){if(key!=="prototype"&&key!=="length"&&key!=="name"&&obj.hasOwnProperty(key)){iterator.call(context,obj[key],key,obj)}}}else if(isArray(obj)||isArrayLike(obj)){var isPrimitive=_typeof(obj)!=="object";for(key=0,length=obj.length;key=0){array.splice(index,1)}return index}function copy(source,destination,maxDepth){var stackSource=[];var stackDest=[];maxDepth=isValidObjectMaxDepth(maxDepth)?maxDepth:NaN;if(destination){if(isTypedArray(destination)||isArrayBuffer(destination)){throw ngMinErr("cpta","Can't copy! TypedArray destination cannot be mutated.")}if(source===destination){throw ngMinErr("cpi","Can't copy! Source and destination are identical.")}if(isArray(destination)){destination.length=0}else{forEach(destination,function(value,key){if(key!=="$$hashKey"){delete destination[key]}})}stackSource.push(source);stackDest.push(destination);return copyRecurse(source,destination,maxDepth)}return copyElement(source,maxDepth);function copyRecurse(source,destination,maxDepth){maxDepth--;if(maxDepth<0){return"..."}var h=destination.$$hashKey;var key;if(isArray(source)){for(var i=0,ii=source.length;i2?sliceArgs(arguments,2):[];if(isFunction(fn)&&!(fn instanceof RegExp)){return curryArgs.length?function(){return arguments.length?fn.apply(self,concat(curryArgs,arguments,0)):fn.apply(self,curryArgs)}:function(){return arguments.length?fn.apply(self,arguments):fn.call(self)}}else{return fn}}function toJsonReplacer(key,value){var val=value;if(typeof key==="string"&&key.charAt(0)==="$"&&key.charAt(1)==="$"){val=undefined}else if(isWindow(value)){val="$WINDOW"}else if(value&&window.document===value){val="$DOCUMENT"}else if(isScope(value)){val="$SCOPE"}return val}function toJson(obj,pretty){if(isUndefined(obj))return undefined;if(!isNumber(pretty)){pretty=pretty?2:null}return JSON.stringify(obj,toJsonReplacer,pretty)}function fromJson(json){return isString(json)?JSON.parse(json):json}var ALL_COLONS=/:/g;function timezoneToOffset(timezone,fallback){timezone=timezone.replace(ALL_COLONS,"");var requestedTimezoneOffset=Date.parse("Jan 01, 1970 00:00:00 "+timezone)/6e4;return isNumberNaN(requestedTimezoneOffset)?fallback:requestedTimezoneOffset}function addDateMinutes(date,minutes){date=new Date(date.getTime());date.setMinutes(date.getMinutes()+minutes);return date}function convertTimezoneToLocal(date,timezone,reverse){reverse=reverse?-1:1;var dateTimezoneOffset=date.getTimezoneOffset();var timezoneOffset=timezoneToOffset(timezone,dateTimezoneOffset);return addDateMinutes(date,reverse*(timezoneOffset-dateTimezoneOffset))}function startingTag(element){element=jqLite(element).clone().empty();var elemHtml=jqLite("
").append(element).html();try{return element[0].nodeType===NODE_TYPE_TEXT?lowercase(elemHtml):elemHtml.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(match,nodeName){return"<"+lowercase(nodeName)})}catch(e){return lowercase(elemHtml)}}function tryDecodeURIComponent(value){try{return decodeURIComponent(value)}catch(e){}}function parseKeyValue(keyValue){var obj={};forEach((keyValue||"").split("&"),function(keyValue){var splitPoint,key,val;if(keyValue){key=keyValue=keyValue.replace(/\+/g,"%20");splitPoint=keyValue.indexOf("=");if(splitPoint!==-1){key=keyValue.substring(0,splitPoint);val=keyValue.substring(splitPoint+1)}key=tryDecodeURIComponent(key);if(isDefined(key)){val=isDefined(val)?tryDecodeURIComponent(val):true;if(!hasOwnProperty.call(obj,key)){obj[key]=val}else if(isArray(obj[key])){obj[key].push(val)}else{obj[key]=[obj[key],val]}}}});return obj}function toKeyValue(obj){var parts=[];forEach(obj,function(value,key){if(isArray(value)){forEach(value,function(arrayValue){parts.push(encodeUriQuery(key,true)+(arrayValue===true?"":"="+encodeUriQuery(arrayValue,true)))})}else{parts.push(encodeUriQuery(key,true)+(value===true?"":"="+encodeUriQuery(value,true)))}});return parts.length?parts.join("&"):""}function encodeUriSegment(val){return encodeUriQuery(val,true).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function encodeUriQuery(val,pctEncodeSpaces){return encodeURIComponent(val).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,pctEncodeSpaces?"%20":"+")}var ngAttrPrefixes=["ng-","data-ng-","ng:","x-ng-"];function getNgAttribute(element,ngAttr){var attr,i,ii=ngAttrPrefixes.length;for(i=0;i protocol indicates "+"an extension, document.location.href does not match.");return}config.strictDi=getNgAttribute(appElement,"strict-di")!==null;bootstrap(appElement,module?[module]:[],config)}}function bootstrap(element,modules,config){if(!isObject(config))config={};var defaultConfig={strictDi:false};config=extend(defaultConfig,config);var doBootstrap=function doBootstrap(){element=jqLite(element);if(element.injector()){var tag=element[0]===window.document?"document":startingTag(element);throw ngMinErr("btstrpd","App already bootstrapped with this element '{0}'",tag.replace(//,">"))}modules=modules||[];modules.unshift(["$provide",function($provide){$provide.value("$rootElement",element)}]);if(config.debugInfoEnabled){modules.push(["$compileProvider",function($compileProvider){$compileProvider.debugInfoEnabled(true)}])}modules.unshift("ng");var injector=createInjector(modules,config.strictDi);injector.invoke(["$rootScope","$rootElement","$compile","$injector",function bootstrapApply(scope,element,compile,injector){scope.$apply(function(){element.data("$injector",injector);compile(element)(scope)})}]);return injector};var NG_ENABLE_DEBUG_INFO=/^NG_ENABLE_DEBUG_INFO!/;var NG_DEFER_BOOTSTRAP=/^NG_DEFER_BOOTSTRAP!/;if(window&&NG_ENABLE_DEBUG_INFO.test(window.name)){config.debugInfoEnabled=true;window.name=window.name.replace(NG_ENABLE_DEBUG_INFO,"")}if(window&&!NG_DEFER_BOOTSTRAP.test(window.name)){return doBootstrap()}window.name=window.name.replace(NG_DEFER_BOOTSTRAP,"");angular.resumeBootstrap=function(extraModules){forEach(extraModules,function(module){modules.push(module)});return doBootstrap()};if(isFunction(angular.resumeDeferredBootstrap)){angular.resumeDeferredBootstrap()}}function reloadWithDebugInfo(){window.name="NG_ENABLE_DEBUG_INFO!"+window.name;window.location.reload()}function getTestability(rootElement){var injector=angular.element(rootElement).injector();if(!injector){throw ngMinErr("test","no injector found for element argument to getTestability")}return injector.get("$$testability")}var SNAKE_CASE_REGEXP=/[A-Z]/g;function snake_case(name,separator){separator=separator||"_";return name.replace(SNAKE_CASE_REGEXP,function(letter,pos){return(pos?separator:"")+letter.toLowerCase()})}var bindJQueryFired=false;function bindJQuery(){var originalCleanData;if(bindJQueryFired){return}var jqName=jq();jQuery=isUndefined(jqName)?window.jQuery:!jqName?undefined:window[jqName];if(jQuery&&jQuery.fn.on){jqLite=jQuery;extend(jQuery.fn,{scope:JQLitePrototype.scope,isolateScope:JQLitePrototype.isolateScope,controller:JQLitePrototype.controller,injector:JQLitePrototype.injector,inheritedData:JQLitePrototype.inheritedData})}else{jqLite=JQLite}originalCleanData=jqLite.cleanData;jqLite.cleanData=function(elems){var events;for(var i=0,elem;(elem=elems[i])!=null;i++){events=(jqLite._data(elem)||{}).events;if(events&&events.$destroy){jqLite(elem).triggerHandler("$destroy")}}originalCleanData(elems)};angular.element=jqLite;bindJQueryFired=true}function UNSAFE_restoreLegacyJqLiteXHTMLReplacement(){JQLite.legacyXHTMLReplacement=true}function assertArg(arg,name,reason){if(!arg){throw ngMinErr("areq","Argument '{0}' is {1}",name||"?",reason||"required")}return arg}function assertArgFn(arg,name,acceptArrayAnnotation){if(acceptArrayAnnotation&&isArray(arg)){arg=arg[arg.length-1]}assertArg(isFunction(arg),name,"not a function, got "+(arg&&_typeof(arg)==="object"?arg.constructor.name||"Object":_typeof(arg)));return arg}function assertNotHasOwnProperty(name,context){if(name==="hasOwnProperty"){throw ngMinErr("badname","hasOwnProperty is not a valid {0} name",context)}}function getter(obj,path,bindFnToScope){if(!path)return obj;var keys=path.split(".");var key;var lastInstance=obj;var len=keys.length;for(var i=0;i=0)return"...";seen.push(val)}return val})}function toDebugString(obj,maxDepth){if(typeof obj==="function"){return obj.toString().replace(/ \{[\s\S]*$/,"")}else if(isUndefined(obj)){return"undefined"}else if(typeof obj!=="string"){return serializeObject(obj,maxDepth)}return obj}var version={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};function publishExternalAPI(angular){extend(angular,{errorHandlingConfig:errorHandlingConfig,bootstrap:bootstrap,copy:copy,extend:extend,merge:merge,equals:equals,element:jqLite,forEach:forEach,injector:createInjector,noop:noop,bind:bind,toJson:toJson,fromJson:fromJson,identity:identity,isUndefined:isUndefined,isDefined:isDefined,isString:isString,isFunction:isFunction,isObject:isObject,isNumber:isNumber,isElement:isElement,isArray:isArray,version:version,isDate:isDate,callbacks:{$$counter:0},getTestability:getTestability,reloadWithDebugInfo:reloadWithDebugInfo,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:UNSAFE_restoreLegacyJqLiteXHTMLReplacement,$$minErr:minErr,$$csp:csp,$$encodeUriSegment:encodeUriSegment,$$encodeUriQuery:encodeUriQuery,$$lowercase:lowercase,$$stringify:stringify,$$uppercase:uppercase});angularModule=setupModuleLoader(window);angularModule("ng",["ngLocale"],["$provide",function ngModule($provide){$provide.provider({$$sanitizeUri:$$SanitizeUriProvider});$provide.provider("$compile",$CompileProvider).directive({a:htmlAnchorDirective,input:inputDirective,textarea:inputDirective,form:formDirective,script:scriptDirective,select:selectDirective,option:optionDirective,ngBind:ngBindDirective,ngBindHtml:ngBindHtmlDirective,ngBindTemplate:ngBindTemplateDirective,ngClass:ngClassDirective,ngClassEven:ngClassEvenDirective,ngClassOdd:ngClassOddDirective,ngCloak:ngCloakDirective,ngController:ngControllerDirective,ngForm:ngFormDirective,ngHide:ngHideDirective,ngIf:ngIfDirective,ngInclude:ngIncludeDirective,ngInit:ngInitDirective,ngNonBindable:ngNonBindableDirective,ngPluralize:ngPluralizeDirective,ngRef:ngRefDirective,ngRepeat:ngRepeatDirective,ngShow:ngShowDirective,ngStyle:ngStyleDirective,ngSwitch:ngSwitchDirective,ngSwitchWhen:ngSwitchWhenDirective,ngSwitchDefault:ngSwitchDefaultDirective,ngOptions:ngOptionsDirective,ngTransclude:ngTranscludeDirective,ngModel:ngModelDirective,ngList:ngListDirective,ngChange:ngChangeDirective,pattern:patternDirective,ngPattern:patternDirective,required:requiredDirective,ngRequired:requiredDirective,minlength:minlengthDirective,ngMinlength:minlengthDirective,maxlength:maxlengthDirective,ngMaxlength:maxlengthDirective,ngValue:ngValueDirective,ngModelOptions:ngModelOptionsDirective}).directive({ngInclude:ngIncludeFillContentDirective,input:hiddenInputBrowserCacheDirective}).directive(ngAttributeAliasDirectives).directive(ngEventDirectives);$provide.provider({$anchorScroll:$AnchorScrollProvider,$animate:$AnimateProvider,$animateCss:$CoreAnimateCssProvider,$$animateJs:$$CoreAnimateJsProvider,$$animateQueue:$$CoreAnimateQueueProvider,$$AnimateRunner:$$AnimateRunnerFactoryProvider,$$animateAsyncRun:$$AnimateAsyncRunFactoryProvider,$browser:$BrowserProvider,$cacheFactory:$CacheFactoryProvider,$controller:$ControllerProvider,$document:$DocumentProvider,$$isDocumentHidden:$$IsDocumentHiddenProvider,$exceptionHandler:$ExceptionHandlerProvider,$filter:$FilterProvider,$$forceReflow:$$ForceReflowProvider,$interpolate:$InterpolateProvider,$interval:$IntervalProvider,$$intervalFactory:$$IntervalFactoryProvider,$http:$HttpProvider,$httpParamSerializer:$HttpParamSerializerProvider,$httpParamSerializerJQLike:$HttpParamSerializerJQLikeProvider,$httpBackend:$HttpBackendProvider,$xhrFactory:$xhrFactoryProvider,$jsonpCallbacks:$jsonpCallbacksProvider,$location:$LocationProvider,$log:$LogProvider,$parse:$ParseProvider,$rootScope:$RootScopeProvider,$q:$QProvider,$$q:$$QProvider,$sce:$SceProvider,$sceDelegate:$SceDelegateProvider,$sniffer:$SnifferProvider,$$taskTrackerFactory:$$TaskTrackerFactoryProvider,$templateCache:$TemplateCacheProvider,$templateRequest:$TemplateRequestProvider,$$testability:$$TestabilityProvider,$timeout:$TimeoutProvider,$window:$WindowProvider,$$rAF:$$RAFProvider,$$jqLite:$$jqLiteProvider,$$Map:$$MapProvider,$$cookieReader:$$CookieReaderProvider})}]).info({angularVersion:"1.8.2"})}JQLite.expando="ng339";var jqCache=JQLite.cache={},jqId=1;JQLite._data=function(node){return this.cache[node[this.expando]]||{}};function jqNextId(){return++jqId}var DASH_LOWERCASE_REGEXP=/-([a-z])/g;var MS_HACK_REGEXP=/^-ms-/;var MOUSE_EVENT_MAP={mouseleave:"mouseout",mouseenter:"mouseover"};var jqLiteMinErr=minErr("jqLite");function cssKebabToCamel(name){return kebabToCamel(name.replace(MS_HACK_REGEXP,"ms-"))}function fnCamelCaseReplace(all,letter){return letter.toUpperCase()}function kebabToCamel(name){return name.replace(DASH_LOWERCASE_REGEXP,fnCamelCaseReplace)}var SINGLE_TAG_REGEXP=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;var HTML_REGEXP=/<|&#?\w+;/;var TAG_NAME_REGEXP=/<([\w:-]+)/;var XHTML_TAG_REGEXP=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi;var wrapMap={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;var wrapMapIE9={option:[1,'"],_default:[0,"",""]};for(var key in wrapMap){var wrapMapValueClosing=wrapMap[key];var wrapMapValue=wrapMapValueClosing.slice().reverse();wrapMapIE9[key]=[wrapMapValue.length,"<"+wrapMapValue.join("><")+">",""]}wrapMapIE9.optgroup=wrapMapIE9.option;function jqLiteIsTextNode(html){return!HTML_REGEXP.test(html)}function jqLiteAcceptsData(node){var nodeType=node.nodeType;return nodeType===NODE_TYPE_ELEMENT||!nodeType||nodeType===NODE_TYPE_DOCUMENT}function jqLiteHasData(node){for(var key in jqCache[node.ng339]){return true}return false}function jqLiteBuildFragment(html,context){var tmp,tag,wrap,finalHtml,fragment=context.createDocumentFragment(),nodes=[],i;if(jqLiteIsTextNode(html)){nodes.push(context.createTextNode(html))}else{tmp=fragment.appendChild(context.createElement("div"));tag=(TAG_NAME_REGEXP.exec(html)||["",""])[1].toLowerCase();finalHtml=JQLite.legacyXHTMLReplacement?html.replace(XHTML_TAG_REGEXP,"<$1>"):html;if(msie<10){wrap=wrapMapIE9[tag]||wrapMapIE9._default;tmp.innerHTML=wrap[1]+finalHtml+wrap[2];i=wrap[0];while(i--){tmp=tmp.firstChild}}else{wrap=wrapMap[tag]||[];i=wrap.length;while(--i>-1){tmp.appendChild(window.document.createElement(wrap[i]));tmp=tmp.firstChild}tmp.innerHTML=finalHtml}nodes=concat(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent=""}fragment.textContent="";fragment.innerHTML="";forEach(nodes,function(node){fragment.appendChild(node)});return fragment}function jqLiteParseHTML(html,context){context=context||window.document;var parsed;if(parsed=SINGLE_TAG_REGEXP.exec(html)){return[context.createElement(parsed[1])]}if(parsed=jqLiteBuildFragment(html,context)){return parsed.childNodes}return[]}function jqLiteWrapNode(node,wrapper){var parent=node.parentNode;if(parent){parent.replaceChild(wrapper,node)}wrapper.appendChild(node)}var jqLiteContains=window.Node.prototype.contains||function(arg){return!!(this.compareDocumentPosition(arg)&16)};function JQLite(element){if(element instanceof JQLite){return element}var argIsString;if(isString(element)){element=trim(element);argIsString=true}if(!(this instanceof JQLite)){if(argIsString&&element.charAt(0)!=="<"){throw jqLiteMinErr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element")}return new JQLite(element)}if(argIsString){jqLiteAddNodes(this,jqLiteParseHTML(element))}else if(isFunction(element)){jqLiteReady(element)}else{jqLiteAddNodes(this,element)}}function jqLiteClone(element){return element.cloneNode(true)}function jqLiteDealoc(element,onlyDescendants){if(!onlyDescendants&&jqLiteAcceptsData(element))jqLite.cleanData([element]);if(element.querySelectorAll){jqLite.cleanData(element.querySelectorAll("*"))}}function isEmptyObject(obj){var name;for(name in obj){return false}return true}function removeIfEmptyData(element){var expandoId=element.ng339;var expandoStore=expandoId&&jqCache[expandoId];var events=expandoStore&&expandoStore.events;var data=expandoStore&&expandoStore.data;if((!data||isEmptyObject(data))&&(!events||isEmptyObject(events))){delete jqCache[expandoId];element.ng339=undefined}}function jqLiteOff(element,type,fn,unsupported){if(isDefined(unsupported))throw jqLiteMinErr("offargs","jqLite#off() does not support the `selector` argument");var expandoStore=jqLiteExpandoStore(element);var events=expandoStore&&expandoStore.events;var handle=expandoStore&&expandoStore.handle;if(!handle)return;if(!type){for(type in events){if(type!=="$destroy"){element.removeEventListener(type,handle)}delete events[type]}}else{var removeHandler=function removeHandler(type){var listenerFns=events[type];if(isDefined(fn)){arrayRemove(listenerFns||[],fn)}if(!(isDefined(fn)&&listenerFns&&listenerFns.length>0)){element.removeEventListener(type,handle);delete events[type]}};forEach(type.split(" "),function(type){removeHandler(type);if(MOUSE_EVENT_MAP[type]){removeHandler(MOUSE_EVENT_MAP[type])}})}removeIfEmptyData(element)}function jqLiteRemoveData(element,name){var expandoId=element.ng339;var expandoStore=expandoId&&jqCache[expandoId];if(expandoStore){if(name){delete expandoStore.data[name]}else{expandoStore.data={}}removeIfEmptyData(element)}}function jqLiteExpandoStore(element,createIfNecessary){var expandoId=element.ng339,expandoStore=expandoId&&jqCache[expandoId];if(createIfNecessary&&!expandoStore){element.ng339=expandoId=jqNextId();expandoStore=jqCache[expandoId]={events:{},data:{},handle:undefined}}return expandoStore}function jqLiteData(element,key,value){if(jqLiteAcceptsData(element)){var prop;var isSimpleSetter=isDefined(value);var isSimpleGetter=!isSimpleSetter&&key&&!isObject(key);var massGetter=!key;var expandoStore=jqLiteExpandoStore(element,!isSimpleGetter);var data=expandoStore&&expandoStore.data;if(isSimpleSetter){data[kebabToCamel(key)]=value}else{if(massGetter){return data}else{if(isSimpleGetter){return data&&data[kebabToCamel(key)]}else{for(prop in key){data[kebabToCamel(prop)]=key[prop]}}}}}}function jqLiteHasClass(element,selector){if(!element.getAttribute)return false;return(" "+(element.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+selector+" ")>-1}function jqLiteRemoveClass(element,cssClasses){if(cssClasses&&element.setAttribute){var existingClasses=(" "+(element.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");var newClasses=existingClasses;forEach(cssClasses.split(" "),function(cssClass){cssClass=trim(cssClass);newClasses=newClasses.replace(" "+cssClass+" "," ")});if(newClasses!==existingClasses){element.setAttribute("class",trim(newClasses))}}}function jqLiteAddClass(element,cssClasses){if(cssClasses&&element.setAttribute){var existingClasses=(" "+(element.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");var newClasses=existingClasses;forEach(cssClasses.split(" "),function(cssClass){cssClass=trim(cssClass);if(newClasses.indexOf(" "+cssClass+" ")===-1){newClasses+=cssClass+" "}});if(newClasses!==existingClasses){element.setAttribute("class",trim(newClasses))}}}function jqLiteAddNodes(root,elements){if(elements){if(elements.nodeType){root[root.length++]=elements}else{var length=elements.length;if(typeof length==="number"&&elements.window!==elements){if(length){for(var i=0;i=0?jqLite(this[index]):jqLite(this[this.length+index])},length:0,push:push,sort:[].sort,splice:[].splice};var BOOLEAN_ATTR={};forEach("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(value){BOOLEAN_ATTR[lowercase(value)]=value});var BOOLEAN_ELEMENTS={};forEach("input,select,option,textarea,button,form,details".split(","),function(value){BOOLEAN_ELEMENTS[value]=true});var ALIASED_ATTR={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function getBooleanAttrName(element,name){var booleanAttr=BOOLEAN_ATTR[name.toLowerCase()];return booleanAttr&&BOOLEAN_ELEMENTS[nodeName_(element)]&&booleanAttr}function getAliasedAttrName(name){return ALIASED_ATTR[name]}forEach({data:jqLiteData,removeData:jqLiteRemoveData,hasData:jqLiteHasData,cleanData:function jqLiteCleanData(nodes){for(var i=0,ii=nodes.length;i1){eventFns=shallowCopy(eventFns)}for(var i=0;i=0?type.split(" "):[type];var i=types.length;var addHandler=function addHandler(type,specialHandlerWrapper,noEventListener){var eventFns=events[type];if(!eventFns){eventFns=events[type]=[];eventFns.specialHandlerWrapper=specialHandlerWrapper;if(type!=="$destroy"&&!noEventListener){element.addEventListener(type,handle)}}eventFns.push(fn)};while(i--){type=types[i];if(MOUSE_EVENT_MAP[type]){addHandler(MOUSE_EVENT_MAP[type],specialMouseHandlerWrapper);addHandler(type,undefined,true)}else{addHandler(type)}}},off:jqLiteOff,one:function one(element,type,fn){element=jqLite(element);element.on(type,function onFn(){element.off(type,fn);element.off(type,onFn)});element.on(type,fn)},replaceWith:function replaceWith(element,replaceNode){var index,parent=element.parentNode;jqLiteDealoc(element);forEach(new JQLite(replaceNode),function(node){if(index){parent.insertBefore(node,index.nextSibling)}else{parent.replaceChild(node,element)}index=node})},children:function children(element){var children=[];forEach(element.childNodes,function(element){if(element.nodeType===NODE_TYPE_ELEMENT){children.push(element)}});return children},contents:function contents(element){return element.contentDocument||element.childNodes||[]},append:function append(element,node){var nodeType=element.nodeType;if(nodeType!==NODE_TYPE_ELEMENT&&nodeType!==NODE_TYPE_DOCUMENT_FRAGMENT)return;node=new JQLite(node);for(var i=0,ii=node.length;i/;var FN_ARGS=/^[^(]*\(\s*([^)]*)\)/m;var FN_ARG_SPLIT=/,/;var FN_ARG=/^\s*(_?)(\S+?)\1\s*$/;var STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;var $injectorMinErr=minErr("$injector");function stringifyFn(fn){return Function.prototype.toString.call(fn)}function extractArgs(fn){var fnText=stringifyFn(fn).replace(STRIP_COMMENTS,""),args=fnText.match(ARROW_ARG)||fnText.match(FN_ARGS);return args}function anonFn(fn){var args=extractArgs(fn);if(args){return"function("+(args[1]||"").replace(/[\s\r\n]+/," ")+")"}return"fn"}function annotate(fn,strictDi,name){var $inject,argDecl,last;if(typeof fn==="function"){if(!($inject=fn.$inject)){$inject=[];if(fn.length){if(strictDi){if(!isString(name)||!name){name=fn.name||anonFn(fn)}throw $injectorMinErr("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",name)}argDecl=extractArgs(fn);forEach(argDecl[1].split(FN_ARG_SPLIT),function(arg){arg.replace(FN_ARG,function(all,underscore,name){$inject.push(name)})})}fn.$inject=$inject}}else if(isArray(fn)){last=fn.length-1;assertArgFn(fn[last],"fn");$inject=fn.slice(0,last)}else{assertArgFn(fn,"fn",true)}return $inject}function createInjector(modulesToLoad,strictDi){strictDi=strictDi===true;var INSTANTIATING={},providerSuffix="Provider",path=[],loadedModules=new NgMap,providerCache={$provide:{provider:supportObject(provider),factory:supportObject(factory),service:supportObject(service),value:supportObject(value),constant:supportObject(constant),decorator:decorator}},providerInjector=providerCache.$injector=createInternalInjector(providerCache,function(serviceName,caller){if(angular.isString(caller)){path.push(caller)}throw $injectorMinErr("unpr","Unknown provider: {0}",path.join(" <- "))}),instanceCache={},protoInstanceInjector=createInternalInjector(instanceCache,function(serviceName,caller){var provider=providerInjector.get(serviceName+providerSuffix,caller);return instanceInjector.invoke(provider.$get,provider,undefined,serviceName)}),instanceInjector=protoInstanceInjector;providerCache["$injector"+providerSuffix]={$get:valueFn(protoInstanceInjector)};instanceInjector.modules=providerInjector.modules=createMap();var runBlocks=loadModules(modulesToLoad);instanceInjector=protoInstanceInjector.get("$injector");instanceInjector.strictDi=strictDi;forEach(runBlocks,function(fn){if(fn)instanceInjector.invoke(fn)});instanceInjector.loadNewModules=function(mods){forEach(loadModules(mods),function(fn){if(fn)instanceInjector.invoke(fn)})};return instanceInjector;function supportObject(delegate){return function(key,value){if(isObject(key)){forEach(key,reverseParams(delegate))}else{return delegate(key,value)}}}function provider(name,provider_){assertNotHasOwnProperty(name,"service");if(isFunction(provider_)||isArray(provider_)){provider_=providerInjector.instantiate(provider_)}if(!provider_.$get){throw $injectorMinErr("pget","Provider '{0}' must define $get factory method.",name)}return providerCache[name+providerSuffix]=provider_}function enforceReturnValue(name,factory){return function enforcedReturnValue(){var result=instanceInjector.invoke(factory,this);if(isUndefined(result)){throw $injectorMinErr("undef","Provider '{0}' must return a value from $get factory method.",name)}return result}}function factory(name,factoryFn,enforce){return provider(name,{$get:enforce!==false?enforceReturnValue(name,factoryFn):factoryFn})}function service(name,constructor){return factory(name,["$injector",function($injector){return $injector.instantiate(constructor)}])}function value(name,val){return factory(name,valueFn(val),false)}function constant(name,value){assertNotHasOwnProperty(name,"constant");providerCache[name]=value;instanceCache[name]=value}function decorator(serviceName,decorFn){var origProvider=providerInjector.get(serviceName+providerSuffix),orig$get=origProvider.$get;origProvider.$get=function(){var origInstance=instanceInjector.invoke(orig$get,origProvider);return instanceInjector.invoke(decorFn,null,{$delegate:origInstance})}}function loadModules(modulesToLoad){assertArg(isUndefined(modulesToLoad)||isArray(modulesToLoad),"modulesToLoad","not an array");var runBlocks=[],moduleFn;forEach(modulesToLoad,function(module){if(loadedModules.get(module))return;loadedModules.set(module,true);function runInvokeQueue(queue){var i,ii;for(i=0,ii=queue.length;i1)return;$$rAF(function(){for(var i=0;icapacity){this.remove(staleEnd.key)}return value},get:function get(key){if(capacity0){$animate.addClass(this.$$element,classVal)}},$removeClass:function $removeClass(classVal){if(classVal&&classVal.length>0){$animate.removeClass(this.$$element,classVal)}},$updateClass:function $updateClass(newClasses,oldClasses){var toAdd=tokenDifference(newClasses,oldClasses);if(toAdd&&toAdd.length){$animate.addClass(this.$$element,toAdd)}var toRemove=tokenDifference(oldClasses,newClasses);if(toRemove&&toRemove.length){$animate.removeClass(this.$$element,toRemove)}},$set:function $set(key,value,writeAttr,attrName){var node=this.$$element[0],booleanKey=getBooleanAttrName(node,key),aliasedKey=getAliasedAttrName(key),observer=key,nodeName;if(booleanKey){this.$$element.prop(key,value);attrName=booleanKey}else if(aliasedKey){this[aliasedKey]=value;observer=aliasedKey}this[key]=value;if(attrName){this.$attr[key]=attrName}else{attrName=this.$attr[key];if(!attrName){this.$attr[key]=attrName=snake_case(key,"-")}}nodeName=nodeName_(this.$$element);if(nodeName==="img"&&key==="srcset"){this[key]=value=sanitizeSrcset(value,"$set('srcset', value)")}if(writeAttr!==false){if(value===null||isUndefined(value)){this.$$element.removeAttr(attrName)}else{if(SIMPLE_ATTR_NAME.test(attrName)){if(booleanKey&&value===false){this.$$element.removeAttr(attrName)}else{this.$$element.attr(attrName,value)}}else{setSpecialAttr(this.$$element[0],attrName,value)}}}var $$observers=this.$$observers;if($$observers){forEach($$observers[observer],function(fn){try{fn(value)}catch(e){$exceptionHandler(e)}})}},$observe:function $observe(key,fn){var attrs=this,$$observers=attrs.$$observers||(attrs.$$observers=createMap()),listeners=$$observers[key]||($$observers[key]=[]);listeners.push(fn);$rootScope.$evalAsync(function(){if(!listeners.$$inter&&attrs.hasOwnProperty(key)&&!isUndefined(attrs[key])){fn(attrs[key])}});return function(){arrayRemove(listeners,fn)}}};function setSpecialAttr(element,attrName,value){specialAttrHolder.innerHTML="";var attributes=specialAttrHolder.firstChild.attributes;var attribute=attributes[0];attributes.removeNamedItem(attribute.name);attribute.value=value;element.attributes.setNamedItem(attribute)}function safeAddClass($element,className){try{$element.addClass(className)}catch(e){}}var startSymbol=$interpolate.startSymbol(),endSymbol=$interpolate.endSymbol(),denormalizeTemplate=startSymbol==="{{"&&endSymbol==="}}"?identity:function denormalizeTemplate(template){return template.replace(/\{\{/g,startSymbol).replace(/}}/g,endSymbol)},NG_PREFIX_BINDING=/^ng(Attr|Prop|On)([A-Z].*)$/;var MULTI_ELEMENT_DIR_RE=/^(.+)Start$/;compile.$$addBindingInfo=debugInfoEnabled?function $$addBindingInfo($element,binding){var bindings=$element.data("$binding")||[];if(isArray(binding)){bindings=bindings.concat(binding)}else{bindings.push(binding)}$element.data("$binding",bindings)}:noop;compile.$$addBindingClass=debugInfoEnabled?function $$addBindingClass($element){safeAddClass($element,"ng-binding")}:noop;compile.$$addScopeInfo=debugInfoEnabled?function $$addScopeInfo($element,scope,isolated,noTemplate){var dataName=isolated?noTemplate?"$isolateScopeNoTemplate":"$isolateScope":"$scope";$element.data(dataName,scope)}:noop;compile.$$addScopeClass=debugInfoEnabled?function $$addScopeClass($element,isolated){safeAddClass($element,isolated?"ng-isolate-scope":"ng-scope")}:noop;compile.$$createComment=function(directiveName,comment){var content="";if(debugInfoEnabled){content=" "+(directiveName||"")+": ";if(comment)content+=comment+" "}return window.document.createComment(content)};return compile;function compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext){if(!($compileNodes instanceof jqLite)){$compileNodes=jqLite($compileNodes)}var compositeLinkFn=compileNodes($compileNodes,transcludeFn,$compileNodes,maxPriority,ignoreDirective,previousCompileContext);compile.$$addScopeClass($compileNodes);var namespace=null;return function publicLinkFn(scope,cloneConnectFn,options){if(!$compileNodes){throw $compileMinErr("multilink","This element has already been linked.")}assertArg(scope,"scope");if(previousCompileContext&&previousCompileContext.needsNewScope){scope=scope.$parent.$new()}options=options||{};var parentBoundTranscludeFn=options.parentBoundTranscludeFn,transcludeControllers=options.transcludeControllers,futureParentElement=options.futureParentElement;if(parentBoundTranscludeFn&&parentBoundTranscludeFn.$$boundTransclude){parentBoundTranscludeFn=parentBoundTranscludeFn.$$boundTransclude}if(!namespace){namespace=detectNamespaceForChildElements(futureParentElement)}var $linkNode;if(namespace!=="html"){$linkNode=jqLite(wrapTemplate(namespace,jqLite("
").append($compileNodes).html()))}else if(cloneConnectFn){$linkNode=JQLitePrototype.clone.call($compileNodes)}else{$linkNode=$compileNodes}if(transcludeControllers){for(var controllerName in transcludeControllers){$linkNode.data("$"+controllerName+"Controller",transcludeControllers[controllerName].instance)}}compile.$$addScopeInfo($linkNode,scope);if(cloneConnectFn)cloneConnectFn($linkNode,scope);if(compositeLinkFn)compositeLinkFn(scope,$linkNode,$linkNode,parentBoundTranscludeFn);if(!cloneConnectFn){$compileNodes=compositeLinkFn=null}return $linkNode}}function detectNamespaceForChildElements(parentElement){var node=parentElement&&parentElement[0];if(!node){return"html"}else{return nodeName_(node)!=="foreignobject"&&toString.call(node).match(/SVG/)?"svg":"html"}}function compileNodes(nodeList,transcludeFn,$rootElement,maxPriority,ignoreDirective,previousCompileContext){var linkFns=[],notLiveList=isArray(nodeList)||nodeList instanceof jqLite,attrs,directives,nodeLinkFn,childNodes,childLinkFn,linkFnFound,nodeLinkFnFound;for(var i=0;i0)}else{nodes.push(node)}return jqLite(nodes)}function groupElementsLinkFnWrapper(linkFn,attrStart,attrEnd){return function groupedElementsLink(scope,element,attrs,controllers,transcludeFn){element=groupScan(element[0],attrStart,attrEnd);return linkFn(scope,element,attrs,controllers,transcludeFn)}}function compilationGenerator(eager,$compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext){var compiled;if(eager){return compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext)}return function lazyCompilation(){if(!compiled){compiled=compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext);$compileNodes=transcludeFn=previousCompileContext=null}return compiled.apply(this,arguments)}}function applyDirectivesToNode(directives,compileNode,templateAttrs,transcludeFn,jqCollection,originalReplaceDirective,preLinkFns,postLinkFns,previousCompileContext){previousCompileContext=previousCompileContext||{};var terminalPriority=-Number.MAX_VALUE,newScopeDirective=previousCompileContext.newScopeDirective,controllerDirectives=previousCompileContext.controllerDirectives,newIsolateScopeDirective=previousCompileContext.newIsolateScopeDirective,templateDirective=previousCompileContext.templateDirective,nonTlbTranscludeDirective=previousCompileContext.nonTlbTranscludeDirective,hasTranscludeDirective=false,hasTemplate=false,hasElementTranscludeDirective=previousCompileContext.hasElementTranscludeDirective,$compileNode=templateAttrs.$$element=jqLite(compileNode),directive,directiveName,$template,replaceDirective=originalReplaceDirective,childTranscludeFn=transcludeFn,linkFn,didScanForMultipleTransclusion=false,mightHaveMultipleTransclusionError=false,directiveValue;for(var i=0,ii=directives.length;idirective.priority){break}directiveValue=directive.scope;if(directiveValue){if(!directive.templateUrl){if(isObject(directiveValue)){assertNoDuplicate("new/isolated scope",newIsolateScopeDirective||newScopeDirective,directive,$compileNode);newIsolateScopeDirective=directive}else{assertNoDuplicate("new/isolated scope",newIsolateScopeDirective,directive,$compileNode)}}newScopeDirective=newScopeDirective||directive}directiveName=directive.name;if(!didScanForMultipleTransclusion&&(directive.replace&&(directive.templateUrl||directive.template)||directive.transclude&&!directive.$$tlb)){var candidateDirective;for(var scanningIndex=i+1;candidateDirective=directives[scanningIndex++];){if(candidateDirective.transclude&&!candidateDirective.$$tlb||candidateDirective.replace&&(candidateDirective.templateUrl||candidateDirective.template)){mightHaveMultipleTransclusionError=true;break}}didScanForMultipleTransclusion=true}if(!directive.templateUrl&&directive.controller){controllerDirectives=controllerDirectives||createMap();assertNoDuplicate("'"+directiveName+"' controller",controllerDirectives[directiveName],directive,$compileNode);controllerDirectives[directiveName]=directive}directiveValue=directive.transclude;if(directiveValue){hasTranscludeDirective=true;if(!directive.$$tlb){assertNoDuplicate("transclusion",nonTlbTranscludeDirective,directive,$compileNode);nonTlbTranscludeDirective=directive}if(directiveValue==="element"){hasElementTranscludeDirective=true;terminalPriority=directive.priority;$template=$compileNode;$compileNode=templateAttrs.$$element=jqLite(compile.$$createComment(directiveName,templateAttrs[directiveName]));compileNode=$compileNode[0];replaceWith(jqCollection,sliceArgs($template),compileNode);childTranscludeFn=compilationGenerator(mightHaveMultipleTransclusionError,$template,transcludeFn,terminalPriority,replaceDirective&&replaceDirective.name,{nonTlbTranscludeDirective:nonTlbTranscludeDirective})}else{var slots=createMap();if(!isObject(directiveValue)){$template=jqLite(jqLiteClone(compileNode)).contents()}else{$template=window.document.createDocumentFragment();var slotMap=createMap();var filledSlots=createMap();forEach(directiveValue,function(elementSelector,slotName){var optional=elementSelector.charAt(0)==="?";elementSelector=optional?elementSelector.substring(1):elementSelector;slotMap[elementSelector]=slotName;slots[slotName]=null;filledSlots[slotName]=optional});forEach($compileNode.contents(),function(node){var slotName=slotMap[directiveNormalize(nodeName_(node))];if(slotName){filledSlots[slotName]=true;slots[slotName]=slots[slotName]||window.document.createDocumentFragment();slots[slotName].appendChild(node)}else{$template.appendChild(node)}});forEach(filledSlots,function(filled,slotName){if(!filled){throw $compileMinErr("reqslot","Required transclusion slot `{0}` was not filled.",slotName)}});for(var slotName in slots){if(slots[slotName]){var slotCompileNodes=jqLite(slots[slotName].childNodes);slots[slotName]=compilationGenerator(mightHaveMultipleTransclusionError,slotCompileNodes,transcludeFn)}}$template=jqLite($template.childNodes)}$compileNode.empty();childTranscludeFn=compilationGenerator(mightHaveMultipleTransclusionError,$template,transcludeFn,undefined,undefined,{needsNewScope:directive.$$isolateScope||directive.$$newScope});childTranscludeFn.$$slots=slots}}if(directive.template){hasTemplate=true;assertNoDuplicate("template",templateDirective,directive,$compileNode);templateDirective=directive;directiveValue=isFunction(directive.template)?directive.template($compileNode,templateAttrs):directive.template;directiveValue=denormalizeTemplate(directiveValue);if(directive.replace){replaceDirective=directive;if(jqLiteIsTextNode(directiveValue)){$template=[]}else{$template=removeComments(wrapTemplate(directive.templateNamespace,trim(directiveValue)))}compileNode=$template[0];if($template.length!==1||compileNode.nodeType!==NODE_TYPE_ELEMENT){throw $compileMinErr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",directiveName,"")}replaceWith(jqCollection,$compileNode,compileNode);var newTemplateAttrs={$attr:{}};var templateDirectives=collectDirectives(compileNode,[],newTemplateAttrs);var unprocessedDirectives=directives.splice(i+1,directives.length-(i+1));if(newIsolateScopeDirective||newScopeDirective){markDirectiveScope(templateDirectives,newIsolateScopeDirective,newScopeDirective)}directives=directives.concat(templateDirectives).concat(unprocessedDirectives);mergeTemplateAttributes(templateAttrs,newTemplateAttrs);ii=directives.length}else{$compileNode.html(directiveValue)}}if(directive.templateUrl){hasTemplate=true;assertNoDuplicate("template",templateDirective,directive,$compileNode);templateDirective=directive;if(directive.replace){replaceDirective=directive}nodeLinkFn=compileTemplateUrl(directives.splice(i,directives.length-i),$compileNode,templateAttrs,jqCollection,hasTranscludeDirective&&childTranscludeFn,preLinkFns,postLinkFns,{controllerDirectives:controllerDirectives,newScopeDirective:newScopeDirective!==directive&&newScopeDirective,newIsolateScopeDirective:newIsolateScopeDirective,templateDirective:templateDirective,nonTlbTranscludeDirective:nonTlbTranscludeDirective});ii=directives.length}else if(directive.compile){try{linkFn=directive.compile($compileNode,templateAttrs,childTranscludeFn);var context=directive.$$originalDirective||directive;if(isFunction(linkFn)){addLinkFns(null,bind(context,linkFn),attrStart,attrEnd)}else if(linkFn){addLinkFns(bind(context,linkFn.pre),bind(context,linkFn.post),attrStart,attrEnd)}}catch(e){$exceptionHandler(e,startingTag($compileNode))}}if(directive.terminal){nodeLinkFn.terminal=true;terminalPriority=Math.max(terminalPriority,directive.priority)}}nodeLinkFn.scope=newScopeDirective&&newScopeDirective.scope===true;nodeLinkFn.transcludeOnThisElement=hasTranscludeDirective;nodeLinkFn.templateOnThisElement=hasTemplate;nodeLinkFn.transclude=childTranscludeFn;previousCompileContext.hasElementTranscludeDirective=hasElementTranscludeDirective;return nodeLinkFn;function addLinkFns(pre,post,attrStart,attrEnd){if(pre){if(attrStart)pre=groupElementsLinkFnWrapper(pre,attrStart,attrEnd);pre.require=directive.require;pre.directiveName=directiveName;if(newIsolateScopeDirective===directive||directive.$$isolateScope){pre=cloneAndAnnotateFn(pre,{isolateScope:true})}preLinkFns.push(pre)}if(post){if(attrStart)post=groupElementsLinkFnWrapper(post,attrStart,attrEnd);post.require=directive.require;post.directiveName=directiveName;if(newIsolateScopeDirective===directive||directive.$$isolateScope){post=cloneAndAnnotateFn(post,{isolateScope:true})}postLinkFns.push(post)}}function nodeLinkFn(childLinkFn,scope,linkNode,$rootElement,boundTranscludeFn){var i,ii,linkFn,isolateScope,controllerScope,elementControllers,transcludeFn,$element,attrs,scopeBindingInfo;if(compileNode===linkNode){attrs=templateAttrs;$element=templateAttrs.$$element}else{$element=jqLite(linkNode);attrs=new Attributes($element,templateAttrs)}controllerScope=scope;if(newIsolateScopeDirective){isolateScope=scope.$new(true)}else if(newScopeDirective){controllerScope=scope.$parent}if(boundTranscludeFn){transcludeFn=controllersBoundTransclude;transcludeFn.$$boundTransclude=boundTranscludeFn;transcludeFn.isSlotFilled=function(slotName){return!!boundTranscludeFn.$$slots[slotName]}}if(controllerDirectives){elementControllers=setupControllers($element,attrs,transcludeFn,controllerDirectives,isolateScope,scope,newIsolateScopeDirective)}if(newIsolateScopeDirective){compile.$$addScopeInfo($element,isolateScope,true,!(templateDirective&&(templateDirective===newIsolateScopeDirective||templateDirective===newIsolateScopeDirective.$$originalDirective)));compile.$$addScopeClass($element,true);isolateScope.$$isolateBindings=newIsolateScopeDirective.$$isolateBindings;scopeBindingInfo=initializeDirectiveBindings(scope,attrs,isolateScope,isolateScope.$$isolateBindings,newIsolateScopeDirective);if(scopeBindingInfo.removeWatches){isolateScope.$on("$destroy",scopeBindingInfo.removeWatches)}}for(var name in elementControllers){var controllerDirective=controllerDirectives[name];var controller=elementControllers[name];var bindings=controllerDirective.$$bindings.bindToController;controller.instance=controller();$element.data("$"+controllerDirective.name+"Controller",controller.instance);controller.bindingInfo=initializeDirectiveBindings(controllerScope,attrs,controller.instance,bindings,controllerDirective)}forEach(controllerDirectives,function(controllerDirective,name){var require=controllerDirective.require;if(controllerDirective.bindToController&&!isArray(require)&&isObject(require)){extend(elementControllers[name].instance,getControllers(name,require,$element,elementControllers))}});forEach(elementControllers,function(controller){var controllerInstance=controller.instance;if(isFunction(controllerInstance.$onChanges)){try{controllerInstance.$onChanges(controller.bindingInfo.initialChanges)}catch(e){$exceptionHandler(e)}}if(isFunction(controllerInstance.$onInit)){try{controllerInstance.$onInit()}catch(e){$exceptionHandler(e)}}if(isFunction(controllerInstance.$doCheck)){controllerScope.$watch(function(){controllerInstance.$doCheck()});controllerInstance.$doCheck()}if(isFunction(controllerInstance.$onDestroy)){controllerScope.$on("$destroy",function callOnDestroyHook(){controllerInstance.$onDestroy()})}});for(i=0,ii=preLinkFns.length;i=0;i--){linkFn=postLinkFns[i];invokeLinkFn(linkFn,linkFn.isolateScope?isolateScope:scope,$element,attrs,linkFn.require&&getControllers(linkFn.directiveName,linkFn.require,$element,elementControllers),transcludeFn)}forEach(elementControllers,function(controller){var controllerInstance=controller.instance;if(isFunction(controllerInstance.$postLink)){controllerInstance.$postLink()}});function controllersBoundTransclude(scope,cloneAttachFn,futureParentElement,slotName){var transcludeControllers;if(!isScope(scope)){slotName=futureParentElement;futureParentElement=cloneAttachFn;cloneAttachFn=scope;scope=undefined}if(hasElementTranscludeDirective){transcludeControllers=elementControllers}if(!futureParentElement){futureParentElement=hasElementTranscludeDirective?$element.parent():$element}if(slotName){var slotTranscludeFn=boundTranscludeFn.$$slots[slotName];if(slotTranscludeFn){return slotTranscludeFn(scope,cloneAttachFn,transcludeControllers,futureParentElement,scopeToChild)}else if(isUndefined(slotTranscludeFn)){throw $compileMinErr("noslot",'No parent directive that requires a transclusion with slot name "{0}". '+"Element: {1}",slotName,startingTag($element))}}else{return boundTranscludeFn(scope,cloneAttachFn,transcludeControllers,futureParentElement,scopeToChild)}}}}function getControllers(directiveName,require,$element,elementControllers){var value;if(isString(require)){var match=require.match(REQUIRE_PREFIX_REGEXP);var name=require.substring(match[0].length);var inheritType=match[1]||match[3];var optional=match[2]==="?";if(inheritType==="^^"){$element=$element.parent()}else{value=elementControllers&&elementControllers[name];value=value&&value.instance}if(!value){var dataName="$"+name+"Controller";if(inheritType==="^^"&&$element[0]&&$element[0].nodeType===NODE_TYPE_DOCUMENT){value=null}else{value=inheritType?$element.inheritedData(dataName):$element.data(dataName)}}if(!value&&!optional){throw $compileMinErr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",name,directiveName)}}else if(isArray(require)){value=[];for(var i=0,ii=require.length;idirective.priority)&&directive.restrict.indexOf(location)!==-1){if(startAttrName){directive=inherit(directive,{$$start:startAttrName,$$end:endAttrName})}if(!directive.$$bindings){var bindings=directive.$$bindings=parseDirectiveBindings(directive,directive.name);if(isObject(bindings.isolateScope)){directive.$$isolateBindings=bindings.isolateScope}}tDirectives.push(directive);match=directive}}}return match}function directiveIsMultiElement(name){if(hasDirectives.hasOwnProperty(name)){for(var directive,directives=$injector.get(name+Suffix),i=0,ii=directives.length;i"+template+"";return wrapper.childNodes[0].childNodes;default:return template}}function getTrustedAttrContext(nodeName,attrNormalizedName){if(attrNormalizedName==="srcdoc"){return $sce.HTML}if(attrNormalizedName==="src"||attrNormalizedName==="ngSrc"){if(["img","video","audio","source","track"].indexOf(nodeName)===-1){return $sce.RESOURCE_URL}return $sce.MEDIA_URL}else if(attrNormalizedName==="xlinkHref"){if(nodeName==="image")return $sce.MEDIA_URL;if(nodeName==="a")return $sce.URL;return $sce.RESOURCE_URL}else if(nodeName==="form"&&attrNormalizedName==="action"||nodeName==="base"&&attrNormalizedName==="href"||nodeName==="link"&&attrNormalizedName==="href"){return $sce.RESOURCE_URL}else if(nodeName==="a"&&(attrNormalizedName==="href"||attrNormalizedName==="ngHref")){return $sce.URL}}function getTrustedPropContext(nodeName,propNormalizedName){var prop=propNormalizedName.toLowerCase();return PROP_CONTEXTS[nodeName+"|"+prop]||PROP_CONTEXTS["*|"+prop]}function sanitizeSrcsetPropertyValue(value){return sanitizeSrcset($sce.valueOf(value),"ng-prop-srcset")}function addPropertyDirective(node,directives,attrName,propName){if(EVENT_HANDLER_ATTR_REGEXP.test(propName)){throw $compileMinErr("nodomevents","Property bindings for HTML DOM event properties are disallowed")}var nodeName=nodeName_(node);var trustedContext=getTrustedPropContext(nodeName,propName);var sanitizer=identity;if(propName==="srcset"&&(nodeName==="img"||nodeName==="source")){sanitizer=sanitizeSrcsetPropertyValue}else if(trustedContext){sanitizer=$sce.getTrusted.bind($sce,trustedContext)}directives.push({priority:100,compile:function ngPropCompileFn(_,attr){var ngPropGetter=$parse(attr[attrName]);var ngPropWatch=$parse(attr[attrName],function sceValueOf(val){return $sce.valueOf(val)});return{pre:function ngPropPreLinkFn(scope,$element){function applyPropValue(){var propValue=ngPropGetter(scope);$element[0][propName]=sanitizer(propValue)}applyPropValue();scope.$watch(ngPropWatch,applyPropValue)}}}})}function addEventDirective(directives,attrName,eventName){directives.push(createEventDirective($parse,$rootScope,$exceptionHandler,attrName,eventName,false))}function addAttrInterpolateDirective(node,directives,value,name,isNgAttr){var nodeName=nodeName_(node);var trustedContext=getTrustedAttrContext(nodeName,name);var mustHaveExpression=!isNgAttr;var allOrNothing=ALL_OR_NOTHING_ATTRS[name]||isNgAttr;var interpolateFn=$interpolate(value,mustHaveExpression,trustedContext,allOrNothing);if(!interpolateFn)return;if(name==="multiple"&&nodeName==="select"){throw $compileMinErr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",startingTag(node))}if(EVENT_HANDLER_ATTR_REGEXP.test(name)){throw $compileMinErr("nodomevents","Interpolations for HTML DOM event attributes are disallowed")}directives.push({priority:100,compile:function compile(){return{pre:function attrInterpolatePreLinkFn(scope,element,attr){var $$observers=attr.$$observers||(attr.$$observers=createMap());var newValue=attr[name];if(newValue!==value){interpolateFn=newValue&&$interpolate(newValue,true,trustedContext,allOrNothing);value=newValue}if(!interpolateFn)return;attr[name]=interpolateFn(scope);($$observers[name]||($$observers[name]=[])).$$inter=true;(attr.$$observers&&attr.$$observers[name].$$scope||scope).$watch(interpolateFn,function interpolateFnWatchAction(newValue,oldValue){if(name==="class"&&newValue!==oldValue){attr.$updateClass(newValue,oldValue)}else{attr.$set(name,newValue)}})}}}})}function replaceWith($rootElement,elementsToRemove,newNode){var firstElementToRemove=elementsToRemove[0],removeCount=elementsToRemove.length,parent=firstElementToRemove.parentNode,i,ii;if($rootElement){for(i=0,ii=$rootElement.length;i0?" ":"")+token}return values}function removeComments(jqNodes){jqNodes=jqLite(jqNodes);var i=jqNodes.length;if(i<=1){return jqNodes}while(i--){var node=jqNodes[i];if(node.nodeType===NODE_TYPE_COMMENT||node.nodeType===NODE_TYPE_TEXT&&node.nodeValue.trim()===""){splice.call(jqNodes,i,1)}}return jqNodes}var $controllerMinErr=minErr("$controller");var CNTRL_REG=/^(\S+)(\s+as\s+([\w$]+))?$/;function identifierForController(controller,ident){if(ident&&isString(ident))return ident;if(isString(controller)){var match=CNTRL_REG.exec(controller);if(match)return match[3]}}function $ControllerProvider(){var controllers={};this.has=function(name){return controllers.hasOwnProperty(name)};this.register=function(name,constructor){assertNotHasOwnProperty(name,"controller");if(isObject(name)){extend(controllers,name)}else{controllers[name]=constructor}};this.$get=["$injector",function($injector){return function $controller(expression,locals,later,ident){var instance,match,constructor,identifier;later=later===true;if(ident&&isString(ident)){identifier=ident}if(isString(expression)){match=expression.match(CNTRL_REG);if(!match){throw $controllerMinErr("ctrlfmt","Badly formed controller string '{0}'. "+"Must match `__name__ as __id__` or `__name__`.",expression)}constructor=match[1];identifier=identifier||match[3];expression=controllers.hasOwnProperty(constructor)?controllers[constructor]:getter(locals.$scope,constructor,true);if(!expression){throw $controllerMinErr("ctrlreg","The controller with the name '{0}' is not registered.",constructor)}assertArgFn(expression,constructor,true)}if(later){var controllerPrototype=(isArray(expression)?expression[expression.length-1]:expression).prototype;instance=Object.create(controllerPrototype||null);if(identifier){addIdentifier(locals,identifier,instance,constructor||expression.name)}return extend(function $controllerInit(){var result=$injector.invoke(expression,instance,locals,constructor);if(result!==instance&&(isObject(result)||isFunction(result))){instance=result;if(identifier){addIdentifier(locals,identifier,instance,constructor||expression.name)}}return instance},{instance:instance,identifier:identifier})}instance=$injector.instantiate(expression,locals,constructor);if(identifier){addIdentifier(locals,identifier,instance,constructor||expression.name)}return instance};function addIdentifier(locals,identifier,instance,name){if(!(locals&&isObject(locals.$scope))){throw minErr("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",name,identifier)}locals.$scope[identifier]=instance}}]}function $DocumentProvider(){this.$get=["$window",function(window){return jqLite(window.document)}]}function $$IsDocumentHiddenProvider(){this.$get=["$document","$rootScope",function($document,$rootScope){var doc=$document[0];var hidden=doc&&doc.hidden;$document.on("visibilitychange",changeListener);$rootScope.$on("$destroy",function(){$document.off("visibilitychange",changeListener)});function changeListener(){hidden=doc.hidden}return function(){return hidden}}]}function $ExceptionHandlerProvider(){this.$get=["$log",function($log){return function(exception,cause){$log.error.apply($log,arguments)}}]}var $$ForceReflowProvider=function $$ForceReflowProvider(){this.$get=["$document",function($document){return function(domNode){if(domNode){if(!domNode.nodeType&&domNode instanceof jqLite){domNode=domNode[0]}}else{domNode=$document[0].body}return domNode.offsetWidth+1}}]};var APPLICATION_JSON="application/json";var CONTENT_TYPE_APPLICATION_JSON={"Content-Type":APPLICATION_JSON+";charset=utf-8"};var JSON_START=/^\[|^\{(?!\{)/;var JSON_ENDS={"[":/]$/,"{":/}$/};var JSON_PROTECTION_PREFIX=/^\)]\}',?\n/;var $httpMinErr=minErr("$http");function serializeValue(v){if(isObject(v)){return isDate(v)?v.toISOString():toJson(v)}return v}function $HttpParamSerializerProvider(){this.$get=function(){return function ngParamSerializer(params){if(!params)return"";var parts=[];forEachSorted(params,function(value,key){if(value===null||isUndefined(value)||isFunction(value))return;if(isArray(value)){forEach(value,function(v){parts.push(encodeUriQuery(key)+"="+encodeUriQuery(serializeValue(v)))})}else{parts.push(encodeUriQuery(key)+"="+encodeUriQuery(serializeValue(value)))}});return parts.join("&")}}}function $HttpParamSerializerJQLikeProvider(){this.$get=function(){return function jQueryLikeParamSerializer(params){if(!params)return"";var parts=[];serialize(params,"",true);return parts.join("&");function serialize(toSerialize,prefix,topLevel){if(isArray(toSerialize)){forEach(toSerialize,function(value,index){serialize(value,prefix+"["+(isObject(value)?index:"")+"]")})}else if(isObject(toSerialize)&&!isDate(toSerialize)){forEachSorted(toSerialize,function(value,key){serialize(value,prefix+(topLevel?"":"[")+key+(topLevel?"":"]"))})}else{if(isFunction(toSerialize)){toSerialize=toSerialize()}parts.push(encodeUriQuery(prefix)+"="+(toSerialize==null?"":encodeUriQuery(serializeValue(toSerialize))))}}}}}function defaultHttpResponseTransform(data,headers){if(isString(data)){var tempData=data.replace(JSON_PROTECTION_PREFIX,"").trim();if(tempData){var contentType=headers("Content-Type");var hasJsonContentType=contentType&&contentType.indexOf(APPLICATION_JSON)===0;if(hasJsonContentType||isJsonLike(tempData)){try{data=fromJson(tempData)}catch(e){if(!hasJsonContentType){return data}throw $httpMinErr("baddata",'Data must be a valid JSON object. Received: "{0}". '+'Parse error: "{1}"',data,e)}}}}return data}function isJsonLike(str){var jsonStart=str.match(JSON_START);return jsonStart&&JSON_ENDS[jsonStart[0]].test(str)}function parseHeaders(headers){var parsed=createMap(),i;function fillInParsed(key,val){if(key){parsed[key]=parsed[key]?parsed[key]+", "+val:val}}if(isString(headers)){forEach(headers.split("\n"),function(line){i=line.indexOf(":");fillInParsed(lowercase(trim(line.substr(0,i))),trim(line.substr(i+1)))})}else if(isObject(headers)){forEach(headers,function(headerVal,headerKey){fillInParsed(lowercase(headerKey),trim(headerVal))})}return parsed}function headersGetter(headers){var headersObj;return function(name){if(!headersObj)headersObj=parseHeaders(headers);if(name){var value=headersObj[lowercase(name)];if(value===undefined){value=null}return value}return headersObj}}function transformData(data,headers,status,fns){if(isFunction(fns)){return fns(data,headers,status)}forEach(fns,function(fn){data=fn(data,headers,status)});return data}function isSuccess(status){return 200<=status&&status<300}function $HttpProvider(){var defaults=this.defaults={transformResponse:[defaultHttpResponseTransform],transformRequest:[function(d){return isObject(d)&&!isFile(d)&&!isBlob(d)&&!isFormData(d)?toJson(d):d}],headers:{common:{Accept:"application/json, text/plain, */*"},post:shallowCopy(CONTENT_TYPE_APPLICATION_JSON),put:shallowCopy(CONTENT_TYPE_APPLICATION_JSON),patch:shallowCopy(CONTENT_TYPE_APPLICATION_JSON)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"};var useApplyAsync=false;this.useApplyAsync=function(value){if(isDefined(value)){useApplyAsync=!!value;return this}return useApplyAsync};var interceptorFactories=this.interceptors=[];var xsrfTrustedOrigins=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function get(){return this.xsrfTrustedOrigins},set:function set(origins){this.xsrfTrustedOrigins=origins}});this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function($browser,$httpBackend,$$cookieReader,$cacheFactory,$rootScope,$q,$injector,$sce){var defaultCache=$cacheFactory("$http");defaults.paramSerializer=isString(defaults.paramSerializer)?$injector.get(defaults.paramSerializer):defaults.paramSerializer;var reversedInterceptors=[];forEach(interceptorFactories,function(interceptorFactory){reversedInterceptors.unshift(isString(interceptorFactory)?$injector.get(interceptorFactory):$injector.invoke(interceptorFactory))});var urlIsAllowedOrigin=urlIsAllowedOriginFactory(xsrfTrustedOrigins);function $http(requestConfig){if(!isObject(requestConfig)){throw minErr("$http")("badreq","Http request configuration must be an object. Received: {0}",requestConfig)}if(!isString($sce.valueOf(requestConfig.url))){throw minErr("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",requestConfig.url)}var config=extend({method:"get",transformRequest:defaults.transformRequest,transformResponse:defaults.transformResponse,paramSerializer:defaults.paramSerializer,jsonpCallbackParam:defaults.jsonpCallbackParam},requestConfig);config.headers=mergeHeaders(requestConfig);config.method=uppercase(config.method);config.paramSerializer=isString(config.paramSerializer)?$injector.get(config.paramSerializer):config.paramSerializer;$browser.$$incOutstandingRequestCount("$http");var requestInterceptors=[];var responseInterceptors=[];var promise=$q.resolve(config);forEach(reversedInterceptors,function(interceptor){if(interceptor.request||interceptor.requestError){requestInterceptors.unshift(interceptor.request,interceptor.requestError)}if(interceptor.response||interceptor.responseError){responseInterceptors.push(interceptor.response,interceptor.responseError)}});promise=chainInterceptors(promise,requestInterceptors);promise=promise.then(serverRequest);promise=chainInterceptors(promise,responseInterceptors);promise=promise["finally"](completeOutstandingRequest);return promise;function chainInterceptors(promise,interceptors){for(var i=0,ii=interceptors.length;i=-1?status:0;(isSuccess(status)?deferred.resolve:deferred.reject)({data:response,status:status,headers:headersGetter(headers),config:config,statusText:statusText,xhrStatus:xhrStatus})}function resolvePromiseWithResult(result){resolvePromise(result.data,result.status,shallowCopy(result.headers()),result.statusText,result.xhrStatus)}function removePendingReq(){var idx=$http.pendingRequests.indexOf(config);if(idx!==-1)$http.pendingRequests.splice(idx,1)}}function buildUrl(url,serializedParams){if(serializedParams.length>0){url+=(url.indexOf("?")===-1?"?":"&")+serializedParams}return url}function sanitizeJsonpCallbackParam(url,cbKey){var parts=url.split("?");if(parts.length>2){throw $httpMinErr("badjsonp",'Illegal use more than one "?", in url, "{1}"',url)}var params=parseKeyValue(parts[1]);forEach(params,function(value,key){if(value==="JSON_CALLBACK"){throw $httpMinErr("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',url)}if(key===cbKey){throw $httpMinErr("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',cbKey,url)}});url+=(url.indexOf("?")===-1?"?":"&")+cbKey+"=JSON_CALLBACK";return url}}]}function $xhrFactoryProvider(){this.$get=function(){return function createXhr(){return new window.XMLHttpRequest}}}function $HttpBackendProvider(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function($browser,$jsonpCallbacks,$document,$xhrFactory){return createHttpBackend($browser,$xhrFactory,$browser.defer,$jsonpCallbacks,$document[0])}]}function createHttpBackend($browser,createXhr,$browserDefer,callbacks,rawDocument){return function(method,url,post,callback,headers,timeout,withCredentials,responseType,eventHandlers,uploadEventHandlers){url=url||$browser.url();if(lowercase(method)==="jsonp"){var callbackPath=callbacks.createCallback(url);var jsonpDone=jsonpReq(url,callbackPath,function(status,text){var response=status===200&&callbacks.getResponse(callbackPath);completeRequest(callback,status,response,"",text,"complete");callbacks.removeCallback(callbackPath)})}else{var xhr=createXhr(method,url);var abortedByTimeout=false;xhr.open(method,url,true);forEach(headers,function(value,key){if(isDefined(value)){xhr.setRequestHeader(key,value)}});xhr.onload=function requestLoaded(){var statusText=xhr.statusText||"";var response="response"in xhr?xhr.response:xhr.responseText;var status=xhr.status===1223?204:xhr.status;if(status===0){status=response?200:urlResolve(url).protocol==="file"?404:0}completeRequest(callback,status,response,xhr.getAllResponseHeaders(),statusText,"complete")};var requestError=function requestError(){completeRequest(callback,-1,null,null,"","error")};var requestAborted=function requestAborted(){completeRequest(callback,-1,null,null,"",abortedByTimeout?"timeout":"abort")};var requestTimeout=function requestTimeout(){completeRequest(callback,-1,null,null,"","timeout")};xhr.onerror=requestError;xhr.ontimeout=requestTimeout;xhr.onabort=requestAborted;forEach(eventHandlers,function(value,key){xhr.addEventListener(key,value)});forEach(uploadEventHandlers,function(value,key){xhr.upload.addEventListener(key,value)});if(withCredentials){xhr.withCredentials=true}if(responseType){try{xhr.responseType=responseType}catch(e){if(responseType!=="json"){throw e}}}xhr.send(isUndefined(post)?null:post)}if(timeout>0){var timeoutId=$browserDefer(function(){timeoutRequest("timeout")},timeout)}else if(isPromiseLike(timeout)){timeout.then(function(){timeoutRequest(isDefined(timeout.$$timeoutId)?"timeout":"abort")})}function timeoutRequest(reason){abortedByTimeout=reason==="timeout";if(jsonpDone){jsonpDone()}if(xhr){xhr.abort()}}function completeRequest(callback,status,response,headersString,statusText,xhrStatus){if(isDefined(timeoutId)){$browserDefer.cancel(timeoutId)}jsonpDone=xhr=null;callback(status,response,headersString,statusText,xhrStatus)}};function jsonpReq(url,callbackPath,done){url=url.replace("JSON_CALLBACK",callbackPath);var script=rawDocument.createElement("script"),_callback=null;script.type="text/javascript";script.src=url;script.async=true;_callback=function callback(event){script.removeEventListener("load",_callback);script.removeEventListener("error",_callback);rawDocument.body.removeChild(script);script=null;var status=-1;var text="unknown";if(event){if(event.type==="load"&&!callbacks.wasCalled(callbackPath)){event={type:"error"}}text=event.type;status=event.type==="error"?404:200}if(done){done(status,text)}};script.addEventListener("load",_callback);script.addEventListener("error",_callback);rawDocument.body.appendChild(script);return _callback}}var $interpolateMinErr=angular.$interpolateMinErr=minErr("$interpolate");$interpolateMinErr.throwNoconcat=function(text){throw $interpolateMinErr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows "+"interpolations that concatenate multiple expressions when a trusted value is "+"required. See http://docs.angularjs.org/api/ng.$sce",text)};$interpolateMinErr.interr=function(text,err){return $interpolateMinErr("interr","Can't interpolate: {0}\n{1}",text,err.toString())};function $InterpolateProvider(){var startSymbol="{{";var endSymbol="}}";this.startSymbol=function(value){if(value){startSymbol=value;return this}return startSymbol};this.endSymbol=function(value){if(value){endSymbol=value;return this}return endSymbol};this.$get=["$parse","$exceptionHandler","$sce",function($parse,$exceptionHandler,$sce){var startSymbolLength=startSymbol.length,endSymbolLength=endSymbol.length,escapedStartRegexp=new RegExp(startSymbol.replace(/./g,escape),"g"),escapedEndRegexp=new RegExp(endSymbol.replace(/./g,escape),"g");function escape(ch){return"\\\\\\"+ch}function unescapeText(text){return text.replace(escapedStartRegexp,startSymbol).replace(escapedEndRegexp,endSymbol)}function constantWatchDelegate(scope,listener,objectEquality,constantInterp){var unwatch=scope.$watch(function constantInterpolateWatch(scope){unwatch();return constantInterp(scope)},listener,objectEquality);return unwatch}function $interpolate(text,mustHaveExpression,trustedContext,allOrNothing){var contextAllowsConcatenation=trustedContext===$sce.URL||trustedContext===$sce.MEDIA_URL;if(!text.length||text.indexOf(startSymbol)===-1){if(mustHaveExpression)return;var unescapedText=unescapeText(text);if(contextAllowsConcatenation){unescapedText=$sce.getTrusted(trustedContext,unescapedText)}var constantInterp=valueFn(unescapedText);constantInterp.exp=text;constantInterp.expressions=[];constantInterp.$$watchDelegate=constantWatchDelegate;return constantInterp}allOrNothing=!!allOrNothing;var startIndex,endIndex,index=0,expressions=[],parseFns,textLength=text.length,exp,concat=[],expressionPositions=[],singleExpression;while(index1){$interpolateMinErr.throwNoconcat(text)}return concat.join("")};return extend(function interpolationFn(context){var i=0;var ii=expressions.length;var values=new Array(ii);try{for(;i4,args=hasParams?sliceArgs(arguments,4):[],iteration=0,skipApply=isDefined(invokeApply)&&!invokeApply,deferred=(skipApply?$$q:$q).defer(),promise=deferred.promise;count=isDefined(count)?count:0;function callback(){if(!hasParams){fn(iteration)}else{fn.apply(null,args)}}function tick(){if(skipApply){$browser.defer(callback)}else{$rootScope.$evalAsync(callback)}deferred.notify(iteration++);if(count>0&&iteration>=count){deferred.resolve(iteration);clearIntervalFn(promise.$$intervalId)}if(!skipApply)$rootScope.$apply()}promise.$$intervalId=setIntervalFn(tick,delay,deferred,skipApply);return promise}}}]}var $jsonpCallbacksProvider=function $jsonpCallbacksProvider(){this.$get=function(){var callbacks=angular.callbacks;var callbackMap={};function _createCallback(callbackId){var callback=function callback(data){callback.data=data;callback.called=true};callback.id=callbackId;return callback}return{createCallback:function createCallback(url){var callbackId="_"+(callbacks.$$counter++).toString(36);var callbackPath="angular.callbacks."+callbackId;var callback=_createCallback(callbackId);callbackMap[callbackPath]=callbacks[callbackId]=callback;return callbackPath},wasCalled:function wasCalled(callbackPath){return callbackMap[callbackPath].called},getResponse:function getResponse(callbackPath){return callbackMap[callbackPath].data},removeCallback:function removeCallback(callbackPath){var callback=callbackMap[callbackPath];delete callbacks[callback.id];delete callbackMap[callbackPath]}}}};var PATH_MATCH=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,DEFAULT_PORTS={http:80,https:443,ftp:21};var $locationMinErr=minErr("$location");function encodePath(path){var segments=path.split("/"),i=segments.length;while(i--){segments[i]=encodeUriSegment(segments[i].replace(/%2F/g,"/"))}return segments.join("/")}function decodePath(path,html5Mode){var segments=path.split("/"),i=segments.length;while(i--){segments[i]=decodeURIComponent(segments[i]);if(html5Mode){segments[i]=segments[i].replace(/\//g,"%2F")}}return segments.join("/")}function normalizePath(pathValue,searchValue,hashValue){var search=toKeyValue(searchValue),hash=hashValue?"#"+encodeUriSegment(hashValue):"",path=encodePath(pathValue);return path+(search?"?"+search:"")+hash}function parseAbsoluteUrl(absoluteUrl,locationObj){var parsedUrl=urlResolve(absoluteUrl);locationObj.$$protocol=parsedUrl.protocol;locationObj.$$host=parsedUrl.hostname;locationObj.$$port=toInt(parsedUrl.port)||DEFAULT_PORTS[parsedUrl.protocol]||null}var DOUBLE_SLASH_REGEX=/^\s*[\\/]{2,}/;function parseAppUrl(url,locationObj,html5Mode){if(DOUBLE_SLASH_REGEX.test(url)){throw $locationMinErr("badpath",'Invalid url "{0}".',url)}var prefixed=url.charAt(0)!=="/";if(prefixed){url="/"+url}var match=urlResolve(url);var path=prefixed&&match.pathname.charAt(0)==="/"?match.pathname.substring(1):match.pathname;locationObj.$$path=decodePath(path,html5Mode);locationObj.$$search=parseKeyValue(match.search);locationObj.$$hash=decodeURIComponent(match.hash);if(locationObj.$$path&&locationObj.$$path.charAt(0)!=="/"){locationObj.$$path="/"+locationObj.$$path}}function startsWith(str,search){return str.slice(0,search.length)===search}function stripBaseUrl(base,url){if(startsWith(url,base)){return url.substr(base.length)}}function stripHash(url){var index=url.indexOf("#");return index===-1?url:url.substr(0,index)}function stripFile(url){return url.substr(0,stripHash(url).lastIndexOf("/")+1)}function serverBase(url){return url.substring(0,url.indexOf("/",url.indexOf("//")+2))}function LocationHtml5Url(appBase,appBaseNoFile,basePrefix){this.$$html5=true;basePrefix=basePrefix||"";parseAbsoluteUrl(appBase,this);this.$$parse=function(url){var pathUrl=stripBaseUrl(appBaseNoFile,url);if(!isString(pathUrl)){throw $locationMinErr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',url,appBaseNoFile)}parseAppUrl(pathUrl,this,true);if(!this.$$path){this.$$path="/"}this.$$compose()};this.$$normalizeUrl=function(url){return appBaseNoFile+url.substr(1)};this.$$parseLinkUrl=function(url,relHref){if(relHref&&relHref[0]==="#"){this.hash(relHref.slice(1));return true}var appUrl,prevAppUrl;var rewrittenUrl;if(isDefined(appUrl=stripBaseUrl(appBase,url))){prevAppUrl=appUrl;if(basePrefix&&isDefined(appUrl=stripBaseUrl(basePrefix,appUrl))){rewrittenUrl=appBaseNoFile+(stripBaseUrl("/",appUrl)||appUrl)}else{rewrittenUrl=appBase+prevAppUrl}}else if(isDefined(appUrl=stripBaseUrl(appBaseNoFile,url))){rewrittenUrl=appBaseNoFile+appUrl}else if(appBaseNoFile===url+"/"){rewrittenUrl=appBaseNoFile}if(rewrittenUrl){this.$$parse(rewrittenUrl)}return!!rewrittenUrl}}function LocationHashbangUrl(appBase,appBaseNoFile,hashPrefix){parseAbsoluteUrl(appBase,this);this.$$parse=function(url){var withoutBaseUrl=stripBaseUrl(appBase,url)||stripBaseUrl(appBaseNoFile,url);var withoutHashUrl;if(!isUndefined(withoutBaseUrl)&&withoutBaseUrl.charAt(0)==="#"){withoutHashUrl=stripBaseUrl(hashPrefix,withoutBaseUrl);if(isUndefined(withoutHashUrl)){withoutHashUrl=withoutBaseUrl}}else{if(this.$$html5){withoutHashUrl=withoutBaseUrl}else{withoutHashUrl="";if(isUndefined(withoutBaseUrl)){appBase=url;this.replace()}}}parseAppUrl(withoutHashUrl,this,false);this.$$path=removeWindowsDriveName(this.$$path,withoutHashUrl,appBase);this.$$compose();function removeWindowsDriveName(path,url,base){var windowsFilePathExp=/^\/[A-Z]:(\/.*)/;var firstPathSegmentMatch;if(startsWith(url,base)){url=url.replace(base,"")}if(windowsFilePathExp.exec(url)){return path}firstPathSegmentMatch=windowsFilePathExp.exec(path);return firstPathSegmentMatch?firstPathSegmentMatch[1]:path}};this.$$normalizeUrl=function(url){return appBase+(url?hashPrefix+url:"")};this.$$parseLinkUrl=function(url,relHref){if(stripHash(appBase)===stripHash(url)){this.$$parse(url);return true}return false}}function LocationHashbangInHtml5Url(appBase,appBaseNoFile,hashPrefix){this.$$html5=true;LocationHashbangUrl.apply(this,arguments);this.$$parseLinkUrl=function(url,relHref){if(relHref&&relHref[0]==="#"){this.hash(relHref.slice(1));return true}var rewrittenUrl;var appUrl;if(appBase===stripHash(url)){rewrittenUrl=url}else if(appUrl=stripBaseUrl(appBaseNoFile,url)){rewrittenUrl=appBase+hashPrefix+appUrl}else if(appBaseNoFile===url+"/"){rewrittenUrl=appBaseNoFile}if(rewrittenUrl){this.$$parse(rewrittenUrl)}return!!rewrittenUrl};this.$$normalizeUrl=function(url){return appBase+hashPrefix+url}}var locationPrototype={$$absUrl:"",$$html5:false,$$replace:false,$$compose:function $$compose(){this.$$url=normalizePath(this.$$path,this.$$search,this.$$hash);this.$$absUrl=this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation=true},absUrl:locationGetter("$$absUrl"),url:function url(_url){if(isUndefined(_url)){return this.$$url}var match=PATH_MATCH.exec(_url);if(match[1]||_url==="")this.path(decodeURIComponent(match[1]));if(match[2]||match[1]||_url==="")this.search(match[3]||"");this.hash(match[5]||"");return this},protocol:locationGetter("$$protocol"),host:locationGetter("$$host"),port:locationGetter("$$port"),path:locationGetterSetter("$$path",function(path){path=path!==null?path.toString():"";return path.charAt(0)==="/"?path:"/"+path}),search:function search(_search,paramValue){switch(arguments.length){case 0:return this.$$search;case 1:if(isString(_search)||isNumber(_search)){_search=_search.toString();this.$$search=parseKeyValue(_search)}else if(isObject(_search)){_search=copy(_search,{});forEach(_search,function(value,key){if(value==null)delete _search[key]});this.$$search=_search}else{throw $locationMinErr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.")}break;default:if(isUndefined(paramValue)||paramValue===null){delete this.$$search[_search]}else{this.$$search[_search]=paramValue}}this.$$compose();return this},hash:locationGetterSetter("$$hash",function(hash){return hash!==null?hash.toString():""}),replace:function replace(){this.$$replace=true;return this}};forEach([LocationHashbangInHtml5Url,LocationHashbangUrl,LocationHtml5Url],function(Location){Location.prototype=Object.create(locationPrototype);Location.prototype.state=function(state){if(!arguments.length){return this.$$state}if(Location!==LocationHtml5Url||!this.$$html5){throw $locationMinErr("nostate","History API state support is available only "+"in HTML5 mode and only in browsers supporting HTML5 History API")}this.$$state=isUndefined(state)?null:state;this.$$urlUpdatedByLocation=true;return this}});function locationGetter(property){return function(){return this[property]}}function locationGetterSetter(property,preprocess){return function(value){if(isUndefined(value)){return this[property]}this[property]=preprocess(value);this.$$compose();return this}}function $LocationProvider(){var hashPrefix="!",html5Mode={enabled:false,requireBase:true,rewriteLinks:true};this.hashPrefix=function(prefix){if(isDefined(prefix)){hashPrefix=prefix;return this}else{return hashPrefix}};this.html5Mode=function(mode){if(isBoolean(mode)){html5Mode.enabled=mode;return this}else if(isObject(mode)){if(isBoolean(mode.enabled)){html5Mode.enabled=mode.enabled}if(isBoolean(mode.requireBase)){html5Mode.requireBase=mode.requireBase}if(isBoolean(mode.rewriteLinks)||isString(mode.rewriteLinks)){html5Mode.rewriteLinks=mode.rewriteLinks}return this}else{return html5Mode}};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function($rootScope,$browser,$sniffer,$rootElement,$window){var $location,LocationMode,baseHref=$browser.baseHref(),initialUrl=$browser.url(),appBase;if(html5Mode.enabled){if(!baseHref&&html5Mode.requireBase){throw $locationMinErr("nobase","$location in HTML5 mode requires a tag to be present!")}appBase=serverBase(initialUrl)+(baseHref||"/");LocationMode=$sniffer.history?LocationHtml5Url:LocationHashbangInHtml5Url}else{appBase=stripHash(initialUrl);LocationMode=LocationHashbangUrl}var appBaseNoFile=stripFile(appBase);$location=new LocationMode(appBase,appBaseNoFile,"#"+hashPrefix);$location.$$parseLinkUrl(initialUrl,initialUrl);$location.$$state=$browser.state();var IGNORE_URI_REGEXP=/^\s*(javascript|mailto):/i;function urlsEqual(a,b){return a===b||urlResolve(a).href===urlResolve(b).href}function setBrowserUrlWithFallback(url,replace,state){var oldUrl=$location.url();var oldState=$location.$$state;try{$browser.url(url,replace,state);$location.$$state=$browser.state()}catch(e){$location.url(oldUrl);$location.$$state=oldState;throw e}}$rootElement.on("click",function(event){var rewriteLinks=html5Mode.rewriteLinks;if(!rewriteLinks||event.ctrlKey||event.metaKey||event.shiftKey||event.which===2||event.button===2)return;var elm=jqLite(event.target);while(nodeName_(elm[0])!=="a"){if(elm[0]===$rootElement[0]||!(elm=elm.parent())[0])return}if(isString(rewriteLinks)&&isUndefined(elm.attr(rewriteLinks)))return;var absHref=elm.prop("href");var relHref=elm.attr("href")||elm.attr("xlink:href");if(isObject(absHref)&&absHref.toString()==="[object SVGAnimatedString]"){absHref=urlResolve(absHref.animVal).href}if(IGNORE_URI_REGEXP.test(absHref))return;if(absHref&&!elm.attr("target")&&!event.isDefaultPrevented()){if($location.$$parseLinkUrl(absHref,relHref)){event.preventDefault();if($location.absUrl()!==$browser.url()){$rootScope.$apply()}}}});if($location.absUrl()!==initialUrl){$browser.url($location.absUrl(),true)}var initializing=true;$browser.onUrlChange(function(newUrl,newState){if(!startsWith(newUrl,appBaseNoFile)){$window.location.href=newUrl;return}$rootScope.$evalAsync(function(){var oldUrl=$location.absUrl();var oldState=$location.$$state;var defaultPrevented;$location.$$parse(newUrl);$location.$$state=newState;defaultPrevented=$rootScope.$broadcast("$locationChangeStart",newUrl,oldUrl,newState,oldState).defaultPrevented;if($location.absUrl()!==newUrl)return;if(defaultPrevented){$location.$$parse(oldUrl);$location.$$state=oldState;setBrowserUrlWithFallback(oldUrl,false,oldState)}else{initializing=false;afterLocationChange(oldUrl,oldState)}});if(!$rootScope.$$phase)$rootScope.$digest()});$rootScope.$watch(function $locationWatch(){if(initializing||$location.$$urlUpdatedByLocation){$location.$$urlUpdatedByLocation=false;var oldUrl=$browser.url();var newUrl=$location.absUrl();var oldState=$browser.state();var currentReplace=$location.$$replace;var urlOrStateChanged=!urlsEqual(oldUrl,newUrl)||$location.$$html5&&$sniffer.history&&oldState!==$location.$$state;if(initializing||urlOrStateChanged){initializing=false;$rootScope.$evalAsync(function(){var newUrl=$location.absUrl();var defaultPrevented=$rootScope.$broadcast("$locationChangeStart",newUrl,oldUrl,$location.$$state,oldState).defaultPrevented;if($location.absUrl()!==newUrl)return;if(defaultPrevented){$location.$$parse(oldUrl);$location.$$state=oldState}else{if(urlOrStateChanged){setBrowserUrlWithFallback(newUrl,currentReplace,oldState===$location.$$state?null:$location.$$state)}afterLocationChange(oldUrl,oldState)}})}}$location.$$replace=false});return $location;function afterLocationChange(oldUrl,oldState){$rootScope.$broadcast("$locationChangeSuccess",$location.absUrl(),oldUrl,$location.$$state,oldState)}}]}function $LogProvider(){var debug=true,self=this;this.debugEnabled=function(flag){if(isDefined(flag)){debug=flag;return this}else{return debug}};this.$get=["$window",function($window){var formatStackTrace=msie||/\bEdge\//.test($window.navigator&&$window.navigator.userAgent);return{log:consoleLog("log"),info:consoleLog("info"),warn:consoleLog("warn"),error:consoleLog("error"),debug:function(){var fn=consoleLog("debug");return function(){if(debug){fn.apply(self,arguments)}}}()};function formatError(arg){if(isError(arg)){if(arg.stack&&formatStackTrace){arg=arg.message&&arg.stack.indexOf(arg.message)===-1?"Error: "+arg.message+"\n"+arg.stack:arg.stack}else if(arg.sourceURL){arg=arg.message+"\n"+arg.sourceURL+":"+arg.line}}return arg}function consoleLog(type){var console=$window.console||{},logFn=console[type]||console.log||noop;return function(){var args=[];forEach(arguments,function(arg){args.push(formatError(arg))});return Function.prototype.apply.call(logFn,console,args)}}}]}var $parseMinErr=minErr("$parse");var objectValueOf={}.constructor.prototype.valueOf;function getStringValue(name){return name+""}var OPERATORS=createMap();forEach("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(operator){OPERATORS[operator]=true});var ESCAPE={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};var Lexer=function Lexer(options){this.options=options};Lexer.prototype={constructor:Lexer,lex:function lex(text){this.text=text;this.index=0;this.tokens=[];while(this.index=55296&&cp1<=56319&&cp2>=56320&&cp2<=57343){return ch+peek}return ch},isExpOperator:function isExpOperator(ch){return ch==="-"||ch==="+"||this.isNumber(ch)},throwError:function throwError(error,start,end){end=end||this.index;var colStr=isDefined(start)?"s "+start+"-"+this.index+" ["+this.text.substring(start,end)+"]":" "+end;throw $parseMinErr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",error,colStr,this.text)},readNumber:function readNumber(){var number="";var start=this.index;while(this.index0&&!this.peek("}",")",";","]"))body.push(this.expressionStatement());if(!this.expect(";")){return{type:AST.Program,body:body}}}},expressionStatement:function expressionStatement(){return{type:AST.ExpressionStatement,expression:this.filterChain()}},filterChain:function filterChain(){var left=this.expression();while(this.expect("|")){left=this.filter(left)}return left},expression:function expression(){return this.assignment()},assignment:function assignment(){var result=this.ternary();if(this.expect("=")){if(!isAssignable(result)){throw $parseMinErr("lval","Trying to assign a value to a non l-value")}result={type:AST.AssignmentExpression,left:result,right:this.assignment(),operator:"="}}return result},ternary:function ternary(){var test=this.logicalOR();var alternate;var consequent;if(this.expect("?")){alternate=this.expression();if(this.consume(":")){consequent=this.expression();return{type:AST.ConditionalExpression,test:test,alternate:alternate,consequent:consequent}}}return test},logicalOR:function logicalOR(){var left=this.logicalAND();while(this.expect("||")){left={type:AST.LogicalExpression,operator:"||",left:left,right:this.logicalAND()}}return left},logicalAND:function logicalAND(){var left=this.equality();while(this.expect("&&")){left={type:AST.LogicalExpression,operator:"&&",left:left,right:this.equality()}}return left},equality:function equality(){var left=this.relational();var token;while(token=this.expect("==","!=","===","!==")){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.relational()}}return left},relational:function relational(){var left=this.additive();var token;while(token=this.expect("<",">","<=",">=")){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.additive()}}return left},additive:function additive(){var left=this.multiplicative();var token;while(token=this.expect("+","-")){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.multiplicative()}}return left},multiplicative:function multiplicative(){var left=this.unary();var token;while(token=this.expect("*","/","%")){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.unary()}}return left},unary:function unary(){var token;if(token=this.expect("+","-","!")){return{type:AST.UnaryExpression,operator:token.text,prefix:true,argument:this.unary()}}else{return this.primary()}},primary:function primary(){var primary;if(this.expect("(")){primary=this.filterChain();this.consume(")")}else if(this.expect("[")){primary=this.arrayDeclaration()}else if(this.expect("{")){primary=this.object()}else if(this.selfReferential.hasOwnProperty(this.peek().text)){primary=copy(this.selfReferential[this.consume().text])}else if(this.options.literals.hasOwnProperty(this.peek().text)){primary={type:AST.Literal,value:this.options.literals[this.consume().text]}}else if(this.peek().identifier){primary=this.identifier()}else if(this.peek().constant){primary=this.constant()}else{this.throwError("not a primary expression",this.peek())}var next;while(next=this.expect("(","[",".")){if(next.text==="("){primary={type:AST.CallExpression,callee:primary,arguments:this.parseArguments()};this.consume(")")}else if(next.text==="["){primary={type:AST.MemberExpression,object:primary,property:this.expression(),computed:true};this.consume("]")}else if(next.text==="."){primary={type:AST.MemberExpression,object:primary,property:this.identifier(),computed:false}}else{this.throwError("IMPOSSIBLE")}}return primary},filter:function filter(baseExpression){var args=[baseExpression];var result={type:AST.CallExpression,callee:this.identifier(),arguments:args,filter:true};while(this.expect(":")){args.push(this.expression())}return result},parseArguments:function parseArguments(){var args=[];if(this.peekToken().text!==")"){do{args.push(this.filterChain())}while(this.expect(","))}return args},identifier:function identifier(){var token=this.consume();if(!token.identifier){this.throwError("is not a valid identifier",token)}return{type:AST.Identifier,name:token.text}},constant:function constant(){return{type:AST.Literal,value:this.consume().value}},arrayDeclaration:function arrayDeclaration(){var elements=[];if(this.peekToken().text!=="]"){do{if(this.peek("]")){break}elements.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:AST.ArrayExpression,elements:elements}},object:function object(){var properties=[],property;if(this.peekToken().text!=="}"){do{if(this.peek("}")){break}property={type:AST.Property,kind:"init"};if(this.peek().constant){property.key=this.constant();property.computed=false;this.consume(":");property.value=this.expression()}else if(this.peek().identifier){property.key=this.identifier();property.computed=false;if(this.peek(":")){this.consume(":");property.value=this.expression()}else{property.value=property.key}}else if(this.peek("[")){this.consume("[");property.key=this.expression();this.consume("]");property.computed=true;this.consume(":");property.value=this.expression()}else{this.throwError("invalid key",this.peek())}properties.push(property)}while(this.expect(","))}this.consume("}");return{type:AST.ObjectExpression,properties:properties}},throwError:function throwError(msg,token){throw $parseMinErr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",token.text,msg,token.index+1,this.text,this.text.substring(token.index))},consume:function consume(e1){if(this.tokens.length===0){throw $parseMinErr("ueoe","Unexpected end of expression: {0}",this.text)}var token=this.expect(e1);if(!token){this.throwError("is unexpected, expecting ["+e1+"]",this.peek())}return token},peekToken:function peekToken(){if(this.tokens.length===0){throw $parseMinErr("ueoe","Unexpected end of expression: {0}",this.text)}return this.tokens[0]},peek:function peek(e1,e2,e3,e4){return this.peekAhead(0,e1,e2,e3,e4)},peekAhead:function peekAhead(i,e1,e2,e3,e4){if(this.tokens.length>i){var token=this.tokens[i];var t=token.text;if(t===e1||t===e2||t===e3||t===e4||!e1&&!e2&&!e3&&!e4){return token}}return false},expect:function expect(e1,e2,e3,e4){var token=this.peek(e1,e2,e3,e4);if(token){this.tokens.shift();return token}return false},selfReferential:{this:{type:AST.ThisExpression},$locals:{type:AST.LocalsExpression}}};function ifDefined(v,d){return typeof v!=="undefined"?v:d}function plusFn(l,r){if(typeof l==="undefined")return r;if(typeof r==="undefined")return l;return l+r}function isStateless($filter,filterName){var fn=$filter(filterName);return!fn.$stateful}var PURITY_ABSOLUTE=1;var PURITY_RELATIVE=2;function isPure(node,parentIsPure){switch(node.type){case AST.MemberExpression:if(node.computed){return false}break;case AST.UnaryExpression:return PURITY_ABSOLUTE;case AST.BinaryExpression:return node.operator!=="+"?PURITY_ABSOLUTE:false;case AST.CallExpression:return false}return undefined===parentIsPure?PURITY_RELATIVE:parentIsPure}function findConstantAndWatchExpressions(ast,$filter,parentIsPure){var allConstants;var argsToWatch;var isStatelessFilter;var astIsPure=ast.isPure=isPure(ast,parentIsPure);switch(ast.type){case AST.Program:allConstants=true;forEach(ast.body,function(expr){findConstantAndWatchExpressions(expr.expression,$filter,astIsPure);allConstants=allConstants&&expr.expression.constant});ast.constant=allConstants;break;case AST.Literal:ast.constant=true;ast.toWatch=[];break;case AST.UnaryExpression:findConstantAndWatchExpressions(ast.argument,$filter,astIsPure);ast.constant=ast.argument.constant;ast.toWatch=ast.argument.toWatch;break;case AST.BinaryExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=ast.left.toWatch.concat(ast.right.toWatch);break;case AST.LogicalExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=ast.constant?[]:[ast];break;case AST.ConditionalExpression:findConstantAndWatchExpressions(ast.test,$filter,astIsPure);findConstantAndWatchExpressions(ast.alternate,$filter,astIsPure);findConstantAndWatchExpressions(ast.consequent,$filter,astIsPure);ast.constant=ast.test.constant&&ast.alternate.constant&&ast.consequent.constant;ast.toWatch=ast.constant?[]:[ast];break;case AST.Identifier:ast.constant=false;ast.toWatch=[ast];break;case AST.MemberExpression:findConstantAndWatchExpressions(ast.object,$filter,astIsPure);if(ast.computed){findConstantAndWatchExpressions(ast.property,$filter,astIsPure)}ast.constant=ast.object.constant&&(!ast.computed||ast.property.constant);ast.toWatch=ast.constant?[]:[ast];break;case AST.CallExpression:isStatelessFilter=ast.filter?isStateless($filter,ast.callee.name):false;allConstants=isStatelessFilter;argsToWatch=[];forEach(ast.arguments,function(expr){findConstantAndWatchExpressions(expr,$filter,astIsPure);allConstants=allConstants&&expr.constant;argsToWatch.push.apply(argsToWatch,expr.toWatch)});ast.constant=allConstants;ast.toWatch=isStatelessFilter?argsToWatch:[ast];break;case AST.AssignmentExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=[ast];break;case AST.ArrayExpression:allConstants=true;argsToWatch=[];forEach(ast.elements,function(expr){findConstantAndWatchExpressions(expr,$filter,astIsPure);allConstants=allConstants&&expr.constant;argsToWatch.push.apply(argsToWatch,expr.toWatch)});ast.constant=allConstants;ast.toWatch=argsToWatch;break;case AST.ObjectExpression:allConstants=true;argsToWatch=[];forEach(ast.properties,function(property){findConstantAndWatchExpressions(property.value,$filter,astIsPure);allConstants=allConstants&&property.value.constant;argsToWatch.push.apply(argsToWatch,property.value.toWatch);if(property.computed){findConstantAndWatchExpressions(property.key,$filter,false);allConstants=allConstants&&property.key.constant;argsToWatch.push.apply(argsToWatch,property.key.toWatch)}});ast.constant=allConstants;ast.toWatch=argsToWatch;break;case AST.ThisExpression:ast.constant=false;ast.toWatch=[];break;case AST.LocalsExpression:ast.constant=false;ast.toWatch=[];break}}function getInputs(body){if(body.length!==1)return;var lastExpression=body[0].expression;var candidate=lastExpression.toWatch;if(candidate.length!==1)return candidate;return candidate[0]!==lastExpression?candidate:undefined}function isAssignable(ast){return ast.type===AST.Identifier||ast.type===AST.MemberExpression}function assignableAST(ast){if(ast.body.length===1&&isAssignable(ast.body[0].expression)){return{type:AST.AssignmentExpression,left:ast.body[0].expression,right:{type:AST.NGValueParameter},operator:"="}}}function isLiteral(ast){return ast.body.length===0||ast.body.length===1&&(ast.body[0].expression.type===AST.Literal||ast.body[0].expression.type===AST.ArrayExpression||ast.body[0].expression.type===AST.ObjectExpression)}function isConstant(ast){return ast.constant}function ASTCompiler($filter){this.$filter=$filter}ASTCompiler.prototype={compile:function compile(ast){var self=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};findConstantAndWatchExpressions(ast,self.$filter);var extra="";var assignable;this.stage="assign";if(assignable=assignableAST(ast)){this.state.computing="assign";var result=this.nextId();this.recurse(assignable,result);this.return_(result);extra="fn.assign="+this.generateFunction("assign","s,v,l")}var toWatch=getInputs(ast.body);self.stage="inputs";forEach(toWatch,function(watch,key){var fnKey="fn"+key;self.state[fnKey]={vars:[],body:[],own:{}};self.state.computing=fnKey;var intoId=self.nextId();self.recurse(watch,intoId);self.return_(intoId);self.state.inputs.push({name:fnKey,isPure:watch.isPure});watch.watchId=key});this.state.computing="fn";this.stage="main";this.recurse(ast);var fnString='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+extra+this.watchFns()+"return fn;";var fn=new Function("$filter","getStringValue","ifDefined","plus",fnString)(this.$filter,getStringValue,ifDefined,plusFn);this.state=this.stage=undefined;return fn},USE:"use",STRICT:"strict",watchFns:function watchFns(){var result=[];var inputs=this.state.inputs;var self=this;forEach(inputs,function(input){result.push("var "+input.name+"="+self.generateFunction(input.name,"s"));if(input.isPure){result.push(input.name,".isPure="+JSON.stringify(input.isPure)+";")}});if(inputs.length){result.push("fn.inputs=["+inputs.map(function(i){return i.name}).join(",")+"];")}return result.join("")},generateFunction:function generateFunction(name,params){return"function("+params+"){"+this.varsPrefix(name)+this.body(name)+"};"},filterPrefix:function filterPrefix(){var parts=[];var self=this;forEach(this.state.filters,function(id,filter){parts.push(id+"=$filter("+self.escape(filter)+")")});if(parts.length)return"var "+parts.join(",")+";";return""},varsPrefix:function varsPrefix(section){return this.state[section].vars.length?"var "+this.state[section].vars.join(",")+";":""},body:function body(section){return this.state[section].body.join("")},recurse:function recurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck){var left,right,self=this,args,expression,computed;recursionFn=recursionFn||noop;if(!skipWatchIdCheck&&isDefined(ast.watchId)){intoId=intoId||this.nextId();this.if_("i",this.lazyAssign(intoId,this.computedMember("i",ast.watchId)),this.lazyRecurse(ast,intoId,nameId,recursionFn,create,true));return}switch(ast.type){case AST.Program:forEach(ast.body,function(expression,pos){self.recurse(expression.expression,undefined,undefined,function(expr){right=expr});if(pos!==ast.body.length-1){self.current().body.push(right,";")}else{self.return_(right)}});break;case AST.Literal:expression=this.escape(ast.value);this.assign(intoId,expression);recursionFn(intoId||expression);break;case AST.UnaryExpression:this.recurse(ast.argument,undefined,undefined,function(expr){right=expr});expression=ast.operator+"("+this.ifDefined(right,0)+")";this.assign(intoId,expression);recursionFn(expression);break;case AST.BinaryExpression:this.recurse(ast.left,undefined,undefined,function(expr){left=expr});this.recurse(ast.right,undefined,undefined,function(expr){right=expr});if(ast.operator==="+"){expression=this.plus(left,right)}else if(ast.operator==="-"){expression=this.ifDefined(left,0)+ast.operator+this.ifDefined(right,0)}else{expression="("+left+")"+ast.operator+"("+right+")"}this.assign(intoId,expression);recursionFn(expression);break;case AST.LogicalExpression:intoId=intoId||this.nextId();self.recurse(ast.left,intoId);self.if_(ast.operator==="&&"?intoId:self.not(intoId),self.lazyRecurse(ast.right,intoId));recursionFn(intoId);break;case AST.ConditionalExpression:intoId=intoId||this.nextId();self.recurse(ast.test,intoId);self.if_(intoId,self.lazyRecurse(ast.alternate,intoId),self.lazyRecurse(ast.consequent,intoId));recursionFn(intoId);break;case AST.Identifier:intoId=intoId||this.nextId();if(nameId){nameId.context=self.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",ast.name)+"?l:s");nameId.computed=false;nameId.name=ast.name}self.if_(self.stage==="inputs"||self.not(self.getHasOwnProperty("l",ast.name)),function(){self.if_(self.stage==="inputs"||"s",function(){if(create&&create!==1){self.if_(self.isNull(self.nonComputedMember("s",ast.name)),self.lazyAssign(self.nonComputedMember("s",ast.name),"{}"))}self.assign(intoId,self.nonComputedMember("s",ast.name))})},intoId&&self.lazyAssign(intoId,self.nonComputedMember("l",ast.name)));recursionFn(intoId);break;case AST.MemberExpression:left=nameId&&(nameId.context=this.nextId())||this.nextId();intoId=intoId||this.nextId();self.recurse(ast.object,left,undefined,function(){self.if_(self.notNull(left),function(){if(ast.computed){right=self.nextId();self.recurse(ast.property,right);self.getStringValue(right);if(create&&create!==1){self.if_(self.not(self.computedMember(left,right)),self.lazyAssign(self.computedMember(left,right),"{}"))}expression=self.computedMember(left,right);self.assign(intoId,expression);if(nameId){nameId.computed=true;nameId.name=right}}else{if(create&&create!==1){self.if_(self.isNull(self.nonComputedMember(left,ast.property.name)),self.lazyAssign(self.nonComputedMember(left,ast.property.name),"{}"))}expression=self.nonComputedMember(left,ast.property.name);self.assign(intoId,expression);if(nameId){nameId.computed=false;nameId.name=ast.property.name}}},function(){self.assign(intoId,"undefined")});recursionFn(intoId)},!!create);break;case AST.CallExpression:intoId=intoId||this.nextId();if(ast.filter){right=self.filter(ast.callee.name);args=[];forEach(ast.arguments,function(expr){var argument=self.nextId();self.recurse(expr,argument);args.push(argument)});expression=right+"("+args.join(",")+")";self.assign(intoId,expression);recursionFn(intoId)}else{right=self.nextId();left={};args=[];self.recurse(ast.callee,right,left,function(){self.if_(self.notNull(right),function(){forEach(ast.arguments,function(expr){self.recurse(expr,ast.constant?undefined:self.nextId(),undefined,function(argument){args.push(argument)})});if(left.name){expression=self.member(left.context,left.name,left.computed)+"("+args.join(",")+")"}else{expression=right+"("+args.join(",")+")"}self.assign(intoId,expression)},function(){self.assign(intoId,"undefined")});recursionFn(intoId)})}break;case AST.AssignmentExpression:right=this.nextId();left={};this.recurse(ast.left,undefined,left,function(){self.if_(self.notNull(left.context),function(){self.recurse(ast.right,right);expression=self.member(left.context,left.name,left.computed)+ast.operator+right;self.assign(intoId,expression);recursionFn(intoId||expression)})},1);break;case AST.ArrayExpression:args=[];forEach(ast.elements,function(expr){self.recurse(expr,ast.constant?undefined:self.nextId(),undefined,function(argument){args.push(argument)})});expression="["+args.join(",")+"]";this.assign(intoId,expression);recursionFn(intoId||expression);break;case AST.ObjectExpression:args=[];computed=false;forEach(ast.properties,function(property){if(property.computed){computed=true}});if(computed){intoId=intoId||this.nextId();this.assign(intoId,"{}");forEach(ast.properties,function(property){if(property.computed){left=self.nextId();self.recurse(property.key,left)}else{left=property.key.type===AST.Identifier?property.key.name:""+property.key.value}right=self.nextId();self.recurse(property.value,right);self.assign(self.member(intoId,left,property.computed),right)})}else{forEach(ast.properties,function(property){self.recurse(property.value,ast.constant?undefined:self.nextId(),undefined,function(expr){args.push(self.escape(property.key.type===AST.Identifier?property.key.name:""+property.key.value)+":"+expr)})});expression="{"+args.join(",")+"}";this.assign(intoId,expression)}recursionFn(intoId||expression);break;case AST.ThisExpression:this.assign(intoId,"s");recursionFn(intoId||"s");break;case AST.LocalsExpression:this.assign(intoId,"l");recursionFn(intoId||"l");break;case AST.NGValueParameter:this.assign(intoId,"v");recursionFn(intoId||"v");break}},getHasOwnProperty:function getHasOwnProperty(element,property){var key=element+"."+property;var own=this.current().own;if(!own.hasOwnProperty(key)){own[key]=this.nextId(false,element+"&&("+this.escape(property)+" in "+element+")")}return own[key]},assign:function assign(id,value){if(!id)return;this.current().body.push(id,"=",value,";");return id},filter:function filter(filterName){if(!this.state.filters.hasOwnProperty(filterName)){this.state.filters[filterName]=this.nextId(true)}return this.state.filters[filterName]},ifDefined:function ifDefined(id,defaultValue){return"ifDefined("+id+","+this.escape(defaultValue)+")"},plus:function plus(left,right){return"plus("+left+","+right+")"},return_:function return_(id){this.current().body.push("return ",id,";")},if_:function if_(test,alternate,consequent){if(test===true){alternate()}else{var body=this.current().body;body.push("if(",test,"){");alternate();body.push("}");if(consequent){body.push("else{");consequent();body.push("}")}}},not:function not(expression){return"!("+expression+")"},isNull:function isNull(expression){return expression+"==null"},notNull:function notNull(expression){return expression+"!=null"},nonComputedMember:function nonComputedMember(left,right){var SAFE_IDENTIFIER=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/;var UNSAFE_CHARACTERS=/[^$_a-zA-Z0-9]/g;if(SAFE_IDENTIFIER.test(right)){return left+"."+right}else{return left+'["'+right.replace(UNSAFE_CHARACTERS,this.stringEscapeFn)+'"]'}},computedMember:function computedMember(left,right){return left+"["+right+"]"},member:function member(left,right,computed){if(computed)return this.computedMember(left,right);return this.nonComputedMember(left,right)},getStringValue:function getStringValue(item){this.assign(item,"getStringValue("+item+")")},lazyRecurse:function lazyRecurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck){var self=this;return function(){self.recurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck)}},lazyAssign:function lazyAssign(id,value){var self=this;return function(){self.assign(id,value)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function stringEscapeFn(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)},escape:function escape(value){if(isString(value))return"'"+value.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(isNumber(value))return value.toString();if(value===true)return"true";if(value===false)return"false";if(value===null)return"null";if(typeof value==="undefined")return"undefined";throw $parseMinErr("esc","IMPOSSIBLE")},nextId:function nextId(skip,init){var id="v"+this.state.nextId++;if(!skip){this.current().vars.push(id+(init?"="+init:""))}return id},current:function current(){return this.state[this.state.computing]}};function ASTInterpreter($filter){this.$filter=$filter}ASTInterpreter.prototype={compile:function compile(ast){var self=this;findConstantAndWatchExpressions(ast,self.$filter);var assignable;var assign;if(assignable=assignableAST(ast)){assign=this.recurse(assignable)}var toWatch=getInputs(ast.body);var inputs;if(toWatch){inputs=[];forEach(toWatch,function(watch,key){var input=self.recurse(watch);input.isPure=watch.isPure;watch.input=input;inputs.push(input);watch.watchId=key})}var expressions=[];forEach(ast.body,function(expression){expressions.push(self.recurse(expression.expression))});var fn=ast.body.length===0?noop:ast.body.length===1?expressions[0]:function(scope,locals){var lastValue;forEach(expressions,function(exp){lastValue=exp(scope,locals)});return lastValue};if(assign){fn.assign=function(scope,value,locals){return assign(scope,locals,value)}}if(inputs){fn.inputs=inputs}return fn},recurse:function recurse(ast,context,create){var left,right,self=this,args;if(ast.input){return this.inputs(ast.input,ast.watchId)}switch(ast.type){case AST.Literal:return this.value(ast.value,context);case AST.UnaryExpression:right=this.recurse(ast.argument);return this["unary"+ast.operator](right,context);case AST.BinaryExpression:left=this.recurse(ast.left);right=this.recurse(ast.right);return this["binary"+ast.operator](left,right,context);case AST.LogicalExpression:left=this.recurse(ast.left);right=this.recurse(ast.right);return this["binary"+ast.operator](left,right,context);case AST.ConditionalExpression:return this["ternary?:"](this.recurse(ast.test),this.recurse(ast.alternate),this.recurse(ast.consequent),context);case AST.Identifier:return self.identifier(ast.name,context,create);case AST.MemberExpression:left=this.recurse(ast.object,false,!!create);if(!ast.computed){right=ast.property.name}if(ast.computed)right=this.recurse(ast.property);return ast.computed?this.computedMember(left,right,context,create):this.nonComputedMember(left,right,context,create);case AST.CallExpression:args=[];forEach(ast.arguments,function(expr){args.push(self.recurse(expr))});if(ast.filter)right=this.$filter(ast.callee.name);if(!ast.filter)right=this.recurse(ast.callee,true);return ast.filter?function(scope,locals,assign,inputs){var values=[];for(var i=0;i":function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)>right(scope,locals,assign,inputs);return context?{value:arg}:arg}},"binary<=":function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)<=right(scope,locals,assign,inputs);return context?{value:arg}:arg}},"binary>=":function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)>=right(scope,locals,assign,inputs);return context?{value:arg}:arg}},"binary&&":function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)&&right(scope,locals,assign,inputs);return context?{value:arg}:arg}},"binary||":function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)||right(scope,locals,assign,inputs);return context?{value:arg}:arg}},"ternary?:":function ternary(test,alternate,consequent,context){return function(scope,locals,assign,inputs){var arg=test(scope,locals,assign,inputs)?alternate(scope,locals,assign,inputs):consequent(scope,locals,assign,inputs);return context?{value:arg}:arg}},value:function value(_value2,context){return function(){return context?{context:undefined,name:undefined,value:_value2}:_value2}},identifier:function identifier(name,context,create){return function(scope,locals,assign,inputs){var base=locals&&name in locals?locals:scope;if(create&&create!==1&&base&&base[name]==null){base[name]={}}var value=base?base[name]:undefined;if(context){return{context:base,name:name,value:value}}else{return value}}},computedMember:function computedMember(left,right,context,create){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);var rhs;var value;if(lhs!=null){rhs=right(scope,locals,assign,inputs);rhs=getStringValue(rhs);if(create&&create!==1){if(lhs&&!lhs[rhs]){lhs[rhs]={}}}value=lhs[rhs]}if(context){return{context:lhs,name:rhs,value:value}}else{return value}}},nonComputedMember:function nonComputedMember(left,right,context,create){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);if(create&&create!==1){if(lhs&&lhs[right]==null){lhs[right]={}}}var value=lhs!=null?lhs[right]:undefined;if(context){return{context:lhs,name:right,value:value}}else{return value}}},inputs:function inputs(input,watchId){return function(scope,value,locals,inputs){if(inputs)return inputs[watchId];return input(scope,value,locals)}}};function Parser(lexer,$filter,options){this.ast=new AST(lexer,options);this.astCompiler=options.csp?new ASTInterpreter($filter):new ASTCompiler($filter)}Parser.prototype={constructor:Parser,parse:function parse(text){var ast=this.getAst(text);var fn=this.astCompiler.compile(ast.ast);fn.literal=isLiteral(ast.ast);fn.constant=isConstant(ast.ast);fn.oneTime=ast.oneTime;return fn},getAst:function getAst(exp){var oneTime=false;exp=exp.trim();if(exp.charAt(0)===":"&&exp.charAt(1)===":"){oneTime=true;exp=exp.substring(2)}return{ast:this.ast.ast(exp),oneTime:oneTime}}};function getValueOf(value){return isFunction(value.valueOf)?value.valueOf():objectValueOf.call(value)}function $ParseProvider(){var cache=createMap();var literals={true:true,false:false,null:null,undefined:undefined};var identStart,identContinue;this.addLiteral=function(literalName,literalValue){literals[literalName]=literalValue};this.setIdentifierFns=function(identifierStart,identifierContinue){identStart=identifierStart;identContinue=identifierContinue;return this};this.$get=["$filter",function($filter){var noUnsafeEval=csp().noUnsafeEval;var $parseOptions={csp:noUnsafeEval,literals:copy(literals),isIdentifierStart:isFunction(identStart)&&identStart,isIdentifierContinue:isFunction(identContinue)&&identContinue};$parse.$$getAst=$$getAst;return $parse;function $parse(exp,interceptorFn){var parsedExpression,cacheKey;switch(_typeof(exp)){case"string":exp=exp.trim();cacheKey=exp;parsedExpression=cache[cacheKey];if(!parsedExpression){var lexer=new Lexer($parseOptions);var parser=new Parser(lexer,$filter,$parseOptions);parsedExpression=parser.parse(exp);cache[cacheKey]=addWatchDelegate(parsedExpression)}return addInterceptor(parsedExpression,interceptorFn);case"function":return addInterceptor(exp,interceptorFn);default:return addInterceptor(noop,interceptorFn)}}function $$getAst(exp){var lexer=new Lexer($parseOptions);var parser=new Parser(lexer,$filter,$parseOptions);return parser.getAst(exp).ast}function expressionInputDirtyCheck(newValue,oldValueOfValue,compareObjectIdentity){if(newValue==null||oldValueOfValue==null){return newValue===oldValueOfValue}if(_typeof(newValue)==="object"){newValue=getValueOf(newValue);if(_typeof(newValue)==="object"&&!compareObjectIdentity){return false}}return newValue===oldValueOfValue||newValue!==newValue&&oldValueOfValue!==oldValueOfValue}function inputsWatchDelegate(scope,listener,objectEquality,parsedExpression,prettyPrintExpression){var inputExpressions=parsedExpression.inputs;var lastResult;if(inputExpressions.length===1){var oldInputValueOf=expressionInputDirtyCheck;inputExpressions=inputExpressions[0];return scope.$watch(function expressionInputWatch(scope){var newInputValue=inputExpressions(scope);if(!expressionInputDirtyCheck(newInputValue,oldInputValueOf,inputExpressions.isPure)){lastResult=parsedExpression(scope,undefined,undefined,[newInputValue]);oldInputValueOf=newInputValue&&getValueOf(newInputValue)}return lastResult},listener,objectEquality,prettyPrintExpression)}var oldInputValueOfValues=[];var oldInputValues=[];for(var i=0,ii=inputExpressions.length;i0)scheduleProcessQueue(this.$$state);return result},catch:function _catch(callback){return this.then(null,callback)},finally:function _finally(callback,progressBack){return this.then(function(value){return handleCallback(value,resolve,callback)},function(error){return handleCallback(error,reject,callback)},progressBack)}});function processQueue(state){var fn,promise,pending;pending=state.pending;state.processScheduled=false;state.pending=undefined;try{for(var i=0,ii=pending.length;i=0){incrementWatchersCount(scope,-1);if(index1;var changeDetected=0;var changeDetector=$parse(obj,$watchCollectionInterceptor);var internalArray=[];var internalObject={};var initRun=true;var oldLength=0;function $watchCollectionInterceptor(_value){newValue=_value;var newLength,key,bothNaN,newItem,oldItem;if(isUndefined(newValue))return;if(!isObject(newValue)){if(oldValue!==newValue){oldValue=newValue;changeDetected++}}else if(isArrayLike(newValue)){if(oldValue!==internalArray){oldValue=internalArray;oldLength=oldValue.length=0;changeDetected++}newLength=newValue.length;if(oldLength!==newLength){changeDetected++;oldValue.length=oldLength=newLength}for(var i=0;inewLength){changeDetected++;for(key in oldValue){if(!hasOwnProperty.call(newValue,key)){oldLength--;delete oldValue[key]}}}}return changeDetected}function $watchCollectionAction(){if(initRun){initRun=false;listener(newValue,newValue,self)}else{listener(newValue,veryOldValue,self)}if(trackVeryOldValue){if(!isObject(newValue)){veryOldValue=newValue}else if(isArrayLike(newValue)){veryOldValue=new Array(newValue.length);for(var i=0;i-1){throw $sceMinErr("iwcard","Illegal sequence *** in string matcher. String: {0}",matcher)}matcher=escapeForRegexp(matcher).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*");return new RegExp("^"+matcher+"$")}else if(isRegExp(matcher)){return new RegExp("^"+matcher.source+"$")}else{throw $sceMinErr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}}function adjustMatchers(matchers){var adjustedMatchers=[];if(isDefined(matchers)){forEach(matchers,function(matcher){adjustedMatchers.push(adjustMatcher(matcher))})}return adjustedMatchers}function $SceDelegateProvider(){this.SCE_CONTEXTS=SCE_CONTEXTS;var trustedResourceUrlList=["self"],bannedResourceUrlList=[];this.trustedResourceUrlList=function(value){if(arguments.length){trustedResourceUrlList=adjustMatchers(value)}return trustedResourceUrlList};Object.defineProperty(this,"resourceUrlWhitelist",{get:function get(){return this.trustedResourceUrlList},set:function set(value){this.trustedResourceUrlList=value}});this.bannedResourceUrlList=function(value){if(arguments.length){bannedResourceUrlList=adjustMatchers(value)}return bannedResourceUrlList};Object.defineProperty(this,"resourceUrlBlacklist",{get:function get(){return this.bannedResourceUrlList},set:function set(value){this.bannedResourceUrlList=value}});this.$get=["$injector","$$sanitizeUri",function($injector,$$sanitizeUri){var htmlSanitizer=function htmlSanitizer(html){throw $sceMinErr("unsafe","Attempting to use an unsafe value in a safe context.")};if($injector.has("$sanitize")){htmlSanitizer=$injector.get("$sanitize")}function matchUrl(matcher,parsedUrl){if(matcher==="self"){return urlIsSameOrigin(parsedUrl)||urlIsSameOriginAsBaseUrl(parsedUrl)}else{return!!matcher.exec(parsedUrl.href)}}function isResourceUrlAllowedByPolicy(url){var parsedUrl=urlResolve(url.toString());var i,n,allowed=false;for(i=0,n=trustedResourceUrlList.length;i to the top of your HTML "+"document. See http://docs.angularjs.org/api/ng.$sce for more information.")}var sce=shallowCopy(SCE_CONTEXTS);sce.isEnabled=function(){return enabled};sce.trustAs=$sceDelegate.trustAs;sce.getTrusted=$sceDelegate.getTrusted;sce.valueOf=$sceDelegate.valueOf;if(!enabled){sce.trustAs=sce.getTrusted=function(type,value){return value};sce.valueOf=identity}sce.parseAs=function sceParseAs(type,expr){var parsed=$parse(expr);if(parsed.literal&&parsed.constant){return parsed}else{return $parse(expr,function(value){return sce.getTrusted(type,value)})}};var parse=sce.parseAs,getTrusted=sce.getTrusted,trustAs=sce.trustAs;forEach(SCE_CONTEXTS,function(enumValue,name){var lName=lowercase(name);sce[snakeToCamel("parse_as_"+lName)]=function(expr){return parse(enumValue,expr)};sce[snakeToCamel("get_trusted_"+lName)]=function(value){return getTrusted(enumValue,value)};sce[snakeToCamel("trust_as_"+lName)]=function(value){return trustAs(enumValue,value)}});return sce}]}function $SnifferProvider(){this.$get=["$window","$document",function($window,$document){var eventSupport={},isNw=$window.nw&&$window.nw.process,isChromePackagedApp=!isNw&&$window.chrome&&($window.chrome.app&&$window.chrome.app.runtime||!$window.chrome.app&&$window.chrome.runtime&&$window.chrome.runtime.id),hasHistoryPushState=!isChromePackagedApp&&$window.history&&$window.history.pushState,android=toInt((/android (\d+)/.exec(lowercase(($window.navigator||{}).userAgent))||[])[1]),boxee=/Boxee/i.test(($window.navigator||{}).userAgent),document=$document[0]||{},bodyStyle=document.body&&document.body.style,transitions=false,animations=false;if(bodyStyle){transitions=!!("transition"in bodyStyle||"webkitTransition"in bodyStyle);animations=!!("animation"in bodyStyle||"webkitAnimation"in bodyStyle)}return{history:!!(hasHistoryPushState&&!(android<4)&&!boxee),hasEvent:function hasEvent(event){if(event==="input"&&msie)return false;if(isUndefined(eventSupport[event])){var divElm=document.createElement("div");eventSupport[event]="on"+event in divElm}return eventSupport[event]},csp:csp(),transitions:transitions,animations:animations,android:android}}]}function $$TaskTrackerFactoryProvider(){this.$get=valueFn(function(log){return new TaskTracker(log)})}function TaskTracker(log){var self=this;var taskCounts={};var taskCallbacks=[];var ALL_TASKS_TYPE=self.ALL_TASKS_TYPE="$$all$$";var DEFAULT_TASK_TYPE=self.DEFAULT_TASK_TYPE="$$default$$";self.completeTask=completeTask;self.incTaskCount=incTaskCount;self.notifyWhenNoPendingTasks=notifyWhenNoPendingTasks;function completeTask(fn,taskType){taskType=taskType||DEFAULT_TASK_TYPE;try{fn()}finally{decTaskCount(taskType);var countForType=taskCounts[taskType];var countForAll=taskCounts[ALL_TASKS_TYPE];if(!countForAll||!countForType){var getNextCallback=!countForAll?getLastCallback:getLastCallbackForType;var nextCb;while(nextCb=getNextCallback(taskType)){try{nextCb()}catch(e){log.error(e)}}}}}function decTaskCount(taskType){taskType=taskType||DEFAULT_TASK_TYPE;if(taskCounts[taskType]){taskCounts[taskType]--;taskCounts[ALL_TASKS_TYPE]--}}function getLastCallback(){var cbInfo=taskCallbacks.pop();return cbInfo&&cbInfo.cb}function getLastCallbackForType(taskType){for(var i=taskCallbacks.length-1;i>=0;--i){var cbInfo=taskCallbacks[i];if(cbInfo.type===taskType){taskCallbacks.splice(i,1);return cbInfo.cb}}}function incTaskCount(taskType){taskType=taskType||DEFAULT_TASK_TYPE;taskCounts[taskType]=(taskCounts[taskType]||0)+1;taskCounts[ALL_TASKS_TYPE]=(taskCounts[ALL_TASKS_TYPE]||0)+1}function notifyWhenNoPendingTasks(callback,taskType){taskType=taskType||ALL_TASKS_TYPE;if(!taskCounts[taskType]){callback()}else{taskCallbacks.push({type:taskType,cb:callback})}}}var $templateRequestMinErr=minErr("$templateRequest");function $TemplateRequestProvider(){var httpOptions;this.httpOptions=function(val){if(val){httpOptions=val;return this}return httpOptions};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function($exceptionHandler,$templateCache,$http,$q,$sce){function handleRequestFn(tpl,ignoreRequestError){handleRequestFn.totalPendingRequests++;if(!isString(tpl)||isUndefined($templateCache.get(tpl))){tpl=$sce.getTrustedResourceUrl(tpl)}var transformResponse=$http.defaults&&$http.defaults.transformResponse;if(isArray(transformResponse)){transformResponse=transformResponse.filter(function(transformer){return transformer!==defaultHttpResponseTransform})}else if(transformResponse===defaultHttpResponseTransform){transformResponse=null}return $http.get(tpl,extend({cache:$templateCache,transformResponse:transformResponse},httpOptions))["finally"](function(){handleRequestFn.totalPendingRequests--}).then(function(response){return $templateCache.put(tpl,response.data)},handleError);function handleError(resp){if(!ignoreRequestError){resp=$templateRequestMinErr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",tpl,resp.status,resp.statusText);$exceptionHandler(resp)}return $q.reject(resp)}}handleRequestFn.totalPendingRequests=0;return handleRequestFn}]}function $$TestabilityProvider(){this.$get=["$rootScope","$browser","$location",function($rootScope,$browser,$location){var testability={};testability.findBindings=function(element,expression,opt_exactMatch){var bindings=element.getElementsByClassName("ng-binding");var matches=[];forEach(bindings,function(binding){var dataBinding=angular.element(binding).data("$binding");if(dataBinding){forEach(dataBinding,function(bindingName){if(opt_exactMatch){var matcher=new RegExp("(^|\\s)"+escapeForRegexp(expression)+"(\\s|\\||$)");if(matcher.test(bindingName)){matches.push(binding)}}else{if(bindingName.indexOf(expression)!==-1){matches.push(binding)}}})}});return matches};testability.findModels=function(element,expression,opt_exactMatch){var prefixes=["ng-","data-ng-","ng\\:"];for(var p=0;p-1){hostname="["+hostname+"]"}return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,""):"",host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,""):"",hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,""):"",hostname:hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==="/"?urlParsingNode.pathname:"/"+urlParsingNode.pathname}}function urlIsSameOrigin(requestUrl){return urlsAreSameOrigin(requestUrl,originUrl)}function urlIsSameOriginAsBaseUrl(requestUrl){return urlsAreSameOrigin(requestUrl,getBaseUrl())}function urlIsAllowedOriginFactory(trustedOriginUrls){var parsedAllowedOriginUrls=[originUrl].concat(trustedOriginUrls.map(urlResolve));return function urlIsAllowedOrigin(requestUrl){var parsedUrl=urlResolve(requestUrl);return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null,parsedUrl))}}function urlsAreSameOrigin(url1,url2){url1=urlResolve(url1);url2=urlResolve(url2);return url1.protocol===url2.protocol&&url1.host===url2.host}function getBaseUrl(){if(window.document.baseURI){return window.document.baseURI}if(!baseUrlParsingNode){baseUrlParsingNode=window.document.createElement("a");baseUrlParsingNode.href=".";baseUrlParsingNode=baseUrlParsingNode.cloneNode(false)}return baseUrlParsingNode.href}function $WindowProvider(){this.$get=valueFn(window)}function $$CookieReader($document){var rawDocument=$document[0]||{};var lastCookies={};var lastCookieString="";function safeGetCookie(rawDocument){try{return rawDocument.cookie||""}catch(e){return""}}function safeDecodeURIComponent(str){try{return decodeURIComponent(str)}catch(e){return str}}return function(){var cookieArray,cookie,i,index,name;var currentCookieString=safeGetCookie(rawDocument);if(currentCookieString!==lastCookieString){lastCookieString=currentCookieString;cookieArray=lastCookieString.split("; ");lastCookies={};for(i=0;i0){name=safeDecodeURIComponent(cookie.substring(0,index));if(isUndefined(lastCookies[name])){lastCookies[name]=safeDecodeURIComponent(cookie.substring(index+1))}}}}return lastCookies}}$$CookieReader.$inject=["$document"];function $$CookieReaderProvider(){this.$get=$$CookieReader}$FilterProvider.$inject=["$provide"];function $FilterProvider($provide){var suffix="Filter";function register(name,factory){if(isObject(name)){var filters={};forEach(name,function(filter,key){filters[key]=register(key,filter)});return filters}else{return $provide.factory(name+suffix,factory)}}this.register=register;this.$get=["$injector",function($injector){return function(name){return $injector.get(name+suffix)}}];register("currency",currencyFilter);register("date",dateFilter);register("filter",filterFilter);register("json",jsonFilter);register("limitTo",limitToFilter);register("lowercase",lowercaseFilter);register("number",numberFilter);register("orderBy",orderByFilter);register("uppercase",uppercaseFilter)}function filterFilter(){return function(array,expression,comparator,anyPropertyKey){if(!isArrayLike(array)){if(array==null){return array}else{throw minErr("filter")("notarray","Expected array but received: {0}",array)}}anyPropertyKey=anyPropertyKey||"$";var expressionType=getTypeForFilter(expression);var predicateFn;var matchAgainstAnyProp;switch(expressionType){case"function":predicateFn=expression;break;case"boolean":case"null":case"number":case"string":matchAgainstAnyProp=true;case"object":predicateFn=createPredicateFn(expression,comparator,anyPropertyKey,matchAgainstAnyProp);break;default:return array}return Array.prototype.filter.call(array,predicateFn)}}function createPredicateFn(expression,comparator,anyPropertyKey,matchAgainstAnyProp){var shouldMatchPrimitives=isObject(expression)&&anyPropertyKey in expression;var predicateFn;if(comparator===true){comparator=equals}else if(!isFunction(comparator)){comparator=function comparator(actual,expected){if(isUndefined(actual)){return false}if(actual===null||expected===null){return actual===expected}if(isObject(expected)||isObject(actual)&&!hasCustomToString(actual)){return false}actual=lowercase(""+actual);expected=lowercase(""+expected);return actual.indexOf(expected)!==-1}}predicateFn=function predicateFn(item){if(shouldMatchPrimitives&&!isObject(item)){return deepCompare(item,expression[anyPropertyKey],comparator,anyPropertyKey,false)}return deepCompare(item,expression,comparator,anyPropertyKey,matchAgainstAnyProp)};return predicateFn}function deepCompare(actual,expected,comparator,anyPropertyKey,matchAgainstAnyProp,dontMatchWholeObject){var actualType=getTypeForFilter(actual);var expectedType=getTypeForFilter(expected);if(expectedType==="string"&&expected.charAt(0)==="!"){return!deepCompare(actual,expected.substring(1),comparator,anyPropertyKey,matchAgainstAnyProp)}else if(isArray(actual)){return actual.some(function(item){return deepCompare(item,expected,comparator,anyPropertyKey,matchAgainstAnyProp)})}switch(actualType){case"object":var key;if(matchAgainstAnyProp){for(key in actual){if(key.charAt&&key.charAt(0)!=="$"&&deepCompare(actual[key],expected,comparator,anyPropertyKey,true)){return true}}return dontMatchWholeObject?false:deepCompare(actual,expected,comparator,anyPropertyKey,false)}else if(expectedType==="object"){for(key in expected){var expectedVal=expected[key];if(isFunction(expectedVal)||isUndefined(expectedVal)){continue}var matchAnyProperty=key===anyPropertyKey;var actualVal=matchAnyProperty?actual:actual[key];if(!deepCompare(actualVal,expectedVal,comparator,anyPropertyKey,matchAnyProperty,matchAnyProperty)){return false}}return true}else{return comparator(actual,expected)}case"function":return false;default:return comparator(actual,expected)}}function getTypeForFilter(val){return val===null?"null":_typeof(val)}var MAX_DIGITS=22;var DECIMAL_SEP=".";var ZERO_CHAR="0";currencyFilter.$inject=["$locale"];function currencyFilter($locale){var formats=$locale.NUMBER_FORMATS;return function(amount,currencySymbol,fractionSize){if(isUndefined(currencySymbol)){currencySymbol=formats.CURRENCY_SYM}if(isUndefined(fractionSize)){fractionSize=formats.PATTERNS[1].maxFrac}var currencySymbolRe=!currencySymbol?/\s*\u00A4\s*/g:/\u00A4/g;return amount==null?amount:formatNumber(amount,formats.PATTERNS[1],formats.GROUP_SEP,formats.DECIMAL_SEP,fractionSize).replace(currencySymbolRe,currencySymbol)}}numberFilter.$inject=["$locale"];function numberFilter($locale){var formats=$locale.NUMBER_FORMATS;return function(number,fractionSize){return number==null?number:formatNumber(number,formats.PATTERNS[0],formats.GROUP_SEP,formats.DECIMAL_SEP,fractionSize)}}function parse(numStr){var exponent=0,digits,numberOfIntegerDigits;var i,j,zeros;if((numberOfIntegerDigits=numStr.indexOf(DECIMAL_SEP))>-1){numStr=numStr.replace(DECIMAL_SEP,"")}if((i=numStr.search(/e/i))>0){if(numberOfIntegerDigits<0)numberOfIntegerDigits=i;numberOfIntegerDigits+=+numStr.slice(i+1);numStr=numStr.substring(0,i)}else if(numberOfIntegerDigits<0){numberOfIntegerDigits=numStr.length}for(i=0;numStr.charAt(i)===ZERO_CHAR;i++){}if(i===(zeros=numStr.length)){digits=[0];numberOfIntegerDigits=1}else{zeros--;while(numStr.charAt(zeros)===ZERO_CHAR)zeros--;numberOfIntegerDigits-=i;digits=[];for(j=0;i<=zeros;i++,j++){digits[j]=+numStr.charAt(i)}}if(numberOfIntegerDigits>MAX_DIGITS){digits=digits.splice(0,MAX_DIGITS-1);exponent=numberOfIntegerDigits-1;numberOfIntegerDigits=1}return{d:digits,e:exponent,i:numberOfIntegerDigits}}function roundNumber(parsedNumber,fractionSize,minFrac,maxFrac){var digits=parsedNumber.d;var fractionLen=digits.length-parsedNumber.i;fractionSize=isUndefined(fractionSize)?Math.min(Math.max(minFrac,fractionLen),maxFrac):+fractionSize;var roundAt=fractionSize+parsedNumber.i;var digit=digits[roundAt];if(roundAt>0){digits.splice(Math.max(parsedNumber.i,roundAt));for(var j=roundAt;j=5){if(roundAt-1<0){for(var k=0;k>roundAt;k--){digits.unshift(0);parsedNumber.i++}digits.unshift(1);parsedNumber.i++}else{digits[roundAt-1]++}}for(;fractionLen0){decimals=digits.splice(integerLen,digits.length)}else{decimals=digits;digits=[0]}var groups=[];if(digits.length>=pattern.lgSize){groups.unshift(digits.splice(-pattern.lgSize,digits.length).join(""))}while(digits.length>pattern.gSize){groups.unshift(digits.splice(-pattern.gSize,digits.length).join(""))}if(digits.length){groups.unshift(digits.join(""))}formattedText=groups.join(groupSep);if(decimals.length){formattedText+=decimalSep+decimals.join("")}if(exponent){formattedText+="e+"+exponent}}if(number<0&&!isZero){return pattern.negPre+formattedText+pattern.negSuf}else{return pattern.posPre+formattedText+pattern.posSuf}}function padNumber(num,digits,trim,negWrap){var neg="";if(num<0||negWrap&&num<=0){if(negWrap){num=-num+1}else{num=-num;neg="-"}}num=""+num;while(num.length0||value>-offset){value+=offset}if(value===0&&offset===-12)value=12;return padNumber(value,size,trim,negWrap)}}function dateStrGetter(name,shortForm,standAlone){return function(date,formats){var value=date["get"+name]();var propPrefix=(standAlone?"STANDALONE":"")+(shortForm?"SHORT":"");var get=uppercase(propPrefix+name);return formats[get][value]}}function timeZoneGetter(date,formats,offset){var zone=-1*offset;var paddedZone=zone>=0?"+":"";paddedZone+=padNumber(Math[zone>0?"floor":"ceil"](zone/60),2)+padNumber(Math.abs(zone%60),2);return paddedZone}function getFirstThursdayOfYear(year){var dayOfWeekOnFirst=new Date(year,0,1).getDay();return new Date(year,0,(dayOfWeekOnFirst<=4?5:12)-dayOfWeekOnFirst)}function getThursdayThisWeek(datetime){return new Date(datetime.getFullYear(),datetime.getMonth(),datetime.getDate()+(4-datetime.getDay()))}function weekGetter(size){return function(date){var firstThurs=getFirstThursdayOfYear(date.getFullYear()),thisThurs=getThursdayThisWeek(date);var diff=+thisThurs-+firstThurs,result=1+Math.round(diff/6048e5);return padNumber(result,size)}}function ampmGetter(date,formats){return date.getHours()<12?formats.AMPMS[0]:formats.AMPMS[1]}function eraGetter(date,formats){return date.getFullYear()<=0?formats.ERAS[0]:formats.ERAS[1]}function longEraGetter(date,formats){return date.getFullYear()<=0?formats.ERANAMES[0]:formats.ERANAMES[1]}var DATE_FORMATS={yyyy:dateGetter("FullYear",4,0,false,true),yy:dateGetter("FullYear",2,0,true,true),y:dateGetter("FullYear",1,0,false,true),MMMM:dateStrGetter("Month"),MMM:dateStrGetter("Month",true),MM:dateGetter("Month",2,1),M:dateGetter("Month",1,1),LLLL:dateStrGetter("Month",false,true),dd:dateGetter("Date",2),d:dateGetter("Date",1),HH:dateGetter("Hours",2),H:dateGetter("Hours",1),hh:dateGetter("Hours",2,-12),h:dateGetter("Hours",1,-12),mm:dateGetter("Minutes",2),m:dateGetter("Minutes",1),ss:dateGetter("Seconds",2),s:dateGetter("Seconds",1),sss:dateGetter("Milliseconds",3),EEEE:dateStrGetter("Day"),EEE:dateStrGetter("Day",true),a:ampmGetter,Z:timeZoneGetter,ww:weekGetter(2),w:weekGetter(1),G:eraGetter,GG:eraGetter,GGG:eraGetter,GGGG:longEraGetter};var DATE_FORMATS_SPLIT=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,NUMBER_STRING=/^-?\d+$/;dateFilter.$inject=["$locale"];function dateFilter($locale){var R_ISO8601_STR=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function jsonStringToDate(string){var match;if(match=string.match(R_ISO8601_STR)){var date=new Date(0),tzHour=0,tzMin=0,dateSetter=match[8]?date.setUTCFullYear:date.setFullYear,timeSetter=match[8]?date.setUTCHours:date.setHours;if(match[9]){tzHour=toInt(match[9]+match[10]);tzMin=toInt(match[9]+match[11])}dateSetter.call(date,toInt(match[1]),toInt(match[2])-1,toInt(match[3]));var h=toInt(match[4]||0)-tzHour;var m=toInt(match[5]||0)-tzMin;var s=toInt(match[6]||0);var ms=Math.round(parseFloat("0."+(match[7]||0))*1e3);timeSetter.call(date,h,m,s,ms);return date}return string}return function(date,format,timezone){var text="",parts=[],fn,match;format=format||"mediumDate";format=$locale.DATETIME_FORMATS[format]||format;if(isString(date)){date=NUMBER_STRING.test(date)?toInt(date):jsonStringToDate(date)}if(isNumber(date)){date=new Date(date)}if(!isDate(date)||!isFinite(date.getTime())){return date}while(format){match=DATE_FORMATS_SPLIT.exec(format);if(match){parts=concat(parts,match,1);format=parts.pop()}else{parts.push(format);format=null}}var dateTimezoneOffset=date.getTimezoneOffset();if(timezone){dateTimezoneOffset=timezoneToOffset(timezone,dateTimezoneOffset);date=convertTimezoneToLocal(date,timezone,true)}forEach(parts,function(value){fn=DATE_FORMATS[value];text+=fn?fn(date,$locale.DATETIME_FORMATS,dateTimezoneOffset):value==="''"?"'":value.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return text}}function jsonFilter(){return function(object,spacing){if(isUndefined(spacing)){spacing=2}return toJson(object,spacing)}}var lowercaseFilter=valueFn(lowercase);var uppercaseFilter=valueFn(uppercase);function limitToFilter(){return function(input,limit,begin){if(Math.abs(Number(limit))===Infinity){limit=Number(limit)}else{limit=toInt(limit)}if(isNumberNaN(limit))return input;if(isNumber(input))input=input.toString();if(!isArrayLike(input))return input;begin=!begin||isNaN(begin)?0:toInt(begin);begin=begin<0?Math.max(0,input.length+begin):begin;if(limit>=0){return sliceFn(input,begin,begin+limit)}else{if(begin===0){return sliceFn(input,limit,input.length)}else{return sliceFn(input,Math.max(0,begin+limit),begin)}}}}function sliceFn(input,begin,end){if(isString(input))return input.slice(begin,end);return slice.call(input,begin,end)}orderByFilter.$inject=["$parse"];function orderByFilter($parse){return function(array,sortPredicate,reverseOrder,compareFn){if(array==null)return array;if(!isArrayLike(array)){throw minErr("orderBy")("notarray","Expected array but received: {0}",array)}if(!isArray(sortPredicate)){sortPredicate=[sortPredicate]}if(sortPredicate.length===0){sortPredicate=["+"]}var predicates=processPredicates(sortPredicate);var descending=reverseOrder?-1:1;var compare=isFunction(compareFn)?compareFn:defaultCompare;var compareValues=Array.prototype.map.call(array,getComparisonObject);compareValues.sort(doComparison);array=compareValues.map(function(item){return item.value});return array;function getComparisonObject(value,index){return{value:value,tieBreaker:{value:index,type:"number",index:index},predicateValues:predicates.map(function(predicate){return getPredicateValue(predicate.get(value),index)})}}function doComparison(v1,v2){for(var i=0,ii=predicates.length;i=parsedMinVal};attr.$observe("min",function(val){if(val!==minVal){parsedMinVal=parseObservedDateValue(val);minVal=val;ctrl.$validate()}})}if(isDefined(attr.max)||attr.ngMax){var maxVal=attr.max||$parse(attr.ngMax)(scope);var parsedMaxVal=parseObservedDateValue(maxVal);ctrl.$validators.max=function(value){return!isValidDate(value)||isUndefined(parsedMaxVal)||parseDate(value)<=parsedMaxVal};attr.$observe("max",function(val){if(val!==maxVal){parsedMaxVal=parseObservedDateValue(val);maxVal=val;ctrl.$validate()}})}function isValidDate(value){return value&&!(value.getTime&&value.getTime()!==value.getTime())}function parseObservedDateValue(val){return isDefined(val)&&!isDate(val)?parseDateAndConvertTimeZoneToLocal(val)||undefined:val}function parseDateAndConvertTimeZoneToLocal(value,previousDate){var timezone=ctrl.$options.getOption("timezone");if(previousTimezone&&previousTimezone!==timezone){previousDate=addDateMinutes(previousDate,timezoneToOffset(previousTimezone))}var parsedDate=parseDate(value,previousDate);if(!isNaN(parsedDate)&&timezone){parsedDate=convertTimezoneToLocal(parsedDate,timezone)}return parsedDate}function formatter(value,timezone){var targetFormat=format;if(isTimeType&&isString(ctrl.$options.getOption("timeSecondsFormat"))){targetFormat=format.replace("ss.sss",ctrl.$options.getOption("timeSecondsFormat")).replace(/:$/,"")}var formatted=$filter("date")(value,targetFormat,timezone);if(isTimeType&&ctrl.$options.getOption("timeStripZeroSeconds")){formatted=formatted.replace(/(?::00)?(?:\.000)?$/,"")}return formatted}}}function badInputChecker(scope,element,attr,ctrl,parserName){var node=element[0];var nativeValidation=ctrl.$$hasNativeValidators=isObject(node.validity);if(nativeValidation){ctrl.$parsers.push(function(value){var validity=element.prop(VALIDITY_STATE_PROPERTY)||{};if(validity.badInput||validity.typeMismatch){ctrl.$$parserName=parserName;return undefined}return value})}}function numberFormatterParser(ctrl){ctrl.$parsers.push(function(value){if(ctrl.$isEmpty(value))return null;if(NUMBER_REGEXP.test(value))return parseFloat(value);ctrl.$$parserName="number";return undefined});ctrl.$formatters.push(function(value){if(!ctrl.$isEmpty(value)){if(!isNumber(value)){throw ngModelMinErr("numfmt","Expected `{0}` to be a number",value)}value=value.toString()}return value})}function parseNumberAttrVal(val){if(isDefined(val)&&!isNumber(val)){val=parseFloat(val)}return!isNumberNaN(val)?val:undefined}function isNumberInteger(num){return(num|0)===num}function countDecimals(num){var numString=num.toString();var decimalSymbolIndex=numString.indexOf(".");if(decimalSymbolIndex===-1){if(-1=parsedMinVal};attr.$observe("min",function(val){if(val!==minVal){parsedMinVal=parseNumberAttrVal(val);minVal=val;ctrl.$validate()}})}if(isDefined(attr.max)||attr.ngMax){var maxVal=attr.max||$parse(attr.ngMax)(scope);var parsedMaxVal=parseNumberAttrVal(maxVal);ctrl.$validators.max=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(parsedMaxVal)||viewValue<=parsedMaxVal};attr.$observe("max",function(val){if(val!==maxVal){parsedMaxVal=parseNumberAttrVal(val);maxVal=val;ctrl.$validate()}})}if(isDefined(attr.step)||attr.ngStep){var stepVal=attr.step||$parse(attr.ngStep)(scope);var parsedStepVal=parseNumberAttrVal(stepVal);ctrl.$validators.step=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(parsedStepVal)||isValidForStep(viewValue,parsedMinVal||0,parsedStepVal)};attr.$observe("step",function(val){if(val!==stepVal){parsedStepVal=parseNumberAttrVal(val);stepVal=val;ctrl.$validate()}})}}function rangeInputType(scope,element,attr,ctrl,$sniffer,$browser){badInputChecker(scope,element,attr,ctrl,"range");numberFormatterParser(ctrl);baseInputType(scope,element,attr,ctrl,$sniffer,$browser);var supportsRange=ctrl.$$hasNativeValidators&&element[0].type==="range",minVal=supportsRange?0:undefined,maxVal=supportsRange?100:undefined,stepVal=supportsRange?1:undefined,validity=element[0].validity,hasMinAttr=isDefined(attr.min),hasMaxAttr=isDefined(attr.max),hasStepAttr=isDefined(attr.step);var originalRender=ctrl.$render;ctrl.$render=supportsRange&&isDefined(validity.rangeUnderflow)&&isDefined(validity.rangeOverflow)?function rangeRender(){originalRender();ctrl.$setViewValue(element.val())}:originalRender;if(hasMinAttr){minVal=parseNumberAttrVal(attr.min);ctrl.$validators.min=supportsRange?function noopMinValidator(){return true}:function minValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(minVal)||viewValue>=minVal};setInitialValueAndObserver("min",minChange)}if(hasMaxAttr){maxVal=parseNumberAttrVal(attr.max);ctrl.$validators.max=supportsRange?function noopMaxValidator(){return true}:function maxValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(maxVal)||viewValue<=maxVal};setInitialValueAndObserver("max",maxChange)}if(hasStepAttr){stepVal=parseNumberAttrVal(attr.step);ctrl.$validators.step=supportsRange?function nativeStepValidator(){return!validity.stepMismatch}:function stepValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(stepVal)||isValidForStep(viewValue,minVal||0,stepVal)};setInitialValueAndObserver("step",stepChange)}function setInitialValueAndObserver(htmlAttrName,changeFn){element.attr(htmlAttrName,attr[htmlAttrName]);var oldVal=attr[htmlAttrName];attr.$observe(htmlAttrName,function wrappedObserver(val){if(val!==oldVal){oldVal=val;changeFn(val)}})}function minChange(val){minVal=parseNumberAttrVal(val);if(isNumberNaN(ctrl.$modelValue)){return}if(supportsRange){var elVal=element.val();if(minVal>elVal){elVal=minVal;element.val(elVal)}ctrl.$setViewValue(elVal)}else{ctrl.$validate()}}function maxChange(val){maxVal=parseNumberAttrVal(val);if(isNumberNaN(ctrl.$modelValue)){return}if(supportsRange){var elVal=element.val();if(maxVal0||classCounts[className]){classCounts[className]=(classCounts[className]||0)+count;if(classCounts[className]===+(count>0)){classesToUpdate.push(className)}}});return classesToUpdate.join(" ")}function ngClassIndexWatchAction(newModulo){if(newModulo===selector){addClasses(oldClassString)}else{removeClasses(oldClassString)}oldModulo=newModulo}function ngClassWatchAction(newClassString){if(oldModulo===selector){updateClasses(oldClassString,newClassString)}oldClassString=newClassString}}}}];function arrayDifference(tokens1,tokens2){if(!tokens1||!tokens1.length)return[];if(!tokens2||!tokens2.length)return tokens1;var values=[];outer:for(var i=0;i0){this.$$pendingDebounce=this.$$timeout(function(){that.$commitViewValue()},debounceDelay)}else if(this.$$rootScope.$$phase){this.$commitViewValue()}else{this.$$scope.$apply(function(){that.$commitViewValue()})}},$overrideModelOptions:function $overrideModelOptions(options){this.$options=this.$options.createChild(options);this.$$setUpdateOnEvents()},$processModelValue:function $processModelValue(){var viewValue=this.$$format();if(this.$viewValue!==viewValue){this.$$updateEmptyClasses(viewValue);this.$viewValue=this.$$lastCommittedViewValue=viewValue;this.$render();this.$$runValidators(this.$modelValue,this.$viewValue,noop)}},$$format:function $$format(){var formatters=this.$formatters,idx=formatters.length;var viewValue=this.$modelValue;while(idx--){viewValue=formatters[idx](viewValue)}return viewValue},$$setModelValue:function $$setModelValue(modelValue){this.$modelValue=this.$$rawModelValue=modelValue;this.$$parserValid=undefined;this.$processModelValue()},$$setUpdateOnEvents:function $$setUpdateOnEvents(){if(this.$$updateEvents){this.$$element.off(this.$$updateEvents,this.$$updateEventHandler)}this.$$updateEvents=this.$options.getOption("updateOn");if(this.$$updateEvents){this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}},$$updateEventHandler:function $$updateEventHandler(ev){this.$$debounceViewValueCommit(ev&&ev.type)}};function setupModelWatcher(ctrl){ctrl.$$scope.$watch(function ngModelWatch(scope){var modelValue=ctrl.$$ngModelGet(scope);if(modelValue!==ctrl.$modelValue&&(ctrl.$modelValue===ctrl.$modelValue||modelValue===modelValue)){ctrl.$$setModelValue(modelValue)}return modelValue})}addSetValidityMethod({clazz:NgModelController,set:function set(object,property){object[property]=true},unset:function unset(object,property){delete object[property]}});var ngModelDirective=["$rootScope",function($rootScope){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:NgModelController,priority:1,compile:function ngModelCompile(element){element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);return{pre:function ngModelPreLink(scope,element,attr,ctrls){var modelCtrl=ctrls[0],formCtrl=ctrls[1]||modelCtrl.$$parentForm,optionsCtrl=ctrls[2];if(optionsCtrl){modelCtrl.$options=optionsCtrl.$options}modelCtrl.$$initGetterSetters();formCtrl.$addControl(modelCtrl);attr.$observe("name",function(newValue){if(modelCtrl.$name!==newValue){modelCtrl.$$parentForm.$$renameControl(modelCtrl,newValue)}});scope.$on("$destroy",function(){modelCtrl.$$parentForm.$removeControl(modelCtrl)})},post:function ngModelPostLink(scope,element,attr,ctrls){var modelCtrl=ctrls[0];modelCtrl.$$setUpdateOnEvents();function setTouched(){modelCtrl.$setTouched()}element.on("blur",function(){if(modelCtrl.$touched)return;if($rootScope.$$phase){scope.$evalAsync(setTouched)}else{scope.$apply(setTouched)}})}}}}}];var defaultModelOptions;var DEFAULT_REGEXP=/(\s+|^)default(\s+|$)/;function ModelOptions(options){this.$$options=options}ModelOptions.prototype={getOption:function getOption(name){return this.$$options[name]},createChild:function createChild(options){var inheritAll=false;options=extend({},options);forEach(options,function(option,key){if(option==="$inherit"){if(key==="*"){inheritAll=true}else{options[key]=this.$$options[key];if(key==="updateOn"){options.updateOnDefault=this.$$options.updateOnDefault}}}else{if(key==="updateOn"){options.updateOnDefault=false;options[key]=trim(option.replace(DEFAULT_REGEXP,function(){options.updateOnDefault=true;return" "}))}}},this);if(inheritAll){delete options["*"];defaults(options,this.$$options)}defaults(options,defaultModelOptions.$$options);return new ModelOptions(options)}};defaultModelOptions=new ModelOptions({updateOn:"",updateOnDefault:true,debounce:0,getterSetter:false,allowInvalid:false,timezone:null});var ngModelOptionsDirective=function ngModelOptionsDirective(){NgModelOptionsController.$inject=["$attrs","$scope"];function NgModelOptionsController($attrs,$scope){this.$$attrs=$attrs;this.$$scope=$scope}NgModelOptionsController.prototype={$onInit:function $onInit(){var parentOptions=this.parentCtrl?this.parentCtrl.$options:defaultModelOptions;var modelOptionsDefinition=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=parentOptions.createChild(modelOptionsDefinition)}};return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:true,controller:NgModelOptionsController}};function defaults(dst,src){forEach(src,function(value,key){if(!isDefined(dst[key])){dst[key]=value}})}var ngNonBindableDirective=ngDirective({terminal:true,priority:1e3});var ngOptionsMinErr=minErr("ngOptions");var NG_OPTIONS_REGEXP=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;var ngOptionsDirective=["$compile","$document","$parse",function($compile,$document,$parse){function parseOptionsExpression(optionsExp,selectElement,scope){var match=optionsExp.match(NG_OPTIONS_REGEXP);if(!match){throw ngOptionsMinErr("iexp","Expected expression in form of "+"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'"+" but got '{0}'. Element: {1}",optionsExp,startingTag(selectElement))}var valueName=match[5]||match[7];var keyName=match[6];var selectAs=/ as /.test(match[0])&&match[1];var trackBy=match[9];var valueFn=$parse(match[2]?match[1]:valueName);var selectAsFn=selectAs&&$parse(selectAs);var viewValueFn=selectAsFn||valueFn;var trackByFn=trackBy&&$parse(trackBy);var getTrackByValueFn=trackBy?function(value,locals){return trackByFn(scope,locals)}:function getHashOfValue(value){return hashKey(value)};var getTrackByValue=function getTrackByValue(value,key){return getTrackByValueFn(value,getLocals(value,key))};var displayFn=$parse(match[2]||match[1]);var groupByFn=$parse(match[3]||"");var disableWhenFn=$parse(match[4]||"");var valuesFn=$parse(match[8]);var locals={};var getLocals=keyName?function(value,key){locals[keyName]=key;locals[valueName]=value;return locals}:function(value){locals[valueName]=value;return locals};function Option(selectValue,viewValue,label,group,disabled){this.selectValue=selectValue;this.viewValue=viewValue;this.label=label;this.group=group;this.disabled=disabled}function getOptionValuesKeys(optionValues){var optionValuesKeys;if(!keyName&&isArrayLike(optionValues)){optionValuesKeys=optionValues}else{optionValuesKeys=[];for(var itemKey in optionValues){if(optionValues.hasOwnProperty(itemKey)&&itemKey.charAt(0)!=="$"){optionValuesKeys.push(itemKey)}}}return optionValuesKeys}return{trackBy:trackBy,getTrackByValue:getTrackByValue,getWatchables:$parse(valuesFn,function(optionValues){var watchedArray=[];optionValues=optionValues||[];var optionValuesKeys=getOptionValuesKeys(optionValues);var optionValuesLength=optionValuesKeys.length;for(var index=0;index=0;i--){var option=options.items[i];if(isDefined(option.group)){jqLiteRemove(option.element.parentNode)}else{jqLiteRemove(option.element)}}}options=ngOptions.getOptions();var groupElementMap={};options.items.forEach(function addOption(option){var groupElement;if(isDefined(option.group)){groupElement=groupElementMap[option.group];if(!groupElement){groupElement=optGroupTemplate.cloneNode(false);listFragment.appendChild(groupElement);groupElement.label=option.group===null?"null":option.group;groupElementMap[option.group]=groupElement}addOptionElement(option,groupElement)}else{addOptionElement(option,listFragment)}});selectElement[0].appendChild(listFragment);ngModelCtrl.$render();if(!ngModelCtrl.$isEmpty(previousValue)){var nextValue=selectCtrl.readValue();var isNotPrimitive=ngOptions.trackBy||multiple;if(isNotPrimitive?!equals(previousValue,nextValue):previousValue!==nextValue){ngModelCtrl.$setViewValue(nextValue);ngModelCtrl.$render()}}}}return{restrict:"A",terminal:true,require:["select","ngModel"],link:{pre:function ngOptionsPreLink(scope,selectElement,attr,ctrls){ctrls[0].registerOption=noop},post:ngOptionsPostLink}}}];var ngPluralizeDirective=["$locale","$interpolate","$log",function($locale,$interpolate,$log){var BRACE=/{}/g,IS_WHEN=/^when(Minus)?(.+)$/;return{link:function link(scope,element,attr){var numberExp=attr.count,whenExp=attr.$attr.when&&element.attr(attr.$attr.when),offset=attr.offset||0,whens=scope.$eval(whenExp)||{},whensExpFns={},startSymbol=$interpolate.startSymbol(),endSymbol=$interpolate.endSymbol(),braceReplacement=startSymbol+numberExp+"-"+offset+endSymbol,watchRemover=angular.noop,lastCount;forEach(attr,function(expression,attributeName){var tmpMatch=IS_WHEN.exec(attributeName);if(tmpMatch){var whenKey=(tmpMatch[1]?"-":"")+lowercase(tmpMatch[2]);whens[whenKey]=element.attr(attr.$attr[attributeName])}});forEach(whens,function(expression,key){whensExpFns[key]=$interpolate(expression.replace(BRACE,braceReplacement))});scope.$watch(numberExp,function ngPluralizeWatchAction(newVal){var count=parseFloat(newVal);var countIsNaN=isNumberNaN(count);if(!countIsNaN&&!(count in whens)){count=$locale.pluralCat(count-offset)}if(count!==lastCount&&!(countIsNaN&&isNumberNaN(lastCount))){watchRemover();var whenExpFn=whensExpFns[count];if(isUndefined(whenExpFn)){if(newVal!=null){$log.debug("ngPluralize: no rule defined for '"+count+"' in "+whenExp)}watchRemover=noop;updateElementText()}else{watchRemover=scope.$watch(whenExpFn,updateElementText)}lastCount=count}});function updateElementText(newText){element.text(newText||"")}}}}];var ngRefMinErr=minErr("ngRef");var ngRefDirective=["$parse",function($parse){return{priority:-1,restrict:"A",compile:function compile(tElement,tAttrs){var controllerName=directiveNormalize(nodeName_(tElement));var getter=$parse(tAttrs.ngRef);var setter=getter.assign||function(){throw ngRefMinErr("nonassign",'Expression in ngRef="{0}" is non-assignable!',tAttrs.ngRef)};return function(scope,element,attrs){var refValue;if(attrs.hasOwnProperty("ngRefRead")){if(attrs.ngRefRead==="$element"){refValue=element}else{refValue=element.data("$"+attrs.ngRefRead+"Controller");if(!refValue){throw ngRefMinErr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',attrs.ngRefRead,tAttrs.ngRef)}}}else{refValue=element.data("$"+controllerName+"Controller")}refValue=refValue||element;setter(scope,refValue);element.on("$destroy",function(){if(getter(scope)===refValue){setter(scope,null)}})}}}}];var ngRepeatDirective=["$parse","$animate","$compile",function($parse,$animate,$compile){var NG_REMOVED="$$NG_REMOVED";var ngRepeatMinErr=minErr("ngRepeat");var updateScope=function updateScope(scope,index,valueIdentifier,value,keyIdentifier,key,arrayLength){scope[valueIdentifier]=value;if(keyIdentifier)scope[keyIdentifier]=key;scope.$index=index;scope.$first=index===0;scope.$last=index===arrayLength-1;scope.$middle=!(scope.$first||scope.$last);scope.$odd=!(scope.$even=(index&1)===0)};var getBlockStart=function getBlockStart(block){return block.clone[0]};var getBlockEnd=function getBlockEnd(block){return block.clone[block.clone.length-1]};var trackByIdArrayFn=function trackByIdArrayFn($scope,key,value){return hashKey(value)};var trackByIdObjFn=function trackByIdObjFn($scope,key){return key};return{restrict:"A",multiElement:true,transclude:"element",priority:1e3,terminal:true,$$tlb:true,compile:function ngRepeatCompile($element,$attr){var expression=$attr.ngRepeat;var ngRepeatEndComment=$compile.$$createComment("end ngRepeat",expression);var match=expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!match){throw ngRepeatMinErr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",expression)}var lhs=match[1];var rhs=match[2];var aliasAs=match[3];var trackByExp=match[4];match=lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!match){throw ngRepeatMinErr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",lhs)}var valueIdentifier=match[3]||match[1];var keyIdentifier=match[2];if(aliasAs&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(aliasAs))){throw ngRepeatMinErr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",aliasAs)}var trackByIdExpFn;if(trackByExp){var hashFnLocals={$id:hashKey};var trackByExpGetter=$parse(trackByExp);trackByIdExpFn=function trackByIdExpFn($scope,key,value,index){if(keyIdentifier)hashFnLocals[keyIdentifier]=key;hashFnLocals[valueIdentifier]=value;hashFnLocals.$index=index;return trackByExpGetter($scope,hashFnLocals)}}return function ngRepeatLink($scope,$element,$attr,ctrl,$transclude){var lastBlockMap=createMap();$scope.$watchCollection(rhs,function ngRepeatAction(collection){var index,length,previousNode=$element[0],nextNode,nextBlockMap=createMap(),collectionLength,key,value,trackById,trackByIdFn,collectionKeys,block,nextBlockOrder,elementsToRemove;if(aliasAs){$scope[aliasAs]=collection}if(isArrayLike(collection)){collectionKeys=collection;trackByIdFn=trackByIdExpFn||trackByIdArrayFn}else{trackByIdFn=trackByIdExpFn||trackByIdObjFn;collectionKeys=[];for(var itemKey in collection){if(hasOwnProperty.call(collection,itemKey)&&itemKey.charAt(0)!=="$"){collectionKeys.push(itemKey)}}}collectionLength=collectionKeys.length;nextBlockOrder=new Array(collectionLength);for(index=0;index=minlengthParsed}}}}];function parsePatternAttr(regex,patternExp,elm){if(!regex)return undefined;if(isString(regex)){regex=new RegExp("^"+regex+"$")}if(!regex.test){throw minErr("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",patternExp,regex,startingTag(elm))}return regex}function parseLength(val){var intVal=toInt(val);return isNumberNaN(intVal)?-1:intVal}if(window.angular.bootstrap){if(window.console){console.log("WARNING: Tried to load AngularJS more than once.")}return}bindJQuery();publishExternalAPI(angular);angular.module("ngLocale",[],["$provide",function($provide){var PLURAL_CATEGORY={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function getDecimals(n){n=n+"";var i=n.indexOf(".");return i==-1?0:n.length-i-1}function getVF(n,opt_precision){var v=opt_precision;if(undefined===v){v=Math.min(getDecimals(n),3)}var base=Math.pow(10,v);var f=(n*base|0)%base;return{v:v,f:f}}$provide.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function pluralCat(n,opt_precision){var i=n|0;var vf=getVF(n,opt_precision);if(i==1&&vf.v==0){return PLURAL_CATEGORY.ONE}return PLURAL_CATEGORY.OTHER}})}]);jqLite(function(){angularInit(window.document,bootstrap)})})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element(" + + + + +
+
+ + +
+

jQuery MiniColors 2.1

+

+ Now with Bootstrap 3 support! +

+

+ A project by A Beautiful Site, + originally developed for Surreal CMS. +

+
+ + +

Contents

+ + + +

Download

+

+ This project is on GitHub. Feel free to post bug reports, feature requests, and code + improvements on the official project page. +

+

+ Download on GitHub +

+ + +

Demos

+

+ This is the main demo page, which uses Bootstrap 3, + but this plugin works without Bootstrap as well. +

+

+ View Demo Without Bootstrap +

+ + +

Control Types

+
+
+
+ +
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+
+
+ + +

Input Modes

+
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ + +

Positions

+
+

+ Valid positions include bottom left, bottom right, top + left, and top right. +

+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+
+
+ + +

…and more!

+
+
+
+
+ +
+ + + Opacity can be assigned by including the data-opacity attribute + or by setting the opacity option to true. + +
+
+
+
+ +
+ + + This field has a default value assigned to it, so it will never be empty. + +
+
+
+
+ +
+ + + This field will always be uppercase. + +
+
+
+
+ + +

API

+ + +

Instantiation

+

+ Instantiate like any other jQuery plugin: +

+
$('INPUT.minicolors').minicolors(settings);
+ + +

Settings

+ +

+ Default settings are as follows: +

+
+$.minicolors = {
+    defaults: {
+        animationSpeed: 50,
+        animationEasing: 'swing',
+        change: null,
+        changeDelay: 0,
+        control: 'hue',
+        dataUris: true,
+        defaultValue: '',
+        hide: null,
+        hideSpeed: 100,
+        inline: false,
+        letterCase: 'lowercase',
+        opacity: false,
+        position: 'bottom left',
+        show: null,
+        showSpeed: 100,
+        theme: 'default'
+    }
+};
+
+

+ For convenience, you can change default settings globally by assigning new values: +

+
+$.minicolors.defaults.changeDelay = 200;
+
+

+ To change multiple properties at once, use $.extend(): +

+
+$.minicolors.defaults = $.extend($.minicolors.defaults, {
+    changeDelay: 200,
+    letterCase: 'uppercase',
+    theme: 'bootstrap'
+});
+
+

+ Note: Changing default settings will not affect controls that + are already initialized. +

+ + + +
+
animationSpeed
+
+

+ The animation speed of the sliders when the user taps or clicks a new color. Set to + 0 for no animation. +

+
+ +
animationEasing
+
+

+ The easing to use when animating the sliders. +

+
+ +
changeDelay
+
+

+ The time, in milliseconds, to defer the change event from firing while + the user makes a selection. This is useful for preventing the change event + from firing frequently as the user drags the color picker around. +

+

+ The default value is 0 (no delay). If your change callback + features something resource-intensive (such as an AJAX request), you’ll probably want + to set this to at least 200. +

+
+ +
control
+
+

+ Determines the type of control. Valid options are hue, brightness, + saturation, and wheel. +

+
+ +
dataUris
+
+

+ Set this to false if you require IE7 support. This setting will force + the plugin to load an external image instead of using dataURIs. +

+
+ +
defaultValue
+
+

+ To force a default color, set this to a valid hex string. When the user clears the + control, it will revert to this color. +

+
+ +
hideSpeed & showSpeed
+
+

+ The speed at which to hide and show the color picker. +

+
+ +
inline
+
+

+ Set to true to force the color picker to appear inline. +

+
+ +
letterCase
+
+

+ Determines the letter case of the hex code value. Valid options are uppercase + or lowercase. +

+
+ +
opacity
+
+

+ Set to true to enable the opacity slider. (Use the input element's + data-opacity attribute to set a preset value.) +

+
+ +
position
+
+

+ Sets the position of the dropdown. Valid options are bottom left, + bottom right, top left, and top right. +

+

+ The swatchPosition setting has been removed in version 2.1. The position + of the swatch is now determined by position. +

+
+ +
theme
+
+

+ A string containing the name of the custom theme to be applied. In your CSS, prefix + your selectors like this: +

+
+.minicolors-theme-yourThemeName { ... }
+
+

+ If you are using the default theme, you will probably need to adjust the swatch + styles depending on your existing stylesheet rules. Version 2.1 removes as much + styling on the input element as possible, which means it’s up to + you to adjust your CSS to make sure the swatch aligns properly. +

+

+ To adjust the swatch, override these styles: +

+
+.minicolors-theme-default .minicolors-swatch {
+    top: 5px;
+    left: 5px;
+    width: 18px;
+    height: 18px;
+}
+.minicolors-theme-default.minicolors-position-right .minicolors-swatch {
+    left: auto;
+    right: 5px;
+}
+
+
+ + + + +

Methods

+

Use this syntax for calling methods:

+
$(selector).minicolors('method', [data]);
+
+
create
+
+

+ Initializes the control for all items matching your selector. This is the default + method, so data may be passed in as the only argument. +

+

+ To set a preset color value, populate the value attribute of the original + input element. +

+
+ +
destroy
+
+

+ Returns the input element to its original, uninitialized state. +

+
+ +
opacity
+
+

+ Gets or sets a control's opacity level. To use this method as a setter, pass data in + as a value between 0 and 1. (You can also obtain this value by checking the input + element's data-opacity attribute.) +

+

+ To set a preset opacity value, populate the data-opacity attribute of the + original input element. +

+
+ +
rgbObject
+
+

+ Returns an object containing red, green, blue, and alpha properties that correspond to + the control's current value. Example: +

+
{ r: 0, g: 82, b: 148, a: 0.75 }
+
+ +
rgbString & rgbaString
+
+

+ Returns an RGB or RGBA string suitable for use in your CSS. Examples: +

+
+rgb(0, 82, 148)
+rgba(0, 82, 148, .75)
+
+
+ +
settings
+
+

+ Gets or sets a control's settings. If new settings are passed in, the control will + destroy and re-initialize itself with any new settings overriding the old ones. +

+
+ +
value
+
+

+ Gets or sets a control's color value. To use this method as a setter, pass + data in as a hex value. (You can also obtain this value by checking the + input element's value attribute.) +

+
+
+ + +

Events

+
+
change
+
+

Fires when the value of the color picker changes. The this keyword will reference the original input element. +

+$(selector).minicolors({
+    change: function(hex, opacity) {
+        console.log(hex + ' - ' + opacity);
+    }
+});
+
+

+ Warning! This event will fire a lot when the user drags the + color picker around. Use the changeDelay setting to reduce its + frequency. +

+
+ +
hide
+
+

+ Fires when the color picker is hidden. The this keyword will reference + the original input element. +

+
+$(selector).minicolors({
+    hide: function() {
+    console.log('Hide event triggered!');
+    }
+});
+
+
+ +
show
+
+

+ Fires when the color picker is shown. The this keyword will reference + the original input element. +

+
+$(selector).minicolors({
+    show: function() {
+        console.log('Show event triggered!');
+    }
+});
+
+
+
+ +

License

+

+ Licensed under the MIT license, + same as jQuery. +

+

+ ©2013 A Beautiful Site, LLC. +

+
+ + + \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.css b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.css new file mode 100644 index 0000000..36832ee --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.css @@ -0,0 +1,268 @@ +.minicolors { + position: relative; +} + +.minicolors-sprite { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2YAAACWCAYAAAC1r5t6AAEuWklEQVR42uz9a8xt25YVhrU+1ner7qseLiEjhERwfkDFeWAEl6dCQcAUCBDCwUSJwg+jRPIzgGVZMcZ2DCKyIycxiSOi2JbMr8hBgFNVGKNAHgKCTBnbUYCYEsHYIoiKKuYW9zzu2XvP0fNjjUfrbfQx5/r23ufWPnX2PvrOWmvOueYc87HmHG201luzv/GzvstvVmG4/3N39H8GAwzAnASHw8zgDpjRdAcOFPz0v/J1mvrm/374h3+48Oevfe1rOh/PnF/xdv+5TvgLf+EvLAv9vJ/38/ATsdzP/bk/l9tZ6c/l/XEyr8/3B9ZT3X07r/1hM/04+U62XW1X2ka/X9Rn63l0e33fHmnLbtvhONOxqiffw9m+9HW4+9h+X87dR5vbv4M+11prHW/mP3/16lU9jqO+fPnSP/nkk/rxxx/XDz74oP7Yj/2Y/8iP/Ej9F/7l/8lLfAXAVwB8mV75L5v26LwvAh8X4EMAHwH40O9//P5Dm58/wn3ZD/pnu7//AMA3APw4gB9ty8GSX++Y9iXAfyqA7wbsOwH/jtYg/vvquiP+ZcC+StO+dJ+GrwDHF+4N+tCBj+3+NxrdduJjzJ3t0z+k6R+01w8B/B0AXwfwX2R3H6AA+J7291UAX4Xjq7DldH0Fjq/A8GV425v7+/s00PRxSnDDJ9TQj0ejDB/D23RrO+Ft+n3+R+F17tQ32s58HUCFHzWen7d9p7Z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2Acg3BbmsTYyV99grvtCg/77T+eQqcHEVj2hDv+jnp8DsAPbs8/vp04X7J1QV/uhvdsDNfvrIZfEZgxS9gyAWTb6x+rhh/Y1vNpN3z/xrj/z5exwf8/KN3SXB79k9cAAAAASUVORK5CYII=); +} + +.minicolors-no-data-uris .minicolors-sprite { + background-image: url(jquery.minicolors.png); +} + +.minicolors-swatch { + position: absolute; + vertical-align: middle; + background-position: -80px 0; + border: solid 1px #ccc; + cursor: text; + padding: 0; + margin: 0; + display: inline-block; +} + +.minicolors-swatch-color { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} + +.minicolors input[type=hidden] + .minicolors-swatch { + width: 28px; + position: static; + cursor: pointer; +} + +/* Panel */ +.minicolors-panel { + position: absolute; + width: 173px; + height: 152px; + background: white; + border: solid 1px #CCC; + box-shadow: 0 0 20px rgba(0, 0, 0, .2); + z-index: 99999; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; + display: none; +} + +.minicolors-panel.minicolors-visible { + display: block; +} + +/* Panel positioning */ +.minicolors-position-top .minicolors-panel { + top: -154px; +} + +.minicolors-position-right .minicolors-panel { + right: 0; +} + +.minicolors-position-bottom .minicolors-panel { + top: auto; +} + +.minicolors-position-left .minicolors-panel { + left: 0; +} + +.minicolors-with-opacity .minicolors-panel { + width: 194px; +} + +.minicolors .minicolors-grid { + position: absolute; + top: 1px; + left: 1px; + width: 150px; + height: 150px; + background-position: -120px 0; + cursor: crosshair; +} + +.minicolors .minicolors-grid-inner { + position: absolute; + top: 0; + left: 0; + width: 150px; + height: 150px; +} + +.minicolors-slider-saturation .minicolors-grid { + background-position: -420px 0; +} + +.minicolors-slider-saturation .minicolors-grid-inner { + background-position: -270px 0; + background-image: inherit; +} + +.minicolors-slider-brightness .minicolors-grid { + background-position: -570px 0; +} + +.minicolors-slider-brightness .minicolors-grid-inner { + background-color: black; +} + +.minicolors-slider-wheel .minicolors-grid { + background-position: -720px 0; +} + +.minicolors-slider, +.minicolors-opacity-slider { + position: absolute; + top: 1px; + left: 152px; + width: 20px; + height: 150px; + background-color: white; + background-position: 0 0; + cursor: row-resize; +} + +.minicolors-slider-saturation .minicolors-slider { + background-position: -60px 0; +} + +.minicolors-slider-brightness .minicolors-slider { + background-position: -20px 0; +} + +.minicolors-slider-wheel .minicolors-slider { + background-position: -20px 0; +} + +.minicolors-opacity-slider { + left: 173px; + background-position: -40px 0; + display: none; +} + +.minicolors-with-opacity .minicolors-opacity-slider { + display: block; +} + +/* Pickers */ +.minicolors-grid .minicolors-picker { + position: absolute; + top: 70px; + left: 70px; + width: 12px; + height: 12px; + border: solid 1px black; + border-radius: 10px; + margin-top: -6px; + margin-left: -6px; + background: none; +} + +.minicolors-grid .minicolors-picker > div { + position: absolute; + top: 0; + left: 0; + width: 8px; + height: 8px; + border-radius: 8px; + border: solid 2px white; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; +} + +.minicolors-picker { + position: absolute; + top: 0; + left: 0; + width: 18px; + height: 2px; + background: white; + border: solid 1px black; + margin-top: -2px; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; +} + +/* Inline controls */ +.minicolors-inline { + display: inline-block; +} + +.minicolors-inline .minicolors-input { + display: none !important; +} + +.minicolors-inline .minicolors-panel { + position: relative; + top: auto; + left: auto; + box-shadow: none; + z-index: auto; + display: inline-block; +} + +/* Default theme */ +.minicolors-theme-default .minicolors-swatch { + top: 5px; + left: 5px; + width: 18px; + height: 18px; +} +.minicolors-theme-default.minicolors-position-right .minicolors-swatch { + left: auto; + right: 5px; +} +.minicolors-theme-default.minicolors { + width: auto; + display: inline-block; +} +.minicolors-theme-default .minicolors-input { + height: 20px; + width: auto; + display: inline-block; + padding-left: 26px; +} +.minicolors-theme-default.minicolors-position-right .minicolors-input { + padding-right: 26px; + padding-left: inherit; +} + +/* Bootstrap theme */ +.minicolors-theme-bootstrap .minicolors-swatch { + top: 3px; + left: 3px; + width: 28px; + height: 28px; + border-radius: 3px; +} +.minicolors-theme-bootstrap .minicolors-swatch-color { + border-radius: inherit; +} +.minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch { + left: auto; + right: 3px; +} +.minicolors-theme-bootstrap .minicolors-input { + padding-left: 44px; +} +.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input { + padding-right: 44px; + padding-left: 12px; +} +.minicolors-theme-bootstrap .minicolors-input.input-lg + .minicolors-swatch { + top: 4px; + left: 4px; + width: 37px; + height: 37px; + border-radius: 5px; +} +.minicolors-theme-bootstrap .minicolors-input.input-sm + .minicolors-swatch { + width: 24px; + height: 24px; +} diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.js b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.js new file mode 100644 index 0000000..4418e51 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.js @@ -0,0 +1,844 @@ +/* + * jQuery MiniColors: A tiny color picker built on jQuery + * + * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/) + * + * Licensed under the MIT license: http://opensource.org/licenses/MIT + * + */ +if(jQuery) (function($) { + + // Defaults + $.minicolors = { + defaults: { + animationSpeed: 50, + animationEasing: 'swing', + change: null, + changeDelay: 0, + control: 'hue', + dataUris: true, + defaultValue: '', + hide: null, + hideSpeed: 100, + inline: false, + letterCase: 'lowercase', + opacity: false, + position: 'bottom left', + show: null, + showSpeed: 100, + theme: 'default' + } + }; + + // Public methods + $.extend($.fn, { + minicolors: function(method, data) { + + switch(method) { + + // Destroy the control + case 'destroy': + $(this).each( function() { + destroy($(this)); + }); + return $(this); + + // Hide the color picker + case 'hide': + hide(); + return $(this); + + // Get/set opacity + case 'opacity': + // Getter + if( data === undefined ) { + // Getter + return $(this).attr('data-opacity'); + } else { + // Setter + $(this).each( function() { + updateFromInput($(this).attr('data-opacity', data)); + }); + } + return $(this); + + // Get an RGB(A) object based on the current color/opacity + case 'rgbObject': + return rgbObject($(this), method === 'rgbaObject'); + + // Get an RGB(A) string based on the current color/opacity + case 'rgbString': + case 'rgbaString': + return rgbString($(this), method === 'rgbaString'); + + // Get/set settings on the fly + case 'settings': + if( data === undefined ) { + return $(this).data('minicolors-settings'); + } else { + // Setter + $(this).each( function() { + var settings = $(this).data('minicolors-settings') || {}; + destroy($(this)); + $(this).minicolors($.extend(true, settings, data)); + }); + } + return $(this); + + // Show the color picker + case 'show': + show( $(this).eq(0) ); + return $(this); + + // Get/set the hex color value + case 'value': + if( data === undefined ) { + // Getter + return $(this).val(); + } else { + // Setter + $(this).each( function() { + updateFromInput($(this).val(data)); + }); + } + return $(this); + + // Initializes the control + default: + if( method !== 'create' ) data = method; + $(this).each( function() { + init($(this), data); + }); + return $(this); + + } + + } + }); + + // Initialize input elements + function init(input, settings) { + + var minicolors = $('
'), + defaults = $.minicolors.defaults; + + // Do nothing if already initialized + if( input.data('minicolors-initialized') ) return; + + // Handle settings + settings = $.extend(true, {}, defaults, settings); + + // The wrapper + minicolors + .addClass('minicolors-theme-' + settings.theme) + .toggleClass('minicolors-with-opacity', settings.opacity) + .toggleClass('minicolors-no-data-uris', settings.dataUris !== true); + + // Custom positioning + if( settings.position !== undefined ) { + $.each(settings.position.split(' '), function() { + minicolors.addClass('minicolors-position-' + this); + }); + } + + // The input + input + .addClass('minicolors-input') + .data('minicolors-initialized', false) + .data('minicolors-settings', settings) + .prop('size', 7) + .wrap(minicolors) + .after( + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + ); + + // The swatch + if( !settings.inline ) { + input.after(''); + input.next('.minicolors-swatch').on('click', function(event) { + event.preventDefault(); + input.focus(); + }); + } + + // Prevent text selection in IE + input.parent().find('.minicolors-panel').on('selectstart', function() { return false; }).end(); + + // Inline controls + if( settings.inline ) input.parent().addClass('minicolors-inline'); + + updateFromInput(input, false); + + input.data('minicolors-initialized', true); + + } + + // Returns the input back to its original state + function destroy(input) { + + var minicolors = input.parent(); + + // Revert the input element + input + .removeData('minicolors-initialized') + .removeData('minicolors-settings') + .removeProp('size') + .removeClass('minicolors-input'); + + // Remove the wrap and destroy whatever remains + minicolors.before(input).remove(); + + } + + // Shows the specified dropdown panel + function show(input) { + + var minicolors = input.parent(), + panel = minicolors.find('.minicolors-panel'), + settings = input.data('minicolors-settings'); + + // Do nothing if uninitialized, disabled, inline, or already open + if( !input.data('minicolors-initialized') || + input.prop('disabled') || + minicolors.hasClass('minicolors-inline') || + minicolors.hasClass('minicolors-focus') + ) return; + + hide(); + + minicolors.addClass('minicolors-focus'); + panel + .stop(true, true) + .fadeIn(settings.showSpeed, function() { + if( settings.show ) settings.show.call(input.get(0)); + }); + + } + + // Hides all dropdown panels + function hide() { + + $('.minicolors-focus').each( function() { + + var minicolors = $(this), + input = minicolors.find('.minicolors-input'), + panel = minicolors.find('.minicolors-panel'), + settings = input.data('minicolors-settings'); + + panel.fadeOut(settings.hideSpeed, function() { + if( settings.hide ) settings.hide.call(input.get(0)); + minicolors.removeClass('minicolors-focus'); + }); + + }); + } + + // Moves the selected picker + function move(target, event, animate) { + + var input = target.parents('.minicolors').find('.minicolors-input'), + settings = input.data('minicolors-settings'), + picker = target.find('[class$=-picker]'), + offsetX = target.offset().left, + offsetY = target.offset().top, + x = Math.round(event.pageX - offsetX), + y = Math.round(event.pageY - offsetY), + duration = animate ? settings.animationSpeed : 0, + wx, wy, r, phi; + + // Touch support + if( event.originalEvent.changedTouches ) { + x = event.originalEvent.changedTouches[0].pageX - offsetX; + y = event.originalEvent.changedTouches[0].pageY - offsetY; + } + + // Constrain picker to its container + if( x < 0 ) x = 0; + if( y < 0 ) y = 0; + if( x > target.width() ) x = target.width(); + if( y > target.height() ) y = target.height(); + + // Constrain color wheel values to the wheel + if( target.parent().is('.minicolors-slider-wheel') && picker.parent().is('.minicolors-grid') ) { + wx = 75 - x; + wy = 75 - y; + r = Math.sqrt(wx * wx + wy * wy); + phi = Math.atan2(wy, wx); + if( phi < 0 ) phi += Math.PI * 2; + if( r > 75 ) { + r = 75; + x = 75 - (75 * Math.cos(phi)); + y = 75 - (75 * Math.sin(phi)); + } + x = Math.round(x); + y = Math.round(y); + } + + // Move the picker + if( target.is('.minicolors-grid') ) { + picker + .stop(true) + .animate({ + top: y + 'px', + left: x + 'px' + }, duration, settings.animationEasing, function() { + updateFromControl(input, target); + }); + } else { + picker + .stop(true) + .animate({ + top: y + 'px' + }, duration, settings.animationEasing, function() { + updateFromControl(input, target); + }); + } + + } + + // Sets the input based on the color picker values + function updateFromControl(input, target) { + + function getCoords(picker, container) { + + var left, top; + if( !picker.length || !container ) return null; + left = picker.offset().left; + top = picker.offset().top; + + return { + x: left - container.offset().left + (picker.outerWidth() / 2), + y: top - container.offset().top + (picker.outerHeight() / 2) + }; + + } + + var hue, saturation, brightness, x, y, r, phi, + + hex = input.val(), + opacity = input.attr('data-opacity'), + + // Helpful references + minicolors = input.parent(), + settings = input.data('minicolors-settings'), + swatch = minicolors.find('.minicolors-swatch'), + + // Panel objects + grid = minicolors.find('.minicolors-grid'), + slider = minicolors.find('.minicolors-slider'), + opacitySlider = minicolors.find('.minicolors-opacity-slider'), + + // Picker objects + gridPicker = grid.find('[class$=-picker]'), + sliderPicker = slider.find('[class$=-picker]'), + opacityPicker = opacitySlider.find('[class$=-picker]'), + + // Picker positions + gridPos = getCoords(gridPicker, grid), + sliderPos = getCoords(sliderPicker, slider), + opacityPos = getCoords(opacityPicker, opacitySlider); + + // Handle colors + if( target.is('.minicolors-grid, .minicolors-slider') ) { + + // Determine HSB values + switch(settings.control) { + + case 'wheel': + // Calculate hue, saturation, and brightness + x = (grid.width() / 2) - gridPos.x; + y = (grid.height() / 2) - gridPos.y; + r = Math.sqrt(x * x + y * y); + phi = Math.atan2(y, x); + if( phi < 0 ) phi += Math.PI * 2; + if( r > 75 ) { + r = 75; + gridPos.x = 69 - (75 * Math.cos(phi)); + gridPos.y = 69 - (75 * Math.sin(phi)); + } + saturation = keepWithin(r / 0.75, 0, 100); + hue = keepWithin(phi * 180 / Math.PI, 0, 360); + brightness = keepWithin(100 - Math.floor(sliderPos.y * (100 / slider.height())), 0, 100); + hex = hsb2hex({ + h: hue, + s: saturation, + b: brightness + }); + + // Update UI + slider.css('backgroundColor', hsb2hex({ h: hue, s: saturation, b: 100 })); + break; + + case 'saturation': + // Calculate hue, saturation, and brightness + hue = keepWithin(parseInt(gridPos.x * (360 / grid.width()), 10), 0, 360); + saturation = keepWithin(100 - Math.floor(sliderPos.y * (100 / slider.height())), 0, 100); + brightness = keepWithin(100 - Math.floor(gridPos.y * (100 / grid.height())), 0, 100); + hex = hsb2hex({ + h: hue, + s: saturation, + b: brightness + }); + + // Update UI + slider.css('backgroundColor', hsb2hex({ h: hue, s: 100, b: brightness })); + minicolors.find('.minicolors-grid-inner').css('opacity', saturation / 100); + break; + + case 'brightness': + // Calculate hue, saturation, and brightness + hue = keepWithin(parseInt(gridPos.x * (360 / grid.width()), 10), 0, 360); + saturation = keepWithin(100 - Math.floor(gridPos.y * (100 / grid.height())), 0, 100); + brightness = keepWithin(100 - Math.floor(sliderPos.y * (100 / slider.height())), 0, 100); + hex = hsb2hex({ + h: hue, + s: saturation, + b: brightness + }); + + // Update UI + slider.css('backgroundColor', hsb2hex({ h: hue, s: saturation, b: 100 })); + minicolors.find('.minicolors-grid-inner').css('opacity', 1 - (brightness / 100)); + break; + + default: + // Calculate hue, saturation, and brightness + hue = keepWithin(360 - parseInt(sliderPos.y * (360 / slider.height()), 10), 0, 360); + saturation = keepWithin(Math.floor(gridPos.x * (100 / grid.width())), 0, 100); + brightness = keepWithin(100 - Math.floor(gridPos.y * (100 / grid.height())), 0, 100); + hex = hsb2hex({ + h: hue, + s: saturation, + b: brightness + }); + + // Update UI + grid.css('backgroundColor', hsb2hex({ h: hue, s: 100, b: 100 })); + break; + + } + + // Adjust case + input.val( convertCase(hex, settings.letterCase) ); + + } + + // Handle opacity + if( target.is('.minicolors-opacity-slider') ) { + if( settings.opacity ) { + opacity = parseFloat(1 - (opacityPos.y / opacitySlider.height())).toFixed(2); + } else { + opacity = 1; + } + if( settings.opacity ) input.attr('data-opacity', opacity); + } + + // Set swatch color + swatch.find('SPAN').css({ + backgroundColor: hex, + opacity: opacity + }); + + // Handle change event + doChange(input, hex, opacity); + + } + + // Sets the color picker values from the input + function updateFromInput(input, preserveInputValue) { + + var hex, + hsb, + opacity, + x, y, r, phi, + + // Helpful references + minicolors = input.parent(), + settings = input.data('minicolors-settings'), + swatch = minicolors.find('.minicolors-swatch'), + + // Panel objects + grid = minicolors.find('.minicolors-grid'), + slider = minicolors.find('.minicolors-slider'), + opacitySlider = minicolors.find('.minicolors-opacity-slider'), + + // Picker objects + gridPicker = grid.find('[class$=-picker]'), + sliderPicker = slider.find('[class$=-picker]'), + opacityPicker = opacitySlider.find('[class$=-picker]'); + + // Determine hex/HSB values + hex = convertCase(parseHex(input.val(), true), settings.letterCase); + if( !hex ){ + hex = convertCase(parseHex(settings.defaultValue, true), settings.letterCase); + } + hsb = hex2hsb(hex); + + // Update input value + if( !preserveInputValue ) input.val(hex); + + // Determine opacity value + if( settings.opacity ) { + // Get from data-opacity attribute and keep within 0-1 range + opacity = input.attr('data-opacity') === '' ? 1 : keepWithin(parseFloat(input.attr('data-opacity')).toFixed(2), 0, 1); + if( isNaN(opacity) ) opacity = 1; + input.attr('data-opacity', opacity); + swatch.find('SPAN').css('opacity', opacity); + + // Set opacity picker position + y = keepWithin(opacitySlider.height() - (opacitySlider.height() * opacity), 0, opacitySlider.height()); + opacityPicker.css('top', y + 'px'); + } + + // Update swatch + swatch.find('SPAN').css('backgroundColor', hex); + + // Determine picker locations + switch(settings.control) { + + case 'wheel': + // Set grid position + r = keepWithin(Math.ceil(hsb.s * 0.75), 0, grid.height() / 2); + phi = hsb.h * Math.PI / 180; + x = keepWithin(75 - Math.cos(phi) * r, 0, grid.width()); + y = keepWithin(75 - Math.sin(phi) * r, 0, grid.height()); + gridPicker.css({ + top: y + 'px', + left: x + 'px' + }); + + // Set slider position + y = 150 - (hsb.b / (100 / grid.height())); + if( hex === '' ) y = 0; + sliderPicker.css('top', y + 'px'); + + // Update panel color + slider.css('backgroundColor', hsb2hex({ h: hsb.h, s: hsb.s, b: 100 })); + break; + + case 'saturation': + // Set grid position + x = keepWithin((5 * hsb.h) / 12, 0, 150); + y = keepWithin(grid.height() - Math.ceil(hsb.b / (100 / grid.height())), 0, grid.height()); + gridPicker.css({ + top: y + 'px', + left: x + 'px' + }); + + // Set slider position + y = keepWithin(slider.height() - (hsb.s * (slider.height() / 100)), 0, slider.height()); + sliderPicker.css('top', y + 'px'); + + // Update UI + slider.css('backgroundColor', hsb2hex({ h: hsb.h, s: 100, b: hsb.b })); + minicolors.find('.minicolors-grid-inner').css('opacity', hsb.s / 100); + break; + + case 'brightness': + // Set grid position + x = keepWithin((5 * hsb.h) / 12, 0, 150); + y = keepWithin(grid.height() - Math.ceil(hsb.s / (100 / grid.height())), 0, grid.height()); + gridPicker.css({ + top: y + 'px', + left: x + 'px' + }); + + // Set slider position + y = keepWithin(slider.height() - (hsb.b * (slider.height() / 100)), 0, slider.height()); + sliderPicker.css('top', y + 'px'); + + // Update UI + slider.css('backgroundColor', hsb2hex({ h: hsb.h, s: hsb.s, b: 100 })); + minicolors.find('.minicolors-grid-inner').css('opacity', 1 - (hsb.b / 100)); + break; + + default: + // Set grid position + x = keepWithin(Math.ceil(hsb.s / (100 / grid.width())), 0, grid.width()); + y = keepWithin(grid.height() - Math.ceil(hsb.b / (100 / grid.height())), 0, grid.height()); + gridPicker.css({ + top: y + 'px', + left: x + 'px' + }); + + // Set slider position + y = keepWithin(slider.height() - (hsb.h / (360 / slider.height())), 0, slider.height()); + sliderPicker.css('top', y + 'px'); + + // Update panel color + grid.css('backgroundColor', hsb2hex({ h: hsb.h, s: 100, b: 100 })); + break; + + } + + // Fire change event, but only if minicolors is fully initialized + if( input.data('minicolors-initialized') ) { + doChange(input, hex, opacity); + } + + } + + // Runs the change and changeDelay callbacks + function doChange(input, hex, opacity) { + + var settings = input.data('minicolors-settings'), + lastChange = input.data('minicolors-lastChange'); + + // Only run if it actually changed + if( !lastChange || lastChange.hex !== hex || lastChange.opacity !== opacity ) { + + // Remember last-changed value + input.data('minicolors-lastChange', { + hex: hex, + opacity: opacity + }); + + // Fire change event + if( settings.change ) { + if( settings.changeDelay ) { + // Call after a delay + clearTimeout(input.data('minicolors-changeTimeout')); + input.data('minicolors-changeTimeout', setTimeout( function() { + settings.change.call(input.get(0), hex, opacity); + }, settings.changeDelay)); + } else { + // Call immediately + settings.change.call(input.get(0), hex, opacity); + } + } + input.trigger('change').trigger('input'); + } + + } + + // Generates an RGB(A) object based on the input's value + function rgbObject(input) { + var hex = parseHex($(input).val(), true), + rgb = hex2rgb(hex), + opacity = $(input).attr('data-opacity'); + if( !rgb ) return null; + if( opacity !== undefined ) $.extend(rgb, { a: parseFloat(opacity) }); + return rgb; + } + + // Genearates an RGB(A) string based on the input's value + function rgbString(input, alpha) { + var hex = parseHex($(input).val(), true), + rgb = hex2rgb(hex), + opacity = $(input).attr('data-opacity'); + if( !rgb ) return null; + if( opacity === undefined ) opacity = 1; + if( alpha ) { + return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + parseFloat(opacity) + ')'; + } else { + return 'rgb(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ')'; + } + } + + // Converts to the letter case specified in settings + function convertCase(string, letterCase) { + return letterCase === 'uppercase' ? string.toUpperCase() : string.toLowerCase(); + } + + // Parses a string and returns a valid hex string when possible + function parseHex(string, expand) { + string = string.replace(/[^A-F0-9]/ig, ''); + if( string.length !== 3 && string.length !== 6 ) return ''; + if( string.length === 3 && expand ) { + string = string[0] + string[0] + string[1] + string[1] + string[2] + string[2]; + } + return '#' + string; + } + + // Keeps value within min and max + function keepWithin(value, min, max) { + if( value < min ) value = min; + if( value > max ) value = max; + return value; + } + + // Converts an HSB object to an RGB object + function hsb2rgb(hsb) { + var rgb = {}; + var h = Math.round(hsb.h); + var s = Math.round(hsb.s * 255 / 100); + var v = Math.round(hsb.b * 255 / 100); + if(s === 0) { + rgb.r = rgb.g = rgb.b = v; + } else { + var t1 = v; + var t2 = (255 - s) * v / 255; + var t3 = (t1 - t2) * (h % 60) / 60; + if( h === 360 ) h = 0; + if( h < 60 ) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; } + else if( h < 120 ) {rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; } + else if( h < 180 ) {rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; } + else if( h < 240 ) {rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; } + else if( h < 300 ) {rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; } + else if( h < 360 ) {rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; } + else { rgb.r = 0; rgb.g = 0; rgb.b = 0; } + } + return { + r: Math.round(rgb.r), + g: Math.round(rgb.g), + b: Math.round(rgb.b) + }; + } + + // Converts an RGB object to a hex string + function rgb2hex(rgb) { + var hex = [ + rgb.r.toString(16), + rgb.g.toString(16), + rgb.b.toString(16) + ]; + $.each(hex, function(nr, val) { + if (val.length === 1) hex[nr] = '0' + val; + }); + return '#' + hex.join(''); + } + + // Converts an HSB object to a hex string + function hsb2hex(hsb) { + return rgb2hex(hsb2rgb(hsb)); + } + + // Converts a hex string to an HSB object + function hex2hsb(hex) { + var hsb = rgb2hsb(hex2rgb(hex)); + if( hsb.s === 0 ) hsb.h = 360; + return hsb; + } + + // Converts an RGB object to an HSB object + function rgb2hsb(rgb) { + var hsb = { h: 0, s: 0, b: 0 }; + var min = Math.min(rgb.r, rgb.g, rgb.b); + var max = Math.max(rgb.r, rgb.g, rgb.b); + var delta = max - min; + hsb.b = max; + hsb.s = max !== 0 ? 255 * delta / max : 0; + if( hsb.s !== 0 ) { + if( rgb.r === max ) { + hsb.h = (rgb.g - rgb.b) / delta; + } else if( rgb.g === max ) { + hsb.h = 2 + (rgb.b - rgb.r) / delta; + } else { + hsb.h = 4 + (rgb.r - rgb.g) / delta; + } + } else { + hsb.h = -1; + } + hsb.h *= 60; + if( hsb.h < 0 ) { + hsb.h += 360; + } + hsb.s *= 100/255; + hsb.b *= 100/255; + return hsb; + } + + // Converts a hex string to an RGB object + function hex2rgb(hex) { + hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16); + return { + r: hex >> 16, + g: (hex & 0x00FF00) >> 8, + b: (hex & 0x0000FF) + }; + } + + // Handle events + $(document) + // Hide on clicks outside of the control + .on('mousedown.minicolors touchstart.minicolors', function(event) { + if( !$(event.target).parents().add(event.target).hasClass('minicolors') ) { + hide(); + } + }) + // Start moving + .on('mousedown.minicolors touchstart.minicolors', '.minicolors-grid, .minicolors-slider, .minicolors-opacity-slider', function(event) { + var target = $(this); + event.preventDefault(); + $(document).data('minicolors-target', target); + move(target, event, true); + }) + // Move pickers + .on('mousemove.minicolors touchmove.minicolors', function(event) { + var target = $(document).data('minicolors-target'); + if( target ) move(target, event); + }) + // Stop moving + .on('mouseup.minicolors touchend.minicolors', function() { + $(this).removeData('minicolors-target'); + }) + // Show panel when swatch is clicked + .on('mousedown.minicolors touchstart.minicolors', '.minicolors-swatch', function(event) { + var input = $(this).parent().find('.minicolors-input'); + event.preventDefault(); + show(input); + }) + // Show on focus + .on('focus.minicolors', '.minicolors-input', function() { + var input = $(this); + if( !input.data('minicolors-initialized') ) return; + show(input); + }) + // Fix hex on blur + .on('blur.minicolors', '.minicolors-input', function() { + var input = $(this), + settings = input.data('minicolors-settings'); + if( !input.data('minicolors-initialized') ) return; + + // Parse Hex + input.val(parseHex(input.val(), true)); + + // Is it blank? + if( input.val() === '' ) input.val(parseHex(settings.defaultValue, true)); + + // Adjust case + input.val( convertCase(input.val(), settings.letterCase) ); + + }) + // Handle keypresses + .on('keydown.minicolors', '.minicolors-input', function(event) { + var input = $(this); + if( !input.data('minicolors-initialized') ) return; + switch(event.keyCode) { + case 9: // tab + hide(); + break; + case 13: // enter + case 27: // esc + hide(); + input.blur(); + break; + } + }) + // Update on keyup + .on('keyup.minicolors', '.minicolors-input', function() { + var input = $(this); + if( !input.data('minicolors-initialized') ) return; + updateFromInput(input, true); + }) + // Update on paste + .on('paste.minicolors', '.minicolors-input', function() { + var input = $(this); + if( !input.data('minicolors-initialized') ) return; + setTimeout( function() { + updateFromInput(input, true); + }, 1); + }); + +})(jQuery); \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.min.js b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.min.js new file mode 100644 index 0000000..b8a83f5 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.min.js @@ -0,0 +1,9 @@ +/* + * jQuery MiniColors: A tiny color picker built on jQuery + * + * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/) + * + * Licensed under the MIT license: http://opensource.org/licenses/MIT + * + */ +if(jQuery)(function($){$.minicolors={defaults:{animationSpeed:50,animationEasing:'swing',change:null,changeDelay:0,control:'hue',dataUris:true,defaultValue:'',hide:null,hideSpeed:100,inline:false,letterCase:'lowercase',opacity:false,position:'bottom left',show:null,showSpeed:100,theme:'default'}};$.extend($.fn,{minicolors:function(method,data){switch(method){case'destroy':$(this).each(function(){destroy($(this))});return $(this);case'hide':hide();return $(this);case'opacity':if(data===undefined){return $(this).attr('data-opacity')}else{$(this).each(function(){updateFromInput($(this).attr('data-opacity',data))})}return $(this);case'rgbObject':return rgbObject($(this),method==='rgbaObject');case'rgbString':case'rgbaString':return rgbString($(this),method==='rgbaString');case'settings':if(data===undefined){return $(this).data('minicolors-settings')}else{$(this).each(function(){var settings=$(this).data('minicolors-settings')||{};destroy($(this));$(this).minicolors($.extend(true,settings,data))})}return $(this);case'show':show($(this).eq(0));return $(this);case'value':if(data===undefined){return $(this).val()}else{$(this).each(function(){updateFromInput($(this).val(data))})}return $(this);default:if(method!=='create')data=method;$(this).each(function(){init($(this),data)});return $(this)}}});function init(input,settings){var minicolors=$('
'),defaults=$.minicolors.defaults;if(input.data('minicolors-initialized'))return;settings=$.extend(true,{},defaults,settings);minicolors.addClass('minicolors-theme-'+settings.theme).toggleClass('minicolors-with-opacity',settings.opacity).toggleClass('minicolors-no-data-uris',settings.dataUris!==true);if(settings.position!==undefined){$.each(settings.position.split(' '),function(){minicolors.addClass('minicolors-position-'+this)})}input.addClass('minicolors-input').data('minicolors-initialized',false).data('minicolors-settings',settings).prop('size',7).wrap(minicolors).after('
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
');if(!settings.inline){input.after('');input.next('.minicolors-swatch').on('click',function(event){event.preventDefault();input.focus()})}input.parent().find('.minicolors-panel').on('selectstart',function(){return false}).end();if(settings.inline)input.parent().addClass('minicolors-inline');updateFromInput(input,false);input.data('minicolors-initialized',true)}function destroy(input){var minicolors=input.parent();input.removeData('minicolors-initialized').removeData('minicolors-settings').removeProp('size').removeClass('minicolors-input');minicolors.before(input).remove()}function show(input){var minicolors=input.parent(),panel=minicolors.find('.minicolors-panel'),settings=input.data('minicolors-settings');if(!input.data('minicolors-initialized')||input.prop('disabled')||minicolors.hasClass('minicolors-inline')||minicolors.hasClass('minicolors-focus'))return;hide();minicolors.addClass('minicolors-focus');panel.stop(true,true).fadeIn(settings.showSpeed,function(){if(settings.show)settings.show.call(input.get(0))})}function hide(){$('.minicolors-focus').each(function(){var minicolors=$(this),input=minicolors.find('.minicolors-input'),panel=minicolors.find('.minicolors-panel'),settings=input.data('minicolors-settings');panel.fadeOut(settings.hideSpeed,function(){if(settings.hide)settings.hide.call(input.get(0));minicolors.removeClass('minicolors-focus')})})}function move(target,event,animate){var input=target.parents('.minicolors').find('.minicolors-input'),settings=input.data('minicolors-settings'),picker=target.find('[class$=-picker]'),offsetX=target.offset().left,offsetY=target.offset().top,x=Math.round(event.pageX-offsetX),y=Math.round(event.pageY-offsetY),duration=animate?settings.animationSpeed:0,wx,wy,r,phi;if(event.originalEvent.changedTouches){x=event.originalEvent.changedTouches[0].pageX-offsetX;y=event.originalEvent.changedTouches[0].pageY-offsetY}if(x<0)x=0;if(y<0)y=0;if(x>target.width())x=target.width();if(y>target.height())y=target.height();if(target.parent().is('.minicolors-slider-wheel')&&picker.parent().is('.minicolors-grid')){wx=75-x;wy=75-y;r=Math.sqrt(wx*wx+wy*wy);phi=Math.atan2(wy,wx);if(phi<0)phi+=Math.PI*2;if(r>75){r=75;x=75-(75*Math.cos(phi));y=75-(75*Math.sin(phi))}x=Math.round(x);y=Math.round(y)}if(target.is('.minicolors-grid')){picker.stop(true).animate({top:y+'px',left:x+'px'},duration,settings.animationEasing,function(){updateFromControl(input,target)})}else{picker.stop(true).animate({top:y+'px'},duration,settings.animationEasing,function(){updateFromControl(input,target)})}}function updateFromControl(input,target){function getCoords(picker,container){var left,top;if(!picker.length||!container)return null;left=picker.offset().left;top=picker.offset().top;return{x:left-container.offset().left+(picker.outerWidth()/2),y:top-container.offset().top+(picker.outerHeight()/2)}}var hue,saturation,brightness,x,y,r,phi,hex=input.val(),opacity=input.attr('data-opacity'),minicolors=input.parent(),settings=input.data('minicolors-settings'),swatch=minicolors.find('.minicolors-swatch'),grid=minicolors.find('.minicolors-grid'),slider=minicolors.find('.minicolors-slider'),opacitySlider=minicolors.find('.minicolors-opacity-slider'),gridPicker=grid.find('[class$=-picker]'),sliderPicker=slider.find('[class$=-picker]'),opacityPicker=opacitySlider.find('[class$=-picker]'),gridPos=getCoords(gridPicker,grid),sliderPos=getCoords(sliderPicker,slider),opacityPos=getCoords(opacityPicker,opacitySlider);if(target.is('.minicolors-grid, .minicolors-slider')){switch(settings.control){case'wheel':x=(grid.width()/2)-gridPos.x;y=(grid.height()/2)-gridPos.y;r=Math.sqrt(x*x+y*y);phi=Math.atan2(y,x);if(phi<0)phi+=Math.PI*2;if(r>75){r=75;gridPos.x=69-(75*Math.cos(phi));gridPos.y=69-(75*Math.sin(phi))}saturation=keepWithin(r/0.75,0,100);hue=keepWithin(phi*180/Math.PI,0,360);brightness=keepWithin(100-Math.floor(sliderPos.y*(100/slider.height())),0,100);hex=hsb2hex({h:hue,s:saturation,b:brightness});slider.css('backgroundColor',hsb2hex({h:hue,s:saturation,b:100}));break;case'saturation':hue=keepWithin(parseInt(gridPos.x*(360/grid.width()),10),0,360);saturation=keepWithin(100-Math.floor(sliderPos.y*(100/slider.height())),0,100);brightness=keepWithin(100-Math.floor(gridPos.y*(100/grid.height())),0,100);hex=hsb2hex({h:hue,s:saturation,b:brightness});slider.css('backgroundColor',hsb2hex({h:hue,s:100,b:brightness}));minicolors.find('.minicolors-grid-inner').css('opacity',saturation/100);break;case'brightness':hue=keepWithin(parseInt(gridPos.x*(360/grid.width()),10),0,360);saturation=keepWithin(100-Math.floor(gridPos.y*(100/grid.height())),0,100);brightness=keepWithin(100-Math.floor(sliderPos.y*(100/slider.height())),0,100);hex=hsb2hex({h:hue,s:saturation,b:brightness});slider.css('backgroundColor',hsb2hex({h:hue,s:saturation,b:100}));minicolors.find('.minicolors-grid-inner').css('opacity',1-(brightness/100));break;default:hue=keepWithin(360-parseInt(sliderPos.y*(360/slider.height()),10),0,360);saturation=keepWithin(Math.floor(gridPos.x*(100/grid.width())),0,100);brightness=keepWithin(100-Math.floor(gridPos.y*(100/grid.height())),0,100);hex=hsb2hex({h:hue,s:saturation,b:brightness});grid.css('backgroundColor',hsb2hex({h:hue,s:100,b:100}));break}input.val(convertCase(hex,settings.letterCase))}if(target.is('.minicolors-opacity-slider')){if(settings.opacity){opacity=parseFloat(1-(opacityPos.y/opacitySlider.height())).toFixed(2)}else{opacity=1}if(settings.opacity)input.attr('data-opacity',opacity)}swatch.find('SPAN').css({backgroundColor:hex,opacity:opacity});doChange(input,hex,opacity)}function updateFromInput(input,preserveInputValue){var hex,hsb,opacity,x,y,r,phi,minicolors=input.parent(),settings=input.data('minicolors-settings'),swatch=minicolors.find('.minicolors-swatch'),grid=minicolors.find('.minicolors-grid'),slider=minicolors.find('.minicolors-slider'),opacitySlider=minicolors.find('.minicolors-opacity-slider'),gridPicker=grid.find('[class$=-picker]'),sliderPicker=slider.find('[class$=-picker]'),opacityPicker=opacitySlider.find('[class$=-picker]');hex=convertCase(parseHex(input.val(),true),settings.letterCase);if(!hex){hex=convertCase(parseHex(settings.defaultValue,true),settings.letterCase)}hsb=hex2hsb(hex);if(!preserveInputValue)input.val(hex);if(settings.opacity){opacity=input.attr('data-opacity')===''?1:keepWithin(parseFloat(input.attr('data-opacity')).toFixed(2),0,1);if(isNaN(opacity))opacity=1;input.attr('data-opacity',opacity);swatch.find('SPAN').css('opacity',opacity);y=keepWithin(opacitySlider.height()-(opacitySlider.height()*opacity),0,opacitySlider.height());opacityPicker.css('top',y+'px')}swatch.find('SPAN').css('backgroundColor',hex);switch(settings.control){case'wheel':r=keepWithin(Math.ceil(hsb.s*0.75),0,grid.height()/2);phi=hsb.h*Math.PI/180;x=keepWithin(75-Math.cos(phi)*r,0,grid.width());y=keepWithin(75-Math.sin(phi)*r,0,grid.height());gridPicker.css({top:y+'px',left:x+'px'});y=150-(hsb.b/(100/grid.height()));if(hex==='')y=0;sliderPicker.css('top',y+'px');slider.css('backgroundColor',hsb2hex({h:hsb.h,s:hsb.s,b:100}));break;case'saturation':x=keepWithin((5*hsb.h)/12,0,150);y=keepWithin(grid.height()-Math.ceil(hsb.b/(100/grid.height())),0,grid.height());gridPicker.css({top:y+'px',left:x+'px'});y=keepWithin(slider.height()-(hsb.s*(slider.height()/100)),0,slider.height());sliderPicker.css('top',y+'px');slider.css('backgroundColor',hsb2hex({h:hsb.h,s:100,b:hsb.b}));minicolors.find('.minicolors-grid-inner').css('opacity',hsb.s/100);break;case'brightness':x=keepWithin((5*hsb.h)/12,0,150);y=keepWithin(grid.height()-Math.ceil(hsb.s/(100/grid.height())),0,grid.height());gridPicker.css({top:y+'px',left:x+'px'});y=keepWithin(slider.height()-(hsb.b*(slider.height()/100)),0,slider.height());sliderPicker.css('top',y+'px');slider.css('backgroundColor',hsb2hex({h:hsb.h,s:hsb.s,b:100}));minicolors.find('.minicolors-grid-inner').css('opacity',1-(hsb.b/100));break;default:x=keepWithin(Math.ceil(hsb.s/(100/grid.width())),0,grid.width());y=keepWithin(grid.height()-Math.ceil(hsb.b/(100/grid.height())),0,grid.height());gridPicker.css({top:y+'px',left:x+'px'});y=keepWithin(slider.height()-(hsb.h/(360/slider.height())),0,slider.height());sliderPicker.css('top',y+'px');grid.css('backgroundColor',hsb2hex({h:hsb.h,s:100,b:100}));break}if(input.data('minicolors-initialized')){doChange(input,hex,opacity)}}function doChange(input,hex,opacity){var settings=input.data('minicolors-settings'),lastChange=input.data('minicolors-lastChange');if(!lastChange||lastChange.hex!==hex||lastChange.opacity!==opacity){input.data('minicolors-lastChange',{hex:hex,opacity:opacity});if(settings.change){if(settings.changeDelay){clearTimeout(input.data('minicolors-changeTimeout'));input.data('minicolors-changeTimeout',setTimeout(function(){settings.change.call(input.get(0),hex,opacity)},settings.changeDelay))}else{settings.change.call(input.get(0),hex,opacity)}}input.trigger('change').trigger('input')}}function rgbObject(input){var hex=parseHex($(input).val(),true),rgb=hex2rgb(hex),opacity=$(input).attr('data-opacity');if(!rgb)return null;if(opacity!==undefined)$.extend(rgb,{a:parseFloat(opacity)});return rgb}function rgbString(input,alpha){var hex=parseHex($(input).val(),true),rgb=hex2rgb(hex),opacity=$(input).attr('data-opacity');if(!rgb)return null;if(opacity===undefined)opacity=1;if(alpha){return'rgba('+rgb.r+', '+rgb.g+', '+rgb.b+', '+parseFloat(opacity)+')'}else{return'rgb('+rgb.r+', '+rgb.g+', '+rgb.b+')'}}function convertCase(string,letterCase){return letterCase==='uppercase'?string.toUpperCase():string.toLowerCase()}function parseHex(string,expand){string=string.replace(/[^A-F0-9]/ig,'');if(string.length!==3&&string.length!==6)return'';if(string.length===3&&expand){string=string[0]+string[0]+string[1]+string[1]+string[2]+string[2]}return'#'+string}function keepWithin(value,min,max){if(valuemax)value=max;return value}function hsb2rgb(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s===0){rgb.r=rgb.g=rgb.b=v}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h===360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3}else if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3}else if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3}else if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3}else if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3}else if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3}else{rgb.r=0;rgb.g=0;rgb.b=0}}return{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)}}function rgb2hex(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length===1)hex[nr]='0'+val});return'#'+hex.join('')}function hsb2hex(hsb){return rgb2hex(hsb2rgb(hsb))}function hex2hsb(hex){var hsb=rgb2hsb(hex2rgb(hex));if(hsb.s===0)hsb.h=360;return hsb}function rgb2hsb(rgb){var hsb={h:0,s:0,b:0};var min=Math.min(rgb.r,rgb.g,rgb.b);var max=Math.max(rgb.r,rgb.g,rgb.b);var delta=max-min;hsb.b=max;hsb.s=max!==0?255*delta/max:0;if(hsb.s!==0){if(rgb.r===max){hsb.h=(rgb.g-rgb.b)/delta}else if(rgb.g===max){hsb.h=2+(rgb.b-rgb.r)/delta}else{hsb.h=4+(rgb.r-rgb.g)/delta}}else{hsb.h=-1}hsb.h*=60;if(hsb.h<0){hsb.h+=360}hsb.s*=100/255;hsb.b*=100/255;return hsb}function hex2rgb(hex){hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)}}$(document).on('mousedown.minicolors touchstart.minicolors',function(event){if(!$(event.target).parents().add(event.target).hasClass('minicolors')){hide()}}).on('mousedown.minicolors touchstart.minicolors','.minicolors-grid, .minicolors-slider, .minicolors-opacity-slider',function(event){var target=$(this);event.preventDefault();$(document).data('minicolors-target',target);move(target,event,true)}).on('mousemove.minicolors touchmove.minicolors',function(event){var target=$(document).data('minicolors-target');if(target)move(target,event)}).on('mouseup.minicolors touchend.minicolors',function(){$(this).removeData('minicolors-target')}).on('mousedown.minicolors touchstart.minicolors','.minicolors-swatch',function(event){var input=$(this).parent().find('.minicolors-input');event.preventDefault();show(input)}).on('focus.minicolors','.minicolors-input',function(){var input=$(this);if(!input.data('minicolors-initialized'))return;show(input)}).on('blur.minicolors','.minicolors-input',function(){var input=$(this),settings=input.data('minicolors-settings');if(!input.data('minicolors-initialized'))return;input.val(parseHex(input.val(),true));if(input.val()==='')input.val(parseHex(settings.defaultValue,true));input.val(convertCase(input.val(),settings.letterCase))}).on('keydown.minicolors','.minicolors-input',function(event){var input=$(this);if(!input.data('minicolors-initialized'))return;switch(event.keyCode){case 9:hide();break;case 13:case 27:hide();input.blur();break}}).on('keyup.minicolors','.minicolors-input',function(){var input=$(this);if(!input.data('minicolors-initialized'))return;updateFromInput(input,true)}).on('paste.minicolors','.minicolors-input',function(){var input=$(this);if(!input.data('minicolors-initialized'))return;setTimeout(function(){updateFromInput(input,true)},1)})})(jQuery); \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.png b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.png new file mode 100644 index 0000000..8fa1e9d Binary files /dev/null and b/plugins/xframework/assets/bower_components/jquery-minicolors/jquery.minicolors.png differ diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/readme.md b/plugins/xframework/assets/bower_components/jquery-minicolors/readme.md new file mode 100644 index 0000000..cc39d05 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-minicolors/readme.md @@ -0,0 +1,9 @@ +# jQuery MiniColors: A tiny color picker built on jQuery + +_Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/)_ + +_Licensed under the MIT license_ + +## Demo & Documentation + +http://labs.abeautifulsite.net/jquery-minicolors/ \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-minicolors/without-bootstrap.html b/plugins/xframework/assets/bower_components/jquery-minicolors/without-bootstrap.html new file mode 100644 index 0000000..1080da9 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-minicolors/without-bootstrap.html @@ -0,0 +1,154 @@ + + + + jQuery MiniColors + + + + + + + + + + + + + + + +

MiniColors Demo (without Bootstrap)

+

+ « Back to the Bootstrap demo +

+ + +

Control Types

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +

Input Modes

+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ + +

Positions

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +

…and more!

+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.bower.json b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.bower.json new file mode 100644 index 0000000..f21b808 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.bower.json @@ -0,0 +1,32 @@ +{ + "name": "jt.timepicker", + "version": "1.8.11", + "description": "A jQuery timepicker plugin inspired by Google Calendar.", + "homepage": "http://jonthornton.github.com/jquery-timepicker", + "main": [ + "./jquery.timepicker.js", + "./jquery.timepicker.css" + ], + "dependencies": { + "jquery": ">= 1.7" + }, + "keywords": [ + "time", + "picker", + "google calendar" + ], + "author": { + "name": "Jon Thornton", + "web": "https://github.com/jonthornton" + }, + "license": "http://opensource.org/licenses/MIT", + "_release": "1.8.11", + "_resolution": { + "type": "version", + "tag": "1.8.11", + "commit": "6ede71ebf17c23f3b81eec7c6aceb61757c44cac" + }, + "_source": "https://github.com/jonthornton/jquery-timepicker.git", + "_target": "1.2 - 1.8", + "_originalSource": "jquery-timepicker-jt" +} \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.gitignore b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.gitignore new file mode 100644 index 0000000..b30511d --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/.gitignore @@ -0,0 +1,4 @@ +.DS_store +*.sw* +node_modules +.idea \ No newline at end of file diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/GruntFile.js b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/GruntFile.js new file mode 100644 index 0000000..7692c06 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/GruntFile.js @@ -0,0 +1,41 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + meta: { + banner : '/*!\n' + + ' * <%= pkg.title %> v<%= pkg.version %> - <%= pkg.description %>\n' + + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' + + ' * License: <%= pkg.license %>\n' + + ' */\n\n' + }, + uglify: { + options : { + banner : '<%= meta.banner %>', + report: 'gzip' + }, + dist: { + files: { + 'jquery.timepicker.min.js': ['jquery.timepicker.js'] + } + } + }, + cssmin: { + minify: { + files: { + 'jquery.timepicker.min.css': ['jquery.timepicker.css'] + } + } + }, + jshint: { + all: ['jquery.timepicker.js'] + }, + }); + + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-cssmin'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + + grunt.registerTask('default', ['uglify', 'cssmin']); + +}; diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/README.md b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/README.md new file mode 100644 index 0000000..2e14d09 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/README.md @@ -0,0 +1,283 @@ +Timepicker Plugin for jQuery +======================== + +[timepicker screenshot](http://jonthornton.github.com/jquery-timepicker) + +[See a demo and examples here](http://jonthornton.github.com/jquery-timepicker) + +jquery.timepicker is a lightweight timepicker plugin for jQuery inspired by Google Calendar. It supports both mouse and keyboard navigation, and weighs in at 2.7kb minified and gzipped. + +Requirements +------------ +* [jQuery](http://jquery.com/) (>= 1.7) + +Usage +----- + +```javascript +$('.some-time-inputs').timepicker(options); +``` + +Include `jquery.timepicker.css` and `jquery.timepicker.min.js` in your page. + +```options``` is an optional javascript object with parameters explained below. + +You can also set options as [data attributes](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes) on the intput elements, like ``````. Timepicker still needs to be initialized by calling ```$('#someElement').timepicker();```. + +The defaults for all options are exposed through the ```$.fn.timepicker.defaults``` object. Properties changed in this object (same properties configurable through the constructor) will take effect for every instance created after the change. + +Options +------- + +- **appendTo** +Override where the dropdown is appended. +Takes either a `string` to use as a selector, a `function` that gets passed the clicked input element as argument or a jquery `object` to use directly. +*default: "body"* + +- **className** +A class name to apply to the HTML element that contains the timepicker dropdown. +*default: null* + +- **closeOnWindowScroll** +Close the timepicker when the window is scrolled. (Replicates ```` control. This is ideal for small screen devices, or if you want to prevent the user from entering arbitrary values. This option is not compatible with the following options: ```appendTo```, ```closeOnWindowScroll```, ```disableTouchKeyboard```, ```forceRoundTime```, ```scrollDefault```, ```selectOnBlur```, ```typeAheadHighlight```. +*default: false* + +Methods +------- + +- **getSecondsFromMidnight** +Get the time as an integer, expressed as seconds from 12am. + + ```javascript + $('#getTimeExample').timepicker('getSecondsFromMidnight'); + ``` + +- **getTime** +Get the time using a Javascript Date object, relative to a Date object (default: Jan 1, 1970). + + ```javascript + $('#getTimeExample').timepicker('getTime'); + $('#getTimeExample').timepicker('getTime', new Date()); + ``` + + You can get the time as a string using jQuery's built-in ```val()``` function: + + ```javascript + $('#getTimeExample').val(); + ``` + +- **hide** +Close the timepicker dropdown. + + ```javascript + $('#hideExample').timepicker('hide'); + ``` + +- **option** +Change the settings of an existing timepicker. Calling ```option``` on a visible timepicker will cause the picker to be hidden. + + ```javascript + $('#optionExample').timepicker({ 'timeFormat': 'g:ia' }); // initialize the timepicker sometime earlier in your code + ... + $('#optionExample').timepicker('option', 'minTime', '2:00am'); + $('#optionExample').timepicker('option', { 'minTime': '4:00am', 'timeFormat': 'H:i' }); + ``` + +- **remove** +Unbind an existing timepicker element. + + ```javascript + $('#removeExample').timepicker('remove'); + ``` + +- **setTime** +Set the time using a Javascript Date object. + + ```javascript + $('#setTimeExample').timepicker('setTime', new Date()); + ``` + +- **show** +Display the timepicker dropdown. + + ```javascript + $('#showExample').timepicker('show'); + ``` + +Events +------ + +- **change** +The native ```onChange``` event will fire any time the input value is updated, whether by selection from the timepicker list or manual entry into the text input. Your code should bind to ```change``` after initializing timepicker, or use [event delegation](http://api.jquery.com/on/). + +- **changeTime** +Called after a valid time value is entered or selected. See ```timeFormatError``` and ```timeRangeError``` for error events. Fires before ```change``` event. + +- **hideTimepicker** +Called after the timepicker is closed. + +- **selectTime** +Called after a time value is selected from the timepicker list. Fires before ```change``` event. + +- **showTimepicker** +Called after the timepicker is shown. + +- **timeFormatError** +Called if an unparseable time string is manually entered into the timepicker input. Fires before ```change``` event. + +- **timeRangeError** +Called if a maxTime, minTime, or disableTimeRanges is set and an invalid time is manually entered into the timepicker input. Fires before ```change``` event. + +The `selectTime` and `hideTimepicker` events fire slightly differently when using the `useSelect` option. See https://github.com/jonthornton/jquery-timepicker/issues/427 for more information. + +Theming +------- + +Sample markup with class names: + +```html + +... +
+
    +
  • 12:00am
  • +
  • 12:30am
  • + ... +
  • 4:30pm
  • +
  • 5:00pm
  • +
  • 5:30pm
  • +
  • 6:00pm (1 hour)
  • +
  • 6:30pm
  • + ... +
  • 11:30pm
  • +
+
+``` + +The `ui-timepicker-positioned-top` class will be applied only when the dropdown is positioned above the input. + +## Packaging + +Install from [Bower](http://bower.io/) as ```jquery-timepicker-jt```. + +An AngularJS directive is available at https://github.com/Recras/angular-jquery-timepicker + +Available via CDN at [https://cdnjs.com/libraries/jquery-timepicker](https://cdnjs.com/libraries/jquery-timepicker). + +Help +---- + +Submit a [GitHub Issues request](https://github.com/jonthornton/jquery-timepicker/issues/new). Please try provide code that demonstrates the problem; you can use [this jsFiddle](http://jsfiddle.net/jonthornton/28uvg/) as a starting point. + +Development guidelines +---------------------- + +1. Install dependencies (jquery + grunt) `npm install` +2. For sanity checks and minification run `grunt`, or just `grunt lint` to have the code linted + +jquery-timepicker follows [semantic versioning](http://semver.org/). + +- - - + +This software is made available under the open source MIT License. © 2014 [Jon Thornton](http://www.jonthornton.com) and [contributors](https://github.com/jonthornton/jquery-timepicker/graphs/contributors) diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/bower.json b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/bower.json new file mode 100644 index 0000000..cd77036 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/bower.json @@ -0,0 +1,16 @@ +{ + "name" : "jt.timepicker", + "version" : "1.8.11", + "description" : "A jQuery timepicker plugin inspired by Google Calendar.", + "homepage" : "http://jonthornton.github.com/jquery-timepicker", + "main" : [ "./jquery.timepicker.js", "./jquery.timepicker.css" ], + "dependencies" : { + "jquery" : ">= 1.7" + }, + "keywords" : [ "time", "picker", "google calendar" ], + "author" : { + "name" : "Jon Thornton", + "web" : "https://github.com/jonthornton" + }, + "license": "http://opensource.org/licenses/MIT" +} diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/index.html b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/index.html new file mode 100644 index 0000000..8cf017a --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/index.html @@ -0,0 +1,392 @@ + + + + + + Timepicker for jQuery – Demos and Documentation + + + + + + + + + + + + + + + +
+ +

jquery.timepicker

+

+ A lightweight, customizable javascript timepicker plugin for jQuery inspired by Google Calendar. +

+ + +
+ +
+

Use this plugin to unobtrusively add a timepicker dropdown to your forms. It's lightweight (2.7kb minified and gzipped) and easy to customize.

+
+ +
+
+
+

Basic Example

+

+
+ + + +
$('#basicExample').timepicker();
+
+ + +
+
+

Scroll Default Example

+

Set the scroll position to local time if no value selected.

+

+
+ + + +
$('#scrollDefaultExample').timepicker({ 'scrollDefault': 'now' });
+
+ +
+
+

Set Time Example

+

Dynamically set the time using a Javascript Date object.

+

+ + +

+
+ + + +
$('#setTimeExample').timepicker();
+$('#setTimeButton').on('click', function (){
+    $('#setTimeExample').timepicker('setTime', new Date());
+});
+
+ +
+
+

Duration Example

+

Set a starting time and see duration from that starting time. You can optionally set an maxTime as well.

+

+
+ + + +
$('#durationExample').timepicker({
+    'minTime': '2:00pm',
+    'maxTime': '11:30pm',
+    'showDuration': true
+});
+
+ +
+
+

Event Example

+

Trigger an event after selecting a value. Fires before the input onchange event.

+

+ + +

+
+ + + +
$('#onselectExample').timepicker();
+$('#onselectExample').on('changeTime', function() {
+    $('#onselectTarget').text($(this).val());
+});
+
+ +
+
+

DisableTimeRanges Example

+

Prevent selection of certain time values.

+

+
+ + + +
$('#disableTimeRangesExample').timepicker({
+    'disableTimeRanges': [
+        ['1am', '2am'],
+        ['3am', '4:01am']
+    ]
+});
+
+ +
+
+

noneOption Example

+

Custom options can be added to the dropdown menu.

+

+
+ + + +
+$('#noneOptionExample').timepicker({
+    'noneOption': [
+        {
+            'label': 'Foobar',
+            'className': 'shibby',
+            'value': '42'
+        },
+        'Foobar2'
+    ]
+});
+        
+
+ +
+
+

timeFormat Example

+

timepicker.jquery uses the time portion of PHP's date formatting commands.

+

+
+ + + +
$('#timeformatExample1').timepicker({ 'timeFormat': 'H:i:s' });
+$('#timeformatExample2').timepicker({ 'timeFormat': 'h:i A' });
+
+ +
+
+

Step Example

+

Generate drop-down options with varying levels of precision.

+

+
+ + + +
$('#stepExample1').timepicker({ 'step': 15 });
+$('#stepExample2').timepicker({
+    'step': function(i) {
+        return (i%2) ? 15 : 45;
+    }
+});
+
+ +
+
+

forceRoundTime Example

+

jquery-timepicker allows entering times via the keyboard. Setting forceRoundTime to true will + round the entered time to the nearest option on the dropdown list.

+

+
+ + + +
$('#roundTimeExample').timepicker({ 'forceRoundTime': true });
+
+ +
+
+

Select Example

+

jquery-timepicker can render itself as a select element too.

+

+
+ + + +
$('#selectExample').timepicker();
+$('#selectButton').click(function(e) {
+  $('#selectExample').timepicker('option', { useSelect: true });
+  $(this).hide();
+});
+
+ +
+
+

Non-input Example

+

jquery-timepicker can be bound to any visibile DOM element, such as spans or divs.

+

+
+ + + +
$('#spanExample').timepicker();
+    $('#openSpanExample').on('click', function(){
+    $('#spanExample').timepicker('show');
+});
+
+ +
+
+

Datepair Plugin Example

+ +

jquery-timepicker is designed to work with the jquery-datepair plugin. + +

+ + to + + +

+
+ + + + + +
+<p id="datepairExample">
+    <input type="text" class="date start" />
+    <input type="text" class="time start" /> to
+    <input type="text" class="time end" />
+    <input type="text" class="date end" />
+</p>
+
+<script type="text/javascript" src="datepair.js"></script>
+<script type="text/javascript" src="jquery.datepair.js"></script>
+<script>
+    // initialize input widgets first
+    $('#datepairExample .time').timepicker({
+        'showDuration': true,
+        'timeFormat': 'g:ia'
+    });
+
+    $('#datepairExample .date').datepicker({
+        'format': 'yyyy-m-d',
+        'autoclose': true
+    });
+
+    // initialize datepair
+    $('#datepairExample').datepair();
+</script>
+ +
+
+ +
+

Need Help?

+

Check the documentation or submit an issue on GitHub.

+
+ + + + +
+ diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.css b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.css new file mode 100644 index 0000000..cd75f13 --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.css @@ -0,0 +1,72 @@ +.ui-timepicker-wrapper { + overflow-y: auto; + height: 150px; + width: 6.5em; + background: #fff; + border: 1px solid #ddd; + -webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2); + -moz-box-shadow:0 5px 10px rgba(0,0,0,0.2); + box-shadow:0 5px 10px rgba(0,0,0,0.2); + outline: none; + z-index: 10001; + margin: 0; +} + +.ui-timepicker-wrapper.ui-timepicker-with-duration { + width: 13em; +} + +.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30, +.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60 { + width: 11em; +} + +.ui-timepicker-list { + margin: 0; + padding: 0; + list-style: none; +} + +.ui-timepicker-duration { + margin-left: 5px; color: #888; +} + +.ui-timepicker-list:hover .ui-timepicker-duration { + color: #888; +} + +.ui-timepicker-list li { + padding: 3px 0 3px 5px; + cursor: pointer; + white-space: nowrap; + color: #000; + list-style: none; + margin: 0; +} + +.ui-timepicker-list:hover .ui-timepicker-selected { + background: #fff; color: #000; +} + +li.ui-timepicker-selected, +.ui-timepicker-list li:hover, +.ui-timepicker-list .ui-timepicker-selected:hover { + background: #1980EC; color: #fff; +} + +li.ui-timepicker-selected .ui-timepicker-duration, +.ui-timepicker-list li:hover .ui-timepicker-duration { + color: #ccc; +} + +.ui-timepicker-list li.ui-timepicker-disabled, +.ui-timepicker-list li.ui-timepicker-disabled:hover, +.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled { + color: #888; + cursor: default; +} + +.ui-timepicker-list li.ui-timepicker-disabled:hover, +.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled { + background: #f2f2f2; +} diff --git a/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.js b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.js new file mode 100644 index 0000000..f570c2a --- /dev/null +++ b/plugins/xframework/assets/bower_components/jquery-timepicker-jt/jquery.timepicker.js @@ -0,0 +1,1217 @@ +/*! + * jquery-timepicker v1.8.11 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation. + * Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/ + * License: MIT + */ + + +(function (factory) { + if (typeof exports === "object" && exports && + typeof module === "object" && module && module.exports === exports) { + // Browserify. Attach to jQuery module. + factory(require("jquery")); + } else if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else { + // Browser globals + factory(jQuery); + } +}(function ($) { + var _baseDate = _generateBaseDate(); + var _ONE_DAY = 86400; + var _lang = { + am: 'am', + pm: 'pm', + AM: 'AM', + PM: 'PM', + decimal: '.', + mins: 'mins', + hr: 'hr', + hrs: 'hrs' + }; + + var methods = { + init: function(options) + { + return this.each(function() + { + var self = $(this); + + // pick up settings from data attributes + var attributeOptions = []; + for (var key in $.fn.timepicker.defaults) { + if (self.data(key)) { + attributeOptions[key] = self.data(key); + } + } + + var settings = $.extend({}, $.fn.timepicker.defaults, attributeOptions, options); + + if (settings.lang) { + _lang = $.extend(_lang, settings.lang); + } + + settings = _parseSettings(settings); + self.data('timepicker-settings', settings); + self.addClass('ui-timepicker-input'); + + if (settings.useSelect) { + _render(self); + } else { + self.prop('autocomplete', 'off'); + if (settings.showOn) { + for (var i in settings.showOn) { + self.on(settings.showOn[i]+'.timepicker', methods.show); + } + } + self.on('change.timepicker', _formatValue); + self.on('keydown.timepicker', _keydownhandler); + self.on('keyup.timepicker', _keyuphandler); + if (settings.disableTextInput) { + self.on('keydown.timepicker', _disableTextInputHandler); + } + + _formatValue.call(self.get(0)); + } + }); + }, + + show: function(e) + { + var self = $(this); + var settings = self.data('timepicker-settings'); + + if (e) { + e.preventDefault(); + } + + if (settings.useSelect) { + self.data('timepicker-list').focus(); + return; + } + + if (_hideKeyboard(self)) { + // block the keyboard on mobile devices + self.blur(); + } + + var list = self.data('timepicker-list'); + + // check if input is readonly + if (self.prop('readonly')) { + return; + } + + // check if list needs to be rendered + if (!list || list.length === 0 || typeof settings.durationTime === 'function') { + _render(self); + list = self.data('timepicker-list'); + } + + if (_isVisible(list)) { + return; + } + + self.data('ui-timepicker-value', self.val()); + _setSelected(self, list); + + // make sure other pickers are hidden + methods.hide(); + + // position the dropdown relative to the input + list.show(); + var listOffset = {}; + + if (settings.orientation.match(/r/)) { + // right-align the dropdown + listOffset.left = self.offset().left + self.outerWidth() - list.outerWidth() + parseInt(list.css('marginLeft').replace('px', ''), 10); + } else { + // left-align the dropdown + listOffset.left = self.offset().left + parseInt(list.css('marginLeft').replace('px', ''), 10); + } + + var verticalOrientation; + if (settings.orientation.match(/t/)) { + verticalOrientation = 't'; + } else if (settings.orientation.match(/b/)) { + verticalOrientation = 'b'; + } else if ((self.offset().top + self.outerHeight(true) + list.outerHeight()) > $(window).height() + $(window).scrollTop()) { + verticalOrientation = 't'; + } else { + verticalOrientation = 'b'; + } + + if (verticalOrientation == 't') { + // position the dropdown on top + list.addClass('ui-timepicker-positioned-top'); + listOffset.top = self.offset().top - list.outerHeight() + parseInt(list.css('marginTop').replace('px', ''), 10); + } else { + // put it under the input + list.removeClass('ui-timepicker-positioned-top'); + listOffset.top = self.offset().top + self.outerHeight() + parseInt(list.css('marginTop').replace('px', ''), 10); + } + + list.offset(listOffset); + + // position scrolling + var selected = list.find('.ui-timepicker-selected'); + + if (!selected.length) { + var timeInt = _time2int(_getTimeValue(self)); + if (timeInt !== null) { + selected = _findRow(self, list, timeInt); + } else if (settings.scrollDefault) { + selected = _findRow(self, list, settings.scrollDefault()); + } + } + + if (selected && selected.length) { + var topOffset = list.scrollTop() + selected.position().top - selected.outerHeight(); + list.scrollTop(topOffset); + } else { + list.scrollTop(0); + } + + // prevent scroll propagation + if(settings.stopScrollPropagation) { + $(document).on('wheel.ui-timepicker', '.ui-timepicker-wrapper', function(e){ + e.preventDefault(); + var currentScroll = $(this).scrollTop(); + $(this).scrollTop(currentScroll + e.originalEvent.deltaY); + }); + } + + // attach close handlers + $(document).on('touchstart.ui-timepicker mousedown.ui-timepicker', _closeHandler); + $(window).on('resize.ui-timepicker', _closeHandler); + if (settings.closeOnWindowScroll) { + $(document).on('scroll.ui-timepicker', _closeHandler); + } + + self.trigger('showTimepicker'); + + return this; + }, + + hide: function(e) + { + var self = $(this); + var settings = self.data('timepicker-settings'); + + if (settings && settings.useSelect) { + self.blur(); + } + + $('.ui-timepicker-wrapper').each(function() { + var list = $(this); + if (!_isVisible(list)) { + return; + } + + var self = list.data('timepicker-input'); + var settings = self.data('timepicker-settings'); + + if (settings && settings.selectOnBlur) { + _selectValue(self); + } + + list.hide(); + self.trigger('hideTimepicker'); + }); + + return this; + }, + + option: function(key, value) + { + if (typeof key == 'string' && typeof value == 'undefined') { + return $(this).data('timepicker-settings')[key]; + } + + return this.each(function(){ + var self = $(this); + var settings = self.data('timepicker-settings'); + var list = self.data('timepicker-list'); + + if (typeof key == 'object') { + settings = $.extend(settings, key); + } else if (typeof key == 'string') { + settings[key] = value; + } + + settings = _parseSettings(settings); + + self.data('timepicker-settings', settings); + + if (list) { + list.remove(); + self.data('timepicker-list', false); + } + + if (settings.useSelect) { + _render(self); + } + }); + }, + + getSecondsFromMidnight: function() + { + return _time2int(_getTimeValue(this)); + }, + + getTime: function(relative_date) + { + var self = this; + + var time_string = _getTimeValue(self); + if (!time_string) { + return null; + } + + var offset = _time2int(time_string); + if (offset === null) { + return null; + } + + if (!relative_date) { + relative_date = _baseDate; + } + + // construct a Date from relative date, and offset's time + var time = new Date(relative_date); + time.setHours(offset / 3600); + time.setMinutes(offset % 3600 / 60); + time.setSeconds(offset % 60); + time.setMilliseconds(0); + + return time; + }, + + setTime: function(value) + { + var self = this; + var settings = self.data('timepicker-settings'); + + if (settings.forceRoundTime) { + var prettyTime = _roundAndFormatTime(_time2int(value), settings) + } else { + var prettyTime = _int2time(_time2int(value), settings); + } + + if (value && prettyTime === null && settings.noneOption) { + prettyTime = value; + } + + _setTimeValue(self, prettyTime); + if (self.data('timepicker-list')) { + _setSelected(self, self.data('timepicker-list')); + } + + return this; + }, + + remove: function() + { + var self = this; + + // check if this element is a timepicker + if (!self.hasClass('ui-timepicker-input')) { + return; + } + + var settings = self.data('timepicker-settings'); + self.removeAttr('autocomplete', 'off'); + self.removeClass('ui-timepicker-input'); + self.removeData('timepicker-settings'); + self.off('.timepicker'); + + // timepicker-list won't be present unless the user has interacted with this timepicker + if (self.data('timepicker-list')) { + self.data('timepicker-list').remove(); + } + + if (settings.useSelect) { + self.show(); + } + + self.removeData('timepicker-list'); + + return this; + } + }; + + // private methods + + function _isVisible(elem) + { + var el = elem[0]; + return el.offsetWidth > 0 && el.offsetHeight > 0; + } + + function _parseSettings(settings) + { + if (settings.minTime) { + settings.minTime = _time2int(settings.minTime); + } + + if (settings.maxTime) { + settings.maxTime = _time2int(settings.maxTime); + } + + if (settings.durationTime && typeof settings.durationTime !== 'function') { + settings.durationTime = _time2int(settings.durationTime); + } + + if (settings.scrollDefault == 'now') { + settings.scrollDefault = function() { + return settings.roundingFunction(_time2int(new Date()), settings); + } + } else if (settings.scrollDefault && typeof settings.scrollDefault != 'function') { + var val = settings.scrollDefault; + settings.scrollDefault = function() { + return settings.roundingFunction(_time2int(val), settings); + } + } else if (settings.minTime) { + settings.scrollDefault = function() { + return settings.roundingFunction(settings.minTime, settings); + } + } + + if ($.type(settings.timeFormat) === "string" && settings.timeFormat.match(/[gh]/)) { + settings._twelveHourTime = true; + } + + if (settings.showOnFocus === false && settings.showOn.indexOf('focus') != -1) { + settings.showOn.splice(settings.showOn.indexOf('focus'), 1); + } + + if (settings.disableTimeRanges.length > 0) { + // convert string times to integers + for (var i in settings.disableTimeRanges) { + settings.disableTimeRanges[i] = [ + _time2int(settings.disableTimeRanges[i][0]), + _time2int(settings.disableTimeRanges[i][1]) + ]; + } + + // sort by starting time + settings.disableTimeRanges = settings.disableTimeRanges.sort(function(a, b){ + return a[0] - b[0]; + }); + + // merge any overlapping ranges + for (var i = settings.disableTimeRanges.length-1; i > 0; i--) { + if (settings.disableTimeRanges[i][0] <= settings.disableTimeRanges[i-1][1]) { + settings.disableTimeRanges[i-1] = [ + Math.min(settings.disableTimeRanges[i][0], settings.disableTimeRanges[i-1][0]), + Math.max(settings.disableTimeRanges[i][1], settings.disableTimeRanges[i-1][1]) + ]; + settings.disableTimeRanges.splice(i, 1); + } + } + } + + return settings; + } + + function _render(self) + { + var settings = self.data('timepicker-settings'); + var list = self.data('timepicker-list'); + + if (list && list.length) { + list.remove(); + self.data('timepicker-list', false); + } + + if (settings.useSelect) { + list = $('",{"class":"ui-timepicker-select"});var g=d}else{d=a("
    ",{"class":"ui-timepicker-list"});var g=a("
    ",{"class":"ui-timepicker-wrapper",tabindex:-1});g.css({display:"none",position:"absolute"}).append(d)}if(c.noneOption)if(c.noneOption===!0&&(c.noneOption=c.useSelect?"Time...":"None"),a.isArray(c.noneOption)){for(var h in c.noneOption)if(parseInt(h,10)==h){var j=e(c.noneOption[h],c.useSelect);d.append(j)}}else{var j=e(c.noneOption,c.useSelect);d.append(j)}if(c.className&&g.addClass(c.className),(null!==c.minTime||null!==c.durationTime)&&c.showDuration){"function"==typeof c.step?"function":c.step;g.addClass("ui-timepicker-with-duration"),g.addClass("ui-timepicker-step-"+c.step)}var l=c.minTime;"function"==typeof c.durationTime?l=u(c.durationTime()):null!==c.durationTime&&(l=c.durationTime);var m=null!==c.minTime?c.minTime:0,o=null!==c.maxTime?c.maxTime:m+w-1;m>o&&(o+=w),o===w-1&&"string"===a.type(c.timeFormat)&&c.show2400&&(o=w);var p=c.disableTimeRanges,q=0,v=p.length,x=c.step;"function"!=typeof x&&(x=function(){return c.step});for(var h=m,z=0;o>=h;z++,h+=60*x(z)){var A=h,B=t(A,c);if(c.useSelect){var C=a("