/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/jupyterlab_gather@0.1.3/lib/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{ILayoutRestorer}from"@jupyterlab/application";import{ICommandPalette,IThemeManager,MainAreaWidget}from"@jupyterlab/apputils";import{ILauncher}from"@jupyterlab/launcher";import{ISettingRegistry}from"@jupyterlab/settingregistry";import{IStateDB}from"@jupyterlab/statedb";import{LogoIcon}from"./components/Icons";import{IGatherRegistryToken,ModelManager}from"./registry";import{LeftSidebarWidget}from"./widgets/LeftSidebar";import{RightSidebarWidget}from"./widgets/RightSidebar";import{RootDisplayWidget}from"./widgets/RootDisplay";export{IGatherRegistryToken};const PLUGIN_ID="jupyterlab_gather",plugin={id:PLUGIN_ID,description:"Video presentation over WebRTC with AR capabilities.",autoStart:!0,requires:[ICommandPalette,ILauncher,IGatherRegistryToken,IStateDB,IThemeManager],optional:[ILayoutRestorer,ISettingRegistry],activate:(e,t,a,r,i,o,n,l)=>{let s;console.log("JupyterLab extension jupyterlab_gather is activated!");const d="gather:open";e.commands.addCommand(d,{label:"Start Gather",icon:LogoIcon,execute:()=>{if(!s||s.isDisposed){const e=new RootDisplayWidget(r.modelRegistryChanged,i,o.themeChanged);s=new MainAreaWidget({content:e}),s.id="gather-jupyterlab",s.title.label="AR Presentation",s.title.closable=!0,s.title.icon=LogoIcon}s.isAttached||e.shell.add(s,"main");const t=new LeftSidebarWidget(r);t.id="gather-leftSidePanel";const a=new RightSidebarWidget;a.id="gather-rightSidePanel",e.shell.activateById(s.id),e.shell.add(s,"main"),e.shell.add(t,"left",{rank:2e3}),e.shell.add(a,"right",{rank:2e3}),r.registerModel({name:"duck",url:"https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/Duck/glTF-Binary/Duck.glb"}),r.registerModel({name:"fox",url:"https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/Fox/glTF-Binary/Fox.glb"})}}),t.addItem({command:d,category:"Video Chat"}),a&&a.add({command:d,category:"Video Chat",rank:2})}},modelRegistryPlugin={id:"jupyterlab_gather:registry",description:"Registry of available models to display in ar present",autoStart:!0,requires:[],provides:IGatherRegistryToken,activate:()=>new ModelManager};export default[plugin,modelRegistryPlugin];
//# sourceMappingURL=/sm/ca5250342da00993ec6835d19b2aba1944284eee1434c199194df4566e1b428c.map