index.js 42.1 KB
Newer Older
D
dolymood 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
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 = "./";
/******/
/******/ 	// Load entry module and return exports
D
dolymood 已提交
64
/******/ 	return __webpack_require__(__webpack_require__.s = 287);
D
dolymood 已提交
65 66
/******/ })
/************************************************************************/
A
AmyFoxFN 已提交
67 68 69
/******/ ({

/***/ 0:
D
dolymood 已提交
70 71 72 73 74 75 76 77 78 79 80
/***/ (function(module, exports) {

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
  ? window : typeof self != 'undefined' && self.Math == Math ? self
  // eslint-disable-next-line no-new-func
  : Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef


/***/ }),
A
AmyFoxFN 已提交
81 82

/***/ 1:
D
dolymood 已提交
83 84
/***/ (function(module, exports) {

D
dolymood 已提交
85 86
var core = module.exports = { version: '2.5.5' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
D
dolymood 已提交
87 88


D
dolymood 已提交
89
/***/ }),
D
dolymood 已提交
90

D
dolymood 已提交
91 92
/***/ 10:
/***/ (function(module, exports, __webpack_require__) {
D
dolymood 已提交
93

D
dolymood 已提交
94 95 96 97 98 99 100 101
var dP = __webpack_require__(8);
var createDesc = __webpack_require__(17);
module.exports = __webpack_require__(4) ? function (object, key, value) {
  return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};
D
dolymood 已提交
102 103


D
dolymood 已提交
104
/***/ }),
D
dolymood 已提交
105

D
dolymood 已提交
106 107
/***/ 11:
/***/ (function(module, exports, __webpack_require__) {
D
dolymood 已提交
108

D
dolymood 已提交
109 110 111 112 113
var isObject = __webpack_require__(7);
module.exports = function (it) {
  if (!isObject(it)) throw TypeError(it + ' is not an object!');
  return it;
};
D
dolymood 已提交
114 115


A
AmyFoxFN 已提交
116
/***/ }),
D
dolymood 已提交
117

D
dolymood 已提交
118 119
/***/ 12:
/***/ (function(module, exports, __webpack_require__) {
D
dolymood 已提交
120

D
dolymood 已提交
121 122 123 124 125
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(23);
var defined = __webpack_require__(15);
module.exports = function (it) {
  return IObject(defined(it));
D
dolymood 已提交
126 127 128 129
};


/***/ }),
D
dolymood 已提交
130

D
dolymood 已提交
131
/***/ 13:
D
dolymood 已提交
132 133
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
134 135 136
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(32);
var enumBugKeys = __webpack_require__(25);
D
dolymood 已提交
137

D
dolymood 已提交
138 139
module.exports = Object.keys || function keys(O) {
  return $keys(O, enumBugKeys);
D
dolymood 已提交
140 141 142
};


A
AmyFoxFN 已提交
143 144
/***/ }),

D
dolymood 已提交
145
/***/ 14:
A
AmyFoxFN 已提交
146 147
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
148 149
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(15);
A
AmyFoxFN 已提交
150
module.exports = function (it) {
D
dolymood 已提交
151
  return Object(defined(it));
A
AmyFoxFN 已提交
152 153 154 155 156
};


/***/ }),

D
dolymood 已提交
157
/***/ 15:
A
AmyFoxFN 已提交
158 159 160 161 162 163 164 165 166 167 168
/***/ (function(module, exports) {

// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
  if (it == undefined) throw TypeError("Can't call method on  " + it);
  return it;
};


/***/ }),

D
dolymood 已提交
169
/***/ 16:
A
AmyFoxFN 已提交
170 171 172 173 174 175 176 177 178 179
/***/ (function(module, exports) {

// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};


D
dolymood 已提交
180
/***/ }),
A
AmyFoxFN 已提交
181

D
dolymood 已提交
182
/***/ 17:
A
AmyFoxFN 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),

D
dolymood 已提交
197
/***/ 18:
D
dolymood 已提交
198 199
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
200
var shared = __webpack_require__(24)('keys');
A
AmyFoxFN 已提交
201
var uid = __webpack_require__(20);
A
AmyFoxFN 已提交
202 203 204 205 206 207 208
module.exports = function (key) {
  return shared[key] || (shared[key] = uid(key));
};


/***/ }),

D
dolymood 已提交
209 210 211 212
/***/ 19:
/***/ (function(module, exports) {

var toString = {}.toString;
A
AmyFoxFN 已提交
213 214

module.exports = function (it) {
D
dolymood 已提交
215
  return toString.call(it).slice(8, -1);
A
AmyFoxFN 已提交
216 217 218 219 220
};


/***/ }),

D
dolymood 已提交
221 222
/***/ 2:
/***/ (function(module, exports) {
A
AmyFoxFN 已提交
223

D
dolymood 已提交
224
/* globals __VUE_SSR_CONTEXT__ */
A
AmyFoxFN 已提交
225

D
dolymood 已提交
226 227
// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
A
AmyFoxFN 已提交
228

D
dolymood 已提交
229 230 231 232 233 234 235 236 237
module.exports = function normalizeComponent (
  rawScriptExports,
  compiledTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */
) {
  var esModule
  var scriptExports = rawScriptExports = rawScriptExports || {}
A
AmyFoxFN 已提交
238

D
dolymood 已提交
239 240 241 242 243 244
  // ES6 modules interop
  var type = typeof rawScriptExports.default
  if (type === 'object' || type === 'function') {
    esModule = rawScriptExports
    scriptExports = rawScriptExports.default
  }
A
AmyFoxFN 已提交
245

D
dolymood 已提交
246 247 248 249
  // Vue.extend constructor export interop
  var options = typeof scriptExports === 'function'
    ? scriptExports.options
    : scriptExports
A
AmyFoxFN 已提交
250

D
dolymood 已提交
251 252 253 254 255
  // render functions
  if (compiledTemplate) {
    options.render = compiledTemplate.render
    options.staticRenderFns = compiledTemplate.staticRenderFns
  }
A
AmyFoxFN 已提交
256

D
dolymood 已提交
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
  // 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 {
      // 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
  }
}
D
dolymood 已提交
315 316


D
dolymood 已提交
317
/***/ }),
A
AmyFoxFN 已提交
318

A
AmyFoxFN 已提交
319 320 321 322 323 324 325 326 327 328 329 330
/***/ 20:
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};


/***/ }),

D
dolymood 已提交
331
/***/ 22:
A
AmyFoxFN 已提交
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358
/***/ (function(module, exports, __webpack_require__) {

// optional / simple context binding
var aFunction = __webpack_require__(28);
module.exports = function (fn, that, length) {
  aFunction(fn);
  if (that === undefined) return fn;
  switch (length) {
    case 1: return function (a) {
      return fn.call(that, a);
    };
    case 2: return function (a, b) {
      return fn.call(that, a, b);
    };
    case 3: return function (a, b, c) {
      return fn.call(that, a, b, c);
    };
  }
  return function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),

/***/ 23:
D
dolymood 已提交
359 360
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
361
// fallback for non-array-like ES3 and non-enumerable old V8 strings
A
AmyFoxFN 已提交
362
var cof = __webpack_require__(19);
D
dolymood 已提交
363 364 365 366 367 368 369 370
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  return cof(it) == 'String' ? it.split('') : Object(it);
};


/***/ }),

A
AmyFoxFN 已提交
371 372
/***/ 24:
/***/ (function(module, exports, __webpack_require__) {
A
AmyFoxFN 已提交
373

A
AmyFoxFN 已提交
374 375 376
var global = __webpack_require__(0);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
D
dolymood 已提交
377
module.exports = function (key) {
A
AmyFoxFN 已提交
378
  return store[key] || (store[key] = {});
D
dolymood 已提交
379 380 381 382
};


/***/ }),
A
AmyFoxFN 已提交
383

D
dolymood 已提交
384
/***/ 25:
A
AmyFoxFN 已提交
385 386 387 388 389 390 391 392
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
module.exports = (
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');


D
dolymood 已提交
393 394 395 396 397 398 399 400 401 402 403 404 405 406
/***/ }),

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

var isObject = __webpack_require__(7);
var document = __webpack_require__(0).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
  return is ? document.createElement(it) : {};
};


A
AmyFoxFN 已提交
407 408 409 410 411 412
/***/ }),

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

// 7.1.15 ToLength
D
dolymood 已提交
413
var toInteger = __webpack_require__(16);
A
AmyFoxFN 已提交
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432
var min = Math.min;
module.exports = function (it) {
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};


/***/ }),

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

module.exports = function (it) {
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  return it;
};


/***/ }),

D
dolymood 已提交
433
/***/ 287:
A
AmyFoxFN 已提交
434 435 436 437
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
438
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(65), __webpack_require__(288)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
A
AmyFoxFN 已提交
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports, require('../../components/popup/popup.vue'), require('./api'));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports, global.popup, global.api);
    global.index = mod.exports;
  }
})(this, function (module, exports, _popup, _api) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });

  var _popup2 = _interopRequireDefault(_popup);

  var _api2 = _interopRequireDefault(_api);

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

  _popup2.default.install = function (Vue) {
    Vue.component(_popup2.default.name, _popup2.default);
    (0, _api2.default)(Vue, _popup2.default);
  };

  exports.default = _popup2.default;
  module.exports = exports['default'];
});

/***/ }),

D
dolymood 已提交
479
/***/ 288:
A
AmyFoxFN 已提交
480 481 482 483
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
484
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(50)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
A
AmyFoxFN 已提交
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports, require('../../common/helpers/create-api'));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports, global.createApi);
    global.api = mod.exports;
  }
})(this, function (module, exports, _createApi) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = addPopup;

  var _createApi2 = _interopRequireDefault(_createApi);

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

  function addPopup(Vue, Popup) {
    (0, _createApi2.default)(Vue, Popup, ['mask-click'], true);
  }
  module.exports = exports['default'];
});

/***/ }),

A
AmyFoxFN 已提交
521
/***/ 29:
A
AmyFoxFN 已提交
522 523 524
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
D
dolymood 已提交
525
var isObject = __webpack_require__(7);
A
AmyFoxFN 已提交
526 527 528 529 530 531 532 533 534
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
  if (!isObject(it)) return it;
  var fn, val;
  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  throw TypeError("Can't convert object to primitive value");
D
dolymood 已提交
535 536 537
};


D
dolymood 已提交
538 539 540 541 542 543 544
/***/ }),

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

module.exports = { "default": __webpack_require__(46), __esModule: true };

D
dolymood 已提交
545
/***/ }),
A
AmyFoxFN 已提交
546

A
AmyFoxFN 已提交
547
/***/ 31:
A
AmyFoxFN 已提交
548 549
/***/ (function(module, exports) {

A
AmyFoxFN 已提交
550
exports.f = {}.propertyIsEnumerable;
A
AmyFoxFN 已提交
551 552 553 554


/***/ }),

A
AmyFoxFN 已提交
555 556 557
/***/ 32:
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
var has = __webpack_require__(6);
var toIObject = __webpack_require__(12);
var arrayIndexOf = __webpack_require__(38)(false);
var IE_PROTO = __webpack_require__(18)('IE_PROTO');

module.exports = function (object, names) {
  var O = toIObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (has(O, key = names[i++])) {
    ~arrayIndexOf(result, key) || result.push(key);
  }
  return result;
};


/***/ }),

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

module.exports = !__webpack_require__(4) && !__webpack_require__(5)(function () {
  return Object.defineProperty(__webpack_require__(26)('div'), 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

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

A
AmyFoxFN 已提交
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports);
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports);
    global.api = mod.exports;
  }
})(this, function (module, exports) {
  "use strict";

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = {
    data: function data() {
      return {
        isVisible: false
      };
    },

    methods: {
      show: function show() {
        this.isVisible = true;
      },
      hide: function hide() {
        this.isVisible = false;
      }
    }
  };
  module.exports = exports["default"];
});

/***/ }),

D
dolymood 已提交
634
/***/ 36:
A
AmyFoxFN 已提交
635 636
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
637
module.exports = { "default": __webpack_require__(43), __esModule: true };
D
dolymood 已提交
638 639

/***/ }),
A
AmyFoxFN 已提交
640

D
dolymood 已提交
641
/***/ 37:
A
AmyFoxFN 已提交
642 643
/***/ (function(module, exports) {

A
AmyFoxFN 已提交
644
exports.f = Object.getOwnPropertySymbols;
A
AmyFoxFN 已提交
645 646 647 648


/***/ }),

D
dolymood 已提交
649
/***/ 38:
A
AmyFoxFN 已提交
650 651
/***/ (function(module, exports, __webpack_require__) {

A
AmyFoxFN 已提交
652 653
// false -> Array#indexOf
// true  -> Array#includes
A
AmyFoxFN 已提交
654
var toIObject = __webpack_require__(12);
A
AmyFoxFN 已提交
655
var toLength = __webpack_require__(27);
D
dolymood 已提交
656
var toAbsoluteIndex = __webpack_require__(39);
A
AmyFoxFN 已提交
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673
module.exports = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIObject($this);
    var length = toLength(O.length);
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare
    if (IS_INCLUDES && el != el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare
      if (value != value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
      if (O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
D
dolymood 已提交
674 675 676 677 678
};


/***/ }),

D
dolymood 已提交
679
/***/ 39:
A
AmyFoxFN 已提交
680 681
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
682
var toInteger = __webpack_require__(16);
A
AmyFoxFN 已提交
683 684 685 686 687
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
  index = toInteger(index);
  return index < 0 ? max(index + length, 0) : min(index, length);
D
dolymood 已提交
688 689 690 691 692
};


/***/ }),

D
dolymood 已提交
693 694 695 696 697 698 699 700 701 702 703 704
/***/ 4:
/***/ (function(module, exports, __webpack_require__) {

// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(5)(function () {
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ 40:
D
dolymood 已提交
705 706
/***/ (function(module, exports, __webpack_require__) {

A
AmyFoxFN 已提交
707
"use strict";
D
dolymood 已提交
708 709


A
AmyFoxFN 已提交
710 711
exports.__esModule = true;

D
dolymood 已提交
712
var _assign = __webpack_require__(30);
A
AmyFoxFN 已提交
713 714 715 716 717 718 719 720 721 722 723 724

var _assign2 = _interopRequireDefault(_assign);

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

exports.default = _assign2.default || function (target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i];

    for (var key in source) {
      if (Object.prototype.hasOwnProperty.call(source, key)) {
        target[key] = source[key];
D
dolymood 已提交
725 726
      }
    }
A
AmyFoxFN 已提交
727 728 729 730 731 732 733
  }

  return target;
};

/***/ }),

D
dolymood 已提交
734
/***/ 41:
D
dolymood 已提交
735 736
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(exports);
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports);
    global.string = mod.exports;
  }
})(this, function (exports) {
  'use strict';
D
dolymood 已提交
754

D
dolymood 已提交
755 756 757 758 759 760 761 762 763 764 765 766
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.camelize = camelize;
  var camelizeRE = /-(\w)/g;
  function camelize(str) {
    str = String(str);
    return str.replace(camelizeRE, function (m, c) {
      return c ? c.toUpperCase() : '';
    });
  }
});
D
dolymood 已提交
767 768 769

/***/ }),

D
dolymood 已提交
770
/***/ 43:
D
dolymood 已提交
771 772
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
773 774
__webpack_require__(44);
module.exports = __webpack_require__(1).Object.keys;
D
dolymood 已提交
775 776 777


/***/ }),
A
AmyFoxFN 已提交
778

D
dolymood 已提交
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821
/***/ 44:
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(14);
var $keys = __webpack_require__(13);

__webpack_require__(45)('keys', function () {
  return function keys(it) {
    return $keys(toObject(it));
  };
});


/***/ }),

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

// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(9);
var core = __webpack_require__(1);
var fails = __webpack_require__(5);
module.exports = function (KEY, exec) {
  var fn = (core.Object || {})[KEY] || Object[KEY];
  var exp = {};
  exp[KEY] = exec(fn);
  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
};


/***/ }),

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

__webpack_require__(47);
module.exports = __webpack_require__(1).Object.assign;


/***/ }),

/***/ 47:
D
dolymood 已提交
822 823 824
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.1 Object.assign(target, source)
D
dolymood 已提交
825
var $export = __webpack_require__(9);
D
dolymood 已提交
826

D
dolymood 已提交
827
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(48) });
D
dolymood 已提交
828 829 830


/***/ }),
A
AmyFoxFN 已提交
831

D
dolymood 已提交
832
/***/ 48:
D
dolymood 已提交
833 834 835 836 837
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.2.1 Object.assign(target, source, ...)
D
dolymood 已提交
838 839
var getKeys = __webpack_require__(13);
var gOPS = __webpack_require__(37);
A
AmyFoxFN 已提交
840
var pIE = __webpack_require__(31);
D
dolymood 已提交
841
var toObject = __webpack_require__(14);
A
AmyFoxFN 已提交
842
var IObject = __webpack_require__(23);
D
dolymood 已提交
843 844 845
var $assign = Object.assign;

// should work with symbols and should have deterministic property order (V8 bug)
D
dolymood 已提交
846
module.exports = !$assign || __webpack_require__(5)(function () {
D
dolymood 已提交
847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873
  var A = {};
  var B = {};
  // eslint-disable-next-line no-undef
  var S = Symbol();
  var K = 'abcdefghijklmnopqrst';
  A[S] = 7;
  K.split('').forEach(function (k) { B[k] = k; });
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  var T = toObject(target);
  var aLen = arguments.length;
  var index = 1;
  var getSymbols = gOPS.f;
  var isEnum = pIE.f;
  while (aLen > index) {
    var S = IObject(arguments[index++]);
    var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  } return T;
} : $assign;


/***/ }),

D
dolymood 已提交
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888
/***/ 5:
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};


/***/ }),

/***/ 50:
D
dolymood 已提交
889 890
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
891 892
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
893
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(41), __webpack_require__(55)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
D
dolymood 已提交
894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports, require('../lang/string'), require('./create-api-component'));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports, global.string, global.createApiComponent);
    global.createApi = mod.exports;
  }
})(this, function (module, exports, _string, _createApiComponent) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = createAPI;

  var _createApiComponent2 = _interopRequireDefault(_createApiComponent);

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

  function createAPI(Vue, Component, events, single) {
    var api = _createApiComponent2.default.apply(this, arguments);
    var name = Component.name;
    var pureName = name.replace(/^cube-/i, '');
    var createName = '$' + (0, _string.camelize)('create-' + pureName);
    Vue.prototype[createName] = api.create;
A
AmyFoxFN 已提交
928
    Component.$create = api.create;
D
dolymood 已提交
929 930 931 932 933 934
    return api;
  }
  module.exports = exports['default'];
});

/***/ }),
A
AmyFoxFN 已提交
935

D
dolymood 已提交
936
/***/ 55:
D
dolymood 已提交
937 938 939 940
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
941
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(36), __webpack_require__(56), __webpack_require__(57)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
D
dolymood 已提交
942 943 944 945
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
D
dolymood 已提交
946
    factory(module, exports, require('babel-runtime/core-js/object/keys'), require('./instantiate-component'), require('./parse-render-data'));
D
dolymood 已提交
947 948 949 950
  } else {
    var mod = {
      exports: {}
    };
D
dolymood 已提交
951
    factory(mod, mod.exports, global.keys, global.instantiateComponent, global.parseRenderData);
D
dolymood 已提交
952 953
    global.createApiComponent = mod.exports;
  }
D
dolymood 已提交
954
})(this, function (module, exports, _keys, _instantiateComponent, _parseRenderData) {
D
dolymood 已提交
955 956 957 958 959 960 961
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = createAPIComponent;

D
dolymood 已提交
962 963
  var _keys2 = _interopRequireDefault(_keys);

D
dolymood 已提交
964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979
  var _instantiateComponent2 = _interopRequireDefault(_instantiateComponent);

  var _parseRenderData2 = _interopRequireDefault(_parseRenderData);

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

  function createAPIComponent(Vue, Component) {
    var events = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
    var single = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;

    var singleComponent = void 0;
    var singleInstance = void 0;
D
dolymood 已提交
980
    var beforeFns = [];
D
dolymood 已提交
981
    var api = {
D
dolymood 已提交
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997
      before: function before(fn) {
        beforeFns.push(fn);
      },
      open: function open(data, renderFn, instanceSingle) {
        if (typeof renderFn !== 'function') {
          instanceSingle = renderFn;
          renderFn = null;
        }
        beforeFns.forEach(function (before) {
          before(data, renderFn, instanceSingle);
        });
        if (instanceSingle === undefined) {
          instanceSingle = single;
        }
        if (instanceSingle && singleComponent) {
          singleInstance.updateRenderData(data, renderFn);
D
dolymood 已提交
998 999 1000 1001 1002 1003 1004 1005 1006
          singleInstance.$forceUpdate();

          return singleComponent;
        }
        var component = (0, _instantiateComponent2.default)(Vue, Component, data, renderFn);
        var instance = component.$parent;
        var originRemove = component.remove;

        component.remove = function () {
D
dolymood 已提交
1007 1008 1009
          if (instance.__cube__destroyed) {
            return;
          }
D
dolymood 已提交
1010 1011
          originRemove && originRemove.call(this);
          instance.destroy();
D
dolymood 已提交
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026
          instance.__cube__destroyed = true;
          if (instanceSingle) {
            singleComponent = null;
            singleInstance = null;
          }
        };
        var originShow = component.show;
        component.show = function () {
          originShow && originShow.call(this);
          return this;
        };
        var originHide = component.hide;
        component.hide = function () {
          originHide && originHide.call(this);
          return this;
D
dolymood 已提交
1027
        };
D
dolymood 已提交
1028
        if (instanceSingle) {
D
dolymood 已提交
1029 1030 1031 1032 1033 1034
          singleComponent = component;
          singleInstance = instance;
        }

        return component;
      },
D
dolymood 已提交
1035 1036
      create: function create(config, renderFn, single) {
        var ownerInstance = this;
D
dolymood 已提交
1037 1038 1039 1040 1041 1042 1043
        var renderData = (0, _parseRenderData2.default)(config, events);

        cancelWatchProps();
        processProps();
        processEvents();

        var component = api.open(renderData, renderFn, single);
D
dolymood 已提交
1044 1045 1046
        if (component.__cube__parent !== ownerInstance) {
          component.__cube__parent = ownerInstance;
          var beforeDestroy = function beforeDestroy() {
D
dolymood 已提交
1047
            cancelWatchProps();
D
dolymood 已提交
1048 1049 1050 1051 1052 1053
            if (component.__cube__parent === ownerInstance) {
              component.remove();
            }
            ownerInstance.$off('hook:beforeDestroy', beforeDestroy);
            component.__cube__parent = null;
          };
D
dolymood 已提交
1054
          ownerInstance.$on && ownerInstance.$on('hook:beforeDestroy', beforeDestroy);
D
dolymood 已提交
1055 1056
        }
        return component;
D
dolymood 已提交
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109

        function processProps() {
          var $props = renderData.props.$props;
          if ($props) {
            delete renderData.props.$props;

            var watchKeys = [];
            var watchPropKeys = [];
            (0, _keys2.default)($props).forEach(function (key) {
              var propKey = $props[key];
              if (typeof propKey === 'string' && propKey in ownerInstance) {
                renderData.props[key] = ownerInstance[propKey];
                watchKeys.push(key);
                watchPropKeys.push(propKey);
              } else {
                renderData.props[key] = propKey;
              }
            });
            if (ownerInstance.$watch) {
              ownerInstance.__createAPI_watcher = ownerInstance.$watch(function () {
                var props = {};
                watchKeys.forEach(function (key, i) {
                  props[key] = ownerInstance[watchPropKeys[i]];
                });
                return props;
              }, function (newProps) {
                component && component.$updateProps(newProps);
              });
            }
          }
        }

        function processEvents() {
          var $events = renderData.props.$events;
          if ($events) {
            delete renderData.props.$events;

            (0, _keys2.default)($events).forEach(function (event) {
              var eventHandler = $events[event];
              if (typeof eventHandler === 'string') {
                eventHandler = ownerInstance[eventHandler];
              }
              renderData.on[event] = eventHandler;
            });
          }
        }

        function cancelWatchProps() {
          if (ownerInstance.__createAPI_watcher) {
            ownerInstance.__createAPI_watcher();
            ownerInstance.__createAPI_watcher = null;
          }
        }
D
dolymood 已提交
1110 1111 1112 1113 1114 1115 1116 1117
      }
    };
    return api;
  }
  module.exports = exports['default'];
});

/***/ }),
A
AmyFoxFN 已提交
1118

D
dolymood 已提交
1119
/***/ 56:
D
dolymood 已提交
1120 1121 1122 1123
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
1124
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(30), __webpack_require__(40)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
D
dolymood 已提交
1125 1126 1127 1128
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
A
AmyFoxFN 已提交
1129
    factory(module, exports, require("babel-runtime/core-js/object/assign"), require("babel-runtime/helpers/extends"));
D
dolymood 已提交
1130 1131 1132 1133
  } else {
    var mod = {
      exports: {}
    };
A
AmyFoxFN 已提交
1134
    factory(mod, mod.exports, global.assign, global._extends);
D
dolymood 已提交
1135 1136
    global.instantiateComponent = mod.exports;
  }
A
AmyFoxFN 已提交
1137
})(this, function (module, exports, _assign, _extends2) {
D
dolymood 已提交
1138 1139 1140 1141 1142 1143
  "use strict";

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = instantiateComponent;
A
AmyFoxFN 已提交
1144

A
AmyFoxFN 已提交
1145 1146
  var _assign2 = _interopRequireDefault(_assign);

A
AmyFoxFN 已提交
1147 1148 1149 1150 1151 1152 1153 1154
  var _extends3 = _interopRequireDefault(_extends2);

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

D
dolymood 已提交
1155 1156
  function instantiateComponent(Vue, Component, data, renderFn) {
    var renderData = void 0;
D
dolymood 已提交
1157
    var childrenRenderFn = void 0;
D
dolymood 已提交
1158 1159
    var instance = new Vue({
      render: function render(createElement) {
D
dolymood 已提交
1160 1161 1162 1163
        var children = childrenRenderFn && childrenRenderFn(createElement);
        if (children && !Array.isArray(children)) {
          children = [children];
        }
A
AmyFoxFN 已提交
1164 1165

        return createElement(Component, (0, _extends3.default)({}, renderData), children || []);
D
dolymood 已提交
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177
      },

      methods: {
        init: function init() {
          document.body.appendChild(this.$el);
        },
        destroy: function destroy() {
          this.$destroy();
          document.body.removeChild(this.$el);
        }
      }
    });
D
dolymood 已提交
1178
    instance.updateRenderData = function (data, render) {
D
dolymood 已提交
1179
      renderData = data;
D
dolymood 已提交
1180
      childrenRenderFn = render;
D
dolymood 已提交
1181
    };
D
dolymood 已提交
1182
    instance.updateRenderData(data, renderFn);
D
dolymood 已提交
1183 1184 1185
    instance.$mount();
    instance.init();
    var component = instance.$children[0];
A
AmyFoxFN 已提交
1186 1187 1188 1189
    component.$updateProps = function (props) {
      (0, _assign2.default)(renderData.props, props);
      instance.$forceUpdate();
    };
D
dolymood 已提交
1190 1191 1192 1193 1194 1195
    return component;
  }
  module.exports = exports["default"];
});

/***/ }),
A
AmyFoxFN 已提交
1196

D
dolymood 已提交
1197
/***/ 57:
D
dolymood 已提交
1198 1199 1200 1201
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
1202
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(40), __webpack_require__(41)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
D
dolymood 已提交
1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports, require('babel-runtime/helpers/extends'), require('../lang/string'));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports, global._extends, global.string);
    global.parseRenderData = mod.exports;
  }
})(this, function (module, exports, _extends2, _string) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = parseRenderData;

  var _extends3 = _interopRequireDefault(_extends2);

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

  function parseRenderData() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    events = parseEvents(events);
    var props = (0, _extends3.default)({}, data);
    var on = {};
    for (var name in events) {
      if (events.hasOwnProperty(name)) {
        var handlerName = events[name];
        if (props[handlerName]) {
          on[name] = props[handlerName];
          delete props[handlerName];
        }
      }
    }
    return {
      props: props,
      on: on
    };
  }

  function parseEvents(events) {
    var parsedEvents = {};
    events.forEach(function (name) {
      parsedEvents[name] = (0, _string.camelize)('on-' + name);
    });
    return parsedEvents;
  }
  module.exports = exports['default'];
});

/***/ }),
A
AmyFoxFN 已提交
1264

A
AmyFoxFN 已提交
1265
/***/ 6:
D
dolymood 已提交
1266
/***/ (function(module, exports) {
A
AmyFoxFN 已提交
1267

D
dolymood 已提交
1268 1269 1270
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
  return hasOwnProperty.call(it, key);
A
AmyFoxFN 已提交
1271 1272 1273 1274 1275
};


/***/ }),

D
dolymood 已提交
1276
/***/ 65:
D
dolymood 已提交
1277 1278 1279
/***/ (function(module, exports, __webpack_require__) {

function injectStyle (ssrContext) {
D
dolymood 已提交
1280
  __webpack_require__(66)
D
dolymood 已提交
1281
}
D
dolymood 已提交
1282
var Component = __webpack_require__(2)(
D
dolymood 已提交
1283
  /* script */
D
dolymood 已提交
1284
  __webpack_require__(67),
D
dolymood 已提交
1285
  /* template */
D
dolymood 已提交
1286
  __webpack_require__(68),
D
dolymood 已提交
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
  /* styles */
  injectStyle,
  /* scopeId */
  null,
  /* moduleIdentifier (server only) */
  null
)

module.exports = Component.exports


/***/ }),
A
AmyFoxFN 已提交
1299

D
dolymood 已提交
1300
/***/ 66:
D
dolymood 已提交
1301 1302 1303 1304 1305
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),
A
AmyFoxFN 已提交
1306

D
dolymood 已提交
1307
/***/ 67:
D
dolymood 已提交
1308 1309 1310 1311
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  if (true) {
D
dolymood 已提交
1312
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(35)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
D
dolymood 已提交
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361
				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else if (typeof exports !== "undefined") {
    factory(module, exports, require('../../common/mixins/api'));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod, mod.exports, global.api);
    global.popup = mod.exports;
  }
})(this, function (module, exports, _api) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });

  var _api2 = _interopRequireDefault(_api);

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

  var COMPONENT_NAME = 'cube-popup';
  var EVENT_MASK_CLICK = 'mask-click';

  exports.default = {
    name: COMPONENT_NAME,
    mixins: [_api2.default],
    props: {
      type: {
        type: String,
        default: ''
      },
      mask: {
        type: Boolean,
        default: true
      },
      content: {
        type: String,
        default: ''
      },
      center: {
        type: Boolean,
        default: true
A
AmyFoxFN 已提交
1362 1363 1364 1365
      },
      zIndex: {
        type: Number,
        default: 100
D
dolymood 已提交
1366 1367 1368
      }
    },
    computed: {
D
dolymood 已提交
1369 1370 1371 1372 1373 1374 1375 1376
      rootClass: function rootClass() {
        var cls = {
          'cube-popup_mask': this.mask
        };
        if (this.type) {
          cls['cube-' + this.type] = true;
        }
        return cls;
D
dolymood 已提交
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388
      }
    },
    methods: {
      maskClick: function maskClick(e) {
        this.$emit(EVENT_MASK_CLICK, e);
      }
    }
  };
  module.exports = exports['default'];
});

/***/ }),
A
AmyFoxFN 已提交
1389

D
dolymood 已提交
1390
/***/ 68:
D
dolymood 已提交
1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: (_vm.isVisible),
      expression: "isVisible"
    }],
    staticClass: "cube-popup",
D
dolymood 已提交
1402
    class: _vm.rootClass,
A
AmyFoxFN 已提交
1403 1404 1405
    style: ({
      'z-index': _vm.zIndex
    })
D
dolymood 已提交
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425
  }, [_c('div', {
    staticClass: "cube-popup-mask",
    on: {
      "click": _vm.maskClick
    }
  }, [_vm._t("mask")], 2), _vm._v(" "), _c('div', {
    staticClass: "cube-popup-container",
    class: {
      'cube-popup-center': _vm.center
    }
  }, [(_vm.$slots.default) ? _c('div', {
    staticClass: "cube-popup-content"
  }, [_vm._t("default")], 2) : _c('div', {
    staticClass: "cube-popup-content",
    domProps: {
      "innerHTML": _vm._s(_vm.content)
    }
  })])])
},staticRenderFns: []}

A
AmyFoxFN 已提交
1426
/***/ }),
D
dolymood 已提交
1427

A
AmyFoxFN 已提交
1428
/***/ 7:
D
dolymood 已提交
1429
/***/ (function(module, exports) {
D
dolymood 已提交
1430

D
dolymood 已提交
1431 1432
module.exports = function (it) {
  return typeof it === 'object' ? it !== null : typeof it === 'function';
D
dolymood 已提交
1433 1434 1435 1436 1437 1438 1439 1440
};


/***/ }),

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

D
dolymood 已提交
1441
var anObject = __webpack_require__(11);
A
AmyFoxFN 已提交
1442
var IE8_DOM_DEFINE = __webpack_require__(33);
D
dolymood 已提交
1443
var toPrimitive = __webpack_require__(29);
A
AmyFoxFN 已提交
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
var dP = Object.defineProperty;

exports.f = __webpack_require__(4) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPrimitive(P, true);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return dP(O, P, Attributes);
  } catch (e) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
A
AmyFoxFN 已提交
1456
};
D
dolymood 已提交
1457 1458 1459


/***/ }),
A
AmyFoxFN 已提交
1460

D
dolymood 已提交
1461
/***/ 9:
D
dolymood 已提交
1462 1463
/***/ (function(module, exports, __webpack_require__) {

D
dolymood 已提交
1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514
var global = __webpack_require__(0);
var core = __webpack_require__(1);
var ctx = __webpack_require__(22);
var hide = __webpack_require__(10);
var has = __webpack_require__(6);
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var IS_WRAP = type & $export.W;
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE];
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  var key, own, out;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    if (own && has(exports, key)) continue;
    // export native or passed
    out = own ? target[key] : source[key];
    // prevent global pollution for namespaces
    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
    // bind timers to global for call from export context
    : IS_BIND && own ? ctx(out, global)
    // wrap global constructors for prevent change them in library
    : IS_WRAP && target[key] == out ? (function (C) {
      var F = function (a, b, c) {
        if (this instanceof C) {
          switch (arguments.length) {
            case 0: return new C();
            case 1: return new C(a);
            case 2: return new C(a, b);
          } return new C(a, b, c);
        } return C.apply(this, arguments);
      };
      F[PROTOTYPE] = C[PROTOTYPE];
      return F;
    // make static versions for prototype methods
    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
    if (IS_PROTO) {
      (exports.virtual || (exports.virtual = {}))[key] = out;
      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
      if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
    }
  }
A
AmyFoxFN 已提交
1515
};
D
dolymood 已提交
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
D
dolymood 已提交
1526 1527 1528


/***/ })
A
AmyFoxFN 已提交
1529 1530

/******/ });