{"version":3,"sources":["webpack:///./widgets/shopListingProductBlock.js","webpack:///./widgets/shopListingBlock.js","webpack:///../partials/widgets/shopListingProductBlock.hbs"],"names":["ShopListingProductBlock","_createClass","element","_classCallCheck","CLS","ShopListingBlock","this","$el","$","$filterKeys","find","$filterDropdown","concat","$filterDropdownMenu","$searchResultsEmpty","$shopProducts","$loadingScreen","$loadMore","$searchInp","$clearFilterBtn","$certifiedContents","$cateContents","$cateContentsTitle","$cateContentsDescription","$cateCertifiedTitle","$cateCertifiedDescription","$typeSelectpick","$keyword","getProductsApi","data","getAllTypes","loadingProducts","allProductsLoaded","pageSize","pageNumber","$productBlock","$productTypes","$urlcategoryArr","url_string","window","location","href","url","URL","$urlkeyword","searchParams","get","length","val","$urlcategory","$urltype","$isCertified","initParams","selectpicker","handleSearchInput","handleFilterClearBtn","handleScrollLoading","getItems","initFilterKeys","key","value","clear","params","count","offset","keyword","category","type","isCertified","shopListingProductBlock","require","Handlebars","registerPartial","precompiled","Function","precompile","template","loadMoreProducts","_this","setPageNumber","addClass","_","isEmpty","param","css","newCategory","toLowerCase","replace","updateUrl","ajax","success","hide","empty","forEach","item","$column","append","getShopListingProductBlockTemplate","last","show","removeClass","error","complete","_this2","uri","document","pathname","Object","keys","index","utils","updateQueryStringParameter","encodeURIComponent","history","pushState","URLSearchParams","_this3","on","event","keyCode","currentTarget","trim","_this4","filterTypeByCategory","scrollTo","types","_this5","typeArr","split","remove","i","setTimeout","filterTypeByType","_this6","$element","handleFilterClick","filterKey","push","isNil","toString","_this7","stringProductTypes","map","attr","toArray","flat","filter","indexOf","Boolean","sort","includes","splice","join","This","scrollTop","height","scroll","newPageNumber","module","exports","container","depth0","helpers","partials","stack1","lookupProperty","parent","propertyName","prototype","hasOwnProperty","call","escapeExpression","lambda","helper","hooks","helperMissing","nullContext","alias1","alias2","alias3","alias4","program","noop"],"mappings":"o9BAEA,IAGaA,EAAuBC,GACnC,SAAAD,EAAYE,I,4FAASC,CAAA,KAAAH,O,m1BCF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js","sourcesContent":["import utils from '../utils';\n\nconst NS = 'ShopListingProductBlock';\nconst CLS = 'shopListingProductBlock';\n\nexport class ShopListingProductBlock {\n\tconstructor(element) {\n\n\t}\n\n}\n","import utils from '../utils';\nimport Handlebars from 'handlebars';\nimport { ShopListingProductBlock } from './shopListingProductBlock';\n\nconst NS = 'ShopListingBlock';\nconst CLS = 'shopListingBlock';\n\nexport class ShopListingBlock {\n\tconstructor(element) {\n\t\t// $el is the widget node return by the loadShopProductBlock function\n\t\tthis.$el = $(element);\n\t\tthis.$filterKeys = this.$el.find(`[data-filter-key]`);\n\t\tthis.$filterDropdown = this.$el.find(`.${CLS}-filters-dropdown`);\n\t\tthis.$filterDropdownMenu = this.$el.find(`.${CLS}-filters-dropdown-menu`);\n\t\tthis.$searchResultsEmpty = this.$el.find(`.${CLS}-searchResults-empty`);\n\t\tthis.$shopProducts = this.$el.find(`.${CLS}-products`);\n\t\tthis.$loadingScreen = this.$el.find(`.${CLS}-searchResults-loadingScreen`);\n\t\tthis.$loadMore = this.$el.find(`.${CLS}-searchResults-loadMore`);\n\t\tthis.$searchInp = this.$el.find(`.${CLS}-searchInput`);\n\t\tthis.$clearFilterBtn = this.$el.find(`.${CLS}-filterBtnClear`);\n\t\tthis.$certifiedContents = this.$el.find(`.${CLS}-certified-contents`);\n\t\tthis.$cateContents = this.$el.find(`.${CLS}-cate-contents`);\n\t\tthis.$cateContentsTitle = this.$el.find(`.${CLS}-cate-contents-title`);\n\t\tthis.$cateContentsDescription = this.$el.find(`.${CLS}-cate-contents-description`);\n\t\tthis.$cateCertifiedTitle = this.$el.find(`.${CLS}-certified-contents-title`);\n\t\tthis.$cateCertifiedDescription = this.$el.find(`.${CLS}-certified-contents-description`);\n\t\tthis.$typeSelectpick = this.$el.find( `#productType` );\n\n\t\tthis.$keyword = this.$el.find(`.search .${CLS}-searchInput`);\n\n\t\tthis.getProductsApi = this.$el.data('productsApi');\n\t\tthis.getAllTypes = this.$el.find(`.type`).data('allTypes');\n\t\tthis.loadingProducts = false;\n\t\tthis.allProductsLoaded = false;\n\t\tthis.pageSize = 12;\n\t\tthis.pageNumber = 1;\n\t\tthis.$productBlock = [];\n\t\tthis.$productTypes = [];\n\t\tthis.$urlcategoryArr = [];\n\n\t\t//----- Retrive the parameter values from the URL for dropdown menu if URL has default value ------//\n\t\tvar url_string = window.location.href; \n\t\tvar url = new URL(url_string);\n\n\t\tthis.$urlkeyword = url.searchParams.get(\"keyword\");\n\t\tif(this.$urlkeyword){\n\t\t\tif(this.$urlkeyword.length > 0){\n\t\t\t\tthis.$keyword.val(this.$urlkeyword);\n\t\t\t}\n\t\t}\n\t\tthis.$urlcategory = url.searchParams.get(\"category\");\n\n\t\tthis.$urltype = url.searchParams.get(\"type\");\n\n\t\tthis.$isCertified = url.searchParams.get(\"isCertified\");\n\n\n\t\t//----- End for retrive the parameter values from the URL-----//\n\n\t\tthis.initParams();\n\t\t$('.selectpicker').selectpicker('destroy').selectpicker();\n\t\tthis.handleSearchInput();\n\t\tthis.handleFilterClearBtn(this.getAllTypes);\n\t\tthis.handleScrollLoading();\n\t\tthis.getItems(false);\n\t\tthis.initFilterKeys();\n\t\t\n\t}\n\n\tinitParams(clear){\n\t\t// for clear btn - if user clear the filter everthing needs to be empty\n\t\tif(clear){\n\t\t\tthis.params = {\n\t\t\t\t// siteId: this.siteId,\n\t\t\t\tcount: this.pageSize,\n\t\t\t\toffset: 0,\n\t\t\t\tkeyword: '',\n\t\t\t\tcategory: '',\n\t\t\t\ttype: '',\n\t\t\t\tisCertified: ''\n\t\t\t};\n\t\t}\n\t\t// for initial parameter values when page loads\n\t\telse{\n\t\t\tthis.params = {\n\t\t\t\t// siteId: this.siteId,\n\t\t\t\tcount: this.pageSize,\n\t\t\t\toffset: 0,\n\t\t\t\tkeyword: this.$urlkeyword || '',\n\t\t\t\tcategory: this.$urlcategory || '',\n\t\t\t\ttype: this.$urltype || '',\n\t\t\t\tisCertified: this.$isCertified || ''\n\t\t\t};\n\t\t}\n\t}\n\n\t// individual product template\n\tgetShopListingProductBlockTemplate() {\n\t\tlet shopListingProductBlock = require('../../partials/widgets/shopListingProductBlock.hbs');\n\t\tHandlebars.registerPartial('shopListingProductBlock', shopListingProductBlock);\n\n\t\tlet template = `\n\t\t\t{{> shopListingProductBlock\n\t\t\t\twg=\"shopListingProductBlock\"\n\t\t\t\tns=\"ShopListingProductBlock\"\n\t\t\t}}\n\t\t`;\n\n\t\tlet precompiled = new Function('return ' + Handlebars.precompile(template))();\n\t\treturn Handlebars.template(precompiled);\n\t}\n\n\t// Get items (reload content)\n\tgetItems(loadMoreProducts) {\n\t\t// Check if all the products have been loaded\n\t\tif (!this.loadingProducts && !this.allProductsLoaded) {\n\t\t\tthis.loadingProducts = true;\n\n\t\t\tlet url = this.getProductsApi;\n\t\t\t\n\t\t\tif (loadMoreProducts) {\n\t\t\t\tthis.setPageNumber(this.pageNumber + 1);\n\t\t\t\tthis.$loadMore.addClass('active');\n\t\t\t} else {\n\t\t\t\tthis.$loadingScreen.addClass('active');\n\t\t\t}\n\t\t\t// if parameter is not empty, then append to the API url\n\t\t\tif (!_.isEmpty(this.params)) {\n\t\t\t\turl += `?${$.param(this.params)}`;\n\t\t\t}\n\t\t\t\n\t\t\t// For display the products category, *but this may not the best practice to code this function.\n\t\t\tif(!this.params.isCertified || this.params.isCertified == \"false\" && !this.params.category){\n\t\t\t\tthis.$cateContents.css(\"display\", \"none\");\n\t\t\t}\n\t\t\t\n\t\t\tif(this.params.category){\n\t\t\t\tlet newCategory=(this.params.category.toLowerCase()).replace( /\\W/g, \"\");\n\t\t\t\tthis.$cateContents.css(\"display\", \"none\");\n\t\t\t\t$(\".\"+newCategory).css(\"display\", \"flex\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(this.params.isCertified ==\"true\"){\n\t\t\t\t\tthis.$cateContents.css(\"display\", \"none\");\n\t\t\t\t\t$(\".woolmarkcertified\").css(\"display\", \"flex\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// End for display the products category\n\n\t\t\tthis.updateUrl();\n\n\t\t\t// ajax load products data\n\t\t\t$.ajax({\n\t\t\t\ttype: 'GET',\n\t\t\t\turl: url,\n\t\t\t\tsuccess: (data) => {\n\t\t\t\t\tthis.$searchResultsEmpty.hide();\n\n\t\t\t\t\t// Check if this is the new search, if so empty previous products in the products div\n\t\t\t\t\tif (!loadMoreProducts) {\n\t\t\t\t\t\tthis.$shopProducts.empty();\n\t\t\t\t\t}\n\n\t\t\t\t\t//check if has any data from the API, if so, append the data into the product template.\n\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\tdata.forEach((item) => {\n\t\t\t\t\t\t\tlet $column = this.$shopProducts.append(this.getShopListingProductBlockTemplate()(item));\n\t\t\t\t\t\t\tnew ShopListingProductBlock($column.find(`[data-wg=\"ShopListingProductBlock\"]`).last()[0], item);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (loadMoreProducts) {\n\t\t\t\t\t\t\tthis.allProductsLoaded = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.$searchResultsEmpty.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.$loadingScreen.removeClass('active');\n\t\t\t\t\tthis.$loadMore.removeClass('active');\n\t\t\t\t},\n\t\t\t\terror: (error) => {\n\n\t\t\t\t},\n\t\t\t\tcomplete: () => {\n\t\t\t\t\tthis.loadingProducts = false;\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t}\n\n\t// Update url after filters change\n\tupdateUrl() {\n\t\tlet uri = document.location.pathname;\n\t\t\n\t\tObject.keys(this.params).forEach((key, index) => {\n\t\t\turi = utils.updateQueryStringParameter(uri, key, encodeURIComponent(this.params[key]));\n\t\t});\n\n\t\t// update url without reload\n\t\twindow.history.pushState('', '', uri);\n\t\tlet urlParams = new URLSearchParams(uri);\n\n\t\t// get product type parameter from url\n\t\tlet type = urlParams.get('type');\n\t\t// if has type, then display the product type in the dropdown menu\n\t\tif(this.$urltype && this.$urltype.length){\n\t\t\tthis.$typeSelectpick.selectpicker('refresh');\n\t\t}\n\n\t}\n\n\t// Search text input - on type\n\thandleSearchInput() {\n\t\tthis.$searchInp.on('keyup', (event) => {\n\t\t\tif(event.keyCode === 13) {\n\t\t\t\tthis.params['keyword'] = $(event.currentTarget).val().trim();\n\t\t\t\tthis.setPageNumber(1);\n\t\t\t\tthis.allProductsLoaded = false;\n\t\t\t\tthis.getItems(false);\n\t\t\t}\n\t\t});\n\t}\n\n\t// Clear button\n\thandleFilterClearBtn(getAllTypes) {\n\t\tthis.$clearFilterBtn.on('click', () => {\n\t\t\tthis.filterTypeByCategory(getAllTypes);\n\t\t\t// set 1 to let initParams know it's coming from clear btn\n\t\t\tthis.initParams(1);\n\t\t\tthis.setPageNumber(1);\n\t\t\tthis.allProductsLoaded = false;\n\t\t\t// Scroll to top\n\t\t\twindow.scrollTo(0, 0);\n\t\t\t$(\".selectpicker\").selectpicker('deselectAll');\n\t\t\t$('#isCertified').selectpicker('val', '');\n\t\t\tthis.$typeSelectpick.selectpicker('val', '');\n\t\t\tthis.$typeSelectpick.selectpicker('refresh');\n\t\t\tthis.getItems(false);\n\t\t\t\n\t\t});\n\t}\n\n\tfilterTypeByCategory(types) {\n\t\tif (!types) {\n\t\t\treturn;\n\t\t}\n\t\tconst typeArr = types.split(\";\");\n\t\t// remove all\n\t\t$( \"#productType .dropdown-item\" ).remove();\n\n\t\tfor(var i = 0; i < typeArr.length; i++){\n\t\t\tthis.$typeSelectpick.append( '' );\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\tthis.$typeSelectpick.selectpicker('refresh');\n\t\t}, 1000);\n\n\t\tthis.filterTypeByType();\n\t}\n\n\t// Let product type clickable(update the URL) after selected the category or clear all the filters\n\tfilterTypeByType() {\n\t\tconst $typeFilterKeys = this.$el.find(`[data-filter-key=\"type\"]`);\n\t\t\t$typeFilterKeys.on('change', (event) => {\n\t\t\tlet $element = $(event.currentTarget);\n\t\t\tthis.handleFilterClick($element);\n\t\t});\n\t}\n\n\thandleFilterClick($element) {\n\t\tlet filterKey = $element.data('filterKey') || '';\n\t\tlet value = [];\n\t\tvalue.push($element.val());\n\t\tthis.$el.find(`[data-filter-key=\"${filterKey}\"]`).removeClass('active');\n\t\t$element.addClass('active');\n\n\t\tif(!(_.isNil(this.params[filterKey]) && value === '')) {\n\t\t\t// Ensure that the filterKey does not match the current select value\n\t\t\tif(this.params[filterKey] !== value) {\n\t\t\t\tif(_.isNil(value) || value === '') {\n\t\t\t\t\tdelete this.params[filterKey];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.params[filterKey] = value.toString();\n\t\t\t\t}\n\t\t\t\tthis.setPageNumber(1);\n\t\t\t\tthis.allProductsLoaded = false;\n\t\t\t\tthis.getItems(false);\n\t\t\t}\n\t\t}\n\t}\n\n\t// initialise the filter keys\n\tinitFilterKeys() {\n\n\t\tthis.$filterKeys.on('change', (event) => {\n\t\t\tthis.stringProductTypes = [];\n\t\t\tlet $element = $(event.currentTarget);\n\t\t\tlet filterKey = $element.data('filterKey') || '';\n\n\t\t\t// user selected category, then clear product type\n\t\t\tif (filterKey === \"category\") {\n\t\t\t\tthis.$productTypes = $(\"select :selected\").map((i, $element) => $($element).attr(\"data-types\")).toArray();\n\t\t\t\tthis.$productTypes.forEach((element) => this.stringProductTypes.push(element.split(\";\")));\n\t\t\t\tthis.stringProductTypes = this.stringProductTypes.flat();\n\t\t\t\tthis.stringProductTypes = this.stringProductTypes.filter((item,\n\t\t\t\t\tindex) => this.stringProductTypes.indexOf(item) === index);\n\t\t\t\tthis.stringProductTypes = this.stringProductTypes.filter(Boolean).sort();\n\t\t\t\tif(this.stringProductTypes.includes(\"Other\")){\n\t\t\t\t\tconst index = this.stringProductTypes.indexOf(\"Other\");\n\t\t\t\t\tthis.stringProductTypes.splice(index, 1);\n\t\t\t\t\tthis.stringProductTypes.push(\"Other\");\n\t\t\t\t}\n\t\t\t\tthis.stringProductTypes = this.stringProductTypes.join(',').replace(/,/g, ';');\n\t\t\t\tthis.filterTypeByCategory(this.stringProductTypes);\n\t\t\t\tif (this.params[\"type\"]) {\n\t\t\t\t\tdelete this.params[\"type\"];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.handleFilterClick($element);\n\t\t});\n\t\t\n\t\t// check url parameter contains the category.\n\t\tif(this.$urlcategory && this.$urlcategory.length){\n\t\t\tthis.stringProductTypes = [];\n\t\t\tthis.$urlcategoryArr = this.$urlcategory.split(\",\");\n\t\t\t$('#category').selectpicker('val', this.$urlcategoryArr);\n\t\t\tthis.$productTypes = $(\"select :selected\").map((i, $element) => $($element).attr(\"data-types\")).toArray();\n\t\t\tthis.$productTypes.forEach((element) => this.stringProductTypes.push(element.split(\";\")));\n\t\t\tthis.stringProductTypes = this.stringProductTypes.flat();\n\t\t\tthis.stringProductTypes = this.stringProductTypes.filter((item, index) => this.stringProductTypes.indexOf(item) === index);\n\t\t\tthis.stringProductTypes = this.stringProductTypes.filter(Boolean).sort();\n\t\t\t\tif(this.stringProductTypes.includes(\"Other\")){\n\t\t\t\t\tconst index = this.stringProductTypes.indexOf(\"Other\");\n\t\t\t\t\tthis.stringProductTypes.splice(index, 1);\n\t\t\t\t\tthis.stringProductTypes.push(\"Other\");\n\t\t\t\t}\n\t\t\tthis.stringProductTypes = this.stringProductTypes.join(',').replace(/,/g, ';');\n\t\t\tthis.filterTypeByCategory(this.stringProductTypes);\n\t\t}\n\n\t}\n\n\thandleScrollLoading() {\n\t\t// when scroll to buttom before 200px, page will trigger the load more function.\n\t\tlet offsetFromBottom = 200;\n\t\tconst This = this;\n\t\t$(document).on('touchmove', onScroll); // for mobile\n\t\tfunction onScroll() {\n\t\t\tif ($(window).scrollTop() + offsetFromBottom > $(document).height() - $(window).height()-400) {\n\t\t\t\tThis.getItems(true);\n\t\t\t}\n\t\t}\n\t\t$(window).scroll(function() {\n\t\t\tlet position = $(window).scrollTop() + offsetFromBottom;\n\t\t\tlet bottom = $(document).height() - $(window).height();\n\n\t\t\tif ( position >= bottom ) {\n\t\t\t This.getItems(true);\n\t\t\t}\n\t\t });\n\t}\n\n\tsetPageNumber(newPageNumber) {\n\t\tthis.pageNumber = newPageNumber;\n\t\tthis.params.offset = (this.pageNumber - 1) * this.pageSize;\n\t}\n}\n","var Handlebars = require('/Users/owenli/Documents/workspace/awi-woolmark-fe/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\t\t\t\t\t\t\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"designers\") : depth0)) != null ? lookupProperty(stack1,\"0\") : stack1), depth0))\n + \"\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\t\t\t\t
\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"
\\n\t\\n\t
\\n\t
\\n\t
\\n\t
\\n\t\t\t\\n\t\t\t\t

\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"designers\") : depth0)) != null ? lookupProperty(stack1,\"length\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":5},\"end\":{\"line\":12,\"column\":12}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t

\\n\t\t\t
\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isCertified\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":3},\"end\":{\"line\":17,\"column\":10}}})) != null ? stack1 : \"\")\n + \"\t\t\t

\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"title\") || (depth0 != null ? lookupProperty(depth0,\"title\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"title\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":30},\"end\":{\"line\":18,\"column\":39}}}) : helper)))\n + \"

\\n\t
\\n
\";\n},\"useData\":true});"],"sourceRoot":""}