PageSourceSearch

https://chidec.notion.site/_assets/SidebarTeamspaceSection-9b9f71e045336558.js

js chidec.notion.site collected 2026-10-09 22:52:50 UTC 7,865 bytes, 1 lines download raw bytes

1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[19958],{87945(e,t,a){let n=a(546605).Store.createValue(!1,{name:"slipperySlopeSidebarCustomizationModeStore"});a.d(t,{},{F:n})},636255(e,t,a){var n=a(635790),i=a(440302);function s({children:e,onChange:t,horizontal:o,style:r}){let l=(0,n.useRef)(null),c=(0,n.useRef)(0),d=(0,n.useRef)(0);return(0,n.useEffect)(()=>{let e=l.current;if(!e)return;let n=(0,a(54503).NM)(e);if(n){function i(){return(null==n?void 0:n.scrollTop)||0}function s(){if(o){let a=function(){if(!e||!n)return 0;{let t=e.getBoundingClientRect(),a=n.getBoundingClientRect(),{scrollLeft:i,scrollWidth:s}=n,o=t.left+t.width+i-a.left,r=i+a.width;return s-t.width-(r-o)}}(),s={offsetFromTop:i()};a!==d.current&&(d.current=a,t(a,s))}else{let a=function(){if(!e||!n)return 0;{let t=e.getBoundingClientRect(),a=n.getBoundingClientRect(),{scrollTop:i}=n;return t.top+t.height+i-a.top-(i+a.height)}}(),s={offsetFromTop:i()};a!==c.current&&(c.current=a,t(a,s))}}s();let r=(0,a(960408).nF)(function(e){s()},50);return(0,a(166027).P)({el:n,eventName:"scroll",callback:r}),()=>{(0,a(260244).O)({el:n,eventName:"scroll",callback:r})}}},[o,t]),(0,i.jsx)("div",{...a(398276).A.props(r),ref:l,children:e})}a.d(t,{F:()=>s})},497857(e,t,a){a(635790);var n=a(440302);function i(){return(0,n.jsx)(a(16275).I,{icon:a(746204).w,size:"lg",colorVariant:"primary"})}a.d(t,{h:()=>i})},590943(e,t,a){let n=new(a(552709)).O2("pagePresentationActions",async()=>await Promise.resolve().then(a.bind(a,697203)));a.d(t,{},{e:n})},928896(e,t,a){function n(e,t){(0,a(104310).u)({event:{eventName:"reorder_outliner_section",eventProperties:{section:t.section,previous_order:t.previous_order,new_order:t.new_order,from:t.from}}})}a.d(t,{U:()=>n})},394778(e,t,a){a(499468),a(586042),a(169187),a(726090),a(132457),a(219390),a(73168),a(730330),a(139583),a(974864);var n=a(635790);function i(e){var t;let{tabId:i,sectionKey:s}=e,o=null==(t=(0,a(124703).XX)())?void 0:t.tabPlacement,r=null==o?void 0:o.tabs;return(0,n.useMemo)(()=>{let e=null==r?void 0:r.find(e=>e.id===i);return new Set(((null==e?void 0:e.sections)??[]).flatMap(e=>"teamspace"===e.type&&(0,a(476431).EA)(e)!==s?[e.teamId]:[]))},[s,i,r])}a.d(t,{x:()=>i})},688643(e,t,a){a.d(t,{V:()=>c,m:()=>l});var n=a(635790),i=a(440302);let s=(0,a(327219).YK)({teamspace:{id:"sidebar.simplification.teamspace.menu.teamspace",defaultMessage:"Teamspace"}}),o={rightValue:{fontSize:12,color:a(632079).Tj.text.secondary,maxWidth:96,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}};function r(e){let{menuItemProps:t,onFocus:n,selectedTeamId:r,selectedTeamName:l,excludedTeamIds:c,onSelectTeam:d}=e,u=(0,a(327219).tz)();return(0,i.jsx)(a(816231).A,{...t,onFocus:n,disableDefaultClick:!0,alignmentToOrigin:"start",renderExtension:e=>(0,i.jsx)(a(731389).Q,{extensionPopupButtonEvents:e,excludedTeamIds:c,selectedTeamId:r,onSelectTeam:d}),children:(e,t)=>(0,i.jsx)(a(860287).A,{...e,ref:t,title:u.formatMessage(s.teamspace),svg:a(767816).teamspaceIcon,right:l,rightStyle:o.rightValue})})}function l(e){let t=u(e);return(0,a(4881).I)({type:"teamspace",sectionKey:e.sectionKey,settingsMenuItems:t,onClose:e.onClose,hideRemoveAndCustomizeActions:"customization"===e.variant})}function c(e){return(0,i.jsx)(a(316969).Z,{buttonType:"customization"===e.variant?"settings":"overflow",renderMenu:t=>(0,i.jsx)(d,{...e,onClose:t})})}function d(e){let t=(0,a(394778).x)({tabId:e.tabId,sectionKey:e.sectionKey}),n=u({...e,excludedTeamIds:t});return(0,i.jsx)(a(4881).d,{type:"teamspace",sectionKey:e.sectionKey,settingsMenuItems:n,onClose:e.onClose,hideRemoveAndCustomizeActions:"customization"===e.variant,width:220})}function u(e){let{selectedTeamId:t,selectedTeamName:s,excludedTeamIds:o,onSelectTeam:l,onClose:c}=e,d=(0,n.useMemo)(()=>(0,a(876011).Ls)({key:"switchSidebarTeamspace",displayName:void 0,analyticsName:"Switch teamspace",validators:[],closeParentMenu:!0,action:()=>{},render:(e,a,n)=>(0,i.jsx)(r,{menuItemProps:e,onFocus:n.onFocus,selectedTeamId:t,selectedTeamName:s,excludedTeamIds:o,onSelectTeam:e=>{l(e),c()}})}),[o,c,l,t,s]);return(0,n.useMemo)(()=>[d],[d])}},731389(e,t,a){let n=new(a(552709)).O2("SidebarTeamspacePicker",async()=>await a.e(63835).then(a.bind(a,426409))),i=(0,a(552709)._h)(n,e=>e.SidebarTeamspacePicker);a.d(t,{},{Q:i})},392978(e,t,a){a.r(t),a(730330),a(139583),a(635790);var n=a(440302);function i(e){let{teamId:t,tabId:a,sidebarState:i,siblingTeamIds:r,onSetTeamId:l}=e,c=i.userJoinedTeamsStores.find(e=>e.id===t);return c?(0,n.jsx)(s,{teamStore:c,teamId:t,tabId:a,sidebarState:i,siblingTeamIds:r,onSetTeamId:l}):(0,n.jsx)(o,{teamId:t,tabId:a,onSetTeamId:l})}function s(e){let{teamStore:t,teamId:i,sidebarState:s,siblingTeamIds:o,onSetTeamId:r}=e,l=(0,a(579993).K8)(()=>t.getName(),[t]),c=(0,a(476431).EA)({type:"teamspace",teamId:i}),d=(0,a(688643).m)({sectionKey:c,selectedTeamId:i,selectedTeamName:l,excludedTeamIds:o,onSelectTeam:e=>r(i,e),onClose:()=>{},variant:"default"});return(0,n.jsx)(a(821991).Q,{initialToggleState:"expanded",shouldPersistToggleState:!1,teamStore:t,sidebarState:s,isLastTeam:!0,teamOutlinerType:a(171231).st,from:"main_sidebar",extraActionSections:d,headerVariant:"section"})}function o(e){let{teamId:t,tabId:i,onSetTeamId:s}
1=e,{spaceStore:o,spaceViewStore:r}=(0,a(579993).K8)(()=>({spaceStore:a(192314).AppStoreSidebarSpaceStore.state,spaceViewStore:a(192314).AppStoreSidebarSpaceViewStore.state}),[]),l=(0,a(476431).EA)({type:"teamspace",teamId:t});return(0,n.jsx)(a(345796).s,{type:"workspace",content:(0,n.jsx)(a(995497).f,{type:"workspace",from:"main_sidebar",shouldPersistToggleState:!1,spaceStore:o,spaceViewStore:r,showAddButton:!1,hideOpenInLibraryButton:!0,labelOverride:(0,n.jsx)(a(327219).sA,{id:"sidebar.simplification.teamspace.unavailableHeader",defaultMessage:"Teamspace"}),right:(0,n.jsx)(a(688643).V,{sectionKey:l,tabId:i,selectedTeamId:t,selectedTeamName:void 0,onSelectTeam:e=>s(t,e),variant:"default"}),renderSidebar:({contentsAriaId:e})=>(0,n.jsx)("div",{id:e,children:(0,n.jsx)(a(538105).u,{left:(0,n.jsx)(a(16275).I,{icon:a(653905).exclamationMarkTriangleIcon,size:"lg",colorVariant:"tertiary"}),children:(0,n.jsx)(a(327219).sA,{id:"sidebar.simplification.teamspace.unavailable",defaultMessage:"Unavailable"})})})})})}a.d(t,{SidebarTeamspaceSection:()=>i})},746204(e,t,a){a(635790);let n={viewBox:"0 0 20 20",fittedViewBox:"5.87 3.72 7.16 12.56",directional:!0,svg:(0,a(440302).jsx)("path",{d:"M6.131 9.381a.875.875 0 0 0 0 1.238l5.4 5.4a.875.875 0 1 0 1.238-1.238L7.987 10l4.782-4.781A.875.875 0 0 0 11.53 3.98z"})},i=(0,a(104509).wt)("arrowChevronSingleLeftFill",n,"fill");a.d(t,{},{w:i})},924171(e,t,a){a(635790);var n=a(440302);let i={viewBox:"0 0 16 16",fittedViewBox:"0.7 2.19 14.6 11.6",svg:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M3.142 2.332a.55.55 0 0 1 .695-.017l.08.076.227.265.008.01 8.773 10.235.056.082a.551.551 0 0 1-.818.701l-.081-.076-1.18-1.376A8.5 8.5 0 0 1 8 12.74c-3.027 0-5.685-1.569-7.026-3.911L.848 8.6a1.29 1.29 0 0 1 0-1.198l.126-.228c.705-1.233 1.776-2.251 3.073-2.94l-.965-1.125-.063-.092a.55.55 0 0 1 .123-.684M4.884 5.21c-1.21.58-2.198 1.486-2.825 2.582l-.104.19a.04.04 0 0 0 0 .035l.104.19c1.108 1.935 3.34 3.281 5.941 3.281.706 0 1.385-.1 2.022-.284l-.772-.902a2.6 2.6 0 0 1-1.25.32l-.269-.013A2.626 2.626 0 0 1 5.39 8.266l-.014-.268c0-.597.201-1.147.537-1.588zm2.241 2.787c0 .484.392.876.875.876l.022-.002-.883-1.03a1 1 0 0 0-.014.156M8 3.26c3.125 0 5.857 1.673 7.152 4.141l.065.144c.11.293.11.617 0 .91l-.065.144a7.5 7.5 0 0 1-2.256 2.578l-.817-.954a6.3 6.3 0 0 0 1.966-2.205L14.05 8l-.005-.018c-1.069-2.036-3.36-3.47-6.045-3.47q-.397 0-.781.04l-.955-1.115A8.6 8.6 0 0 1 8 3.261"}),(0,n.jsx)("path",{d:"M8 5.372a2.626 2.626 0 0 1 2.625 2.626l-.014.268q-.011.106-.031.208l-2.657-3.1z"})]})},s=(0,a(104509).wt)("eyeSlashSmall",i,"small");a.d(t,{},{V:s})}}]);

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.