!function(s){"use strict";var t=(e.prototype.getDefaultOptions=function(){return{incrementButtonText:'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" class="bi bi-plus" viewBox="0 0 16 16"> <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/></svg>',decrementButtonText:'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" class="bi bi-dash" viewBox="0 0 16 16"><path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z"/> </svg>'}},e.prototype.incrementValue=function(t,e){var n=+t.val();t.val(e&&e<=n?n:1+n),t.trigger("change")},e.prototype.decrementValue=function(t,e){var n=+t.val();t.val(e&&n<=e?n:n-1),t.trigger("change")},e.prototype.getNavButtons=function(e,n,i){var t=s("<button />").append(this.settings.incrementButtonText),r=s("<button />").append(this.settings.decrementButtonText);return t.on("click",function(t){t.preventDefault(),this.incrementValue(e,n)}.bind(this)),r.on("click",function(t){t.preventDefault(),this.decrementValue(e,i)}.bind(this)),{$incrementaButton:t,$decrementButton:r}},e.prototype.addExtraElements=function(){this.$selector.each(function(t,e){var n=s(e).attr("max"),i=s(e).attr("min"),e=s(e),i=this.getNavButtons(e,n,i);e.wrap('<div class="fst-custom-input-wrapper"></div>'),e.after(i.$incrementaButton),e.before(i.$decrementButton)}.bind(this))},e);function e(t){var e=this.getDefaultOptions();this.settings=s.extend({},e,t),this.$selector=s(this.settings.selector),this.$selector.length&&this.addExtraElements()}window.FstCustomInputNumber=t}(jQuery);