!function(){var t;t=jQuery,PositionSelectInput=Garnish.Base.extend({$container:null,$options:null,$selectedOption:null,$input:null,init:function(i){this.$container=t("#"+i),this.$options=this.$container.find(".btn"),this.$selectedOption=this.$options.filter(".active"),this.$input=this.$container.next("input"),this.addListener(this.$options,"click","onOptionSelect")},onOptionSelect:function(i){var n=t(i.currentTarget);n.hasClass("active")||(this.$selectedOption.removeClass("active"),this.$selectedOption=n.addClass("active"),this.$input.val(n.data("option")))}})}();
//# sourceMappingURL=PositionSelectInput.js.map