This commit is contained in:
parent
cd4b824b00
commit
79c679096f
1074 changed files with 13482 additions and 100115 deletions
11
assets/vendor/events-calendar/common/src/resources/js/tribe-common.min.js
vendored
Normal file
11
assets/vendor/events-calendar/common/src/resources/js/tribe-common.min.js
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* This JS file was auto-generated via Terser.
|
||||
*
|
||||
* Contributors should avoid editing this file, but instead edit the associated
|
||||
* non minified file file. For more information, check out our engineering docs
|
||||
* on how we handle JS minification in our engineering docs.
|
||||
*
|
||||
* @see: https://evnt.is/dev-docs-minification
|
||||
*/
|
||||
|
||||
String.prototype.className=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace(".","")},String.prototype.varName=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace("-","_")},function(){const hash=new URL(window.location.href).hash;if(!hash||!hash.match("#(tribe|tec)"))return;let updatesDidOccurr=!0;const mutationObserver=new MutationObserver((function(){updatesDidOccurr=!0}));mutationObserver.observe(window.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});let mutationCallback=function(){if(updatesDidOccurr)updatesDidOccurr=!1,setTimeout(mutationCallback,250);else{mutationObserver.takeRecords(),mutationObserver.disconnect();const scrollTo=document.getElementById(hash.substring(1));scrollTo&&scrollTo.scrollIntoView()}};mutationCallback()}();var tribe=tribe||{};window.tec=window.tec||{};
|
||||
19
assets/vendor/events-calendar/common/src/resources/js/underscore-after.js
vendored
Normal file
19
assets/vendor/events-calendar/common/src/resources/js/underscore-after.js
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
(function(){
|
||||
/**
|
||||
* If we have a temp variable of type function it means lodash was loaded before underscore so we need to
|
||||
* remove the reference to underscore from window._ by using the method .noConflict() from underscore, after
|
||||
* this point we need to revert back the value of window._ which was lodash.
|
||||
*
|
||||
* In the second scenario when underscore is loaded before lodash, this will not be executed as window._
|
||||
* will remain as lodash.
|
||||
*
|
||||
* On a third scenario when lodash is not included this will either be executed which will allow to use
|
||||
* something like: window.underscore || window._ to fallback to the correct value of underscore in the plugins.
|
||||
*/
|
||||
if ( window._lodash_tmp !== false && typeof window._lodash_tmp === 'function' ) {
|
||||
// Remove reference to _ if is underscore
|
||||
window.underscore = _.noConflict();
|
||||
// Restore reference to lodash if present
|
||||
window._ = window._lodash_tmp;
|
||||
}
|
||||
})();
|
||||
42
assets/vendor/events-calendar/common/src/resources/js/underscore-before.js
vendored
Normal file
42
assets/vendor/events-calendar/common/src/resources/js/underscore-before.js
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
(function(){
|
||||
|
||||
/**
|
||||
* Function that search if an object has all the specified methods and all those methods are functions.
|
||||
*
|
||||
* @since 4.7.7
|
||||
*
|
||||
* @param {Object} obj The object where all the methods might be stored
|
||||
* @param {Array} methods An array with the name of all the methods to be tested
|
||||
* @return {boolean} True if has all the methods false otherwise.
|
||||
*/
|
||||
function search_for_methods( obj, methods ) {
|
||||
|
||||
// Object is not defined or does not exist on window nothing to do.
|
||||
if ( ! obj || window[ obj ] ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var search = methods.filter( function( name ) {
|
||||
// Test if the method is part of Obj and if is a function.
|
||||
return obj[ name ] && 'function' === typeof obj[ name ];
|
||||
});
|
||||
return methods.length === search.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to compare if the variable _ is from lodash by testing some of us unique methods.
|
||||
*
|
||||
* @since 4.7.7
|
||||
*
|
||||
* @return {boolean} True if the global _ is from lodash.
|
||||
*/
|
||||
function is_lodash() {
|
||||
return search_for_methods( window._, [ 'get', 'set', 'at', 'cloneDeep', 'some', 'every' ] );
|
||||
}
|
||||
|
||||
window._lodash_tmp = false;
|
||||
// If current _ is from lodash Store it in a temp variable before underscore is loaded
|
||||
if ( '_' in window && is_lodash() ) {
|
||||
window._lodash_tmp = _;
|
||||
}
|
||||
})();
|
||||
11
assets/vendor/events-calendar/common/src/resources/js/utils/query-string.min.js
vendored
Normal file
11
assets/vendor/events-calendar/common/src/resources/js/utils/query-string.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue