/*! elementor - v3.25.0 - 10-12-2024 */
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "../modules/notes/assets/js/e-component.js":
/*!*************************************************!*\
!*** ../modules/notes/assets/js/e-component.js ***!
\*************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
var modules = _interopRequireWildcard(__webpack_require__(/*! ./modules/ */ "../modules/notes/assets/js/modules/index.js"));
var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks/ */ "../modules/notes/assets/js/hooks/index.js"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var EComponent = /*#__PURE__*/function (_$e$modules$Component) {
(0, _inherits2.default)(EComponent, _$e$modules$Component);
var _super = _createSuper(EComponent);
function EComponent(args) {
var _this;
(0, _classCallCheck2.default)(this, EComponent);
_this = _super.call(this, args);
_this.loadModules();
return _this;
}
/**
* @return {string} The namespace of the component
*/
(0, _createClass2.default)(EComponent, [{
key: "getNamespace",
value: function getNamespace() {
return 'notes';
}
/**
* @return {*} All the hooks
*/
}, {
key: "defaultHooks",
value: function defaultHooks() {
return this.importHooks(hooks);
}
}, {
key: "loadModules",
value: function loadModules() {
for (var key in modules) {
new modules[key]();
}
}
}]);
return EComponent;
}($e.modules.ComponentBase);
exports["default"] = EComponent;
/***/ }),
/***/ "../modules/notes/assets/js/hooks/index.js":
/*!*************************************************!*\
!*** ../modules/notes/assets/js/hooks/index.js ***!
\*************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
Object.defineProperty(exports, "NotesAddPanelMenuItem", ({
enumerable: true,
get: function get() {
return _notesAddPanelMenuItem.NotesAddPanelMenuItem;
}
}));
var _notesAddPanelMenuItem = __webpack_require__(/*! ./ui/panel/state-ready/notes-add-panel-menu-item */ "../modules/notes/assets/js/hooks/ui/panel/state-ready/notes-add-panel-menu-item.js");
/***/ }),
/***/ "../modules/notes/assets/js/hooks/ui/panel/state-ready/notes-add-panel-menu-item.js":
/*!******************************************************************************************!*\
!*** ../modules/notes/assets/js/hooks/ui/panel/state-ready/notes-add-panel-menu-item.js ***!
\******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = exports.NotesAddPanelMenuItem = void 0;
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var NotesAddPanelMenuItem = /*#__PURE__*/function (_$e$modules$hookUI$Af) {
(0, _inherits2.default)(NotesAddPanelMenuItem, _$e$modules$hookUI$Af);
var _super = _createSuper(NotesAddPanelMenuItem);
function NotesAddPanelMenuItem() {
(0, _classCallCheck2.default)(this, NotesAddPanelMenuItem);
return _super.apply(this, arguments);
}
(0, _createClass2.default)(NotesAddPanelMenuItem, [{
key: "getCommand",
value: function getCommand() {
return 'panel/state-ready';
}
}, {
key: "getId",
value: function getId() {
return 'notes-add-panel-menu-item';
}
}, {
key: "apply",
value: function apply() {
elementor.modules.layouts.panel.pages.menu.Menu.addItem({
name: 'notes',
icon: 'eicon-commenting-o',
title: __('Notes', 'elementor') + '',
callback: function callback() {
var hasProAndNotConnected = elementor.helpers.hasProAndNotConnected();
elementor.promotion.showDialog({
title: __('Notes', 'elementor'),
content: __('With Notes, teamwork gets even better. Stay in sync with comments, feedback & more on your website.', 'elementor'),
position: {
blockStart: '-3',
inlineStart: '+10'
},
targetElement: this.$el,
actionButton: {
url: hasProAndNotConnected ? elementorProEditorConfig.urls.connect : elementor.config.promotions.notes.upgrade_url || 'https://go.elementor.com/go-pro-notes/',
text: hasProAndNotConnected ? __('Connect & Activate', 'elementor') : __('Upgrade', 'elementor')
}
});
}
}, 'navigate_from_page', 'finder');
}
}]);
return NotesAddPanelMenuItem;
}($e.modules.hookUI.After);
exports.NotesAddPanelMenuItem = NotesAddPanelMenuItem;
var _default = NotesAddPanelMenuItem;
exports["default"] = _default;
/***/ }),
/***/ "../modules/notes/assets/js/modules/context-menu/notes-context-menu.js":
/*!*****************************************************************************!*\
!*** ../modules/notes/assets/js/modules/context-menu/notes-context-menu.js ***!
\*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = exports.NotesContextMenu = void 0;
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var NotesContextMenu = /*#__PURE__*/function (_elementorModules$edi) {
(0, _inherits2.default)(NotesContextMenu, _elementorModules$edi);
var _super = _createSuper(NotesContextMenu);
function NotesContextMenu() {
(0, _classCallCheck2.default)(this, NotesContextMenu);
return _super.apply(this, arguments);
}
(0, _createClass2.default)(NotesContextMenu, [{
key: "onInit",
value: function onInit() {
this.contextMenuNotesGroup();
}
}, {
key: "contextMenuNotesGroup",
value: function contextMenuNotesGroup() {
var _this = this;
var elTypes = ['widget', 'section', 'column', 'container'];
elTypes.forEach(function (type) {
elementor.hooks.addFilter("elements/".concat(type, "/contextMenuGroups"), _this.contextMenuAddGroup);
});
}
/**
* Append the 'Notes' context menu group
*
* @since 3.8.0
*
* @param {Array} groups
* @return {Array} The updated groups.
*/
}, {
key: "contextMenuAddGroup",
value: function contextMenuAddGroup(groups) {
var deleteGroup = _.findWhere(groups, {
name: 'delete'
});
var deleteGroupIndex = groups.indexOf(deleteGroup);
if (-1 === deleteGroupIndex) {
deleteGroupIndex = groups.length;
}
groups.splice(deleteGroupIndex, 0, {
name: 'notes',
actions: [{
name: 'open_notes',
title: __('Notes', 'elementor'),
shortcut: '',
promotionURL: 'https://go.elementor.com/go-pro-notes-context-menu/',
isEnabled: function isEnabled() {
return false;
},
callback: function callback() {}
}]
});
return groups;
}
}]);
return NotesContextMenu;
}(elementorModules.editor.utils.Module);
exports.NotesContextMenu = NotesContextMenu;
var _default = NotesContextMenu;
exports["default"] = _default;
/***/ }),
/***/ "../modules/notes/assets/js/modules/index.js":
/*!***************************************************!*\
!*** ../modules/notes/assets/js/modules/index.js ***!
\***************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
Object.defineProperty(exports, "NotesContextMenu", ({
enumerable: true,
get: function get() {
return _notesContextMenu.NotesContextMenu;
}
}));
var _notesContextMenu = __webpack_require__(/*! ./context-menu/notes-context-menu */ "../modules/notes/assets/js/modules/context-menu/notes-context-menu.js");
/***/ }),
/***/ "@wordpress/i18n":
/*!**************************!*\
!*** external "wp.i18n" ***!
\**************************/
/***/ ((module) => {
"use strict";
module.exports = wp.i18n;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
/*!***********************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
\***********************************************************************/
/***/ ((module) => {
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
\****************************************************************/
/***/ ((module) => {
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
/*!*************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
\*************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
\****************************************************************/
/***/ ((module) => {
function _getPrototypeOf(o) {
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
return _getPrototypeOf(o);
}
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
/*!**********************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
\**********************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) setPrototypeOf(subClass, superClass);
}
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!***********************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\***********************************************************************/
/***/ ((module) => {
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
/*!***************************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
\***************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
function _possibleConstructorReturn(self, call) {
if (call && (_typeof(call) === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return assertThisInitialized(self);
}
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
\****************************************************************/
/***/ ((module) => {
function _setPrototypeOf(o, p) {
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
return _setPrototypeOf(o, p);
}
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
/*!*************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
\*************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
function toPrimitive(t, r) {
if ("object" != _typeof(t) || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != _typeof(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
/*!***************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
\***************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
function toPropertyKey(t) {
var i = toPrimitive(t, "string");
return "symbol" == _typeof(i) ? i : String(i);
}
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
/*!********************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
\********************************************************/
/***/ ((module) => {
function _typeof(o) {
"@babel/helpers - typeof";
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ })
/******/ });
/************************************************************************/
/******/ // 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;
/******/ }
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
/*!*******************************************!*\
!*** ../modules/notes/assets/js/notes.js ***!
\*******************************************/
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
var _eComponent = _interopRequireDefault(__webpack_require__(/*! ./e-component */ "../modules/notes/assets/js/e-component.js"));
window.top.$e.components.register(new _eComponent.default());
})();
/******/ })()
;
//# sourceMappingURL=notes.js.mapimport { DropZone, Dialog } from '@elementor/app-ui';
import { Context as TemplatesContext, TemplatesProvider } from '../context/templates';
import BackButton from '../molecules/back-button';
export default function Import() {
const { importTemplates, action, resetActionState } = React.useContext( TemplatesContext ),
[ importedTemplate, setImportedTemplate ] = React.useState( null ),
isImport = React.useMemo( () => action.current === TemplatesProvider.actions.IMPORT, [ action ] ),
isUploading = React.useMemo( () => isImport && action.loading, [ action ] ),
hasError = React.useMemo( () => isImport && action.error, [ action ] );
const upload = React.useCallback( ( file ) => {
if ( isUploading ) {
return;
}
readFile( file )
.then( ( fileData ) => importTemplates( { fileName: file.name, fileData } ) )
.then( ( response ) => {
// For now it show a dialog for the first template ONLY!
setImportedTemplate( response.data[ 0 ] );
} );
}, [] );
return (
{
importedTemplate &&
);
}
function readFile( file ) {
return new Promise( ( ( resolve ) => {
const fileReader = new FileReader();
fileReader.readAsDataURL( file );
fileReader.onload = ( event ) => {
// Replace the mime type that prepended to the base64 with empty string and return a
// resolved promise only with the base64 string.
resolve( event.target.result.replace( /^[^,]+,/, '' ) );
};
} ) );
}
import { useEffect } from 'react';
import { Dialog } from '@elementor/app-ui';
import { Context as TemplatesContext } from '../context/templates';
export default function DialogRename( props ) {
const { findTemplateItemInState, updateTemplate } = React.useContext( TemplatesContext ),
template = findTemplateItemInState( props.id );
const [ title, setTitle ] = React.useState( '' );
useEffect( () => {
// The "title" state should be updated if the template title changed.
if ( template ) {
setTitle( template.title );
}
}, [ template ] );
const closeDialog = ( shouldUpdate ) => {
props.setId( null );
if ( shouldUpdate ) {
updateTemplate( props.id, { post_title: title } );
}
};
if ( ! props.id ) {
return '';
}
return (
closeDialog( true ) }
approveButtonOnClick={ () => closeDialog( true ) }
approveButtonColor="primary"
dismissButtonText={ __( 'Cancel', 'elementor-pro' ) }
dismissButtonOnClick={ () => closeDialog() }
onClose={ () => closeDialog() }
>
setTitle( e.target.value ) }
/>
);
}
DialogRename.propTypes = {
id: PropTypes.number,
setId: PropTypes.func.isRequired,
};
(function () {
var $ = jQuery;
function handleLiveEditor() {
// close model events.
$('.eicon-close').on('click', closeModal);
$('#pa-insert-live-temp').on('click', function () {
$('body').attr('data-pa-liveeditor-load', 'true');
closeModal(true);
});
$(document).on('click', '.premium-live-editor-iframe-modal', function (e) {
if ($(e.target).closest(".dialog-lightbox-widget-content").length < 1) {
closeModal();
}
});
// resize model event.
$('.premium-live-editor-iframe-modal .premium-expand').on('click', function () {
if ($(this).find(' > i').hasClass('eicon-frame-expand')) {
$(this).find('i.eicon-frame-expand').removeClass('eicon-frame-expand').addClass('eicon-frame-minimize').attr('title', 'Minimize');
$('.premium-live-editor-iframe-modal').addClass('premium-modal-expanded');
} else {
minimizeModal(this);
}
});
elementor.channels.editor.on('createLiveTemp', function (e) {
var widgetId = getTemplateKey(e),
tempType = getTemplateType(e),
$modalContainer = $('.premium-live-editor-iframe-modal'),
paIframe = $modalContainer.find("#pa-live-editor-control-iframe"),
$lightboxLoading = $modalContainer.find(".dialog-lightbox-loading"),
lightboxType = $modalContainer.find(".dialog-type-lightbox"),
tempSelectorId = e.model.attributes.name.split('_live')[0],
liveTempId = ['premium_content_toggle_second_content_templates', 'fixed_template', 'right_side_template'].includes(tempSelectorId) ? 'live_temp_content_extra' : 'live_temp_content',
settingsToChange = {};
// multiscroll has two temps in each repeater item => both temps will have the same id so we need to distinguish one of them.
if ('right_side_template' === tempSelectorId) {
widgetId += '2';
}
// show modal.
lightboxType.show();
$modalContainer.show();
$lightboxLoading.show();
paIframe.contents().find("#elementor-loading").show();
paIframe.css("z-index", "-1");
$.ajax({
type: 'POST',
url: liveEditor.ajaxurl,
dataType: 'JSON',
data: {
action: 'handle_live_editor',
security: liveEditor.nonce,
key: widgetId,
type: tempType
},
success: function (res) {
paIframe.attr("src", res.data.url);
paIframe.attr("data-premium-temp-id", res.data.id);
if ('loop' === tempType) {
paIframe.attr("data-premium-temp-type", tempType);
}
$('#premium-live-temp-title').val(res.data.title);
paIframe.on("load", function () {
$lightboxLoading.hide();
paIframe.show();
$modalContainer.find('.premium-live-editor-title').css('display', 'flex');
paIframe.contents().find("#elementor-loading").hide();
paIframe.css("z-index", "1");
});
clearInterval(window.paLiveEditorInterval);
window.paLiveEditorInterval = setInterval(function () {
var loadTemplate = $('body').attr('data-pa-liveeditor-load');
if ('true' === loadTemplate) {
$('body').attr('data-pa-liveeditor-load', 'false');
settingsToChange[tempSelectorId] = '';
settingsToChange[liveTempId] = $('#premium-live-temp-title').val();
if (['loop', 'grid'].includes(tempType)) {
settingsToChange['pa_' + tempType + '_live_temp_id'] = res.data.id;
}
$(".premium-live-temp-title").removeClass("control-hidden");
$e.run('document/elements/settings', { container: e.container, settings: settingsToChange, options: { external: !0 } });
var tempTitle = $('#premium-live-temp-title').val();
if (tempTitle && tempTitle !== res.data.title) {
updateTemplateTitle(tempTitle, res.data.id);
}
}
}, 1000);
},
error: function (err) {
console.log(err);
}
});
});
}
/**
* Helper Funcitons.
*/
function checkTempValidity(tempID, tempType) {
if ('' !== tempID) {
$.ajax({
type: 'POST',
url: liveEditor.ajaxurl,
dataType: 'JSON',
data: {
action: 'check_temp_validity',
security: liveEditor.nonce,
templateID: tempID,
tempType: tempType
},
success: function (res) {
console.log(res.data);
},
error: function (err) {
console.log(err);
}
});
}
}
/**
* Generate the temp key
* @param {Object} e click event
* @return {string}
*/
function getTemplateKey(e) {
var widget = e.options.container.view.$el,
// control_id = e._parent.model.attributes._id ? e._parent.model.attributes._id : e.model.cid;
control_id = e._parent.model.attributes._id ? e._parent.model.attributes._id : '';
return widget.data('id') + control_id;
}
/**
* Check the template type.
* returns 'loop' if the button type contains "loop-item" to indicate we're creating/editing a loop template.
*
* @param {Object} e click event
* @return {string}
*/
function getTemplateType(e) {
var classes = e.model.attributes.button_type;
if (classes.includes('loop-temp')) {
return 'loop';
} else if (classes.includes('grid-temp')) {
return 'grid';
}
// return classes.includes('loop-temp') ? 'loop' : '';
}
function minimizeModal(_this) {
$(_this).find('i.eicon-frame-minimize').removeClass('eicon-frame-minimize').addClass('eicon-frame-expand').attr('title', 'Expand');
$('.premium-live-editor-iframe-modal').removeClass('premium-modal-expanded');
}
function updateTemplateTitle(title, id) {
$.ajax({
type: 'POST',
url: liveEditor.ajaxurl,
dataType: 'JSON',
data: {
action: 'update_template_title',
security: liveEditor.nonce,
title: title,
id: id
},
success: function (res) {
console.log('Template Title Updated.');
},
error: function (err) {
console.log(err);
}
});
}
function closeModal(inserted = false) {
$('.premium-live-editor-iframe-modal').css('display', 'none');
$(".premium-live-temp-title input").attr('disabled', 'true');
minimizeModal($('.premium-live-editor-iframe-modal .premium-expand'));
if (!inserted) {
var tempId = $(".premium-live-editor-iframe-modal #pa-live-editor-control-iframe").attr('data-premium-temp-id'),
tempType = $(".premium-live-editor-iframe-modal #pa-live-editor-control-iframe").attr('data-premium-temp-type');
if (undefined !== tempId && '' !== tempId) {
checkTempValidity(tempId, tempType);
}
}
// reset temp id/src attribute.
$(".premium-live-editor-iframe-modal #pa-live-editor-control-iframe").attr({
'data-premium-temp-id': '',
'data-premium-temp-type': '',
'src': ''
});
}
function checkLiveTemplateControl() {
setTimeout(function () {
$(".premium-live-temp-title input").each(function (index, input) {
$(input).attr('disabled', 'true');
if ('' != $(input).val()) {
$(input).closest(".premium-live-temp-title").removeClass("control-hidden");
}
});
$('.premium-cf-form-id input').attr('disabled', 'true');
}, 500);
}
elementor.channels.editor.on('section:activated', checkLiveTemplateControl);
$(window).on('elementor:init', handleLiveEditor);
})(jQuery);(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[41],{823:function(e,t,r){"use strict";r.r(t);var l=r(0);function a(){return(a=Object.assign||function(e){for(var t=1;t
/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 874:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var Import = __webpack_require__(936);
var Restore = function Restore() {
var model = new Import();
model.setStatus({
type: 'pro',
message: ai1wm_locale.restore_from_file
});
};
module.exports = Restore;
/***/ }),
/***/ 12:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var Modal = __webpack_require__(326),
$ = jQuery;
var Export = function Export() {
var self = this; // Set params
this.params = []; // Set modal
this.modal = new Modal(); // Set stop listener
this.modal.onStop = function (options) {
self.onStop(options);
};
};
Export.prototype.setParams = function (params) {
this.params = Ai1wm.Util.list(params);
};
Export.prototype.start = function (options, retries) {
var self = this;
retries = retries || 0; // Reset stop flag
if (retries === 0) {
this.stopExport(false);
} // Stop running export
if (this.isExportStopped()) {
return;
} // Initializing beforeunload event
$(window).bind('beforeunload', function () {
return ai1wm_locale.stop_exporting_your_website;
}); // Set initial status
this.setStatus({
type: 'info',
message: ai1wm_locale.preparing_to_export
}); // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_export.secret_key
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Export
$.ajax({
url: ai1wm_export.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
self.getStatus();
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: ai1wm_locale.unable_to_start_the_export
});
return;
}
retries++;
setTimeout(self.start.bind(self, options, retries), timeout);
});
};
Export.prototype.run = function (params, retries) {
var self = this;
retries = retries || 0; // Stop running export
if (this.isExportStopped()) {
return;
} // Export
$.ajax({
url: ai1wm_export.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: ai1wm_locale.unable_to_run_the_export
});
return;
}
retries++;
setTimeout(self.run.bind(self, params, retries), timeout);
});
};
Export.prototype.clean = function (options, retries) {
var self = this;
retries = retries || 0; // Reset stop flag
if (retries === 0) {
this.stopExport(true);
} // Set initial status
this.setStatus({
type: 'info',
message: ai1wm_locale.please_wait_stopping_the_export
}); // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_export.secret_key
}).concat({
name: 'priority',
value: 300
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Clean
$.ajax({
url: ai1wm_export.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
// Unbinding the beforeunload event when we stop exporting
$(window).unbind('beforeunload'); // Destroy modal
self.modal.destroy();
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopExport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_export,
message: ai1wm_locale.unable_to_stop_the_export
});
return;
}
retries++;
setTimeout(self.clean.bind(self, options, retries), timeout);
});
};
Export.prototype.getStatus = function () {
var self = this; // Stop getting status
if (this.isExportStopped()) {
return;
}
this.statusXhr = $.ajax({
url: ai1wm_export.status.url,
type: 'GET',
dataType: 'json',
cache: false,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (params) {
if (params) {
self.setStatus(params); // Next status
switch (params.type) {
case 'done':
case 'error':
case 'download':
// Unbinding beforeunload event when any case is performed
$(window).unbind('beforeunload');
return;
}
} // Export is not done yet, let's check status in 3 seconds
setTimeout(self.getStatus.bind(self), 3000);
}).fail(function () {
// Export is not done yet, let's check status in 3 seconds
setTimeout(self.getStatus.bind(self), 3000);
});
};
Export.prototype.setStatus = function (params) {
this.modal.render(params);
};
Export.prototype.onStop = function (options) {
this.clean(options);
};
Export.prototype.stopExport = function (isStopped) {
try {
if (isStopped && this.statusXhr) {
this.statusXhr.abort();
}
} finally {
this.isStopped = isStopped;
}
};
Export.prototype.isExportStopped = function () {
return this.isStopped;
};
module.exports = Export;
/***/ }),
/***/ 326:
/***/ (function(module) {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var $ = jQuery;
var Modal = function Modal() {
var self = this; // Error Modal
this.error = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create title
var title = $('').addClass('ai1wm-title-red').text(params.title); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_export); // Append close button to action
action.append(closeButton); // Append title to section
header.append(title); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Info Modal
this.info = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold loader
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create loader
var loader = $(''); // Create stop export
var stopButton = $('').on('click', function () {
stopButton.attr('disabled', 'disabled');
self.onStop();
}); // Append text to stop button
stopButton.append(' ' + ai1wm_locale.stop_export); // Append stop button to action
action.append(stopButton); // Append loader to header
header.append(loader); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Done Modal
this.done = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create title
var title = $('').addClass('ai1wm-title-green').text(params.title); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_export); // Append close button to action
action.append(closeButton); // Append title to section
header.append(title); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Download Modal
this.download = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
});
var counter = $('.ai1wm-menu-count'); // Update counter text
counter.text(+counter.text() + 1);
if (counter.text() > 1) {
counter.prop('title', ai1wm_locale.backups_count_plural.replace('%d', counter.text()));
} else {
counter.removeClass('ai1wm-menu-hide');
counter.prop('title', ai1wm_locale.backups_count_singular.replace('%d', counter.text()));
} // Append text to close button
closeButton.append(ai1wm_locale.close_export); // Append close button to action
action.append(closeButton); // Append message to section
section.append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Create the overlay
this.overlay = $(''); // Create the modal container
this.modal = $('');
$('body').append(this.overlay) // Append overlay to body
.append(this.modal); // Append modal to body
};
Modal.prototype.render = function (params) {
$(document).trigger('ai1wm-export-status', params); // Show modal
switch (params.type) {
case 'error':
this.error(params);
break;
case 'info':
this.info(params);
break;
case 'done':
this.done(params);
break;
case 'download':
this.download(params);
break;
}
};
Modal.prototype.destroy = function () {
this.modal.hide();
this.overlay.hide();
};
module.exports = Modal;
/***/ }),
/***/ 936:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var Modal = __webpack_require__(544),
$ = jQuery;
var Import = function Import() {
var self = this; // Set params
this.params = []; // Set modal
this.modal = new Modal(); // Set confirm listener
this.modal.onConfirm = function (options) {
self.onConfirm(options);
}; // Set blogs listener
this.modal.onBlogs = function (options) {
self.onBlogs(options);
}; // Set stop listener
this.modal.onStop = function (options) {
self.onStop(options);
}; // Set disk space listener
this.modal.onDiskSpaceConfirm = function (options) {
self.onDiskSpaceConfirm(options);
}; // Set decrypt password listener
this.modal.onDecryptPassword = function (password, options) {
self.onDecryptPassword(password, options);
};
};
Import.prototype.setParams = function (params) {
this.params = Ai1wm.Util.list(params);
};
Import.prototype.start = function (options, retries) {
var self = this;
retries = retries || 0; // Reset stop flag
if (retries === 0) {
this.stopImport(false);
} // Stop running import
if (this.isImportStopped()) {
return;
} // Initializing beforeunload event
$(window).bind('beforeunload', function () {
return ai1wm_locale.stop_importing_your_website;
}); // Set initial status
this.setStatus({
type: 'info',
message: ai1wm_locale.preparing_to_import
}); // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_import.secret_key
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Import
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
self.getStatus();
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: ai1wm_locale.unable_to_start_the_import
});
return;
}
retries++;
setTimeout(self.start.bind(self, options, retries), timeout);
});
};
Import.prototype.run = function (params, retries) {
var self = this;
retries = retries || 0; // Stop running import
if (this.isImportStopped()) {
return;
} // Import
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
retries++;
setTimeout(self.run.bind(self, params, retries), timeout);
});
};
Import.prototype.decryptPassword = function (options, password, retries) {
var self = this;
retries = retries || 0; // Stop running import
if (this.isImportStopped()) {
return;
}
this.params = this.params.concat({
name: 'decryption_password',
value: password
}); // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_import.secret_key
}).concat({
name: 'priority',
value: 90
});
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
self.getStatus();
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: ai1wm_locale.unable_to_check_decryption_password
});
return;
}
retries++;
setTimeout(self.decryptPassword.bind(self, options, password, retries), timeout);
});
};
Import.prototype.confirm = function (options, retries) {
var self = this;
retries = retries || 0; // Stop running import
if (this.isImportStopped()) {
return;
} // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_import.secret_key
}).concat({
name: 'priority',
value: 150
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Confirm
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
self.getStatus();
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: ai1wm_locale.unable_to_confirm_the_import
});
return;
}
retries++;
setTimeout(self.confirm.bind(self, options, retries), timeout);
});
};
Import.prototype.checkDiskSpace = function (fileSize, callback) {
this.diskSpaceCallback = callback;
var diskSpaceFree = parseInt(ai1wm_disk_space.free, 10);
var diskSpaceFactor = parseInt(ai1wm_disk_space.factor, 10);
var diskSpaceExtra = parseInt(ai1wm_disk_space.extra, 10);
if (diskSpaceFree >= 0) {
var diskSpaceRequired = fileSize * diskSpaceFactor + diskSpaceExtra;
if (diskSpaceRequired > diskSpaceFree) {
this.setStatus({
type: 'disk_space_confirm',
message: ai1wm_locale.out_of_disk_space.replace('%s', Ai1wm.Util.sizeFormat(diskSpaceRequired - diskSpaceFree))
});
return;
}
}
callback();
};
Import.prototype.blogs = function (options, retries) {
var self = this;
retries = retries || 0; // Stop running import
if (this.isImportStopped()) {
return;
} // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_import.secret_key
}).concat({
name: 'priority',
value: 150
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Blogs
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
self.getStatus();
}).done(function (result) {
if (result) {
self.run(result);
}
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: ai1wm_locale.unable_to_prepare_blogs_on_import
});
return;
}
retries++;
setTimeout(self.blogs.bind(self, options, retries), timeout);
});
};
Import.prototype.clean = function (options, retries) {
var self = this;
retries = retries || 0; // Reset stop flag
if (retries === 0) {
this.stopImport(true);
} // Set initial status
this.setStatus({
type: 'info',
message: ai1wm_locale.please_wait_stopping_the_import
}); // Set params
var params = this.params.concat({
name: 'secret_key',
value: ai1wm_import.secret_key
}).concat({
name: 'priority',
value: 400
}); // Set additional params
if (options) {
params = params.concat(Ai1wm.Util.list(options));
} // Clean
$.ajax({
url: ai1wm_import.ajax.url,
type: 'POST',
dataType: 'json',
data: params,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function () {
// Unbinding the beforeunload event when we stop importing
$(window).unbind('beforeunload'); // Destroy modal
self.modal.destroy();
}).fail(function (xhr) {
var timeout = retries * 1000;
try {
var json = Ai1wm.Util.json(xhr.responseText);
if (json) {
var result = JSON.parse(json);
var error = result.errors.pop();
if (error.message) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: error.message
});
return;
}
}
} catch (e) {}
if (retries >= 5) {
self.stopImport(true);
self.setStatus({
type: 'error',
title: ai1wm_locale.unable_to_import,
message: ai1wm_locale.unable_to_stop_the_import
});
return;
}
retries++;
setTimeout(self.clean.bind(self, options, retries), timeout);
});
};
Import.prototype.getStatus = function () {
var self = this; // Stop getting status
if (this.isImportStopped()) {
return;
}
this.statusXhr = $.ajax({
url: ai1wm_import.status.url,
type: 'GET',
dataType: 'json',
cache: false,
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (params) {
if (params) {
self.setStatus(params); // Next status
switch (params.type) {
case 'done':
case 'error':
// Unbinding the beforeunload event when any case is performed
$(window).unbind('beforeunload');
return;
case 'confirm':
case 'disk_space_confirm':
case 'blogs':
case 'backup_is_encrypted':
return;
}
} // Import is not done yet, let's check status in 3 seconds
setTimeout(self.getStatus.bind(self), 3000);
}).fail(function () {
// Import is not done yet, let's check status in 3 seconds
setTimeout(self.getStatus.bind(self), 3000);
});
};
Import.prototype.setStatus = function (params) {
this.modal.render(params);
};
Import.prototype.onConfirm = function (options) {
this.confirm(options);
};
Import.prototype.onDecryptPassword = function (password, options) {
this.decryptPassword(options, password);
};
Import.prototype.onBlogs = function (options) {
this.blogs(options);
};
Import.prototype.onStop = function (options) {
this.clean(options);
};
Import.prototype.onDiskSpaceConfirm = function (options) {
this.diskSpaceCallback(options);
};
Import.prototype.stopImport = function (isStopped) {
try {
if (isStopped && this.statusXhr) {
this.statusXhr.abort();
}
} finally {
this.isStopped = isStopped;
}
};
Import.prototype.isImportStopped = function () {
return this.isStopped;
};
module.exports = Import;
/***/ }),
/***/ 544:
/***/ (function(module) {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var $ = jQuery;
var Modal = function Modal() {
var self = this; // Error Modal
this.error = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create title
var title = $('').addClass('ai1wm-title-red').text(params.title); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_import); // Append close button to action
action.append(closeButton); // Append title to section
header.append(title); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Progress Modal
this.progress = function (params) {
// Update progress bar meter
if (this.progress.progressBarMeter) {
this.progress.progressBarMeter.width(params.percent + '%');
} // Update progress bar percent
if (this.progress.progressBarPercent) {
this.progress.progressBarPercent.text(params.percent + '%');
return;
} // Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold progress bar
var header = $(''); // Create action section
var action = $(''); // Create progress bar
var progressBar = $(''); // Create progress bar meter
this.progress.progressBarMeter = $('').width(params.percent + '%'); // Create progress bar percent
this.progress.progressBarPercent = $('').text(params.percent + '%'); // Create stop import
var stopButton = $('').on('click', function () {
stopButton.attr('disabled', 'disabled');
self.onStop();
}); // Append text to stop button
stopButton.append(' ' + ai1wm_locale.stop_import); // Append progress meter and progress percent
progressBar.append(this.progress.progressBarMeter).append(this.progress.progressBarPercent); // Append stop button to action
action.append(stopButton); // Append progress bar to section
header.append(progressBar); // Append header to section
section.append(header); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Pro Modal
this.pro = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold warning
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create warning
var warning = $(''); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_import); // Append close button to action
action.append(closeButton); // Append warning to section
header.append(warning); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Confirm Modal
this.confirm = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold warning
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create warning
var warning = $(''); // Create close button
var closeButton = $('').on('click', function () {
closeButton.attr('disabled', 'disabled');
self.onStop();
}); // Create confirm button
var confirmButton = $('').on('click', function () {
confirmButton.attr('disabled', 'disabled');
self.onConfirm();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_import); // Append text to confirm button
confirmButton.append(ai1wm_locale.confirm_import + ' >'); // Append close button to action
action.append(closeButton); // Append confirm button to action
action.append(confirmButton); // Append warning to section
header.append(warning); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Disk space Confirm Modal
this.diskSpaceConfirm = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold warning
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create warning
var warning = $(''); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Create confirm button
var confirmButton = $('').on('click', function () {
$(this).attr('disabled', 'disabled');
self.onDiskSpaceConfirm();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_import); // Append text to confirm button
confirmButton.append(ai1wm_locale.confirm_disk_space); // Append close button to action
action.append(closeButton); // Append confirm button to action
action.append(confirmButton); // Append warning to section
header.append(warning); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Blogs Modal
this.blogs = function (params) {
// Create the modal container
var container = $('').on('submit', function (e) {
e.preventDefault();
continueButton.attr('disabled', 'disabled');
self.onBlogs(container.serializeArray());
}); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create title
var title = $('').addClass('ai1wm-title-grey').text(params.title); // Create continue button
var continueButton = $(''); // Append text to continue button
continueButton.append(ai1wm_locale.continue_import); // Append continue button to action
action.append(continueButton); // Append title to section
header.append(title); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Info Modal
this.info = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold loader
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create loader
var loader = $(''); // Create warning
var warning = $('').html(ai1wm_locale.please_do_not_close_this_browser); // Create notice to be displayed during import process
var notice = $(''); // Append warning to notice
notice.append(warning); // Append stop button to action
action.append(notice); // Append loader to header
header.append(loader); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Done Modal
this.done = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create action section
var action = $(''); // Create title
var title = $('').addClass('ai1wm-title-green').text(params.title); // Create close button
var closeButton = $('').on('click', function () {
self.destroy();
}); // Append text to close button
closeButton.append(ai1wm_locale.finish_import + ' >'); // Append close button to action
action.append(closeButton); // Append title to section
header.append(title); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
};
this.backup_is_encrypted = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $('').html(ai1wm_locale.backup_encrypted);
var message = $('').html(ai1wm_locale.backup_encrypted_message);
var confirmButton = $('').on('click', function () {
var password = $('#ai1wm-backup-decrypt-password');
var passwordConfirmation = $('#ai1wm-backup-decrypt-password-confirmation');
if (password.val().length && password.val() === passwordConfirmation.val()) {
confirmButton.attr('disabled', 'disabled');
self.onDecryptPassword(password.val());
} else {
passwordConfirmation.parent().addClass('ai1wm-has-error');
password.parent().addClass('ai1wm-has-error');
}
});
var closeButton = $('').on('click', function () {
closeButton.attr('disabled', 'disabled');
self.onStop();
});
var form = $('');
var passwordContainer = $('');
var passwordInput = $('').prop('placeholder', ai1wm_locale.enter_password).on('keyup', function () {
var password = $(this);
var passwordConfirmation = $('#ai1wm-backup-decrypt-password-confirmation');
if (password.val() !== passwordConfirmation.val()) {
passwordConfirmation.parent().addClass('ai1wm-has-error');
password.parent().addClass('ai1wm-has-error');
} else {
password.parent().removeClass('ai1wm-has-error');
passwordConfirmation.parent().removeClass('ai1wm-has-error');
}
});
var passwordView = $('').on('click', function () {
$(this).toggleClass('ai1wm-icon-eye ai1wm-icon-eye-blocked');
$(this).prev().prop('type', function (index, oldPropertyValue) {
return oldPropertyValue === 'text' ? 'password' : 'text';
});
return false;
});
passwordContainer.append(passwordInput).append(passwordView);
if (params.error) {
passwordContainer.addClass('ai1wm-has-error');
var passwordError = $('').html(params.error);
passwordContainer.append(passwordError);
}
var passwordConfirmationContainer = $('');
var passwordConfirmationInput = $('').prop('placeholder', ai1wm_locale.repeat_password).on('keyup', function () {
var passwordConfirmation = $(this);
var password = $('#ai1wm-backup-decrypt-password');
if (passwordInput.val() !== passwordConfirmation.val()) {
password.parent().addClass('ai1wm-has-error');
passwordConfirmation.parent().addClass('ai1wm-has-error');
} else {
password.parent().removeClass('ai1wm-has-error');
passwordConfirmation.parent().removeClass('ai1wm-has-error');
}
});
var passwordConfirmationView = $('').on('click', function () {
$(this).toggleClass('ai1wm-icon-eye ai1wm-icon-eye-blocked');
$(this).prev().prop('type', function (index, oldPropertyValue) {
return oldPropertyValue === 'text' ? 'password' : 'text';
});
return false;
});
var passwordConfirmationError = $('').html(ai1wm_locale.passwords_do_not_match);
passwordConfirmationContainer.append(passwordConfirmationInput).append(passwordConfirmationView).append(passwordConfirmationError);
confirmButton.append(ai1wm_locale.submit);
closeButton.append(ai1wm_locale.close_import);
var buttonContainer = $('');
buttonContainer.append(closeButton).append(confirmButton);
form.append(passwordContainer).append(passwordConfirmationContainer); // Append header and message to section
section.append(header).append(message).append(form).append(buttonContainer); // Append section and action to container
container.append(section); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Server cannot decrypt Modal
this.server_cannot_decrypt = function (params) {
// Create the modal container
var container = $(''); // Create section to hold title, message and action
var section = $(''); // Create header to hold title
var header = $(''); // Create paragraph to hold mesage
var message = $('').html(params.message); // Create warning
var warning = $(''); // Create action section
var action = $(''); // Create close button
var closeButton = $('').on('click', function () {
closeButton.attr('disabled', 'disabled');
self.onStop();
}); // Append text to close button
closeButton.append(ai1wm_locale.close_import); // Append close button to action
action.append(closeButton); // Append warning to header
header.append(warning); // Append header and message to section
section.append(header).append(message); // Append section and action to container
container.append(section).append(action); // Render modal
self.modal.html(container).show();
self.modal.trigger('focus');
self.overlay.show();
}; // Create the overlay
this.overlay = $(''); // Create the modal container
this.modal = $('');
$('body').append(this.overlay) // Append overlay to body
.append(this.modal); // Append modal to body
};
Modal.prototype.render = function (params) {
$(document).trigger('ai1wm-import-status', params); // Show modal
switch (params.type) {
case 'pro':
this.pro(params);
break;
case 'error':
this.error(params);
break;
case 'confirm':
this.confirm(params);
break;
case 'disk_space_confirm':
this.diskSpaceConfirm(params);
break;
case 'blogs':
this.blogs(params);
break;
case 'progress':
this.progress(params);
break;
case 'info':
this.info(params);
break;
case 'done':
this.done(params);
break;
case 'backup_is_encrypted':
this.backup_is_encrypted(params);
break;
case 'server_cannot_decrypt':
this.server_cannot_decrypt(params);
break;
}
};
Modal.prototype.destroy = function () {
this.modal.hide();
this.overlay.hide(); // Reset progress bar
this.progress.progressBarMeter = null;
this.progress.progressBarPercent = null;
};
module.exports = Modal;
/***/ }),
/***/ 332:
/***/ (function() {
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
jQuery(document).ready(function ($) {
'use strict'; // Idea
$('#ai1wm-feedback-type-link-1').on('click', function () {
var radio = $('#ai1wm-feedback-type-1');
if (radio.is(':checked')) {
radio.attr('checked', false);
} else {
radio.attr('checked', true);
}
}); // Help
$('#ai1wm-feedback-type-2').on('click', function () {
// Hide other options
$('#ai1wm-feedback-type-1').closest('li').hide(); // Change placeholder message
$('.ai1wm-feedback-form').find('.ai1wm-feedback-message').attr('placeholder', ai1wm_locale.how_may_we_help_you); // Show feedback form
$('.ai1wm-feedback-form').fadeIn();
}); // Cancel feedback form
$('#ai1wm-feedback-cancel').on('click', function (e) {
$('.ai1wm-feedback-form').fadeOut(function () {
$('.ai1wm-feedback-type').attr('checked', false).closest('li').show();
});
e.preventDefault();
}); // Send feedback form
$('#ai1wm-feedback-submit').on('click', function (e) {
var self = $(this);
var spinner = self.next();
var type = $('.ai1wm-feedback-type:checked').val();
var email = $('.ai1wm-feedback-email').val();
var message = $('.ai1wm-feedback-message').val();
var terms = $('.ai1wm-feedback-terms').is(':checked');
self.attr('disabled', true);
spinner.css('visibility', 'visible');
$.ajax({
url: ai1wm_feedback.ajax.url,
type: 'POST',
dataType: 'json',
async: true,
data: {
secret_key: ai1wm_feedback.secret_key,
ai1wm_type: type,
ai1wm_email: email,
ai1wm_message: message,
ai1wm_terms: +terms
},
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (data) {
self.attr('disabled', false);
spinner.css('visibility', 'hidden');
if (data.errors.length > 0) {
$('.ai1wm-feedback .ai1wm-message').remove();
var errorMessage = $('').addClass('ai1wm-message ai1wm-error-message');
$.each(data.errors, function (key, value) {
errorMessage.append($('').text(value));
});
$('.ai1wm-feedback').prepend(errorMessage);
} else {
var successMessage = $('').addClass('ai1wm-message ai1wm-success-message');
successMessage.append($('').text(ai1wm_locale.thanks_for_submitting_your_feedback));
$('.ai1wm-feedback').html(successMessage);
}
});
e.preventDefault();
});
});
/***/ }),
/***/ 162:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error("could not download file")},d.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof __webpack_require__.g&&__webpack_require__.g.global===__webpack_require__.g?__webpack_require__.g:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g, true&&(module.exports=g)});
//# sourceMappingURL=FileSaver.min.js.map
/***/ }),
/***/ 317:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
/*!
* Vue.js v2.7.5
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
/*!
* Vue.js v2.7.5
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
const t=Object.freeze({}),e=Array.isArray;function n(t){return null==t}function o(t){return null!=t}function r(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function i(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}const a=Object.prototype.toString;function l(t){return"[object Object]"===a.call(t)}function u(t){const e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===a?JSON.stringify(t,null,2):String(t)}function p(t){const e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){const n=Object.create(null),o=t.split(",");for(let t=0;tn[t.toLowerCase()]:t=>n[t]}const m=h("slot,component",!0),g=h("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){const n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}const y=Object.prototype.hasOwnProperty;function _(t,e){return y.call(t,e)}function $(t){const e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}const b=/-(\w)/g,w=$((t=>t.replace(b,((t,e)=>e?e.toUpperCase():"")))),x=$((t=>t.charAt(0).toUpperCase()+t.slice(1))),C=/\B([A-Z])/g,k=$((t=>t.replace(C,"-$1").toLowerCase()));const S=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){const o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;let n=t.length-e;const o=new Array(n);for(;n--;)o[n]=t[n+e];return o}function T(t,e){for(const n in e)t[n]=e[n];return t}function A(t){const e={};for(let n=0;n!1,N=t=>t;function D(t,e){if(t===e)return!0;const n=c(t),o=c(e);if(!n||!o)return!n&&!o&&String(t)===String(e);try{const n=Array.isArray(t),o=Array.isArray(e);if(n&&o)return t.length===e.length&&t.every(((t,n)=>D(t,e[n])));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(n||o)return!1;{const n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every((n=>D(t[n],e[n])))}}catch(t){return!1}}function M(t,e){for(let n=0;n0,Z=J&&J.indexOf("edge/")>0;J&&J.indexOf("android");const G=J&&/iphone|ipad|ipod|ios/.test(J);J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J);const X=J&&J.match(/firefox\/(\d+)/),Y={}.watch;let Q,tt=!1;if(K)try{const t={};Object.defineProperty(t,"passive",{get(){tt=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}const et=()=>(void 0===Q&&(Q=!K&&"undefined"!=typeof __webpack_require__.g&&(__webpack_require__.g.process&&"server"===__webpack_require__.g.process.env.VUE_ENV)),Q),nt=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}const rt="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);let st;st="undefined"!=typeof Set&&ot(Set)?Set:class{constructor(){this.set=Object.create(null)}has(t){return!0===this.set[t]}add(t){this.set[t]=!0}clear(){this.set=Object.create(null)}};let it=null;function ct(t=null){t||it&&it._scope.off(),it=t,t&&t._scope.on()}class at{constructor(t,e,n,o,r,s,i,c){this.tag=t,this.data=e,this.children=n,this.text=o,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const lt=(t="")=>{const e=new at;return e.text=t,e.isComment=!0,e};function ut(t){return new at(void 0,void 0,void 0,String(t))}function ft(t){const e=new at(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}let dt=0;class pt{constructor(){this.id=dt++,this.subs=[]}addSub(t){this.subs.push(t)}removeSub(t){v(this.subs,t)}depend(t){pt.target&&pt.target.addDep(this)}notify(t){const e=this.subs.slice();for(let t=0,n=e.length;t{const t=e[n];if(Pt(t))return t.value;{const e=t&&t.__ob__;return e&&e.dep.depend(),t}},set:t=>{const o=e[n];Pt(o)&&!Pt(t)?o.value=t:e[n]=t}})}function Lt(t,e,n){const o=t[e];if(Pt(o))return o;const r={get value(){const o=t[e];return void 0===o?n:o},set value(n){t[e]=n}};return U(r,"__v_isRef",!0),r}function Ft(t){return Ht(t,!1)}function Ht(t,e){if(!l(t))return t;if(Mt(t))return t;const n=e?"__v_rawToShallowReadonly":"__v_rawToReadonly",o=t[n];if(o)return o;const r=Object.create(Object.getPrototypeOf(t));U(t,n,r),U(r,"__v_isReadonly",!0),U(r,"__v_raw",t),Pt(t)&&U(r,"__v_isRef",!0),(e||Dt(t))&&U(r,"__v_isShallow",!0);const s=Object.keys(t);for(let n=0;n{const e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),o="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=o?t.slice(1):t,once:n,capture:o,passive:e}}));function zt(t,n){function o(){const t=o.fns;if(!e(t))return en(t,null,arguments,n,"v-on handler");{const e=t.slice();for(let t=0;t0&&(l=Zt(l,`${i||""}_${a}`),Wt(l[0])&&Wt(f)&&(c[u]=ut(f.text+l[0].text),l.shift()),c.push.apply(c,l)):s(l)?Wt(f)?c[u]=ut(f.text+l):""!==l&&c.push(ut(l)):Wt(l)&&Wt(f)?c[u]=ut(f.text+l.text):(r(t._isVList)&&o(l.tag)&&n(l.key)&&o(i)&&(l.key=`__vlist${i}_${a}__`),c.push(l)));return c}function Gt(t,n,a,l,u,f){return(e(a)||s(a))&&(u=l,l=a,a=void 0),r(f)&&(u=2),function(t,n,r,s,a){if(o(r)&&o(r.__ob__))return lt();o(r)&&o(r.is)&&(n=r.is);if(!n)return lt();e(s)&&i(s[0])&&((r=r||{}).scopedSlots={default:s[0]},s.length=0);2===a?s=qt(s):1===a&&(s=function(t){for(let n=0;n0,c=n?!!n.$stable:!i,a=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(c&&r&&r!==t&&a===r.$key&&!i&&!r.$hasNormal)return r;s={};for(const t in n)n[t]&&"$"!==t[0]&&(s[t]=ve(e,o,t,n[t]))}else s={};for(const t in o)t in s||(s[t]=ye(o,t));return n&&Object.isExtensible(n)&&(n._normalized=s),U(s,"$stable",c),U(s,"$key",a),U(s,"$hasNormal",i),s}function ve(t,n,o,r){const s=function(){const n=it;ct(t);let o=arguments.length?r.apply(null,arguments):r({});o=o&&"object"==typeof o&&!e(o)?[o]:qt(o);const s=o&&o[0];return ct(n),o&&(!s||1===o.length&&s.isComment&&!me(s))?void 0:o};return r.proxy&&Object.defineProperty(n,o,{get:s,enumerable:!0,configurable:!0}),s}function ye(t,e){return()=>t[e]}function _e(e){return{get attrs(){return function(e){if(!e._attrsProxy){const n=e._attrsProxy={};U(n,"_v_attr_proxy",!0),$e(n,e.$attrs,t,e)}return e._attrsProxy}(e)},get slots(){return function(t){t._slotsProxy||we(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(e)},emit:S(e.$emit,e),expose(t){t&&Object.keys(t).forEach((n=>Rt(e,t,n)))}}}function $e(t,e,n,o){let r=!1;for(const s in e)s in t?e[s]!==n[s]&&(r=!0):(r=!0,be(t,s,o));for(const n in t)n in e||(r=!0,delete t[n]);return r}function be(t,e,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n.$attrs[e]})}function we(t,e){for(const n in e)t[n]=e[n];for(const n in t)n in e||delete t[n]}function xe(){const t=it;return t._setupContext||(t._setupContext=_e(t))}let Ce,ke=null;function Se(t,e){return(t.__esModule||rt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Oe(t){if(e(t))for(let e=0;e{Ne=e}}function Me(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Pe(t,e){if(e){if(t._directInactive=!1,Me(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(let e=0;edocument.createEvent("Event").timeStamp&&(Ke=()=>t.now())}function Je(){let t,e;for(Ve=Ke(),Ue=!0,Le.sort(((t,e)=>t.id-e.id)),ze=0;zeze&&Le[e].id>t.id;)e--;Le.splice(e+1,0,t)}else Le.push(t);Be||(Be=!0,un(Je))}}function We(t,e){return Ge(t,null,{flush:"post"})}const Ze={};function Ge(n,o,{immediate:r,deep:s,flush:c="pre",onTrack:a,onTrigger:l}=t){const u=it,f=(t,e,n=null)=>en(t,null,n,u,e);let d,p,h=!1,m=!1;if(Pt(n)?(d=()=>n.value,h=Dt(n)):Nt(n)?(d=()=>(n.__ob__.dep.depend(),n),s=!0):e(n)?(m=!0,h=n.some((t=>Nt(t)||Dt(t))),d=()=>n.map((t=>Pt(t)?t.value:Nt(t)?Sn(t):i(t)?f(t,"watcher getter"):void 0))):d=i(n)?o?()=>f(n,"watcher getter"):()=>{if(!u||!u._isDestroyed)return p&&p(),f(n,"watcher",[g])}:j,o&&s){const t=d;d=()=>Sn(t())}let g=t=>{p=v.onStop=()=>{f(t,"watcher cleanup")}};if(et())return g=j,o?r&&f(o,"watcher callback",[d(),m?[]:void 0,g]):d(),j;const v=new An(it,d,j,{lazy:!0});v.noRecurse=!o;let y=m?[]:Ze;return v.run=()=>{if(v.active||"pre"===c&&u&&u._isBeingDestroyed)if(o){const t=v.get();(s||h||(m?t.some(((t,e)=>I(t,y[e]))):I(t,y)))&&(p&&p(),f(o,"watcher callback",[t,y===Ze?void 0:y,g]),y=t)}else v.get()},"sync"===c?v.update=v.run:"post"===c?(v.id=1/0,v.update=()=>qe(v)):v.update=()=>{if(u&&u===it&&!u._isMounted){const t=u._preWatchers||(u._preWatchers=[]);t.indexOf(v)<0&&t.push(v)}else qe(v)},o?r?v.run():y=v.get():"post"===c&&u?u.$once("hook:mounted",(()=>v.get())):v.get(),()=>{v.teardown()}}let Xe;class Ye{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Xe&&(this.parent=Xe,this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}run(t){if(this.active){const e=Xe;try{return Xe=this,t()}finally{Xe=e}}}on(){Xe=this}off(){Xe=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;etn(t,o,r+" (Promise/async)"))),s._handled=!0)}catch(t){tn(t,o,r)}return s}function nn(t,e,n){if(F.errorHandler)try{return F.errorHandler.call(null,t,e,n)}catch(e){e!==t&&on(e)}on(t)}function on(t,e,n){if(!K||"undefined"==typeof console)throw t;console.error(t)}let rn=!1;const sn=[];let cn,an=!1;function ln(){an=!1;const t=sn.slice(0);sn.length=0;for(let e=0;e{t.then(ln),G&&setTimeout(j)},rn=!0}else if(q||"undefined"==typeof MutationObserver||!ot(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())cn="undefined"!=typeof setImmediate&&ot(setImmediate)?()=>{setImmediate(ln)}:()=>{setTimeout(ln,0)};else{let t=1;const e=new MutationObserver(ln),n=document.createTextNode(String(t));e.observe(n,{characterData:!0}),cn=()=>{t=(t+1)%2,n.data=String(t)},rn=!0}function un(t,e){let n;if(sn.push((()=>{if(t)try{t.call(e)}catch(t){tn(t,e,"nextTick")}else n&&n(e)})),an||(an=!0,cn()),!t&&"undefined"!=typeof Promise)return new Promise((t=>{n=t}))}function fn(t){return(e,n=it)=>{if(n)return function(t,e,n){const o=t.$options;o[e]=Qn(o[e],n)}(n,t,e)}}const dn=fn("beforeMount"),pn=fn("mounted"),hn=fn("beforeUpdate"),mn=fn("updated"),gn=fn("beforeDestroy"),vn=fn("destroyed"),yn=fn("errorCaptured"),_n=fn("activated"),$n=fn("deactivated"),bn=fn("serverPrefetch"),wn=fn("renderTracked"),xn=fn("renderTriggered");var Cn=Object.freeze({__proto__:null,version:"2.7.5",defineComponent:function(t){return t},ref:function(t){return It(t,!1)},shallowRef:function(t){return It(t,!0)},isRef:Pt,toRef:Lt,toRefs:function(t){const n=e(t)?new Array(t.length):{};for(const e in t)n[e]=Lt(t,e);return n},unref:function(t){return Pt(t)?t.value:t},proxyRefs:function(t){if(Nt(t))return t;const e={},n=Object.keys(t);for(let o=0;o{e.depend()}),(()=>{e.notify()})),r={get value(){return n()},set value(t){o(t)}};return U(r,"__v_isRef",!0),r},triggerRef:function(t){t.dep&&t.dep.notify()},reactive:function(t){return Et(t,!1),t},isReactive:Nt,isReadonly:Mt,isShallow:Dt,isProxy:function(t){return Nt(t)||Mt(t)},shallowReactive:jt,markRaw:function(t){return U(t,"__v_skip",!0),t},toRaw:function t(e){const n=e&&e.__v_raw;return n?t(n):e},readonly:Ft,shallowReadonly:function(t){return Ht(t,!0)},computed:function(t,e){let n,o;const r=i(t);r?(n=t,o=j):(n=t.get,o=t.set);const s=et()?null:new An(it,n,j,{lazy:!0}),c={effect:s,get value(){return s?(s.dirty&&s.evaluate(),pt.target&&s.depend(),s.value):n()},set value(t){o(t)}};return U(c,"__v_isRef",!0),U(c,"__v_isReadonly",r),c},watch:function(t,e,n){return Ge(t,e,n)},watchEffect:function(t,e){return Ge(t,null,e)},watchPostEffect:We,watchSyncEffect:function(t,e){return Ge(t,null,{flush:"sync"})},EffectScope:Ye,effectScope:function(t){return new Ye(t)},onScopeDispose:function(t){Xe&&Xe.cleanups.push(t)},getCurrentScope:function(){return Xe},provide:Qe,inject:function(t,e,n=!1){const o=it;if(o){const r=o.$parent&&o.$parent._provided;if(r&&t in r)return r[t];if(arguments.length>1)return n&&i(e)?e.call(o):e}},h:function(t,e,n){return Gt(it,t,e,n,2,!0)},getCurrentInstance:function(){return it&&{proxy:it}},useSlots:function(){return xe().slots},useAttrs:function(){return xe().attrs},mergeDefaults:function(t,n){const o=e(t)?t.reduce(((t,e)=>(t[e]={},t)),{}):t;for(const t in n){const r=o[t];r?e(r)||i(r)?o[t]={type:r,default:n[t]}:r.default=n[t]:null===r&&(o[t]={default:n[t]})}return o},nextTick:un,set:Ot,del:Tt,useCssModule:function(e="$style"){{if(!it)return t;const n=it[e];return n||t}},useCssVars:function(t){if(!K)return;const e=it;e&&We((()=>{const n=e.$el,o=t(e,e._setupProxy);if(n&&1===n.nodeType){const t=n.style;for(const e in o)t.setProperty(`--${e}`,o[e])}}))},defineAsyncComponent:function(t){i(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:c=!1,onError:a}=t;let l=null,u=0;const f=()=>{let t;return l||(t=l=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise(((e,n)=>{a(t,(()=>e((u++,l=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==l&&l?l:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e))))};return()=>({component:f(),delay:r,timeout:s,error:o,loading:n})},onBeforeMount:dn,onMounted:pn,onBeforeUpdate:hn,onUpdated:mn,onBeforeUnmount:gn,onUnmounted:vn,onErrorCaptured:yn,onActivated:_n,onDeactivated:$n,onServerPrefetch:bn,onRenderTracked:wn,onRenderTriggered:xn});const kn=new st;function Sn(t){return On(t,kn),kn.clear(),t}function On(t,n){let o,r;const s=e(t);if(!(!s&&!c(t)||Object.isFrozen(t)||t instanceof at)){if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(s)for(o=t.length;o--;)On(t[o],n);else if(Pt(t))On(t.value,n);else for(r=Object.keys(t),o=r.length;o--;)On(t[r[o]],n)}}let Tn=0;class An{constructor(t,e,n,o,r){!function(t,e=Xe){e&&e.active&&e.effects.push(t)}(this,Xe||(t?t._scope:void 0)),(this.vm=t)&&r&&(t._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Tn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="",i(e)?this.getter=e:(this.getter=function(t){if(z.test(t))return;const e=t.split(".");return function(t){for(let n=0;n(this.$slots||ge(i,n.scopedSlots,this.$slots=pe(s,i)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ge(i,n.scopedSlots,this.slots())}}),u&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=ge(i,n.scopedSlots,this.$slots)),a._scopeId?this._c=(t,n,o,r)=>{const s=Gt(l,t,n,o,r,f);return s&&!e(s)&&(s.fnScopeId=a._scopeId,s.fnContext=i),s}:this._c=(t,e,n,o)=>Gt(l,t,e,n,o,f)}function Un(t,e,n,o,r){const s=ft(t);return s.fnContext=n,s.fnOptions=o,e.slot&&((s.data||(s.data={})).slot=e.slot),s}function zn(t,e){for(const n in e)t[w(n)]=e[n]}function Vn(t){return t.name||t.__name||t._componentTag}de(Bn.prototype);const Kn={init(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){const e=t;Kn.prepatch(e,e)}else{(t.componentInstance=function(t,e){const n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Ne)).$mount(e?t.elm:void 0,e)}},prepatch(e,n){const o=n.componentOptions;!function(e,n,o,r,s){const i=r.data.scopedSlots,c=e.$scopedSlots,a=!!(i&&!i.$stable||c!==t&&!c.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key);let l=!!(s||e.$options._renderChildren||a);const u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=s;const f=r.data.attrs||t;if(e._attrsProxy&&$e(e._attrsProxy,f,u.data&&u.data.attrs||t,e)&&(l=!0),e.$attrs=f,e.$listeners=o||t,n&&e.$options.props){wt(!1);const t=e._props,o=e.$options._propKeys||[];for(let r=0;rv(r,s)));const u=t=>{for(let t=0,e=r.length;t{t.resolved=Se(n,e),i?r.length=0:u(!0)})),p=P((e=>{o(t.errorComp)&&(t.error=!0,u(!0))})),h=t(d,p);return c(h)&&(f(h)?n(t.resolved)&&h.then(d,p):f(h.component)&&(h.component.then(d,p),o(h.error)&&(t.errorComp=Se(h.error,e)),o(h.loading)&&(t.loadingComp=Se(h.loading,e),0===h.delay?t.loading=!0:a=setTimeout((()=>{a=null,n(t.resolved)&&n(t.error)&&(t.loading=!0,u(!1))}),h.delay||200)),o(h.timeout)&&(l=setTimeout((()=>{l=null,n(t.resolved)&&p(null)}),h.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(p,d),void 0===s))return function(t,e,n,o,r){const s=lt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:o,tag:r},s}(p,i,a,l,u);i=i||{},Hn(s),o(i.model)&&function(t,n){const r=t.model&&t.model.prop||"value",s=t.model&&t.model.event||"input";(n.attrs||(n.attrs={}))[r]=n.model.value;const i=n.on||(n.on={}),c=i[s],a=n.model.callback;o(c)?(e(c)?-1===c.indexOf(a):c!==a)&&(i[s]=[a].concat(c)):i[s]=a}(s.options,i);const h=function(t,e,r){const s=e.options.props;if(n(s))return;const i={},{attrs:c,props:a}=t;if(o(c)||o(a))for(const t in s){const e=k(t);Jt(i,a,t,e,!0)||Jt(i,c,t,e,!1)}return i}(i,s);if(r(s.options.functional))return function(n,r,s,i,c){const a=n.options,l={},u=a.props;if(o(u))for(const e in u)l[e]=ro(e,u,r||t);else o(s.attrs)&&zn(l,s.attrs),o(s.props)&&zn(l,s.props);const f=new Bn(s,l,c,i,n),d=a.render.call(null,f._c,f);if(d instanceof at)return Un(d,s,f.parent,a);if(e(d)){const t=qt(d)||[],e=new Array(t.length);for(let n=0;n{t(n,o),e(n,o)};return n._merged=!0,n}let Zn=j;const Gn=F.optionMergeStrategies;function Xn(t,e){if(!e)return t;let n,o,r;const s=rt?Reflect.ownKeys(e):Object.keys(e);for(let i=0;i{Gn[t]=Qn})),R.forEach((function(t){Gn[t+"s"]=to})),Gn.watch=function(t,n,o,r){if(t===Y&&(t=void 0),n===Y&&(n=void 0),!n)return Object.create(t||null);if(!t)return n;const s={};T(s,t);for(const t in n){let o=s[t];const r=n[t];o&&!e(o)&&(o=[o]),s[t]=o?o.concat(r):e(r)?r:[r]}return s},Gn.props=Gn.methods=Gn.inject=Gn.computed=function(t,e,n,o){if(!t)return e;const r=Object.create(null);return T(r,t),e&&T(r,e),r},Gn.provide=Yn;const eo=function(t,e){return void 0===e?t:e};function no(t,n,o){if(i(n)&&(n=n.options),function(t,n){const o=t.props;if(!o)return;const r={};let s,i,c;if(e(o))for(s=o.length;s--;)i=o[s],"string"==typeof i&&(c=w(i),r[c]={type:null});else if(l(o))for(const t in o)i=o[t],c=w(t),r[c]=l(i)?i:{type:i};t.props=r}(n),function(t,n){const o=t.inject;if(!o)return;const r=t.inject={};if(e(o))for(let t=0;t-1)if(s&&!_(r,"default"))c=!1;else if(""===c||c===k(t)){const t=ao(String,r.type);(t<0||a-1:"string"==typeof t?t.split(",").indexOf(n)>-1:(o=t,"[object RegExp]"===a.call(o)&&t.test(n));var o}function ho(t,e){const{cache:n,keys:o,_vnode:r}=t;for(const t in n){const s=n[t];if(s){const i=s.name;i&&!e(i)&&mo(n,t,o,r)}}}function mo(t,e,n,o){const r=t[e];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(e){e.prototype._init=function(e){const n=this;n._uid=Fn++,n._isVue=!0,n.__v_skip=!0,n._scope=new Ye(!0),e&&e._isComponent?function(t,e){const n=t.$options=Object.create(t.constructor.options),o=e._parentVnode;n.parent=e.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=no(Hn(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(t){const e=t.$options;let n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;const e=t.$options._parentListeners;e&&Ee(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;const n=e.$options,o=e.$vnode=n._parentVnode,r=o&&o.context;e.$slots=pe(n._renderChildren,r),e.$scopedSlots=t,e._c=(t,n,o,r)=>Gt(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>Gt(e,t,n,o,r,!0);const s=o&&o.data;St(e,"$attrs",s&&s.attrs||t,null,!0),St(e,"$listeners",n._parentListeners||t,null,!0)}(n),Re(n,"beforeCreate",void 0,!1),function(t){const e=Ln(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach((n=>{St(t,n,e[n])})),wt(!0))}(n),Nn(n),function(t){const e=t.$options.provide;if(e){const n=i(e)?e.call(t):e;if(!c(n))return;const o=rt?Reflect.ownKeys(n):Object.keys(n);ct(t);for(let t=0;t1?O(n):n;const o=O(arguments,1),r=`event handler for "${t}"`;for(let t=0,s=n.length;tparseInt(this.max)&&mo(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const t in this.cache)mo(this.cache,t,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(t=>{ho(this,(e=>po(t,e)))})),this.$watch("exclude",(t=>{ho(this,(e=>!po(t,e)))}))},updated(){this.cacheVNode()},render(){const t=this.$slots.default,e=Oe(t),n=e&&e.componentOptions;if(n){const t=fo(n),{include:o,exclude:r}=this;if(o&&(!t||!po(o,t))||r&&t&&po(r,t))return e;const{cache:s,keys:i}=this,c=null==e.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,v(i,c),i.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){const e={get:()=>F};Object.defineProperty(t,"config",e),t.util={warn:Zn,extend:T,mergeOptions:no,defineReactive:St},t.set=Ot,t.delete=Tt,t.nextTick=un,t.observable=t=>(kt(t),t),t.options=Object.create(null),R.forEach((e=>{t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,vo),function(t){t.use=function(t){const e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;const n=O(arguments,1);return n.unshift(this),i(t.install)?t.install.apply(t,n):i(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=no(this.options,t),this}}(t),uo(t),function(t){R.forEach((e=>{t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&i(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(lo),Object.defineProperty(lo.prototype,"$isServer",{get:et}),Object.defineProperty(lo.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(lo,"FunctionalRenderContext",{value:Bn}),lo.version="2.7.5";const yo=h("style,class"),_o=h("input,textarea,option,select,progress"),$o=(t,e,n)=>"value"===n&&_o(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t,bo=h("contenteditable,draggable,spellcheck"),wo=h("events,caret,typing,plaintext-only"),xo=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Co="http://www.w3.org/1999/xlink",ko=t=>":"===t.charAt(5)&&"xlink"===t.slice(0,5),So=t=>ko(t)?t.slice(6,t.length):"",Oo=t=>null==t||!1===t;function To(t){let e=t.data,n=t,r=t;for(;o(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=Ao(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Ao(e,n.data));return function(t,e){if(o(t)||o(e))return jo(t,Eo(e));return""}(e.staticClass,e.class)}function Ao(t,e){return{staticClass:jo(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function jo(t,e){return t?e?t+" "+e:t:e||""}function Eo(t){return Array.isArray(t)?function(t){let e,n="";for(let r=0,s=t.length;rDo(t)||Mo(t);function Io(t){return Mo(t)?"svg":"math"===t?"math":void 0}const Ro=Object.create(null);const Lo=h("text,number,password,search,email,tel,url");function Fo(t){if("string"==typeof t){const e=document.querySelector(t);return e||document.createElement("div")}return t}var Ho=Object.freeze({__proto__:null,createElement:function(t,e){const n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(No[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Bo={create(t,e){Uo(e)},update(t,e){t.data.ref!==e.data.ref&&(Uo(t,!0),Uo(e))},destroy(t){Uo(t,!0)}};function Uo(t,n){const r=t.data.ref;if(!o(r))return;const s=t.context,c=t.componentInstance||t.elm,a=n?null:c,l=n?void 0:c;if(i(r))return void en(r,s,[a],s,"template ref function");const u=t.data.refInFor,f="string"==typeof r||"number"==typeof r,d=Pt(r),p=s.$refs;if(f||d)if(u){const t=f?p[r]:r.value;n?e(t)&&v(t,c):e(t)?t.includes(c)||t.push(c):f?(p[r]=[c],zo(s,r,p[r])):r.value=[c]}else if(f){if(n&&p[r]!==c)return;p[r]=l,zo(s,r,a)}else if(d){if(n&&r.value!==c)return;r.value=a}}function zo({_setupState:t},e,n){t&&_(t,e)&&(Pt(t[e])?t[e].value=n:t[e]=n)}const Vo=new at("",{},[]),Ko=["create","activate","update","remove","destroy"];function Jo(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;let n;const r=o(n=t.data)&&o(n=n.attrs)&&n.type,s=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===s||Lo(r)&&Lo(s)}(t,e)||r(t.isAsyncPlaceholder)&&n(e.asyncFactory.error))}function qo(t,e,n){let r,s;const i={};for(r=e;r<=n;++r)s=t[r].key,o(s)&&(i[s]=r);return i}var Wo={create:Zo,update:Zo,destroy:function(t){Zo(t,Vo)}};function Zo(t,e){(t.data.directives||e.data.directives)&&function(t,e){const n=t===Vo,o=e===Vo,r=Xo(t.data.directives,t.context),s=Xo(e.data.directives,e.context),i=[],c=[];let a,l,u;for(a in s)l=r[a],u=s[a],l?(u.oldValue=l.value,u.oldArg=l.arg,Qo(u,"update",e,t),u.def&&u.def.componentUpdated&&c.push(u)):(Qo(u,"bind",e,t),u.def&&u.def.inserted&&i.push(u));if(i.length){const o=()=>{for(let n=0;n{for(let n=0;n-1?or(t,e,n):xo(e)?Oo(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):bo(e)?t.setAttribute(e,((t,e)=>Oo(e)||"false"===e?"false":"contenteditable"===t&&wo(e)?e:"true")(e,n)):ko(e)?Oo(n)?t.removeAttributeNS(Co,So(e)):t.setAttributeNS(Co,e,n):or(t,e,n)}function or(t,e,n){if(Oo(n))t.removeAttribute(e);else{if(q&&!W&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){const e=n=>{n.stopImmediatePropagation(),t.removeEventListener("input",e)};t.addEventListener("input",e),t.__ieph=!0}t.setAttribute(e,n)}}var rr={create:er,update:er};function sr(t,e){const r=e.elm,s=e.data,i=t.data;if(n(s.staticClass)&&n(s.class)&&(n(i)||n(i.staticClass)&&n(i.class)))return;let c=To(e);const a=r._transitionClasses;o(a)&&(c=jo(c,Eo(a))),c!==r._prevClass&&(r.setAttribute("class",c),r._prevClass=c)}var ir={create:sr,update:sr};const cr=/[\w).+\-_$\]]/;function ar(t){let e,n,o,r,s,i=!1,c=!1,a=!1,l=!1,u=0,f=0,d=0,p=0;for(o=0;o=0&&(e=t.charAt(n)," "===e);n--);e&&cr.test(e)||(l=!0)}}else void 0===r?(p=o+1,r=t.slice(0,o).trim()):h();function h(){(s||(s=[])).push(t.slice(p,o).trim()),p=o+1}if(void 0===r?r=t.slice(0,o).trim():0!==p&&h(),s)for(o=0;ot[e])).filter((t=>t)):[]}function dr(t,e,n,o,r){(t.props||(t.props=[])).push(br({name:e,value:n,dynamic:r},o)),t.plain=!1}function pr(t,e,n,o,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(br({name:e,value:n,dynamic:r},o)),t.plain=!1}function hr(t,e,n,o){t.attrsMap[e]=n,t.attrsList.push(br({name:e,value:n},o))}function mr(t,e,n,o,r,s,i,c){(t.directives||(t.directives=[])).push(br({name:e,rawName:n,value:o,arg:r,isDynamicArg:s,modifiers:i},c)),t.plain=!1}function gr(t,e,n){return n?`_p(${e},"${t}")`:t+e}function vr(e,n,o,r,s,i,c,a){let l;(r=r||t).right?a?n=`(${n})==='click'?'contextmenu':(${n})`:"click"===n&&(n="contextmenu",delete r.right):r.middle&&(a?n=`(${n})==='click'?'mouseup':(${n})`:"click"===n&&(n="mouseup")),r.capture&&(delete r.capture,n=gr("!",n,a)),r.once&&(delete r.once,n=gr("~",n,a)),r.passive&&(delete r.passive,n=gr("&",n,a)),r.native?(delete r.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=br({value:o.trim(),dynamic:a},c);r!==t&&(u.modifiers=r);const f=l[n];Array.isArray(f)?s?f.unshift(u):f.push(u):l[n]=f?s?[u,f]:[f,u]:u,e.plain=!1}function yr(t,e,n){const o=_r(t,":"+e)||_r(t,"v-bind:"+e);if(null!=o)return ar(o);if(!1!==n){const n=_r(t,e);if(null!=n)return JSON.stringify(n)}}function _r(t,e,n){let o;if(null!=(o=t.attrsMap[e])){const n=t.attrsList;for(let t=0,o=n.length;t-1?{exp:t.slice(0,Or),key:'"'+t.slice(Or+1)+'"'}:{exp:t,key:null};kr=t,Or=Tr=Ar=0;for(;!Er();)Sr=jr(),Nr(Sr)?Mr(Sr):91===Sr&&Dr(Sr);return{exp:t.slice(0,Tr),key:t.slice(Tr+1,Ar)}}(t);return null===n.key?`${t}=${e}`:`$set(${n.exp}, ${n.key}, ${e})`}let Cr,kr,Sr,Or,Tr,Ar;function jr(){return kr.charCodeAt(++Or)}function Er(){return Or>=Cr}function Nr(t){return 34===t||39===t}function Dr(t){let e=1;for(Tr=Or;!Er();)if(Nr(t=jr()))Mr(t);else if(91===t&&e++,93===t&&e--,0===e){Ar=Or;break}}function Mr(t){const e=t;for(;!Er()&&(t=jr())!==e;);}let Pr;function Ir(t,e,n){const o=Pr;return function r(){const s=e.apply(null,arguments);null!==s&&Fr(t,r,n,o)}}const Rr=rn&&!(X&&Number(X[1])<=53);function Lr(t,e,n,o){if(Rr){const t=Ve,n=e;e=n._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=t||e.timeStamp<=0||e.target.ownerDocument!==document)return n.apply(this,arguments)}}Pr.addEventListener(t,e,tt?{capture:n,passive:o}:n)}function Fr(t,e,n,o){(o||Pr).removeEventListener(t,e._wrapper||e,n)}function Hr(t,e){if(n(t.data.on)&&n(e.data.on))return;const r=e.data.on||{},s=t.data.on||{};Pr=e.elm||t.elm,function(t){if(o(t.__r)){const e=q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),Vt(r,s,Lr,Fr,Ir,e.context),Pr=void 0}var Br={create:Hr,update:Hr,destroy:t=>Hr(t,Vo)};let Ur;function zr(t,e){if(n(t.data.domProps)&&n(e.data.domProps))return;let s,i;const c=e.elm,a=t.data.domProps||{};let l=e.data.domProps||{};for(s in(o(l.__ob__)||r(l._v_attr_proxy))&&(l=e.data.domProps=T({},l)),a)s in l||(c[s]="");for(s in l){if(i=l[s],"textContent"===s||"innerHTML"===s){if(e.children&&(e.children.length=0),i===a[s])continue;1===c.childNodes.length&&c.removeChild(c.childNodes[0])}if("value"===s&&"PROGRESS"!==c.tagName){c._value=i;const t=n(i)?"":String(i);Vr(c,t)&&(c.value=t)}else if("innerHTML"===s&&Mo(c.tagName)&&n(c.innerHTML)){Ur=Ur||document.createElement("div"),Ur.innerHTML=``;const t=Ur.firstChild;for(;c.firstChild;)c.removeChild(c.firstChild);for(;t.firstChild;)c.appendChild(t.firstChild)}else if(i!==a[s])try{c[s]=i}catch(t){}}}function Vr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){let n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){const n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return p(n)!==p(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Kr={create:zr,update:zr};const Jr=$((function(t){const e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){const o=t.split(n);o.length>1&&(e[o[0].trim()]=o[1].trim())}})),e}));function qr(t){const e=Wr(t.style);return t.staticStyle?T(t.staticStyle,e):e}function Wr(t){return Array.isArray(t)?A(t):"string"==typeof t?Jr(t):t}const Zr=/^--/,Gr=/\s*!important$/,Xr=(t,e,n)=>{if(Zr.test(e))t.style.setProperty(e,n);else if(Gr.test(n))t.style.setProperty(k(e),n.replace(Gr,""),"important");else{const o=ts(e);if(Array.isArray(n))for(let e=0,r=n.length;e-1?e.split(os).forEach((e=>t.classList.add(e))):t.classList.add(e);else{const n=` ${t.getAttribute("class")||""} `;n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ss(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(os).forEach((e=>t.classList.remove(e))):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{let n=` ${t.getAttribute("class")||""} `;const o=" "+e+" ";for(;n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function is(t){if(t){if("object"==typeof t){const e={};return!1!==t.css&&T(e,cs(t.name||"v")),T(e,t),e}return"string"==typeof t?cs(t):void 0}}const cs=$((t=>({enterClass:`${t}-enter`,enterToClass:`${t}-enter-to`,enterActiveClass:`${t}-enter-active`,leaveClass:`${t}-leave`,leaveToClass:`${t}-leave-to`,leaveActiveClass:`${t}-leave-active`}))),as=K&&!W;let ls="transition",us="transitionend",fs="animation",ds="animationend";as&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ls="WebkitTransition",us="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(fs="WebkitAnimation",ds="webkitAnimationEnd"));const ps=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:t=>t();function hs(t){ps((()=>{ps(t)}))}function ms(t,e){const n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),rs(t,e))}function gs(t,e){t._transitionClasses&&v(t._transitionClasses,e),ss(t,e)}function vs(t,e,n){const{type:o,timeout:r,propCount:s}=_s(t,e);if(!o)return n();const i="transition"===o?us:ds;let c=0;const a=()=>{t.removeEventListener(i,l),n()},l=e=>{e.target===t&&++c>=s&&a()};setTimeout((()=>{c0&&(l="transition",u=s,f=r.length):"animation"===e?a>0&&(l="animation",u=a,f=c.length):(u=Math.max(s,a),l=u>0?s>a?"transition":"animation":null,f=l?"transition"===l?r.length:c.length:0);return{type:l,timeout:u,propCount:f,hasTransform:"transition"===l&&ys.test(n[ls+"Property"])}}function $s(t,e){for(;t.lengthbs(e)+bs(t[n]))))}function bs(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ws(t,e){const r=t.elm;o(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());const s=is(t.data.transition);if(n(s))return;if(o(r._enterCb)||1!==r.nodeType)return;const{css:a,type:l,enterClass:u,enterToClass:f,enterActiveClass:d,appearClass:h,appearToClass:m,appearActiveClass:g,beforeEnter:v,enter:y,afterEnter:_,enterCancelled:$,beforeAppear:b,appear:w,afterAppear:x,appearCancelled:C,duration:k}=s;let S=Ne,O=Ne.$vnode;for(;O&&O.parent;)S=O.context,O=O.parent;const T=!S._isMounted||!t.isRootInsert;if(T&&!w&&""!==w)return;const A=T&&h?h:u,j=T&&g?g:d,E=T&&m?m:f,N=T&&b||v,D=T&&i(w)?w:y,M=T&&x||_,I=T&&C||$,R=p(c(k)?k.enter:k),L=!1!==a&&!W,F=ks(D),H=r._enterCb=P((()=>{L&&(gs(r,E),gs(r,j)),H.cancelled?(L&&gs(r,A),I&&I(r)):M&&M(r),r._enterCb=null}));t.data.show||Kt(t,"insert",(()=>{const e=r.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),D&&D(r,H)})),N&&N(r),L&&(ms(r,A),ms(r,j),hs((()=>{gs(r,A),H.cancelled||(ms(r,E),F||(Cs(R)?setTimeout(H,R):vs(r,l,H)))}))),t.data.show&&(e&&e(),D&&D(r,H)),L||F||H()}function xs(t,e){const r=t.elm;o(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());const s=is(t.data.transition);if(n(s)||1!==r.nodeType)return e();if(o(r._leaveCb))return;const{css:i,type:a,leaveClass:l,leaveToClass:u,leaveActiveClass:f,beforeLeave:d,leave:h,afterLeave:m,leaveCancelled:g,delayLeave:v,duration:y}=s,_=!1!==i&&!W,$=ks(h),b=p(c(y)?y.leave:y),w=r._leaveCb=P((()=>{r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),_&&(gs(r,u),gs(r,f)),w.cancelled?(_&&gs(r,l),g&&g(r)):(e(),m&&m(r)),r._leaveCb=null}));function x(){w.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),d&&d(r),_&&(ms(r,l),ms(r,f),hs((()=>{gs(r,l),w.cancelled||(ms(r,u),$||(Cs(b)?setTimeout(w,b):vs(r,a,w)))}))),h&&h(r,w),_||$||w())}v?v(x):x()}function Cs(t){return"number"==typeof t&&!isNaN(t)}function ks(t){if(n(t))return!1;const e=t.fns;return o(e)?ks(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ss(t,e){!0!==e.data.show&&ws(e)}const Os=function(t){let i,c;const a={},{modules:l,nodeOps:u}=t;for(i=0;im?(f=n(r[y+1])?null:r[y+1].elm,$(t,f,r,h,y,s)):h>y&&w(e,p,m)}(f,m,g,s,l):o(g)?(o(t.text)&&u.setTextContent(f,""),$(f,null,g,0,g.length-1,s)):o(m)?w(m,0,m.length-1):o(t.text)&&u.setTextContent(f,""):t.text!==e.text&&u.setTextContent(f,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}function S(t,e,n){if(r(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(let t=0;t{const t=document.activeElement;t&&t.vmodel&&Ps(t,"input")}));const Ts={inserted(t,e,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?Kt(n,"postpatch",(()=>{Ts.componentUpdated(t,e,n)})):As(t,e,n.context),t._vOptions=[].map.call(t.options,Ns)):("textarea"===n.tag||Lo(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ds),t.addEventListener("compositionend",Ms),t.addEventListener("change",Ms),W&&(t.vmodel=!0)))},componentUpdated(t,e,n){if("select"===n.tag){As(t,e,n.context);const o=t._vOptions,r=t._vOptions=[].map.call(t.options,Ns);if(r.some(((t,e)=>!D(t,o[e])))){(t.multiple?e.value.some((t=>Es(t,r))):e.value!==e.oldValue&&Es(e.value,r))&&Ps(t,"change")}}}};function As(t,e,n){js(t,e),(q||Z)&&setTimeout((()=>{js(t,e)}),0)}function js(t,e,n){const o=e.value,r=t.multiple;if(r&&!Array.isArray(o))return;let s,i;for(let e=0,n=t.options.length;e-1,i.selected!==s&&(i.selected=s);else if(D(Ns(i),o))return void(t.selectedIndex!==e&&(t.selectedIndex=e));r||(t.selectedIndex=-1)}function Es(t,e){return e.every((e=>!D(e,t)))}function Ns(t){return"_value"in t?t._value:t.value}function Ds(t){t.target.composing=!0}function Ms(t){t.target.composing&&(t.target.composing=!1,Ps(t.target,"input"))}function Ps(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Is(t){return!t.componentInstance||t.data&&t.data.transition?t:Is(t.componentInstance._vnode)}var Rs={bind(t,{value:e},n){const o=(n=Is(n)).data&&n.data.transition,r=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;e&&o?(n.data.show=!0,ws(n,(()=>{t.style.display=r}))):t.style.display=e?r:"none"},update(t,{value:e,oldValue:n},o){if(!e==!n)return;(o=Is(o)).data&&o.data.transition?(o.data.show=!0,e?ws(o,(()=>{t.style.display=t.__vOriginalDisplay})):xs(o,(()=>{t.style.display="none"}))):t.style.display=e?t.__vOriginalDisplay:"none"},unbind(t,e,n,o,r){r||(t.style.display=t.__vOriginalDisplay)}},Ls={model:Ts,show:Rs};const Fs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hs(t){const e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Hs(Oe(e.children)):t}function Bs(t){const e={},n=t.$options;for(const o in n.propsData)e[o]=t[o];const o=n._parentListeners;for(const t in o)e[w(t)]=o[t];return e}function Us(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}const zs=t=>t.tag||me(t),Vs=t=>"show"===t.name;var Ks={name:"transition",props:Fs,abstract:!0,render(t){let e=this.$slots.default;if(!e)return;if(e=e.filter(zs),!e.length)return;const n=this.mode,o=e[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;const r=Hs(o);if(!r)return o;if(this._leaving)return Us(t,o);const i=`__transition-${this._uid}-`;r.key=null==r.key?r.isComment?i+"comment":i+r.tag:s(r.key)?0===String(r.key).indexOf(i)?r.key:i+r.key:r.key;const c=(r.data||(r.data={})).transition=Bs(this),a=this._vnode,l=Hs(a);if(r.data.directives&&r.data.directives.some(Vs)&&(r.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(r,l)&&!me(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){const e=l.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,Kt(e,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),Us(t,o);if("in-out"===n){if(me(r))return a;let t;const n=()=>{t()};Kt(c,"afterEnter",n),Kt(c,"enterCancelled",n),Kt(e,"delayLeave",(e=>{t=e}))}}return o}};const Js=T({tag:String,moveClass:String},Fs);delete Js.mode;var qs={props:Js,beforeMount(){const t=this._update;this._update=(e,n)=>{const o=De(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,o(),t.call(this,e,n)}},render(t){const e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],i=Bs(this);for(let t=0;t{if(t.data.moved){const n=t.elm,o=n.style;ms(n,e),o.transform=o.WebkitTransform=o.transitionDuration="",n.addEventListener(us,n._moveCb=function t(o){o&&o.target!==n||o&&!/transform$/.test(o.propertyName)||(n.removeEventListener(us,t),n._moveCb=null,gs(n,e))})}})))},methods:{hasMove(t,e){if(!as)return!1;if(this._hasMove)return this._hasMove;const n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((t=>{ss(n,t)})),rs(n,e),n.style.display="none",this.$el.appendChild(n);const o=_s(n);return this.$el.removeChild(n),this._hasMove=o.hasTransform}}};function Ws(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Zs(t){t.data.newPos=t.elm.getBoundingClientRect()}function Gs(t){const e=t.data.pos,n=t.data.newPos,o=e.left-n.left,r=e.top-n.top;if(o||r){t.data.moved=!0;const e=t.elm.style;e.transform=e.WebkitTransform=`translate(${o}px,${r}px)`,e.transitionDuration="0s"}}var Xs={Transition:Ks,TransitionGroup:qs};lo.config.mustUseProp=$o,lo.config.isReservedTag=Po,lo.config.isReservedAttr=yo,lo.config.getTagNamespace=Io,lo.config.isUnknownElement=function(t){if(!K)return!0;if(Po(t))return!1;if(t=t.toLowerCase(),null!=Ro[t])return Ro[t];const e=document.createElement(t);return t.indexOf("-")>-1?Ro[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ro[t]=/HTMLUnknownElement/.test(e.toString())},T(lo.options.directives,Ls),T(lo.options.components,Xs),lo.prototype.__patch__=K?Os:j,lo.prototype.$mount=function(t,e){return function(t,e,n){let o;t.$el=e,t.$options.render||(t.$options.render=lt),Re(t,"beforeMount"),o=()=>{t._update(t._render(),n)},new An(t,o,j,{before(){t._isMounted&&!t._isDestroyed&&Re(t,"beforeUpdate")}},!0),n=!1;const r=t._preWatchers;if(r)for(let t=0;t{F.devtools&&nt&&nt.emit("init",lo)}),0);const Ys=/\{\{((?:.|\r?\n)+?)\}\}/g,Qs=/[-.*+?^${}()|[\]\/\\]/g,ti=$((t=>{const e=t[0].replace(Qs,"\\$&"),n=t[1].replace(Qs,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var ei={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;const n=_r(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));const o=yr(t,"class",!1);o&&(t.classBinding=o)},genData:function(t){let e="";return t.staticClass&&(e+=`staticClass:${t.staticClass},`),t.classBinding&&(e+=`class:${t.classBinding},`),e}};var ni={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;const n=_r(t,"style");n&&(t.staticStyle=JSON.stringify(Jr(n)));const o=yr(t,"style",!1);o&&(t.styleBinding=o)},genData:function(t){let e="";return t.staticStyle&&(e+=`staticStyle:${t.staticStyle},`),t.styleBinding&&(e+=`style:(${t.styleBinding}),`),e}};let oi;var ri={decode:t=>(oi=oi||document.createElement("div"),oi.innerHTML=t,oi.textContent)};const si=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ii=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ci=h("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ai=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,li=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ui=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${H.source}]*`,fi=`((?:${ui}\\:)?${ui})`,di=new RegExp(`^<${fi}`),pi=/^\s*(\/?)>/,hi=new RegExp(`^<\\/${fi}[^>]*>`),mi=/^]+>/i,gi=/^",""":'"',"&":"&","
":"\n"," ":"\t","'":"'"},bi=/&(?:lt|gt|quot|amp|#39);/g,wi=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,xi=h("pre,textarea",!0),Ci=(t,e)=>t&&xi(t)&&"\n"===e[0];function ki(t,e){const n=e?wi:bi;return t.replace(n,(t=>$i[t]))}const Si=/^@|^v-on:/,Oi=/^v-|^@|^:|^#/,Ti=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ai=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ji=/^\(|\)$/g,Ei=/^\[.*\]$/,Ni=/:(.*)$/,Di=/^:|^\.|^v-bind:/,Mi=/\.[^.\]]+(?=[^\]]*$)/g,Pi=/^v-slot(:|$)|^#/,Ii=/[\r\n]/,Ri=/[ \f\t\r\n]+/g,Li=$(ri.decode);let Fi,Hi,Bi,Ui,zi,Vi,Ki,Ji;function qi(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:tc(e),rawAttrsMap:{},parent:n,children:[]}}function Wi(t,e){Fi=e.warn||ur,Vi=e.isPreTag||E,Ki=e.mustUseProp||E,Ji=e.getTagNamespace||E,e.isReservedTag,Bi=fr(e.modules,"transformNode"),Ui=fr(e.modules,"preTransformNode"),zi=fr(e.modules,"postTransformNode"),Hi=e.delimiters;const n=[],o=!1!==e.preserveWhitespace,r=e.whitespace;let s,i,c=!1,a=!1;function l(t){if(u(t),c||t.processed||(t=Zi(t,e)),n.length||t===s||s.if&&(t.elseif||t.else)&&Xi(s,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)!function(t,e){const n=function(t){let e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(e.children);n&&n.if&&Xi(n,{exp:t.elseif,block:t})}(t,i);else{if(t.slotScope){const e=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[e]=t}i.children.push(t),t.parent=i}t.children=t.children.filter((t=>!t.slotScope)),u(t),t.pre&&(c=!1),Vi(t.tag)&&(a=!1);for(let n=0;n]*>)","i")),s=t.replace(r,(function(t,r,s){return n=s.length,yi(o)||"noscript"===o||(r=r.replace(//g,"$1").replace(//g,"$1")),Ci(o,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));a+=t.length-s.length,t=s,d(o,a-n,a)}else{let n,o,r,s=t.indexOf("<");if(0===s){if(gi.test(t)){const n=t.indexOf("--\x3e");if(n>=0){e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,n),a,a+n+3),l(n+3);continue}}if(vi.test(t)){const e=t.indexOf("]>");if(e>=0){l(e+2);continue}}const n=t.match(mi);if(n){l(n[0].length);continue}const o=t.match(hi);if(o){const t=a;l(o[0].length),d(o[1],t,a);continue}const r=u();if(r){f(r),Ci(r.tagName,t)&&l(1);continue}}if(s>=0){for(o=t.slice(s);!(hi.test(o)||di.test(o)||gi.test(o)||vi.test(o)||(r=o.indexOf("<",1),r<0));)s+=r,o=t.slice(s);n=t.substring(0,s)}s<0&&(n=t),n&&l(n.length),e.chars&&n&&e.chars(n,a-n.length,a)}if(t===i){e.chars&&e.chars(t);break}}function l(e){a+=e,t=t.substring(e)}function u(){const e=t.match(di);if(e){const n={tagName:e[1],attrs:[],start:a};let o,r;for(l(e[0].length);!(o=t.match(pi))&&(r=t.match(li)||t.match(ai));)r.start=a,l(r[0].length),r.end=a,n.attrs.push(r);if(o)return n.unarySlash=o[1],l(o[0].length),n.end=a,n}}function f(t){const i=t.tagName,a=t.unarySlash;o&&("p"===c&&ci(i)&&d(c),s(i)&&c===i&&d(i));const l=r(i)||!!a,u=t.attrs.length,f=new Array(u);for(let n=0;n=0&&n[s].lowerCasedTag!==i;s--);else s=0;if(s>=0){for(let t=n.length-1;t>=s;t--)e.end&&e.end(n[t].tag,o,r);n.length=s,c=s&&n[s-1].tag}else"br"===i?e.start&&e.start(t,[],!0,o,r):"p"===i&&(e.start&&e.start(t,[],!1,o,r),e.end&&e.end(t,o,r))}d()}(t,{warn:Fi,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start(t,o,r,u,f){const d=i&&i.ns||Ji(t);q&&"svg"===d&&(o=function(t){const e=[];for(let n=0;na&&(r.push(c=t.slice(a,i)),o.push(JSON.stringify(c)));const e=ar(s[1].trim());o.push(`_s(${e})`),r.push({"@binding":e}),a=i+s[0].length}return a{if(!t.slotScope)return t.parent=s,!0})),s.slotScope=e.value||"_empty_",t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=yr(n,"name")),function(t){let e;(e=yr(t,"is"))&&(t.component=e);null!=_r(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(let n=0;n{t[e.slice(1)]=!0})),t}}function tc(t){const e={};for(let n=0,o=t.length;n-1`+("true"===s?`:(${e})`:`:_q(${e},${s})`)),vr(t,"change",`var $$a=${e},$$el=$event.target,$$c=$$el.checked?(${s}):(${i});if(Array.isArray($$a)){var $$v=${o?"_n("+r+")":r},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xr(e,"$$a.concat([$$v])")})}else{$$i>-1&&(${xr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xr(e,"$$c")}}`,null,!0)}(t,o,r);else if("input"===s&&"radio"===i)!function(t,e,n){const o=n&&n.number;let r=yr(t,"value")||"null";r=o?`_n(${r})`:r,dr(t,"checked",`_q(${e},${r})`),vr(t,"change",xr(e,r),null,!0)}(t,o,r);else if("input"===s||"textarea"===s)!function(t,e,n){const o=t.attrsMap.type,{lazy:r,number:s,trim:i}=n||{},c=!r&&"range"!==o,a=r?"change":"range"===o?"__r":"input";let l="$event.target.value";i&&(l="$event.target.value.trim()");s&&(l=`_n(${l})`);let u=xr(e,l);c&&(u=`if($event.target.composing)return;${u}`);dr(t,"value",`(${e})`),vr(t,a,u,null,!0),(i||s)&&vr(t,"blur","$forceUpdate()")}(t,o,r);else if(!F.isReservedTag(s))return wr(t,o,r),!1;return!0},text:function(t,e){e.value&&dr(t,"textContent",`_s(${e.value})`,e)},html:function(t,e){e.value&&dr(t,"innerHTML",`_s(${e.value})`,e)}},isPreTag:t=>"pre"===t,isUnaryTag:si,mustUseProp:$o,canBeLeftOpenTag:ii,isReservedTag:Po,getTagNamespace:Io,staticKeys:function(t){return t.reduce(((t,e)=>t.concat(e.staticKeys||[])),[]).join(",")}(rc)};let ic,cc;const ac=$((function(t){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function lc(t,e){t&&(ic=ac(e.staticKeys||""),cc=e.isReservedTag||E,uc(t),fc(t,!1))}function uc(t){if(t.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||m(t.tag)||!cc(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(ic)))}(t),1===t.type){if(!cc(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(let e=0,n=t.children.length;e|^function(?:\s+[\w$]+)?\s*\(/,pc=/\([^)]*?\);*$/,hc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,mc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},gc={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},vc=t=>`if(${t})return null;`,yc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:vc("$event.target !== $event.currentTarget"),ctrl:vc("!$event.ctrlKey"),shift:vc("!$event.shiftKey"),alt:vc("!$event.altKey"),meta:vc("!$event.metaKey"),left:vc("'button' in $event && $event.button !== 0"),middle:vc("'button' in $event && $event.button !== 1"),right:vc("'button' in $event && $event.button !== 2")};function _c(t,e){const n=e?"nativeOn:":"on:";let o="",r="";for(const e in t){const n=$c(t[e]);t[e]&&t[e].dynamic?r+=`${e},${n},`:o+=`"${e}":${n},`}return o=`{${o.slice(0,-1)}}`,r?n+`_d(${o},[${r.slice(0,-1)}])`:n+o}function $c(t){if(!t)return"function(){}";if(Array.isArray(t))return`[${t.map((t=>$c(t))).join(",")}]`;const e=hc.test(t.value),n=dc.test(t.value),o=hc.test(t.value.replace(pc,""));if(t.modifiers){let r="",s="";const i=[];for(const e in t.modifiers)if(yc[e])s+=yc[e],mc[e]&&i.push(e);else if("exact"===e){const e=t.modifiers;s+=vc(["ctrl","shift","alt","meta"].filter((t=>!e[t])).map((t=>`$event.${t}Key`)).join("||"))}else i.push(e);i.length&&(r+=function(t){return`if(!$event.type.indexOf('key')&&${t.map(bc).join("&&")})return null;`}(i)),s&&(r+=s);return`function($event){${r}${e?`return ${t.value}.apply(null, arguments)`:n?`return (${t.value}).apply(null, arguments)`:o?`return ${t.value}`:t.value}}`}return e||n?t.value:`function($event){${o?`return ${t.value}`:t.value}}`}function bc(t){const e=parseInt(t,10);if(e)return`$event.keyCode!==${e}`;const n=mc[t],o=gc[t];return`_k($event.keyCode,${JSON.stringify(t)},${JSON.stringify(n)},$event.key,${JSON.stringify(o)})`}var wc={on:function(t,e){t.wrapListeners=t=>`_g(${t},${e.value})`},bind:function(t,e){t.wrapData=n=>`_b(${n},'${t.tag}',${e.value},${e.modifiers&&e.modifiers.prop?"true":"false"}${e.modifiers&&e.modifiers.sync?",true":""})`},cloak:j};class xc{constructor(t){this.options=t,this.warn=t.warn||ur,this.transforms=fr(t.modules,"transformCode"),this.dataGenFns=fr(t.modules,"genData"),this.directives=T(T({},wc),t.directives);const e=t.isReservedTag||E;this.maybeComponent=t=>!!t.component||!e(t.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function Cc(t,e){const n=new xc(e);return{render:`with(this){return ${t?"script"===t.tag?"null":kc(t,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function kc(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Oc(t,e);if(t.once&&!t.onceProcessed)return Tc(t,e);if(t.for&&!t.forProcessed)return Ec(t,e);if(t.if&&!t.ifProcessed)return Ac(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){const n=t.slotName||'"default"',o=Pc(t,e);let r=`_t(${n}${o?`,function(){return ${o}}`:""}`;const s=t.attrs||t.dynamicAttrs?Lc((t.attrs||[]).concat(t.dynamicAttrs||[]).map((t=>({name:w(t.name),value:t.value,dynamic:t.dynamic})))):null,i=t.attrsMap["v-bind"];!s&&!i||o||(r+=",null");s&&(r+=`,${s}`);i&&(r+=`${s?"":",null"},${i}`);return r+")"}(t,e);{let n;if(t.component)n=function(t,e,n){const o=e.inlineTemplate?null:Pc(e,n,!0);return`_c(${t},${Nc(e,n)}${o?`,${o}`:""})`}(t.component,t,e);else{let o,r;(!t.plain||t.pre&&e.maybeComponent(t))&&(o=Nc(t,e));const s=e.options.bindings;s&&!1!==s.__isScriptSetup&&(r=Sc(s,t.tag)||Sc(s,w(t.tag))||Sc(s,x(w(t.tag)))),r||(r=`'${t.tag}'`);const i=t.inlineTemplate?null:Pc(t,e,!0);n=`_c(${r}${o?`,${o}`:""}${i?`,${i}`:""})`}for(let o=0;o{const n=e[t];return n.slotTargetDynamic||n.if||n.for||Dc(n)})),r=!!t.if;if(!o){let e=t.parent;for(;e;){if(e.slotScope&&"_empty_"!==e.slotScope||e.for){o=!0;break}e.if&&(r=!0),e=e.parent}}const s=Object.keys(e).map((t=>Mc(e[t],n))).join(",");return`scopedSlots:_u([${s}]${o?",null,true":""}${!o&&r?`,null,false,${function(t){let e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(s)}`:""})`}(t,t.scopedSlots,e)},`),t.model&&(n+=`model:{value:${t.model.value},callback:${t.model.callback},expression:${t.model.expression}},`),t.inlineTemplate){const o=function(t,e){const n=t.children[0];if(n&&1===n.type){const t=Cc(n,e.options);return`inlineTemplate:{render:function(){${t.render}},staticRenderFns:[${t.staticRenderFns.map((t=>`function(){${t}}`)).join(",")}]}`}}(t,e);o&&(n+=`${o},`)}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n=`_b(${n},"${t.tag}",${Lc(t.dynamicAttrs)})`),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Dc(t){return 1===t.type&&("slot"===t.tag||t.children.some(Dc))}function Mc(t,e){const n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Ac(t,e,Mc,"null");if(t.for&&!t.forProcessed)return Ec(t,e,Mc);const o="_empty_"===t.slotScope?"":String(t.slotScope),r=`function(${o}){return ${"template"===t.tag?t.if&&n?`(${t.if})?${Pc(t,e)||"undefined"}:undefined`:Pc(t,e)||"undefined":kc(t,e)}}`,s=o?"":",proxy:true";return`{key:${t.slotTarget||'"default"'},fn:${r}${s}}`}function Pc(t,e,n,o,r){const s=t.children;if(s.length){const t=s[0];if(1===s.length&&t.for&&"template"!==t.tag&&"slot"!==t.tag){const r=n?e.maybeComponent(t)?",1":",0":"";return`${(o||kc)(t,e)}${r}`}const i=n?function(t,e){let n=0;for(let o=0;oIc(t.block)))){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some((t=>e(t.block))))&&(n=1)}}return n}(s,e.maybeComponent):0,c=r||Rc;return`[${s.map((t=>c(t,e))).join(",")}]${i?`,${i}`:""}`}}function Ic(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Rc(t,e){return 1===t.type?kc(t,e):3===t.type&&t.isComment?function(t){return`_e(${JSON.stringify(t.text)})`}(t):function(t){return`_v(${2===t.type?t.expression:Fc(JSON.stringify(t.text))})`}(t)}function Lc(t){let e="",n="";for(let o=0;oHc(t,a))),e[s]=c}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");const Uc=(zc=function(t,e){const n=Wi(t.trim(),e);!1!==e.optimize&&lc(n,e);const o=Cc(n,e);return{ast:n,render:o.render,staticRenderFns:o.staticRenderFns}},function(t){function e(e,n){const o=Object.create(t),r=[],s=[];if(n){n.modules&&(o.modules=(t.modules||[]).concat(n.modules)),n.directives&&(o.directives=T(Object.create(t.directives||null),n.directives));for(const t in n)"modules"!==t&&"directives"!==t&&(o[t]=n[t])}o.warn=(t,e,n)=>{(n?s:r).push(t)};const i=zc(e.trim(),o);return i.errors=r,i.tips=s,i}return{compile:e,compileToFunctions:Bc(e)}});var zc;const{compile:Vc,compileToFunctions:Kc}=Uc(sc);let Jc;function qc(t){return Jc=Jc||document.createElement("div"),Jc.innerHTML=t?'':'',Jc.innerHTML.indexOf("
")>0}const Wc=!!K&&qc(!1),Zc=!!K&&qc(!0),Gc=$((t=>{const e=Fo(t);return e&&e.innerHTML})),Xc=lo.prototype.$mount;lo.prototype.$mount=function(t,e){if((t=t&&Fo(t))===document.body||t===document.documentElement)return this;const n=this.$options;if(!n.render){let e=n.template;if(e)if("string"==typeof e)"#"===e.charAt(0)&&(e=Gc(e));else{if(!e.nodeType)return this;e=e.innerHTML}else t&&(e=function(t){if(t.outerHTML)return t.outerHTML;{const e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}}(t));if(e){const{render:t,staticRenderFns:o}=Kc(e,{outputSourceRange:!1,shouldDecodeNewlines:Wc,shouldDecodeNewlinesForHref:Zc,delimiters:n.delimiters,comments:n.comments},this);n.render=t,n.staticRenderFns=o}}return Xc.call(this,t,e)},lo.compile=Kc,T(lo,Cn),lo.effect=function(t,e){const n=new An(it,t,j,{sync:!0});e&&(n.update=()=>{e((()=>n.run()))})},module.exports=lo;
/***/ })
/******/ });
/************************************************************************/
/******/ // 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].call(module.exports, 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/global */
/******/ !function() {
/******/ __webpack_require__.g = (function() {
/******/ if (typeof globalThis === 'object') return globalThis;
/******/ try {
/******/ return this || new Function('return this')();
/******/ } catch (e) {
/******/ if (typeof window === 'object') return window;
/******/ }
/******/ })();
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
!function() {
"use strict";
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.common.prod.js
var vue_common_prod = __webpack_require__(317);
var vue_common_prod_default = /*#__PURE__*/__webpack_require__.n(vue_common_prod);
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/utils/event-bus.js
/* harmony default export */ var event_bus = (new (vue_common_prod_default())());
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/archive/browser.vue?vue&type=template&id=727e58b0&
var render = function render() {
var _vm = this,
_c = _vm._self._c;
return _vm.archive ? _c("div", {
staticClass: "ai1wm-overlay",
staticStyle: {
display: "block"
}
}, [_c("div", {
staticClass: "ai1wm-modal-container ai1wm-modal-container-v2",
"class": {
"ai1wm-modal-loading": _vm.loading
},
attrs: {
role: "dialog",
tabindex: "-1"
},
on: {
click: function click($event) {
$event.stopPropagation();
}
}
}, [_vm.error ? _c("div", {
staticClass: "ai1wm-folder-container"
}, [_c("h1", [_vm._v("\n " + _vm._s(_vm.__("archive_browser_error")) + "\n "), _c("a", {
attrs: {
href: "#"
},
on: {
click: function click($event) {
$event.preventDefault();
_vm.archive = null;
}
}
}, [_c("i", {
staticClass: "ai1wm-icon-close"
})])]), _vm._v(" "), _c("p", [_vm._v(_vm._s(_vm.error))])]) : _vm.loading ? _c("ai1wm-spinner") : _vm.processing ? _c("progress-bar", {
attrs: {
title: _vm.__("progress_bar_title"),
total: _vm.total,
processed: _vm.processed
}
}) : _c("div", {
staticClass: "ai1wm-folder-container"
}, [_c("h1", [_vm._v("\n " + _vm._s(_vm.__("archive_browser_title")) + "\n "), _c("a", {
attrs: {
href: "#"
},
on: {
click: function click($event) {
$event.preventDefault();
_vm.archive = null;
}
}
}, [_c("i", {
staticClass: "ai1wm-icon-close"
})])]), _vm._v(" "), _c("folder", {
attrs: {
folder: _vm.tree.root,
index: 0
}
})], 1)], 1)]) : _vm._e();
};
var staticRenderFns = [];
render._withStripped = true;
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/browser.vue?vue&type=template&id=727e58b0&
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/archive/folder.vue?vue&type=template&id=ceb1e49c&
var foldervue_type_template_id_ceb1e49c_render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c("ul", [_vm.tree.expanded ? _c("li", [_c("a", {
style: {
"padding-left": _vm.index + "rem"
},
attrs: {
href: "#"
},
on: {
click: function click($event) {
$event.preventDefault();
return _vm.__toggle.apply(null, arguments);
}
}
}, [_c("i", {
staticClass: "ai1wm-icon-folder-secondary-open"
}), _vm._v(" " + _vm._s(_vm.__name(_vm.tree.name)) + "\n ")]), _vm._v(" "), _vm._l(_vm.tree.children, function (child) {
return _c("folder", {
key: "folder_" + child.name,
attrs: {
folder: child,
index: _vm.index + 1
}
});
}), _vm._v(" "), _vm._l(_vm.tree.files, function (file) {
return _c("ul", {
key: "files_" + file.name
}, [_c("li", [_c("a", {
style: {
"padding-left": _vm.index + 1 + "rem"
},
attrs: {
href: "#"
},
on: {
click: function click($event) {
$event.preventDefault();
return _vm.download(file);
}
}
}, [_c("i", {
staticClass: "ai1wm-icon-file"
}), _vm._v(" "), _c("span", {
staticClass: "ai1wm-archive-browser-filename"
}, [_vm._v(_vm._s(_vm.__name(file.name)))]), _vm._v(" "), _c("span", {
staticClass: "ai1wm-archive-browser-filesize"
}, [_vm._v(_vm._s(_vm.__size(file.size)))]), _vm._v(" "), _c("i", {
staticClass: "ai1wm-icon-arrow-down"
})])])]);
})], 2) : _c("li", [_c("a", {
style: {
"padding-left": _vm.index + "rem"
},
attrs: {
href: "#"
},
on: {
click: function click($event) {
$event.preventDefault();
_vm.tree.expanded = !_vm.tree.expanded;
}
}
}, [_c("i", {
staticClass: "ai1wm-icon-folder-secondary"
}), _vm._v(" " + _vm._s(_vm.__name(_vm.tree.name)) + "\n ")])])]);
};
var foldervue_type_template_id_ceb1e49c_staticRenderFns = [];
foldervue_type_template_id_ceb1e49c_render._withStripped = true;
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/folder.vue?vue&type=template&id=ceb1e49c&
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/archive/folder.vue?vue&type=script&lang=js&
/* harmony default export */ var foldervue_type_script_lang_js_ = ({
name: 'Folder',
props: {
folder: {
type: Object,
required: true
},
index: {
type: Number,
"default": 0
}
},
data: function data() {
return {
tree: this.folder
};
},
methods: {
download: function download(file) {
event_bus.$emit('ai1wm-download-file', file);
},
__toggle: function __toggle() {
if (this.index > 0) {
this.tree.expanded = !this.tree.expanded;
}
},
__name: function __name(filename) {
return Ai1wm.Util.basename(filename);
},
__size: function __size(size) {
return Ai1wm.Util.sizeFormat(size);
}
}
});
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/folder.vue?vue&type=script&lang=js&
/* harmony default export */ var archive_foldervue_type_script_lang_js_ = (foldervue_type_script_lang_js_);
;// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function normalizeComponent(
scriptExports,
render,
staticRenderFns,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier /* server only */,
shadowMode /* vue-cli only */
) {
// Vue.extend constructor export interop
var options =
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
// render functions
if (render) {
options.render = render
options.staticRenderFns = staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = 'data-v-' + scopeId
}
var hook
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
? function () {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
)
}
: injectStyles
}
if (hook) {
if (options.functional) {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functional component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection(h, context) {
hook.call(context)
return originalRender(h, context)
}
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
}
}
return {
exports: scriptExports,
options: options
}
}
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/folder.vue
/* normalize component */
;
var component = normalizeComponent(
archive_foldervue_type_script_lang_js_,
foldervue_type_template_id_ceb1e49c_render,
foldervue_type_template_id_ceb1e49c_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var folder = (component.exports);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/progress-bar.vue?vue&type=template&id=8b61c75e&
var progress_barvue_type_template_id_8b61c75e_render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c("div", {
staticClass: "ai1wm-progress-bar-v2"
}, [_c("h1", {
domProps: {
textContent: _vm._s(_vm.title)
}
}), _vm._v(" "), _c("div", {
staticClass: "ai1wm-progress-bar-v2-container"
}, [_c("div", {
key: "progres" + _vm.progress,
staticClass: "ai1wm-progress-bar-v2-meter"
}, [_c("div", {
staticClass: "ai1wm-progress-bar-v2-percent",
style: {
left: _vm.progress + "%"
}
}, [_vm._v("\n " + _vm._s(_vm.progress) + "%\n ")]), _vm._v(" "), _c("span", {
staticClass: "ai1wm-progress-bar-v2-slider",
style: {
width: _vm.progress + "%"
}
})])])]);
};
var progress_barvue_type_template_id_8b61c75e_staticRenderFns = [];
progress_barvue_type_template_id_8b61c75e_render._withStripped = true;
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/progress-bar.vue?vue&type=template&id=8b61c75e&
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/progress-bar.vue?vue&type=script&lang=js&
/* harmony default export */ var progress_barvue_type_script_lang_js_ = ({
props: {
title: {
type: String,
required: true
},
total: {
type: Number,
required: true
},
processed: {
type: Number,
required: true
}
},
computed: {
progress: function progress() {
if (this.total > 0) {
return parseInt(this.processed / this.total * 100);
}
return 0;
}
}
});
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/progress-bar.vue?vue&type=script&lang=js&
/* harmony default export */ var vue_components_progress_barvue_type_script_lang_js_ = (progress_barvue_type_script_lang_js_);
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/progress-bar.vue
/* normalize component */
;
var progress_bar_component = normalizeComponent(
vue_components_progress_barvue_type_script_lang_js_,
progress_barvue_type_template_id_8b61c75e_render,
progress_barvue_type_template_id_8b61c75e_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var progress_bar = (progress_bar_component.exports);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/ai1wm-spinner.vue?vue&type=template&id=62088451&
var ai1wm_spinnervue_type_template_id_62088451_render = function render() {
var _vm = this,
_c = _vm._self._c;
return _vm._m(0);
};
var ai1wm_spinnervue_type_template_id_62088451_staticRenderFns = [function () {
var _vm = this,
_c = _vm._self._c;
return _c("div", {
staticClass: "ai1wm-spin-container"
}, [_c("div", {
staticClass: "ai1wm-spinner ai1wm-spin-right"
}, [_c("img", {
attrs: {
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAF1QTFRFAAAAkpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWakpWaDpDRYAAAAB90Uk5TABAwsM/A/9h/Tz/v37+fIPBQQG/McIDgr2CQ0KCPX6xBX1EAAALLSURBVHic7Zp/c7MgDMfFVh43rVr3SOuP9f2/zFnbmqAIiMTb3fr9Y7e7Uj+GhBBCg+C3iu3ACA/0DHaMdmBwckjPIIfcGdSQgUEMeTBoIU8GKeTF4P/i+OOTZkWODJ4Mf9NTHNIxnpDhv+yDiIEgd4Pi3BskLBYgvTJvGESZQnqMrzAAyhzCk7NvigLC+cnTnL0oSghPSq8UNYTzL5+U/2UlokJByTxSHrkrrw6UlDFBsuoyoVy9UXAWri9EtsipvpK903iiTEqiPJIotR/KLIcIab143wCeOuMpOxJBpCTtyy0GCtWEBSGCnKggQY0ovhL/XA1AUjJI0O5hCnILnVeCbocACxjEMdlawfmF0PX5Hq5HXiGcrzN9muwFric87Xd7OAUymKCDQHx1dJBghFCeLMcsqVyOLH5pU70BpYvq09LPbDaWkE1xId4QCsgmx+uji/lZRnoIrNVNu1qif9VW/w52gvlQ91zB0A2HZdi11OEjDJ9bCRa8ej+Bl9jgeWgmqTsUMJ0LAywE28llYQR4vnKFwJQvLTaYT+dSIx0fsbRfoILZMb7QGWWxWIGDv2NVDoYsp6ZqoykQn5qCCJWyLqmFgSGFZhg6YDgsSGH3bWTK+mMM7BW80NaoyJR0ZTHLUENPPw3YlHURhrvTekPkXsyq3lWGvmgq3NjFjYIZ5vyKYt2ewjCjsAiZBlOOVt7H/rDsqrX4GzYt5VJqFNvVOrncVPw2GMO+peGtZeSHMiW56Qbf5H63KXoRhctKFzG3VB5p4/SX6gmFJ5nCN2E27dqvYcxmbOBcv9CV3OftOr8XWMdQUgadBqnvHdrV9UfeKh+k0cGlPdCYn4vlWOGU0zsFjVrnLhoT5qcPKpwLtbvyzkzoM8nWZo0RUwgf93J5pQm0tvbWcgpFpCJElb9734fOogNSETXC072iSnlZ7vELnLfe+mv6AYyEOZ4mvtpBAAAAAElFTkSuQmCC"
}
})]), _vm._v(" "), _c("div", {
staticClass: "ai1wm-spinner ai1wm-spin-left"
}, [_c("img", {
attrs: {
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAFpQTFRFAAAABp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/jBp/j79BQvAAAAB50Uk5TACA/f19Pn9//EO9vMM9gkMDgQIDwr7BwoL/QUPSTc7QwrgAAAa9JREFUeJztmGuXgiAQQFE3AyMzZdVy9///zdXaYJRHLqDn7DlzPwbN5TEDFCEIgiAIgiAI8s9J0mziI022MhzyI5Uc8wOLbmAZMDwpssiaU7FURNfws0kxceaxHKVxGr+TOUVy2BUT+Q6OKJa3DkovoQ6uhayu2kd1mIPNquN6eSZTUlYzSRGWyQ0IJUrQwGeazxBHAgK1i+F2ItKC9SpMrzVyYLn5OxKXg5AaTMX/WO5kjLtxazv3INahUsuy5iqbC1+HWq3K0gNUqu9JqUIMyybWTPdjmn7JLt/pxN8LRhaJcA0AYpuxg8r1XZPFnB4rJY2ptY/iIGenRLMIrxOMuiULi/DLL/dyjSl2D3coia2coUXL8pW0rwBHWw8mS760dXmHukysS/E6ib0dZHi389IScMszKSnsJzl37Nkq1L467tcyzAGPDseiD2HPCCZWWQKBj5VIj14dOBV62+rnFbjFR/LDNpb7zEKLWx74JjWRCLrAXpj+aC/uLSTaPbuJhAxiBwnh1x0khPU7SMa3dbWDZNS0O0jGkulasbnkIarraP9BIAiCIAiCIIiNHyohJRyvfZJVAAAAAElFTkSuQmCC"
}
})])]);
}];
ai1wm_spinnervue_type_template_id_62088451_render._withStripped = true;
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/ai1wm-spinner.vue?vue&type=template&id=62088451&
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/ai1wm-spinner.vue?vue&type=script&lang=js&
/* harmony default export */ var ai1wm_spinnervue_type_script_lang_js_ = ({});
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/ai1wm-spinner.vue?vue&type=script&lang=js&
/* harmony default export */ var vue_components_ai1wm_spinnervue_type_script_lang_js_ = (ai1wm_spinnervue_type_script_lang_js_);
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/ai1wm-spinner.vue
/* normalize component */
;
var ai1wm_spinner_component = normalizeComponent(
vue_components_ai1wm_spinnervue_type_script_lang_js_,
ai1wm_spinnervue_type_template_id_62088451_render,
ai1wm_spinnervue_type_template_id_62088451_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var ai1wm_spinner = (ai1wm_spinner_component.exports);
// EXTERNAL MODULE: ./node_modules/file-saver/dist/FileSaver.min.js
var FileSaver_min = __webpack_require__(162);
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./lib/view/assets-development/javascript/vue-components/archive/browser.vue?vue&type=script&lang=js&
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Tree = /*#__PURE__*/_createClass(function Tree(name) {
_classCallCheck(this, Tree);
this.root = new Node(name, true);
this.root.parent = null;
this.root.tree = this;
});
var Node = /*#__PURE__*/function () {
function Node(name, expanded) {
_classCallCheck(this, Node);
this.name = name;
this.children = [];
this.files = [];
this.expanded = !!expanded;
}
_createClass(Node, [{
key: "addChild",
value: function addChild(child) {
child.parent = this;
this.children.push(child);
return child;
}
}, {
key: "findNode",
value: function findNode(name) {
if (this.name === name) {
return this;
}
return this.children.find(function (child) {
return child.findNode(name);
});
}
}, {
key: "getRootNode",
value: function getRootNode() {
if (this.parent === null) {
return this;
}
return this.parent.getRootNode();
}
}]);
return Node;
}();
var $ = jQuery;
/* harmony default export */ var browservue_type_script_lang_js_ = ({
components: {
Ai1wmSpinner: ai1wm_spinner,
ProgressBar: progress_bar,
Folder: folder
},
data: function data() {
return {
error: null,
loading: true,
processing: true,
archive: null,
tree: null,
total: 100,
processed: 0
};
},
watch: {
processed: function processed(newValue) {
var _this2 = this;
if (newValue >= this.total) {
setTimeout(function () {
return _this2.processing = false;
}, 100);
}
}
},
mounted: function mounted() {
event_bus.$on('ai1wm-list-content', this.listContent);
event_bus.$on('ai1wm-download-file', this.downloadFile);
},
methods: {
listContent: function listContent(archive) {
this.error = null;
this.loading = true;
this.processing = true;
this.tree = new Tree(archive);
var _this = this;
this.archive = archive;
_this.processed = 0;
$.ajax({
url: ai1wm_list.ajax.url,
type: 'POST',
dataType: 'json',
data: {
secret_key: ai1wm_list.secret_key,
archive: archive
}
}).done(function (data) {
if (data.error) {
_this.error = data.error;
_this.loading = false;
_this.processing = true;
return;
}
setTimeout(function () {
_this.total = data.length;
_this.loading = false;
}, 5);
data.forEach(function (d) {
setTimeout(function () {
_this.addFile(d);
_this.processed += 1;
}, 50);
});
}).fail(function () {
_this.error = _this.__('archive_browser_list_error');
_this.loading = false;
_this.processing = false;
});
},
downloadFile: function downloadFile(file) {
var params = {
secret_key: ai1wm_list.secret_key,
archive: this.archive,
file_name: file.name,
file_size: file.size,
offset: file.offset
};
var request = new XMLHttpRequest();
request.addEventListener('readystatechange', function () {
if (request.readyState === 2 && request.status === 200) {// Download is being started
} else if (request.readyState === 3) {// Download is under progress
} else if (request.readyState === 4) {
// Downloading has finished
if (request.status < 400) {
(0,FileSaver_min.saveAs)(request.response, Ai1wm.Util.basename(file.name));
} else {
/* eslint-disable no-alert */
alert(ai1wm_locale.archive_browser_download_error);
/* eslint-enable no-alert */
}
}
});
request.responseType = 'blob';
var formData = new FormData();
for (var key in params) {
formData.append(key, params[key]);
}
request.open('post', ai1wm_list.download.url);
request.send(formData);
},
addFile: function addFile(f) {
var node = this.tree.root;
var name = f.filename;
var size = f.size;
var offset = f.offset;
var prefix = name.match(/[\\|/]/) ? this.getPrefix(name) : '';
if (prefix.length > 0) {
var parent = '';
prefix.split('/').forEach(function (path) {
parent += '/' + path;
var foundNode = node.findNode(parent);
node = foundNode ? foundNode : node.addChild(new Node(parent));
});
}
node.files.push({
name: name,
size: size,
offset: offset
});
},
getPrefix: function getPrefix(filename) {
return Ai1wm.Util.dirname(filename);
},
__: function __(key) {
return ai1wm_locale[key];
}
}
});
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/browser.vue?vue&type=script&lang=js&
/* harmony default export */ var archive_browservue_type_script_lang_js_ = (browservue_type_script_lang_js_);
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/vue-components/archive/browser.vue
/* normalize component */
;
var browser_component = normalizeComponent(
archive_browservue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var browser = (browser_component.exports);
;// CONCATENATED MODULE: ./lib/view/assets-development/javascript/backups.js
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* 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 .
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
var Feedback = __webpack_require__(332);
var Import = __webpack_require__(936);
var Export = __webpack_require__(12);
var Restore = __webpack_require__(874);
// Vue.config.devtools = true;
vue_common_prod_default().component('ArchiveBrowser', browser);
window.addEventListener('DOMContentLoaded', function () {
new (vue_common_prod_default())({
el: '#ai1wm-backups-list-archive-browser'
});
});
jQuery(document).ready(function ($) {
'use strict'; // 3 dots menu
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-dots', function (e) {
e.preventDefault();
e.stopPropagation();
var menu = $(this).next('div.ai1wm-backup-dots-menu');
$('div.ai1wm-backup-dots-menu').not(menu).hide();
$(menu).toggle();
});
$(document).on('click', 'body', function () {
$('div.ai1wm-backup-dots-menu').hide();
}); // Delete file
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-delete', function (e) {
var self = $(this);
var counter = $('.ai1wm-menu-count'); // Delete file
/* eslint-disable no-alert */
if (confirm(ai1wm_locale.want_to_delete_this_file)) {
/* eslint-enable no-alert */
$.ajax({
url: ai1wm_backups.ajax.url,
type: 'POST',
dataType: 'json',
data: {
secret_key: ai1wm_backups.secret_key,
archive: self.data('archive')
},
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (data) {
if (data.errors.length === 0) {
self.closest('tr').remove();
counter.text(+counter.text() - 1);
if (counter.text() > 1) {
counter.prop('title', ai1wm_locale.backups_count_plural.replace('%d', counter.text()));
} else {
if (+counter.text() === 0) {
counter.addClass('ai1wm-menu-hide');
}
counter.prop('title', ai1wm_locale.backups_count_singular.replace('%d', counter.text()));
}
if ($('.ai1wm-backups tbody tr').length === 1) {
$('.ai1wm-backups').hide();
$('.ai1wm-backups-empty').show();
}
}
});
}
e.preventDefault();
}); // Restore from file
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) {
e.preventDefault();
/* eslint-disable no-unused-vars */
if (Ai1wm.MultisiteExtensionRestore) {
var restore = new Ai1wm.MultisiteExtensionRestore($(this).data('archive'), $(this).data('size'));
} else if (Ai1wm.UnlimitedExtensionRestore) {
var _restore = new Ai1wm.UnlimitedExtensionRestore($(this).data('archive'), $(this).data('size'));
} else if (Ai1wm.FreeExtensionRestore) {
var _restore2 = new Ai1wm.FreeExtensionRestore($(this).data('archive'), $(this).data('size'));
} else {
var _restore3 = new Ai1wm.Restore($(this).data('archive'), $(this).data('size'));
}
/* eslint-enable no-unused-vars */
}); // List file content
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-list-content', function (e) {
e.preventDefault();
event_bus.$emit('ai1wm-list-content', $(this).data('archive'));
});
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-label-description, .ai1wm-backup-label-text', function () {
$(this).hide();
$(this).closest('.ai1wm-column-name').find('.ai1wm-backup-label-holder').show();
$(this).closest('.ai1wm-column-name').find('.ai1wm-backup-label-field').trigger('focus');
});
$('#ai1wm-backups-list').on('keydown', '.ai1wm-backup-label-field', function (e) {
var self = $(this);
var spinner = $(''); // Update backup label
if (e.which === 13) {
e.preventDefault();
self.hide();
self.closest('.ai1wm-backup-label-holder').append(spinner);
$.ajax({
url: ai1wm_backups.labels.url,
type: 'POST',
dataType: 'json',
data: {
secret_key: ai1wm_backups.secret_key,
archive: self.data('archive'),
label: self.val()
},
dataFilter: function dataFilter(data) {
return Ai1wm.Util.json(data);
}
}).done(function (data) {
if (data.errors.length === 0) {
spinner.remove();
self.show();
if (self.val()) {
self.closest('.ai1wm-backup-label-holder').hide();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-text').show();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-colored').text(self.val());
} else {
self.closest('.ai1wm-backup-label-holder').hide();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-description').removeClass('ai1wm-backup-label-selected').removeAttr('style');
}
self.data('value', self.val());
}
});
} else if (e.which === 27) {
e.preventDefault();
if (self.data('value')) {
self.closest('.ai1wm-backup-label-holder').hide();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-text').show();
} else {
self.closest('.ai1wm-backup-label-holder').hide();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-text').hide();
self.closest('.ai1wm-column-name').find('.ai1wm-backup-label-description').removeClass('ai1wm-backup-label-selected').removeAttr('style');
}
self.val(self.data('value'));
}
});
$(document).on('ai1wm-export-status', function (e, params) {
if (params.type === 'download') {
if ($('.ai1wm-backups tbody tr').length > 1) {
$('.ai1wm-backups-list-spinner-holder').show();
} else {
$('.ai1wm-backups-empty').hide();
$('.ai1wm-backups-empty-spinner-holder').show();
}
$.get(ai1wm_backups.backups.url, {
secret_key: ai1wm_backups.secret_key
}).done(function (data) {
$('#ai1wm-backups-create').find('.ai1wm-backups-empty').hide();
$('#ai1wm-backups-create').find('.ai1wm-backups-empty-spinner-holder').hide();
$('#ai1wm-backups-list').html(data);
});
}
});
var model = new Export();
$('#ai1wm-create-backup').on('click', function (e) {
var storage = Ai1wm.Util.random(12);
var options = Ai1wm.Util.form('#ai1wm-export-form').concat({
name: 'storage',
value: storage
}).concat({
name: 'file',
value: 1
}); // Set global params
model.setParams(options); // Start export
model.start();
e.preventDefault();
});
});
__webpack_require__.g.Ai1wm = jQuery.extend({}, __webpack_require__.g.Ai1wm, {
Feedback: Feedback,
Import: Import,
Restore: Restore,
Export: Export
});
}();
/******/ })()
;import { CssGrid, Dialog } from '@elementor/app-ui';
import SiteTemplate from '../molecules/site-template';
import { PartActionsDialogs } from '../part-actions/dialogs-and-buttons';
import { Context as TemplatesContext } from '../context/templates';
import useTemplatesScreenshot from '../hooks/use-templates-screenshot';
export default function SiteTemplates( props ) {
const { templates: contextTemplates, action, resetActionState } = React.useContext( TemplatesContext );
let gridColumns, templates;
// Make the templates object a memorize value, will re run again only if
// templates has been changed, also sort the templates by `isActive`.
templates = React.useMemo( () => {
return Object.values( contextTemplates )
.sort( ( a, b ) => {
// This sort make sure to show first the active templates, second the
// inactive templates that are not draft, and then the drafts,
// in each category it sorts it inside by date.
if ( ! b.isActive && ! a.isActive ) {
if (
( 'draft' === b.status && 'draft' === a.status ) ||
( 'draft' !== b.status && 'draft' !== a.status )
) {
return b.date < a.date ? 1 : -1;
}
return 'draft' === a.status ? 1 : -1;
}
if ( b.isActive && a.isActive ) {
return b.date < a.date ? 1 : -1;
}
return b.isActive ? 1 : -1;
} );
}, [ contextTemplates ] );
// Start to capture screenshots.
useTemplatesScreenshot( props.type );
const siteTemplateConfig = {};
if ( props.type ) {
templates = templates.filter( ( item ) => item.type === props.type );
siteTemplateConfig.extended = true;
siteTemplateConfig.type = props.type;
switch ( props.type ) {
case 'header':
case 'footer':
gridColumns = 1;
siteTemplateConfig.aspectRatio = 'wide';
break;
default:
gridColumns = 2;
}
}
if ( ! templates || ! templates.length ) {
return { __( 'No Templates found. Want to create one?', 'elementor-pro' ) }...
;
}
return (
{
action.error &&
}
{
templates.map( ( item ) =>
,
)
}
);
}
SiteTemplates.propTypes = {
type: PropTypes.string,
id: PropTypes.string,
};
import { CssGrid, Dialog } from '@elementor/app-ui';
import SiteTemplate from '../molecules/site-template';
import { PartActionsDialogs } from '../part-actions/dialogs-and-buttons';
import { Context as TemplatesContext } from '../context/templates';
import useTemplatesScreenshot from '../hooks/use-templates-screenshot';
export default function SiteTemplates( props ) {
const { templates: contextTemplates, action, resetActionState } = React.useContext( TemplatesContext );
let gridColumns, templates;
// Make the templates object a memorize value, will re run again only if
// templates has been changed, also sort the templates by `isActive`.
templates = React.useMemo( () => {
return Object.values( contextTemplates )
.sort( ( a, b ) => {
// This sort make sure to show first the active templates, second the
// inactive templates that are not draft, and then the drafts,
// in each category it sorts it inside by date.
if ( ! b.isActive && ! a.isActive ) {
if (
( 'draft' === b.status && 'draft' === a.status ) ||
( 'draft' !== b.status && 'draft' !== a.status )
) {
return b.date < a.date ? 1 : -1;
}
return 'draft' === a.status ? 1 : -1;
}
if ( b.isActive && a.isActive ) {
return b.date < a.date ? 1 : -1;
}
return b.isActive ? 1 : -1;
} );
}, [ contextTemplates ] );
// Start to capture screenshots.
useTemplatesScreenshot( props.type );
const siteTemplateConfig = {};
if ( props.type ) {
templates = templates.filter( ( item ) => item.type === props.type );
siteTemplateConfig.extended = true;
siteTemplateConfig.type = props.type;
switch ( props.type ) {
case 'header':
case 'footer':
gridColumns = 1;
siteTemplateConfig.aspectRatio = 'wide';
break;
default:
gridColumns = 2;
}
}
if ( ! templates || ! templates.length ) {
return { __( 'No Templates found. Want to create one?', 'elementor-pro' ) }...
;
}
return (
{
action.error &&
}
{
templates.map( ( item ) =>
,
)
}
);
}
SiteTemplates.propTypes = {
type: PropTypes.string,
id: PropTypes.string,
};
/*! elementor-pro - v3.23.0 - 05-08-2024 */
.elementor-widget-search{--e-search-white:#fff;--e-search-light-grey:#cdcdcd;--e-search-medium-grey:#515962;--e-search-dark-grey:#2d2d2d;--e-search-input-color:var(--e-search-medium-grey);--e-search-input-border-color:var(--e-search-light-grey);--e-search-input-border-radius:0;--e-search-input-gap:4px;--e-search-input-padding:16px;--e-search-input-padding-inline-start:16px;--e-search-input-padding-inline-end:16px;--e-search-input-padding-block-start:16px;--e-search-input-padding-block-end:16px;--e-search-input-transition:0.3s;--e-search-placeholder-color:var(--e-search-medium-grey);--e-search-icon-label-color:var(--e-search-medium-grey);--e-search-icon-label-size:24px;--e-search-icon-label-absolute-width:initial;--e-search-icon-clear-color:var(--e-search-light-grey);--e-search-icon-clear-size:12px;--e-search-icon-clear-absolute-width:initial;--e-search-icon-clear-transition:0.3s;--e-search-submit-color:var(--e-search-white);--e-search-submit-background-color:var(--e-search-dark-grey);--e-search-submit-border-color:none;--e-search-submit-border-type:none;--e-search-submit-border-radius:0;--e-search-submit-border-width:0px;--e-search-submit-padding:24px;--e-search-submit-margin-inline-start:8px;--e-search-submit-button-width:initial;--e-search-submit-button-flex-direction:row;--e-search-submit-hover-transition:0.3s;--e-search-icon-submit-color:var(--e-search-white);--e-search-submit-icon-gap:8px;--e-search-submit-icon-margin-inline-start:0px;--e-search-submit-icon-margin-inline-end:var(--e-search-submit-icon-gap);--e-search-icon-submit-size:24px;--e-search-submit-transition:0.3s;--e-search-results-background-color:var(--e-search-white);--e-search-results-border-color:var(--e-search-light-grey);--e-search-results-border-type:solid;--e-search-results-border-width:1px;--e-search-results-border-radius:0px;--e-search-results-padding:16px;--e-search-results-width:100%;--e-search-results-columns:1;--e-search-results-max-height:initial;--e-search-input-and-results-gap:8px;--e-search-results-transition:0.3s;--e-search-loop-item-equal-height:initial;--e-search-results-grid-auto-rows:initial;--e-search-results-inset-inline-start:initial;--e-search-results-inset-inline-end:initial;--e-search-results-transform:initial;--e-search-results-default-gap:16px;--e-search-results-column-gap:var(--e-search-results-default-gap);--e-search-results-row-gap:var(--e-search-results-default-gap);--e-search-nothing-found-padding-block-start:0;--e-search-nothing-found-padding-block-end:0;--e-search-nothing-found-results-columns:1;--e-search-nothing-found-message-color:var(--e-search-medium-grey);--e-search-nothing-found-message-alignment:center}.elementor-widget-search .e-search-form{display:flex}.elementor-widget-search .e-search-label{display:flex;position:relative;z-index:10}.elementor-widget-search .e-search-label>i,.elementor-widget-search .e-search-label>svg{position:absolute;inset-block-start:50%;transform:translateY(-50%);inset-inline-start:var(--e-search-input-padding-inline-start);transition:width 0s,height 0s}.elementor-widget-search .e-search-label>i:is(i),.elementor-widget-search .e-search-label>svg:is(i){font-size:var(--e-search-icon-label-size);color:var(--e-search-icon-label-color)}.elementor-widget-search .e-search-label>i:is(svg),.elementor-widget-search .e-search-label>svg:is(svg){fill:var(--e-search-icon-label-color);height:var(--e-search-icon-label-size);width:auto}.elementor-widget-search .e-search-input-wrapper{display:flex;flex-direction:column;flex:1;position:relative}.elementor-widget-search .e-search-input-wrapper>i,.elementor-widget-search .e-search-input-wrapper>svg{position:absolute;inset-block-start:50%;transform:translateY(-50%);inset-inline-end:var(--e-search-input-padding-inline-end);cursor:pointer;transition:color var(--e-search-icon-clear-transition),fill var(--e-search-icon-clear-transition),width 0s,height 0s}.elementor-widget-search .e-search-input-wrapper>i:is(i),.elementor-widget-search .e-search-input-wrapper>svg:is(i){font-size:var(--e-search-icon-clear-size);color:var(--e-search-icon-clear-color)}.elementor-widget-search .e-search-input-wrapper>i:is(svg),.elementor-widget-search .e-search-input-wrapper>svg:is(svg){fill:var(--e-search-icon-clear-color);height:var(--e-search-icon-clear-size);width:auto}.elementor-widget-search .e-search-input{--e-search-icons-min-height:max(var(--e-search-icon-clear-size),var(--e-search-icon-label-size));height:100%;min-height:calc(var(--e-search-input-padding-block-end) + var(--e-search-input-padding-block-start) + var(--e-search-icons-min-height));color:var(--e-search-input-color);border-color:var(--e-search-input-border-color);border-radius:var(--e-search-input-border-radius);padding-inline-start:calc(var(--e-search-input-padding-inline-start) + var(--e-search-icon-label-absolute-width) + var(--e-search-input-gap));padding-inline-end:calc(var(--e-search-input-padding-inline-end) + var(--e-search-icon-clear-absolute-width) + var(--e-search-input-gap));padding-block-start:var(--e-search-input-padding-block-start);padding-block-end:var(--e-search-input-padding-block-end);transition:padding-inline 0s}.elementor-widget-search .e-search-input::-moz-placeholder{color:var(--e-search-placeholder-color)}.elementor-widget-search .e-search-input::placeholder{color:var(--e-search-placeholder-color)}.elementor-widget-search .e-search-input.no-icon-clear{padding-inline-end:var(--e-search-input-padding-inline-end)}.elementor-widget-search .e-search-input.no-icon-label{padding-inline-start:var(--e-search-input-padding-inline-start)}.elementor-widget-search .e-search-input:focus{transition:var(--e-search-input-transition);outline:none}.elementor-widget-search .e-search-input::-ms-clear,.elementor-widget-search .e-search-input::-ms-reveal{display:none;width:0;height:0}.elementor-widget-search .e-search-input::-webkit-search-cancel-button,.elementor-widget-search .e-search-input::-webkit-search-decoration,.elementor-widget-search .e-search-input::-webkit-search-results-button,.elementor-widget-search .e-search-input::-webkit-search-results-decoration{display:none}.elementor-widget-search .e-search-results{position:absolute;width:var(--e-search-results-width);inset-block-start:calc(100% + var(--e-search-input-and-results-gap));inset-inline-start:var(--e-search-results-inset-inline-start);inset-inline-end:var(--e-search-results-inset-inline-end);transform:var(--e-search-results-transform);height:-moz-fit-content;height:fit-content;z-index:2000;border-radius:var(--e-search-results-border-radius);background-color:var(--e-search-results-background-color);display:flex}.elementor-widget-search .e-search-results>div{width:100%;max-height:var(--e-search-results-max-height);border-radius:var(--e-search-results-border-radius);border:var(--e-search-results-border-type) var(--e-search-results-border-width) var(--e-search-results-border-color);display:grid;grid-template-columns:repeat(var(--e-search-results-columns),1fr);grid-auto-rows:var(--e-search-results-grid-auto-rows);padding:var(--e-search-results-padding);overflow:auto;-moz-column-gap:var(--e-search-results-column-gap);column-gap:var(--e-search-results-column-gap);row-gap:var(--e-search-results-row-gap)}.elementor-widget-search .e-search-results>div:empty{display:none}.elementor-widget-search .e-search-results>div .e-loop-item .elementor-section-wrap>.e-con,.elementor-widget-search .e-search-results>div .e-loop-item>.e-con,.elementor-widget-search .e-search-results>div .e-loop-item>.elementor-section,.elementor-widget-search .e-search-results>div .e-loop-item>.elementor-section>.elementor-container{height:var(--e-search-loop-item-equal-height)}.elementor-widget-search .e-search-submit{display:flex;flex-direction:var(--e-search-submit-button-flex-direction);align-items:center;width:var(--e-search-submit-button-width);background-color:var(--e-search-submit-background-color);margin-inline-start:var(--e-search-submit-margin-inline-start);font-size:var(--e-search-form-submit-icon-size);color:var(--e-search-submit-color);border-radius:var(--e-search-submit-border-radius);border:var(--e-search-submit-border-width) var(--e-search-submit-border-type) var(--e-search-submit-border-color);padding:var(--e-search-submit-padding);transition:var(--e-search-submit-hover-transition)}.elementor-widget-search .e-search-submit:focus{transition:--e-search-submit-transition}.elementor-widget-search .e-search-submit:focus:not(:focus-visible){outline:none}.elementor-widget-search .e-search-submit>i,.elementor-widget-search .e-search-submit>svg{margin-inline-start:var(--e-search-submit-icon-margin-inline-start);margin-inline-end:var(--e-search-submit-icon-margin-inline-end);transition:inherit}.elementor-widget-search .e-search-submit>i:is(i),.elementor-widget-search .e-search-submit>svg:is(i){font-size:var(--e-search-icon-submit-size);color:var(--e-search-icon-submit-color)}.elementor-widget-search .e-search-submit>i:is(svg),.elementor-widget-search .e-search-submit>svg:is(svg){fill:var(--e-search-icon-submit-color);height:var(--e-search-icon-submit-size);width:auto}.elementor-widget-search .e-search-input-wrapper,.elementor-widget-search .e-search-label *{transition:var(--e-search-input-transition)}.elementor-widget-search .e-search-nothing-found-message{color:var(--e-search-nothing-found-message-color);padding-block-start:var(--e-search-nothing-found-padding-block-start);padding-block-end:var(--e-search-nothing-found-padding-block-end);text-align:var(--e-search-nothing-found-message-alignment)}.elementor-widget-search .hidden{visibility:hidden}.elementor-widget-search .no-results>div{grid-template-columns:var(--e-search-nothing-found-results-columns)}/*! elementor-pro - v3.23.0 - 05-08-2024 */
.elementor-widget-search{--e-search-white:#fff;--e-search-light-grey:#cdcdcd;--e-search-medium-grey:#515962;--e-search-dark-grey:#2d2d2d;--e-search-input-color:var(--e-search-medium-grey);--e-search-input-border-color:var(--e-search-light-grey);--e-search-input-border-radius:0;--e-search-input-gap:4px;--e-search-input-padding:16px;--e-search-input-padding-inline-start:16px;--e-search-input-padding-inline-end:16px;--e-search-input-padding-block-start:16px;--e-search-input-padding-block-end:16px;--e-search-input-transition:0.3s;--e-search-placeholder-color:var(--e-search-medium-grey);--e-search-icon-label-color:var(--e-search-medium-grey);--e-search-icon-label-size:24px;--e-search-icon-label-absolute-width:initial;--e-search-icon-clear-color:var(--e-search-light-grey);--e-search-icon-clear-size:12px;--e-search-icon-clear-absolute-width:initial;--e-search-icon-clear-transition:0.3s;--e-search-submit-color:var(--e-search-white);--e-search-submit-background-color:var(--e-search-dark-grey);--e-search-submit-border-color:none;--e-search-submit-border-type:none;--e-search-submit-border-radius:0;--e-search-submit-border-width:0px;--e-search-submit-padding:24px;--e-search-submit-margin-inline-start:8px;--e-search-submit-button-width:initial;--e-search-submit-button-flex-direction:row;--e-search-submit-hover-transition:0.3s;--e-search-icon-submit-color:var(--e-search-white);--e-search-submit-icon-gap:8px;--e-search-submit-icon-margin-inline-start:0px;--e-search-submit-icon-margin-inline-end:var(--e-search-submit-icon-gap);--e-search-icon-submit-size:24px;--e-search-submit-transition:0.3s;--e-search-results-background-color:var(--e-search-white);--e-search-results-border-color:var(--e-search-light-grey);--e-search-results-border-type:solid;--e-search-results-border-width:1px;--e-search-results-border-radius:0px;--e-search-results-padding:16px;--e-search-results-width:100%;--e-search-results-columns:1;--e-search-results-max-height:initial;--e-search-input-and-results-gap:8px;--e-search-results-transition:0.3s;--e-search-loop-item-equal-height:initial;--e-search-results-grid-auto-rows:initial;--e-search-results-inset-inline-start:initial;--e-search-results-inset-inline-end:initial;--e-search-results-transform:initial;--e-search-results-default-gap:16px;--e-search-results-column-gap:var(--e-search-results-default-gap);--e-search-results-row-gap:var(--e-search-results-default-gap);--e-search-nothing-found-padding-block-start:0;--e-search-nothing-found-padding-block-end:0;--e-search-nothing-found-results-columns:1;--e-search-nothing-found-message-color:var(--e-search-medium-grey);--e-search-nothing-found-message-alignment:center}.elementor-widget-search .e-search-form{display:flex}.elementor-widget-search .e-search-label{display:flex;position:relative;z-index:10}.elementor-widget-search .e-search-label>i,.elementor-widget-search .e-search-label>svg{position:absolute;inset-block-start:50%;transform:translateY(-50%);inset-inline-start:var(--e-search-input-padding-inline-start);transition:width 0s,height 0s}.elementor-widget-search .e-search-label>i:is(i),.elementor-widget-search .e-search-label>svg:is(i){font-size:var(--e-search-icon-label-size);color:var(--e-search-icon-label-color)}.elementor-widget-search .e-search-label>i:is(svg),.elementor-widget-search .e-search-label>svg:is(svg){fill:var(--e-search-icon-label-color);height:var(--e-search-icon-label-size);width:auto}.elementor-widget-search .e-search-input-wrapper{display:flex;flex-direction:column;flex:1;position:relative}.elementor-widget-search .e-search-input-wrapper>i,.elementor-widget-search .e-search-input-wrapper>svg{position:absolute;inset-block-start:50%;transform:translateY(-50%);inset-inline-end:var(--e-search-input-padding-inline-end);cursor:pointer;transition:color var(--e-search-icon-clear-transition),fill var(--e-search-icon-clear-transition),width 0s,height 0s}.elementor-widget-search .e-search-input-wrapper>i:is(i),.elementor-widget-search .e-search-input-wrapper>svg:is(i){font-size:var(--e-search-icon-clear-size);color:var(--e-search-icon-clear-color)}.elementor-widget-search .e-search-input-wrapper>i:is(svg),.elementor-widget-search .e-search-input-wrapper>svg:is(svg){fill:var(--e-search-icon-clear-color);height:var(--e-search-icon-clear-size);width:auto}.elementor-widget-search .e-search-input{--e-search-icons-min-height:max(var(--e-search-icon-clear-size),var(--e-search-icon-label-size));height:100%;min-height:calc(var(--e-search-input-padding-block-end) + var(--e-search-input-padding-block-start) + var(--e-search-icons-min-height));color:var(--e-search-input-color);border-color:var(--e-search-input-border-color);border-radius:var(--e-search-input-border-radius);padding-inline-start:calc(var(--e-search-input-padding-inline-start) + var(--e-search-icon-label-absolute-width) + var(--e-search-input-gap));padding-inline-end:calc(var(--e-search-input-padding-inline-end) + var(--e-search-icon-clear-absolute-width) + var(--e-search-input-gap));padding-block-start:var(--e-search-input-padding-block-start);padding-block-end:var(--e-search-input-padding-block-end);transition:padding-inline 0s}.elementor-widget-search .e-search-input::-moz-placeholder{color:var(--e-search-placeholder-color)}.elementor-widget-search .e-search-input::placeholder{color:var(--e-search-placeholder-color)}.elementor-widget-search .e-search-input.no-icon-clear{padding-inline-end:var(--e-search-input-padding-inline-end)}.elementor-widget-search .e-search-input.no-icon-label{padding-inline-start:var(--e-search-input-padding-inline-start)}.elementor-widget-search .e-search-input:focus{transition:var(--e-search-input-transition);outline:none}.elementor-widget-search .e-search-input::-ms-clear,.elementor-widget-search .e-search-input::-ms-reveal{display:none;width:0;height:0}.elementor-widget-search .e-search-input::-webkit-search-cancel-button,.elementor-widget-search .e-search-input::-webkit-search-decoration,.elementor-widget-search .e-search-input::-webkit-search-results-button,.elementor-widget-search .e-search-input::-webkit-search-results-decoration{display:none}.elementor-widget-search .e-search-results{position:absolute;width:var(--e-search-results-width);inset-block-start:calc(100% + var(--e-search-input-and-results-gap));inset-inline-start:var(--e-search-results-inset-inline-start);inset-inline-end:var(--e-search-results-inset-inline-end);transform:var(--e-search-results-transform);height:-moz-fit-content;height:fit-content;z-index:2000;border-radius:var(--e-search-results-border-radius);background-color:var(--e-search-results-background-color);display:flex}.elementor-widget-search .e-search-results>div{width:100%;max-height:var(--e-search-results-max-height);border-radius:var(--e-search-results-border-radius);border:var(--e-search-results-border-type) var(--e-search-results-border-width) var(--e-search-results-border-color);display:grid;grid-template-columns:repeat(var(--e-search-results-columns),1fr);grid-auto-rows:var(--e-search-results-grid-auto-rows);padding:var(--e-search-results-padding);overflow:auto;-moz-column-gap:var(--e-search-results-column-gap);column-gap:var(--e-search-results-column-gap);row-gap:var(--e-search-results-row-gap)}.elementor-widget-search .e-search-results>div:empty{display:none}.elementor-widget-search .e-search-results>div .e-loop-item .elementor-section-wrap>.e-con,.elementor-widget-search .e-search-results>div .e-loop-item>.e-con,.elementor-widget-search .e-search-results>div .e-loop-item>.elementor-section,.elementor-widget-search .e-search-results>div .e-loop-item>.elementor-section>.elementor-container{height:var(--e-search-loop-item-equal-height)}.elementor-widget-search .e-search-submit{display:flex;flex-direction:var(--e-search-submit-button-flex-direction);align-items:center;width:var(--e-search-submit-button-width);background-color:var(--e-search-submit-background-color);margin-inline-start:var(--e-search-submit-margin-inline-start);font-size:var(--e-search-form-submit-icon-size);color:var(--e-search-submit-color);border-radius:var(--e-search-submit-border-radius);border:var(--e-search-submit-border-width) var(--e-search-submit-border-type) var(--e-search-submit-border-color);padding:var(--e-search-submit-padding);transition:var(--e-search-submit-hover-transition)}.elementor-widget-search .e-search-submit:focus{transition:--e-search-submit-transition}.elementor-widget-search .e-search-submit:focus:not(:focus-visible){outline:none}.elementor-widget-search .e-search-submit>i,.elementor-widget-search .e-search-submit>svg{margin-inline-start:var(--e-search-submit-icon-margin-inline-start);margin-inline-end:var(--e-search-submit-icon-margin-inline-end);transition:inherit}.elementor-widget-search .e-search-submit>i:is(i),.elementor-widget-search .e-search-submit>svg:is(i){font-size:var(--e-search-icon-submit-size);color:var(--e-search-icon-submit-color)}.elementor-widget-search .e-search-submit>i:is(svg),.elementor-widget-search .e-search-submit>svg:is(svg){fill:var(--e-search-icon-submit-color);height:var(--e-search-icon-submit-size);width:auto}.elementor-widget-search .e-search-input-wrapper,.elementor-widget-search .e-search-label *{transition:var(--e-search-input-transition)}.elementor-widget-search .e-search-nothing-found-message{color:var(--e-search-nothing-found-message-color);padding-block-start:var(--e-search-nothing-found-padding-block-start);padding-block-end:var(--e-search-nothing-found-padding-block-end);text-align:var(--e-search-nothing-found-message-alignment)}.elementor-widget-search .hidden{visibility:hidden}.elementor-widget-search .no-results>div{grid-template-columns:var(--e-search-nothing-found-results-columns)}/******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ // The require scope
/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* 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__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
;// CONCATENATED MODULE: external "wp.i18n"
var external_wp_i18n_namespaceObject = wp.i18n;
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.icons"
var external_UNSTABLE_elementorPackages_icons_namespaceObject = __UNSTABLE__elementorPackages.icons;
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.v1Adapters"
var external_UNSTABLE_elementorPackages_v1Adapters_namespaceObject = __UNSTABLE__elementorPackages.v1Adapters;
;// CONCATENATED MODULE: ./packages/finder/src/hooks/use-action-props.ts
function useActionProps() {
const {
isActive,
isBlocked
} = (0,external_UNSTABLE_elementorPackages_v1Adapters_namespaceObject.useRouteStatus)('finder', {
blockOnKitRoutes: false,
blockOnPreviewMode: false
});
return {
title: (0,external_wp_i18n_namespaceObject.__)('Finder', 'elementor'),
icon: external_UNSTABLE_elementorPackages_icons_namespaceObject.SearchIcon,
onClick: () => (0,external_UNSTABLE_elementorPackages_v1Adapters_namespaceObject.runCommand)('finder/toggle'),
selected: isActive,
disabled: isBlocked
};
}
;// CONCATENATED MODULE: external "__UNSTABLE__elementorPackages.topBar"
var external_UNSTABLE_elementorPackages_topBar_namespaceObject = __UNSTABLE__elementorPackages.topBar;
;// CONCATENATED MODULE: ./packages/finder/src/init.ts
function init() {
registerTopBarMenuItems();
}
function registerTopBarMenuItems() {
external_UNSTABLE_elementorPackages_topBar_namespaceObject.utilitiesMenu.registerToggleAction({
name: 'toggle-finder',
priority: 10,
// Before help.
useProps: () => useActionProps()
});
}
;// CONCATENATED MODULE: ./packages/finder/src/index.ts
init();
(window.__UNSTABLE__elementorPackages = window.__UNSTABLE__elementorPackages || {}).finder = __webpack_exports__;
/******/ })()
;