text: (function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):b(a.index={})})(this,function(a){'use strict';function b(a,b){function c(){l.innerHTML=k.options[k.selectedIndex].innerHTML}function d(){c()}function e(){h()}function f(){m&&m.addEventListener("reset",e),k.addEventListener("change",d)}function g(){i.classList.add(j.insertClasses.holder),k.classList.add(j.insertClasses.select),l.classList.add(j.insertClasses.span)}function h(){l.innerHTML=k.options[0].innerHTML}var i=a,j=b,k=i.querySelector(j.selectors.select),l=i.querySelector(j.selectors.span),m=i.closest("form");return function(){f(),g(),h()}(),{elements:{holder:i,select:k,label:l},emitEvent:function(){k.dispatchEvent(new Event("change"))},config:j}}var c=a=>"string"==typeof a?document.querySelector(a):a;const d=a=>"object"==typeof a?a:Array.from(document.querySelectorAll(a));var e={insertClasses:{holder:"halley-fake-select",select:"halley-fake-select_select",span:"halley-fake-select_span"},selectors:{select:"[data-fake-select]",span:"[data-fake-span]"}};a.default=function(a,d){var f=c(a);return b(f,Object.assign({},e,d))},a.init=function(a,c){var f=d(a);return f.map(function(a){return b(a,Object.assign({},e,c))})},Object.defineProperty(a,"__esModule",{value:!0})});
  