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0BAA0B,OAAO,UAAW,OAAQ,CAAC,MAAM,YAAa,CACzF,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAa,WACX,MAAO,CAAC,CACV,IACE,aAAe,0BAA0B,OAAO,UAAW,aAAc,CAAC,MAAM,YAAa,CAC/F,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAa,WACX,MAAO,CAAC,CACV,IACE,aAAe,0BAA0B,OAAO,UAAW,mBAAoB,CAAC,MAAM,YAAa,CACrG,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAa,WACX,MAAO,CACL,QAAQ,EACR,OAAQ,KAEZ,IACE,aAAe,0BAA0B,OAAO,UAAW,sBAAuB,CAAC,MAAM,YAAa,CACxG,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAa,WACX,OAAO,IACT,IACE,0BAA0B,OAAO,UAAW,SAAU,CAAC,MAAM,UAAW,OAAO,yBAAyB,OAAO,UAAW,UAAW,OAAO,WAAa,QACzJ,SAAW,UACf,QAAiB,QAAI","file":"/npm/mobx-form-store@3.0.0/lib/FormStore.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/mobx-form-store@3.0.0/lib/FormStore.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _mobx = require(\"mobx\");\n\nvar _justExtend = _interopRequireDefault(require(\"just-extend\"));\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\nfunction _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nvar DEFAULT_SERVER_ERROR_MESSAGE = 'Lost connection to server';\n\nfunction isObject(obj) {\n  return {}.toString.call(obj) === '[object Object]';\n}\n\nfunction isSame(val1, val2) {\n  /* eslint-disable eqeqeq */\n  return val1 == val2 || val1 instanceof Date && val2 instanceof Date && val1.valueOf() == val2.valueOf() || (Array.isArray(val1) || (0, _mobx.isObservableArray)(val1)) && (Array.isArray(val2) || (0, _mobx.isObservableArray)(val2)) && val1.toString() === val2.toString() || isObject(val1) && isObject(val2) && compareObjects(val1, val2);\n  /* eslint-enable eqeqeq */\n} // Based on https://github.com/angus-c/just/blob/master/packages/collection-compare/index.js\n\n\nfunction compareObjects(val1, val2) {\n  var keys1 = Object.getOwnPropertyNames(val1).filter(function (key) {\n    return key[0] !== '$';\n  }).sort();\n  var keys2 = Object.getOwnPropertyNames(val2).filter(function (key) {\n    return key[0] !== '$';\n  }).sort();\n  var len = keys1.length;\n\n  if (len !== keys2.length) {\n    return false;\n  }\n\n  for (var i = 0; i < len; i++) {\n    var key1 = keys1[i];\n    var key2 = keys2[i];\n\n    if (!(key1 === key2 && isSame(val1[key1], val2[key2]))) {\n      return false;\n    }\n  }\n\n  return true;\n}\n/**\n * Observes data and if changes come, add them to dataChanges,\n * unless it resets back to dataServer value, then clear that change\n * @this {FormStore}\n * @param {Object} change\n * @param {String} change.name - name of property that changed\n * @param {*} change.newValue\n */\n\n\nfunction observableChanged(change) {\n  var store = this;\n  (0, _mobx.action)(function () {\n    store.dataChanges.set(change.name, change.newValue);\n\n    if (store.isSame(store.dataChanges.get(change.name), store.dataServer[change.name])) {\n      store.dataChanges[\"delete\"](change.name);\n    }\n  })();\n}\n/**\n * Sets up observation on all computed data properties, if any\n * @param {FormStore} store\n */\n\n\nfunction observeComputedProperties(store) {\n  store.observeComputedPropertiesDisposers.forEach(function (f) {\n    return f();\n  });\n  store.observeComputedPropertiesDisposers = [];\n  (0, _mobx.action)(function () {\n    Object.getOwnPropertyNames(store.data).forEach(function (key) {\n      if ((0, _mobx.isComputedProp)(store.data, key)) {\n        store.options.log(\"[\".concat(store.options.name, \"] Observing computed property: \").concat(key));\n        var disposer = (0, _mobx.observe)(store.data, key, function (_ref) {\n          var newValue = _ref.newValue;\n          return store.storeDataChanged({\n            name: key,\n            newValue: newValue\n          });\n        });\n        store.observeComputedPropertiesDisposers.push(disposer); // add or delete from dataChanges depending on whether value is same as in dataServer:\n\n        store.storeDataChanged({\n          name: key,\n          newValue: store.data[key]\n        });\n      }\n    });\n  })();\n}\n/**\n * Records successfully saved data as saved\n * and reverts fields server indicates to be in error\n * @param {FormStore} store\n * @param {Object} updates - what we sent to the server\n * @param {Object} response\n * @param {String} [response.data] - optional updated data to merge into the store (server.create can return id here)\n * @param {String} [response.status] - 'error' indicates one or more fields were invalid and not saved.\n * @param {String|Object} [response.error] - either a single error message to show to user if string or field-specific error messages if object\n * @param {String|Array} [response.error_field] - name of the field (or array of field names) in error\n * If autoSave is enabled, any field in error_field for which there is no error message in response.error will be reverted\n * to prevent autoSave from endlessly trying to save the changed field.\n * @returns response.status\n */\n\n\nfunction processSaveResponse(_x, _x2, _x3) {\n  return _processSaveResponse.apply(this, arguments);\n}\n/**\n * @param {FormStore} store\n * @param {Error} err\n */\n\n\nfunction _processSaveResponse() {\n  _processSaveResponse = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(store, updates, response) {\n    var deep;\n    return regeneratorRuntime.wrap(function _callee3$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            store.options.log(\"[\".concat(store.options.name, \"] Response received from server.\"));\n\n            if (response.status === 'error') {\n              (0, _mobx.action)(function () {\n                var errorFields = [];\n\n                if (response.error) {\n                  if (typeof response.error === 'string') {\n                    store.serverError = response.error;\n                  } else {\n                    Object.assign(store.dataErrors, response.error);\n                    errorFields = Object.keys(response.error);\n                  }\n                } // Supports an array of field names in error_field or a string\n\n\n                errorFields = errorFields.concat(response.error_field);\n                errorFields.forEach(function (field) {\n                  if (store.options.autoSaveInterval && !store.dataErrors[field] && store.isSame(updates[field], store.data[field])) {\n                    store.data[field] = store.dataServer[field]; // revert or it'll keep trying to autosave it\n                  }\n\n                  delete updates[field]; // don't save it as the new dataServer value\n                });\n              })();\n            } else {\n              store.serverError = null;\n            }\n\n            deep = true;\n            (0, _justExtend[\"default\"])(deep, store.dataServer, updates);\n            (0, _mobx.action)(function () {\n              if (response.data) {\n                (0, _justExtend[\"default\"])(deep, store.dataServer, response.data);\n                (0, _justExtend[\"default\"])(deep, store.data, response.data);\n              }\n\n              for (var _i = 0, _Array$from = Array.from(store.dataChanges); _i < _Array$from.length; _i++) {\n                var _Array$from$_i = _slicedToArray(_Array$from[_i], 2),\n                    key = _Array$from$_i[0],\n                    value = _Array$from$_i[1];\n\n                if (store.isSame(value, store.dataServer[key])) {\n                  store.dataChanges[\"delete\"](key);\n                }\n              }\n            })();\n\n            if (!(typeof store.options.afterSave === 'function')) {\n              _context3.next = 8;\n              break;\n            }\n\n            _context3.next = 8;\n            return store.options.afterSave(store, updates, response);\n\n          case 8:\n            return _context3.abrupt(\"return\", response.status);\n\n          case 9:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, _callee3);\n  }));\n  return _processSaveResponse.apply(this, arguments);\n}\n\nfunction handleError(store, err) {\n  if (typeof store.options.server.errorMessage === 'function') {\n    store.serverError = store.options.server.errorMessage(err);\n  } else {\n    store.serverError = store.options.server.errorMessage;\n  }\n\n  store.options.logError(err);\n}\n\nvar FormStore = (_class = /*#__PURE__*/function () {\n  /** @private */\n\n  /**\n   * @private\n   * @type {null|Date}\n   */\n\n  /** @private */\n\n  /** @private */\n\n  /** @private */\n\n  /**\n   * @private\n   * @type {Array<Function>}\n   */\n\n  /** @private */\n\n  /** @private */\n  // true after initial data load (refresh) has completed\n\n  /** @private */\n\n  /** @private */\n\n  /** @private */\n  // stores both communication error and any explicit response.error returned to save\n\n  /** @private */\n  // To support both Mobx 2.2+ and 3+, this is now done in constructor:\n  // @observable dataChanges = asMap(); // changes that will be sent to server\n\n  /** @private */\n  // data returned by the server (kept for checking old values)\n  // stores validation error message if any for each field (data structure is identical to data)\n  // active is set to true right after a save is completed and status is set to response.status\n  // this allows a confirmation message to be shown to user and to drive its dismissal,\n  // UI can set this observable's active property back to false.\n  // property currently being edited as set by startEditing()\n  function FormStore(options, data) {\n    _classCallCheck(this, FormStore);\n\n    this.options = {\n      name: 'FormStore',\n      // used in log statements\n      idProperty: null,\n      autoSaveOptions: {\n        skipPropertyBeingEdited: true,\n        keepServerError: true\n      },\n      autoSaveInterval: 0,\n      // in ms\n      minRefreshInterval: 0,\n      // in ms\n      saveNotificationStatusOnError: null,\n      log: function noop() {},\n      logError: console.error.bind(console),\n      // eslint-disable-line\n\n      /** @type {Boolean|function(object): Boolean} passed status object */\n      isReadOnly: function isReadOnly(status) {\n        return !status.isReady;\n      },\n      server: {\n        /** @type {undefined|function: Promise|Object} - MUST resolve to an object with all data properties present even if all have null values */\n        get: undefined,\n\n        /** @type {undefined|function(object): Promise|Object} passed updates object - see processSaveResponse for expected error response properties */\n        set: undefined,\n\n        /** @type {undefined|function(object}: Promise|Object} passed updates object - see processSaveResponse for expected error response properties */\n        create: undefined,\n\n        /** @type {String|function(error): String} passed error object */\n        errorMessage: DEFAULT_SERVER_ERROR_MESSAGE\n      },\n\n      /** @type {undefined|function(FormStore): Promise|Boolean} passed store instance - if it returns false, no refresh will be performed */\n      beforeRefresh: undefined,\n\n      /** @type {undefined|function(FormStore): Promise} passed store instance */\n      afterRefresh: undefined,\n\n      /** @type {undefined|function(FormStore, object, object): Promise|Boolean} passed store instance, updates object and saveOptions object,\n       * (i.e. with skipPropertyBeingEdited, etc booleans) - if it returns false, no save will be performed */\n      beforeSave: undefined,\n\n      /** @type {undefined|function(FormStore, object, object): Promise} passed store instance, updates object and response object\n       * - updates object will already have fields removed from it that response indicates are in error */\n      afterSave: undefined\n    };\n    this.lastSync = null;\n    this.saveQueue = Promise.resolve();\n    this.observeDataObjectDisposer = void 0;\n    this.observeDataPropertiesDisposer = void 0;\n    this.observeComputedPropertiesDisposers = [];\n    this.autorunDisposer = void 0;\n\n    _initializerDefineProperty(this, \"isReady\", _descriptor, this);\n\n    _initializerDefineProperty(this, \"isLoading\", _descriptor2, this);\n\n    _initializerDefineProperty(this, \"isSaving\", _descriptor3, this);\n\n    _initializerDefineProperty(this, \"serverError\", _descriptor4, this);\n\n    this.dataServer = {};\n\n    _initializerDefineProperty(this, \"data\", _descriptor5, this);\n\n    _initializerDefineProperty(this, \"dataErrors\", _descriptor6, this);\n\n    _initializerDefineProperty(this, \"saveNotification\", _descriptor7, this);\n\n    _initializerDefineProperty(this, \"propertyBeingEdited\", _descriptor8, this);\n\n    this.isSame = isSame;\n    var store = this;\n    Object.assign(store.options, options);\n\n    if (!data && typeof store.options.server.get !== 'function') {\n      throw new Error('options must specify server get function or supply initial data object to constructor');\n    }\n\n    if (!_typeof(store.options.server.create) !== 'function' && typeof store.options.server.set !== 'function') {\n      throw new Error('options must specify server set and/or create function(s)');\n    }\n\n    store.options.server.errorMessage = store.options.server.errorMessage || DEFAULT_SERVER_ERROR_MESSAGE; // Supports both Mobx 3+ (observable.map) and 2.x (asMap) without deprecation warnings:\n\n    store.dataChanges = _mobx.observable.map ? _mobx.observable.map() : (0, _mobx.asMap)(); // changes that will be sent to server\n    // register observe for changes to properties in store.data as well as to complete replacement of store.data object\n\n    store.storeDataChanged = observableChanged.bind(store);\n    store.observeDataPropertiesDisposer = (0, _mobx.observe)(store.data, store.storeDataChanged);\n    store.observeDataObjectDisposer = (0, _mobx.observe)(store, 'data', function () {\n      store.observeDataPropertiesDisposer && store.observeDataPropertiesDisposer();\n      store.observeDataPropertiesDisposer = (0, _mobx.observe)(store.data, store.storeDataChanged);\n      store.dataChanges.clear();\n      (0, _mobx.action)(function () {\n        Object.keys(store.data).forEach(function (key) {\n          var value = store.data[key];\n\n          if (!store.isSame(value, store.dataServer[key])) {\n            store.dataChanges.set(key, value);\n          }\n        });\n        observeComputedProperties(store);\n      })();\n    });\n    store.configAutoSave(store.options.autoSaveInterval, store.options.autoSaveOptions);\n\n    if (data) {\n      store.reset(data);\n    }\n  }\n  /**\n   *  disposes of all internal observation/autoruns so this instance can be garbage-collected.\n   */\n\n\n  _createClass(FormStore, [{\n    key: \"dispose\",\n    value: function dispose() {\n      var store = this;\n      store.autorunDisposer && store.autorunDisposer();\n      store.observeDataObjectDisposer && store.observeDataObjectDisposer();\n      store.observeDataPropertiesDisposer && store.observeDataPropertiesDisposer();\n      store.observeComputedPropertiesDisposers.forEach(function (f) {\n        return f();\n      });\n      store.autorunDisposer = undefined;\n      store.observeDataObjectDisposer = undefined;\n      store.observeDataPropertiesDisposer = undefined;\n      store.observeComputedPropertiesDisposers = [];\n    }\n    /**\n     * Configures and enables or disables auto-save\n     * @param {Number} autoSaveInterval - (in ms) - if non-zero autosave will be enabled, otherwise disabled\n     * @param {Object} [autoSaveOptions] - overrides the default autoSaveOptions if provided\n     */\n\n  }, {\n    key: \"configAutoSave\",\n    value: function configAutoSave(autoSaveInterval, autoSaveOptions) {\n      var store = this;\n      store.autorunDisposer && store.autorunDisposer();\n      store.options.autoSaveInterval = autoSaveInterval;\n      store.options.autoSaveOptions = autoSaveOptions || store.options.autoSaveOptions; // auto-save by observing dataChanges keys\n\n      if (store.options.autoSaveInterval) {\n        // Supports both Mobx <=3 (autorunAsync) and Mobx 4+\n        // (ObservableMap keys no longer returning an Array is used to detect Mobx 4+,\n        // because in non-production build autorunAsync exists in 4.x to issue deprecation error)\n        var asyncAutorun = Array.isArray(store.dataChanges.keys()) ? _mobx.autorunAsync : function (fn, delay) {\n          return (0, _mobx.autorun)(fn, {\n            delay: delay\n          });\n        };\n        store.autorunDisposer = asyncAutorun(function () {\n          if (!store.status.mustCreate && Array.from(store.dataChanges).length) {\n            store.options.log(\"[\".concat(store.options.name, \"] Auto-save started...\"));\n            store.save(store.options.autoSaveOptions);\n          }\n        }, store.options.autoSaveInterval);\n      } else {\n        store.autorunDisposer = undefined;\n      }\n    }\n    /**\n     * Marks data property as edit-in-progress and therefore it should not be autosaved - to be called on field focus\n     * @param {String|Array} name - field/property name (Array format supports json schema forms)\n     */\n\n  }, {\n    key: \"startEditing\",\n    value: function startEditing(name) {\n      var store = this;\n      store.propertyBeingEdited = Array.isArray(name) ? name[0] : name;\n    } // to be called on field blur, any field name parameter is ignored\n\n  }, {\n    key: \"stopEditing\",\n    value: function stopEditing() {\n      var store = this;\n      store.propertyBeingEdited = null;\n\n      if (store.status.hasChanges) {\n        // This will trigger autorun in case it already ran while we were editing:\n        (0, _mobx.action)(function () {\n          // In MobX 4+, ObservableMap.keys() returns an Iterable, not an array\n          var key = Array.from(store.dataChanges)[0][0];\n          var value = store.dataChanges.get(key);\n          store.dataChanges[\"delete\"](key);\n          store.dataChanges.set(key, value);\n        })();\n      }\n    }\n    /**\n     * Returns the value of a field/property, optionally returning the last saved value for not validated/in progress fields\n     * Without validated:true, using this function is not necessary, can just access store.data[name].\n     * @param {String|Array} name - field/property name (Array format supports json schema forms)\n     * @param {Boolean} [validated] - only return validated value, i.e. if it's in error, fallback to dataServer\n     * @param {Boolean} [skipPropertyBeingEdited] - used only when validated is true to again fallback to dataServer\n     * @returns {*}\n     */\n\n  }, {\n    key: \"getValue\",\n    value: function getValue(name, validated, skipPropertyBeingEdited) {\n      var store = this;\n      var prop = Array.isArray(name) ? name[0] : name;\n\n      if (validated) {\n        // check if property is being edited or invalid\n        if (skipPropertyBeingEdited && prop === store.propertyBeingEdited || store.dataErrors[prop]) {\n          return store.dataServer[prop];\n        }\n      }\n\n      return store.data[prop];\n    } // Returns the last saved (or server-provided) set of data\n    // - in an afterSave callback it already includes merged updates that were not in error\n\n  }, {\n    key: \"getSavedData\",\n    value: function getSavedData() {\n      var store = this;\n      return store.dataServer;\n    }\n    /**\n     * @returns {{errors: Array<String>, isReady: Boolean, isInProgress: Boolean, canSave: Boolean, hasChanges: Boolean, isReadOnly: Boolean}}\n     * errors is an array of any serverError plus all the error messages from all fields (in no particular order)\n     * (serverError is either the string returned in response.error or a communication error and is cleared on every refresh and save)\n     * isReady indicates initial data load (refresh) has been completed and user can start entering data\n     * isInProgress indicates either a refresh or a save is in progress\n     * canSave is true when no refresh or save is in progress and there are no validation errors\n     * hasChanges is true when one or more data properties has a value that's different from last-saved/server-loaded data.\n     * isReadOnly by default is true when isReady is false but can be set to the return value of an\n     *            optional callback to which this status object (without isReadOnly) is passed\n     */\n\n  }, {\n    key: \"status\",\n    get: function get() {\n      var store = this;\n      var errors = [];\n\n      if (store.serverError) {\n        errors = [store.serverError];\n      }\n\n      Object.keys(store.dataErrors).forEach(function (key) {\n        if (store.dataErrors[key]) {\n          errors.push(store.dataErrors[key]);\n        }\n      });\n      var status = {\n        errors: errors,\n        isReady: store.isReady,\n        isInProgress: store.isLoading || store.isSaving,\n        canSave: !store.isLoading && !store.isSaving && (store.serverError ? errors.length === 1 : errors.length === 0),\n        hasChanges: !!store.dataChanges.size,\n        mustCreate: !!(store.options.idProperty && !store.dataServer[store.options.idProperty])\n      };\n\n      if (typeof store.options.isReadOnly === 'function') {\n        status.isReadOnly = store.options.isReadOnly(status);\n      } else {\n        status.isReadOnly = store.options.isReadOnly;\n      }\n\n      return status;\n    }\n    /**\n     * Copies dataServer into data and resets the error observable and lastSync.\n     * Mostly for internal use by constructor and refresh().\n     * @param {Object} [data] If provided, dataServer will be set to it and store.isReady will be set to true\n     */\n\n  }, {\n    key: \"reset\",\n    value: function reset(data) {\n      var store = this;\n      (0, _mobx.action)(function () {\n        if (data) {\n          store.dataServer = data;\n        }\n\n        var deep = true;\n        store.data = (0, _justExtend[\"default\"])(deep, {}, store.dataServer); // setup error observable\n\n        var temp = {};\n        Object.keys(store.data).forEach(function (key) {\n          temp[key] = null;\n        });\n        store.dataErrors = temp;\n        store.lastSync = null;\n        observeComputedProperties(store);\n        if (data && !store.isReady) store.isReady = true;\n      })();\n    }\n    /**\n     * Loads data from server unless a refresh was performed within the last minRefreshInterval (i.e. 15 minutes).\n     * If there are pending (and ready to save) changes, triggers save instead and 'resets the clock' on minRefreshInterval.\n     * For a store with idProperty defined, if that data property is falsy in data received from server,\n     * loads from server only the very first time refresh() is called unless called with allowIfMustCreate=true option.\n     * @param {Object} [refreshOptions]\n     * @param {Boolean} [refreshOptions.allowIfMustCreate=false]\n     * @param {Boolean} [refreshOptions.ignoreMinRefreshInterval=false]\n     * @returns {Promise|Boolean} resolves to true if refresh actually performed, false if skipped\n     */\n\n  }, {\n    key: \"refresh\",\n    value: function () {\n      var _refresh = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        var refreshOptions,\n            allowIfMustCreate,\n            ignoreMinRefreshInterval,\n            store,\n            now,\n            past,\n            result,\n            _args = arguments;\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                refreshOptions = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};\n                // for some reason this syntax is erroring in tests:\n                // const { allowIfMustCreate = false, ignoreMinRefreshInterval = false } = refreshOptions;\n                allowIfMustCreate = refreshOptions.allowIfMustCreate || false;\n                ignoreMinRefreshInterval = refreshOptions.ignoreMinRefreshInterval || false;\n                store = this;\n\n                if (!(!store.options.server.get || store.isReady && store.status.mustCreate && !allowIfMustCreate)) {\n                  _context.next = 6;\n                  break;\n                }\n\n                return _context.abrupt(\"return\", false);\n\n              case 6:\n                store.options.log(\"[\".concat(store.options.name, \"] Starting data refresh...\"));\n\n                if (!store.isLoading) {\n                  _context.next = 10;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] Data is already being refreshed.\"));\n                return _context.abrupt(\"return\", false);\n\n              case 10:\n                now = new Date();\n                past = new Date(Date.now() - store.options.minRefreshInterval); // check if lastSync is between now and 15 minutes ago\n\n                if (!(!ignoreMinRefreshInterval && past < store.lastSync && store.lastSync <= now)) {\n                  _context.next = 15;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] Data refreshed within last \").concat(store.options.minRefreshInterval / 1000, \" seconds.\"));\n                return _context.abrupt(\"return\", false);\n\n              case 15:\n                if (!(store.status.hasChanges && !store.status.mustCreate)) {\n                  _context.next = 23;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] Unsaved changes detected...\"));\n                _context.next = 19;\n                return store.save();\n\n              case 19:\n                if (!_context.sent) {\n                  _context.next = 23;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] Postponing refresh for \").concat(store.options.minRefreshInterval / 1000, \" seconds.\"));\n                store.lastSync = new Date();\n                return _context.abrupt(\"return\", false);\n\n              case 23:\n                if (!(typeof store.options.beforeRefresh === 'function')) {\n                  _context.next = 29;\n                  break;\n                }\n\n                _context.next = 26;\n                return store.options.beforeRefresh(store);\n\n              case 26:\n                _context.t0 = _context.sent;\n\n                if (!(_context.t0 === false)) {\n                  _context.next = 29;\n                  break;\n                }\n\n                return _context.abrupt(\"return\", false);\n\n              case 29:\n                store.options.log(\"[\".concat(store.options.name, \"] Refreshing data...\"));\n                store.isLoading = true;\n                _context.prev = 31;\n                _context.next = 34;\n                return store.options.server.get();\n\n              case 34:\n                result = _context.sent;\n                store.options.log(\"[\".concat(store.options.name, \"] Data received from server.\"));\n                (0, _mobx.action)(function () {\n                  store.dataServer = result;\n                  store.serverError = null;\n                  store.reset();\n                  store.lastSync = new Date();\n                })();\n\n                if (!(typeof store.options.afterRefresh === 'function')) {\n                  _context.next = 41;\n                  break;\n                }\n\n                _context.next = 40;\n                return store.options.afterRefresh(store);\n\n              case 40:\n                observeComputedProperties(store); // again, in case afterRefresh added some\n\n              case 41:\n                store.options.log(\"[\".concat(store.options.name, \"] Refresh finished.\"));\n                if (!store.isReady) store.isReady = true;\n                _context.next = 48;\n                break;\n\n              case 45:\n                _context.prev = 45;\n                _context.t1 = _context[\"catch\"](31);\n                handleError(store, _context.t1);\n\n              case 48:\n                store.isLoading = false;\n                return _context.abrupt(\"return\", true);\n\n              case 50:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this, [[31, 45]]);\n      }));\n\n      function refresh() {\n        return _refresh.apply(this, arguments);\n      }\n\n      return refresh;\n    }()\n    /**\n     * Sends ready-to-save data changes to the server (normally using server.set unless it's undefined, then with server.create)\n     * For a store with idProperty defined when that property is falsy in the data received from server\n     * and allowCreate=true, uses server.create instead.\n     * Calls to save() while one is in progress are queued.\n     * @param {Object} saveOptions - the object as a whole is also passed to the beforeSave callback\n     * @param {Boolean} [saveOptions.allowCreate=false] - for a store with idProperty defined, this must be true\n     *                                                    for the save to actually be performed when that property is falsy.\n     * @param {Boolean} [saveOptions.saveAll=false] - normally save only sends changes and if no changes, no save is done.\n     *                                                if saveAll=true, sends the full data object regardless of changes.\n     * @param {Boolean} [saveOptions.skipPropertyBeingEdited=false] - true in an auto-save\n     * @param {Boolean} [saveOptions.keepServerError=false] - true in an auto-save, otherwise will also deactivate saveNotification prior to save\n     * @returns {Promise|Boolean} resolves to true if save actually performed, false if skipped\n     */\n\n  }, {\n    key: \"save\",\n    value: function save() {\n      var saveOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      var _saveOptions$allowCre = saveOptions.allowCreate,\n          allowCreate = _saveOptions$allowCre === void 0 ? false : _saveOptions$allowCre,\n          _saveOptions$saveAll = saveOptions.saveAll,\n          saveAll = _saveOptions$saveAll === void 0 ? false : _saveOptions$saveAll,\n          _saveOptions$skipProp = saveOptions.skipPropertyBeingEdited,\n          skipPropertyBeingEdited = _saveOptions$skipProp === void 0 ? false : _saveOptions$skipProp,\n          _saveOptions$keepServ = saveOptions.keepServerError,\n          keepServerError = _saveOptions$keepServ === void 0 ? false : _saveOptions$keepServ;\n      var store = this;\n      store.saveQueue = store.saveQueue.then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n        var deep, updates, response;\n        return regeneratorRuntime.wrap(function _callee2$(_context2) {\n          while (1) {\n            switch (_context2.prev = _context2.next) {\n              case 0:\n                if (!(store.status.mustCreate && !allowCreate)) {\n                  _context2.next = 2;\n                  break;\n                }\n\n                return _context2.abrupt(\"return\", false);\n\n              case 2:\n                store.options.log(\"[\".concat(store.options.name, \"] Starting data save...\"));\n                deep = true;\n\n                if (!saveAll) {\n                  _context2.next = 10;\n                  break;\n                }\n\n                updates = {};\n                Object.getOwnPropertyNames(store.data).forEach(function (property) {\n                  if (property[0] === '$') {\n                    return;\n                  }\n\n                  if ((0, _mobx.isObservableArray)(store.data[property])) {\n                    updates[property] = store.data[property].slice();\n                    return;\n                  }\n\n                  updates[property] = store.data[property];\n                });\n                updates = (0, _justExtend[\"default\"])(deep, {}, updates);\n                _context2.next = 18;\n                break;\n\n              case 10:\n                // Mobx 4+ toJS() exports a Map, not an Object and toJSON is the 'legacy' method to export an Object\n                updates = store.dataChanges.toJSON ? store.dataChanges.toJSON() : store.dataChanges.toJS();\n\n                if (!(Object.keys(updates).length === 0)) {\n                  _context2.next = 14;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] No changes to save.\"));\n                return _context2.abrupt(\"return\", false);\n\n              case 14:\n                // check if we have property currently being edited in changes\n                // or if a property has an error and clone (observable or regular)\n                // Arrays and Objects to plain ones\n                Object.keys(updates).forEach(function (property) {\n                  if (skipPropertyBeingEdited && property === store.propertyBeingEdited) {\n                    store.options.log(\"[\".concat(store.options.name, \"] Property \\\"\").concat(property, \"\\\" is being edited.\"));\n                    delete updates[property];\n                    return;\n                  }\n\n                  if (store.dataErrors[property]) {\n                    store.options.log(\"[\".concat(store.options.name, \"] Property \\\"\").concat(property, \"\\\" is not validated.\"));\n                    delete updates[property];\n                    return;\n                  }\n\n                  if (store.isSame(updates[property], store.dataServer[property])) {\n                    store.options.log(\"[\".concat(store.options.name, \"] Property \\\"\").concat(property, \"\\\" is same as on the server.\"));\n                    delete updates[property];\n                    store.dataChanges[\"delete\"](property);\n                    return;\n                  }\n\n                  if (Array.isArray(updates[property]) || (0, _mobx.isObservableArray)(updates[property])) {\n                    updates[property] = updates[property].slice();\n                  } else if (isObject(updates[property])) {\n                    updates[property] = (0, _justExtend[\"default\"])(deep, {}, updates[property]);\n                  }\n                });\n\n                if (!(Object.keys(updates).length === 0)) {\n                  _context2.next = 18;\n                  break;\n                }\n\n                store.options.log(\"[\".concat(store.options.name, \"] No changes ready to save.\"));\n                return _context2.abrupt(\"return\", false);\n\n              case 18:\n                if (!(typeof store.options.beforeSave === 'function')) {\n                  _context2.next = 24;\n                  break;\n                }\n\n                _context2.next = 21;\n                return store.options.beforeSave(store, updates, saveOptions);\n\n              case 21:\n                _context2.t0 = _context2.sent;\n\n                if (!(_context2.t0 === false)) {\n                  _context2.next = 24;\n                  break;\n                }\n\n                return _context2.abrupt(\"return\", false);\n\n              case 24:\n                store.options.log(\"[\".concat(store.options.name, \"] Saving data...\"));\n                store.options.log(updates);\n                store.isSaving = true;\n                _context2.prev = 27;\n\n                if (!keepServerError) {\n                  store.saveNotification.active = false;\n                  store.serverError = null;\n                }\n\n                if (!(store.options.server.set && (!store.options.server.create || !store.status.mustCreate))) {\n                  _context2.next = 35;\n                  break;\n                }\n\n                _context2.next = 32;\n                return store.options.server.set(updates);\n\n              case 32:\n                response = _context2.sent;\n                _context2.next = 38;\n                break;\n\n              case 35:\n                _context2.next = 37;\n                return store.options.server.create(updates);\n\n              case 37:\n                response = _context2.sent;\n\n              case 38:\n                _context2.next = 40;\n                return processSaveResponse(store, updates, response);\n\n              case 40:\n                store.saveNotification.status = _context2.sent;\n                store.saveNotification.active = true;\n                store.options.log(\"[\".concat(store.options.name, \"] Save finished.\"));\n                _context2.next = 49;\n                break;\n\n              case 45:\n                _context2.prev = 45;\n                _context2.t1 = _context2[\"catch\"](27);\n                handleError(store, _context2.t1);\n\n                if (store.options.saveNotificationStatusOnError) {\n                  store.saveNotification.status = store.options.saveNotificationStatusOnError;\n                  store.saveNotification.active = true;\n                }\n\n              case 49:\n                store.isSaving = false;\n                return _context2.abrupt(\"return\", true);\n\n              case 51:\n              case \"end\":\n                return _context2.stop();\n            }\n          }\n        }, _callee2, null, [[27, 45]]);\n      })));\n      return store.saveQueue;\n    }\n  }]);\n\n  return FormStore;\n}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isReady\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return false;\n  }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return false;\n  }\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return false;\n  }\n}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"serverError\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return null;\n  }\n}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"data\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return {};\n  }\n}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dataErrors\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return {};\n  }\n}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"saveNotification\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return {\n      active: false,\n      status: null\n    };\n  }\n}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"propertyBeingEdited\", [_mobx.observable], {\n  configurable: true,\n  enumerable: true,\n  writable: true,\n  initializer: function initializer() {\n    return null;\n  }\n}), _applyDecoratedDescriptor(_class.prototype, \"status\", [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, \"status\"), _class.prototype)), _class);\nvar _default = FormStore;\nexports[\"default\"] = _default;"]}