(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{165:function(e,n){function t(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(n,t){n.stringLimit=e,n.scrollToTop=function(){t[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},n.checkCommentLength=function(){return t[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},n.equalHeights=function(){const e=t[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&n.expanded&&(t[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},n.toggleFullComment=function(){n.expanded=!n.expanded},n.$watch("expanded || alwaysExpanded",(function(t){n.stringLimit=t?n.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",t).constant("SHORT_COMMENT_LENGTH",100),t.$inject=["SHORT_COMMENT_LENGTH"]}}]);