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