/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','jquery.sap.encoder'],function(q){"use strict";var B={};(function(){B.render=function(R,c){var a={top:c.getTop(),begin:c.getBegin(),center:c.getCenter(),end:c.getEnd(),bottom:c.getBottom()};var A={top:s(a.top),begin:s(a.begin),center:s(a.center),end:s(a.end),bottom:s(a.bottom)};var b=sap.ui.getCore().getConfiguration().getRTL();R.write("");if(a.top){r(R,"top",a.top,A,b);}if(a.begin){r(R,"begin",a.begin,A,b);}if(a.center&&a.center.getVisible()){r(R,"center",a.center,A,b);}if(a.end){r(R,"end",a.end,A,b);}if(a.bottom){r(R,"bottom",a.bottom,A,b);}R.write("");};B.animate=function(a,v){var R=sap.ui.getCore().getConfiguration().getRTL();var e=v?a.getSize():"0";switch(a.getAreaId()){case"top":$(a,"top").animate({height:e});$(a,"begin").animate({top:e});$(a,"center").animate({top:e});$(a,"end").animate({top:e});break;case"begin":$(a,"begin").animate({width:e});$(a,"center").animate(R?{right:e}:{left:e});break;case"end":$(a,"center").animate(R?{left:e}:{right:e});$(a,"end").animate({width:e});break;case"bottom":$(a,"begin").animate({bottom:e});$(a,"center").animate({bottom:e});$(a,"end").animate({bottom:e});$(a,"bottom").animate({height:e});break;default:break;}};function s(a){var S=a&&a.getVisible()&&a.getSize();return S||"0";}function r(R,a,A,m,b){var c=A.getContent();var l=c.length;R.write("");for(var i=0;i");}function $(a,A){var o=a.getParent().getArea(A);return o?o.$():q();}}());return B;},true);