PageSourceSearch

https://axiscoreonline.com/cdn/shop/t/17/assets/StaticProductRecom…?v=124397160705792786421784287564

js axiscoreonline.com collected 2026-10-05 21:13:33 UTC 5,912 bytes, 2 lines download raw bytes

1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[31],{82:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return StaticProductRecommendations_StaticProductRecommendations});var index_es=__webpack_require__(2),dist_index_es=__webpack_require__(18),Layout=__webpack_require__(6),ProductGridItem=__webpack_require__(21),just_debounce=__webpack_require__(8),just_debounce_default=__webpack_require__.n(just_debounce),js=__webpack_require__(12),js_default=__webpack_require__.n(js);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 ProductRowScroller_ProductRowScroller=(function(){function ProductRowScroller(productRow){_classCallCheck(this,ProductRowScroller),this.$window=$(window),this.flickity=null,this.productRow=productRow,this.$productRow=$(this.productRow),this._mobileSlider=this._mobileSlider.bind(this),Layout.a.onBreakpointChange(this._mobileSlider),this._mobileSlider()}return _createClass(ProductRowScroller,[{key:"unload",value:function(){Layout.a.offBreakpointChange(this._mobileSlider),this._destroyFlickity()}},{key:"_initFlickity",value:function(){this.flickity=new js_default.a(this.productRow,{cellSelector:".productgrid--item",contain:!0,freeScroll:!0,percentPosition:!1,prevNextButtons:!1,pageDots:!1,setGallerySize:!1}),this._bindSlider()}},{key:"_destroyFlickity",value:function(){this.flickity&&(this.$window.off(".product-row"),this.$productRow.off(".product-row"),this.flickity.destroy(),this.flickity=null)}},{key:"_mobileSlider",value:function(){if(Layout.a.isGreaterThanBreakpoint("M")){this._destroyFlickity();return}this.flickity||this._initFlickity()}},{key:"_bindSlider",value:function(){var _this=this,$slider=this.$productRow.find(".flickity-slider");this.$window.on("resize.product-row",just_debounce_default()(function(){_this.$productRow.trigger("heightUpdate.product-row")})),this.flickity.on("cellSelect",function(){_this.$productRow.trigger("heightUpdate.product-row")}),this.$productRow.on("heightUpdate.product-row",function(){_this.flickity&&$slider.height(Math.ceil(_this.flickity.maxCellHeight))}),this.$productRow.trigger("heightUpdate.product-row")}}]),ProductRowScroller})(),ProductReviews=__webpack_require__(32);function StaticProductRecommendations_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function StaticProductRecommendations_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 StaticProductRecommendations_createClass(Constructor,protoProps,staticProps){return protoProps&&StaticProductRecommendations_defineProperties(Constructor.prototype,protoProps),staticProps&&StaticProductRecommendations_defineProperties(Constructor,staticProps),Constructor}var StaticProductRecommendations_StaticProductRecommendations=(function(){function StaticProductRecommendations(section){StaticProductRecommendations_classCallCheck(this,StaticProductRecommendations),this.section=section,this.productId=section.data.productId,this.limit=section.data.settings.limit,this.recommendedProducts=[],this.productsScroller=null,this.recommendationContainer=document.querySelector("[data-product-recommendations]"),this.recommendUrl="".concat(window.Theme.routes.product_recommendations_url,"?section_id=static-product-recommendations&limit=").concat(this.limit,"&product_id=").concat(this.productId),this._loadRecommendations=this._loadRecommendations.bind(this),this._resizeRowScroller=this._resizeRowScroller.bind(this),this._loadRecommendations()}return StaticProductRecommendations_createClass(StaticProductRecommendations,[{key:"_loadRecommendations",value:function(){var _this=this;dist_index_es.a.load(this.recommendUrl,{view:""}).then(function(_ref){var html=_ref.html;_this.recommendationContainer.innerHTML=html,index_es.a.watch(_this.recommendationContainer);var productItems=_this.recommendationContainer.querySelectorAll("[data-product-item]"),productItemLazyLoad=Layout.a.isGreaterThanBreakpoint("L",!0);
1productItems.length&&(productItems.forEach(function(productItem){_this.recommendedProducts.push(new ProductGridItem.a({el:productItem,id:_this.section.id,lazy:productItemLazyLoad}))}),Object(ProductReviews.a)(),window.Shopify&&Shopify.PaymentButton&&Shopify.PaymentButton.init(),_this.recommendationContainer.addEventListener("rimg:load",_this._resizeRowScroller),_this.productsScroller=new ProductRowScroller_ProductRowScroller(_this.section.el.querySelector("[data-product-row]")))})}},{key:"_resizeRowScroller",value:function(){this.productsScroller&&this.productsScroller.flickity&&this.productsScroller.flickity.resize()}},{key:"onSectionUnload",value:function(){this.productsScroller&&this.productsScroller.unload(),this.recommendedProducts.forEach(function(productItem){productItem.unload()}),this.recommendationContainer.removeEventListener("rimg:load",this._resizeRowScroller)}}]),StaticProductRecommendations})()})}]);
2//# sourceMappingURL=/cdn/shop/t/17/assets/StaticProductRecommendations.bundle.js.map?v=124397160705792786421784287564

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.