text: /**
   * Mounting functions, to mount Vue components somewhere in the MapEditor.
   */
  import {createApp} from "vue"
  import VueComponentLControl from './components/leaflet/VueComponentLControl'
  // Import everything.
  // import Antd from 'ant-design-vue';
  // import 'ant-design-vue/dist/antd.min.css';
  // Import subset.
  import {
      Breadcrumb,
      Button,
      Card,
      Col,
      Collapse,
      DatePicker,
      Divider,
      Dropdown,
      Form,
      Input,
      InputNumber,
      Modal,
      Radio,
      Row,
      Select,
      Space,
      Switch,
      Table,
      Transfer,
      Tree,
      Upload
  } from 'ant-design-vue';
  
  export function mountSidebarComponent(component) {
      let sidebar_ctr = window.sidebar.getContainer();
      sidebar_ctr.innerHTML = '<div id="vue_sidebar_app"></div>';
      window.sidebar.show();
      mountApp(component, '#vue_sidebar_app');
  }
  
  export function mountSettingsComponent(component) {
      let settings_div = document.getElementById('settings_module_contents');
      settings_div.innerHTML = '<div id="mount_settings_component_div"></div>';
      mountApp(component, '#mount_settings_component_div');
  }
  
  export function createVueLControl(component, options) {
      const lcontrol = new VueComponentLControl(options);
      lcontrol.addTo(window.map).mount(component);
  }
  
  export function mountApp(component, elementSelector) {
      const app = createApp(component)
      // app.use(Antd);
      // app.use(Badge);
      app.use(Button);
      app.use(Card);
      app.use(Radio);
      app.use(Collapse);
      app.use(DatePicker);
      app.use(Dropdown);
      app.use(Input);
      app.use(InputNumber);
      app.use(Form);
      app.use(Modal);
      app.use(Select);
      app.use(Space);
      app.use(Table);
      app.use(Transfer);
      app.use(Col);
      app.use(Row);
      app.use(Switch);
      app.use(Tree);
      app.use(Upload);
      app.use(Row);
      app.use(Col);
      app.use(Divider);
      app.use(Breadcrumb);
      app.mount(elementSelector);
  }
  