text: import * as constants from './constants';
  
  /**
   * vue-fullpage.js
   * https://github.com/alvarotrigo/vue-fullpage.js
   * @license https://github.com/alvarotrigo/vue-fullpage.js#license
   *
   * Copyright (C) 2018 alvarotrigo.com - A project by Alvaro Trigo
   */
  export default {
    data() {
      return {
        $_fullPageMixin_refName: 'fullPage',
      };
    },
  
    methods: {
      // Methods of Full Page
      ...constants.METHODS.reduce((methods, method) => {
        return {
          ...methods,
  
          [method]: (...args) => {
            if (args[0] instanceof Event) {
              args.shift();
            }
  
            if (args.length) {
              $.fn.fullpage[method].apply( this, args );
            } else {
              $.fn.fullpage[method]();
            }
          }
        };
      }, {}),
    }
  };