Your IP : 52.14.163.169


Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/js/socialnetwork/
Upload File :
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/js/socialnetwork/render_parts.min.js

(function(){var e=window.BX;if(e.RenderParts){return}e.RenderParts={currentUserSonetGroupIdList:[],mobile:false,publicSection:false,currentExtranetUser:false,availableUsersList:[]};e.RenderParts.init=function(t){if(typeof t.currentUserSonetGroupIdList!="undefined"){this.currentUserSonetGroupIdList=t.currentUserSonetGroupIdList}if(typeof t.publicSection!="undefined"){this.publicSection=!!t.publicSection}this.mobile=!!t.mobile;if(typeof t.currentExtranetUser!="undefined"){this.currentExtranetUser=!!t.currentExtranetUser}if(this.currentExtranetUser&&typeof t.availableUsersList!="undefined"){this.availableUsersList=e.util.array_values(t.availableUsersList)}};e.RenderParts.getNodeSG=function(t){var r=typeof t.VISIBILITY!="undefined"&&t.VISIBILITY=="group_members"&&!e.util.in_array(t.ENTITY_ID,this.currentUserSonetGroupIdList);if(r){return this.getNodeHiddenDestination()}else{return!this.mobile?e.create("a",{attrs:{href:t.LINK,target:"_blank"},text:t.NAME}):e.create("span",{text:t.NAME})}};e.RenderParts.getNodeU=function(t){var r=this.currentExtranetUser&&!e.util.in_array(t.ENTITY_ID,this.availableUsersList);if(r){return this.getNodeHiddenDestination()}else{return!this.mobile?e.create("a",{attrs:{href:t.LINK},props:{className:"blog-p-user-name"+(t.VISIBILITY=="extranet"?" blog-p-user-name-extranet":"")},text:t.NAME}):e.create("a",{attrs:{href:t.LINK},text:t.NAME})}};e.RenderParts.getNodeDR=function(t){return!this.mobile?e.create("a",{attrs:{href:t.LINK,target:"_blank"},text:t.NAME}):e.create("span",{text:t.NAME})};e.RenderParts.getNodeTask=function(t){return!this.mobile&&!this.publicSection&&t.LINK.length>0&&typeof t.VISIBILITY!="undefined"&&typeof t.VISIBILITY.userId!="undefined"&&parseInt(t.VISIBILITY.userId)==parseInt(e.message("USER_ID"))?e.create("a",{attrs:{href:t.LINK,target:"_blank"},text:t.NAME}):e.create("span",{text:t.NAME})};e.RenderParts.getNodeCreateTaskSourceComment=function(t){var r=e.type.isNotEmptyString(t.SOURCE_ENTITY_TYPE)?t.SOURCE_ENTITY_TYPE:"BLOG_COMMENT";var n=e.message("SONET_COMMENTAUX_JS_CREATETASK_"+r+"_LINK");if(!e.type.isNotEmptyString(n)){n=e.message("SONET_COMMENTAUX_JS_CREATETASK_BLOG_COMMENT_LINK")}return!this.mobile&&!this.publicSection&&t.LINK.length>0?e.create("a",{attrs:{href:t.LINK,target:"_blank"},text:n}):e.create("span",{text:n})};e.RenderParts.getNodeUA=function(){return e.create("span",{text:e.message("SONET_RENDERPARTS_JS_DESTINATION_ALL")})};e.RenderParts.getNodeHiddenDestination=function(){return e.create("span",{text:e.message("SONET_RENDERPARTS_JS_HIDDEN")})}})();