/* Essentials YOOtheme Pro 2.2.16 build 0813.1608; ZOOlanders https://www.zoolanders.com; Copyright (C) Joolanders, SL; http://www.gnu.org/licenses/gpl.html GNU/GPL */

import Vue from 'vue';
import hooks from '@yootheme/hooks';
import essentials from 'essentials';
import { LayoutLibraryModel } from './models';
import { LibrariesSection } from './components';

import './extend';

Vue.component('yooessentials-layout-libraries', LibrariesSection);
Object.assign(essentials.models, { EssentialsLayoutLibrary: LayoutLibraryModel });

hooks.after('app.init', ({ Library }) => {
    essentials.yooLibrary = Library;
});
