File: /home/xluilhul/public_html/wp-content/plugins/elementor/assets/js/packages/utils/utils.js
/******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./packages/packages/libs/utils/src/debounce.ts":
/*!******************************************************!*\
!*** ./packages/packages/libs/utils/src/debounce.ts ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ debounce: function() { return /* binding */ debounce; }
/* harmony export */ });
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function debounce(fn, wait) {
let timer = null;
const cancel = () => {
if (!timer) {
return;
}
clearTimeout(timer);
timer = null;
};
const flush = (...args) => {
cancel();
fn(...args);
};
const run = (...args) => {
cancel();
timer = setTimeout(() => {
fn(...args);
timer = null;
}, wait);
};
const pending = () => !!timer;
run.flush = flush;
run.cancel = cancel;
run.pending = pending;
return run;
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/encoding.ts":
/*!******************************************************!*\
!*** ./packages/packages/libs/utils/src/encoding.ts ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ decodeString: function() { return /* binding */ decodeString; },
/* harmony export */ encodeString: function() { return /* binding */ encodeString; }
/* harmony export */ });
const encodeString = value => {
const binary = Array.from(new TextEncoder().encode(value), b => String.fromCharCode(b)).join('');
return btoa(binary);
};
const decodeString = (value, fallback) => {
try {
const binary = atob(value);
const bytes = new Uint8Array(Array.from(binary, char => char.charCodeAt(0)));
return new TextDecoder().decode(bytes);
} catch {
return fallback !== undefined ? fallback : '';
}
};
/***/ }),
/***/ "./packages/packages/libs/utils/src/errors/create-error.ts":
/*!*****************************************************************!*\
!*** ./packages/packages/libs/utils/src/errors/create-error.ts ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ createError: function() { return /* binding */ createError; }
/* harmony export */ });
/* harmony import */ var _elementor_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./elementor-error */ "./packages/packages/libs/utils/src/errors/elementor-error.ts");
const createError = ({
code,
message
}) => {
return class extends _elementor_error__WEBPACK_IMPORTED_MODULE_0__.ElementorError {
constructor({
cause,
context
} = {}) {
super(message, {
cause,
code,
context
});
}
};
};
/***/ }),
/***/ "./packages/packages/libs/utils/src/errors/elementor-error.ts":
/*!********************************************************************!*\
!*** ./packages/packages/libs/utils/src/errors/elementor-error.ts ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ElementorError: function() { return /* binding */ ElementorError; }
/* harmony export */ });
class ElementorError extends Error {
constructor(message, {
code,
context = null,
cause = null
}) {
super(message, {
cause
});
this.context = context;
this.code = code;
}
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/errors/ensure-error.ts":
/*!*****************************************************************!*\
!*** ./packages/packages/libs/utils/src/errors/ensure-error.ts ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ensureError: function() { return /* binding */ ensureError; }
/* harmony export */ });
const ensureError = error => {
if (error instanceof Error) {
return error;
}
let message;
let cause = null;
try {
message = JSON.stringify(error);
} catch (e) {
cause = e;
message = 'Unable to stringify the thrown value';
}
return new Error(`Unexpected non-error thrown: ${message}`, {
cause
});
};
/***/ }),
/***/ "./packages/packages/libs/utils/src/errors/index.ts":
/*!**********************************************************!*\
!*** ./packages/packages/libs/utils/src/errors/index.ts ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ElementorError: function() { return /* reexport safe */ _elementor_error__WEBPACK_IMPORTED_MODULE_0__.ElementorError; },
/* harmony export */ createError: function() { return /* reexport safe */ _create_error__WEBPACK_IMPORTED_MODULE_1__.createError; },
/* harmony export */ ensureError: function() { return /* reexport safe */ _ensure_error__WEBPACK_IMPORTED_MODULE_2__.ensureError; }
/* harmony export */ });
/* harmony import */ var _elementor_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./elementor-error */ "./packages/packages/libs/utils/src/errors/elementor-error.ts");
/* harmony import */ var _create_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-error */ "./packages/packages/libs/utils/src/errors/create-error.ts");
/* harmony import */ var _ensure_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ensure-error */ "./packages/packages/libs/utils/src/errors/ensure-error.ts");
/***/ }),
/***/ "./packages/packages/libs/utils/src/generate-unique-id.ts":
/*!****************************************************************!*\
!*** ./packages/packages/libs/utils/src/generate-unique-id.ts ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ generateUniqueId: function() { return /* binding */ generateUniqueId; }
/* harmony export */ });
function generateUniqueId(prefix = '') {
const prefixStr = prefix ? `${prefix}-` : '';
return `${prefixStr}${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/hash.ts":
/*!**************************************************!*\
!*** ./packages/packages/libs/utils/src/hash.ts ***!
\**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ hash: function() { return /* binding */ hash; },
/* harmony export */ hashString: function() { return /* binding */ hashString; }
/* harmony export */ });
/* eslint-disable no-bitwise */
// Inspired by:
// https://github.com/TanStack/query/blob/66ea5f2fc/packages/query-core/src/utils.ts#L212
function hash(obj) {
return JSON.stringify(obj, (_, value) => isPlainObject(value) ? Object.keys(value).sort().reduce((result, key) => {
result[key] = value[key];
return result;
}, {}) : value);
}
function isPlainObject(value) {
return !!value && typeof value === 'object' && !Array.isArray(value);
}
// Inspired by:
// https://github.com/darkskyapp/string-hash/blob/master/index.js
function hashString(str, length) {
let hashBasis = 5381;
let i = str.length;
while (i) {
hashBasis = hashBasis * 33 ^ str.charCodeAt(--i);
}
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
* integers. Since we want the results to be always positive, convert the
* signed int to an unsigned by doing an unsigned bitshift. */
const result = (hashBasis >>> 0).toString(36);
if (length === undefined) {
return result;
}
const sliced = result.slice(-length);
return sliced.padStart(length, '0');
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/is-pro.ts":
/*!****************************************************!*\
!*** ./packages/packages/libs/utils/src/is-pro.ts ***!
\****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ hasProInstalled: function() { return /* binding */ hasProInstalled; },
/* harmony export */ isProActive: function() { return /* binding */ isProActive; },
/* harmony export */ isProAtLeast: function() { return /* binding */ isProAtLeast; }
/* harmony export */ });
function hasProInstalled() {
return window.elementor?.helpers?.hasPro?.() ?? false;
}
function isProActive() {
if (!hasProInstalled()) {
return false;
}
return window.elementorPro?.config?.isActive ?? false;
}
function getProVersion() {
return window.elementorPro?.config?.version ?? '0.0';
}
function isProAtLeast(targetVersion) {
const version = getProVersion();
if (!version) {
return false;
}
const [major, minor] = version.split('.').map(Number);
const [targetMajor, targetMinor] = targetVersion.split('.').map(Number);
return major > targetMajor || major === targetMajor && minor >= targetMinor;
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/string-helpers.ts":
/*!************************************************************!*\
!*** ./packages/packages/libs/utils/src/string-helpers.ts ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ capitalize: function() { return /* binding */ capitalize; }
/* harmony export */ });
const capitalize = str => {
return str.charAt(0).toUpperCase() + str.slice(1);
};
/***/ }),
/***/ "./packages/packages/libs/utils/src/throttle.ts":
/*!******************************************************!*\
!*** ./packages/packages/libs/utils/src/throttle.ts ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ throttle: function() { return /* binding */ throttle; }
/* harmony export */ });
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function throttle(fn, wait, shouldExecuteIgnoredCalls = false) {
let timer = null;
let ignoredExecution = false;
const cancel = () => {
if (!timer) {
return;
}
clearTimeout(timer);
timer = null;
};
const flush = (...args) => {
cancel();
fn(...args);
};
const run = (...args) => {
if (timer) {
ignoredExecution = true;
return;
}
fn(...args);
timer = setTimeout(() => {
timer = null;
if (ignoredExecution && shouldExecuteIgnoredCalls) {
fn(...args);
}
ignoredExecution = false;
}, wait);
};
const pending = () => !!timer;
run.flush = flush;
run.cancel = cancel;
run.pending = pending;
return run;
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/translations.ts":
/*!**********************************************************!*\
!*** ./packages/packages/libs/utils/src/translations.ts ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ createTranslate: function() { return /* binding */ createTranslate; }
/* harmony export */ });
function createTranslate({
configKey,
defaultStrings = {}
}) {
return (key, ...args) => {
const appConfig = window.elementorAppConfig;
const remoteStrings = appConfig?.[configKey]?.translations;
const strings = {
...defaultStrings,
...remoteStrings
};
let template = strings[key];
if (!template) {
return key;
}
for (let i = 0; i < args.length; i++) {
template = template.replace(`%${i + 1}$s`, args[i]);
template = template.replace('%s', args[i]);
}
return template;
};
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/use-debounce-state.ts":
/*!****************************************************************!*\
!*** ./packages/packages/libs/utils/src/use-debounce-state.ts ***!
\****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ useDebounceState: function() { return /* binding */ useDebounceState; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./debounce */ "./packages/packages/libs/utils/src/debounce.ts");
function useDebounceState(options = {}) {
const {
delay = 300,
initialValue = ''
} = options;
const [debouncedValue, setDebouncedValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue);
const [inputValue, setInputValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue);
const runRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
return () => {
runRef.current?.cancel?.();
};
}, []);
const debouncedSetValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(val => {
runRef.current?.cancel?.();
runRef.current = (0,_debounce__WEBPACK_IMPORTED_MODULE_1__.debounce)(() => {
setDebouncedValue(val);
}, delay);
runRef.current();
}, [delay]);
const handleChange = val => {
setInputValue(val);
debouncedSetValue(val);
};
return {
debouncedValue,
inputValue,
handleChange,
setInputValue
};
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/use-debounced-callback.ts":
/*!********************************************************************!*\
!*** ./packages/packages/libs/utils/src/use-debounced-callback.ts ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ useDebouncedCallback: function() { return /* binding */ useDebouncedCallback; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./debounce */ "./packages/packages/libs/utils/src/debounce.ts");
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function useDebouncedCallback(callback, delay) {
const callbackRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(callback);
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
callbackRef.current = callback;
}, [callback]);
const debounced = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => (0,_debounce__WEBPACK_IMPORTED_MODULE_1__.debounce)((...args) => callbackRef.current(...args), delay), [delay]);
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
return () => {
debounced.cancel();
};
}, [debounced]);
return debounced;
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/use-search-state.ts":
/*!**************************************************************!*\
!*** ./packages/packages/libs/utils/src/use-search-state.ts ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ useSearchState: function() { return /* binding */ useSearchState; }
/* harmony export */ });
/* harmony import */ var _use_debounce_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./use-debounce-state */ "./packages/packages/libs/utils/src/use-debounce-state.ts");
function useSearchState({
localStorageKey
}) {
const getInitialSearchValue = () => {
if (localStorageKey) {
const storedValue = localStorage.getItem(localStorageKey);
if (storedValue) {
localStorage.removeItem(localStorageKey);
return storedValue;
}
}
return '';
};
const {
debouncedValue,
inputValue,
handleChange
} = (0,_use_debounce_state__WEBPACK_IMPORTED_MODULE_0__.useDebounceState)({
delay: 300,
initialValue: getInitialSearchValue()
});
return {
debouncedValue,
inputValue,
handleChange
};
}
/***/ }),
/***/ "./packages/packages/libs/utils/src/version.ts":
/*!*****************************************************!*\
!*** ./packages/packages/libs/utils/src/version.ts ***!
\*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ compareVersions: function() { return /* binding */ compareVersions; },
/* harmony export */ isVersionGreaterOrEqual: function() { return /* binding */ isVersionGreaterOrEqual; },
/* harmony export */ isVersionLessThan: function() { return /* binding */ isVersionLessThan; }
/* harmony export */ });
const compareVersions = (a, b) => {
const aParts = String(a || '0.0.0').split('.').map(Number);
const bParts = String(b || '0.0.0').split('.').map(Number);
for (let i = 0; i < Math.max(aParts.length, bParts.length); i++) {
const aVal = aParts[i] || 0;
const bVal = bParts[i] || 0;
if (aVal !== bVal) {
return aVal - bVal;
}
}
return 0;
};
const isVersionLessThan = (a, b) => {
return compareVersions(a, b) < 0;
};
const isVersionGreaterOrEqual = (a, b) => {
return compareVersions(a, b) >= 0;
};
/***/ }),
/***/ "react":
/*!**************************!*\
!*** external ["React"] ***!
\**************************/
/***/ (function(module) {
module.exports = window["React"];
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ !function() {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function() { return module['default']; } :
/******/ function() { return module; };
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ !function() {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function(exports, definition) {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
!function() {
/*!***************************************************!*\
!*** ./packages/packages/libs/utils/src/index.ts ***!
\***************************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ElementorError: function() { return /* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_0__.ElementorError; },
/* harmony export */ capitalize: function() { return /* reexport safe */ _string_helpers__WEBPACK_IMPORTED_MODULE_9__.capitalize; },
/* harmony export */ compareVersions: function() { return /* reexport safe */ _version__WEBPACK_IMPORTED_MODULE_10__.compareVersions; },
/* harmony export */ createError: function() { return /* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_0__.createError; },
/* harmony export */ createTranslate: function() { return /* reexport safe */ _translations__WEBPACK_IMPORTED_MODULE_12__.createTranslate; },
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce__WEBPACK_IMPORTED_MODULE_3__.debounce; },
/* harmony export */ decodeString: function() { return /* reexport safe */ _encoding__WEBPACK_IMPORTED_MODULE_5__.decodeString; },
/* harmony export */ encodeString: function() { return /* reexport safe */ _encoding__WEBPACK_IMPORTED_MODULE_5__.encodeString; },
/* harmony export */ ensureError: function() { return /* reexport safe */ _errors__WEBPACK_IMPORTED_MODULE_0__.ensureError; },
/* harmony export */ generateUniqueId: function() { return /* reexport safe */ _generate_unique_id__WEBPACK_IMPORTED_MODULE_8__.generateUniqueId; },
/* harmony export */ hasProInstalled: function() { return /* reexport safe */ _is_pro__WEBPACK_IMPORTED_MODULE_11__.hasProInstalled; },
/* harmony export */ hash: function() { return /* reexport safe */ _hash__WEBPACK_IMPORTED_MODULE_6__.hash; },
/* harmony export */ hashString: function() { return /* reexport safe */ _hash__WEBPACK_IMPORTED_MODULE_6__.hashString; },
/* harmony export */ isProActive: function() { return /* reexport safe */ _is_pro__WEBPACK_IMPORTED_MODULE_11__.isProActive; },
/* harmony export */ isProAtLeast: function() { return /* reexport safe */ _is_pro__WEBPACK_IMPORTED_MODULE_11__.isProAtLeast; },
/* harmony export */ isVersionGreaterOrEqual: function() { return /* reexport safe */ _version__WEBPACK_IMPORTED_MODULE_10__.isVersionGreaterOrEqual; },
/* harmony export */ isVersionLessThan: function() { return /* reexport safe */ _version__WEBPACK_IMPORTED_MODULE_10__.isVersionLessThan; },
/* harmony export */ throttle: function() { return /* reexport safe */ _throttle__WEBPACK_IMPORTED_MODULE_4__.throttle; },
/* harmony export */ useDebounceState: function() { return /* reexport safe */ _use_debounce_state__WEBPACK_IMPORTED_MODULE_1__.useDebounceState; },
/* harmony export */ useDebouncedCallback: function() { return /* reexport safe */ _use_debounced_callback__WEBPACK_IMPORTED_MODULE_2__.useDebouncedCallback; },
/* harmony export */ useSearchState: function() { return /* reexport safe */ _use_search_state__WEBPACK_IMPORTED_MODULE_7__.useSearchState; }
/* harmony export */ });
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./errors */ "./packages/packages/libs/utils/src/errors/index.ts");
/* harmony import */ var _use_debounce_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use-debounce-state */ "./packages/packages/libs/utils/src/use-debounce-state.ts");
/* harmony import */ var _use_debounced_callback__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use-debounced-callback */ "./packages/packages/libs/utils/src/use-debounced-callback.ts");
/* harmony import */ var _debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./debounce */ "./packages/packages/libs/utils/src/debounce.ts");
/* harmony import */ var _throttle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./throttle */ "./packages/packages/libs/utils/src/throttle.ts");
/* harmony import */ var _encoding__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./encoding */ "./packages/packages/libs/utils/src/encoding.ts");
/* harmony import */ var _hash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hash */ "./packages/packages/libs/utils/src/hash.ts");
/* harmony import */ var _use_search_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./use-search-state */ "./packages/packages/libs/utils/src/use-search-state.ts");
/* harmony import */ var _generate_unique_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./generate-unique-id */ "./packages/packages/libs/utils/src/generate-unique-id.ts");
/* harmony import */ var _string_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./string-helpers */ "./packages/packages/libs/utils/src/string-helpers.ts");
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./version */ "./packages/packages/libs/utils/src/version.ts");
/* harmony import */ var _is_pro__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./is-pro */ "./packages/packages/libs/utils/src/is-pro.ts");
/* harmony import */ var _translations__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./translations */ "./packages/packages/libs/utils/src/translations.ts");
}();
(window.elementorV2 = window.elementorV2 || {}).utils = __webpack_exports__;
/******/ })()
;
window.elementorV2.utils?.init?.();
//# sourceMappingURL=utils.js.map