module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "/dist/";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 520);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file.
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

module.exports = function normalizeComponent (
  rawScriptExports,
  compiledTemplate,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */
) {
  var esModule
  var scriptExports = rawScriptExports = rawScriptExports || {}

  // ES6 modules interop
  var type = typeof rawScriptExports.default
  if (type === 'object' || type === 'function') {
    esModule = rawScriptExports
    scriptExports = rawScriptExports.default
  }

  // Vue.extend constructor export interop
  var options = typeof scriptExports === 'function'
    ? scriptExports.options
    : scriptExports

  // render functions
  if (compiledTemplate) {
    options.render = compiledTemplate.render
    options.staticRenderFns = compiledTemplate.staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = scopeId
  }

  var hook
  if (moduleIdentifier) { // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = injectStyles
  }

  if (hook) {
    var functional = options.functional
    var existing = functional
      ? options.render
      : options.beforeCreate

    if (!functional) {
      // inject component registration as beforeCreate hook
      options.beforeCreate = existing
        ? [].concat(existing, hook)
        : [hook]
    } else {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functioal component in vue file
      options.render = function renderWithStyleInjection (h, context) {
        hook.call(context)
        return existing(h, context)
      }
    }
  }

  return {
    esModule: esModule,
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 150:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
//
//
//
//
//
//

exports.default = {
  name: 'ElWaypoint',
  props: {
    scrollAncestors: {
      type: Function,
      default: function _default() {
        return [window];
      }
    },
    scrollParent: {
      type: Function,
      default: function _default() {
        return window;
      }
    },
    offsetTop: {
      type: String,
      default: '0px'
    },
    offsetBottom: {
      type: String,
      default: '0px'
    },
    immediate: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      isTopInView: false,
      isBottomInView: false
    };
  },
  mounted: function mounted() {
    this.addResizeEvent();
    this.addScrollEvent();

    if (this.immediate) {
      this.verifyPosition();
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.removeResizeEvent();
    this.removeScrollEvent();
  },

  watch: {
    isTopInView: function isTopInView(value) {
      if (value) {
        this.$emit('top-enter');
      } else {
        this.$emit('top-leave');
      }
    },
    isBottomInView: function isBottomInView(value) {
      if (value) {
        this.$emit('bottom-enter');
      } else {
        this.$emit('bottom-leave');
      }
    }
  },
  methods: {
    addResizeEvent: function addResizeEvent() {
      window.addEventListener('resize', this.handleResize);
    },
    removeResizeEvent: function removeResizeEvent() {
      window.removeEventListener('resize', this.handleResize);
    },
    addScrollEvent: function addScrollEvent() {
      var $scrollAncestors = this.scrollAncestors();
      if ($scrollAncestors && $scrollAncestors.length) {
        for (var _iterator = $scrollAncestors, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
          var _ref;

          if (_isArray) {
            if (_i >= _iterator.length) break;
            _ref = _iterator[_i++];
          } else {
            _i = _iterator.next();
            if (_i.done) break;
            _ref = _i.value;
          }

          var $scrollAncestor = _ref;

          if (typeof $scrollAncestor === 'string') {
            document.querySelector($scrollAncestor).addEventListener('scroll', this.handleScroll);
          } else {
            $scrollAncestor.addEventListener('scroll', this.handleScroll);
          }
        }
      }
    },
    removeScrollEvent: function removeScrollEvent() {
      var $scrollAncestors = this.scrollAncestors();
      if ($scrollAncestors && $scrollAncestors.length) {
        for (var _iterator2 = $scrollAncestors, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
          var _ref2;

          if (_isArray2) {
            if (_i2 >= _iterator2.length) break;
            _ref2 = _iterator2[_i2++];
          } else {
            _i2 = _iterator2.next();
            if (_i2.done) break;
            _ref2 = _i2.value;
          }

          var $scrollAncestor = _ref2;

          if (typeof $scrollAncestor === 'string') {
            var $el = document.querySelector($scrollAncestor);
            if ($el) $el.removeEventListener('scroll', this.handleScroll);
          } else {
            $scrollAncestor.removeEventListener('scroll', this.handleScroll);
          }
        }
      }
    },
    getClientRect: function getClientRect(element) {
      if (element === window) {
        var width = element.innerWidth,
            height = element.innerHeight;

        return { top: 0, right: 0, bottom: 0, left: 0, width: width, height: height };
      }
      var rects = element.getClientRects();
      return rects.length ? rects[0] : undefined;
    },
    string2Pixel: function string2Pixel(value) {
      return +value.replace('px', '');
    },
    topViewPort: function topViewPort(parRect) {
      return Math.max(0, parRect.top);
    },
    bottomViewPort: function bottomViewPort(parRect) {
      return Math.min(window.innerHeight, parRect.top + parRect.height);
    },
    isElTopInView: function isElTopInView(elRect, parRect) {
      return elRect.top + this.string2Pixel(this.offsetTop) >= this.topViewPort(parRect) && elRect.top + this.string2Pixel(this.offsetTop) <= this.bottomViewPort(parRect);
    },
    isElBottomInView: function isElBottomInView(elRect, parRect) {
      return elRect.top + elRect.height + this.string2Pixel(this.offsetBottom) >= this.topViewPort(parRect) && elRect.top + elRect.height + this.string2Pixel(this.offsetBottom) <= this.bottomViewPort(parRect);
    },
    isElTopOutView: function isElTopOutView(elRect, parRect) {
      return elRect.top + this.string2Pixel(this.offsetTop) < this.topViewPort(parRect) || elRect.top + this.string2Pixel(this.offsetTop) > this.bottomViewPort(parRect);
    },
    isElBottomOutView: function isElBottomOutView(elRect, parRect) {
      return elRect.top + elRect.height + this.string2Pixel(this.offsetBottom) < this.topViewPort(parRect) || elRect.top + elRect.height + this.string2Pixel(this.offsetBottom) > this.bottomViewPort(parRect);
    },
    verifyPosition: function verifyPosition() {
      var $el = this.$refs.$el;

      var $scrollParent = this.scrollParent();

      var elRect = this.getClientRect($el);
      var parRect = this.getClientRect($scrollParent);

      if ($el && $scrollParent && elRect && parRect) {
        var isElTopInView = this.isElTopInView(elRect, parRect);
        var isElBottomInView = this.isElBottomInView(elRect, parRect);
        var isElTopOutView = this.isElTopOutView(elRect, parRect);
        var isElBottomOutView = this.isElBottomOutView(elRect, parRect);
        if (isElTopInView && !this.isTopInView) {
          this.isTopInView = true;
        }
        if (isElBottomInView && !this.isBottomInView) {
          this.isBottomInView = true;
        }
        if (isElTopOutView && this.isTopInView) {
          this.isTopInView = false;
        }
        if (isElBottomOutView && this.isBottomInView) {
          this.isBottomInView = false;
        }
      }
    },
    handleResize: function handleResize() {
      this.verifyPosition();
    },
    handleScroll: function handleScroll() {
      this.verifyPosition();
    }
  }
};

/***/ }),

/***/ 520:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(521);


/***/ }),

/***/ 521:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _waypoint = __webpack_require__(522);

var _waypoint2 = _interopRequireDefault(_waypoint);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/* istanbul ignore next */
_waypoint2.default.install = function (Vue) {
  Vue.component(_waypoint2.default.name, _waypoint2.default);
};

exports.default = _waypoint2.default;

/***/ }),

/***/ 522:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue__ = __webpack_require__(150);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c5fa6f0_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_waypoint_vue__ = __webpack_require__(523);
var normalizeComponent = __webpack_require__(0)
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_waypoint_vue___default.a,
  __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c5fa6f0_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_waypoint_vue__["a" /* default */],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ 523:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"$el"},[_vm._t("default")],2)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);

/***/ })

/******/ });