PageSourceSearch

https://circular-beam-6ba.notion.site/_assets/SidebarTabShortcutFromConfigCustomizationRow-b3f82f4af6c9154c.js

js circular-beam-6ba.notion.site collected 2026-10-09 22:53:53 UTC 6,316 bytes, 1 lines download raw bytes

1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[21944],{636255(e,t,o){var a=o(635790),i=o(440302);function n({children:e,onChange:t,horizontal:r,style:l}){let s=(0,a.useRef)(null),c=(0,a.useRef)(0),d=(0,a.useRef)(0);return(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let a=(0,o(54503).NM)(e);if(a){function i(){return(null==a?void 0:a.scrollTop)||0}function n(){if(r){let o=function(){if(!e||!a)return 0;{let t=e.getBoundingClientRect(),o=a.getBoundingClientRect(),{scrollLeft:i,scrollWidth:n}=a,r=t.left+t.width+i-o.left,l=i+o.width;return n-t.width-(l-r)}}(),n={offsetFromTop:i()};o!==d.current&&(d.current=o,t(o,n))}else{let o=function(){if(!e||!a)return 0;{let t=e.getBoundingClientRect(),o=a.getBoundingClientRect(),{scrollTop:i}=a;return t.top+t.height+i-o.top-(i+o.height)}}(),n={offsetFromTop:i()};o!==c.current&&(c.current=o,t(o,n))}}n();let l=(0,o(960408).nF)(function(e){n()},50);return(0,o(166027).P)({el:a,eventName:"scroll",callback:l}),()=>{(0,o(260244).O)({el:a,eventName:"scroll",callback:l})}}},[r,t]),(0,i.jsx)("div",{...o(398276).A.props(l),ref:s,children:e})}o.d(t,{F:()=>n})},497857(e,t,o){o(635790);var a=o(440302);function i(){return(0,a.jsx)(o(16275).I,{icon:o(746204).w,size:"lg",colorVariant:"primary"})}o.d(t,{h:()=>i})},590943(e,t,o){let a=new(o(552709)).O2("pagePresentationActions",async()=>await Promise.resolve().then(o.bind(o,697203)));o.d(t,{},{e:a})},884093(e,t,o){o(159952),o(635790);var a=o(440302);let i=(0,o(327219).YK)({moveToTab:{id:"useMoveSectionToTabActions.title.moveToTab",defaultMessage:"Move to tab"},newTab:{id:"useMoveSectionToTabActions.option.newTab",defaultMessage:"New tab"}}),n={width:16};function r(e){let{item:t,tabPlacement:r,onSelect:l}=e,s=(0,o(327219).tz)(),c=(0,o(960253).e)();if(!(null!=r&&r.allowsCrossTabMoves)||!t)return[];let{tabs:d,activeTabId:u,moveItemToTab:v,getMoveItemToTabDisabledTooltip:m,moveItemToNewTab:f}=r,b=(0,o(190278).Nq)({tabs:d}),g=d.map(e=>(0,o(876011).Ls)({key:`moveToTab-${e.id}`,displayName:void 0,analyticsName:"moveToTab",validators:[],closeParentMenu:!0,action:()=>{v(t,e.id),l()},render:i=>{let r=m(t,e.id),l=void 0!==r;return(0,a.jsx)(o(51831).m_,{disableTooltip:!l,placement:"left",content:()=>r,children:t=>(0,a.jsx)(o(95582).A,{...i,...t,title:e.name,disabled:l,disabledFeedback:l,icon:(0,a.jsx)(o(130867).j,{iconName:e.icon.name,color:o(111012).l8[c].gray}),right:e.id===u&&(0,a.jsx)(o(16275).I,{icon:o(971730).checkmarkSmallIcon,size:"sm"}),rightStyle:n})})}})),h=(0,o(876011).Ls)({key:"moveToNewTab",displayName:i.newTab,analyticsName:i.newTab.defaultMessage,validators:[],disabled:()=>!b,closeParentMenu:!0,action:()=>{f(t),l()},render:e=>(0,a.jsx)(o(860287).A,{...e,title:s.formatMessage(i.newTab),svg:o(581923).plusIcon,disabled:!b,disabledFeedback:!b,tooltipText:b?void 0:s.formatMessage(o(973969).p.reached)})});return[(0,o(110561).u)({key:"moveToTab",displayName:i.moveToTab,analyticsName:i.moveToTab.defaultMessage,validators:[],svg:o(21724).F,alignmentToOrigin:"start",subActions:()=>[(0,o(876011).gy)({key:"tabs",actions:g}),(0,o(876011).gy)({key:"newTab",render:e=>(0,a.jsx)(o(83743).A,{...e,topBorder:!0}),actions:[h]})]})]}o.d(t,{v:()=>r})},872984(e,t,o){o.r(t),o(635790);var a=o(440302);function i(e){let{config:t,tabPlacement:i}=e,n=(0,o(327219).tz)(),r=(0,o(599511).m)(t.type,i),l=(0,o(13075).d)({shortcutKey:t.type,tabPlacement:i});return(0,a.jsx)(o(480968).V,{onRemove:r,label:t.label,leadingIcon:(0,a.jsx)(o(16275).I,{icon:t.icon,colorVariant:"secondary",size:"lg"}),trailingAccessory:l?(0,a.jsx)(o(639412).D,{moveToTab:{tabPlacement:i,shortcutKey:t.type}}):void 0,removeAriaLabel:n.formatMessage(o(596415).E.removeFromSidebar)})}o.d(t,{SidebarTabShortcutFromConfigCustomizationRow:()=>i})},13075(e,t,o){o(730330),o(139583),o(159952);var a=o(635790),i=o(440302);let n=(0,o(327219).YK)({moveUp:{id:"sidebar.simplification.shortcut.moveShortcutUp",defaultMessage:"Move up"},moveDown:{id:"sidebar.simplification.shortcut.moveShortcutDown",defaultMessage:"Move down"}});function r(e){let{shortcutKey:t,tabPlacement:r,onSelect:l}=e,c=(0,o(327219).tz)(),d=(0,o(275141).cZ)(),u=(0,o(275141).Z$)(),v=(0,a.useMemo)(()=>({type:"shortcut",shortcutKey:t}),[t]),m=(0,o(884093).v)({item:v,tabPlacement:r,onSelect:l});return[...s({shortcutKey:t,tabPlacement:r,sectionId:null==u?void 0:u.sectionId}).map(e=>{let a=n[e];
1return(0,o(876011).Ls)({key:e,displayName:void 0,analyticsName:a.defaultMessage,validators:[],closeParentMenu:!0,action:()=>{d(a=>(0,o(481790).nz)({config:a,tabId:(null==u?void 0:u.tabId)??r.activeTabId,sectionId:null==u?void 0:u.sectionId,shortcutKey:t,option:e}),"sidebarSimplificationTabs.reorderShortcuts"),l()},render:t=>(0,i.jsx)(o(860287).A,{...t,title:c.formatMessage(a),svg:"moveUp"===e?o(358839).arrowStraightUpIcon:o(356938).arrowStraightDownIcon})})}),...void 0===u?m:[]]}function l(e){return void 0===e.sectionId&&e.tabPlacement.allowsCrossTabMoves||s(e).length>0}function s(e){let t=e.tabPlacement.tabs.find(t=>t.id===e.tabPlacement.activeTabId);return(0,o(481790).PS)({tab:t,shortcutKey:e.shortcutKey,sectionId:e.sectionId})}o.d(t,{c:()=>r,d:()=>l})},746204(e,t,o){o(635790);let a={viewBox:"0 0 20 20",fittedViewBox:"5.87 3.72 7.16 12.56",directional:!0,svg:(0,o(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,o(104509).wt)("arrowChevronSingleLeftFill",a,"fill");o.d(t,{},{w:i})},356938(e,t,o){o.r(t),o(635790);let a={viewBox:"0 0 20 20",fittedViewBox:"4.62 3.12 10.74 13.76",svg:(0,o(440302).jsx)("path",{d:"M4.807 11.058a.627.627 0 0 0 0 .884l4.75 4.75c.244.244.64.244.885 0l4.75-4.75a.626.626 0 0 0-.885-.884l-3.683 3.682V3.75a.625.625 0 1 0-1.25 0v10.99l-3.682-3.682a.626.626 0 0 0-.885 0"})},i=(0,o(104509).wt)("arrowStraightDown",a,"default");o.d(t,{},{arrowStraightDownIcon:i,iconDefinition:a})},358839(e,t,o){o.r(t),o(635790);let a={viewBox:"0 0 20 20",fittedViewBox:"4.64 3.12 10.74 13.76",svg:(0,o(440302).jsx)("path",{d:"M15.193 8.942a.626.626 0 0 0 0-.884l-4.75-4.75a.626.626 0 0 0-.885 0l-4.75 4.75a.626.626 0 0 0 .885.884L9.375 5.26v10.99a.625.625 0 1 0 1.25 0V5.26l3.683 3.682c.244.244.64.244.885 0"})},i=(0,o(104509).wt)("arrowStraightUp",a,"default");o.d(t,{},{arrowStraightUpIcon:i,iconDefinition:a})}}]);

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.