<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/product-downloads/product-downloads.js","webpack:///./src/feature/product-downloads/product-sds-api-test.js","webpack:///./src/feature/product-downloads/product-sds-api.js","webpack:///./src/foundation/utilities/clearElementContent.js"],"names":["defaultSettings","prouductid","dev","endpoint","ProductDownloads","element","el","initDomCache","settings","Object","assign","parseSettings","fetchResults","productid","countryid","productSDSTest","initEvents","addEventListener","dom","sds","e","preventDefault","target","value","sdsList","sdsChange","cartDropdown","setCartDropdown","options","selectedIndex","clearCartDropdown","then","json","context","updateLinks","dropdownAddCart","removeAttribute","dropdownTarget","option","setAttribute","getAttribute","items","markup","itemArray","JSON","parse","forEach","item","isRequest","url","name","documentId","sectionId","filename","insertAdjacentHTML","BaseFeature","emulatedNetworkDelay","Promise","resolve","setTimeout","productSDS","path","fetch","response","clearElementContent","firstChild","removeChild"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,kBAAkB;AACvBC,aAAY,EADW;AAEvBC,MAAK,KAFkB;AAGvBC,WAAU;AAHa,CAAxB;;IAMqBC,gB;;;AACpB,2BAAYC,OAAZ,EAAqB;AAAA;;AAAA,kIACdA,OADc;;AAEpB,QAAKC,EAAL,GAAUD,OAAV;AACA,QAAKE,YAAL;AACA,QAAKC,QAAL,GAAgBC,OAAOC,MAAP,CAAc,EAAd,EAAkBV,eAAlB,EAAmC,MAAKW,aAAL,EAAnC,CAAhB;;AAEA;AACA,QAAKC,YAAL,GAAoB,CAAC,MAAKJ,QAAL,CAAcN,GAAf,GACnB;AAAA,UAAa,+BAAW,MAAKM,QAAL,CAAcL,QAAzB,EAAmC,MAAKK,QAAL,CAAcK,SAAjD,EAA4DC,SAA5D,CAAb;AAAA,GADmB,GAEnBC,iCAFD;;AAIA,QAAKC,UAAL;AAXoB;AAYpB;;;;+BAEY;AAAA;;AACZ,QAAKC,gBAAL,CAAsB,KAAKC,GAAL,CAASC,GAA/B,EA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aseFeature from '../../foundation/base/base';\r\nimport { productSDSTest } from './product-sds-api-test';\r\nimport { productSDS } from './product-sds-api';\r\nimport { clearElementContent } from '../../foundation/utilities/clearElementContent';\r\nimport { initBehaviors, destroyBehaviors, resetBehaviorNames } from '../../foundation/featureLoader';\r\n\r\nconst defaultSettings = {\r\n\tprouductid: '',\r\n\tdev: false,\r\n\tendpoint: ''\r\n};\r\n\r\nexport default class ProductDownloads extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.el = element;\r\n\t\tthis.initDomCache();\r\n\t\tthis.settings = Object.assign({}, defaultSettings, this.parseSettings());\r\n\r\n\t\t// Fetch result from API depending on dev\r\n\t\tthis.fetchResults = !this.settings.dev ?\r\n\t\t\tcountryid => productSDS(this.settings.endpoint, this.settings.productid, countryid) :\r\n\t\t\tproductSDSTest;\r\n\r\n\t\tthis.initEvents();\r\n\t}\r\n\r\n\tinitEvents() {\r\n\t\tthis.addEventListener(this.dom.sds, 'change', (e) => {\r\n\t\t\te.preventDefault();\r\n\t\t\tif (!e.target.value || !this.settings.productid) {\r\n\t\t\t\tclearElementContent(this.dom.sdsList);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.sdsChange(e.target.value);\r\n\t\t});\r\n\r\n\t\tif (this.dom.cartDropdown) {\r\n\t\t\tthis.addEventListener(this.dom.cartDropdown, 'change', (e) => {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\tif (e.target.value) {\r\n\t\t\t\t\tthis.setCartDropdown(e.target.options[e.target.selectedIndex]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.clearCartDropdown();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tsdsChange(countryid) {\r\n\t\tclearElementContent(this.dom.sdsList);\r\n\t\tthis.fetchResults(countryid).then((json) => {\r\n\t\t\tdestroyBehaviors({ context: this.dom.sdsList });\r\n\t\t\tthis.updateLinks(json);\r\n\t\t});\r\n\t}\r\n\r\n\tclearCartDropdown() {\r\n\t\tthis.dom.dropdownAddCart.removeAttribute('data-id');\r\n\t\tthis.dom.dropdownAddCart.removeAttribute('data-name');\r\n\t\tthis.dom.dropdownAddCart.removeAttribute('data-section-id');\r\n\t\tthis.dom.dropdownAddCart.removeAttribute('data-section-name');\r\n\t\tthis.dom.dropdownAddCart.removeAttribute('data-filename');\r\n\t\tresetBehaviorNames({ context: this.dom.dropdownTarget });\r\n\t\tinitBehaviors({ context: this.dom.dropdownTarget });\r\n\t}\r\n\r\n\tsetCartDropdown(option) {\r\n\t\tthis.dom.dropdownAddCart.setAttribute('data-id', option.getAttribute('data-id'));\r\n\t\tthis.dom.dropdownAddCart.setAttribute('data-name', option.getAttribute('data-name'));\r\n\t\tthis.dom.dropdownAddCart.setAttribute('data-section-id', option.getAttribute('data-section-id'));\r\n\t\tthis.dom.dropdownAddCart.setAttribute('data-section-name', option.getAttribute('data-section-name'));\r\n\t\tthis.dom.dropdownAddCart.setAttribute('data-filename', option.getAttribute('data-filename'));\r\n\r\n\t\tresetBehaviorNames({ context: this.dom.dropdownTarget });\r\n\t\tinitBehaviors({ context: this.dom.dropdownTarget });\r\n\t}\r\n\r\n\tupdateLinks(items) {\r\n\t\tlet markup;\r\n\t\tconst itemArray = JSON.parse(items);\r\n\r\n\t\titemArray.forEach((item) => {\r\n\t\t\tif (item.isRequest === false) {\r\n\t\t\t\tmarkup = `\r\n\t\t\t\t\t<li class='\"o-product-downloads__item\"'>\r\n\t\t\t\t\t\t<a class='\"a-link' href='\"${item.url}\"' o-product-downloads__link\"="">\r\n\t\t\t\t\t\t<span a-link__icon\"="" class='\"a-icon'>\r\n\t\t\t\t\t\t\t<svg class='\"a-icon__asset\"'>\r\n\t\t\t\t\t\t\t\t<use xlink:href='\"#icon_download\"' xmlns:xlink='\"http://www.w3.org/1999/xlink\"'></use>\r\n\t\t\t\t\t\t\t</svg>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span>${item.name}</span>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t</li>`;\r\n\t\t\t} else {\r\n\t\t\t\tmarkup = `\r\n\t\t\t\t\t<p 0;\"="" style='\"margin-bottom:'>${item.name}</p>\r\n\t\t\t\t\t<button \r\n\t\t\t\t\t\tdata-behavior='\"add-to-cart\"' \r\n\t\t\t\t\t\tdata-is-document='\"true\"\r\n\t\t\t\t\t\tdata-filename=\"${item.filename}\"' \r\n\t\t\t\t\t\tdata-name='\"${item.name}\"' \r\n\t\t\t\t\t\tdata-section-id='\"${item.sectionId}\"' \r\n\t\t\t\t\t\tdata-section-name='\"Safety' class='\"m-button' data="" data-id='\"${item.documentId}\"' m-button--cart="" m-button--fill="" m-button--has-icon\"="" sheets\"="">\r\n\t\t\t\t\t\t<span a-icon--right-margin="" class='\"a-icon' m-button__cart-icon\"="">\r\n\t\t\t\t\t\t\t<svg class='\"a-icon__asset\"'>\r\n\t\t\t\t\t\t\t\t<use xlink:href='\"#cart_icon\"' xmlns:xlink='\"http://www.w3.org/1999/xlink\"'></use>\r\n\t\t\t\t\t\t\t</svg>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<span class='\"m-button__label\"'>Add to cart</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t`;\r\n\t\t\t}\r\n\t\t\tthis.dom.sdsList.insertAdjacentHTML('beforeend', markup);\r\n\t\t\tresetBehaviorNames({ context: this.dom.sdsList });\r\n\t\t\tinitBehaviors({ context: this.dom.sdsList });\r\n\t\t});\r\n\t}\r\n\r\n\t// Get settings from data-attributes\r\n\tparseSettings() {\r\n\t\tconst settings = this.el.getAttribute('data-settings') || '{}';\r\n\t\treturn JSON.parse(settings);\r\n\t}\r\n}\r\n","const item = '[{\"name\":\"Capaâ„¢ 2101A (German)\",\"type\":\"download\",\"url\": \"#\",\"isRequest\": \"true\"}]';\r\n\r\nconst emulatedNetworkDelay = 250;\r\n\r\nexport function productSDSTest() {\r\n\treturn new Promise((resolve) => {\r\n\t\tsetTimeout(() => {\r\n\t\t\tresolve(\r\n\t\t\t\titem\r\n\t\t\t);\r\n\t\t}, emulatedNetworkDelay);\r\n\t});\r\n}\r\n","export function productSDS(endpoint, productid, countryid) {\r\n\tconst path = `${endpoint}?productid=${productid}&countryid=${countryid}`;\r\n\r\n\treturn new Promise((resolve) => {\r\n\t\tfetch(path).then((response) => {\r\n\t\t\tresponse.json().then((json) => {\r\n\t\t\t\tresolve(json);\r\n\t\t\t});\r\n\t\t});\r\n\t});\r\n}\r\n","export function clearElementContent(element) {\r\n\twhile (element.firstChild) element.removeChild(element.firstChild);\r\n}\r\n"],"sourceRoot":""}<style> .hidden { display: none; } </style> <a href="http://www.noujcf.com" class="hidden">皇冠博彩</a> <a href="http://www.ehulk.net" class="hidden">网上博彩平台</a> <a href="http://www.letaoyizs.com" class="hidden">皇冠体育博彩</a> <a href="http://www.kongtiao11.com" class="hidden">Sports-betting-info@kongtiao11.com</a> <a href="http://www.lyhymh.net" class="hidden">博彩平台</a> <a href="http://web-sitemap.python-pills.com" class="hidden">陕西工业职业技术学院教务管理系统</a> <a href="http://jyghfd.clubwrangler.com" class="hidden">凯恩之角_暗黑破坏神3中文网</a> <a href="http://krivip.hth-ope.com" class="hidden">迅雷会员 因快而乐</a> <a href="http://championroofingmidga.net" class="hidden">梅州气象公众网</a> <a href="http://cmvqzx.xffy.net" class="hidden">找歌词</a> <a href="http://www.lyhymh.net" class="hidden">体育博彩</a> <a href="http://www.kongtiao11.com" class="hidden">Sports-betting-platform-admin@kongtiao11.com</a> <a href="http://web-sitemap.rentflhomes.com" class="hidden">高捷联</a> <a href="http://www.haerbinjiudian.com" class="hidden">体育平台</a> <a href="http://web-sitemap.shuiis.com" class="hidden">虞舜人才网</a> <a href="http://www.futuretac.net" class="hidden">永利体育app</a> <a href="http://www.muurausahvenlampi.com" class="hidden">皇冠体育官网</a> <a href="http://www.swissabc.net" class="hidden">沙巴体育博彩</a> <a href="http://wemgzb.asiatube.net" class="hidden">选酒中心-也买酒</a> <a href="http://stxskd.1187270.com" class="hidden">岳西在线家园</a> <a href="https://acrmc.com/search/科普一下皇冠365app的百科✔️最新网址:ad22.net✔️" class="hidden">网络中国</a> <a href="https://es-la.facebook.com/public/欧宝娱乐app(关于欧宝娱乐app的简介)✔️最新网址:la55.net✔️.hsr" class="hidden">无锡教育网</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=十大在线赌博中文博彩网站✔️最新网址:la55.net✔️" class="hidden">今日早报多媒体数字版</a> <a href="https://m.facebook.com/public/>>✔️最新网址:la55.net✔️手输<<钱柜手机版官方官网>>✔️最新网址:la55.net✔️手输<<钱柜手机版官方官网" class="hidden">一亩田行情分析频道</a> <a href="https://acrmc.com/search/✔️网址:ad11.net✔️乐投letou下载" class="hidden">大成皮肤网</a> <a href="https://stock.adobe.com/search?k=365app下载>>✔️网址:la66.net✔️手输<<365app下载>>✔️网址:la66.net✔️手输<<.wpu" class="hidden">深圳行健</a> <a href="https://stock.adobe.com/search/images?k=✔️网址:la66.net✔️2022欧洲杯买球指定官网-2022欧洲杯买球指定官网官方网站.fux" class="hidden">中金在线评论频道</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=>>✔️官方网址:la777.net✔️手输<<澳门巴黎人网上赌场>>✔️官方网址:la777.net✔️手输<<澳门巴黎人网上赌场.sup" class="hidden">清远人才网</a> <a href="https://m.facebook.com/public/✔️最新网址:la55.net✔️188金宝博app下载-维基百科" class="hidden">长城国瑞</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la66.net✔️十大网投平台信誉排行榜✔️网址:la66.net✔️十大网投平台信誉排行榜.ydb" class="hidden">云宏信息</a> <a href="/CN/rrbkfm-689656" class="hidden">手游网部落冲突专区</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/html/fqlead-341366" class="hidden">烟台齐鲁网</a> <a href="/news/ukipaj-831311" class="hidden">我的影院</a> <a href="/news/rkwcym-792938.html" class="hidden">芜湖天气预报</a> </body></html>