import { Component, Vue } from 'vue-property-decorator';
// @ts-ignore
import { Create } from '@devsun/pgs-modeler/dist/build';
import { ModelerService } from '@/services/modeler';

@Component({
  components: {
    Create,
  },
})
export default class ModelerCreate extends Vue {
  modelerService = new ModelerService();

  get apiBase(): string {
    const base = (location.origin || '').replace(/\/$/, '');

    return base + process.env.VUE_APP_PROJECT_PATH + '/service/';
  }
}
