PageSourceSearch

https://onefunc.com/app/plan/jslib/OF_SHARED_SPACE_EVENTSHARE_DIALOG.js

js onefunc.com collected 2026-10-02 16:06:03 UTC 8,227 bytes, 1 lines download raw bytes

1OF_SHARED_SPACE_EVENTSHARE_DIALOG={init:function(){OF.historyFunc.forward("",0)},show:function(e,n,a){""==C.base.getLocalStorage().user_id?OF_PROFILE.openEditProfile(TL.profile_notfound_message):(OF_SHARED_SPACE_EVENTSHARE_DIALOG.init(),OF_SHARED_SPACE_EVENTSHARE_DIALOG.eventCreateTime=e,C.wd.getByCreateTime(e,function(t){OF_SHARED_SPACE_EVENTSHARE_DIALOG.currentSelectedEventObj=t,OF_DIALOG.show({hashName:"event_share",startCallbackFunc:function(){OF_DIALOG.activitiIndicator.show(function(){OF_SHARED_SPACE.SPACE.syncToServer(!1,function(){var e=OF_SHARED_SPACE_EVENTSHARE_DIALOG.createSpaceContent(t,n);OF_DIALOG.activitiIndicator.hide(function(){}),OF.id(OF_DIALOG.contentID).appendChild(e),0==document.getElementsByName("OF_SHARED_SPACE_EVENTSHARE_DIALOG_ACTIVE_SPACE").length&&OF_DIALOG.close(function(){OF.historyFunc.forward("sharedspace"),C.base.message(TL.need_sharedspace,"2000"),OF_SHARED_SPACE_GLANCE_DIALOG.show(void 0,function(){})})})})},endCallbackFunc:function(){},closeCallbackFunc:function(){a&&a()}})}))},createSpaceContent:function(e,t){var n=document.createDocumentFragment(),a=OF_SHARED_SPACE_EVENTSHARE_DIALOG._createSpaceHeadContent(e),a=(n.appendChild(a),document.createElement("div")),c=(a.setAttribute("id","OF_SHARED_SPACE_EVENTSHARE_DIALOG_MAIN_CONTENT"),a.setAttribute("class","MAIN_CONTENT OF_SHARED_SPACE_EVENTSHARE_DIALOG"),n.appendChild(a),document.createElement("div")),c=(c.setAttribute("class","INPUT_TITLE"),c.textContent=TL.sharedspace_eventshare_dialog_select_eventname,a.appendChild(c),document.createElement("div")),e=(c.setAttribute("class","INPUT_TITLE"),c.style.fontSize="17px",c.style.paddingTop="0px",c.textContent=e.PLAN_DATA,a.appendChild(c),document.createElement("div")),c=(e.setAttribute("class","INPUT_TITLE"),e.textContent=TL.sharedspace_eventshare_dialog_select_sharedspace,a.appendChild(e),OF_SHARED_SPACE_EVENTSHARE_DIALOG._createSharedSpaceNode(t)),e=(a.appendChild(c),document.createElement("div"));return e.setAttribute("class","DUMMY"),a.appendChild(e),n},_createSpaceHeadContent:function(e){var t=document.createElement("div"),n=(t.setAttribute("class","HEAD"),document.createElement("button")),a=(n.setAttribute("class","CLOSE_BUTTON"),n.textContent=TL.sharedspace_eventshare_dialog_close_button,t.appendChild(n),document.createElement("button"));return a.setAttribute("id","HEAD_SAVE_BUTTON"),a.setAttribute("class","RIGHT_BUTTON"),a.setAttribute("aria-disabled","true"),a.textContent=TL.sharedspace_eventshare_dialog_share_button,t.appendChild(a),n.onclick=function(e){OF_DIALOG.close(function(){})},a.onclick=function(e){var t;OF.isOnline(!0)&&(t=e.target,OF.buttonStyle.wait(t),OF_SHARED_SPACE.EVENT.shareEvent(OF_SHARED_SPACE_EVENTSHARE_DIALOG.selectedSpaceID,OF_SHARED_SPACE_EVENTSHARE_DIALOG.eventCreateTime,function(){OF.buttonStyle.default(t),C.wd.scheduleUpdate_cloud(1,OF_SHARED_SPACE_EVENTSHARE_DIALOG.eventCreateTime,OF_SHARED_SPACE_EVENTSHARE_DIALOG.selectedSpaceID),setTimeout(function(){C.Worker.backup_all("uploadplan")},580),OF_DIALOG.close(function(){})}))},t},_createSharedSpaceNode:function(e){for(var _=document.createDocumentFragment(),t=0;t<e.length;t++){var n=e[t].profile_id+"_"+e[t].create_time,a=(e[t].space_id=n,document.createElement("li")),c=(a.setAttribute("class","ROW"),a.setAttribute("name","OF_SHARED_SPACE_EVENTSHARE_DIALOG_ACTIVE_SPACE"),a.spaceObj=e[t],a.onclick=function(e){document.getElementsByName("RANGE_CHECK").forEach(function(e,t,n){e.checked=!1});var t=document.getElementById("OF_SHARED_SPACE_EVENTSHARE_DIALOG_CHECKBOX_"+e.target.spaceObj.space_id);1==t.checked?t.checked=!1:(t.checked=!0,C.base.getLocalStorage().user_id,OF_SHARED_SPACE_EVENTSHARE_DIALOG.selectedSpaceID=e.target.spaceObj.space_id),document.getElementById("HEAD_SAVE_BUTTON").setAttribute("aria-disabled","false")},document.createElement("div"));c.setAttribute("class","spacebox"),c.spaceObj=e[t],a.appendChild(c);e[t].profile_id.substring(0,2),e[t].profile_id;var E=document.createElement("img"),E=(E.setAttribute("id","OF_SHARED_SPACE_EVENTSHARE_DIALOG_ICON_"+n),E.setAttribute("class","space_icon"),c.appendChild(E),OF.definitionBehaviorForImage(E),OF_IMAGE.setSharedSpaceIcon(E,e[t].profile_id,e[t].create_time),document.createElement("div")),c=(E.setAttribute("class","space_detail"),E.spaceObj=e[t],c.appendChild(E),document.createElement("div")),c=(c.setAttribute("id","OF_SHARED_SPACE_GLANCE_DIALOG_NAME_"+n),c.setAttribute("class","space_name"),c.spaceObj=e[t],c.textContent=decodeURIComponent(e[t].space_name),E.appendChild(c),document.createElement("div")),E=(c.setAttribute("class","space_sharerange"),c.spaceObj=e[t],c.textContent=OF_SHARED_SPACE.SPACE.getShareRangeLocalText(e[t].space_sharerange),E.appendChild(c),document.createElement("input"));E.setAttribute("id","OF_SHARED_SPACE_EVENTSHARE_DIALOG_CHECKBOX_"+n),E.setAttribute("name","RANGE_CHECK"),E.setAttribute("type","checkbox"),E.spaceObj=e[t],a.appendChild(E),_.appendChild(a)}Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEac
1h(function(e){var t,n,a,c;1==OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_sharerange&&(c=e.split("_")[1],OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_id=e,(t=document.createElement("li")).setAttribute("class","ROW"),t.setAttribute("name","OF_SHARED_SPACE_EVENTSHARE_DIALOG_ACTIVE_SPACE"),t.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],t.onclick=function(e){document.getElementsByName("RANGE_CHECK").forEach(function(e,t,n){e.checked=!1});var t=document.getElementById("OF_SHARED_SPACE_EVENTSHARE_DIALOG_CHECKBOX_"+e.target.spaceObj.space_id);1==t.checked?t.checked=!1:(t.checked=!0,OF_SHARED_SPACE_EVENTSHARE_DIALOG.selectedSpaceID=e.target.spaceObj.space_id),document.getElementById("HEAD_SAVE_BUTTON").setAttribute("aria-disabled","false")},(a=document.createElement("div")).setAttribute("class","spacebox"),a.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],t.appendChild(a),(n=document.createElement("img")).setAttribute("id","OF_SHARED_SPACE_EVENTSHARE_DIALOG_ICON_"+e),n.setAttribute("class","space_icon"),n.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],a.appendChild(n),OF.definitionBehaviorForImage(n),OF_IMAGE.setSharedSpaceIcon(n,OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].profile_id,c),(n=document.createElement("div")).setAttribute("class","space_detail"),n.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],a.appendChild(n),(c=document.createElement("div")).setAttribute("id","OF_SHARED_SPACE_GLANCE_DIALOG_NAME_"+e),c.setAttribute("class","space_name"),c.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],c.textContent=decodeURIComponent(OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_name),n.appendChild(c),(a=document.createElement("div")).setAttribute("class","space_sharerange"),a.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],a.textContent=OF_SHARED_SPACE.SPACE.getShareRangeLocalText(OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_sharerange),n.appendChild(a),(c=document.createElement("input")).setAttribute("id","OF_SHARED_SPACE_EVENTSHARE_DIALOG_CHECKBOX_"+e),c.setAttribute("name","RANGE_CHECK"),c.setAttribute("type","checkbox"),c.spaceObj=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],t.appendChild(c),_.appendChild(t))});var i=document.createElement("button"),i=(i.setAttribute("class","option_button"),i.textContent=TL.sharedspace_option_multiple_button,_.appendChild(i),i.onclick=function(){OF_DIALOG.close(function(){OF_SHARED_SPACE_MULTIPLE_SHARE_DIALOG.show(e,function(){})})},document.createElement("button"));return i.setAttribute("class","option_button"),i.textContent=TL.sharedspace_option_searchspace_button,_.appendChild(i),i.onclick=function(){OF_DIALOG.close(function(){OF_SEARCH.open(),setTimeout(function(){OF.tabbedMenu.setIndex(OF.id("search_tabbed"),1),OF_SEARCH.menu.selectMenu(TL.search_tabbed_sharedspace)},100)})},_},DOM:{createNewSpaceButton:function(){var e=document.createElement("button");return e.setAttribute("class","CENTER_BUTTON"),e.textContent=TL.sharedspace_eventshare_dialog_create_new_space_button,e.onclick=function(){OF_DIALOG.close(function(){var e=parseInt(new Date/1e3);OF_SHARED_SPACE_EDIT_DIALOG.show(1,e,function(){})})},e}},FUNC:{}};

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.