{"version":3,"sources":["src/scripts/components/custom-dropdowns.js"],"names":["$","jQuery","init","selectric","arrowButtonMarkup","on","selectVal","closest","find","val","window","location","assign","onInit","addClass","submit"],"mappings":";;;;;AAAA,IAAIA,IAAIC,MAAR;AACA;AACA;AACA;;AAEA,SAASC,IAAT,GAAgB;AACdF,IAAE,yBAAF,EAA6BG,SAA7B,CAAuC,EAACC,mBAAmB,oCAApB,EAAvC;AACAJ,IAAE,mCAAF,EAAuCG,SAAvC,CAAiD,EAACC,mBAAmB,oCAApB,EAAjD;AACAJ,IAAE,mCAAF,EAAuCK,EAAvC,CAA0C,kBAA1C,EAA8D,YAAW;AACvE,QAAIC,YAAYN,EAAE,IAAF,EAAQO,OAAR,CAAgB,wBAAhB,EAA0CC,IAA1C,CAA+C,QAA/C,EAAyDC,GAAzD,EAAhB;AACAC,WAAOC,QAAP,CAAgBC,MAAhB,CAAuBN,SAAvB;AACA;AACD,GAJD;AAKAN,IAAE,0CAAF,EAA8CG,SAA9C,CAAwD;AACtDC,uBAAmB,oCADmC;AAEtDS,YAAQ,kBAAW;AACjBb,QAAE,cAAF,EAAkBc,QAAlB,CAA2B,kBAA3B;AACD;AAJqD,GAAxD;AAMAd,IAAE,0CAAF,EAA8CK,EAA9C,CAAiD,yBAAjD,EAA4E,YAAW;AACrFL,MAAE,IAAF,EAAQO,OAAR,CAAgB,qBAAhB,EAAuCQ,MAAvC;AACD,GAFD;AAID;;QAEgBb,I,GAARA,I","file":"custom-dropdowns.js","sourcesContent":["var $ = jQuery;\n/* eslint-disable */\n// import selectric from '../libs/dropdowns-ugh.js';\n/* eslint-enable */\n\nfunction init() {\n $('.filter-wrapper__filter').selectric({arrowButtonMarkup: ''});\n $('.results-wrapper .facets-dropdown').selectric({arrowButtonMarkup: ''});\n $('.results-wrapper .facets-dropdown').on('selectric-change', function() {\n let selectVal = $(this).closest('.selectric-hide-select').find('select').val();\n window.location.assign(selectVal);\n //.trigger('change');\n });\n $('#edit-field-areas-of-expertise-target-id').selectric({\n arrowButtonMarkup: '',\n onInit: function() {\n $('.about-staff').addClass('selectric-active');\n }\n });\n $('#edit-field-areas-of-expertise-target-id').on('selectric-change change', function() {\n $(this).closest('.views-exposed-form').submit();\n });\n\n}\n\nexport { init as init };\n"]}