{
  "version": 3,
  "sources": ["/cdn/shop/t/177/assets/boost-pfs-instant-search.js?%27+convert%28int%2Cconvert%28varchar%2C0x7b5d%29%29+%27=1"],
  "sourcesContent": ["// Override Settings\nvar boostPFSInstantSearchConfig = {\n\tsearch: {\n\t\t\t\n\t}\n};\n\n(function () {  \n\tBoostPFS.inject(this);  \n\n\t// Customize style of Suggestion box\n\tSearchInput.prototype.customizeInstantSearch = function(suggestionElement, searchElement, searchBoxId) {\n\t\t\t if (!suggestionElement) suggestionElement = this.$uiMenuElement;   \n\t\tif (!searchElement) searchElement = this.$element;  \n\t\tif (!searchBoxId) searchBoxId = this.id; \n\t};\n\n\tBoostPFS.prototype.beforeBuildSearchBox = function (id) {\n\n\t\t// Remove theme's instant search events\n\t\tvar cloneSearchBar = jQ(id).clone();\n\t\tjQ(id).replaceWith(cloneSearchBar);      \n\t\t\n\t\t\n\t\tif (Utils.InstantSearch.isFullWidthMobile()) {\n\t\t\tjQ(id).removeAttr('autofocus');\n\t\t\tif (jQ(id).is(':focus')) {\n\t\t\t\tjQ(id).blur();\n\t\t\t}\n\t\t}\n\t};\n\n\tBoostPFS.prototype.afterCloseSuggestionMobile = function(searchBoxId, isCloseSearchBox) {\n\t\t// Close theme's search pop up\n\t\tif (isCloseSearchBox && window.$ && $.fancybox){\n\t\t\t$.fancybox.close(true);\n\t\t}\n\t};\n\n    Utils.buildProductItemUrl = function(data, hasCollection) {\n      // Get url information\n      var params = Utils.getWindowLocation().search.substring(1);\n      var pathname = window.location.pathname;\n      var elements = pathname.split('/');\n    \n      // Check if has locale\n      var localeURLPart = \"\";\n      var hasShopifyRoutes = Shopify && Shopify.routes && typeof Shopify.routes.root != 'undefined';\n      if (Settings.getSettingValue('general.useShopifyRouteForMultiLanguageURL') && hasShopifyRoutes) {\n        localeURLPart = Shopify.routes.root.replace(/\\/$/, '');\n      } else if (elements.indexOf(boostPFSAppConfig.general.current_locale) > -1) {\n        localeURLPart = \"/\" + boostPFSAppConfig.general.current_locale;\n      }\n    \n      // Get product handle\n      var handle = typeof data === 'object' && data.hasOwnProperty('handle') ? data.handle : data;\n      var hasCollection = typeof hasCollection !== 'undefined' ? hasCollection : Settings.getSettingValue('general.addCollectionToProductUrl');\n      if (hasCollection) {\n        // Homepage or Search page\n        if (pathname == '/' || Utils.isSearchPage() || Utils.isVendorPage() || Utils.isTypePage()) {\n          var preHandle = localeURLPart + '/collections/all/products/';\n          return preHandle + handle;\n    \n          // Tag Page\n        } else if (Utils.isTagPage()) {\n          var preHandle = localeURLPart + '/collections/';\n          var collectionHandleIndex = elements.indexOf(\"collections\") + 1\n          if (elements.length >= 4) return preHandle + elements[collectionHandleIndex] + '/products/' + handle;\n          return '/collections/all/products/' + handle;\n        } else {\n          // Google cache URL\n          // An URL of Google cache will look like this: webcache.googleusercontent.com/search?q=cache:xxx:https://xxx.xxx/collections/xxx+&....\n          if (params.indexOf('cache:') > -1) {\n            var collectionHandle = 'all';\n            var temp = params.split('&')[0].split('?')[0].split('collections/');\n            if (temp.length > 1) {\n              if (temp[1].indexOf('/') > -1) {\n                collectionHandle = temp[1].split('/')[0];\n              } else {\n                collectionHandle = temp[1];\n              }\n            }\n            collectionHandle = collectionHandle.replace(/[`~!@#$%^&*()_|+\\=?;:'\",.<>\\{\\}\\[\\]\\\\\\/]/g, '');\n            return '/collections/' + collectionHandle + '/products/' + handle;\n          }\n          var collectionHandleIndex = elements.indexOf(\"collections\") + 1;\n          var preHandle = localeURLPart + '/collections/';\n          \n          if (typeof elements[2] !== 'undefined') {\n            // Build for collection pages\n            if ((localeURLPart == '' && elements[1] === 'collections') || localeURLPart != '') {\n              return preHandle + elements[collectionHandleIndex] + '/products/' + handle;\n            }\n            //Build for other pages, use collection/all\n            return preHandle + 'all' + elements[collectionHandleIndex] + '/products/' + handle;\n          } else if (typeof elements[2] === 'undefined' && localeURLPart == '') {\n            return '/products/' + handle;\n          }\n          return window.location.pathname + '/products/' + handle;\n        }\n      }\n      return localeURLPart + '/products/' + handle;\n    };\n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