define(["require","exports"],function(e,n){"use strict";var t=function(){function e(){var e=$("#consultationSettingsForm");$(".urlPathHolder .shower a").click(function(e){e.preventDefault(),$(".urlPathHolder .shower").addClass("hidden"),$(".urlPathHolder .holder").removeClass("hidden")}),e.submit(function(){var n,t=$("#tagsList").pillbox("items"),i=[],o=$('<input type="hidden" name="tags">');for(n=0;n<t.length;n++)"undefined"==typeof t[n].id?i.push({id:0,name:t[n].text}):i.push({id:t[n].id,name:t[n].text});o.attr("value",JSON.stringify(i)),e.append(o)}),Sortable.create(document.getElementById("tagsListUl"),{draggable:".pill"});var n=$("#adminsMayEdit"),t=$("#iniatorsMayEdit").parents("label").first().parent();n.change(function(){if($(this).prop("checked"))t.removeClass("hidden");else{var e=__t("admin","adminMayEditConfirm");bootbox.confirm(e,function(e){e?(t.addClass("hidden"),t.find("input").prop("checked",!1)):n.prop("checked",!0)})}}),n.prop("checked")||t.addClass("hidden"),$("#singleMotionMode").change(function(){$(this).prop("checked")?$("#forceMotionRow").removeClass("hidden"):$("#forceMotionRow").addClass("hidden")}).change(),console.log("!1")}return e}();n.ConsultationSettings=t,new t});
//# sourceMappingURL=ConsultationSettings.js.map
