Your IP : 18.191.240.117


Current Path : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/bitrix/js/rest/
Upload File :
Current File : /var/www/www-root/data/webdav/www/www.monolith-realty.ru/bitrix/js/rest/userfield.min.js

(function(){"use strict";BX.namespace("BX.rest");if(typeof BX.rest.UserField!=="undefined"){return}BX.rest.UserField=function(e,t){this.id=e;this.param={callback:t.callback,value:t.value};this.inited=false;this.init()};BX.rest.UserField.prototype.init=function(){if(this.inited){return}var e=BX.rest.AppLayout.get(this.id);if(!e){return}e.allowInterface(["resizeWindow"]);var t=e.messageInterface;t.setValue=BX.proxy(this.setValue,this);t.getValue=BX.proxy(this.getValue,this);t.resizeWindow=function(e,t){var i=BX(this.params.layoutName);e.height=parseInt(e.height);if(!!e.height){i.style.height=e.height+"px"}var a=BX.pos(i);t({width:a.width,height:a.height})}};BX.rest.UserField.prototype.setValue=function(e,t){this.param.value=e;if(BX.type.isFunction(this.param.callback)){this.param.callback.apply(this,[e])}t()};BX.rest.UserField.prototype.getValue=function(e,t){t(this.param.value)}})();
//# sourceMappingURL=userfield.map.js