text: "use strict";
  (self["webpackChunkcloudFRT"] = self["webpackChunkcloudFRT"] || []).push([["style"],{
  
  /***/ "./assets/js/core/gb.js":
  /*!******************************!*\
    !*** ./assets/js/core/gb.js ***!
    \******************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "formatBytes": () => (/* binding */ formatBytes)
  /* harmony export */ });
  function formatBytes(bytes) {
    var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
    var txt = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
    if (bytes === 0) return '0 Bytes';
    var k = 1024;
    var dm = decimals < 0 ? 0 : decimals;
    var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
    var i = Math.floor(Math.log(bytes) / Math.log(k)); // let s = sizes[i % sizes.]
  
    var s = txt ? sizes[i] : '';
    return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + s; //+ ' ' + sizes[i]
  }
  
  /***/ }),
  
  /***/ "./assets/js/form/index.js":
  /*!*********************************!*\
    !*** ./assets/js/form/index.js ***!
    \*********************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
  
  
  
  
  /**
   *
   *
   */
  var Form = /*#__PURE__*/(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(function Form(selector, option) {
    (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Form);
  
    this._form = typeof selector === "string" ? document.forms[selector] : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(selector) === "object" ? selector : null;
  });
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Form);
  
  /***/ }),
  
  /***/ "./assets/js/index.js":
  /*!****************************!*\
    !*** ./assets/js/index.js ***!
    \****************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _scss_index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scss/index.scss */ "./assets/scss/index.scss");
  /* harmony import */ var tippy_js_dist_tippy_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tippy.js/dist/tippy.css */ "./node_modules/tippy.js/dist/tippy.css");
  /* harmony import */ var izitoast_dist_css_iziToast_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! izitoast/dist/css/iziToast.css */ "./node_modules/izitoast/dist/css/iziToast.css");
  /* harmony import */ var tippy_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! tippy.js */ "./node_modules/tippy.js/dist/tippy.esm.js");
  /* harmony import */ var delegate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! delegate */ "./node_modules/delegate/src/delegate.js");
  /* harmony import */ var delegate__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(delegate__WEBPACK_IMPORTED_MODULE_3__);
  /* harmony import */ var _system_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./system/each.js */ "./assets/js/system/each.js");
  /* harmony import */ var _system_extend_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./system/extend.js */ "./assets/js/system/extend.js");
  /* harmony import */ var _system_fetch_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./system/fetch.js */ "./assets/js/system/fetch.js");
  /* harmony import */ var _form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./form/index.js */ "./assets/js/form/index.js");
  /* harmony import */ var _system_message_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./system/message.js */ "./assets/js/system/message.js");
  /* harmony import */ var _system_attribute_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./system/attribute.js */ "./assets/js/system/attribute.js");
  /* harmony import */ var _core_gb_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/gb.js */ "./assets/js/core/gb.js");
  /* harmony import */ var _modal_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal/index.js */ "./assets/js/modal/index.js");
  
  
  
  
  
  
  
  
  
  
  
  
  
  var _$ = {
    tippy: tippy_js__WEBPACK_IMPORTED_MODULE_12__["default"],
    extend: _system_extend_js__WEBPACK_IMPORTED_MODULE_5__.extend,
    each: _system_each_js__WEBPACK_IMPORTED_MODULE_4__.each,
    ajax: _system_fetch_js__WEBPACK_IMPORTED_MODULE_6__.ajax,
    delegate: (delegate__WEBPACK_IMPORTED_MODULE_3___default()),
    Form: _form_index_js__WEBPACK_IMPORTED_MODULE_7__["default"],
    message: _system_message_js__WEBPACK_IMPORTED_MODULE_8__["default"],
    data: _system_attribute_js__WEBPACK_IMPORTED_MODULE_9__.data,
    attr: _system_attribute_js__WEBPACK_IMPORTED_MODULE_9__.attr,
    gb: _core_gb_js__WEBPACK_IMPORTED_MODULE_10__.formatBytes,
    Dialog: _modal_index_js__WEBPACK_IMPORTED_MODULE_11__["default"]
  };
  window._$ = _$;
  
  /***/ }),
  
  /***/ "./assets/js/modal/index.js":
  /*!**********************************!*\
    !*** ./assets/js/modal/index.js ***!
    \**********************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
  
  
  
  
  /* global define */
  
  /**
   * [[Description]]
   * Copyright (c) Wed Jan 31 2018 Mitus M.
   * Licensed under the Apache 2.0 license.
   */
  var modal = (__webpack_require__(/*! dialog-polyfill */ "./assets/node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js")["default"]); // import modal from 'dialog-polyfill'
  
  
  var init = Symbol();
  var getElement = Symbol();
  var promis = Symbol();
  /**
   * @class Dialog
   * @classdesc [[Description]]
   */
  
  var Dialog = /*#__PURE__*/function () {
    /**
     * [[Description]]
     * @constructs [[Link]]
     * @param {string|object} elem [[Description]]
     */
    function Dialog(elem) {
      (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, Dialog);
  
      this.elem = typeof elem === 'string' ? document.querySelector(elem) : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(elem) === 'object' ? elem : null;
      if (this.elem) this[init]();
    }
    /**
     * Получение элемента
     */
  
  
    (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(Dialog, [{
      key: "element",
      get: function get() {
        return this.elem;
      }
      /**
       * Задаём элемент который будет использован в виде модального или диалогового окна
       */
      ,
      set: function set(elem) {
        this.elem = elem;
      }
      /**
       * Задаем заголовок диалогового или модального окна
       * @param   {string} text Текст заголовка
       * @param   {string} elem class или id, внутри диалогово или модального окна. Если не задан то будет находить по умолчанию .modal-title
       * @returns {object} this
       */
  
    }, {
      key: "header",
      value: function header(text, elem) {
        elem = elem ? this[getElement](elem) : this[getElement]('.modal-title');
        elem.innerHTML = text;
        return this;
      }
      /**
       * Задаём текст диалогового или модального окна
       * @param   {string} text текст сообщения
       * @param   {string} elem class или id, внутри диалогово или модального окна. Если не задан то будет находить по умолчанию .modal-content
       * @returns {object} this
       */
  
    }, {
      key: "content",
      value: function content(text, elem) {
        elem = elem ? this[getElement](elem) : this[getElement]('.modal-content');
        elem.innerHTML = text;
        return this;
      }
      /**
       * Показать модальное или диалоговое окно
       * @param   {function} fn функция которая должна быть выполнена в момент открытия диалогового окна
       * @returns {object}   this
       */
      // NOTE: Если не использовать Promise, то при каждом новом клике на кнопку происходит срабатывание предыдущих событий.
  
    }, {
      key: "show",
      value: function show(cb) {
        this.elem.showModal(); // document.querySelector('._dialog_overlay').addEventListener('click', this.close.bind(this))
  
        if (cb) {
          // cb(this.elem.returnValue)
          this[promis]().then(function (val) {
            cb(val);
          });
        }
  
        return this;
      }
      /**
       * Закрыть модальное или диалоговое окно
       */
  
    }, {
      key: "close",
      value: function close() {
        if (this.elem.hasAttribute('open')) this.elem.close(false);
      }
      /**
       * Инициализация кнопки закрытия диалогового окна и закрытия по клику по затемнению
       * @returns {object} this
       */
      // TODO: Добавить выбор вывода окна show() или showModal(). Если showModal() то только тогда инициализация overlay 📌
  
    }, {
      key: "initClose",
      value: function initClose() {
        this[getElement]('#modal-close').addEventListener('click', this.close.bind(this));
        return this;
      }
      /**
       * Инициализация диалогового или модального окна
       * @private
       */
  
    }, {
      key: init,
      value: function value() {
        modal.registerDialog(this.elem);
      }
      /**
       * Находим элементы внутри диалогового окна
       * @param {string} selector class или id (.class | #id)
       * @private
       */
  
    }, {
      key: getElement,
      value: function value(selector) {
        return this.elem.querySelector(selector);
      }
      /**
       * Promise
       * @private
       */
  
    }, {
      key: promis,
      value: function value() {
        var _this = this;
  
        return new Promise(function (resolve) {
          _this.elem.addEventListener('close', function () {
            // e.preventDefault()
            // e.stopImmediatePropagation()
            resolve(_this.elem.returnValue);
          });
        });
      }
    }]);
  
    return Dialog;
  }(); // window.Dialog = Dialog
  // module.exports = Dialog
  // if (typeof define === 'function' && define.amd) {
  //   define('Dialog', [], function () {
  //     return Dialog
  //   })
  // } else if (typeof exports !== 'undefined' && !exports.nodeType) {
  //   if (typeof module !== 'undefined' && !module.nodeType && module.exports) {
  //     // eslint-disable-next-line no-global-assign
  //     exports = module.exports = Dialog
  //   }
  //   exports.default = Dialog
  // }
  
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
  
  /***/ }),
  
  /***/ "./assets/js/system/attribute.js":
  /*!***************************************!*\
    !*** ./assets/js/system/attribute.js ***!
    \***************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "attr": () => (/* binding */ attr),
  /* harmony export */   "data": () => (/* binding */ data)
  /* harmony export */ });
  function attr(element, options) {
    this.each(options, function (elem, key) {
      if (key === 'class') {
        element.classList.add(options["class"]);
      } else {
        element.setAttribute(key, elem);
      }
    });
    return this;
  }
  /**
   * Создаём объект с данными, на основании всех (data-*) атрибутов элемента
   * @param   {object}        e    элемент на котором произошло событие
   * @param   {string}        attr не обязательный параметр, если указан то будет получено значение только данного атрибута Например: name
   * @param   {*}             val  не обязательный параметр, если он указан вместе с параметром attr то у переданного атрибута будет установлено значение val
   * @returns {object|string} Если передан один первый параметр(e) то получим данные
   */
  
  function data(e, attr, val) {
    var element = e.target || e;
    var data = !attr ? element.dataset : !val ? element.dataset[attr] : element.dataset[attr] = val;
    return data;
  }
  
  /***/ }),
  
  /***/ "./assets/js/system/each.js":
  /*!**********************************!*\
    !*** ./assets/js/system/each.js ***!
    \**********************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "each": () => (/* binding */ each),
  /* harmony export */   "has": () => (/* binding */ has)
  /* harmony export */ });
  function has(obj, key) {
    return Object.prototype.hasOwnProperty.call(obj, key);
  }
  var nativeForEach = Array.prototype.forEach;
  var breaker = {};
  function each(obj, iterator, context) {
    if (obj == null) return;
  
    if (nativeForEach && obj.forEach === nativeForEach) {
      obj.forEach(iterator, context);
    } else if (obj.length === +obj.length) {
      for (var i = 0, l = obj.length; i < l; i++) {
        if (iterator.call(context, obj[i], i, obj) === breaker) return;
      }
    } else {
      for (var key in obj) {
        if (has(obj, key)) {
          if (iterator.call(context, obj[key], key, obj) === breaker) return;
        }
      }
    }
  }
  
  /***/ }),
  
  /***/ "./assets/js/system/extend.js":
  /*!************************************!*\
    !*** ./assets/js/system/extend.js ***!
    \************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "extend": () => (/* binding */ extend)
  /* harmony export */ });
  var extend = function extend() {
    var merged = {};
    Array.prototype.forEach.call(arguments, function (obj) {
      for (var key in obj) {
        // eslint-disable-next-line no-prototype-builtins
        if (!obj.hasOwnProperty(key)) return;
        merged[key] = obj[key];
      }
    });
    return merged;
  };
  
  
  
  /***/ }),
  
  /***/ "./assets/js/system/fetch.js":
  /*!***********************************!*\
    !*** ./assets/js/system/fetch.js ***!
    \***********************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "ajax": () => (/* binding */ ajax)
  /* harmony export */ });
  /*global _$*/
  
  /**
   * Зависимости: _$.extend
   */
  var defSettings = {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8'
    }
  };
  
  var initArguments = function initArguments(options) {
    return typeof options === 'function' || options === undefined ? defSettings : _$.extend(defSettings, options); // {
    // options:
    // }
  };
  
  function status(response) {
    if (response.status >= 200 && response.status < 300) {
      return Promise.resolve(response);
    } else {
      return Promise.reject(new Error(response.statusText));
    }
  }
  
  function json(response) {
    return response.json();
  }
  
  function ajax(url, options) {
    try {
      options = initArguments(options);
      return fetch(url, {
        method: options.method,
        headers: options.headers,
        body: JSON.stringify(options.body)
      }).then(status).then(json).then(function (data) {
        return data;
      })["catch"](function (error) {
        return error;
      }); // .catch(function (error) {
      //   console.log('Request failed', error);
      //   _$.message('error', {
      //     title: 'Ошибка',
      //     message: error,
      //     position: 'topCenter'
      //   })
      // })
    } catch (error) {
      return new Error('Неудачный запрос');
    }
  }
  
  /***/ }),
  
  /***/ "./assets/js/system/message.js":
  /*!*************************************!*\
    !*** ./assets/js/system/message.js ***!
    \*************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  /* harmony export */ });
  /* harmony import */ var izitoast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! izitoast */ "./node_modules/izitoast/dist/js/iziToast.js");
  /* harmony import */ var izitoast__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(izitoast__WEBPACK_IMPORTED_MODULE_0__);
  //📌
  
  
  function message(action, settings, fn) {
    var obj = {
      position: settings.position || 'topRight'
    };
  
    if (fn) {
      obj.onClosing = function () {
        fn();
      };
    } // position: 'center', bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter
  
  
    for (var key in settings) {
      if (settings.hasOwnProperty(key)) {
        obj[key] = settings[key];
      }
    }
  
    (izitoast__WEBPACK_IMPORTED_MODULE_0___default())[action](obj);
  }
  
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (message);
  
  /***/ }),
  
  /***/ "./assets/scss/index.scss":
  /*!********************************!*\
    !*** ./assets/scss/index.scss ***!
    \********************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  __webpack_require__.r(__webpack_exports__);
  // extracted by mini-css-extract-plugin
  
  
  /***/ })
  
  },
  /******/ __webpack_require__ => { // webpackRuntimeModules
  /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  /******/ __webpack_require__.O(0, ["vendors"], () => (__webpack_exec__("./assets/js/index.js")));
  /******/ var __webpack_exports__ = __webpack_require__.O();
  /******/ }
  ]);