File "utils-camelcase.min.js"

Full Path: /home/londdqdw/public_html/06/wp-content/plugins/the-events-calendar/common/src/resources/js/utils-camelcase.min.js
File size: 1.46 KB
MIME-type: text/plain
Charset: utf-8

/**
 * 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
 */

tribe.utils=tribe.utils||{},function(obj,_){"use strict";obj.camelCase=function(str){return 0===(str=arguments.length>1?(str=_.map(arguments,(function(val){return val.trim()}))).filter(str,(function(val){return 0!==val.length})).join("-"):str.trim()).length?"":1===str.length?str.toLowerCase():/^[a-z0-9]+$/.test(str)?str:(str!==str.toLowerCase()&&(str=function preserveCamelCase(str){for(var isLastCharLower=!1,isLastCharUpper=!1,isLastLastCharUpper=!1,i=0;i<str.length;i++){var char=str[i];isLastCharLower&&/[a-zA-Z]/.test(char)&&char.toUpperCase()===char?(str=str.substr(0,i)+"-"+str.substr(i),isLastCharLower=!1,isLastLastCharUpper=isLastCharUpper,isLastCharUpper=!0,i++):isLastCharUpper&&isLastLastCharUpper&&/[a-zA-Z]/.test(char)&&char.toLowerCase()===char?(str=str.substr(0,i-1)+"-"+str.substr(i-1),isLastLastCharUpper=isLastCharUpper,isLastCharUpper=!1,isLastCharLower=!0):(isLastCharLower=char.toLowerCase()===char,isLastLastCharUpper=isLastCharUpper,isLastCharUpper=char.toUpperCase()===char)}return str}(str)),str.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(m,p1){return p1.toUpperCase()})))}}(tribe.utils,window.underscore||_);