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