PageSourceSearch

https://voenchast.ru/local/templates/voenchast/components/bitrix/s…/user_blog/script.min.js

js voenchast.ru collected 2026-10-09 22:41:34 UTC 23,897 bytes, 2 lines download raw bytes

1(function(){if(window["SBPETabs"])return;window.SBPETabs=function(){if(window.SBPETabs.instance!=null){throw"SBPETabs is a singleton. Use SBPETabs.getInstance to get an object."}this.tabs={};this.bodies={};this.active=null;this.animation=null;this.animationStartHeight=0;this.menu=null;this.menuItems=[];if(this.inited!==true)this.init();window.SBPETabs.instance=this};window.SBPETabs.instance=null;window.SBPETabs.getInstance=function(){if(window.SBPETabs.instance==null){window.SBPETabs.instance=new SBPETabs}return window.SBPETabs.instance};window.SBPETabs.changePostFormTab=function(e,t){var o=window.SBPETabs.getInstance();return o.setActive(e,t)};window.SBPETabs.prototype={_createOnclick:function(e,t,o){return function(){var s=BX("feed-add-post-form-link-more",true);var i=BX("feed-add-post-form-link-text",true);i.innerHTML=t;s.className="feed-add-post-form-link feed-add-post-form-link-more feed-add-post-form-link-active feed-add-post-form-"+e+"-link";if(e!="lists"){window.SBPETabs.changePostFormTab(e)}if(BX.type.isNotEmptyString(o)){BX.evalGlobal(o)}this.popupWindow.close()}},init:function(){this.tabContainer=BX("feed-add-post-form-tab");var e=BX.findChildren(this.tabContainer,{tag:"span",className:"feed-add-post-form-link"},true);this.arrow=BX("feed-add-post-form-tab-arrow");this.tabs={};this.bodies={};for(var t=0;t<e.length;t++){var o=e[t].getAttribute("id").replace("feed-add-post-form-tab-","");this.tabs[o]=e[t];if(this.tabs[o].style.display=="none"){this.menuItems.push({tabId:o,text:e[t].getAttribute("data-name"),className:"feed-add-post-form-"+o+" feed-add-post-form-"+o+"-more",onclick:this._createOnclick(o,e[t].getAttribute("data-name"),e[t].getAttribute("data-onclick"))});this.tabs[o]=this.tabs[o].parentNode}this.bodies[o]=BX("feed-add-post-content-"+o)}if(!!this.tabs["file"])this.bodies["file"]=[this.bodies["message"]];if(!!this.tabs["calendar"])this.bodies["calendar"]=[this.bodies["calendar"]];if(!!this.tabs["vote"])this.bodies["vote"]=[this.bodies["message"],this.bodies["vote"]];if(!!this.tabs["more"])this.bodies["more"]=null;if(!!this.tabs["important"])this.bodies["important"]=[this.bodies["message"],this.bodies["important"]];if(!!this.tabs["grat"])this.bodies["grat"]=[this.bodies["message"],this.bodies["grat"]];if(!!this.tabs["lists"])this.bodies["lists"]=[this.bodies["lists"]];for(var s in this.bodies){if(this.bodies.hasOwnProperty(s)&&BX.type.isDomNode(this.bodies[s]))this.bodies[s]=[this.bodies[s]]}this.inited=true;this.previousTab=false;BX("bx-b-uploadfile-blogPostForm").setAttribute("bx-press","pressOut");BX.bind(BX("bx-b-uploadfile-blogPostForm"),"mousedown",BX.delegate(function(){BX("bx-b-uploadfile-blogPostForm").setAttribute("bx-press",BX("bx-b-uploadfile-blogPostForm").getAttribute("bx-press")=="pressOut"?"pressOn":"pressOut")},this));BX.onCustomEvent(this.tabContainer,"onObjectInit",[this]);var i=BX("blogPostForm");if(i){if(!i.changePostFormTab){i.appendChild(BX.create("INPUT",{props:{type:"hidden",name:"changePostFormTab",value:""}}))}BX.addCustomEvent(window,"changePostFormTab",function(e){if(e!="more"){i.changePostFormTab.value=e}});if(i["UF_BLOG_POST_IMPRTNT"]){BX.addCustomEvent(window,"changePostFormTab",function(e){if(e!="more"){i["UF_BLOG_POST_IMPRTNT"].value=e=="important"?1:0}})}}},setActive:function(e,t){if(e==null||this.active==e&&e!="lists")return this.active;else if(!this.tabs[e])return false;var o,s;this.startAnimation();for(o in this.tabs){if(this.tabs.hasOwnProperty(o)&&o!=e){BX.removeClass(this.tabs[o],"feed-add-post-form-link-active");if(this.bodies[o]==null||this.bodies[e]==null)continue;for(s=0;s<this.bodies[o].length;s++){if(this.bodies[e][s]!=this.bodies[o][s])BX.adjust(this.bodies[o][s],{style:{display:"none"}})}}}if(!!this.tabs[e]){this.active=e;BX.addClass(this.tabs[e],"feed-add-post-form-link-active");var i=BX.pos(this.tabs[e],true);this.arrow.style.left=i.left+25+"px";if(this.previousTab=="file"||e=="file"){var a=null,n=null,d=false,l=false,r=BX("divoPostFormLHE_blogPostForm");if(!!r.childNodes&&r.childNodes.length>0){for(o in r.childNodes){if(r.childNodes.hasOwnProperty(o)&&r.childNodes[o].className=="file-selectdialog"){a=r.childNodes[o];var c=BX.findChild(a,{className:"file-placeholder-tbody"},true),f=BX.findChildren(a,{className:"feed-add-photo-block"},true);if(c.rows>
10||!!f&&f.length>1)d=true}else if(BX.type.isNotEmptyString(r.childNodes[o].className)&&(r.childNodes[o].className.indexOf("wduf-selectdialog")>=0||r.childNodes[o].className.indexOf("diskuf-selectdialog")>=0)){n=r.childNodes[o];var u=BX.findChildren(n,{className:"wd-inline-file"},true);l=!!u&&u.length>0}else if(BX.type.isElementNode(r.childNodes[o])){BX.adjust(r.childNodes[o],{style:{display:e=="file"?"none":""}})}}if(e=="file"){if(!!window["PlEditorblogPostForm"]){if(!window["PlEditorblogPostForm"]["SBPEBinded"]){window["PlEditorblogPostForm"].SBPEBinded=true;BX.addCustomEvent(window["PlEditorblogPostForm"].eventNode,"onUploadsHasBeenChanged",function(e){if(e.dialogName=="AttachFileDialog"&&e.urlUpload.indexOf("&dropped=Y")<0){e.urlUpload=e.agent.uploadFileUrl=e.urlUpload.replace("&random_folder=Y","&dropped=Y")}BX("bx-b-uploadfile-blogPostForm").setAttribute("bx-press","pressOn");window.SBPETabs.changePostFormTab("message")})}window["PlEditorblogPostForm"].controllerInit("show")}window["PlEditorblogPostForm"].controllerInit("show");BX.addClass(r,"feed-add-post-form");BX.addClass(r,"feed-add-post-edit-form");BX.addClass(r,"feed-add-post-edit-form-file")}else{BX.removeClass(r,"feed-add-post-form");BX.removeClass(r,"feed-add-post-edit-form");BX.removeClass(r,"feed-add-post-edit-form-file");if(!d&&!l&&BX("bx-b-uploadfile-blogPostForm").getAttribute("bx-press")=="pressOut"&&!!window["PlEditorblogPostForm"]){window["PlEditorblogPostForm"].controllerInit("hide")}}}}if(BX("divoPostFormLHE_blogPostForm").style.display=="none"){BX.onCustomEvent(BX("divoPostFormLHE_blogPostForm"),"OnShowLHE",["justShow"])}if(e=="lists"){BX.onCustomEvent("onDisplayClaimLiveFeed",[t])}this.previousTab=e;if(!!this.bodies[e]){for(s=0;s<this.bodies[e].length;s++){BX.adjust(this.bodies[e][s],{style:{display:"block"}})}}}this.endAnimation();if(e!="lists")this.restoreMoreMenu();BX.onCustomEvent(window,"changePostFormTab",[e]);return this.active},startAnimation:function(){if(this.animation)this.animation.stop();var e=BX("microblog-form",true);this.animationStartHeight=e.parentNode.offsetHeight;e.parentNode.style.height=this.animationStartHeight+"px";e.parentNode.style.overflowY="hidden";e.parentNode.style.position="relative";e.style.opacity=0},endAnimation:function(){var e=BX("microblog-form",true);this.animation=new BX["easing"]({duration:500,start:{height:this.animationStartHeight,opacity:0}
1,finish:{height:e.offsetHeight+e.offsetTop,opacity:100},transition:BX.easing.makeEaseOut(BX.easing.transitions.quart),step:function(t){e.parentNode.style.height=t.height+"px";e.style.opacity=t.opacity/100},complete:BX.proxy(function(){e.style.cssText="";e.parentNode.style.cssText="";this.animation=null},this)});this.animation.animate()},collapse:function(){window.SBPETabs.changePostFormTab("message");this.startAnimation();BX.onCustomEvent(BX("divoPostFormLHE_blogPostForm"),"OnShowLHE",[false]);this.endAnimation();this.active=null},showMoreMenu:function(){if(!this.menu){this.menu=BX.PopupMenu.create("feed-add-post-form-popup",BX("feed-add-post-form-link-text"),this.menuItems,{closeByEsc:true,offsetTop:5,offsetLeft:3,angle:true})}this.menu.popupWindow.show()},restoreMoreMenu:function(){var e=this.menuItems.length;if(e<1){return}for(var t=0;t<e;t++){if(this.active==this.menuItems[t]["tabId"]){return}}var o=BX("feed-add-post-form-link-more",true);var s=BX("feed-add-post-form-link-text",true);o.className="feed-add-post-form-link feed-add-post-form-link-more";s.innerHTML=BX.message("SBPE_MORE")},getLists:function(){var e=BX("feed-add-post-form-tab-lists")&&BX("feed-add-post-form-tab-lists").style.display!="none"?BX("feed-add-post-form-tab-lists"):BX("feed-add-post-form-link-more"),t=BX.findChildren(e,{tag:"span",className:"feed-add-post-form-link-lists"},true),o=BX.findChildren(e,{tag:"span",className:"feed-add-post-form-link-lists-default"},true),s=[],i=[];if(t.length){i=this.getMenuItems(t,this.createOnclickLists);s=this.getMenuItemsDefault(o);i=i.concat(s);this.showMoreMenuLists(i)}else{var a=this.showMoreMenuLists,n=this.getMenuItems,d=this.getMenuItemsDefault,l=this.createOnclickLists,r=null;if(BX("bx-lists-select-site-id")){r=BX("bx-lists-select-site-id").value}BX.ajax({method:"POST",dataType:"json",url:"/bitrix/components/bitrix/socialnetwork.blog.post.edit/post.ajax.php",data:{bitrix_processes:1,siteId:r,sessid:BX.bitrix_sessid()},onsuccess:BX.delegate(function(r){if(r.success){for(var c in r.lists){e.appendChild(BX.create("span",{attrs:{"data-name":r.lists[c].NAME,"data-picture":r.lists[c].PICTURE,"data-description":r.lists[c].DESCRIPTION,"data-picture-small":r.lists[c].PICTURE_SMALL,"data-code":r.lists[c].CODE,iblockId:r.lists[c].ID},props:{className:"feed-add-post-form-link-lists",id:"feed-add-post-form-tab-lists"},style:{display:"none"}}))}t=BX.findChildren(e,{tag:"span",className:"feed-add-post-form-link-lists"},true);i=n(t,l);if(!o.length){for(var c in r.permissions){var f;if(c=="new"){f='document.location.href = "'+BX("bx-lists-lists-page").value+'0/edit/"'}else if(c=="market"){if(r.admin&&BX("bx-lists-lists-page")){f='document.location.href = "'+BX("bx-lists-lists-page").value+'?bp_catalog=y"'}else{if(BX("bx-lists-random-string")){f='BX["LiveFeedClass_'+BX("bx-lists-random-string").value+'"].errorPopup("'+BX.message("LISTS_CATALOG_PROCESSES_ACCESS_DENIED")+'");'}}}else if(c=="settings"){f='document.location.href = "'+BX("bx-lists-lists-page").value+'"'}e.appendChild(BX.create("span",{attrs:{"data-name":r.permissions[c],"data-picture-small":"","data-key":c,"data-onclick":f},props:{className:"feed-add-post-form-link-lists-default",id:"feed-add-post-form-tab-lists"},style:{display:"none"}}))}o=BX.findChildren(e,{tag:"span",className:"feed-add-post-form-link-lists-default"},true)}s=d(o);i=i.concat(s);a(i)}else{e.appendChild(BX.create("span",{attrs:{"data-name":r.error,"data-picture-small":""},props:{className:"feed-add-post-form-link-lists-default",id:"feed-add-post-form-tab-lists"},style:{display:"none"}}));t=BX.findChildren(e,{tag:"span",className:"feed-add-post-form-link-lists-default"},true);i=n(t,0);a(i)}})})}},getMenuItems:function(e,t){var o=[];for(var s=0;s<e.length;s++){var i=e[s].getAttribute("id").replace("feed-add-post-form-tab-","");if(t){o.push({tabId:i,text:BX.util.htmlspecialchars(e[s].getAttribute("data-name")),className:"feed-add-post-form-"+i+"feed-add-post-form-"+i+"-item",onclick:t(i,[e[s].getAttribute("iblockId"),e[s].getAttribute("data-name"),e[s].getAttribute("data-description"),e[s].getAttribute("data-picture"),e[s].getAttribute("data-code")])})}else{o.push({tabId:i,text:e[s].getAttribute("data-name"),className:"feed-add-post-form-"+i,onclick:""})}}return o},getMenuItemsDefault:function(e){var t=[];for(var o=0;o<e.length;o++){t.push({text:BX.util.htmlspecialchars(e[o].getAttribute("data-name")),className:"feed-add-post-form-lists-default-"+e[o].getAttribute("data-key"),onclick:e[o].getAttribute("data-onclick")})}return t},showMoreMenuLists:function(e){var t=BX("feed-add-post-form-tab-lists").style.display!="none"?BX("feed-add-post-form-tab-lists"):BX("feed-add-post-form-link-more");var o=BX.PopupMenu.create("lists",t,e,{closeByEsc:true,offsetTop:5,offsetLeft:12,angle:true});var s=BX.findChildren(BX("popup-window-content-menu-popup-lists"),{tag:"span",className:"menu-popup-item-icon"},true),i=BX.findChildren(t,{tag:"span",className:"feed-add-post-form-link-lists"},true),a=BX.findChildren(t,{tag:"span",className:"feed-add-post-form-link-lists-default"},true);i=i.concat(a);for(var n=0;n<s.length;n++){if(i[n].getAttribute("data-picture-small")){s[n].innerHTML=i[n].getAttribute("data-picture-small")}}o.popupWindow.show()},createOnclickLists:function(e,t){return function(){window.SBPETabs.changePostFormTab(e,t);this.popupWindow.close()}}};window.BXfpGratSelectCallback=function(e){BXfpGratMedalSelectCallback(e,"grat")};window.BXfpMedalSelectCallback=function(e){BXfpGratMedalSelectCallback(e,"medal")};window.BXfpGratMedalSelectCallback=function(e,t){if(t!="grat")t="medal";var o="U";BX("feed-add-post-"+t+"-item").appendChild(BX.create("span",{attrs:{"data-id":e.id},props:{className:"feed-add-post-"+t+" feed-add-post-destination-users"},children:[BX.create("input",{attrs:{type:"hidden",name:(t=="grat"?"GRAT":"MEDAL")+"["+o+"][]",value:e.id}}),BX.create("span",{props:{className:"feed-add-post-"+t+"-text"},html:e.name}),BX.create("span",{props:{className:"feed-add-post-del-but"},events:{click:function(t){BX.SocNetLogDestination.deleteItem(e.id,"users",window["BXSocNetLogGratFormName"]);BX.PreventDefault(t)},mouseover:function(){BX.addClass(this.parentNode,"feed-add-post-"+t+"-hover")},mouseout:function(){BX.removeClass(this.parentNode,"feed-add-post-"+t+"-hover")}}})]}));BX("feed-add-post-"+t+"-input").value="";BX.SocNetLogDestination.BXfpSetLinkName({formName:t=="grat"?window["BXSocNetLogGratFormName"]:window["BXSocNetLogMedalFormName"],tagInputName:"bx-"+t+"-tag",tagLink1:BX.message("BX_FPGRATMEDAL_LINK_1"),tagLink2:BX.message("BX_FPGRATMEDAL_LINK_2")})};if(!!BX.SocNetGratSelector)return;BX.SocNetGratSelector={popupWindow:null,obWindowCloseIcon:{},sendEvent:true,obCallback:{},gratsContentElement:null,itemSelectedImageItem:{}
1,itemSelectedInput:{},searchTimeout:null,obDepartmentEnable:{},obSonetgroupsEnable:{},obLastEnable:{},obWindowClass:{},obPathToAjax:{},obDepartmentLoad:{},obDepartmentSelectDisable:{},obItems:{},obItemsLast:{},obItemsSelected:{},obElementSearchInput:{},obElementBindMainPopup:{},obElementBindSearchPopup:{}};BX.SocNetGratSelector.init=function(e){if(!e.name)e.name="lm";BX.SocNetGratSelector.obCallback[e.name]=e.callback;BX.SocNetGratSelector.obWindowCloseIcon[e.name]=typeof e.obWindowCloseIcon=="undefined"?true:e.obWindowCloseIcon;BX.SocNetGratSelector.itemSelectedImageItem[e.name]=e.itemSelectedImageItem;BX.SocNetGratSelector.itemSelectedInput[e.name]=e.itemSelectedInput};BX.SocNetGratSelector.openDialog=function(e){if(!e)e="lm";if(BX.SocNetGratSelector.popupWindow!=null){BX.SocNetGratSelector.popupWindow.close();return false}var t=[];for(var o=0;o<arGrats.length;o++){t[t.length]=BX.create("span",{props:{className:"feed-add-grat-box "+arGrats[o].style},attrs:{title:arGrats[o].title},events:{click:BX.delegate(function(t){BX.SocNetGratSelector.selectItem(e,this.code,this.style,this.title);BX.PreventDefault(t)},arGrats[o])}})}var s=[];var i=1;for(o=0;o<t.length;o++){if(o>=t.length/2)i=2;if(s[i]==null||s[i]=="undefined")s[i]=BX.create("div",{props:{className:"feed-add-grat-list-row"}});s[i].appendChild(t[o])}BX.SocNetGratSelector.gratsContentElement=BX.create("div",{children:[BX.create("div",{props:{className:"feed-add-grat-list-title"},html:BX.message("BLOG_GRAT_POPUP_TITLE")}),BX.create("div",{props:{className:"feed-add-grat-list"},children:s})]});BX.SocNetGratSelector.popupWindow=new BX.PopupWindow("BXSocNetGratSelector",BX("feed-add-post-grat-type-selected"),{autoHide:true,offsetLeft:25,bindOptions:{forceBindPosition:true},closeByEsc:true,closeIcon:BX.SocNetGratSelector.obWindowCloseIcon[e]?{top:"5px",right:"10px"}:false,events:{onPopupShow:function(){if(BX.SocNetGratSelector.sendEvent&&BX.SocNetGratSelector.obCallback[e]&&BX.SocNetGratSelector.obCallback[e].openDialog)BX.SocNetGratSelector.obCallback[e].openDialog()},onPopupClose:function(){this.destroy()},onPopupDestroy:BX.proxy(function(){BX.SocNetGratSelector.popupWindow=null;if(BX.SocNetGratSelector.sendEvent&&BX.SocNetGratSelector.obCallback[e]&&BX.SocNetGratSelector.obCallback[e].closeDialog)BX.SocNetGratSelector.obCallback[e].closeDialog()},this)},content:BX.SocNetGratSelector.gratsContentElement,angle:{position:"bottom",offset:20},lightShadow:true});BX.SocNetGratSelector.popupWindow.setAngle({});BX.SocNetGratSelector.popupWindow.show();return true};BX.SocNetGratSelector.selectItem=function(e,t,o,s){var i=BX.findChild(BX.SocNetGratSelector.itemSelectedImageItem[e],{tag:"span"},false,false);if(typeof i!="undefined"&&i){i.className="feed-add-grat-box "+o}BX.SocNetGratSelector.itemSelectedImageItem[e].title=s;BX.SocNetGratSelector.itemSelectedInput[e].value=t;BX.SocNetGratSelector.popupWindow.close()};var e=function(e){var t="blogPostForm",o=BX(t),s="POST_TITLE",i=BX(s),a=BX(t).TAGS,n=function(e){BX.bind(i,"keydown",BX.proxy(e.Init,e));BX.bind(a,"keydown",BX.proxy(e.Init,e))};if(!o)return;BX.addCustomEvent(o,"onAutoSavePrepare",function(e){e.DISABLE_STANDARD_NOTIFY=true;var t=e;setTimeout(function(){n(t)},100)});BX.addCustomEvent(o,"onAutoSave",function(e,o){o["TAGS"]=BX(t).TAGS.value;delete o["POST_MESSAGE"]});if(e=="Y"){BX.addCustomEvent(o,"onAutoSaveRestoreFound",function(e,o){var i=BX.util.trim(o["text"+t])||"",a=BX.util.trim(o[s])||"";if(i.length<1&&a.length<1)return;e.Restore()})}else{BX.addCustomEvent(o,"onAutoSaveRestoreFound",BX.delegate(function(e,o){var i=BX.util.trim(o["text"+t])||"",a=BX.util.trim(o[s])||"";if(i.length<1&&a.length<1)return;var n=BX("microoPostFormLHE_blogPostForm"),d=BX.create("DIV",{attrs:{className:"feed-add-successfully"},children:[BX.create("SPAN",{attrs:{className:"feed-add-info-icon"}}),BX.create("A",{attrs:{className:"feed-add-info-text",href:"#"},events:{click:function(){e.Restore();d.parentNode.removeChild(d);return false}},text:BX.message("BLOG_POST_AUTOSAVE2")})]});if(n){n.parentNode.insertBefore(d,n)}},this))}BX.addCustomEvent(o,"onAutoSaveRestore",function(e,o){BX(s).value=o[s];if(o[s].length>
10&&o[s]!=BX(s).getAttribute("placeholder")){if(BX("divoPostFormLHE_blogPostForm").style.display!="none")window["showPanelTitle_"+t](true);else window["bShowTitle"]=true;if(!!BX(s).__onchange)BX(s).__onchange()}var i=window["BXPostFormTags_"+t];if(o["TAGS"].length>0&&i){var a=i.addTag(o["TAGS"]);if(a.length>0){BX.show(i.tagsArea)}}if(BX.SocNetLogDestination){var d;if(o["SPERM[DR][]"]){for(d=0;d<o["SPERM[DR][]"].length;d++){BX.SocNetLogDestination.selectItem(BXSocNetLogDestinationFormName,"",3,o["SPERM[DR][]"][d],"department",false)}}if(o["SPERM[SG][]"]){for(d=0;d<o["SPERM[SG][]"].length;d++){BX.SocNetLogDestination.selectItem(BXSocNetLogDestinationFormName,"",3,o["SPERM[SG][]"][d],"sonetgroups",false)}}if(o["SPERM[U][]"]){for(d=0;d<o["SPERM[U][]"].length;d++){BX.SocNetLogDestination.selectItem(BXSocNetLogDestinationFormName,"",3,o["SPERM[U][]"][d],"users",false)}}if(!o["SPERM[UA][]"]){BX.SocNetLogDestination.deleteItem("UA","groups",BXSocNetLogDestinationFormName)}}n(e)})},t={},o=function(e){if(t[e]&&t[e]["editorID"]){if(t[e]["editor"])t[e]["editor"](t[e]["text"]);else setTimeout(function(){o(e)},50)}};BX.SocnetBlogPostInit=function(s,i){t[s]={editorID:i["editorID"],showTitle:!!i["showTitle"],submitted:false,text:i["text"],autoSave:i["autoSave"],handler:LHEPostForm&&LHEPostForm.getHandler(i["editorID"]),editor:LHEPostForm&&LHEPostForm.getEditor(i["editorID"])};window["showPanelTitle_"+s]=function(e,o){e=e===true||e===false?e:BX("blog-title").style.display=="none";o=o!==false;var i=t[s]["showTitle"],a=BX("lhe_button_title_"+s),n=BX("feed-add-post-block"+s),d=BX("show_title")||{};if(e){BX.show(BX("blog-title"));BX.focus(BX("POST_TITLE"));t[s]["showTitle"]=true;d.value="Y";if(a){BX.addClass(a,"feed-add-post-form-btn-active")}if(n){BX.addClass(n,"blog-post-edit-open")}}else{BX.hide(BX("blog-title"));t[s]["showTitle"]=false;d.value="N";if(a)BX.removeClass(a,"feed-add-post-form-btn-active")}if(o)BX.userOptions.save("socialnetwork","postEdit","showTitle",t[s]["showTitle"]?"Y":"N");else t[s]["showTitle"]=i};window["setBlogPostFormSubmitted"]=function(e){t[s]["submitted"]=e};window["submitBlogPostForm"]=function(e,o){if(typeof e!="object"){o=e;e=LHEPostForm.getEditor(t[s]["editorID"])}if(e&&e.id==t[s]["editorID"]){if(t[s]["submitted"])return false;e.SaveContent();if(!o)o="save";if(BX("blog-title").style.display=="none")BX("POST_TITLE").value="";if(BX("blog-submit-button-save")){BX.addClass(BX("blog-submit-button-save"),"feed-add-button-load")}BX.submit(BX(s),o);t[s]["submitted"]=true}};var a=function(e,o){if(o==s){t[s]["handler"]=e;BX.addCustomEvent(e.eventNode,"OnControlClick",function(){window.SBPETabs.changePostFormTab("message")});var i=function(){var e=[BX("feed-add-post-form-notice-blockblogPostForm"),BX("feed-add-buttons-blockblogPostForm"),BX("feed-add-post-content-message-add-ins")];for(var o=0;o<e.length;o++){if(!!e[o]){BX.adjust(e[o],{style:{display:"block",height:"auto",opacity:1}})}}if(t[s]["showTitle"])window["showPanelTitle_"+s](true,false)},a=function(){var e,o=[BX("feed-add-post-form-notice-blockblogPostForm"),BX("feed-add-buttons-blockblogPostForm"),BX("feed-add-post-content-message-add-ins")];for(e=0;e<o.length;e++){if(!!o[e]){BX.adjust(o[e],{style:{display:"block",height:"0px",opacity:0}})}}if(t[s]["showTitle"])window["showPanelTitle_"+s](false,false)};BX.addCustomEvent(e.eventNode,"OnAfterShowLHE",i);BX.addCustomEvent(e.eventNode,"OnAfterHideLHE",a);if(e.eventNode.style.display=="none")a();else i()}},n=function(o){if(o.id==t[s]["editorID"]){t[s]["editor"]=o;if(t[s]["autoSave"]!="N")new e(t[s]["autoSave"]);var i=window[o.id+"Files"],a=LHEPostForm.getHandler(o.id),n,d,l,r=[],c=null;for(d in a["controllers"]){if(a["controllers"].hasOwnProperty(d)){if(a["controllers"][d]["parser"]&&a["controllers"][d]["parser"]["bxTag"]=="postimage"){c=a["controllers"][d];break}}}var f=function(e,t){return function(){e.insertFile(t)}},u=function(e,t,o){return function(){if(c){c.deleteFile(t,{});BX.remove(BX("wd-doc"+t));BX.ajax({method:"GET",url:o})}else{e.deleteFile(t,o,e,{controlID:"common"})}}};for(n in i){if(i.hasOwnProperty(n)){if(c){c.addFile(i[n])}else{d=a.checkFile(n,"common",i[n]);r.push(n);if(!!d&&BX("wd-doc"+n)&&!BX("wd-doc"+n).hasOwnProperty("bx-bound")){BX("wd-doc"+n).setAttribute("bx-bound","Y");if((l=BX.findChild(BX("wd-doc"+n),{className:"feed-add-img-wrap"},true,false))&&l){BX.bind(l,"click",f(a,d));l.style.cursor="pointer"}if((l=BX.findChild(BX("wd-doc"+n),{className:"feed-add-img-title"},true,false))&&l){BX.bind(l,"click",f(a,d));l.style.cursor="pointer"}if((l=BX.findChild(BX("wd-doc"+n),{className:"feed-add-post-del-but"},true,false))&&l){BX.bind(l,"click",u(a,n,i[n]["del_url"]));l.style.cursor="pointer"}}}if((l=BX.findChild(BX("wd-doc"+n),{className:"feed-add-post-del-but"},true,false))&&l){BX.bind(l,"click",u(a,n,i[n]["del_url"]));l.style.cursor="pointer"}}}if(r.length>0){o.SaveContent();var m=o.GetContent();m=m.replace(new RegExp("\\&\\#91\\;IMG ID=("+r.join("|")+")([WIDTHHEIGHT=0-9 ]*)\\&\\#93\\;","gim"),"[IMG ID=$1$2]");o.SetContent(m);o.Focus()}}};BX.addCustomEvent(window,"onInitialized",a);if(t[s]["handler"])a(t[s]["handler"],s);
1BX.addCustomEvent(window,"OnEditorInitedAfter",n);if(t[s]["editor"])n(t[s]["editor"]);BX.addCustomEvent(window,"onSocNetLogMoveBody",function(e){if(e=="sonet_log_microblog_container"){o(s)}});BX.ready(function(){if(BX.browser.IsIE()&&BX("POST_TITLE")){var e=function(e){if(!this.value||this.value==this.getAttribute("placeholder")){this.value=this.getAttribute("placeholder");BX.removeClass(this,"feed-add-post-inp-active")}};BX.bind(BX("POST_TITLE"),"blur",e);e.apply(BX("POST_TITLE"));BX("POST_TITLE").__onchange=BX.delegate(function(e){if(this.value==this.getAttribute("placeholder")){this.value=""}if(this.className.indexOf("feed-add-post-inp-active")<0){BX.addClass(this,"feed-add-post-inp-active")}},BX("POST_TITLE"));BX.bind(BX("POST_TITLE"),"click",BX("POST_TITLE").__onchange);BX.bind(BX("POST_TITLE"),"keydown",BX("POST_TITLE").__onchange);BX.bind(BX("POST_TITLE").form,"submit",function(){if(BX("POST_TITLE").value==BX("POST_TITLE").getAttribute("placeholder")){BX("POST_TITLE").value=""}})}if(i["activeTab"]!=="")window.SBPETabs.changePostFormTab(i["activeTab"])})}})();
2//# sourceMappingURL=script.map.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.