{"version":3,"file":"filter.165.02941.js","mappings":"kFAeAA,EAAOC,QAfP,SAAyBC,EAAKC,EAAKC,GAYjC,OAXID,KAAOD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAGNF,GAGyBF,EAAOC,QAAQS,YAAa,EAAMV,EAAOC,QAAiB,QAAID,EAAOC,S,yJCbjGU,WAIF,WAAYC,IAAS,uFACbA,EAAQC,OACRC,KAAKD,KAAOD,EAAQC,MAGpBC,KAAKD,OACLC,KAAKC,GAAK,CACNC,OAAQC,EAAEH,KAAKD,MAAMK,KAAK,sBAE9BJ,KAAKK,iB,kDAIb,WAAgB,WACZC,OAAOC,iBAAiB,QAAQ,kBAAM,EAAKC,sB,4BAG/C,WACQF,OAAOG,WAAa,KACpBN,EAAEH,KAAKC,GAAGC,QAAQQ,YAAY,eAAeC,SAAS,gBAE1DR,EAAEH,KAAKC,GAAGC,QAAQQ,YAAY,iBAAiBC,SAAS,iB,EAzB1Dd,G","sources":["webpack://umms-html/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://umms-html/./FrontEndSrc/modules/macro/filter/filter.js"],"sourcesContent":["function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}\n\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\r\n\r\nclass Filter {\r\n    ui;\r\n    wrap;\r\n\r\n    constructor(options) {\r\n        if (options.wrap) {\r\n            this.wrap = options.wrap;\r\n        }\r\n\r\n        if (this.wrap) {\r\n            this.ui = {\r\n                expand: $(this.wrap).find('.js-filter-expand')\r\n            };\r\n            this.bindUIActions();\r\n        }\r\n    }\r\n\r\n    bindUIActions() {\r\n        window.addEventListener('load', () => this.setExpandState());\r\n    }\r\n\r\n    setExpandState() {\r\n        if (window.innerWidth < 850) {\r\n            $(this.ui.expand).removeClass('is-expanded').addClass('is-collapsed');\r\n        }\r\n        $(this.ui.expand).removeClass('is-not-loaded').addClass('is-loaded');\r\n    }\r\n}\r\n\r\nexport default Filter;\r\n"],"names":["module","exports","obj","key","value","Object","defineProperty","enumerable","configurable","writable","__esModule","Filter","options","wrap","this","ui","expand","$","find","bindUIActions","window","addEventListener","setExpandState","innerWidth","removeClass","addClass"],"sourceRoot":""}