(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["apps/autosuggest-address/index"],{

/***/ "./src/api/index.js":
/*!**************************!*\
  !*** ./src/api/index.js ***!
  \**************************/
/*! exports provided: apiRequest, sendRequest, _template, createSource, _localStorage, _sessionStorage, hashCode */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiRequest", function() { return apiRequest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sendRequest", function() { return sendRequest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_template", function() { return _template; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSource", function() { return createSource; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_localStorage", function() { return _localStorage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_sessionStorage", function() { return _sessionStorage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hashCode", function() { return hashCode; });
/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js");
/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/core-js/modules/es.array.concat.js");
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js");
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.from */ "./node_modules/core-js/modules/es.array.from.js");
/* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.iterator */ "./node_modules/core-js/modules/es.array.iterator.js");
/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.join */ "./node_modules/core-js/modules/es.array.join.js");
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/core-js/modules/es.array.map.js");
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_array_buffer_slice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array-buffer.slice */ "./node_modules/core-js/modules/es.array-buffer.slice.js");
/* harmony import */ var core_js_modules_es_array_buffer_slice__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.keys */ "./node_modules/core-js/modules/es.object.keys.js");
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.promise */ "./node_modules/core-js/modules/es.promise.js");
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string */ "./node_modules/core-js/modules/es.regexp.to-string.js");
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var core_js_modules_es_string_pad_start__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.string.pad-start */ "./node_modules/core-js/modules/es.string.pad-start.js");
/* harmony import */ var core_js_modules_es_string_pad_start__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_pad_start__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var core_js_modules_es_typed_array_uint8_array__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.typed-array.uint8-array */ "./node_modules/core-js/modules/es.typed-array.uint8-array.js");
/* harmony import */ var core_js_modules_es_typed_array_uint8_array__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_uint8_array__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var core_js_modules_es_typed_array_copy_within__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.typed-array.copy-within */ "./node_modules/core-js/modules/es.typed-array.copy-within.js");
/* harmony import */ var core_js_modules_es_typed_array_copy_within__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var core_js_modules_es_typed_array_every__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.typed-array.every */ "./node_modules/core-js/modules/es.typed-array.every.js");
/* harmony import */ var core_js_modules_es_typed_array_every__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var core_js_modules_es_typed_array_fill__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.typed-array.fill */ "./node_modules/core-js/modules/es.typed-array.fill.js");
/* harmony import */ var core_js_modules_es_typed_array_fill__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var core_js_modules_es_typed_array_filter__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.typed-array.filter */ "./node_modules/core-js/modules/es.typed-array.filter.js");
/* harmony import */ var core_js_modules_es_typed_array_filter__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var core_js_modules_es_typed_array_find__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.typed-array.find */ "./node_modules/core-js/modules/es.typed-array.find.js");
/* harmony import */ var core_js_modules_es_typed_array_find__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var core_js_modules_es_typed_array_find_index__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-index */ "./node_modules/core-js/modules/es.typed-array.find-index.js");
/* harmony import */ var core_js_modules_es_typed_array_find_index__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var core_js_modules_es_typed_array_for_each__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/es.typed-array.for-each */ "./node_modules/core-js/modules/es.typed-array.for-each.js");
/* harmony import */ var core_js_modules_es_typed_array_for_each__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each__WEBPACK_IMPORTED_MODULE_24__);
/* harmony import */ var core_js_modules_es_typed_array_includes__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! core-js/modules/es.typed-array.includes */ "./node_modules/core-js/modules/es.typed-array.includes.js");
/* harmony import */ var core_js_modules_es_typed_array_includes__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var core_js_modules_es_typed_array_index_of__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! core-js/modules/es.typed-array.index-of */ "./node_modules/core-js/modules/es.typed-array.index-of.js");
/* harmony import */ var core_js_modules_es_typed_array_index_of__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var core_js_modules_es_typed_array_iterator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! core-js/modules/es.typed-array.iterator */ "./node_modules/core-js/modules/es.typed-array.iterator.js");
/* harmony import */ var core_js_modules_es_typed_array_iterator__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator__WEBPACK_IMPORTED_MODULE_27__);
/* harmony import */ var core_js_modules_es_typed_array_join__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! core-js/modules/es.typed-array.join */ "./node_modules/core-js/modules/es.typed-array.join.js");
/* harmony import */ var core_js_modules_es_typed_array_join__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join__WEBPACK_IMPORTED_MODULE_28__);
/* harmony import */ var core_js_modules_es_typed_array_last_index_of__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! core-js/modules/es.typed-array.last-index-of */ "./node_modules/core-js/modules/es.typed-array.last-index-of.js");
/* harmony import */ var core_js_modules_es_typed_array_last_index_of__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of__WEBPACK_IMPORTED_MODULE_29__);
/* harmony import */ var core_js_modules_es_typed_array_map__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! core-js/modules/es.typed-array.map */ "./node_modules/core-js/modules/es.typed-array.map.js");
/* harmony import */ var core_js_modules_es_typed_array_map__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map__WEBPACK_IMPORTED_MODULE_30__);
/* harmony import */ var core_js_modules_es_typed_array_reduce__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! core-js/modules/es.typed-array.reduce */ "./node_modules/core-js/modules/es.typed-array.reduce.js");
/* harmony import */ var core_js_modules_es_typed_array_reduce__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce__WEBPACK_IMPORTED_MODULE_31__);
/* harmony import */ var core_js_modules_es_typed_array_reduce_right__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! core-js/modules/es.typed-array.reduce-right */ "./node_modules/core-js/modules/es.typed-array.reduce-right.js");
/* harmony import */ var core_js_modules_es_typed_array_reduce_right__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right__WEBPACK_IMPORTED_MODULE_32__);
/* harmony import */ var core_js_modules_es_typed_array_reverse__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! core-js/modules/es.typed-array.reverse */ "./node_modules/core-js/modules/es.typed-array.reverse.js");
/* harmony import */ var core_js_modules_es_typed_array_reverse__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse__WEBPACK_IMPORTED_MODULE_33__);
/* harmony import */ var core_js_modules_es_typed_array_set__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! core-js/modules/es.typed-array.set */ "./node_modules/core-js/modules/es.typed-array.set.js");
/* harmony import */ var core_js_modules_es_typed_array_set__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set__WEBPACK_IMPORTED_MODULE_34__);
/* harmony import */ var core_js_modules_es_typed_array_slice__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! core-js/modules/es.typed-array.slice */ "./node_modules/core-js/modules/es.typed-array.slice.js");
/* harmony import */ var core_js_modules_es_typed_array_slice__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice__WEBPACK_IMPORTED_MODULE_35__);
/* harmony import */ var core_js_modules_es_typed_array_some__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! core-js/modules/es.typed-array.some */ "./node_modules/core-js/modules/es.typed-array.some.js");
/* harmony import */ var core_js_modules_es_typed_array_some__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some__WEBPACK_IMPORTED_MODULE_36__);
/* harmony import */ var core_js_modules_es_typed_array_sort__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! core-js/modules/es.typed-array.sort */ "./node_modules/core-js/modules/es.typed-array.sort.js");
/* harmony import */ var core_js_modules_es_typed_array_sort__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort__WEBPACK_IMPORTED_MODULE_37__);
/* harmony import */ var core_js_modules_es_typed_array_subarray__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! core-js/modules/es.typed-array.subarray */ "./node_modules/core-js/modules/es.typed-array.subarray.js");
/* harmony import */ var core_js_modules_es_typed_array_subarray__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray__WEBPACK_IMPORTED_MODULE_38__);
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-locale-string */ "./node_modules/core-js/modules/es.typed-array.to-locale-string.js");
/* harmony import */ var core_js_modules_es_typed_array_to_locale_string__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string__WEBPACK_IMPORTED_MODULE_39__);
/* harmony import */ var core_js_modules_es_typed_array_to_string__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-string */ "./node_modules/core-js/modules/es.typed-array.to-string.js");
/* harmony import */ var core_js_modules_es_typed_array_to_string__WEBPACK_IMPORTED_MODULE_40___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string__WEBPACK_IMPORTED_MODULE_40__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_41__);
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_42__);
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_43__);
/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js");
/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_44___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_44__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_45__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_46__);
/* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! lodash/memoize */ "./node_modules/lodash/memoize.js");
/* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_47___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_47__);
/* harmony import */ var lodash_template__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! lodash/template */ "./node_modules/lodash/template.js");
/* harmony import */ var lodash_template__WEBPACK_IMPORTED_MODULE_48___default = /*#__PURE__*/__webpack_require__.n(lodash_template__WEBPACK_IMPORTED_MODULE_48__);
/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! lodash/isNull */ "./node_modules/lodash/isNull.js");
/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(lodash_isNull__WEBPACK_IMPORTED_MODULE_49__);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_50__);















































(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_45___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * @todo define postcodexLookupObj in php wp_localize_script()
 */





var apiRequest = function apiRequest() {
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var ep = props.ep,
      options = props.options,
      method = props.method;
  return sendRequest(ep, lodash_omit__WEBPACK_IMPORTED_MODULE_50___default()(props, ['ep', 'options', 'method']), method || 'POST', options || {});
};
var sendRequest = function sendRequest(ep) {
  var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'POST';
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  var defaultArgs = {
    url: "".concat(postcodexLookupObj.apiUrl).concat(ep),
    method: method || 'POST',
    headers: {
      'X-WP-Nonce': postcodexLookupObj.restNonce
    },
    timeout: 30000,
    dataType: 'json',
    contentType: 'application/json'
  };
  var args = 'get' === method.toLowerCase() ? _objectSpread(_objectSpread({}, defaultArgs), {}, {
    params: props
  }, options) : _objectSpread(_objectSpread({}, defaultArgs), {}, {
    data: props
  }, options);
  return axios__WEBPACK_IMPORTED_MODULE_46___default()(args).then(function (response) {
    return response;
  }).catch(function (error) {
    return {
      error: error
    };
  });
};
/**
 * Usage:
 * Somewhere on the page you have the following markup:
 * <script id="tmpl-my-template" type="text/html">
 *     <div class="some-class">
 *         {{ jsVariableNameObject.whatever }}
 *     </div>
 * </script>
 *
 * // then on your component file:
 *
 * // Load the template
 * const myTemplate = _template( 'my-template', 'jsVariableNameObject' );
 *
 * // Output the template passing the variable for output. Example variable object:
 * const someObjectInAppToBeDisplayed = {
 *     whatever : 'Sample Text'
 * };
 * myTemplate( someObjectInAppToBeDisplayed );
 */

var _template = lodash_memoize__WEBPACK_IMPORTED_MODULE_47___default()(function (id, varName) {
  var variable = varName || 'data';
  var compiled,
      options = {
    evaluate: /<#([\s\S]+?)#>/g,
    interpolate: /\{\{\{([\s\S]+?)\}\}\}/g,
    escape: /\{\{([^\}]+?)\}\}(?!\})/g,
    variable: variable
  };
  return function (data) {
    compiled = compiled || lodash_template__WEBPACK_IMPORTED_MODULE_48___default()(document.getElementById("tmpl-".concat(id)).innerHTML, options);
    return compiled(data);
  };
});
/**
 * Create EventSource object
 * @param url
 * @returns object
 */

var createSource = function createSource(url) {
  var source = new EventSource(url);
  var deferred;

  source.onmessage = function (event) {
    var json = JSON.parse(event.data);

    if (deferred) {
      deferred.resolve(json);
      deferred = null;
    }
  };

  source.onopen = function (event) {
    console.log('eventsource open');
  };

  source.onerror = function (event) {
    var source = event.target;
    console.log('eventsource error', event); //source.close();
  };

  return {
    nextMessage: function nextMessage() {
      if (!deferred) {
        deferred = {};
        deferred.promise = new Promise(function (resolve) {
          return deferred.resolve = resolve;
        });
      }

      return deferred.promise;
    },
    source: source
  };
};
var _localStorage = {
  getItem: function getItem(key) {
    if (typeof Storage !== 'undefined') {
      return localStorage.getItem(key);
    }

    return null;
  },
  setItem: function setItem(key, value) {
    if (typeof Storage !== 'undefined') {
      try {
        localStorage.setItem(key, value);
      } catch (e) {
        console.log(e);
      }
    }
  },
  getJSON: function getJSON(key) {
    if (typeof Storage !== 'undefined') {
      return JSON.parse(localStorage.getItem(key));
    }

    return null;
  },
  setJSON: function setJSON(key, value) {
    if (typeof Storage !== 'undefined') {
      try {
        localStorage.setItem(key, JSON.stringify(value));
      } catch (e) {
        console.log(e);
      }
    }
  }
};
var _sessionStorage = {
  get: function get(key) {
    if (typeof Storage !== 'undefined') {
      return sessionStorage.getItem(key);
    }

    return null;
  },
  set: function set(key, value) {
    if (typeof Storage !== 'undefined') {
      try {
        sessionStorage.setItem(key, value);
      } catch (e) {
        console.log(e);
      }
    }
  },
  getJSON: function getJSON(key) {
    if (typeof Storage !== 'undefined') {
      return JSON.parse(sessionStorage.getItem(key));
    }

    return null;
  },
  setJSON: function setJSON(key, value) {
    if (typeof Storage !== 'undefined') {
      try {
        sessionStorage.setItem(key, JSON.stringify(value));
      } catch (e) {
        console.log(e);
      }
    }
  }
};
/**
 * Usage:
 * hashCode( data ).then( hash => { ...do something with `hash` } );
 *
 * @param message
 * @param maxChars
 * @returns {Promise<string>}
 */

var hashCode = /*#__PURE__*/function () {
  var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_44___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_42___default.a.mark(function _callee(message) {
    var maxChars,
        code,
        msgUint8,
        hashBuffer,
        hashArray,
        _args = arguments;
    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_42___default.a.wrap(function _callee$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
            maxChars = _args.length > 1 && _args[1] !== undefined ? _args[1] : 8;
            code = '';

            if (!('undefined' !== typeof crypto && 'undefined' !== typeof crypto.subtle && 'undefined' !== typeof crypto.subtle.digest)) {
              _context.next = 11;
              break;
            }

            msgUint8 = new TextEncoder().encode(JSON.stringify(message));
            _context.next = 6;
            return crypto.subtle.digest('SHA-256', msgUint8);

          case 6:
            hashBuffer = _context.sent;
            hashArray = Array.from(new Uint8Array(hashBuffer));
            code = hashArray.map(function (b) {
              return b.toString(16).padStart(2, '0');
            }).join('');
            _context.next = 12;
            break;

          case 11:
            code = md5(JSON.stringify(message));

          case 12:
            if (!(lodash_isNull__WEBPACK_IMPORTED_MODULE_49___default()(maxChars) && maxChars !== code.length)) {
              _context.next = 14;
              break;
            }

            return _context.abrupt("return", code);

          case 14:
            return _context.abrupt("return", code.substr(0, maxChars));

          case 15:
          case "end":
            return _context.stop();
        }
      }
    }, _callee);
  }));

  return function hashCode(_x) {
    return _ref.apply(this, arguments);
  };
}();
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(apiRequest, "apiRequest", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(sendRequest, "sendRequest", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(_template, "_template", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(createSource, "createSource", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(_localStorage, "_localStorage", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(_sessionStorage, "_sessionStorage", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
  reactHotLoader.register(hashCode, "hashCode", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/api/index.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/actions/index.js":
/*!*******************************************************!*\
  !*** ./src/apps/autosuggest-address/actions/index.js ***!
  \*******************************************************/
/*! exports provided: APP_PROP_CHANGE, SEARCH_ADDRESSES, SEARCH_ADDRESSES_SUCCESS, SEARCH_ADDRESSES_ERROR, searchAddresses, appPropChange */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_PROP_CHANGE", function() { return APP_PROP_CHANGE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_ADDRESSES", function() { return SEARCH_ADDRESSES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_ADDRESSES_SUCCESS", function() { return SEARCH_ADDRESSES_SUCCESS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_ADDRESSES_ERROR", function() { return SEARCH_ADDRESSES_ERROR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchAddresses", function() { return searchAddresses; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "appPropChange", function() { return appPropChange; });
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 10/5/20
 * Time: 5:31 PM
 */
var APP_PROP_CHANGE = 'APP_PROP_CHANGE',
    SEARCH_ADDRESSES = 'SEARCH_ADDRESSES',
    SEARCH_ADDRESSES_SUCCESS = 'SEARCH_ADDRESSES_SUCCESS',
    SEARCH_ADDRESSES_ERROR = 'SEARCH_ADDRESSES_ERROR',
    searchAddresses = function searchAddresses(payload) {
  return {
    type: SEARCH_ADDRESSES,
    payload: payload
  };
},
    appPropChange = function appPropChange(payload) {
  return {
    type: APP_PROP_CHANGE,
    payload: payload
  };
};
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(APP_PROP_CHANGE, "APP_PROP_CHANGE", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
  reactHotLoader.register(SEARCH_ADDRESSES, "SEARCH_ADDRESSES", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
  reactHotLoader.register(SEARCH_ADDRESSES_SUCCESS, "SEARCH_ADDRESSES_SUCCESS", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
  reactHotLoader.register(SEARCH_ADDRESSES_ERROR, "SEARCH_ADDRESSES_ERROR", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
  reactHotLoader.register(searchAddresses, "searchAddresses", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
  reactHotLoader.register(appPropChange, "appPropChange", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/actions/index.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/containers/App.js":
/*!********************************************************!*\
  !*** ./src/apps/autosuggest-address/containers/App.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/core-js/modules/es.array.concat.js");
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.join */ "./node_modules/core-js/modules/es.array.join.js");
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.promise */ "./node_modules/core-js/modules/es.promise.js");
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.reflect.construct */ "./node_modules/core-js/modules/es.reflect.construct.js");
/* harmony import */ var core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string */ "./node_modules/core-js/modules/es.regexp.to-string.js");
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js");
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js");
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js");
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js");
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var react_hot_loader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-hot-loader */ "./node_modules/react-hot-loader/index.js");
/* harmony import */ var react_hot_loader__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_hot_loader__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../style.scss */ "./src/apps/autosuggest-address/style.scss");
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../actions */ "./src/apps/autosuggest-address/actions/index.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lodash */ "lodash");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../api */ "./src/api/index.js");
/* harmony import */ var _components_LoadingBar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../components/LoadingBar */ "./src/components/LoadingBar.js");














(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11___default()(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 */










var SuggestionResults = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_13__["lazy"])(function () {
  return __webpack_require__.e(/*! import() | apps/autosuggest-address/chunks/suggestion-results */ "apps/autosuggest-address/chunks/suggestion-results").then(__webpack_require__.bind(null, /*! ../components/SuggestionResults */ "./src/apps/autosuggest-address/components/SuggestionResults.js"));
});

var App = /*#__PURE__*/function (_Component) {
  _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default()(App, _Component);

  var _super = _createSuper(App);

  function App(props) {
    var _this;

    _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default()(this, App);

    _this = _super.call(this, props);

    _this._queryAddresses = function (postcode) {
      var hash = md5__WEBPACK_IMPORTED_MODULE_20___default()("".concat(_this.props.cacheId, "_").concat(postcode));

      var addresses = _api__WEBPACK_IMPORTED_MODULE_21__["_sessionStorage"].getJSON("postcode_".concat(hash));

      if (!Object(lodash__WEBPACK_IMPORTED_MODULE_19__["isEmpty"])(addresses)) {
        _this.props.appPropChange({
          addresses: addresses
        });

        return;
      }

      var args = {
        ep: 'search-addresses',
        method: 'GET',
        postcode: postcode
      };

      if (!postcodexLookupObj.isLoggedIn) {
        args.options = {
          headers: {}
        };
      }

      _this.props.searchAddresses(args);
    };

    _this.debounceSearchAddreses = function (postcode) {
      _this._queryAddresses(postcode);
    };

    _this.handlePostCodeInputChange = function (e) {
      _this.debounceSearchAddreses(e.target.value);
    };

    _this.handleClickItem = function (address, e) {
      var addressLine1 = address.addressLine1,
          addressLine2 = address.addressLine2,
          addressLine3 = address.addressLine3,
          postTown = address.postTown;

      if (_this._address1Input) {
        _this._address1Input.value = [addressLine1, addressLine2].filter(Boolean).join(', ');
      }

      if (_this._address2Input) {
        _this._address2Input.value = addressLine3;
      }

      if (_this._townInput) {
        _this._townInput.value = postTown;
      }

      _this.props.unmountAppEntry();
    };

    _this.debounceSearchAddreses = Object(lodash__WEBPACK_IMPORTED_MODULE_19__["debounce"])(_this.debounceSearchAddreses, 700);
    return _this;
  }

  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default()(App, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState, snapshot) {
      if (prevProps.searchingAddresses && !this.props.searchingAddresses) {
        if (Object(lodash__WEBPACK_IMPORTED_MODULE_19__["isEmpty"])(this.props.addresses)) {
          this.props.unmountAppEntry();
        } else {
          var postcode = this._postCodeInput.value;

          if (postcode) {
            var hash = md5__WEBPACK_IMPORTED_MODULE_20___default()("".concat(this.props.cacheId, "_").concat(postcode));

            _api__WEBPACK_IMPORTED_MODULE_21__["_sessionStorage"].setJSON("postcode_".concat(hash), this.props.addresses);
          }
        }
      }
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this._postCodeInput = this.props.form.querySelector(plAutosuggestAddrObj.postcodeSelector);
      this._counrtyInput = this.props.form.querySelector(plAutosuggestAddrObj.countrySelector);
      this._address1Input = this.props.form.querySelector(plAutosuggestAddrObj.address1Selector);
      this._address2Input = this.props.form.querySelector(plAutosuggestAddrObj.address2Selector);
      this._townInput = this.props.form.querySelector(plAutosuggestAddrObj.citySelector);
      this.postCodeInput.addEventListener('keyup', this.handlePostCodeInputChange);

      if (this.postCodeInput.value) {
        this._queryAddresses(this.postCodeInput.value);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.postCodeInput.removeEventListener('keyup', this.handlePostCodeInputChange);
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          searchingAddresses = _this$props.searchingAddresses,
          addresses = _this$props.addresses;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div", {
        className: "postcodex-lookup-app ".concat(_style_scss__WEBPACK_IMPORTED_MODULE_17__["default"].postcodexLookupApp)
      }, searchingAddresses && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("p", {
        className: _style_scss__WEBPACK_IMPORTED_MODULE_17__["default"].searching
      }, "Searching...") || !Object(lodash__WEBPACK_IMPORTED_MODULE_19__["isEmpty"])(addresses) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_13__["Suspense"], {
        fallback: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_components_LoadingBar__WEBPACK_IMPORTED_MODULE_22__["default"], null)
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(SuggestionResults, {
        addresses: addresses,
        onClick: this.handleClickItem
      })));
    }
  }, {
    key: "__reactstandin__regenerateByEval",
    // @ts-ignore
    value: function __reactstandin__regenerateByEval(key, code) {
      // @ts-ignore
      this[key] = eval(code);
    }
  }, {
    key: "postCodeInput",
    get: function get() {
      return this._postCodeInput;
    },
    set: function set(el) {
      this._postCodeInput = el;
    }
  }, {
    key: "billingCountryInput",
    get: function get() {
      return this._counrtyInput;
    },
    set: function set(el) {
      this._counrtyInput = el;
    }
  }]);

  return App;
}(react__WEBPACK_IMPORTED_MODULE_13__["Component"]);

App.propTypes = {
  searchingAddresses: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.bool,
  addresses: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.array,
  unmountAppEntry: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.func,
  cacheId: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.string,
  form: prop_types__WEBPACK_IMPORTED_MODULE_15___default.a.instanceOf(Element).isRequired
};

var _default = Object(react_hot_loader__WEBPACK_IMPORTED_MODULE_14__["hot"])(module)(Object(react_redux__WEBPACK_IMPORTED_MODULE_16__["connect"])(function (state) {
  return _objectSpread({}, state.app);
}, {
  appPropChange: _actions__WEBPACK_IMPORTED_MODULE_18__["appPropChange"],
  searchAddresses: _actions__WEBPACK_IMPORTED_MODULE_18__["searchAddresses"]
})(App));

/* harmony default export */ __webpack_exports__["default"] = (_default);
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(SuggestionResults, "SuggestionResults", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/containers/App.js");
  reactHotLoader.register(App, "App", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/containers/App.js");
  reactHotLoader.register(_default, "default", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/containers/App.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/index.js":
/*!***********************************************!*\
  !*** ./src/apps/autosuggest-address/index.js ***!
  \***********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js");
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.trim */ "./node_modules/core-js/modules/es.string.trim.js");
/* harmony import */ var core_js_modules_es_string_trim__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "react-dom");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! jquery */ "jquery");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ "lodash");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! redux-saga */ "./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js");
/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js");
/* harmony import */ var _reducers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./reducers */ "./src/apps/autosuggest-address/reducers/index.js");
/* harmony import */ var _sagas__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sagas */ "./src/apps/autosuggest-address/sagas/index.js");
/* harmony import */ var _containers_App__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./containers/App */ "./src/apps/autosuggest-address/containers/App.js");




(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 */
__webpack_require__.p = "".concat(postcodexLookupObj.publicPath, "/");










var postCodeInput = document.querySelectorAll(plAutosuggestAddrObj.postcodeSelector),
    countryInput = document.querySelector(plAutosuggestAddrObj.countrySelector);

var initApp = function initApp(form) {
  var _document$getElementB, _document$getElementB2;

  var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || redux__WEBPACK_IMPORTED_MODULE_8__["compose"];
  var sagaMiddleware = Object(redux_saga__WEBPACK_IMPORTED_MODULE_7__["default"])();
  var store = Object(redux__WEBPACK_IMPORTED_MODULE_8__["createStore"])(_reducers__WEBPACK_IMPORTED_MODULE_10__["default"], composeEnhancers(Object(redux__WEBPACK_IMPORTED_MODULE_8__["applyMiddleware"])(sagaMiddleware)));
  sagaMiddleware.run(_sagas__WEBPACK_IMPORTED_MODULE_11__["default"]);
  var postcodeInput = form.querySelector(plAutosuggestAddrObj.postcodeSelector);
  var formDataPlApp = form.getAttribute('data-pl-app');
  var cacheId = formDataPlApp !== null && formDataPlApp !== void 0 ? formDataPlApp : Object(lodash__WEBPACK_IMPORTED_MODULE_6__["uniqueId"])('plApp');

  if (!formDataPlApp) {
    form.setAttribute('data-pl-app', cacheId);
  }

  var root = document.createElement('div');
  root.id = cacheId;
  root.classList.add('pl-autosuggest-address', 'pl-custom');
  document.body.appendChild(root);

  var cumulativeOffset = function cumulativeOffset(mainElement) {
    var top = 0,
        left = 0,
        element = mainElement;

    do {
      top += element.offsetTop || 0;
      left += element.offsetLeft || 0;
      element = element.offsetParent;
    } while (element);

    return {
      top: top + mainElement.offsetHeight,
      left: left
    };
  };

  var offset = cumulativeOffset(postcodeInput);
  var adminBarHeight = (_document$getElementB = (_document$getElementB2 = document.getElementById('wpadminbar')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.offsetHeight) !== null && _document$getElementB !== void 0 ? _document$getElementB : 0;
  root.style.top = offset.top + adminBarHeight + 'px';
  root.style.left = offset.left + 'px';
  root.style.width = 200 < postcodeInput.clientWidth ? postcodeInput.clientWidth + 'px' : '200px';
  react_dom__WEBPACK_IMPORTED_MODULE_4___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react_redux__WEBPACK_IMPORTED_MODULE_9__["Provider"], {
    store: store
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_containers_App__WEBPACK_IMPORTED_MODULE_12__["default"], {
    unmountAppEntry: unmountAppEntry,
    cacheId: cacheId,
    form: form
  })), root);
};

var unmountAppEntry = function unmountAppEntry() {
  var appRoot = document.querySelector('.pl-autosuggest-address');

  if (!appRoot) {
    return;
  }

  react_dom__WEBPACK_IMPORTED_MODULE_4___default.a.unmountComponentAtNode(document.querySelector('.pl-autosuggest-address'));
  document.querySelector('.pl-autosuggest-address').remove();
};

var toggleFieldsDisplay = function toggleFieldsDisplay() {
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  var inputFields = [plAutosuggestAddrObj.address1Selector, plAutosuggestAddrObj.address2Selector, plAutosuggestAddrObj.citySelector];

  if (!show) {
    inputFields.forEach(function (fieldId) {
      var field = document.querySelector(fieldId),
          container = field === null || field === void 0 ? void 0 : field.closest("".concat(fieldId, "_field"));

      if (container) {
        container.style.display = 'none';
      }
    });
  } else {
    inputFields.forEach(function (fieldId) {
      var field = document.querySelector(fieldId),
          container = field === null || field === void 0 ? void 0 : field.closest("".concat(fieldId, "_field"));

      if (container) {
        container.style.display = 'block';
      }
    });
  }
};

var togglePostCodeDesc = function togglePostCodeDesc() {
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  var postcodeDesc = document.querySelectorAll('.pl-postcode-desc');

  if (!postcodeDesc.length && show) {
    postcodeDesc = document.createElement('span');
    postcodeDesc.classList.add('pl-postcode-desc');

    if ('yes' === plAutosuggestAddrObj.autosearch) {
      postcodeDesc.innerText = 'Enter your postcode to automatically find your address.';
    } else {
      postcodeDesc.innerHTML = 'Enter your postcode and click <code>SEARCH</code> button to find your address.';
    }

    postCodeInput.forEach(function (node) {
      var _node$closest;

      (_node$closest = node.closest("#".concat(node.id, "_field"))) === null || _node$closest === void 0 ? void 0 : _node$closest.appendChild(postcodeDesc);
    });
  } else if (postcodeDesc) {
    postCodeInput.forEach(function (node) {
      var _node$closest2;

      console.log(node);
      (_node$closest2 = node.closest("#".concat(node.id, "_field"))) === null || _node$closest2 === void 0 ? void 0 : _node$closest2.removeChild(postcodeDesc);
    });
  }
};

var toggleSearchBtnDisplay = function toggleSearchBtnDisplay() {
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  var _plAutosuggestAddrObj = plAutosuggestAddrObj,
      autosearch = _plAutosuggestAddrObj.autosearch,
      isCheckout = _plAutosuggestAddrObj.isCheckout;

  if ((!isCheckout || isCheckout && countryInput && 'GB' === countryInput.value) && show && 'no' === autosearch) {
    document.body.classList.add('pl-no-autosuggest');
    postCodeInput.forEach(function (node) {
      var searchBtn = document.createElement('button');
      searchBtn.classList.add('pl-search-addresses-btn', 'btn', 'btn-secondary');
      searchBtn.type = 'button';
      searchBtn.textContent = 'Search';
      searchBtn.addEventListener('click', handleSearchBtnClick);
      node.parentNode.insertBefore(searchBtn, node.nextSibling);
    });
  } else if ('no' === autosearch && (!show || isCheckout && countryInput && 'GB' !== countryInput.value)) {
    var searchBtn = document.querySelectorAll('.pl-search-addresses-btn');

    if (!!searchBtn.length) {
      searchBtn.forEach(function (btn) {
        btn.remove();
        document.body.classList.remove('pl-no-autosuggest');
      });
    }
  }
};

var handleSearchBtnClick = function handleSearchBtnClick(e) {
  var form = e.target.closest('form');
  initApp(form);
};

var debouncedToggleFieldsDisplay = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["debounce"])(function () {
  toggleFieldsDisplay(false);
}, 10);

var postCodeChange = function postCodeChange(e) {
  var form = e.target.closest('form');

  if (plAutosuggestAddrObj.isCheckout && countryInput && 'GB' === countryInput.value || !form.querySelector('.pl-autosuggest-address') && 2 <= e.target.value.trim().length) {
    initApp(form);
  } else if (form.querySelector('.pl-autosuggest-address') && 2 > e.target.value.trim().length) {
    unmountAppEntry(form);
  }
};

var debouncePostcodeChange = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["debounce"])(function (e) {
  postCodeChange(e);
}, 700);

if (!!postCodeInput.length && 'yes' === plAutosuggestAddrObj.autosearch) {
  postCodeInput.forEach(function (node) {
    node.addEventListener('keyup', debouncePostcodeChange);
    node.addEventListener('focus', postCodeChange);
  });
}

document.addEventListener('mousedown', function (e) {
  var appNode = document.querySelectorAll('.pl-autosuggest-address');
  postCodeInput.forEach(function (input) {
    if (input && !(input === null || input === void 0 ? void 0 : input.contains(e.target)) && !!appNode.length) {
      appNode.forEach(function (node) {
        if (!node.contains(e.target)) {
          unmountAppEntry(node.closest('form'));
        }
      });
    }
  });
});
jquery__WEBPACK_IMPORTED_MODULE_5___default()(plAutosuggestAddrObj.countrySelector).on('change', function (e) {
  if ('GB' === e.target.value) {
    togglePostCodeDesc();
    toggleSearchBtnDisplay();
  } else {
    unmountAppEntry(document.querySelector(plAutosuggestAddrObj.countrySelector).closest('form'));
    togglePostCodeDesc(false);
    toggleSearchBtnDisplay(false);
  }
});
jquery__WEBPACK_IMPORTED_MODULE_5___default()(function () {
  if (!plAutosuggestAddrObj.isCheckout || plAutosuggestAddrObj.isCheckout && countryInput && 'GB' === countryInput.value) {
    togglePostCodeDesc();
    toggleSearchBtnDisplay();
  }
});
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(postCodeInput, "postCodeInput", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(countryInput, "countryInput", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(initApp, "initApp", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(unmountAppEntry, "unmountAppEntry", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(toggleFieldsDisplay, "toggleFieldsDisplay", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(togglePostCodeDesc, "togglePostCodeDesc", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(toggleSearchBtnDisplay, "toggleSearchBtnDisplay", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(handleSearchBtnClick, "handleSearchBtnClick", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(debouncedToggleFieldsDisplay, "debouncedToggleFieldsDisplay", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(postCodeChange, "postCodeChange", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
  reactHotLoader.register(debouncePostcodeChange, "debouncePostcodeChange", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/index.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/reducers/app.js":
/*!******************************************************!*\
  !*** ./src/apps/autosuggest-address/reducers/app.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js");
/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js");
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.keys */ "./node_modules/core-js/modules/es.object.keys.js");
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../actions */ "./src/apps/autosuggest-address/actions/index.js");









(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 2018/08/23
 * Time: 2:01 PM
 */

var INITIAL_STATE = {
  searchingAddresses: false,
  addresses: [],
  searchError: null
};

var _default = function _default() {
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
  var action = arguments.length > 1 ? arguments[1] : undefined;

  switch (action.type) {
    case _actions__WEBPACK_IMPORTED_MODULE_8__["APP_PROP_CHANGE"]:
      return _objectSpread(_objectSpread({}, state), action.payload);

    case _actions__WEBPACK_IMPORTED_MODULE_8__["SEARCH_ADDRESSES"]:
      return _objectSpread(_objectSpread(_objectSpread({}, state), action.payload), {}, {
        searchingAddresses: true
      });

    case _actions__WEBPACK_IMPORTED_MODULE_8__["SEARCH_ADDRESSES_SUCCESS"]:
      return _objectSpread(_objectSpread(_objectSpread({}, state), action.data), {}, {
        searchingAddresses: false
      });

    case _actions__WEBPACK_IMPORTED_MODULE_8__["SEARCH_ADDRESSES_ERROR"]:
      return _objectSpread(_objectSpread({}, state), {}, {
        searchError: _objectSpread({}, action.error.response.data),
        searchingAddresses: false
      });

    default:
      return state;
  }
};

/* harmony default export */ __webpack_exports__["default"] = (_default);
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(INITIAL_STATE, "INITIAL_STATE", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/reducers/app.js");
  reactHotLoader.register(_default, "default", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/reducers/app.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/reducers/index.js":
/*!********************************************************!*\
  !*** ./src/apps/autosuggest-address/reducers/index.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app */ "./src/apps/autosuggest-address/reducers/app.js");
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 2018/08/23
 * Time: 1:57 PM
 */



var _default = Object(redux__WEBPACK_IMPORTED_MODULE_0__["combineReducers"])({
  app: _app__WEBPACK_IMPORTED_MODULE_1__["default"]
});

/* harmony default export */ __webpack_exports__["default"] = (_default);
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(_default, "default", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/reducers/index.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/sagas/app.js":
/*!***************************************************!*\
  !*** ./src/apps/autosuggest-address/sagas/app.js ***!
  \***************************************************/
/*! exports provided: watchSearchAddresses */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "watchSearchAddresses", function() { return watchSearchAddresses; });
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ "./node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../api */ "./src/api/index.js");
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actions */ "./src/apps/autosuggest-address/actions/index.js");



(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(sendSearchAddresses),
    _marked2 = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(watchSearchAddresses);

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 10/5/20
 * Time: 5:58 PM
 */


 //region Regular AJAX request

function sendSearchAddresses(action) {
  var _yield$call, data, error;

  return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function sendSearchAddresses$(_context) {
    while (1) {
      switch (_context.prev = _context.next) {
        case 0:
          _context.next = 2;
          return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__["call"])(_api__WEBPACK_IMPORTED_MODULE_3__["apiRequest"], action.payload);

        case 2:
          _yield$call = _context.sent;
          data = _yield$call.data;
          error = _yield$call.error;

          if (!data) {
            _context.next = 10;
            break;
          }

          _context.next = 8;
          return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__["put"])({
            type: _actions__WEBPACK_IMPORTED_MODULE_4__["SEARCH_ADDRESSES_SUCCESS"],
            data: data
          });

        case 8:
          _context.next = 12;
          break;

        case 10:
          _context.next = 12;
          return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__["put"])({
            type: _actions__WEBPACK_IMPORTED_MODULE_4__["SEARCH_ADDRESSES_ERROR"],
            error: error
          });

        case 12:
        case "end":
          return _context.stop();
      }
    }
  }, _marked);
}

function watchSearchAddresses() {
  return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function watchSearchAddresses$(_context2) {
    while (1) {
      switch (_context2.prev = _context2.next) {
        case 0:
          _context2.next = 2;
          return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__["takeLatest"])(_actions__WEBPACK_IMPORTED_MODULE_4__["SEARCH_ADDRESSES"], sendSearchAddresses);

        case 2:
        case "end":
          return _context2.stop();
      }
    }
  }, _marked2);
} //endregion

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(sendSearchAddresses, "sendSearchAddresses", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/sagas/app.js");
  reactHotLoader.register(watchSearchAddresses, "watchSearchAddresses", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/sagas/app.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/sagas/index.js":
/*!*****************************************************!*\
  !*** ./src/apps/autosuggest-address/sagas/index.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rootSaga; });
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-saga/effects */ "./node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js");
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app */ "./src/apps/autosuggest-address/sagas/app.js");



(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(rootSaga);

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 2018/08/23
 * Time: 1:57 PM
 */


function rootSaga() {
  return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function rootSaga$(_context) {
    while (1) {
      switch (_context.prev = _context.next) {
        case 0:
          _context.next = 2;
          return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__["all"])([Object(_app__WEBPACK_IMPORTED_MODULE_3__["watchSearchAddresses"])()]);

        case 2:
        case "end":
          return _context.stop();
      }
    }
  }, _marked);
}
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(rootSaga, "rootSaga", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/apps/autosuggest-address/sagas/index.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./src/apps/autosuggest-address/style.scss":
/*!*************************************************!*\
  !*** ./src/apps/autosuggest-address/style.scss ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__["default"] = ({"postcodex-lookup-app":"postcodex-lookup-app-2aY85OUU","postcodexLookupApp":"postcodex-lookup-app-2aY85OUU","searching":"searching-cEsjjE5-","search-results-container":"search-results-container-Wvb-ux4V","searchResultsContainer":"search-results-container-Wvb-ux4V","results-heading":"results-heading-1wQjQw_8","resultsHeading":"results-heading-1wQjQw_8","result-item":"result-item-2Lrwk9lR","resultItem":"result-item-2Lrwk9lR"});

/***/ }),

/***/ "./src/components/LoadingBar.js":
/*!**************************************!*\
  !*** ./src/components/LoadingBar.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

/**
 * Author: postcodex
 * Date: 10/7/20
 * Time: 10:49 AM
 */


var Loading = function Loading(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", {
    xmlns: "http://www.w3.org/2000/svg",
    style: {
      margin: 0,
      background: 'transparent',
      display: 'inline-block'
    },
    width: "32px",
    height: "32px",
    viewBox: "0 0 100 100",
    preserveAspectRatio: "xMidYMid"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", {
    x: "0",
    y: "30",
    width: "10",
    height: "40",
    fill: "#353535"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("animate", {
    attributeName: "opacity",
    dur: "2s",
    repeatCount: "indefinite",
    calcMode: "spline",
    keyTimes: "0;0.5;1",
    keySplines: "0.5 0 0.5 1;0.5 0 0.5 1",
    values: "1;0.2;1",
    begin: "-1.2"
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", {
    x: "20",
    y: "30",
    width: "10",
    height: "40",
    fill: "#666666"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("animate", {
    attributeName: "opacity",
    dur: "2s",
    repeatCount: "indefinite",
    calcMode: "spline",
    keyTimes: "0;0.5;1",
    keySplines: "0.5 0 0.5 1;0.5 0 0.5 1",
    values: "1;0.2;1",
    begin: "-0.8"
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", {
    x: "40",
    y: "30",
    width: "10",
    height: "40",
    fill: "#9b9b9b"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("animate", {
    attributeName: "opacity",
    dur: "2s",
    repeatCount: "indefinite",
    calcMode: "spline",
    keyTimes: "0;0.5;1",
    keySplines: "0.5 0 0.5 1;0.5 0 0.5 1",
    values: "1;0.2;1",
    begin: "-0.4"
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", {
    x: "60",
    y: "30",
    width: "10",
    height: "40",
    fill: "#d4d4d4"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("animate", {
    attributeName: "opacity",
    dur: "2s",
    repeatCount: "indefinite",
    calcMode: "spline",
    keyTimes: "0;0.5;1",
    keySplines: "0.5 0 0.5 1;0.5 0 0.5 1",
    values: "1;0.2;1",
    begin: "-2"
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("rect", {
    x: "80",
    y: "30",
    width: "10",
    height: "40",
    fill: "#e3e3e3"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("animate", {
    attributeName: "opacity",
    dur: "2s",
    repeatCount: "indefinite",
    calcMode: "spline",
    keyTimes: "0;0.5;1",
    keySplines: "0.5 0 0.5 1;0.5 0 0.5 1",
    values: "1;0.2;1",
    begin: "-2"
  })));
};

Loading.propTypes = {};
Loading.defaultProps = {};
var _default = Loading;
/* harmony default export */ __webpack_exports__["default"] = (_default);
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(Loading, "Loading", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/components/LoadingBar.js");
  reactHotLoader.register(_default, "default", "/home/paul/sites/rgm.test/wp-content/plugins/postcodex-lookup/src/components/LoadingBar.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "jquery":
/*!*************************!*\
  !*** external "jQuery" ***!
  \*************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = jQuery;

/***/ }),

/***/ "lodash":
/*!*************************!*\
  !*** external "lodash" ***!
  \*************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = lodash;

/***/ }),

/***/ "react":
/*!************************!*\
  !*** external "React" ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = React;

/***/ }),

/***/ "react-dom":
/*!***************************!*\
  !*** external "ReactDOM" ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ReactDOM;

/***/ })

},[["./src/apps/autosuggest-address/index.js","manifest","vendor"]],["apps/autosuggest-address/chunks/suggestion-results"]]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64, 