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D,CAAE7J,KAAM,UAAW4X,GAAI,UAAWJ,IAAK,MACtC,GACcE,EAAE,CACjB,CAAE1X,KAAM,kBAAmB4X,GAAI,kBAAmBJ,IAAK,IACvD,CAAExX,KAAM,WAAY4X,GAAI,WAAYJ,IAAK,GACzC,CAAExX,KAAM,IAAK4X,GAAI,IAAKJ,IAAK,MAC1B,E,0CC1TL,IAAIlsB,EAAU,EAAQ,OACnBA,EAAQusB,aAAYvsB,EAAUA,EAAQwZ,SACnB,kBAAZxZ,IAAsBA,EAAU,CAAC,CAACyY,EAAO1Z,GAAIiB,EAAS,MAC7DA,EAAQwsB,SAAQ/T,EAAOC,QAAU1Y,EAAQwsB,SAG/B9oB,EADH,YACO,WAAY1D,GAAS,EAAM,CAAC,E","sources":["webpack://app/../src/index.ts","webpack://app/./node_modules/@trevoreyre/autocomplete-vue/dist/autocomplete.esm.js","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2Filters.vue?7072","webpack://app/app/webpack/src/explore_v2/components/ExploreV2Filters.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2Filters.vue?e4ab","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2Filters.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailCard.vue?5dbf","webpack://app/app/webpack/src/explore_v2/components/ExploreV2TrailCard.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailListSideBar.vue?7733","webpack://app/app/webpack/src/explore_v2/components/ExploreV2TrailListSideBar.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailCard.vue?e9f4","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailCard.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailListSideBar.vue?b34a","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2TrailListSideBar.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2SideBar.vue?b680","webpack://app/app/webpack/src/explore_v2/components/ExploreV2SideBar.vue","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2SideBar.vue?7d3f","webpack://app/./app/webpack/src/explore_v2/components/ExploreV2SideBar.vue","webpack://app/./app/webpack/src/explore_v2/Explore.vue?c580","webpack://app/app/webpack/src/explore_v2/Explore.vue","webpack://app/./app/webpack/src/explore_v2/Explore.vue?51c5","webpack://app/./app/webpack/src/explore_v2/Explore.vue","webpack://app/./app/webpack/src/explore_v2/main.ts","webpack://app/./app/webpack/src/explore_v2.js","webpack://app/../../../src/constants/default-options.constant.ts","webpack://app/../../src/ClassTransformer.ts","webpack://app/../../../src/enums/transformation-type.enum.ts","webpack://app/../../src/storage.ts","webpack://app/../../src/MetadataStorage.ts","webpack://app/../../../src/utils/get-global.util.ts","webpack://app/../../../src/utils/is-promise.util.ts","webpack://app/./node_modules/vue-top-progress/dist/vue-top-progress.min.js","webpack://app/./app/webpack/src/explore_v2/store/modules/getters.ts","webpack://app/./app/webpack/src/utils/graphql/country-graph.ts","webpack://app/./app/webpack/src/utils/graphql/region_graph.ts","webpack://app/./app/webpack/src/explore_v2/store/modules/ExploreV2Module.ts","webpack://app/./app/webpack/src/utils/views/MapPopupHelper.ts","webpack://app/./app/webpack/src/utils/helpers/StartEndMarkerHelper.ts","webpack://app/./app/webpack/src/explore_v2/store/store.ts","webpack://app/./app/webpack/src/utils/helpers/GeoLocateHelper.ts","webpack://app/./app/webpack/src/utils/models/TypesenseSearchable.ts","webpack://app/./app/webpack/src/explore_v2/Explore.vue?8273"],"sourcesContent":[null,"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n// Polyfill for element.matches, to support Internet Explorer. It's a relatively\n// simple polyfill, so we'll just include it rather than require the user to\n// include the polyfill themselves. Adapted from\n// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill\nvar matches = function matches(element, selector) {\n return element.matches ? element.matches(selector) : element.msMatchesSelector ? element.msMatchesSelector(selector) : element.webkitMatchesSelector ? element.webkitMatchesSelector(selector) : null;\n};\n\n// Polyfill for element.closest, to support Internet Explorer. It's a relatively\n\nvar closestPolyfill = function closestPolyfill(el, selector) {\n var element = el;\n\n while (element && element.nodeType === 1) {\n if (matches(element, selector)) {\n return element;\n }\n\n element = element.parentNode;\n }\n\n return null;\n};\n\nvar closest = function closest(element, selector) {\n return element.closest ? element.closest(selector) : closestPolyfill(element, selector);\n};\n\n// Returns true if the value has a \"then\" function. Adapted from\n// https://github.com/graphql/graphql-js/blob/499a75939f70c4863d44149371d6a99d57ff7c35/src/jsutils/isPromise.js\nvar isPromise = function isPromise(value) {\n return Boolean(value && typeof value.then === 'function');\n};\n\nvar AutocompleteCore = function AutocompleteCore() {\n var _this = this;\n\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n search = _ref.search,\n _ref$autoSelect = _ref.autoSelect,\n autoSelect = _ref$autoSelect === void 0 ? false : _ref$autoSelect,\n _ref$setValue = _ref.setValue,\n setValue = _ref$setValue === void 0 ? function () {} : _ref$setValue,\n _ref$setAttribute = _ref.setAttribute,\n setAttribute = _ref$setAttribute === void 0 ? function () {} : _ref$setAttribute,\n _ref$onUpdate = _ref.onUpdate,\n onUpdate = _ref$onUpdate === void 0 ? function () {} : _ref$onUpdate,\n _ref$onSubmit = _ref.onSubmit,\n onSubmit = _ref$onSubmit === void 0 ? function () {} : _ref$onSubmit,\n _ref$onShow = _ref.onShow,\n onShow = _ref$onShow === void 0 ? function () {} : _ref$onShow,\n _ref$autocorrect = _ref.autocorrect,\n autocorrect = _ref$autocorrect === void 0 ? false : _ref$autocorrect,\n _ref$onHide = _ref.onHide,\n onHide = _ref$onHide === void 0 ? function () {} : _ref$onHide,\n _ref$onLoading = _ref.onLoading,\n onLoading = _ref$onLoading === void 0 ? function () {} : _ref$onLoading,\n _ref$onLoaded = _ref.onLoaded,\n onLoaded = _ref$onLoaded === void 0 ? function () {} : _ref$onLoaded,\n _ref$submitOnEnter = _ref.submitOnEnter,\n submitOnEnter = _ref$submitOnEnter === void 0 ? false : _ref$submitOnEnter;\n\n _classCallCheck(this, AutocompleteCore);\n\n _defineProperty(this, \"value\", '');\n\n _defineProperty(this, \"searchCounter\", 0);\n\n _defineProperty(this, \"results\", []);\n\n _defineProperty(this, \"selectedIndex\", -1);\n\n _defineProperty(this, \"selectedResult\", null);\n\n _defineProperty(this, \"destroy\", function () {\n _this.search = null;\n _this.setValue = null;\n _this.setAttribute = null;\n _this.onUpdate = null;\n _this.onSubmit = null;\n _this.autocorrect = null;\n _this.onShow = null;\n _this.onHide = null;\n _this.onLoading = null;\n _this.onLoaded = null;\n });\n\n _defineProperty(this, \"handleInput\", function (event) {\n var value = event.target.value;\n\n _this.updateResults(value);\n\n _this.value = value;\n });\n\n _defineProperty(this, \"handleKeyDown\", function (event) {\n var key = event.key;\n\n switch (key) {\n case 'Up': // IE/Edge\n\n case 'Down': // IE/Edge\n\n case 'ArrowUp':\n case 'ArrowDown':\n {\n var selectedIndex = key === 'ArrowUp' || key === 'Up' ? _this.selectedIndex - 1 : _this.selectedIndex + 1;\n event.preventDefault();\n\n _this.handleArrows(selectedIndex);\n\n break;\n }\n\n case 'Tab':\n {\n _this.selectResult();\n\n break;\n }\n\n case 'Enter':\n {\n var isListItemSelected = event.target.getAttribute('aria-activedescendant').length > 0;\n _this.selectedResult = _this.results[_this.selectedIndex] || _this.selectedResult;\n\n _this.selectResult();\n\n if (_this.submitOnEnter) {\n _this.selectedResult && _this.onSubmit(_this.selectedResult);\n } else {\n if (isListItemSelected) {\n event.preventDefault();\n } else {\n _this.selectedResult && _this.onSubmit(_this.selectedResult);\n _this.selectedResult = null;\n }\n }\n\n break;\n }\n\n case 'Esc': // IE/Edge\n\n case 'Escape':\n {\n _this.hideResults();\n\n _this.setValue();\n\n break;\n }\n\n default:\n return;\n }\n });\n\n _defineProperty(this, \"handleFocus\", function (event) {\n var value = event.target.value;\n\n _this.updateResults(value);\n\n _this.value = value;\n });\n\n _defineProperty(this, \"handleBlur\", function () {\n _this.hideResults();\n });\n\n _defineProperty(this, \"handleResultMouseDown\", function (event) {\n event.preventDefault();\n });\n\n _defineProperty(this, \"handleResultClick\", function (event) {\n var target = event.target;\n var result = closest(target, '[data-result-index]');\n\n if (result) {\n _this.selectedIndex = parseInt(result.dataset.resultIndex, 10);\n var selectedResult = _this.results[_this.selectedIndex];\n\n _this.selectResult();\n\n _this.onSubmit(selectedResult);\n }\n });\n\n _defineProperty(this, \"handleArrows\", function (selectedIndex) {\n // Loop selectedIndex back to first or last result if out of bounds\n var resultsCount = _this.results.length;\n _this.selectedIndex = (selectedIndex % resultsCount + resultsCount) % resultsCount; // Update results and aria attributes\n\n _this.onUpdate(_this.results, _this.selectedIndex);\n });\n\n _defineProperty(this, \"selectResult\", function () {\n var selectedResult = _this.results[_this.selectedIndex];\n\n if (selectedResult) {\n _this.setValue(selectedResult);\n }\n\n _this.hideResults();\n });\n\n _defineProperty(this, \"updateResults\", function (value) {\n var currentSearch = ++_this.searchCounter;\n\n _this.onLoading();\n\n _this.search(value).then(function (results) {\n if (currentSearch !== _this.searchCounter) {\n return;\n }\n\n _this.results = results;\n\n _this.onLoaded();\n\n if (_this.results.length === 0) {\n _this.hideResults();\n\n return;\n }\n\n _this.selectedIndex = _this.autoSelect ? 0 : -1;\n\n _this.onUpdate(_this.results, _this.selectedIndex);\n\n _this.showResults();\n });\n });\n\n _defineProperty(this, \"showResults\", function () {\n _this.setAttribute('aria-expanded', true);\n\n _this.onShow();\n });\n\n _defineProperty(this, \"hideResults\", function () {\n _this.selectedIndex = -1;\n _this.results = [];\n\n _this.setAttribute('aria-expanded', false);\n\n _this.setAttribute('aria-activedescendant', '');\n\n _this.onUpdate(_this.results, _this.selectedIndex);\n\n _this.onHide();\n });\n\n _defineProperty(this, \"checkSelectedResultVisible\", function (resultsElement) {\n var selectedResultElement = resultsElement.querySelector(\"[data-result-index=\\\"\".concat(_this.selectedIndex, \"\\\"]\"));\n\n if (!selectedResultElement) {\n return;\n }\n\n var resultsPosition = resultsElement.getBoundingClientRect();\n var selectedPosition = selectedResultElement.getBoundingClientRect();\n\n if (selectedPosition.top < resultsPosition.top) {\n // Element is above viewable area\n resultsElement.scrollTop -= resultsPosition.top - selectedPosition.top;\n } else if (selectedPosition.bottom > resultsPosition.bottom) {\n // Element is below viewable area\n resultsElement.scrollTop += selectedPosition.bottom - resultsPosition.bottom;\n }\n });\n\n this.search = isPromise(search) ? search : function (value) {\n return Promise.resolve(search(value));\n };\n this.autoSelect = autoSelect;\n this.setValue = setValue;\n this.setAttribute = setAttribute;\n this.onUpdate = onUpdate;\n this.onSubmit = onSubmit;\n this.autocorrect = autocorrect;\n this.onShow = onShow;\n this.onHide = onHide;\n this.onLoading = onLoading;\n this.onLoaded = onLoaded;\n this.submitOnEnter = submitOnEnter;\n};\n\n// Generates a unique ID, with optional prefix. Adapted from\n// https://github.com/lodash/lodash/blob/61acdd0c295e4447c9c10da04e287b1ebffe452c/uniqueId.js\nvar idCounter = 0;\n\nvar uniqueId = function uniqueId() {\n var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return \"\".concat(prefix).concat(++idCounter);\n};\n\n// Calculates whether element2 should be above or below element1. Always\n// places element2 below unless all of the following:\n// 1. There isn't enough visible viewport below to fit element2\n// 2. There is more room above element1 than there is below\n// 3. Placing elemen2 above 1 won't overflow window\nvar getRelativePosition = function getRelativePosition(element1, element2) {\n var position1 = element1.getBoundingClientRect();\n var position2 = element2.getBoundingClientRect();\n var positionAbove =\n /* 1 */\n position1.bottom + position2.height > window.innerHeight &&\n /* 2 */\n window.innerHeight - position1.bottom < position1.top &&\n /* 3 */\n window.pageYOffset + position1.top - position2.height > 0;\n return positionAbove ? 'above' : 'below';\n};\n\n// Credit David Walsh (https://davidwalsh.name/javascript-debounce-function)\n// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\nvar debounce = function debounce(func, wait, immediate) {\n var timeout;\n return function executedFunction() {\n var context = this;\n var args = arguments;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n};\n\n/**\n * @typedef {Object} LabelObj\n * @property {string} attribute - `aria-label` | `aria-labelledby`\n * @property {string} content - content of attribute\n */\n\n/**\n * @param {string} labelStr - content for `aria-label` or – if it starts with `#` – ID for `aria-labelledby`\n * @returns {LabelObj} Object with label attribute and its content\n */\nvar getAriaLabel = function getAriaLabel(labelStr) {\n if (labelStr === null || labelStr === void 0 ? void 0 : labelStr.length) {\n var isLabelId = labelStr.startsWith('#');\n return {\n attribute: isLabelId ? 'aria-labelledby' : 'aria-label',\n content: isLabelId ? labelStr.substring(1) : labelStr\n };\n }\n};\n\nvar script = {\n name: 'Autocomplete',\n inheritAttrs: false,\n props: {\n search: {\n type: Function,\n required: true\n },\n baseClass: {\n type: String,\n \"default\": 'autocomplete'\n },\n autoSelect: {\n type: Boolean,\n \"default\": false\n },\n getResultValue: {\n type: Function,\n \"default\": function _default(result) {\n return result;\n }\n },\n defaultValue: {\n type: String,\n \"default\": ''\n },\n debounceTime: {\n type: Number,\n \"default\": 0\n },\n resultListLabel: {\n type: String,\n \"default\": undefined\n },\n submitOnEnter: {\n type: Boolean,\n \"default\": false\n }\n },\n data: function data() {\n var core = new AutocompleteCore({\n search: this.search,\n autoSelect: this.autoSelect,\n setValue: this.setValue,\n onUpdate: this.handleUpdate,\n onSubmit: this.handleSubmit,\n onShow: this.handleShow,\n onHide: this.handleHide,\n onLoading: this.handleLoading,\n onLoaded: this.handleLoaded,\n submitOnEnter: this.submitOnEnter\n });\n\n if (this.debounceTime > 0) {\n core.handleInput = debounce(core.handleInput, this.debounceTime);\n }\n\n return {\n core: core,\n value: this.defaultValue,\n resultListId: uniqueId(\"\".concat(this.baseClass, \"-result-list-\")),\n results: [],\n selectedIndex: -1,\n expanded: false,\n loading: false,\n position: 'below',\n resetPosition: true\n };\n },\n computed: {\n rootProps: function rootProps() {\n return {\n \"class\": this.baseClass,\n style: {\n position: 'relative'\n },\n 'data-expanded': this.expanded,\n 'data-loading': this.loading,\n 'data-position': this.position\n };\n },\n inputProps: function inputProps() {\n return _objectSpread2({\n \"class\": \"\".concat(this.baseClass, \"-input\"),\n value: this.value,\n role: 'combobox',\n autocomplete: 'off',\n autocapitalize: 'off',\n autocorrect: 'off',\n spellcheck: 'false',\n 'aria-autocomplete': 'list',\n 'aria-haspopup': 'listbox',\n 'aria-owns': this.resultListId,\n 'aria-expanded': this.expanded ? 'true' : 'false',\n 'aria-activedescendant': this.selectedIndex > -1 ? this.resultProps[this.selectedIndex].id : ''\n }, this.$attrs);\n },\n inputListeners: function inputListeners() {\n return {\n input: this.handleInput,\n keydown: this.core.handleKeyDown,\n focus: this.core.handleFocus,\n blur: this.core.handleBlur\n };\n },\n resultListProps: function resultListProps() {\n var _ref;\n\n var yPosition = this.position === 'below' ? 'top' : 'bottom';\n var ariaLabel = getAriaLabel(this.resultListLabel);\n return _ref = {\n id: this.resultListId,\n \"class\": \"\".concat(this.baseClass, \"-result-list\"),\n role: 'listbox'\n }, _defineProperty(_ref, ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.attribute, ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.content), _defineProperty(_ref, \"style\", _defineProperty({\n position: 'absolute',\n zIndex: 1,\n width: '100%',\n visibility: this.expanded ? 'visible' : 'hidden',\n pointerEvents: this.expanded ? 'auto' : 'none'\n }, yPosition, '100%')), _ref;\n },\n resultListListeners: function resultListListeners() {\n return {\n mousedown: this.core.handleResultMouseDown,\n click: this.core.handleResultClick\n };\n },\n resultProps: function resultProps() {\n var _this = this;\n\n return this.results.map(function (result, index) {\n return _objectSpread2({\n id: \"\".concat(_this.baseClass, \"-result-\").concat(index),\n \"class\": \"\".concat(_this.baseClass, \"-result\"),\n 'data-result-index': index,\n role: 'option'\n }, _this.selectedIndex === index ? {\n 'aria-selected': 'true'\n } : {});\n });\n }\n },\n mounted: function mounted() {\n document.body.addEventListener('click', this.handleDocumentClick);\n },\n beforeDestroy: function beforeDestroy() {\n document.body.removeEventListener('click', this.handleDocumentClick);\n },\n updated: function updated() {\n if (!this.$refs.input || !this.$refs.resultList) {\n return;\n }\n\n if (this.resetPosition && this.results.length > 0) {\n this.resetPosition = false;\n this.position = getRelativePosition(this.$refs.input, this.$refs.resultList);\n }\n\n this.core.checkSelectedResultVisible(this.$refs.resultList);\n },\n methods: {\n setValue: function setValue(result) {\n this.value = result ? this.getResultValue(result) : '';\n },\n handleUpdate: function handleUpdate(results, selectedIndex) {\n this.results = results;\n this.selectedIndex = selectedIndex;\n this.$emit('update', results, selectedIndex);\n },\n handleShow: function handleShow() {\n this.expanded = true;\n },\n handleHide: function handleHide() {\n this.expanded = false;\n this.resetPosition = true;\n },\n handleLoading: function handleLoading() {\n this.loading = true;\n },\n handleLoaded: function handleLoaded() {\n this.loading = false;\n },\n handleInput: function handleInput(event) {\n this.value = event.target.value;\n this.core.handleInput(event);\n },\n handleSubmit: function handleSubmit(selectedResult) {\n this.$emit('submit', selectedResult);\n },\n handleDocumentClick: function handleDocumentClick(event) {\n if (this.$refs.root.contains(event.target)) {\n return;\n }\n\n this.core.hideResults();\n }\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n const options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n let hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n const originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n const existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"root\"},[_vm._t(\"default\",[_c('div',_vm._b({},'div',_vm.rootProps,false),[_c('input',_vm._g(_vm._b({ref:\"input\",on:{\"input\":_vm.handleInput,\"keydown\":_vm.core.handleKeyDown,\"focus\":_vm.core.handleFocus,\"blur\":_vm.core.handleBlur}},'input',_vm.inputProps,false),_vm.$listeners)),_vm._v(\" \"),_c('ul',_vm._g(_vm._b({ref:\"resultList\"},'ul',_vm.resultListProps,false),_vm.resultListListeners),[_vm._l((_vm.results),function(result,index){return [_vm._t(\"result\",[_c('li',_vm._b({key:_vm.resultProps[index].id},'li',_vm.resultProps[index],false),[_vm._v(\"\\n \"+_vm._s(_vm.getResultValue(result))+\"\\n \")])],{\"result\":result,\"props\":_vm.resultProps[index]})]})],2)])],{\"rootProps\":_vm.rootProps,\"inputProps\":_vm.inputProps,\"inputListeners\":_vm.inputListeners,\"resultListProps\":_vm.resultListProps,\"resultListListeners\":_vm.resultListListeners,\"results\":_vm.results,\"resultProps\":_vm.resultProps})],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n const __vue_component__ = normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction install(Vue) {\n if (install.installed) {\n return;\n }\n\n install.installed = true;\n Vue.component('Autocomplete', __vue_component__);\n}\n\nvar plugin = {\n install: install\n}; // Auto install if Vue is found\n\nvar GlobalVue;\n\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\n\nif (GlobalVue) {\n GlobalVue.use(plugin);\n} // Inject install function into component. Allows component to be registered via\n// Vue.use() as well as Vue.component()\n\n\n__vue_component__.install = install;\n\nexport default __vue_component__;\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2Filters.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2Filters.vue?vue&type=script&lang=ts&\"","\n\n\n\n\n","import { render, staticRenderFns } from \"./ExploreV2Filters.vue?vue&type=template&id=c73ea53e&\"\nimport script from \"./ExploreV2Filters.vue?vue&type=script&lang=ts&\"\nexport * from \"./ExploreV2Filters.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ExploreV2Filters.vue?vue&type=style&index=0&id=c73ea53e&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"mobile-nav-trail d-flex align-items-center\",staticStyle:{\"height\":\"6vh\"}},[_c('div',{staticClass:\"container d-flex filter-container\"},[_c('div',{staticClass:\"filter-bar\"},[_c('button',{class:_vm.$store.getters['exploreV2/hasDistanceFilter'] ? 'btn dropbtn d-flex align-items-center active' : 'btn dropbtn d-flex align-items-center',attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.toggleDropdown('distanceDropdown')}}},[_vm._v(\"\\n Distance \"),_c('span',{staticClass:\"material-icons ml-1\",staticStyle:{\"pointer-events\":\"none\"}},[_vm._v(\"arrow_drop_down\")])]),_vm._v(\" \"),_c('button',{class:_vm.$store.getters['exploreV2/hasElevationsFilter'] ? 'btn dropbtn d-flex align-items-center active' : 'btn dropbtn d-flex align-items-center',attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.toggleDropdown('elevationDropdown')}}},[_vm._v(\"\\n Elevation \"),_c('span',{staticClass:\"material-icons ml-1\",staticStyle:{\"pointer-events\":\"none\"}},[_vm._v(\"arrow_drop_down\")])]),_vm._v(\" \"),_c('button',{class:_vm.$store.getters['exploreV2/hasDifficultyFilter'] ? 'btn dropbtn d-flex align-items-center active' : 'btn dropbtn d-flex align-items-center',attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.toggleDropdown('difficultyDropdown')}}},[_vm._v(\"\\n Difficulty \"),_c('span',{staticClass:\"material-icons ml-1\",staticStyle:{\"pointer-events\":\"none\"}},[_vm._v(\"arrow_drop_down\")])]),_vm._v(\" \"),_c('button',{class:_vm.$store.getters['exploreV2/hasSelectedTags'] ? 'btn dropbtn d-flex align-items-center active' : 'btn dropbtn d-flex align-items-center',attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.toggleDropdown('tagsDropdown')}}},[_vm._v(\"\\n Tags \"),_c('span',{staticClass:\"material-icons ml-1\",staticStyle:{\"pointer-events\":\"none\"}},[_vm._v(\"arrow_drop_down\")])]),_vm._v(\" \"),_c('button',{staticClass:\"btn text-muted\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearAllFilter}},[_vm._v(\"\\n Clear all\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn text-muted\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearAllFilter}},[_vm._v(\"\\n      \\n \")])]),_vm._v(\" \"),_vm._m(0)])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-content distanceDropdown p-3\"},[(_vm.filterDistanceRange[1] > 149)?[_c('p',[_vm._v(\"Min Dist: \"+_vm._s(_vm.filterDistanceRange[0] + _vm.currentBigUnitSymbol)+\" - Max Dist: \"+_vm._s(_vm.filterDistanceRange[1] + _vm.currentBigUnitSymbol)+\"+\")])]:[_c('p',[_vm._v(\"Min Dist: \"+_vm._s(_vm.filterDistanceRange[0] + _vm.currentBigUnitSymbol)+\" - Max Dist: \"+_vm._s(_vm.filterDistanceRange[1] + _vm.currentBigUnitSymbol))])],_vm._v(\" \"),_c('div',[_c('vue-slider',{ref:\"slider\",staticClass:\"pt-3 pb-3\",attrs:{\"min\":0,\"max\":150},scopedSlots:_vm._u([{key:\"tooltip\",fn:function({ value }){return [_vm._v(\"\\n \"+_vm._s(value)+\"km\\n \")]}}]),model:{value:(_vm.filterDistanceRange),callback:function ($$v) {_vm.filterDistanceRange=$$v},expression:\"filterDistanceRange\"}})],1),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('p',{staticClass:\"text-center p-0 m-0\"},[_c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":_vm.clearMaxDistance}},[_vm._v(\"Clear\")])])],2),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-content p-3 elevationDropdown\",attrs:{\"id\":\"elevation-dropdown\"}},[_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Low\")]),_vm._v(\" \"),_c('small',{staticClass:\"text-muted\"},[_vm._v(\"Generally flat or downhill\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.elevationClicked('Easy')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"my-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Medium\")]),_vm._v(\" \"),_c('small',{staticClass:\"text-muted\"},[_vm._v(\"Hilly in places\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.elevationClicked('Medium')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"my-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"High\")]),_vm._v(\" \"),_c('small',{staticClass:\"text-muted\"},[_vm._v(\"Steep and challenging\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.elevationClicked('Difficult')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"mt-2 mb-3\"}),_vm._v(\" \"),_c('p',{staticClass:\"text-center p-0 m-0\"},[_c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":_vm.elevationCleared}},[_vm._v(\"Clear\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-content p-3 difficultyDropdown\",attrs:{\"id\":\"difficulty-dropdown\"}},[_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Easy\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":_vm.difficulties.includes('Easy')},on:{\"click\":function($event){return _vm.difficultyClicked('Easy')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"my-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Medium\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.difficultyClicked('Medium')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"my-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Difficult\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.difficultyClicked('Difficult')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"my-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('label',{staticClass:\"checkbox-container\"},[_c('p',{staticClass:\"m-0\"},[_vm._v(\"Extra Difficult\")]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"click\":function($event){return _vm.difficultyClicked('Extra Difficult')}}}),_vm._v(\" \"),_c('span',{staticClass:\"checkmark\"})])]),_vm._v(\" \"),_c('hr',{staticClass:\"mt-2 mb-3\"}),_vm._v(\" \"),_c('p',{staticClass:\"text-center p-0 m-0\"},[_c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":_vm.difficultyCleared}},[_vm._v(\"Clear\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-content p-3 tagsDropdown\",attrs:{\"id\":\"tags-dropdown\"}},[_vm._l((_vm.activeTrailTags),function(trailTag){return _c('span',{key:trailTag.id,staticClass:\"badge badge-secondary badge-filter mb-1 active\",on:{\"click\":function($event){return _vm.activeTrailTagClicked(trailTag)}}},[_vm._v(_vm._s(trailTag))])}),_vm._v(\" \"),_vm._l((_vm.inactiveTrailTags),function(trailTag){return _c('span',{staticClass:\"badge badge-secondary badge-filter mb-1\",on:{\"click\":function($event){return _vm.inactiveTrailTagClicked(trailTag)}}},[_vm._v(_vm._s(trailTag))])}),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('p',{staticClass:\"text-center p-0 m-0\"},[_c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":_vm.clearTags}},[_vm._v(\" Clear\")])])],2),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-content p-3 ratingDropdown\",attrs:{\"id\":\"rating-dropdown\"}},[_c('p',{staticClass:\"rating d-flex align-items-center\"},[_vm._l((_vm.activeRatingCount),function(i){return _c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":function($event){return _vm.setRating(i)}}},[_c('span',{staticClass:\"material-icons active\"},[_vm._v(\"star rate\")])])}),_vm._v(\" \"),_vm._l((_vm.inactiveRatingCount),function(i){return _c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":function($event){return _vm.setRating(i)}}},[_c('span',{staticClass:\"material-icons\"},[_vm._v(\"star rate\")])])})],2),_vm._v(\" \"),_c('small',{staticClass:\"text-muted\"},[_vm._v(\" and above\")]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('p',{staticClass:\"text-center p-0 m-0\"},[_c('button',{staticClass:\"btn p-0 m-0\",on:{\"click\":_vm.clearRating}},[_vm._v(\"Clear\")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"continue d-flex align-items-center justify-content-end\"},[_c('span',{staticClass:\"material-icons\"},[_vm._v(\"\\n chevron_right\\n \")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2TrailCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2TrailCard.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2TrailListSideBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2TrailListSideBar.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./ExploreV2TrailCard.vue?vue&type=template&id=8b64ff48&\"\nimport script from \"./ExploreV2TrailCard.vue?vue&type=script&lang=js&\"\nexport * from \"./ExploreV2TrailCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ExploreV2TrailCard.vue?vue&type=style&index=0&id=8b64ff48&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"trail mb-3\",staticStyle:{\"cursor\":\"pointer\"},on:{\"click\":function($event){return _vm.trailCardClicked(_vm.hit.document)}}},[_c('div',{staticClass:\"trail-card\"},[_c('div',{staticClass:\"img-container rounded-lg position-relative\"},[_c('img',{staticClass:\"bg-img\",attrs:{\"loading\":\"lazy\",\"decoding\":\"async\",\"src\":_vm.getImage(),\"alt\":_vm.hit.document.name}}),_vm._v(\" \"),_c('div',{staticClass:\"gradient\"}),_vm._v(\" \"),_c('span',{staticClass:\"badge badge-secondary m-2\"},[_c('small',{staticClass:\"d-flex align-items-center\"},[_c('strong',[_vm._v(_vm._s(_vm.hit.document.average_rating))]),_vm._v(\" \"),_c('span',{staticClass:\"material-icons m-0\"},[_vm._v(\"star\")]),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('span',{staticClass:\"difficulty-text\"},[_c('strong',[_vm._v(_vm._s(_vm.hit.document.difficulty))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"d-block m-2 trail-details\"},[_c('p',{staticClass:\"display-6 d-block d-md-flex align-items-center mt-2 mb-0 text-white\"},[_c('strong',[_vm._v(_vm._s(_vm.hit.document.name))])]),_vm._v(\" \"),_c('p',{staticClass:\"m-0 p-0\"},[_c('small',[_vm._v(_vm._s(_vm.hit.document.short_address))])]),_vm._v(\" \"),_c('p',{staticClass:\"text-yellow m-0 p-0\"},[_c('small',[_vm._v(\"\\n \"+_vm._s(_vm.formatDistance(_vm.hit.document.distance))+\" \"),_c('span',{staticClass:\"mx-1\"},[_vm._v(\"·\")]),_vm._v(\" \"+_vm._s(_vm.formatElevation(_vm.hit.document.elevation_gain))+\" \"),_c('span',{staticClass:\"mx-1\"},[_vm._v(\"·\")]),_vm._v(\" ~\"+_vm._s(_vm.duration())+\"\\n \")])])]),_vm._v(\" \"),(_vm.hit.document.static_map_url)?_c('div',{staticClass:\"mini-map-container rounded\"},[_c('img',{staticClass:\"mini-map\",attrs:{\"src\":_vm.hit.document.static_map_url,\"alt\":\"\"}})]):_vm._e()])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"mx-1\"},[_c('strong',[_vm._v(\"·\")])])\n}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ExploreV2TrailListSideBar.vue?vue&type=template&id=68c7d0db&\"\nimport script from \"./ExploreV2TrailListSideBar.vue?vue&type=script&lang=js&\"\nexport * from \"./ExploreV2TrailListSideBar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"sidebar-container p-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_vm._m(0),_vm._v(\" \"),(_vm.typesenseResponse && _vm.hits.length > 0)?[_vm._l((_vm.hits),function(hit){return _c('ExploreV2TrailCard',{key:hit.id,attrs:{\"hit\":hit}})}),_vm._v(\" \"),(_vm.moreAvailable)?_c('button',{staticClass:\"btn btn-primary btn-block\",on:{\"click\":function($event){_vm.renderTrailCount += _vm.perPage}}},[_vm._v(\"Load more\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"d-block\",staticStyle:{\"height\":\"500px\"}})]:[_vm._m(1)]],2)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('h6',{staticClass:\"mb-2\"},[_c('strong',[_vm._v(\"Popular Trails in this area\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"card mb-3\"},[_c('div',{staticClass:\"p-2\"},[_c('p',{staticClass:\"m-0\"},[_c('strong',[_vm._v(\"No trails in this area\")])])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2SideBar.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExploreV2SideBar.vue?vue&type=script&lang=ts&\"","\n\n\n\n\n","import { render, staticRenderFns } from \"./ExploreV2SideBar.vue?vue&type=template&id=cecbb130&scoped=true&\"\nimport script from \"./ExploreV2SideBar.vue?vue&type=script&lang=ts&\"\nexport * from \"./ExploreV2SideBar.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ExploreV2SideBar.vue?vue&type=style&index=0&id=cecbb130&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cecbb130\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"right-sidebar map-sidebar\",class:_vm.sidebarVisibilityClass},[_c('ExploreV2TrailListSideBar')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explore.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-9.use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explore.vue?vue&type=script&lang=ts&\"","\n\n\n\n\n\n","import { render, staticRenderFns } from \"./Explore.vue?vue&type=template&id=4a5ba989&\"\nimport script from \"./Explore.vue?vue&type=script&lang=ts&\"\nexport * from \"./Explore.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Explore.vue?vue&type=style&index=0&id=4a5ba989&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"position-relative d-flex overflow-hidden p-0 m-0 explore viewport-height-div\",staticStyle:{\"height\":\"90vh\"}},[_c('link',{attrs:{\"href\":\"https://api.mapbox.com/mapbox-gl-js/v3.8.0/mapbox-gl.css\",\"rel\":\"stylesheet\"}}),_vm._v(\" \"),_c('div',{staticClass:\"map-container position-relative\",class:{'sidebar-active': !_vm.isSidebarHidden}},[_c('vue-topprogress',{ref:\"topProgress\",attrs:{\"height\":7,\"color\":\"#70C381\"}}),_vm._v(\" \"),_c('ExploreV2Filters'),_vm._v(\" \"),_c('MapControls',{staticStyle:{\"position\":\"absolute\",\"right\":\"20px\",\"bottom\":\"40px\"},attrs:{\"showList\":\"\"},on:{\"showListAction\":_vm.handleShowList}}),_vm._v(\" \"),_c('MapButtons',{attrs:{\"button-clicked\":_vm.mapButtonClicked,\"buttons\":_vm.buttons}}),_vm._v(\" \"),_c('Autocomplete',{attrs:{\"search\":_vm.search,\"placeholder\":\"Search for a trail or location\",\"aria-label\":\"Search for a country\",\"get-result-value\":_vm.getResultValue},on:{\"submit\":_vm.submittedAutoComplete},scopedSlots:_vm._u([{key:\"result\",fn:function({ result, props }){return [_c('li',_vm._b({staticClass:\"autocomplete-result wiki-result h-25\"},'li',props,false),[_c('div',{staticClass:\"row p-0 m-0\"},[_c('div',{staticClass:\"col-2 d-flex align-items-center p-0\"},[_c('div',{staticClass:\"badge badge-secondary\"},[(result.document.type === 'Country')?_c('span',{staticClass:\"material-icons\"},[_vm._v(\"public\")]):_vm._e(),_vm._v(\" \"),(result.document.type === 'Region')?_c('span',{staticClass:\"material-icons\"},[_vm._v(\"pin_drop\")]):_vm._e(),_vm._v(\" \"),(result.document.type === 'Trail')?_c('span',{staticClass:\"material-icons\"},[_vm._v(\"hiking\")]):_vm._e(),_vm._v(\" \"),(result.document.type === 'Park')?_c('span',{staticClass:\"material-icons\"},[_vm._v(\"nature\")]):_vm._e(),_vm._v(\" \"),(result.document.type === 'POI')?_c('span',{staticClass:\"material-icons\"},[_vm._v(\"pin_drop\")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"col-10\"},[_c('p',{staticClass:\"wiki-title m-0\"},[_c('strong',[_vm._v(_vm._s(result.document.name))])]),_vm._v(\" \"),_c('small',{staticClass:\"wiki-snippet text-muted\",domProps:{\"innerHTML\":_vm._s(result.document.short_address ?? '')}})])])])]}}])}),_vm._v(\" \"),_c('div',{ref:\"map\",staticClass:\"mapbox m-0 p-0\",attrs:{\"id\":\"map\"}}),_vm._v(\" \"),_c('button',{staticClass:\"right-sidebar-btn d-flex align-items-center\",class:{'sidebar-hidden': _vm.isSidebarHidden},on:{\"click\":_vm.hideRightSidebar}},[_c('span',{staticClass:\"material-icons mr-1\"},[_vm._v(\"\\n \"+_vm._s(_vm.isSidebarHidden ? 'chevron_left' : 'chevron_right')+\"\\n \")])]),_vm._v(\" \"),_c('TrailDataCard',{on:{\"card-active\":_vm.handleTrailCardActive}})],1),_vm._v(\" \"),_c('ExploreV2SideBar'),_vm._v(\" \"),_c('button',{staticClass:\"btn back-to-map justify-content-center\",class:{'show': !_vm.isSidebarHidden, 'hide': _vm.isSidebarHidden},on:{\"click\":_vm.hideRightSidebar}},[_vm._m(0)]),_vm._v(\" \"),_c('div',{staticClass:\"my-cool-class\",staticStyle:{\"display\":\"none\"}}),_vm._v(\" \"),_c('BaseMapStylesDialog')],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"material-icons mr-2\"},[_vm._v(\"map\")]),_vm._v(\" Back to map\\n \")])\n}]\n\nexport { render, staticRenderFns }","import store from './store/store'\nimport Explore from \"./Explore.vue\";\nimport Vue from \"vue\";\nimport mapboxgl, { Style } from \"mapbox-gl\";\nimport vueTopprogress from 'vue-top-progress';\nimport createGeoLocate from \"../utils/helpers/GeoLocateHelper\";\nimport {HiikerMapStyle} from \"../utils/models/MapStyles\";\nimport {RevenueCatUtil} from \"../utils/models/RevenueCatUser\";\nimport 'mapbox-gl/dist/mapbox-gl.css';\nimport {RevenueCatWrapper} from \"../utils/RevenueCatWrapper\";\n\ndeclare global {\n interface Window {\n vue: Vue;\n map: mapboxgl.Map;\n typesenseUrl: string;\n typesenseSearchApiKey: string;\n country_id: number | null;\n region_id: number | null;\n }\n}\n\nif (document.querySelector('#explore_v2')) {\n\n Vue.use(vueTopprogress);\n window.vue = new Vue({\n store,\n render: (createElement) => {\n return createElement(Explore)\n },\n async beforeCreate() {\n this.$store.dispatch('exploreV2/initialiseStore');\n this.$store.dispatch('mapStyles/initialiseStore');\n },\n async mounted() {\n mapboxgl.accessToken = \"pk.eyJ1IjoiaGlpa2VyLW1hcHMiLCJhIjoiY2x0YThyZHppMWhmejJqbzExODBuY3dveiJ9.nBrtnXgbzxpAx_953HCB-w\"\n const isProOrProPlus = await RevenueCatWrapper.isProOrProPlus()\n const map = new mapboxgl.Map({\n container: 'map', // container ID\n // @ts-ignore\n center: store.state.exploreV2.center, // starting position [lng, lat]\n zoom: store.state.exploreV2.zoom ?? 0, // starting zoom\n attributionControl: false,\n maxPitch: 60,\n style: HiikerMapStyle.getCurrentStyle(isProOrProPlus).styleUrl\n });\n window.map = map\n const canvas = map.getCanvasContainer();\n canvas.style.cursor = \"crosshair\";\n this.mapInitialised();\n map.on('dragend', (e) => {\n store.commit('exploreV2/setCenterAndZoom', { center: map.getCenter().toArray(), zoom: map.getZoom() })\n });\n map.on('zoomend', (e) => {\n store.commit('exploreV2/setCenterAndZoom', { center: map.getCenter().toArray(), zoom: map.getZoom() })\n })\n var initalBoundsSet = false;\n map.on('load' , () => {\n createGeoLocate();\n });\n map.on('style.load', () => {\n if (!initalBoundsSet && window.region_id == null && window.country_id == null && store.state.country == null && store.state.region == null) {\n store.dispatch('exploreV2/getLocationFromIp');\n }\n initalBoundsSet = true;\n store.dispatch('exploreV2/setRegionIfOnWindow')\n store.dispatch('exploreV2/setCountryIfOnWindow')\n store.dispatch('exploreV2/getTypesenseResponse');\n store.dispatch('exploreV2/setClusterOnMapFromTypesenseResponse')\n store.dispatch('exploreV2/setTrailOnMap', true)\n store.dispatch('exploreV2/getTypesenseResponse');\n })\n },\n methods: {\n async mapInitialised() {\n await this.$store.dispatch('exploreV2/mapInitialised');\n },\n }\n }).$mount('#explore_v2');\n}\n","import './application';\nimport './explore_v2/main.ts';\nimport 'jquery';\nimport './on_boarding/main.ts';\nimport './flyover_preview/main.ts';\n\nconsole.log(\"Hello from the Hiiker Explorer! 🌍\");\n","import { ClassTransformOptions } from '../interfaces/class-transformer-options.interface';\n\n/**\n * These are the default options used by any transformation operation.\n */\nexport const defaultOptions: Partial = {\n enableCircularCheck: false,\n enableImplicitConversion: false,\n excludeExtraneousValues: false,\n excludePrefixes: undefined,\n exposeDefaultValues: false,\n exposeUnsetFields: true,\n groups: undefined,\n ignoreDecorators: false,\n strategy: undefined,\n targetMaps: undefined,\n version: undefined,\n};\n","import { ClassTransformOptions } from './interfaces';\nimport { TransformOperationExecutor } from './TransformOperationExecutor';\nimport { TransformationType } from './enums';\nimport { ClassConstructor } from './interfaces';\nimport { defaultOptions } from './constants/default-options.constant';\n\nexport class ClassTransformer {\n // -------------------------------------------------------------------------\n // Public Methods\n // -------------------------------------------------------------------------\n\n /**\n * Converts class (constructor) object to plain (literal) object. Also works with arrays.\n */\n instanceToPlain>(object: T, options?: ClassTransformOptions): Record;\n instanceToPlain>(object: T[], options?: ClassTransformOptions): Record[];\n instanceToPlain>(\n object: T | T[],\n options?: ClassTransformOptions\n ): Record | Record[] {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, object, undefined, undefined, undefined, undefined);\n }\n\n /**\n * Converts class (constructor) object to plain (literal) object.\n * Uses given plain object as source object (it means fills given plain object with data from class object).\n * Also works with arrays.\n */\n classToPlainFromExist, P>(\n object: T,\n plainObject: P,\n options?: ClassTransformOptions\n ): T;\n classToPlainFromExist, P>(\n object: T,\n plainObjects: P[],\n options?: ClassTransformOptions\n ): T[];\n classToPlainFromExist, P>(\n object: T,\n plainObject: P | P[],\n options?: ClassTransformOptions\n ): T | T[] {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(plainObject, object, undefined, undefined, undefined, undefined);\n }\n\n /**\n * Converts plain (literal) object to class (constructor) object. Also works with arrays.\n */\n plainToInstance, V extends Array>(\n cls: ClassConstructor,\n plain: V,\n options?: ClassTransformOptions\n ): T[];\n plainToInstance, V>(\n cls: ClassConstructor,\n plain: V,\n options?: ClassTransformOptions\n ): T;\n plainToInstance, V>(\n cls: ClassConstructor,\n plain: V | V[],\n options?: ClassTransformOptions\n ): T | T[] {\n const executor = new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, plain, cls, undefined, undefined, undefined);\n }\n\n /**\n * Converts plain (literal) object to class (constructor) object.\n * Uses given object as source object (it means fills given object with data from plain object).\n * Also works with arrays.\n */\n plainToClassFromExist, V extends Array>(\n clsObject: T,\n plain: V,\n options?: ClassTransformOptions\n ): T;\n plainToClassFromExist, V>(clsObject: T, plain: V, options?: ClassTransformOptions): T[];\n plainToClassFromExist, V>(\n clsObject: T,\n plain: V | V[],\n options?: ClassTransformOptions\n ): T | T[] {\n const executor = new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(clsObject, plain, undefined, undefined, undefined, undefined);\n }\n\n /**\n * Converts class (constructor) object to new class (constructor) object. Also works with arrays.\n */\n instanceToInstance(object: T, options?: ClassTransformOptions): T;\n instanceToInstance(object: T[], options?: ClassTransformOptions): T[];\n instanceToInstance(object: T | T[], options?: ClassTransformOptions): T | T[] {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, object, undefined, undefined, undefined, undefined);\n }\n\n /**\n * Converts class (constructor) object to plain (literal) object.\n * Uses given plain object as source object (it means fills given plain object with data from class object).\n * Also works with arrays.\n */\n classToClassFromExist(object: T, fromObject: T, options?: ClassTransformOptions): T;\n classToClassFromExist(object: T, fromObjects: T[], options?: ClassTransformOptions): T[];\n classToClassFromExist(object: T, fromObject: T | T[], options?: ClassTransformOptions): T | T[] {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(fromObject, object, undefined, undefined, undefined, undefined);\n }\n\n /**\n * Serializes given object to a JSON string.\n */\n serialize(object: T, options?: ClassTransformOptions): string;\n serialize(object: T[], options?: ClassTransformOptions): string;\n serialize(object: T | T[], options?: ClassTransformOptions): string {\n return JSON.stringify(this.instanceToPlain(object, options));\n }\n\n /**\n * Deserializes given JSON string to a object of the given class.\n */\n deserialize(cls: ClassConstructor, json: string, options?: ClassTransformOptions): T {\n const jsonObject: T = JSON.parse(json);\n return this.plainToInstance(cls, jsonObject, options);\n }\n\n /**\n * Deserializes given JSON string to an array of objects of the given class.\n */\n deserializeArray(cls: ClassConstructor, json: string, options?: ClassTransformOptions): T[] {\n const jsonObject: any[] = JSON.parse(json);\n return this.plainToInstance(cls, jsonObject, options);\n }\n}\n","export enum TransformationType {\n PLAIN_TO_CLASS,\n CLASS_TO_PLAIN,\n CLASS_TO_CLASS,\n}\n","import { MetadataStorage } from './MetadataStorage';\n\n/**\n * Default metadata storage is used as singleton and can be used to storage all metadatas.\n */\nexport const defaultMetadataStorage = new MetadataStorage();\n","import { TypeMetadata, ExposeMetadata, ExcludeMetadata, TransformMetadata } from './interfaces';\nimport { TransformationType } from './enums';\n\n/**\n * Storage all library metadata.\n */\nexport class MetadataStorage {\n // -------------------------------------------------------------------------\n // Properties\n // -------------------------------------------------------------------------\n\n private _typeMetadatas = new Map>();\n private _transformMetadatas = new Map>();\n private _exposeMetadatas = new Map>();\n private _excludeMetadatas = new Map>();\n private _ancestorsMap = new Map();\n\n // -------------------------------------------------------------------------\n // Adder Methods\n // -------------------------------------------------------------------------\n\n addTypeMetadata(metadata: TypeMetadata): void {\n if (!this._typeMetadatas.has(metadata.target)) {\n this._typeMetadatas.set(metadata.target, new Map());\n }\n this._typeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n\n addTransformMetadata(metadata: TransformMetadata): void {\n if (!this._transformMetadatas.has(metadata.target)) {\n this._transformMetadatas.set(metadata.target, new Map());\n }\n if (!this._transformMetadatas.get(metadata.target).has(metadata.propertyName)) {\n this._transformMetadatas.get(metadata.target).set(metadata.propertyName, []);\n }\n this._transformMetadatas.get(metadata.target).get(metadata.propertyName).push(metadata);\n }\n\n addExposeMetadata(metadata: ExposeMetadata): void {\n if (!this._exposeMetadatas.has(metadata.target)) {\n this._exposeMetadatas.set(metadata.target, new Map());\n }\n this._exposeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n\n addExcludeMetadata(metadata: ExcludeMetadata): void {\n if (!this._excludeMetadatas.has(metadata.target)) {\n this._excludeMetadatas.set(metadata.target, new Map());\n }\n this._excludeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n\n // -------------------------------------------------------------------------\n // Public Methods\n // -------------------------------------------------------------------------\n\n findTransformMetadatas(\n target: Function,\n propertyName: string,\n transformationType: TransformationType\n ): TransformMetadata[] {\n return this.findMetadatas(this._transformMetadatas, target, propertyName).filter(metadata => {\n if (!metadata.options) return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true) return true;\n\n if (metadata.options.toClassOnly === true) {\n return (\n transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS\n );\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n\n return true;\n });\n }\n\n findExcludeMetadata(target: Function, propertyName: string): ExcludeMetadata {\n return this.findMetadata(this._excludeMetadatas, target, propertyName);\n }\n\n findExposeMetadata(target: Function, propertyName: string): ExposeMetadata {\n return this.findMetadata(this._exposeMetadatas, target, propertyName);\n }\n\n findExposeMetadataByCustomName(target: Function, name: string): ExposeMetadata {\n return this.getExposedMetadatas(target).find(metadata => {\n return metadata.options && metadata.options.name === name;\n });\n }\n\n findTypeMetadata(target: Function, propertyName: string): TypeMetadata {\n return this.findMetadata(this._typeMetadatas, target, propertyName);\n }\n\n getStrategy(target: Function): 'excludeAll' | 'exposeAll' | 'none' {\n const excludeMap = this._excludeMetadatas.get(target);\n const exclude = excludeMap && excludeMap.get(undefined);\n const exposeMap = this._exposeMetadatas.get(target);\n const expose = exposeMap && exposeMap.get(undefined);\n if ((exclude && expose) || (!exclude && !expose)) return 'none';\n return exclude ? 'excludeAll' : 'exposeAll';\n }\n\n getExposedMetadatas(target: Function): ExposeMetadata[] {\n return this.getMetadata(this._exposeMetadatas, target);\n }\n\n getExcludedMetadatas(target: Function): ExcludeMetadata[] {\n return this.getMetadata(this._excludeMetadatas, target);\n }\n\n getExposedProperties(target: Function, transformationType: TransformationType): string[] {\n return this.getExposedMetadatas(target)\n .filter(metadata => {\n if (!metadata.options) return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true) return true;\n\n if (metadata.options.toClassOnly === true) {\n return (\n transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS\n );\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n\n return true;\n })\n .map(metadata => metadata.propertyName);\n }\n\n getExcludedProperties(target: Function, transformationType: TransformationType): string[] {\n return this.getExcludedMetadatas(target)\n .filter(metadata => {\n if (!metadata.options) return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true) return true;\n\n if (metadata.options.toClassOnly === true) {\n return (\n transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS\n );\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n\n return true;\n })\n .map(metadata => metadata.propertyName);\n }\n\n clear(): void {\n this._typeMetadatas.clear();\n this._exposeMetadatas.clear();\n this._excludeMetadatas.clear();\n this._ancestorsMap.clear();\n }\n\n // -------------------------------------------------------------------------\n // Private Methods\n // -------------------------------------------------------------------------\n\n private getMetadata(\n metadatas: Map>,\n target: Function\n ): T[] {\n const metadataFromTargetMap = metadatas.get(target);\n let metadataFromTarget: T[];\n if (metadataFromTargetMap) {\n metadataFromTarget = Array.from(metadataFromTargetMap.values()).filter(meta => meta.propertyName !== undefined);\n }\n const metadataFromAncestors: T[] = [];\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n const metadataFromAncestor = Array.from(ancestorMetadataMap.values()).filter(\n meta => meta.propertyName !== undefined\n );\n metadataFromAncestors.push(...metadataFromAncestor);\n }\n }\n return metadataFromAncestors.concat(metadataFromTarget || []);\n }\n\n private findMetadata(\n metadatas: Map>,\n target: Function,\n propertyName: string\n ): T {\n const metadataFromTargetMap = metadatas.get(target);\n if (metadataFromTargetMap) {\n const metadataFromTarget = metadataFromTargetMap.get(propertyName);\n if (metadataFromTarget) {\n return metadataFromTarget;\n }\n }\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n const ancestorResult = ancestorMetadataMap.get(propertyName);\n if (ancestorResult) {\n return ancestorResult;\n }\n }\n }\n return undefined;\n }\n\n private findMetadatas(\n metadatas: Map>,\n target: Function,\n propertyName: string\n ): T[] {\n const metadataFromTargetMap = metadatas.get(target);\n let metadataFromTarget: T[];\n if (metadataFromTargetMap) {\n metadataFromTarget = metadataFromTargetMap.get(propertyName);\n }\n const metadataFromAncestorsTarget: T[] = [];\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n if (ancestorMetadataMap.has(propertyName)) {\n metadataFromAncestorsTarget.push(...ancestorMetadataMap.get(propertyName));\n }\n }\n }\n return metadataFromAncestorsTarget\n .slice()\n .reverse()\n .concat((metadataFromTarget || []).slice().reverse());\n }\n\n private getAncestors(target: Function): Function[] {\n if (!target) return [];\n if (!this._ancestorsMap.has(target)) {\n const ancestors: Function[] = [];\n for (\n let baseClass = Object.getPrototypeOf(target.prototype.constructor);\n typeof baseClass.prototype !== 'undefined';\n baseClass = Object.getPrototypeOf(baseClass.prototype.constructor)\n ) {\n ancestors.push(baseClass);\n }\n this._ancestorsMap.set(target, ancestors);\n }\n return this._ancestorsMap.get(target);\n }\n}\n","/**\n * This function returns the global object across Node and browsers.\n *\n * Note: `globalThis` is the standardized approach however it has been added to\n * Node.js in version 12. We need to include this snippet until Node 12 EOL.\n */\nexport function getGlobal() {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n }\n\n if (typeof global !== 'undefined') {\n return global;\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'window'.\n if (typeof window !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'window'.\n return window;\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'self'.\n if (typeof self !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'self'.\n return self;\n }\n}\n","export function isPromise(p: any): p is Promise {\n return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):t.vueTopProgress=e()}(this,function(){\"use strict\";function t(t,e,s){return ts?s:t}var e=function(){function t(){var s=e.shift();s&&s(t)}var e=[];return function(s){e.push(s),1===e.length&&t()}}(),s={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s(\"transition\",{attrs:{css:!1},on:{\"before-enter\":t.beforeEnter,enter:t.enter,\"after-enter\":t.afterEnter}},[t.show?s(\"div\",{staticClass:\"top-progress\",style:t.barStyle},[s(\"div\",{staticClass:\"peg\",style:t.pegStyle})]):t._e()])},staticRenderFns:[],name:\"vueTopprogress\",data:function(){return{error:!1,show:!1,progress:0,opacity:1,status:null,isPaused:!1}},props:{speed:{type:Number,default:350},color:{type:String,default:\"#29d\"},colorShadow:String,errorColor:{type:String,default:\"#f44336\"},trickle:{type:Boolean,default:!0},trickleSpeed:{type:Number,default:250},easing:{type:String,default:\"linear\"},height:{type:Number,default:3},minimum:{type:Number,default:.8},maximum:{type:Number,default:97.5},zIndex:{type:Number,default:9999}},computed:{progressColor:function(){return this.error?this.errorColor:this.color},isStarted:function(){return\"number\"==typeof this.status},boxShadow:function(){return this.colorShadow||this.progressColor},barStyle:function(){return{position:\"fixed\",top:\"0\",left:\"0\",right:\"0\",width:this.progress+\"%\",height:this.height+\"px\",backgroundColor:this.progressColor,transition:\"all \"+this.speed+\"ms \"+this.easing,opacity:\"\"+this.opacity,zIndex:\"\"+this.zIndex}},pegStyle:function(){return{display:\"block\",position:\"absolute\",right:\"0\",width:\"100px\",height:\"100%\",opacity:this.progress?\"1\":\"0\",boxShadow:\"0 0 10px \"+this.boxShadow+\", 0 0 5px \"+this.boxShadow,transform:\"rotate(3deg) translate(0px, -4px)\"}}},methods:{beforeEnter:function(t){this.opacity=0,this.progress=0,this.width=0},enter:function(t,e){this.opacity=1,e()},afterEnter:function(t){this._runStart()},_work:function(){var t=this;setTimeout(function(){t.isStarted&&!t.isPaused&&(t.increase(),t._work())},this.trickleSpeed)},_runStart:function(){this.status=100===this.progress?null:this.progress,this.trickle&&this._work()},start:function(){this.isPaused=!1,this.show?this._runStart():this.show=!0},set:function(s){var r=this;this.isPaused=!1;var i=void 0;i=this.isStarted?s=0&&s<25?3*Math.random()+3:s>=25&&s<50?3*Math.random():s>=50&&s<85?2*Math.random():s>=85&&s<99?.5:0),this.set(t(s+e,0,this.maximum))},decrease:function(t){0!==this.progress&&this.increase(-t)},done:function(){this.set(100)},getProgress:function(){return this.status?this.progress:0},pause:function(){this.isPaused=!0},fail:function(){this.error=!0,this.done()}}},r=function t(e){t.installed||e.component(s.name,s)};return\"undefined\"!=typeof window&&window.Vue&&r(window.Vue),{vueTopprogress:s,install:r}});\n","import { GetterTree } from \"vuex\";\nimport { RootState } from \"../store\";\nimport { ExploreV2State } from \"./ExploreV2Module\";\nimport { MeasurementPrefUtility } from \"../../../utils/helpers/MeasurementPref\";\nimport { distance as turfDistance } from \"@turf/turf\";\nimport { SymbolLayer } from \"mapbox-gl\";\n\nconst getters: GetterTree = {\n initialMapSettings(state) {\n return {\n container: 'map', // container ID\n // @ts-ignore\n center: state.center, // starting position [lng, lat]\n zoom: state.zoom ?? 0, // starting zoom\n attributionControl: false,\n maxPitch: 60,\n }\n },\n clusterLayer(state) {\n return {\n id: 'clusters',\n type: 'circle',\n source: 'trails',\n filter: ['has', 'point_count'],\n paint: {\n 'circle-blur': .2,\n 'circle-stroke-color': '#FFCD16',\n 'circle-stroke-width': 5,\n 'circle-color': [\n 'step',\n ['get', 'point_count'],\n '#ffffff',\n 100,\n '#f1f075',\n 750,\n '#f28cb1'\n ],\n 'circle-radius': [\n 'step',\n ['get', 'point_count'],\n 20,\n 100,\n 30,\n 750,\n 40\n ]\n }\n }\n },\n clusterCountLayer(state): SymbolLayer {\n let layer: SymbolLayer = {\n id: 'cluster-count',\n type: 'symbol',\n source: 'trails',\n filter: ['has', 'point_count'],\n layout: {\n 'text-field': '{point_count_abbreviated} +',\n 'text-font': ['Open Sans Bold', 'Arial Unicode MS Bold'],\n 'text-size': 12,\n },\n }\n return layer\n },\n hasDistanceFilter(state): boolean {\n return (state.selectedDistanceRangeMax ?? ExploreV2State.distanceRangeMax) < ExploreV2State.distanceRangeMax\n },\n hasDifficultyFilter(state): boolean {\n return state.selectedDifficulties.length != 0\n },\n hasSelectedTags(state) {\n return state.selectedTrailTags.length > 0\n },\n reversedActiveTrails(state) {\n return state.selectedTrailTags.slice().reverse()\n },\n hasElevationsFilter(state): boolean {\n return state.selectedElevations.length != 0\n },\n unclusteredPointLayer(state) {\n return {\n id: 'unclustered-point',\n type: 'circle',\n source: 'trails',\n filter: ['!', ['has', 'point_count']],\n paint: {\n 'circle-color': '#11b4da',\n 'circle-radius': 12,\n 'circle-stroke-width': 3,\n 'circle-stroke-color': '#fff'\n }\n }\n },\n filterSelectedOptionsMaxDistance(state) {\n let measurementPref = MeasurementPrefUtility.preference()\n // @ts-ignore\n return measurementPref.bigUnitFormatter(state.filterSelectedOptions.selectedDistanceRangeMax).toString()\n },\n hasfilter(state) {\n return state.selectedTrailTags.length > 0 ||\n state.selectedDistanceRangeMax != null ||\n state.selectedElevations.length > 0 ||\n state.selectedDifficulties.length > 0 ||\n state.selectedMinRating != null\n },\n getTrailGeoJsonFeature(state) {\n return JSON.parse(state.trail.lineString.geoData).features[0]\n },\n getCountryGeoJsonFeature(state) {\n return JSON.parse(state.country.polygon.boundingPolygon)\n },\n getRegionGeoJsonFeature(state) {\n return state.region.polygon ? JSON.parse(state.region.polygon.boundingPolygon) : null\n },\n createChartData(state, getters) {\n if (state.trail == null) {\n return null\n }\n const coordinates = getters.getTrailGeoJsonFeature.geometry.coordinates\n const chartdata: any = {\n labels: [],\n xLabels: [],\n lat: [],\n lon: [],\n datasets: [\n {\n borderColor: '#ffffff',\n borderWidth: 2,\n fill: false,\n data: [],\n },\n ],\n };\n let divider = 0;\n if (coordinates.length > 1000) {\n divider = Math.round(coordinates.length / 1000);\n }\n let count = 0;\n let distance = 0;\n const distances = coordinates.map((coordinate: any, index: number) => {\n if (index === 0) {\n return 0;\n } else {\n distance += Math.round(turfDistance(coordinates[index - 1], coordinate, { units: 'meters' }))\n return distance;\n }\n })\n const measurementUtils = MeasurementPrefUtility.preference()\n for (let i = 0; i < coordinates.length; i++) {\n if (count === divider) {\n count = 0;\n const coord = coordinates[i];\n chartdata.xLabels.push(measurementUtils.bigUnitFormatter(distances[i] / 1000, false));\n\n chartdata.labels.push(measurementUtils.smallUnitFormatter(coord[2]));\n chartdata.lat.push(coord[1]);\n chartdata.lon.push(coord[0]);\n chartdata.datasets[0].data.push(measurementUtils.smallUnitValue(coord[2]));\n } else {\n count++;\n }\n }\n return chartdata;\n },\n combineAndUniqueifyDifficulties(state) {\n const combinedDifficulties = [...state.selectedDifficulties, ...state.selectedElevations];\n let a = combinedDifficulties.concat();\n for (let i = 0; i < a.length; ++i) {\n for (let j = i + 1; j < a.length; ++j) {\n if (a[i] === a[j])\n a.splice(j--, 1);\n }\n }\n return a;\n },\n toFilterString(state, getters): string {\n let filterString = \"\"\n if (state.selectedDistanceRangeMax) {\n filterString += \"&&distance:[\"\n filterString += `${state.selectedDistanceRangeMin * 1000}..`\n if (state.selectedDistanceRangeMax! == ExploreV2State.distanceRangeMax) {\n filterString += `${Math.round((250000 * 1000))}`\n } else {\n filterString += `${Math.round((state.selectedDistanceRangeMax! * 1000))}`\n }\n filterString += \"]\"\n }\n if (state.selectedMinRating) {\n filterString += `&&average_rating:>=${Math.round(state.selectedMinRating)}`\n }\n let difficulties = getters.combineAndUniqueifyDifficulties\n if (difficulties.length > 0) {\n filterString += \"&&difficulty:[\"\n for (const difficulty of difficulties) {\n if (difficulty == difficulties[difficulties.length - 1]) {\n filterString += `${difficulty}]`\n } else {\n filterString += `${difficulty}, `\n }\n }\n }\n if (state.selectedTrailTags.length > 0) {\n filterString += \"&&tags:[\"\n for (const tag of state.selectedTrailTags) {\n if (tag == state.selectedTrailTags[state.selectedTrailTags.length - 1]) {\n filterString += `${tag}]`\n } else {\n filterString += `${tag}, `\n }\n }\n }\n if (state.selectedDurationRangeMin && state.selectedDurationRangeMax) {\n filterString += \"&&duration_minutes:[\"\n filterString += `${Math.round(state.selectedDurationRangeMin * 60)}..`\n if (state.selectedDurationRangeMax! == ExploreV2State.durationRangeMax) {\n filterString += `${Math.round(250000000 * 60)}`\n } else {\n filterString += `${Math.round(state.selectedDurationRangeMax * 60)}`\n filterString += \"\\((selectedDurationRange.1! * 60).roundToInt())\"\n }\n filterString += \"]\"\n }\n return filterString\n }\n}\n\nexport default getters;\n","import {gql} from \"graphql-request\";\n\nexport const GetCountry = gql`\n query GetCountry($id:ID!) {\n country(id: $id) {\n name\n trailsCount\n impressionsCount\n boundingBox\n reviewsCount\n polygon {\n id\n boundingPolygon\n }\n }\n }\n`;\n","import {gql} from \"graphql-request\";\n\nexport const GetRegion = gql`\n query GetRegion($id:ID!) {\n region(id: $id){\n name\n impressionsCount\n reviewsCount\n lonlatCoords\n polygon {\n id\n boundingPolygon\n }\n }\n }\n`;\n","import Vue from \"vue\";\nimport {ActionTree, Module, MutationTree} from \"vuex\";\nimport {RootState} from \"../store\"\nimport {MeasurementPrefUtility} from \"../../../utils/helpers/MeasurementPref\";\nimport {Difficulty, TypesenseResponse} from \"../../../utils/models/TypesenseResponse\";\nimport {plainToClass} from \"class-transformer\";\nimport getters from \"./getters\";\nimport graphClient from \"../../../utils/graphql/graph_client\";\nimport {GetTrail, GetTrailEncodedPolyline, GetTrailExplore, GetTrailTags} from \"../../../utils/graphql/trail-graph\";\nimport {bbox as turfBbox} from \"@turf/turf\";\nimport {GetCountry} from \"../../../utils/graphql/country-graph\";\nimport {SearchableDocument, SearchableHit, SearchableType} from \"../../../utils/models/TypesenseSearchable\";\nimport {GetRegion} from \"../../../utils/graphql/region_graph\";\nimport {decode} from \"@googlemaps/polyline-codec\";\nimport mapPopupHelper from \"../../../utils/views/MapPopupHelper\";\nimport mapboxgl from \"mapbox-gl\";\nimport axios from 'axios';\nimport startMarkerImage from \"../../../img/trail-start.svg\";\nimport endMarkerImage from \"../../../img/trail-end.svg\";\nimport firebase from \"../../../js/firebase\";\nimport {HikeTimeUtility, PrettyTime} from \"../../../utils/helpers/HikeTime\";\nimport {\n addStartAndEndMarkerWithLayer,\n removeStartAndEndMarkerWithLayer\n} from \"../../../utils/helpers/StartEndMarkerHelper\";\n\nlet startMarker = null;\nlet endMarker = null;\n\nexport class ExploreV2State {\n\n defaultPadding: number = 200\n center: [number, number] = [0, 0]\n zoom: number | null = null\n animateZoom: boolean = true\n searchString: string = \"\"\n typesenseResponse: TypesenseResponse | null = null\n typesensePageCount: number = 6\n trail: any = null\n trailEncodedPolyline: any = null\n triggerLoading: boolean = false\n trailTags: string[] = []\n country: any | null = null\n region: any | null = null\n\n static distanceRangeMin = 0.0\n static distanceRangeMax = 150.0\n\n selectedDistanceRangeMin: number = 0.0\n selectedDistanceRangeMax: number | null = null\n\n static elevationRangeMin = 0.0\n static elevationRangeMax = 2500.0\n\n static durationRangeMin = 0.0\n static durationRangeMax = 250.0\n\n selectedDurationRangeMin: number = 0.0\n selectedDurationRangeMax: number | null = null\n\n selectedDifficulties: string[] = []\n selectedTrailTags: string[] = []\n selectedElevations: string[] = []\n selectedMinRating: number | null = null\n}\n\nlet unclusteredFunctions: any[] = []\nlet clusteredFunctions: any[] = []\nlet enterFunctions: any[] = []\nlet exitFunctions: any[] = []\n\nlet enterClusteredFunctions: any[] = []\nlet exitClusteredFunctions: any[] = []\n\nconst actions: ActionTree = {\n async initialiseStore(store) {\n if ($(window).width() < 600) {\n store.state.defaultPadding = 10;\n }\n store.dispatch('getTrailTags')\n },\n async getLocationFromIp(store) {\n try {\n const response = await axios.get('https://api.ipapi.com/check?access_key=8ebf176fbf004316ac70ddb01c514dd9')\n const data = response.data\n window.map.flyTo({ center: [data.longitude, data.latitude], zoom: 6 })\n } catch (e) {\n console.log(e)\n }\n },\n async mapInitialised(store) {\n let measurementPreference = MeasurementPrefUtility.preference()\n window.map.addControl(new mapboxgl.ScaleControl({ unit: measurementPreference.mapbox(), maxWidth: 150 }), 'top-left');\n window.map.on('click', (e: mapboxgl.MapMouseEvent) => {\n // @ts-ignore\n const features = window.map.queryRenderedFeatures(e.point, { layers: ['clusters', 'unclustered-point', 'cluster-count'] });\n if (features.length == 0) {\n store.commit('setTrailEncodedPolyline', null)\n store.commit('setTrail', null)\n store.commit('setCountry', null)\n return store.commit('setRegion', null)\n }\n })\n\n },\n async setCountryIfOnWindow(store) {\n const countryId = window.country_id\n if (countryId) {\n store.dispatch('getCountry', countryId)\n window.country_id = null\n }\n },\n async setRegionIfOnWindow(store) {\n const countryId = window.region_id\n if (countryId) {\n store.dispatch('getRegion', countryId)\n window.region_id = null\n }\n },\n async getTypesenseResponse(store) {\n // Attempt to read the bounds directly from the map.\n // If it doesn't exist (or we’re not on the map page), fallback to null.\n let boundsToSearch = null;\n if (window.map && typeof window.map.getBounds === 'function') {\n boundsToSearch = window.map.getBounds();\n }\n\n const typeSenseResponse = await TypesenseResponse.get(\n store.state.searchString,\n store.getters.toFilterString,\n boundsToSearch,\n store.state.typesensePageCount\n );\n\n store.commit('setTypesenseResponse', typeSenseResponse);\n },\n setClusterOnMapFromTypesenseResponse(store) {\n const map = window.map\n let typesenseResponse = plainToClass(TypesenseResponse, store.state.typesenseResponse)\n if (typesenseResponse) {\n const clusterLayer = store.getters.clusterLayer\n const clusterCountLayer = store.getters.clusterCountLayer\n const unclusteredPointLayer = store.getters.unclusteredPointLayer\n\n if (map.getLayer(unclusteredPointLayer.id)) {\n map.removeLayer(unclusteredPointLayer.id)\n }\n if (map.getLayer(clusterCountLayer.id)) {\n map.removeLayer(clusterCountLayer.id)\n }\n if (map.getLayer(clusterLayer.id)) {\n map.removeLayer(clusterLayer.id)\n }\n if (map.getSource('trails')) {\n map.removeSource('trails')\n }\n map.addSource('trails', {\n type: 'geojson',\n // @ts-ignore\n data: typesenseResponse.toGeoJson(),\n cluster: true,\n clusterMaxZoom: 9,\n clusterRadius: 30\n });\n map.addLayer(clusterLayer);\n map.addLayer(clusterCountLayer);\n map.addLayer(unclusteredPointLayer);\n\n // @ts-ignore\n function clusteredPointClick(e: mapboxgl.MapMouseEvent) {\n const features = map.queryRenderedFeatures(e.point, {\n layers: ['clusters']\n });\n // @ts-ignore\n const clusterId = features[0].properties.cluster_id;\n // @ts-ignore\n map.getSource('trails').getClusterExpansionZoom(\n clusterId,\n (err, zoom) => {\n if (err) return;\n\n map.jumpTo({\n // @ts-ignore\n center: features[0].geometry.coordinates,\n zoom: zoom\n });\n }\n );\n }\n\n clusteredFunctions.forEach((f) => {\n map.off('click', 'clusters', f)\n })\n clusteredFunctions = []\n clusteredFunctions.push(clusteredPointClick)\n\n map.off('click', 'clusters', clusteredPointClick)\n map.on('click', 'clusters', clusteredPointClick);\n\n // @ts-ignore\n async function unclusteredPointClick(e: mapboxgl.MapMouseEvent) {\n const features = window.map.queryRenderedFeatures(e.point, {\n layers: ['unclustered-point']\n });\n const feature = features[0]\n // @ts-ignore\n const id = feature.properties.id\n await store.dispatch('getTrail', id)\n }\n\n unclusteredFunctions.forEach((func) => {\n map.off('click', 'unclustered-point', func)\n })\n\n unclusteredFunctions = []\n\n unclusteredFunctions.push(unclusteredPointClick)\n map.on('click', 'unclustered-point', unclusteredPointClick)\n\n var popup: mapboxgl.Popup | null = null\n\n // @ts-ignore\n async function enterPoint(e: mapboxgl.MapMouseEvent) {\n map.getCanvas().style.cursor = 'pointer';\n const features = window.map.queryRenderedFeatures(e.point, {\n layers: ['unclustered-point']\n });\n\n const feature = features[0]\n // @ts-ignore\n const id = feature.properties.id\n store.dispatch('getTrailEncodedPolyline', id)\n let measurementPreference = MeasurementPrefUtility.preference()\n let hikeTime = HikeTimeUtility.preference().secondsDuration(feature.properties.elevation_gain, feature.properties.distance)\n let prettyTime = \"~\" + new PrettyTime(hikeTime).prettyTime()\n let image = feature.properties.jumbo_image\n if (!image) {\n image = feature.properties.mobile_static_map_image_url\n }\n popup = new mapboxgl.Popup({ closeOnClick: true })\n .setLngLat(feature.geometry.coordinates)\n .setHTML(mapPopupHelper(\n feature.properties.name,\n feature.properties.difficulty,\n feature.properties.short_address,\n feature.properties.average_rating,\n measurementPreference.smallUnitFormatter(feature.properties.distance, true),\n prettyTime,\n measurementPreference.smallUnitFormatter(feature.properties.elevation_gain, true),\n image,\n feature.properties.country_slug,\n feature.properties.region_slug,\n feature.properties.trail_slug\n ))\n .addTo(map)\n\n // If mobile size show bottom sheet\n if ($(window).width() < 600) {\n // $('.right-sidebar, .left-sidebar, .back-to-map').toggleClass('active');\n }\n }\n\n // @ts-ignore\n async function exitPoint(e: mapboxgl.MapMouseEvent) {\n map.getCanvas().style.cursor = '';\n setTimeout(() => {\n store.commit('setTrailEncodedPolyline', null)\n }, 500)\n popup?.remove()\n }\n\n // @ts-ignore\n function enterClusteredPoint() {\n map.getCanvas().style.cursor = 'pointer';\n }\n\n // @ts-ignore\n function exitClusteredPoint() {\n map.getCanvas().style.cursor = '';\n }\n\n enterClusteredFunctions.forEach((f) => {\n map.off('mouseenter', 'clusters', f)\n })\n enterClusteredFunctions = []\n enterClusteredFunctions.push(enterClusteredPoint)\n\n map.on('mouseenter', 'clusters', enterClusteredPoint);\n\n exitClusteredFunctions.forEach((f) => {\n map.off('mouseleave', 'clusters', f)\n })\n exitClusteredFunctions = []\n exitClusteredFunctions.push(exitClusteredPoint)\n\n map.on('mouseleave', 'clusters', exitClusteredPoint);\n\n enterFunctions.forEach((f) => {\n map.off('mouseenter', 'unclustered-point', f)\n })\n enterFunctions = []\n enterFunctions.push(enterPoint)\n\n if(window.innerWidth > 600){\n map.on('mouseenter', 'unclustered-point', enterPoint);\n }\n\n\n exitFunctions.forEach((f) => {\n map.off('mouseleave', 'unclustered-point', f)\n })\n exitFunctions = []\n exitFunctions.push(exitPoint)\n\n\n map.on('mouseleave', 'unclustered-point', exitPoint);\n }\n },\n async easeToCenter(store, center: [number, number]) {\n store.commit('setCenter', center)\n const map = window.map\n map.jumpTo({\n center: center,\n zoom: 9\n });\n },\n async getTrailEncodedPolyline(store, id: number) {\n let headers = {};\n try {\n const appCheckTokenResponse = await firebase.appCheck().getToken(false);\n headers = { 'X-Firebase-AppCheck': appCheckTokenResponse.token }\n } catch (e) {\n console.error(e);\n }\n let trailEncodedPolyline = await graphClient.request(GetTrailEncodedPolyline,\n {id: id}, headers,\n )\n await store.commit('setTrailEncodedPolyline', trailEncodedPolyline.trail)\n },\n unclusteredPointClick(store, e: mapboxgl.MapMouseEvent) {\n },\n async getTrail(store, id: number) {\n try {\n store.commit('toggleTriggerLoading')\n let headers = {};\n try {\n const appCheckTokenResponse = await firebase.appCheck().getToken(false);\n headers = { 'X-Firebase-AppCheck': appCheckTokenResponse.token }\n } catch (e) {\n console.error(e);\n }\n let trailRequest = await graphClient.request(GetTrailExplore,\n {id: id}, headers,\n )\n store.commit('setTrail', trailRequest.trail)\n } catch (e) {\n // error\n console.error(e)\n }\n },\n async setTrailEncodedPolylineOnMap(store) {\n const map = window.map\n const trail = store.state.trailEncodedPolyline\n store.dispatch('removeTrailEncodedPolylineFromMap')\n if (trail && trail.lineString) {\n let polyline = decode(trail.lineString.encodedPolyline)\n let feature = {\n type: 'Feature',\n geometry: {\n type: 'LineString',\n coordinates: polyline.map((p: any) => [p[1], p[0]])\n\n }\n }\n const trailLayer = await store.dispatch('getEncodedPolylineLayer')\n map.addSource('trail-encoded-polyline', {\n type: \"geojson\",\n // @ts-ignore\n data: feature,\n })\n map.addLayer(trailLayer, 'clusters')\n }\n },\n removeTrailEncodedPolylineFromMap(store) {\n const map = window.map\n if (map.getLayer('trail-encoded-polyline')) {\n map.removeLayer('trail-encoded-polyline')\n }\n if (map.getSource('trail-encoded-polyline')) {\n map.removeSource('trail-encoded-polyline')\n }\n if (startMarker) {\n startMarker.remove();\n startMarker = null;\n }\n if (endMarker) {\n endMarker.remove();\n endMarker = null;\n }\n },\n async setTrailOnMap(store, skipBounds: boolean = false) {\n const map = window.map\n const trail = store.state.trail\n store.dispatch('removeTrailFromMap')\n store.dispatch('removeCountryFromMap')\n if (trail) {\n const trailLayer = await store.dispatch('getTrailLayer')\n map.addSource('trail', {\n type: \"geojson\",\n // @ts-ignore\n data: store.getters.getTrailGeoJsonFeature,\n })\n map.addLayer(trailLayer, 'clusters')\n map.resize()\n const start = store.getters.getTrailGeoJsonFeature.geometry.coordinates[0]\n const end = store.getters.getTrailGeoJsonFeature.geometry.coordinates[store.getters.getTrailGeoJsonFeature.geometry.coordinates.length - 1]\n addStartAndEndMarkerWithLayer(start, end)\n if (!skipBounds) {\n await store.dispatch('setMapBoundsFromPolygonGeojson', { geoJson: store.getters.getTrailGeoJsonFeature, duration: 0 })\n }\n await store.dispatch('addPolylineArrowLayerToMap')\n }\n },\n removeTrailFromMap(store) {\n const map = window.map\n if (map.getLayer('trail')) {\n map.removeLayer('trail')\n }\n if (map.getLayer('trail-arrow')) {\n map.removeLayer('trail-arrow')\n }\n if (map.getSource('trail')) {\n map.removeSource('trail')\n }\n if (startMarker) {\n startMarker.remove();\n startMarker = null;\n }\n if (endMarker) {\n endMarker.remove();\n endMarker = null;\n }\n removeStartAndEndMarkerWithLayer()\n },\n async setCountryOnMap(store) {\n const map = window.map\n const country = store.state.country\n await store.dispatch('removeTrailFromMap')\n await store.dispatch('removeCountryFromMap')\n if (country) {\n const countryLayer = await store.dispatch('getCountryLayer')\n if (country.polygon) {\n setTimeout(() => {\n map.addSource('country', {\n type: \"geojson\",\n // @ts-ignore\n data: store.getters.getCountryGeoJsonFeature,\n })\n map.addLayer(countryLayer, 'clusters')\n }, 1000)\n }\n if (country.boundingBox) {\n await store.dispatch('setMapBoundsFromBoundingBox', country.boundingBox)\n }\n }\n },\n removeCountryFromMap(store) {\n const map = window.map\n if (map.getLayer('country')) {\n map.removeLayer('country')\n }\n if (map.getSource('country')) {\n map.removeSource('country')\n }\n },\n async setRegionOnMap(store) {\n const map = window.map\n const country = store.state.region\n if (map.getLayer('country')) {\n map.removeLayer('country')\n }\n if (map.getSource('country')) {\n map.removeSource('country')\n }\n if (country) {\n const countryLayer = await store.dispatch('getCountryLayer')\n map.addSource('country', {\n type: \"geojson\",\n // @ts-ignore\n data: store.getters.getRegionGeoJsonFeature,\n })\n map.addLayer(countryLayer, 'clusters')\n const geoJson = store.getters.getRegionGeoJsonFeature\n if (geoJson) {\n await store.dispatch('setMapBoundsFromPolygonGeojson', { geoJson: store.getters.getRegionGeoJsonFeature, duration: 0 })\n } else {\n store.dispatch('easeToCenter', [country.lonlatCoords[0], country.lonlatCoords[1]])\n }\n }\n },\n addPolylineArrowLayerToMap(\n store,\n ) {\n const arrowLayer = 'trail-arrow'\n const targetLayer = 'trail'\n const map = window.map\n const url = \"https://i.postimg.cc/3JMHRKJ3/polyline-arrow-symbol.png\";\n map.loadImage(url, (error?: Error | undefined, result?: HTMLImageElement | ImageBitmap | undefined) => {\n if (error) {\n return;\n }\n if (map.hasImage(arrowLayer)) {\n map.removeImage(arrowLayer);\n }\n map.addImage(arrowLayer, result as ImageBitmap);\n if (map.getLayer(arrowLayer)) {\n map.removeLayer(arrowLayer);\n }\n map.addLayer({\n id: arrowLayer,\n type: \"symbol\",\n source: targetLayer,\n layout: {\n \"symbol-placement\": \"line\",\n \"icon-allow-overlap\": true,\n 'icon-ignore-placement': true,\n \"icon-image\": arrowLayer,\n \"icon-size\": 0.045,\n visibility: \"visible\",\n },\n });\n });\n },\n setMapBoundsFromPolygonGeojson(store, data: { geoJson: GeoJSON.Feature, duration: number }) {\n const map = window.map\n const newBbox = turfBbox(data.geoJson);\n // @ts-ignore\n const bounds = mapboxgl.LngLatBounds.convert(newBbox);\n map.fitBounds(bounds, { padding: store.state.defaultPadding });\n },\n setMapBoundsFromBoundingBox(store, bounds: [number, number, number, number]) {\n const map = window.map\n map.fitBounds(bounds, { padding: store.state.defaultPadding });\n },\n async getTrailLayer(store): Promise {\n // Get the trail GeoJSON feature\n const trailGeoJsonFeature = store.getters.getTrailGeoJsonFeature;\n\n // Extract coordinates from the trail GeoJSON\n const coordinates = trailGeoJsonFeature.geometry.coordinates;\n\n // Identify start and end coordinates\n const startCoordinates = coordinates[0];\n const endCoordinates = coordinates[coordinates.length - 1];\n\n // Create custom start marker\n const startMarkerEl = document.createElement('div');\n startMarkerEl.className = 'custom-marker';\n startMarkerEl.style.backgroundImage = `url(${startMarkerImage})`; // Replace with your image path\n startMarkerEl.style.width = '28px';\n startMarkerEl.style.height = '28px';\n startMarkerEl.style.backgroundSize = 'cover';\n\n // Create custom end marker\n const endMarkerEl = document.createElement('div');\n endMarkerEl.className = 'custom-marker';\n endMarkerEl.style.backgroundImage = `url(${endMarkerImage})`; // Replace with your image path\n endMarkerEl.style.width = '28px';\n endMarkerEl.style.height = '28px';\n endMarkerEl.style.backgroundSize = 'cover';\n\n// Create and add the start marker\n startMarker = new mapboxgl.Marker(startMarkerEl)\n .setLngLat([startCoordinates[0], startCoordinates[1]])\n .addTo(window.map);\n\n // Create and add the end marker\n endMarker = new mapboxgl.Marker(endMarkerEl)\n .setLngLat([endCoordinates[0], endCoordinates[1]])\n .addTo(window.map);\n\n // Return the trail layer configuration\n return {\n id: 'trail',\n type: \"line\",\n source: 'trail',\n layout: {\n \"line-join\": \"round\",\n \"line-cap\": \"round\",\n },\n paint: {\n \"line-color\": \"#DB2B35\",\n \"line-width\": 5,\n }\n };\n },\n async getEncodedPolylineLayer(store): Promise {\n return {\n id: 'trail-encoded-polyline',\n type: \"line\",\n source: 'trail-encoded-polyline',\n layout: {\n \"line-join\": \"round\",\n \"line-cap\": \"round\",\n },\n paint: {\n \"line-color\": \"#DB2B35\",\n \"line-width\": 5,\n }\n }\n },\n async getCountryLayer(store): Promise {\n return {\n id: 'country',\n type: \"fill\",\n source: 'country',\n paint: {\n \"line-color\": \"#F57700\",\n \"line-width\": 5,\n \"fill-color\": \"#F57700\",\n \"fill-opacity\": 0.20,\n }\n }\n },\n async getTrailTags(store) {\n try {\n let tagsResponse = await graphClient.request(GetTrailTags)\n let tags = tagsResponse.tags.map(t => t.name).filter(onlyUnique)\n store.commit('setTrailTags', tags)\n } catch (e) {\n\n }\n },\n async getCountry(store, countryId: number) {\n try {\n let countryResponse = await graphClient.request(GetCountry, { id: countryId })\n store.commit('setCountry', countryResponse.country)\n } catch (e) {\n\n }\n },\n async getRegion(store, regionId: number) {\n try {\n let regionResponse = await graphClient.request(GetRegion, { id: regionId })\n store.commit('setRegion', regionResponse.region)\n } catch (e) {\n\n }\n },\n async searchableSelected(store, searchableHit: SearchableHit) {\n let document = plainToClass(SearchableDocument, searchableHit.document)\n switch (document.getSearchableType()) {\n case SearchableType.Trail:\n await store.dispatch('getTrail', document.getItemId())\n break\n case SearchableType.Country:\n await store.dispatch('getCountry', document.getItemId())\n break\n case SearchableType.Region:\n await store.dispatch('getRegion', document.getItemId())\n case SearchableType.Park:\n window.location.href = document.url\n break\n case SearchableType.POI:\n const lngLat = [document.location[1], document.location[0]]\n window.map.flyTo({\n center: lngLat,\n zoom: 12,\n speed: 1.5, // Adjust speed of transition\n curve: 1, // Adjust smoothness of transition\n essential: true // Ensures animation is always applied\n });\n }\n\n }\n}\n\nfunction onlyUnique(value, index, self) {\n return self.indexOf(value) === index;\n}\n\nconst mutations: MutationTree = {\n setTypesensePageCount(state, typesensePageCount: number) {\n state.typesensePageCount = typesensePageCount\n },\n setAnimateZoom(state, animateZoom: boolean) {\n state.animateZoom = animateZoom\n },\n setDefaultPadding(state, padding: number) {\n state.defaultPadding = padding\n },\n setTrailEncodedPolyline(state, polyline: string) {\n state.trailEncodedPolyline = polyline\n },\n setRegion(state, region: any) {\n state.region = region\n },\n setCountry(state, country: any) {\n state.country = country\n },\n clearRating(state) {\n state.selectedMinRating = null\n },\n setRating(state, rating: number) {\n state.selectedMinRating = rating\n },\n removeTrailTag(state, tag: string) {\n state.selectedTrailTags.splice(state.selectedTrailTags.indexOf(tag), 1)\n },\n addTrailTag(state, tag: string) {\n state.selectedTrailTags.push(tag)\n },\n setSelectedTrailTags(state, tags: string[]) {\n state.selectedTrailTags = tags\n },\n setTrailTags(state, tags: string[]) {\n state.trailTags = tags\n },\n toggleTriggerLoading(state) {\n state.triggerLoading = !state.triggerLoading\n },\n setSearchString(state, searchString: string) {\n state.searchString = searchString\n },\n setCenter(state, center: [number, number]) {\n state.center = center\n },\n setTypesenseResponse(state, typesenseResponse: TypesenseResponse) {\n state.typesenseResponse = typesenseResponse\n },\n setZoom(state, zoom: number) {\n state.zoom = zoom\n },\n setCenterAndZoom(state, centerAndZoom: { center: [number, number], zoom: number }) {\n state.center = centerAndZoom.center\n state.zoom = centerAndZoom.zoom\n },\n setDistanceRangeMax(state, mxDistance: number) {\n state.selectedDistanceRangeMax = mxDistance\n },\n setDistanceRangeMin(state, mxDistance: number) {\n state.selectedDistanceRangeMin = mxDistance\n },\n restore(state, savedState) {\n Object.assign(state, savedState)\n },\n setDifficulties(state, difficulties: Difficulty[]) {\n state.selectedDifficulties = difficulties\n },\n setElevations(state, elevationDifficulties: Difficulty[]) {\n state.selectedElevations = elevationDifficulties\n },\n setTrail(state, trail: object) {\n state.trail = trail\n }\n}\n\nconst state = Vue.observable(new ExploreV2State());\n\nexport default class ExploreV2Module implements Module {\n namespaced = true\n state = state\n actions = actions\n mutations = mutations\n getters = getters\n}\n","// @ts-ignore\nimport popup from './map_popup.html';\n\nexport default function mapPopupHelper(\n name: string,\n difficulty: string,\n short_address: string,\n average_rating: string,\n distance: string,\n duration_string: string,\n elevation_gain: string,\n jumbo_image: string,\n countrySlug: string,\n regionSlug: string,\n trailSlug: string\n) {\n return popup.split('{{name}}').join(name)\n .split('{{difficulty}}').join(difficulty)\n .split('{{short_address}}').join(short_address)\n .split('{{average_rating}}').join(average_rating)\n .split('{{distance}}').join(distance)\n .split('{{duration_string}}').join(duration_string)\n .split('{{elevation_gain}}').join(elevation_gain)\n .split('{{jumbo_image}}').join(jumbo_image)\n .split('{{country_slug}}').join(countrySlug)\n .split('{{region_slug}}').join(regionSlug)\n .split('{{trail_slug}}').join(trailSlug)\n}\n","import startMarker from \"../../img/trail-start.svg\";\nimport endMarker from \"../../img/trail-end.svg\";\nimport mapboxgl from 'mapbox-gl';\n\nvar trailStartMarker = null\nvar trailEndMarker = null\n\nexport function addStartAndEndMarkers(startCoordinates, endCoordinates) {\n const startMarkerEl = document.createElement('div');\n startMarkerEl.className = 'custom-marker';\n startMarkerEl.style.backgroundImage = `url(${startMarker})`; // Replace with your image path\n startMarkerEl.style.width = '23px';\n startMarkerEl.style.height = '23px';\n startMarkerEl.style.backgroundSize = 'cover';\n\n // Create custom end marker\n const endMarkerEl = document.createElement('div');\n endMarkerEl.className = 'custom-marker';\n endMarkerEl.style.backgroundImage = `url(${endMarker})`; // Replace with your image path\n endMarkerEl.style.width = '23px';\n endMarkerEl.style.height = '23px';\n endMarkerEl.style.backgroundSize = 'cover';\n\n removeStartAndEndMarkers();\n\n // Create and add the start marker\n trailStartMarker = new mapboxgl.Marker(startMarkerEl)\n .setLngLat([startCoordinates[0], startCoordinates[1]])\n .addTo(window.map);\n\n // Create and add the end marker\n trailEndMarker = new mapboxgl.Marker(endMarkerEl)\n .setLngLat([endCoordinates[0], endCoordinates[1]])\n .addTo(window.map);\n}\n\nexport function addStartAndEndMarkerWithLayer(startCoordinates, endCoordinates) {\n // Remove existing start marker layer and source, if any\n if (window.map.getLayer('trail-start')) {\n window.map.removeLayer('trail-start');\n }\n if (window.map.getSource('trail-start')) {\n window.map.removeSource('trail-start');\n }\n\n window.map.addSource('trail-start', {\n type: 'geojson',\n data: {\n type: 'Feature',\n geometry: {\n type: 'Point',\n coordinates: startCoordinates\n },\n properties: {}\n }\n });\n\n window.map.addLayer({\n id: 'trail-start',\n type: 'circle',\n source: 'trail-start',\n paint: {\n 'circle-radius': 12,\n 'circle-color': '#70C381',\n 'circle-opacity': 1,\n 'circle-stroke-color': '#ffffff',\n 'circle-stroke-width': 2,\n 'circle-stroke-opacity': 1\n }\n });\n\n // Remove existing end marker layer and source, if any\n if (window.map.getLayer('trail-end')) {\n window.map.removeLayer('trail-end');\n }\n if (window.map.getSource('trail-end')) {\n window.map.removeSource('trail-end');\n }\n\n window.map.addSource('trail-end', {\n type: 'geojson',\n data: {\n type: 'Feature',\n geometry: {\n type: 'Point',\n coordinates: endCoordinates\n },\n properties: {}\n }\n });\n\n window.map.addLayer({\n id: 'trail-end',\n type: 'circle',\n source: 'trail-end',\n paint: {\n 'circle-radius': 12,\n 'circle-color': '#DB2B35',\n 'circle-opacity': 1,\n 'circle-stroke-color': '#ffffff',\n 'circle-stroke-width': 2,\n 'circle-stroke-opacity': 1\n }\n });\n}\n\nexport function removeStartAndEndMarkerWithLayer() {\n if (window.map.getLayer('trail-start')) {\n window.map.removeLayer('trail-start');\n }\n if (window.map.getSource('trail-start')) {\n window.map.removeSource('trail-start');\n }\n if (window.map.getLayer('trail-end')) {\n window.map.removeLayer('trail-end');\n }\n if (window.map.getSource('trail-end')) {\n window.map.removeSource('trail-end');\n }\n}\n\nexport function removeStartAndEndMarkers() {\n if (trailStartMarker) {\n trailStartMarker.remove();\n }\n if (trailEndMarker) {\n trailEndMarker.remove();\n }\n}\n\n\n","import Vue from \"vue\";\nimport Vuex, { Store } from \"vuex\";\nimport MapStylesDialogModule, {\n MapStylesState\n} from \"../../base_map_styles_dialog/store/modules/BaseMapStylesDialogModule\";\nimport ExploreV2Module, { ExploreV2State } from \"./modules/ExploreV2Module\";\n\nVue.use(Vuex)\n\nexport interface RootState {\n mapStyles: MapStylesState,\n exploreV2: ExploreV2State\n}\n\nconst store: Store = new Vuex.Store({\n modules: {\n mapStyles: new MapStylesDialogModule(),\n exploreV2: new ExploreV2Module(),\n }\n})\n\nstore.subscribe((mutation, state) => {\n if (\n mutation.type === 'exploreV2/setSearchString' ||\n mutation.type === 'exploreV2/setCenterAndZoom'\n ) {\n store.dispatch('exploreV2/getTypesenseResponse')\n }\n if (\n mutation.type === 'exploreV2/setDistanceRangeMax' ||\n mutation.type === 'exploreV2/setElevations' ||\n mutation.type === 'exploreV2/setDifficulties' ||\n mutation.type === 'exploreV2/removeTrailTag' ||\n mutation.type === 'exploreV2/addTrailTag' ||\n mutation.type === 'exploreV2/setSelectedTrailTags'\n ) {\n store.dispatch('exploreV2/getTypesenseResponse')\n }\n if (mutation.type === 'exploreV2/setTypesenseResponse') {\n store.dispatch('exploreV2/setClusterOnMapFromTypesenseResponse')\n }\n if (mutation.type === 'exploreV2/setTrail') {\n store.commit(\"exploreV2/setCountry\", null)\n store.commit(\"exploreV2/setRegion\", null)\n store.dispatch('exploreV2/setTrailOnMap')\n }\n if (mutation.type === 'exploreV2/setCountry') {\n store.dispatch('exploreV2/setCountryOnMap')\n }\n if (mutation.type === 'exploreV2/setRegion') {\n store.dispatch('exploreV2/setRegionOnMap')\n }\n if (mutation.type === 'exploreV2/setTrailEncodedPolyline') {\n store.dispatch('exploreV2/setTrailEncodedPolylineOnMap')\n }\n})\n\nexport default store;\n","import mapboxgl from \"mapbox-gl\";\n\nexport default function createGeoLocate() {\n const map = window.map;\n const geolocate = new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true,\n },\n trackUserLocation: true,\n showUserLocation: true,\n showAccuracyCircle: true,\n });\n\n // Handle successful geolocation\n geolocate.on(\"geolocate\", (event) => {\n window.geolocateLocated();\n });\n\n // Handle geolocation errors\n geolocate.on(\"error\", (error) => {\n console.error(\"Error getting location:\", error);\n window.geolocateError();\n // alert(\"Error getting location: \" + error.message);\n });\n\n // Custom method to check permissions and trigger geolocation\n geolocate.permissionAndTrigger = () => {\n if (\"geolocation\" in navigator) {\n navigator.permissions\n .query({ name: \"geolocation\" })\n .then((result) => {\n if (result.state === \"granted\") {\n geolocate.trigger();\n } else if (result.state === \"prompt\") {\n navigator.geolocation.getCurrentPosition(\n () => {\n geolocate.trigger();\n },\n () => {\n console.error(\"User denied permission to access location\");\n alert(\"User denied permission to access location\");\n window.geolocateError();\n }\n );\n } else {\n console.error(\"User denied permission to access location\");\n alert(\"Please enable location services to use this feature\");\n window.geolocateError();\n }\n })\n .catch((error) => {\n console.error(\"Permission query failed:\", error);\n window.geolocateError();\n alert(\"Failed to check location permissions: \" + error.message);\n });\n } else {\n alert(\"Geolocation is not available on your device. Please contact support@hiiker.co\");\n console.error(\"Geolocation is not available\");\n window.geolocateError();\n }\n };\n\n // Add the control to the map\n map.addControl(geolocate);\n\n // Hide the default button after the map loads\n const hideGeolocateButton = () => {\n const element = document.querySelector(\".mapboxgl-ctrl-geolocate\");\n if (element) {\n element.style.display = \"none\";\n } else {\n console.warn(\"Element not found in the DOM.\");\n }\n };\n\n let mapRenderInstance = null;\n\n const mapRendered = () => {\n console.log(\"Map rendered\");\n if (map.loaded()) {\n console.log(\"Map loaded, hiding button now\");\n hideGeolocateButton();\n map.off(\"render\", mapRenderInstance);\n }\n }\n\n// Run if already loaded, or wait for load if not\n if (map.loaded()) {\n console.log(\"Map already loaded, hiding button now\");\n hideGeolocateButton();\n } else {\n console.log(\"Map not loaded, waiting for events\");\n map.on(\"load\", () => {\n console.log(\"Map 'load' event fired\");\n hideGeolocateButton();\n });\n mapRenderInstance = mapRendered;\n map.on(\"render\", mapRenderInstance);\n }\n\n // Expose the geolocate control globally\n window.geoLocate = geolocate;\n}\n","// To parse this data:\n//\n// import { Convert, TypesenseSearchable } from \"./file\";\n//\n// const typesenseSearchable = Convert.toTypesenseSearchable(json);\n//\n// These functions will throw an error if the JSON doesn't\n// match the expected interface, even if the JSON is valid.\n\nimport axios from \"axios\";\nimport {plainToClass} from \"class-transformer\";\n\nexport class TypesenseSearchable {\n facet_counts: any[];\n found: number;\n hits: SearchableHit[];\n out_of: number;\n page: number;\n request_params: RequestParams;\n search_cutoff: boolean;\n search_time_ms: number;\n\n constructor(facet_counts: any[], found: number, hits: SearchableHit[], out_of: number, page: number, request_params: RequestParams, search_cutoff: boolean, search_time_ms: number) {\n this.facet_counts = facet_counts;\n this.found = found;\n this.hits = hits;\n this.out_of = out_of;\n this.page = page;\n this.request_params = request_params;\n this.search_cutoff = search_cutoff;\n this.search_time_ms = search_time_ms;\n }\n\n static async get(\n query: string = \"*\",\n perPage: number = 250\n ): Promise {\n const axiosClient = axios.create({\n headers: {\n 'x-typesense-api-key': window.typesenseSearchApiKey,\n },\n })\n let url = this.createTypesenseURL(query, perPage)\n\n try {\n let response = await axiosClient(url)\n let jsonObject = response.data as Object;\n return plainToClass(TypesenseSearchable, jsonObject)\n } catch (e) {\n return null\n }\n }\n\n static createTypesenseURL(\n query: string = \"*\",\n perPage: number = 100\n ): string {\n let urlBase = 'https://' + window.typesenseUrl + \"/collections/searchable/documents/search\"\n const url = new URL(urlBase);\n\n url.searchParams.append(\"q\", query);\n url.searchParams.append(\"per_page\", `${perPage}`);\n url.searchParams.append(\"query_by\", \"name,short_address\")\n return url.href\n }}\n\nexport interface SearchableHit {\n document: SearchableDocument;\n highlights: Highlight[];\n text_match: number;\n}\n\nexport class SearchableDocument {\n id: string;\n impressions_count: number;\n location: number[];\n name: string;\n region_name: string;\n short_address: string;\n thumbnail_url: string;\n type: string;\n url: string;\n\n constructor(\n id: string,\n impressions_count: number,\n location: number[],\n name: string,\n region_name: string,\n short_address: string,\n thumbnail_url: string,\n type: string,\n url: string\n ) {\n this.id = id;\n this.impressions_count = impressions_count;\n this.location = location;\n this.name = name;\n this.region_name = region_name;\n this.short_address = short_address;\n this.thumbnail_url = thumbnail_url;\n this.type = type;\n this.url = url;\n }\n\n getItemId(): string {\n return this.id.split(this.type + \"_\")[1]\n }\n\n getSearchableType(): SearchableType {\n return this.type as SearchableType\n }\n\n\n\n}\n\nexport enum SearchableType {\n Trail = \"Trail\",\n Country = \"Country\",\n Region = \"Region\",\n Park = \"Park\",\n POI = \"POI\"\n}\n\nexport interface Highlight {\n field: string;\n matched_tokens: string[];\n snippet: string;\n}\n\nexport interface RequestParams {\n collection_name: string;\n per_page: number;\n q: string;\n}\n\n// Converts JSON strings to/from your types\n// and asserts the results of JSON.parse at runtime\nexport class Convert {\n public static toTypesenseSearchable(json: string): TypesenseSearchable {\n return cast(JSON.parse(json), r(\"TypesenseSearchable\"));\n }\n\n public static typesenseSearchableToJson(value: TypesenseSearchable): string {\n return JSON.stringify(uncast(value, r(\"TypesenseSearchable\")), null, 2);\n }\n}\n\nfunction invalidValue(typ: any, val: any, key: any = ''): never {\n if (key) {\n throw Error(`Invalid value for key \"${key}\". Expected type ${JSON.stringify(typ)} but got ${JSON.stringify(val)}`);\n }\n throw Error(`Invalid value ${JSON.stringify(val)} for type ${JSON.stringify(typ)}`, );\n}\n\nfunction jsonToJSProps(typ: any): any {\n if (typ.jsonToJS === undefined) {\n const map: any = {};\n typ.props.forEach((p: any) => map[p.json] = { key: p.js, typ: p.typ });\n typ.jsonToJS = map;\n }\n return typ.jsonToJS;\n}\n\nfunction jsToJSONProps(typ: any): any {\n if (typ.jsToJSON === undefined) {\n const map: any = {};\n typ.props.forEach((p: any) => map[p.js] = { key: p.json, typ: p.typ });\n typ.jsToJSON = map;\n }\n return typ.jsToJSON;\n}\n\nfunction transform(val: any, typ: any, getProps: any, key: any = ''): any {\n function transformPrimitive(typ: string, val: any): any {\n if (typeof typ === typeof val) return val;\n return invalidValue(typ, val, key);\n }\n\n function transformUnion(typs: any[], val: any): any {\n // val must validate against one typ in typs\n const l = typs.length;\n for (let i = 0; i < l; i++) {\n const typ = typs[i];\n try {\n return transform(val, typ, getProps);\n } catch (_) {}\n }\n return invalidValue(typs, val);\n }\n\n function transformEnum(cases: string[], val: any): any {\n if (cases.indexOf(val) !== -1) return val;\n return invalidValue(cases, val);\n }\n\n function transformArray(typ: any, val: any): any {\n // val must be an array with no invalid elements\n if (!Array.isArray(val)) return invalidValue(\"array\", val);\n return val.map(el => transform(el, typ, getProps));\n }\n\n function transformDate(val: any): any {\n if (val === null) {\n return null;\n }\n const d = new Date(val);\n if (isNaN(d.valueOf())) {\n return invalidValue(\"Date\", val);\n }\n return d;\n }\n\n function transformObject(props: { [k: string]: any }, additional: any, val: any): any {\n if (val === null || typeof val !== \"object\" || Array.isArray(val)) {\n return invalidValue(\"object\", val);\n }\n const result: any = {};\n Object.getOwnPropertyNames(props).forEach(key => {\n const prop = props[key];\n const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;\n result[prop.key] = transform(v, prop.typ, getProps, prop.key);\n });\n Object.getOwnPropertyNames(val).forEach(key => {\n if (!Object.prototype.hasOwnProperty.call(props, key)) {\n result[key] = transform(val[key], additional, getProps, key);\n }\n });\n return result;\n }\n\n if (typ === \"any\") return val;\n if (typ === null) {\n if (val === null) return val;\n return invalidValue(typ, val);\n }\n if (typ === false) return invalidValue(typ, val);\n while (typeof typ === \"object\" && typ.ref !== undefined) {\n typ = typeMap[typ.ref];\n }\n if (Array.isArray(typ)) return transformEnum(typ, val);\n if (typeof typ === \"object\") {\n return typ.hasOwnProperty(\"unionMembers\") ? transformUnion(typ.unionMembers, val)\n : typ.hasOwnProperty(\"arrayItems\") ? transformArray(typ.arrayItems, val)\n : typ.hasOwnProperty(\"props\") ? transformObject(getProps(typ), typ.additional, val)\n : invalidValue(typ, val);\n }\n // Numbers can be parsed by Date but shouldn't be.\n if (typ === Date && typeof val !== \"number\") return transformDate(val);\n return transformPrimitive(typ, val);\n}\n\nfunction cast(val: any, typ: any): T {\n return transform(val, typ, jsonToJSProps);\n}\n\nfunction uncast(val: T, typ: any): any {\n return transform(val, typ, jsToJSONProps);\n}\n\nfunction a(typ: any) {\n return { arrayItems: typ };\n}\n\nfunction u(...typs: any[]) {\n return { unionMembers: typs };\n}\n\nfunction o(props: any[], additional: any) {\n return { props, additional };\n}\n\nfunction m(additional: any) {\n return { props: [], additional };\n}\n\nfunction r(name: string) {\n return { ref: name };\n}\n\nconst typeMap: any = {\n \"TypesenseSearchable\": o([\n { json: \"facet_counts\", js: \"facet_counts\", typ: a(\"any\") },\n { json: \"found\", js: \"found\", typ: 0 },\n { json: \"hits\", js: \"hits\", typ: a(r(\"Hit\")) },\n { json: \"out_of\", js: \"out_of\", typ: 0 },\n { json: \"page\", js: \"page\", typ: 0 },\n { json: \"request_params\", js: \"request_params\", typ: r(\"RequestParams\") },\n { json: \"search_cutoff\", js: \"search_cutoff\", typ: true },\n { json: \"search_time_ms\", js: \"search_time_ms\", typ: 0 },\n ], false),\n \"Hit\": o([\n { json: \"document\", js: \"document\", typ: r(\"Document\") },\n { json: \"highlights\", js: \"highlights\", typ: a(r(\"Highlight\")) },\n { json: \"text_match\", js: \"text_match\", typ: 0 },\n ], false),\n \"Document\": o([\n { json: \"id\", js: \"id\", typ: \"\" },\n { json: \"impressions_count\", js: \"impressions_count\", typ: 0 },\n { json: \"location\", js: \"location\", typ: a(3.14) },\n { json: \"name\", js: \"name\", typ: \"\" },\n { json: \"region_name\", js: \"region_name\", typ: \"\" },\n { json: \"short_address\", js: \"short_address\", typ: \"\" },\n { json: \"thumbnail_url\", js: \"thumbnail_url\", typ: \"\" },\n { json: \"type\", js: \"type\", typ: \"\" },\n { json: \"url\", js: \"url\", typ: \"\" },\n ], false),\n \"Highlight\": o([\n { json: \"field\", js: \"field\", typ: \"\" },\n { json: \"matched_tokens\", js: \"matched_tokens\", typ: a(\"\") },\n { json: \"snippet\", js: \"snippet\", typ: \"\" },\n ], false),\n \"RequestParams\": o([\n { json: \"collection_name\", js: \"collection_name\", typ: \"\" },\n { json: \"per_page\", js: \"per_page\", typ: 0 },\n { json: \"q\", js: \"q\", typ: \"\" },\n ], false),\n};\n","// style-loader: Adds some css to the DOM by adding a