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X,IAGnD,SAASU,EAAaV,GAKpB,OAJAL,OAAUQ,EAINd,GAAYE,EACPQ,EAAWC,IAEpBT,EAAWC,OAAWW,EACfT,GAeT,SAASkB,IACP,IAAIZ,EAAO5B,IACPyC,EAAaL,EAAaR,GAM9B,GAJAT,EAAWuB,UACXtB,EAAWjJ,KACXqJ,EAAeI,EAEXa,EAAY,CACd,QAAgBV,IAAZR,EACF,OAAOU,EAAYT,GAErB,GAAIE,EAGF,OADAH,EAAUW,WAAWC,EAAcpB,GAC5BY,EAAWH,GAMtB,YAHgBO,IAAZR,IACFA,EAAUW,WAAWC,EAAcpB,IAE9BO,EAIT,OAxGAP,EAAOX,EAASW,IAAS,EACrBb,EAASjI,KACX+I,IAAY/I,EAAQ+I,QAEpBK,GADAK,EAAS,YAAazJ,GACH0H,EAAUS,EAASnI,EAAQoJ,UAAY,EAAGN,GAAQM,EACrEJ,EAAW,aAAchJ,IAAYA,EAAQgJ,SAAWA,GAiG1DuB,EAAUG,OAnCV,gBACkBZ,IAAZR,GACFqB,aAAarB,GAEfE,EAAiB,EACjBN,EAAWK,EAAeJ,EAAWG,OAAUQ,GA+BjDS,EAAUK,MA5BV,WACE,YAAmBd,IAAZR,EAAwBD,EAASgB,EAAatC,MA4BhDwC,EA0DAM,CAAShC,EAAMC,EAAM,CAC1B,QAAWC,EACX,QAAWD,EACX,SAAYE","sources":["webpack://umms-html/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://umms-html/./FrontEndSrc/modules/micro/form/form.js","webpack://umms-html/./node_modules/lodash.throttle/index.js"],"sourcesContent":["function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}\n\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\r\n\r\nimport throttle from 'lodash.throttle';\r\n\r\n// NOTE: Script currently supports only one optional validation component per form\r\n\r\nclass Form {\r\n    ui;\r\n    IsClearButtonShown;\r\n    failedToSubmit;\r\n    formIsValid = {};\r\n    wrap;\r\n\r\n    constructor(options) {\r\n        if (options.wrap) {\r\n            this.wrap = options.wrap;\r\n        }\r\n        if (this.wrap) {\r\n            this.ui = {\r\n                formFields: $(this.wrap).find('select, input[type=\"text\"], textarea'),\r\n                checkFields: $(this.wrap).find('input[type=\"radio\"], input[type=\"checkbox\"]'),\r\n                clear: $(this.wrap).find('.js-form-clear'),\r\n                optionalValidationWrap: $(this.wrap).find('.js-form-optional-validate'),\r\n                fadForm: this.wrap.querySelectorAll('.site-search__container--fad'),\r\n                filterValidationWrap: $(this.wrap).find('.js-form-validate-filter'),\r\n                searchInputError: $(this.wrap).find('.js-search-input-error'),\r\n                zipInput: $(this.wrap).find('input[name=\"zip\"]'),\r\n                zipInputError: $(this.wrap).find('.input-error-message'),\r\n                searchInput: $(this.wrap).find('.js-search-input'),\r\n                // select: $(this.wrap).find('.select-search__select'),\r\n                select2Inputs: $(this.wrap).find('.js-select-search select'),\r\n                searchBar: $(this.wrap).find('.search-bar'),\r\n                newsSearchInput: $(this.wrap).find('.js-news-search-input'),\r\n                clearNewsSearch: $(this.wrap).find('.js-clear-news-search'),\r\n                onChangeFilterSelects: $(this.wrap).find('.js-select-search__select-onchange')\r\n            };\r\n            this.bindUIActions();\r\n        }\r\n    }\r\n\r\n    bindUIActions() {\r\n        // UMMREDESGN-937 fad search, if search text input has value\r\n\r\n        if (this.ui.searchBar.prevObject[0].parentNode.classList.contains('site-search__container--fad')) {\r\n            var fadForm = document.querySelector('.site-search__container--fad form');\r\n            var fadError = fadForm.querySelector('.js-search-input-error');\r\n            var fadZipError = fadForm.querySelector('.input-error-message');\r\n            var fadSearchInput = fadForm.querySelector('input[name=\"qtext\"]'); // update query to match live site input name (live site === 'qtext')\r\n            var fadZipInput = fadForm.querySelector('input[name=\"zip\"]'); // update query to match live site input name (live site === 'zip')\r\n\r\n            fadForm.addEventListener('input', () => {\r\n                if (fadZipInput !== null) {\r\n                    if (fadSearchInput.value !== '' && isNaN(fadSearchInput.value)) {\r\n                        fadZipInput.classList.remove('js-form-validate-item');\r\n                    } else {\r\n                        fadZipInput.classList.add('js-form-validate-item');\r\n                    }\r\n                }\r\n            });\r\n\r\n            fadForm.addEventListener('change', () => {\r\n                if (fadZipInput !== null) {\r\n                    if (fadZipInput.validity.valid) {\r\n                        fadError.classList.add('is-hidden');\r\n                        fadError.classList.remove('is-visible');\r\n                        fadZipError.classList.add('is-hidden');\r\n                        fadZipError.classList.remove('is-visible');\r\n                    }\r\n                } else {\r\n                }\r\n            });\r\n\r\n            fadForm.addEventListener('submit', () => {\r\n                if (fadZipInput !== null) {\r\n                    if (fadSearchInput.value !== '' && isNaN(fadSearchInput.value)) {\r\n                        fadZipInput.classList.remove('js-form-validate-item');\r\n                    } else {\r\n                        fadZipInput.classList.add('js-form-validate-item');\r\n                    }\r\n                }\r\n            });\r\n\r\n            window.addEventListener('load', () => {\r\n                if (fadZipInput !== null) {\r\n                    if (fadSearchInput.value !== '' && isNaN(fadSearchInput.value)) {\r\n                        fadZipInput.classList.remove('js-form-validate-item');\r\n                    } else {\r\n                        fadZipInput.classList.add('js-form-validate-item');\r\n                    }\r\n                }\r\n            });\r\n\r\n            // $('.typeahead').on('click', '.twitter-typeahead__suggestion-name', function(e){\r\n            //   console.log(`Typeahead data: ${$(e.target).text()}`);\r\n            //   const datasetType = $(e.target).closest('.tt-dataset .twitter-typeahead__header').text();\r\n            //   this.ui.searchInput.data('typeahedType', datasetType);\r\n            //   console.log(`Dataset category: ${datasetType}`);\r\n            // });\r\n        }\r\n\r\n        // Clear Form Button\r\n\r\n        if (this.ui.formFields.length && this.ui.clear.length) {\r\n            $(window).on('load', () => {\r\n                this.checkInputValues();\r\n            });\r\n            this.ui.formFields.add(this.ui.checkFields).each((i, field) => {\r\n                $(field).on('change', () => {\r\n                    this.checkInputValues();\r\n                });\r\n            });\r\n            this.ui.clear.on('click', () => {\r\n                this.clearForm();\r\n            });\r\n        }\r\n\r\n        if (this.ui.select2Inputs.length) {\r\n            this.ui.select2Inputs.each((i, select) => {\r\n                $(select).on('select2:unselect', () => {\r\n                    if (Media().init('mq-large')) {\r\n                        $(this.wrap).trigger('submit');\r\n                    }\r\n                });\r\n            });\r\n        }\r\n\r\n        if (this.ui.select2Inputs.length) {\r\n            this.ui.select2Inputs.each((i, select) => {\r\n                $(select).on('select2:unselect', () => {\r\n                    this.checkInputValues();\r\n                });\r\n            });\r\n        }\r\n\r\n        // Clear News Search Button\r\n\r\n        if (this.ui.newsSearchInput.length && this.ui.clearNewsSearch.length) {\r\n            this.checkNewsInputValue();\r\n            $(this.ui.newsSearchInput).on('input', () => this.checkNewsInputValue);\r\n            $(this.ui.clearNewsSearch).on('click', e => this.clearNewsSearch(e));\r\n        }\r\n\r\n        // Form Validation\r\n\r\n        $(this.wrap).on('submit', e => this.validateForm(e));\r\n\r\n        if (this.ui.filterValidationWrap.length) {\r\n            this.ui.filterValidationWrap.each((i, item) => {\r\n                $(item).on(\r\n                    'input',\r\n                    throttle(() => {\r\n                        this.validateFilterInputs();\r\n                    }, 100)\r\n                );\r\n                this.validateFilterInputs();\r\n            });\r\n        }\r\n\r\n        if (this.ui.searchInput.length && this.ui.searchInputError.length) {\r\n            this.failedToSubmit = false;\r\n            $(this.ui.searchInput).on(\r\n                'input',\r\n                throttle(() => {\r\n                    this.checkSearchInputValue(this.ui.searchInput);\r\n                }, 100)\r\n            );\r\n        }\r\n    }\r\n\r\n    checkInputValues() {\r\n        this.IsClearButtonShown = false;\r\n        this.ui.formFields.each((i, field) => {\r\n            if (field.value && !this.IsClearButtonShown) {\r\n                this.IsClearButtonShown = true;\r\n            }\r\n        });\r\n        this.ui.checkFields.each((i, field) => {\r\n            if ($(field).prop('checked') && !this.IsClearButtonShown) {\r\n                this.IsClearButtonShown = true;\r\n            }\r\n        });\r\n        this.IsClearButtonShown ? this.showClearButton() : this.hideClearButton();\r\n    }\r\n\r\n    checkNewsInputValue() {\r\n        var newsInput = $(this.ui.newsSearchInput),\r\n            clearBtn = newsInput.siblings('.js-clear-news-search');\r\n\r\n        if (newsInput.val()) {\r\n            if (!clearBtn.hasClass('is-visible')) {\r\n                clearBtn.addClass('is-visible');\r\n            }\r\n        } else {\r\n            if (clearBtn.hasClass('is-visible')) {\r\n                clearBtn.removeClass('is-visible');\r\n            }\r\n        }\r\n    }\r\n\r\n    showClearButton() {\r\n        this.ui.clear.addClass('is-active');\r\n    }\r\n\r\n    hideClearButton() {\r\n        this.ui.clear.removeClass('is-active');\r\n    }\r\n\r\n    clearNewsSearch(e) {\r\n        var clearBtn = $(this),\r\n            newsInput = clearBtn.siblings('.js-news-search-input');\r\n\r\n        e.preventDefault();\r\n\r\n        if (newsInput.val()) {\r\n            clearBtn.removeClass('is-visible');\r\n            newsInput.val('');\r\n        }\r\n\r\n        if (window.location.search) {\r\n            var url = [location.protocol, '//', location.host, location.pathname].join('');\r\n            window.location.href = url;\r\n        }\r\n    }\r\n\r\n    clearForm() {\r\n        var inputTextFields = $(this.wrap).find('input[type=\"text\"]'),\r\n            checkFields = $(this.wrap).find('input[type=\"checkbox\"]'),\r\n            selectFields = $(this.wrap).find('.select > select'),\r\n            selectSearchFields = $(this.wrap).find('.select-search__select');\r\n\r\n        inputTextFields.val('');\r\n        checkFields.each((index, el) => {\r\n            $(el).prop('checked', false);\r\n        });\r\n        selectFields.val('');\r\n        selectFields.each((index, el) => {\r\n            var defaultVal = $(el).find('[data-default]').val();\r\n\r\n            $(el).val(defaultVal || '');\r\n        });\r\n        selectSearchFields.val('');\r\n        selectSearchFields.each((i, item) => {\r\n            $(item).trigger('change');\r\n        });\r\n        this.validateFilterInputs();\r\n        this.checkInputValues();\r\n    }\r\n\r\n    validateFilterInputs() {\r\n        this.ui.filterValidationWrap.each((i, validationWrap) => {\r\n            var valueArr = [],\r\n                items = $(validationWrap).find('.js-form-validate-item'),\r\n                submit = $(validationWrap).find('.js-form-filter-submit');\r\n\r\n            if (submit.length) {\r\n                items.each((ii, item) => {\r\n                    if ($(item).val()) {\r\n                        valueArr.push(true);\r\n                    } else {\r\n                        valueArr.push(false);\r\n                    }\r\n                });\r\n                if (valueArr.every(x => x === true)) {\r\n                    submit.removeAttr('disabled');\r\n                } else if (valueArr.every(x => x === false)) {\r\n                    submit.attr('disabled', true);\r\n                } else if (!valueArr.every(x => x === true) && !valueArr.every(x => x === false)) {\r\n                    submit.attr('disabled', true);\r\n                }\r\n            }\r\n        });\r\n    }\r\n\r\n    validateOptionalInputs() {\r\n        this.ui.optionalValidationWrap.each((i, validationWrap) => {\r\n            var valueArr = [],\r\n                items = $(validationWrap).find('.js-form-validate-item');\r\n\r\n            items.each((ii, item) => {\r\n                $(item).val() ? valueArr.push(true) : valueArr.push(false);\r\n            });\r\n\r\n            if (valueArr.every(x => x === true)) {\r\n                this.formIsValid.optionalFields = true;\r\n                this.hideErrorMessage(validationWrap);\r\n            } else if (valueArr.every(x => x === false)) {\r\n                this.formIsValid.optionalFields = true;\r\n                this.hideErrorMessage(validationWrap);\r\n            } else if (!valueArr.every(x => x === true) && !valueArr.every(x => x === false)) {\r\n                this.showErrorMessage(validationWrap);\r\n                this.formIsValid.optionalFields = false;\r\n                return false;\r\n            }\r\n        });\r\n    }\r\n\r\n    showErrorMessage(item, isTypeahead) {\r\n        // var zipInputVal = document.querySelector('input[name=\"zip\"]').value;\r\n        if (this.ui.zipInput.length) {\r\n            if (isTypeahead && this.ui.zipInput[0].value === '') {\r\n                this.ui.searchInputError.removeClass('is-hidden').addClass('is-visible');\r\n            } else {\r\n                $(item)\r\n                    .find('.input-error-message')\r\n                    .removeClass('is-hidden')\r\n                    .addClass('is-visible');\r\n            }\r\n        } else if (isTypeahead) {\r\n            this.ui.searchInputError.removeClass('is-hidden').addClass('is-visible');\r\n        } else {\r\n            $(item)\r\n                .find('.input-error-message')\r\n                .removeClass('is-hidden')\r\n                .addClass('is-visible');\r\n        }\r\n    }\r\n\r\n    hideErrorMessage(item, isTypeahead) {\r\n        if (isTypeahead) {\r\n            this.ui.searchInputError.removeClass('is-visible').addClass('is-hidden');\r\n        } else {\r\n            $(item)\r\n                .find('.input-error-message')\r\n                .removeClass('is-visible')\r\n                .addClass('is-hidden');\r\n        }\r\n    }\r\n\r\n    checkSearchInputValue(item, formSubmitted) {\r\n        if ($(item).val()) {\r\n            if (this.ui.searchInputError.hasClass('is-visible')) {\r\n                this.hideErrorMessage(item, true);\r\n            }\r\n            this.formIsValid.typeahead = true;\r\n        } else {\r\n            if (this.formIsValid.typeahead) {\r\n                this.formIsValid.typeahead = false;\r\n            }\r\n            if (formSubmitted && this.ui.searchInputError.hasClass('is-hidden')) {\r\n                this.showErrorMessage(item, true);\r\n            }\r\n        }\r\n    }\r\n\r\n    validateForm(e) {\r\n        e.preventDefault();\r\n        var parentFieldset = $(document.activeElement).closest('fieldset'),\r\n            isSearchFieldSubmit = !!parentFieldset.find('.js-search-input').length;\r\n\r\n        // var zipInputVal = document.querySelector('input[name=\"zip\"]') ?\r\n        //             document.querySelector('input[name=\"zip\"]').value :\r\n        //             false;\r\n        // Test optional fields\r\n        this.ui.optionalValidationWrap.length ? this.validateOptionalInputs() : (this.formIsValid.optionalFields = true);\r\n\r\n        // Test required fields\r\n        this.ui.searchInput.length && (this.ui.searchInputError.length || isSearchFieldSubmit) ?\r\n            this.checkSearchInputValue(this.ui.searchInput, true) :\r\n            (this.formIsValid.typeahead = true);\r\n\r\n        if (this.ui.zipInput.length && this.ui.searchInput.length) {\r\n            if (this.ui.zipInput[0].value === '' && this.ui.searchInput[0].value === '') {\r\n                this.ui.zipInputError[0].classList.add('is-visible');\r\n                this.ui.zipInputError[0].classList.remove('is-hidden');\r\n                this.formIsValid.typeahead = false;\r\n            } else if (this.ui.zipInput[0].value !== '') {\r\n                this.formIsValid.typeahead = true;\r\n                this.ui.zipInputError.removeClass('is-visible').addClass('is-hidden');\r\n            } else if (this.formIsValid.optionalFields) {\r\n                this.formIsValid.typeahead = true;\r\n            } else {\r\n                this.formIsValid.typeahead = false;\r\n                this.ui.zipInputError.removeClass('is-hidden').addClass('is-visible');\r\n            }\r\n        }\r\n\r\n        if (this.formIsValid.optionalFields && this.formIsValid.typeahead) {\r\n            let selectVal = document.querySelector('.select-search__select') ? document.querySelector('.select-search__select').value : false;\r\n            selectVal = '';\r\n            e.currentTarget.submit();\r\n        }\r\n    }\r\n}\r\n\r\nexport default Form;\r\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n    nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n *   console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n  return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n *  Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n *  The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n *   'leading': true,\n *   'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n  var lastArgs,\n      lastThis,\n      maxWait,\n      result,\n      timerId,\n      lastCallTime,\n      lastInvokeTime = 0,\n      leading = false,\n      maxing = false,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  wait = toNumber(wait) || 0;\n  if (isObject(options)) {\n    leading = !!options.leading;\n    maxing = 'maxWait' in options;\n    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n\n  function invokeFunc(time) {\n    var args = lastArgs,\n        thisArg = lastThis;\n\n    lastArgs = lastThis = undefined;\n    lastInvokeTime = time;\n    result = func.apply(thisArg, args);\n    return result;\n  }\n\n  function leadingEdge(time) {\n    // Reset any `maxWait` timer.\n    lastInvokeTime = time;\n    // Start the timer for the trailing edge.\n    timerId = setTimeout(timerExpired, wait);\n    // Invoke the leading edge.\n    return leading ? invokeFunc(time) : result;\n  }\n\n  function remainingWait(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime,\n        result = wait - timeSinceLastCall;\n\n    return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n  }\n\n  function shouldInvoke(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime;\n\n    // Either this is the first call, activity has stopped and we're at the\n    // trailing edge, the system time has gone backwards and we're treating\n    // it as the trailing edge, or we've hit the `maxWait` limit.\n    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n  }\n\n  function timerExpired() {\n    var time = now();\n    if (shouldInvoke(time)) {\n      return trailingEdge(time);\n    }\n    // Restart the timer.\n    timerId = setTimeout(timerExpired, remainingWait(time));\n  }\n\n  function trailingEdge(time) {\n    timerId = undefined;\n\n    // Only invoke if we have `lastArgs` which means `func` has been\n    // debounced at least once.\n    if (trailing && lastArgs) {\n      return invokeFunc(time);\n    }\n    lastArgs = lastThis = undefined;\n    return result;\n  }\n\n  function cancel() {\n    if (timerId !== undefined) {\n      clearTimeout(timerId);\n    }\n    lastInvokeTime = 0;\n    lastArgs = lastCallTime = lastThis = timerId = undefined;\n  }\n\n  function flush() {\n    return timerId === undefined ? result : trailingEdge(now());\n  }\n\n  function debounced() {\n    var time = now(),\n        isInvoking = shouldInvoke(time);\n\n    lastArgs = arguments;\n    lastThis = this;\n    lastCallTime = time;\n\n    if (isInvoking) {\n      if (timerId === undefined) {\n        return leadingEdge(lastCallTime);\n      }\n      if (maxing) {\n        // Handle invocations in a tight loop.\n        timerId = setTimeout(timerExpired, wait);\n        return invokeFunc(lastCallTime);\n      }\n    }\n    if (timerId === undefined) {\n      timerId = setTimeout(timerExpired, wait);\n    }\n    return result;\n  }\n  debounced.cancel = cancel;\n  debounced.flush = flush;\n  return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n *  Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n  var leading = true,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  if (isObject(options)) {\n    leading = 'leading' in options ? !!options.leading : leading;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n  return debounce(func, wait, {\n    'leading': leading,\n    'maxWait': wait,\n    'trailing': trailing\n  });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = value.replace(reTrim, '');\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n"],"names":["module","exports","obj","key","value","Object","defineProperty","enumerable","configurable","writable","__esModule","Form","options","wrap","this","ui","formFields","$","find","checkFields","clear","optionalValidationWrap","fadForm","querySelectorAll","filterValidationWrap","searchInputError","zipInput","zipInputError","searchInput","select2Inputs","searchBar","newsSearchInput","clearNewsSearch","onChangeFilterSelects","bindUIActions","prevObject","parentNode","classList","contains","document","querySelector","fadError","fadZipError","fadSearchInput","fadZipInput","addEventListener","isNaN","remove","add","validity","valid","window","length","on","checkInputValues","each","i","field","clearForm","select","Media","init","trigger","checkNewsInputValue","e","validateForm","item","validateFilterInputs","failedToSubmit","checkSearchInputValue","IsClearButtonShown","prop","showClearButton","hideClearButton","newsInput","clearBtn","siblings","val","hasClass","addClass","removeClass","preventDefault","location","search","url","protocol","host","pathname","join","href","inputTextFields","selectFields","selectSearchFields","index","el","defaultVal","validationWrap","valueArr","items","submit","ii","push","every","x","removeAttr","attr","formIsValid","optionalFields","hideErrorMessage","showErrorMessage","isTypeahead","formSubmitted","typeahead","isSearchFieldSubmit","activeElement","closest","validateOptionalInputs","currentTarget","FUNC_ERROR_TEXT","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","g","freeSelf","self","root","Function","objectToString","prototype","toString","nativeMax","Math","max","nativeMin","min","now","Date","isObject","type","toNumber","isObjectLike","call","isSymbol","other","valueOf","replace","isBinary","test","slice","func","wait","leading","trailing","TypeError","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","maxing","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","remainingWait","debounced","isInvoking","arguments","cancel","clearTimeout","flush","debounce"],"sourceRoot":""}