{"version":3,"sources":["webpack:///./src/feature/body/body.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js"],"names":["Body","element","_this","_classCallCheck","this","_possibleConstructorReturn","_getPrototypeOf","call","initDomCache","el","body","window","features","dom","closeSlider","querySelector","filterInputTrigger","document","filterControl","filterInputScroll","getElementById","addClick","BaseFeature","_this2","addEventListener","classList","add","remove","sessionStorage","getItem","value","scrollIntoView","setItem","removeItem","clear","$","__webpack_require__","fails","toObject","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","target","stat","forced","sham","getPrototypeOf","it","setPrototypeOf"],"mappings":"u9BAEMA,cACL,SAAAA,EAAYC,GAAS,IAAAC,EAAA,mGAAAC,CAAAC,KAAAJ,IACpBE,EAAAG,EAAAD,KAAAE,EAAAN,GAAAO,KAAAH,KAAMH,KACDO,eAELN,EAAKO,GAAKR,EACVC,EAAKQ,KAAOC,OAAOC,SAASC,IAAIH,KAChCR,EAAKY,YAAcZ,EAAKO,GAAGM,cAAc,2BACzCb,EAAKc,mBAAqBC,SAASF,cAAc,qBACjDb,EAAKgB,cAAgBhB,EAAKO,GAAGM,cAAc,6BAC3Cb,EAAKiB,kBAAoBF,SAASG,eAAe,WACjDlB,EAAKmB,WAVenB,wPADHoB,iDAcP,IAAAC,EAAAnB,KAEVA,KAAKM,KAAKc,iBAAiB,YAAa,WACvCD,EAAKb,KAAKe,UAAUC,IAAI,iBAEzBtB,KAAKM,KAAKc,iBAAiB,UAAW,WACrCD,EAAKb,KAAKe,UAAUE,OAAO,iBAIxBvB,KAAKc,gBAEJU,eAAeC,QAAQ,kBAAoBzB,KAAKY,mBAAmBc,OACtE1B,KAAKe,kBAAkBY,iBAExB3B,KAAKc,cAAcM,iBAAiB,QAAS,WAE5CI,eAAeI,QAAQ,eAAgBT,EAAKP,mBAAmBc,SAIhEF,eAAeK,WAAW,gBAG1BL,eAAeM,8CAKHlC,iCC7Cf,IAAAmC,EAAQC,EAAQ,GAChBC,EAAYD,EAAQ,GACpBE,EAAeF,EAAQ,IACvBG,EAA2BH,EAAQ,IACnCI,EAA+BJ,EAAQ,KAKvCD,EAAA,CAAGM,OAAA,SAAAC,MAAA,EAAAC,OAJHN,EAAA,WAA6CE,EAAA,KAI1CK,MAAAJ,GAA6F,CAChGK,eAAA,SAAAC,GACA,OAAAP,EAAAD,EAAAQ,4BCXQV,EAAQ,EAKhBD,CAAA,CAAGM,OAAA,SAAAC,MAAA,GAA+B,CAClCK,eALqBX,EAAQ","file":"21-14169098.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nclass Body extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.initDomCache();\r\n\r\n\t\tthis.el = element;\r\n\t\tthis.body = window.features.dom.body;\r\n\t\tthis.closeSlider = this.el.querySelector('[data-js=\"closeSlider\"]');\r\n\t\tthis.filterInputTrigger = document.querySelector('.m-filter__button');\r\n\t\tthis.filterControl = this.el.querySelector('[data-js=\"filterControl\"]');\r\n\t\tthis.filterInputScroll = document.getElementById('mFilter');\r\n\t\tthis.addClick();\r\n\t}\r\n\r\n\taddClick() {\r\n\t\t// Let the document know when the mouse/key is being used\r\n\t\tthis.body.addEventListener('mousedown', () => {\r\n\t\t\tthis.body.classList.add('using-mouse');\r\n\t\t});\r\n\t\tthis.body.addEventListener('keydown', () => {\r\n\t\t\tthis.body.classList.remove('using-mouse');\r\n\t\t});\r\n\r\n\t\t// Maintain Scroll Position for Filters\r\n\t\tif (this.filterControl) {\r\n\t\t\t// detect if session value is set\r\n\t\t\tif (sessionStorage.getItem('targetfilter') === this.filterInputTrigger.value) {\r\n\t\t\t\tthis.filterInputScroll.scrollIntoView();\r\n\t\t\t}\r\n\t\t\tthis.filterControl.addEventListener('click', () => {\r\n\t\t\t\t// Save the key and value of session storage\r\n\t\t\t\tsessionStorage.setItem('targetfilter', this.filterInputTrigger.value);\r\n\t\t\t});\r\n\r\n\t\t\t// Remove saved data from sessionStorage\r\n\t\t\tsessionStorage.removeItem('targetfilter');\r\n\r\n\t\t\t// Remove all saved data from sessionStorage\r\n\t\t\tsessionStorage.clear();\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport default Body;\r\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n"],"sourceRoot":""}