diff --git a/README.md b/README.md index 2678873..b32ceaf 100644 --- a/README.md +++ b/README.md @@ -29,15 +29,15 @@ use DigitalCloud\AddressField\AddressField; AddressField::make('Address'), //You can enable lat and lng inputs: -AddressField::make('Address') +GoogleAutocomplete::make('Address') ->withLatLng(), //You can enable map picking address: -AddressField::make('Address') +GoogleAutocomplete::make('Address') ->withMap(), //You can set the init location and zoom for the map: -AddressField::make('Address') +GoogleAutocomplete::make('Address') ->withMap()->initLocation('24.6', '46.7')->zoom(5), ``` diff --git a/composer.json b/composer.json index 4d787b2..115c751 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,7 @@ "description": "A Laravel Nova Address field.", "keywords": [ "laravel", - "nova", - "field", - "address", - "address autocomplete", - "google places", - "google map" + "nova" ], "license": "MIT", "require": { diff --git a/dist/js/field.js b/dist/js/field.js index 5b247ba..2a1de4c 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -967,6 +967,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); this.addressData.longitude = addressData.longitude; this.addressData.formatted_address = placeResultData.formatted_address; this.refreshMap(); + this.$emit('addressChanged', this.addressData); }, refreshAddressData: function refreshAddressData() { @@ -1040,6 +1041,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); _this.addressData.longitude = latLng.lng(); _this.addressData.formatted_address = results[0].formatted_address; _this.$refs.address.update(results[0].formatted_address); + _this.$emit('addressChanged', _this.addressData); } else { //window.alert('No results found'); } @@ -1184,7 +1186,7 @@ return /******/ (function(modules) { // webpackBootstrap var bind = __webpack_require__(46); -var isBuffer = __webpack_require__(158); +var isBuffer = __webpack_require__(156); /*global toString:true*/ @@ -1502,8 +1504,8 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef /* 2 */ /***/ (function(module, exports, __webpack_require__) { -var store = __webpack_require__(58)('wks'); -var uid = __webpack_require__(63); +var store = __webpack_require__(60)('wks'); +var uid = __webpack_require__(65); var Symbol = __webpack_require__(1).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; @@ -1617,7 +1619,7 @@ module.exports = $export; /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(11); -var createDesc = __webpack_require__(57); +var createDesc = __webpack_require__(59); module.exports = __webpack_require__(5) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { @@ -1684,8 +1686,8 @@ module.exports = {}; /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(4); -var IE8_DOM_DEFINE = __webpack_require__(124); -var toPrimitive = __webpack_require__(144); +var IE8_DOM_DEFINE = __webpack_require__(122); +var toPrimitive = __webpack_require__(142); var dP = Object.defineProperty; exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProperty(O, P, Attributes) { @@ -1705,7 +1707,7 @@ exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProp /* 12 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(66); +var freeGlobal = __webpack_require__(68); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -1837,8 +1839,8 @@ module.exports = assocIndexOf; /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(36), - getRawTag = __webpack_require__(190), - objectToString = __webpack_require__(215); + getRawTag = __webpack_require__(188), + objectToString = __webpack_require__(213); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -1870,7 +1872,7 @@ module.exports = baseGetTag; /* 20 */ /***/ (function(module, exports, __webpack_require__) { -var isKeyable = __webpack_require__(199); +var isKeyable = __webpack_require__(197); /** * Gets the data for `map`. @@ -1906,8 +1908,8 @@ module.exports = nativeCreate; /* 22 */ /***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(70), - isLength = __webpack_require__(71); +var isFunction = __webpack_require__(72), + isLength = __webpack_require__(73); /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -2019,7 +2021,7 @@ module.exports = isSymbol; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__(0); -var normalizeHeaderName = __webpack_require__(107); +var normalizeHeaderName = __webpack_require__(109); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' @@ -2113,7 +2115,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { module.exports = defaults; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(73))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(75))) /***/ }), /* 26 */ @@ -2124,7 +2126,7 @@ module.exports = defaults; exports.__esModule = true; -var _defineProperty = __webpack_require__(112); +var _defineProperty = __webpack_require__(113); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -2231,8 +2233,8 @@ module.exports = function (it, tag, stat) { /* 33 */ /***/ (function(module, exports, __webpack_require__) { -var shared = __webpack_require__(58)('keys'); -var uid = __webpack_require__(63); +var shared = __webpack_require__(60)('keys'); +var uid = __webpack_require__(65); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; @@ -2255,7 +2257,7 @@ module.exports = function (it) { /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(52); +var IObject = __webpack_require__(54); var defined = __webpack_require__(27); module.exports = function (it) { return IObject(defined(it)); @@ -2278,8 +2280,8 @@ module.exports = Symbol; /* 37 */ /***/ (function(module, exports, __webpack_require__) { -var baseIsNative = __webpack_require__(172), - getValue = __webpack_require__(191); +var baseIsNative = __webpack_require__(170), + getValue = __webpack_require__(189); /** * Gets the native function at `key` of `object`. @@ -2390,7 +2392,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _Form = __webpack_require__(156); +var _Form = __webpack_require__(154); Object.defineProperty(exports, 'default', { enumerable: true, @@ -2405,7 +2407,7 @@ Object.defineProperty(exports, 'Form', { } }); -var _Errors = __webpack_require__(64); +var _Errors = __webpack_require__(66); Object.defineProperty(exports, 'Errors', { enumerable: true, @@ -2424,12 +2426,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__(0); -var settle = __webpack_require__(99); -var buildURL = __webpack_require__(102); -var parseHeaders = __webpack_require__(108); -var isURLSameOrigin = __webpack_require__(106); +var settle = __webpack_require__(101); +var buildURL = __webpack_require__(104); +var parseHeaders = __webpack_require__(110); +var isURLSameOrigin = __webpack_require__(108); var createError = __webpack_require__(45); -var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(101); +var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(103); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { @@ -2526,7 +2528,7 @@ module.exports = function xhrAdapter(config) { // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { - var cookies = __webpack_require__(104); + var cookies = __webpack_require__(106); // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? @@ -2602,7 +2604,7 @@ module.exports = function xhrAdapter(config) { }); }; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(73))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(75))) /***/ }), /* 43 */ @@ -2649,7 +2651,7 @@ module.exports = function isCancel(value) { "use strict"; -var enhanceError = __webpack_require__(98); +var enhanceError = __webpack_require__(100); /** * Create an Error with the specified message, config, error code, request and response. @@ -2697,59 +2699,59 @@ Object.defineProperty(exports, "__esModule", { }); exports.CardSizes = exports.SingularOrPlural = exports.Minimum = exports.Capitalize = exports.Inflector = exports.Errors = exports.TogglesTrashed = exports.PerPageable = exports.PerformsSearches = exports.Paginatable = exports.InteractsWithResourceInformation = exports.InteractsWithQueryString = exports.InteractsWithDates = exports.HasCards = exports.HandlesValidationErrors = exports.FormField = exports.Filterable = exports.Deletable = exports.BehavesAsPanel = undefined; -var _BehavesAsPanel = __webpack_require__(75); +var _BehavesAsPanel = __webpack_require__(77); var _BehavesAsPanel2 = _interopRequireDefault(_BehavesAsPanel); -var _Deletable = __webpack_require__(76); +var _Deletable = __webpack_require__(78); var _Deletable2 = _interopRequireDefault(_Deletable); -var _Filterable = __webpack_require__(77); +var _Filterable = __webpack_require__(79); var _Filterable2 = _interopRequireDefault(_Filterable); -var _FormField = __webpack_require__(78); +var _FormField = __webpack_require__(80); var _FormField2 = _interopRequireDefault(_FormField); -var _HandlesValidationErrors = __webpack_require__(79); +var _HandlesValidationErrors = __webpack_require__(81); var _HandlesValidationErrors2 = _interopRequireDefault(_HandlesValidationErrors); -var _HasCards = __webpack_require__(80); +var _HasCards = __webpack_require__(82); var _HasCards2 = _interopRequireDefault(_HasCards); -var _InteractsWithDates = __webpack_require__(81); +var _InteractsWithDates = __webpack_require__(83); var _InteractsWithDates2 = _interopRequireDefault(_InteractsWithDates); -var _InteractsWithQueryString = __webpack_require__(82); +var _InteractsWithQueryString = __webpack_require__(84); var _InteractsWithQueryString2 = _interopRequireDefault(_InteractsWithQueryString); -var _InteractsWithResourceInformation = __webpack_require__(83); +var _InteractsWithResourceInformation = __webpack_require__(85); var _InteractsWithResourceInformation2 = _interopRequireDefault(_InteractsWithResourceInformation); -var _Paginatable = __webpack_require__(84); +var _Paginatable = __webpack_require__(86); var _Paginatable2 = _interopRequireDefault(_Paginatable); -var _PerformsSearches = __webpack_require__(86); +var _PerformsSearches = __webpack_require__(88); var _PerformsSearches2 = _interopRequireDefault(_PerformsSearches); -var _PerPageable = __webpack_require__(85); +var _PerPageable = __webpack_require__(87); var _PerPageable2 = _interopRequireDefault(_PerPageable); -var _TogglesTrashed = __webpack_require__(87); +var _TogglesTrashed = __webpack_require__(89); var _TogglesTrashed2 = _interopRequireDefault(_TogglesTrashed); -var _inflectorJs = __webpack_require__(91); +var _inflectorJs = __webpack_require__(93); var _inflectorJs2 = _interopRequireDefault(_inflectorJs); @@ -2757,17 +2759,17 @@ var _cardSizes = __webpack_require__(40); var _cardSizes2 = _interopRequireDefault(_cardSizes); -var _capitalize = __webpack_require__(88); +var _capitalize = __webpack_require__(90); var _capitalize2 = _interopRequireDefault(_capitalize); -var _minimum = __webpack_require__(89); +var _minimum = __webpack_require__(91); var _minimum2 = _interopRequireDefault(_minimum); var _formBackendValidation = __webpack_require__(41); -var _singularOrPlural = __webpack_require__(90); +var _singularOrPlural = __webpack_require__(92); var _singularOrPlural2 = _interopRequireDefault(_singularOrPlural); @@ -2798,12 +2800,63 @@ exports.CardSizes = _cardSizes2.default; // Mixins /* 48 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(119), __esModule: true }; +module.exports = { "default": __webpack_require__(117), __esModule: true }; /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; + + +exports.__esModule = true; + +var _promise = __webpack_require__(48); + +var _promise2 = _interopRequireDefault(_promise); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = function (fn) { + return function () { + var gen = fn.apply(this, arguments); + return new _promise2.default(function (resolve, reject) { + function step(key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + return _promise2.default.resolve(value).then(function (value) { + step("next", value); + }, function (err) { + step("throw", err); + }); + } + } + + return step("next"); + }); + }; +}; + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(239); + + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __webpack_require__(15); var TAG = __webpack_require__(2)('toStringTag'); @@ -2830,7 +2883,7 @@ module.exports = function (it) { /***/ }), -/* 50 */ +/* 52 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys @@ -2840,7 +2893,7 @@ module.exports = ( /***/ }), -/* 51 */ +/* 53 */ /***/ (function(module, exports, __webpack_require__) { var document = __webpack_require__(1).document; @@ -2848,7 +2901,7 @@ module.exports = document && document.documentElement; /***/ }), -/* 52 */ +/* 54 */ /***/ (function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings @@ -2860,19 +2913,19 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { /***/ }), -/* 53 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var LIBRARY = __webpack_require__(30); var $export = __webpack_require__(6); -var redefine = __webpack_require__(140); +var redefine = __webpack_require__(138); var hide = __webpack_require__(7); var Iterators = __webpack_require__(10); -var $iterCreate = __webpack_require__(128); +var $iterCreate = __webpack_require__(126); var setToStringTag = __webpack_require__(32); -var getPrototypeOf = __webpack_require__(136); +var getPrototypeOf = __webpack_require__(134); var ITERATOR = __webpack_require__(2)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; @@ -2936,12 +2989,12 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ }), -/* 54 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(137); -var enumBugKeys = __webpack_require__(50); +var $keys = __webpack_require__(135); +var enumBugKeys = __webpack_require__(52); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); @@ -2949,7 +3002,7 @@ module.exports = Object.keys || function keys(O) { /***/ }), -/* 55 */ +/* 57 */ /***/ (function(module, exports) { module.exports = function (exec) { @@ -2962,7 +3015,7 @@ module.exports = function (exec) { /***/ }), -/* 56 */ +/* 58 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(4); @@ -2980,7 +3033,7 @@ module.exports = function (C, x) { /***/ }), -/* 57 */ +/* 59 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { @@ -2994,7 +3047,7 @@ module.exports = function (bitmap, value) { /***/ }), -/* 58 */ +/* 60 */ /***/ (function(module, exports, __webpack_require__) { var core = __webpack_require__(3); @@ -3012,7 +3065,7 @@ var store = global[SHARED] || (global[SHARED] = {}); /***/ }), -/* 59 */ +/* 61 */ /***/ (function(module, exports, __webpack_require__) { // 7.3.20 SpeciesConstructor(O, defaultConstructor) @@ -3027,12 +3080,12 @@ module.exports = function (O, D) { /***/ }), -/* 60 */ +/* 62 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(16); -var invoke = __webpack_require__(125); -var html = __webpack_require__(51); +var invoke = __webpack_require__(123); +var html = __webpack_require__(53); var cel = __webpack_require__(28); var global = __webpack_require__(1); var process = global.process; @@ -3117,7 +3170,7 @@ module.exports = { /***/ }), -/* 61 */ +/* 63 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength @@ -3129,7 +3182,7 @@ module.exports = function (it) { /***/ }), -/* 62 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) @@ -3140,7 +3193,7 @@ module.exports = function (it) { /***/ }), -/* 63 */ +/* 65 */ /***/ (function(module, exports) { var id = 0; @@ -3151,7 +3204,7 @@ module.exports = function (key) { /***/ }), -/* 64 */ +/* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3279,15 +3332,15 @@ var Errors = function () { exports.default = Errors; /***/ }), -/* 65 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { -var baseTimes = __webpack_require__(179), - isArguments = __webpack_require__(231), +var baseTimes = __webpack_require__(177), + isArguments = __webpack_require__(229), isArray = __webpack_require__(13), - isBuffer = __webpack_require__(232), - isIndex = __webpack_require__(68), - isTypedArray = __webpack_require__(233); + isBuffer = __webpack_require__(230), + isIndex = __webpack_require__(70), + isTypedArray = __webpack_require__(231); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -3334,7 +3387,7 @@ module.exports = arrayLikeKeys; /***/ }), -/* 66 */ +/* 68 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -3342,10 +3395,10 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(243))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(241))) /***/ }), -/* 67 */ +/* 69 */ /***/ (function(module, exports) { /** Used to compose unicode character classes. */ @@ -3377,7 +3430,7 @@ module.exports = hasUnicode; /***/ }), -/* 68 */ +/* 70 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -3408,7 +3461,7 @@ module.exports = isIndex; /***/ }), -/* 69 */ +/* 71 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -3432,7 +3485,7 @@ module.exports = isPrototype; /***/ }), -/* 70 */ +/* 72 */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(19), @@ -3475,7 +3528,7 @@ module.exports = isFunction; /***/ }), -/* 71 */ +/* 73 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -3516,10 +3569,10 @@ module.exports = isLength; /***/ }), -/* 72 */ +/* 74 */ /***/ (function(module, exports, __webpack_require__) { -var baseToString = __webpack_require__(180); +var baseToString = __webpack_require__(178); /** * Converts `value` to a string. An empty string is returned for `null` @@ -3550,7 +3603,7 @@ module.exports = toString; /***/ }), -/* 73 */ +/* 75 */ /***/ (function(module, exports) { // shim for using process in browser @@ -3740,7 +3793,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 74 */ +/* 76 */ /***/ (function(module, exports) { module.exports = function(module) { @@ -3768,7 +3821,7 @@ module.exports = function(module) { /***/ }), -/* 75 */ +/* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3791,7 +3844,7 @@ exports.default = { }; /***/ }), -/* 76 */ +/* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4054,7 +4107,7 @@ function mapResources(resources) { } /***/ }), -/* 77 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4064,96 +4117,186 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _regenerator = __webpack_require__(50); + +var _regenerator2 = _interopRequireDefault(_regenerator); + var _defineProperty2 = __webpack_require__(26); var _defineProperty3 = _interopRequireDefault(_defineProperty2); -var _stringify = __webpack_require__(110); +var _asyncToGenerator2 = __webpack_require__(49); -var _stringify2 = _interopRequireDefault(_stringify); +var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); -var _each = __webpack_require__(228); +var _each = __webpack_require__(226); var _each2 = _interopRequireDefault(_each); -var _get = __webpack_require__(230); +var _get = __webpack_require__(228); var _get2 = _interopRequireDefault(_get); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { - data: function data() { - return { - filters: [], - currentFilters: [] - }; - }, - - methods: { /** - * Initialize the current filter values from the decoded query string. + * Clear filters and reset the resource table */ - initializeFilterValuesFromQueryString: function initializeFilterValuesFromQueryString() { - this.clearAllFilters(); + clearSelectedFilters: function () { + var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(lens) { + var _updateQueryString; + + return _regenerator2.default.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!lens) { + _context.next = 5; + break; + } + + _context.next = 3; + return this.$store.dispatch(this.resourceName + '/resetFilterState', { + resourceName: this.resourceName, + lens: lens + }); + + case 3: + _context.next = 7; + break; + + case 5: + _context.next = 7; + return this.$store.dispatch(this.resourceName + '/resetFilterState', { + resourceName: this.resourceName + }); + + case 7: - if (this.encodedFilters) { - this.currentFilters = JSON.parse(atob(this.encodedFilters)); + this.updateQueryString((_updateQueryString = {}, (0, _defineProperty3.default)(_updateQueryString, this.pageParameter, 1), (0, _defineProperty3.default)(_updateQueryString, this.filterParameter, ''), _updateQueryString)); - this.syncFilterValues(); + case 8: + case 'end': + return _context.stop(); + } + } + }, _callee, this); + })); + + function clearSelectedFilters(_x) { + return _ref.apply(this, arguments); } - }, + + return clearSelectedFilters; + }(), /** - * Reset all of the current filters. + * Handle a filter state change. */ - clearAllFilters: function clearAllFilters() { - this.currentFilters = []; + filterChanged: function filterChanged() { + var _updateQueryString2; - (0, _each2.default)(this.filters, function (filter) { - filter.currentValue = ''; - }); + this.updateQueryString((_updateQueryString2 = {}, (0, _defineProperty3.default)(_updateQueryString2, this.pageParameter, 1), (0, _defineProperty3.default)(_updateQueryString2, this.filterParameter, this.$store.getters[this.resourceName + '/currentEncodedFilters']), _updateQueryString2)); }, /** - * Sync the current filter values with the decoded filter query string values. + * Set up filters for the current view */ - syncFilterValues: function syncFilterValues() { - var _this = this; + initializeFilters: function () { + var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(lens) { + return _regenerator2.default.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + // Clear out the filters from the store first + this.$store.commit(this.resourceName + '/clearFilters'); - (0, _each2.default)(this.filters, function (filter) { - filter.currentValue = (0, _get2.default)(_(_this.currentFilters).find(function (decoded) { - return filter.class == decoded.class; - }), 'value', filter.currentValue); - }); - }, + _context2.next = 3; + return this.$store.dispatch(this.resourceName + '/fetchFilters', { + resourceName: this.resourceName, + lens: lens + }); + + case 3: + _context2.next = 5; + return this.initializeState(lens); + + case 5: + case 'end': + return _context2.stop(); + } + } + }, _callee2, this); + })); + + function initializeFilters(_x2) { + return _ref2.apply(this, arguments); + } + + return initializeFilters; + }(), /** - * Handle a filter state change. + * Initialize the filter state */ - filterChanged: function filterChanged() { - var _updateQueryString; + initializeState: function () { + var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(lens) { + return _regenerator2.default.wrap(function _callee3$(_context3) { + while (1) { + switch (_context3.prev = _context3.next) { + case 0: + if (!this.initialEncodedFilters) { + _context3.next = 5; + break; + } - this.updateQueryString((_updateQueryString = {}, (0, _defineProperty3.default)(_updateQueryString, this.pageParameter, 1), (0, _defineProperty3.default)(_updateQueryString, this.filterParameter, btoa((0, _stringify2.default)(this.currentFilters))), _updateQueryString)); - } + _context3.next = 3; + return this.$store.dispatch(this.resourceName + '/initializeCurrentFilterValuesFromQueryString', this.initialEncodedFilters); + + case 3: + _context3.next = 7; + break; + + case 5: + _context3.next = 7; + return this.$store.dispatch(this.resourceName + '/resetFilterState', { + resourceName: this.resourceName, + lens: lens + }); + + case 7: + case 'end': + return _context3.stop(); + } + } + }, _callee3, this); + })); + + function initializeState(_x3) { + return _ref3.apply(this, arguments); + } + + return initializeState; + }() }, computed: { /** - * Get the encoded filters from the query string. + * Get the name of the filter query string variable. */ - encodedFilters: function encodedFilters() { - return this.$route.query[this.filterParameter] || ''; + filterParameter: function filterParameter() { + return this.resourceName + '_filter'; } } }; /***/ }), -/* 78 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4206,7 +4349,7 @@ exports.default = { * field's internal value attribute */ fill: function fill(formData) { - formData.append(this.field.attribute, this.value || ''); + formData.append(this.field.attribute, String(this.value)); }, @@ -4216,11 +4359,20 @@ exports.default = { handleChange: function handleChange(value) { this.value = value; } + }, + + computed: { + /** + * Determine if the field is in readonly mode + */ + isReadonly: function isReadonly() { + return this.field.readonly || _.get(this.field, 'extraAttributes.readonly'); + } } }; /***/ }), -/* 79 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4266,21 +4418,21 @@ exports.default = { }; /***/ }), -/* 80 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); -var _regenerator = __webpack_require__(115); +var _regenerator = __webpack_require__(50); var _regenerator2 = _interopRequireDefault(_regenerator); -var _asyncToGenerator2 = __webpack_require__(113); +var _asyncToGenerator2 = __webpack_require__(49); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); @@ -4291,102 +4443,112 @@ var _cardSizes2 = _interopRequireDefault(_cardSizes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { - props: { - loadCards: { - type: Boolean, - default: true - } - }, - - data: function data() { - return { cards: [] }; - }, - - /** - * Fetch all of the metrics panels for this view - */ - created: function created() { - this.fetchCards(); - }, - - - watch: { - cardsEndpoint: function cardsEndpoint() { - this.fetchCards(); - } - }, + props: { + loadCards: { + type: Boolean, + default: true + } + }, - methods: { - fetchCards: function () { - var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() { - var _ref2, cards; + data: function data() { + return { cards: [] }; + }, - return _regenerator2.default.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - if (!this.loadCards) { - _context.next = 6; - break; - } + /** + * Fetch all of the metrics panels for this view + */ + created: function created() { + this.fetchCards(); + }, - _context.next = 3; - return Nova.request().get(this.cardsEndpoint); - case 3: - _ref2 = _context.sent; - cards = _ref2.data; + watch: { + cardsEndpoint: function cardsEndpoint() { + this.fetchCards(); + } + }, - this.cards = cards; + methods: { + fetchCards: function () { + var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() { + var _ref2, cards; + + return _regenerator2.default.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + if (!this.loadCards) { + _context.next = 6; + break; + } + + _context.next = 3; + return Nova.request().get(this.cardsEndpoint, { + params: this.extraCardParams + }); + + case 3: + _ref2 = _context.sent; + cards = _ref2.data; + + this.cards = cards; + + case 6: + case 'end': + return _context.stop(); + } + } + }, _callee, this); + })); - case 6: - case 'end': - return _context.stop(); + function fetchCards() { + return _ref.apply(this, arguments); } - } - }, _callee, this); - })); - function fetchCards() { - return _ref.apply(this, arguments); - } + return fetchCards; + }() + }, - return fetchCards; - }() - }, + computed: { + /** + * Determine whether we have cards to show on the Dashboard + */ + shouldShowCards: function shouldShowCards() { + return this.cards.length > 0; + }, - computed: { - /** - * Determine whether we have cards to show on the Dashboard - */ - shouldShowCards: function shouldShowCards() { - return this.cards.length > 0; - }, + /** + * Return the small cards used for the Dashboard + */ + smallCards: function smallCards() { + return _.filter(this.cards, function (c) { + return _cardSizes2.default.indexOf(c.width) !== -1; + }); + }, - /** - * Return the small cards used for the Dashboard - */ - smallCards: function smallCards() { - return _.filter(this.cards, function (c) { - return _cardSizes2.default.indexOf(c.width) !== -1; - }); - }, + /** + * Return the full-width cards used for the Dashboard + */ + largeCards: function largeCards() { + return _.filter(this.cards, function (c) { + return c.width == 'full'; + }); + }, - /** - * Return the full-width cards used for the Dashboard - */ - largeCards: function largeCards() { - return _.filter(this.cards, function (c) { - return c.width == 'full'; - }); + + /** + * Get the extra card params to pass to the endpoint. + */ + extraCardParams: function extraCardParams() { + return null; + } } - } }; /***/ }), -/* 81 */ +/* 83 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4472,7 +4634,7 @@ exports.default = { }; /***/ }), -/* 82 */ +/* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4482,7 +4644,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _defaults = __webpack_require__(227); +var _defaults = __webpack_require__(225); var _defaults2 = _interopRequireDefault(_defaults); @@ -4500,7 +4662,7 @@ exports.default = { }; /***/ }), -/* 83 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4549,7 +4711,7 @@ exports.default = { }; /***/ }), -/* 84 */ +/* 86 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4594,7 +4756,7 @@ exports.default = { }; /***/ }), -/* 85 */ +/* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4643,7 +4805,7 @@ exports.default = { }; /***/ }), -/* 86 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4653,7 +4815,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _debounce = __webpack_require__(226); +var _debounce = __webpack_require__(224); var _debounce2 = _interopRequireDefault(_debounce); @@ -4729,7 +4891,7 @@ exports.default = { }; /***/ }), -/* 87 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4772,7 +4934,7 @@ exports.default = { }; /***/ }), -/* 88 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4786,14 +4948,14 @@ exports.default = function (string) { return (0, _upperFirst2.default)(string); }; -var _upperFirst = __webpack_require__(240); +var _upperFirst = __webpack_require__(238); var _upperFirst2 = _interopRequireDefault(_upperFirst); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/* 89 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4822,7 +4984,7 @@ exports.default = function (originalPromise) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/* 90 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4841,7 +5003,7 @@ function singularOrPlural(value, suffix) { } /***/ }), -/* 91 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5167,13 +5329,13 @@ if (true) { /***/ }), -/* 92 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(93); +module.exports = __webpack_require__(95); /***/ }), -/* 93 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5181,7 +5343,7 @@ module.exports = __webpack_require__(93); var utils = __webpack_require__(0); var bind = __webpack_require__(46); -var Axios = __webpack_require__(95); +var Axios = __webpack_require__(97); var defaults = __webpack_require__(25); /** @@ -5216,14 +5378,14 @@ axios.create = function create(instanceConfig) { // Expose Cancel & CancelToken axios.Cancel = __webpack_require__(43); -axios.CancelToken = __webpack_require__(94); +axios.CancelToken = __webpack_require__(96); axios.isCancel = __webpack_require__(44); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; -axios.spread = __webpack_require__(109); +axios.spread = __webpack_require__(111); module.exports = axios; @@ -5232,7 +5394,7 @@ module.exports.default = axios; /***/ }), -/* 94 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5296,7 +5458,7 @@ module.exports = CancelToken; /***/ }), -/* 95 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5304,8 +5466,8 @@ module.exports = CancelToken; var defaults = __webpack_require__(25); var utils = __webpack_require__(0); -var InterceptorManager = __webpack_require__(96); -var dispatchRequest = __webpack_require__(97); +var InterceptorManager = __webpack_require__(98); +var dispatchRequest = __webpack_require__(99); /** * Create a new instance of Axios @@ -5382,7 +5544,7 @@ module.exports = Axios; /***/ }), -/* 96 */ +/* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5441,18 +5603,18 @@ module.exports = InterceptorManager; /***/ }), -/* 97 */ +/* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(0); -var transformData = __webpack_require__(100); +var transformData = __webpack_require__(102); var isCancel = __webpack_require__(44); var defaults = __webpack_require__(25); -var isAbsoluteURL = __webpack_require__(105); -var combineURLs = __webpack_require__(103); +var isAbsoluteURL = __webpack_require__(107); +var combineURLs = __webpack_require__(105); /** * Throws a `Cancel` if cancellation has been requested. @@ -5534,7 +5696,7 @@ module.exports = function dispatchRequest(config) { /***/ }), -/* 98 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5562,7 +5724,7 @@ module.exports = function enhanceError(error, config, code, request, response) { /***/ }), -/* 99 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5595,7 +5757,7 @@ module.exports = function settle(resolve, reject, response) { /***/ }), -/* 100 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5622,7 +5784,7 @@ module.exports = function transformData(data, headers, fns) { /***/ }), -/* 101 */ +/* 103 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5665,7 +5827,7 @@ module.exports = btoa; /***/ }), -/* 102 */ +/* 104 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5738,7 +5900,7 @@ module.exports = function buildURL(url, params, paramsSerializer) { /***/ }), -/* 103 */ +/* 105 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5759,7 +5921,7 @@ module.exports = function combineURLs(baseURL, relativeURL) { /***/ }), -/* 104 */ +/* 106 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5819,7 +5981,7 @@ module.exports = ( /***/ }), -/* 105 */ +/* 107 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5840,7 +6002,7 @@ module.exports = function isAbsoluteURL(url) { /***/ }), -/* 106 */ +/* 108 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5915,7 +6077,7 @@ module.exports = ( /***/ }), -/* 107 */ +/* 109 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5934,7 +6096,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) { /***/ }), -/* 108 */ +/* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5994,7 +6156,7 @@ module.exports = function parseHeaders(headers) { /***/ }), -/* 109 */ +/* 111 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6027,67 +6189,17 @@ module.exports = function spread(callback) { }; -/***/ }), -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(116), __esModule: true }; - -/***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(117), __esModule: true }; - /***/ }), /* 112 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(118), __esModule: true }; +module.exports = { "default": __webpack_require__(115), __esModule: true }; /***/ }), /* 113 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; - - -exports.__esModule = true; - -var _promise = __webpack_require__(48); - -var _promise2 = _interopRequireDefault(_promise); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (fn) { - return function () { - var gen = fn.apply(this, arguments); - return new _promise2.default(function (resolve, reject) { - function step(key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - return _promise2.default.resolve(value).then(function (value) { - step("next", value); - }, function (err) { - step("throw", err); - }); - } - } - - return step("next"); - }); - }; -}; +module.exports = { "default": __webpack_require__(116), __esModule: true }; /***/ }), /* 114 */ @@ -6098,7 +6210,7 @@ exports.default = function (fn) { exports.__esModule = true; -var _assign = __webpack_require__(111); +var _assign = __webpack_require__(112); var _assign2 = _interopRequireDefault(_assign); @@ -6122,33 +6234,15 @@ exports.default = _assign2.default || function (target) { /* 115 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(241); - - -/***/ }), -/* 116 */ -/***/ (function(module, exports, __webpack_require__) { - -var core = __webpack_require__(3); -var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify }); -module.exports = function stringify(it) { // eslint-disable-line no-unused-vars - return $JSON.stringify.apply($JSON, arguments); -}; - - -/***/ }), -/* 117 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(148); +__webpack_require__(146); module.exports = __webpack_require__(3).Object.assign; /***/ }), -/* 118 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(149); +__webpack_require__(147); var $Object = __webpack_require__(3).Object; module.exports = function defineProperty(it, key, desc) { return $Object.defineProperty(it, key, desc); @@ -6156,27 +6250,27 @@ module.exports = function defineProperty(it, key, desc) { /***/ }), -/* 119 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(148); __webpack_require__(150); -__webpack_require__(152); -__webpack_require__(155); -__webpack_require__(151); __webpack_require__(153); -__webpack_require__(154); +__webpack_require__(149); +__webpack_require__(151); +__webpack_require__(152); module.exports = __webpack_require__(3).Promise; /***/ }), -/* 120 */ +/* 118 */ /***/ (function(module, exports) { module.exports = function () { /* empty */ }; /***/ }), -/* 121 */ +/* 119 */ /***/ (function(module, exports) { module.exports = function (it, Constructor, name, forbiddenField) { @@ -6187,14 +6281,14 @@ module.exports = function (it, Constructor, name, forbiddenField) { /***/ }), -/* 122 */ +/* 120 */ /***/ (function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(35); -var toLength = __webpack_require__(61); -var toAbsoluteIndex = __webpack_require__(143); +var toLength = __webpack_require__(63); +var toAbsoluteIndex = __webpack_require__(141); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); @@ -6216,15 +6310,15 @@ module.exports = function (IS_INCLUDES) { /***/ }), -/* 123 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(16); -var call = __webpack_require__(127); -var isArrayIter = __webpack_require__(126); +var call = __webpack_require__(125); +var isArrayIter = __webpack_require__(124); var anObject = __webpack_require__(4); -var toLength = __webpack_require__(61); -var getIterFn = __webpack_require__(146); +var toLength = __webpack_require__(63); +var getIterFn = __webpack_require__(144); var BREAK = {}; var RETURN = {}; var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { @@ -6247,7 +6341,7 @@ exports.RETURN = RETURN; /***/ }), -/* 124 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(5) && !__webpack_require__(29)(function () { @@ -6256,7 +6350,7 @@ module.exports = !__webpack_require__(5) && !__webpack_require__(29)(function () /***/ }), -/* 125 */ +/* 123 */ /***/ (function(module, exports) { // fast apply, http://jsperf.lnkit.com/fast-apply/5 @@ -6278,7 +6372,7 @@ module.exports = function (fn, args, that) { /***/ }), -/* 126 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { // check on default Array iterator @@ -6292,7 +6386,7 @@ module.exports = function (it) { /***/ }), -/* 127 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error @@ -6310,13 +6404,13 @@ module.exports = function (iterator, fn, value, entries) { /***/ }), -/* 128 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var create = __webpack_require__(133); -var descriptor = __webpack_require__(57); +var create = __webpack_require__(131); +var descriptor = __webpack_require__(59); var setToStringTag = __webpack_require__(32); var IteratorPrototype = {}; @@ -6330,7 +6424,7 @@ module.exports = function (Constructor, NAME, next) { /***/ }), -/* 129 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { var ITERATOR = __webpack_require__(2)('iterator'); @@ -6358,7 +6452,7 @@ module.exports = function (exec, skipClosing) { /***/ }), -/* 130 */ +/* 128 */ /***/ (function(module, exports) { module.exports = function (done, value) { @@ -6367,11 +6461,11 @@ module.exports = function (done, value) { /***/ }), -/* 131 */ +/* 129 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(1); -var macrotask = __webpack_require__(60).set; +var macrotask = __webpack_require__(62).set; var Observer = global.MutationObserver || global.WebKitMutationObserver; var process = global.process; var Promise = global.Promise; @@ -6442,17 +6536,17 @@ module.exports = function () { /***/ }), -/* 132 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) -var getKeys = __webpack_require__(54); -var gOPS = __webpack_require__(135); -var pIE = __webpack_require__(138); -var toObject = __webpack_require__(62); -var IObject = __webpack_require__(52); +var getKeys = __webpack_require__(56); +var gOPS = __webpack_require__(133); +var pIE = __webpack_require__(136); +var toObject = __webpack_require__(64); +var IObject = __webpack_require__(54); var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) @@ -6483,13 +6577,13 @@ module.exports = !$assign || __webpack_require__(29)(function () { /***/ }), -/* 133 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(4); -var dPs = __webpack_require__(134); -var enumBugKeys = __webpack_require__(50); +var dPs = __webpack_require__(132); +var enumBugKeys = __webpack_require__(52); var IE_PROTO = __webpack_require__(33)('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; @@ -6503,7 +6597,7 @@ var createDict = function () { var gt = '>'; var iframeDocument; iframe.style.display = 'none'; - __webpack_require__(51).appendChild(iframe); + __webpack_require__(53).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -6530,12 +6624,12 @@ module.exports = Object.create || function create(O, Properties) { /***/ }), -/* 134 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(11); var anObject = __webpack_require__(4); -var getKeys = __webpack_require__(54); +var getKeys = __webpack_require__(56); module.exports = __webpack_require__(5) ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); @@ -6549,19 +6643,19 @@ module.exports = __webpack_require__(5) ? Object.defineProperties : function def /***/ }), -/* 135 */ +/* 133 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 136 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __webpack_require__(17); -var toObject = __webpack_require__(62); +var toObject = __webpack_require__(64); var IE_PROTO = __webpack_require__(33)('IE_PROTO'); var ObjectProto = Object.prototype; @@ -6575,12 +6669,12 @@ module.exports = Object.getPrototypeOf || function (O) { /***/ }), -/* 137 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(17); var toIObject = __webpack_require__(35); -var arrayIndexOf = __webpack_require__(122)(false); +var arrayIndexOf = __webpack_require__(120)(false); var IE_PROTO = __webpack_require__(33)('IE_PROTO'); module.exports = function (object, names) { @@ -6598,14 +6692,14 @@ module.exports = function (object, names) { /***/ }), -/* 138 */ +/* 136 */ /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), -/* 139 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { var hide = __webpack_require__(7); @@ -6618,14 +6712,14 @@ module.exports = function (target, src, safe) { /***/ }), -/* 140 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(7); /***/ }), -/* 141 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6646,7 +6740,7 @@ module.exports = function (KEY) { /***/ }), -/* 142 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(34); @@ -6669,7 +6763,7 @@ module.exports = function (TO_STRING) { /***/ }), -/* 143 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(34); @@ -6682,7 +6776,7 @@ module.exports = function (index, length) { /***/ }), -/* 144 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) @@ -6700,7 +6794,7 @@ module.exports = function (it, S) { /***/ }), -/* 145 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(1); @@ -6710,10 +6804,10 @@ module.exports = navigator && navigator.userAgent || ''; /***/ }), -/* 146 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { -var classof = __webpack_require__(49); +var classof = __webpack_require__(51); var ITERATOR = __webpack_require__(2)('iterator'); var Iterators = __webpack_require__(10); module.exports = __webpack_require__(3).getIteratorMethod = function (it) { @@ -6724,13 +6818,13 @@ module.exports = __webpack_require__(3).getIteratorMethod = function (it) { /***/ }), -/* 147 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var addToUnscopables = __webpack_require__(120); -var step = __webpack_require__(130); +var addToUnscopables = __webpack_require__(118); +var step = __webpack_require__(128); var Iterators = __webpack_require__(10); var toIObject = __webpack_require__(35); @@ -6738,7 +6832,7 @@ var toIObject = __webpack_require__(35); // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() -module.exports = __webpack_require__(53)(Array, 'Array', function (iterated, kind) { +module.exports = __webpack_require__(55)(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind @@ -6765,17 +6859,17 @@ addToUnscopables('entries'); /***/ }), -/* 148 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(6); -$export($export.S + $export.F, 'Object', { assign: __webpack_require__(132) }); +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(130) }); /***/ }), -/* 149 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(6); @@ -6784,13 +6878,13 @@ $export($export.S + $export.F * !__webpack_require__(5), 'Object', { definePrope /***/ }), -/* 150 */ +/* 148 */ /***/ (function(module, exports) { /***/ }), -/* 151 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6798,19 +6892,19 @@ $export($export.S + $export.F * !__webpack_require__(5), 'Object', { definePrope var LIBRARY = __webpack_require__(30); var global = __webpack_require__(1); var ctx = __webpack_require__(16); -var classof = __webpack_require__(49); +var classof = __webpack_require__(51); var $export = __webpack_require__(6); var isObject = __webpack_require__(9); var aFunction = __webpack_require__(14); -var anInstance = __webpack_require__(121); -var forOf = __webpack_require__(123); -var speciesConstructor = __webpack_require__(59); -var task = __webpack_require__(60).set; -var microtask = __webpack_require__(131)(); +var anInstance = __webpack_require__(119); +var forOf = __webpack_require__(121); +var speciesConstructor = __webpack_require__(61); +var task = __webpack_require__(62).set; +var microtask = __webpack_require__(129)(); var newPromiseCapabilityModule = __webpack_require__(31); -var perform = __webpack_require__(55); -var userAgent = __webpack_require__(145); -var promiseResolve = __webpack_require__(56); +var perform = __webpack_require__(57); +var userAgent = __webpack_require__(143); +var promiseResolve = __webpack_require__(58); var PROMISE = 'Promise'; var TypeError = global.TypeError; var process = global.process; @@ -6985,7 +7079,7 @@ if (!USE_NATIVE) { this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; - Internal.prototype = __webpack_require__(139)($Promise.prototype, { + Internal.prototype = __webpack_require__(137)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected) { var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); @@ -7017,7 +7111,7 @@ if (!USE_NATIVE) { $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); __webpack_require__(32)($Promise, PROMISE); -__webpack_require__(141)(PROMISE); +__webpack_require__(139)(PROMISE); Wrapper = __webpack_require__(3)[PROMISE]; // statics @@ -7036,7 +7130,7 @@ $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); } }); -$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(129)(function (iter) { +$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(127)(function (iter) { $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) @@ -7083,15 +7177,15 @@ $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(129)(functio /***/ }), -/* 152 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $at = __webpack_require__(142)(true); +var $at = __webpack_require__(140)(true); // 21.1.3.27 String.prototype[@@iterator]() -__webpack_require__(53)(String, 'String', function (iterated) { +__webpack_require__(55)(String, 'String', function (iterated) { this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() @@ -7107,7 +7201,7 @@ __webpack_require__(53)(String, 'String', function (iterated) { /***/ }), -/* 153 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7116,8 +7210,8 @@ __webpack_require__(53)(String, 'String', function (iterated) { var $export = __webpack_require__(6); var core = __webpack_require__(3); var global = __webpack_require__(1); -var speciesConstructor = __webpack_require__(59); -var promiseResolve = __webpack_require__(56); +var speciesConstructor = __webpack_require__(61); +var promiseResolve = __webpack_require__(58); $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { var C = speciesConstructor(this, core.Promise || global.Promise); @@ -7134,7 +7228,7 @@ $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { /***/ }), -/* 154 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7142,7 +7236,7 @@ $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { // https://github.com/tc39/proposal-promise-try var $export = __webpack_require__(6); var newPromiseCapability = __webpack_require__(31); -var perform = __webpack_require__(55); +var perform = __webpack_require__(57); $export($export.S, 'Promise', { 'try': function (callbackfn) { var promiseCapability = newPromiseCapability.f(this); @@ -7153,10 +7247,10 @@ $export($export.S, 'Promise', { 'try': function (callbackfn) { /***/ }), -/* 155 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(147); +__webpack_require__(145); var global = __webpack_require__(1); var hide = __webpack_require__(7); var Iterators = __webpack_require__(10); @@ -7178,7 +7272,7 @@ for (var i = 0; i < DOMIterables.length; i++) { /***/ }), -/* 156 */ +/* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7190,11 +7284,11 @@ Object.defineProperty(exports, "__esModule", { var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _Errors = __webpack_require__(64); +var _Errors = __webpack_require__(66); var _Errors2 = _interopRequireDefault(_Errors); -var _util = __webpack_require__(157); +var _util = __webpack_require__(155); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -7271,7 +7365,7 @@ var Form = function () { this.onFail = options.onFail; } - this.__http = options.http || window.axios || __webpack_require__(92); + this.__http = options.http || window.axios || __webpack_require__(94); if (!this.__http) { throw new Error('No http library provided. Either pass an http option, or install axios.'); @@ -7546,7 +7640,7 @@ var Form = function () { exports.default = Form; /***/ }), -/* 157 */ +/* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7638,7 +7732,7 @@ function _appendToFormData(formData, key, value) { } /***/ }), -/* 158 */ +/* 156 */ /***/ (function(module, exports) { /*! @@ -7665,14 +7759,14 @@ function isSlowBuffer (obj) { /***/ }), -/* 159 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { -var hashClear = __webpack_require__(192), - hashDelete = __webpack_require__(193), - hashGet = __webpack_require__(194), - hashHas = __webpack_require__(195), - hashSet = __webpack_require__(196); +var hashClear = __webpack_require__(190), + hashDelete = __webpack_require__(191), + hashGet = __webpack_require__(192), + hashHas = __webpack_require__(193), + hashSet = __webpack_require__(194); /** * Creates a hash object. @@ -7703,14 +7797,14 @@ module.exports = Hash; /***/ }), -/* 160 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { -var listCacheClear = __webpack_require__(201), - listCacheDelete = __webpack_require__(202), - listCacheGet = __webpack_require__(203), - listCacheHas = __webpack_require__(204), - listCacheSet = __webpack_require__(205); +var listCacheClear = __webpack_require__(199), + listCacheDelete = __webpack_require__(200), + listCacheGet = __webpack_require__(201), + listCacheHas = __webpack_require__(202), + listCacheSet = __webpack_require__(203); /** * Creates an list cache object. @@ -7741,7 +7835,7 @@ module.exports = ListCache; /***/ }), -/* 161 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(37), @@ -7754,14 +7848,14 @@ module.exports = Map; /***/ }), -/* 162 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { -var mapCacheClear = __webpack_require__(206), - mapCacheDelete = __webpack_require__(207), - mapCacheGet = __webpack_require__(208), - mapCacheHas = __webpack_require__(209), - mapCacheSet = __webpack_require__(210); +var mapCacheClear = __webpack_require__(204), + mapCacheDelete = __webpack_require__(205), + mapCacheGet = __webpack_require__(206), + mapCacheHas = __webpack_require__(207), + mapCacheSet = __webpack_require__(208); /** * Creates a map cache object to store key-value pairs. @@ -7792,7 +7886,7 @@ module.exports = MapCache; /***/ }), -/* 163 */ +/* 161 */ /***/ (function(module, exports) { /** @@ -7819,7 +7913,7 @@ module.exports = apply; /***/ }), -/* 164 */ +/* 162 */ /***/ (function(module, exports) { /** @@ -7847,7 +7941,7 @@ module.exports = arrayEach; /***/ }), -/* 165 */ +/* 163 */ /***/ (function(module, exports) { /** @@ -7874,7 +7968,7 @@ module.exports = arrayMap; /***/ }), -/* 166 */ +/* 164 */ /***/ (function(module, exports) { /** @@ -7892,11 +7986,11 @@ module.exports = asciiToArray; /***/ }), -/* 167 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { -var baseForOwn = __webpack_require__(169), - createBaseEach = __webpack_require__(186); +var baseForOwn = __webpack_require__(167), + createBaseEach = __webpack_require__(184); /** * The base implementation of `_.forEach` without support for iteratee shorthands. @@ -7912,10 +8006,10 @@ module.exports = baseEach; /***/ }), -/* 168 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { -var createBaseFor = __webpack_require__(187); +var createBaseFor = __webpack_require__(185); /** * The base implementation of `baseForOwn` which iterates over `object` @@ -7934,11 +8028,11 @@ module.exports = baseFor; /***/ }), -/* 169 */ +/* 167 */ /***/ (function(module, exports, __webpack_require__) { -var baseFor = __webpack_require__(168), - keys = __webpack_require__(234); +var baseFor = __webpack_require__(166), + keys = __webpack_require__(232); /** * The base implementation of `_.forOwn` without support for iteratee shorthands. @@ -7956,11 +8050,11 @@ module.exports = baseForOwn; /***/ }), -/* 170 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { -var castPath = __webpack_require__(183), - toKey = __webpack_require__(222); +var castPath = __webpack_require__(181), + toKey = __webpack_require__(220); /** * The base implementation of `_.get` without support for default values. @@ -7986,7 +8080,7 @@ module.exports = baseGet; /***/ }), -/* 171 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(19), @@ -8010,13 +8104,13 @@ module.exports = baseIsArguments; /***/ }), -/* 172 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(70), - isMasked = __webpack_require__(200), +var isFunction = __webpack_require__(72), + isMasked = __webpack_require__(198), isObject = __webpack_require__(8), - toSource = __webpack_require__(223); + toSource = __webpack_require__(221); /** * Used to match `RegExp` @@ -8063,11 +8157,11 @@ module.exports = baseIsNative; /***/ }), -/* 173 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(19), - isLength = __webpack_require__(71), + isLength = __webpack_require__(73), isObjectLike = __webpack_require__(23); /** `Object#toString` result references. */ @@ -8129,11 +8223,11 @@ module.exports = baseIsTypedArray; /***/ }), -/* 174 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { -var isPrototype = __webpack_require__(69), - nativeKeys = __webpack_require__(212); +var isPrototype = __webpack_require__(71), + nativeKeys = __webpack_require__(210); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -8165,12 +8259,12 @@ module.exports = baseKeys; /***/ }), -/* 175 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(8), - isPrototype = __webpack_require__(69), - nativeKeysIn = __webpack_require__(213); + isPrototype = __webpack_require__(71), + nativeKeysIn = __webpack_require__(211); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -8204,12 +8298,12 @@ module.exports = baseKeysIn; /***/ }), -/* 176 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__(39), - overRest = __webpack_require__(217), - setToString = __webpack_require__(218); + overRest = __webpack_require__(215), + setToString = __webpack_require__(216); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. @@ -8227,11 +8321,11 @@ module.exports = baseRest; /***/ }), -/* 177 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { -var constant = __webpack_require__(225), - defineProperty = __webpack_require__(189), +var constant = __webpack_require__(223), + defineProperty = __webpack_require__(187), identity = __webpack_require__(39); /** @@ -8255,7 +8349,7 @@ module.exports = baseSetToString; /***/ }), -/* 178 */ +/* 176 */ /***/ (function(module, exports) { /** @@ -8292,7 +8386,7 @@ module.exports = baseSlice; /***/ }), -/* 179 */ +/* 177 */ /***/ (function(module, exports) { /** @@ -8318,11 +8412,11 @@ module.exports = baseTimes; /***/ }), -/* 180 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(36), - arrayMap = __webpack_require__(165), + arrayMap = __webpack_require__(163), isArray = __webpack_require__(13), isSymbol = __webpack_require__(24); @@ -8361,7 +8455,7 @@ module.exports = baseToString; /***/ }), -/* 181 */ +/* 179 */ /***/ (function(module, exports) { /** @@ -8381,7 +8475,7 @@ module.exports = baseUnary; /***/ }), -/* 182 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__(39); @@ -8401,13 +8495,13 @@ module.exports = castFunction; /***/ }), -/* 183 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(13), - isKey = __webpack_require__(198), - stringToPath = __webpack_require__(221), - toString = __webpack_require__(72); + isKey = __webpack_require__(196), + stringToPath = __webpack_require__(219), + toString = __webpack_require__(74); /** * Casts `value` to a path array if it's not one. @@ -8428,10 +8522,10 @@ module.exports = castPath; /***/ }), -/* 184 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { -var baseSlice = __webpack_require__(178); +var baseSlice = __webpack_require__(176); /** * Casts `array` to a slice if it's needed. @@ -8452,7 +8546,7 @@ module.exports = castSlice; /***/ }), -/* 185 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(12); @@ -8464,7 +8558,7 @@ module.exports = coreJsData; /***/ }), -/* 186 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__(22); @@ -8502,7 +8596,7 @@ module.exports = createBaseEach; /***/ }), -/* 187 */ +/* 185 */ /***/ (function(module, exports) { /** @@ -8533,13 +8627,13 @@ module.exports = createBaseFor; /***/ }), -/* 188 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { -var castSlice = __webpack_require__(184), - hasUnicode = __webpack_require__(67), - stringToArray = __webpack_require__(220), - toString = __webpack_require__(72); +var castSlice = __webpack_require__(182), + hasUnicode = __webpack_require__(69), + stringToArray = __webpack_require__(218), + toString = __webpack_require__(74); /** * Creates a function like `_.lowerFirst`. @@ -8572,7 +8666,7 @@ module.exports = createCaseFirst; /***/ }), -/* 189 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(37); @@ -8589,7 +8683,7 @@ module.exports = defineProperty; /***/ }), -/* 190 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(36); @@ -8641,7 +8735,7 @@ module.exports = getRawTag; /***/ }), -/* 191 */ +/* 189 */ /***/ (function(module, exports) { /** @@ -8660,7 +8754,7 @@ module.exports = getValue; /***/ }), -/* 192 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(21); @@ -8681,7 +8775,7 @@ module.exports = hashClear; /***/ }), -/* 193 */ +/* 191 */ /***/ (function(module, exports) { /** @@ -8704,7 +8798,7 @@ module.exports = hashDelete; /***/ }), -/* 194 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(21); @@ -8740,7 +8834,7 @@ module.exports = hashGet; /***/ }), -/* 195 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(21); @@ -8769,7 +8863,7 @@ module.exports = hashHas; /***/ }), -/* 196 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(21); @@ -8798,12 +8892,12 @@ module.exports = hashSet; /***/ }), -/* 197 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__(38), isArrayLike = __webpack_require__(22), - isIndex = __webpack_require__(68), + isIndex = __webpack_require__(70), isObject = __webpack_require__(8); /** @@ -8834,7 +8928,7 @@ module.exports = isIterateeCall; /***/ }), -/* 198 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(13), @@ -8869,7 +8963,7 @@ module.exports = isKey; /***/ }), -/* 199 */ +/* 197 */ /***/ (function(module, exports) { /** @@ -8890,10 +8984,10 @@ module.exports = isKeyable; /***/ }), -/* 200 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { -var coreJsData = __webpack_require__(185); +var coreJsData = __webpack_require__(183); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { @@ -8916,7 +9010,7 @@ module.exports = isMasked; /***/ }), -/* 201 */ +/* 199 */ /***/ (function(module, exports) { /** @@ -8935,7 +9029,7 @@ module.exports = listCacheClear; /***/ }), -/* 202 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(18); @@ -8976,7 +9070,7 @@ module.exports = listCacheDelete; /***/ }), -/* 203 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(18); @@ -9001,7 +9095,7 @@ module.exports = listCacheGet; /***/ }), -/* 204 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(18); @@ -9023,7 +9117,7 @@ module.exports = listCacheHas; /***/ }), -/* 205 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(18); @@ -9055,12 +9149,12 @@ module.exports = listCacheSet; /***/ }), -/* 206 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { -var Hash = __webpack_require__(159), - ListCache = __webpack_require__(160), - Map = __webpack_require__(161); +var Hash = __webpack_require__(157), + ListCache = __webpack_require__(158), + Map = __webpack_require__(159); /** * Removes all key-value entries from the map. @@ -9082,7 +9176,7 @@ module.exports = mapCacheClear; /***/ }), -/* 207 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(20); @@ -9106,7 +9200,7 @@ module.exports = mapCacheDelete; /***/ }), -/* 208 */ +/* 206 */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(20); @@ -9128,7 +9222,7 @@ module.exports = mapCacheGet; /***/ }), -/* 209 */ +/* 207 */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(20); @@ -9150,7 +9244,7 @@ module.exports = mapCacheHas; /***/ }), -/* 210 */ +/* 208 */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(20); @@ -9178,10 +9272,10 @@ module.exports = mapCacheSet; /***/ }), -/* 211 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { -var memoize = __webpack_require__(236); +var memoize = __webpack_require__(234); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; @@ -9210,10 +9304,10 @@ module.exports = memoizeCapped; /***/ }), -/* 212 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__(216); +var overArg = __webpack_require__(214); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); @@ -9222,7 +9316,7 @@ module.exports = nativeKeys; /***/ }), -/* 213 */ +/* 211 */ /***/ (function(module, exports) { /** @@ -9248,10 +9342,10 @@ module.exports = nativeKeysIn; /***/ }), -/* 214 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(66); +/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(68); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; @@ -9282,10 +9376,10 @@ var nodeUtil = (function() { module.exports = nodeUtil; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(74)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(76)(module))) /***/ }), -/* 215 */ +/* 213 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -9313,7 +9407,7 @@ module.exports = objectToString; /***/ }), -/* 216 */ +/* 214 */ /***/ (function(module, exports) { /** @@ -9334,10 +9428,10 @@ module.exports = overArg; /***/ }), -/* 217 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { -var apply = __webpack_require__(163); +var apply = __webpack_require__(161); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; @@ -9376,11 +9470,11 @@ module.exports = overRest; /***/ }), -/* 218 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { -var baseSetToString = __webpack_require__(177), - shortOut = __webpack_require__(219); +var baseSetToString = __webpack_require__(175), + shortOut = __webpack_require__(217); /** * Sets the `toString` method of `func` to return `string`. @@ -9396,7 +9490,7 @@ module.exports = setToString; /***/ }), -/* 219 */ +/* 217 */ /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ @@ -9439,12 +9533,12 @@ module.exports = shortOut; /***/ }), -/* 220 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { -var asciiToArray = __webpack_require__(166), - hasUnicode = __webpack_require__(67), - unicodeToArray = __webpack_require__(224); +var asciiToArray = __webpack_require__(164), + hasUnicode = __webpack_require__(69), + unicodeToArray = __webpack_require__(222); /** * Converts `string` to an array. @@ -9463,10 +9557,10 @@ module.exports = stringToArray; /***/ }), -/* 221 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { -var memoizeCapped = __webpack_require__(211); +var memoizeCapped = __webpack_require__(209); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; @@ -9496,7 +9590,7 @@ module.exports = stringToPath; /***/ }), -/* 222 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(24); @@ -9523,7 +9617,7 @@ module.exports = toKey; /***/ }), -/* 223 */ +/* 221 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -9555,7 +9649,7 @@ module.exports = toSource; /***/ }), -/* 224 */ +/* 222 */ /***/ (function(module, exports) { /** Used to compose unicode character classes. */ @@ -9601,7 +9695,7 @@ module.exports = unicodeToArray; /***/ }), -/* 225 */ +/* 223 */ /***/ (function(module, exports) { /** @@ -9633,12 +9727,12 @@ module.exports = constant; /***/ }), -/* 226 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(8), - now = __webpack_require__(237), - toNumber = __webpack_require__(239); + now = __webpack_require__(235), + toNumber = __webpack_require__(237); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -9829,13 +9923,13 @@ module.exports = debounce; /***/ }), -/* 227 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { -var baseRest = __webpack_require__(176), +var baseRest = __webpack_require__(174), eq = __webpack_require__(38), - isIterateeCall = __webpack_require__(197), - keysIn = __webpack_require__(235); + isIterateeCall = __webpack_require__(195), + keysIn = __webpack_require__(233); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -9899,19 +9993,19 @@ module.exports = defaults; /***/ }), -/* 228 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(229); +module.exports = __webpack_require__(227); /***/ }), -/* 229 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { -var arrayEach = __webpack_require__(164), - baseEach = __webpack_require__(167), - castFunction = __webpack_require__(182), +var arrayEach = __webpack_require__(162), + baseEach = __webpack_require__(165), + castFunction = __webpack_require__(180), isArray = __webpack_require__(13); /** @@ -9953,10 +10047,10 @@ module.exports = forEach; /***/ }), -/* 230 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { -var baseGet = __webpack_require__(170); +var baseGet = __webpack_require__(168); /** * Gets the value at `path` of `object`. If the resolved value is @@ -9992,10 +10086,10 @@ module.exports = get; /***/ }), -/* 231 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { -var baseIsArguments = __webpack_require__(171), +var baseIsArguments = __webpack_require__(169), isObjectLike = __webpack_require__(23); /** Used for built-in method references. */ @@ -10034,11 +10128,11 @@ module.exports = isArguments; /***/ }), -/* 232 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(12), - stubFalse = __webpack_require__(238); + stubFalse = __webpack_require__(236); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; @@ -10076,15 +10170,15 @@ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(74)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(76)(module))) /***/ }), -/* 233 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { -var baseIsTypedArray = __webpack_require__(173), - baseUnary = __webpack_require__(181), - nodeUtil = __webpack_require__(214); +var baseIsTypedArray = __webpack_require__(171), + baseUnary = __webpack_require__(179), + nodeUtil = __webpack_require__(212); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; @@ -10112,11 +10206,11 @@ module.exports = isTypedArray; /***/ }), -/* 234 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { -var arrayLikeKeys = __webpack_require__(65), - baseKeys = __webpack_require__(174), +var arrayLikeKeys = __webpack_require__(67), + baseKeys = __webpack_require__(172), isArrayLike = __webpack_require__(22); /** @@ -10155,11 +10249,11 @@ module.exports = keys; /***/ }), -/* 235 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { -var arrayLikeKeys = __webpack_require__(65), - baseKeysIn = __webpack_require__(175), +var arrayLikeKeys = __webpack_require__(67), + baseKeysIn = __webpack_require__(173), isArrayLike = __webpack_require__(22); /** @@ -10193,10 +10287,10 @@ module.exports = keysIn; /***/ }), -/* 236 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { -var MapCache = __webpack_require__(162); +var MapCache = __webpack_require__(160); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -10272,7 +10366,7 @@ module.exports = memoize; /***/ }), -/* 237 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(12); @@ -10301,7 +10395,7 @@ module.exports = now; /***/ }), -/* 238 */ +/* 236 */ /***/ (function(module, exports) { /** @@ -10325,7 +10419,7 @@ module.exports = stubFalse; /***/ }), -/* 239 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(8), @@ -10397,10 +10491,10 @@ module.exports = toNumber; /***/ }), -/* 240 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { -var createCaseFirst = __webpack_require__(188); +var createCaseFirst = __webpack_require__(186); /** * Converts the first character of `string` to upper case. @@ -10425,7 +10519,7 @@ module.exports = upperFirst; /***/ }), -/* 241 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -10450,7 +10544,7 @@ var oldRuntime = hadRuntime && g.regeneratorRuntime; // Force reevalutation of runtime.js. g.regeneratorRuntime = undefined; -module.exports = __webpack_require__(242); +module.exports = __webpack_require__(240); if (hadRuntime) { // Restore the original runtime. @@ -10466,7 +10560,7 @@ if (hadRuntime) { /***/ }), -/* 242 */ +/* 240 */ /***/ (function(module, exports) { /** @@ -11199,7 +11293,7 @@ if (hadRuntime) { /***/ }), -/* 243 */ +/* 241 */ /***/ (function(module, exports) { var g; @@ -11717,10 +11811,10 @@ var render = function() { domProps: { value: _vm.autocompleteText }, on: { focus: function($event) { - _vm.onFocus() + return _vm.onFocus() }, blur: function($event) { - _vm.onBlur() + return _vm.onBlur() }, change: _vm.onChange, keypress: _vm.onKeyPress, diff --git a/resources/js/components/FormField.vue b/resources/js/components/FormField.vue index eb4f2af..52d9d47 100644 --- a/resources/js/components/FormField.vue +++ b/resources/js/components/FormField.vue @@ -113,6 +113,7 @@ export default { this.addressData.longitude = addressData.longitude; this.addressData.formatted_address = placeResultData.formatted_address; this.refreshMap() + this.$emit('addressChanged', this.addressData) }, refreshAddressData() { @@ -193,6 +194,7 @@ export default { _this.addressData.longitude = latLng.lng() _this.addressData.formatted_address = results[0].formatted_address _this.$refs.address.update(results[0].formatted_address); + _this.$emit('addressChanged', _this.addressData) } else { //window.alert('No results found'); }