{"version":3,"sources":["webpack:///./widgets/supplierListingItemBlock.js","webpack:///./widgets/supplierListingBlock.js","webpack:////Users/owenli/Documents/workspace/awi-woolmark-fe/handlebarsHelpers.js","webpack:///../partials/widgets/supplierListingItemBlock.hbs"],"names":["SupplierListingItemBlock","_createClass","element","_classCallCheck","CLS","SupplierListingBlock","_this","this","$el","$","$filterKeys","find","$filterDropdown","concat","$filterDropdownMenu","$searchResultsEmpty","$supplierLists","$loadingScreen","$loadMoreBtn","$loadMore","$searchInp","$clearFilterBtn","$cateContents","$cateContentsTitle","$cateContentsDescription","$cateCertifiedTitle","$cateCertifiedDescription","$searchBar","$searchBarIcon","$faBars","$faTimes","$countries","$types","$sustainabilities","$searchBarFilters","getSuppliersApi","data","loadingSuppliers","allSuppliersLoaded","pageSize","pageNumber","url_string","window","location","href","url","URL","offset","onscroll","scrollY","top","addClass","css","removeClass","$urlkeyword","searchParams","get","length","val","$urlcountries","$urlsustainabilities","$urltypes","isFilterPopulated","initParams","selectpicker","getItems","handleSearchInput","handleFilterClearBtn","handleScrollLoading","initFilterKeys","key","value","clear","params","count","keyword","countries","types","sustainabilities","supplierListingItemBlock","require","Handlebars","registerPartial","precompiled","Function","precompile","registerHelper","ifCond","template","loadMoreSuppliers","_this2","setPageNumber","_","isEmpty","param","updateUrl","ajax","type","success","filters","forEach","item","includes","append","hide","empty","suppliers","website","substring","substr","slice","newitem","_objectSpread","$column","getSupplierListingItemBlockTemplate","last","show","error","complete","_this3","uri","document","pathname","Object","keys","index","utils","updateQueryStringParameter","encodeURIComponent","history","pushState","URLSearchParams","_this4","on","event","keyCode","currentTarget","trim","_this5","scrollTo","$element","filterKey","push","isNil","toString","_this6","handleFilterClick","This","newPageNumber","v1","operator","v2","options","fn","inverse","module","exports","container","depth0","helpers","partials","helper","alias1","nullContext","alias2","hooks","helperMissing","alias4","escapeExpression","lookupProperty","parent","propertyName","prototype","hasOwnProperty","call","blockParams","depths","stack1","program","noop","lambda","alias3"],"mappings":"+8BAAA,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,KAAKZ,EAAO,CAAC,KAAO,UAAU,KAAO,GAAG,KAAO9H,EAAK,YAAc2I,EAAY,IAAM,CAAC,MAAQ,CAAC,KAAO,GAAG,OAAS,IAAI,IAAM,CAAC,KAAO,GAAG,OAAS,OAASd,GACrV,cAC0U,OAAxUgB,EAASR,EAAeV,EAAQ,MAAMe,KAAKZ,EAAkB,MAAVJ,EAAiBW,EAAeX,EAAO,WAAaA,EAAQ,CAAC,KAAO,KAAK,KAAO,GAAG,GAAKD,EAAUqB,QAAQ,EAAG9I,EAAM,EAAG2I,EAAaC,GAAQ,QAAUnB,EAAUsB,KAAK,KAAO/I,EAAK,YAAc2I,EAAY,IAAM,CAAC,MAAQ,CAAC,KAAO,GAAG,OAAS,GAAG,IAAM,CAAC,KAAO,GAAG,OAAS,QAAkBE,EAAS,IAC1V,oBACiW,OAA/VA,EAASR,EAAeV,EAAQ,QAAQe,KAAKZ,EAAkB,MAAVJ,EAAiBW,EAAeX,EAAO,8BAAgCA,EAAQ,CAAC,KAAO,OAAO,KAAO,GAAG,GAAKD,EAAUqB,QAAQ,EAAG9I,EAAM,EAAG2I,EAAaC,GAAQ,QAAUnB,EAAUsB,KAAK,KAAO/I,EAAK,YAAc2I,EAAY,IAAM,CAAC,MAAQ,CAAC,KAAO,GAAG,OAAS,GAAG,IAAM,CAAC,KAAO,GAAG,OAAS,QAAkBE,EAAS,IACjX,oBACJ,SAAU,EAAK,WAAY,EAAK,gBAAiB","file":"78.js","sourcesContent":["const NS = 'SupplierListingItemBlock';\nconst CLS = 'supplierListingItemBlock';\n\nexport class SupplierListingItemBlock {\n\tconstructor(element) {\n\n\t}\n\n}\n","import utils from '../utils';\nimport Handlebars from 'handlebars';\nimport { SupplierListingItemBlock } from './supplierListingItemBlock';\nimport { ifCond } from '../../../handlebarsHelpers';\n\nconst NS = 'SupplierListingBlock';\nconst CLS = 'supplierListingBlock';\n\nexport class SupplierListingBlock {\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.$supplierLists = this.$el.find(`.${CLS}-suppliers`);\n\t\tthis.$loadingScreen = this.$el.find(`.${CLS}-searchResults-loadingScreen`);\n\t\tthis.$loadMoreBtn = this.$el.find(`#loadMoreBtn`);\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.$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.$searchBar = this.$el.find(`.${CLS}-searchBar`);\n\t\tthis.$searchBarIcon = this.$el.find(`.${CLS}-searchBar-icon`);\n\t\tthis.$faBars = this.$el.find(`.fa-bars`);\n\t\tthis.$faTimes = this.$el.find(`.fa-times`);\n\t\tthis.$countries = this.$el.find(`#countries`);\n\t\tthis.$types = this.$el.find(`#types`);\n\t\tthis.$sustainabilities = this.$el.find(`#sustainabilities`);\n\n\t\tthis.$searchBarFilters = this.$el.find(`.${CLS}-searchBar-refined-filters`);\n\n\t\tthis.getSuppliersApi = this.$el.data('suppliersApi');\n\t\tthis.loadingSuppliers = false;\n\t\tthis.allSuppliersLoaded = false;\n\t\tthis.pageSize = this.$el.data('pageSize');\n\t\tthis.pageNumber = 1;\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\tvar offset = this.$searchBar.offset();\n\n\t\twindow.onscroll = ()=> {\n\t\t\tif (window.scrollY > offset.top-60) {\n\t\t\t\tthis.$searchBar.addClass(\"sticky\");\n\t\t\t\tthis.$supplierLists.css(\"margin-top\", \"100px\");\n\t\t\t} else if(window.scrollY < offset.top+60) {\n\t\t\t\tthis.$searchBar.removeClass(\"sticky\");\n\t\t\t\tthis.$supplierLists.css(\"margin-top\", \"0px\");\n\t\t\t}\n\t\t}\n\n\t\tthis.$urlkeyword = url.searchParams.get(\"keyword\");\n\t\tif(this.$urlkeyword != null && this.$urlkeyword.length > 0){\n\t\t\tthis.$searchInp.val(this.$urlkeyword);\n\t\t}\n\t\tthis.$urlcountries = url.searchParams.get(\"countries\");\n\t\tthis.$urlsustainabilities = url.searchParams.get(\"sustainabilities\");\n\t\tthis.$urltypes = url.searchParams.get(\"types\");\n\n\t\tthis.isFilterPopulated = false;\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.getItems(false);\n\t\tthis.handleSearchInput();\n\t\tthis.handleFilterClearBtn();\n\t\tthis.handleScrollLoading();\n\t\tthis.initFilterKeys();\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\tcount: this.pageSize,\n\t\t\t\toffset: 0,\n\t\t\t\tkeyword: '',\n\t\t\t\tcountries: '',\n\t\t\t\ttypes: '',\n\t\t\t\tsustainabilities: '',\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\tcount: this.pageSize,\n\t\t\t\toffset: 0,\n\t\t\t\tkeyword: this.$urlkeyword || '',\n\t\t\t\tcountries: this.$urlcountries || '',\n\t\t\t\ttypes: this.$urltypes || '',\n\t\t\t\tsustainabilities: this.$urlsustainabilities|| '',\n\t\t\t};\n\t\t}\n\t}\n\n\t// individual product template\n\tgetSupplierListingItemBlockTemplate() {\n\t\tlet supplierListingItemBlock = require('../../partials/widgets/supplierListingItemBlock.hbs');\n\t\tHandlebars.registerPartial('supplierListingItemBlock', supplierListingItemBlock);\n\n\t\tlet template = `\n\t\t\t{{> supplierListingItemBlock\n\t\t\t\twg=\"supplierListingItemBlock\"\n\t\t\t\tns=\"SupplierListingItemBlock\"\n\t\t\t}}\n\t\t`;\n\n\t\tlet precompiled = new Function('return ' + Handlebars.precompile(template))();\n\t\tHandlebars.registerHelper('ifCond', ifCond);\n\t\treturn Handlebars.template(precompiled);\n\n\t}\n\n\t// Get items (reload content)\n\tgetItems(loadMoreSuppliers) {\n\t\t// Check if all the products have been loaded\n\t\tif (!this.loadingSuppliers && !this.allSuppliersLoaded) {\n\t\t\tthis.loadingSuppliers = true;\n\n\t\t\tlet url = this.getSuppliersApi;\n\n\t\t\tif (loadMoreSuppliers) {\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// End for display the products category\n\n\t\t\tthis.updateUrl();\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\tif(!this.isFilterPopulated){\n\t\t\t\t\t\tif(this.$urlcountries !== null){\n\t\t\t\t\t\t\tdata.filters.countries.forEach((item) => {\n\t\t\t\t\t\t\t\tif(this.$urlcountries.includes(item)){\n\t\t\t\t\t\t\t\t\tthis.$countries.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tthis.$countries.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tdata.filters.countries.forEach((item) => {\n\t\t\t\t\t\t\t\tthis.$countries.append(``);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.$urltypes !== null){\n\t\t\t\t\t\t\tdata.filters.types.forEach((item) => {\n\t\t\t\t\t\t\t\tif(this.$urltypes.includes(item)){\n\t\t\t\t\t\t\t\t\tthis.$types.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tthis.$types.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tdata.filters.types.forEach((item) => {\n\t\t\t\t\t\t\t\tthis.$types.append(``);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.$urlsustainabilities !== null){\n\t\t\t\t\t\t\tdata.filters.sustainabilities.forEach((item) => {\n\t\t\t\t\t\t\t\tif(this.$urlsustainabilities.includes(item)){\n\t\t\t\t\t\t\t\t\tthis.$sustainabilities.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tthis.$sustainabilities.append(``);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tdata.filters.sustainabilities.forEach((item) => {\n\t\t\t\t\t\t\t\tthis.$sustainabilities.append(``);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.isFilterPopulated = true;\n\t\t\t\t\t\tthis.$countries.selectpicker('refresh');\n\t\t\t\t\t\tthis.$types.selectpicker('refresh');\n\t\t\t\t\t\tthis.$sustainabilities.selectpicker('refresh');\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.$searchResultsEmpty.hide();\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 (!loadMoreSuppliers) {\n\t\t\t\t\t\tthis.$supplierLists.empty();\n\t\t\t\t\t}\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.suppliers.length > 0) {\n\t\t\t\t\t\tdata.suppliers.forEach((item) => {\n\t\t\t\t\t\t\tif(item.website == null){\n\t\t\t\t\t\t\t\tvar url = \"\";\n\t\t\t\t\t\t\t\titem.website = \"\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tvar url = item.website.substring(8);\n\t\t\t\t\t\t\t\tif(url.substr(url.length-1) === \"/\"){\n\t\t\t\t\t\t\t\t\tvar url = url.slice(0, -1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar newitem = {...item, url};\n\t\t\t\t\t\t\tlet $column = this.$supplierLists.append(this.getSupplierListingItemBlockTemplate()(newitem));\n\t\t\t\t\t\t\tnew SupplierListingItemBlock($column.find(`[data-wg=\"SupplierListingItemBlock\"]`).last()[0], newitem);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (loadMoreSuppliers) {\n\t\t\t\t\t\t\tthis.allSuppliersLoaded = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.$loadMoreBtn.css(\"display\", \"none\");\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\tif (data.suppliers.length < this.pageSize) {\n\t\t\t\t\t\tthis.$loadMoreBtn.css(\"display\", \"none\");\n\t\t\t\t\t}\n\t\t\t\t\tthis.$loadingScreen.removeClass('active');\n\t\t\t\t\tthis.$loadMore.removeClass('active');\n\t\t\t\t\t\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.loadingSuppliers = 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\tObject.keys(this.params).forEach((key, index) => {\n\t\t\turi = utils.updateQueryStringParameter(uri, key, encodeURIComponent(this.params[key]));\n\t\t});\n\t\t// update url without reload\n\t\twindow.history.pushState('', '', uri);\n\t\tlet urlParams = new URLSearchParams(uri);\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.allSuppliersLoaded = false;\n\t\t\t\tthis.getItems(false);\n\t\t\t}\n\t\t});\n\t}\n\n\t// Clear button\n\thandleFilterClearBtn() {\n\t\tthis.$clearFilterBtn.on('click', () => {\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.allSuppliersLoaded = false;\n\t\t\t// Scroll to top\n\t\t\twindow.scrollTo(0, 0);\n\t\t\tthis.$countries.selectpicker('val', '');\n\t\t\tthis.$types.selectpicker('val', '');\n\t\t\tthis.$sustainabilities.selectpicker('val', '');\n\t\t\t$(\".selectpicker\").selectpicker('deselectAll');\n\t\t\tthis.getItems(false);\n\t\t\tthis.$searchInp.val('');\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.allSuppliersLoaded = 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\t\tthis.$filterKeys.on('change', (event) => {\n\t\t\tlet $element = $(event.currentTarget);\n\t\t\tthis.handleFilterClick($element);\n\t\t});\n\n\t}\n\n\thandleScrollLoading() {\n\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\tthis.$loadMoreBtn.on('click', (event) => {\n\t\t\tThis.getItems(true);\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","export let ifCond = (v1, operator, v2, options) => {\n\tswitch (operator) {\n\t\tcase '==':\n\t\t\treturn (v1 == v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '===':\n\t\t\treturn (v1 === v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '!=':\n\t\t\treturn (v1 != v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '!==':\n\t\t\treturn (v1 !== v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '<':\n\t\t\treturn (v1 < v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '<=':\n\t\t\treturn (v1 <= v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '>':\n\t\t\treturn (v1 > v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '>=':\n\t\t\treturn (v1 >= v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '&&':\n\t\t\treturn (v1 && v2) ? options.fn(this) : options.inverse(this);\n\t\tcase '||':\n\t\t\treturn (v1 || v2) ? options.fn(this) : options.inverse(this);\n\t\tdefault:\n\t\t\treturn options.inverse(this);\n\t}\n};\n\nexport let math = (lvalue, operator, rvalue) => {\n\tlvalue = parseFloat(lvalue);\n\trvalue = parseFloat(rvalue);\n\treturn {\n\t\t'+': lvalue + rvalue,\n\t\t'-': lvalue - rvalue,\n\t\t'*': lvalue * rvalue,\n\t\t'/': lvalue / rvalue,\n\t\t'%': lvalue % rvalue\n\t}[operator];\n};\n\nexport let mathAbs = (value) => {\n\tvalue = parseFloat(value);\n\treturn Math.abs(value);\n};\n\nexport let object = ({ hash }) => {\n\treturn hash;\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 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 \"\t\t\t\t\t \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"url\") || (depth0 != null ? lookupProperty(depth0,\"url\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"url\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":74},\"end\":{\"line\":13,\"column\":81}}}) : helper)))\n + \"\\n\";\n},\"3\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, 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 ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Energy Efficiency\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(4, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":17,\"column\":5},\"end\":{\"line\":23,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Recycled Materials\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(7, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":24,\"column\":5},\"end\":{\"line\":30,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Social Impact\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(10, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":31,\"column\":5},\"end\":{\"line\":37,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Water Conservation and Quality\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(12, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":38,\"column\":5},\"end\":{\"line\":44,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Carbon Footprint Minimisation\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(14, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":45,\"column\":5},\"end\":{\"line\":51,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Chemical Management and Reduction\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(16, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":52,\"column\":5},\"end\":{\"line\":58,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Investment in R&D\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(18, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":59,\"column\":5},\"end\":{\"line\":65,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Traceability and Transparency\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(20, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":66,\"column\":5},\"end\":{\"line\":72,\"column\":16}}})) != null ? stack1 : \"\")\n + ((stack1 = (lookupProperty(helpers,\"ifCond\")||(depth0 && lookupProperty(depth0,\"ifCond\"))||alias2).call(alias1,((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"label\") : stack1),\"==\",\"Waste Reduction and Management\",{\"name\":\"ifCond\",\"hash\":{},\"fn\":container.program(22, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":73,\"column\":5},\"end\":{\"line\":79,\"column\":16}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Energy Efficiency

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":19,\"column\":6},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"5\":function(container,depth0,helpers,partials,data,blockParams) {\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 \"\t\t\t\t\t\t\t-\"\n + container.escapeExpression(container.lambda(((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"description\") : stack1), depth0))\n + \"
\\n\";\n},\"7\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Recycled Materials

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":26,\"column\":6},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"8\":function(container,depth0,helpers,partials,data,blockParams) {\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 \"\t\t\t\t\t\t\t- \"\n + container.escapeExpression(container.lambda(((stack1 = blockParams[0][0]) != null ? lookupProperty(stack1,\"description\") : stack1), depth0))\n + \"
\\n\";\n},\"10\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Social Impact

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":33,\"column\":6},\"end\":{\"line\":35,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"12\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Water Conservation and Quality

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":40,\"column\":6},\"end\":{\"line\":42,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"14\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Carbon Footprint Minimization

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":47,\"column\":6},\"end\":{\"line\":49,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"16\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Chemical Management and Reduction

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":54,\"column\":6},\"end\":{\"line\":56,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"18\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Investment in R&D

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":61,\"column\":6},\"end\":{\"line\":63,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"20\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Traceability Transparency

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":68,\"column\":6},\"end\":{\"line\":70,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"22\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.lambda, alias2=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 \"\t\t\t\t\t\t

Waste Reduction and Management

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = blockParams[1][0]) != null ? lookupProperty(stack1,\"subItems\") : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(8, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":75,\"column\":6},\"end\":{\"line\":77,\"column\":15}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t\t
\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data,blockParams,depths) {\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\t\t\t
\\n\t\t\t\t\t\\n\t\t\t\t
\\n\t\t\t\t\t

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

\\n\t\t\t\t\t

\\n\t\t\t\t\t \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"type\") || (depth0 != null ? lookupProperty(depth0,\"type\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"type\",\"hash\":{},\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":9,\"column\":52},\"end\":{\"line\":9,\"column\":60}}}) : helper)))\n + \"
\\n\t\t\t\t\t \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"country\") || (depth0 != null ? lookupProperty(depth0,\"country\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"country\",\"hash\":{},\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":10,\"column\":61},\"end\":{\"line\":10,\"column\":72}}}) : helper)))\n + \"
\\n\t\t\t\t\t \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"contact\") || (depth0 != null ? lookupProperty(depth0,\"contact\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"contact\",\"hash\":{},\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":11,\"column\":65},\"end\":{\"line\":11,\"column\":76}}}) : helper)))\n + \"
\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"website\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":12,\"column\":5},\"end\":{\"line\":14,\"column\":12}}})) != null ? stack1 : \"\")\n + \"\t\t\t\t\t

\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"sustainabilityDeclarations\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 1, blockParams, depths),\"inverse\":container.noop,\"data\":data,\"blockParams\":blockParams,\"loc\":{\"start\":{\"line\":16,\"column\":4},\"end\":{\"line\":80,\"column\":13}}})) != null ? stack1 : \"\")\n + \"\t
\\n
\";\n},\"useData\":true,\"useDepths\":true,\"useBlockParams\":true});"],"sourceRoot":""}