export const __webpack_esm_id__=90418;export const __webpack_esm_ids__=[90418];export const __webpack_esm_modules__={90418(){function e(){return{restrict:"E",require:"ngModel",scope:{ngModel:"=",ngDisabled:"=",placeholder:"@"},templateUrl:"js/angular/core/templates/editable-content/editable-content.html",link:function(e,t,n,o){const a=t.find("div"),l=()=>{e.ngDisabled||e.$apply(()=>{a.html().length&&!a.text().trim().length&&a.empty(),o.$setViewValue(a[0].innerText)})};o.$render=()=>{a.html(o.$viewValue||"")};const r=e=>{e.preventDefault();const t=(e.originalEvent||e).clipboardData.getData("text/plain"),n=window.getSelection();if(!n.rangeCount)return;n.deleteFromDocument();const o=n.getRangeAt(0),a=document.createDocumentFragment(),r=t.split("\n");r.forEach((e,t)=>{a.appendChild(document.createTextNode(e)),t<r.length-1&&a.appendChild(document.createElement("br"))}),o.insertNode(a),n.collapseToEnd(),l()};e.$on("$destroy",()=>{a.off("blur keyup change input",l),a.off("paste",r)}),a.on("blur keyup change input",l),a.on("paste",r)}}}angular.module("graphdb.framework.core.directives.editable-content",[]).directive("editableContent",e),e.$inject=[]}};
//# sourceMappingURL=90418.ee1af575862a64c12457.bundle.js.map