jQuery(document).ready(function(d){(d=jQuery.noConflict())(".valid").on("click",function(){var t=d("select[name='service_get_category_id']"),e=d("input[name='service_name']"),a=d("input[name='service_duration']"),n=d("input[name='service_cost']"),i=d("input[name='extra[add][name]']"),r=t.parent().parent().prev().children("label").text(),l=e.parent().prev().children("label").text(),s=(a.parent().prev().children("label").text(),i.parent().prev().children("label").text());if(t.val()<1&&""===e.val()&&n.val()<0)return e.next().text("Must Select a ".concat(l)),t.parent().next().text("Must Select a ".concat(r)),i.parent().next().text("Must Select a ".concat(s)),d(".adm-valid-tabs-txt").text("Price and Duration Missing"),d(".adm-valid-tabs-txt").prev().addClass("adm-valid-tabs"),!1;if(n.attr("disabled"))e.next().empty(),d(".adm-valid-tabs-txt").prev().removeClass("adm-valid-tabs");else{if(t.val()<1)return t.parent().next().text("Must Select a ".concat(r)),!1;if(t.parent().next().empty(),""===a.val()||a.val()<1||null===a.val())return a.next().text("Must Select a Duration"),d(".adm-valid-duration-tabs-txt").text("Duration Missing"),!1;if(a.next().empty(),d(".adm-valid-duration-tabs-txt").empty(),""===e.val())return e.next().text("Must Select a ".concat(l)),d(".adm-valid-basic-tabs-txt").text("Basic Info Missing"),!1;e.next().empty(),d(".adm-valid-basic-tabs-txt").empty(),e.next().empty(),a.next().empty(),t.parent().next().empty(),d(".adm-valid-basic-tabs-txt").empty(),d(".adm-valid-basic-tabs-txt").prev().removeClass("adm-valid-tabs")}return!0})});