!function(v,m){v.fn.yith_wcbk_people_selector=function(t){var o=this,l=v(this),n=!1,a="",e=!1,s={main:!1,open:!1,close:!1,toggle:!1,widget:v(".yith_wcbk_booking_product_form_widget")},i=function(){m.addEventListener("click",g,!0);var e=l.attr("id"),e=!!e&&v('label[for="'+e+'"]');l.on("open",u),l.on("close",f),n.on("change",d),e&&e.length&&e.on("click",function(){s.toggle.trigger("click")})},c=function(){var e=l.data("min"),n=l.data("max");o.min=void 0!==e&&parseInt(e,10),o.max=void 0!==n&&parseInt(n,10)},r=function(){a=l.find(t.totals_selector)||"",e=l.find(t.fieldsContainer_selector)||"",n=l.find(t.field_selector)||!1,s.main=l.find("."+t["class"]),s.open=l.find(t.openHandler_selector),s.close=l.find(t.closeHandler_selector),s.toggle=l.find(t.toggleHandler_selector),_(),n&&n.each(function(){v(this).yith_wcbk_people_selector_field({canIncreaseGlobal:function(){return!1===o.max||o.valuet.min:e)&&t.options.canDecreaseGlobal()},t.enableDisableButtons=function(){t.canIncrease()?n.removeClass(t.options.buttonDisabledClass):n.addClass(t.options.buttonDisabledClass),t.canDecrease()?s.removeClass(t.options.buttonDisabledClass):s.addClass(t.options.buttonDisabledClass)},"getValue"===(e=void 0!==e?e:{})?o.data("value")||0:(t.options=v.extend({},b,e),r(),i(),c(),_(d(),!1),o)}}(jQuery,(window,document));