{"version":3,"sources":["foundation.category.configurator.js"],"names":["$","window","document","Foundation","libs","categoryconfigurator","name","version","settings","callback","init","scope","method","options","this","extend","defaults","bindings","events","S","scrollY","initBindings","top","on","off","event","scrollTo","bind","attr_name","updateProductsList","val","data","reflow","jQuery"],"mappings":"AAAA,CAAA,SAAAA,EAAAC,EAAAC,GACA,aACAC,WAAAC,KAAAC,qBAAA,CACAC,KAAA,uBACAC,QAAA,QACAC,SAAA,CACAC,SAAA,YACA,EACAC,KAAA,SAAAC,EAAAC,EAAAC,GAKAC,KAAAN,SAAAM,KAAAN,UAAAR,EAAAe,OAAA,GAAAD,KAAAE,SAAAH,GAAAD,CAAA,EAGAE,KAAAG,SAAAL,EAAAC,CAAA,CACA,EACAK,OAAA,WAGAJ,KAAAK,EACAL,KAAAM,QAEAN,KAAAO,aAAA,CACA,EACAA,aAAA,WACA,IAAAC,EAAArB,EAAAmB,QAEApB,EAAAE,CAAA,EAAAqB,GAAA,SAAA,KACAD,EAAArB,EAAAmB,OACA,CAAA,EAEApB,EAAAc,KAAAH,KAAA,EACAa,IAAA,uBAAA,EACAD,GAAA,2BAAA,qBAAA,SAAAE,GACAxB,EAAAyB,SAAA,EAAAJ,CAAA,CACA,CAAA,EAAAK,KAAAb,IAAA,EAEAS,GAAA,4BAAA,IAAAT,KAAAc,UAAA,EAAA,uBAAA,SAAAH,GACAI,mBAAA7B,EAAAc,IAAA,EAAAgB,IAAA,EAAA,EAAA,CAAA,CAAA,CACA,CAAA,EAAAH,KAAAb,IAAA,EAEAS,GAAA,2BAAA,IAAAT,KAAAc,UAAA,EAAA,6BAAA,SAAAH,GACAI,mBAAA7B,EAAAc,IAAA,EAAAiB,KAAA,MAAA,EAAA,EAAA,CAAA,CAAA,CACA,CAAA,EAAAJ,KAAAb,IAAA,CAEA,EAEAkB,OAAA,YACA,CACA,EAAAC,OAAAnB,KAAAA,KAAAZ,QAAA","file":"../categoryConfigurator.min.js","sourcesContent":["; (function ($, window, document, undefined) {\r\n 'use strict';\r\n Foundation.libs.categoryconfigurator = {\r\n name: 'categoryconfigurator',\r\n version: '1.0.0',\r\n settings: {\r\n callback: function () { }\r\n },\r\n init: function (scope, method, options) {\r\n // initialisation à conserver\r\n //Foundation.inherit(this, 'throttle random_str');\r\n var self = this;\r\n\r\n this.settings = this.settings || $.extend({}, this.defaults, (options || method));\r\n\r\n // à conserver\r\n this.bindings(method, options);\r\n },\r\n events: function () {\r\n // initialisation pratique à conserver\r\n var self = this;\r\n var S = this.S;\r\n var top = this.scrollY;\r\n\r\n this.initBindings();\r\n },\r\n initBindings: function () {\r\n var top = window.scrollY;\r\n\r\n $(document).on('scroll', () => {\r\n top = window.scrollY\r\n })\r\n\r\n $(this.scope)\r\n .off('.categoryconfigurator')\r\n .on('focus.fndtn.configurator', '.configuratorFacet', function (event) {\r\n window.scrollTo(0, top);\r\n }).bind(this)\r\n // CHOIX D'UNE VALEUR DANS LA LISTE\r\n .on('change.fndtn.configurator', '[' + this.attr_name() + '] .configuratorFacet', function (event) {\r\n updateProductsList($(this).val(), 1, true);\r\n }).bind(this)\r\n // CLICK SUR BOUTON DE REINITIALISATION\r\n .on('click.fndtn.configurator', '[' + this.attr_name() + '] #plp-configurator-reinit', function (event) {\r\n updateProductsList($(this).data(\"href\"), 1, true);\r\n }).bind(this)\r\n ;\r\n },\r\n\r\n reflow: function () { }\r\n };\r\n}(jQuery, this, this.document));"]}