Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/main/core/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/main/core/core_decl.min.js |
(function(){"use strict";BX.namespace("BX");var n=function(n){return BX.type.isPlainObject(n)&&"block"in n};var t=function(n){return BX.type.isNotEmptyString(n)};var i=function(n){return BX.type.isPlainObject(n)&&!("block"in n&&"elem"in n)};BX.render=function(e){var c=null;if(n(e)||i(e)){var r="tag"in e?e.tag:"div";var o=e.block;var a="attrs"in e?e.attrs:{};var l="events"in e?e.events:{};var s={};if("props"in e&&BX.type.isPlainObject(e.props)){s=e.props}if("mix"in e&&BX.type.isArray(e.mix)){e.mix.push(o);s.className=e.mix.join(" ")}else if("mix"in e&&BX.type.isNotEmptyString(e.mix)){s.className=[o,e.mix].join(" ")}else{s.className=o}if("content"in e){var B=[];var X="";if(n(e.content)||i(e.content)){if(e.content.block in BX.Main.ui.block){e.content=BX.Main.ui.block[e.content.block](e.content)}B=[BX.render(e.content)]}if(t(e.content)){X=e.isHtmlContent?e.content:BX.util.htmlspecialchars(e.content)}if(BX.type.isArray(e.content)){B=BX.decl(e.content)}if(BX.type.isDomNode(e.content)){B=[e.content]}}c=BX.create(r,{props:s,attrs:a,events:l,children:B,html:X})}else if(t(e)){c=BX.util.htmlspecialchars(e)}else if(BX.type.isDomNode(e)){c=e}return c};BX.decl=function(t){var i=null;if(BX.type.isArray(t)){i=t.map(function(t){if(n(t)&&t.block in BX.Main.ui.block){t=BX.Main.ui.block[t.block](t)}return BX.render(t)})}else if(n(t)){if(t.block in BX.Main.ui.block){t=BX.Main.ui.block[t.block](t)}i=BX.render(t)}return i}})(); //# sourceMappingURL=core_decl.map.js