",1==c.textpanel_enable_title&&(i+="
"),1==c.textpanel_enable_description&&(i+="
"),i+="
",e.append(i),r=e.children(".ug-textpanel"),l=r.children(".ug-textpanel-textwrapper"),m()},this.destroy=function(){jQuery(u).off(u.events.ITEM_CHANGE)},this.run=function(){d.setSizeByParent(),jQuery(u).on(u.events.ITEM_CHANGE,e)},this.setPanelSize=function(e,t){h.setInternalHeight=!0,t?h.setInternalHeight=!1:t=80,c.textpanel_height&&(t=c.textpanel_height),r.width(e),r.height(t),s&&(s.width(e),s.height(t));var i=e-c.textpanel_padding_left-c.textpanel_padding_right,e=c.textpanel_padding_left;_.setElementSizeAndPosition(l,e,0,i,t),o&&o.width(i),a&&a.width(i),0==h.isFirstTime&&d.positionElements(!1)},this.setSizeByParent=function(){var e=_.getElementSize(n);d.setPanelSize(e.width)},this.setTextPlain=function(e,t,i){var n;1==c.textpanel_title_as_link&&e&&i&&(n="",1==c.textpanel_title_link_newtab&&(n+=' target="blank"'),e='