BX.namespace("BX.Admin.DraggableTab");BX.Admin.DraggableTab=function(){var t=function(t){if(typeof t!=="object")return;this.moduleId=t.moduleId;this.tabId=t.tabId;this.optionName=t.optionName;this.hidden=t.hidden;this.dragObjects=BX(this.tabId).querySelectorAll('[data-role="dragObj"]');if(typeof this.dragObjects!=="object")return;BX.loadScript("/bitrix/js/main/dd.js");for(var e=0;ethis.bxSectParentHeight-this.objSectHeight)e=this.bxSectParentHeight-this.objSectHeight;this.bxSectBlock.style.top=e+"px"};t.prototype.sectionDragHover=function(t,e,i){var r=BX.proxy_context.parentNode.parentNode.parentNode;if(t==r){this.bxSectParent.insertBefore(this.bxSectBlank1,this.bxSectBlank)}else if(t.parentNode==this.bxSectParent){if(t.nextSibling)this.bxSectParent.insertBefore(this.bxSectBlank1,t.nextSibling);else this.bxSectParent.appendChild(this.bxSectBlank1)}};t.prototype.sectionDragStop=function(){var t=BX.proxy_context.parentNode.parentNode.parentNode;if(this.bxSectBlank1&&this.bxSectBlank1.parentNode==this.bxSectParent){this.bxSectParent.replaceChild(t,this.bxSectBlank1)}else{this.bxSectParent.replaceChild(t,this.bxSectBlank)}this.bxSectParent.style.height="";BX.remove(this.bxSectBlock);BX.remove(this.bxSectBlank);BX.remove(this.bxSectBlank1);jsDD.enableDest(t);var e=this.bxSectParent.querySelectorAll('[data-role="dragObj"]');var i=[];for(var r=0;r