Build 603132stable
Module 253327
6,429 characters · in 2a94c3c4c0ff8057.jsDependencies
Required by (0)none
Lazily required by (1)
Lazily requires (65)
76892223127232328803962370688814669244695635113494138134173936175841179097191023194261231483241326278416290136329177332837346411365199369606371750405433406810417270428689430392435271443865514042534890559647597770606096624479625903643278650809663341663417678708686042687966738188780338782134782603825860831544834040836480885574912592916099926268926321933832950305952270972213998445
Source Raw
function(e,n,o){o.d(n,{default:()=>d,loadActivityContextMenuIcons:()=>c}),o(321073);var t=o(477900),i=o(582128),r=o(477782),s=o(980707),l=o(442433);let h={add:()=>Promise.resolve().then(o.bind(o,663341)).then(e=>e.PlusLargeIcon),remove:()=>Promise.resolve().then(o.bind(o,834040)).then(e=>e.MinusIcon),check:()=>Promise.resolve().then(o.bind(o,933832)).then(e=>e.CheckmarkLargeIcon),close:()=>Promise.resolve().then(o.bind(o,972213)).then(e=>e.XLargeIcon),copy:()=>Promise.resolve().then(o.bind(o,624479)).then(e=>e.CopyIcon),link:()=>Promise.resolve().then(o.bind(o,173936)).then(e=>e.LinkIcon),edit:()=>Promise.resolve().then(o.bind(o,22231)).then(e=>e.PencilIcon),delete:()=>Promise.resolve().then(o.bind(o,241326)).then(e=>e.TrashIcon),share:()=>Promise.resolve().then(o.bind(o,405433)).then(e=>e.ShareIcon),download:()=>Promise.resolve().then(o.bind(o,32880)).then(e=>e.DownloadIcon),upload:()=>Promise.resolve().then(o.bind(o,95635)).then(e=>e.UploadIcon),send:()=>Promise.resolve().then(o.bind(o,559647)).then(e=>e.SendMessageIcon),refresh:()=>Promise.resolve().then(o.bind(o,663417)).then(e=>e.RefreshIcon),retry:()=>Promise.resolve().then(o.bind(o,417270)).then(e=>e.RetryIcon),exit:()=>Promise.resolve().then(o.bind(o,70688)).then(e=>e.DoorExitIcon),search:()=>Promise.resolve().then(o.bind(o,7689)).then(e=>e.MagnifyingGlassIcon),filter:()=>Promise.resolve().then(o.bind(o,371750)).then(e=>e.FilterIcon),settings:()=>Promise.resolve().then(o.bind(o,625903)).then(e=>e.SettingsIcon),wrench:()=>Promise.resolve().then(o.bind(o,346411)).then(e=>e.WrenchIcon),home:()=>Promise.resolve().then(o.bind(o,332837)).then(e=>e.HomeIcon),compass:()=>Promise.resolve().then(o.bind(o,836480)).then(e=>e.CompassIcon),globe:()=>Promise.resolve().then(o.bind(o,998445)).then(e=>e.GlobeEarthIcon),more:()=>Promise.resolve().then(o.bind(o,365199)).then(e=>e.MoreHorizontalIcon),info:()=>Promise.resolve().then(o.bind(o,885574)).then(e=>e.CircleInformationIcon),question:()=>Promise.resolve().then(o.bind(o,290136)).then(e=>e.CircleQuestionIcon),warning:()=>Promise.resolve().then(o.bind(o,738188)).then(e=>e.WarningIcon),bug:()=>Promise.resolve().then(o.bind(o,92446)).then(e=>e.BugIcon),shield:()=>Promise.resolve().then(o.bind(o,231483)).then(e=>e.ShieldIcon),lock:()=>Promise.resolve().then(o.bind(o,194261)).then(e=>e.LockIcon),eye:()=>Promise.resolve().then(o.bind(o,39623)).then(e=>e.EyeIcon),eye_slash:()=>Promise.resolve().then(o.bind(o,952270)).then(e=>e.EyeSlashIcon),bell:()=>Promise.resolve().then(o.bind(o,782603)).then(e=>e.BellIcon),bell_slash:()=>Promise.resolve().then(o.bind(o,780338)).then(e=>e.BellSlashIcon),clock:()=>Promise.resolve().then(o.bind(o,406810)).then(e=>e.ClockIcon),calendar:()=>Promise.resolve().then(o.bind(o,81466)).then(e=>e.CalendarIcon),image:()=>Promise.resolve().then(o.bind(o,191023)).then(e=>e.ImageIcon),video:()=>Promise.resolve().then(o.bind(o,428689)).then(e=>e.VideoIcon),file:()=>Promise.resolve().then(o.bind(o,514042)).then(e=>e.FileIcon),folder:()=>Promise.resolve().then(o.bind(o,678708)).then(e=>e.FolderIcon),book:()=>Promise.resolve().then(o.bind(o,435271)).then(e=>e.BookIcon),clipboard:()=>Promise.resolve().then(o.bind(o,643278)).then(e=>e.ClipboardListIcon),list:()=>Promise.resolve().then(o.bind(o,916099)).then(e=>e.ListBulletsIcon),inbox:()=>Promise.resolve().then(o.bind(o,912592)).then(e=>e.InboxIcon),tag:()=>Promise.resolve().then(o.bind(o,278416)).then(e=>e.TagIcon),bookmark:()=>Promise.resolve().then(o.bind(o,606096)).then(e=>e.BookmarkIcon),flag:()=>Promise.resolve().then(o.bind(o,138134)).then(e=>e.FlagIcon),star:()=>Promise.resolve().then(o.bind(o,27232)).then(e=>e.StarIcon),heart:()=>Promise.resolve().then(o.bind(o,926268)).then(e=>e.HeartIcon),microphone:()=>Promise.resolve().then(o.bind(o,831544)).then(e=>e.MicrophoneIcon),play:()=>Promise.resolve().then(o.bind(o,782134)).then(e=>e.PlayIcon),pause:()=>Promise.resolve().then(o.bind(o,113494)).then(e=>e.PauseIcon),user:()=>Promise.resolve().then(o.bind(o,950305)).then(e=>e.UserIcon),chat:()=>Promise.resolve().then(o.bind(o,534890)).then(e=>e.ChatIcon),crown:()=>Promise.resolve().then(o.bind(o,329177)).then(e=>e.CrownIcon),trophy:()=>Promise.resolve().then(o.bind(o,369606)).then(e=>e.TrophyIcon),medal:()=>Promise.resolve().then(o.bind(o,179097)).then(e=>e.MedalIcon),game_controller:()=>Promise.resolve().then(o.bind(o,687966)).then(e=>e.GameControllerIcon),dice:()=>Promise.resolve().then(o.bind(o,926321)).then(e=>e.DiceIcon),puzzle:()=>Promise.resolve().then(o.bind(o,686042)).then(e=>e.PuzzlePieceIcon),sparkles:()=>Promise.resolve().then(o.bind(o,175841)).then(e=>e.SparklesIcon),gift:()=>Promise.resolve().then(o.bind(o,597770)).then(e=>e.GiftIcon),fire:()=>Promise.resolve().then(o.bind(o,825860)).then(e=>e.FireIcon),lightbulb:()=>Promise.resolve().then(o.bind(o,443865)).then(e=>e.LightbulbIcon),robot:()=>Promise.resolve().then(o.bind(o,430392)).then(e=>e.RobotIcon),paint_palette:()=>Promise.resolve().then(o.bind(o,650809)).then(e=>e.PaintPaletteIcon)};async function c(e){let n=new Set;!function e(n,o){for(let t of n)null!=t.icon&&t.icon in h&&o.add(t.icon),null!=t.items&&e(t.items,o)}(e,n);let o=new Map;return await Promise.all([...n].map(async e=>{try{o.set(e,await h[e]())}catch{}})),o}function d(e){let{items:n,icons:o,onSelectItem:h,onUnmount:c,onSelect:d}=e,a=i.useRef(c);return i.useEffect(()=>()=>a.current(),[]),(0,t.jsx)(s.W,{navId:"activity-custom-context",onClose:l.Z_,onSelect:d,"aria-label":"Activity actions",children:(function(e){let n=[[]];for(let o of e)"separator"===o.type?n.push([]):n[n.length-1].push(o);return n.filter(e=>e.length>0)})(n).map((e,n)=>(0,t.jsx)(r.rX,{children:e.map((e,i)=>(function e(n,i){if("separator"===n.type)return(0,t.jsx)(r.bX,{},i);let s=n.id;if(null==s||null==n.label)return null;let c=null!=n.icon?o.get(n.icon):void 0,d={id:s,label:n.label,subtext:n.subtext,color:n.color,disabled:n.disabled??!1,leadingAccessory:null!=c?{type:"icon",icon:c}:void 0};function a(){h(s),(0,l.Z_)()}if("checkbox"===n.type)return(0,t.jsx)(r.sL,{...d,leftIcon:c,checked:n.checked??!1,action:a},i);if("radio"===n.type)return(0,t.jsx)(r.iD,{...d,leftIcon:c,group:n.group??"default",checked:n.checked??!1,action:a},i);let b=n.items?.map((n,o)=>e(n,`${i}-${o}`)).filter(Boolean);return null!=b&&b.length>0?(0,t.jsx)(r.Dr,{...d,iconLeft:c,children:b},i):(0,t.jsx)(r.Dr,{...d,iconLeft:c,action:a,dontCloseOnAction:!0},i)})(e,`${n}-${i}`))},`group-${n}`))})}}