PageSourceSearch

https://www.melissas.com/cdn/shop/t/40/assets/StaticSearch.bundle.js?v=65416157446605744681768898735

js melissas.com collected 2026-09-24 20:47:49 UTC 5,911 bytes, 2 lines download raw bytes

1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[34],{18:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return SearchForm});var _pixelunion_events__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(16),_pixelunion_events__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_pixelunion_events__WEBPACK_IMPORTED_MODULE_0__),_Layout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function sanitizeCategory(value){return value.replace(/(tag|product_type):(searchfilter_)?/,"")}var SearchForm=(function(){function SearchForm2($container){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,SearchForm2),this.container=$container[0],this.form=this.container.querySelector("[data-live-search-form]"),this.filter=this.container.querySelector("[data-live-search-filter]"),this.isLiveSearch=options.liveSearch?options.liveSearch:!1,this.setCategory=options.setCategory||function(){},this.events=new _pixelunion_events__WEBPACK_IMPORTED_MODULE_0___default.a,this.events.register(this.form,"submit",function(e){return _this.submitHandler(e)}),this.filter){this.filterLabel=this.container.querySelector("[data-live-search-filter-label]"),this.filterLabel&&(this.setCategory(this.filterLabel.value),this.events.register(this.filter,"change",function(e){var value=e.target.value;if(value){var newValue=sanitizeCategory(value);_this.filterLabel.innerHTML=newValue,_this.setCategory(newValue),_this.form.classList.add("live-search-filter-active")}else _this.filterLabel.innerHTML=e.target.dataset.filterAll,_this.form.classList.remove("live-search-filter-active"),_this.setCategory("")}));var hideFilterIfMobile=function(){_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isLessThanBreakpoint("S")&&(_this.filter.value="",_this.form.classList.remove("live-search-filter-active"),_this.filterLabel&&(_this.filterLabel.innerHTML=_this.filter.dataset.filterAll))};hideFilterIfMobile(),_Layout__WEBPACK_IMPORTED_MODULE_1__.a.onBreakpointChange(function(){return hideFilterIfMobile()})}}return _createClass(SearchForm2,[{key:"unload",value:function(){this.events.unregisterAll()}},{key:"submitHandler",value:function(event){event.preventDefault();var form=event.currentTarget.cloneNode(!0),termsInput=form.querySelector("[name=q]");form.style.position="absolute",form.style.left="-1000px",form.style.bottom="-1000px",form.style.visibility="hidden";var terms=termsInput.value;this.isLiveSearch&&!terms||(terms.indexOf(" ")>0&&(terms=terms.split(" ").join("* ").trim()),terms="".concat(terms,"*"),terms=this.filter&&this.filter.value?"".concat(terms," ").concat(this.filter.value):terms,termsInput.value=terms,window.document.body.appendChild(form),form.submit())}}]),SearchForm2})()}),62:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return StaticSearch});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),shopify_currency_converter__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),shopify_currency_converter__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(shopify_currency_converter__WEBPACK_IMPORTED_MODULE_1__),_components_ProductGridItem__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(22),_components_search_SearchForm__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(18);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var StaticSearch=(function(){function StaticSearch2(section){var _this=this;_classCallCheck(this,StaticSearch2),this.section=section,this.$el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(section.el),this.$searchField=this.$el.find("[data-live-search]"),this.productItems=[];var $productItems=this.$el.find("[data-product-item]");$productItems.each(function(i,productItem){_this.productItems.push(new _components_ProductGridItem__WEBPACK_IMPORTED_MODULE_2__.a({el:productItem,id:_this.section.id,lazy:!0}))}),this._updatePrices(),this.searchForm=new _components_search_SearchForm__WEBPACK_IMPORTED_MODULE_3__.a(this.$searchField)}return _createClass(StaticSearch2,[{key:"onSectionUnload",value:function(){this.searchForm.unload(),this.productItems.forEac
1h(function(productItem){productItem.unload()})}},{key:"_updatePrices",value:function(){this.$el.find(".money:not([data-currency]").each(function(index,el){return shopify_currency_converter__WEBPACK_IMPORTED_MODULE_1___default.a.update(el)})}}]),StaticSearch2})()})}]);
2//# sourceMappingURL=/cdn/shop/t/40/assets/StaticSearch.bundle.js.map?v=65416157446605744681768898735

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.