text
stringlengths
1
22.8M
```go // Code generated by lister-gen. DO NOT EDIT. package v3 import ( v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" ) // GlobalNetworkSetLister helps list GlobalNetworkSets. // All objects returned here must be treated as read-only. type GlobalNetworkSetLister interface { // List lists all GlobalNetworkSets in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v3.GlobalNetworkSet, err error) // Get retrieves the GlobalNetworkSet from the index for a given name. // Objects returned here must be treated as read-only. Get(name string) (*v3.GlobalNetworkSet, error) GlobalNetworkSetListerExpansion } // globalNetworkSetLister implements the GlobalNetworkSetLister interface. type globalNetworkSetLister struct { indexer cache.Indexer } // NewGlobalNetworkSetLister returns a new GlobalNetworkSetLister. func NewGlobalNetworkSetLister(indexer cache.Indexer) GlobalNetworkSetLister { return &globalNetworkSetLister{indexer: indexer} } // List lists all GlobalNetworkSets in the indexer. func (s *globalNetworkSetLister) List(selector labels.Selector) (ret []*v3.GlobalNetworkSet, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { ret = append(ret, m.(*v3.GlobalNetworkSet)) }) return ret, err } // Get retrieves the GlobalNetworkSet from the index for a given name. func (s *globalNetworkSetLister) Get(name string) (*v3.GlobalNetworkSet, error) { obj, exists, err := s.indexer.GetByKey(name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(v3.Resource("globalnetworkset"), name) } return obj.(*v3.GlobalNetworkSet), nil } ```
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_INT64_LOWERING_H_ #define V8_COMPILER_INT64_LOWERING_H_ #include "src/compiler/common-operator.h" #include "src/compiler/graph.h" #include "src/compiler/machine-operator.h" #include "src/compiler/node-marker.h" #include "src/globals.h" #include "src/zone/zone-containers.h" namespace v8 { namespace internal { template <typename T> class Signature; namespace compiler { class V8_EXPORT_PRIVATE Int64Lowering { public: Int64Lowering(Graph* graph, MachineOperatorBuilder* machine, CommonOperatorBuilder* common, Zone* zone, Signature<MachineRepresentation>* signature); void LowerGraph(); static int GetParameterCountAfterLowering( Signature<MachineRepresentation>* signature); private: enum class State : uint8_t { kUnvisited, kOnStack, kVisited }; struct Replacement { Node* low; Node* high; }; Zone* zone() const { return zone_; } Graph* graph() const { return graph_; } MachineOperatorBuilder* machine() const { return machine_; } CommonOperatorBuilder* common() const { return common_; } Signature<MachineRepresentation>* signature() const { return signature_; } void PushNode(Node* node); void LowerNode(Node* node); bool DefaultLowering(Node* node, bool low_word_only = false); void LowerComparison(Node* node, const Operator* signed_op, const Operator* unsigned_op); void ReplaceNode(Node* old, Node* new_low, Node* new_high); bool HasReplacementLow(Node* node); Node* GetReplacementLow(Node* node); bool HasReplacementHigh(Node* node); Node* GetReplacementHigh(Node* node); void PreparePhiReplacement(Node* phi); void GetIndexNodes(Node* index, Node*& index_low, Node*& index_high); struct NodeState { Node* node; int input_index; }; Zone* zone_; Graph* const graph_; MachineOperatorBuilder* machine_; CommonOperatorBuilder* common_; NodeMarker<State> state_; ZoneDeque<NodeState> stack_; Replacement* replacements_; Signature<MachineRepresentation>* signature_; Node* placeholder_; }; } // namespace compiler } // namespace internal } // namespace v8 #endif // V8_COMPILER_INT64_LOWERING_H_ ```
```xml // angular import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; // libs import { Observable } from 'rxjs/Observable'; // app import { Config } from '../../core/index'; import { Analytics, AnalyticsService } from '../../analytics/index'; // module import { NameList } from '../actions/index'; @Injectable() export class NameListService extends Analytics { constructor( public analytics: AnalyticsService, private http: Http ) { super(analytics); this.category = NameList.CATEGORY; } getNames(): Observable<Array<string>> { return this.http.get(`${Config.IS_MOBILE_NATIVE() ? '/' : ''}assets/data.json`) .map(res => res.json()); } } ```
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\CloudSupport\Resource; /** * The "customers" collection of methods. * Typical usage is: * <code> * $cloudsupportService = new Google\Service\CloudSupport(...); * $customers = $cloudsupportService->customers; * </code> */ class Customers extends \Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Customers::class, 'Google_Service_CloudSupport_Resource_Customers'); ```
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:id="@+id/activity_action_bar" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.nightonke.boommenusample.ActionBarActivity"> </RelativeLayout> ```
Team conflict is conflict within a team. Conflicts may be caused by differing goals, values or perceptions of the team members. Types of conflicts "Hot conflicts" have three common symptoms: Team members persist in arguing the same points. When the team reaches an impasse, talks gets personal. Accusations may be spoken out loud, and members may speculate privately about one another’s motives. Once negative attributions take hold, emotions flare and progress halts. Allen C. Amason, of Mississippi State University, studied conflict and its role in decision-making. He stated that there are two kinds of conflict: cognitive — conflict based upon issues, ideas, processes or principles, and affective — conflict based upon personalities, emotions or values. Researcher Thomas K. Capozzoli (1995) classified conflicts by whether the outcome was constructive or destructive. Conflicts are constructive when people change and grow personally from the conflict; the conflict results in a solution to a problem; the involvement of everyone affected by the conflict is increased; the team becomes more cohesive. Conflicts are destructive when no decision is reached and problem still exists; energy is diverted away from productive activities; the morale of the team members goes down; the team becomes divided. Workplace conflict Team conflict is common in the workplace where it may hinder productivity and the achievement of team goals. If management of conflict is not effective, it can disrupt group processes, but successfully-managed conflict may benefit the group. "Faultlines" in groups Lau and Murnighan identify what they call "faultlines" as a source of conflicts within groups. As a supplement to traditional approaches of research that focused on diversity characterized by variance of demographic attributes across a population, faultlines are hypothetical dividing lines that split groups into multiple sets of subgroups with each set based on different attributes. These attributes may be demographics, but also may be characteristics such as personal values or personalities. This work builds on work in social identity theory and self-categorization theory, which explains the ways in which individuals favor other individuals with whom they share a common identity; per this model, individuals evaluate members of their subgroups more positively than other members of the larger group, which may lead to conflict when disagreements occur across faultlines. Lau and Murnighan identify three compositional factors for faultlines within a group: The number of individual attributes apparent to group members Their alignment The number of potentially homogenous subgroups A group has weak faultlines if subgroups contain different members across sets, and strong faultlines if group members fall in the same groups across sets. For example, a team composed half of young male entry-level employees and half of older female executives has strong faultlines because each member falls in subgroups with the same other members across all three demographic characteristics. Subsequent work on the impact of these embedded subgroups, called "factions" when overlap in subgroups is structured into teams, has found significant negative impacts on group productivity stemming from task conflict, emotional conflict, and behavioral disintegration. Faultlines were found to better predict variance in a variety of group self-perception metrics than traditional metrics of group heterogeneity, including perceptions of team-learning, psychological safety, satisfaction, and expected performance. It is important to note that while the concept of faultlines model may be seen as presenting diversity as a challenge to be overcome, diversity has been found to contribute significantly to team outcomes under certain circumstances. Respectful inclusion of the opinions of minority members can lead to increased creativity as the group incorporates their distinct perspectives. The challenges associated with inclusivity are not insubstantial, and may require strong leadership and norms of tolerance and respect to overcome. Six-step procedure for dealing with conflict in teams Conflict is a normal part of working in teams, because it brings creativity and helps avoid groupthink. However, too much conflict can stop teams for doing their work and certain procedures should be followed to get back on track. Guffey, Rhodes, and Rogin describe their six-step process for dealing with conflict in teams: Listen: In order for everyone to understand the problem. Understand the other's point of view: Active listening makes understanding the other's position easier. Show this by asking questions. Show a concern for the relationship: Focus on the problem, not the person. Show that his or her needs are cared for and an overall willingness to resolve the conflict. Look for common ground: Identify both sides' interest and see what you have in common. Invent new problem-solving options: Brainstorm on new ways to solve the conflict and be sure to be open to new suggestions. Reach an agreement on what's fair: Find a middle ground of whats fair and choose the best options after weighing the possible solutions. References Alessandra, Tony Ph.D. & Hunsaker, Phil Ph.D. (1993) Communicating at Work. New York: Fireside Publishers. Cappozzoli, Thomas K. (1995, Dec). Resolving conflict within teams. Journal for Quality and Participation. v18n7, p. 28-30. "Resolve Hot Topics with Cooler Heads." Negotiation (May 2007): 12-12. Teams Interpersonal conflict
Rae Marie Robertson-Anderson is an American biophysicist who is Associate Professor at the University of San Diego. She works on soft matter physics and is particularly interested in the transport and molecular mechanics of biopolymer networks. Robertson-Anderson is a member of the Council on Undergraduate Research. Early life and education Robertson-Anderson grew up in Cincinnati, where she realised that she liked physics at high school. She studied physics at Georgetown University and graduated magna cum laude in 2003. She was supported by a Clare Boothe Luce scholarship to study the diffusion of granular materials. She was made a member of Phi Beta Kappa. Robertson-Anderson moved to the University of California, San Diego for her graduate studies, completing a National Science Foundation supported PhD under the supervision of Douglas Smith on single-molecule studies of DNA. She used video fluorescence microscopy and single molecule tracking to monitor the diffusion coefficients of engineered DNA. Robertson-Anderson joined The Scripps Research Institute as a postdoctoral researcher working with David Millar. She worked on single-molecule microscopy to establish the binding kinetics in HIV-1 regulatory proteins. Research and career Robertson-Anderson joined the faculty of University of San Diego in 2009. She leads the Robertson-Anderson biophysics laboratory. She uses single-molecule microscopy and optical tweezers to understand macromolecule dynamics in soft matter. Using optical tweezer microrheology, Robertson-Anderson can measure intermolecular forces with piconewton precision. By using embedded microspheres and Stokes-Einstein relations it is possible to determine the viscoelastic properties of biomaterials. Robertson-Anderson was awarded a United States Department of Defense Air Force Office of Scientific Research grant to study entangled DNA. She has developed optical tweezer technologies that can be used to track single molecules in actin protein networks. Networks of actin have a range of structural and dynamical properties, and respond to stress and strain. She uses fluorescence force-measuring optical tweezers to link molecular deformation (strain) and resistive forces (stress). She has also shown it is possible to use optical tweezers to transport microspheres through composite networks, measuring the forces that polymers use to resist the strain, and fluorescence microscopy to understand macromolecular mobility. She develops analysis algorithms, microfluidics and macromolecular synthesis techniques to determine the dynamics of nucleic acids. Her platform, Spatiotemporal Light-sheet Assisted Multiscale Macromolecular Transport Analysis Probe (SLAMMTAP), can be used to characterise DNA and cytoskeleton environments. In 2015, Robertson-Anderson attended a Gordon and Betty Moore Foundation Scialog program, where she met Jenny Ross and became interested in cytoskeleton scaffolding proteins. Robertson-Anderson was awarded a W. M. Keck Foundation grant to develop autonomous materials based on cytoskeleton proteins that can use biologically-derived components, such as circadian clock proteins, to perform mechanical work. The circadian oscillator system is taken from cyanobacteria, and turns on and off in the presence of phosphate molecules. The proteins can function on the outside of living cells. The oscillators produce actomyosin, a protein complex which contracts muscle tissue. Robertson-Anderson was made Chair of the Department of Physics and Biophysics at UCSD in 2015. She was the American Physical Society Woman of the Month in February 2017. She appeared on the Ada Lovelace Day podcast discussing her work on biological soft matter and biomaterials. Robertson-Anderson is an advocate for undergraduate teaching and research. She is a member of the council for the Council on Undergraduate Research. She has developing a new advanced laboratory and improved the representation of women in the program at UCSD. She created the Beckman Scholarship Program to recruit talented undergraduate scientists. She has led National Science Foundation proposals to support students from underrepresented backgrounds into science, technology, engineering and maths subjects. Her undergraduate student, Stephanie Gorczyca, won the American Physical Society LeRoy Apker Award for outstanding undergraduate research. Robertson-Anderson was awarded the University of San Diego Outstanding Undergraduate Mentor Award in 2015. She was named a Fellow of the American Physical Society in 2022 "for outstanding contributions to the fundamental knowledge of a wide range of biological processes including cell division, cytoskeletal organization, DNA tethering and helicases, and other active biological systems". References American biophysicists American women physicists Scientists from Cincinnati Georgetown University alumni University of California, San Diego faculty Women biophysicists Year of birth missing (living people) Living people 21st-century American women Fellows of the American Physical Society
Lester Thomas Kirby (born February 16, 1961) is an American politician. He is a former member of the Georgia House of Representatives from the 114th District, serving from 2013 to 2023. Kirby represented the 107th district from 2012 to 2013. He has sponsored 150 bills. He previously ran for the United States House of Representatives in Georgia's 7th congressional district in 2010. Kirby is a member of the Republican party. References External links Tom Kirby at ballotpedia.org Tom Kirby at votesmart.org |- Republican Party members of the Georgia House of Representatives 21st-century American politicians Living people 1961 births
Franz Xaver Wortmann (September 24, 1921 - January 16, 1985) was a German aerodynamicist. Early life After World War II, Wortmann spent time as a pilot and observer with the German Air Force. He then studied physics in Münster and Stuttgart. After graduating in the field of fluid theory he completed his doctorate as an engineer in 1955. His habilitation followed in 1963. Together with Richard Eppler and Dieter Althaus, Wortmann carried out ground-breaking work in the late 1950s and the 1960s in the field of development of laminar flow airfoil profiles using the inverse design method. His wing profile designs are known by the FX (for Franz Xaver) in their code. These wing profiles were used in many of the first and second generation of fibre-reinforced plastic gliders. By the early 1970s, many successful designs of glider had a wing based on a Wortmann profile. In 1974 Wortmann took over the leadership of the Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart. He mainly investigated questions of turbulence. References External links Literature by and about Franz Xaver Wortmann in the German National Library catalogue. 1921 births 1985 deaths Aerodynamicists German aerospace engineers Academic staff of the University of Stuttgart Luftwaffe pilots
```java /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ package io.camunda.zeebe.stream.impl.records; import io.camunda.zeebe.logstreams.log.LogAppendEntry; import io.camunda.zeebe.protocol.impl.record.RecordMetadata; import io.camunda.zeebe.stream.api.records.ExceededBatchRecordSizeException; import io.camunda.zeebe.stream.api.records.ImmutableRecordBatch; import io.camunda.zeebe.stream.api.records.MutableRecordBatch; import io.camunda.zeebe.stream.api.records.RecordBatchSizePredicate; import io.camunda.zeebe.util.Either; import io.camunda.zeebe.util.buffer.BufferWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Spliterator; import java.util.function.Consumer; public final class RecordBatch implements MutableRecordBatch { final List<RecordBatchEntry> recordBatchEntries = new ArrayList<>(); private int batchSize; private final RecordBatchSizePredicate recordBatchSizePredicate; public RecordBatch(final RecordBatchSizePredicate recordBatchSizePredicate) { this.recordBatchSizePredicate = recordBatchSizePredicate; } public static ImmutableRecordBatch empty() { return new RecordBatch((c, s) -> false); } @Override public Either<RuntimeException, Void> appendRecord( final long key, final RecordMetadata metadata, final int sourceIndex, final BufferWriter valueWriter) { final var recordBatchEntry = RecordBatchEntry.createEntry(key, metadata, sourceIndex, valueWriter); final var entryLength = recordBatchEntry.getLength(); if (!recordBatchSizePredicate.test(recordBatchEntries.size() + 1, batchSize + entryLength)) { return Either.left( new ExceededBatchRecordSizeException( recordBatchEntry, entryLength, recordBatchEntries.size(), batchSize)); } recordBatchEntries.add(recordBatchEntry); batchSize += entryLength; return Either.right(null); } @Override public boolean canAppendRecordOfLength(final int recordLength) { return recordBatchSizePredicate.test(recordBatchEntries.size() + 1, batchSize + recordLength); } public int getBatchSize() { return batchSize; } @Override public Iterator<RecordBatchEntry> iterator() { return recordBatchEntries.iterator(); } @Override public void forEach(final Consumer<? super RecordBatchEntry> action) { recordBatchEntries.forEach(action); } @Override public Spliterator<RecordBatchEntry> spliterator() { return recordBatchEntries.spliterator(); } @Override public List<LogAppendEntry> entries() { return Collections.unmodifiableList(recordBatchEntries); } } ```
```javascript (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); else if(typeof define === 'function' && define.amd) define("iview", ["vue"], factory); else if(typeof exports === 'object') exports["iview"] = factory(require("vue")); else root["iview"] = factory(root["Vue"]); })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_15__) { return /******/ (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 = 248); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = normalizeComponent; /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { scriptExports = scriptExports || {} // ES6 modules interop var type = typeof scriptExports.default if (type === 'object' || type === 'function') { scriptExports = scriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = 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 = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // 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 var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } } /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.default = function (innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } }; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _defineProperty = __webpack_require__(258); var _defineProperty2 = _interopRequireDefault(_defineProperty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (obj, key, value) { if (key in obj) { (0, _defineProperty2.default)(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sharpMatcherRegx = exports.dimensionMap = exports.findComponentUpward = exports.deepCopy = exports.firstUpperCase = exports.MutationObserver = undefined; var _getIterator2 = __webpack_require__(44); var _getIterator3 = _interopRequireDefault(_getIterator2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); exports.oneOf = oneOf; exports.camelcaseToHyphen = camelcaseToHyphen; exports.getScrollBarSize = getScrollBarSize; exports.getStyle = getStyle; exports.warnProp = warnProp; exports.scrollTop = scrollTop; exports.findComponentDownward = findComponentDownward; exports.findComponentsDownward = findComponentsDownward; exports.findComponentsUpward = findComponentsUpward; exports.findBrothersComponents = findBrothersComponents; exports.hasClass = hasClass; exports.addClass = addClass; exports.removeClass = removeClass; exports.setMatchMedia = setMatchMedia; var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; function oneOf(value, validList) { for (var i = 0; i < validList.length; i++) { if (value === validList[i]) { return true; } } return false; } function camelcaseToHyphen(str) { return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); } var cached = void 0; function getScrollBarSize(fresh) { if (isServer) return 0; if (fresh || cached === undefined) { var inner = document.createElement('div'); inner.style.width = '100%'; inner.style.height = '200px'; var outer = document.createElement('div'); var outerStyle = outer.style; outerStyle.position = 'absolute'; outerStyle.top = 0; outerStyle.left = 0; outerStyle.pointerEvents = 'none'; outerStyle.visibility = 'hidden'; outerStyle.width = '200px'; outerStyle.height = '150px'; outerStyle.overflow = 'hidden'; outer.appendChild(inner); document.body.appendChild(outer); var widthContained = inner.offsetWidth; outer.style.overflow = 'scroll'; var widthScroll = inner.offsetWidth; if (widthContained === widthScroll) { widthScroll = outer.clientWidth; } document.body.removeChild(outer); cached = widthContained - widthScroll; } return cached; } var MutationObserver = exports.MutationObserver = isServer ? false : window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver || false; var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; var MOZ_HACK_REGEXP = /^moz([A-Z])/; function camelCase(name) { return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) { return offset ? letter.toUpperCase() : letter; }).replace(MOZ_HACK_REGEXP, 'Moz$1'); } function getStyle(element, styleName) { if (!element || !styleName) return null; styleName = camelCase(styleName); if (styleName === 'float') { styleName = 'cssFloat'; } try { var computed = document.defaultView.getComputedStyle(element, ''); return element.style[styleName] || computed ? computed[styleName] : null; } catch (e) { return element.style[styleName]; } } function firstUpperCase(str) { return str.toString()[0].toUpperCase() + str.toString().slice(1); } exports.firstUpperCase = firstUpperCase; function warnProp(component, prop, correctType, wrongType) { correctType = firstUpperCase(correctType); wrongType = firstUpperCase(wrongType); console.error('[iView warn]: Invalid prop: type check failed for prop ' + String(prop) + '. Expected ' + String(correctType) + ', got ' + String(wrongType) + '. (found in component: ' + String(component) + ')'); } function typeOf(obj) { var toString = Object.prototype.toString; var map = { '[object Boolean]': 'boolean', '[object Number]': 'number', '[object String]': 'string', '[object Function]': 'function', '[object Array]': 'array', '[object Date]': 'date', '[object RegExp]': 'regExp', '[object Undefined]': 'undefined', '[object Null]': 'null', '[object Object]': 'object' }; return map[toString.call(obj)]; } function deepCopy(data) { var t = typeOf(data); var o = void 0; if (t === 'array') { o = []; } else if (t === 'object') { o = {}; } else { return data; } if (t === 'array') { for (var i = 0; i < data.length; i++) { o.push(deepCopy(data[i])); } } else if (t === 'object') { for (var _i in data) { o[_i] = deepCopy(data[_i]); } } return o; } exports.deepCopy = deepCopy; function scrollTop(el) { var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var to = arguments[2]; var duration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 500; var endCallback = arguments[4]; if (!window.requestAnimationFrame) { window.requestAnimationFrame = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) { return window.setTimeout(callback, 1000 / 60); }; } var difference = Math.abs(from - to); var step = Math.ceil(difference / duration * 50); function scroll(start, end, step) { var _this = this; if (start === end) { endCallback && endCallback(); return; } var d = start + step > end ? end : start + step; if (start > end) { d = start - step < end ? end : start - step; } if (el === window) { window.scrollTo(d, d); } else { el.scrollTop = d; } window.requestAnimationFrame(function () { (0, _newArrowCheck3.default)(this, _this); return scroll(d, end, step); }.bind(this)); } scroll(from, to, step); } function findComponentUpward(context, componentName, componentNames) { if (typeof componentName === 'string') { componentNames = [componentName]; } else { componentNames = componentName; } var parent = context.$parent; var name = parent.$options.name; while (parent && (!name || componentNames.indexOf(name) < 0)) { parent = parent.$parent; if (parent) name = parent.$options.name; } return parent; } exports.findComponentUpward = findComponentUpward; function findComponentDownward(context, componentName) { var childrens = context.$children; var children = null; if (childrens.length) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0, _getIterator3.default)(childrens), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var child = _step.value; var name = child.$options.name; if (name === componentName) { children = child; break; } else { children = findComponentDownward(child, componentName); if (children) break; } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } return children; } function findComponentsDownward(context, componentName) { var _this2 = this; var ignoreComponentNames = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; if (!Array.isArray(ignoreComponentNames)) { ignoreComponentNames = [ignoreComponentNames]; } return context.$children.reduce(function (components, child) { (0, _newArrowCheck3.default)(this, _this2); if (child.$options.name === componentName) components.push(child); if (ignoreComponentNames.indexOf(child.$options.name) < 0) { var foundChilds = findComponentsDownward(child, componentName); return components.concat(foundChilds); } else { return components; } }.bind(this), []); } function findComponentsUpward(context, componentName) { var parents = []; var parent = context.$parent; if (parent) { if (parent.$options.name === componentName) parents.push(parent); return parents.concat(findComponentsUpward(parent, componentName)); } else { return []; } } function findBrothersComponents(context, componentName) { var _this3 = this; var exceptMe = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var res = context.$parent.$children.filter(function (item) { (0, _newArrowCheck3.default)(this, _this3); return item.$options.name === componentName; }.bind(this)); var index = res.findIndex(function (item) { (0, _newArrowCheck3.default)(this, _this3); return item._uid === context._uid; }.bind(this)); if (exceptMe) res.splice(index, 1); return res; } var trim = function trim(string) { return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); }; function hasClass(el, cls) { if (!el || !cls) return false; if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); if (el.classList) { return el.classList.contains(cls); } else { return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; } } function addClass(el, cls) { if (!el) return; var curClass = el.className; var classes = (cls || '').split(' '); for (var i = 0, j = classes.length; i < j; i++) { var clsName = classes[i]; if (!clsName) continue; if (el.classList) { el.classList.add(clsName); } else { if (!hasClass(el, clsName)) { curClass += ' ' + clsName; } } } if (!el.classList) { el.className = curClass; } } function removeClass(el, cls) { if (!el || !cls) return; var classes = cls.split(' '); var curClass = ' ' + el.className + ' '; for (var i = 0, j = classes.length; i < j; i++) { var clsName = classes[i]; if (!clsName) continue; if (el.classList) { el.classList.remove(clsName); } else { if (hasClass(el, clsName)) { curClass = curClass.replace(' ' + clsName + ' ', ' '); } } } if (!el.classList) { el.className = trim(curClass); } } var dimensionMap = exports.dimensionMap = { xs: '480px', sm: '576px', md: '768px', lg: '992px', xl: '1200px', xxl: '1600px' }; function setMatchMedia() { var _this4 = this; if (typeof window !== 'undefined') { var matchMediaPolyfill = function (mediaQuery) { (0, _newArrowCheck3.default)(this, _this4); return { media: mediaQuery, matches: false, on: function on() {}, off: function off() {} }; }.bind(this); window.matchMedia = window.matchMedia || matchMediaPolyfill; } } var sharpMatcherRegx = exports.sharpMatcherRegx = /#([^#]+)$/; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _broadcast(componentName, eventName, params) { var _this = this; this.$children.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this); var name = child.$options.name; if (name === componentName) { child.$emit.apply(child, [eventName].concat(params)); } else { _broadcast.apply(child, [componentName, eventName].concat([params])); } }.bind(this)); } exports.default = { methods: { dispatch: function dispatch(componentName, eventName, params) { var parent = this.$parent || this.$root; var name = parent.$options.name; while (parent && (!name || name !== componentName)) { parent = parent.$parent; if (parent) { name = parent.$options.name; } } if (parent) { parent.$emit.apply(parent, [eventName].concat(params)); } }, broadcast: function broadcast(componentName, eventName, params) { _broadcast.call(this, componentName, eventName, params); } } }; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _locale = __webpack_require__(108); exports.default = { methods: { t: function t() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _locale.t.apply(this, args); } } }; /***/ }), /* 6 */ /***/ (function(module, exports) { var core = module.exports = { version: '2.5.5' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || 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]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; exports.convertFieldsError = convertFieldsError; exports.format = format; exports.isEmptyValue = isEmptyValue; exports.isEmptyObject = isEmptyObject; exports.asyncMap = asyncMap; exports.complementError = complementError; exports.deepMerge = deepMerge; /* eslint no-console:0 */ var formatRegExp = /%[sdj%]/g; var warning = exports.warning = function warning() {}; // don't print warning message when in production env or node runtime if (false) { exports.warning = warning = function warning(type, errors) { if (typeof console !== 'undefined' && console.warn) { if (errors.every(function (e) { return typeof e === 'string'; })) { console.warn(type, errors); } } }; } function convertFieldsError(errors) { if (!errors || !errors.length) return null; var fields = {}; errors.forEach(function (error) { var field = error.field; fields[field] = fields[field] || []; fields[field].push(error); }); return fields; } function format() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var i = 1; var f = args[0]; var len = args.length; if (typeof f === 'function') { return f.apply(null, args.slice(1)); } if (typeof f === 'string') { var str = String(f).replace(formatRegExp, function (x) { if (x === '%%') { return '%'; } if (i >= len) { return x; } switch (x) { case '%s': return String(args[i++]); case '%d': return Number(args[i++]); case '%j': try { return JSON.stringify(args[i++]); } catch (_) { return '[Circular]'; } break; default: return x; } }); for (var arg = args[i]; i < len; arg = args[++i]) { str += ' ' + arg; } return str; } return f; } function isNativeStringType(type) { return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern'; } function isEmptyValue(value, type) { if (value === undefined || value === null) { return true; } if (type === 'array' && Array.isArray(value) && !value.length) { return true; } if (isNativeStringType(type) && typeof value === 'string' && !value) { return true; } return false; } function isEmptyObject(obj) { return Object.keys(obj).length === 0; } function asyncParallelArray(arr, func, callback) { var results = []; var total = 0; var arrLength = arr.length; function count(errors) { results.push.apply(results, errors); total++; if (total === arrLength) { callback(results); } } arr.forEach(function (a) { func(a, count); }); } function asyncSerialArray(arr, func, callback) { var index = 0; var arrLength = arr.length; function next(errors) { if (errors && errors.length) { callback(errors); return; } var original = index; index = index + 1; if (original < arrLength) { func(arr[original], next); } else { callback([]); } } next([]); } function flattenObjArr(objArr) { var ret = []; Object.keys(objArr).forEach(function (k) { ret.push.apply(ret, objArr[k]); }); return ret; } function asyncMap(objArr, option, func, callback) { if (option.first) { var flattenArr = flattenObjArr(objArr); return asyncSerialArray(flattenArr, func, callback); } var firstFields = option.firstFields || []; if (firstFields === true) { firstFields = Object.keys(objArr); } var objArrKeys = Object.keys(objArr); var objArrLength = objArrKeys.length; var total = 0; var results = []; var pending = new Promise(function (resolve, reject) { var next = function next(errors) { results.push.apply(results, errors); total++; if (total === objArrLength) { callback(results); return results.length ? reject({ errors: results, fields: convertFieldsError(results) }) : resolve(); } }; objArrKeys.forEach(function (key) { var arr = objArr[key]; if (firstFields.indexOf(key) !== -1) { asyncSerialArray(arr, func, next); } else { asyncParallelArray(arr, func, next); } }); }); pending['catch'](function (e) { return e; }); return pending; } function complementError(rule) { return function (oe) { if (oe && oe.message) { oe.field = oe.field || rule.fullField; return oe; } return { message: typeof oe === 'function' ? oe() : oe, field: oe.field || rule.fullField }; }; } function deepMerge(target, source) { if (source) { for (var s in source) { if (source.hasOwnProperty(s)) { var value = source[s]; if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(target[s]) === 'object') { target[s] = _extends({}, target[s], value); } else { target[s] = value; } } } } return target; } /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_icon_vue__ = __webpack_require__(91); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_icon_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_icon_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_icon_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_icon_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_icon_vue__ = __webpack_require__(264); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_icon_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_icon_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_icon_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_icon_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_icon_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 9 */ /***/ (function(module, exports) { // path_to_url#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 /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(9); var core = __webpack_require__(6); var ctx = __webpack_require__(42); var hide = __webpack_require__(27); var has = __webpack_require__(26); 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); } } }; // 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; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { var store = __webpack_require__(63)('wks'); var uid = __webpack_require__(48); var Symbol = __webpack_require__(9).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _required = __webpack_require__(181); var _required2 = _interopRequireDefault(_required); var _whitespace = __webpack_require__(444); var _whitespace2 = _interopRequireDefault(_whitespace); var _type = __webpack_require__(445); var _type2 = _interopRequireDefault(_type); var _range = __webpack_require__(446); var _range2 = _interopRequireDefault(_range); var _enum = __webpack_require__(447); var _enum2 = _interopRequireDefault(_enum); var _pattern = __webpack_require__(448); var _pattern2 = _interopRequireDefault(_pattern); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { required: _required2['default'], whitespace: _whitespace2['default'], type: _type2['default'], range: _range2['default'], 'enum': _enum2['default'], pattern: _pattern2['default'] }; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.off = exports.on = undefined; var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; var on = exports.on = function () { if (!isServer && document.addEventListener) { return function (element, event, handler) { var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; if (element && event && handler) { element.addEventListener(event, handler, useCapture); } }; } else { return function (element, event, handler) { if (element && event && handler) { element.attachEvent('on' + event, handler); } }; } }(); var off = exports.off = function () { if (!isServer && document.removeEventListener) { return function (element, event, handler) { var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; if (element && event) { element.removeEventListener(event, handler, useCapture); } }; } else { return function (element, event, handler) { if (element && event) { element.detachEvent('on' + event, handler); } }; } }(); /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(253), __esModule: true }; /***/ }), /* 15 */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_15__; /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _from = __webpack_require__(101); var _from2 = _interopRequireDefault(_from); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return (0, _from2.default)(arr); } }; /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TYPE_VALUE_RESOLVER_MAP = exports.DEFAULT_FORMATS = exports.formatDateLabels = exports.initTimeDate = exports.nextMonth = exports.prevMonth = exports.siblingMonth = exports.getFirstDayOfMonth = exports.getDayCountOfMonth = exports.parseDate = exports.formatDate = exports.isInRange = exports.clearHours = exports.toDate = undefined; var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _date2 = __webpack_require__(394); var _date3 = _interopRequireDefault(_date2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var toDate = exports.toDate = function toDate(date) { var _date = new Date(date); if (isNaN(_date.getTime()) && typeof date === 'string') { _date = date.split('-').map(Number); _date[1] += 1; _date = new (Function.prototype.bind.apply(Date, [null].concat((0, _toConsumableArray3.default)(_date))))(); } if (isNaN(_date.getTime())) return null; return _date; }; var clearHours = exports.clearHours = function clearHours(time) { var cloneDate = new Date(time); cloneDate.setHours(0, 0, 0, 0); return cloneDate.getTime(); }; var isInRange = exports.isInRange = function (time, a, b) { (0, _newArrowCheck3.default)(undefined, undefined); if (!a || !b) return false; var _sort = [a, b].sort(), _sort2 = (0, _slicedToArray3.default)(_sort, 2), start = _sort2[0], end = _sort2[1]; return time >= start && time <= end; }.bind(undefined); var formatDate = exports.formatDate = function formatDate(date, format) { date = toDate(date); if (!date) return ''; return _date3.default.format(date, format || 'yyyy-MM-dd'); }; var parseDate = exports.parseDate = function parseDate(string, format) { return _date3.default.parse(string, format || 'yyyy-MM-dd'); }; var getDayCountOfMonth = exports.getDayCountOfMonth = function getDayCountOfMonth(year, month) { return new Date(year, month + 1, 0).getDate(); }; var getFirstDayOfMonth = exports.getFirstDayOfMonth = function getFirstDayOfMonth(date) { var temp = new Date(date.getTime()); temp.setDate(1); return temp.getDay(); }; var siblingMonth = exports.siblingMonth = function siblingMonth(src, diff) { var temp = new Date(src); var newMonth = temp.getMonth() + diff; var newMonthDayCount = getDayCountOfMonth(temp.getFullYear(), newMonth); if (newMonthDayCount < temp.getDate()) { temp.setDate(newMonthDayCount); } temp.setMonth(newMonth); return temp; }; var prevMonth = exports.prevMonth = function prevMonth(src) { return siblingMonth(src, -1); }; var nextMonth = exports.nextMonth = function nextMonth(src) { return siblingMonth(src, 1); }; var initTimeDate = exports.initTimeDate = function initTimeDate() { var date = new Date(); date.setHours(0); date.setMinutes(0); date.setSeconds(0); return date; }; var formatDateLabels = exports.formatDateLabels = function () { var _this = this; var formats = { yyyy: function yyyy(date) { (0, _newArrowCheck3.default)(this, _this); return date.getFullYear(); }.bind(this), m: function m(date) { (0, _newArrowCheck3.default)(this, _this); return date.getMonth() + 1; }.bind(this), mm: function mm(date) { (0, _newArrowCheck3.default)(this, _this); return ('0' + (date.getMonth() + 1)).slice(-2); }.bind(this), mmm: function mmm(date, locale) { (0, _newArrowCheck3.default)(this, _this); var monthName = date.toLocaleDateString(locale, { month: 'long' }); return monthName.slice(0, 3); }.bind(this), Mmm: function Mmm(date, locale) { (0, _newArrowCheck3.default)(this, _this); var monthName = date.toLocaleDateString(locale, { month: 'long' }); return (monthName[0].toUpperCase() + monthName.slice(1).toLowerCase()).slice(0, 3); }.bind(this), mmmm: function mmmm(date, locale) { (0, _newArrowCheck3.default)(this, _this); return date.toLocaleDateString(locale, { month: 'long' }); }.bind(this), Mmmm: function Mmmm(date, locale) { (0, _newArrowCheck3.default)(this, _this); var monthName = date.toLocaleDateString(locale, { month: 'long' }); return monthName[0].toUpperCase() + monthName.slice(1).toLowerCase(); }.bind(this) }; var formatRegex = new RegExp(['yyyy', 'Mmmm', 'mmmm', 'Mmm', 'mmm', 'mm', 'm'].join('|'), 'g'); return function (locale, format, date) { var _this2 = this; var componetsRegex = /(\[[^\]]+\])([^\[\]]+)(\[[^\]]+\])/; var components = format.match(componetsRegex).slice(1); var separator = components[1]; var labels = [components[0], components[2]].map(function (component) { (0, _newArrowCheck3.default)(this, _this2); var label = component.replace(/\[[^\]]+\]/, function (str) { (0, _newArrowCheck3.default)(this, _this2); return str.slice(1, -1).replace(formatRegex, function (match) { (0, _newArrowCheck3.default)(this, _this2); return formats[match](date, locale); }.bind(this)); }.bind(this)); return { label: label, type: component.indexOf('yy') != -1 ? 'year' : 'month' }; }.bind(this)); return { separator: separator, labels: labels }; }; }(); var DEFAULT_FORMATS = exports.DEFAULT_FORMATS = { date: 'yyyy-MM-dd', month: 'yyyy-MM', year: 'yyyy', datetime: 'yyyy-MM-dd HH:mm:ss', time: 'HH:mm:ss', timerange: 'HH:mm:ss', daterange: 'yyyy-MM-dd', datetimerange: 'yyyy-MM-dd HH:mm:ss' }; var DATE_FORMATTER = function DATE_FORMATTER(value, format) { return formatDate(value, format); }; var DATE_PARSER = function DATE_PARSER(text, format) { return parseDate(text, format); }; var RANGE_FORMATTER = function RANGE_FORMATTER(value, format, RANGE_SEPARATOR) { if (Array.isArray(value) && value.length === 2) { var start = value[0]; var end = value[1]; if (start && end) { return formatDate(start, format) + RANGE_SEPARATOR + formatDate(end, format); } } else if (!Array.isArray(value) && value instanceof Date) { return formatDate(value, format); } return ''; }; var RANGE_PARSER = function RANGE_PARSER(text, format, RANGE_SEPARATOR) { var array = Array.isArray(text) ? text : text.split(RANGE_SEPARATOR); if (array.length === 2) { var range1 = array[0]; var range2 = array[1]; return [range1 instanceof Date ? range1 : parseDate(range1, format), range2 instanceof Date ? range2 : parseDate(range2, format)]; } return []; }; var TYPE_VALUE_RESOLVER_MAP = exports.TYPE_VALUE_RESOLVER_MAP = { default: { formatter: function formatter(value) { if (!value) return ''; return '' + value; }, parser: function parser(text) { if (text === undefined || text === '') return null; return text; } }, date: { formatter: DATE_FORMATTER, parser: DATE_PARSER }, datetime: { formatter: DATE_FORMATTER, parser: DATE_PARSER }, daterange: { formatter: RANGE_FORMATTER, parser: RANGE_PARSER }, datetimerange: { formatter: RANGE_FORMATTER, parser: RANGE_PARSER }, timerange: { formatter: RANGE_FORMATTER, parser: RANGE_PARSER }, time: { formatter: DATE_FORMATTER, parser: DATE_PARSER }, month: { formatter: DATE_FORMATTER, parser: DATE_PARSER }, year: { formatter: DATE_FORMATTER, parser: DATE_PARSER }, multiple: { formatter: function formatter(value, format) { (0, _newArrowCheck3.default)(undefined, undefined); return value.filter(Boolean).map(function (date) { (0, _newArrowCheck3.default)(undefined, undefined); return formatDate(date, format); }.bind(undefined)).join(','); }.bind(undefined), parser: function parser(value, format) { (0, _newArrowCheck3.default)(undefined, undefined); var values = typeof value === 'string' ? value.split(',') : value; return values.map(function (value) { (0, _newArrowCheck3.default)(undefined, undefined); if (value instanceof Date) return value; if (typeof value === 'string') value = value.trim();else if (typeof value !== 'number' && !value) value = ''; return parseDate(value, format); }.bind(undefined)); }.bind(undefined) }, number: { formatter: function formatter(value) { if (!value) return ''; return '' + value; }, parser: function parser(text) { var result = Number(text); if (!isNaN(text)) { return result; } else { return null; } } } }; /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(19); var IE8_DOM_DEFINE = __webpack_require__(88); var toPrimitive = __webpack_require__(66); var dP = Object.defineProperty; exports.f = __webpack_require__(23) ? 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; }; /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(28); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _icon2.default; /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getTarget(node) { if (node === void 0) { node = document.body; } if (node === true) { return document.body; } return node instanceof window.Node ? node : document.querySelector(node); } var directive = { inserted: function inserted(el, _ref, vnode) { var value = _ref.value; if (el.dataset && el.dataset.transfer !== 'true') return false; el.className = el.className ? el.className + ' v-transfer-dom' : 'v-transfer-dom'; var parentNode = el.parentNode; if (!parentNode) return; var home = document.createComment(''); var hasMovedOut = false; if (value !== false) { parentNode.replaceChild(home, el); getTarget(value).appendChild(el); hasMovedOut = true; } if (!el.__transferDomData) { el.__transferDomData = { parentNode: parentNode, home: home, target: getTarget(value), hasMovedOut: hasMovedOut }; } }, componentUpdated: function componentUpdated(el, _ref2) { var value = _ref2.value; if (el.dataset && el.dataset.transfer !== 'true') return false; var ref$1 = el.__transferDomData; if (!ref$1) return; var parentNode = ref$1.parentNode; var home = ref$1.home; var hasMovedOut = ref$1.hasMovedOut; if (!hasMovedOut && value) { parentNode.replaceChild(home, el); getTarget(value).appendChild(el); el.__transferDomData = (0, _assign2.default)({}, el.__transferDomData, { hasMovedOut: true, target: getTarget(value) }); } else if (hasMovedOut && value === false) { parentNode.replaceChild(el, home); el.__transferDomData = (0, _assign2.default)({}, el.__transferDomData, { hasMovedOut: false, target: getTarget(value) }); } else if (value) { getTarget(value).appendChild(el); } }, unbind: function unbind(el) { if (el.dataset && el.dataset.transfer !== 'true') return false; el.className = el.className.replace('v-transfer-dom', ''); var ref$1 = el.__transferDomData; if (!ref$1) return; if (el.__transferDomData.hasMovedOut === true) { el.__transferDomData.parentNode && el.__transferDomData.parentNode.appendChild(el); } el.__transferDomData = null; } }; exports.default = directive; /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(249), __esModule: true }; /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty module.exports = !__webpack_require__(30)(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _isIterable2 = __webpack_require__(282); var _isIterable3 = _interopRequireDefault(_isIterable2); var _getIterator2 = __webpack_require__(44); var _getIterator3 = _interopRequireDefault(_getIterator2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if ((0, _isIterable3.default)(Object(arr))) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); /***/ }), /* 25 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_button_vue__ = __webpack_require__(121); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_button_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_button_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_button_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_button_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_vue__ = __webpack_require__(343); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_button_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 26 */ /***/ (function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(18); var createDesc = __webpack_require__(43); module.exports = __webpack_require__(23) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; return object; }; /***/ }), /* 28 */ /***/ (function(module, exports) { module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = __webpack_require__(86); var defined = __webpack_require__(59); module.exports = function (it) { return IObject(defined(it)); }; /***/ }), /* 30 */ /***/ (function(module, exports) { module.exports = function (exec) { try { return !!exec(); } catch (e) { return true; } }; /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _assign = __webpack_require__(14); 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]; } } } return target; }; /***/ }), /* 32 */ /***/ (function(module, exports) { module.exports = {}; /***/ }), /* 33 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__ = __webpack_require__(105); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__ = __webpack_require__(291); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var transferIndex = 0; function transferIncrease() { exports.transferIndex = transferIndex += 1; } exports.transferIndex = transferIndex; exports.transferIncrease = transferIncrease; /***/ }), /* 35 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "directive", function() { return directive; }); /* harmony export (immutable) */ __webpack_exports__["install"] = install; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__package_json__ = __webpack_require__(292); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__package_json___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__package_json__); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * @typedef {import("../types/index.d.ts")} VClickOutsidePlugin */ var CLICK = 'click'; var captureInstances = Object.create(null); var nonCaptureInstances = Object.create(null); var captureEventHandlers = Object.create(null); var nonCaptureEventHandlers = Object.create(null); var instancesList = [captureInstances, nonCaptureInstances]; /** * The common event handler for bot capture and non-capture events. * * @param {!object} context - The event context. * @param {!object} instances - The capture or non-capture registered instances. * @param {Event} event - The event object. * @param {string} arg - The event type. * @returns {undefined} Default. */ var commonHandler = function onCommonEvent(context, instances, event, arg) { var target = event.target; var itemIteratee = function itemIteratee(item) { var el = item.el; if (el !== target && !el.contains(target)) { var binding = item.binding; if (binding.modifiers.stop) { event.stopPropagation(); } if (binding.modifiers.prevent) { event.preventDefault(); } binding.value.call(context, event); } }; instances[arg].forEach(itemIteratee); }; /** * Get the correct event handler: Capture or non-capture. * * @param {boolean} useCapture - Indicate which handler to use; 'true' to use * capture handler or 'false' for non-capture. * @param {string} arg - The event type. * @returns {Function} - The event handler. */ var getEventHandler = function getEventHandler(useCapture, arg) { if (useCapture) { if (captureEventHandlers[arg]) { return captureEventHandlers[arg]; } /** * Event handler for capture events. * * @param {Event} event - The event object. */ captureEventHandlers[arg] = function onCaptureEvent(event) { commonHandler(this, captureInstances, event, arg); }; return captureEventHandlers[arg]; } if (nonCaptureEventHandlers[arg]) { return nonCaptureEventHandlers[arg]; } /** * Event handler for non-capture events. * * @param {Event} event - The event object. */ nonCaptureEventHandlers[arg] = function onNonCaptureEvent(event) { commonHandler(this, nonCaptureInstances, event, arg); }; return nonCaptureEventHandlers[arg]; }; /** * The directive definition. * {@link path_to_url|Custom directive}. * * @type {VClickOutsidePlugin.directive} * @property {!object} $captureInstances - Registered capture instances. * @property {!object} $nonCaptureInstances - Registered non-capture instances. * @property {Function} $_onCaptureEvent - Event handler for capture events. * @property {Function} $_onNonCaptureEvent - Event handler for non-capture events. * @property {Function} bind - Called only once, when the directive is first * bound to the element. * @property {Function} unbind - Called only once, when the directive is unbound * from the element. * @property {string} version - The version number of this release. */ var directive = Object.defineProperties({}, { $captureInstances: { value: captureInstances }, $nonCaptureInstances: { value: nonCaptureInstances }, $captureEventHandlers: { value: captureEventHandlers }, $nonCaptureEventHandlers: { value: nonCaptureEventHandlers }, bind: { value: function bind(el, binding) { if (typeof binding.value !== 'function') { throw new TypeError('Binding value must be a function.'); } var arg = binding.arg || CLICK; var normalisedBinding = _objectSpread({}, binding, {}, { arg: arg, modifiers: _objectSpread({}, { capture: false, prevent: false, stop: false }, {}, binding.modifiers) }); var useCapture = normalisedBinding.modifiers.capture; var instances = useCapture ? captureInstances : nonCaptureInstances; if (!Array.isArray(instances[arg])) { instances[arg] = []; } if (instances[arg].push({ el: el, binding: normalisedBinding }) === 1) { /* istanbul ignore next */ if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document) { document.addEventListener(arg, getEventHandler(useCapture, arg), useCapture); } } } }, unbind: { value: function unbind(el) { var compareElements = function compareElements(item) { return item.el !== el; }; var instancesIteratee = function instancesIteratee(instances) { var instanceKeys = Object.keys(instances); if (instanceKeys.length) { var useCapture = instances === captureInstances; var keysIteratee = function keysIteratee(eventName) { var newInstance = instances[eventName].filter(compareElements); if (newInstance.length) { instances[eventName] = newInstance; } else { /* istanbul ignore next */ if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document) { document.removeEventListener(eventName, getEventHandler(useCapture, eventName), useCapture); } delete instances[eventName]; } }; instanceKeys.forEach(keysIteratee); } }; instancesList.forEach(instancesIteratee); } }, /* Note: This needs to be manually updated to match package.json. */ version: { enumerable: true, value: __WEBPACK_IMPORTED_MODULE_0__package_json__["version"] } }); /** * A Vue.js plugin should expose an install method. The method will be called * with the Vue constructor as the first argument, along with possible options. * {@link path_to_url#Writing-a-Plugin|Writing a plugin}. * * @type {VClickOutsidePlugin.install} * @param {import("vue")} Vue - The Vue constructor. */ function install(Vue) { Vue.directive('click-outside', directive); } //# sourceMappingURL=v-click-outside-x.esm.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _iterator = __webpack_require__(300); var _iterator2 = _interopRequireDefault(_iterator); var _symbol = __webpack_require__(302); var _symbol2 = _interopRequireDefault(_symbol); var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { return typeof obj === "undefined" ? "undefined" : _typeof(obj); } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); }; /***/ }), /* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(114); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_input_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_input_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_input_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_input_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_vue__ = __webpack_require__(327); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_input_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _isFinite = __webpack_require__(71); var _isFinite2 = _interopRequireDefault(_isFinite); exports.changeColor = changeColor; exports.clamp = clamp; exports.getIncrement = getIncrement; exports.getTouches = getTouches; exports.toRGBAString = toRGBAString; exports.isValidHex = isValidHex; exports.simpleCheckForValidColor = simpleCheckForValidColor; var _tinycolor = __webpack_require__(139); var _tinycolor2 = _interopRequireDefault(_tinycolor); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function setAlpha(data, alpha) { var color = (0, _tinycolor2.default)(data); var _a = color._a; if (_a === undefined || _a === null) { color.setAlpha(alpha || 1); } return color; } function getColor(data, colorData) { var alpha = colorData && colorData.a; if (colorData) { if (colorData.hsl) { return setAlpha(colorData.hsl, alpha); } if (colorData.hex && colorData.hex.length > 0) { return setAlpha(colorData.hex, alpha); } } return setAlpha(colorData, alpha); } function changeColor(data, oldHue) { var colorData = data === '' ? '#2d8cf0' : data; var color = getColor(data, colorData); var hsl = color.toHsl(); var hsv = color.toHsv(); if (hsl.s === 0) { hsl.h = colorData.h || colorData.hsl && colorData.hsl.h || oldHue || 0; hsv.h = hsl.h; } if (hsv.v < 0.0164) { hsv.h = colorData.h || colorData.hsv && colorData.hsv.h || 0; hsv.s = colorData.s || colorData.hsv && colorData.hsv.s || 0; } if (hsl.l < 0.01) { hsl.h = colorData.h || colorData.hsl && colorData.hsl.h || 0; hsl.s = colorData.s || colorData.hsl && colorData.hsl.s || 0; } return { hsl: hsl, hex: color.toHexString().toUpperCase(), rgba: color.toRgb(), hsv: hsv, oldHue: colorData.h || oldHue || hsl.h, source: colorData.source, a: colorData.a || color.getAlpha() }; } function clamp(value, min, max) { if (value < min) { return min; } if (value > max) { return max; } return value; } function getIncrement(key, keys, increment) { return (0, _assist.oneOf)(key, keys) ? increment : 0; } function getTouches(e, prop) { return e.touches ? e.touches[0][prop] : 0; } function toRGBAString(rgba) { var r = rgba.r, g = rgba.g, b = rgba.b, a = rgba.a; return 'rgba(' + String([r, g, b, a].join(',')) + ')'; } function isValidHex(hex) { return (0, _tinycolor2.default)(hex).isValid(); } function checkIteratee(data, counts, letter) { var checked = counts.checked, passed = counts.passed; var value = data[letter]; if (value) { checked += 1; if ((0, _isFinite2.default)(value)) { passed += 1; } } return { checked: checked, passed: passed }; } var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v']; function simpleCheckForValidColor(data) { var results = keysToCheck.reduce(checkIteratee.bind(null, data), { checked: 0, passed: 0 }); return results.checked === results.passed ? data : undefined; } /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) var defined = __webpack_require__(59); module.exports = function (it) { return Object(defined(it)); }; /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = __webpack_require__(85); var enumBugKeys = __webpack_require__(64); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; /***/ }), /* 41 */ /***/ (function(module, exports) { var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding var aFunction = __webpack_require__(49); 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); }; }; /***/ }), /* 43 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(265), __esModule: true }; /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $at = __webpack_require__(271)(true); // 21.1.3.27 String.prototype[@@iterator]() __webpack_require__(92)(String, 'String', function (iterated) { this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() }, function () { var O = this._t; var index = this._i; var point; if (index >= O.length) return { value: undefined, done: true }; point = $at(O, index); this._i += point.length; return { value: point, done: false }; }); /***/ }), /* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue__ = __webpack_require__(132); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_vue__ = __webpack_require__(369); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_checkbox_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { data: function data() { return { prefixCls: 'ivu-color-picker', inputPrefixCls: 'ivu-input', iconPrefixCls: 'ivu-icon', transferPrefixCls: 'ivu-transfer' }; } }; /***/ }), /* 48 */ /***/ (function(module, exports) { var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), /* 49 */ /***/ (function(module, exports) { module.exports = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; /***/ }), /* 50 */ /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(266); var global = __webpack_require__(9); var hide = __webpack_require__(27); var Iterators = __webpack_require__(32); var TO_STRING_TAG = __webpack_require__(11)('toStringTag'); var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 'TextTrackList,TouchList').split(','); for (var i = 0; i < DOMIterables.length; i++) { var NAME = DOMIterables[i]; var Collection = global[NAME]; var proto = Collection && Collection.prototype; if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = Iterators.Array; } /***/ }), /* 52 */ /***/ (function(module, exports) { module.exports = true; /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { var def = __webpack_require__(18).f; var has = __webpack_require__(26); var TAG = __webpack_require__(11)('toStringTag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(287), __esModule: true }; /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { props: { to: { type: [Object, String] }, replace: { type: Boolean, default: false }, target: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['_blank', '_self', '_parent', '_top']); }, default: '_self' }, append: { type: Boolean, required: false, default: false } }, computed: { linkUrl: function linkUrl() { var type = (0, _typeof3.default)(this.to); if (type !== 'string') { return null; } if (this.to.includes('//')) { return this.to; } var router = this.$router; if (router) { var current = this.$route; var route = router.resolve(this.to, current, this.append); return route ? route.href : this.to; } return this.to; } }, methods: { handleClick: function handleClick() { var new_window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var router = this.$router; if (new_window) { var to = this.to; if (router) { var current = this.$route; var route = router.resolve(this.to, current, this.append); to = route ? route.href : this.to; } window.open(to); } else { if (router) { this.replace ? this.$router.replace(this.to) : this.$router.push(this.to); } else { window.location.href = this.to; } } }, handleCheckClick: function handleCheckClick(event) { var new_window = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (this.to) { if (this.target === '_blank') { return false; } else { event.preventDefault(); this.handleClick(new_window); } } } } }; /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { props: { disabledHours: { type: Array, default: function _default() { return []; } }, disabledMinutes: { type: Array, default: function _default() { return []; } }, disabledSeconds: { type: Array, default: function _default() { return []; } }, hideDisabledOptions: { type: Boolean, default: false } } }; /***/ }), /* 57 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue__ = __webpack_require__(160); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_confirm_vue__ = __webpack_require__(405); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_confirm_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_confirm_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_confirm_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_confirm_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_confirm_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker-panel'; var datePrefixCls = 'ivu-date-picker'; exports.default = { props: { confirm: { type: Boolean, default: false } }, methods: { iconBtnCls: function iconBtnCls(direction) { var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; return [prefixCls + '-icon-btn', datePrefixCls + '-' + String(direction) + '-btn', datePrefixCls + '-' + String(direction) + '-btn-arrow' + String(type)]; }, handleShortcutClick: function handleShortcutClick(shortcut) { if (shortcut.value) this.$emit('on-pick', shortcut.value()); if (shortcut.onClick) shortcut.onClick(this); }, handlePickClear: function handlePickClear() { this.resetView(); this.$emit('on-pick-clear'); }, handlePickSuccess: function handlePickSuccess() { this.resetView(); this.$emit('on-pick-success'); }, handlePickClick: function handlePickClick() { this.$emit('on-pick-click'); }, resetView: function resetView() { var _this = this; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); return this.currentView = this.selectionMode; }.bind(this), 500); }, handleClear: function handleClear() { var _this2 = this; this.dates = this.dates.map(function () { (0, _newArrowCheck3.default)(this, _this2); return null; }.bind(this)); this.rangeState = {}; this.$emit('on-pick', this.dates); this.handleConfirm(); }, handleConfirm: function handleConfirm(visible, type) { this.$emit('on-pick', this.dates, visible, type || this.type); }, onToggleVisibility: function onToggleVisibility(open) { var _$refs = this.$refs, timeSpinner = _$refs.timeSpinner, timeSpinnerEnd = _$refs.timeSpinnerEnd; if (open && timeSpinner) timeSpinner.updateScroll(); if (open && timeSpinnerEnd) timeSpinnerEnd.updateScroll(); } } }; /***/ }), /* 59 */ /***/ (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; }; /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength var toInteger = __webpack_require__(61); var min = Math.min; module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; /***/ }), /* 61 */ /***/ (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); }; /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { var shared = __webpack_require__(63)('keys'); var uid = __webpack_require__(48); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(9); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); module.exports = function (key) { return store[key] || (store[key] = {}); }; /***/ }), /* 64 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys module.exports = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(28); var document = __webpack_require__(9).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) : {}; }; /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = __webpack_require__(28); // 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"); }; /***/ }), /* 67 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__(69); var ITERATOR = __webpack_require__(11)('iterator'); var Iterators = __webpack_require__(32); module.exports = __webpack_require__(6).getIteratorMethod = function (it) { if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __webpack_require__(41); var TAG = __webpack_require__(11)('toStringTag'); // ES3 wrong here var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (e) { /* empty */ } }; module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T // builtinTag case : ARG ? cof(O) // ES3 arguments fallback : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; /***/ }), /* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_select_vue__ = __webpack_require__(100); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_select_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_select_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_select_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_select_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_vue__ = __webpack_require__(315); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_select_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(285), __esModule: true }; /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { exports.f = __webpack_require__(11); /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(9); var core = __webpack_require__(6); var LIBRARY = __webpack_require__(52); var wksExt = __webpack_require__(72); var defineProperty = __webpack_require__(18).f; module.exports = function (name) { var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; /***/ }), /* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_option_vue__ = __webpack_require__(113); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_option_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_option_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_option_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_option_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_vue__ = __webpack_require__(316); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_option_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assist = __webpack_require__(3); var Transition = { beforeEnter: function beforeEnter(el) { (0, _assist.addClass)(el, 'collapse-transition'); if (!el.dataset) el.dataset = {}; el.dataset.oldPaddingTop = el.style.paddingTop; el.dataset.oldPaddingBottom = el.style.paddingBottom; el.style.height = '0'; el.style.paddingTop = 0; el.style.paddingBottom = 0; }, enter: function enter(el) { el.dataset.oldOverflow = el.style.overflow; if (el.scrollHeight !== 0) { el.style.height = el.scrollHeight + 'px'; el.style.paddingTop = el.dataset.oldPaddingTop; el.style.paddingBottom = el.dataset.oldPaddingBottom; } else { el.style.height = ''; el.style.paddingTop = el.dataset.oldPaddingTop; el.style.paddingBottom = el.dataset.oldPaddingBottom; } el.style.overflow = 'hidden'; }, afterEnter: function afterEnter(el) { (0, _assist.removeClass)(el, 'collapse-transition'); el.style.height = ''; el.style.overflow = el.dataset.oldOverflow; }, beforeLeave: function beforeLeave(el) { if (!el.dataset) el.dataset = {}; el.dataset.oldPaddingTop = el.style.paddingTop; el.dataset.oldPaddingBottom = el.style.paddingBottom; el.dataset.oldOverflow = el.style.overflow; el.style.height = el.scrollHeight + 'px'; el.style.overflow = 'hidden'; }, leave: function leave(el) { if (el.scrollHeight !== 0) { (0, _assist.addClass)(el, 'collapse-transition'); el.style.height = 0; el.style.paddingTop = 0; el.style.paddingBottom = 0; } }, afterLeave: function afterLeave(el) { (0, _assist.removeClass)(el, 'collapse-transition'); el.style.height = ''; el.style.overflow = el.dataset.oldOverflow; el.style.paddingTop = el.dataset.oldPaddingTop; el.style.paddingBottom = el.dataset.oldPaddingBottom; } }; exports.default = { name: 'CollapseTransition', functional: true, props: { appear: Boolean }, render: function render(h, _ref) { var children = _ref.children, props = _ref.props; var data = { on: Transition, props: { appear: props.appear } }; return h('transition', data, children); } }; /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _handleEscapeMixin = __webpack_require__(141); var _handleEscapeMixin2 = _interopRequireDefault(_handleEscapeMixin); var _utils = __webpack_require__(38); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { mixins: [_emitter2.default, _handleEscapeMixin2.default], props: { focused: { type: Boolean, default: false }, value: { type: Object, default: undefined } }, beforeDestroy: function beforeDestroy() { this.unbindEventListeners(); }, created: function created() { var _this = this; if (this.focused) { setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); return this.$el.focus(); }.bind(this), 1); } }, methods: { handleLeft: function handleLeft(e) { this.handleSlide(e, this.left, 'left'); }, handleRight: function handleRight(e) { this.handleSlide(e, this.right, 'right'); }, handleUp: function handleUp(e) { this.handleSlide(e, this.up, 'up'); }, handleDown: function handleDown(e) { this.handleSlide(e, this.down, 'down'); }, handleMouseDown: function handleMouseDown(e) { this.dispatch('ColorPicker', 'on-dragging', true); this.handleChange(e, true); (0, _dom.on)(window, 'mousemove', this.handleChange); (0, _dom.on)(window, 'mouseup', this.handleMouseUp); }, handleMouseUp: function handleMouseUp() { this.unbindEventListeners(); }, unbindEventListeners: function unbindEventListeners() { var _this2 = this; (0, _dom.off)(window, 'mousemove', this.handleChange); (0, _dom.off)(window, 'mouseup', this.handleMouseUp); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); return this.dispatch('ColorPicker', 'on-dragging', false); }.bind(this), 1); }, getLeft: function getLeft(e) { var container = this.$refs.container; var xOffset = container.getBoundingClientRect().left + window.pageXOffset; var pageX = e.pageX || (0, _utils.getTouches)(e, 'PageX'); return pageX - xOffset; }, getTop: function getTop(e) { var container = this.$refs.container; var yOffset = container.getBoundingClientRect().top + window.pageYOffset; var pageY = e.pageY || (0, _utils.getTouches)(e, 'PageY'); return pageY - yOffset; } } }; /***/ }), /* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _util = __webpack_require__(17); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'PanelTable', props: { tableDate: { type: Date, required: true }, disabledDate: { type: Function }, selectionMode: { type: String, required: true }, value: { type: Array, required: true }, rangeState: { type: Object, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return { from: null, to: null, selecting: false }; }.bind(undefined) }, focusedDate: { type: Date, required: true } }, computed: { dates: function dates() { var selectionMode = this.selectionMode, value = this.value, rangeState = this.rangeState; var rangeSelecting = selectionMode === 'range' && rangeState.selecting; return rangeSelecting ? [rangeState.from] : value; } }, methods: { handleClick: function handleClick(cell) { if (cell.disabled || cell.type === 'weekLabel') return; var newDate = new Date((0, _util.clearHours)(cell.date)); this.$emit('on-pick', newDate); this.$emit('on-pick-click'); }, handleMouseMove: function handleMouseMove(cell) { if (!this.rangeState.selecting) return; if (cell.disabled) return; var newDate = cell.date; this.$emit('on-change-range', newDate); } } }; /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = 'ivu-date-picker-cells'; /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _from = __webpack_require__(101); var _from2 = _interopRequireDefault(_from); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { methods: { checkScrollBar: function checkScrollBar() { var fullWindowWidth = window.innerWidth; if (!fullWindowWidth) { var documentElementRect = document.documentElement.getBoundingClientRect(); fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left); } this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth; if (this.bodyIsOverflowing) { this.scrollBarWidth = (0, _assist.getScrollBarSize)(); } }, checkMaskInVisible: function checkMaskInVisible() { var _this = this; var masks = document.getElementsByClassName('ivu-modal-mask') || []; return (0, _from2.default)(masks).every(function (m) { (0, _newArrowCheck3.default)(this, _this); return m.style.display === 'none' || m.classList.contains('fade-leave-to'); }.bind(this)); }, setScrollBar: function setScrollBar() { if (this.bodyIsOverflowing && this.scrollBarWidth !== undefined) { document.body.style.paddingRight = String(this.scrollBarWidth) + 'px'; } }, resetScrollBar: function resetScrollBar() { document.body.style.paddingRight = ''; }, addScrollEffect: function addScrollEffect() { this.checkScrollBar(); this.setScrollBar(); document.body.style.overflow = 'hidden'; }, removeScrollEffect: function removeScrollEffect() { if (this.checkMaskInVisible()) { document.body.style.overflow = ''; this.resetScrollBar(); } } } }; /***/ }), /* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 25.4.1.5 NewPromiseCapability(C) var aFunction = __webpack_require__(49); function PromiseCapability(C) { var resolve, reject; this.promise = new C(function ($$resolve, $$reject) { if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); resolve = $$resolve; reject = $$reject; }); this.resolve = aFunction(resolve); this.reject = aFunction(reject); } module.exports.f = function (C) { return new PromiseCapability(C); }; /***/ }), /* 81 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_spin_vue__ = __webpack_require__(188); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_spin_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_spin_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_spin_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_spin_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_spin_vue__ = __webpack_require__(477); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_spin_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_spin_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_spin_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_spin_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_spin_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assist = __webpack_require__(3); exports.default = { data: function data() { return { menu: (0, _assist.findComponentUpward)(this, 'Menu') }; }, computed: { hasParentSubmenu: function hasParentSubmenu() { return !!(0, _assist.findComponentUpward)(this, 'Submenu'); }, parentSubmenuNum: function parentSubmenuNum() { return (0, _assist.findComponentsUpward)(this, 'Submenu').length; }, mode: function mode() { return this.menu.mode; } } }; /***/ }), /* 83 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue__ = __webpack_require__(218); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tooltip_vue__ = __webpack_require__(539); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tooltip_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tooltip_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_tooltip_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tooltip_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tooltip_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var forEach = __webpack_require__(219).forEach; var elementUtilsMaker = __webpack_require__(542); var listenerHandlerMaker = __webpack_require__(543); var idGeneratorMaker = __webpack_require__(544); var idHandlerMaker = __webpack_require__(545); var reporterMaker = __webpack_require__(546); var browserDetector = __webpack_require__(220); var batchProcessorMaker = __webpack_require__(547); var stateHandler = __webpack_require__(549); //Detection strategies. var objectStrategyMaker = __webpack_require__(550); var scrollStrategyMaker = __webpack_require__(551); function isCollection(obj) { return Array.isArray(obj) || obj.length !== undefined; } function toArray(collection) { if (!Array.isArray(collection)) { var array = []; forEach(collection, function (obj) { array.push(obj); }); return array; } else { return collection; } } function isElement(obj) { return obj && obj.nodeType === 1; } /** * @typedef idHandler * @type {object} * @property {function} get Gets the resize detector id of the element. * @property {function} set Generate and sets the resize detector id of the element. */ /** * @typedef Options * @type {object} * @property {boolean} callOnAdd Determines if listeners should be called when they are getting added. Default is true. If true, the listener is guaranteed to be called when it has been added. If false, the listener will not be guarenteed to be called when it has been added (does not prevent it from being called). * @property {idHandler} idHandler A custom id handler that is responsible for generating, setting and retrieving id's for elements. If not provided, a default id handler will be used. * @property {reporter} reporter A custom reporter that handles reporting logs, warnings and errors. If not provided, a default id handler will be used. If set to false, then nothing will be reported. * @property {boolean} debug If set to true, the the system will report debug messages as default for the listenTo method. */ /** * Creates an element resize detector instance. * @public * @param {Options?} options Optional global options object that will decide how this instance will work. */ module.exports = function(options) { options = options || {}; //idHandler is currently not an option to the listenTo function, so it should not be added to globalOptions. var idHandler; if (options.idHandler) { // To maintain compatability with idHandler.get(element, readonly), make sure to wrap the given idHandler // so that readonly flag always is true when it's used here. This may be removed next major version bump. idHandler = { get: function (element) { return options.idHandler.get(element, true); }, set: options.idHandler.set }; } else { var idGenerator = idGeneratorMaker(); var defaultIdHandler = idHandlerMaker({ idGenerator: idGenerator, stateHandler: stateHandler }); idHandler = defaultIdHandler; } //reporter is currently not an option to the listenTo function, so it should not be added to globalOptions. var reporter = options.reporter; if(!reporter) { //If options.reporter is false, then the reporter should be quiet. var quiet = reporter === false; reporter = reporterMaker(quiet); } //batchProcessor is currently not an option to the listenTo function, so it should not be added to globalOptions. var batchProcessor = getOption(options, "batchProcessor", batchProcessorMaker({ reporter: reporter })); //Options to be used as default for the listenTo function. var globalOptions = {}; globalOptions.callOnAdd = !!getOption(options, "callOnAdd", true); globalOptions.debug = !!getOption(options, "debug", false); var eventListenerHandler = listenerHandlerMaker(idHandler); var elementUtils = elementUtilsMaker({ stateHandler: stateHandler }); //The detection strategy to be used. var detectionStrategy; var desiredStrategy = getOption(options, "strategy", "object"); var importantCssRules = getOption(options, "important", false); var strategyOptions = { reporter: reporter, batchProcessor: batchProcessor, stateHandler: stateHandler, idHandler: idHandler, important: importantCssRules }; if(desiredStrategy === "scroll") { if (browserDetector.isLegacyOpera()) { reporter.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."); desiredStrategy = "object"; } else if (browserDetector.isIE(9)) { reporter.warn("Scroll strategy is not supported on IE9. Changing to object strategy."); desiredStrategy = "object"; } } if(desiredStrategy === "scroll") { detectionStrategy = scrollStrategyMaker(strategyOptions); } else if(desiredStrategy === "object") { detectionStrategy = objectStrategyMaker(strategyOptions); } else { throw new Error("Invalid strategy name: " + desiredStrategy); } //Calls can be made to listenTo with elements that are still being installed. //Also, same elements can occur in the elements list in the listenTo function. //With this map, the ready callbacks can be synchronized between the calls //so that the ready callback can always be called when an element is ready - even if //it wasn't installed from the function itself. var onReadyCallbacks = {}; /** * Makes the given elements resize-detectable and starts listening to resize events on the elements. Calls the event callback for each event for each element. * @public * @param {Options?} options Optional options object. These options will override the global options. Some options may not be overriden, such as idHandler. * @param {element[]|element} elements The given array of elements to detect resize events of. Single element is also valid. * @param {function} listener The callback to be executed for each resize event for each element. */ function listenTo(options, elements, listener) { function onResizeCallback(element) { var listeners = eventListenerHandler.get(element); forEach(listeners, function callListenerProxy(listener) { listener(element); }); } function addListener(callOnAdd, element, listener) { eventListenerHandler.add(element, listener); if(callOnAdd) { listener(element); } } //Options object may be omitted. if(!listener) { listener = elements; elements = options; options = {}; } if(!elements) { throw new Error("At least one element required."); } if(!listener) { throw new Error("Listener required."); } if (isElement(elements)) { // A single element has been passed in. elements = [elements]; } else if (isCollection(elements)) { // Convert collection to array for plugins. // TODO: May want to check so that all the elements in the collection are valid elements. elements = toArray(elements); } else { return reporter.error("Invalid arguments. Must be a DOM element or a collection of DOM elements."); } var elementsReady = 0; var callOnAdd = getOption(options, "callOnAdd", globalOptions.callOnAdd); var onReadyCallback = getOption(options, "onReady", function noop() {}); var debug = getOption(options, "debug", globalOptions.debug); forEach(elements, function attachListenerToElement(element) { if (!stateHandler.getState(element)) { stateHandler.initState(element); idHandler.set(element); } var id = idHandler.get(element); debug && reporter.log("Attaching listener to element", id, element); if(!elementUtils.isDetectable(element)) { debug && reporter.log(id, "Not detectable."); if(elementUtils.isBusy(element)) { debug && reporter.log(id, "System busy making it detectable"); //The element is being prepared to be detectable. Do not make it detectable. //Just add the listener, because the element will soon be detectable. addListener(callOnAdd, element, listener); onReadyCallbacks[id] = onReadyCallbacks[id] || []; onReadyCallbacks[id].push(function onReady() { elementsReady++; if(elementsReady === elements.length) { onReadyCallback(); } }); return; } debug && reporter.log(id, "Making detectable..."); //The element is not prepared to be detectable, so do prepare it and add a listener to it. elementUtils.markBusy(element, true); return detectionStrategy.makeDetectable({ debug: debug, important: importantCssRules }, element, function onElementDetectable(element) { debug && reporter.log(id, "onElementDetectable"); if (stateHandler.getState(element)) { elementUtils.markAsDetectable(element); elementUtils.markBusy(element, false); detectionStrategy.addListener(element, onResizeCallback); addListener(callOnAdd, element, listener); // Since the element size might have changed since the call to "listenTo", we need to check for this change, // so that a resize event may be emitted. // Having the startSize object is optional (since it does not make sense in some cases such as unrendered elements), so check for its existance before. // Also, check the state existance before since the element may have been uninstalled in the installation process. var state = stateHandler.getState(element); if (state && state.startSize) { var width = element.offsetWidth; var height = element.offsetHeight; if (state.startSize.width !== width || state.startSize.height !== height) { onResizeCallback(element); } } if(onReadyCallbacks[id]) { forEach(onReadyCallbacks[id], function(callback) { callback(); }); } } else { // The element has been unisntalled before being detectable. debug && reporter.log(id, "Element uninstalled before being detectable."); } delete onReadyCallbacks[id]; elementsReady++; if(elementsReady === elements.length) { onReadyCallback(); } }); } debug && reporter.log(id, "Already detecable, adding listener."); //The element has been prepared to be detectable and is ready to be listened to. addListener(callOnAdd, element, listener); elementsReady++; }); if(elementsReady === elements.length) { onReadyCallback(); } } function uninstall(elements) { if(!elements) { return reporter.error("At least one element is required."); } if (isElement(elements)) { // A single element has been passed in. elements = [elements]; } else if (isCollection(elements)) { // Convert collection to array for plugins. // TODO: May want to check so that all the elements in the collection are valid elements. elements = toArray(elements); } else { return reporter.error("Invalid arguments. Must be a DOM element or a collection of DOM elements."); } forEach(elements, function (element) { eventListenerHandler.removeAllListeners(element); detectionStrategy.uninstall(element); stateHandler.cleanState(element); }); } function initDocument(targetDocument) { detectionStrategy.initDocument && detectionStrategy.initDocument(targetDocument); } return { listenTo: listenTo, removeListener: eventListenerHandler.removeListener, removeAllListeners: eventListenerHandler.removeAllListeners, uninstall: uninstall, initDocument: initDocument }; }; function getOption(options, name, defaultValue) { var value = options[name]; if((value === undefined || value === null) && defaultValue !== undefined) { return defaultValue; } return value; } /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(26); var toIObject = __webpack_require__(29); var arrayIndexOf = __webpack_require__(251)(false); var IE_PROTO = __webpack_require__(62)('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; }; /***/ }), /* 86 */ /***/ (function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = __webpack_require__(41); // eslint-disable-next-line no-prototype-builtins module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { // most Object methods by ES6 should accept primitives var $export = __webpack_require__(10); var core = __webpack_require__(6); var fails = __webpack_require__(30); 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); }; /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(23) && !__webpack_require__(30)(function () { return Object.defineProperty(__webpack_require__(65)('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-affix'; function getScroll(target, top) { var prop = top ? 'pageYOffset' : 'pageXOffset'; var method = top ? 'scrollTop' : 'scrollLeft'; var ret = target[prop]; if (typeof ret !== 'number') { ret = window.document.documentElement[method]; } return ret; } function getOffset(element) { var rect = element.getBoundingClientRect(); var scrollTop = getScroll(window, true); var scrollLeft = getScroll(window); var docEl = window.document.body; var clientTop = docEl.clientTop || 0; var clientLeft = docEl.clientLeft || 0; return { top: rect.top + scrollTop - clientTop, left: rect.left + scrollLeft - clientLeft }; } exports.default = { name: 'Affix', props: { offsetTop: { type: Number, default: 0 }, offsetBottom: { type: Number }, useCapture: { type: Boolean, default: false } }, data: function data() { return { affix: false, styles: {}, slot: false, slotStyle: {} }; }, computed: { offsetType: function offsetType() { var type = 'top'; if (this.offsetBottom >= 0) { type = 'bottom'; } return type; }, classes: function classes() { return [(0, _defineProperty3.default)({}, '' + prefixCls, this.affix)]; } }, mounted: function mounted() { var _this = this; (0, _dom.on)(window, 'scroll', this.handleScroll, this.useCapture); (0, _dom.on)(window, 'resize', this.handleScroll, this.useCapture); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.handleScroll(); }.bind(this)); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(window, 'scroll', this.handleScroll, this.useCapture); (0, _dom.off)(window, 'resize', this.handleScroll, this.useCapture); }, methods: { handleScroll: function handleScroll() { var affix = this.affix; var scrollTop = getScroll(window, true); var elOffset = getOffset(this.$el); var windowHeight = window.innerHeight; var elHeight = this.$el.getElementsByTagName('div')[0].offsetHeight; if (elOffset.top - this.offsetTop < scrollTop && this.offsetType == 'top' && !affix) { this.affix = true; this.slotStyle = { width: this.$refs.point.clientWidth + 'px', height: this.$refs.point.clientHeight + 'px' }; this.slot = true; this.styles = { top: String(this.offsetTop) + 'px', left: String(elOffset.left) + 'px', width: String(this.$el.offsetWidth) + 'px' }; this.$emit('on-change', true); } else if (elOffset.top - this.offsetTop > scrollTop && this.offsetType == 'top' && affix) { this.slot = false; this.slotStyle = {}; this.affix = false; this.styles = null; this.$emit('on-change', false); } if (elOffset.top + this.offsetBottom + elHeight > scrollTop + windowHeight && this.offsetType == 'bottom' && !affix) { this.affix = true; this.styles = { bottom: String(this.offsetBottom) + 'px', left: String(elOffset.left) + 'px', width: String(this.$el.offsetWidth) + 'px' }; this.$emit('on-change', true); } else if (elOffset.top + this.offsetBottom + elHeight < scrollTop + windowHeight && this.offsetType == 'bottom' && affix) { this.affix = false; this.styles = null; this.$emit('on-change', false); } } } }; /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-alert'; exports.default = { name: 'Alert', components: { Icon: _icon2.default }, props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['success', 'info', 'warning', 'error']); }, default: 'info' }, closable: { type: Boolean, default: false }, showIcon: { type: Boolean, default: false }, banner: { type: Boolean, default: false } }, data: function data() { return { closed: false, desc: false }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.type), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-with-icon', this.showIcon), (0, _defineProperty3.default)(_ref, prefixCls + '-with-desc', this.desc), (0, _defineProperty3.default)(_ref, prefixCls + '-with-banner', this.banner), _ref)]; }, messageClasses: function messageClasses() { return prefixCls + '-message'; }, descClasses: function descClasses() { return prefixCls + '-desc'; }, closeClasses: function closeClasses() { return prefixCls + '-close'; }, iconClasses: function iconClasses() { return prefixCls + '-icon'; }, iconType: function iconType() { var type = ''; switch (this.type) { case 'success': type = 'ios-checkmark-circle'; break; case 'info': type = 'ios-information-circle'; break; case 'warning': type = 'ios-alert'; break; case 'error': type = 'ios-close-circle'; break; } if (this.desc) type += '-outline'; return type; } }, methods: { close: function close(e) { this.closed = true; this.$emit('on-close', e); } }, mounted: function mounted() { this.desc = this.$slots.desc !== undefined; } }; /***/ }), /* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-icon'; exports.default = { name: 'Icon', props: { type: { type: String, default: '' }, size: [Number, String], color: String, custom: { type: String, default: '' } }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type), this.type !== ''), (0, _defineProperty3.default)(_ref, '' + String(this.custom), this.custom !== ''), _ref)]; }, styles: function styles() { var style = {}; if (this.size) { style['font-size'] = String(this.size) + 'px'; } if (this.color) { style.color = this.color; } return style; } }, methods: { handleClick: function handleClick(event) { this.$emit('click', event); } } }; /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var LIBRARY = __webpack_require__(52); var $export = __webpack_require__(10); var redefine = __webpack_require__(93); var hide = __webpack_require__(27); var Iterators = __webpack_require__(32); var $iterCreate = __webpack_require__(269); var setToStringTag = __webpack_require__(53); var getPrototypeOf = __webpack_require__(96); var ITERATOR = __webpack_require__(11)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; var VALUES_BUG = false; var proto = Base.prototype; var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; var $default = $native || getMethod(DEFAULT); var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; var methods, key, IteratorPrototype; // Fix native if ($anyNative) { IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; Iterators[TAG] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if (FORCED) for (key in methods) { if (!(key in proto)) redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; /***/ }), /* 93 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(27); /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(19); var dPs = __webpack_require__(270); var enumBugKeys = __webpack_require__(64); var IE_PROTO = __webpack_require__(62)('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug var iframe = __webpack_require__(65)('iframe'); var i = enumBugKeys.length; var lt = '<'; var gt = '>'; var iframeDocument; iframe.style.display = 'none'; __webpack_require__(95).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; return createDict(); }; module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { Empty[PROTOTYPE] = anObject(O); result = new Empty(); Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { var document = __webpack_require__(9).document; module.exports = document && document.documentElement; /***/ }), /* 96 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __webpack_require__(26); var toObject = __webpack_require__(39); var IE_PROTO = __webpack_require__(62)('IE_PROTO'); var ObjectProto = Object.prototype; module.exports = Object.getPrototypeOf || function (O) { O = toObject(O); if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; /***/ }), /* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Anchor', provide: function provide() { return { anchorCom: this }; }, data: function data() { return { prefix: 'ivu-anchor', isAffixed: false, inkTop: 0, animating: false, currentLink: '', currentId: '', scrollContainer: null, scrollElement: null, titlesOffsetArr: [], wrapperTop: 0, upperFirstTitle: true }; }, props: { affix: { type: Boolean, default: true }, offsetTop: { type: Number, default: 0 }, offsetBottom: Number, bounds: { type: Number, default: 5 }, container: null, showInk: { type: Boolean, default: false }, scrollOffset: { type: Number, default: 0 } }, computed: { wrapperComponent: function wrapperComponent() { return this.affix ? 'Affix' : 'div'; }, wrapperStyle: function wrapperStyle() { return { maxHeight: this.offsetTop ? 'calc(100vh - ' + String(this.offsetTop) + 'px)' : '100vh' }; }, containerIsWindow: function containerIsWindow() { return this.scrollContainer === window; } }, methods: { handleAffixStateChange: function handleAffixStateChange(state) { this.isAffixed = this.affix && state; }, handleScroll: function handleScroll(e) { this.upperFirstTitle = e.target.scrollTop < this.titlesOffsetArr[0].offset; if (this.animating) return; this.updateTitleOffset(); var scrollTop = document.documentElement.scrollTop || document.body.scrollTop || e.target.scrollTop; this.getCurrentScrollAtTitleId(scrollTop); }, handleHashChange: function handleHashChange() { var url = window.location.href; var sharpLinkMatch = _assist.sharpMatcherRegx.exec(url); if (!sharpLinkMatch) return; this.currentLink = sharpLinkMatch[0]; this.currentId = sharpLinkMatch[1]; }, handleScrollTo: function handleScrollTo() { var _this = this; var anchor = document.getElementById(this.currentId); var currentLinkElementA = document.querySelector('a[data-href="' + String(this.currentLink) + '"]'); var offset = this.scrollOffset; if (currentLinkElementA) { offset = parseFloat(currentLinkElementA.getAttribute('data-scroll-offset')); } if (!anchor) return; var offsetTop = anchor.offsetTop - this.wrapperTop - offset; this.animating = true; (0, _assist.scrollTop)(this.scrollContainer, this.scrollElement.scrollTop, offsetTop, 600, function () { (0, _newArrowCheck3.default)(this, _this); this.animating = false; }.bind(this)); this.handleSetInkTop(); }, handleSetInkTop: function handleSetInkTop() { var currentLinkElementA = document.querySelector('a[data-href="' + String(this.currentLink) + '"]'); if (!currentLinkElementA) return; var elementATop = currentLinkElementA.offsetTop; var top = elementATop < 0 ? this.offsetTop : elementATop; this.inkTop = top; }, updateTitleOffset: function updateTitleOffset() { var _this2 = this; var links = (0, _assist.findComponentsDownward)(this, 'AnchorLink').map(function (link) { (0, _newArrowCheck3.default)(this, _this2); return link.href; }.bind(this)); var idArr = links.map(function (link) { (0, _newArrowCheck3.default)(this, _this2); return link.split('#')[1]; }.bind(this)); var offsetArr = []; idArr.forEach(function (id) { (0, _newArrowCheck3.default)(this, _this2); var titleEle = document.getElementById(id); if (titleEle) offsetArr.push({ link: '#' + String(id), offset: titleEle.offsetTop - this.scrollElement.offsetTop }); }.bind(this)); this.titlesOffsetArr = offsetArr; }, getCurrentScrollAtTitleId: function getCurrentScrollAtTitleId(scrollTop) { var i = -1; var len = this.titlesOffsetArr.length; var titleItem = { link: '#', offset: 0 }; scrollTop += this.bounds; while (++i < len) { var currentEle = this.titlesOffsetArr[i]; var nextEle = this.titlesOffsetArr[i + 1]; if (scrollTop >= currentEle.offset && scrollTop < (nextEle && nextEle.offset || Infinity)) { titleItem = this.titlesOffsetArr[i]; break; } } this.currentLink = titleItem.link; this.handleSetInkTop(); }, getContainer: function getContainer() { this.scrollContainer = this.container ? typeof this.container === 'string' ? document.querySelector(this.container) : this.container : window; this.scrollElement = this.container ? this.scrollContainer : document.documentElement || document.body; }, removeListener: function removeListener() { (0, _dom.off)(this.scrollContainer, 'scroll', this.handleScroll); (0, _dom.off)(window, 'hashchange', this.handleHashChange); }, init: function init() { var _this3 = this; this.handleHashChange(); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); this.removeListener(); this.getContainer(); this.wrapperTop = this.containerIsWindow ? 0 : this.scrollElement.offsetTop; this.handleScrollTo(); this.handleSetInkTop(); this.updateTitleOffset(); if (this.titlesOffsetArr[0]) { this.upperFirstTitle = this.scrollElement.scrollTop < this.titlesOffsetArr[0].offset; } (0, _dom.on)(this.scrollContainer, 'scroll', this.handleScroll); (0, _dom.on)(window, 'hashchange', this.handleHashChange); }.bind(this)); } }, watch: { '$route': function $route() { var _this4 = this; this.handleHashChange(); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this4); this.handleScrollTo(); }.bind(this)); }, container: function container() { this.init(); }, currentLink: function currentLink(newHref, oldHref) { this.$emit('on-change', newHref, oldHref); } }, mounted: function mounted() { this.init(); }, beforeDestroy: function beforeDestroy() { this.removeListener(); } }; /***/ }), /* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'AnchorLink', inject: ['anchorCom'], props: { href: String, title: String, scrollOffset: { type: Number, default: function _default() { return this.anchorCom.scrollOffset; } } }, data: function data() { return { prefix: 'ivu-anchor-link' }; }, computed: { anchorLinkClasses: function anchorLinkClasses() { return [this.prefix, this.anchorCom.currentLink === this.href ? String(this.prefix) + '-active' : '']; }, linkTitleClasses: function linkTitleClasses() { return [String(this.prefix) + '-title']; } }, methods: { goAnchor: function goAnchor() { this.currentLink = this.href; this.anchorCom.handleHashChange(); this.anchorCom.handleScrollTo(); this.anchorCom.$emit('on-select', this.href); var isRoute = this.$router; if (isRoute) { this.$router.push(this.href); } else { window.location.href = this.href; } } }, mounted: function mounted() { var _this = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.anchorCom.init(); }.bind(this)); } }; /***/ }), /* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _select = __webpack_require__(70); var _select2 = _interopRequireDefault(_select); var _option = __webpack_require__(74); var _option2 = _interopRequireDefault(_option); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'AutoComplete', mixins: [_emitter2.default], components: { iSelect: _select2.default, iOption: _option2.default, iInput: _input2.default }, props: { value: { type: [String, Number], default: '' }, label: { type: [String, Number], default: '' }, data: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { type: String }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, icon: { type: String }, filterMethod: { type: [Function, Boolean], default: false }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'bottom', 'top-start', 'bottom-start', 'top-end', 'bottom-end']); }, default: 'bottom' }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, name: { type: String }, elementId: { type: String } }, data: function data() { return { currentValue: this.value, disableEmitChange: false }; }, computed: { inputIcon: function inputIcon() { var icon = ''; if (this.clearable && this.currentValue && !this.disabled) { icon = 'ios-close'; } else if (this.icon) { icon = this.icon; } return icon; }, filteredData: function filteredData() { var _this = this; if (this.filterMethod) { return this.data.filter(function (item) { (0, _newArrowCheck3.default)(this, _this); return this.filterMethod(this.currentValue, item); }.bind(this)); } else { return this.data; } } }, watch: { value: function value(val) { if (this.currentValue !== val) { this.disableEmitChange = true; } this.currentValue = val; }, currentValue: function currentValue(val) { this.$refs.select.setQuery(val); this.$emit('input', val); if (this.disableEmitChange) { this.disableEmitChange = false; return; } this.$emit('on-change', val); this.dispatch('FormItem', 'on-form-change', val); } }, methods: { remoteMethod: function remoteMethod(query) { this.$emit('on-search', query); }, handleSelect: function handleSelect(val) { if (val === undefined || val === null) return; this.currentValue = val; this.$refs.input.blur(); this.$emit('on-select', val); }, handleFocus: function handleFocus(event) { this.$emit('on-focus', event); }, handleBlur: function handleBlur(event) { this.$emit('on-blur', event); }, handleClear: function handleClear() { if (!this.clearable) return; this.currentValue = ''; this.$refs.select.reset(); this.$emit('on-clear'); }, handleClickOutside: function handleClickOutside() { var _this2 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.$refs.input.blur(); }.bind(this)); } } }; /***/ }), /* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _isFinite = __webpack_require__(71); var _isFinite2 = _interopRequireDefault(_isFinite); var _getIterator2 = __webpack_require__(44); var _getIterator3 = _interopRequireDefault(_getIterator2); var _stringify = __webpack_require__(54); var _stringify2 = _interopRequireDefault(_stringify); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends3 = __webpack_require__(31); var _extends4 = _interopRequireDefault(_extends3); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _selectHead = __webpack_require__(312); var _selectHead2 = _interopRequireDefault(_selectHead); var _functionalOptions = __webpack_require__(314); var _functionalOptions2 = _interopRequireDefault(_functionalOptions); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-select'; var optionRegexp = /^i-option$|^Option$/i; var optionGroupRegexp = /option-?group/i; var findChild = function (instance, checkFn) { (0, _newArrowCheck3.default)(undefined, undefined); var match = checkFn(instance); if (match) return instance; for (var i = 0, l = instance.$children.length; i < l; i++) { var child = instance.$children[i]; match = findChild(child, checkFn); if (match) return match; } }.bind(undefined); var findOptionsInVNode = function (node) { (0, _newArrowCheck3.default)(undefined, undefined); var opts = node.componentOptions; if (opts && opts.tag.match(optionRegexp)) return [node]; if (!node.children && (!opts || !opts.children)) return []; var children = [].concat((0, _toConsumableArray3.default)(node.children || []), (0, _toConsumableArray3.default)(opts && opts.children || [])); var options = children.reduce(function (arr, el) { (0, _newArrowCheck3.default)(undefined, undefined); return [].concat((0, _toConsumableArray3.default)(arr), (0, _toConsumableArray3.default)(findOptionsInVNode(el))); }.bind(undefined), []).filter(Boolean); return options.length > 0 ? options : []; }.bind(undefined); var extractOptions = function (options) { (0, _newArrowCheck3.default)(undefined, undefined); return options.reduce(function (options, slotEntry) { (0, _newArrowCheck3.default)(undefined, undefined); return options.concat(findOptionsInVNode(slotEntry)); }.bind(undefined), []); }.bind(undefined); var applyProp = function (node, propName, value) { (0, _newArrowCheck3.default)(undefined, undefined); return (0, _extends4.default)({}, node, { componentOptions: (0, _extends4.default)({}, node.componentOptions, { propsData: (0, _extends4.default)({}, node.componentOptions.propsData, (0, _defineProperty3.default)({}, propName, value)) }) }); }.bind(undefined); var getNestedProperty = function (obj, path) { (0, _newArrowCheck3.default)(undefined, undefined); var keys = path.split('.'); return keys.reduce(function (o, key) { (0, _newArrowCheck3.default)(undefined, undefined); return o && o[key] || null; }.bind(undefined), obj); }.bind(undefined); var getOptionLabel = function (option) { (0, _newArrowCheck3.default)(undefined, undefined); if (option.componentOptions.propsData.label) return option.componentOptions.propsData.label; var textContent = (option.componentOptions.children || []).reduce(function (str, child) { (0, _newArrowCheck3.default)(undefined, undefined); return str + (child.text || ''); }.bind(undefined), ''); var innerHTML = getNestedProperty(option, 'data.domProps.innerHTML'); return textContent || (typeof innerHTML === 'string' ? innerHTML : ''); }.bind(undefined); var checkValuesNotEqual = function (value, publicValue, values) { (0, _newArrowCheck3.default)(undefined, undefined); var strValue = (0, _stringify2.default)(value); var strPublic = (0, _stringify2.default)(publicValue); var strValues = (0, _stringify2.default)(values.map(function (item) { (0, _newArrowCheck3.default)(undefined, undefined); return item.value; }.bind(undefined))); return strValue !== strPublic || strValue !== strValues || strValues !== strPublic; }.bind(undefined); var ANIMATION_TIMEOUT = 300; exports.default = { name: 'iSelect', mixins: [_emitter2.default, _locale2.default], components: { FunctionalOptions: _functionalOptions2.default, Drop: _dropdown2.default, SelectHead: _selectHead2.default }, directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, props: { value: { type: [String, Number, Array], default: '' }, label: { type: [String, Number, Array], default: '' }, multiple: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { type: String }, filterable: { type: Boolean, default: false }, filterMethod: { type: Function }, remoteMethod: { type: Function }, loading: { type: Boolean, default: false }, loadingText: { type: String }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, labelInValue: { type: Boolean, default: false }, notFoundText: { type: String }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'bottom', 'top-start', 'bottom-start', 'top-end', 'bottom-end']); }, default: 'bottom-start' }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, autoComplete: { type: Boolean, default: false }, name: { type: String }, elementId: { type: String }, transferClassName: { type: String }, prefix: { type: String }, maxTagCount: { type: Number }, maxTagPlaceholder: { type: Function } }, mounted: function mounted() { var _this = this; this.$on('on-select-selected', this.onOptionClick); if (this.selectOptions.length > 0) { this.values = this.getInitialValue().map(function (value) { (0, _newArrowCheck3.default)(this, _this); if (typeof value !== 'number' && !value) return null; return this.getOptionData(value); }.bind(this)).filter(Boolean); } this.checkUpdateStatus(); }, data: function data() { return { prefixCls: prefixCls, values: [], dropDownWidth: 0, visible: false, focusIndex: -1, isFocused: false, query: '', initialLabel: this.label, hasMouseHoverHead: false, slotOptions: this.$slots.default, caretPosition: -1, lastRemoteQuery: '', unchangedQuery: true, hasExpectedValue: false, preventRemoteCall: false, filterQueryChange: false, hideMenuTimer: null }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-visible', this.visible), (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-multiple', this.multiple), (0, _defineProperty3.default)(_ref, prefixCls + '-single', !this.multiple), (0, _defineProperty3.default)(_ref, prefixCls + '-show-clear', this.showCloseIcon), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), _ref)]; }, dropdownCls: function dropdownCls() { var _ref2; return _ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-dropdown-transfer', this.transfer), (0, _defineProperty3.default)(_ref2, prefixCls + '-multiple', this.multiple && this.transfer), (0, _defineProperty3.default)(_ref2, 'ivu-auto-complete', this.autoComplete), (0, _defineProperty3.default)(_ref2, this.transferClassName, this.transferClassName), _ref2; }, selectionCls: function selectionCls() { var _ref3; return _ref3 = {}, (0, _defineProperty3.default)(_ref3, prefixCls + '-selection', !this.autoComplete), (0, _defineProperty3.default)(_ref3, prefixCls + '-selection-focused', this.isFocused), _ref3; }, localeNotFoundText: function localeNotFoundText() { if (typeof this.notFoundText === 'undefined') { return this.t('i.select.noMatch'); } else { return this.notFoundText; } }, localeLoadingText: function localeLoadingText() { if (typeof this.loadingText === 'undefined') { return this.t('i.select.loading'); } else { return this.loadingText; } }, transitionName: function transitionName() { return this.placement === 'bottom' ? 'slide-up' : 'slide-down'; }, dropVisible: function dropVisible() { var status = true; var noOptions = !this.selectOptions || this.selectOptions.length === 0; if (!this.loading && this.remote && this.query === '' && noOptions) status = false; if (this.autoComplete && noOptions) status = false; return this.visible && status; }, showNotFoundLabel: function showNotFoundLabel() { var loading = this.loading, remote = this.remote, selectOptions = this.selectOptions; return selectOptions && selectOptions.length === 0 && (!remote || remote && !loading); }, publicValue: function publicValue() { var _this2 = this; if (this.labelInValue) { return this.multiple ? this.values : this.values[0]; } else { return this.multiple ? this.values.map(function (option) { (0, _newArrowCheck3.default)(this, _this2); return option.value; }.bind(this)) : (this.values[0] || {}).value; } }, canBeCleared: function canBeCleared() { var uiStateMatch = this.hasMouseHoverHead || this.active; var qualifiesForClear = !this.multiple && !this.disabled && this.clearable; return uiStateMatch && qualifiesForClear && this.reset; }, selectOptions: function selectOptions() { var _this3 = this; var selectOptions = []; var slotOptions = this.slotOptions || []; var optionCounter = -1; var currentIndex = this.focusIndex; var selectedValues = this.values.filter(Boolean).map(function (_ref4) { var value = _ref4.value; (0, _newArrowCheck3.default)(this, _this3); return value; }.bind(this)); if (this.autoComplete) { var copyChildren = function (node, fn) { (0, _newArrowCheck3.default)(this, _this3); return (0, _extends4.default)({}, node, { children: (node.children || []).map(fn).map(function (child) { (0, _newArrowCheck3.default)(this, _this3); return copyChildren(child, fn); }.bind(this)) }); }.bind(this); var autoCompleteOptions = extractOptions(slotOptions); var selectedSlotOption = autoCompleteOptions[currentIndex]; return slotOptions.map(function (node) { (0, _newArrowCheck3.default)(this, _this3); if (node === selectedSlotOption || getNestedProperty(node, 'componentOptions.propsData.value') === this.value) return applyProp(node, 'isFocused', true); return copyChildren(node, function (child) { (0, _newArrowCheck3.default)(this, _this3); if (child !== selectedSlotOption) return child; return applyProp(child, 'isFocused', true); }.bind(this)); }.bind(this)); } var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0, _getIterator3.default)(slotOptions), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var option = _step.value; var cOptions = option.componentOptions; if (!cOptions) continue; if (cOptions.tag.match(optionGroupRegexp)) { var children = cOptions.children; if (this.filterable) { children = children.filter(function (_ref5) { var componentOptions = _ref5.componentOptions; (0, _newArrowCheck3.default)(this, _this3); return this.validateOption(componentOptions); }.bind(this)); } children = children.map(function (opt) { (0, _newArrowCheck3.default)(this, _this3); optionCounter = optionCounter + 1; return this.processOption(opt, selectedValues, optionCounter === currentIndex); }.bind(this)); if (children.length > 0) selectOptions.push((0, _extends4.default)({}, option, { componentOptions: (0, _extends4.default)({}, cOptions, { children: children }) })); } else { if (this.filterQueryChange) { var optionPassesFilter = this.filterable ? this.validateOption(cOptions) : option; if (!optionPassesFilter) continue; } optionCounter = optionCounter + 1; selectOptions.push(this.processOption(option, selectedValues, currentIndex === optionCounter)); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return selectOptions; }, flatOptions: function flatOptions() { return extractOptions(this.selectOptions); }, selectTabindex: function selectTabindex() { return this.disabled || this.filterable ? -1 : 0; }, remote: function remote() { return typeof this.remoteMethod === 'function'; } }, methods: { setQuery: function setQuery(query) { if (query) { this.onQueryChange(query); return; } if (query === null) { this.onQueryChange(''); this.values = []; this.lastRemoteQuery = ''; } }, clearSingleSelect: function clearSingleSelect() { this.hideMenu(); if (this.clearable) this.reset(); this.$emit('on-clear'); }, getOptionData: function getOptionData(value) { var _this4 = this; var option = this.flatOptions.find(function (_ref6) { var componentOptions = _ref6.componentOptions; (0, _newArrowCheck3.default)(this, _this4); return componentOptions.propsData.value === value; }.bind(this)); if (!option) return null; var label = getOptionLabel(option); return { value: value, label: label }; }, getInitialValue: function getInitialValue() { var _this5 = this; var multiple = this.multiple, remote = this.remote, value = this.value; var initialValue = Array.isArray(value) ? value : [value]; if (!multiple && (typeof initialValue[0] === 'undefined' || String(initialValue[0]).trim() === '' && !(0, _isFinite2.default)(initialValue[0]))) initialValue = []; if (remote && !multiple && value) { var data = this.getOptionData(value); this.query = data ? data.label : String(value); } return initialValue.filter(function (item) { (0, _newArrowCheck3.default)(this, _this5); return Boolean(item) || item === 0; }.bind(this)); }, processOption: function processOption(option, values, isFocused) { if (!option.componentOptions) return option; var optionValue = option.componentOptions.propsData.value; var disabled = option.componentOptions.propsData.disabled; var isSelected = values.includes(optionValue); var propsData = (0, _extends4.default)({}, option.componentOptions.propsData, { selected: isSelected, isFocused: isFocused, disabled: typeof disabled === 'undefined' ? false : disabled !== false }); return (0, _extends4.default)({}, option, { componentOptions: (0, _extends4.default)({}, option.componentOptions, { propsData: propsData }) }); }, validateOption: function validateOption(_ref7) { var _this6 = this; var children = _ref7.children, elm = _ref7.elm, propsData = _ref7.propsData; var label = propsData.label || ''; var textContent = elm && elm.textContent || (children || []).reduce(function (str, node) { (0, _newArrowCheck3.default)(this, _this6); var nodeText = node.elm ? node.elm.textContent : node.text; return String(str) + ' ' + String(nodeText); }.bind(this), '') || ''; var stringValues = [label, textContent]; var query = this.query.toLowerCase().trim(); var findValuesIndex = stringValues.findIndex(function (item) { (0, _newArrowCheck3.default)(this, _this6); var itemToLowerCase = item.toLowerCase(); return itemToLowerCase.includes(query); }.bind(this)); return findValuesIndex === -1 ? false : true; }, toggleMenu: function toggleMenu(e, force) { if (this.disabled) { return false; } this.visible = typeof force !== 'undefined' ? force : !this.visible; if (this.visible) { this.dropDownWidth = this.$el.getBoundingClientRect().width; this.broadcast('Drop', 'on-update-popper'); } }, updateFocusIndex: function updateFocusIndex() { var _this7 = this; this.focusIndex = this.flatOptions.findIndex(function (opt) { (0, _newArrowCheck3.default)(this, _this7); if (!opt || !opt.componentOptions) return false; return opt.componentOptions.propsData.value === this.publicValue; }.bind(this)); }, hideMenu: function hideMenu() { var _this8 = this; this.toggleMenu(null, false); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this8); this.unchangedQuery = true; this.hideMenuTimer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this8); this.updateFocusIndex(); this.hideMenuTimer = null; }.bind(this)); }.bind(this), ANIMATION_TIMEOUT); }, onClickOutside: function onClickOutside(event) { var _this9 = this; if (this.visible) { if (event.type === 'mousedown') { event.preventDefault(); return; } if (this.transfer) { var $el = this.$refs.dropdown.$el; if ($el === event.target || $el.contains(event.target)) { return; } } if (this.filterable) { var input = this.$el.querySelector('input[type="text"]'); this.caretPosition = input.selectionStart; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this9); var caretPosition = this.caretPosition === -1 ? input.value.length : this.caretPosition; input.setSelectionRange(caretPosition, caretPosition); }.bind(this)); } if (!this.autoComplete) event.stopPropagation(); event.preventDefault(); this.hideMenu(); this.isFocused = true; this.$emit('on-clickoutside', event); } else { this.caretPosition = -1; this.isFocused = false; } }, reset: function reset() { this.query = ''; this.focusIndex = -1; this.unchangedQuery = true; this.values = []; this.filterQueryChange = false; }, handleKeydown: function handleKeydown(e) { var key = e.key || e.code; if (key === 'Backspace') { return; } if (this.visible) { e.preventDefault(); if (key === 'Tab') { e.stopPropagation(); } if (key === 'Escape') { e.stopPropagation(); this.hideMenu(); } if (key === 'ArrowUp') { this.navigateOptions(-1); } if (key === 'ArrowDown') { this.navigateOptions(1); } if (key === 'Enter') { if (this.focusIndex === -1) return this.hideMenu(); var optionComponent = this.flatOptions[this.focusIndex]; if (optionComponent) { var option = this.getOptionData(optionComponent.componentOptions.propsData.value); this.onOptionClick(option); } else { this.hideMenu(); } } } else { var keysThatCanOpenSelect = ['ArrowUp', 'ArrowDown']; if (keysThatCanOpenSelect.includes(e.key)) this.toggleMenu(null, true); } }, navigateOptions: function navigateOptions(direction) { var optionsLength = this.flatOptions.length - 1; var index = this.focusIndex + direction; if (index < 0) index = optionsLength; if (index > optionsLength) index = 0; if (direction > 0) { var nearestActiveOption = -1; for (var i = 0; i < this.flatOptions.length; i++) { var optionIsActive = !this.flatOptions[i].componentOptions.propsData.disabled; if (optionIsActive) nearestActiveOption = i; if (nearestActiveOption >= index) break; } index = nearestActiveOption; } else { var _nearestActiveOption = this.flatOptions.length; for (var _i = optionsLength; _i >= 0; _i--) { var _optionIsActive = !this.flatOptions[_i].componentOptions.propsData.disabled; if (_optionIsActive) _nearestActiveOption = _i; if (_nearestActiveOption <= index) break; } index = _nearestActiveOption; } this.focusIndex = index; }, onOptionClick: function onOptionClick(option) { var _this10 = this; if (this.multiple) { if (this.remote) this.lastRemoteQuery = this.lastRemoteQuery || this.query;else this.lastRemoteQuery = ''; var valueIsSelected = this.values.find(function (_ref8) { var value = _ref8.value; (0, _newArrowCheck3.default)(this, _this10); return value === option.value; }.bind(this)); if (valueIsSelected) { this.values = this.values.filter(function (_ref9) { var value = _ref9.value; (0, _newArrowCheck3.default)(this, _this10); return value !== option.value; }.bind(this)); } else { this.values = this.values.concat(option); } this.isFocused = true; } else { this.query = ''; this.values = [option]; this.lastRemoteQuery = ''; this.hideMenu(); } if (this.filterable) { var inputField = this.$el.querySelector('input[type="text"]'); if (!this.autoComplete) this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this10); return inputField.focus(); }.bind(this)); } this.broadcast('Drop', 'on-update-popper'); this.$emit('on-select', this.publicValue); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this10); this.filterQueryChange = false; }.bind(this), ANIMATION_TIMEOUT); }, onQueryChange: function onQueryChange(query) { if (query.length > 0 && query !== this.query) { if (this.autoComplete) { var isInputFocused = document.hasFocus && document.hasFocus() && document.activeElement === this.$el.querySelector('input'); this.visible = isInputFocused; } else { this.visible = true; } } this.query = query; this.unchangedQuery = this.visible; this.filterQueryChange = true; if (this.filterable) { this.updateFocusIndex(); } }, toggleHeaderFocus: function toggleHeaderFocus(_ref10) { var type = _ref10.type; if (this.disabled) { return; } this.isFocused = type === 'focus'; }, updateSlotOptions: function updateSlotOptions() { this.slotOptions = this.$slots.default; }, checkUpdateStatus: function checkUpdateStatus() { if (this.getInitialValue().length > 0 && this.selectOptions.length === 0) { this.hasExpectedValue = true; } } }, watch: { value: function value(_value) { var _this11 = this; var getInitialValue = this.getInitialValue, getOptionData = this.getOptionData, publicValue = this.publicValue, values = this.values; this.checkUpdateStatus(); var vModelValue = publicValue && this.labelInValue ? this.multiple ? publicValue.map(function (_ref11) { var value = _ref11.value; (0, _newArrowCheck3.default)(this, _this11); return value; }.bind(this)) : publicValue.value : publicValue; if (_value === '') this.values = [];else if (checkValuesNotEqual(_value, vModelValue, values)) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this11); return this.values = getInitialValue().map(getOptionData).filter(Boolean); }.bind(this)); if (!this.multiple) this.dispatch('FormItem', 'on-form-change', this.publicValue); } }, values: function values(now, before) { var _this12 = this; var newValue = (0, _stringify2.default)(now); var oldValue = (0, _stringify2.default)(before); var vModelValue = this.publicValue && this.labelInValue ? this.multiple ? this.publicValue.map(function (_ref12) { var value = _ref12.value; (0, _newArrowCheck3.default)(this, _this12); return value; }.bind(this)) : this.publicValue.value : this.publicValue; var shouldEmitInput = newValue !== oldValue && vModelValue !== this.value; if (shouldEmitInput) { this.$emit('input', vModelValue); this.$emit('on-change', this.publicValue); this.dispatch('FormItem', 'on-form-change', this.publicValue); } }, query: function query(_query) { var _this13 = this; this.$emit('on-query-change', _query); var remoteMethod = this.remoteMethod, lastRemoteQuery = this.lastRemoteQuery; var hasValidQuery = _query !== '' && (_query !== lastRemoteQuery || !lastRemoteQuery); var shouldCallRemoteMethod = remoteMethod && hasValidQuery && !this.preventRemoteCall; this.preventRemoteCall = false; if (shouldCallRemoteMethod) { this.focusIndex = -1; var promise = this.remoteMethod(_query); this.initialLabel = ''; if (promise && promise.then) { promise.then(function (options) { (0, _newArrowCheck3.default)(this, _this13); if (options) this.options = options; }.bind(this)); } } if (_query !== '' && this.remote) this.lastRemoteQuery = _query; }, loading: function loading(state) { if (state === false) { this.updateSlotOptions(); } }, isFocused: function isFocused(focused) { var el = this.filterable ? this.$el.querySelector('input[type="text"]') : this.$el; el[this.isFocused ? 'focus' : 'blur'](); var _values = (0, _slicedToArray3.default)(this.values, 1), selectedOption = _values[0]; if (selectedOption && this.filterable && !this.multiple && !focused) { var selectedLabel = String(selectedOption.label || selectedOption.value).trim(); if (selectedLabel && this.query !== selectedLabel) { this.preventRemoteCall = true; this.query = selectedLabel; } } }, focusIndex: function focusIndex(index) { var _this14 = this; if (index < 0 || this.autoComplete) return; var optionValue = this.flatOptions[index].componentOptions.propsData.value; var optionInstance = findChild(this, function (_ref13) { var $options = _ref13.$options; (0, _newArrowCheck3.default)(this, _this14); return $options.componentName === 'select-item' && $options.propsData.value === optionValue; }.bind(this)); if (optionInstance && optionInstance.$el) { var bottomOverflowDistance = optionInstance.$el.getBoundingClientRect().bottom - this.$refs.dropdown.$el.getBoundingClientRect().bottom; var topOverflowDistance = optionInstance.$el.getBoundingClientRect().top - this.$refs.dropdown.$el.getBoundingClientRect().top; if (bottomOverflowDistance > 0) { this.$refs.dropdown.$el.scrollTop += bottomOverflowDistance; } if (topOverflowDistance < 0) { this.$refs.dropdown.$el.scrollTop += topOverflowDistance; } } }, dropVisible: function dropVisible(open) { this.broadcast('Drop', open ? 'on-update-popper' : 'on-destroy-popper'); }, selectOptions: function selectOptions() { if (this.hasExpectedValue && this.selectOptions.length > 0) { if (this.values.length === 0) { this.values = this.getInitialValue(); } this.values = this.values.map(this.getOptionData).filter(Boolean); this.hasExpectedValue = false; } if (this.slotOptions && this.slotOptions.length === 0) { this.query = ''; } this.broadcast('Drop', 'on-update-popper'); }, visible: function visible(state) { this.$emit('on-open-change', state); }, slotOptions: function slotOptions(options, old) { if (!this.remote) { var values = this.getInitialValue(); if (this.flatOptions && this.flatOptions.length && values.length && !this.multiple) { this.values = values.map(this.getOptionData).filter(Boolean); } } if (options && old && options.length !== old.length) { this.broadcast('Drop', 'on-update-popper'); } } } }; /***/ }), /* 101 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(288), __esModule: true }; /***/ }), /* 102 */ /***/ (function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error var anObject = __webpack_require__(19); module.exports = function (iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) } catch (e) { var ret = iterator['return']; if (ret !== undefined) anObject(ret.call(iterator)); throw e; } }; /***/ }), /* 103 */ /***/ (function(module, exports, __webpack_require__) { // check on default Array iterator var Iterators = __webpack_require__(32); var ITERATOR = __webpack_require__(11)('iterator'); var ArrayProto = Array.prototype; module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; /***/ }), /* 104 */ /***/ (function(module, exports, __webpack_require__) { var ITERATOR = __webpack_require__(11)('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal Array.from(riter, function () { throw 2; }); } catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; var safe = false; try { var arr = [7]; var iter = arr[ITERATOR](); iter.next = function () { return { done: safe = true }; }; arr[ITERATOR] = function () { return iter; }; exec(arr); } catch (e) { /* empty */ } return safe; }; /***/ }), /* 105 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); var _assist = __webpack_require__(3); var _transferQueue = __webpack_require__(34); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; var Popper = isServer ? function () {} : __webpack_require__(106);exports.default = { name: 'Drop', props: { placement: { type: String, default: 'bottom-start' }, className: { type: String }, transfer: { type: Boolean } }, data: function data() { return { popper: null, width: '', popperStatus: false, tIndex: this.handleGetIndex() }; }, computed: { styles: function styles() { var style = {}; if (this.width) style.minWidth = String(this.width) + 'px'; if (this.transfer) style['z-index'] = 1060 + this.tIndex; return style; } }, methods: { update: function update() { var _this = this; if (isServer) return; if (this.popper) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.popper.update(); this.popperStatus = true; }.bind(this)); } else { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.popper = new Popper(this.$parent.$refs.reference, this.$el, { placement: this.placement, modifiers: { computeStyle: { gpuAcceleration: false }, preventOverflow: { boundariesElement: 'window' } }, onCreate: function onCreate() { (0, _newArrowCheck3.default)(this, _this); this.resetTransformOrigin(); this.$nextTick(this.popper.update()); }.bind(this), onUpdate: function onUpdate() { (0, _newArrowCheck3.default)(this, _this); this.resetTransformOrigin(); }.bind(this) }); }.bind(this)); } if (this.$parent.$options.name === 'iSelect') { this.width = parseInt((0, _assist.getStyle)(this.$parent.$el, 'width')); } this.tIndex = this.handleGetIndex(); }, destroy: function destroy() { var _this2 = this; if (this.popper) { setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); if (this.popper && !this.popperStatus) { this.popper.destroy(); this.popper = null; } this.popperStatus = false; }.bind(this), 300); } }, resetTransformOrigin: function resetTransformOrigin() { if (!this.popper) return; var x_placement = this.popper.popper.getAttribute('x-placement'); var placementStart = x_placement.split('-')[0]; var placementEnd = x_placement.split('-')[1]; var leftOrRight = x_placement === 'left' || x_placement === 'right'; if (!leftOrRight) { this.popper.popper.style.transformOrigin = placementStart === 'bottom' || placementStart !== 'top' && placementEnd === 'start' ? 'center top' : 'center bottom'; } }, handleGetIndex: function handleGetIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; } }, created: function created() { this.$on('on-update-popper', this.update); this.$on('on-destroy-popper', this.destroy); }, beforeDestroy: function beforeDestroy() { if (this.popper) { this.popper.destroy(); } } }; /***/ }), /* 106 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.15.0 * @license * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ (function (global, factory) { true ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Popper = factory()); }(this, (function () { 'use strict'; var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined'; var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; var timeoutDuration = 0; for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { timeoutDuration = 1; break; } } function microtaskDebounce(fn) { var called = false; return function () { if (called) { return; } called = true; window.Promise.resolve().then(function () { called = false; fn(); }); }; } function taskDebounce(fn) { var scheduled = false; return function () { if (!scheduled) { scheduled = true; setTimeout(function () { scheduled = false; fn(); }, timeoutDuration); } }; } var supportsMicroTasks = isBrowser && window.Promise; /** * Create a debounced version of a method, that's asynchronously deferred * but called in the minimum time possible. * * @method * @memberof Popper.Utils * @argument {Function} fn * @returns {Function} */ var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; /** * Check if the given variable is a function * @method * @memberof Popper.Utils * @argument {Any} functionToCheck - variable to check * @returns {Boolean} answer to: is a function? */ function isFunction(functionToCheck) { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; } /** * Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property */ function getStyleComputedProperty(element, property) { if (element.nodeType !== 1) { return []; } // NOTE: 1 DOM access here var window = element.ownerDocument.defaultView; var css = window.getComputedStyle(element, null); return property ? css[property] : css; } /** * Returns the parentNode or the host of the element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} parent */ function getParentNode(element) { if (element.nodeName === 'HTML') { return element; } return element.parentNode || element.host; } /** * Returns the scrolling parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} scroll parent */ function getScrollParent(element) { // Return body, `getScroll` will take care to get the correct `scrollTop` from it if (!element) { return document.body; } switch (element.nodeName) { case 'HTML': case 'BODY': return element.ownerDocument.body; case '#document': return element.body; } // Firefox want us to check `-x` and `-y` variations as well var _getStyleComputedProp = getStyleComputedProperty(element), overflow = _getStyleComputedProp.overflow, overflowX = _getStyleComputedProp.overflowX, overflowY = _getStyleComputedProp.overflowY; if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { return element; } return getScrollParent(getParentNode(element)); } var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); /** * Determines if the browser is Internet Explorer * @method * @memberof Popper.Utils * @param {Number} version to check * @returns {Boolean} isIE */ function isIE(version) { if (version === 11) { return isIE11; } if (version === 10) { return isIE10; } return isIE11 || isIE10; } /** * Returns the offset parent of the given element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} offset parent */ function getOffsetParent(element) { if (!element) { return document.documentElement; } var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent while (offsetParent === noOffsetParent && element.nextElementSibling) { offsetParent = (element = element.nextElementSibling).offsetParent; } var nodeName = offsetParent && offsetParent.nodeName; if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { return element ? element.ownerDocument.documentElement : document.documentElement; } // .offsetParent will return the closest TH, TD or TABLE in case // no offsetParent is present, I hate this job... if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { return getOffsetParent(offsetParent); } return offsetParent; } function isOffsetContainer(element) { var nodeName = element.nodeName; if (nodeName === 'BODY') { return false; } return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; } /** * Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node */ function getRoot(node) { if (node.parentNode !== null) { return getRoot(node.parentNode); } return node; } /** * Finds the offset parent common to the two provided nodes * @method * @memberof Popper.Utils * @argument {Element} element1 * @argument {Element} element2 * @returns {Element} common offset parent */ function findCommonOffsetParent(element1, element2) { // This check is needed to avoid errors in case one of the elements isn't defined for any reason if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { return document.documentElement; } // Here we make sure to give as "start" the element that comes first in the DOM var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; var start = order ? element1 : element2; var end = order ? element2 : element1; // Get common ancestor container var range = document.createRange(); range.setStart(start, 0); range.setEnd(end, 0); var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { if (isOffsetContainer(commonAncestorContainer)) { return commonAncestorContainer; } return getOffsetParent(commonAncestorContainer); } // one of the nodes is inside shadowDOM, find which one var element1root = getRoot(element1); if (element1root.host) { return findCommonOffsetParent(element1root.host, element2); } else { return findCommonOffsetParent(element1, getRoot(element2).host); } } /** * Gets the scroll value of the given element in the given side (top and left) * @method * @memberof Popper.Utils * @argument {Element} element * @argument {String} side `top` or `left` * @returns {number} amount of scrolled pixels */ function getScroll(element) { var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { var html = element.ownerDocument.documentElement; var scrollingElement = element.ownerDocument.scrollingElement || html; return scrollingElement[upperSide]; } return element[upperSide]; } /* * Sum or subtract the element scroll values (left and top) from a given rect object * @method * @memberof Popper.Utils * @param {Object} rect - Rect object you want to change * @param {HTMLElement} element - The element from the function reads the scroll values * @param {Boolean} subtract - set to true if you want to subtract the scroll values * @return {Object} rect - The modifier rect object */ function includeScroll(rect, element) { var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); var modifier = subtract ? -1 : 1; rect.top += scrollTop * modifier; rect.bottom += scrollTop * modifier; rect.left += scrollLeft * modifier; rect.right += scrollLeft * modifier; return rect; } /* * Helper to detect borders of a given element * @method * @memberof Popper.Utils * @param {CSSStyleDeclaration} styles * Result of `getStyleComputedProperty` on the given element * @param {String} axis - `x` or `y` * @return {number} borders - The borders size of the given axis */ function getBordersSize(styles, axis) { var sideA = axis === 'x' ? 'Left' : 'Top'; var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10); } function getSize(axis, body, html, computedStyle) { return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); } function getWindowSizes(document) { var body = document.body; var html = document.documentElement; var computedStyle = isIE(10) && getComputedStyle(html); return { height: getSize('Height', body, html, computedStyle), width: getSize('Width', body, html, computedStyle) }; } var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var defineProperty = function (obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }; var _extends = Object.assign || 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]; } } } return target; }; /** * Given element offsets, generate an output similar to getBoundingClientRect * @method * @memberof Popper.Utils * @argument {Object} offsets * @returns {Object} ClientRect like output */ function getClientRect(offsets) { return _extends({}, offsets, { right: offsets.left + offsets.width, bottom: offsets.top + offsets.height }); } /** * Get bounding client rect of given element * @method * @memberof Popper.Utils * @param {HTMLElement} element * @return {Object} client rect */ function getBoundingClientRect(element) { var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't // considered in DOM in some circumstances... // This isn't reproducible in IE10 compatibility mode of IE11 try { if (isIE(10)) { rect = element.getBoundingClientRect(); var scrollTop = getScroll(element, 'top'); var scrollLeft = getScroll(element, 'left'); rect.top += scrollTop; rect.left += scrollLeft; rect.bottom += scrollTop; rect.right += scrollLeft; } else { rect = element.getBoundingClientRect(); } } catch (e) {} var result = { left: rect.left, top: rect.top, width: rect.right - rect.left, height: rect.bottom - rect.top }; // subtract scrollbar size from sizes var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; var width = sizes.width || element.clientWidth || result.right - result.left; var height = sizes.height || element.clientHeight || result.bottom - result.top; var horizScrollbar = element.offsetWidth - width; var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border` // we make this check conditional for performance reasons if (horizScrollbar || vertScrollbar) { var styles = getStyleComputedProperty(element); horizScrollbar -= getBordersSize(styles, 'x'); vertScrollbar -= getBordersSize(styles, 'y'); result.width -= horizScrollbar; result.height -= vertScrollbar; } return getClientRect(result); } function getOffsetRectRelativeToArbitraryNode(children, parent) { var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var isIE10 = isIE(10); var isHTML = parent.nodeName === 'HTML'; var childrenRect = getBoundingClientRect(children); var parentRect = getBoundingClientRect(parent); var scrollParent = getScrollParent(children); var styles = getStyleComputedProperty(parent); var borderTopWidth = parseFloat(styles.borderTopWidth, 10); var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10); // In cases where the parent is fixed, we must ignore negative scroll in offset calc if (fixedPosition && isHTML) { parentRect.top = Math.max(parentRect.top, 0); parentRect.left = Math.max(parentRect.left, 0); } var offsets = getClientRect({ top: childrenRect.top - parentRect.top - borderTopWidth, left: childrenRect.left - parentRect.left - borderLeftWidth, width: childrenRect.width, height: childrenRect.height }); offsets.marginTop = 0; offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent // we do this only on HTML because it's the only element that behaves // differently when margins are applied to it. The margins are included in // the box of the documentElement, in the other cases not. if (!isIE10 && isHTML) { var marginTop = parseFloat(styles.marginTop, 10); var marginLeft = parseFloat(styles.marginLeft, 10); offsets.top -= borderTopWidth - marginTop; offsets.bottom -= borderTopWidth - marginTop; offsets.left -= borderLeftWidth - marginLeft; offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them offsets.marginTop = marginTop; offsets.marginLeft = marginLeft; } if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { offsets = includeScroll(offsets, parent); } return offsets; } function getViewportOffsetRectRelativeToArtbitraryNode(element) { var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var html = element.ownerDocument.documentElement; var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); var width = Math.max(html.clientWidth, window.innerWidth || 0); var height = Math.max(html.clientHeight, window.innerHeight || 0); var scrollTop = !excludeScroll ? getScroll(html) : 0; var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; var offset = { top: scrollTop - relativeOffset.top + relativeOffset.marginTop, left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, width: width, height: height }; return getClientRect(offset); } /** * Check if the given element is fixed or is inside a fixed parent * @method * @memberof Popper.Utils * @argument {Element} element * @argument {Element} customContainer * @returns {Boolean} answer to "isFixed?" */ function isFixed(element) { var nodeName = element.nodeName; if (nodeName === 'BODY' || nodeName === 'HTML') { return false; } if (getStyleComputedProperty(element, 'position') === 'fixed') { return true; } var parentNode = getParentNode(element); if (!parentNode) { return false; } return isFixed(parentNode); } /** * Finds the first parent of an element that has a transformed property defined * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} first transformed parent or documentElement */ function getFixedPositionOffsetParent(element) { // This check is needed to avoid errors in case one of the elements isn't defined for any reason if (!element || !element.parentElement || isIE()) { return document.documentElement; } var el = element.parentElement; while (el && getStyleComputedProperty(el, 'transform') === 'none') { el = el.parentElement; } return el || document.documentElement; } /** * Computed the boundaries limits and return them * @method * @memberof Popper.Utils * @param {HTMLElement} popper * @param {HTMLElement} reference * @param {number} padding * @param {HTMLElement} boundariesElement - Element used to define the boundaries * @param {Boolean} fixedPosition - Is in fixed position mode * @returns {Object} Coordinates of the boundaries */ function getBoundaries(popper, reference, padding, boundariesElement) { var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here var boundaries = { top: 0, left: 0 }; var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); // Handle viewport case if (boundariesElement === 'viewport') { boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); } else { // Handle other cases based on DOM element used as boundaries var boundariesNode = void 0; if (boundariesElement === 'scrollParent') { boundariesNode = getScrollParent(getParentNode(reference)); if (boundariesNode.nodeName === 'BODY') { boundariesNode = popper.ownerDocument.documentElement; } } else if (boundariesElement === 'window') { boundariesNode = popper.ownerDocument.documentElement; } else { boundariesNode = boundariesElement; } var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { var _getWindowSizes = getWindowSizes(popper.ownerDocument), height = _getWindowSizes.height, width = _getWindowSizes.width; boundaries.top += offsets.top - offsets.marginTop; boundaries.bottom = height + offsets.top; boundaries.left += offsets.left - offsets.marginLeft; boundaries.right = width + offsets.left; } else { // for all the other DOM elements, this one is good boundaries = offsets; } } // Add paddings padding = padding || 0; var isPaddingNumber = typeof padding === 'number'; boundaries.left += isPaddingNumber ? padding : padding.left || 0; boundaries.top += isPaddingNumber ? padding : padding.top || 0; boundaries.right -= isPaddingNumber ? padding : padding.right || 0; boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; return boundaries; } function getArea(_ref) { var width = _ref.width, height = _ref.height; return width * height; } /** * Utility used to transform the `auto` placement to the placement with more * available space. * @method * @memberof Popper.Utils * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; if (placement.indexOf('auto') === -1) { return placement; } var boundaries = getBoundaries(popper, reference, padding, boundariesElement); var rects = { top: { width: boundaries.width, height: refRect.top - boundaries.top }, right: { width: boundaries.right - refRect.right, height: boundaries.height }, bottom: { width: boundaries.width, height: boundaries.bottom - refRect.bottom }, left: { width: refRect.left - boundaries.left, height: boundaries.height } }; var sortedAreas = Object.keys(rects).map(function (key) { return _extends({ key: key }, rects[key], { area: getArea(rects[key]) }); }).sort(function (a, b) { return b.area - a.area; }); var filteredAreas = sortedAreas.filter(function (_ref2) { var width = _ref2.width, height = _ref2.height; return width >= popper.clientWidth && height >= popper.clientHeight; }); var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; var variation = placement.split('-')[1]; return computedPlacement + (variation ? '-' + variation : ''); } /** * Get offsets to the reference element * @method * @memberof Popper.Utils * @param {Object} state * @param {Element} popper - the popper element * @param {Element} reference - the reference element (the popper will be relative to this) * @param {Element} fixedPosition - is in fixed position mode * @returns {Object} An object containing the offsets which will be applied to the popper */ function getReferenceOffsets(state, popper, reference) { var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); } /** * Get the outer sizes of the given element (offset size + margins) * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Object} object containing width and height properties */ function getOuterSizes(element) { var window = element.ownerDocument.defaultView; var styles = window.getComputedStyle(element); var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); var result = { width: element.offsetWidth + y, height: element.offsetHeight + x }; return result; } /** * Get the opposite placement of the given one * @method * @memberof Popper.Utils * @argument {String} placement * @returns {String} flipped placement */ function getOppositePlacement(placement) { var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; return placement.replace(/left|right|bottom|top/g, function (matched) { return hash[matched]; }); } /** * Get offsets to the popper * @method * @memberof Popper.Utils * @param {Object} position - CSS position the Popper will get applied * @param {HTMLElement} popper - the popper element * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) * @param {String} placement - one of the valid placement options * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper */ function getPopperOffsets(popper, referenceOffsets, placement) { placement = placement.split('-')[0]; // Get popper node sizes var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object var popperOffsets = { width: popperRect.width, height: popperRect.height }; // depending by the popper placement we have to compute its offsets slightly differently var isHoriz = ['right', 'left'].indexOf(placement) !== -1; var mainSide = isHoriz ? 'top' : 'left'; var secondarySide = isHoriz ? 'left' : 'top'; var measurement = isHoriz ? 'height' : 'width'; var secondaryMeasurement = !isHoriz ? 'height' : 'width'; popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; if (placement === secondarySide) { popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; } else { popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; } return popperOffsets; } /** * Mimics the `find` method of Array * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function find(arr, check) { // use native find if supported if (Array.prototype.find) { return arr.find(check); } // use `filter` to obtain the same behavior of `find` return arr.filter(check)[0]; } /** * Return the index of the matching object * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ function findIndex(arr, prop, value) { // use native findIndex if supported if (Array.prototype.findIndex) { return arr.findIndex(function (cur) { return cur[prop] === value; }); } // use `find` + `indexOf` if `findIndex` isn't supported var match = find(arr, function (obj) { return obj[prop] === value; }); return arr.indexOf(match); } /** * Loop trough the list of modifiers and run them in order, * each of them will then edit the data object. * @method * @memberof Popper.Utils * @param {dataObject} data * @param {Array} modifiers * @param {String} ends - Optional modifier name used as stopper * @returns {dataObject} */ function runModifiers(modifiers, data, ends) { var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); modifiersToRun.forEach(function (modifier) { if (modifier['function']) { // eslint-disable-line dot-notation console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); } var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation if (modifier.enabled && isFunction(fn)) { // Add properties to offsets to make them a complete clientRect object // we do this before each modifier to make sure the previous one doesn't // mess with these values data.offsets.popper = getClientRect(data.offsets.popper); data.offsets.reference = getClientRect(data.offsets.reference); data = fn(data, modifier); } }); return data; } /** * Updates the position of the popper, computing the new offsets and applying * the new style.<br /> * Prefer `scheduleUpdate` over `update` because of performance reasons. * @method * @memberof Popper */ function update() { // if popper is destroyed, don't perform any further update if (this.state.isDestroyed) { return; } var data = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: false, offsets: {} }; // compute reference element offsets data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement` data.originalPlacement = data.placement; data.positionFixed = this.options.positionFixed; // compute the popper offsets data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback // the other ones will call `onUpdate` callback if (!this.state.isCreated) { this.state.isCreated = true; this.options.onCreate(data); } else { this.options.onUpdate(data); } } /** * Helper used to know if the given modifier is enabled. * @method * @memberof Popper.Utils * @returns {Boolean} */ function isModifierEnabled(modifiers, modifierName) { return modifiers.some(function (_ref) { var name = _ref.name, enabled = _ref.enabled; return enabled && name === modifierName; }); } /** * Get the prefixed supported property name * @method * @memberof Popper.Utils * @argument {String} property (camelCase) * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) */ function getSupportedPropertyName(property) { var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; var upperProp = property.charAt(0).toUpperCase() + property.slice(1); for (var i = 0; i < prefixes.length; i++) { var prefix = prefixes[i]; var toCheck = prefix ? '' + prefix + upperProp : property; if (typeof document.body.style[toCheck] !== 'undefined') { return toCheck; } } return null; } /** * Destroys the popper. * @method * @memberof Popper */ function destroy() { this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled if (isModifierEnabled(this.modifiers, 'applyStyle')) { this.popper.removeAttribute('x-placement'); this.popper.style.position = ''; this.popper.style.top = ''; this.popper.style.left = ''; this.popper.style.right = ''; this.popper.style.bottom = ''; this.popper.style.willChange = ''; this.popper.style[getSupportedPropertyName('transform')] = ''; } this.disableEventListeners(); // remove the popper if user explicity asked for the deletion on destroy // do not use `remove` because IE11 doesn't support it if (this.options.removeOnDestroy) { this.popper.parentNode.removeChild(this.popper); } return this; } /** * Get the window associated with the element * @argument {Element} element * @returns {Window} */ function getWindow(element) { var ownerDocument = element.ownerDocument; return ownerDocument ? ownerDocument.defaultView : window; } function attachToScrollParents(scrollParent, event, callback, scrollParents) { var isBody = scrollParent.nodeName === 'BODY'; var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; target.addEventListener(event, callback, { passive: true }); if (!isBody) { attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); } scrollParents.push(target); } /** * Setup needed event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function setupEventListeners(reference, options, state, updateBound) { // Resize event listener on window state.updateBound = updateBound; getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); // Scroll event listener on scroll parents var scrollElement = getScrollParent(reference); attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); state.scrollElement = scrollElement; state.eventsEnabled = true; return state; } /** * It will add resize/scroll events and start recalculating * position of the popper element when they are triggered. * @method * @memberof Popper */ function enableEventListeners() { if (!this.state.eventsEnabled) { this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); } } /** * Remove event listeners used to update the popper position * @method * @memberof Popper.Utils * @private */ function removeEventListeners(reference, state) { // Remove resize event listener on window getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents state.scrollParents.forEach(function (target) { target.removeEventListener('scroll', state.updateBound); }); // Reset state state.updateBound = null; state.scrollParents = []; state.scrollElement = null; state.eventsEnabled = false; return state; } /** * It will remove resize/scroll events and won't recalculate popper position * when they are triggered. It also won't trigger `onUpdate` callback anymore, * unless you call `update` method manually. * @method * @memberof Popper */ function disableEventListeners() { if (this.state.eventsEnabled) { cancelAnimationFrame(this.scheduleUpdate); this.state = removeEventListeners(this.reference, this.state); } } /** * Tells if a given input is a number * @method * @memberof Popper.Utils * @param {*} input to check * @return {Boolean} */ function isNumeric(n) { return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); } /** * Set the style to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the style to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setStyles(element, styles) { Object.keys(styles).forEach(function (prop) { var unit = ''; // add unit if the value is numeric and is one of the following if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { unit = 'px'; } element.style[prop] = styles[prop] + unit; }); } /** * Set the attributes to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the attributes to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element */ function setAttributes(element, attributes) { Object.keys(attributes).forEach(function (prop) { var value = attributes[prop]; if (value !== false) { element.setAttribute(prop, attributes[prop]); } else { element.removeAttribute(prop); } }); } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} data.styles - List of style properties - values to apply to popper element * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element * @argument {Object} options - Modifiers configuration and options * @returns {Object} The same data object */ function applyStyle(data) { // any property present in `data.styles` will be applied to the popper, // in this way we can make the 3rd party modifiers add custom styles to it // Be aware, modifiers could override the properties defined in the previous // lines of this modifier! setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper, // they will be set as HTML attributes of the element setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties if (data.arrowElement && Object.keys(data.arrowStyles).length) { setStyles(data.arrowElement, data.arrowStyles); } return data; } /** * Set the x-placement attribute before everything else because it could be used * to add margins to the popper margins needs to be calculated to get the * correct popper offsets. * @method * @memberof Popper.modifiers * @param {HTMLElement} reference - The reference element used to position the popper * @param {HTMLElement} popper - The HTML element used as popper * @param {Object} options - Popper.js options */ function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { // compute reference element offsets var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because // without the position applied we can't guarantee correct computations setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); return options; } /** * @function * @memberof Popper.Utils * @argument {Object} data - The data object generated by `update` method * @argument {Boolean} shouldRound - If the offsets should be rounded at all * @returns {Object} The popper's position offsets rounded * * The tale of pixel-perfect positioning. It's still not 100% perfect, but as * good as it can be within reason. * Discussion here: path_to_url * * Low DPI screens cause a popper to be blurry if not using full pixels (Safari * as well on High DPI screens). * * Firefox prefers no rounding for positioning and does not have blurriness on * high DPI screens. * * Only horizontal placement and left/right values need to be considered. */ function getRoundedOffsets(data, shouldRound) { var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var round = Math.round, floor = Math.floor; var noRound = function noRound(v) { return v; }; var referenceWidth = round(reference.width); var popperWidth = round(popper.width); var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; var isVariation = data.placement.indexOf('-') !== -1; var sameWidthParity = referenceWidth % 2 === popperWidth % 2; var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; var verticalToInteger = !shouldRound ? noRound : round; return { left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), top: verticalToInteger(popper.top), bottom: verticalToInteger(popper.bottom), right: horizontalToInteger(popper.right) }; } var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function computeStyle(data, options) { var x = options.x, y = options.y; var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { return modifier.name === 'applyStyle'; }).gpuAcceleration; if (legacyGpuAccelerationOption !== undefined) { console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); } var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; var offsetParent = getOffsetParent(data.instance.popper); var offsetParentRect = getBoundingClientRect(offsetParent); // Styles var styles = { position: popper.position }; var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); var sideA = x === 'bottom' ? 'top' : 'bottom'; var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported, // we use `translate3d` to apply the position to the popper we // automatically use the supported prefixed version if needed var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?) // If the content of the popper grows once it's been positioned, it // may happen that the popper gets misplaced because of the new content // overflowing its reference element // To avoid this problem, we provide two options (x and y), which allow // the consumer to define the offset origin. // If we position a popper on top of a reference element, we can set // `x` to `top` to make the popper grow towards its top instead of // its bottom. var left = void 0, top = void 0; if (sideA === 'bottom') { // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar) // and not the bottom of the html element if (offsetParent.nodeName === 'HTML') { top = -offsetParent.clientHeight + offsets.bottom; } else { top = -offsetParentRect.height + offsets.bottom; } } else { top = offsets.top; } if (sideB === 'right') { if (offsetParent.nodeName === 'HTML') { left = -offsetParent.clientWidth + offsets.right; } else { left = -offsetParentRect.width + offsets.right; } } else { left = offsets.left; } if (gpuAcceleration && prefixedProperty) { styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; styles[sideA] = 0; styles[sideB] = 0; styles.willChange = 'transform'; } else { // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties var invertTop = sideA === 'bottom' ? -1 : 1; var invertLeft = sideB === 'right' ? -1 : 1; styles[sideA] = top * invertTop; styles[sideB] = left * invertLeft; styles.willChange = sideA + ', ' + sideB; } // Attributes var attributes = { 'x-placement': data.placement }; // Update `data` attributes, styles and arrowStyles data.attributes = _extends({}, attributes, data.attributes); data.styles = _extends({}, styles, data.styles); data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); return data; } /** * Helper used to know if the given modifier depends from another one.<br /> * It checks if the needed modifier is listed and enabled. * @method * @memberof Popper.Utils * @param {Array} modifiers - list of modifiers * @param {String} requestingName - name of requesting modifier * @param {String} requestedName - name of requested modifier * @returns {Boolean} */ function isModifierRequired(modifiers, requestingName, requestedName) { var requesting = find(modifiers, function (_ref) { var name = _ref.name; return name === requestingName; }); var isRequired = !!requesting && modifiers.some(function (modifier) { return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; }); if (!isRequired) { var _requesting = '`' + requestingName + '`'; var requested = '`' + requestedName + '`'; console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); } return isRequired; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function arrow(data, options) { var _data$offsets$arrow; // arrow depends on keepTogether in order to work if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { return data; } var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector if (typeof arrowElement === 'string') { arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier if (!arrowElement) { return data; } } else { // if the arrowElement isn't a query selector we must check that the // provided DOM node is child of its popper node if (!data.instance.popper.contains(arrowElement)) { console.warn('WARNING: `arrow.element` must be child of its popper element!'); return data; } } var placement = data.placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isVertical = ['left', 'right'].indexOf(placement) !== -1; var len = isVertical ? 'height' : 'width'; var sideCapitalized = isVertical ? 'Top' : 'Left'; var side = sideCapitalized.toLowerCase(); var altSide = isVertical ? 'left' : 'top'; var opSide = isVertical ? 'bottom' : 'right'; var arrowElementSize = getOuterSizes(arrowElement)[len]; // // extends keepTogether behavior making sure the popper and its // reference have enough pixels in conjunction // // top/left side if (reference[opSide] - arrowElementSize < popper[side]) { data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); } // bottom/right side if (reference[side] + arrowElementSize > popper[opSide]) { data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; } data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets // take popper margin in account because we don't have this info available var css = getStyleComputedProperty(data.instance.popper); var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10); var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10); var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); data.arrowElement = arrowElement; data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); return data; } /** * Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation */ function getOppositeVariation(variation) { if (variation === 'end') { return 'start'; } else if (variation === 'start') { return 'end'; } return variation; } /** * List of accepted placements to use as values of the `placement` option.<br /> * Valid placements are: * - `auto` * - `top` * - `right` * - `bottom` * - `left` * * Each placement can have a variation from this list: * - `-start` * - `-end` * * Variations are interpreted easily if you think of them as the left to right * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` * is right.<br /> * Vertically (`left` and `right`), `start` is top and `end` is bottom. * * Some valid examples are: * - `top-end` (on top of reference, right aligned) * - `right-start` (on right of reference, top aligned) * - `bottom` (on bottom, centered) * - `auto-end` (on the side with more space available, alignment depends by placement) * * @static * @type {Array} * @enum {String} * @readonly * @method placements * @memberof Popper */ var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end` var validPlacements = placements.slice(3); /** * Given an initial placement, returns all the subsequent placements * clockwise (or counter-clockwise). * * @method * @memberof Popper.Utils * @argument {String} placement - A valid placement (it accepts variations) * @argument {Boolean} counter - Set to true to walk the placements counterclockwise * @returns {Array} placements including their variations */ function clockwise(placement) { var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var index = validPlacements.indexOf(placement); var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); return counter ? arr.reverse() : arr; } var BEHAVIORS = { FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise' }; /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function flip(data, options) { // if `inner` modifier is enabled, we can't use the `flip` modifier if (isModifierEnabled(data.instance.modifiers, 'inner')) { return data; } if (data.flipped && data.placement === data.originalPlacement) { // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides return data; } var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); var placement = data.placement.split('-')[0]; var placementOpposite = getOppositePlacement(placement); var variation = data.placement.split('-')[1] || ''; var flipOrder = []; switch (options.behavior) { case BEHAVIORS.FLIP: flipOrder = [placement, placementOpposite]; break; case BEHAVIORS.CLOCKWISE: flipOrder = clockwise(placement); break; case BEHAVIORS.COUNTERCLOCKWISE: flipOrder = clockwise(placement, true); break; default: flipOrder = options.behavior; } flipOrder.forEach(function (step, index) { if (placement !== step || flipOrder.length === index + 1) { return data; } placement = data.placement.split('-')[0]; placementOpposite = getOppositePlacement(placement); var popperOffsets = data.offsets.popper; var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here var floor = Math.floor; var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); var flippedVariation = flippedVariationByRef || flippedVariationByContent; if (overlapsRef || overflowsBoundaries || flippedVariation) { // this boolean to detect any flip loop data.flipped = true; if (overlapsRef || overflowsBoundaries) { placement = flipOrder[index + 1]; } if (flippedVariation) { variation = getOppositeVariation(variation); } data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with // any additional property we may add in the future data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); data = runModifiers(data.instance.modifiers, data, 'flip'); } }); return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function keepTogether(data) { var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var placement = data.placement.split('-')[0]; var floor = Math.floor; var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; var side = isVertical ? 'right' : 'bottom'; var opSide = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; if (popper[side] < floor(reference[opSide])) { data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; } if (popper[opSide] > floor(reference[side])) { data.offsets.popper[opSide] = floor(reference[side]); } return data; } /** * Converts a string containing value + unit into a px value number * @function * @memberof {modifiers~offset} * @private * @argument {String} str - Value + unit string * @argument {String} measurement - `height` or `width` * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @returns {Number|String} * Value in pixels, or original string if no values were extracted */ function toValue(str, measurement, popperOffsets, referenceOffsets) { // separate value from unit var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); var value = +split[1]; var unit = split[2]; // If it's not a number it's an operator, I guess if (!value) { return str; } if (unit.indexOf('%') === 0) { var element = void 0; switch (unit) { case '%p': element = popperOffsets; break; case '%': case '%r': default: element = referenceOffsets; } var rect = getClientRect(element); return rect[measurement] / 100 * value; } else if (unit === 'vh' || unit === 'vw') { // if is a vh or vw, we calculate the size based on the viewport var size = void 0; if (unit === 'vh') { size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); } else { size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); } return size / 100 * value; } else { // if is an explicit pixel unit, we get rid of the unit and keep the value // if is an implicit unit, it's px, and we return just the value return value; } } /** * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. * @function * @memberof {modifiers~offset} * @private * @argument {String} offset * @argument {Object} popperOffsets * @argument {Object} referenceOffsets * @argument {String} basePlacement * @returns {Array} a two cells array with x and y offsets in numbers */ function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width // in this way the first offset will use an axis and the second one // will use the other one var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands // The regex addresses values with the plus or minus sign in front (+10, -20, etc) var fragments = offset.split(/(\+|\-)/).map(function (frag) { return frag.trim(); }); // Detect if the offset string contains a pair of values or a single one // they could be separated by comma or space var divider = fragments.indexOf(find(fragments, function (frag) { return frag.search(/,|\s/) !== -1; })); if (fragments[divider] && fragments[divider].indexOf(',') === -1) { console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); } // If divider is found, we divide the list of values and operands to divide // them by ofset X and Y. var splitRegex = /\s*,\s*|\s+/; var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations ops = ops.map(function (op, index) { // Most of the units rely on the orientation of the popper var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; var mergeWithPrevious = false; return op // This aggregates any `+` or `-` sign that aren't considered operators // e.g.: 10 + +5 => [10, +, +5] .reduce(function (a, b) { if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { a[a.length - 1] = b; mergeWithPrevious = true; return a; } else if (mergeWithPrevious) { a[a.length - 1] += b; mergeWithPrevious = false; return a; } else { return a.concat(b); } }, []) // Here we convert the string values into number values (in px) .map(function (str) { return toValue(str, measurement, popperOffsets, referenceOffsets); }); }); // Loop trough the offsets arrays and execute the operations ops.forEach(function (op, index) { op.forEach(function (frag, index2) { if (isNumeric(frag)) { offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); } }); }); return offsets; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @argument {Number|String} options.offset=0 * The offset value as described in the modifier description * @returns {Object} The data object, properly modified */ function offset(data, _ref) { var offset = _ref.offset; var placement = data.placement, _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var basePlacement = placement.split('-')[0]; var offsets = void 0; if (isNumeric(+offset)) { offsets = [+offset, 0]; } else { offsets = parseOffset(offset, popper, reference, basePlacement); } if (basePlacement === 'left') { popper.top += offsets[0]; popper.left -= offsets[1]; } else if (basePlacement === 'right') { popper.top += offsets[0]; popper.left += offsets[1]; } else if (basePlacement === 'top') { popper.left += offsets[0]; popper.top -= offsets[1]; } else if (basePlacement === 'bottom') { popper.left += offsets[0]; popper.top += offsets[1]; } data.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function preventOverflow(data, options) { var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to // go one step up and use the next offsetParent as reference to // avoid to make this modifier completely useless and look like broken if (data.instance.reference === boundariesElement) { boundariesElement = getOffsetParent(boundariesElement); } // NOTE: DOM access here // resets the popper's position so that the document size can be calculated excluding // the size of the popper element itself var transformProp = getSupportedPropertyName('transform'); var popperStyles = data.instance.popper.style; // assignment to help minification var top = popperStyles.top, left = popperStyles.left, transform = popperStyles[transformProp]; popperStyles.top = ''; popperStyles.left = ''; popperStyles[transformProp] = ''; var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here // restores the original style properties after the offsets have been computed popperStyles.top = top; popperStyles.left = left; popperStyles[transformProp] = transform; options.boundaries = boundaries; var order = options.priority; var popper = data.offsets.popper; var check = { primary: function primary(placement) { var value = popper[placement]; if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { value = Math.max(popper[placement], boundaries[placement]); } return defineProperty({}, placement, value); }, secondary: function secondary(placement) { var mainSide = placement === 'right' ? 'left' : 'top'; var value = popper[mainSide]; if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); } return defineProperty({}, mainSide, value); } }; order.forEach(function (placement) { var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; popper = _extends({}, popper, check[side](placement)); }); data.offsets.popper = popper; return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function shift(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier if (shiftvariation) { var _data$offsets = data.offsets, reference = _data$offsets.reference, popper = _data$offsets.popper; var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; var side = isVertical ? 'left' : 'top'; var measurement = isVertical ? 'width' : 'height'; var shiftOffsets = { start: defineProperty({}, side, reference[side]), end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) }; data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by update method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function hide(data) { if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { return data; } var refRect = data.offsets.reference; var bound = find(data.instance.modifiers, function (modifier) { return modifier.name === 'preventOverflow'; }).boundaries; if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === true) { return data; } data.hide = true; data.attributes['x-out-of-boundaries'] = ''; } else { // Avoid unnecessary DOM access if visibility hasn't changed if (data.hide === false) { return data; } data.hide = false; data.attributes['x-out-of-boundaries'] = false; } return data; } /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} The data object, properly modified */ function inner(data) { var placement = data.placement; var basePlacement = placement.split('-')[0]; var _data$offsets = data.offsets, popper = _data$offsets.popper, reference = _data$offsets.reference; var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); data.placement = getOppositePlacement(placement); data.offsets.popper = getClientRect(popper); return data; } /** * Modifier function, each modifier can have a function of this type assigned * to its `fn` property.<br /> * These functions will be called on each update, this means that you must * make sure they are performant enough to avoid performance bottlenecks. * * @function ModifierFn * @argument {dataObject} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {dataObject} The data object, properly modified */ /** * Modifiers are plugins used to alter the behavior of your poppers.<br /> * Popper.js uses a set of 9 modifiers to provide all the basic functionalities * needed by the library. * * Usually you don't want to override the `order`, `fn` and `onLoad` props. * All the other properties are configurations that could be tweaked. * @namespace modifiers */ var modifiers = { /** * Modifier used to shift the popper on the start or end of its reference * element.<br /> * It will read the variation of the `placement` property.<br /> * It can be one either `-end` or `-start`. * @memberof modifiers * @inner */ shift: { /** @prop {number} order=100 - Index used to define the order of execution */ order: 100, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: shift }, /** * The `offset` modifier can shift your popper on both its axis. * * It accepts the following units: * - `px` or unit-less, interpreted as pixels * - `%` or `%r`, percentage relative to the length of the reference element * - `%p`, percentage relative to the length of the popper element * - `vw`, CSS viewport width unit * - `vh`, CSS viewport height unit * * For length is intended the main axis relative to the placement of the popper.<br /> * This means that if the placement is `top` or `bottom`, the length will be the * `width`. In case of `left` or `right`, it will be the `height`. * * You can provide a single value (as `Number` or `String`), or a pair of values * as `String` divided by a comma or one (or more) white spaces.<br /> * The latter is a deprecated method because it leads to confusion and will be * removed in v2.<br /> * Additionally, it accepts additions and subtractions between different units. * Note that multiplications and divisions aren't supported. * * Valid examples are: * ``` * 10 * '10%' * '10, 10' * '10%, 10' * '10 + 10%' * '10 - 5vh + 3%' * '-10px + 5vh, 5px - 6%' * ``` * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap * > with their reference element, unfortunately, you will have to disable the `flip` modifier. * > You can read more on this at this [issue](path_to_url * * @memberof modifiers * @inner */ offset: { /** @prop {number} order=200 - Index used to define the order of execution */ order: 200, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: offset, /** @prop {Number|String} offset=0 * The offset value as described in the modifier description */ offset: 0 }, /** * Modifier used to prevent the popper from being positioned outside the boundary. * * A scenario exists where the reference itself is not within the boundaries.<br /> * We can say it has "escaped the boundaries" or just "escaped".<br /> * In this case we need to decide whether the popper should either: * * - detach from the reference and remain "trapped" in the boundaries, or * - if it should ignore the boundary and "escape with its reference" * * When `escapeWithReference` is set to`true` and reference is completely * outside its boundaries, the popper will overflow (or completely leave) * the boundaries in order to remain attached to the edge of the reference. * * @memberof modifiers * @inner */ preventOverflow: { /** @prop {number} order=300 - Index used to define the order of execution */ order: 300, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: preventOverflow, /** * @prop {Array} [priority=['left','right','top','bottom']] * Popper will try to prevent overflow following these priorities by default, * then, it could overflow on the left and on top of the `boundariesElement` */ priority: ['left', 'right', 'top', 'bottom'], /** * @prop {number} padding=5 * Amount of pixel used to define a minimum distance between the boundaries * and the popper. This makes sure the popper always has a little padding * between the edges of its container */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='scrollParent' * Boundaries used by the modifier. Can be `scrollParent`, `window`, * `viewport` or any DOM element. */ boundariesElement: 'scrollParent' }, /** * Modifier used to make sure the reference and its popper stay near each other * without leaving any gap between the two. Especially useful when the arrow is * enabled and you want to ensure that it points to its reference element. * It cares only about the first axis. You can still have poppers with margin * between the popper and its reference element. * @memberof modifiers * @inner */ keepTogether: { /** @prop {number} order=400 - Index used to define the order of execution */ order: 400, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: keepTogether }, /** * This modifier is used to move the `arrowElement` of the popper to make * sure it is positioned between the reference element and its popper element. * It will read the outer size of the `arrowElement` node to detect how many * pixels of conjunction are needed. * * It has no effect if no `arrowElement` is provided. * @memberof modifiers * @inner */ arrow: { /** @prop {number} order=500 - Index used to define the order of execution */ order: 500, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: arrow, /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ element: '[x-arrow]' }, /** * Modifier used to flip the popper's placement when it starts to overlap its * reference element. * * Requires the `preventOverflow` modifier before it in order to work. * * **NOTE:** this modifier will interrupt the current update cycle and will * restart it if it detects the need to flip the placement. * @memberof modifiers * @inner */ flip: { /** @prop {number} order=600 - Index used to define the order of execution */ order: 600, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: flip, /** * @prop {String|Array} behavior='flip' * The behavior used to change the popper's placement. It can be one of * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid * placements (with optional variations) */ behavior: 'flip', /** * @prop {number} padding=5 * The popper will flip if it hits the edges of the `boundariesElement` */ padding: 5, /** * @prop {String|HTMLElement} boundariesElement='viewport' * The element which will define the boundaries of the popper position. * The popper will never be placed outside of the defined boundaries * (except if `keepTogether` is enabled) */ boundariesElement: 'viewport', /** * @prop {Boolean} flipVariations=false * The popper will switch placement variation between `-start` and `-end` when * the reference element overlaps its boundaries. * * The original placement should have a set variation. */ flipVariations: false, /** * @prop {Boolean} flipVariationsByContent=false * The popper will switch placement variation between `-start` and `-end` when * the popper element overlaps its reference boundaries. * * The original placement should have a set variation. */ flipVariationsByContent: false }, /** * Modifier used to make the popper flow toward the inner of the reference element. * By default, when this modifier is disabled, the popper will be placed outside * the reference element. * @memberof modifiers * @inner */ inner: { /** @prop {number} order=700 - Index used to define the order of execution */ order: 700, /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ enabled: false, /** @prop {ModifierFn} */ fn: inner }, /** * Modifier used to hide the popper when its reference element is outside of the * popper boundaries. It will set a `x-out-of-boundaries` attribute which can * be used to hide with a CSS selector the popper when its reference is * out of boundaries. * * Requires the `preventOverflow` modifier before it in order to work. * @memberof modifiers * @inner */ hide: { /** @prop {number} order=800 - Index used to define the order of execution */ order: 800, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: hide }, /** * Computes the style that will be applied to the popper element to gets * properly positioned. * * Note that this modifier will not touch the DOM, it just prepares the styles * so that `applyStyle` modifier can apply it. This separation is useful * in case you need to replace `applyStyle` with a custom implementation. * * This modifier has `850` as `order` value to maintain backward compatibility * with previous versions of Popper.js. Expect the modifiers ordering method * to change in future major versions of the library. * * @memberof modifiers * @inner */ computeStyle: { /** @prop {number} order=850 - Index used to define the order of execution */ order: 850, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: computeStyle, /** * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3D transformation to position the popper. * Otherwise, it will use the `top` and `left` properties */ gpuAcceleration: true, /** * @prop {string} [x='bottom'] * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. * Change this if your popper should grow in a direction different from `bottom` */ x: 'bottom', /** * @prop {string} [x='left'] * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. * Change this if your popper should grow in a direction different from `right` */ y: 'right' }, /** * Applies the computed styles to the popper element. * * All the DOM manipulations are limited to this modifier. This is useful in case * you want to integrate Popper.js inside a framework or view library and you * want to delegate all the DOM manipulations to it. * * Note that if you disable this modifier, you must make sure the popper element * has its position set to `absolute` before Popper.js can do its work! * * Just disable this modifier and define your own to achieve the desired effect. * * @memberof modifiers * @inner */ applyStyle: { /** @prop {number} order=900 - Index used to define the order of execution */ order: 900, /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ enabled: true, /** @prop {ModifierFn} */ fn: applyStyle, /** @prop {Function} */ onLoad: applyStyleOnLoad, /** * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier * @prop {Boolean} gpuAcceleration=true * If true, it uses the CSS 3D transformation to position the popper. * Otherwise, it will use the `top` and `left` properties */ gpuAcceleration: undefined } }; /** * The `dataObject` is an object containing all the information used by Popper.js. * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. * @name dataObject * @property {Object} data.instance The Popper.js instance * @property {String} data.placement Placement applied to popper * @property {String} data.originalPlacement Placement originally defined on init * @property {Boolean} data.flipped True if popper has been flipped by flip modifier * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) * @property {Object} data.boundaries Offsets of the popper boundaries * @property {Object} data.offsets The measurements of popper, reference and arrow elements * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 */ /** * Default options provided to Popper.js constructor.<br /> * These can be overridden using the `options` argument of Popper.js.<br /> * To override an option, simply pass an object with the same * structure of the `options` object, as the 3rd argument. For example: * ``` * new Popper(ref, pop, { * modifiers: { * preventOverflow: { enabled: false } * } * }) * ``` * @type {Object} * @static * @memberof Popper */ var Defaults = { /** * Popper's placement. * @prop {Popper.placements} placement='bottom' */ placement: 'bottom', /** * Set this to true if you want popper to position it self in 'fixed' mode * @prop {Boolean} positionFixed=false */ positionFixed: false, /** * Whether events (resize, scroll) are initially enabled. * @prop {Boolean} eventsEnabled=true */ eventsEnabled: true, /** * Set to true if you want to automatically remove the popper when * you call the `destroy` method. * @prop {Boolean} removeOnDestroy=false */ removeOnDestroy: false, /** * Callback called when the popper is created.<br /> * By default, it is set to no-op.<br /> * Access Popper.js instance with `data.instance`. * @prop {onCreate} */ onCreate: function onCreate() {}, /** * Callback called when the popper is updated. This callback is not called * on the initialization/creation of the popper, but only on subsequent * updates.<br /> * By default, it is set to no-op.<br /> * Access Popper.js instance with `data.instance`. * @prop {onUpdate} */ onUpdate: function onUpdate() {}, /** * List of modifiers used to modify the offsets before they are applied to the popper. * They provide most of the functionalities of Popper.js. * @prop {modifiers} */ modifiers: modifiers }; /** * @callback onCreate * @param {dataObject} data */ /** * @callback onUpdate * @param {dataObject} data */ // Utils // Methods var Popper = function () { /** * Creates a new Popper.js instance. * @class Popper * @param {Element|referenceObject} reference - The reference element used to position the popper * @param {Element} popper - The HTML / XML element used as the popper * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) * @return {Object} instance - The generated Popper.js instance */ function Popper(reference, popper) { var _this = this; var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; classCallCheck(this, Popper); this.scheduleUpdate = function () { return requestAnimationFrame(_this.update); }; // make update() debounced, so that it only runs at most once-per-tick this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it this.options = _extends({}, Popper.Defaults, options); // init state this.state = { isDestroyed: false, isCreated: false, scrollParents: [] }; // get reference and popper elements (allow jQuery wrappers) this.reference = reference && reference.jquery ? reference[0] : reference; this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options this.options.modifiers = {}; Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); }); // Refactoring modifiers' list (Object => Array) this.modifiers = Object.keys(this.options.modifiers).map(function (name) { return _extends({ name: name }, _this.options.modifiers[name]); }) // sort the modifiers by order .sort(function (a, b) { return a.order - b.order; }); // modifiers have the ability to execute arbitrary code when Popper.js get inited // such code is executed in the same order of its modifier // they could add new properties to their options configuration // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! this.modifiers.forEach(function (modifierOptions) { if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); } }); // fire the first update to position the popper in the right place this.update(); var eventsEnabled = this.options.eventsEnabled; if (eventsEnabled) { // setup event listeners, they will take care of update the position in specific situations this.enableEventListeners(); } this.state.eventsEnabled = eventsEnabled; } // We can't use class properties because they don't get listed in the // class prototype and break stuff like Sinon stubs createClass(Popper, [{ key: 'update', value: function update$$1() { return update.call(this); } }, { key: 'destroy', value: function destroy$$1() { return destroy.call(this); } }, { key: 'enableEventListeners', value: function enableEventListeners$$1() { return enableEventListeners.call(this); } }, { key: 'disableEventListeners', value: function disableEventListeners$$1() { return disableEventListeners.call(this); } /** * Schedules an update. It will run on the next UI update available. * @method scheduleUpdate * @memberof Popper */ /** * Collection of utilities useful when writing custom modifiers. * Starting from version 1.7, this method is available only if you * include `popper-utils.js` before `popper.js`. * * **DEPRECATION**: This way to access PopperUtils is deprecated * and will be removed in v2! Use the PopperUtils module directly instead. * Due to the high instability of the methods contained in Utils, we can't * guarantee them to follow semver. Use them at your own risk! * @static * @private * @type {Object} * @deprecated since version 1.8 * @member Utils * @memberof Popper */ }]); return Popper; }(); /** * The `referenceObject` is an object that provides an interface compatible with Popper.js * and lets you use it as replacement of a real DOM node.<br /> * You can use this method to position a popper relatively to a set of coordinates * in case you don't have a DOM node to use as reference. * * ``` * new Popper(referenceObject, popperNode); * ``` * * NB: This feature isn't supported in Internet Explorer 10. * @name referenceObject * @property {Function} data.getBoundingClientRect * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. * @property {number} data.clientWidth * An ES6 getter that will return the width of the virtual reference element. * @property {number} data.clientHeight * An ES6 getter that will return the height of the virtual reference element. */ Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; Popper.placements = placements; Popper.Defaults = Defaults; return Popper; }))); //# sourceMappingURL=popper.js.map /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(107))) /***/ }), /* 107 */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || Function("return this")() || (1,eval)("this"); } catch(e) { // This works if the window reference is available if(typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /* 108 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.i18n = exports.use = exports.t = undefined; var _getPrototypeOf = __webpack_require__(293); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _zhCN = __webpack_require__(296); var _zhCN2 = _interopRequireDefault(_zhCN); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); var _deepmerge = __webpack_require__(298); var _deepmerge2 = _interopRequireDefault(_deepmerge); var _format = __webpack_require__(299); var _format2 = _interopRequireDefault(_format); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var format = (0, _format2.default)(_vue2.default); var lang = _zhCN2.default; var merged = false; var i18nHandler = function i18nHandler() { var vuei18n = (0, _getPrototypeOf2.default)(this || _vue2.default).$t; if (typeof vuei18n === 'function' && !!_vue2.default.locale) { if (!merged) { merged = true; _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, { clone: true })); } return vuei18n.apply(this, arguments); } }; var t = exports.t = function t(path, options) { var value = i18nHandler.apply(this, arguments); if (value !== null && value !== undefined) return value; var array = path.split('.'); var current = lang; for (var i = 0, j = array.length; i < j; i++) { var property = array[i]; value = current[property]; if (i === j - 1) return format(value, options); if (!value) return ''; current = value; } return ''; }; var use = exports.use = function use(l) { lang = l || lang; }; var i18n = exports.i18n = function i18n(fn) { i18nHandler = fn || i18nHandler; }; exports.default = { use: use, t: t, i18n: i18n }; /***/ }), /* 109 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) var $keys = __webpack_require__(85); var hiddenKeys = __webpack_require__(64).concat('length', 'prototype'); exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); }; /***/ }), /* 110 */ /***/ (function(module, exports) { /***/ }), /* 111 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-select'; exports.default = { name: 'iSelectHead', mixins: [_emitter2.default, _locale2.default], components: { Icon: _icon2.default }, props: { disabled: { type: Boolean, default: false }, filterable: { type: Boolean, default: false }, multiple: { type: Boolean, default: false }, remote: { type: Boolean, default: false }, initialLabel: { type: [String, Number, Array] }, values: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, clearable: { type: [Function, Boolean], default: false }, inputElementId: { type: String }, placeholder: { type: String }, queryProp: { type: String, default: '' }, prefix: { type: String }, maxTagCount: { type: Number }, maxTagPlaceholder: { type: Function } }, data: function data() { return { prefixCls: prefixCls, query: '', inputLength: 20, remoteInitialLabel: this.initialLabel, preventRemoteCall: false }; }, computed: { singleDisplayClasses: function singleDisplayClasses() { var _ref; var filterable = this.filterable, multiple = this.multiple, showPlaceholder = this.showPlaceholder; return [(_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-head-with-prefix', this.$slots.prefix || this.prefix), (0, _defineProperty3.default)(_ref, prefixCls + '-placeholder', showPlaceholder && !filterable), (0, _defineProperty3.default)(_ref, prefixCls + '-selected-value', !showPlaceholder && !multiple && !filterable), _ref)]; }, singleDisplayValue: function singleDisplayValue() { if (this.multiple && this.values.length > 0 || this.filterable) return ''; return '' + String(this.selectedSingle) || this.localePlaceholder; }, showPlaceholder: function showPlaceholder() { var status = false; if (!this.multiple) { var value = this.values[0]; if (typeof value === 'undefined' || String(value).trim() === '') { status = !this.remoteInitialLabel; } } else { if (!this.values.length > 0) { status = true; } } return status; }, resetSelect: function resetSelect() { return !this.showPlaceholder && this.clearable; }, inputStyle: function inputStyle() { var style = {}; if (this.multiple) { if (this.showPlaceholder) { style.width = '100%'; } else { style.width = String(this.inputLength) + 'px'; } } return style; }, localePlaceholder: function localePlaceholder() { if (this.placeholder === undefined) { return this.t('i.select.placeholder'); } else { return this.placeholder; } }, selectedSingle: function selectedSingle() { var selected = this.values[0]; return selected ? selected.label : this.remoteInitialLabel || ''; }, selectedMultiple: function selectedMultiple() { return this.multiple ? this.values : []; }, headCls: function headCls() { return (0, _defineProperty3.default)({}, prefixCls + '-head-flex', this.filterable && (this.$slots.prefix || this.prefix)); }, arrowType: function arrowType() { var type = 'ios-arrow-down'; if (this.$IVIEW) { if (this.$IVIEW.select.customArrow) { type = ''; } else if (this.$IVIEW.select.arrow) { type = this.$IVIEW.select.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.select.customArrow) { type = this.$IVIEW.select.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.select.arrowSize) { size = this.$IVIEW.select.arrowSize; } } return size; } }, methods: { onInputFocus: function onInputFocus() { this.$emit('on-input-focus'); }, onInputBlur: function onInputBlur() { if (!this.values.length) this.query = ''; this.$emit('on-input-blur'); }, removeTag: function removeTag(value) { if (this.disabled) return false; this.dispatch('iSelect', 'on-select-selected', value); }, resetInputState: function resetInputState() { this.inputLength = this.$refs.input.value.length * 12 + 20; this.$emit('on-keydown'); }, handleInputDelete: function handleInputDelete(e) { var targetValue = e.target.value; if (this.multiple && this.selectedMultiple.length && this.query === '' && targetValue === '') { this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]); } }, onHeaderClick: function onHeaderClick(e) { if (this.filterable && e.target === this.$el) { this.$refs.input.focus(); } }, onClear: function onClear() { this.$emit('on-clear'); } }, watch: { values: function values(_ref3) { var _this = this; var _ref4 = (0, _slicedToArray3.default)(_ref3, 1), value = _ref4[0]; if (!this.filterable) return; this.preventRemoteCall = true; if (this.multiple) { this.query = ''; this.preventRemoteCall = false; return; } if (typeof value === 'undefined' || value === '' || value === null) this.query = '';else this.query = value.label; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); return this.preventRemoteCall = false; }.bind(this)); }, query: function query(val) { if (this.preventRemoteCall) { this.preventRemoteCall = false; return; } this.$emit('on-query-change', val); }, queryProp: function queryProp(query) { if (query !== this.query) this.query = query; } } }; /***/ }), /* 112 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var returnArrayFn = function () { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined); exports.default = { props: { options: { type: Array, default: returnArrayFn }, slotOptions: { type: Array, default: returnArrayFn }, slotUpdateHook: { type: Function, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); }.bind(undefined) } }, functional: true, render: function render(h, _ref) { var props = _ref.props, parent = _ref.parent; if (props.slotOptions !== parent.$slots.default) props.slotUpdateHook(); return props.options; } }; /***/ }), /* 113 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-select-item'; exports.default = { name: 'iOption', componentName: 'select-item', mixins: [_emitter2.default], props: { value: { type: [String, Number], required: true }, label: { type: [String, Number] }, disabled: { type: Boolean, default: false }, selected: { type: Boolean, default: false }, isFocused: { type: Boolean, default: false } }, data: function data() { return { searchLabel: '', autoComplete: false }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-selected', this.selected && !this.autoComplete), (0, _defineProperty3.default)(_ref, prefixCls + '-focus', this.isFocused), _ref)]; }, showLabel: function showLabel() { return this.label ? this.label : this.value; }, optionLabel: function optionLabel() { return this.label || this.$el && this.$el.textContent; } }, methods: { select: function select() { if (this.disabled) return false; this.dispatch('iSelect', 'on-select-selected', { value: this.value, label: this.optionLabel }); this.$emit('on-select-selected', { value: this.value, label: this.optionLabel }); } }, mounted: function mounted() { var Select = (0, _assist.findComponentUpward)(this, 'iSelect'); if (Select) this.autoComplete = Select.autoComplete; } }; /***/ }), /* 114 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _isNan = __webpack_require__(317); var _isNan2 = _interopRequireDefault(_isNan); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _calcTextareaHeight = __webpack_require__(320); var _calcTextareaHeight2 = _interopRequireDefault(_calcTextareaHeight); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-input'; exports.default = { name: 'Input', mixins: [_emitter2.default], props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['text', 'textarea', 'password', 'url', 'email', 'date', 'number', 'tel']); }, default: 'text' }, value: { type: [String, Number], default: '' }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, placeholder: { type: String, default: '' }, maxlength: { type: Number }, disabled: { type: Boolean, default: false }, icon: String, autosize: { type: [Boolean, Object], default: false }, rows: { type: Number, default: 2 }, readonly: { type: Boolean, default: false }, name: { type: String }, number: { type: Boolean, default: false }, autofocus: { type: Boolean, default: false }, spellcheck: { type: Boolean, default: false }, autocomplete: { type: String, default: 'off' }, clearable: { type: Boolean, default: false }, elementId: { type: String }, wrap: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['hard', 'soft']); }, default: 'soft' }, prefix: { type: String, default: '' }, suffix: { type: String, default: '' }, search: { type: Boolean, default: false }, enterButton: { type: [Boolean, String], default: false } }, data: function data() { return { currentValue: this.value, prefixCls: prefixCls, prepend: true, append: true, slotReady: false, textareaStyles: {}, showPrefix: false, showSuffix: false, isOnComposition: false }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrapper', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-wrapper-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-type', this.type), (0, _defineProperty3.default)(_ref, prefixCls + '-group', this.prepend || this.append || this.search && this.enterButton), (0, _defineProperty3.default)(_ref, prefixCls + '-group-' + String(this.size), (this.prepend || this.append || this.search && this.enterButton) && !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-group-with-prepend', this.prepend), (0, _defineProperty3.default)(_ref, prefixCls + '-group-with-append', this.append || this.search && this.enterButton), (0, _defineProperty3.default)(_ref, prefixCls + '-hide-icon', this.append), (0, _defineProperty3.default)(_ref, prefixCls + '-with-search', this.search && this.enterButton), _ref)]; }, inputClasses: function inputClasses() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref2, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref2, prefixCls + '-with-prefix', this.showPrefix), (0, _defineProperty3.default)(_ref2, prefixCls + '-with-suffix', this.showSuffix || this.search && this.enterButton === false), _ref2)]; }, textareaClasses: function textareaClasses() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-disabled', this.disabled)]; } }, methods: { handleEnter: function handleEnter(event) { this.$emit('on-enter', event); if (this.search) this.$emit('on-search', this.currentValue); }, handleKeydown: function handleKeydown(event) { this.$emit('on-keydown', event); }, handleKeypress: function handleKeypress(event) { this.$emit('on-keypress', event); }, handleKeyup: function handleKeyup(event) { this.$emit('on-keyup', event); }, handleIconClick: function handleIconClick(event) { this.$emit('on-click', event); }, handleFocus: function handleFocus(event) { this.$emit('on-focus', event); }, handleBlur: function handleBlur(event) { this.$emit('on-blur', event); if (!(0, _assist.findComponentUpward)(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { this.dispatch('FormItem', 'on-form-blur', this.currentValue); } }, handleComposition: function handleComposition(event) { if (event.type === 'compositionstart') { this.isOnComposition = true; } if (event.type === 'compositionend') { this.isOnComposition = false; this.handleInput(event); } }, handleInput: function handleInput(event) { if (this.isOnComposition) return; var value = event.target.value; if (this.number && value !== '') value = (0, _isNan2.default)(Number(value)) ? value : Number(value); this.$emit('input', value); this.setCurrentValue(value); this.$emit('on-change', event); }, handleChange: function handleChange(event) { this.$emit('on-input-change', event); }, setCurrentValue: function setCurrentValue(value) { var _this = this; if (value === this.currentValue) return; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.resizeTextarea(); }.bind(this)); this.currentValue = value; if (!(0, _assist.findComponentUpward)(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { this.dispatch('FormItem', 'on-form-change', value); } }, resizeTextarea: function resizeTextarea() { var autosize = this.autosize; if (!autosize || this.type !== 'textarea') { return false; } var minRows = autosize.minRows; var maxRows = autosize.maxRows; this.textareaStyles = (0, _calcTextareaHeight2.default)(this.$refs.textarea, minRows, maxRows); }, focus: function focus() { if (this.type === 'textarea') { this.$refs.textarea.focus(); } else { this.$refs.input.focus(); } }, blur: function blur() { if (this.type === 'textarea') { this.$refs.textarea.blur(); } else { this.$refs.input.blur(); } }, handleClear: function handleClear() { var e = { target: { value: '' } }; this.$emit('input', ''); this.setCurrentValue(''); this.$emit('on-change', e); this.$emit('on-clear'); }, handleSearch: function handleSearch() { if (this.disabled) return false; this.$refs.input.focus(); this.$emit('on-search', this.currentValue); } }, watch: { value: function value(val) { this.setCurrentValue(val); } }, mounted: function mounted() { if (this.type !== 'textarea') { this.prepend = this.$slots.prepend !== undefined; this.append = this.$slots.append !== undefined; this.showPrefix = this.prefix !== '' || this.$slots.prefix !== undefined; this.showSuffix = this.suffix !== '' || this.$slots.suffix !== undefined; } else { this.prepend = false; this.append = false; } this.slotReady = true; this.resizeTextarea(); } }; /***/ }), /* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue__ = __webpack_require__(116); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_avatar_vue__ = __webpack_require__(330); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_avatar_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_avatar_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_avatar_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_avatar_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_avatar_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-avatar'; exports.default = { name: 'Avatar', components: { Icon: _icon2.default }, props: { shape: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['circle', 'square']); }, default: 'circle' }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, src: { type: String }, icon: { type: String }, customIcon: { type: String, default: '' } }, data: function data() { return { prefixCls: prefixCls, scale: 1, childrenWidth: 0, isSlotShow: false }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.shape), prefixCls + '-' + String(this.size), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-image', !!this.src), (0, _defineProperty3.default)(_ref, prefixCls + '-icon', !!this.icon || !!this.customIcon), _ref)]; }, childrenStyle: function childrenStyle() { var style = {}; if (this.isSlotShow) { style = { msTransform: 'scale(' + String(this.scale) + ')', WebkitTransform: 'scale(' + String(this.scale) + ')', transform: 'scale(' + String(this.scale) + ')', position: 'absolute', display: 'inline-block', left: 'calc(50% - ' + String(Math.round(this.childrenWidth / 2)) + 'px)' }; } return style; } }, methods: { setScale: function setScale() { this.isSlotShow = !this.src && !this.icon; if (this.$refs.children) { this.childrenWidth = this.$refs.children.offsetWidth; var avatarWidth = this.$el.getBoundingClientRect().width; if (avatarWidth - 8 < this.childrenWidth) { this.scale = (avatarWidth - 8) / this.childrenWidth; } else { this.scale = 1; } } }, handleError: function handleError(e) { this.$emit('on-error', e); } }, mounted: function mounted() { this.setScale(); }, updated: function updated() { this.setScale(); } }; /***/ }), /* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-back-top'; exports.default = { props: { height: { type: Number, default: 400 }, bottom: { type: Number, default: 30 }, right: { type: Number, default: 30 }, duration: { type: Number, default: 1000 } }, data: function data() { return { backTop: false }; }, mounted: function mounted() { (0, _dom.on)(window, 'scroll', this.handleScroll); (0, _dom.on)(window, 'resize', this.handleScroll); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(window, 'scroll', this.handleScroll); (0, _dom.off)(window, 'resize', this.handleScroll); }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-show', this.backTop)]; }, styles: function styles() { return { bottom: String(this.bottom) + 'px', right: String(this.right) + 'px' }; }, innerClasses: function innerClasses() { return prefixCls + '-inner'; } }, methods: { handleScroll: function handleScroll() { this.backTop = window.pageYOffset >= this.height; }, back: function back() { var sTop = document.documentElement.scrollTop || document.body.scrollTop; (0, _assist.scrollTop)(window, sTop, 0, this.duration); this.$emit('on-click'); } } }; /***/ }), /* 118 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-badge'; exports.default = { name: 'Badge', props: { count: Number, dot: { type: Boolean, default: false }, overflowCount: { type: [Number, String], default: 99 }, className: String, showZero: { type: Boolean, default: false }, text: { type: String, default: '' }, status: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['success', 'processing', 'default', 'error', 'warning']); } }, type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['success', 'primary', 'normal', 'error', 'warning', 'info']); } }, offset: { type: Array } }, computed: { classes: function classes() { return '' + prefixCls; }, dotClasses: function dotClasses() { return prefixCls + '-dot'; }, countClasses: function countClasses() { var _ref; return [prefixCls + '-count', (_ref = {}, (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), (0, _defineProperty3.default)(_ref, prefixCls + '-count-alone', this.alone), (0, _defineProperty3.default)(_ref, prefixCls + '-count-' + String(this.type), !!this.type), _ref)]; }, statusClasses: function statusClasses() { return [prefixCls + '-status-dot', (0, _defineProperty3.default)({}, prefixCls + '-status-' + String(this.status), !!this.status)]; }, styles: function styles() { var style = {}; if (this.offset && this.offset.length === 2) { style['margin-top'] = String(this.offset[0]) + 'px'; style['margin-right'] = String(this.offset[1]) + 'px'; } return style; }, finalCount: function finalCount() { if (this.text !== '') return this.text; return parseInt(this.count) >= parseInt(this.overflowCount) ? String(this.overflowCount) + '+' : this.count; }, badge: function badge() { var status = false; if (this.count) { status = !(parseInt(this.count) === 0); } if (this.dot) { status = true; if (this.count !== null) { if (parseInt(this.count) === 0) { status = false; } } } if (this.text !== '') status = true; return status || this.showZero; }, hasCount: function hasCount() { if (this.count || this.text !== '') return true; if (this.showZero && parseInt(this.count) === 0) return true;else return false; }, alone: function alone() { return this.$slots.default === undefined; } } }; /***/ }), /* 119 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-breadcrumb'; exports.default = { name: 'Breadcrumb', props: { separator: { type: String, default: '/' } }, computed: { classes: function classes() { return '' + prefixCls; } }, mounted: function mounted() { this.updateChildren(); }, updated: function updated() { var _this = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.updateChildren(); }.bind(this)); }, methods: { updateChildren: function updateChildren() { var _this2 = this; this.$children.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this2); child.separator = this.separator; }.bind(this)); } }, watch: { separator: function separator() { this.updateChildren(); } } }; /***/ }), /* 120 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _link = __webpack_require__(55); var _link2 = _interopRequireDefault(_link); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-breadcrumb-item'; exports.default = { name: 'BreadcrumbItem', mixins: [_link2.default], props: {}, data: function data() { return { separator: '', showSeparator: false }; }, computed: { linkClasses: function linkClasses() { return prefixCls + '-link'; }, separatorClasses: function separatorClasses() { return prefixCls + '-separator'; } }, mounted: function mounted() { this.showSeparator = this.$slots.separator !== undefined; } }; /***/ }), /* 121 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); var _link = __webpack_require__(55); var _link2 = _interopRequireDefault(_link); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-btn'; exports.default = { name: 'Button', mixins: [_link2.default], components: { Icon: _icon2.default }, props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['default', 'primary', 'dashed', 'text', 'info', 'success', 'warning', 'error']); }, default: 'default' }, shape: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['circle', 'circle-outline']); } }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, loading: Boolean, disabled: Boolean, htmlType: { default: 'button', validator: function validator(value) { return (0, _assist.oneOf)(value, ['button', 'submit', 'reset']); } }, icon: { type: String, default: '' }, customIcon: { type: String, default: '' }, long: { type: Boolean, default: false }, ghost: { type: Boolean, default: false } }, data: function data() { return { showSlot: true }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.type), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-long', this.long), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.shape), !!this.shape), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), this.size !== 'default'), (0, _defineProperty3.default)(_ref, prefixCls + '-loading', this.loading != null && this.loading), (0, _defineProperty3.default)(_ref, prefixCls + '-icon-only', !this.showSlot && (!!this.icon || !!this.customIcon || this.loading)), (0, _defineProperty3.default)(_ref, prefixCls + '-ghost', this.ghost), _ref)]; }, isHrefPattern: function isHrefPattern() { var to = this.to; return !!to; }, tagName: function tagName() { var isHrefPattern = this.isHrefPattern; return isHrefPattern ? 'a' : 'button'; }, tagProps: function tagProps() { var isHrefPattern = this.isHrefPattern; if (isHrefPattern) { var linkUrl = this.linkUrl, target = this.target; return { href: linkUrl, target: target }; } else { var htmlType = this.htmlType; return { type: htmlType }; } } }, methods: { handleClickLink: function handleClickLink(event) { this.$emit('click', event); var openInNewWindow = event.ctrlKey || event.metaKey; this.handleCheckClick(event, openInNewWindow); } }, mounted: function mounted() { this.showSlot = this.$slots.default !== undefined; } }; /***/ }), /* 122 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-btn-group'; exports.default = { name: 'ButtonGroup', props: { size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, shape: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['circle', 'circle-outline']); } }, vertical: { type: Boolean, default: false } }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.shape), !!this.shape), (0, _defineProperty3.default)(_ref, prefixCls + '-vertical', this.vertical), _ref)]; } } }; /***/ }), /* 123 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-card'; var defaultPadding = 16; exports.default = { name: 'Card', components: { Icon: _icon2.default }, props: { bordered: { type: Boolean, default: true }, disHover: { type: Boolean, default: false }, shadow: { type: Boolean, default: false }, padding: { type: Number, default: defaultPadding }, title: { type: String }, icon: { type: String } }, data: function data() { return { showHead: true, showExtra: true }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-bordered', this.bordered && !this.shadow), (0, _defineProperty3.default)(_ref, prefixCls + '-dis-hover', this.disHover || this.shadow), (0, _defineProperty3.default)(_ref, prefixCls + '-shadow', this.shadow), _ref)]; }, headClasses: function headClasses() { return prefixCls + '-head'; }, extraClasses: function extraClasses() { return prefixCls + '-extra'; }, bodyClasses: function bodyClasses() { return prefixCls + '-body'; }, bodyStyles: function bodyStyles() { if (this.padding !== defaultPadding) { return { padding: String(this.padding) + 'px' }; } else { return ''; } } }, mounted: function mounted() { this.showHead = this.title || this.$slots.title !== undefined; this.showExtra = this.$slots.extra !== undefined; } }; /***/ }), /* 124 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-carousel'; exports.default = { name: 'Carousel', components: { Icon: _icon2.default }, props: { arrow: { type: String, default: 'hover', validator: function validator(value) { return (0, _assist.oneOf)(value, ['hover', 'always', 'never']); } }, autoplay: { type: Boolean, default: false }, autoplaySpeed: { type: Number, default: 2000 }, loop: { type: Boolean, default: false }, easing: { type: String, default: 'ease' }, dots: { type: String, default: 'inside', validator: function validator(value) { return (0, _assist.oneOf)(value, ['inside', 'outside', 'none']); } }, radiusDot: { type: Boolean, default: false }, trigger: { type: String, default: 'click', validator: function validator(value) { return (0, _assist.oneOf)(value, ['click', 'hover']); } }, value: { type: Number, default: 0 }, height: { type: [String, Number], default: 'auto', validator: function validator(value) { return value === 'auto' || Object.prototype.toString.call(value) === '[object Number]'; } } }, data: function data() { return { prefixCls: prefixCls, listWidth: 0, trackWidth: 0, trackOffset: 0, trackCopyOffset: 0, showCopyTrack: false, slides: [], slideInstances: [], timer: null, ready: false, currentIndex: this.value, trackIndex: this.value, copyTrackIndex: this.value, hideTrackPos: -1 }; }, computed: { classes: function classes() { return ['' + prefixCls]; }, trackStyles: function trackStyles() { var visibleStyle = this.trackIndex === -1 ? 'hidden' : 'visible'; return { width: String(this.trackWidth) + 'px', transform: 'translate3d(' + -this.trackOffset + 'px, 0px, 0px)', transition: 'transform 500ms ' + String(this.easing), visibility: visibleStyle }; }, copyTrackStyles: function copyTrackStyles() { return { width: String(this.trackWidth) + 'px', transform: 'translate3d(' + -this.trackCopyOffset + 'px, 0px, 0px)', transition: 'transform 500ms ' + String(this.easing), position: 'absolute' }; }, arrowClasses: function arrowClasses() { return [prefixCls + '-arrow', prefixCls + '-arrow-' + String(this.arrow)]; }, dotsClasses: function dotsClasses() { return [prefixCls + '-dots', prefixCls + '-dots-' + String(this.dots)]; } }, methods: { handlerClickEvent: function handlerClickEvent(type) { this.$emit('on-click', this[type]); }, findChild: function findChild(cb) { var _this2 = this; var find = function find(child) { var _this = this; var name = child.$options.componentName; if (name) { cb(child); } else if (child.$children.length) { child.$children.forEach(function (innerChild) { (0, _newArrowCheck3.default)(this, _this); find(innerChild, cb); }.bind(this)); } }; if (this.slideInstances.length || !this.$children) { this.slideInstances.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this2); find(child); }.bind(this)); } else { this.$children.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this2); find(child); }.bind(this)); } }, initCopyTrackDom: function initCopyTrackDom() { var _this3 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); this.$refs.copyTrack.innerHTML = this.$refs.originTrack.innerHTML; }.bind(this)); }, updateSlides: function updateSlides(init) { var _this4 = this; var slides = []; var index = 1; this.findChild(function (child) { (0, _newArrowCheck3.default)(this, _this4); slides.push({ $el: child.$el }); child.index = index++; if (init) { this.slideInstances.push(child); } }.bind(this)); this.slides = slides; this.updatePos(); }, updatePos: function updatePos() { var _this5 = this; this.findChild(function (child) { (0, _newArrowCheck3.default)(this, _this5); child.width = this.listWidth; child.height = typeof this.height === 'number' ? String(this.height) + 'px' : this.height; }.bind(this)); var slidesLength = this.slides.length || 0; this.trackWidth = slidesLength * this.listWidth; }, slotChange: function slotChange() { var _this6 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this6); this.slides = []; this.slideInstances = []; this.updateSlides(true, true); this.updatePos(); this.updateOffset(); }.bind(this)); }, handleResize: function handleResize() { this.listWidth = parseInt((0, _assist.getStyle)(this.$el, 'width')); this.updatePos(); this.updateOffset(); }, updateTrackPos: function updateTrackPos(index) { if (this.showCopyTrack) { this.trackIndex = index; } else { this.copyTrackIndex = index; } }, updateTrackIndex: function updateTrackIndex(index) { if (this.showCopyTrack) { this.copyTrackIndex = index; } else { this.trackIndex = index; } this.currentIndex = index; }, add: function add(offset) { var slidesLen = this.slides.length; if (this.loop) { if (offset > 0) { this.hideTrackPos = -1; } else { this.hideTrackPos = slidesLen; } this.updateTrackPos(this.hideTrackPos); } var oldIndex = this.showCopyTrack ? this.copyTrackIndex : this.trackIndex; var index = oldIndex + offset; while (index < 0) { index += slidesLen; }if ((offset > 0 && index === slidesLen || offset < 0 && index === slidesLen - 1) && this.loop) { this.showCopyTrack = !this.showCopyTrack; this.trackIndex += offset; this.copyTrackIndex += offset; } else { if (!this.loop) index = index % this.slides.length; this.updateTrackIndex(index); } this.currentIndex = index === this.slides.length ? 0 : index; this.$emit('on-change', oldIndex, this.currentIndex); this.$emit('input', this.currentIndex); }, arrowEvent: function arrowEvent(offset) { this.setAutoplay(); this.add(offset); }, dotsEvent: function dotsEvent(event, n) { var curIndex = this.showCopyTrack ? this.copyTrackIndex : this.trackIndex; var oldCurrentIndex = this.currentIndex; if (event === this.trigger && curIndex !== n) { this.updateTrackIndex(n); this.$emit('on-change', oldCurrentIndex, this.currentIndex); this.$emit('input', n); this.setAutoplay(); } }, setAutoplay: function setAutoplay() { var _this7 = this; window.clearInterval(this.timer); if (this.autoplay) { this.timer = window.setInterval(function () { (0, _newArrowCheck3.default)(this, _this7); this.add(1); }.bind(this), this.autoplaySpeed); } }, updateOffset: function updateOffset() { var _this8 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this8); var ofs = this.copyTrackIndex > 0 ? -1 : 1; this.trackOffset = this.trackIndex * this.listWidth; this.trackCopyOffset = this.copyTrackIndex * this.listWidth + ofs; }.bind(this)); } }, watch: { autoplay: function autoplay() { this.setAutoplay(); }, autoplaySpeed: function autoplaySpeed() { this.setAutoplay(); }, trackIndex: function trackIndex() { this.updateOffset(); }, copyTrackIndex: function copyTrackIndex() { this.updateOffset(); }, height: function height() { this.updatePos(); }, value: function value(val) { this.updateTrackIndex(val); this.setAutoplay(); } }, mounted: function mounted() { this.updateSlides(true); this.handleResize(); this.setAutoplay(); (0, _dom.on)(window, 'resize', this.handleResize); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(window, 'resize', this.handleResize); } }; /***/ }), /* 125 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-carousel-item'; exports.default = { componentName: 'carousel-item', name: 'CarouselItem', data: function data() { return { prefixCls: prefixCls, width: 0, height: 'auto', left: 0 }; }, computed: { styles: function styles() { return { width: String(this.width) + 'px', height: '' + String(this.height), left: String(this.left) + 'px' }; } }, mounted: function mounted() { this.$parent.slotChange(); }, watch: { width: function width(val) { var _this = this; if (val && this.$parent.loop) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.$parent.initCopyTrackDom(); }.bind(this)); } }, height: function height(val) { var _this2 = this; if (val && this.$parent.loop) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.$parent.initCopyTrackDom(); }.bind(this)); } } }, beforeDestroy: function beforeDestroy() { this.$parent.slotChange(); } }; /***/ }), /* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _stringify = __webpack_require__(54); var _stringify2 = _interopRequireDefault(_stringify); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _caspanel = __webpack_require__(356); var _caspanel2 = _interopRequireDefault(_caspanel); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-cascader'; var selectPrefixCls = 'ivu-select'; exports.default = { name: 'Cascader', mixins: [_emitter2.default, _locale2.default], components: { iInput: _input2.default, Drop: _dropdown2.default, Icon: _icon2.default, Caspanel: _caspanel2.default }, directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, props: { data: { type: Array, default: function _default() { return []; } }, value: { type: Array, default: function _default() { return []; } }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: true }, placeholder: { type: String }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, trigger: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['click', 'hover']); }, default: 'click' }, changeOnSelect: { type: Boolean, default: false }, renderFormat: { type: Function, default: function _default(label) { return label.join(' / '); } }, loadData: { type: Function }, filterable: { type: Boolean, default: false }, notFoundText: { type: String }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, name: { type: String }, elementId: { type: String } }, data: function data() { return { prefixCls: prefixCls, selectPrefixCls: selectPrefixCls, visible: false, selected: [], tmpSelected: [], updatingValue: false, currentValue: this.value, query: '', validDataStr: '', isLoadedChildren: false }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-show-clear', this.showCloseIcon), (0, _defineProperty3.default)(_ref, prefixCls + '-size-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-visible', this.visible), (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-not-found', this.filterable && this.query !== '' && !this.querySelections.length), _ref)]; }, showCloseIcon: function showCloseIcon() { return this.currentValue && this.currentValue.length && this.clearable && !this.disabled; }, displayRender: function displayRender() { var label = []; for (var i = 0; i < this.selected.length; i++) { label.push(this.selected[i].label); } return this.renderFormat(label, this.selected); }, displayInputRender: function displayInputRender() { return this.filterable ? '' : this.displayRender; }, localePlaceholder: function localePlaceholder() { if (this.placeholder === undefined) { return this.t('i.select.placeholder'); } else { return this.placeholder; } }, inputPlaceholder: function inputPlaceholder() { return this.filterable && this.currentValue.length ? null : this.localePlaceholder; }, localeNotFoundText: function localeNotFoundText() { if (this.notFoundText === undefined) { return this.t('i.select.noMatch'); } else { return this.notFoundText; } }, querySelections: function querySelections() { var _this = this; var selections = []; function getSelections(arr, label, value) { for (var i = 0; i < arr.length; i++) { var item = arr[i]; item.__label = label ? label + ' / ' + item.label : item.label; item.__value = value ? [].concat((0, _toConsumableArray3.default)(value), [item.value]) : [item.value]; if (item.children && item.children.length) { getSelections(item.children, item.__label, item.__value); delete item.__label; delete item.__value; } else { selections.push({ label: item.__label, value: item.__value, display: item.__label, item: item, disabled: !!item.disabled }); } } } getSelections(this.data); selections = selections.filter(function (item) { (0, _newArrowCheck3.default)(this, _this); return item.label ? item.label.indexOf(this.query) > -1 : false; }.bind(this)).map(function (item) { (0, _newArrowCheck3.default)(this, _this); item.display = item.display.replace(new RegExp(this.query, 'g'), '<span>' + String(this.query) + '</span>'); return item; }.bind(this)); return selections; }, arrowType: function arrowType() { var type = 'ios-arrow-down'; if (this.$IVIEW) { if (this.$IVIEW.cascader.customArrow) { type = ''; } else if (this.$IVIEW.cascader.arrow) { type = this.$IVIEW.cascader.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.cascader.customArrow) { type = this.$IVIEW.cascader.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.cascader.arrowSize) { size = this.$IVIEW.cascader.arrowSize; } } return size; } }, methods: { clearSelect: function clearSelect() { if (this.disabled) return false; var oldVal = (0, _stringify2.default)(this.currentValue); this.currentValue = this.selected = this.tmpSelected = []; this.handleClose(); this.emitValue(this.currentValue, oldVal); this.broadcast('Caspanel', 'on-clear'); }, handleClose: function handleClose() { this.visible = false; }, toggleOpen: function toggleOpen() { if (this.disabled) return false; if (this.visible) { if (!this.filterable) this.handleClose(); } else { this.onFocus(); } }, onFocus: function onFocus() { this.visible = true; if (!this.currentValue.length) { this.broadcast('Caspanel', 'on-clear'); } }, updateResult: function updateResult(result) { this.tmpSelected = result; }, updateSelected: function updateSelected() { var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var changeOnSelectDataChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!this.changeOnSelect || init || changeOnSelectDataChange) { this.broadcast('Caspanel', 'on-find-selected', { value: this.currentValue }); } }, emitValue: function emitValue(val, oldVal) { var _this2 = this; if ((0, _stringify2.default)(val) !== oldVal) { this.$emit('on-change', this.currentValue, JSON.parse((0, _stringify2.default)(this.selected))); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.dispatch('FormItem', 'on-form-change', { value: this.currentValue, selected: JSON.parse((0, _stringify2.default)(this.selected)) }); }.bind(this)); } }, handleInput: function handleInput(event) { this.query = event.target.value; }, handleSelectItem: function handleSelectItem(index) { var _this3 = this; var item = this.querySelections[index]; if (item.item.disabled) return false; this.query = ''; this.$refs.input.currentValue = ''; var oldVal = (0, _stringify2.default)(this.currentValue); this.currentValue = item.value; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this3); this.emitValue(this.currentValue, oldVal); this.handleClose(); }.bind(this), 0); }, handleFocus: function handleFocus() { this.$refs.input.focus(); }, getValidData: function getValidData(data) { var _this5 = this; function deleteData(item) { var _this4 = this; var new_item = (0, _assign2.default)({}, item); if ('loading' in new_item) { delete new_item.loading; } if ('__value' in new_item) { delete new_item.__value; } if ('__label' in new_item) { delete new_item.__label; } if (Array.isArray(new_item.children) && new_item.children.length) { new_item.children = new_item.children.map(function (i) { (0, _newArrowCheck3.default)(this, _this4); return deleteData(i); }.bind(this)); } return new_item; } return data.map(function (item) { (0, _newArrowCheck3.default)(this, _this5); return deleteData(item); }.bind(this)); } }, created: function created() { var _this6 = this; this.validDataStr = (0, _stringify2.default)(this.getValidData(this.data)); this.$on('on-result-change', function (params) { (0, _newArrowCheck3.default)(this, _this6); var lastValue = params.lastValue; var changeOnSelect = params.changeOnSelect; var fromInit = params.fromInit; if (lastValue || changeOnSelect) { var oldVal = (0, _stringify2.default)(this.currentValue); this.selected = this.tmpSelected; var newVal = []; this.selected.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this6); newVal.push(item.value); }.bind(this)); if (!fromInit) { this.updatingValue = true; this.currentValue = newVal; this.emitValue(this.currentValue, oldVal); } } if (lastValue && !fromInit) { this.handleClose(); } }.bind(this)); }, mounted: function mounted() { this.updateSelected(true); }, watch: { visible: function visible(val) { if (val) { if (this.currentValue.length) { this.updateSelected(); } if (this.transfer) { this.$refs.drop.update(); } this.broadcast('Drop', 'on-update-popper'); } else { if (this.filterable) { this.query = ''; this.$refs.input.currentValue = ''; } if (this.transfer) { this.$refs.drop.destroy(); } this.broadcast('Drop', 'on-destroy-popper'); } this.$emit('on-visible-change', val); }, value: function value(val) { this.currentValue = val; if (!val.length) this.selected = []; }, currentValue: function currentValue() { this.$emit('input', this.currentValue); if (this.updatingValue) { this.updatingValue = false; return; } this.updateSelected(true); }, data: { deep: true, handler: function handler() { var _this7 = this; var validDataStr = (0, _stringify2.default)(this.getValidData(this.data)); if (validDataStr !== this.validDataStr) { this.validDataStr = validDataStr; if (!this.isLoadedChildren) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this7); return this.updateSelected(false, this.changeOnSelect); }.bind(this)); } this.isLoadedChildren = false; } } } } }; /***/ }), /* 127 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _casitem = __webpack_require__(357); var _casitem2 = _interopRequireDefault(_casitem); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var key = 1; exports.default = { name: 'Caspanel', mixins: [_emitter2.default], components: { Casitem: _casitem2.default }, props: { data: { type: Array, default: function _default() { return []; } }, disabled: Boolean, changeOnSelect: Boolean, trigger: String, prefixCls: String }, data: function data() { return { tmpItem: {}, result: [], sublist: [] }; }, watch: { data: function data() { this.sublist = []; } }, methods: { isIcon: function isIcon(node) { var nodeName = (node.nodeName || "").toLocaleUpperCase(); var isIvu = node.classList.contains("ivu-icon"); if (nodeName == "I" && isIvu) { return true; } return false; }, handleClickItem: function handleClickItem(item, ev) { var isIcon = this.isIcon(ev.target); if (this.trigger !== 'click' && item.children && item.children.length) return; this.handleTriggerItem(item, false, true, isIcon); }, handleHoverItem: function handleHoverItem(item) { if (this.trigger !== 'hover' || !item.children || !item.children.length) return; this.handleTriggerItem(item, false, true, false); }, handleTriggerItem: function handleTriggerItem(item) { var fromInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var _this = this; var fromUser = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var isIcon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; if (item.disabled) return; var cascader = (0, _assist.findComponentUpward)(this, 'Cascader'); if (item.loading !== undefined && !item.children.length) { if (cascader && cascader.loadData) { cascader.loadData(item, function () { (0, _newArrowCheck3.default)(this, _this); if (fromUser) { cascader.isLoadedChildren = true; } if (item.children.length) { this.handleTriggerItem(item); } }.bind(this)); return; } } var backItem = this.getBaseItem(item); if (this.changeOnSelect || backItem.label !== this.tmpItem.label || backItem.value !== this.tmpItem.value || backItem.label === this.tmpItem.label && backItem.value === this.tmpItem.value) { this.tmpItem = backItem; this.emitUpdate([backItem]); } if (item.children && item.children.length) { this.sublist = item.children; !isIcon && this.dispatch('Cascader', 'on-result-change', { lastValue: false, changeOnSelect: this.changeOnSelect, fromInit: fromInit }); if (this.changeOnSelect) { var Caspanel = (0, _assist.findComponentDownward)(this, 'Caspanel'); if (Caspanel) { Caspanel.$emit('on-clear', true); } } } else { this.sublist = []; !isIcon && this.dispatch('Cascader', 'on-result-change', { lastValue: true, changeOnSelect: this.changeOnSelect, fromInit: fromInit }); } if (cascader) { cascader.$refs.drop.update(); } }, updateResult: function updateResult(item) { this.result = [this.tmpItem].concat(item); this.emitUpdate(this.result); }, getBaseItem: function getBaseItem(item) { var backItem = (0, _assign2.default)({}, item); if (backItem.children) { delete backItem.children; } return backItem; }, emitUpdate: function emitUpdate(result) { if (this.$parent.$options.name === 'Caspanel') { this.$parent.updateResult(result); } else { this.$parent.$parent.updateResult(result); } }, getKey: function getKey() { return key++; } }, mounted: function mounted() { var _this2 = this; this.$on('on-find-selected', function (params) { (0, _newArrowCheck3.default)(this, _this2); var val = params.value; var value = [].concat((0, _toConsumableArray3.default)(val)); for (var i = 0; i < value.length; i++) { for (var j = 0; j < this.data.length; j++) { if (value[i] === this.data[j].value) { this.handleTriggerItem(this.data[j], true); value.splice(0, 1); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.broadcast('Caspanel', 'on-find-selected', { value: value }); }.bind(this)); return false; } } } }.bind(this)); this.$on('on-clear', function () { var deep = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; (0, _newArrowCheck3.default)(this, _this2); this.sublist = []; this.tmpItem = {}; if (deep) { var Caspanel = (0, _assist.findComponentDownward)(this, 'Caspanel'); if (Caspanel) { Caspanel.$emit('on-clear', true); } } }.bind(this)); } }; /***/ }), /* 128 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Casitem', components: { Icon: _icon2.default }, props: { data: Object, prefixCls: String, tmpItem: Object }, computed: { classes: function classes() { var _ref; return [String(this.prefixCls) + '-menu-item', (_ref = {}, (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-menu-item-active', this.tmpItem.value === this.data.value), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-menu-item-disabled', this.data.disabled), _ref)]; }, showArrow: function showArrow() { return this.data.children && this.data.children.length || 'loading' in this.data && !this.data.loading; }, showLoading: function showLoading() { return 'loading' in this.data && this.data.loading; }, arrowType: function arrowType() { var type = 'ios-arrow-forward'; if (this.$IVIEW) { if (this.$IVIEW.cascader.customItemArrow) { type = ''; } else if (this.$IVIEW.cascader.itemArrow) { type = this.$IVIEW.cascader.itemArrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.cascader.customItemArrow) { type = this.$IVIEW.cascader.customItemArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.cascader.itemArrowSize) { size = this.$IVIEW.cascader.itemArrowSize; } } return size; } } }; /***/ }), /* 129 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _cellItem = __webpack_require__(363); var _cellItem2 = _interopRequireDefault(_cellItem); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _link = __webpack_require__(55); var _link2 = _interopRequireDefault(_link); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-cell'; exports.default = { name: 'Cell', inject: ['cellGroup'], mixins: [_link2.default], components: { CellItem: _cellItem2.default, Icon: _icon2.default }, props: { name: { type: [String, Number] }, title: { type: String, default: '' }, label: { type: String, default: '' }, extra: { type: String, default: '' }, disabled: { type: Boolean, default: false }, selected: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-selected', this.selected), (0, _defineProperty3.default)(_ref, prefixCls + '-with-link', this.to), _ref)]; }, arrowType: function arrowType() { var type = 'ios-arrow-forward'; if (this.$IVIEW) { if (this.$IVIEW.cell.customArrow) { type = ''; } else if (this.$IVIEW.cell.arrow) { type = this.$IVIEW.cell.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.cell.customArrow) { type = this.$IVIEW.cell.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.cell.arrowSize) { size = this.$IVIEW.cell.arrowSize; } } return size; } }, methods: { handleClickItem: function handleClickItem(event, new_window) { this.cellGroup.handleClick(this.name); this.handleCheckClick(event, new_window); } } }; /***/ }), /* 130 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { props: { title: { type: String, default: '' }, label: { type: String, default: '' }, extra: { type: String, default: '' } } }; /***/ }), /* 131 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { name: 'CellGroup', provide: function provide() { return { cellGroup: this }; }, methods: { handleClick: function handleClick(name) { this.$emit('on-click', name); } } }; /***/ }), /* 132 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-checkbox'; exports.default = { name: 'Checkbox', mixins: [_emitter2.default], props: { disabled: { type: Boolean, default: false }, value: { type: [String, Number, Boolean], default: false }, trueValue: { type: [String, Number, Boolean], default: true }, falseValue: { type: [String, Number, Boolean], default: false }, label: { type: [String, Number, Boolean] }, indeterminate: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, name: { type: String } }, data: function data() { return { model: [], currentValue: this.value, group: false, showSlot: true, parent: (0, _assist.findComponentUpward)(this, 'CheckboxGroup'), focusInner: false }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrapper', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-group-item', this.group), (0, _defineProperty3.default)(_ref, prefixCls + '-wrapper-checked', this.currentValue), (0, _defineProperty3.default)(_ref, prefixCls + '-wrapper-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), _ref)]; }, checkboxClasses: function checkboxClasses() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-checked', this.currentValue), (0, _defineProperty3.default)(_ref2, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref2, prefixCls + '-indeterminate', this.indeterminate), _ref2)]; }, innerClasses: function innerClasses() { return [prefixCls + '-inner', (0, _defineProperty3.default)({}, prefixCls + '-focus', this.focusInner)]; }, inputClasses: function inputClasses() { return prefixCls + '-input'; } }, mounted: function mounted() { this.parent = (0, _assist.findComponentUpward)(this, 'CheckboxGroup'); if (this.parent) { this.group = true; } if (this.group) { this.parent.updateModel(true); } else { this.updateModel(); this.showSlot = this.$slots.default !== undefined; } }, methods: { change: function change(event) { if (this.disabled) { return false; } var checked = event.target.checked; this.currentValue = checked; var value = checked ? this.trueValue : this.falseValue; this.$emit('input', value); if (this.group) { this.parent.change(this.model); } else { this.$emit('on-change', value); this.dispatch('FormItem', 'on-form-change', value); } }, updateModel: function updateModel() { this.currentValue = this.value === this.trueValue; }, onBlur: function onBlur() { this.focusInner = false; }, onFocus: function onFocus() { this.focusInner = true; } }, watch: { value: function value(val) { if (val === this.trueValue || val === this.falseValue) { this.updateModel(); } else { throw 'Value should be trueValue or falseValue.'; } } } }; /***/ }), /* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue__ = __webpack_require__(134); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_group_vue__ = __webpack_require__(370); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_checkbox_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_checkbox_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 134 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-checkbox-group'; exports.default = { name: 'CheckboxGroup', mixins: [_emitter2.default], props: { value: { type: Array, default: function _default() { return []; } }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } } }, data: function data() { return { currentValue: this.value, childrens: [] }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, 'ivu-checkbox-' + String(this.size), !!this.size)]; } }, mounted: function mounted() { this.updateModel(true); }, methods: { updateModel: function updateModel(update) { var _this = this; this.childrens = (0, _assist.findComponentsDownward)(this, 'Checkbox', 'CheckboxGroup'); if (this.childrens) { var value = this.value; this.childrens.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this); child.model = value; if (update) { child.currentValue = value.indexOf(child.label) >= 0; child.group = true; } }.bind(this)); } }, change: function change(data) { this.currentValue = data; this.$emit('input', data); this.$emit('on-change', data); this.dispatch('FormItem', 'on-form-change', data); } }, watch: { value: function value() { this.updateModel(true); } } }; /***/ }), /* 135 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assist = __webpack_require__(3); var prefixCls = 'ivu-chart-circle'; exports.default = { name: 'iCircle', props: { percent: { type: Number, default: 0 }, size: { type: Number, default: 120 }, strokeWidth: { type: Number, default: 6 }, strokeColor: { type: String, default: '#2d8cf0' }, strokeLinecap: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['square', 'round']); }, default: 'round' }, trailWidth: { type: Number, default: 5 }, trailColor: { type: String, default: '#eaeef2' }, dashboard: { type: Boolean, default: false } }, computed: { circleSize: function circleSize() { return { width: String(this.size) + 'px', height: String(this.size) + 'px' }; }, computedStrokeWidth: function computedStrokeWidth() { return this.percent === 0 && this.dashboard ? 0 : this.strokeWidth; }, radius: function radius() { return 50 - this.strokeWidth / 2; }, pathString: function pathString() { if (this.dashboard) { return 'M 50,50 m 0,' + String(this.radius) + '\n a ' + String(this.radius) + ',' + String(this.radius) + ' 0 1 1 0,-' + 2 * this.radius + '\n a ' + String(this.radius) + ',' + String(this.radius) + ' 0 1 1 0,' + 2 * this.radius; } else { return 'M 50,50 m 0,-' + String(this.radius) + '\n a ' + String(this.radius) + ',' + String(this.radius) + ' 0 1 1 0,' + 2 * this.radius + '\n a ' + String(this.radius) + ',' + String(this.radius) + ' 0 1 1 0,-' + 2 * this.radius; } }, len: function len() { return Math.PI * 2 * this.radius; }, trailStyle: function trailStyle() { var style = {}; if (this.dashboard) { style = { 'stroke-dasharray': this.len - 75 + 'px ' + String(this.len) + 'px', 'stroke-dashoffset': '-' + 75 / 2 + 'px', 'transition': 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s' }; } return style; }, pathStyle: function pathStyle() { var style = {}; if (this.dashboard) { style = { 'stroke-dasharray': this.percent / 100 * (this.len - 75) + 'px ' + String(this.len) + 'px', 'stroke-dashoffset': '-' + 75 / 2 + 'px', 'transition': 'stroke-dashoffset .3s ease 0s, stroke-dasharray .6s ease 0s, stroke .6s, stroke-width .06s ease .6s' }; } else { style = { 'stroke-dasharray': String(this.len) + 'px ' + String(this.len) + 'px', 'stroke-dashoffset': (100 - this.percent) / 100 * this.len + 'px', 'transition': 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease' }; } return style; }, wrapClasses: function wrapClasses() { return '' + prefixCls; }, innerClasses: function innerClasses() { return prefixCls + '-inner'; } } }; /***/ }), /* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-collapse'; exports.default = { name: 'Collapse', props: { accordion: { type: Boolean, default: false }, value: { type: [Array, String] }, simple: { type: Boolean, default: false } }, data: function data() { return { currentValue: this.value }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-simple', this.simple)]; } }, mounted: function mounted() { this.setActive(); }, methods: { setActive: function setActive() { var _this = this; var activeKey = this.getActiveKey(); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.$children.forEach(function (child, index) { (0, _newArrowCheck3.default)(this, _this); var name = child.name || index.toString(); child.isActive = activeKey.indexOf(name) > -1; child.index = index; }.bind(this)); }.bind(this)); }, getActiveKey: function getActiveKey() { var activeKey = this.currentValue || []; var accordion = this.accordion; if (!Array.isArray(activeKey)) { activeKey = [activeKey]; } if (accordion && activeKey.length > 1) { activeKey = [activeKey[0]]; } for (var i = 0; i < activeKey.length; i++) { activeKey[i] = activeKey[i].toString(); } return activeKey; }, toggle: function toggle(data) { var name = data.name.toString(); var newActiveKey = []; if (this.accordion) { if (!data.isActive) { newActiveKey.push(name); } } else { var activeKey = this.getActiveKey(); var nameIndex = activeKey.indexOf(name); if (data.isActive) { if (nameIndex > -1) { activeKey.splice(nameIndex, 1); } } else { if (nameIndex < 0) { activeKey.push(name); } } newActiveKey = activeKey; } this.currentValue = newActiveKey; this.$emit('input', newActiveKey); this.$emit('on-change', newActiveKey); } }, watch: { value: function value(val) { this.currentValue = val; }, currentValue: function currentValue() { this.setActive(); } } }; /***/ }), /* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _collapseTransition = __webpack_require__(75); var _collapseTransition2 = _interopRequireDefault(_collapseTransition); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-collapse'; exports.default = { name: 'Panel', components: { Icon: _icon2.default, CollapseTransition: _collapseTransition2.default }, props: { name: { type: String }, hideArrow: { type: Boolean, default: false } }, data: function data() { return { index: 0, isActive: false, mounted: false }; }, computed: { itemClasses: function itemClasses() { return [prefixCls + '-item', (0, _defineProperty3.default)({}, prefixCls + '-item-active', this.isActive)]; }, headerClasses: function headerClasses() { return prefixCls + '-header'; }, contentClasses: function contentClasses() { return prefixCls + '-content'; }, boxClasses: function boxClasses() { return prefixCls + '-content-box'; } }, methods: { toggle: function toggle() { this.$parent.toggle({ name: this.name || this.index, isActive: this.isActive }); } }, mounted: function mounted() { this.mounted = true; } }; /***/ }), /* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _tinycolor = __webpack_require__(139); var _tinycolor2 = _interopRequireDefault(_tinycolor); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _recommendColors = __webpack_require__(381); var _recommendColors2 = _interopRequireDefault(_recommendColors); var _saturation = __webpack_require__(383); var _saturation2 = _interopRequireDefault(_saturation); var _hue = __webpack_require__(385); var _hue2 = _interopRequireDefault(_hue); var _alpha = __webpack_require__(387); var _alpha2 = _interopRequireDefault(_alpha); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _prefixMixin = __webpack_require__(47); var _prefixMixin2 = _interopRequireDefault(_prefixMixin); var _utils = __webpack_require__(38); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'ColorPicker', components: { Drop: _dropdown2.default, RecommendColors: _recommendColors2.default, Saturation: _saturation2.default, Hue: _hue2.default, Alpha: _alpha2.default, iInput: _input2.default, iButton: _button2.default, Icon: _icon2.default }, directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, mixins: [_emitter2.default, _locale2.default, _prefixMixin2.default], props: { value: { type: String, default: undefined }, hue: { type: Boolean, default: true }, alpha: { type: Boolean, default: false }, recommend: { type: Boolean, default: false }, format: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['hsl', 'hsv', 'hex', 'rgb']); }, default: undefined }, colors: { type: Array, default: function _default() { return []; } }, disabled: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, hideDropDown: { type: Boolean, default: false }, placement: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']); }, default: 'bottom' }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, name: { type: String, default: undefined }, editable: { type: Boolean, default: true } }, data: function data() { return { val: (0, _utils.changeColor)(this.value), currentValue: this.value, dragging: false, visible: false, recommendedColor: ['#2d8cf0', '#19be6b', '#ff9900', '#ed4014', '#00b5ff', '#19c919', '#f9e31c', '#ea1a1a', '#9b1dea', '#00c2b1', '#ac7a33', '#1d35ea', '#8bc34a', '#f16b62', '#ea4ca3', '#0d94aa', '#febd79', '#5d4037', '#00bcd4', '#f06292', '#cddc39', '#607d8b', '#000000', '#ffffff'] }; }, computed: { arrowClasses: function arrowClasses() { return [String(this.inputPrefixCls) + '-icon', String(this.inputPrefixCls) + '-icon-normal']; }, transition: function transition() { return (0, _assist.oneOf)(this.placement, ['bottom-start', 'bottom', 'bottom-end']) ? 'slide-up' : 'fade'; }, saturationColors: { get: function get() { return this.val; }, set: function set(newVal) { this.val = newVal; this.$emit('on-active-change', this.formatColor); } }, classes: function classes() { return ['' + String(this.prefixCls), (0, _defineProperty3.default)({}, String(this.prefixCls) + '-transfer', this.transfer)]; }, wrapClasses: function wrapClasses() { return [String(this.prefixCls) + '-rel', String(this.prefixCls) + '-' + String(this.size), String(this.inputPrefixCls) + '-wrapper', String(this.inputPrefixCls) + '-wrapper-' + String(this.size), (0, _defineProperty3.default)({}, String(this.prefixCls) + '-disabled', this.disabled)]; }, inputClasses: function inputClasses() { var _ref3; return [String(this.prefixCls) + '-input', '' + String(this.inputPrefixCls), String(this.inputPrefixCls) + '-' + String(this.size), (_ref3 = {}, (0, _defineProperty3.default)(_ref3, String(this.prefixCls) + '-focused', this.visible), (0, _defineProperty3.default)(_ref3, String(this.prefixCls) + '-disabled', this.disabled), _ref3)]; }, dropClasses: function dropClasses() { var _ref4; return [String(this.transferPrefixCls) + '-no-max-height', (_ref4 = {}, (0, _defineProperty3.default)(_ref4, String(this.prefixCls) + '-transfer', this.transfer), (0, _defineProperty3.default)(_ref4, String(this.prefixCls) + '-hide-drop', this.hideDropDown), _ref4)]; }, displayedColorStyle: function displayedColorStyle() { return { backgroundColor: (0, _utils.toRGBAString)(this.visible ? this.saturationColors.rgba : (0, _tinycolor2.default)(this.value).toRgb()) }; }, formatColor: function formatColor() { var format = this.format, saturationColors = this.saturationColors; if (format) { if (format === 'hsl') { return (0, _tinycolor2.default)(saturationColors.hsl).toHslString(); } if (format === 'hsv') { return (0, _tinycolor2.default)(saturationColors.hsv).toHsvString(); } if (format === 'hex') { return saturationColors.hex; } if (format === 'rgb') { return (0, _utils.toRGBAString)(saturationColors.rgba); } } else if (this.alpha) { return (0, _utils.toRGBAString)(saturationColors.rgba); } return saturationColors.hex; }, confirmColorClasses: function confirmColorClasses() { return [String(this.prefixCls) + '-confirm-color', (0, _defineProperty3.default)({}, String(this.prefixCls) + '-confirm-color-editable', this.editable)]; }, arrowType: function arrowType() { var type = 'ios-arrow-down'; if (this.$IVIEW) { if (this.$IVIEW.colorPicker.customArrow) { type = ''; } else if (this.$IVIEW.colorPicker.arrow) { type = this.$IVIEW.colorPicker.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.colorPicker.customArrow) { type = this.$IVIEW.colorPicker.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.colorPicker.arrowSize) { size = this.$IVIEW.colorPicker.arrowSize; } } return size; } }, watch: { value: function value(newVal) { this.val = (0, _utils.changeColor)(newVal); }, visible: function visible(val) { this.val = (0, _utils.changeColor)(this.value); this.$refs.drop[val ? 'update' : 'destroy'](); this.$emit('on-open-change', Boolean(val)); } }, mounted: function mounted() { this.$on('on-escape-keydown', this.closer); this.$on('on-dragging', this.setDragging); }, methods: { setDragging: function setDragging(value) { this.dragging = value; }, handleClose: function handleClose(event) { if (this.visible) { if (this.dragging || event.type === 'mousedown') { event.preventDefault(); return; } if (this.transfer) { var $el = this.$refs.drop.$el; if ($el === event.target || $el.contains(event.target)) { return; } } this.closer(event); return; } this.visible = false; }, toggleVisible: function toggleVisible() { if (this.disabled) { return; } this.visible = !this.visible; this.$refs.input.focus(); }, childChange: function childChange(data) { this.colorChange(data); }, colorChange: function colorChange(data, oldHue) { this.oldHue = this.saturationColors.hsl.h; this.saturationColors = (0, _utils.changeColor)(data, oldHue || this.oldHue); }, closer: function closer(event) { if (event) { event.preventDefault(); event.stopPropagation(); } this.visible = false; this.$refs.input.focus(); }, handleButtons: function handleButtons(event, value) { this.currentValue = value; this.$emit('input', value); this.$emit('on-change', value); this.dispatch('FormItem', 'on-form-change', value); this.closer(event); }, handleSuccess: function handleSuccess(event) { this.handleButtons(event, this.formatColor); this.$emit('on-pick-success'); }, handleClear: function handleClear(event) { this.handleButtons(event, ''); this.$emit('on-pick-clear'); }, handleSelectColor: function handleSelectColor(color) { this.val = (0, _utils.changeColor)(color); this.$emit('on-active-change', this.formatColor); }, handleEditColor: function handleEditColor(event) { var value = event.target.value; this.handleSelectColor(value); }, handleFirstTab: function handleFirstTab(event) { if (event.shiftKey) { event.preventDefault(); event.stopPropagation(); this.$refs.ok.$el.focus(); } }, handleLastTab: function handleLastTab(event) { if (!event.shiftKey) { event.preventDefault(); event.stopPropagation(); this.$refs.saturation.$el.focus(); } }, onTab: function onTab(event) { if (this.visible) { event.preventDefault(); } }, onEscape: function onEscape(event) { if (this.visible) { this.closer(event); } }, onArrow: function onArrow(event) { if (!this.visible) { event.preventDefault(); event.stopPropagation(); this.visible = true; } } } }; /***/ }), /* 139 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 // path_to_url (function(Math) { var trimLeft = /^\s+/, trimRight = /\s+$/, tinyCounter = 0, mathRound = Math.round, mathMin = Math.min, mathMax = Math.max, mathRandom = Math.random; function tinycolor (color, opts) { color = (color) ? color : ''; opts = opts || { }; // If input is already a tinycolor, return itself if (color instanceof tinycolor) { return color; } // If we are called as a function, call using new instead if (!(this instanceof tinycolor)) { return new tinycolor(color, opts); } var rgb = inputToRGB(color); this._originalInput = color, this._r = rgb.r, this._g = rgb.g, this._b = rgb.b, this._a = rgb.a, this._roundA = mathRound(100*this._a) / 100, this._format = opts.format || rgb.format; this._gradientType = opts.gradientType; // Don't let the range of [0,255] come back in [0,1]. // Potentially lose a little bit of precision here, but will fix issues where // .5 gets interpreted as half of the total, instead of half of 1 // If it was supposed to be 128, this was already taken care of by `inputToRgb` if (this._r < 1) { this._r = mathRound(this._r); } if (this._g < 1) { this._g = mathRound(this._g); } if (this._b < 1) { this._b = mathRound(this._b); } this._ok = rgb.ok; this._tc_id = tinyCounter++; } tinycolor.prototype = { isDark: function() { return this.getBrightness() < 128; }, isLight: function() { return !this.isDark(); }, isValid: function() { return this._ok; }, getOriginalInput: function() { return this._originalInput; }, getFormat: function() { return this._format; }, getAlpha: function() { return this._a; }, getBrightness: function() { //path_to_url#color-contrast var rgb = this.toRgb(); return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; }, getLuminance: function() { //path_to_url#relativeluminancedef var rgb = this.toRgb(); var RsRGB, GsRGB, BsRGB, R, G, B; RsRGB = rgb.r/255; GsRGB = rgb.g/255; BsRGB = rgb.b/255; if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); }, setAlpha: function(value) { this._a = boundAlpha(value); this._roundA = mathRound(100*this._a) / 100; return this; }, toHsv: function() { var hsv = rgbToHsv(this._r, this._g, this._b); return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; }, toHsvString: function() { var hsv = rgbToHsv(this._r, this._g, this._b); var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); return (this._a == 1) ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; }, toHsl: function() { var hsl = rgbToHsl(this._r, this._g, this._b); return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; }, toHslString: function() { var hsl = rgbToHsl(this._r, this._g, this._b); var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); return (this._a == 1) ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; }, toHex: function(allow3Char) { return rgbToHex(this._r, this._g, this._b, allow3Char); }, toHexString: function(allow3Char) { return '#' + this.toHex(allow3Char); }, toHex8: function(allow4Char) { return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); }, toHex8String: function(allow4Char) { return '#' + this.toHex8(allow4Char); }, toRgb: function() { return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; }, toRgbString: function() { return (this._a == 1) ? "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; }, toPercentageRgb: function() { return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; }, toPercentageRgbString: function() { return (this._a == 1) ? "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; }, toName: function() { if (this._a === 0) { return "transparent"; } if (this._a < 1) { return false; } return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; }, toFilter: function(secondColor) { var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); var secondHex8String = hex8String; var gradientType = this._gradientType ? "GradientType = 1, " : ""; if (secondColor) { var s = tinycolor(secondColor); secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); } return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; }, toString: function(format) { var formatSet = !!format; format = format || this._format; var formattedString = false; var hasAlpha = this._a < 1 && this._a >= 0; var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); if (needsAlphaFormat) { // Special case for "transparent", all other non-alpha formats // will return rgba when there is transparency. if (format === "name" && this._a === 0) { return this.toName(); } return this.toRgbString(); } if (format === "rgb") { formattedString = this.toRgbString(); } if (format === "prgb") { formattedString = this.toPercentageRgbString(); } if (format === "hex" || format === "hex6") { formattedString = this.toHexString(); } if (format === "hex3") { formattedString = this.toHexString(true); } if (format === "hex4") { formattedString = this.toHex8String(true); } if (format === "hex8") { formattedString = this.toHex8String(); } if (format === "name") { formattedString = this.toName(); } if (format === "hsl") { formattedString = this.toHslString(); } if (format === "hsv") { formattedString = this.toHsvString(); } return formattedString || this.toHexString(); }, clone: function() { return tinycolor(this.toString()); }, _applyModification: function(fn, args) { var color = fn.apply(null, [this].concat([].slice.call(args))); this._r = color._r; this._g = color._g; this._b = color._b; this.setAlpha(color._a); return this; }, lighten: function() { return this._applyModification(lighten, arguments); }, brighten: function() { return this._applyModification(brighten, arguments); }, darken: function() { return this._applyModification(darken, arguments); }, desaturate: function() { return this._applyModification(desaturate, arguments); }, saturate: function() { return this._applyModification(saturate, arguments); }, greyscale: function() { return this._applyModification(greyscale, arguments); }, spin: function() { return this._applyModification(spin, arguments); }, _applyCombination: function(fn, args) { return fn.apply(null, [this].concat([].slice.call(args))); }, analogous: function() { return this._applyCombination(analogous, arguments); }, complement: function() { return this._applyCombination(complement, arguments); }, monochromatic: function() { return this._applyCombination(monochromatic, arguments); }, splitcomplement: function() { return this._applyCombination(splitcomplement, arguments); }, triad: function() { return this._applyCombination(triad, arguments); }, tetrad: function() { return this._applyCombination(tetrad, arguments); } }; // If input is an object, force 1 into "1.0" to handle ratios properly // String input requires "1.0" as input, so 1 will be treated as 1 tinycolor.fromRatio = function(color, opts) { if (typeof color == "object") { var newColor = {}; for (var i in color) { if (color.hasOwnProperty(i)) { if (i === "a") { newColor[i] = color[i]; } else { newColor[i] = convertToPercentage(color[i]); } } } color = newColor; } return tinycolor(color, opts); }; // Given a string or object, convert that input to RGB // Possible string inputs: // // "red" // "#f00" or "f00" // "#ff0000" or "ff0000" // "#ff000000" or "ff000000" // "rgb 255 0 0" or "rgb (255, 0, 0)" // "rgb 1.0 0 0" or "rgb (1, 0, 0)" // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" // function inputToRGB(color) { var rgb = { r: 0, g: 0, b: 0 }; var a = 1; var s = null; var v = null; var l = null; var ok = false; var format = false; if (typeof color == "string") { color = stringInputToObject(color); } if (typeof color == "object") { if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { rgb = rgbToRgb(color.r, color.g, color.b); ok = true; format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { s = convertToPercentage(color.s); v = convertToPercentage(color.v); rgb = hsvToRgb(color.h, s, v); ok = true; format = "hsv"; } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { s = convertToPercentage(color.s); l = convertToPercentage(color.l); rgb = hslToRgb(color.h, s, l); ok = true; format = "hsl"; } if (color.hasOwnProperty("a")) { a = color.a; } } a = boundAlpha(a); return { ok: ok, format: color.format || format, r: mathMin(255, mathMax(rgb.r, 0)), g: mathMin(255, mathMax(rgb.g, 0)), b: mathMin(255, mathMax(rgb.b, 0)), a: a }; } // Conversion Functions // -------------------- // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: // <path_to_url // `rgbToRgb` // Handle bounds / percentage checking to conform to CSS color spec // <path_to_url // *Assumes:* r, g, b in [0, 255] or [0, 1] // *Returns:* { r, g, b } in [0, 255] function rgbToRgb(r, g, b){ return { r: bound01(r, 255) * 255, g: bound01(g, 255) * 255, b: bound01(b, 255) * 255 }; } // `rgbToHsl` // Converts an RGB color value to HSL. // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] // *Returns:* { h, s, l } in [0,1] function rgbToHsl(r, g, b) { r = bound01(r, 255); g = bound01(g, 255); b = bound01(b, 255); var max = mathMax(r, g, b), min = mathMin(r, g, b); var h, s, l = (max + min) / 2; if(max == min) { h = s = 0; // achromatic } else { var d = max - min; s = l > 0.5 ? d / (2 - max - min) : d / (max + min); switch(max) { case r: h = (g - b) / d + (g < b ? 6 : 0); break; case g: h = (b - r) / d + 2; break; case b: h = (r - g) / d + 4; break; } h /= 6; } return { h: h, s: s, l: l }; } // `hslToRgb` // Converts an HSL color value to RGB. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] // *Returns:* { r, g, b } in the set [0, 255] function hslToRgb(h, s, l) { var r, g, b; h = bound01(h, 360); s = bound01(s, 100); l = bound01(l, 100); function hue2rgb(p, q, t) { if(t < 0) t += 1; if(t > 1) t -= 1; if(t < 1/6) return p + (q - p) * 6 * t; if(t < 1/2) return q; if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; return p; } if(s === 0) { r = g = b = l; // achromatic } else { var q = l < 0.5 ? l * (1 + s) : l + s - l * s; var p = 2 * l - q; r = hue2rgb(p, q, h + 1/3); g = hue2rgb(p, q, h); b = hue2rgb(p, q, h - 1/3); } return { r: r * 255, g: g * 255, b: b * 255 }; } // `rgbToHsv` // Converts an RGB color value to HSV // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] // *Returns:* { h, s, v } in [0,1] function rgbToHsv(r, g, b) { r = bound01(r, 255); g = bound01(g, 255); b = bound01(b, 255); var max = mathMax(r, g, b), min = mathMin(r, g, b); var h, s, v = max; var d = max - min; s = max === 0 ? 0 : d / max; if(max == min) { h = 0; // achromatic } else { switch(max) { case r: h = (g - b) / d + (g < b ? 6 : 0); break; case g: h = (b - r) / d + 2; break; case b: h = (r - g) / d + 4; break; } h /= 6; } return { h: h, s: s, v: v }; } // `hsvToRgb` // Converts an HSV color value to RGB. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] // *Returns:* { r, g, b } in the set [0, 255] function hsvToRgb(h, s, v) { h = bound01(h, 360) * 6; s = bound01(s, 100); v = bound01(v, 100); var i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod]; return { r: r * 255, g: g * 255, b: b * 255 }; } // `rgbToHex` // Converts an RGB color to hex // Assumes r, g, and b are contained in the set [0, 255] // Returns a 3 or 6 character hex function rgbToHex(r, g, b, allow3Char) { var hex = [ pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16)) ]; // Return a 3 character hex if possible if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); } return hex.join(""); } // `rgbaToHex` // Converts an RGBA color plus alpha transparency to hex // Assumes r, g, b are contained in the set [0, 255] and // a in [0, 1]. Returns a 4 or 8 character rgba hex function rgbaToHex(r, g, b, a, allow4Char) { var hex = [ pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16)), pad2(convertDecimalToHex(a)) ]; // Return a 4 character hex if possible if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); } return hex.join(""); } // `rgbaToArgbHex` // Converts an RGBA color to an ARGB Hex8 string // Rarely used, but required for "toFilter()" function rgbaToArgbHex(r, g, b, a) { var hex = [ pad2(convertDecimalToHex(a)), pad2(mathRound(r).toString(16)), pad2(mathRound(g).toString(16)), pad2(mathRound(b).toString(16)) ]; return hex.join(""); } // `equals` // Can be called with any tinycolor input tinycolor.equals = function (color1, color2) { if (!color1 || !color2) { return false; } return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); }; tinycolor.random = function() { return tinycolor.fromRatio({ r: mathRandom(), g: mathRandom(), b: mathRandom() }); }; // Modification Functions // ---------------------- // Thanks to less.js for some of the basics here // <path_to_url function desaturate(color, amount) { amount = (amount === 0) ? 0 : (amount || 10); var hsl = tinycolor(color).toHsl(); hsl.s -= amount / 100; hsl.s = clamp01(hsl.s); return tinycolor(hsl); } function saturate(color, amount) { amount = (amount === 0) ? 0 : (amount || 10); var hsl = tinycolor(color).toHsl(); hsl.s += amount / 100; hsl.s = clamp01(hsl.s); return tinycolor(hsl); } function greyscale(color) { return tinycolor(color).desaturate(100); } function lighten (color, amount) { amount = (amount === 0) ? 0 : (amount || 10); var hsl = tinycolor(color).toHsl(); hsl.l += amount / 100; hsl.l = clamp01(hsl.l); return tinycolor(hsl); } function brighten(color, amount) { amount = (amount === 0) ? 0 : (amount || 10); var rgb = tinycolor(color).toRgb(); rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); return tinycolor(rgb); } function darken (color, amount) { amount = (amount === 0) ? 0 : (amount || 10); var hsl = tinycolor(color).toHsl(); hsl.l -= amount / 100; hsl.l = clamp01(hsl.l); return tinycolor(hsl); } // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. // Values outside of this range will be wrapped into this range. function spin(color, amount) { var hsl = tinycolor(color).toHsl(); var hue = (hsl.h + amount) % 360; hsl.h = hue < 0 ? 360 + hue : hue; return tinycolor(hsl); } // Combination Functions // --------------------- // Thanks to jQuery xColor for some of the ideas behind these // <path_to_url function complement(color) { var hsl = tinycolor(color).toHsl(); hsl.h = (hsl.h + 180) % 360; return tinycolor(hsl); } function triad(color) { var hsl = tinycolor(color).toHsl(); var h = hsl.h; return [ tinycolor(color), tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) ]; } function tetrad(color) { var hsl = tinycolor(color).toHsl(); var h = hsl.h; return [ tinycolor(color), tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) ]; } function splitcomplement(color) { var hsl = tinycolor(color).toHsl(); var h = hsl.h; return [ tinycolor(color), tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) ]; } function analogous(color, results, slices) { results = results || 6; slices = slices || 30; var hsl = tinycolor(color).toHsl(); var part = 360 / slices; var ret = [tinycolor(color)]; for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { hsl.h = (hsl.h + part) % 360; ret.push(tinycolor(hsl)); } return ret; } function monochromatic(color, results) { results = results || 6; var hsv = tinycolor(color).toHsv(); var h = hsv.h, s = hsv.s, v = hsv.v; var ret = []; var modification = 1 / results; while (results--) { ret.push(tinycolor({ h: h, s: s, v: v})); v = (v + modification) % 1; } return ret; } // Utility Functions // --------------------- tinycolor.mix = function(color1, color2, amount) { amount = (amount === 0) ? 0 : (amount || 50); var rgb1 = tinycolor(color1).toRgb(); var rgb2 = tinycolor(color2).toRgb(); var p = amount / 100; var rgba = { r: ((rgb2.r - rgb1.r) * p) + rgb1.r, g: ((rgb2.g - rgb1.g) * p) + rgb1.g, b: ((rgb2.b - rgb1.b) * p) + rgb1.b, a: ((rgb2.a - rgb1.a) * p) + rgb1.a }; return tinycolor(rgba); }; // Readability Functions // --------------------- // <path_to_url#contrast-ratiodef (WCAG Version 2) // `contrast` // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2) tinycolor.readability = function(color1, color2) { var c1 = tinycolor(color1); var c2 = tinycolor(color2); return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05); }; // `isReadable` // Ensure that foreground and background color combinations meet WCAG2 guidelines. // The third argument is an optional Object. // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA'; // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'. // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}. // *Example* // tinycolor.isReadable("#000", "#111") => false // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false tinycolor.isReadable = function(color1, color2, wcag2) { var readability = tinycolor.readability(color1, color2); var wcag2Parms, out; out = false; wcag2Parms = validateWCAG2Parms(wcag2); switch (wcag2Parms.level + wcag2Parms.size) { case "AAsmall": case "AAAlarge": out = readability >= 4.5; break; case "AAlarge": out = readability >= 3; break; case "AAAsmall": out = readability >= 7; break; } return out; }; // `mostReadable` // Given a base color and a list of possible foreground or background // colors for that base, returns the most readable color. // Optionally returns Black or White if the most readable color is unreadable. // *Example* // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" tinycolor.mostReadable = function(baseColor, colorList, args) { var bestColor = null; var bestScore = 0; var readability; var includeFallbackColors, level, size ; args = args || {}; includeFallbackColors = args.includeFallbackColors ; level = args.level; size = args.size; for (var i= 0; i < colorList.length ; i++) { readability = tinycolor.readability(baseColor, colorList[i]); if (readability > bestScore) { bestScore = readability; bestColor = tinycolor(colorList[i]); } } if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { return bestColor; } else { args.includeFallbackColors=false; return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); } }; // Big List of Colors // ------------------ // <path_to_url#svg-color> var names = tinycolor.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }; // Make it easy to access colors via `hexNames[hex]` var hexNames = tinycolor.hexNames = flip(names); // Utilities // --------- // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` function flip(o) { var flipped = { }; for (var i in o) { if (o.hasOwnProperty(i)) { flipped[o[i]] = i; } } return flipped; } // Return a valid alpha value [0,1] with all invalid values being set to 1 function boundAlpha(a) { a = parseFloat(a); if (isNaN(a) || a < 0 || a > 1) { a = 1; } return a; } // Take input from [0, n] and return it as [0, 1] function bound01(n, max) { if (isOnePointZero(n)) { n = "100%"; } var processPercent = isPercentage(n); n = mathMin(max, mathMax(0, parseFloat(n))); // Automatically convert percentage into number if (processPercent) { n = parseInt(n * max, 10) / 100; } // Handle floating point rounding errors if ((Math.abs(n - max) < 0.000001)) { return 1; } // Convert into [0, 1] range if it isn't already return (n % max) / parseFloat(max); } // Force a number between 0 and 1 function clamp01(val) { return mathMin(1, mathMax(0, val)); } // Parse a base-16 hex value into a base-10 integer function parseIntFromHex(val) { return parseInt(val, 16); } // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 // <path_to_url function isOnePointZero(n) { return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; } // Check to see if string passed in is a percentage function isPercentage(n) { return typeof n === "string" && n.indexOf('%') != -1; } // Force a hex value to have 2 characters function pad2(c) { return c.length == 1 ? '0' + c : '' + c; } // Replace a decimal with it's percentage value function convertToPercentage(n) { if (n <= 1) { n = (n * 100) + "%"; } return n; } // Converts a decimal to a hex value function convertDecimalToHex(d) { return Math.round(parseFloat(d) * 255).toString(16); } // Converts a hex value to a decimal function convertHexToDecimal(h) { return (parseIntFromHex(h) / 255); } var matchers = (function() { // <path_to_url#integers> var CSS_INTEGER = "[-\\+]?\\d+%?"; // <path_to_url#number-value> var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; // Actual matching. // Parentheses and commas are optional, but not required. // Whitespace can take the place of commas or opening paren var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; return { CSS_UNIT: new RegExp(CSS_UNIT), rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; })(); // `isValidCSSUnit` // Take in a single string / number and check to see if it looks like a CSS unit // (see `matchers` above for definition). function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } // `stringInputToObject` // Permissive string parsing. Take in a number of formats, and output an object // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` function stringInputToObject(color) { color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); var named = false; if (names[color]) { color = names[color]; named = true; } else if (color == 'transparent') { return { r: 0, g: 0, b: 0, a: 0, format: "name" }; } // Try to match string input using regular expressions. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] // Just return an object and let the conversion functions handle that. // This way the result will be the same whether the tinycolor is initialized with string or object. var match; if ((match = matchers.rgb.exec(color))) { return { r: match[1], g: match[2], b: match[3] }; } if ((match = matchers.rgba.exec(color))) { return { r: match[1], g: match[2], b: match[3], a: match[4] }; } if ((match = matchers.hsl.exec(color))) { return { h: match[1], s: match[2], l: match[3] }; } if ((match = matchers.hsla.exec(color))) { return { h: match[1], s: match[2], l: match[3], a: match[4] }; } if ((match = matchers.hsv.exec(color))) { return { h: match[1], s: match[2], v: match[3] }; } if ((match = matchers.hsva.exec(color))) { return { h: match[1], s: match[2], v: match[3], a: match[4] }; } if ((match = matchers.hex8.exec(color))) { return { r: parseIntFromHex(match[1]), g: parseIntFromHex(match[2]), b: parseIntFromHex(match[3]), a: convertHexToDecimal(match[4]), format: named ? "name" : "hex8" }; } if ((match = matchers.hex6.exec(color))) { return { r: parseIntFromHex(match[1]), g: parseIntFromHex(match[2]), b: parseIntFromHex(match[3]), format: named ? "name" : "hex" }; } if ((match = matchers.hex4.exec(color))) { return { r: parseIntFromHex(match[1] + '' + match[1]), g: parseIntFromHex(match[2] + '' + match[2]), b: parseIntFromHex(match[3] + '' + match[3]), a: convertHexToDecimal(match[4] + '' + match[4]), format: named ? "name" : "hex8" }; } if ((match = matchers.hex3.exec(color))) { return { r: parseIntFromHex(match[1] + '' + match[1]), g: parseIntFromHex(match[2] + '' + match[2]), b: parseIntFromHex(match[3] + '' + match[3]), format: named ? "name" : "hex" }; } return false; } function validateWCAG2Parms(parms) { // return valid WCAG2 parms for isReadable. // If input parms are invalid, return {"level":"AA", "size":"small"} var level, size; parms = parms || {"level":"AA", "size":"small"}; level = (parms.level || "AA").toUpperCase(); size = (parms.size || "small").toLowerCase(); if (level !== "AA" && level !== "AAA") { level = "AA"; } if (size !== "small" && size !== "large") { size = "small"; } return {"level":level, "size":size}; } // Node: Export function if (typeof module !== "undefined" && module.exports) { module.exports = tinycolor; } // AMD/requirejs: Define the module else if (true) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } // Browser: Expose to window else { window.tinycolor = tinycolor; } })(Math); /***/ }), /* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = __webpack_require__(31); var _extends3 = _interopRequireDefault(_extends2); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _handleEscapeMixin = __webpack_require__(141); var _handleEscapeMixin2 = _interopRequireDefault(_handleEscapeMixin); var _prefixMixin = __webpack_require__(47); var _prefixMixin2 = _interopRequireDefault(_prefixMixin); var _utils = __webpack_require__(38); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'RecommendedColors', mixins: [_emitter2.default, _handleEscapeMixin2.default, _prefixMixin2.default], props: { list: { type: Array, default: undefined } }, data: function data() { var columns = 12; var rows = Math.ceil(this.list.length / columns); var normalStep = 1; return { left: -normalStep, right: normalStep, up: -normalStep, down: normalStep, powerKey: 'shiftKey', grid: { x: 1, y: 1 }, rows: rows, columns: columns }; }, computed: { hideClass: function hideClass() { return String(this.prefixCls) + '-hide'; }, linearIndex: function linearIndex() { return this.getLinearIndex(this.grid); }, currentCircle: function currentCircle() { return this.$refs['color-circle-' + String(this.linearIndex)][0]; } }, methods: { getLinearIndex: function getLinearIndex(grid) { return this.columns * (grid.y - 1) + grid.x - 1; }, getMaxLimit: function getMaxLimit(axis) { return axis === 'x' ? this.columns : this.rows; }, handleArrow: function handleArrow(e, axis, direction) { e.preventDefault(); e.stopPropagation(); this.blurColor(); var grid = (0, _extends3.default)({}, this.grid); if (e[this.powerKey]) { if (direction < 0) { grid[axis] = 1; } else { grid[axis] = this.getMaxLimit(axis); } } else { grid[axis] += direction; } var index = this.getLinearIndex(grid); if (index >= 0 && index < this.list.length) { this.grid[axis] = (0, _utils.clamp)(grid[axis], 1, this.getMaxLimit(axis)); } this.focusColor(); }, blurColor: function blurColor() { this.currentCircle.classList.add(this.hideClass); }, focusColor: function focusColor() { this.currentCircle.classList.remove(this.hideClass); }, handleEnter: function handleEnter(e) { this.handleClick(e, this.currentCircle); }, handleClick: function handleClick(e, circle) { e.preventDefault(); e.stopPropagation(); this.$refs.reference.focus(); var target = circle || e.target; var colorId = target.dataset.colorId || target.parentElement.dataset.colorId; if (colorId) { this.blurColor(); var id = Number(colorId) + 1; this.grid.x = id % this.columns || this.columns; this.grid.y = Math.ceil(id / this.columns); this.focusColor(); this.$emit('picker-color', this.list[colorId]); this.$emit('change', { hex: this.list[colorId], source: 'hex' }); } }, lineBreak: function lineBreak(list, index) { if (!index) { return false; } var nextIndex = index + 1; return nextIndex < list.length && nextIndex % this.columns === 0; } } }; /***/ }), /* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { methods: { handleEscape: function handleEscape(e) { this.dispatch('ColorPicker', 'on-escape-keydown', e); } } }; /***/ }), /* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _hsaMixin = __webpack_require__(76); var _hsaMixin2 = _interopRequireDefault(_hsaMixin); var _prefixMixin = __webpack_require__(47); var _prefixMixin2 = _interopRequireDefault(_prefixMixin); var _utils = __webpack_require__(38); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Saturation', mixins: [_hsaMixin2.default, _prefixMixin2.default], data: function data() { var normalStep = 0.01; return { left: -normalStep, right: normalStep, up: normalStep, down: -normalStep, multiplier: 10, powerKey: 'shiftKey' }; }, computed: { bgColorStyle: function bgColorStyle() { return { background: 'hsl(' + String(this.value.hsv.h) + ', 100%, 50%)' }; }, pointerStyle: function pointerStyle() { return { top: -(this.value.hsv.v * 100) + 1 + 100 + '%', left: this.value.hsv.s * 100 + '%' }; } }, methods: { change: function change(h, s, v, a) { this.$emit('change', { h: h, s: s, v: v, a: a, source: 'hsva' }); }, handleSlide: function handleSlide(e, direction, key) { e.preventDefault(); e.stopPropagation(); var isPowerKey = e[this.powerKey]; var increment = isPowerKey ? direction * this.multiplier : direction; var _value$hsv = this.value.hsv, h = _value$hsv.h, s = _value$hsv.s, v = _value$hsv.v, a = _value$hsv.a; var saturation = (0, _utils.clamp)(s + (0, _utils.getIncrement)(key, ['left', 'right'], increment), 0, 1); var bright = (0, _utils.clamp)(v + (0, _utils.getIncrement)(key, ['up', 'down'], increment), 0, 1); this.change(h, saturation, bright, a); }, handleChange: function handleChange(e) { e.preventDefault(); e.stopPropagation(); var _$refs$container = this.$refs.container, clientWidth = _$refs$container.clientWidth, clientHeight = _$refs$container.clientHeight; var left = (0, _utils.clamp)(this.getLeft(e), 0, clientWidth); var top = (0, _utils.clamp)(this.getTop(e), 0, clientHeight); var saturation = left / clientWidth; var bright = (0, _utils.clamp)(1 - top / clientHeight, 0, 1); this.change(this.value.hsv.h, saturation, bright, this.value.hsv.a); }, handleMouseDown: function handleMouseDown(e) { _hsaMixin2.default.methods.handleMouseDown.call(this, e); (0, _dom.on)(window, 'mouseup', this.handleChange); }, unbindEventListeners: function unbindEventListeners(e) { _hsaMixin2.default.methods.unbindEventListeners.call(this, e); (0, _dom.off)(window, 'mouseup', this.handleChange); } } }; /***/ }), /* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _hsaMixin = __webpack_require__(76); var _hsaMixin2 = _interopRequireDefault(_hsaMixin); var _prefixMixin = __webpack_require__(47); var _prefixMixin2 = _interopRequireDefault(_prefixMixin); var _utils = __webpack_require__(38); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Hue', mixins: [_hsaMixin2.default, _prefixMixin2.default], data: function data() { var normalStep = 1 / 360 * 25; var jumpStep = 20 * normalStep; return { left: -normalStep, right: normalStep, up: jumpStep, down: -jumpStep, powerKey: 'shiftKey', percent: (0, _utils.clamp)(this.value.hsl.h * 100 / 360, 0, 100) }; }, watch: { value: function value() { this.percent = (0, _utils.clamp)(this.value.hsl.h * 100 / 360, 0, 100); } }, methods: { change: function change(percent) { this.percent = (0, _utils.clamp)(percent, 0, 100); var _value$hsl = this.value.hsl, h = _value$hsl.h, s = _value$hsl.s, l = _value$hsl.l, a = _value$hsl.a; var newHue = (0, _utils.clamp)(percent / 100 * 360, 0, 360); if (h !== newHue) { this.$emit('change', { h: newHue, s: s, l: l, a: a, source: 'hsl' }); } }, handleSlide: function handleSlide(e, direction) { e.preventDefault(); e.stopPropagation(); if (e[this.powerKey]) { this.change(direction < 0 ? 0 : 100); return; } this.change(this.percent + direction); }, handleChange: function handleChange(e) { e.preventDefault(); e.stopPropagation(); var left = this.getLeft(e); if (left < 0) { this.change(0); return; } var clientWidth = this.$refs.container.clientWidth; if (left > clientWidth) { this.change(100); return; } this.change(left * 100 / clientWidth); } } }; /***/ }), /* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _hsaMixin = __webpack_require__(76); var _hsaMixin2 = _interopRequireDefault(_hsaMixin); var _prefixMixin = __webpack_require__(47); var _prefixMixin2 = _interopRequireDefault(_prefixMixin); var _utils = __webpack_require__(38); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Alpha', mixins: [_hsaMixin2.default, _prefixMixin2.default], data: function data() { var normalStep = 1; var jumpStep = 10; return { left: -normalStep, right: normalStep, up: jumpStep, down: -jumpStep, powerKey: 'shiftKey' }; }, computed: { gradientStyle: function gradientStyle() { var _value$rgba = this.value.rgba, r = _value$rgba.r, g = _value$rgba.g, b = _value$rgba.b; var start = (0, _utils.toRGBAString)({ r: r, g: g, b: b, a: 0 }); var finish = (0, _utils.toRGBAString)({ r: r, g: g, b: b, a: 1 }); return { background: 'linear-gradient(to right, ' + String(start) + ' 0%, ' + String(finish) + ' 100%)' }; } }, methods: { change: function change(newAlpha) { var _value$hsl = this.value.hsl, h = _value$hsl.h, s = _value$hsl.s, l = _value$hsl.l; var a = this.value.a; if (a !== newAlpha) { this.$emit('change', { h: h, s: s, l: l, a: newAlpha, source: 'rgba' }); } }, handleSlide: function handleSlide(e, direction) { e.preventDefault(); e.stopPropagation(); this.change((0, _utils.clamp)(e[this.powerKey] ? direction : Math.round(this.value.hsl.a * 100 + direction) / 100, 0, 1)); }, handleChange: function handleChange(e) { e.preventDefault(); e.stopPropagation(); var left = this.getLeft(e); if (left < 0) { this.change(0); return; } var clientWidth = this.$refs.container.clientWidth; if (left > clientWidth) { this.change(1); return; } this.change(Math.round(left * 100 / clientWidth) / 100); } } }; /***/ }), /* 145 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_content_vue__ = __webpack_require__(146); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_content_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_content_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_content_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_content_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_content_vue__ = __webpack_require__(391); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_content_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_content_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_content_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_content_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_content_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var prefixCls = 'ivu-layout'; exports.default = { name: 'Content', computed: { wrapClasses: function wrapClasses() { return prefixCls + '-content'; } } }; /***/ }), /* 147 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_picker_vue__ = __webpack_require__(148); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_picker_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_picker_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_picker_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_picker_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_picker_vue__ = __webpack_require__(395); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_picker_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_picker_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_picker_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_picker_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_picker_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); var _stringify = __webpack_require__(54); var _stringify2 = _interopRequireDefault(_stringify); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _extends2 = __webpack_require__(31); var _extends3 = _interopRequireDefault(_extends2); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); var _util = __webpack_require__(17); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-date-picker'; var pickerPrefixCls = 'ivu-picker'; var isEmptyArray = function (val) { (0, _newArrowCheck3.default)(undefined, undefined); return val.reduce(function (isEmpty, str) { (0, _newArrowCheck3.default)(undefined, undefined); return isEmpty && !str || typeof str === 'string' && str.trim() === ''; }.bind(undefined), true); }.bind(undefined); var keyValueMapper = { 40: 'up', 39: 'right', 38: 'down', 37: 'left' }; var mapPossibleValues = function (key, horizontal, vertical) { (0, _newArrowCheck3.default)(undefined, undefined); if (key === 'left') return horizontal * -1; if (key === 'right') return horizontal * 1; if (key === 'up') return vertical * 1; if (key === 'down') return vertical * -1; }.bind(undefined); var pulseElement = function (el) { (0, _newArrowCheck3.default)(undefined, undefined); var pulseClass = 'ivu-date-picker-btn-pulse'; el.classList.add(pulseClass); setTimeout(function () { (0, _newArrowCheck3.default)(undefined, undefined); return el.classList.remove(pulseClass); }.bind(undefined), 200); }.bind(undefined); var extractTime = function (date) { (0, _newArrowCheck3.default)(undefined, undefined); if (!date) return [0, 0, 0]; return [date.getHours(), date.getMinutes(), date.getSeconds()]; }.bind(undefined); exports.default = { mixins: [_emitter2.default], components: { iInput: _input2.default, Drop: _dropdown2.default, Icon: _icon2.default }, directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, props: { format: { type: String }, readonly: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, editable: { type: Boolean, default: true }, clearable: { type: Boolean, default: true }, confirm: { type: Boolean, default: false }, open: { type: Boolean, default: null }, multiple: { type: Boolean, default: false }, timePickerOptions: { default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return {}; }.bind(undefined), type: Object }, splitPanels: { type: Boolean, default: false }, showWeekNumbers: { type: Boolean, default: false }, startDate: { type: Date }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, placeholder: { type: String, default: '' }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']); }, default: 'bottom-start' }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, name: { type: String }, elementId: { type: String }, steps: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, value: { type: [Date, String, Array] }, options: { type: Object, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return {}; }.bind(undefined) }, separator: { type: String, default: ' - ' } }, data: function data() { var isRange = this.type.includes('range'); var emptyArray = isRange ? [null, null] : [null]; var initialValue = isEmptyArray((isRange ? this.value : [this.value]) || []) ? emptyArray : this.parseDate(this.value); var focusedTime = initialValue.map(extractTime); return { prefixCls: prefixCls, showClose: false, visible: false, internalValue: initialValue, disableClickOutSide: false, disableCloseUnderTransfer: false, selectionMode: this.onSelectionModeChange(this.type), forceInputRerender: 1, isFocused: false, focusedDate: initialValue[0] || this.startDate || new Date(), focusedTime: { column: 0, picker: 0, time: focusedTime, active: false }, internalFocus: false }; }, computed: { wrapperClasses: function wrapperClasses() { return [prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-focused', this.isFocused)]; }, publicVModelValue: function publicVModelValue() { var _this = this; if (this.multiple) { return this.internalValue.slice(); } else { var isRange = this.type.includes('range'); var val = this.internalValue.map(function (date) { (0, _newArrowCheck3.default)(this, _this); return date instanceof Date ? new Date(date) : date || ''; }.bind(this)); if (this.type.match(/^time/)) val = val.map(this.formatDate); return isRange || this.multiple ? val : val[0]; } }, publicStringValue: function publicStringValue() { var formatDate = this.formatDate, publicVModelValue = this.publicVModelValue, type = this.type; if (type.match(/^time/)) return publicVModelValue; if (this.multiple) return formatDate(publicVModelValue); return Array.isArray(publicVModelValue) ? publicVModelValue.map(formatDate) : formatDate(publicVModelValue); }, opened: function opened() { return this.open === null ? this.visible : this.open; }, transition: function transition() { var bottomPlaced = this.placement.match(/^bottom/); return bottomPlaced ? 'slide-up' : 'slide-down'; }, visualValue: function visualValue() { return this.formatDate(this.internalValue); }, isConfirm: function isConfirm() { return this.confirm || this.type === 'datetime' || this.type === 'datetimerange' || this.multiple; }, arrowType: function arrowType() { var type = ''; if (this.type === 'time' || this.type === 'timerange') { type = 'ios-time-outline'; if (this.$IVIEW) { if (this.$IVIEW.timePicker.customIcon) { type = ''; } else if (this.$IVIEW.timePicker.icon) { type = this.$IVIEW.timePicker.icon; } } } else { type = 'ios-calendar-outline'; if (this.$IVIEW) { if (this.$IVIEW.datePicker.customIcon) { type = ''; } else if (this.$IVIEW.datePicker.icon) { type = this.$IVIEW.datePicker.icon; } } } if (this.showClose) type = 'ios-close-circle'; return type; }, customArrowType: function customArrowType() { var type = ''; if (!this.showClose) { if (this.type === 'time' || this.type === 'timerange') { if (this.$IVIEW) { if (this.$IVIEW.timePicker.customIcon) { type = this.$IVIEW.timePicker.customIcon; } } } else { if (this.$IVIEW) { if (this.$IVIEW.datePicker.customIcon) { type = this.$IVIEW.datePicker.customIcon; } } } } return type; }, arrowSize: function arrowSize() { var size = ''; if (!this.showClose) { if (this.type === 'time' || this.type === 'timerange') { if (this.$IVIEW) { if (this.$IVIEW.timePicker.iconSize) { size = this.$IVIEW.timePicker.iconSize; } } } else { if (this.$IVIEW) { if (this.$IVIEW.datePicker.iconSize) { size = this.$IVIEW.datePicker.iconSize; } } } } return size; } }, methods: { onSelectionModeChange: function onSelectionModeChange(type) { if (type.match(/^date/)) type = 'date'; this.selectionMode = (0, _assist.oneOf)(type, ['year', 'month', 'date', 'time']) && type; return this.selectionMode; }, handleTransferClick: function handleTransferClick() { if (this.transfer) this.disableCloseUnderTransfer = true; }, handleClose: function handleClose(e) { if (this.disableCloseUnderTransfer) { this.disableCloseUnderTransfer = false; return false; } if (e && e.type === 'mousedown' && this.visible) { e.preventDefault(); e.stopPropagation(); return; } if (this.visible) { var pickerPanel = this.$refs.pickerPanel && this.$refs.pickerPanel.$el; if (e && pickerPanel && pickerPanel.contains(e.target)) return; this.visible = false; e && e.preventDefault(); e && e.stopPropagation(); this.$emit('on-clickoutside', e); return; } this.isFocused = false; this.disableClickOutSide = false; }, handleFocus: function handleFocus(e) { if (this.readonly) return; this.isFocused = true; if (e && e.type === 'focus') return; if (!this.disabled) { this.visible = true; } }, handleBlur: function handleBlur(e) { if (this.internalFocus) { this.internalFocus = false; return; } if (this.visible) { e.preventDefault(); return; } this.isFocused = false; this.onSelectionModeChange(this.type); this.internalValue = this.internalValue.slice(); this.reset(); this.$refs.pickerPanel.onToggleVisibility(false); }, handleKeydown: function handleKeydown(e) { var _this2 = this; var keyCode = e.keyCode; if (keyCode === 9) { if (this.visible) { e.stopPropagation(); e.preventDefault(); if (this.isConfirm) { var selector = '.' + pickerPrefixCls + '-confirm > *'; var tabbable = this.$refs.drop.$el.querySelectorAll(selector); this.internalFocus = true; var element = [].concat((0, _toConsumableArray3.default)(tabbable))[e.shiftKey ? 'pop' : 'shift'](); element.focus(); } else { this.handleClose(); } } else { this.focused = false; } } var arrows = [37, 38, 39, 40]; if (!this.visible && arrows.includes(keyCode)) { this.visible = true; return; } if (keyCode === 27) { if (this.visible) { e.stopPropagation(); this.handleClose(); } } if (keyCode === 13) { var timePickers = (0, _assist.findComponentsDownward)(this, 'TimeSpinner'); if (timePickers.length > 0) { var columnsPerPicker = timePickers[0].showSeconds ? 3 : 2; var pickerIndex = Math.floor(this.focusedTime.column / columnsPerPicker); var value = this.focusedTime.time[pickerIndex]; timePickers[pickerIndex].chooseValue(value); return; } if (this.type.match(/range/)) { this.$refs.pickerPanel.handleRangePick(this.focusedDate, 'date'); } else { var panels = (0, _assist.findComponentsDownward)(this, 'PanelTable'); var compareDate = function (d) { (0, _newArrowCheck3.default)(this, _this2); var sliceIndex = ['year', 'month', 'date'].indexOf(this.type) + 1; return [d.getFullYear(), d.getMonth(), d.getDate()].slice(0, sliceIndex).join('-'); }.bind(this); var dateIsValid = panels.find(function (_ref2) { var cells = _ref2.cells; (0, _newArrowCheck3.default)(this, _this2); return cells.find(function (_ref3) { var date = _ref3.date, disabled = _ref3.disabled; (0, _newArrowCheck3.default)(this, _this2); return compareDate(date) === compareDate(this.focusedDate) && !disabled; }.bind(this)); }.bind(this)); if (dateIsValid) this.onPick(this.focusedDate, false, 'date'); } } if (!arrows.includes(keyCode)) return; if (this.focusedTime.active) e.preventDefault(); this.navigateDatePanel(keyValueMapper[keyCode], e.shiftKey); }, reset: function reset() { this.$refs.pickerPanel.reset && this.$refs.pickerPanel.reset(); }, navigateTimePanel: function navigateTimePanel(direction) { var _this3 = this; this.focusedTime.active = true; var horizontal = direction.match(/left|right/); var vertical = direction.match(/up|down/); var timePickers = (0, _assist.findComponentsDownward)(this, 'TimeSpinner'); var maxNrOfColumns = (timePickers[0].showSeconds ? 3 : 2) * timePickers.length; var column = function (currentColumn) { (0, _newArrowCheck3.default)(this, _this3); var incremented = currentColumn + (horizontal ? direction === 'left' ? -1 : 1 : 0); return (incremented + maxNrOfColumns) % maxNrOfColumns; }.bind(this)(this.focusedTime.column); var columnsPerPicker = maxNrOfColumns / timePickers.length; var pickerIndex = Math.floor(column / columnsPerPicker); var col = column % columnsPerPicker; if (horizontal) { var time = this.internalValue.map(extractTime); this.focusedTime = (0, _extends3.default)({}, this.focusedTime, { column: column, time: time }); timePickers.forEach(function (instance, i) { (0, _newArrowCheck3.default)(this, _this3); if (i === pickerIndex) instance.updateFocusedTime(col, time[pickerIndex]);else instance.updateFocusedTime(-1, instance.focusedTime); }.bind(this)); } if (vertical) { var increment = direction === 'up' ? 1 : -1; var timeParts = ['hours', 'minutes', 'seconds']; var pickerPossibleValues = timePickers[pickerIndex][String(timeParts[col]) + 'List']; var nextIndex = pickerPossibleValues.findIndex(function (_ref4) { var text = _ref4.text; (0, _newArrowCheck3.default)(this, _this3); return this.focusedTime.time[pickerIndex][col] === text; }.bind(this)) + increment; var nextValue = pickerPossibleValues[nextIndex % pickerPossibleValues.length].text; var times = this.focusedTime.time.map(function (time, i) { (0, _newArrowCheck3.default)(this, _this3); if (i !== pickerIndex) return time; time[col] = nextValue; return time; }.bind(this)); this.focusedTime = (0, _extends3.default)({}, this.focusedTime, { time: times }); timePickers.forEach(function (instance, i) { (0, _newArrowCheck3.default)(this, _this3); if (i === pickerIndex) instance.updateFocusedTime(col, times[i]);else instance.updateFocusedTime(-1, instance.focusedTime); }.bind(this)); } }, navigateDatePanel: function navigateDatePanel(direction, shift) { var timePickers = (0, _assist.findComponentsDownward)(this, 'TimeSpinner'); if (timePickers.length > 0) { this.navigateTimePanel(direction, shift, timePickers); return; } if (shift) { if (this.type === 'year') { this.focusedDate = new Date(this.focusedDate.getFullYear() + mapPossibleValues(direction, 0, 10), this.focusedDate.getMonth(), this.focusedDate.getDate()); } else { this.focusedDate = new Date(this.focusedDate.getFullYear() + mapPossibleValues(direction, 0, 1), this.focusedDate.getMonth() + mapPossibleValues(direction, 1, 0), this.focusedDate.getDate()); } var position = direction.match(/left|down/) ? 'prev' : 'next'; var double = direction.match(/up|down/) ? '-double' : ''; var button = this.$refs.drop.$el.querySelector('.ivu-date-picker-' + position + '-btn-arrow' + double); if (button) pulseElement(button); return; } var initialDate = this.focusedDate || this.internalValue && this.internalValue[0] || new Date(); var focusedDate = new Date(initialDate); if (this.type.match(/^date/)) { var lastOfMonth = (0, _util.getDayCountOfMonth)(initialDate.getFullYear(), initialDate.getMonth()); var startDay = initialDate.getDate(); var nextDay = focusedDate.getDate() + mapPossibleValues(direction, 1, 7); if (nextDay < 1) { if (direction.match(/left|right/)) { focusedDate.setMonth(focusedDate.getMonth() + 1); focusedDate.setDate(nextDay); } else { focusedDate.setDate(startDay + Math.floor((lastOfMonth - startDay) / 7) * 7); } } else if (nextDay > lastOfMonth) { if (direction.match(/left|right/)) { focusedDate.setMonth(focusedDate.getMonth() - 1); focusedDate.setDate(nextDay); } else { focusedDate.setDate(startDay % 7); } } else { focusedDate.setDate(nextDay); } } if (this.type.match(/^month/)) { focusedDate.setMonth(focusedDate.getMonth() + mapPossibleValues(direction, 1, 3)); } if (this.type.match(/^year/)) { focusedDate.setFullYear(focusedDate.getFullYear() + mapPossibleValues(direction, 1, 3)); } this.focusedDate = focusedDate; }, handleInputChange: function handleInputChange(event) { var _this4 = this; var isArrayValue = this.type.includes('range') || this.multiple; var oldValue = this.visualValue; var newValue = event.target.value; var newDate = this.parseDate(newValue); var disabledDateFn = this.options && typeof this.options.disabledDate === 'function' && this.options.disabledDate; var valueToTest = isArrayValue ? newDate : newDate[0]; var isDisabled = disabledDateFn && disabledDateFn(valueToTest); var isValidDate = newDate.reduce(function (valid, date) { (0, _newArrowCheck3.default)(this, _this4); return valid && date instanceof Date; }.bind(this), true); if (newValue !== oldValue && !isDisabled && isValidDate) { this.emitChange(this.type); this.internalValue = newDate; } else { this.forceInputRerender++; } }, handleInputMouseenter: function handleInputMouseenter() { if (this.readonly || this.disabled) return; if (this.visualValue && this.clearable) { this.showClose = true; } }, handleInputMouseleave: function handleInputMouseleave() { this.showClose = false; }, handleIconClick: function handleIconClick(e) { if (this.showClose) { if (e) e.stopPropagation(); this.handleClear(); } else if (!this.disabled) { this.handleFocus(); } }, handleClear: function handleClear() { var _this5 = this; this.visible = false; this.internalValue = this.internalValue.map(function () { (0, _newArrowCheck3.default)(this, _this5); return null; }.bind(this)); this.$emit('on-clear'); this.dispatch('FormItem', 'on-form-change', ''); this.emitChange(this.type); this.reset(); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this5); return this.onSelectionModeChange(this.type); }.bind(this), 500); }, emitChange: function emitChange(type) { var _this6 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this6); this.$emit('on-change', this.publicStringValue, type); this.dispatch('FormItem', 'on-form-change', this.publicStringValue); }.bind(this)); }, parseDate: function parseDate(val) { var _this7 = this; var isRange = this.type.includes('range'); var type = this.type; var parser = (_util.TYPE_VALUE_RESOLVER_MAP[type] || _util.TYPE_VALUE_RESOLVER_MAP['default']).parser; var format = this.format || _util.DEFAULT_FORMATS[type]; var multipleParser = _util.TYPE_VALUE_RESOLVER_MAP['multiple'].parser; if (val && type === 'time' && !(val instanceof Date)) { val = parser(val, format, this.separator); } else if (this.multiple && val) { val = multipleParser(val, format, this.separator); } else if (isRange) { if (!val) { val = [null, null]; } else { if (typeof val === 'string') { val = parser(val, format, this.separator); } else if (type === 'timerange') { val = parser(val, format, this.separator).map(function (v) { (0, _newArrowCheck3.default)(this, _this7); return v || ''; }.bind(this)); } else { var _val = val, _val2 = (0, _slicedToArray3.default)(_val, 2), start = _val2[0], end = _val2[1]; if (start instanceof Date && end instanceof Date) { val = val.map(function (date) { (0, _newArrowCheck3.default)(this, _this7); return new Date(date); }.bind(this)); } else if (typeof start === 'string' && typeof end === 'string') { val = parser(val.join(this.separator), format, this.separator); } else if (!start || !end) { val = [null, null]; } } } } else if (typeof val === 'string' && type.indexOf('time') !== 0) { val = parser(val, format) || null; } return isRange || this.multiple ? val || [] : [val]; }, formatDate: function formatDate(value) { var format = _util.DEFAULT_FORMATS[this.type]; if (this.multiple) { var formatter = _util.TYPE_VALUE_RESOLVER_MAP.multiple.formatter; return formatter(value, this.format || format, this.separator); } else { var _ref5 = _util.TYPE_VALUE_RESOLVER_MAP[this.type] || _util.TYPE_VALUE_RESOLVER_MAP['default'], _formatter = _ref5.formatter; return _formatter(value, this.format || format, this.separator); } }, onPick: function onPick(dates) { var _this8 = this; var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var type = arguments[2]; if (this.multiple) { var pickedTimeStamp = dates.getTime(); var indexOfPickedDate = this.internalValue.findIndex(function (date) { (0, _newArrowCheck3.default)(this, _this8); return date && date.getTime() === pickedTimeStamp; }.bind(this)); var allDates = [].concat((0, _toConsumableArray3.default)(this.internalValue), [dates]).filter(Boolean); var timeStamps = allDates.map(function (date) { (0, _newArrowCheck3.default)(this, _this8); return date.getTime(); }.bind(this)).filter(function (ts, i, arr) { (0, _newArrowCheck3.default)(this, _this8); return arr.indexOf(ts) === i && i !== indexOfPickedDate; }.bind(this)); this.internalValue = timeStamps.map(function (ts) { (0, _newArrowCheck3.default)(this, _this8); return new Date(ts); }.bind(this)); } else { dates = this.parseDate(dates); this.internalValue = Array.isArray(dates) ? dates : [dates]; } if (this.internalValue[0]) this.focusedDate = this.internalValue[0]; this.focusedTime = (0, _extends3.default)({}, this.focusedTime, { time: this.internalValue.map(extractTime) }); if (!this.isConfirm) this.onSelectionModeChange(this.type); if (!this.isConfirm) this.visible = visible; this.emitChange(type); }, onPickSuccess: function onPickSuccess() { this.visible = false; this.$emit('on-ok'); this.focus(); this.reset(); }, focus: function focus() { this.$refs.input && this.$refs.input.focus(); }, updatePopper: function updatePopper() { this.$refs.drop.update(); } }, watch: { visible: function visible(state) { if (state === false) { this.$refs.drop.destroy(); } this.$refs.drop.update(); this.$emit('on-open-change', state); }, value: function value(val) { this.internalValue = this.parseDate(val); }, open: function open(val) { this.visible = val === true; }, type: function type(_type) { this.onSelectionModeChange(_type); }, publicVModelValue: function publicVModelValue(now, before) { var newValue = (0, _stringify2.default)(now); var oldValue = (0, _stringify2.default)(before); var shouldEmitInput = newValue !== oldValue || (typeof now === 'undefined' ? 'undefined' : (0, _typeof3.default)(now)) !== (typeof before === 'undefined' ? 'undefined' : (0, _typeof3.default)(before)); if (shouldEmitInput) this.$emit('input', now); } }, mounted: function mounted() { var _this9 = this; var initialValue = this.value; var parsedValue = this.publicVModelValue; if ((typeof initialValue === 'undefined' ? 'undefined' : (0, _typeof3.default)(initialValue)) !== (typeof parsedValue === 'undefined' ? 'undefined' : (0, _typeof3.default)(parsedValue)) || (0, _stringify2.default)(initialValue) !== (0, _stringify2.default)(parsedValue)) { this.$emit('input', this.publicVModelValue); } if (this.open !== null) this.visible = this.open; this.$on('focus-input', function () { (0, _newArrowCheck3.default)(this, _this9); return this.focus(); }.bind(this)); this.$on('update-popper', function () { (0, _newArrowCheck3.default)(this, _this9); return this.updatePopper(); }.bind(this)); } }; /***/ }), /* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _dateTable = __webpack_require__(150); var _dateTable2 = _interopRequireDefault(_dateTable); var _yearTable = __webpack_require__(152); var _yearTable2 = _interopRequireDefault(_yearTable); var _monthTable = __webpack_require__(154); var _monthTable2 = _interopRequireDefault(_monthTable); var _time = __webpack_require__(156); var _time2 = _interopRequireDefault(_time); var _confirm = __webpack_require__(57); var _confirm2 = _interopRequireDefault(_confirm); var _datePanelLabel = __webpack_require__(161); var _datePanelLabel2 = _interopRequireDefault(_datePanelLabel); var _panelMixin = __webpack_require__(58); var _panelMixin2 = _interopRequireDefault(_panelMixin); var _datePanelMixin = __webpack_require__(163); var _datePanelMixin2 = _interopRequireDefault(_datePanelMixin); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _util = __webpack_require__(17); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker-panel'; var datePrefixCls = 'ivu-date-picker'; exports.default = { name: 'DatePickerPanel', mixins: [_panelMixin2.default, _locale2.default, _datePanelMixin2.default], components: { Icon: _icon2.default, DateTable: _dateTable2.default, YearTable: _yearTable2.default, MonthTable: _monthTable2.default, TimePicker: _time2.default, Confirm: _confirm2.default, datePanelLabel: _datePanelLabel2.default }, props: { multiple: { type: Boolean, default: false } }, data: function data() { var selectionMode = this.selectionMode, value = this.value; var dates = value.slice().sort(); return { prefixCls: prefixCls, datePrefixCls: datePrefixCls, currentView: selectionMode || 'date', pickerTable: this.getTableType(selectionMode), dates: dates, panelDate: this.startDate || dates[0] || new Date() }; }, computed: { classes: function classes() { return [prefixCls + '-body-wrapper', (0, _defineProperty3.default)({}, prefixCls + '-with-sidebar', this.shortcuts.length)]; }, panelPickerHandlers: function panelPickerHandlers() { return this.pickerTable === String(this.currentView) + '-table' ? this.handlePick : this.handlePreSelection; }, datePanelLabel: function datePanelLabel() { var _this = this; var locale = this.t('i.locale'); var datePanelLabel = this.t('i.datepicker.datePanelLabel'); var date = this.panelDate; var _formatDateLabels = (0, _util.formatDateLabels)(locale, datePanelLabel, date), labels = _formatDateLabels.labels, separator = _formatDateLabels.separator; var handler = function (type) { (0, _newArrowCheck3.default)(this, _this); return function () { (0, _newArrowCheck3.default)(this, _this); return this.pickerTable = this.getTableType(type); }.bind(this); }.bind(this); return { separator: separator, labels: labels.map(function (obj) { (0, _newArrowCheck3.default)(this, _this); return obj.handler = handler(obj.type), obj; }.bind(this)) }; }, timeDisabled: function timeDisabled() { return !this.dates[0]; } }, watch: { value: function value(newVal) { this.dates = newVal; var panelDate = this.multiple ? this.dates[this.dates.length - 1] : this.startDate || this.dates[0]; this.panelDate = panelDate || new Date(); }, currentView: function currentView(_currentView) { var _this2 = this; this.$emit('on-selection-mode-change', _currentView); if (this.currentView === 'time') { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); var spinner = this.$refs.timePicker.$refs.timeSpinner; spinner.updateScroll(); }.bind(this)); } }, selectionMode: function selectionMode(type) { this.currentView = type; this.pickerTable = this.getTableType(type); }, focusedDate: function focusedDate(date) { var isDifferentYear = date.getFullYear() !== this.panelDate.getFullYear(); var isDifferentMonth = isDifferentYear || date.getMonth() !== this.panelDate.getMonth(); if (isDifferentYear || isDifferentMonth) { if (!this.multiple) this.panelDate = date; } } }, methods: { reset: function reset() { this.currentView = this.selectionMode; this.pickerTable = this.getTableType(this.currentView); }, changeYear: function changeYear(dir) { if (this.selectionMode === 'year' || this.pickerTable === 'year-table') { this.panelDate = new Date(this.panelDate.getFullYear() + dir * 10, 0, 1); } else { this.panelDate = (0, _util.siblingMonth)(this.panelDate, dir * 12); } }, getTableType: function getTableType(currentView) { return currentView.match(/^time/) ? 'time-picker' : String(currentView) + '-table'; }, changeMonth: function changeMonth(dir) { this.panelDate = (0, _util.siblingMonth)(this.panelDate, dir); }, handlePreSelection: function handlePreSelection(value) { this.panelDate = value; if (this.pickerTable === 'year-table') this.pickerTable = 'month-table';else this.pickerTable = this.getTableType(this.currentView); }, handlePick: function handlePick(value, type) { var selectionMode = this.selectionMode, panelDate = this.panelDate; if (selectionMode === 'year') value = new Date(value.getFullYear(), 0, 1);else if (selectionMode === 'month') value = new Date(panelDate.getFullYear(), value.getMonth(), 1);else value = new Date(value); this.dates = [value]; this.$emit('on-pick', value, false, type || selectionMode); } } }; /***/ }), /* 150 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue__ = __webpack_require__(151); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_table_vue__ = __webpack_require__(401); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_table_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_table_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_date_table_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_table_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_table_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = __webpack_require__(31); var _extends3 = _interopRequireDefault(_extends2); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _util = __webpack_require__(17); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _jsCalendar = __webpack_require__(397); var _jsCalendar2 = _interopRequireDefault(_jsCalendar); var _mixin = __webpack_require__(77); var _mixin2 = _interopRequireDefault(_mixin); var _prefixCls = __webpack_require__(78); var _prefixCls2 = _interopRequireDefault(_prefixCls); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { mixins: [_locale2.default, _mixin2.default], props: { showWeekNumbers: { type: Boolean, default: false } }, data: function data() { return { prefixCls: _prefixCls2.default }; }, computed: { classes: function classes() { return ['' + String(_prefixCls2.default), (0, _defineProperty3.default)({}, String(_prefixCls2.default) + '-show-week-numbers', this.showWeekNumbers)]; }, calendar: function calendar() { var weekStartDay = Number(this.t('i.datepicker.weekStartDay')); return new _jsCalendar2.default.Generator({ onlyDays: !this.showWeekNumbers, weekStart: weekStartDay }); }, headerDays: function headerDays() { var _this = this; var weekStartDay = Number(this.t('i.datepicker.weekStartDay')); var translatedDays = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'].map(function (item) { (0, _newArrowCheck3.default)(this, _this); return this.t('i.datepicker.weeks.' + item); }.bind(this)); var weekDays = translatedDays.splice(weekStartDay, 7 - weekStartDay).concat(translatedDays.splice(0, weekStartDay)); return this.showWeekNumbers ? [''].concat(weekDays) : weekDays; }, cells: function cells() { var _this2 = this; var tableYear = this.tableDate.getFullYear(); var tableMonth = this.tableDate.getMonth(); var today = (0, _util.clearHours)(new Date()); var selectedDays = this.dates.filter(Boolean).map(_util.clearHours); var _dates$map = this.dates.map(_util.clearHours), _dates$map2 = (0, _slicedToArray3.default)(_dates$map, 2), minDay = _dates$map2[0], maxDay = _dates$map2[1]; var rangeStart = this.rangeState.from && (0, _util.clearHours)(this.rangeState.from); var rangeEnd = this.rangeState.to && (0, _util.clearHours)(this.rangeState.to); var isRange = this.selectionMode === 'range'; var disabledTestFn = typeof this.disabledDate === 'function' && this.disabledDate; return this.calendar(tableYear, tableMonth, function (cell) { (0, _newArrowCheck3.default)(this, _this2); if (cell.date instanceof Date) cell.date.setTime(cell.date.getTime() + cell.date.getTimezoneOffset() * 60000 + 480 * 60 * 1000); var time = cell.date && (0, _util.clearHours)(cell.date); var dateIsInCurrentMonth = cell.date && tableMonth === cell.date.getMonth(); return (0, _extends3.default)({}, cell, { type: time === today ? 'today' : cell.type, selected: dateIsInCurrentMonth && selectedDays.includes(time), disabled: cell.date && disabledTestFn && disabledTestFn(new Date(time)), range: dateIsInCurrentMonth && isRange && (0, _util.isInRange)(time, rangeStart, rangeEnd), start: dateIsInCurrentMonth && isRange && time === minDay, end: dateIsInCurrentMonth && isRange && time === maxDay }); }.bind(this)).cells.slice(this.showWeekNumbers ? 8 : 0); } }, methods: { getCellCls: function getCellCls(cell) { var _ref2; return [String(_prefixCls2.default) + '-cell', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-selected', cell.selected || cell.start || cell.end), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-disabled', cell.disabled), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-today', cell.type === 'today'), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-prev-month', cell.type === 'prevMonth'), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-next-month', cell.type === 'nextMonth'), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-week-label', cell.type === 'weekLabel'), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-cell-range', cell.range && !cell.start && !cell.end), (0, _defineProperty3.default)(_ref2, String(_prefixCls2.default) + '-focused', (0, _util.clearHours)(cell.date) === (0, _util.clearHours)(this.focusedDate)), _ref2)]; } } }; /***/ }), /* 152 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue__ = __webpack_require__(153); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_year_table_vue__ = __webpack_require__(402); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_year_table_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_year_table_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_year_table_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_year_table_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_year_table_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 153 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _util = __webpack_require__(17); var _assist = __webpack_require__(3); var _mixin = __webpack_require__(77); var _mixin2 = _interopRequireDefault(_mixin); var _prefixCls = __webpack_require__(78); var _prefixCls2 = _interopRequireDefault(_prefixCls); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { mixins: [_mixin2.default], props: {}, computed: { classes: function classes() { return ['' + String(_prefixCls2.default), String(_prefixCls2.default) + '-year']; }, startYear: function startYear() { return Math.floor(this.tableDate.getFullYear() / 10) * 10; }, cells: function cells() { var _this = this; var cells = []; var cell_tmpl = { text: '', selected: false, disabled: false }; var selectedDays = this.dates.filter(Boolean).map(function (date) { (0, _newArrowCheck3.default)(this, _this); return (0, _util.clearHours)(new Date(date.getFullYear(), 0, 1)); }.bind(this)); var focusedDate = (0, _util.clearHours)(new Date(this.focusedDate.getFullYear(), 0, 1)); for (var i = 0; i < 10; i++) { var cell = (0, _assist.deepCopy)(cell_tmpl); cell.date = new Date(this.startYear + i, 0, 1); cell.disabled = typeof this.disabledDate === 'function' && this.disabledDate(cell.date) && this.selectionMode === 'year'; var day = (0, _util.clearHours)(cell.date); cell.selected = selectedDays.includes(day); cell.focused = day === focusedDate; cells.push(cell); } return cells; } }, methods: { getCellCls: function getCellCls(cell) { var _ref; return [String(_prefixCls2.default) + '-cell', (_ref = {}, (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-selected', cell.selected), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-disabled', cell.disabled), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-focused', cell.focused), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-range', cell.range && !cell.start && !cell.end), _ref)]; } } }; /***/ }), /* 154 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue__ = __webpack_require__(155); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_month_table_vue__ = __webpack_require__(403); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_month_table_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_month_table_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_month_table_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_month_table_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_month_table_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _util = __webpack_require__(17); var _assist = __webpack_require__(3); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _mixin = __webpack_require__(77); var _mixin2 = _interopRequireDefault(_mixin); var _prefixCls = __webpack_require__(78); var _prefixCls2 = _interopRequireDefault(_prefixCls); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { mixins: [_locale2.default, _mixin2.default], props: {}, computed: { classes: function classes() { return ['' + String(_prefixCls2.default), String(_prefixCls2.default) + '-month']; }, cells: function cells() { var _this = this; var cells = []; var cell_tmpl = { text: '', selected: false, disabled: false }; var tableYear = this.tableDate.getFullYear(); var selectedDays = this.dates.filter(Boolean).map(function (date) { (0, _newArrowCheck3.default)(this, _this); return (0, _util.clearHours)(new Date(date.getFullYear(), date.getMonth(), 1)); }.bind(this)); var focusedDate = (0, _util.clearHours)(new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 1)); for (var i = 0; i < 12; i++) { var cell = (0, _assist.deepCopy)(cell_tmpl); cell.date = new Date(tableYear, i, 1); cell.text = this.tCell(i + 1); var day = (0, _util.clearHours)(cell.date); cell.disabled = typeof this.disabledDate === 'function' && this.disabledDate(cell.date) && this.selectionMode === 'month'; cell.selected = selectedDays.includes(day); cell.focused = day === focusedDate; cells.push(cell); } return cells; } }, methods: { getCellCls: function getCellCls(cell) { var _ref; return [String(_prefixCls2.default) + '-cell', (_ref = {}, (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-selected', cell.selected), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-disabled', cell.disabled), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-focused', cell.focused), (0, _defineProperty3.default)(_ref, String(_prefixCls2.default) + '-cell-range', cell.range && !cell.start && !cell.end), _ref)]; }, tCell: function tCell(nr) { return this.t('i.datepicker.months.m' + String(nr)); } } }; /***/ }), /* 156 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_vue__ = __webpack_require__(157); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_time_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_time_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_time_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__ = __webpack_require__(406); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_time_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 157 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _timeSpinner = __webpack_require__(158); var _timeSpinner2 = _interopRequireDefault(_timeSpinner); var _confirm = __webpack_require__(57); var _confirm2 = _interopRequireDefault(_confirm); var _timeMixins = __webpack_require__(56); var _timeMixins2 = _interopRequireDefault(_timeMixins); var _panelMixin = __webpack_require__(58); var _panelMixin2 = _interopRequireDefault(_panelMixin); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _util = __webpack_require__(17); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker-panel'; var timePrefixCls = 'ivu-time-picker'; var capitalize = function (str) { (0, _newArrowCheck3.default)(undefined, undefined); return str[0].toUpperCase() + str.slice(1); }.bind(undefined); var mergeDateHMS = function (date, hours, minutes, seconds) { (0, _newArrowCheck3.default)(undefined, undefined); var newDate = new Date(date.getTime()); newDate.setHours(hours); newDate.setMinutes(minutes); newDate.setSeconds(seconds); return newDate; }.bind(undefined); var unique = function (el, i, arr) { (0, _newArrowCheck3.default)(undefined, undefined); return arr.indexOf(el) === i; }.bind(undefined); var returnFalse = function () { (0, _newArrowCheck3.default)(undefined, undefined); return false; }.bind(undefined); exports.default = { name: 'TimePickerPanel', mixins: [_panelMixin2.default, _locale2.default, _timeMixins2.default], components: { TimeSpinner: _timeSpinner2.default, Confirm: _confirm2.default }, props: { disabledDate: { type: Function, default: returnFalse }, steps: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, format: { type: String, default: 'HH:mm:ss' }, value: { type: Array, required: true } }, data: function data() { return { prefixCls: prefixCls, timePrefixCls: timePrefixCls, date: this.value[0] || (0, _util.initTimeDate)(), showDate: false }; }, computed: { showSeconds: function showSeconds() { return !(this.format || '').match(/mm$/); }, visibleDate: function visibleDate() { var date = this.date; var month = date.getMonth() + 1; var tYear = this.t('i.datepicker.year'); var tMonth = this.t('i.datepicker.month' + String(month)); return '' + String(date.getFullYear()) + String(tYear) + ' ' + String(tMonth); }, timeSlots: function timeSlots() { var _this = this; if (!this.value[0]) return []; return ['getHours', 'getMinutes', 'getSeconds'].map(function (slot) { (0, _newArrowCheck3.default)(this, _this); return this.date[slot](); }.bind(this)); }, disabledHMS: function disabledHMS() { var _this2 = this; var disabledTypes = ['disabledHours', 'disabledMinutes', 'disabledSeconds']; if (this.disabledDate === returnFalse || !this.value[0]) { var disabled = disabledTypes.reduce(function (obj, type) { (0, _newArrowCheck3.default)(this, _this2); return obj[type] = this[type], obj; }.bind(this), {}); return disabled; } else { var slots = [24, 60, 60]; var _disabled = ['Hours', 'Minutes', 'Seconds'].map(function (type) { (0, _newArrowCheck3.default)(this, _this2); return this['disabled' + String(type)]; }.bind(this)); var disabledHMS = _disabled.map(function (preDisabled, j) { (0, _newArrowCheck3.default)(this, _this2); var slot = slots[j]; var toDisable = preDisabled; var _loop = function _loop(i) { var hms = _this2.timeSlots.map(function (slot, x) { (0, _newArrowCheck3.default)(this, _this2); return x === j ? i : slot; }.bind(_this2)); var testDateTime = mergeDateHMS.apply(undefined, [_this2.date].concat((0, _toConsumableArray3.default)(hms))); if (_this2.disabledDate(testDateTime, true)) toDisable.push(i); }; for (var i = 0; i < slot; i += this.steps[j] || 1) { _loop(i); } return toDisable.filter(unique); }.bind(this)); return disabledTypes.reduce(function (obj, type, i) { (0, _newArrowCheck3.default)(this, _this2); return obj[type] = disabledHMS[i], obj; }.bind(this), {}); } } }, watch: { value: function value(dates) { var newVal = dates[0] || (0, _util.initTimeDate)(); newVal = new Date(newVal); this.date = newVal; } }, methods: { handleChange: function handleChange(date) { var _this3 = this; var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; var newDate = new Date(this.date); (0, _keys2.default)(date).forEach(function (type) { (0, _newArrowCheck3.default)(this, _this3); return newDate['set' + String(capitalize(type))](date[type]); }.bind(this)); if (emit) this.$emit('on-pick', newDate, 'time'); } }, mounted: function mounted() { if (this.$parent && this.$parent.$options.name === 'DatePicker') this.showDate = true; } }; /***/ }), /* 158 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue__ = __webpack_require__(159); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_spinner_vue__ = __webpack_require__(404); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_spinner_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_spinner_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_time_spinner_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_spinner_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_spinner_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _extends3 = __webpack_require__(31); var _extends4 = _interopRequireDefault(_extends3); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _timeMixins = __webpack_require__(56); var _timeMixins2 = _interopRequireDefault(_timeMixins); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-time-picker-cells'; var timeParts = ['hours', 'minutes', 'seconds']; exports.default = { name: 'TimeSpinner', mixins: [_timeMixins2.default], props: { hours: { type: [Number, String], default: NaN }, minutes: { type: [Number, String], default: NaN }, seconds: { type: [Number, String], default: NaN }, showSeconds: { type: Boolean, default: true }, steps: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) } }, data: function data() { var _this = this; return { spinerSteps: [1, 1, 1].map(function (one, i) { (0, _newArrowCheck3.default)(this, _this); return Math.abs(this.steps[i]) || one; }.bind(this)), prefixCls: prefixCls, compiled: false, focusedColumn: -1, focusedTime: [0, 0, 0] }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-with-seconds', this.showSeconds)]; }, hoursList: function hoursList() { var hours = []; var step = this.spinerSteps[0]; var focusedHour = this.focusedColumn === 0 && this.focusedTime[0]; var hour_tmpl = { text: 0, selected: false, disabled: false, hide: false }; for (var i = 0; i < 24; i += step) { var hour = (0, _assist.deepCopy)(hour_tmpl); hour.text = i; hour.focused = i === focusedHour; if (this.disabledHours.length && this.disabledHours.indexOf(i) > -1) { hour.disabled = true; if (this.hideDisabledOptions) hour.hide = true; } if (this.hours === i) hour.selected = true; hours.push(hour); } return hours; }, minutesList: function minutesList() { var minutes = []; var step = this.spinerSteps[1]; var focusedMinute = this.focusedColumn === 1 && this.focusedTime[1]; var minute_tmpl = { text: 0, selected: false, disabled: false, hide: false }; for (var i = 0; i < 60; i += step) { var minute = (0, _assist.deepCopy)(minute_tmpl); minute.text = i; minute.focused = i === focusedMinute; if (this.disabledMinutes.length && this.disabledMinutes.indexOf(i) > -1) { minute.disabled = true; if (this.hideDisabledOptions) minute.hide = true; } if (this.minutes === i) minute.selected = true; minutes.push(minute); } return minutes; }, secondsList: function secondsList() { var seconds = []; var step = this.spinerSteps[2]; var focusedMinute = this.focusedColumn === 2 && this.focusedTime[2]; var second_tmpl = { text: 0, selected: false, disabled: false, hide: false }; for (var i = 0; i < 60; i += step) { var second = (0, _assist.deepCopy)(second_tmpl); second.text = i; second.focused = i === focusedMinute; if (this.disabledSeconds.length && this.disabledSeconds.indexOf(i) > -1) { second.disabled = true; if (this.hideDisabledOptions) second.hide = true; } if (this.seconds === i) second.selected = true; seconds.push(second); } return seconds; } }, methods: { getCellCls: function getCellCls(cell) { var _ref2; return [prefixCls + '-cell', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-cell-selected', cell.selected), (0, _defineProperty3.default)(_ref2, prefixCls + '-cell-focused', cell.focused), (0, _defineProperty3.default)(_ref2, prefixCls + '-cell-disabled', cell.disabled), _ref2)]; }, chooseValue: function chooseValue(values) { var _this2 = this; var changes = timeParts.reduce(function (obj, part, i) { (0, _newArrowCheck3.default)(this, _this2); var value = values[i]; if (this[part] === value) return obj; return (0, _extends4.default)({}, obj, (0, _defineProperty3.default)({}, part, value)); }.bind(this), {}); if ((0, _keys2.default)(changes).length > 0) { this.emitChange(changes); } }, handleClick: function handleClick(type, cell) { if (cell.disabled) return; var data = (0, _defineProperty3.default)({}, type, cell.text); this.emitChange(data); }, emitChange: function emitChange(changes) { this.$emit('on-change', changes); this.$emit('on-pick-click'); }, scroll: function scroll(type, index) { var from = this.$refs[type].scrollTop; var to = 24 * this.getScrollIndex(type, index); (0, _assist.scrollTop)(this.$refs[type], from, to, 500); }, getScrollIndex: function getScrollIndex(type, index) { var _this3 = this; var Type = (0, _assist.firstUpperCase)(type); var disabled = this['disabled' + String(Type)]; if (disabled.length && this.hideDisabledOptions) { var _count = 0; disabled.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this3); return item <= index ? _count++ : ''; }.bind(this)); index -= _count; } return index; }, updateScroll: function updateScroll() { var _this4 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this4); timeParts.forEach(function (type) { (0, _newArrowCheck3.default)(this, _this4); this.$refs[type].scrollTop = 24 * this[String(type) + 'List'].findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this4); return obj.text == this[type]; }.bind(this)); }.bind(this)); }.bind(this)); }, formatTime: function formatTime(text) { return text < 10 ? '0' + text : text; }, updateFocusedTime: function updateFocusedTime(col, time) { this.focusedColumn = col; this.focusedTime = time.slice(); } }, watch: { hours: function hours(val) { var _this5 = this; if (!this.compiled) return; this.scroll('hours', this.hoursList.findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this5); return obj.text == val; }.bind(this))); }, minutes: function minutes(val) { var _this6 = this; if (!this.compiled) return; this.scroll('minutes', this.minutesList.findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this6); return obj.text == val; }.bind(this))); }, seconds: function seconds(val) { var _this7 = this; if (!this.compiled) return; this.scroll('seconds', this.secondsList.findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this7); return obj.text == val; }.bind(this))); }, focusedTime: function focusedTime(updated, old) { var _this8 = this; timeParts.forEach(function (part, i) { (0, _newArrowCheck3.default)(this, _this8); if (updated[i] === old[i] || typeof updated[i] === 'undefined') return; var valueIndex = this[String(part) + 'List'].findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this8); return obj.text === updated[i]; }.bind(this)); this.scroll(part, valueIndex); }.bind(this)); } }, mounted: function mounted() { var _this9 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this9); return this.compiled = true; }.bind(this)); } }; /***/ }), /* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker'; exports.default = { mixins: [_locale2.default, _emitter2.default], components: { iButton: _button2.default }, props: { showTime: false, isTime: false, timeDisabled: false }, data: function data() { return { prefixCls: prefixCls }; }, computed: { timeClasses: function timeClasses() { return prefixCls + '-confirm-time'; }, labels: function labels() { var _this = this; var labels = ['time', 'clear', 'ok']; var values = [this.isTime ? 'selectDate' : 'selectTime', 'clear', 'ok']; return labels.reduce(function (obj, key, i) { (0, _newArrowCheck3.default)(this, _this); obj[key] = this.t('i.datepicker.' + values[i]); return obj; }.bind(this), {}); } }, methods: { handleClear: function handleClear() { this.$emit('on-pick-clear'); }, handleSuccess: function handleSuccess() { this.$emit('on-pick-success'); }, handleToggleTime: function handleToggleTime() { if (this.timeDisabled) return; this.$emit('on-pick-toggle-time'); this.dispatch('CalendarPicker', 'focus-input'); this.dispatch('CalendarPicker', 'update-popper'); }, handleTab: function handleTab(e) { var tabbables = [].concat((0, _toConsumableArray3.default)(this.$el.children)); var expectedFocus = tabbables[e.shiftKey ? 'shift' : 'pop'](); if (document.activeElement === expectedFocus) { e.preventDefault(); e.stopPropagation(); this.dispatch('CalendarPicker', 'focus-input'); } } } }; /***/ }), /* 161 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_panel_label_vue__ = __webpack_require__(162); /* harmony import */ var your_sha256_hashyour_sha256_hasht = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_date_panel_label_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_date_panel_label_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_date_panel_label_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_panel_label_vue__ = __webpack_require__(407); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hasht = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_panel_label_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashyour_sha256_hasht.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_panel_label_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_panel_label_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { props: { datePanelLabel: Object, currentView: String, datePrefixCls: String } }; /***/ }), /* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assist = __webpack_require__(3); var _util = __webpack_require__(17); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { props: { showTime: { type: Boolean, default: false }, format: { type: String, default: 'yyyy-MM-dd' }, selectionMode: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['year', 'month', 'date', 'time']); }, default: 'date' }, shortcuts: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, disabledDate: { type: Function, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return false; }.bind(undefined) }, value: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return [(0, _util.initTimeDate)(), (0, _util.initTimeDate)()]; }.bind(undefined) }, timePickerOptions: { default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return {}; }.bind(undefined), type: Object }, showWeekNumbers: { type: Boolean, default: false }, startDate: { type: Date }, pickerType: { type: String, require: true }, focusedDate: { type: Date, required: true } }, computed: { isTime: function isTime() { return this.currentView === 'time'; } }, methods: { handleToggleTime: function handleToggleTime() { this.currentView = this.currentView === 'time' ? 'date' : 'time'; } } }; /***/ }), /* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _dateTable = __webpack_require__(150); var _dateTable2 = _interopRequireDefault(_dateTable); var _yearTable = __webpack_require__(152); var _yearTable2 = _interopRequireDefault(_yearTable); var _monthTable = __webpack_require__(154); var _monthTable2 = _interopRequireDefault(_monthTable); var _timeRange = __webpack_require__(165); var _timeRange2 = _interopRequireDefault(_timeRange); var _confirm = __webpack_require__(57); var _confirm2 = _interopRequireDefault(_confirm); var _util = __webpack_require__(17); var _datePanelLabel = __webpack_require__(161); var _datePanelLabel2 = _interopRequireDefault(_datePanelLabel); var _panelMixin = __webpack_require__(58); var _panelMixin2 = _interopRequireDefault(_panelMixin); var _datePanelMixin = __webpack_require__(163); var _datePanelMixin2 = _interopRequireDefault(_datePanelMixin); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker-panel'; var datePrefixCls = 'ivu-date-picker'; var dateSorter = function (a, b) { (0, _newArrowCheck3.default)(undefined, undefined); if (!a || !b) return 0; return a.getTime() - b.getTime(); }.bind(undefined); exports.default = { name: 'RangeDatePickerPanel', mixins: [_panelMixin2.default, _locale2.default, _datePanelMixin2.default], components: { Icon: _icon2.default, DateTable: _dateTable2.default, YearTable: _yearTable2.default, MonthTable: _monthTable2.default, TimePicker: _timeRange2.default, Confirm: _confirm2.default, datePanelLabel: _datePanelLabel2.default }, props: { splitPanels: { type: Boolean, default: false } }, data: function data() { var _this = this; var _value$map = this.value.map(function (date) { (0, _newArrowCheck3.default)(this, _this); return date || (0, _util.initTimeDate)(); }.bind(this)), _value$map2 = (0, _slicedToArray3.default)(_value$map, 2), minDate = _value$map2[0], maxDate = _value$map2[1]; var leftPanelDate = this.startDate ? this.startDate : minDate; return { prefixCls: prefixCls, datePrefixCls: datePrefixCls, dates: this.value, rangeState: { from: this.value[0], to: this.value[1], selecting: minDate && !maxDate }, currentView: this.selectionMode || 'range', leftPickerTable: String(this.selectionMode) + '-table', rightPickerTable: String(this.selectionMode) + '-table', leftPanelDate: leftPanelDate, rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1) }; }, computed: { classes: function classes() { var _ref; return [prefixCls + '-body-wrapper', datePrefixCls + '-with-range', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-with-sidebar', this.shortcuts.length), (0, _defineProperty3.default)(_ref, datePrefixCls + '-with-week-numbers', this.showWeekNumbers), _ref)]; }, panelBodyClasses: function panelBodyClasses() { var _ref2; return [prefixCls + '-body', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-body-time', this.showTime), (0, _defineProperty3.default)(_ref2, prefixCls + '-body-date', !this.showTime), _ref2)]; }, leftDatePanelLabel: function leftDatePanelLabel() { return this.panelLabelConfig('left'); }, rightDatePanelLabel: function rightDatePanelLabel() { return this.panelLabelConfig('right'); }, leftDatePanelView: function leftDatePanelView() { return this.leftPickerTable.split('-').shift(); }, rightDatePanelView: function rightDatePanelView() { return this.rightPickerTable.split('-').shift(); }, timeDisabled: function timeDisabled() { return !(this.dates[0] && this.dates[1]); }, preSelecting: function preSelecting() { var tableType = String(this.currentView) + '-table'; return { left: this.leftPickerTable !== tableType, right: this.rightPickerTable !== tableType }; }, panelPickerHandlers: function panelPickerHandlers() { return { left: this.preSelecting.left ? this.handlePreSelection.bind(this, 'left') : this.handleRangePick, right: this.preSelecting.right ? this.handlePreSelection.bind(this, 'right') : this.handleRangePick }; } }, watch: { value: function value(newVal) { var minDate = newVal[0] ? (0, _util.toDate)(newVal[0]) : null; var maxDate = newVal[1] ? (0, _util.toDate)(newVal[1]) : null; this.dates = [minDate, maxDate].sort(dateSorter); this.rangeState = { from: this.dates[0], to: this.dates[1], selecting: false }; this.setPanelDates(this.startDate || this.dates[0] || new Date()); }, currentView: function currentView(_currentView) { var leftMonth = this.leftPanelDate.getMonth(); var rightMonth = this.rightPanelDate.getMonth(); var isSameYear = this.leftPanelDate.getFullYear() === this.rightPanelDate.getFullYear(); if (_currentView === 'date' && isSameYear && leftMonth === rightMonth) { this.changePanelDate('right', 'Month', 1); } if (_currentView === 'month' && isSameYear) { this.changePanelDate('right', 'FullYear', 1); } if (_currentView === 'year' && isSameYear) { this.changePanelDate('right', 'FullYear', 10); } }, selectionMode: function selectionMode(type) { this.currentView = type || 'range'; }, focusedDate: function focusedDate(date) { this.setPanelDates(date || new Date()); } }, methods: { reset: function reset() { this.currentView = this.selectionMode; this.leftPickerTable = String(this.currentView) + '-table'; this.rightPickerTable = String(this.currentView) + '-table'; }, setPanelDates: function setPanelDates(leftPanelDate) { this.leftPanelDate = leftPanelDate; var rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1); var splitRightPanelDate = this.dates[1] ? this.dates[1].getTime() : this.dates[1]; this.rightPanelDate = this.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate; }, panelLabelConfig: function panelLabelConfig(direction) { var _this2 = this; var locale = this.t('i.locale'); var datePanelLabel = this.t('i.datepicker.datePanelLabel'); var handler = function (type) { (0, _newArrowCheck3.default)(this, _this2); var fn = type == 'month' ? this.showMonthPicker : this.showYearPicker; return function () { (0, _newArrowCheck3.default)(this, _this2); return fn(direction); }.bind(this); }.bind(this); var date = this[String(direction) + 'PanelDate']; var _formatDateLabels = (0, _util.formatDateLabels)(locale, datePanelLabel, date), labels = _formatDateLabels.labels, separator = _formatDateLabels.separator; return { separator: separator, labels: labels.map(function (obj) { (0, _newArrowCheck3.default)(this, _this2); return obj.handler = handler(obj.type), obj; }.bind(this)) }; }, prevYear: function prevYear(panel) { var increment = this.currentView === 'year' ? -10 : -1; this.changePanelDate(panel, 'FullYear', increment); }, nextYear: function nextYear(panel) { var increment = this.currentView === 'year' ? 10 : 1; this.changePanelDate(panel, 'FullYear', increment); }, prevMonth: function prevMonth(panel) { this.changePanelDate(panel, 'Month', -1); }, nextMonth: function nextMonth(panel) { this.changePanelDate(panel, 'Month', 1); }, changePanelDate: function changePanelDate(panel, type, increment) { var updateOtherPanel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; var current = new Date(this[String(panel) + 'PanelDate']); if (panel === 'left') { current['set' + String(type)](current['get' + String(type)](), 0); } else { current['set' + String(type)](current['get' + String(type)]() + increment); } this[String(panel) + 'PanelDate'] = current; if (!updateOtherPanel) return; if (this.splitPanels) { var otherPanel = panel === 'left' ? 'right' : 'left'; if (panel === 'left' && this.leftPanelDate >= this.rightPanelDate) { this.changePanelDate(otherPanel, type, 1); } if (panel === 'right' && this.rightPanelDate <= this.leftPanelDate) { this.changePanelDate(otherPanel, type, -1); } } else { var _otherPanel = panel === 'left' ? 'right' : 'left'; var currentDate = this[_otherPanel + 'PanelDate']; var temp = new Date(currentDate); if (type === 'Month') { var nextMonthLastDate = new Date(temp.getFullYear(), temp.getMonth() + increment + 1, 0).getDate(); temp.setDate(Math.min(nextMonthLastDate, temp.getDate())); } temp['set' + String(type)](temp['get' + String(type)]() + increment); this[_otherPanel + 'PanelDate'] = temp; } }, showYearPicker: function showYearPicker(panel) { this[String(panel) + 'PickerTable'] = 'year-table'; }, showMonthPicker: function showMonthPicker(panel) { this[String(panel) + 'PickerTable'] = 'month-table'; }, handlePreSelection: function handlePreSelection(panel, value) { this[String(panel) + 'PanelDate'] = value; var currentViewType = this[String(panel) + 'PickerTable']; if (currentViewType === 'year-table') this[String(panel) + 'PickerTable'] = 'month-table';else this[String(panel) + 'PickerTable'] = String(this.currentView) + '-table'; if (!this.splitPanels) { var otherPanel = panel === 'left' ? 'right' : 'left'; this[otherPanel + 'PanelDate'] = value; var increment = otherPanel === 'left' ? -1 : 1; this.changePanelDate(otherPanel, 'Month', increment, false); } }, handleRangePick: function handleRangePick(val, type) { if (this.rangeState.selecting || this.currentView === 'time') { if (this.currentView === 'time') { this.dates = val; } else { var _sort = [this.rangeState.from, val].sort(dateSorter), _sort2 = (0, _slicedToArray3.default)(_sort, 2), minDate = _sort2[0], maxDate = _sort2[1]; this.dates = [minDate, maxDate]; this.rangeState = { from: minDate, to: maxDate, selecting: false }; } this.handleConfirm(false, type || 'date'); } else { this.rangeState = { from: val, to: null, selecting: true }; } }, handleChangeRange: function handleChangeRange(val) { this.rangeState.to = val; } } }; /***/ }), /* 165 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue__ = __webpack_require__(166); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_range_vue__ = __webpack_require__(410); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_range_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_range_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_time_range_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_range_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_range_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _timeSpinner = __webpack_require__(158); var _timeSpinner2 = _interopRequireDefault(_timeSpinner); var _confirm = __webpack_require__(57); var _confirm2 = _interopRequireDefault(_confirm); var _timeMixins = __webpack_require__(56); var _timeMixins2 = _interopRequireDefault(_timeMixins); var _panelMixin = __webpack_require__(58); var _panelMixin2 = _interopRequireDefault(_panelMixin); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _util = __webpack_require__(17); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-picker-panel'; var timePrefixCls = 'ivu-time-picker'; var capitalize = function (str) { (0, _newArrowCheck3.default)(undefined, undefined); return str[0].toUpperCase() + str.slice(1); }.bind(undefined); exports.default = { name: 'RangeTimePickerPanel', mixins: [_panelMixin2.default, _locale2.default, _timeMixins2.default], components: { TimeSpinner: _timeSpinner2.default, Confirm: _confirm2.default }, props: { steps: { type: Array, default: function _default() { (0, _newArrowCheck3.default)(undefined, undefined); return []; }.bind(undefined) }, format: { type: String, default: 'HH:mm:ss' }, value: { type: Array, required: true } }, data: function data() { var _value$slice = this.value.slice(), _value$slice2 = (0, _slicedToArray3.default)(_value$slice, 2), dateStart = _value$slice2[0], dateEnd = _value$slice2[1]; return { prefixCls: prefixCls, timePrefixCls: timePrefixCls, showDate: false, dateStart: dateStart || (0, _util.initTimeDate)(), dateEnd: dateEnd || (0, _util.initTimeDate)() }; }, computed: { classes: function classes() { return [prefixCls + '-body-wrapper', timePrefixCls + '-with-range', (0, _defineProperty3.default)({}, timePrefixCls + '-with-seconds', this.showSeconds)]; }, showSeconds: function showSeconds() { return !(this.format || '').match(/mm$/); }, leftDatePanelLabel: function leftDatePanelLabel() { return this.panelLabelConfig(this.date); }, rightDatePanelLabel: function rightDatePanelLabel() { return this.panelLabelConfig(this.dateEnd); } }, watch: { value: function value(dates) { var _dates$slice = dates.slice(), _dates$slice2 = (0, _slicedToArray3.default)(_dates$slice, 2), dateStart = _dates$slice2[0], dateEnd = _dates$slice2[1]; this.dateStart = dateStart || (0, _util.initTimeDate)(); this.dateEnd = dateEnd || (0, _util.initTimeDate)(); } }, methods: { panelLabelConfig: function panelLabelConfig(date) { var locale = this.t('i.locale'); var datePanelLabel = this.t('i.datepicker.datePanelLabel'); var _formatDateLabels = (0, _util.formatDateLabels)(locale, datePanelLabel, date || (0, _util.initTimeDate)()), labels = _formatDateLabels.labels, separator = _formatDateLabels.separator; return [labels[0].label, separator, labels[1].label].join(''); }, handleChange: function handleChange(start, end) { var _this = this; var emit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var dateStart = new Date(this.dateStart); var dateEnd = new Date(this.dateEnd); (0, _keys2.default)(start).forEach(function (type) { (0, _newArrowCheck3.default)(this, _this); dateStart['set' + String(capitalize(type))](start[type]); }.bind(this)); (0, _keys2.default)(end).forEach(function (type) { (0, _newArrowCheck3.default)(this, _this); dateEnd['set' + String(capitalize(type))](end[type]); }.bind(this)); if (dateEnd < dateStart) dateEnd = dateStart; if (emit) this.$emit('on-pick', [dateStart, dateEnd], 'time'); }, handleStartChange: function handleStartChange(date) { this.handleChange(date, {}); }, handleEndChange: function handleEndChange(date) { this.handleChange({}, date); }, updateScroll: function updateScroll() { this.$refs.timeSpinner.updateScroll(); this.$refs.timeSpinnerEnd.updateScroll(); } }, mounted: function mounted() { if (this.$parent && this.$parent.$options.name === 'DatePicker') this.showDate = true; } }; /***/ }), /* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-divider'; exports.default = { name: 'Divider', props: { type: { type: String, default: 'horizontal', validator: function validator(value) { return (0, _assist.oneOf)(value, ['horizontal', 'vertical']); } }, orientation: { type: String, default: 'center', validator: function validator(value) { return (0, _assist.oneOf)(value, ['left', 'right', 'center']); } }, dashed: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'default']); }, default: 'default' } }, computed: { hasSlot: function hasSlot() { return !!this.$slots.default; }, classes: function classes() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.type), prefixCls + '-' + String(this.size), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-with-text', this.hasSlot && this.orientation === 'center'), (0, _defineProperty3.default)(_ref, prefixCls + '-with-text-' + String(this.orientation), this.hasSlot), (0, _defineProperty3.default)(_ref, prefixCls + '-dashed', !!this.dashed), _ref)]; }, slotClasses: function slotClasses() { return [prefixCls + '-inner-text']; } } }; /***/ }), /* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _mixinsScrollbar = __webpack_require__(79); var _mixinsScrollbar2 = _interopRequireDefault(_mixinsScrollbar); var _dom = __webpack_require__(13); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-drawer'; exports.default = { name: 'Drawer', mixins: [_emitter2.default, _mixinsScrollbar2.default], components: { Icon: _icon2.default }, directives: { TransferDom: _transferDom2.default }, props: { value: { type: Boolean, default: false }, title: { type: String }, width: { type: [Number, String], default: 256 }, closable: { type: Boolean, default: true }, maskClosable: { type: Boolean, default: true }, mask: { type: Boolean, default: true }, maskStyle: { type: Object }, styles: { type: Object }, scrollable: { type: Boolean, default: false }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['left', 'right']); }, default: 'right' }, zIndex: { type: Number, default: 1000 }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? true : this.$IVIEW.transfer; } }, className: { type: String }, inner: { type: Boolean, default: false }, draggable: { type: Boolean, default: false }, beforeClose: Function }, data: function data() { return { prefixCls: prefixCls, visible: this.value, wrapShow: false, showHead: true, canMove: false, dragWidth: this.width, wrapperWidth: this.width, wrapperLeft: 0, minWidth: 256 }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrap', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-hidden', !this.wrapShow), (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), (0, _defineProperty3.default)(_ref, prefixCls + '-no-mask', !this.mask), (0, _defineProperty3.default)(_ref, prefixCls + '-wrap-inner', this.inner), (0, _defineProperty3.default)(_ref, prefixCls + '-wrap-dragging', this.canMove), _ref)]; }, mainStyles: function mainStyles() { var style = {}; var width = parseInt(this.dragWidth); var styleWidth = { width: width <= 100 ? String(width) + '%' : String(width) + 'px' }; (0, _assign2.default)(style, styleWidth); return style; }, contentClasses: function contentClasses() { return [prefixCls + '-content', (0, _defineProperty3.default)({}, prefixCls + '-content-no-mask', !this.mask)]; }, classes: function classes() { var _ref3; return ['' + prefixCls, prefixCls + '-' + String(this.placement), (_ref3 = {}, (0, _defineProperty3.default)(_ref3, prefixCls + '-no-header', !this.showHead), (0, _defineProperty3.default)(_ref3, prefixCls + '-inner', this.inner), _ref3)]; }, maskClasses: function maskClasses() { return [prefixCls + '-mask', (0, _defineProperty3.default)({}, prefixCls + '-mask-inner', this.inner)]; } }, methods: { close: function close() { var _this = this; if (!this.beforeClose) { return this.handleClose(); } var before = this.beforeClose(); if (before && before.then) { before.then(function () { (0, _newArrowCheck3.default)(this, _this); this.handleClose(); }.bind(this)); } else { this.handleClose(); } }, handleClose: function handleClose() { this.visible = false; this.$emit('input', false); this.$emit('on-close'); }, handleMask: function handleMask() { if (this.maskClosable && this.mask) { this.close(); } }, handleWrapClick: function handleWrapClick(event) { var className = event.target.getAttribute('class'); if (className && className.indexOf(prefixCls + '-wrap') > -1) this.handleMask(); }, handleMousemove: function handleMousemove(event) { if (!this.canMove || !this.draggable) return; this.handleSetWrapperWidth(); var left = event.pageX - this.wrapperLeft; var width = this.placement === 'right' ? this.wrapperWidth - left : left; width = Math.max(width, parseFloat(this.minWidth)); event.atMin = width === parseFloat(this.minWidth); if (width <= 100) width = width / this.wrapperWidth * 100; this.dragWidth = width; this.$emit('on-resize-width', parseInt(this.dragWidth)); }, handleSetWrapperWidth: function handleSetWrapperWidth() { var _$el$getBoundingClien = this.$el.getBoundingClientRect(), width = _$el$getBoundingClien.width, left = _$el$getBoundingClien.left; this.wrapperWidth = width; this.wrapperLeft = left; }, handleMouseup: function handleMouseup() { if (!this.draggable) return; this.canMove = false; }, handleTriggerMousedown: function handleTriggerMousedown() { this.canMove = true; window.getSelection().removeAllRanges(); } }, mounted: function mounted() { if (this.visible) { this.wrapShow = true; } var showHead = true; if (this.$slots.header === undefined && !this.title) { showHead = false; } this.showHead = showHead; (0, _dom.on)(document, 'mousemove', this.handleMousemove); (0, _dom.on)(document, 'mouseup', this.handleMouseup); this.handleSetWrapperWidth(); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(document, 'mousemove', this.handleMousemove); (0, _dom.off)(document, 'mouseup', this.handleMouseup); this.removeScrollEffect(); }, watch: { value: function value(val) { this.visible = val; }, visible: function visible(val) { var _this2 = this; if (val === false) { this.timer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.wrapShow = false; var brotherDrawers = (0, _assist.findBrothersComponents)(this, 'Drawer') || []; var parentDrawers = (0, _assist.findComponentsUpward)(this, 'Drawer') || []; var otherDrawers = [].concat(brotherDrawers).concat(parentDrawers); var isScrollDrawer = otherDrawers.some(function (item) { (0, _newArrowCheck3.default)(this, _this2); return item.visible && !item.scrollable; }.bind(this)); if (!isScrollDrawer) { this.removeScrollEffect(); } }.bind(this), 300); } else { if (this.timer) clearTimeout(this.timer); this.wrapShow = true; if (!this.scrollable) { this.addScrollEffect(); } } this.broadcast('Table', 'on-visible-change', val); this.broadcast('Slider', 'on-visible-change', val); this.$emit('on-visible-change', val); }, scrollable: function scrollable(val) { if (!val) { this.addScrollEffect(); } else { this.removeScrollEffect(); } }, title: function title(val) { if (this.$slots.header === undefined) { this.showHead = !!val; } }, width: function width(val) { this.dragWidth = val; } } }; /***/ }), /* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-dropdown'; exports.default = { name: 'Dropdown', directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, components: { Drop: _dropdown2.default }, props: { trigger: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['click', 'hover', 'custom', 'contextMenu']); }, default: 'hover' }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']); }, default: 'bottom' }, visible: { type: Boolean, default: false }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, transferClassName: { type: String }, stopPropagation: { type: Boolean, default: false } }, computed: { transition: function transition() { return ['bottom-start', 'bottom', 'bottom-end'].indexOf(this.placement) > -1 ? 'slide-up' : 'fade'; }, dropdownCls: function dropdownCls() { var _ref; return _ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-transfer', this.transfer), (0, _defineProperty3.default)(_ref, this.transferClassName, this.transferClassName), _ref; }, relClasses: function relClasses() { return [prefixCls + '-rel', (0, _defineProperty3.default)({}, prefixCls + '-rel-user-select-none', this.trigger === 'contextMenu')]; } }, data: function data() { return { prefixCls: prefixCls, currentVisible: this.visible }; }, watch: { visible: function visible(val) { this.currentVisible = val; }, currentVisible: function currentVisible(val) { if (val) { this.$refs.drop.update(); } else { this.$refs.drop.destroy(); } this.$emit('on-visible-change', val); } }, methods: { handleClick: function handleClick() { if (this.trigger === 'custom') return false; if (this.trigger !== 'click') { return false; } this.currentVisible = !this.currentVisible; }, handleRightClick: function handleRightClick() { if (this.trigger === 'custom') return false; if (this.trigger !== 'contextMenu') { return false; } this.currentVisible = !this.currentVisible; }, handleMouseenter: function handleMouseenter() { var _this = this; if (this.trigger === 'custom') return false; if (this.trigger !== 'hover') { return false; } if (this.timeout) clearTimeout(this.timeout); this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); this.currentVisible = true; }.bind(this), 250); }, handleMouseleave: function handleMouseleave() { var _this2 = this; if (this.trigger === 'custom') return false; if (this.trigger !== 'hover') { return false; } if (this.timeout) { clearTimeout(this.timeout); this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.currentVisible = false; }.bind(this), 150); } }, onClickoutside: function onClickoutside(e) { this.handleClose(); this.handleRightClose(); if (this.currentVisible) this.$emit('on-clickoutside', e); }, handleClose: function handleClose() { if (this.trigger === 'custom') return false; if (this.trigger !== 'click') { return false; } this.currentVisible = false; }, handleRightClose: function handleRightClose() { if (this.trigger === 'custom') return false; if (this.trigger !== 'contextMenu') { return false; } this.currentVisible = false; }, hasParent: function hasParent() { var $parent = (0, _assist.findComponentUpward)(this, 'Dropdown'); if ($parent) { return $parent; } else { return false; } } }, mounted: function mounted() { var _this3 = this; this.$on('on-click', function (key) { (0, _newArrowCheck3.default)(this, _this3); if (this.stopPropagation) return; var $parent = this.hasParent(); if ($parent) $parent.$emit('on-click', key); }.bind(this)); this.$on('on-hover-click', function () { (0, _newArrowCheck3.default)(this, _this3); var $parent = this.hasParent(); if ($parent) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); if (this.trigger === 'custom') return false; this.currentVisible = false; }.bind(this)); $parent.$emit('on-hover-click'); } else { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); if (this.trigger === 'custom') return false; this.currentVisible = false; }.bind(this)); } }.bind(this)); this.$on('on-haschild-click', function () { (0, _newArrowCheck3.default)(this, _this3); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); if (this.trigger === 'custom') return false; this.currentVisible = true; }.bind(this)); var $parent = this.hasParent(); if ($parent) $parent.$emit('on-haschild-click'); }.bind(this)); } }; /***/ }), /* 170 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { name: 'DropdownMenu' }; /***/ }), /* 171 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-dropdown-item'; exports.default = { name: 'DropdownItem', props: { name: { type: [String, Number] }, disabled: { type: Boolean, default: false }, selected: { type: Boolean, default: false }, divided: { type: Boolean, default: false } }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-selected', this.selected), (0, _defineProperty3.default)(_ref, prefixCls + '-divided', this.divided), _ref)]; } }, methods: { handleClick: function handleClick() { if (this.disabled) return; var $parent = (0, _assist.findComponentUpward)(this, 'Dropdown'); var hasChildren = this.$parent && this.$parent.$options.name === 'Dropdown'; if (hasChildren) { this.$parent.$emit('on-haschild-click'); } else { if ($parent && $parent.$options.name === 'Dropdown') { $parent.$emit('on-hover-click'); } } $parent.$emit('on-click', this.name); } } }; /***/ }), /* 172 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_footer_vue__ = __webpack_require__(173); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_footer_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_footer_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_footer_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_footer_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_footer_vue__ = __webpack_require__(426); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_footer_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_footer_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_footer_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_footer_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_footer_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var prefixCls = 'ivu-layout'; exports.default = { name: 'Footer', computed: { wrapClasses: function wrapClasses() { return prefixCls + '-footer'; } } }; /***/ }), /* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _promise = __webpack_require__(175); var _promise2 = _interopRequireDefault(_promise); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-form'; exports.default = { name: 'iForm', props: { model: { type: Object }, rules: { type: Object }, labelWidth: { type: Number }, labelPosition: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['left', 'right', 'top']); }, default: 'right' }, inline: { type: Boolean, default: false }, showMessage: { type: Boolean, default: true }, autocomplete: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['on', 'off']); }, default: 'off' } }, provide: function provide() { return { form: this }; }, data: function data() { return { fields: [] }; }, computed: { classes: function classes() { return ['' + prefixCls, prefixCls + '-label-' + String(this.labelPosition), (0, _defineProperty3.default)({}, prefixCls + '-inline', this.inline)]; } }, methods: { resetFields: function resetFields() { var _this = this; this.fields.forEach(function (field) { (0, _newArrowCheck3.default)(this, _this); field.resetField(); }.bind(this)); }, validate: function validate(callback) { var _this2 = this; return new _promise2.default(function (resolve) { (0, _newArrowCheck3.default)(this, _this2); var valid = true; var count = 0; this.fields.forEach(function (field) { (0, _newArrowCheck3.default)(this, _this2); field.validate('', function (errors) { (0, _newArrowCheck3.default)(this, _this2); if (errors) { valid = false; } if (++count === this.fields.length) { resolve(valid); if (typeof callback === 'function') { callback(valid); } } }.bind(this)); }.bind(this)); }.bind(this)); }, validateField: function validateField(prop, cb) { var _this3 = this; var field = this.fields.filter(function (field) { (0, _newArrowCheck3.default)(this, _this3); return field.prop === prop; }.bind(this))[0]; if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); } field.validate('', cb); } }, watch: { rules: function rules() { this.validate(); } }, created: function created() { var _this4 = this; this.$on('on-form-item-add', function (field) { (0, _newArrowCheck3.default)(this, _this4); if (field) this.fields.push(field); return false; }.bind(this)); this.$on('on-form-item-remove', function (field) { (0, _newArrowCheck3.default)(this, _this4); if (field.prop) this.fields.splice(this.fields.indexOf(field), 1); return false; }.bind(this)); } }; /***/ }), /* 175 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(429), __esModule: true }; /***/ }), /* 176 */ /***/ (function(module, exports, __webpack_require__) { // 7.3.20 SpeciesConstructor(O, defaultConstructor) var anObject = __webpack_require__(19); var aFunction = __webpack_require__(49); var SPECIES = __webpack_require__(11)('species'); module.exports = function (O, D) { var C = anObject(O).constructor; var S; return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; /***/ }), /* 177 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(42); var invoke = __webpack_require__(433); var html = __webpack_require__(95); var cel = __webpack_require__(65); var global = __webpack_require__(9); var process = global.process; var setTask = global.setImmediate; var clearTask = global.clearImmediate; var MessageChannel = global.MessageChannel; var Dispatch = global.Dispatch; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var defer, channel, port; var run = function () { var id = +this; // eslint-disable-next-line no-prototype-builtins if (queue.hasOwnProperty(id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var listener = function (event) { run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if (!setTask || !clearTask) { setTask = function setImmediate(fn) { var args = []; var i = 1; while (arguments.length > i) args.push(arguments[i++]); queue[++counter] = function () { // eslint-disable-next-line no-new-func invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; }; clearTask = function clearImmediate(id) { delete queue[id]; }; // Node.js 0.8- if (__webpack_require__(41)(process) == 'process') { defer = function (id) { process.nextTick(ctx(run, id, 1)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { defer = function (id) { Dispatch.now(ctx(run, id, 1)); }; // Browsers with MessageChannel, includes WebWorkers } else if (MessageChannel) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { defer = function (id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); // IE8- } else if (ONREADYSTATECHANGE in cel('script')) { defer = function (id) { html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { defer = function (id) { setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { set: setTask, clear: clearTask }; /***/ }), /* 178 */ /***/ (function(module, exports) { module.exports = function (exec) { try { return { e: false, v: exec() }; } catch (e) { return { e: true, v: e }; } }; /***/ }), /* 179 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(19); var isObject = __webpack_require__(28); var newPromiseCapability = __webpack_require__(80); module.exports = function (C, x) { anObject(C); if (isObject(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; /***/ }), /* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _asyncValidator = __webpack_require__(441); var _asyncValidator2 = _interopRequireDefault(_asyncValidator); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-form-item'; function getPropByPath(obj, path) { var tempObj = obj; path = path.replace(/\[(\w+)\]/g, '.$1'); path = path.replace(/^\./, ''); var keyArr = path.split('.'); var i = 0; for (var len = keyArr.length; i < len - 1; ++i) { var key = keyArr[i]; if (key in tempObj) { tempObj = tempObj[key]; } else { throw new Error('[iView warn]: please transfer a valid prop path to form item!'); } } return { o: tempObj, k: keyArr[i], v: tempObj[keyArr[i]] }; } exports.default = { name: 'FormItem', mixins: [_emitter2.default], props: { label: { type: String, default: '' }, labelWidth: { type: Number }, prop: { type: String }, required: { type: Boolean, default: false }, rules: { type: [Object, Array] }, error: { type: String }, validateStatus: { type: Boolean }, showMessage: { type: Boolean, default: true }, labelFor: { type: String } }, data: function data() { return { prefixCls: prefixCls, isRequired: false, validateState: '', validateMessage: '', validateDisabled: false, validator: {} }; }, watch: { error: { handler: function handler(val) { this.validateMessage = val; this.validateState = val ? 'error' : ''; }, immediate: true }, validateStatus: function validateStatus(val) { this.validateState = val; }, rules: function rules() { this.setRules(); } }, inject: ['form'], computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-required', this.required || this.isRequired), (0, _defineProperty3.default)(_ref, prefixCls + '-error', this.validateState === 'error'), (0, _defineProperty3.default)(_ref, prefixCls + '-validating', this.validateState === 'validating'), _ref)]; }, fieldValue: function fieldValue() { var model = this.form.model; if (!model || !this.prop) { return; } var path = this.prop; if (path.indexOf(':') !== -1) { path = path.replace(/:/, '.'); } return getPropByPath(model, path).v; }, labelStyles: function labelStyles() { var style = {}; var labelWidth = this.labelWidth === 0 || this.labelWidth ? this.labelWidth : this.form.labelWidth; if (labelWidth || labelWidth === 0) { style.width = String(labelWidth) + 'px'; } return style; }, contentStyles: function contentStyles() { var style = {}; var labelWidth = this.labelWidth === 0 || this.labelWidth ? this.labelWidth : this.form.labelWidth; if (labelWidth || labelWidth === 0) { style.marginLeft = String(labelWidth) + 'px'; } return style; } }, methods: { setRules: function setRules() { var _this = this; var rules = this.getRules(); if (rules.length && this.required) { return; } else if (rules.length) { rules.every(function (rule) { (0, _newArrowCheck3.default)(this, _this); this.isRequired = rule.required; }.bind(this)); } else if (this.required) { this.isRequired = this.required; } this.$off('on-form-blur', this.onFieldBlur); this.$off('on-form-change', this.onFieldChange); this.$on('on-form-blur', this.onFieldBlur); this.$on('on-form-change', this.onFieldChange); }, getRules: function getRules() { var formRules = this.form.rules; var selfRules = this.rules; formRules = formRules ? formRules[this.prop] : []; return [].concat(selfRules || formRules || []); }, getFilteredRule: function getFilteredRule(trigger) { var _this2 = this; var rules = this.getRules(); return rules.filter(function (rule) { (0, _newArrowCheck3.default)(this, _this2); return !rule.trigger || rule.trigger.indexOf(trigger) !== -1; }.bind(this)); }, validate: function validate(trigger) { var _this3 = this; var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {}; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); var rules = this.getFilteredRule(trigger); if (!rules || rules.length === 0) { if (!this.required) { callback(); return true; } else { rules = [{ required: true }]; } } this.validateState = 'validating'; var descriptor = {}; descriptor[this.prop] = rules; var validator = new _asyncValidator2.default(descriptor); var model = {}; model[this.prop] = this.fieldValue; validator.validate(model, { firstFields: true }, function (errors) { (0, _newArrowCheck3.default)(this, _this3); this.validateState = !errors ? 'success' : 'error'; this.validateMessage = errors ? errors[0].message : ''; callback(this.validateMessage); }.bind(this)); this.validateDisabled = false; }.bind(this)); }, resetField: function resetField() { this.validateState = ''; this.validateMessage = ''; var model = this.form.model; var value = this.fieldValue; var path = this.prop; if (path.indexOf(':') !== -1) { path = path.replace(/:/, '.'); } var prop = getPropByPath(model, path); if (Array.isArray(value)) { this.validateDisabled = true; prop.o[prop.k] = [].concat(this.initialValue); } else { this.validateDisabled = true; prop.o[prop.k] = this.initialValue; } }, onFieldBlur: function onFieldBlur() { this.validate('blur'); }, onFieldChange: function onFieldChange() { if (this.validateDisabled) { this.validateDisabled = false; return; } this.validate('change'); } }, mounted: function mounted() { if (this.prop) { this.dispatch('iForm', 'on-form-item-add', this); Object.defineProperty(this, 'initialValue', { value: this.fieldValue }); this.setRules(); } }, beforeDestroy: function beforeDestroy() { this.dispatch('iForm', 'on-form-item-remove', this); } }; /***/ }), /* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating required fields. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function required(rule, value, source, errors, options, type) { if (rule.required && (!source.hasOwnProperty(rule.field) || util.isEmptyValue(value, type || rule.type))) { errors.push(util.format(options.messages.required, rule.fullField)); } } exports['default'] = required; /***/ }), /* 182 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_header_vue__ = __webpack_require__(183); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_header_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_header_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_header_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_header_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_header_vue__ = __webpack_require__(465); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_header_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_header_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_header_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_header_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_header_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var prefixCls = 'ivu-layout'; exports.default = { name: 'Header', computed: { wrapClasses: function wrapClasses() { return prefixCls + '-header'; } } }; /***/ }), /* 184 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue__ = __webpack_require__(185); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_number_vue__ = __webpack_require__(468); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_number_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_number_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_input_number_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_number_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_input_number_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-input-number'; var iconPrefixCls = 'ivu-icon'; function addNum(num1, num2) { var sq1 = void 0, sq2 = void 0, m = void 0; try { sq1 = num1.toString().split('.')[1].length; } catch (e) { sq1 = 0; } try { sq2 = num2.toString().split('.')[1].length; } catch (e) { sq2 = 0; } m = Math.pow(10, Math.max(sq1, sq2)); return (Math.round(num1 * m) + Math.round(num2 * m)) / m; } exports.default = { name: 'InputNumber', mixins: [_emitter2.default], props: { max: { type: Number, default: Infinity }, min: { type: Number, default: -Infinity }, step: { type: Number, default: 1 }, activeChange: { type: Boolean, default: true }, value: { type: Number, default: 1 }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, disabled: { type: Boolean, default: false }, autofocus: { type: Boolean, default: false }, readonly: { type: Boolean, default: false }, editable: { type: Boolean, default: true }, name: { type: String }, precision: { type: Number }, elementId: { type: String }, formatter: { type: Function }, parser: { type: Function }, placeholder: { type: String, default: '' } }, data: function data() { return { focused: false, upDisabled: false, downDisabled: false, currentValue: this.value }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-focused', this.focused), _ref)]; }, handlerClasses: function handlerClasses() { return prefixCls + '-handler-wrap'; }, upClasses: function upClasses() { return [prefixCls + '-handler', prefixCls + '-handler-up', (0, _defineProperty3.default)({}, prefixCls + '-handler-up-disabled', this.upDisabled)]; }, innerUpClasses: function innerUpClasses() { return prefixCls + '-handler-up-inner ' + iconPrefixCls + ' ' + iconPrefixCls + '-ios-arrow-up'; }, downClasses: function downClasses() { return [prefixCls + '-handler', prefixCls + '-handler-down', (0, _defineProperty3.default)({}, prefixCls + '-handler-down-disabled', this.downDisabled)]; }, innerDownClasses: function innerDownClasses() { return prefixCls + '-handler-down-inner ' + iconPrefixCls + ' ' + iconPrefixCls + '-ios-arrow-down'; }, inputWrapClasses: function inputWrapClasses() { return prefixCls + '-input-wrap'; }, inputClasses: function inputClasses() { return prefixCls + '-input'; }, precisionValue: function precisionValue() { if (!this.currentValue) return this.currentValue; return this.precision ? this.currentValue.toFixed(this.precision) : this.currentValue; }, formatterValue: function formatterValue() { if (this.formatter && this.precisionValue !== null) { return this.formatter(this.precisionValue); } else { return this.precisionValue; } } }, methods: { preventDefault: function preventDefault(e) { e.preventDefault(); }, up: function up(e) { var targetVal = Number(e.target.value); if (this.upDisabled && isNaN(targetVal)) { return false; } this.changeStep('up', e); }, down: function down(e) { var targetVal = Number(e.target.value); if (this.downDisabled && isNaN(targetVal)) { return false; } this.changeStep('down', e); }, changeStep: function changeStep(type, e) { if (this.disabled || this.readonly) { return false; } var targetVal = Number(e.target.value); var val = Number(this.currentValue); var step = Number(this.step); if (isNaN(val)) { return false; } if (!isNaN(targetVal)) { if (type === 'up') { if (addNum(targetVal, step) <= this.max) { val = targetVal; } else { return false; } } else if (type === 'down') { if (addNum(targetVal, -step) >= this.min) { val = targetVal; } else { return false; } } } if (type === 'up') { val = addNum(val, step); } else if (type === 'down') { val = addNum(val, -step); } this.setValue(val); }, setValue: function setValue(val) { var _this = this; if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision)); var min = this.min, max = this.max; if (val !== null && !this.activeChange) { if (val > max) { val = max; } else if (val < min) { val = min; } } this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.currentValue = val; this.$emit('input', val); this.$emit('on-change', val); this.dispatch('FormItem', 'on-form-change', val); }.bind(this)); }, focus: function focus(event) { this.focused = true; this.$emit('on-focus', event); }, blur: function blur() { this.focused = false; this.$emit('on-blur'); if (!(0, _assist.findComponentUpward)(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { this.dispatch('FormItem', 'on-form-blur', this.currentValue); } }, keyDown: function keyDown(e) { if (e.keyCode === 38) { e.preventDefault(); this.up(e); } else if (e.keyCode === 40) { e.preventDefault(); this.down(e); } }, change: function change(event) { if (event.type == 'change' && this.activeChange) return; if (event.type == 'input' && !this.activeChange) return; var val = event.target.value.trim(); if (this.parser) { val = this.parser(val); } var isEmptyString = val.length === 0; if (isEmptyString) { this.setValue(null); return; } if (event.type == 'input' && val.match(/^\-?\.?$|\.$/g)) return; var precision = this.precision; var cacheVal = this.currentValue; if (precision) { var valMatchPointArr = (val + '').match(/\./g); if (valMatchPointArr && valMatchPointArr.length >= 2) { cacheVal = this.currentValue + '.'; } } val = Number(val); if (!isNaN(val)) { this.currentValue = val; this.setValue(val); } else { event.target.value = cacheVal; } }, changeVal: function changeVal(val) { val = Number(val); if (!isNaN(val)) { var step = this.step; this.upDisabled = val + step > this.max; this.downDisabled = val - step < this.min; } else { this.upDisabled = true; this.downDisabled = true; } } }, mounted: function mounted() { this.changeVal(this.currentValue); }, watch: { value: function value(val) { this.currentValue = val; }, currentValue: function currentValue(val) { var _this2 = this; this.changeVal(val); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); if (this.precision) { var currentValueLength = (this.currentValue || 0).toString().length; var precisionCursor = this.$refs.precisionCursor; precisionCursor.selectionStart = precisionCursor.selectionEnd = currentValueLength; } }.bind(this)); }, min: function min() { this.changeVal(this.currentValue); }, max: function max() { this.changeVal(this.currentValue); } } }; /***/ }), /* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _sign = __webpack_require__(471); var _sign2 = _interopRequireDefault(_sign); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _promise = __webpack_require__(175); var _promise2 = _interopRequireDefault(_promise); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _lodash = __webpack_require__(475); var _lodash2 = _interopRequireDefault(_lodash); var _loadingComponent = __webpack_require__(476); var _loadingComponent2 = _interopRequireDefault(_loadingComponent); var _dom = __webpack_require__(13); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-scroll'; var dragConfig = { sensitivity: 10, minimumStartDragOffset: 5 }; var noop = function () { (0, _newArrowCheck3.default)(undefined, undefined); return _promise2.default.resolve(); }.bind(undefined); exports.default = { name: 'Scroll', mixins: [_locale2.default], components: { loader: _loadingComponent2.default }, props: { height: { type: [Number, String], default: 300 }, onReachTop: { type: Function }, onReachBottom: { type: Function }, onReachEdge: { type: Function }, loadingText: { type: String }, distanceToEdge: [Number, Array] }, data: function data() { var _this = this; var distanceToEdge = this.calculateProximityThreshold(); return { showTopLoader: false, showBottomLoader: false, showBodyLoader: false, lastScroll: 0, reachedTopScrollLimit: true, reachedBottomScrollLimit: false, topRubberPadding: 0, bottomRubberPadding: 0, rubberRollBackTimeout: false, isLoading: false, pointerTouchDown: null, touchScroll: false, handleScroll: function handleScroll() { (0, _newArrowCheck3.default)(this, _this); }.bind(this), pointerUpHandler: function pointerUpHandler() { (0, _newArrowCheck3.default)(this, _this); }.bind(this), pointerMoveHandler: function pointerMoveHandler() { (0, _newArrowCheck3.default)(this, _this); }.bind(this), topProximityThreshold: distanceToEdge[0], bottomProximityThreshold: distanceToEdge[1] }; }, computed: { wrapClasses: function wrapClasses() { return prefixCls + '-wrapper'; }, scrollContainerClasses: function scrollContainerClasses() { return prefixCls + '-container'; }, slotContainerClasses: function slotContainerClasses() { return [prefixCls + '-content', (0, _defineProperty3.default)({}, prefixCls + '-content-loading', this.showBodyLoader)]; }, loaderClasses: function loaderClasses() { return prefixCls + '-loader'; }, wrapperPadding: function wrapperPadding() { return { paddingTop: this.topRubberPadding + 'px', paddingBottom: this.bottomRubberPadding + 'px' }; }, localeLoadingText: function localeLoadingText() { if (this.loadingText === undefined) { return this.t('i.select.loading'); } else { return this.loadingText; } } }, methods: { waitOneSecond: function waitOneSecond() { var _this2 = this; return new _promise2.default(function (resolve) { (0, _newArrowCheck3.default)(this, _this2); setTimeout(resolve, 1000); }.bind(this)); }, calculateProximityThreshold: function calculateProximityThreshold() { var dte = this.distanceToEdge; if (typeof dte == 'undefined') return [20, 20]; return Array.isArray(dte) ? dte : [dte, dte]; }, onCallback: function onCallback(dir) { var _this3 = this; this.isLoading = true; this.showBodyLoader = true; if (dir > 0) { this.showTopLoader = true; this.topRubberPadding = 20; } else { (function () { _this3.showBottomLoader = true; _this3.bottomRubberPadding = 20; var bottomLoaderHeight = 0; var container = _this3.$refs.scrollContainer; var initialScrollTop = container.scrollTop; for (var i = 0; i < 20; i++) { setTimeout(function () { (0, _newArrowCheck3.default)(this, _this3); bottomLoaderHeight = Math.max(bottomLoaderHeight, this.$refs.bottomLoader.getBoundingClientRect().height); container.scrollTop = initialScrollTop + bottomLoaderHeight; }.bind(_this3), i * 50); } })(); } var callbacks = [this.waitOneSecond(), this.onReachEdge ? this.onReachEdge(dir) : noop()]; callbacks.push(dir > 0 ? this.onReachTop ? this.onReachTop() : noop() : this.onReachBottom ? this.onReachBottom() : noop()); var tooSlow = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this3); this.reset(); }.bind(this), 5000); _promise2.default.all(callbacks).then(function () { (0, _newArrowCheck3.default)(this, _this3); clearTimeout(tooSlow); this.reset(); }.bind(this)); }, reset: function reset() { var _this4 = this; ['showTopLoader', 'showBottomLoader', 'showBodyLoader', 'isLoading', 'reachedTopScrollLimit', 'reachedBottomScrollLimit'].forEach(function (prop) { (0, _newArrowCheck3.default)(this, _this4); return this[prop] = false; }.bind(this)); this.lastScroll = 0; this.topRubberPadding = 0; this.bottomRubberPadding = 0; clearInterval(this.rubberRollBackTimeout); if (this.touchScroll) { setTimeout(function () { (0, _newArrowCheck3.default)(this, _this4); (0, _dom.off)(window, 'touchend', this.pointerUpHandler); this.$refs.scrollContainer.removeEventListener('touchmove', this.pointerMoveHandler); this.touchScroll = false; }.bind(this), 500); } }, onWheel: function onWheel(event) { if (this.isLoading) return; var wheelDelta = event.wheelDelta ? event.wheelDelta : -(event.detail || event.deltaY); this.stretchEdge(wheelDelta); }, stretchEdge: function stretchEdge(direction) { var _this5 = this; clearTimeout(this.rubberRollBackTimeout); if (!this.onReachEdge) { if (direction > 0) { if (!this.onReachTop) return; } else { if (!this.onReachBottom) return; } } this.rubberRollBackTimeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this5); if (!this.isLoading) this.reset(); }.bind(this), 250); if (direction > 0 && this.reachedTopScrollLimit) { this.topRubberPadding += 5 - this.topRubberPadding / 5; if (this.topRubberPadding > this.topProximityThreshold) this.onCallback(1); } else if (direction < 0 && this.reachedBottomScrollLimit) { this.bottomRubberPadding += 6 - this.bottomRubberPadding / 4; if (this.bottomRubberPadding > this.bottomProximityThreshold) this.onCallback(-1); } else { this.onScroll(); } }, onScroll: function onScroll() { var el = this.$refs.scrollContainer; if (this.isLoading || !el) return; var scrollDirection = (0, _sign2.default)(this.lastScroll - el.scrollTop); var displacement = el.scrollHeight - el.clientHeight - el.scrollTop; var topNegativeProximity = this.topProximityThreshold < 0 ? this.topProximityThreshold : 0; var bottomNegativeProximity = this.bottomProximityThreshold < 0 ? this.bottomProximityThreshold : 0; if (scrollDirection == -1 && displacement + bottomNegativeProximity <= dragConfig.sensitivity) { this.reachedBottomScrollLimit = true; } else if (scrollDirection >= 0 && el.scrollTop + topNegativeProximity <= 0) { this.reachedTopScrollLimit = true; } else { this.reachedTopScrollLimit = false; this.reachedBottomScrollLimit = false; this.lastScroll = el.scrollTop; } }, getTouchCoordinates: function getTouchCoordinates(e) { return { x: e.touches[0].pageX, y: e.touches[0].pageY }; }, onPointerDown: function onPointerDown(e) { var _this6 = this; if (this.isLoading) return; if (e.type == 'touchstart') { var container = this.$refs.scrollContainer; if (this.reachedTopScrollLimit) container.scrollTop = 5;else if (this.reachedBottomScrollLimit) container.scrollTop -= 5; } if (e.type == 'touchstart' && this.$refs.scrollContainer.scrollTop == 0) this.$refs.scrollContainer.scrollTop = 5; this.pointerTouchDown = this.getTouchCoordinates(e); (0, _dom.on)(window, 'touchend', this.pointerUpHandler); this.$refs.scrollContainer.parentElement.addEventListener('touchmove', function (e) { (0, _newArrowCheck3.default)(this, _this6); e.stopPropagation(); this.pointerMoveHandler(e); }.bind(this), { passive: false, useCapture: true }); }, onPointerMove: function onPointerMove(e) { if (!this.pointerTouchDown) return; if (this.isLoading) return; var pointerPosition = this.getTouchCoordinates(e); var yDiff = pointerPosition.y - this.pointerTouchDown.y; this.stretchEdge(yDiff); if (!this.touchScroll) { var wasDragged = Math.abs(yDiff) > dragConfig.minimumStartDragOffset; if (wasDragged) this.touchScroll = true; } }, onPointerUp: function onPointerUp() { this.pointerTouchDown = null; } }, created: function created() { this.handleScroll = (0, _lodash2.default)(this.onScroll, 150, { leading: false }); this.pointerUpHandler = this.onPointerUp.bind(this); this.pointerMoveHandler = (0, _lodash2.default)(this.onPointerMove, 50, { leading: false }); } }; /***/ }), /* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _spin = __webpack_require__(81); var _spin2 = _interopRequireDefault(_spin); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-scroll'; exports.default = { props: ['text', 'active', 'spinnerHeight'], components: { Spin: _spin2.default, Icon: _icon2.default }, computed: { wrapperClasses: function wrapperClasses() { return [prefixCls + '-loader-wrapper', (0, _defineProperty3.default)({}, prefixCls + '-loader-wrapper-active', this.active)]; }, spinnerClasses: function spinnerClasses() { return prefixCls + '-spinner'; }, iconClasses: function iconClasses() { return prefixCls + '-spinner-icon'; }, textClasses: function textClasses() { return prefixCls + '-loader-text'; } } }; /***/ }), /* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _mixinsScrollbar = __webpack_require__(79); var _mixinsScrollbar2 = _interopRequireDefault(_mixinsScrollbar); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-spin'; exports.default = { name: 'Spin', mixins: [_mixinsScrollbar2.default], props: { size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, fix: { type: Boolean, default: false }, fullscreen: { type: Boolean, default: false } }, data: function data() { return { showText: false, visible: false }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-fix', this.fix), (0, _defineProperty3.default)(_ref, prefixCls + '-show-text', this.showText), (0, _defineProperty3.default)(_ref, prefixCls + '-fullscreen', this.fullscreen), _ref)]; }, mainClasses: function mainClasses() { return prefixCls + '-main'; }, dotClasses: function dotClasses() { return prefixCls + '-dot'; }, textClasses: function textClasses() { return prefixCls + '-text'; }, fullscreenVisible: function fullscreenVisible() { if (this.fullscreen) { return this.visible; } else { return true; } } }, watch: { visible: function visible(val) { if (val) { this.addScrollEffect(); } else { this.removeScrollEffect(); } } }, mounted: function mounted() { this.showText = this.$slots.default !== undefined; } }; /***/ }), /* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); var _trigger = __webpack_require__(482); var _trigger2 = _interopRequireDefault(_trigger); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Split', components: { Trigger: _trigger2.default }, props: { value: { type: [Number, String], default: 0.5 }, mode: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['horizontal', 'vertical']); }, default: 'horizontal' }, min: { type: [Number, String], default: '40px' }, max: { type: [Number, String], default: '40px' } }, data: function data() { return { prefix: 'ivu-split', offset: 0, oldOffset: 0, isMoving: false, computedMin: 0, computedMax: 0, currentValue: 0.5 }; }, computed: { wrapperClasses: function wrapperClasses() { return [String(this.prefix) + '-wrapper', this.isMoving ? 'no-select' : '']; }, paneClasses: function paneClasses() { return [String(this.prefix) + '-pane', (0, _defineProperty3.default)({}, String(this.prefix) + '-pane-moving', this.isMoving)]; }, isHorizontal: function isHorizontal() { return this.mode === 'horizontal'; }, anotherOffset: function anotherOffset() { return 100 - this.offset; }, valueIsPx: function valueIsPx() { return typeof this.value === 'string'; }, offsetSize: function offsetSize() { return this.isHorizontal ? 'offsetWidth' : 'offsetHeight'; } }, methods: { px2percent: function px2percent(numerator, denominator) { return parseFloat(numerator) / parseFloat(denominator); }, getComputedThresholdValue: function getComputedThresholdValue(type) { var size = this.$refs.outerWrapper[this.offsetSize]; if (this.valueIsPx) return typeof this[type] === 'string' ? this[type] : size * this[type];else return typeof this[type] === 'string' ? this.px2percent(this[type], size) : this[type]; }, getMin: function getMin(value1, value2) { if (this.valueIsPx) return String(Math.min(parseFloat(value1), parseFloat(value2))) + 'px';else return Math.min(value1, value2); }, getMax: function getMax(value1, value2) { if (this.valueIsPx) return String(Math.max(parseFloat(value1), parseFloat(value2))) + 'px';else return Math.max(value1, value2); }, getAnotherOffset: function getAnotherOffset(value) { var res = 0; if (this.valueIsPx) res = this.$refs.outerWrapper[this.offsetSize] - parseFloat(value) + 'px';else res = 1 - value; return res; }, handleMove: function handleMove(e) { var pageOffset = this.isHorizontal ? e.pageX : e.pageY; var offset = pageOffset - this.initOffset; var outerWidth = this.$refs.outerWrapper[this.offsetSize]; var value = this.valueIsPx ? String(parseFloat(this.oldOffset) + offset) + 'px' : this.px2percent(outerWidth * this.oldOffset + offset, outerWidth); var anotherValue = this.getAnotherOffset(value); if (parseFloat(value) <= parseFloat(this.computedMin)) value = this.getMax(value, this.computedMin); if (parseFloat(anotherValue) <= parseFloat(this.computedMax)) value = this.getAnotherOffset(this.getMax(anotherValue, this.computedMax)); e.atMin = this.value === this.computedMin; e.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5); this.$emit('input', value); this.$emit('on-moving', e); }, handleUp: function handleUp() { this.isMoving = false; (0, _dom.off)(document, 'mousemove', this.handleMove); (0, _dom.off)(document, 'mouseup', this.handleUp); this.$emit('on-move-end'); }, handleMousedown: function handleMousedown(e) { this.initOffset = this.isHorizontal ? e.pageX : e.pageY; this.oldOffset = this.value; this.isMoving = true; (0, _dom.on)(document, 'mousemove', this.handleMove); (0, _dom.on)(document, 'mouseup', this.handleUp); this.$emit('on-move-start'); }, computeOffset: function computeOffset() { var _this = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.computedMin = this.getComputedThresholdValue('min'); this.computedMax = this.getComputedThresholdValue('max'); var value = this.valueIsPx ? this.px2percent(this.value, this.$refs.outerWrapper[this.offsetSize]) : this.value; var anotherValue = this.getAnotherOffset(value); if (parseFloat(value) <= parseFloat(this.computedMin)) value = this.getMax(value, this.computedMin); if (parseFloat(anotherValue) <= parseFloat(this.computedMax)) value = this.getAnotherOffset(this.getMax(anotherValue, this.computedMax)); this.offset = value * 10000 / 100; this.currentValue = value; this.$emit('input', value); }.bind(this)); } }, watch: { value: function value(val) { if (val !== this.currentValue) { this.currentValue = val; this.computeOffset(); } } }, mounted: function mounted() { var _this2 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.computeOffset(); }.bind(this)); (0, _dom.on)(window, 'resize', this.computeOffset); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(window, 'resize', this.computeOffset); } }; /***/ }), /* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { name: 'Trigger', props: { mode: String }, data: function data() { return { prefix: 'ivu-split-trigger', initOffset: 0 }; }, computed: { isVertical: function isVertical() { return this.mode === 'vertical'; }, classes: function classes() { return [this.prefix, this.isVertical ? String(this.prefix) + '-vertical' : String(this.prefix) + '-horizontal']; }, barConClasses: function barConClasses() { return [String(this.prefix) + '-bar-con', this.isVertical ? 'vertical' : 'horizontal']; } } }; /***/ }), /* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-layout'; exports.default = { name: 'Layout', data: function data() { return { hasSider: false }; }, computed: { wrapClasses: function wrapClasses() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-has-sider', this.hasSider)]; } }, methods: { findSider: function findSider() { var _this = this; return this.$children.some(function (child) { (0, _newArrowCheck3.default)(this, _this); return child.$options.name === 'Sider'; }.bind(this)); } }, mounted: function mounted() { this.hasSider = this.findSider(); } }; /***/ }), /* 192 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_sider_vue__ = __webpack_require__(193); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_sider_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_sider_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_sider_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_sider_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_sider_vue__ = __webpack_require__(488); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_sider_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_sider_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_sider_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_sider_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_sider_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _dom = __webpack_require__(13); var _assist = __webpack_require__(3); var prefixCls = 'ivu-layout-sider'; (0, _assist.setMatchMedia)(); exports.default = { name: 'Sider', props: { value: { type: Boolean, default: false }, width: { type: [Number, String], default: 200 }, collapsedWidth: { type: [Number, String], default: 64 }, hideTrigger: { type: Boolean, default: false }, breakpoint: { type: String, validator: function validator(val) { return (0, _assist.oneOf)(val, ['xs', 'sm', 'md', 'lg', 'xl', 'xxl']); } }, collapsible: { type: Boolean, default: false }, defaultCollapsed: { type: Boolean, default: false }, reverseArrow: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls, mediaMatched: false }; }, computed: { wrapClasses: function wrapClasses() { return ['' + prefixCls, this.siderWidth ? '' : prefixCls + '-zero-width', this.value ? prefixCls + '-collapsed' : '']; }, wrapStyles: function wrapStyles() { return { width: String(this.siderWidth) + 'px', minWidth: String(this.siderWidth) + 'px', maxWidth: String(this.siderWidth) + 'px', flex: '0 0 ' + String(this.siderWidth) + 'px' }; }, triggerClasses: function triggerClasses() { return [prefixCls + '-trigger', this.value ? prefixCls + '-trigger-collapsed' : '']; }, childClasses: function childClasses() { return String(this.prefixCls) + '-children'; }, zeroWidthTriggerClasses: function zeroWidthTriggerClasses() { return [prefixCls + '-zero-width-trigger', this.reverseArrow ? prefixCls + '-zero-width-trigger-left' : '']; }, triggerIconClasses: function triggerIconClasses() { return ['ivu-icon', 'ivu-icon-ios-arrow-' + (this.reverseArrow ? 'forward' : 'back'), prefixCls + '-trigger-icon']; }, siderWidth: function siderWidth() { return this.collapsible ? this.value ? this.mediaMatched ? 0 : parseInt(this.collapsedWidth) : parseInt(this.width) : this.width; }, showZeroTrigger: function showZeroTrigger() { return this.collapsible ? this.mediaMatched && !this.hideTrigger || parseInt(this.collapsedWidth) === 0 && this.value && !this.hideTrigger : false; }, showBottomTrigger: function showBottomTrigger() { return this.collapsible ? !this.mediaMatched && !this.hideTrigger : false; } }, methods: { toggleCollapse: function toggleCollapse() { var value = this.collapsible ? !this.value : false; this.$emit('input', value); }, matchMedia: function matchMedia() { var matchMedia = void 0; if (window.matchMedia) { matchMedia = window.matchMedia; } var mediaMatched = this.mediaMatched; this.mediaMatched = matchMedia('(max-width: ' + String(_assist.dimensionMap[this.breakpoint]) + ')').matches; if (this.mediaMatched !== mediaMatched) { this.$emit('input', this.mediaMatched); } }, onWindowResize: function onWindowResize() { this.matchMedia(); } }, watch: { value: function value(stat) { this.$emit('on-collapse', stat); } }, mounted: function mounted() { if (this.defaultCollapsed) { this.$emit('input', this.defaultCollapsed); } if (this.breakpoint !== undefined) { (0, _dom.on)(window, 'resize', this.onWindowResize); this.matchMedia(); } }, beforeDestroy: function beforeDestroy() { if (this.breakpoint !== undefined) { (0, _dom.off)(window, 'resize', this.onWindowResize); } } }; /***/ }), /* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-list'; exports.default = { name: 'List', provide: function provide() { return { ListInstance: this }; }, props: { border: { type: Boolean, default: false }, itemLayout: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['horizontal', 'vertical']); }, default: 'horizontal' }, header: { type: String, default: '' }, footer: { type: String, default: '' }, loading: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, split: { type: Boolean, default: true } }, data: function data() { return {}; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.size), prefixCls + '-' + String(this.itemLayout), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-bordered', this.border), (0, _defineProperty3.default)(_ref, prefixCls + '-split', this.split), _ref)]; } }, methods: {} }; /***/ }), /* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'ListItem', inject: ['ListInstance'], props: {}, computed: { itemLayout: function itemLayout() { return this.ListInstance.itemLayout; }, isItemContainsTextNode: function isItemContainsTextNode() { var _this = this; var result = void 0; this.$slots.default.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); if (typeof item === 'string') { result = true; } }.bind(this)); return result; }, isFlexMode: function isFlexMode() { var extra = this.$slots.extra; if (this.itemLayout === 'vertical') { return !!extra; } return !this.isItemContainsTextNode; }, classes: function classes() { return [{ 'ivu-list-item-no-flex': !this.isFlexMode }]; } } }; /***/ }), /* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _avatar = __webpack_require__(115); var _avatar2 = _interopRequireDefault(_avatar); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'ListItemMeta', components: { Avatar: _avatar2.default }, props: { avatar: { type: String, default: '' }, title: { type: String, default: '' }, description: { type: String, default: '' } } }; /***/ }), /* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-loading-bar'; exports.default = { name: 'LoadingBar', props: { color: { type: String, default: 'primary' }, failedColor: { type: String, default: 'error' }, height: { type: Number, default: 2 } }, data: function data() { return { percent: 0, status: 'success', show: false }; }, computed: { classes: function classes() { return '' + prefixCls; }, innerClasses: function innerClasses() { var _ref; return [prefixCls + '-inner', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-inner-color-primary', this.color === 'primary' && this.status === 'success'), (0, _defineProperty3.default)(_ref, prefixCls + '-inner-failed-color-error', this.failedColor === 'error' && this.status === 'error'), _ref)]; }, outerStyles: function outerStyles() { return { height: String(this.height) + 'px' }; }, styles: function styles() { var style = { width: String(this.percent) + '%', height: String(this.height) + 'px' }; if (this.color !== 'primary' && this.status === 'success') { style.backgroundColor = this.color; } if (this.failedColor !== 'error' && this.status === 'error') { style.backgroundColor = this.failedColor; } return style; } } }; /***/ }), /* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-menu'; exports.default = { name: 'Menu', mixins: [_emitter2.default], props: { mode: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['horizontal', 'vertical']); }, default: 'vertical' }, theme: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['light', 'dark', 'primary']); }, default: 'light' }, activeName: { type: [String, Number] }, openNames: { type: Array, default: function _default() { return []; } }, accordion: { type: Boolean, default: false }, width: { type: String, default: '240px' } }, data: function data() { return { currentActiveName: this.activeName, openedNames: [] }; }, computed: { classes: function classes() { var theme = this.theme; if (this.mode === 'vertical' && this.theme === 'primary') theme = 'light'; return ['' + prefixCls, prefixCls + '-' + String(theme), (0, _defineProperty3.default)({}, prefixCls + '-' + String(this.mode), this.mode)]; }, styles: function styles() { var style = {}; if (this.mode === 'vertical') style.width = this.width; return style; } }, methods: { updateActiveName: function updateActiveName() { if (this.currentActiveName === undefined) { this.currentActiveName = -1; } this.broadcast('Submenu', 'on-update-active-name', false); this.broadcast('MenuItem', 'on-update-active-name', this.currentActiveName); }, updateOpenKeys: function updateOpenKeys(name) { var _this = this; var names = [].concat((0, _toConsumableArray3.default)(this.openedNames)); var index = names.indexOf(name); if (this.accordion) (0, _assist.findComponentsDownward)(this, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); item.opened = false; }.bind(this)); if (index >= 0) { var currentSubmenu = null; (0, _assist.findComponentsDownward)(this, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); if (item.name === name) { currentSubmenu = item; item.opened = false; } }.bind(this)); (0, _assist.findComponentsUpward)(currentSubmenu, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); item.opened = true; }.bind(this)); (0, _assist.findComponentsDownward)(currentSubmenu, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); item.opened = false; }.bind(this)); } else { if (this.accordion) { var _currentSubmenu = null; (0, _assist.findComponentsDownward)(this, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); if (item.name === name) { _currentSubmenu = item; item.opened = true; } }.bind(this)); (0, _assist.findComponentsUpward)(_currentSubmenu, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); item.opened = true; }.bind(this)); } else { (0, _assist.findComponentsDownward)(this, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); if (item.name === name) item.opened = true; }.bind(this)); } } var openedNames = (0, _assist.findComponentsDownward)(this, 'Submenu').filter(function (item) { (0, _newArrowCheck3.default)(this, _this); return item.opened; }.bind(this)).map(function (item) { (0, _newArrowCheck3.default)(this, _this); return item.name; }.bind(this)); this.openedNames = [].concat((0, _toConsumableArray3.default)(openedNames)); this.$emit('on-open-change', openedNames); }, updateOpened: function updateOpened() { var _this2 = this; var items = (0, _assist.findComponentsDownward)(this, 'Submenu'); if (items.length) { items.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this2); if (this.openedNames.indexOf(item.name) > -1) item.opened = true;else item.opened = false; }.bind(this)); } }, handleEmitSelectEvent: function handleEmitSelectEvent(name) { this.$emit('on-select', name); } }, mounted: function mounted() { var _this3 = this; this.openedNames = [].concat((0, _toConsumableArray3.default)(this.openNames)); this.updateOpened(); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); return this.updateActiveName(); }.bind(this)); this.$on('on-menu-item-select', function (name) { (0, _newArrowCheck3.default)(this, _this3); this.currentActiveName = name; this.$emit('on-select', name); }.bind(this)); }, watch: { openNames: function openNames(names) { this.openedNames = names; }, activeName: function activeName(val) { this.currentActiveName = val; }, currentActiveName: function currentActiveName() { this.updateActiveName(); } } }; /***/ }), /* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _mixin = __webpack_require__(82); var _mixin2 = _interopRequireDefault(_mixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-menu'; exports.default = { name: 'MenuGroup', mixins: [_mixin2.default], props: { title: { type: String, default: '' } }, data: function data() { return { prefixCls: prefixCls }; }, computed: { groupStyle: function groupStyle() { return this.hasParentSubmenu && this.mode !== 'horizontal' ? { paddingLeft: 43 + (this.parentSubmenuNum - 1) * 28 + 'px' } : {}; } } }; /***/ }), /* 200 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _assist = __webpack_require__(3); var _mixin = __webpack_require__(82); var _mixin2 = _interopRequireDefault(_mixin); var _link = __webpack_require__(55); var _link2 = _interopRequireDefault(_link); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-menu'; exports.default = { name: 'MenuItem', mixins: [_emitter2.default, _mixin2.default, _link2.default], props: { name: { type: [String, Number], required: true }, disabled: { type: Boolean, default: false } }, data: function data() { return { active: false }; }, computed: { classes: function classes() { var _ref; return [prefixCls + '-item', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-item-active', this.active), (0, _defineProperty3.default)(_ref, prefixCls + '-item-selected', this.active), (0, _defineProperty3.default)(_ref, prefixCls + '-item-disabled', this.disabled), _ref)]; }, itemStyle: function itemStyle() { return this.hasParentSubmenu && this.mode !== 'horizontal' ? { paddingLeft: 43 + (this.parentSubmenuNum - 1) * 24 + 'px' } : {}; } }, methods: { handleClickItem: function handleClickItem(event) { var new_window = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (this.disabled) return; if (new_window || this.target === '_blank') { this.handleCheckClick(event, new_window); var parentMenu = (0, _assist.findComponentUpward)(this, 'Menu'); if (parentMenu) parentMenu.handleEmitSelectEvent(this.name); } else { var parent = (0, _assist.findComponentUpward)(this, 'Submenu'); if (parent) { this.dispatch('Submenu', 'on-menu-item-select', this.name); } else { this.dispatch('Menu', 'on-menu-item-select', this.name); } this.handleCheckClick(event, new_window); } } }, mounted: function mounted() { var _this = this; this.$on('on-update-active-name', function (name) { (0, _newArrowCheck3.default)(this, _this); if (this.name === name) { this.active = true; this.dispatch('Submenu', 'on-update-active-name', name); } else { this.active = false; } }.bind(this)); } }; /***/ }), /* 201 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _dropdown = __webpack_require__(33); var _dropdown2 = _interopRequireDefault(_dropdown); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _collapseTransition = __webpack_require__(75); var _collapseTransition2 = _interopRequireDefault(_collapseTransition); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _mixin = __webpack_require__(82); var _mixin2 = _interopRequireDefault(_mixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-menu'; exports.default = { name: 'Submenu', mixins: [_emitter2.default, _mixin2.default], components: { Icon: _icon2.default, Drop: _dropdown2.default, CollapseTransition: _collapseTransition2.default }, props: { name: { type: [String, Number], required: true }, disabled: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls, active: false, opened: false, dropWidth: parseFloat((0, _assist.getStyle)(this.$el, 'width')) }; }, computed: { classes: function classes() { var _ref; return [prefixCls + '-submenu', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-item-active', this.active && !this.hasParentSubmenu), (0, _defineProperty3.default)(_ref, prefixCls + '-opened', this.opened), (0, _defineProperty3.default)(_ref, prefixCls + '-submenu-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-submenu-has-parent-submenu', this.hasParentSubmenu), (0, _defineProperty3.default)(_ref, prefixCls + '-child-item-active', this.active), _ref)]; }, accordion: function accordion() { return this.menu.accordion; }, dropStyle: function dropStyle() { var style = {}; if (this.dropWidth) style.minWidth = String(this.dropWidth) + 'px'; return style; }, titleStyle: function titleStyle() { return this.hasParentSubmenu && this.mode !== 'horizontal' ? { paddingLeft: 43 + (this.parentSubmenuNum - 1) * 24 + 'px' } : {}; }, arrowType: function arrowType() { var type = 'ios-arrow-down'; if (this.$IVIEW) { if (this.$IVIEW.menu.customArrow) { type = ''; } else if (this.$IVIEW.menu.arrow) { type = this.$IVIEW.menu.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.menu.customArrow) { type = this.$IVIEW.menu.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.menu.arrowSize) { size = this.$IVIEW.menu.arrowSize; } } return size; } }, methods: { handleMouseenter: function handleMouseenter() { var _this = this; if (this.disabled) return; if (this.mode === 'vertical') return; clearTimeout(this.timeout); this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); this.menu.updateOpenKeys(this.name); this.opened = true; }.bind(this), 250); }, handleMouseleave: function handleMouseleave() { var _this2 = this; if (this.disabled) return; if (this.mode === 'vertical') return; clearTimeout(this.timeout); this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.menu.updateOpenKeys(this.name); this.opened = false; }.bind(this), 150); }, handleClick: function handleClick() { var _this3 = this; if (this.disabled) return; if (this.mode === 'horizontal') return; var opened = this.opened; if (this.accordion) { this.$parent.$children.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this3); if (item.$options.name === 'Submenu') item.opened = false; }.bind(this)); } this.opened = !opened; this.menu.updateOpenKeys(this.name); } }, watch: { mode: function mode(val) { if (val === 'horizontal') { this.$refs.drop.update(); } }, opened: function opened(val) { if (this.mode === 'vertical') return; if (val) { this.dropWidth = parseFloat((0, _assist.getStyle)(this.$el, 'width')); this.$refs.drop.update(); } else { this.$refs.drop.destroy(); } } }, mounted: function mounted() { var _this4 = this; this.$on('on-menu-item-select', function (name) { (0, _newArrowCheck3.default)(this, _this4); if (this.mode === 'horizontal') this.opened = false; this.dispatch('Menu', 'on-menu-item-select', name); return true; }.bind(this)); this.$on('on-update-active-name', function (status) { (0, _newArrowCheck3.default)(this, _this4); if ((0, _assist.findComponentUpward)(this, 'Submenu')) this.dispatch('Submenu', 'on-update-active-name', status); if ((0, _assist.findComponentsDownward)(this, 'Submenu')) (0, _assist.findComponentsDownward)(this, 'Submenu').forEach(function (item) { (0, _newArrowCheck3.default)(this, _this4); item.active = false; }.bind(this)); this.active = status; }.bind(this)); } }; /***/ }), /* 202 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _notification = __webpack_require__(510); var _notification2 = _interopRequireDefault(_notification); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _notification2.default.newInstance = function (properties) { (0, _newArrowCheck3.default)(undefined, undefined); var _props = properties || {}; var Instance = new _vue2.default({ render: function render(h) { return h(_notification2.default, { props: _props }); } }); var component = Instance.$mount(); document.body.appendChild(component.$el); var notification = Instance.$children[0]; return { notice: function notice(noticeProps) { notification.add(noticeProps); }, remove: function remove(name) { notification.close(name); }, component: notification, destroy: function destroy(element) { notification.closeAll(); setTimeout(function () { document.body.removeChild(document.getElementsByClassName(element)[0]); }, 500); } }; }.bind(undefined); exports.default = _notification2.default; /***/ }), /* 203 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _notice2 = __webpack_require__(511); var _notice3 = _interopRequireDefault(_notice2); var _transferQueue = __webpack_require__(34); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-notification'; var seed = 0; var now = Date.now(); function getUuid() { return 'ivuNotification_' + now + '_' + seed++; } exports.default = { components: { Notice: _notice3.default }, props: { prefixCls: { type: String, default: prefixCls }, styles: { type: Object, default: function _default() { return { top: '65px', left: '50%' }; } }, content: { type: String }, className: { type: String } }, data: function data() { return { notices: [], tIndex: this.handleGetIndex() }; }, computed: { classes: function classes() { return ['' + String(this.prefixCls), (0, _defineProperty3.default)({}, '' + String(this.className), !!this.className)]; }, wrapStyles: function wrapStyles() { var styles = (0, _assign2.default)({}, this.styles); styles['z-index'] = 1010 + this.tIndex; return styles; } }, methods: { add: function add(notice) { var name = notice.name || getUuid(); var _notice = (0, _assign2.default)({ styles: { right: '50%' }, content: '', duration: 1.5, closable: false, name: name }, notice); this.notices.push(_notice); this.tIndex = this.handleGetIndex(); }, close: function close(name) { var notices = this.notices; for (var i = 0; i < notices.length; i++) { if (notices[i].name === name) { this.notices.splice(i, 1); break; } } }, closeAll: function closeAll() { this.notices = []; }, handleGetIndex: function handleGetIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; } } }; /***/ }), /* 204 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _render = __webpack_require__(205); var _render2 = _interopRequireDefault(_render); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { components: { RenderCell: _render2.default }, props: { prefixCls: { type: String, default: '' }, duration: { type: Number, default: 1.5 }, type: { type: String }, content: { type: String, default: '' }, withIcon: Boolean, render: { type: Function }, hasTitle: Boolean, styles: { type: Object, default: function _default() { return { right: '50%' }; } }, closable: { type: Boolean, default: false }, className: { type: String }, name: { type: String, required: true }, onClose: { type: Function }, transitionName: { type: String } }, data: function data() { return { withDesc: false }; }, computed: { baseClass: function baseClass() { return String(this.prefixCls) + '-notice'; }, renderFunc: function renderFunc() { return this.render || function () {}; }, classes: function classes() { var _ref; return [this.baseClass, (_ref = {}, (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), (0, _defineProperty3.default)(_ref, String(this.baseClass) + '-closable', this.closable), (0, _defineProperty3.default)(_ref, String(this.baseClass) + '-with-desc', this.withDesc), _ref)]; }, contentClasses: function contentClasses() { return [String(this.baseClass) + '-content', this.render !== undefined ? String(this.baseClass) + '-content-with-render' : '']; }, contentWithIcon: function contentWithIcon() { return [this.withIcon ? String(this.prefixCls) + '-content-with-icon' : '', !this.hasTitle && this.withIcon ? String(this.prefixCls) + '-content-with-render-notitle' : '']; }, messageClasses: function messageClasses() { return [String(this.baseClass) + '-content', this.render !== undefined ? String(this.baseClass) + '-content-with-render' : '']; } }, methods: { clearCloseTimer: function clearCloseTimer() { if (this.closeTimer) { clearTimeout(this.closeTimer); this.closeTimer = null; } }, close: function close() { this.clearCloseTimer(); this.onClose(); this.$parent.close(this.name); }, handleEnter: function handleEnter(el) { if (this.type === 'message') { el.style.height = el.scrollHeight + 'px'; } }, handleLeave: function handleLeave(el) { if (this.type === 'message') { if (document.getElementsByClassName('ivu-message-notice').length !== 1) { el.style.height = 0; el.style.paddingTop = 0; el.style.paddingBottom = 0; } } } }, mounted: function mounted() { var _this = this; this.clearCloseTimer(); if (this.duration !== 0) { this.closeTimer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); this.close(); }.bind(this), this.duration * 1000); } if (this.prefixCls === 'ivu-notice') { var desc = this.$refs.content.querySelectorAll('.' + String(this.prefixCls) + '-desc')[0]; this.withDesc = this.render ? true : desc ? desc.innerHTML !== '' : false; } }, beforeDestroy: function beforeDestroy() { this.clearCloseTimer(); } }; /***/ }), /* 205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'RenderCell', functional: true, props: { render: Function }, render: function render(h, ctx) { (0, _newArrowCheck3.default)(undefined, undefined); return ctx.props.render(h); }.bind(undefined) }; /***/ }), /* 206 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _mixinsScrollbar = __webpack_require__(79); var _mixinsScrollbar2 = _interopRequireDefault(_mixinsScrollbar); var _dom = __webpack_require__(13); var _assist = __webpack_require__(3); var _transferQueue = __webpack_require__(34); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-modal'; exports.default = { name: 'Modal', mixins: [_locale2.default, _emitter2.default, _mixinsScrollbar2.default], components: { Icon: _icon2.default, iButton: _button2.default }, directives: { TransferDom: _transferDom2.default }, props: { value: { type: Boolean, default: false }, closable: { type: Boolean, default: true }, maskClosable: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.modal.maskClosable === '' ? true : this.$IVIEW.modal.maskClosable; } }, title: { type: String }, width: { type: [Number, String], default: 520 }, okText: { type: String }, cancelText: { type: String }, loading: { type: Boolean, default: false }, styles: { type: Object, default: function _default() { return {}; } }, className: { type: String }, footerHide: { type: Boolean, default: false }, scrollable: { type: Boolean, default: false }, transitionNames: { type: Array, default: function _default() { return ['ease', 'fade']; } }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? true : this.$IVIEW.transfer; } }, fullscreen: { type: Boolean, default: false }, mask: { type: Boolean, default: true }, draggable: { type: Boolean, default: false }, zIndex: { type: Number, default: 1000 } }, data: function data() { return { prefixCls: prefixCls, wrapShow: false, showHead: true, buttonLoading: false, visible: this.value, dragData: { x: null, y: null, dragX: null, dragY: null, dragging: false }, modalIndex: this.handleGetModalIndex(), isMouseTriggerIn: false }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrap', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-hidden', !this.wrapShow), (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), (0, _defineProperty3.default)(_ref, prefixCls + '-no-mask', !this.showMask), _ref)]; }, wrapStyles: function wrapStyles() { return { zIndex: this.modalIndex + this.zIndex }; }, maskClasses: function maskClasses() { return prefixCls + '-mask'; }, classes: function classes() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-fullscreen', this.fullscreen), (0, _defineProperty3.default)(_ref2, prefixCls + '-fullscreen-no-header', this.fullscreen && !this.showHead), (0, _defineProperty3.default)(_ref2, prefixCls + '-fullscreen-no-footer', this.fullscreen && this.footerHide), _ref2)]; }, contentClasses: function contentClasses() { var _ref3; return [prefixCls + '-content', (_ref3 = {}, (0, _defineProperty3.default)(_ref3, prefixCls + '-content-no-mask', !this.showMask), (0, _defineProperty3.default)(_ref3, prefixCls + '-content-drag', this.draggable), (0, _defineProperty3.default)(_ref3, prefixCls + '-content-dragging', this.draggable && this.dragData.dragging), _ref3)]; }, mainStyles: function mainStyles() { var style = {}; var width = parseInt(this.width); var styleWidth = this.dragData.x !== null ? { top: 0 } : { width: width <= 100 ? String(width) + '%' : String(width) + 'px' }; var customStyle = this.styles ? this.styles : {}; (0, _assign2.default)(style, styleWidth, customStyle); return style; }, contentStyles: function contentStyles() { var style = {}; if (this.draggable) { var customTop = this.styles.top ? parseFloat(this.styles.top) : 0; var customLeft = this.styles.left ? parseFloat(this.styles.left) : 0; if (this.dragData.x !== null) style.left = this.dragData.x - customLeft + 'px'; if (this.dragData.y !== null) style.top = this.dragData.y - customTop + 'px'; var width = parseInt(this.width); var styleWidth = { width: width <= 100 ? String(width) + '%' : String(width) + 'px' }; (0, _assign2.default)(style, styleWidth); } return style; }, localeOkText: function localeOkText() { if (this.okText === undefined) { return this.t('i.modal.okText'); } else { return this.okText; } }, localeCancelText: function localeCancelText() { if (this.cancelText === undefined) { return this.t('i.modal.cancelText'); } else { return this.cancelText; } }, showMask: function showMask() { return this.draggable ? false : this.mask; } }, methods: { close: function close() { this.visible = false; this.$emit('input', false); this.$emit('on-cancel'); }, handleMask: function handleMask() { if (this.maskClosable && this.showMask) { this.close(); } }, handleWrapClick: function handleWrapClick(event) { if (this.isMouseTriggerIn) { this.isMouseTriggerIn = false; return; } var className = event.target.getAttribute('class'); if (className && className.indexOf(prefixCls + '-wrap') > -1) this.handleMask(); }, handleMousedown: function handleMousedown() { this.isMouseTriggerIn = true; }, cancel: function cancel() { this.close(); }, ok: function ok() { if (this.loading) { this.buttonLoading = true; } else { this.visible = false; this.$emit('input', false); } this.$emit('on-ok'); }, EscClose: function EscClose(e) { var _this = this; if (this.visible && this.closable) { if (e.keyCode === 27) { var $Modals = (0, _assist.findComponentsDownward)(this.$root, 'Modal').filter(function (item) { (0, _newArrowCheck3.default)(this, _this); return item.$data.visible && item.$props.closable; }.bind(this)); var $TopModal = $Modals.sort(function (a, b) { (0, _newArrowCheck3.default)(this, _this); return a.$data.modalIndex < b.$data.modalIndex ? 1 : -1; }.bind(this))[0]; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); $TopModal.close(); }.bind(this), 0); } } }, animationFinish: function animationFinish() { this.$emit('on-hidden'); }, handleMoveStart: function handleMoveStart(event) { if (!this.draggable) return false; var $content = this.$refs.content; var rect = $content.getBoundingClientRect(); this.dragData.x = rect.x || rect.left; this.dragData.y = rect.y || rect.top; var distance = { x: event.clientX, y: event.clientY }; this.dragData.dragX = distance.x; this.dragData.dragY = distance.y; this.dragData.dragging = true; (0, _dom.on)(window, 'mousemove', this.handleMoveMove); (0, _dom.on)(window, 'mouseup', this.handleMoveEnd); }, handleMoveMove: function handleMoveMove(event) { if (!this.dragData.dragging) return false; var distance = { x: event.clientX, y: event.clientY }; var diff_distance = { x: distance.x - this.dragData.dragX, y: distance.y - this.dragData.dragY }; this.dragData.x += diff_distance.x; this.dragData.y += diff_distance.y; this.dragData.dragX = distance.x; this.dragData.dragY = distance.y; }, handleMoveEnd: function handleMoveEnd() { this.dragData.dragging = false; (0, _dom.off)(window, 'mousemove', this.handleMoveMove); (0, _dom.off)(window, 'mouseup', this.handleMoveEnd); }, handleGetModalIndex: function handleGetModalIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; }, handleClickModal: function handleClickModal() { if (this.draggable) { this.modalIndex = this.handleGetModalIndex(); } } }, mounted: function mounted() { if (this.visible) { this.wrapShow = true; } var showHead = true; if (this.$slots.header === undefined && !this.title) { showHead = false; } this.showHead = showHead; document.addEventListener('keydown', this.EscClose); }, beforeDestroy: function beforeDestroy() { document.removeEventListener('keydown', this.EscClose); this.removeScrollEffect(); }, watch: { value: function value(val) { this.visible = val; }, visible: function visible(val) { var _this2 = this; if (val === false) { this.buttonLoading = false; this.timer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.wrapShow = false; this.removeScrollEffect(); }.bind(this), 300); } else { this.modalIndex = this.handleGetModalIndex(); if (this.timer) clearTimeout(this.timer); this.wrapShow = true; if (!this.scrollable) { this.addScrollEffect(); } } this.broadcast('Table', 'on-visible-change', val); this.broadcast('Slider', 'on-visible-change', val); this.$emit('on-visible-change', val); }, loading: function loading(val) { if (!val) { this.buttonLoading = false; } }, scrollable: function scrollable(val) { if (!val) { this.addScrollEffect(); } else { this.removeScrollEffect(); } }, title: function title(val) { if (this.$slots.header === undefined) { this.showHead = !!val; } } } }; /***/ }), /* 207 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _options = __webpack_require__(521); var _options2 = _interopRequireDefault(_options); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-page'; exports.default = { name: 'Page', mixins: [_locale2.default], components: { Options: _options2.default }, props: { current: { type: Number, default: 1 }, total: { type: Number, default: 0 }, pageSize: { type: Number, default: 10 }, pageSizeOpts: { type: Array, default: function _default() { return [10, 20, 30, 40]; } }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'bottom']); }, default: 'bottom' }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small']); } }, simple: { type: Boolean, default: false }, showTotal: { type: Boolean, default: false }, showElevator: { type: Boolean, default: false }, showSizer: { type: Boolean, default: false }, className: { type: String }, styles: { type: Object }, prevText: { type: String, default: '' }, nextText: { type: String, default: '' } }, data: function data() { return { prefixCls: prefixCls, currentPage: this.current, currentPageSize: this.pageSize }; }, watch: { total: function total(val) { var maxPage = Math.ceil(val / this.currentPageSize); if (maxPage < this.currentPage) { this.currentPage = maxPage === 0 ? 1 : maxPage; } }, current: function current(val) { this.currentPage = val; }, pageSize: function pageSize(val) { this.currentPageSize = val; } }, computed: { isSmall: function isSmall() { return !!this.size; }, allPages: function allPages() { var allPage = Math.ceil(this.total / this.currentPageSize); return allPage === 0 ? 1 : allPage; }, simpleWrapClasses: function simpleWrapClasses() { return ['' + prefixCls, prefixCls + '-simple', (0, _defineProperty3.default)({}, '' + String(this.className), !!this.className)]; }, simplePagerClasses: function simplePagerClasses() { return prefixCls + '-simple-pager'; }, wrapClasses: function wrapClasses() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, '' + String(this.className), !!this.className), (0, _defineProperty3.default)(_ref2, 'mini', !!this.size), _ref2)]; }, prevClasses: function prevClasses() { var _ref3; return [prefixCls + '-prev', (_ref3 = {}, (0, _defineProperty3.default)(_ref3, prefixCls + '-disabled', this.currentPage === 1), (0, _defineProperty3.default)(_ref3, prefixCls + '-custom-text', this.prevText !== ''), _ref3)]; }, nextClasses: function nextClasses() { var _ref4; return [prefixCls + '-next', (_ref4 = {}, (0, _defineProperty3.default)(_ref4, prefixCls + '-disabled', this.currentPage === this.allPages), (0, _defineProperty3.default)(_ref4, prefixCls + '-custom-text', this.nextText !== ''), _ref4)]; }, firstPageClasses: function firstPageClasses() { return [prefixCls + '-item', (0, _defineProperty3.default)({}, prefixCls + '-item-active', this.currentPage === 1)]; }, lastPageClasses: function lastPageClasses() { return [prefixCls + '-item', (0, _defineProperty3.default)({}, prefixCls + '-item-active', this.currentPage === this.allPages)]; } }, methods: { changePage: function changePage(page) { if (this.currentPage != page) { this.currentPage = page; this.$emit('update:current', page); this.$emit('on-change', page); } }, prev: function prev() { var current = this.currentPage; if (current <= 1) { return false; } this.changePage(current - 1); }, next: function next() { var current = this.currentPage; if (current >= this.allPages) { return false; } this.changePage(current + 1); }, fastPrev: function fastPrev() { var page = this.currentPage - 5; if (page > 0) { this.changePage(page); } else { this.changePage(1); } }, fastNext: function fastNext() { var page = this.currentPage + 5; if (page > this.allPages) { this.changePage(this.allPages); } else { this.changePage(page); } }, onSize: function onSize(pageSize) { this.currentPageSize = pageSize; this.$emit('on-page-size-change', pageSize); this.changePage(1); }, onPage: function onPage(page) { this.changePage(page); }, keyDown: function keyDown(e) { var key = e.keyCode; var condition = key >= 48 && key <= 57 || key >= 96 && key <= 105 || key === 8 || key === 37 || key === 39; if (!condition) { e.preventDefault(); } }, keyUp: function keyUp(e) { var key = e.keyCode; var val = parseInt(e.target.value); if (key === 38) { this.prev(); } else if (key === 40) { this.next(); } else if (key === 13) { var page = 1; if (val > this.allPages) { page = this.allPages; } else if (val <= 0 || !val) { page = 1; } else { page = val; } e.target.value = page; this.changePage(page); } } } }; /***/ }), /* 208 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _select = __webpack_require__(70); var _select2 = _interopRequireDefault(_select); var _option = __webpack_require__(74); var _option2 = _interopRequireDefault(_option); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-page'; function isValueNumber(value) { return (/^[1-9][0-9]*$/.test(value + '') ); } exports.default = { name: 'PageOption', mixins: [_locale2.default], components: { iSelect: _select2.default, iOption: _option2.default }, props: { pageSizeOpts: Array, showSizer: Boolean, showElevator: Boolean, current: Number, _current: Number, pageSize: Number, allPages: Number, isSmall: Boolean, placement: String, transfer: Boolean }, data: function data() { return { currentPageSize: this.pageSize }; }, watch: { pageSize: function pageSize(val) { this.currentPageSize = val; } }, computed: { size: function size() { return this.isSmall ? 'small' : 'default'; }, optsClasses: function optsClasses() { return [prefixCls + '-options']; }, sizerClasses: function sizerClasses() { return [prefixCls + '-options-sizer']; }, ElevatorClasses: function ElevatorClasses() { return [prefixCls + '-options-elevator']; } }, methods: { changeSize: function changeSize() { this.$emit('on-size', this.currentPageSize); }, changePage: function changePage(event) { var val = event.target.value.trim(); var page = 0; if (isValueNumber(val)) { val = Number(val); if (val != this.current) { var allPages = this.allPages; if (val > allPages) { page = allPages; } else { page = val; } } } else { page = 1; } if (page) { this.$emit('on-page', page); event.target.value = page; } } } }; /***/ }), /* 209 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue__ = __webpack_require__(210); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_poptip_vue__ = __webpack_require__(525); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_poptip_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_poptip_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_poptip_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_poptip_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_poptip_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _popper = __webpack_require__(211); var _popper2 = _interopRequireDefault(_popper); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _vClickOutsideX = __webpack_require__(35); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); var _transferQueue = __webpack_require__(34); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-poptip'; exports.default = { name: 'Poptip', mixins: [_popper2.default, _locale2.default], directives: { clickOutside: _vClickOutsideX.directive, TransferDom: _transferDom2.default }, components: { iButton: _button2.default }, props: { trigger: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['click', 'focus', 'hover']); }, default: 'click' }, placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']); }, default: 'top' }, title: { type: [String, Number] }, content: { type: [String, Number], default: '' }, width: { type: [String, Number] }, confirm: { type: Boolean, default: false }, okText: { type: String }, cancelText: { type: String }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, popperClass: { type: String }, wordWrap: { type: Boolean, default: false }, padding: { type: String }, disabled: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls, showTitle: true, isInput: false, disableCloseUnderTransfer: false, tIndex: this.handleGetIndex() }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-confirm', this.confirm)]; }, popperClasses: function popperClasses() { var _ref2; return [prefixCls + '-popper', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-confirm', this.transfer && this.confirm), (0, _defineProperty3.default)(_ref2, '' + String(this.popperClass), !!this.popperClass), _ref2)]; }, styles: function styles() { var style = {}; if (this.width) { style.width = String(this.width) + 'px'; } if (this.transfer) style['z-index'] = 1060 + this.tIndex; return style; }, localeOkText: function localeOkText() { if (this.okText === undefined) { return this.t('i.poptip.okText'); } else { return this.okText; } }, localeCancelText: function localeCancelText() { if (this.cancelText === undefined) { return this.t('i.poptip.cancelText'); } else { return this.cancelText; } }, contentClasses: function contentClasses() { return [prefixCls + '-body-content', (0, _defineProperty3.default)({}, prefixCls + '-body-content-word-wrap', this.wordWrap)]; }, contentPaddingStyle: function contentPaddingStyle() { var styles = {}; if (this.padding !== '') styles['padding'] = this.padding; return styles; } }, methods: { handleClick: function handleClick() { if (this.disabled) return; if (this.confirm) { this.visible = !this.visible; return true; } if (this.trigger !== 'click') { return false; } this.visible = !this.visible; }, handleTransferClick: function handleTransferClick() { if (this.transfer) this.disableCloseUnderTransfer = true; }, handleClose: function handleClose() { if (this.disableCloseUnderTransfer) { this.disableCloseUnderTransfer = false; return false; } if (this.confirm) { this.visible = false; return true; } if (this.trigger !== 'click') { return false; } this.visible = false; }, handleFocus: function handleFocus() { var fromInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; if (this.disabled) return; if (this.trigger !== 'focus' || this.confirm || this.isInput && !fromInput) { return false; } this.visible = true; }, handleBlur: function handleBlur() { var fromInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; if (this.trigger !== 'focus' || this.confirm || this.isInput && !fromInput) { return false; } this.visible = false; }, handleMouseenter: function handleMouseenter() { var _this = this; if (this.disabled) return; if (this.trigger !== 'hover' || this.confirm) { return false; } if (this.enterTimer) clearTimeout(this.enterTimer); this.enterTimer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); this.visible = true; }.bind(this), 100); }, handleMouseleave: function handleMouseleave() { var _this2 = this; if (this.trigger !== 'hover' || this.confirm) { return false; } if (this.enterTimer) { clearTimeout(this.enterTimer); this.enterTimer = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.visible = false; }.bind(this), 100); } }, cancel: function cancel() { this.visible = false; this.$emit('on-cancel'); }, ok: function ok() { this.visible = false; this.$emit('on-ok'); }, getInputChildren: function getInputChildren() { var $input = this.$refs.reference.querySelectorAll('input'); var $textarea = this.$refs.reference.querySelectorAll('textarea'); var $children = null; if ($input.length) { $children = $input[0]; } else if ($textarea.length) { $children = $textarea[0]; } return $children; }, handleGetIndex: function handleGetIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; }, handleIndexIncrease: function handleIndexIncrease() { this.tIndex = this.handleGetIndex(); } }, mounted: function mounted() { var _this3 = this; if (!this.confirm) { this.showTitle = this.$slots.title !== undefined || this.title; } if (this.trigger === 'focus') { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); var $children = this.getInputChildren(); if ($children) { this.isInput = true; $children.addEventListener('focus', this.handleFocus, false); $children.addEventListener('blur', this.handleBlur, false); } }.bind(this)); } }, beforeDestroy: function beforeDestroy() { var $children = this.getInputChildren(); if ($children) { $children.removeEventListener('focus', this.handleFocus, false); $children.removeEventListener('blur', this.handleBlur, false); } } }; /***/ }), /* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; var Popper = isServer ? function () {} : __webpack_require__(106);exports.default = { props: { placement: { type: String, default: 'bottom' }, boundariesPadding: { type: Number, default: 5 }, reference: Object, popper: Object, offset: { default: 0 }, value: { type: Boolean, default: false }, transition: String, options: { type: Object, default: function _default() { return { modifiers: { computeStyle: { gpuAcceleration: false }, preventOverflow: { boundariesElement: 'window' } } }; } } }, data: function data() { return { visible: this.value }; }, watch: { value: { immediate: true, handler: function handler(val) { this.visible = val; this.$emit('input', val); } }, visible: function visible(val) { if (val) { if (this.handleIndexIncrease) this.handleIndexIncrease(); this.updatePopper(); this.$emit('on-popper-show'); } else { this.$emit('on-popper-hide'); } this.$emit('input', val); } }, methods: { createPopper: function createPopper() { var _this = this; if (isServer) return; if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)) { return; } var options = this.options; var popper = this.popper || this.$refs.popper; var reference = this.reference || this.$refs.reference; if (!popper || !reference) return; if (this.popperJS && this.popperJS.hasOwnProperty('destroy')) { this.popperJS.destroy(); } options.placement = this.placement; if (!options.modifiers.offset) { options.modifiers.offset = {}; } options.modifiers.offset.offset = this.offset; options.onCreate = function () { (0, _newArrowCheck3.default)(this, _this); this.$nextTick(this.updatePopper); this.$emit('created', this); }.bind(this); this.popperJS = new Popper(reference, popper, options); }, updatePopper: function updatePopper() { if (isServer) return; this.popperJS ? this.popperJS.update() : this.createPopper(); }, doDestroy: function doDestroy() { if (isServer) return; if (this.visible) return; this.popperJS.destroy(); this.popperJS = null; } }, updated: function updated() { var _this2 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); return this.updatePopper(); }.bind(this)); }, beforeDestroy: function beforeDestroy() { if (isServer) return; if (this.popperJS) { this.popperJS.destroy(); } } }; /***/ }), /* 212 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_progress_vue__ = __webpack_require__(213); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_progress_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_progress_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_progress_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_progress_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_progress_vue__ = __webpack_require__(527); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_progress_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_progress_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_progress_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_progress_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_progress_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-progress'; exports.default = { name: 'Progress', components: { Icon: _icon2.default }, props: { percent: { type: Number, default: 0 }, successPercent: { type: Number, default: 0 }, status: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['normal', 'active', 'wrong', 'success']); }, default: 'normal' }, hideInfo: { type: Boolean, default: false }, strokeWidth: { type: Number, default: 10 }, vertical: { type: Boolean, default: false }, strokeColor: { type: [String, Array] }, textInside: { type: Boolean, default: false } }, data: function data() { return { currentStatus: this.status }; }, computed: { isStatus: function isStatus() { return this.currentStatus == 'wrong' || this.currentStatus == 'success'; }, statusIcon: function statusIcon() { var type = ''; switch (this.currentStatus) { case 'wrong': type = 'ios-close-circle'; break; case 'success': type = 'ios-checkmark-circle'; break; } return type; }, bgStyle: function bgStyle() { var style = this.vertical ? { height: String(this.percent) + '%', width: String(this.strokeWidth) + 'px' } : { width: String(this.percent) + '%', height: String(this.strokeWidth) + 'px' }; if (this.strokeColor) { if (typeof this.strokeColor === 'string') { style['background-color'] = this.strokeColor; } else { style['background-image'] = 'linear-gradient(to right, ' + String(this.strokeColor[0]) + ' 0%, ' + String(this.strokeColor[1]) + ' 100%)'; } } return style; }, successBgStyle: function successBgStyle() { return this.vertical ? { height: String(this.successPercent) + '%', width: String(this.strokeWidth) + 'px' } : { width: String(this.successPercent) + '%', height: String(this.strokeWidth) + 'px' }; }, wrapClasses: function wrapClasses() { var _ref; return ['' + prefixCls, prefixCls + '-' + String(this.currentStatus), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-show-info', !this.hideInfo && !this.textInside), (0, _defineProperty3.default)(_ref, prefixCls + '-vertical', this.vertical), _ref)]; }, textClasses: function textClasses() { return prefixCls + '-text'; }, textInnerClasses: function textInnerClasses() { return prefixCls + '-text-inner'; }, outerClasses: function outerClasses() { return prefixCls + '-outer'; }, innerClasses: function innerClasses() { return prefixCls + '-inner'; }, bgClasses: function bgClasses() { return prefixCls + '-bg'; }, successBgClasses: function successBgClasses() { return prefixCls + '-success-bg'; } }, created: function created() { this.handleStatus(); }, methods: { handleStatus: function handleStatus(isDown) { if (isDown) { this.currentStatus = 'normal'; this.$emit('on-status-change', 'normal'); } else { if (parseInt(this.percent, 10) == 100) { this.currentStatus = 'success'; this.$emit('on-status-change', 'success'); } } } }, watch: { percent: function percent(val, oldVal) { if (val < oldVal) { this.handleStatus(true); } else { this.handleStatus(); } }, status: function status(val) { this.currentStatus = val; } } }; /***/ }), /* 214 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-radio'; exports.default = { name: 'Radio', mixins: [_emitter2.default], props: { value: { type: [String, Number, Boolean], default: false }, trueValue: { type: [String, Number, Boolean], default: true }, falseValue: { type: [String, Number, Boolean], default: false }, label: { type: [String, Number] }, disabled: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, name: { type: String } }, data: function data() { return { currentValue: this.value, group: false, groupName: this.name, parent: (0, _assist.findComponentUpward)(this, 'RadioGroup'), focusWrapper: false, focusInner: false }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrapper', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-group-item', this.group), (0, _defineProperty3.default)(_ref, prefixCls + '-wrapper-checked', this.currentValue), (0, _defineProperty3.default)(_ref, prefixCls + '-wrapper-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-focus', this.focusWrapper), _ref)]; }, radioClasses: function radioClasses() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-checked', this.currentValue), (0, _defineProperty3.default)(_ref2, prefixCls + '-disabled', this.disabled), _ref2)]; }, innerClasses: function innerClasses() { return [prefixCls + '-inner', (0, _defineProperty3.default)({}, prefixCls + '-focus', this.focusInner)]; }, inputClasses: function inputClasses() { return prefixCls + '-input'; } }, mounted: function mounted() { if (this.parent) { this.group = true; if (this.name && this.name !== this.parent.name) { if (console.warn) { console.warn('[iview] Name does not match Radio Group name.'); } } else { this.groupName = this.parent.name; } } if (this.group) { this.parent.updateValue(); } else { this.updateValue(); } }, methods: { change: function change(event) { if (this.disabled) { return false; } var checked = event.target.checked; this.currentValue = checked; var value = checked ? this.trueValue : this.falseValue; this.$emit('input', value); if (this.group) { if (this.label !== undefined) { this.parent.change({ value: this.label, checked: this.value }); } } else { this.$emit('on-change', value); this.dispatch('FormItem', 'on-form-change', value); } }, updateValue: function updateValue() { this.currentValue = this.value === this.trueValue; }, onBlur: function onBlur() { this.focusWrapper = false; this.focusInner = false; }, onFocus: function onFocus() { if (this.group && this.parent.type === 'button') { this.focusWrapper = true; } else { this.focusInner = true; } } }, watch: { value: function value(val) { if (val === this.trueValue || val === this.falseValue) { this.updateValue(); } else { throw 'Value should be trueValue or falseValue.'; } } } }; /***/ }), /* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-radio-group'; var seed = 0; var now = Date.now(); var getUuid = function () { (0, _newArrowCheck3.default)(undefined, undefined); return 'ivuRadioGroup_' + String(now) + '_' + seed++; }.bind(undefined); exports.default = { name: 'RadioGroup', mixins: [_emitter2.default], props: { value: { type: [String, Number], default: '' }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['button']); } }, vertical: { type: Boolean, default: false }, name: { type: String, default: getUuid } }, data: function data() { return { currentValue: this.value, childrens: [] }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, 'ivu-radio-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type), !!this.type), (0, _defineProperty3.default)(_ref, prefixCls + '-vertical', this.vertical), _ref)]; } }, mounted: function mounted() { this.updateValue(); }, methods: { updateValue: function updateValue() { var _this = this; this.childrens = (0, _assist.findComponentsDownward)(this, 'Radio'); if (this.childrens) { this.childrens.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this); child.currentValue = this.currentValue === child.label; child.group = true; }.bind(this)); } }, change: function change(data) { this.currentValue = data.value; this.updateValue(); this.$emit('input', data.value); this.$emit('on-change', data.value); this.dispatch('FormItem', 'on-form-change', data.value); } }, watch: { value: function value() { var _this2 = this; if (this.currentValue !== this.value) { this.currentValue = this.value; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); this.updateValue(); }.bind(this)); } } } }; /***/ }), /* 216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-rate'; exports.default = { name: 'Rate', mixins: [_locale2.default, _emitter2.default], components: { Icon: _icon2.default }, props: { count: { type: Number, default: 5 }, value: { type: Number, default: 0 }, allowHalf: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, showText: { type: Boolean, default: false }, name: { type: String }, clearable: { type: Boolean, default: false }, character: { type: String, default: '' }, icon: { type: String, default: '' }, customIcon: { type: String, default: '' } }, data: function data() { return { prefixCls: prefixCls, hoverIndex: -1, isHover: false, isHalf: this.allowHalf && this.value.toString().indexOf('.') >= 0, currentValue: this.value }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-disabled', this.disabled)]; }, iconClasses: function iconClasses() { var _ref2; return ['ivu-icon', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, 'ivu-icon-' + String(this.icon), this.icon !== ''), (0, _defineProperty3.default)(_ref2, '' + String(this.customIcon), this.customIcon !== ''), _ref2)]; }, showCharacter: function showCharacter() { return this.character !== '' || this.icon !== '' || this.customIcon !== ''; } }, watch: { value: function value(val) { this.currentValue = val; }, currentValue: function currentValue(val) { this.setHalf(val); } }, methods: { starCls: function starCls(value) { var _ref3; var hoverIndex = this.hoverIndex; var currentIndex = this.isHover ? hoverIndex : this.currentValue; var full = false; var isLast = false; if (currentIndex >= value) full = true; if (this.isHover) { isLast = currentIndex === value; } else { isLast = Math.ceil(this.currentValue) === value; } return [(_ref3 = {}, (0, _defineProperty3.default)(_ref3, prefixCls + '-star', !this.showCharacter), (0, _defineProperty3.default)(_ref3, prefixCls + '-star-chart', this.showCharacter), (0, _defineProperty3.default)(_ref3, prefixCls + '-star-full', !isLast && full || isLast && !this.isHalf), (0, _defineProperty3.default)(_ref3, prefixCls + '-star-half', isLast && this.isHalf), (0, _defineProperty3.default)(_ref3, prefixCls + '-star-zero', !full), _ref3)]; }, handleMousemove: function handleMousemove(value, event) { if (this.disabled) return; this.isHover = true; if (this.allowHalf) { var type = event.target.getAttribute('type') || false; this.isHalf = type === 'half'; } else { this.isHalf = false; } this.hoverIndex = value; }, handleMouseleave: function handleMouseleave() { if (this.disabled) return; this.isHover = false; this.setHalf(this.currentValue); this.hoverIndex = -1; }, setHalf: function setHalf(val) { this.isHalf = this.allowHalf && val.toString().indexOf('.') >= 0; }, handleClick: function handleClick(value) { if (this.disabled) return; if (this.isHalf) value -= 0.5; if (this.clearable && Math.abs(value - this.currentValue) < 0.01) { value = 0; } this.currentValue = value; this.$emit('input', value); this.$emit('on-change', value); this.dispatch('FormItem', 'on-form-change', value); } } }; /***/ }), /* 217 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _isFinite = __webpack_require__(71); var _isFinite2 = _interopRequireDefault(_isFinite); var _slicedToArray2 = __webpack_require__(24); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _inputNumber = __webpack_require__(184); var _inputNumber2 = _interopRequireDefault(_inputNumber); var _tooltip = __webpack_require__(83); var _tooltip2 = _interopRequireDefault(_tooltip); var _marker = __webpack_require__(540); var _marker2 = _interopRequireDefault(_marker); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _form = __webpack_require__(541); var _form2 = _interopRequireDefault(_form); var _elementResizeDetector = __webpack_require__(84); var _elementResizeDetector2 = _interopRequireDefault(_elementResizeDetector); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-slider'; exports.default = { name: 'Slider', mixins: [_emitter2.default, _form2.default], components: { InputNumber: _inputNumber2.default, Tooltip: _tooltip2.default, SliderMarker: _marker2.default }, props: { min: { type: Number, default: 0 }, max: { type: Number, default: 100 }, step: { type: Number, default: 1 }, range: { type: Boolean, default: false }, value: { type: [Number, Array], default: 0 }, disabled: { type: Boolean, default: false }, showInput: { type: Boolean, default: false }, inputSize: { type: String, default: 'default', validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); } }, showStops: { type: Boolean, default: false }, tipFormat: { type: Function, default: function _default(val) { return val; } }, showTip: { type: String, default: 'hover', validator: function validator(value) { return (0, _assist.oneOf)(value, ['hover', 'always', 'never']); } }, name: { type: String }, activeChange: { type: Boolean, default: true }, marks: { type: Object } }, data: function data() { var val = this.checkLimits(Array.isArray(this.value) ? this.value : [this.value]); return { prefixCls: prefixCls, currentValue: val, dragging: false, pointerDown: '', startX: 0, currentX: 0, startPos: 0, oldValue: [].concat((0, _toConsumableArray3.default)(val)), valueIndex: { min: 0, max: 1 }, sliderWidth: 0 }; }, watch: { value: function value(val) { val = this.checkLimits(Array.isArray(val) ? val : [val]); if (!this.dragging && (val[0] !== this.currentValue[0] || val[1] !== this.currentValue[1])) { this.currentValue = val; } }, exportValue: function exportValue(values) { var _this = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); this.$refs.minTooltip.updatePopper(); if (this.range) { this.$refs.maxTooltip.updatePopper(); } }.bind(this)); var value = this.range ? values : values[0]; this.$emit('input', value); this.$emit('on-input', value); } }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-input', this.showInput && !this.range), (0, _defineProperty3.default)(_ref, prefixCls + '-range', this.range), (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.itemDisabled), _ref)]; }, minButtonClasses: function minButtonClasses() { return [prefixCls + '-button', (0, _defineProperty3.default)({}, prefixCls + '-button-dragging', this.pointerDown === 'min')]; }, maxButtonClasses: function maxButtonClasses() { return [prefixCls + '-button', (0, _defineProperty3.default)({}, prefixCls + '-button-dragging', this.pointerDown === 'max')]; }, exportValue: function exportValue() { var _this2 = this; var decimalCases = (String(this.step).split('.')[1] || '').length; return this.currentValue.map(function (nr) { (0, _newArrowCheck3.default)(this, _this2); return Number(nr.toFixed(decimalCases)); }.bind(this)); }, minPosition: function minPosition() { var val = this.currentValue; return (val[0] - this.min) / this.valueRange * 100; }, maxPosition: function maxPosition() { var val = this.currentValue; return (val[1] - this.min) / this.valueRange * 100; }, barStyle: function barStyle() { var style = { width: (this.currentValue[0] - this.min) / this.valueRange * 100 + '%' }; if (this.range) { style.left = (this.currentValue[0] - this.min) / this.valueRange * 100 + '%'; style.width = (this.currentValue[1] - this.currentValue[0]) / this.valueRange * 100 + '%'; } return style; }, stops: function stops() { var stopCount = this.valueRange / this.step; var result = []; var stepWidth = 100 * this.step / this.valueRange; for (var i = 1; i < stopCount; i++) { result.push(i * stepWidth); } return result; }, markList: function markList() { var _this3 = this; if (!this.marks) return []; var marksKeys = (0, _keys2.default)(this.marks); return marksKeys.map(parseFloat).sort(function (a, b) { (0, _newArrowCheck3.default)(this, _this3); return a - b; }.bind(this)).filter(function (point) { (0, _newArrowCheck3.default)(this, _this3); return point <= this.max && point >= this.min; }.bind(this)).map(function (point) { (0, _newArrowCheck3.default)(this, _this3); return { point: point, position: (point - this.min) * 100 / (this.max - this.min), mark: this.marks[point] }; }.bind(this)); }, tipDisabled: function tipDisabled() { return this.tipFormat(this.currentValue[0]) === null || this.showTip === 'never'; }, valueRange: function valueRange() { return this.max - this.min; }, firstPosition: function firstPosition() { return this.currentValue[0]; }, secondPosition: function secondPosition() { return this.currentValue[1]; } }, methods: { getPointerX: function getPointerX(e) { return e.type.indexOf('touch') !== -1 ? e.touches[0].clientX : e.clientX; }, checkLimits: function checkLimits(_ref4) { var _ref5 = (0, _slicedToArray3.default)(_ref4, 2), min = _ref5[0], max = _ref5[1]; min = Math.max(this.min, min); min = Math.min(this.max, min); max = Math.max(this.min, min, max); max = Math.min(this.max, max); return [min, max]; }, getCurrentValue: function getCurrentValue(event, type) { if (this.itemDisabled) { return; } var index = this.valueIndex[type]; if (typeof index === 'undefined') { return; } return this.currentValue[index]; }, onKeyLeft: function onKeyLeft(event, type) { var value = this.getCurrentValue(event, type); if ((0, _isFinite2.default)(value)) { this.changeButtonPosition(value - this.step, type); } }, onKeyRight: function onKeyRight(event, type) { var value = this.getCurrentValue(event, type); if ((0, _isFinite2.default)(value)) { this.changeButtonPosition(value + this.step, type); } }, onPointerDown: function onPointerDown(event, type) { if (this.itemDisabled) return; event.preventDefault(); this.pointerDown = type; this.onPointerDragStart(event); (0, _dom.on)(window, 'mousemove', this.onPointerDrag); (0, _dom.on)(window, 'touchmove', this.onPointerDrag); (0, _dom.on)(window, 'mouseup', this.onPointerDragEnd); (0, _dom.on)(window, 'touchend', this.onPointerDragEnd); }, onPointerDragStart: function onPointerDragStart(event) { this.dragging = false; this.startX = this.getPointerX(event); this.startPos = this[String(this.pointerDown) + 'Position'] * this.valueRange / 100 + this.min; }, onPointerDrag: function onPointerDrag(event) { this.dragging = true; this.$refs[String(this.pointerDown) + 'Tooltip'].visible = true; this.currentX = this.getPointerX(event); var diff = (this.currentX - this.startX) / this.sliderWidth * this.valueRange; this.changeButtonPosition(this.startPos + diff); }, onPointerDragEnd: function onPointerDragEnd() { if (this.dragging) { this.dragging = false; this.$refs[String(this.pointerDown) + 'Tooltip'].visible = false; this.emitChange(); } this.pointerDown = ''; (0, _dom.off)(window, 'mousemove', this.onPointerDrag); (0, _dom.off)(window, 'touchmove', this.onPointerDrag); (0, _dom.off)(window, 'mouseup', this.onPointerDragEnd); (0, _dom.off)(window, 'touchend', this.onPointerDragEnd); }, changeButtonPosition: function changeButtonPosition(newPos, forceType) { var type = forceType || this.pointerDown; var index = type === 'min' ? 0 : 1; if (type === 'min') newPos = this.checkLimits([newPos, this.max])[0];else newPos = this.checkLimits([this.min, newPos])[1]; var modulus = this.handleDecimal(newPos, this.step); var value = this.currentValue; value[index] = newPos - modulus; if (this.range) { if (type === 'min' && value[0] > value[1]) value[1] = value[0]; if (type === 'max' && value[0] > value[1]) value[0] = value[1]; } this.currentValue = [].concat((0, _toConsumableArray3.default)(value)); if (!this.dragging) { if (this.currentValue[index] !== this.oldValue[index]) { this.emitChange(); this.oldValue[index] = this.currentValue[index]; } } }, handleDecimal: function handleDecimal(pos, step) { if (step < 1) { var sl = step.toString(), multiple = 1, m = void 0; try { m = sl.split('.')[1].length; } catch (e) { m = 0; } multiple = Math.pow(10, m); return pos * multiple % (step * multiple) / multiple; } else return pos % step; }, emitChange: function emitChange() { var value = this.range ? this.exportValue : this.exportValue[0]; this.$emit('on-change', value); this.dispatch('FormItem', 'on-form-change', value); }, sliderClick: function sliderClick(event) { if (this.itemDisabled) return; var currentX = this.getPointerX(event); var sliderOffsetLeft = this.$refs.slider.getBoundingClientRect().left; var newPos = (currentX - sliderOffsetLeft) / this.sliderWidth * this.valueRange + this.min; var regularNewPos = newPos / this.valueRange * 100; if (!this.range || regularNewPos <= this.minPosition) this.changeButtonPosition(newPos, 'min');else if (regularNewPos >= this.maxPosition) this.changeButtonPosition(newPos, 'max');else this.changeButtonPosition(newPos, newPos - this.firstPosition <= this.secondPosition - newPos ? 'min' : 'max'); }, handleInputChange: function handleInputChange(val) { this.currentValue = [val === 0 ? 0 : val || this.min, this.currentValue[1]]; this.emitChange(); }, handleFocus: function handleFocus(type) { this.$refs[String(type) + 'Tooltip'].handleShowPopper(); }, handleBlur: function handleBlur(type) { this.$refs[String(type) + 'Tooltip'].handleClosePopper(); }, handleSetSliderWidth: function handleSetSliderWidth() { this.sliderWidth = parseInt((0, _assist.getStyle)(this.$refs.slider, 'width'), 10); } }, mounted: function mounted() { var _this4 = this; this.$on('on-visible-change', function (val) { (0, _newArrowCheck3.default)(this, _this4); if (val && this.showTip === 'always') { this.$refs.minTooltip.doDestroy(); if (this.range) { this.$refs.maxTooltip.doDestroy(); } this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this4); this.$refs.minTooltip.updatePopper(); if (this.range) { this.$refs.maxTooltip.updatePopper(); } }.bind(this)); } }.bind(this)); this.observer = (0, _elementResizeDetector2.default)(); this.observer.listenTo(this.$refs.slider, this.handleSetSliderWidth); }, beforeDestroy: function beforeDestroy() { this.observer.removeListener(this.$refs.slider, this.handleSetSliderWidth); } }; /***/ }), /* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _popper = __webpack_require__(211); var _popper2 = _interopRequireDefault(_popper); var _transferDom = __webpack_require__(21); var _transferDom2 = _interopRequireDefault(_transferDom); var _assist = __webpack_require__(3); var _transferQueue = __webpack_require__(34); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-tooltip'; exports.default = { name: 'Tooltip', directives: { TransferDom: _transferDom2.default }, mixins: [_popper2.default], props: { placement: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']); }, default: 'bottom' }, content: { type: [String, Number], default: '' }, delay: { type: Number, default: 100 }, disabled: { type: Boolean, default: false }, controlled: { type: Boolean, default: false }, always: { type: Boolean, default: false }, transfer: { type: Boolean, default: function _default() { return !this.$IVIEW || this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; } }, theme: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['dark', 'light']); }, default: 'dark' }, maxWidth: { type: [String, Number] } }, data: function data() { return { prefixCls: prefixCls, tIndex: this.handleGetIndex() }; }, computed: { innerStyles: function innerStyles() { var styles = {}; if (this.maxWidth) styles['max-width'] = String(this.maxWidth) + 'px'; return styles; }, innerClasses: function innerClasses() { return [prefixCls + '-inner', (0, _defineProperty3.default)({}, prefixCls + '-inner-with-width', !!this.maxWidth)]; }, dropStyles: function dropStyles() { var styles = {}; if (this.transfer) styles['z-index'] = 1060 + this.tIndex; return styles; } }, watch: { content: function content() { this.updatePopper(); } }, methods: { handleShowPopper: function handleShowPopper() { var _this = this; if (this.timeout) clearTimeout(this.timeout); this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); this.visible = true; }.bind(this), this.delay); this.tIndex = this.handleGetIndex(); }, handleClosePopper: function handleClosePopper() { var _this2 = this; if (this.timeout) { clearTimeout(this.timeout); if (!this.controlled) { this.timeout = setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.visible = false; }.bind(this), 100); } } }, handleGetIndex: function handleGetIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; } }, mounted: function mounted() { if (this.always) { this.updatePopper(); } } }; /***/ }), /* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = module.exports = {}; /** * Loops through the collection and calls the callback for each element. if the callback returns truthy, the loop is broken and returns the same value. * @public * @param {*} collection The collection to loop through. Needs to have a length property set and have indices set from 0 to length - 1. * @param {function} callback The callback to be called for each element. The element will be given as a parameter to the callback. If this callback returns truthy, the loop is broken and the same value is returned. * @returns {*} The value that a callback has returned (if truthy). Otherwise nothing. */ utils.forEach = function(collection, callback) { for(var i = 0; i < collection.length; i++) { var result = callback(collection[i]); if(result) { return result; } } }; /***/ }), /* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from path_to_url var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; }; /***/ }), /* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-steps'; function debounce(fn) { var waiting = void 0; return function () { if (waiting) return; waiting = true; var context = this, args = arguments; var later = function later() { waiting = false; fn.apply(context, args); }; this.$nextTick(later); }; } exports.default = { name: 'Steps', props: { current: { type: Number, default: 0 }, status: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['wait', 'process', 'finish', 'error']); }, default: 'process' }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small']); } }, direction: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['horizontal', 'vertical']); }, default: 'horizontal' } }, computed: { classes: function classes() { return ['' + prefixCls, prefixCls + '-' + String(this.direction), (0, _defineProperty3.default)({}, prefixCls + '-' + String(this.size), !!this.size)]; } }, methods: { updateChildProps: function updateChildProps(isInit) { var _this = this; var total = this.$children.length; this.$children.forEach(function (child, index) { (0, _newArrowCheck3.default)(this, _this); child.stepNumber = index + 1; if (this.direction === 'horizontal') { child.total = total; } if (!(isInit && child.currentStatus)) { if (index == this.current) { if (this.status != 'error') { child.currentStatus = 'process'; } } else if (index < this.current) { child.currentStatus = 'finish'; } else { child.currentStatus = 'wait'; } } if (child.currentStatus != 'error' && index != 0) { this.$children[index - 1].nextError = false; } }.bind(this)); }, setNextError: function setNextError() { var _this2 = this; this.$children.forEach(function (child, index) { (0, _newArrowCheck3.default)(this, _this2); if (child.currentStatus == 'error' && index != 0) { this.$children[index - 1].nextError = true; } }.bind(this)); }, updateCurrent: function updateCurrent(isInit) { if (this.current < 0 || this.current >= this.$children.length) { return; } if (isInit) { var current_status = this.$children[this.current].currentStatus; if (!current_status) { this.$children[this.current].currentStatus = this.status; } } else { this.$children[this.current].currentStatus = this.status; } }, debouncedAppendRemove: function debouncedAppendRemove() { return debounce(function () { this.updateSteps(); }); }, updateSteps: function updateSteps() { this.updateChildProps(true); this.setNextError(); this.updateCurrent(true); } }, mounted: function mounted() { this.updateSteps(); this.$on('append', this.debouncedAppendRemove()); this.$on('remove', this.debouncedAppendRemove()); }, watch: { current: function current() { this.updateChildProps(); }, status: function status() { this.updateCurrent(); } } }; /***/ }), /* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-steps'; var iconPrefixCls = 'ivu-icon'; exports.default = { name: 'Step', mixins: [_emitter2.default], props: { status: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['wait', 'process', 'finish', 'error']); } }, title: { type: String, default: '' }, content: { type: String }, icon: { type: String } }, data: function data() { return { prefixCls: prefixCls, stepNumber: '', nextError: false, total: 1, currentStatus: '' }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-item', prefixCls + '-status-' + String(this.currentStatus), (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-custom', !!this.icon), (0, _defineProperty3.default)(_ref, prefixCls + '-next-error', this.nextError), _ref)]; }, iconClasses: function iconClasses() { var icon = ''; if (this.icon) { icon = this.icon; } else { if (this.currentStatus == 'finish') { icon = 'ios-checkmark'; } else if (this.currentStatus == 'error') { icon = 'ios-close'; } } return [prefixCls + '-icon', '' + iconPrefixCls, (0, _defineProperty3.default)({}, iconPrefixCls + '-' + String(icon), icon != '')]; }, styles: function styles() { return { width: 1 / this.total * 100 + '%' }; } }, watch: { status: function status(val) { this.currentStatus = val; if (this.currentStatus == 'error') { this.$parent.setNextError(); } } }, created: function created() { this.currentStatus = this.status; }, mounted: function mounted() { this.dispatch('Steps', 'append'); }, beforeDestroy: function beforeDestroy() { this.dispatch('Steps', 'remove'); } }; /***/ }), /* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-switch'; exports.default = { name: 'iSwitch', mixins: [_emitter2.default], props: { value: { type: [String, Number, Boolean], default: false }, trueValue: { type: [String, Number, Boolean], default: true }, falseValue: { type: [String, Number, Boolean], default: false }, disabled: { type: Boolean, default: false }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['large', 'small', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, name: { type: String }, loading: { type: Boolean, default: false }, trueColor: { type: String }, falseColor: { type: String }, beforeChange: Function }, data: function data() { return { currentValue: this.value }; }, computed: { wrapClasses: function wrapClasses() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-checked', this.currentValue === this.trueValue), (0, _defineProperty3.default)(_ref, prefixCls + '-disabled', this.disabled), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref, prefixCls + '-loading', this.loading), _ref)]; }, wrapStyles: function wrapStyles() { var style = {}; if (this.trueColor && this.currentValue === this.trueValue) { style['border-color'] = this.trueColor; style['background-color'] = this.trueColor; } else if (this.falseColor && this.currentValue === this.falseValue) { style['border-color'] = this.falseColor; style['background-color'] = this.falseColor; } return style; }, innerClasses: function innerClasses() { return prefixCls + '-inner'; } }, methods: { handleToggle: function handleToggle() { var checked = this.currentValue === this.trueValue ? this.falseValue : this.trueValue; this.currentValue = checked; this.$emit('input', checked); this.$emit('on-change', checked); this.dispatch('FormItem', 'on-form-change', checked); }, toggle: function toggle(event) { var _this = this; event.preventDefault(); if (this.disabled || this.loading) { return false; } if (!this.beforeChange) { return this.handleToggle(); } var before = this.beforeChange(); if (before && before.then) { before.then(function () { (0, _newArrowCheck3.default)(this, _this); this.handleToggle(); }.bind(this)); } else { this.handleToggle(); } } }, watch: { value: function value(val) { if (val !== this.trueValue && val !== this.falseValue) { throw 'Value should be trueValue or falseValue.'; } this.currentValue = val; } } }; /***/ }), /* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _getIterator2 = __webpack_require__(44); var _getIterator3 = _interopRequireDefault(_getIterator2); var _stringify = __webpack_require__(54); var _stringify2 = _interopRequireDefault(_stringify); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _tableHead = __webpack_require__(565); var _tableHead2 = _interopRequireDefault(_tableHead); var _tableBody = __webpack_require__(568); var _tableBody2 = _interopRequireDefault(_tableBody); var _spin = __webpack_require__(81); var _spin2 = _interopRequireDefault(_spin); var _assist = __webpack_require__(3); var _dom = __webpack_require__(13); var _csv = __webpack_require__(575); var _csv2 = _interopRequireDefault(_csv); var _exportCsv = __webpack_require__(576); var _exportCsv2 = _interopRequireDefault(_exportCsv); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _elementResizeDetector = __webpack_require__(84); var _elementResizeDetector2 = _interopRequireDefault(_elementResizeDetector); var _util = __webpack_require__(577); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-table'; var rowKey = 1; var columnKey = 1; exports.default = { name: 'Table', mixins: [_locale2.default], components: { tableHead: _tableHead2.default, tableBody: _tableBody2.default, Spin: _spin2.default }, provide: function provide() { return { tableRoot: this }; }, props: { data: { type: Array, default: function _default() { return []; } }, columns: { type: Array, default: function _default() { return []; } }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'large', 'default']); }, default: function _default() { return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, width: { type: [Number, String] }, height: { type: [Number, String] }, maxHeight: { type: [Number, String] }, stripe: { type: Boolean, default: false }, border: { type: Boolean, default: false }, showHeader: { type: Boolean, default: true }, highlightRow: { type: Boolean, default: false }, rowClassName: { type: Function, default: function _default() { return ''; } }, context: { type: Object }, noDataText: { type: String }, noFilteredDataText: { type: String }, disabledHover: { type: Boolean }, loading: { type: Boolean, default: false }, draggable: { type: Boolean, default: false }, tooltipTheme: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['dark', 'light']); }, default: 'dark' }, rowKey: { type: Boolean, default: false } }, data: function data() { var colsWithId = this.makeColumnsId(this.columns); return { ready: false, tableWidth: 0, columnsWidth: {}, prefixCls: prefixCls, compiledUids: [], objData: this.makeObjData(), rebuildData: [], cloneColumns: this.makeColumns(colsWithId), columnRows: this.makeColumnRows(false, colsWithId), leftFixedColumnRows: this.makeColumnRows('left', colsWithId), rightFixedColumnRows: this.makeColumnRows('right', colsWithId), allColumns: (0, _util.getAllColumns)(colsWithId), showSlotHeader: true, showSlotFooter: true, bodyHeight: 0, scrollBarWidth: (0, _assist.getScrollBarSize)(), currentContext: this.context, cloneData: (0, _assist.deepCopy)(this.data), showVerticalScrollBar: false, showHorizontalScrollBar: false, headerWidth: 0, headerHeight: 0 }; }, computed: { localeNoDataText: function localeNoDataText() { if (this.noDataText === undefined) { return this.t('i.table.noDataText'); } else { return this.noDataText; } }, localeNoFilteredDataText: function localeNoFilteredDataText() { if (this.noFilteredDataText === undefined) { return this.t('i.table.noFilteredDataText'); } else { return this.noFilteredDataText; } }, wrapClasses: function wrapClasses() { var _ref; return [prefixCls + '-wrapper', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-hide', !this.ready), (0, _defineProperty3.default)(_ref, prefixCls + '-with-header', this.showSlotHeader), (0, _defineProperty3.default)(_ref, prefixCls + '-with-footer', this.showSlotFooter), _ref)]; }, classes: function classes() { var _ref2; return ['' + prefixCls, (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-' + String(this.size), !!this.size), (0, _defineProperty3.default)(_ref2, prefixCls + '-border', this.border), (0, _defineProperty3.default)(_ref2, prefixCls + '-stripe', this.stripe), (0, _defineProperty3.default)(_ref2, prefixCls + '-with-fixed-top', !!this.height), _ref2)]; }, fixedHeaderClasses: function fixedHeaderClasses() { return [prefixCls + '-fixed-header', (0, _defineProperty3.default)({}, prefixCls + '-fixed-header-with-empty', !this.rebuildData.length)]; }, styles: function styles() { var style = {}; if (this.height) { var height = parseInt(this.height); style.height = String(height) + 'px'; } if (this.maxHeight) { var maxHeight = parseInt(this.maxHeight); style.maxHeight = String(maxHeight) + 'px'; } if (this.width) style.width = String(this.width) + 'px'; return style; }, tableStyle: function tableStyle() { var style = {}; if (this.tableWidth !== 0) { var width = ''; if (this.bodyHeight === 0) { width = this.tableWidth; } else { width = this.tableWidth - (this.showVerticalScrollBar ? this.scrollBarWidth : 0); } style.width = String(width) + 'px'; } return style; }, tableHeaderStyle: function tableHeaderStyle() { var style = {}; if (this.tableWidth !== 0) { var width = ''; width = this.tableWidth; style.width = String(width) + 'px'; } return style; }, fixedTableStyle: function fixedTableStyle() { var _this = this; var style = {}; var width = 0; this.leftFixedColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this); if (col.fixed && col.fixed === 'left') width += col._width; }.bind(this)); style.width = String(width) + 'px'; return style; }, fixedRightTableStyle: function fixedRightTableStyle() { var _this2 = this; var style = {}; var width = 0; this.rightFixedColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this2); if (col.fixed && col.fixed === 'right') width += col._width; }.bind(this)); style.width = String(width) + 'px'; style.right = String(this.showVerticalScrollBar ? this.scrollBarWidth : 0) + 'px'; return style; }, fixedRightHeaderStyle: function fixedRightHeaderStyle() { var style = {}; var width = 0; var height = this.headerHeight + 1; if (this.showVerticalScrollBar) { width = this.scrollBarWidth; } style.width = String(width) + 'px'; style.height = String(height) + 'px'; return style; }, bodyStyle: function bodyStyle() { var style = {}; if (this.bodyHeight !== 0) { var height = this.bodyHeight; if (this.height) { style.height = String(height) + 'px'; } else if (this.maxHeight) { style.maxHeight = String(height) + 'px'; } } return style; }, fixedBodyStyle: function fixedBodyStyle() { var style = {}; if (this.bodyHeight !== 0) { var height = this.bodyHeight - (this.showHorizontalScrollBar ? this.scrollBarWidth : 0); style.height = this.showHorizontalScrollBar ? height + 'px' : height - 1 + 'px'; } return style; }, leftFixedColumns: function leftFixedColumns() { return (0, _util.convertColumnOrder)(this.cloneColumns, 'left'); }, rightFixedColumns: function rightFixedColumns() { return (0, _util.convertColumnOrder)(this.cloneColumns, 'right'); }, isLeftFixed: function isLeftFixed() { var _this3 = this; return this.columns.some(function (col) { (0, _newArrowCheck3.default)(this, _this3); return col.fixed && col.fixed === 'left'; }.bind(this)); }, isRightFixed: function isRightFixed() { var _this4 = this; return this.columns.some(function (col) { (0, _newArrowCheck3.default)(this, _this4); return col.fixed && col.fixed === 'right'; }.bind(this)); } }, methods: { rowClsName: function rowClsName(index) { return this.rowClassName(this.data[index], index); }, handleResize: function handleResize() { var _this5 = this; var tableWidth = this.$el.offsetWidth - 1; var columnsWidth = {}; var sumMinWidth = 0; var hasWidthColumns = []; var noWidthColumns = []; var maxWidthColumns = []; var noMaxWidthColumns = []; this.cloneColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this5); if (col.width) { hasWidthColumns.push(col); } else { noWidthColumns.push(col); if (col.minWidth) { sumMinWidth += col.minWidth; } if (col.maxWidth) { maxWidthColumns.push(col); } else { noMaxWidthColumns.push(col); } } col._width = null; }.bind(this)); var unUsableWidth = hasWidthColumns.map(function (cell) { (0, _newArrowCheck3.default)(this, _this5); return cell.width; }.bind(this)).reduce(function (a, b) { (0, _newArrowCheck3.default)(this, _this5); return a + b; }.bind(this), 0); var usableWidth = tableWidth - unUsableWidth - sumMinWidth - (this.showVerticalScrollBar ? this.scrollBarWidth : 0) - 1; var usableLength = noWidthColumns.length; var columnWidth = 0; if (usableWidth > 0 && usableLength > 0) { columnWidth = parseInt(usableWidth / usableLength); } for (var i = 0; i < this.cloneColumns.length; i++) { var column = this.cloneColumns[i]; var width = columnWidth + (column.minWidth ? column.minWidth : 0); if (column.width) { width = column.width; } else { if (column._width) { width = column._width; } else { if (column.minWidth > width) { width = column.minWidth; } else if (column.maxWidth < width) { width = column.maxWidth; } if (usableWidth > 0) { usableWidth -= width - (column.minWidth ? column.minWidth : 0); usableLength--; if (usableLength > 0) { columnWidth = parseInt(usableWidth / usableLength); } else { columnWidth = 0; } } else { columnWidth = 0; } } } column._width = width; columnsWidth[column._index] = { width: width }; } if (usableWidth > 0) { usableLength = noMaxWidthColumns.length; columnWidth = parseInt(usableWidth / usableLength); for (var _i = 0; _i < noMaxWidthColumns.length; _i++) { var _column = noMaxWidthColumns[_i]; var _width = _column._width + columnWidth; if (usableLength > 1) { usableLength--; usableWidth -= columnWidth; columnWidth = parseInt(usableWidth / usableLength); } else { columnWidth = 0; } _column._width = _width; columnsWidth[_column._index] = { width: _width }; } } this.tableWidth = this.cloneColumns.map(function (cell) { (0, _newArrowCheck3.default)(this, _this5); return cell._width; }.bind(this)).reduce(function (a, b) { (0, _newArrowCheck3.default)(this, _this5); return a + b; }.bind(this), 0) + (this.showVerticalScrollBar ? this.scrollBarWidth : 0) + 1; this.columnsWidth = columnsWidth; this.fixedHeader(); }, handleMouseIn: function handleMouseIn(_index) { if (this.disabledHover) return; if (this.objData[_index]._isHover) return; this.objData[_index]._isHover = true; }, handleMouseOut: function handleMouseOut(_index) { if (this.disabledHover) return; this.objData[_index]._isHover = false; }, handleCurrentRow: function handleCurrentRow(type, _index) { var oldIndex = -1; for (var i in this.objData) { if (this.objData[i]._isHighlight) { oldIndex = parseInt(i); this.objData[i]._isHighlight = false; } } if (type === 'highlight') this.objData[_index]._isHighlight = true; var oldData = oldIndex < 0 ? null : JSON.parse((0, _stringify2.default)(this.cloneData[oldIndex])); var newData = type === 'highlight' ? JSON.parse((0, _stringify2.default)(this.cloneData[_index])) : null; this.$emit('on-current-change', newData, oldData); }, highlightCurrentRow: function highlightCurrentRow(_index) { if (!this.highlightRow || this.objData[_index]._isHighlight) return; this.handleCurrentRow('highlight', _index); }, clearCurrentRow: function clearCurrentRow() { if (!this.highlightRow) return; this.handleCurrentRow('clear'); }, clickCurrentRow: function clickCurrentRow(_index) { this.highlightCurrentRow(_index); this.$emit('on-row-click', JSON.parse((0, _stringify2.default)(this.cloneData[_index])), _index); }, dblclickCurrentRow: function dblclickCurrentRow(_index) { this.highlightCurrentRow(_index); this.$emit('on-row-dblclick', JSON.parse((0, _stringify2.default)(this.cloneData[_index])), _index); }, getSelection: function getSelection() { var _this6 = this; var selectionIndexes = []; for (var i in this.objData) { if (this.objData[i]._isChecked) selectionIndexes.push(parseInt(i)); } return JSON.parse((0, _stringify2.default)(this.data.filter(function (data, index) { (0, _newArrowCheck3.default)(this, _this6); return selectionIndexes.indexOf(index) > -1; }.bind(this)))); }, toggleSelect: function toggleSelect(_index) { var data = {}; for (var i in this.objData) { if (parseInt(i) === _index) { data = this.objData[i]; break; } } var status = !data._isChecked; this.objData[_index]._isChecked = status; var selection = this.getSelection(); this.$emit(status ? 'on-select' : 'on-select-cancel', selection, JSON.parse((0, _stringify2.default)(this.data[_index]))); this.$emit('on-selection-change', selection); }, toggleExpand: function toggleExpand(_index) { var _this7 = this; var data = {}; for (var i in this.objData) { if (parseInt(i) === _index) { data = this.objData[i]; break; } } var status = !data._isExpanded; this.objData[_index]._isExpanded = status; this.$emit('on-expand', JSON.parse((0, _stringify2.default)(this.cloneData[_index])), status); if (this.height || this.maxHeight) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this7); return this.fixedBody(); }.bind(this)); } }, selectAll: function selectAll(status) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0, _getIterator3.default)(this.rebuildData), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var data = _step.value; if (this.objData[data._index]._isDisabled) { continue; } else { this.objData[data._index]._isChecked = status; } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } var selection = this.getSelection(); if (status) { this.$emit('on-select-all', selection); } else { this.$emit('on-select-all-cancel', selection); } this.$emit('on-selection-change', selection); }, fixedHeader: function fixedHeader() { var _this8 = this; if (this.height || this.maxHeight) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this8); var titleHeight = parseInt((0, _assist.getStyle)(this.$refs.title, 'height')) || 0; var headerHeight = parseInt((0, _assist.getStyle)(this.$refs.header, 'height')) || 0; var footerHeight = parseInt((0, _assist.getStyle)(this.$refs.footer, 'height')) || 0; if (this.height) { this.bodyHeight = this.height - titleHeight - headerHeight - footerHeight; } else if (this.maxHeight) { this.bodyHeight = this.maxHeight - titleHeight - headerHeight - footerHeight; } this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this8); return this.fixedBody(); }.bind(this)); }.bind(this)); } else { this.bodyHeight = 0; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this8); return this.fixedBody(); }.bind(this)); } }, fixedBody: function fixedBody() { if (this.$refs.header) { this.headerWidth = this.$refs.header.children[0].offsetWidth; this.headerHeight = this.$refs.header.children[0].offsetHeight; } if (!this.$refs.tbody || !this.data || this.data.length === 0) { this.showVerticalScrollBar = false; } else { var bodyContentEl = this.$refs.tbody.$el; var bodyEl = bodyContentEl.parentElement; var bodyContentHeight = bodyContentEl.offsetHeight; var bodyHeight = bodyEl.offsetHeight; this.showHorizontalScrollBar = bodyEl.offsetWidth < bodyContentEl.offsetWidth + (this.showVerticalScrollBar ? this.scrollBarWidth : 0); this.showVerticalScrollBar = this.bodyHeight ? bodyHeight - (this.showHorizontalScrollBar ? this.scrollBarWidth : 0) < bodyContentHeight : false; if (this.showVerticalScrollBar) { bodyEl.classList.add(this.prefixCls + '-overflowY'); } else { bodyEl.classList.remove(this.prefixCls + '-overflowY'); } if (this.showHorizontalScrollBar) { bodyEl.classList.add(this.prefixCls + '-overflowX'); } else { bodyEl.classList.remove(this.prefixCls + '-overflowX'); } } }, hideColumnFilter: function hideColumnFilter() { var _this9 = this; this.cloneColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this9); return col._filterVisible = false; }.bind(this)); }, handleBodyScroll: function handleBodyScroll(event) { if (this.showHeader) this.$refs.header.scrollLeft = event.target.scrollLeft; if (this.isLeftFixed) this.$refs.fixedBody.scrollTop = event.target.scrollTop; if (this.isRightFixed) this.$refs.fixedRightBody.scrollTop = event.target.scrollTop; this.hideColumnFilter(); }, handleFixedMousewheel: function handleFixedMousewheel(event) { var _this10 = this; var deltaY = event.deltaY; if (!deltaY && event.detail) { deltaY = event.detail * 40; } if (!deltaY && event.wheelDeltaY) { deltaY = -event.wheelDeltaY; } if (!deltaY && event.wheelDelta) { deltaY = -event.wheelDelta; } if (!deltaY) return; var body = this.$refs.body; var currentScrollTop = body.scrollTop; if (deltaY < 0 && currentScrollTop !== 0) { event.preventDefault(); } if (deltaY > 0 && body.scrollHeight - body.clientHeight > currentScrollTop) { event.preventDefault(); } var step = 0; var timeId = setInterval(function () { (0, _newArrowCheck3.default)(this, _this10); step += 5; if (deltaY > 0) { body.scrollTop += 2; } else { body.scrollTop -= 2; } if (step >= Math.abs(deltaY)) { clearInterval(timeId); } }.bind(this), 5); }, handleMouseWheel: function handleMouseWheel(event) { var deltaX = event.deltaX; var $body = this.$refs.body; if (deltaX > 0) { $body.scrollLeft = $body.scrollLeft + 10; } else { $body.scrollLeft = $body.scrollLeft - 10; } }, sortData: function sortData(data, type, index) { var _this11 = this; var key = this.cloneColumns[index].key; data.sort(function (a, b) { (0, _newArrowCheck3.default)(this, _this11); if (this.cloneColumns[index].sortMethod) { return this.cloneColumns[index].sortMethod(a[key], b[key], type); } else { if (type === 'asc') { return a[key] > b[key] ? 1 : -1; } else if (type === 'desc') { return a[key] < b[key] ? 1 : -1; } } }.bind(this)); return data; }, handleSort: function handleSort(_index, type) { var _this12 = this; var index = this.GetOriginalIndex(_index); this.cloneColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this12); return col._sortType = 'normal'; }.bind(this)); var key = this.cloneColumns[index].key; if (this.cloneColumns[index].sortable !== 'custom') { if (type === 'normal') { this.rebuildData = this.makeDataWithFilter(); } else { this.rebuildData = this.sortData(this.rebuildData, type, index); } } this.cloneColumns[index]._sortType = type; this.$emit('on-sort-change', { column: JSON.parse((0, _stringify2.default)(this.allColumns[this.cloneColumns[index]._index])), key: key, order: type }); }, handleFilterHide: function handleFilterHide(index) { if (!this.cloneColumns[index]._isFiltered) this.cloneColumns[index]._filterChecked = []; }, filterData: function filterData(data, column) { var _this13 = this; return data.filter(function (row) { (0, _newArrowCheck3.default)(this, _this13); if (typeof column.filterRemote === 'function') return true; var status = !column._filterChecked.length; for (var i = 0; i < column._filterChecked.length; i++) { status = column.filterMethod(column._filterChecked[i], row); if (status) break; } return status; }.bind(this)); }, filterOtherData: function filterOtherData(data, index) { var _this14 = this; var column = this.cloneColumns[index]; if (typeof column.filterRemote === 'function') { column.filterRemote.call(this.$parent, column._filterChecked, column.key, column); } this.cloneColumns.forEach(function (col, colIndex) { (0, _newArrowCheck3.default)(this, _this14); if (colIndex !== index) { data = this.filterData(data, col); } }.bind(this)); return data; }, handleFilter: function handleFilter(index) { var column = this.cloneColumns[index]; var filterData = this.makeDataWithSort(); filterData = this.filterOtherData(filterData, index); this.rebuildData = this.filterData(filterData, column); this.cloneColumns[index]._isFiltered = true; this.cloneColumns[index]._filterVisible = false; this.$emit('on-filter-change', column); }, GetOriginalIndex: function GetOriginalIndex(_index) { var _this15 = this; return this.cloneColumns.findIndex(function (item) { (0, _newArrowCheck3.default)(this, _this15); return item._index === _index; }.bind(this)); }, handleFilterSelect: function handleFilterSelect(_index, value) { var index = this.GetOriginalIndex(_index); this.cloneColumns[index]._filterChecked = [value]; this.handleFilter(index); }, handleFilterReset: function handleFilterReset(_index) { var index = this.GetOriginalIndex(_index); this.cloneColumns[index]._isFiltered = false; this.cloneColumns[index]._filterVisible = false; this.cloneColumns[index]._filterChecked = []; var filterData = this.makeDataWithSort(); filterData = this.filterOtherData(filterData, index); this.rebuildData = filterData; this.$emit('on-filter-change', this.cloneColumns[index]); }, makeData: function makeData() { var _this16 = this; var data = (0, _assist.deepCopy)(this.data); data.forEach(function (row, index) { (0, _newArrowCheck3.default)(this, _this16); row._index = index; row._rowKey = rowKey++; }.bind(this)); return data; }, makeDataWithSort: function makeDataWithSort() { var data = this.makeData(); var sortType = 'normal'; var sortIndex = -1; var isCustom = false; for (var i = 0; i < this.cloneColumns.length; i++) { if (this.cloneColumns[i]._sortType !== 'normal') { sortType = this.cloneColumns[i]._sortType; sortIndex = i; isCustom = this.cloneColumns[i].sortable === 'custom'; break; } } if (sortType !== 'normal' && !isCustom) data = this.sortData(data, sortType, sortIndex); return data; }, makeDataWithFilter: function makeDataWithFilter() { var _this17 = this; var data = this.makeData(); this.cloneColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this17); return data = this.filterData(data, col); }.bind(this)); return data; }, makeDataWithSortAndFilter: function makeDataWithSortAndFilter() { var _this18 = this; var data = this.makeDataWithSort(); this.cloneColumns.forEach(function (col) { (0, _newArrowCheck3.default)(this, _this18); return data = this.filterData(data, col); }.bind(this)); return data; }, makeObjData: function makeObjData() { var _this19 = this; var data = {}; this.data.forEach(function (row, index) { (0, _newArrowCheck3.default)(this, _this19); var newRow = (0, _assist.deepCopy)(row); newRow._isHover = false; if (newRow._disabled) { newRow._isDisabled = newRow._disabled; } else { newRow._isDisabled = false; } if (newRow._checked) { newRow._isChecked = newRow._checked; } else { newRow._isChecked = false; } if (newRow._expanded) { newRow._isExpanded = newRow._expanded; } else { newRow._isExpanded = false; } if (newRow._highlight) { newRow._isHighlight = newRow._highlight; } else { newRow._isHighlight = false; } data[index] = newRow; }.bind(this)); return data; }, makeColumnsId: function makeColumnsId(columns) { var _this20 = this; return columns.map(function (item) { (0, _newArrowCheck3.default)(this, _this20); if ('children' in item) this.makeColumnsId(item.children); item.__id = (0, _util.getRandomStr)(6); return item; }.bind(this)); }, makeColumns: function makeColumns(cols) { var _this21 = this; var columns = (0, _assist.deepCopy)((0, _util.getAllColumns)(cols)); var left = []; var right = []; var center = []; columns.forEach(function (column, index) { (0, _newArrowCheck3.default)(this, _this21); column._index = index; column._columnKey = columnKey++; column.width = parseInt(column.width); column._width = column.width ? column.width : ''; column._sortType = 'normal'; column._filterVisible = false; column._isFiltered = false; column._filterChecked = []; if ('filterMultiple' in column) { column._filterMultiple = column.filterMultiple; } else { column._filterMultiple = true; } if ('filteredValue' in column) { column._filterChecked = column.filteredValue; column._isFiltered = true; } if ('sortType' in column) { column._sortType = column.sortType; } if (column.fixed && column.fixed === 'left') { left.push(column); } else if (column.fixed && column.fixed === 'right') { right.push(column); } else { center.push(column); } }.bind(this)); return left.concat(center).concat(right); }, makeColumnRows: function makeColumnRows(fixedType, cols) { return (0, _util.convertToRows)(cols, fixedType); }, exportCsv: function exportCsv(params) { if (params.filename) { if (params.filename.indexOf('.csv') === -1) { params.filename += '.csv'; } } else { params.filename = 'table.csv'; } var columns = []; var datas = []; if (params.columns && params.data) { columns = params.columns; datas = params.data; } else { columns = this.allColumns; if (!('original' in params)) params.original = true; datas = params.original ? this.data : this.rebuildData; } var noHeader = false; if ('noHeader' in params) noHeader = params.noHeader; var data = (0, _csv2.default)(columns, datas, params, noHeader); if (params.callback) params.callback(data);else _exportCsv2.default.download(params.filename, data); }, dragAndDrop: function dragAndDrop(a, b) { this.$emit('on-drag-drop', a, b); } }, created: function created() { if (!this.context) this.currentContext = this.$parent; this.showSlotHeader = this.$slots.header !== undefined; this.showSlotFooter = this.$slots.footer !== undefined; this.rebuildData = this.makeDataWithSortAndFilter(); }, mounted: function mounted() { var _this22 = this; this.handleResize(); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this22); return this.ready = true; }.bind(this)); (0, _dom.on)(window, 'resize', this.handleResize); this.observer = (0, _elementResizeDetector2.default)(); this.observer.listenTo(this.$el, this.handleResize); this.$on('on-visible-change', function (val) { (0, _newArrowCheck3.default)(this, _this22); if (val) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this22); this.handleResize(); }.bind(this)); } }.bind(this)); }, beforeDestroy: function beforeDestroy() { (0, _dom.off)(window, 'resize', this.handleResize); this.observer.removeListener(this.$el, this.handleResize); }, watch: { data: { handler: function handler() { var _this23 = this; var oldDataLen = this.rebuildData.length; this.objData = this.makeObjData(); this.rebuildData = this.makeDataWithSortAndFilter(); this.handleResize(); if (!oldDataLen) { this.fixedHeader(); } setTimeout(function () { (0, _newArrowCheck3.default)(this, _this23); this.cloneData = (0, _assist.deepCopy)(this.data); }.bind(this), 0); }, deep: true }, columns: { handler: function handler() { var colsWithId = this.makeColumnsId(this.columns); this.allColumns = (0, _util.getAllColumns)(colsWithId); this.cloneColumns = this.makeColumns(colsWithId); this.columnRows = this.makeColumnRows(false, colsWithId); this.leftFixedColumnRows = this.makeColumnRows('left', colsWithId); this.rightFixedColumnRows = this.makeColumnRows('right', colsWithId); this.rebuildData = this.makeDataWithSortAndFilter(); this.handleResize(); }, deep: true }, height: function height() { this.handleResize(); }, maxHeight: function maxHeight() { this.handleResize(); }, showHorizontalScrollBar: function showHorizontalScrollBar() { this.handleResize(); }, showVerticalScrollBar: function showVerticalScrollBar() { this.handleResize(); } } }; /***/ }), /* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _checkboxGroup = __webpack_require__(133); var _checkboxGroup2 = _interopRequireDefault(_checkboxGroup); var _checkbox = __webpack_require__(46); var _checkbox2 = _interopRequireDefault(_checkbox); var _poptip = __webpack_require__(209); var _poptip2 = _interopRequireDefault(_poptip); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _header = __webpack_require__(566); var _header2 = _interopRequireDefault(_header); var _mixin = __webpack_require__(226); var _mixin2 = _interopRequireDefault(_mixin); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableHead', mixins: [_mixin2.default, _locale2.default], components: { CheckboxGroup: _checkboxGroup2.default, Checkbox: _checkbox2.default, Poptip: _poptip2.default, iButton: _button2.default, renderHeader: _header2.default }, props: { prefixCls: String, styleObject: Object, columns: Array, objData: Object, data: Array, columnsWidth: Object, fixed: { type: [Boolean, String], default: false }, columnRows: Array, fixedColumnRows: Array }, computed: { styles: function styles() { var style = (0, _assign2.default)({}, this.styleObject); var width = parseInt(this.styleObject.width); style.width = String(width) + 'px'; return style; }, isSelectAll: function isSelectAll() { var _this = this; var isSelectAll = true; if (!this.data.length) isSelectAll = false; if (!this.data.find(function (item) { (0, _newArrowCheck3.default)(this, _this); return !item._disabled; }.bind(this))) isSelectAll = false; for (var i = 0; i < this.data.length; i++) { if (!this.objData[this.data[i]._index]._isChecked && !this.objData[this.data[i]._index]._isDisabled) { isSelectAll = false; break; } } return isSelectAll; }, headRows: function headRows() { var isGroup = this.columnRows.length > 1; if (isGroup) { return this.fixed ? this.fixedColumnRows : this.columnRows; } else { return [this.columns]; } }, isSelectDisabled: function isSelectDisabled() { var _this2 = this; var isSelectDisabled = false; if (!this.data.length) isSelectDisabled = true; if (!this.data.find(function (item) { (0, _newArrowCheck3.default)(this, _this2); return !item._disabled; }.bind(this))) isSelectDisabled = true; return isSelectDisabled; } }, methods: { cellClasses: function cellClasses(column) { var _ref; return [String(this.prefixCls) + '-cell', (_ref = {}, (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-hidden', !this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right')), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-cell-with-selection', column.type === 'selection'), _ref)]; }, scrollBarCellClass: function scrollBarCellClass() { var hasRightFixed = false; for (var i in this.headRows) { for (var j in this.headRows[i]) { if (this.headRows[i][j].fixed === 'right') { hasRightFixed = true; break; } if (hasRightFixed) break; } } return [(0, _defineProperty3.default)({}, String(this.prefixCls) + '-hidden', hasRightFixed)]; }, itemClasses: function itemClasses(column, item) { return [String(this.prefixCls) + '-filter-select-item', (0, _defineProperty3.default)({}, String(this.prefixCls) + '-filter-select-item-selected', column._filterChecked[0] === item.value)]; }, itemAllClasses: function itemAllClasses(column) { return [String(this.prefixCls) + '-filter-select-item', (0, _defineProperty3.default)({}, String(this.prefixCls) + '-filter-select-item-selected', !column._filterChecked.length)]; }, selectAll: function selectAll() { var status = !this.isSelectAll; this.$parent.selectAll(status); }, handleSort: function handleSort(index, type) { var _this3 = this; var column = this.columns.find(function (item) { (0, _newArrowCheck3.default)(this, _this3); return item._index === index; }.bind(this)); var _index = column._index; if (column._sortType === type) { type = 'normal'; } this.$parent.handleSort(_index, type); }, handleSortByHead: function handleSortByHead(index) { var _this4 = this; var column = this.columns.find(function (item) { (0, _newArrowCheck3.default)(this, _this4); return item._index === index; }.bind(this)); if (column.sortable) { var type = column._sortType; if (type === 'normal') { this.handleSort(index, 'asc'); } else if (type === 'asc') { this.handleSort(index, 'desc'); } else { this.handleSort(index, 'normal'); } } }, handleFilter: function handleFilter(index) { this.$parent.handleFilter(index); }, handleSelect: function handleSelect(index, value) { this.$parent.handleFilterSelect(index, value); }, handleReset: function handleReset(index) { this.$parent.handleFilterReset(index); }, handleFilterHide: function handleFilterHide(index) { this.$parent.handleFilterHide(index); }, getColumn: function getColumn(rowIndex, index) { var _this5 = this; var isGroup = this.columnRows.length > 1; if (isGroup) { var id = this.headRows[rowIndex][index].__id; return this.columns.filter(function (item) { (0, _newArrowCheck3.default)(this, _this5); return item.__id === id; }.bind(this))[0]; } else { return this.headRows[rowIndex][index]; } } } }; /***/ }), /* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { methods: { alignCls: function alignCls(column) { var _ref; var row = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var cellClassName = ''; if (row.cellClassName && column.key && row.cellClassName[column.key]) { cellClassName = row.cellClassName[column.key]; } return [(_ref = {}, (0, _defineProperty3.default)(_ref, '' + String(cellClassName), cellClassName), (0, _defineProperty3.default)(_ref, '' + String(column.className), column.className), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-column-' + String(column.align), column.align), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-hidden', this.fixed === 'left' && column.fixed !== 'left' || this.fixed === 'right' && column.fixed !== 'right' || !this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right')), _ref)]; }, isPopperShow: function isPopperShow(column) { return column.filters && (!this.fixed && !column.fixed || this.fixed === 'left' && column.fixed === 'left' || this.fixed === 'right' && column.fixed === 'right'); }, setCellWidth: function setCellWidth(column) { var width = ''; if (column.width) { width = column.width; } else if (this.columnsWidth[column._index]) { width = this.columnsWidth[column._index].width; } if (width === '0') width = ''; return width; } } }; /***/ }), /* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _tableTr = __webpack_require__(569); var _tableTr2 = _interopRequireDefault(_tableTr); var _cell = __webpack_require__(571); var _cell2 = _interopRequireDefault(_cell); var _expand = __webpack_require__(230); var _expand2 = _interopRequireDefault(_expand); var _mixin = __webpack_require__(226); var _mixin2 = _interopRequireDefault(_mixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableBody', mixins: [_mixin2.default], components: { TableCell: _cell2.default, Expand: _expand2.default, TableTr: _tableTr2.default }, props: { prefixCls: String, styleObject: Object, columns: Array, data: Array, objData: Object, columnsWidth: Object, fixed: { type: [Boolean, String], default: false }, draggable: { type: Boolean, default: false }, rowKey: { type: Boolean, default: false } }, computed: { expandRender: function expandRender() { var render = function render() { return ''; }; for (var i = 0; i < this.columns.length; i++) { var column = this.columns[i]; if (column.type && column.type === 'expand') { if (column.render) render = column.render; } } return render; } }, methods: { rowChecked: function rowChecked(_index) { return this.objData[_index] && this.objData[_index]._isChecked; }, rowDisabled: function rowDisabled(_index) { return this.objData[_index] && this.objData[_index]._isDisabled; }, rowExpanded: function rowExpanded(_index) { return this.objData[_index] && this.objData[_index]._isExpanded; }, handleMouseIn: function handleMouseIn(_index) { this.$parent.handleMouseIn(_index); }, handleMouseOut: function handleMouseOut(_index) { this.$parent.handleMouseOut(_index); }, clickCurrentRow: function clickCurrentRow(_index) { this.$parent.clickCurrentRow(_index); }, dblclickCurrentRow: function dblclickCurrentRow(_index) { this.$parent.dblclickCurrentRow(_index); } } }; /***/ }), /* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { props: { row: Object, prefixCls: String, draggable: Boolean }, computed: { objData: function objData() { return this.$parent.objData; } }, methods: { onDrag: function onDrag(e, index) { e.dataTransfer.setData('index', index); }, onDrop: function onDrop(e, index) { var dragIndex = e.dataTransfer.getData('index'); this.$parent.$parent.dragAndDrop(dragIndex, index); e.preventDefault(); }, allowDrop: function allowDrop(e) { e.preventDefault(); }, rowClasses: function rowClasses(_index) { var _ref; return [String(this.prefixCls) + '-row', this.rowClsName(_index), (_ref = {}, (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-row-highlight', this.objData[_index] && this.objData[_index]._isHighlight), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-row-hover', this.objData[_index] && this.objData[_index]._isHover), _ref)]; }, rowClsName: function rowClsName(_index) { return this.$parent.$parent.rowClassName(this.objData[_index], _index); } } }; /***/ }), /* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _expand = __webpack_require__(230); var _expand2 = _interopRequireDefault(_expand); var _slot = __webpack_require__(572); var _slot2 = _interopRequireDefault(_slot); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _checkbox = __webpack_require__(46); var _checkbox2 = _interopRequireDefault(_checkbox); var _tooltip = __webpack_require__(83); var _tooltip2 = _interopRequireDefault(_tooltip); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableCell', components: { Icon: _icon2.default, Checkbox: _checkbox2.default, TableExpand: _expand2.default, TableSlot: _slot2.default, Tooltip: _tooltip2.default }, inject: ['tableRoot'], props: { prefixCls: String, row: Object, column: Object, naturalIndex: Number, index: Number, checked: Boolean, disabled: Boolean, expanded: Boolean, fixed: { type: [Boolean, String], default: false } }, data: function data() { return { renderType: '', uid: -1, context: this.$parent.$parent.$parent.currentContext, showTooltip: false }; }, computed: { classes: function classes() { var _ref; return [String(this.prefixCls) + '-cell', (_ref = {}, (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-hidden', !this.fixed && this.column.fixed && (this.column.fixed === 'left' || this.column.fixed === 'right')), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-cell-ellipsis', this.column.ellipsis || false), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-cell-with-expand', this.renderType === 'expand'), (0, _defineProperty3.default)(_ref, String(this.prefixCls) + '-cell-with-selection', this.renderType === 'selection'), _ref)]; }, expandCls: function expandCls() { return [String(this.prefixCls) + '-cell-expand', (0, _defineProperty3.default)({}, String(this.prefixCls) + '-cell-expand-expanded', this.expanded)]; } }, methods: { toggleSelect: function toggleSelect() { this.$parent.$parent.$parent.toggleSelect(this.index); }, toggleExpand: function toggleExpand() { this.$parent.$parent.$parent.toggleExpand(this.index); }, handleClick: function handleClick() {}, handleTooltipIn: function handleTooltipIn() { var $content = this.$refs.content; this.showTooltip = $content.scrollWidth > $content.offsetWidth; }, handleTooltipOut: function handleTooltipOut() { this.showTooltip = false; } }, created: function created() { if (this.column.type === 'index') { this.renderType = 'index'; } else if (this.column.type === 'selection') { this.renderType = 'selection'; } else if (this.column.type === 'html') { this.renderType = 'html'; } else if (this.column.type === 'expand') { this.renderType = 'expand'; } else if (this.column.render) { this.renderType = 'render'; } else if (this.column.slot) { this.renderType = 'slot'; } else { this.renderType = 'normal'; } } }; /***/ }), /* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableExpand', functional: true, props: { row: Object, render: Function, index: Number, column: { type: Object, default: null } }, render: function render(h, ctx) { (0, _newArrowCheck3.default)(undefined, undefined); var params = { row: ctx.props.row, index: ctx.props.index }; if (ctx.props.column) params.column = ctx.props.column; return ctx.props.render(h, params); }.bind(undefined) }; /***/ }), /* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _getIterator2 = __webpack_require__(44); var _getIterator3 = _interopRequireDefault(_getIterator2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _render = __webpack_require__(205); var _render2 = _interopRequireDefault(_render); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _elementResizeDetector = __webpack_require__(84); var _elementResizeDetector2 = _interopRequireDefault(_elementResizeDetector); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-tabs'; var transitionTime = 300; var getNextTab = function (list, activeKey, direction, countDisabledAlso) { (0, _newArrowCheck3.default)(undefined, undefined); var currentIndex = list.findIndex(function (tab) { (0, _newArrowCheck3.default)(undefined, undefined); return tab.name === activeKey; }.bind(undefined)); var nextIndex = (currentIndex + direction + list.length) % list.length; var nextTab = list[nextIndex]; if (nextTab.disabled) return getNextTab(list, nextTab.name, direction, countDisabledAlso);else return nextTab; }.bind(undefined); var focusFirst = function (element, root) { (0, _newArrowCheck3.default)(undefined, undefined); try { element.focus(); } catch (err) {} if (document.activeElement == element && element !== root) return true; var candidates = element.children; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = (0, _getIterator3.default)(candidates), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var candidate = _step.value; if (focusFirst(candidate, root)) return true; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return false; }.bind(undefined); exports.default = { name: 'Tabs', mixins: [_emitter2.default], components: { Icon: _icon2.default, Render: _render2.default }, provide: function provide() { return { TabsInstance: this }; }, props: { value: { type: [String, Number] }, type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['line', 'card']); }, default: 'line' }, size: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['small', 'default']); }, default: 'default' }, animated: { type: Boolean, default: true }, captureFocus: { type: Boolean, default: false }, closable: { type: Boolean, default: false }, beforeRemove: Function, name: { type: String }, custContentClass: { type: String, default: '' }, custContentStyle: { type: Object } }, data: function data() { return { prefixCls: prefixCls, navList: [], barWidth: 0, barOffset: 0, activeKey: this.value, focusedKey: this.value, showSlot: false, navStyle: { transform: '' }, scrollable: false, transitioning: false }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-card', this.type === 'card'), (0, _defineProperty3.default)(_ref, prefixCls + '-mini', this.size === 'small' && this.type === 'line'), (0, _defineProperty3.default)(_ref, prefixCls + '-no-animation', !this.animated), _ref)]; }, contentClasses: function contentClasses() { return [prefixCls + '-content', (0, _defineProperty3.default)({}, prefixCls + '-content-animated', this.animated), this.custContentClass]; }, barClasses: function barClasses() { return [prefixCls + '-ink-bar', (0, _defineProperty3.default)({}, prefixCls + '-ink-bar-animated', this.animated)]; }, contentStyle: function contentStyle() { var x = this.getTabIndex(this.activeKey); var p = x === 0 ? '0%' : '-' + String(x) + '00%'; var style = {}; if (x > -1) { style = { transform: 'translateX(' + p + ') translateZ(0px)' }; } var custContentStyle = this.custContentStyle; if (custContentStyle) { for (var key in custContentStyle) { style[key] = custContentStyle[key]; } } return style; }, barStyle: function barStyle() { var style = { visibility: 'hidden', width: String(this.barWidth) + 'px' }; if (this.type === 'line') style.visibility = 'visible'; if (this.animated) { style.transform = 'translate3d(' + String(this.barOffset) + 'px, 0px, 0px)'; } else { style.left = String(this.barOffset) + 'px'; } return style; }, arrowType: function arrowType() { var type = 'ios-close'; if (this.$IVIEW) { if (this.$IVIEW.tabs.customCloseIcon) { type = ''; } else if (this.$IVIEW.tabs.closeIcon) { type = this.$IVIEW.tabs.closeIcon; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.tabs.customCloseIcon) { type = this.$IVIEW.tabs.customCloseIcon; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.tabs.closeIconSize) { size = this.$IVIEW.tabs.closeIconSize; } } return size; } }, methods: { getTabs: function getTabs() { var _this = this; var AllTabPanes = (0, _assist.findComponentsDownward)(this, 'TabPane'); var TabPanes = []; AllTabPanes.forEach(function (item) { (0, _newArrowCheck3.default)(this, _this); if (item.tab && this.name) { if (item.tab === this.name) { TabPanes.push(item); } } else if (this.$children.includes(item)) { TabPanes.push(item); } }.bind(this)); TabPanes.sort(function (a, b) { (0, _newArrowCheck3.default)(this, _this); if (a.index && b.index) { return a.index > b.index ? 1 : -1; } }.bind(this)); return TabPanes; }, updateNav: function updateNav() { var _this2 = this; this.navList = []; this.getTabs().forEach(function (pane, index) { (0, _newArrowCheck3.default)(this, _this2); this.navList.push({ labelType: (0, _typeof3.default)(pane.label), label: pane.label, icon: pane.icon || '', name: pane.currentName || index, disabled: pane.disabled, closable: pane.closable }); if (!pane.currentName) pane.currentName = index; if (index === 0) { if (!this.activeKey) this.activeKey = pane.currentName || index; } }.bind(this)); this.updateStatus(); this.updateBar(); }, updateBar: function updateBar() { var _this3 = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this3); var index = this.getTabIndex(this.activeKey); if (!this.$refs.nav) return; var prevTabs = this.$refs.nav.querySelectorAll('.' + prefixCls + '-tab'); var tab = prevTabs[index]; this.barWidth = tab ? parseFloat(tab.offsetWidth) : 0; if (index > 0) { var offset = 0; var gutter = this.size === 'small' ? 0 : 16; for (var i = 0; i < index; i++) { offset += parseFloat(prevTabs[i].offsetWidth) + gutter; } this.barOffset = offset; } else { this.barOffset = 0; } this.updateNavScroll(); }.bind(this)); }, updateStatus: function updateStatus() { var _this4 = this; var tabs = this.getTabs(); tabs.forEach(function (tab) { (0, _newArrowCheck3.default)(this, _this4); return tab.show = tab.currentName === this.activeKey || this.animated; }.bind(this)); }, tabCls: function tabCls(item) { var _ref4; return [prefixCls + '-tab', (_ref4 = {}, (0, _defineProperty3.default)(_ref4, prefixCls + '-tab-disabled', item.disabled), (0, _defineProperty3.default)(_ref4, prefixCls + '-tab-active', item.name === this.activeKey), (0, _defineProperty3.default)(_ref4, prefixCls + '-tab-focused', item.name === this.focusedKey), _ref4)]; }, handleChange: function handleChange(index) { var _this5 = this; if (this.transitioning) return; this.transitioning = true; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this5); return this.transitioning = false; }.bind(this), transitionTime); var nav = this.navList[index]; if (nav.disabled) return; this.activeKey = nav.name; this.$emit('input', nav.name); this.$emit('on-click', nav.name); }, handleTabKeyNavigation: function handleTabKeyNavigation(e) { if (e.keyCode !== 37 && e.keyCode !== 39) return; var direction = e.keyCode === 39 ? 1 : -1; var nextTab = getNextTab(this.navList, this.focusedKey, direction); this.focusedKey = nextTab.name; }, handleTabKeyboardSelect: function handleTabKeyboardSelect() { var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; if (init) return; var focused = this.focusedKey || 0; var index = this.getTabIndex(focused); this.handleChange(index); }, handleRemove: function handleRemove(index) { var _this6 = this; if (!this.beforeRemove) { return this.handleRemoveTab(index); } var before = this.beforeRemove(index); if (before && before.then) { before.then(function () { (0, _newArrowCheck3.default)(this, _this6); this.handleRemoveTab(index); }.bind(this)); } else { this.handleRemoveTab(index); } }, handleRemoveTab: function handleRemoveTab(index) { var _this7 = this; var tabs = this.getTabs(); var tab = tabs[index]; tab.$destroy(); if (tab.currentName === this.activeKey) { var newTabs = this.getTabs(); var activeKey = -1; if (newTabs.length) { var leftNoDisabledTabs = tabs.filter(function (item, itemIndex) { (0, _newArrowCheck3.default)(this, _this7); return !item.disabled && itemIndex < index; }.bind(this)); var rightNoDisabledTabs = tabs.filter(function (item, itemIndex) { (0, _newArrowCheck3.default)(this, _this7); return !item.disabled && itemIndex > index; }.bind(this)); if (rightNoDisabledTabs.length) { activeKey = rightNoDisabledTabs[0].currentName; } else if (leftNoDisabledTabs.length) { activeKey = leftNoDisabledTabs[leftNoDisabledTabs.length - 1].currentName; } else { activeKey = newTabs[0].currentName; } } this.activeKey = activeKey; this.$emit('input', activeKey); } this.$emit('on-tab-remove', tab.currentName); this.updateNav(); }, showClose: function showClose(item) { if (this.type === 'card') { if (item.closable !== null) { return item.closable; } else { return this.closable; } } else { return false; } }, scrollPrev: function scrollPrev() { var containerWidth = this.$refs.navScroll.offsetWidth; var currentOffset = this.getCurrentScrollOffset(); if (!currentOffset) return; var newOffset = currentOffset > containerWidth ? currentOffset - containerWidth : 0; this.setOffset(newOffset); }, scrollNext: function scrollNext() { var navWidth = this.$refs.nav.offsetWidth; var containerWidth = this.$refs.navScroll.offsetWidth; var currentOffset = this.getCurrentScrollOffset(); if (navWidth - currentOffset <= containerWidth) return; var newOffset = navWidth - currentOffset > containerWidth * 2 ? currentOffset + containerWidth : navWidth - containerWidth; this.setOffset(newOffset); }, getCurrentScrollOffset: function getCurrentScrollOffset() { var navStyle = this.navStyle; return navStyle.transform ? Number(navStyle.transform.match(/translateX\(-(\d+(\.\d+)*)px\)/)[1]) : 0; }, getTabIndex: function getTabIndex(name) { var _this8 = this; return this.navList.findIndex(function (nav) { (0, _newArrowCheck3.default)(this, _this8); return nav.name === name; }.bind(this)); }, setOffset: function setOffset(value) { this.navStyle.transform = 'translateX(-' + String(value) + 'px)'; }, scrollToActiveTab: function scrollToActiveTab() { if (!this.scrollable) return; var nav = this.$refs.nav; var activeTab = this.$el.querySelector('.' + prefixCls + '-tab-active'); if (!activeTab) return; var navScroll = this.$refs.navScroll; var activeTabBounding = activeTab.getBoundingClientRect(); var navScrollBounding = navScroll.getBoundingClientRect(); var navBounding = nav.getBoundingClientRect(); var currentOffset = this.getCurrentScrollOffset(); var newOffset = currentOffset; if (navBounding.right < navScrollBounding.right) { newOffset = nav.offsetWidth - navScrollBounding.width; } if (activeTabBounding.left < navScrollBounding.left) { newOffset = currentOffset - (navScrollBounding.left - activeTabBounding.left); } else if (activeTabBounding.right > navScrollBounding.right) { newOffset = currentOffset + activeTabBounding.right - navScrollBounding.right; } if (currentOffset !== newOffset) { this.setOffset(Math.max(newOffset, 0)); } }, updateNavScroll: function updateNavScroll() { var navWidth = this.$refs.nav.offsetWidth; var containerWidth = this.$refs.navScroll.offsetWidth; var currentOffset = this.getCurrentScrollOffset(); if (containerWidth < navWidth) { this.scrollable = true; if (navWidth - currentOffset < containerWidth) { this.setOffset(navWidth - containerWidth); } } else { this.scrollable = false; if (currentOffset > 0) { this.setOffset(0); } } }, handleResize: function handleResize() { this.updateNavScroll(); }, isInsideHiddenElement: function isInsideHiddenElement() { var parentNode = this.$el.parentNode; while (parentNode && parentNode !== document.body) { if (parentNode.style && parentNode.style.display === 'none') { return parentNode; } parentNode = parentNode.parentNode; } return false; }, updateVisibility: function updateVisibility(index) { var _this9 = this; [].concat((0, _toConsumableArray3.default)(this.$refs.panes.querySelectorAll('.' + prefixCls + '-tabpane'))).forEach(function (el, i) { (0, _newArrowCheck3.default)(this, _this9); if (index === i) { [].concat((0, _toConsumableArray3.default)(el.children)).filter(function (child) { (0, _newArrowCheck3.default)(this, _this9); return child.classList.contains(prefixCls + '-tabpane'); }.bind(this)).forEach(function (child) { (0, _newArrowCheck3.default)(this, _this9); return child.style.visibility = 'visible'; }.bind(this)); if (this.captureFocus) setTimeout(function () { (0, _newArrowCheck3.default)(this, _this9); return focusFirst(el, el); }.bind(this), transitionTime); } else { setTimeout(function () { (0, _newArrowCheck3.default)(this, _this9); [].concat((0, _toConsumableArray3.default)(el.children)).filter(function (child) { (0, _newArrowCheck3.default)(this, _this9); return child.classList.contains(prefixCls + '-tabpane'); }.bind(this)).forEach(function (child) { (0, _newArrowCheck3.default)(this, _this9); return child.style.visibility = 'hidden'; }.bind(this)); }.bind(this), transitionTime); } }.bind(this)); } }, watch: { value: function value(val) { this.activeKey = val; this.focusedKey = val; }, activeKey: function activeKey(val) { var _this10 = this; this.focusedKey = val; this.updateBar(); this.updateStatus(); this.broadcast('Table', 'on-visible-change', true); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this10); this.scrollToActiveTab(); }.bind(this)); var nextIndex = Math.max(this.getTabIndex(this.focusedKey), 0); this.updateVisibility(nextIndex); } }, mounted: function mounted() { var _this11 = this; this.showSlot = this.$slots.extra !== undefined; this.observer = (0, _elementResizeDetector2.default)(); this.observer.listenTo(this.$refs.navWrap, this.handleResize); var hiddenParentNode = this.isInsideHiddenElement(); if (hiddenParentNode) { this.mutationObserver = new _assist.MutationObserver(function () { (0, _newArrowCheck3.default)(this, _this11); if (hiddenParentNode.style.display !== 'none') { this.updateBar(); this.mutationObserver.disconnect(); } }.bind(this)); this.mutationObserver.observe(hiddenParentNode, { attributes: true, childList: true, characterData: true, attributeFilter: ['style'] }); } this.handleTabKeyboardSelect(true); this.updateVisibility(this.getTabIndex(this.activeKey)); }, beforeDestroy: function beforeDestroy() { this.observer.removeListener(this.$refs.navWrap, this.handleResize); if (this.mutationObserver) this.mutationObserver.disconnect(); } }; /***/ }), /* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var prefixCls = 'ivu-tabs-tabpane'; exports.default = { name: 'TabPane', inject: ['TabsInstance'], props: { name: { type: String }, label: { type: [String, Function], default: '' }, icon: { type: String }, disabled: { type: Boolean, default: false }, closable: { type: Boolean, default: null }, tab: { type: String }, index: { type: Number } }, data: function data() { return { prefixCls: prefixCls, show: true, currentName: this.name }; }, computed: { contentStyle: function contentStyle() { return { visibility: this.TabsInstance.activeKey !== this.currentName ? 'hidden' : 'visible' }; } }, methods: { updateNav: function updateNav() { this.TabsInstance.updateNav(); } }, watch: { name: function name(val) { this.currentName = val; this.updateNav(); }, label: function label() { this.updateNav(); }, icon: function icon() { this.updateNav(); }, disabled: function disabled() { this.updateNav(); } }, mounted: function mounted() { this.updateNav(); }, destroyed: function destroyed() { this.updateNav(); } }; /***/ }), /* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-tag'; var initColorList = ['default', 'primary', 'success', 'warning', 'error', 'blue', 'green', 'red', 'yellow', 'pink', 'magenta', 'volcano', 'orange', 'gold', 'lime', 'cyan', 'geekblue', 'purple']; var colorList = ['pink', 'magenta', 'volcano', 'orange', 'gold', 'lime', 'cyan', 'geekblue', 'purple']; exports.default = { name: 'Tag', components: { Icon: _icon2.default }, props: { closable: { type: Boolean, default: false }, checkable: { type: Boolean, default: false }, checked: { type: Boolean, default: true }, color: { type: String, default: 'default' }, type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['border', 'dot']); } }, name: { type: [String, Number] }, fade: { type: Boolean, default: true } }, data: function data() { return { isChecked: this.checked }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.color), !!this.color && (0, _assist.oneOf)(this.color, initColorList)), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type), !!this.type), (0, _defineProperty3.default)(_ref, prefixCls + '-closable', this.closable), (0, _defineProperty3.default)(_ref, prefixCls + '-checked', this.isChecked), _ref)]; }, wraperStyles: function wraperStyles() { return (0, _assist.oneOf)(this.color, initColorList) ? {} : { background: this.isChecked ? this.defaultTypeColor : 'transparent', borderWidth: '1px', borderStyle: 'solid', borderColor: this.type !== 'dot' && this.type !== 'border' && this.isChecked ? this.borderColor : this.lineColor, color: this.lineColor }; }, textClasses: function textClasses() { return [prefixCls + '-text', this.type === 'border' ? (0, _assist.oneOf)(this.color, initColorList) ? prefixCls + '-color-' + String(this.color) : '' : '', this.type !== 'dot' && this.type !== 'border' && this.color !== 'default' ? this.isChecked && colorList.indexOf(this.color) < 0 ? prefixCls + '-color-white' : '' : '']; }, dotClasses: function dotClasses() { return prefixCls + '-dot-inner'; }, iconClass: function iconClass() { if (this.type === 'dot') { return ''; } else if (this.type === 'border') { return (0, _assist.oneOf)(this.color, initColorList) ? prefixCls + '-color-' + String(this.color) : ''; } else { return this.color !== undefined ? this.color === 'default' ? '' : 'rgb(255, 255, 255)' : ''; } }, showDot: function showDot() { return !!this.type && this.type === 'dot'; }, lineColor: function lineColor() { if (this.type === 'dot') { return ''; } else if (this.type === 'border') { return this.color !== undefined ? (0, _assist.oneOf)(this.color, initColorList) ? '' : this.color : ''; } else { return this.color !== undefined ? this.color === 'default' ? '' : 'rgb(255, 255, 255)' : ''; } }, borderColor: function borderColor() { return this.color !== undefined ? this.color === 'default' ? '' : this.color : ''; }, dotColor: function dotColor() { return this.color !== undefined ? (0, _assist.oneOf)(this.color, initColorList) ? '' : this.color : ''; }, textColorStyle: function textColorStyle() { return (0, _assist.oneOf)(this.color, initColorList) ? {} : this.type !== 'dot' && this.type !== 'border' ? this.isChecked ? { color: this.lineColor } : {} : { color: this.lineColor }; }, bgColorStyle: function bgColorStyle() { return (0, _assist.oneOf)(this.color, initColorList) ? {} : { background: this.dotColor }; }, defaultTypeColor: function defaultTypeColor() { return this.type !== 'dot' && this.type !== 'border' ? this.color !== undefined ? (0, _assist.oneOf)(this.color, initColorList) ? '' : this.color : '' : ''; } }, methods: { close: function close(event) { if (this.name === undefined) { this.$emit('on-close', event); } else { this.$emit('on-close', event, this.name); } }, check: function check() { if (!this.checkable) return; var checked = !this.isChecked; this.isChecked = checked; if (this.name === undefined) { this.$emit('on-change', checked); } else { this.$emit('on-change', checked, this.name); } } }, watch: { checked: function checked(val) { this.isChecked = val; } } }; /***/ }), /* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); var _assist = __webpack_require__(3); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _time = __webpack_require__(589); var _time2 = _interopRequireDefault(_time); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; var prefixCls = 'ivu-time'; exports.default = { name: 'Time', mixins: [_locale2.default], props: { time: { type: [Number, Date, String], required: true }, type: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['relative', 'date', 'datetime']); }, default: 'relative' }, hash: { type: String, default: '' }, interval: { type: Number, default: 60 } }, data: function data() { return { date: '' }; }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-with-hash', this.hash)]; } }, methods: { handleClick: function handleClick() { if (this.hash !== '') window.location.hash = this.hash; }, setTime: function setTime() { var type = (0, _typeof3.default)(this.time); var time = void 0; if (type === 'number') { var timestamp = this.time.toString().length > 10 ? this.time : this.time * 1000; time = new Date(timestamp).getTime(); } else if (type === 'object') { time = this.time.getTime(); } else if (type === 'string') { time = new Date(this.time).getTime(); } if (this.type === 'relative') { this.date = (0, _time2.default)(time, this.t); } else { var date = new Date(this.time); var year = date.getFullYear(); var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1; var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours(); var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes(); var second = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(); if (this.type === 'datetime') { this.date = String(year) + '-' + String(month) + '-' + String(day) + ' ' + String(hour) + ':' + String(minute) + ':' + String(second); } else if (this.type === 'date') { this.date = String(year) + '-' + String(month) + '-' + String(day); } } } }, mounted: function mounted() { var _this = this; this.setTime(); if (isServer) return; this.timer = setInterval(function () { (0, _newArrowCheck3.default)(this, _this); this.setTime(); }.bind(this), 1000 * this.interval); }, beforeDestroy: function beforeDestroy() { if (this.timer) clearInterval(this.timer); } }; /***/ }), /* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-timeline'; exports.default = { name: 'Timeline', props: { pending: { type: Boolean, default: false } }, computed: { classes: function classes() { return ['' + prefixCls, (0, _defineProperty3.default)({}, prefixCls + '-pending', this.pending)]; } } }; /***/ }), /* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-timeline'; exports.default = { name: 'TimelineItem', props: { color: { type: String, default: 'blue' } }, data: function data() { return { dot: false }; }, mounted: function mounted() { this.dot = this.$refs.dot.innerHTML.length ? true : false; }, computed: { itemClasses: function itemClasses() { return prefixCls + '-item'; }, tailClasses: function tailClasses() { return prefixCls + '-item-tail'; }, headClasses: function headClasses() { var _ref; return [prefixCls + '-item-head', (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-item-head-custom', this.dot), (0, _defineProperty3.default)(_ref, prefixCls + '-item-head-' + String(this.color), this.headColorShow), _ref)]; }, headColorShow: function headColorShow() { return this.color == 'blue' || this.color == 'red' || this.color == 'green'; }, customColor: function customColor() { var style = {}; if (this.color) { if (!this.headColorShow) { style = { 'color': this.color, 'border-color': this.color }; } } return style; }, contentClasses: function contentClasses() { return prefixCls + '-item-content'; } } }; /***/ }), /* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = __webpack_require__(16); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _list = __webpack_require__(601); var _list2 = _interopRequireDefault(_list); var _operation = __webpack_require__(605); var _operation2 = _interopRequireDefault(_operation); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-transfer'; exports.default = { name: 'Transfer', mixins: [_emitter2.default, _locale2.default], render: function render(h) { var _this2 = this; function cloneVNode(vnode) { var _this = this; var clonedChildren = vnode.children && vnode.children.map(function (vnode) { (0, _newArrowCheck3.default)(this, _this); return cloneVNode(vnode); }.bind(this)); var cloned = h(vnode.tag, vnode.data, clonedChildren); cloned.text = vnode.text; cloned.isComment = vnode.isComment; cloned.componentOptions = vnode.componentOptions; cloned.elm = vnode.elm; cloned.context = vnode.context; cloned.ns = vnode.ns; cloned.isStatic = vnode.isStatic; cloned.key = vnode.key; return cloned; } var vNodes = this.$slots.default === undefined ? [] : this.$slots.default; var clonedVNodes = this.$slots.default === undefined ? [] : vNodes.map(function (vnode) { (0, _newArrowCheck3.default)(this, _this2); return cloneVNode(vnode); }.bind(this)); return h('div', { 'class': this.classes }, [h(_list2.default, { ref: 'left', props: { prefixCls: this.prefixCls + '-list', data: this.leftData, renderFormat: this.renderFormat, checkedKeys: this.leftCheckedKeys, validKeysCount: this.leftValidKeysCount, listStyle: this.listStyle, title: this.localeTitles[0], filterable: this.filterable, filterPlaceholder: this.localeFilterPlaceholder, filterMethod: this.filterMethod, notFoundText: this.localeNotFoundText }, on: { 'on-checked-keys-change': this.handleLeftCheckedKeysChange } }, vNodes), h(_operation2.default, { props: { prefixCls: this.prefixCls, operations: this.operations, leftActive: this.leftValidKeysCount > 0, rightActive: this.rightValidKeysCount > 0 } }), h(_list2.default, { ref: 'right', props: { prefixCls: this.prefixCls + '-list', data: this.rightData, renderFormat: this.renderFormat, checkedKeys: this.rightCheckedKeys, validKeysCount: this.rightValidKeysCount, listStyle: this.listStyle, title: this.localeTitles[1], filterable: this.filterable, filterPlaceholder: this.localeFilterPlaceholder, filterMethod: this.filterMethod, notFoundText: this.localeNotFoundText }, on: { 'on-checked-keys-change': this.handleRightCheckedKeysChange } }, clonedVNodes)]); }, props: { data: { type: Array, default: function _default() { return []; } }, renderFormat: { type: Function, default: function _default(item) { return item.label || item.key; } }, targetKeys: { type: Array, default: function _default() { return []; } }, selectedKeys: { type: Array, default: function _default() { return []; } }, listStyle: { type: Object, default: function _default() { return {}; } }, titles: { type: Array }, operations: { type: Array, default: function _default() { return []; } }, filterable: { type: Boolean, default: false }, filterPlaceholder: { type: String }, filterMethod: { type: Function, default: function _default(data, query) { var type = 'label' in data ? 'label' : 'key'; return data[type].indexOf(query) > -1; } }, notFoundText: { type: String } }, data: function data() { return { prefixCls: prefixCls, leftData: [], rightData: [], leftCheckedKeys: [], rightCheckedKeys: [] }; }, computed: { classes: function classes() { return ['' + prefixCls]; }, leftValidKeysCount: function leftValidKeysCount() { return this.getValidKeys('left').length; }, rightValidKeysCount: function rightValidKeysCount() { return this.getValidKeys('right').length; }, localeFilterPlaceholder: function localeFilterPlaceholder() { if (this.filterPlaceholder === undefined) { return this.t('i.transfer.filterPlaceholder'); } else { return this.filterPlaceholder; } }, localeNotFoundText: function localeNotFoundText() { if (this.notFoundText === undefined) { return this.t('i.transfer.notFoundText'); } else { return this.notFoundText; } }, localeTitles: function localeTitles() { if (this.titles === undefined) { return [this.t('i.transfer.titles.source'), this.t('i.transfer.titles.target')]; } else { return this.titles; } } }, methods: { getValidKeys: function getValidKeys(direction) { var _this3 = this; return this[String(direction) + 'Data'].filter(function (data) { (0, _newArrowCheck3.default)(this, _this3); return !data.disabled && this[String(direction) + 'CheckedKeys'].indexOf(data.key) > -1; }.bind(this)).map(function (data) { (0, _newArrowCheck3.default)(this, _this3); return data.key; }.bind(this)); }, splitData: function splitData() { var _this4 = this; var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; this.leftData = [].concat((0, _toConsumableArray3.default)(this.data)); this.rightData = []; if (this.targetKeys.length > 0) { this.targetKeys.forEach(function (targetKey) { (0, _newArrowCheck3.default)(this, _this4); var filteredData = this.leftData.filter(function (data, index) { (0, _newArrowCheck3.default)(this, _this4); if (data.key === targetKey) { this.leftData.splice(index, 1); return true; } return false; }.bind(this)); if (filteredData && filteredData.length > 0) this.rightData.push(filteredData[0]); }.bind(this)); } if (init) { this.splitSelectedKey(); } }, splitSelectedKey: function splitSelectedKey() { var _this5 = this; var selectedKeys = this.selectedKeys; if (selectedKeys.length > 0) { this.leftCheckedKeys = this.leftData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this5); return selectedKeys.indexOf(data.key) > -1; }.bind(this)).map(function (data) { (0, _newArrowCheck3.default)(this, _this5); return data.key; }.bind(this)); this.rightCheckedKeys = this.rightData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this5); return selectedKeys.indexOf(data.key) > -1; }.bind(this)).map(function (data) { (0, _newArrowCheck3.default)(this, _this5); return data.key; }.bind(this)); } }, moveTo: function moveTo(direction) { var _this6 = this; var targetKeys = this.targetKeys; var opposite = direction === 'left' ? 'right' : 'left'; var moveKeys = this.getValidKeys(opposite); var newTargetKeys = direction === 'right' ? moveKeys.concat(targetKeys) : targetKeys.filter(function (targetKey) { (0, _newArrowCheck3.default)(this, _this6); return !moveKeys.some(function (checkedKey) { (0, _newArrowCheck3.default)(this, _this6); return targetKey === checkedKey; }.bind(this)); }.bind(this)); this.$refs[opposite].toggleSelectAll(false); this.$emit('on-change', newTargetKeys, direction, moveKeys); this.dispatch('FormItem', 'on-form-change', { tarketKeys: newTargetKeys, direction: direction, moveKeys: moveKeys }); }, handleLeftCheckedKeysChange: function handleLeftCheckedKeysChange(keys) { this.leftCheckedKeys = keys; this.handleCheckedKeys(); }, handleRightCheckedKeysChange: function handleRightCheckedKeysChange(keys) { this.rightCheckedKeys = keys; this.handleCheckedKeys(); }, handleCheckedKeys: function handleCheckedKeys() { var sourceSelectedKeys = this.getValidKeys('left'); var targetSelectedKeys = this.getValidKeys('right'); this.$emit('on-selected-change', sourceSelectedKeys, targetSelectedKeys); } }, watch: { targetKeys: function targetKeys() { this.splitData(false); }, data: function data() { this.splitData(false); } }, mounted: function mounted() { this.splitData(true); } }; /***/ }), /* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _search = __webpack_require__(602); var _search2 = _interopRequireDefault(_search); var _checkbox = __webpack_require__(46); var _checkbox2 = _interopRequireDefault(_checkbox); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TransferList', components: { Search: _search2.default, Checkbox: _checkbox2.default }, props: { prefixCls: String, data: Array, renderFormat: Function, checkedKeys: Array, listStyle: Object, title: [String, Number], filterable: Boolean, filterPlaceholder: String, filterMethod: Function, notFoundText: String, validKeysCount: Number }, data: function data() { return { showItems: [], query: '', showFooter: true }; }, watch: { data: function data() { this.updateFilteredData(); } }, computed: { classes: function classes() { return ['' + String(this.prefixCls), (0, _defineProperty3.default)({}, String(this.prefixCls) + '-with-footer', this.showFooter)]; }, bodyClasses: function bodyClasses() { var _ref2; return [String(this.prefixCls) + '-body', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, String(this.prefixCls) + '-body-with-search', this.filterable), (0, _defineProperty3.default)(_ref2, String(this.prefixCls) + '-body-with-footer', this.showFooter), _ref2)]; }, count: function count() { var validKeysCount = this.validKeysCount; return (validKeysCount > 0 ? String(validKeysCount) + '/' : '') + ('' + String(this.data.length)); }, checkedAll: function checkedAll() { var _this = this; return this.filterData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this); return !data.disabled; }.bind(this)).length === this.validKeysCount && this.validKeysCount !== 0; }, checkedAllDisabled: function checkedAllDisabled() { var _this2 = this; return this.filterData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this2); return !data.disabled; }.bind(this)).length <= 0; }, filterData: function filterData() { var _this3 = this; return this.showItems.filter(function (item) { (0, _newArrowCheck3.default)(this, _this3); return this.filterMethod(item, this.query); }.bind(this)); } }, methods: { itemClasses: function itemClasses(item) { return [String(this.prefixCls) + '-content-item', (0, _defineProperty3.default)({}, String(this.prefixCls) + '-content-item-disabled', item.disabled)]; }, showLabel: function showLabel(item) { return this.renderFormat(item); }, isCheck: function isCheck(item) { var _this4 = this; return this.checkedKeys.some(function (key) { (0, _newArrowCheck3.default)(this, _this4); return key === item.key; }.bind(this)); }, select: function select(item) { if (item.disabled) return; var index = this.checkedKeys.indexOf(item.key); index > -1 ? this.checkedKeys.splice(index, 1) : this.checkedKeys.push(item.key); this.$parent.handleCheckedKeys(); }, updateFilteredData: function updateFilteredData() { this.showItems = this.data; }, toggleSelectAll: function toggleSelectAll(status) { var _this5 = this; var keys = status ? this.filterData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this5); return !data.disabled || this.checkedKeys.indexOf(data.key) > -1; }.bind(this)).map(function (data) { (0, _newArrowCheck3.default)(this, _this5); return data.key; }.bind(this)) : this.filterData.filter(function (data) { (0, _newArrowCheck3.default)(this, _this5); return data.disabled && this.checkedKeys.indexOf(data.key) > -1; }.bind(this)).map(function (data) { (0, _newArrowCheck3.default)(this, _this5); return data.key; }.bind(this)); this.$emit('on-checked-keys-change', keys); }, handleQueryClear: function handleQueryClear() { this.query = ''; }, handleQueryChange: function handleQueryChange(val) { this.query = val; } }, created: function created() { this.updateFilteredData(); }, mounted: function mounted() { this.showFooter = this.$slots.default !== undefined; } }; /***/ }), /* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Search', components: { iInput: _input2.default }, props: { prefixCls: String, placeholder: String, query: String }, data: function data() { return { currentQuery: this.query }; }, watch: { query: function query(val) { this.currentQuery = val; }, currentQuery: function currentQuery(val) { this.$emit('on-query-change', val); } }, computed: { icon: function icon() { return this.query === '' ? 'ios-search' : 'ios-close-circle'; } }, methods: { handleClick: function handleClick() { if (this.currentQuery === '') return; this.currentQuery = ''; this.$emit('on-query-clear'); } } }; /***/ }), /* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'Operation', components: { iButton: _button2.default, Icon: _icon2.default }, props: { prefixCls: String, operations: Array, leftActive: Boolean, rightActive: Boolean }, methods: { moveToLeft: function moveToLeft() { this.$parent.moveTo('left'); }, moveToRight: function moveToRight() { this.$parent.moveTo('right'); } } }; /***/ }), /* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _node = __webpack_require__(609); var _node2 = _interopRequireDefault(_node); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-tree'; exports.default = { name: 'Tree', mixins: [_emitter2.default, _locale2.default], components: { TreeNode: _node2.default }, provide: function provide() { return { TreeInstance: this }; }, props: { data: { type: Array, default: function _default() { return []; } }, multiple: { type: Boolean, default: false }, showCheckbox: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, checkDirectly: { type: Boolean, default: false }, emptyText: { type: String }, childrenKey: { type: String, default: 'children' }, loadData: { type: Function }, render: { type: Function } }, data: function data() { return { prefixCls: prefixCls, stateTree: this.data, flatState: [] }; }, watch: { data: { deep: true, handler: function handler() { this.stateTree = this.data; this.flatState = this.compileFlatState(); this.rebuildTree(); } } }, computed: { localeEmptyText: function localeEmptyText() { if (typeof this.emptyText === 'undefined') { return this.t('i.tree.emptyText'); } else { return this.emptyText; } } }, methods: { compileFlatState: function compileFlatState() { var _this2 = this; var keyCounter = 0; var childrenKey = this.childrenKey; var flatTree = []; function flattenChildren(node, parent) { var _this = this; node.nodeKey = keyCounter++; flatTree[node.nodeKey] = { node: node, nodeKey: node.nodeKey }; if (typeof parent != 'undefined') { flatTree[node.nodeKey].parent = parent.nodeKey; flatTree[parent.nodeKey][childrenKey].push(node.nodeKey); } if (node[childrenKey]) { flatTree[node.nodeKey][childrenKey] = []; node[childrenKey].forEach(function (child) { (0, _newArrowCheck3.default)(this, _this); return flattenChildren(child, node); }.bind(this)); } } this.stateTree.forEach(function (rootNode) { (0, _newArrowCheck3.default)(this, _this2); flattenChildren(rootNode); }.bind(this)); return flatTree; }, updateTreeUp: function updateTreeUp(nodeKey) { var _this3 = this; var parentKey = this.flatState[nodeKey].parent; if (typeof parentKey == 'undefined' || this.checkStrictly) return; var node = this.flatState[nodeKey].node; var parent = this.flatState[parentKey].node; if (node.checked == parent.checked && node.indeterminate == parent.indeterminate) return; if (node.checked == true) { this.$set(parent, 'checked', parent[this.childrenKey].every(function (node) { (0, _newArrowCheck3.default)(this, _this3); return node.checked || node.disabled !== undefined; }.bind(this))); this.$set(parent, 'indeterminate', !parent.checked); } else { this.$set(parent, 'checked', false); this.$set(parent, 'indeterminate', parent[this.childrenKey].some(function (node) { (0, _newArrowCheck3.default)(this, _this3); return node.checked || node.indeterminate; }.bind(this))); } this.updateTreeUp(parentKey); }, rebuildTree: function rebuildTree() { var _this4 = this; var checkedNodes = this.getCheckedNodes(); checkedNodes.forEach(function (node) { (0, _newArrowCheck3.default)(this, _this4); this.updateTreeDown(node, { checked: true }); var parentKey = this.flatState[node.nodeKey].parent; if (!parentKey && parentKey !== 0) return; var parent = this.flatState[parentKey].node; var childHasCheckSetter = typeof node.checked != 'undefined' && node.checked; if (childHasCheckSetter && parent.checked != node.checked) { this.updateTreeUp(node.nodeKey); } }.bind(this)); }, getSelectedNodes: function getSelectedNodes() { var _this5 = this; return this.flatState.filter(function (obj) { (0, _newArrowCheck3.default)(this, _this5); return obj.node.selected; }.bind(this)).map(function (obj) { (0, _newArrowCheck3.default)(this, _this5); return obj.node; }.bind(this)); }, getCheckedNodes: function getCheckedNodes() { var _this6 = this; return this.flatState.filter(function (obj) { (0, _newArrowCheck3.default)(this, _this6); return obj.node.checked; }.bind(this)).map(function (obj) { (0, _newArrowCheck3.default)(this, _this6); return obj.node; }.bind(this)); }, getCheckedAndIndeterminateNodes: function getCheckedAndIndeterminateNodes() { var _this7 = this; return this.flatState.filter(function (obj) { (0, _newArrowCheck3.default)(this, _this7); return obj.node.checked || obj.node.indeterminate; }.bind(this)).map(function (obj) { (0, _newArrowCheck3.default)(this, _this7); return obj.node; }.bind(this)); }, updateTreeDown: function updateTreeDown(node) { var _this8 = this; var changes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (this.checkStrictly) return; for (var key in changes) { if (key === 'checked' && node.disabled) { this.$set(node, key, node.checked); } else { this.$set(node, key, changes[key]); } } if (node[this.childrenKey]) { node[this.childrenKey].forEach(function (child) { (0, _newArrowCheck3.default)(this, _this8); this.updateTreeDown(child, changes); }.bind(this)); } }, handleSelect: function handleSelect(nodeKey) { var _this9 = this; var node = this.flatState[nodeKey].node; if (!this.multiple) { var currentSelectedKey = this.flatState.findIndex(function (obj) { (0, _newArrowCheck3.default)(this, _this9); return obj.node.selected; }.bind(this)); if (currentSelectedKey >= 0 && currentSelectedKey !== nodeKey) this.$set(this.flatState[currentSelectedKey].node, 'selected', false); } this.$set(node, 'selected', !node.selected); this.$emit('on-select-change', this.getSelectedNodes(), node); }, handleCheck: function handleCheck(_ref) { var checked = _ref.checked, nodeKey = _ref.nodeKey; var node = this.flatState[nodeKey].node; this.$set(node, 'checked', checked); this.$set(node, 'indeterminate', false); this.updateTreeUp(nodeKey); this.updateTreeDown(node, { checked: checked, indeterminate: false }); this.$emit('on-check-change', this.getCheckedNodes(), node); } }, created: function created() { this.flatState = this.compileFlatState(); this.rebuildTree(); }, mounted: function mounted() { var _this10 = this; this.$on('on-check', this.handleCheck); this.$on('on-selected', this.handleSelect); this.$on('toggle-expand', function (node) { (0, _newArrowCheck3.default)(this, _this10); return this.$emit('on-toggle-expand', node); }.bind(this)); } }; /***/ }), /* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _checkbox = __webpack_require__(46); var _checkbox2 = _interopRequireDefault(_checkbox); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _render = __webpack_require__(610); var _render2 = _interopRequireDefault(_render); var _collapseTransition = __webpack_require__(75); var _collapseTransition2 = _interopRequireDefault(_collapseTransition); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-tree'; exports.default = { name: 'TreeNode', mixins: [_emitter2.default], inject: ['TreeInstance'], components: { Checkbox: _checkbox2.default, Icon: _icon2.default, CollapseTransition: _collapseTransition2.default, Render: _render2.default }, props: { data: { type: Object, default: function _default() { return {}; } }, multiple: { type: Boolean, default: false }, childrenKey: { type: String, default: 'children' }, showCheckbox: { type: Boolean, default: false }, appear: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls, appearByClickArrow: false, loadingChildrenState: true }; }, computed: { classes: function classes() { return [prefixCls + '-children']; }, selectedCls: function selectedCls() { return [(0, _defineProperty3.default)({}, prefixCls + '-node-selected', this.data.selected)]; }, arrowClasses: function arrowClasses() { var _ref2; return [prefixCls + '-arrow', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-arrow-disabled', this.data.disabled), (0, _defineProperty3.default)(_ref2, prefixCls + '-arrow-open', this.data.expand), _ref2)]; }, titleClasses: function titleClasses() { return [prefixCls + '-title', (0, _defineProperty3.default)({}, prefixCls + '-title-selected', this.data.selected)]; }, showArrow: function showArrow() { return this.data[this.childrenKey] && this.data[this.childrenKey].length || 'loading' in this.data && !this.data.loading && this.loadingChildrenState; }, showLoading: function showLoading() { return 'loading' in this.data && this.data.loading; }, isParentRender: function isParentRender() { var Tree = (0, _assist.findComponentUpward)(this, 'Tree'); return Tree && Tree.render; }, parentRender: function parentRender() { var Tree = (0, _assist.findComponentUpward)(this, 'Tree'); if (Tree && Tree.render) { return Tree.render; } else { return null; } }, node: function node() { var _this = this; var Tree = (0, _assist.findComponentUpward)(this, 'Tree'); if (Tree) { return [Tree.flatState, Tree.flatState.find(function (item) { (0, _newArrowCheck3.default)(this, _this); return item.nodeKey === this.data.nodeKey; }.bind(this))]; } else { return []; } }, children: function children() { return this.data[this.childrenKey]; }, arrowType: function arrowType() { var type = 'ios-arrow-forward'; if (this.$IVIEW) { if (this.$IVIEW.tree.customArrow) { type = ''; } else if (this.$IVIEW.tree.arrow) { type = this.$IVIEW.tree.arrow; } } return type; }, customArrowType: function customArrowType() { var type = ''; if (this.$IVIEW) { if (this.$IVIEW.tree.customArrow) { type = this.$IVIEW.tree.customArrow; } } return type; }, arrowSize: function arrowSize() { var size = ''; if (this.$IVIEW) { if (this.$IVIEW.tree.arrowSize) { size = this.$IVIEW.tree.arrowSize; } } return size; } }, methods: { handleExpand: function handleExpand() { var _this2 = this; var item = this.data; if (item.disabled) return; this.appearByClickArrow = true; if (item[this.childrenKey].length === 0) { var tree = (0, _assist.findComponentUpward)(this, 'Tree'); if (tree && tree.loadData) { this.$set(this.data, 'loading', true); tree.loadData(item, function (children) { (0, _newArrowCheck3.default)(this, _this2); this.$set(this.data, 'loading', false); if (children.length) { this.$set(this.data, this.childrenKey, children); this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this2); return this.handleExpand(); }.bind(this)); } else { this.loadingChildrenState = false; } }.bind(this)); return; } } if (item[this.childrenKey] && item[this.childrenKey].length) { this.$set(this.data, 'expand', !this.data.expand); this.dispatch('Tree', 'toggle-expand', this.data); } }, handleSelect: function handleSelect() { if (this.data.disabled) return; if (this.TreeInstance.showCheckbox && this.TreeInstance.checkDirectly) { this.handleCheck(); } else { this.dispatch('Tree', 'on-selected', this.data.nodeKey); } }, handleCheck: function handleCheck() { if (this.data.disabled) return; var changes = { checked: !this.data.checked && !this.data.indeterminate, nodeKey: this.data.nodeKey }; this.dispatch('Tree', 'on-check', changes); } } }; /***/ }), /* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _uploadList = __webpack_require__(615); var _uploadList2 = _interopRequireDefault(_uploadList); var _ajax = __webpack_require__(617); var _ajax2 = _interopRequireDefault(_ajax); var _assist = __webpack_require__(3); var _emitter = __webpack_require__(4); var _emitter2 = _interopRequireDefault(_emitter); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-upload'; exports.default = { name: 'Upload', mixins: [_emitter2.default], components: { UploadList: _uploadList2.default }, props: { action: { type: String, required: true }, headers: { type: Object, default: function _default() { return {}; } }, multiple: { type: Boolean, default: false }, data: { type: Object }, name: { type: String, default: 'file' }, withCredentials: { type: Boolean, default: false }, showUploadList: { type: Boolean, default: true }, type: { type: String, validator: function validator(value) { return (0, _assist.oneOf)(value, ['select', 'drag']); }, default: 'select' }, format: { type: Array, default: function _default() { return []; } }, accept: { type: String }, maxSize: { type: Number }, beforeUpload: Function, onProgress: { type: Function, default: function _default() { return {}; } }, onSuccess: { type: Function, default: function _default() { return {}; } }, onError: { type: Function, default: function _default() { return {}; } }, onRemove: { type: Function, default: function _default() { return {}; } }, onPreview: { type: Function, default: function _default() { return {}; } }, onExceededSize: { type: Function, default: function _default() { return {}; } }, onFormatError: { type: Function, default: function _default() { return {}; } }, defaultFileList: { type: Array, default: function _default() { return []; } }, paste: { type: Boolean, default: false }, disabled: { type: Boolean, default: false } }, data: function data() { return { prefixCls: prefixCls, dragOver: false, fileList: [], tempIndex: 1 }; }, computed: { classes: function classes() { var _ref; return ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-select', this.type === 'select'), (0, _defineProperty3.default)(_ref, prefixCls + '-drag', this.type === 'drag'), (0, _defineProperty3.default)(_ref, prefixCls + '-dragOver', this.type === 'drag' && this.dragOver), _ref)]; } }, methods: { handleClick: function handleClick() { if (this.disabled) return; this.$refs.input.click(); }, handleChange: function handleChange(e) { var files = e.target.files; if (!files) { return; } this.uploadFiles(files); this.$refs.input.value = null; }, onDrop: function onDrop(e) { this.dragOver = false; if (this.disabled) return; this.uploadFiles(e.dataTransfer.files); }, handlePaste: function handlePaste(e) { if (this.disabled) return; if (this.paste) { this.uploadFiles(e.clipboardData.files); } }, uploadFiles: function uploadFiles(files) { var _this = this; var postFiles = Array.prototype.slice.call(files); if (!this.multiple) postFiles = postFiles.slice(0, 1); if (postFiles.length === 0) return; postFiles.forEach(function (file) { (0, _newArrowCheck3.default)(this, _this); this.upload(file); }.bind(this)); }, upload: function upload(file) { var _this2 = this; if (!this.beforeUpload) { return this.post(file); } var before = this.beforeUpload(file); if (before && before.then) { before.then(function (processedFile) { (0, _newArrowCheck3.default)(this, _this2); if (Object.prototype.toString.call(processedFile) === '[object File]') { this.post(processedFile); } else { this.post(file); } }.bind(this), function () { (0, _newArrowCheck3.default)(this, _this2); }.bind(this)); } else if (before !== false) { this.post(file); } else {} }, post: function post(file) { var _this3 = this; if (this.format.length) { var _file_format = file.name.split('.').pop().toLocaleLowerCase(); var checked = this.format.some(function (item) { (0, _newArrowCheck3.default)(this, _this3); return item.toLocaleLowerCase() === _file_format; }.bind(this)); if (!checked) { this.onFormatError(file, this.fileList); return false; } } if (this.maxSize) { if (file.size > this.maxSize * 1024) { this.onExceededSize(file, this.fileList); return false; } } this.handleStart(file); var formData = new FormData(); formData.append(this.name, file); (0, _ajax2.default)({ headers: this.headers, withCredentials: this.withCredentials, file: file, data: this.data, filename: this.name, action: this.action, onProgress: function onProgress(e) { (0, _newArrowCheck3.default)(this, _this3); this.handleProgress(e, file); }.bind(this), onSuccess: function onSuccess(res) { (0, _newArrowCheck3.default)(this, _this3); this.handleSuccess(res, file); }.bind(this), onError: function onError(err, response) { (0, _newArrowCheck3.default)(this, _this3); this.handleError(err, response, file); }.bind(this) }); }, handleStart: function handleStart(file) { file.uid = Date.now() + this.tempIndex++; var _file = { status: 'uploading', name: file.name, size: file.size, percentage: 0, uid: file.uid, showProgress: true }; this.fileList.push(_file); }, getFile: function getFile(file) { var _this4 = this; var fileList = this.fileList; var target = void 0; fileList.every(function (item) { (0, _newArrowCheck3.default)(this, _this4); target = file.uid === item.uid ? item : null; return !target; }.bind(this)); return target; }, handleProgress: function handleProgress(e, file) { var _file = this.getFile(file); this.onProgress(e, _file, this.fileList); _file.percentage = e.percent || 0; }, handleSuccess: function handleSuccess(res, file) { var _this5 = this; var _file = this.getFile(file); if (_file) { _file.status = 'finished'; _file.response = res; this.onSuccess(res, _file, this.fileList); this.dispatch('FormItem', 'on-form-change', _file); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this5); _file.showProgress = false; }.bind(this), 1000); } }, handleError: function handleError(err, response, file) { var _file = this.getFile(file); var fileList = this.fileList; _file.status = 'fail'; fileList.splice(fileList.indexOf(_file), 1); this.onError(err, response, file); }, handleRemove: function handleRemove(file) { var fileList = this.fileList; fileList.splice(fileList.indexOf(file), 1); this.onRemove(file, fileList); }, handlePreview: function handlePreview(file) { if (file.status === 'finished') { this.onPreview(file); } }, clearFiles: function clearFiles() { this.fileList = []; } }, watch: { defaultFileList: { immediate: true, handler: function handler(fileList) { var _this6 = this; this.fileList = fileList.map(function (item) { (0, _newArrowCheck3.default)(this, _this6); item.status = 'finished'; item.percentage = 100; item.uid = Date.now() + this.tempIndex++; return item; }.bind(this)); } } } }; /***/ }), /* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _icon = __webpack_require__(8); var _icon2 = _interopRequireDefault(_icon); var _progress = __webpack_require__(212); var _progress2 = _interopRequireDefault(_progress); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-upload'; exports.default = { name: 'UploadList', components: { Icon: _icon2.default, iProgress: _progress2.default }, props: { files: { type: Array, default: function _default() { return []; } } }, data: function data() { return { prefixCls: prefixCls }; }, methods: { fileCls: function fileCls(file) { return [prefixCls + '-list-file', (0, _defineProperty3.default)({}, prefixCls + '-list-file-finish', file.status === 'finished')]; }, handleClick: function handleClick(file) { this.$emit('on-file-click', file); }, handlePreview: function handlePreview(file) { this.$emit('on-file-preview', file); }, handleRemove: function handleRemove(file) { this.$emit('on-file-remove', file); }, format: function format(file) { var format = file.name.split('.').pop().toLocaleLowerCase() || ''; var type = 'ios-document-outline'; if (['gif', 'jpg', 'jpeg', 'png', 'bmp', 'webp'].indexOf(format) > -1) { type = 'ios-image'; } if (['mp4', 'm3u8', 'rmvb', 'avi', 'swf', '3gp', 'mkv', 'flv'].indexOf(format) > -1) { type = 'ios-film'; } if (['mp3', 'wav', 'wma', 'ogg', 'aac', 'flac'].indexOf(format) > -1) { type = 'ios-musical-notes'; } if (['doc', 'txt', 'docx', 'pages', 'epub', 'pdf'].indexOf(format) > -1) { type = 'md-document'; } if (['numbers', 'csv', 'xls', 'xlsx'].indexOf(format) > -1) { type = 'ios-stats'; } if (['keynote', 'ppt', 'pptx'].indexOf(format) > -1) { type = 'ios-videocam'; } return type; }, parsePercentage: function parsePercentage(val) { return parseInt(val, 10); } } }; /***/ }), /* 245 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-row'; exports.default = { name: 'Row', props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['flex']); } }, align: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['top', 'middle', 'bottom']); } }, justify: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['start', 'end', 'center', 'space-around', 'space-between']); } }, gutter: { type: Number, default: 0 }, className: String }, computed: { classes: function classes() { var _ref; return [(_ref = {}, (0, _defineProperty3.default)(_ref, '' + prefixCls, !this.type), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type), !!this.type), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type) + '-' + String(this.align), !!this.align), (0, _defineProperty3.default)(_ref, prefixCls + '-' + String(this.type) + '-' + String(this.justify), !!this.justify), (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), _ref)]; }, styles: function styles() { var style = {}; if (this.gutter !== 0) { style = { marginLeft: this.gutter / -2 + 'px', marginRight: this.gutter / -2 + 'px' }; } return style; } }, methods: { updateGutter: function updateGutter(val) { var _this = this; var Col = (0, _assist.findComponentDownward)(this, 'iCol'); var Cols = (0, _assist.findBrothersComponents)(Col, 'iCol', false); if (Cols.length) { Cols.forEach(function (child) { (0, _newArrowCheck3.default)(this, _this); if (val !== 0) { child.gutter = val; } }.bind(this)); } } }, watch: { gutter: function gutter(val) { this.updateGutter(val); } } }; /***/ }), /* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _defineProperty2 = __webpack_require__(2); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-col'; exports.default = { name: 'iCol', props: { span: [Number, String], order: [Number, String], offset: [Number, String], push: [Number, String], pull: [Number, String], className: String, xs: [Number, Object], sm: [Number, Object], md: [Number, Object], lg: [Number, Object], xl: [Number, Object], xxl: [Number, Object] }, data: function data() { return { gutter: 0 }; }, computed: { classes: function classes() { var _ref, _this = this; var classList = ['' + prefixCls, (_ref = {}, (0, _defineProperty3.default)(_ref, prefixCls + '-span-' + String(this.span), this.span), (0, _defineProperty3.default)(_ref, prefixCls + '-order-' + String(this.order), this.order), (0, _defineProperty3.default)(_ref, prefixCls + '-offset-' + String(this.offset), this.offset), (0, _defineProperty3.default)(_ref, prefixCls + '-push-' + String(this.push), this.push), (0, _defineProperty3.default)(_ref, prefixCls + '-pull-' + String(this.pull), this.pull), (0, _defineProperty3.default)(_ref, '' + String(this.className), !!this.className), _ref)]; ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) { (0, _newArrowCheck3.default)(this, _this); if (typeof this[size] === 'number') { classList.push(prefixCls + '-span-' + String(size) + '-' + String(this[size])); } else if ((0, _typeof3.default)(this[size]) === 'object') { var props = this[size]; (0, _keys2.default)(props).forEach(function (prop) { (0, _newArrowCheck3.default)(this, _this); classList.push(prop !== 'span' ? prefixCls + '-' + String(size) + '-' + String(prop) + '-' + String(props[prop]) : prefixCls + '-span-' + String(size) + '-' + String(props[prop])); }.bind(this)); } }.bind(this)); return classList; }, styles: function styles() { var style = {}; if (this.gutter !== 0) { style = { paddingLeft: this.gutter / 2 + 'px', paddingRight: this.gutter / 2 + 'px' }; } return style; } }, methods: { updateGutter: function updateGutter() { var Row = (0, _assist.findComponentUpward)(this, 'Row'); if (Row) { Row.updateGutter(Row.gutter); } } }, mounted: function mounted() { this.updateGutter(); }, beforeDestroy: function beforeDestroy() { this.updateGutter(); } }; /***/ }), /* 247 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-select-group'; exports.default = { name: 'OptionGroup', props: { label: { type: String, default: '' } }, data: function data() { return { prefixCls: prefixCls, hidden: false }; }, methods: { queryChange: function queryChange() { var _this = this; this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); var options = this.$refs.options.querySelectorAll('.ivu-select-item'); var hasVisibleOption = false; for (var i = 0; i < options.length; i++) { if (options[i].style.display !== 'none') { hasVisibleOption = true; break; } } this.hidden = !hasVisibleOption; }.bind(this)); } }, mounted: function mounted() { var _this2 = this; this.$on('on-query-change', function () { (0, _newArrowCheck3.default)(this, _this2); this.queryChange(); return true; }.bind(this)); } }; /***/ }), /* 248 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _extends2 = __webpack_require__(31); var _extends3 = _interopRequireDefault(_extends2); var _affix = __webpack_require__(256); var _affix2 = _interopRequireDefault(_affix); var _alert = __webpack_require__(262); var _alert2 = _interopRequireDefault(_alert); var _anchor = __webpack_require__(274); var _anchor2 = _interopRequireDefault(_anchor); var _anchorLink = __webpack_require__(277); var _anchorLink2 = _interopRequireDefault(_anchorLink); var _autoComplete = __webpack_require__(280); var _autoComplete2 = _interopRequireDefault(_autoComplete); var _avatar = __webpack_require__(329); var _avatar2 = _interopRequireDefault(_avatar); var _backTop = __webpack_require__(331); var _backTop2 = _interopRequireDefault(_backTop); var _badge = __webpack_require__(334); var _badge2 = _interopRequireDefault(_badge); var _breadcrumb = __webpack_require__(337); var _breadcrumb2 = _interopRequireDefault(_breadcrumb); var _button = __webpack_require__(342); var _button2 = _interopRequireDefault(_button); var _card = __webpack_require__(346); var _card2 = _interopRequireDefault(_card); var _carousel = __webpack_require__(349); var _carousel2 = _interopRequireDefault(_carousel); var _cascader = __webpack_require__(354); var _cascader2 = _interopRequireDefault(_cascader); var _cell = __webpack_require__(361); var _cell2 = _interopRequireDefault(_cell); var _checkbox = __webpack_require__(368); var _checkbox2 = _interopRequireDefault(_checkbox); var _circle = __webpack_require__(371); var _circle2 = _interopRequireDefault(_circle); var _collapse = __webpack_require__(374); var _collapse2 = _interopRequireDefault(_collapse); var _colorPicker = __webpack_require__(379); var _colorPicker2 = _interopRequireDefault(_colorPicker); var _content = __webpack_require__(390); var _content2 = _interopRequireDefault(_content); var _datePicker = __webpack_require__(392); var _datePicker2 = _interopRequireDefault(_datePicker); var _divider = __webpack_require__(412); var _divider2 = _interopRequireDefault(_divider); var _drawer = __webpack_require__(415); var _drawer2 = _interopRequireDefault(_drawer); var _dropdown = __webpack_require__(418); var _dropdown2 = _interopRequireDefault(_dropdown); var _footer = __webpack_require__(425); var _footer2 = _interopRequireDefault(_footer); var _form = __webpack_require__(427); var _form2 = _interopRequireDefault(_form); var _header = __webpack_require__(464); var _header2 = _interopRequireDefault(_header); var _icon = __webpack_require__(20); var _icon2 = _interopRequireDefault(_icon); var _input = __webpack_require__(466); var _input2 = _interopRequireDefault(_input); var _inputNumber = __webpack_require__(467); var _inputNumber2 = _interopRequireDefault(_inputNumber); var _scroll = __webpack_require__(469); var _scroll2 = _interopRequireDefault(_scroll); var _split = __webpack_require__(480); var _split2 = _interopRequireDefault(_split); var _layout = __webpack_require__(485); var _layout2 = _interopRequireDefault(_layout); var _list = __webpack_require__(489); var _list2 = _interopRequireDefault(_list); var _loadingBar = __webpack_require__(496); var _loadingBar2 = _interopRequireDefault(_loadingBar); var _menu = __webpack_require__(500); var _menu2 = _interopRequireDefault(_menu); var _message = __webpack_require__(509); var _message2 = _interopRequireDefault(_message); var _modal = __webpack_require__(514); var _modal2 = _interopRequireDefault(_modal); var _notice = __webpack_require__(518); var _notice2 = _interopRequireDefault(_notice); var _page = __webpack_require__(519); var _page2 = _interopRequireDefault(_page); var _poptip = __webpack_require__(524); var _poptip2 = _interopRequireDefault(_poptip); var _progress = __webpack_require__(526); var _progress2 = _interopRequireDefault(_progress); var _radio = __webpack_require__(528); var _radio2 = _interopRequireDefault(_radio); var _rate = __webpack_require__(533); var _rate2 = _interopRequireDefault(_rate); var _sider = __webpack_require__(536); var _sider2 = _interopRequireDefault(_sider); var _slider = __webpack_require__(537); var _slider2 = _interopRequireDefault(_slider); var _spin = __webpack_require__(553); var _spin2 = _interopRequireDefault(_spin); var _steps = __webpack_require__(555); var _steps2 = _interopRequireDefault(_steps); var _switch = __webpack_require__(560); var _switch2 = _interopRequireDefault(_switch); var _table = __webpack_require__(563); var _table2 = _interopRequireDefault(_table); var _tabs = __webpack_require__(579); var _tabs2 = _interopRequireDefault(_tabs); var _tag = __webpack_require__(584); var _tag2 = _interopRequireDefault(_tag); var _time = __webpack_require__(587); var _time2 = _interopRequireDefault(_time); var _timeline = __webpack_require__(591); var _timeline2 = _interopRequireDefault(_timeline); var _timePicker = __webpack_require__(596); var _timePicker2 = _interopRequireDefault(_timePicker); var _tooltip = __webpack_require__(598); var _tooltip2 = _interopRequireDefault(_tooltip); var _transfer = __webpack_require__(599); var _transfer2 = _interopRequireDefault(_transfer); var _tree = __webpack_require__(607); var _tree2 = _interopRequireDefault(_tree); var _upload = __webpack_require__(613); var _upload2 = _interopRequireDefault(_upload); var _grid = __webpack_require__(619); var _select = __webpack_require__(624); var _index = __webpack_require__(108); var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var components = { Affix: _affix2.default, Alert: _alert2.default, Anchor: _anchor2.default, AnchorLink: _anchorLink2.default, AutoComplete: _autoComplete2.default, Avatar: _avatar2.default, BackTop: _backTop2.default, Badge: _badge2.default, Breadcrumb: _breadcrumb2.default, BreadcrumbItem: _breadcrumb2.default.Item, Button: _button2.default, ButtonGroup: _button2.default.Group, Card: _card2.default, Carousel: _carousel2.default, CarouselItem: _carousel2.default.Item, Cascader: _cascader2.default, Cell: _cell2.default, CellGroup: _cell2.default.Group, Checkbox: _checkbox2.default, CheckboxGroup: _checkbox2.default.Group, Col: _grid.Col, Collapse: _collapse2.default, ColorPicker: _colorPicker2.default, Content: _content2.default, DatePicker: _datePicker2.default, Divider: _divider2.default, Drawer: _drawer2.default, Dropdown: _dropdown2.default, DropdownItem: _dropdown2.default.Item, DropdownMenu: _dropdown2.default.Menu, Footer: _footer2.default, Form: _form2.default, FormItem: _form2.default.Item, Header: _header2.default, Icon: _icon2.default, Input: _input2.default, InputNumber: _inputNumber2.default, Scroll: _scroll2.default, Sider: _sider2.default, Split: _split2.default, Submenu: _menu2.default.Sub, Layout: _layout2.default, List: _list2.default, ListItem: _list2.default.Item, ListItemMeta: _list2.default.Item.Meta, LoadingBar: _loadingBar2.default, Menu: _menu2.default, MenuGroup: _menu2.default.Group, MenuItem: _menu2.default.Item, Message: _message2.default, Modal: _modal2.default, Notice: _notice2.default, Option: _select.Option, OptionGroup: _select.OptionGroup, Page: _page2.default, Panel: _collapse2.default.Panel, Poptip: _poptip2.default, Progress: _progress2.default, Radio: _radio2.default, RadioGroup: _radio2.default.Group, Rate: _rate2.default, Row: _grid.Row, Select: _select.Select, Slider: _slider2.default, Spin: _spin2.default, Step: _steps2.default.Step, Steps: _steps2.default, Table: _table2.default, Tabs: _tabs2.default, TabPane: _tabs2.default.Pane, Tag: _tag2.default, Time: _time2.default, Timeline: _timeline2.default, TimelineItem: _timeline2.default.Item, TimePicker: _timePicker2.default, Tooltip: _tooltip2.default, Transfer: _transfer2.default, Tree: _tree2.default, Upload: _upload2.default }; var iview = (0, _extends3.default)({}, components, { iButton: _button2.default, iCircle: _circle2.default, iCol: _grid.Col, iContent: _content2.default, iForm: _form2.default, iFooter: _footer2.default, iHeader: _header2.default, iInput: _input2.default, iMenu: _menu2.default, iOption: _select.Option, iProgress: _progress2.default, iSelect: _select.Select, iSwitch: _switch2.default, iTable: _table2.default, iTime: _time2.default }); var install = function install(Vue) { var _this = this; var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (install.installed) return; _index2.default.use(opts.locale); _index2.default.i18n(opts.i18n); (0, _keys2.default)(iview).forEach(function (key) { (0, _newArrowCheck3.default)(this, _this); Vue.component(key, iview[key]); }.bind(this)); Vue.prototype.$IVIEW = { size: opts.size || '', transfer: 'transfer' in opts ? opts.transfer : '', select: { arrow: opts.select ? opts.select.arrow ? opts.select.arrow : '' : '', customArrow: opts.select ? opts.select.customArrow ? opts.select.customArrow : '' : '', arrowSize: opts.select ? opts.select.arrowSize ? opts.select.arrowSize : '' : '' }, cell: { arrow: opts.cell ? opts.cell.arrow ? opts.cell.arrow : '' : '', customArrow: opts.cell ? opts.cell.customArrow ? opts.cell.customArrow : '' : '', arrowSize: opts.cell ? opts.cell.arrowSize ? opts.cell.arrowSize : '' : '' }, menu: { arrow: opts.menu ? opts.menu.arrow ? opts.menu.arrow : '' : '', customArrow: opts.menu ? opts.menu.customArrow ? opts.menu.customArrow : '' : '', arrowSize: opts.menu ? opts.menu.arrowSize ? opts.menu.arrowSize : '' : '' }, tree: { arrow: opts.tree ? opts.tree.arrow ? opts.tree.arrow : '' : '', customArrow: opts.tree ? opts.tree.customArrow ? opts.tree.customArrow : '' : '', arrowSize: opts.tree ? opts.tree.arrowSize ? opts.tree.arrowSize : '' : '' }, cascader: { arrow: opts.cascader ? opts.cascader.arrow ? opts.cascader.arrow : '' : '', customArrow: opts.cascader ? opts.cascader.customArrow ? opts.cascader.customArrow : '' : '', arrowSize: opts.cascader ? opts.cascader.arrowSize ? opts.cascader.arrowSize : '' : '', itemArrow: opts.cascader ? opts.cascader.itemArrow ? opts.cascader.itemArrow : '' : '', customItemArrow: opts.cascader ? opts.cascader.customItemArrow ? opts.cascader.customItemArrow : '' : '', itemArrowSize: opts.cascader ? opts.cascader.itemArrowSize ? opts.cascader.itemArrowSize : '' : '' }, colorPicker: { arrow: opts.colorPicker ? opts.colorPicker.arrow ? opts.colorPicker.arrow : '' : '', customArrow: opts.colorPicker ? opts.colorPicker.customArrow ? opts.colorPicker.customArrow : '' : '', arrowSize: opts.colorPicker ? opts.colorPicker.arrowSize ? opts.colorPicker.arrowSize : '' : '' }, datePicker: { icon: opts.datePicker ? opts.datePicker.icon ? opts.datePicker.icon : '' : '', customIcon: opts.datePicker ? opts.datePicker.customIcon ? opts.datePicker.customIcon : '' : '', iconSize: opts.datePicker ? opts.datePicker.iconSize ? opts.datePicker.iconSize : '' : '' }, timePicker: { icon: opts.timePicker ? opts.timePicker.icon ? opts.timePicker.icon : '' : '', customIcon: opts.timePicker ? opts.timePicker.customIcon ? opts.timePicker.customIcon : '' : '', iconSize: opts.timePicker ? opts.timePicker.iconSize ? opts.timePicker.iconSize : '' : '' }, tabs: { closeIcon: opts.tabs ? opts.tabs.closeIcon ? opts.tabs.closeIcon : '' : '', customCloseIcon: opts.tabs ? opts.tabs.customCloseIcon ? opts.tabs.customCloseIcon : '' : '', closeIconSize: opts.tabs ? opts.tabs.closeIconSize ? opts.tabs.closeIconSize : '' : '' }, modal: { maskClosable: opts.modal ? 'maskClosable' in opts.modal ? opts.modal.maskClosable : '' : '' } }; Vue.prototype.$Loading = _loadingBar2.default; Vue.prototype.$Message = _message2.default; Vue.prototype.$Modal = _modal2.default; Vue.prototype.$Notice = _notice2.default; Vue.prototype.$Spin = _spin2.default; }; if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } var API = (0, _extends3.default)({ version: '3.5.4', locale: _index2.default.use, i18n: _index2.default.i18n, install: install, Circle: _circle2.default, Switch: _switch2.default }, components); API.lang = function (code) { (0, _newArrowCheck3.default)(undefined, undefined); var langObject = window['iview/locale'].default; if (code === langObject.i.locale) _index2.default.use(langObject);else console.log('The ' + String(code) + ' language pack is not loaded.'); }.bind(undefined); module.exports.default = module.exports = API; /***/ }), /* 249 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(250); module.exports = __webpack_require__(6).Object.keys; /***/ }), /* 250 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 Object.keys(O) var toObject = __webpack_require__(39); var $keys = __webpack_require__(40); __webpack_require__(87)('keys', function () { return function keys(it) { return $keys(toObject(it)); }; }); /***/ }), /* 251 */ /***/ (function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(29); var toLength = __webpack_require__(60); var toAbsoluteIndex = __webpack_require__(252); 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; }; }; /***/ }), /* 252 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(61); 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); }; /***/ }), /* 253 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(254); module.exports = __webpack_require__(6).Object.assign; /***/ }), /* 254 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(10); $export($export.S + $export.F, 'Object', { assign: __webpack_require__(255) }); /***/ }), /* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __webpack_require__(40); var gOPS = __webpack_require__(67); var pIE = __webpack_require__(50); var toObject = __webpack_require__(39); var IObject = __webpack_require__(86); var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) module.exports = !$assign || __webpack_require__(30)(function () { 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; /***/ }), /* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _affix = __webpack_require__(257); var _affix2 = _interopRequireDefault(_affix); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _affix2.default; /***/ }), /* 257 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_affix_vue__ = __webpack_require__(89); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_affix_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_affix_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_affix_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_affix_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_affix_vue__ = __webpack_require__(261); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_affix_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_affix_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_affix_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_affix_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_affix_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 258 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(259), __esModule: true }; /***/ }), /* 259 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(260); var $Object = __webpack_require__(6).Object; module.exports = function defineProperty(it, key, desc) { return $Object.defineProperty(it, key, desc); }; /***/ }), /* 260 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(10); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) $export($export.S + $export.F * !__webpack_require__(23), 'Object', { defineProperty: __webpack_require__(18).f }); /***/ }), /* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', [_c('div', { ref: "point", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.slot, expression: "slot" }], style: _vm.slotStyle })]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _alert = __webpack_require__(263); var _alert2 = _interopRequireDefault(_alert); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _alert2.default; /***/ }), /* 263 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_alert_vue__ = __webpack_require__(90); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_alert_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_alert_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_alert_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_alert_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alert_vue__ = __webpack_require__(273); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alert_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alert_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_alert_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alert_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alert_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 264 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('i', { class: _vm.classes, style: _vm.styles, on: { "click": _vm.handleClick } }); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 265 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(51); __webpack_require__(45); module.exports = __webpack_require__(272); /***/ }), /* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var addToUnscopables = __webpack_require__(267); var step = __webpack_require__(268); var Iterators = __webpack_require__(32); var toIObject = __webpack_require__(29); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() module.exports = __webpack_require__(92)(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function () { var O = this._t; var kind = this._k; var index = this._i++; if (!O || index >= O.length) { this._t = undefined; return step(1); } if (kind == 'keys') return step(0, index); if (kind == 'values') return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) Iterators.Arguments = Iterators.Array; addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); /***/ }), /* 267 */ /***/ (function(module, exports) { module.exports = function () { /* empty */ }; /***/ }), /* 268 */ /***/ (function(module, exports) { module.exports = function (done, value) { return { value: value, done: !!done }; }; /***/ }), /* 269 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var create = __webpack_require__(94); var descriptor = __webpack_require__(43); var setToStringTag = __webpack_require__(53); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() __webpack_require__(27)(IteratorPrototype, __webpack_require__(11)('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; /***/ }), /* 270 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(18); var anObject = __webpack_require__(19); var getKeys = __webpack_require__(40); module.exports = __webpack_require__(23) ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var keys = getKeys(Properties); var length = keys.length; var i = 0; var P; while (length > i) dP.f(O, P = keys[i++], Properties[P]); return O; }; /***/ }), /* 271 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(61); var defined = __webpack_require__(59); // true -> String#at // false -> String#codePointAt module.exports = function (TO_STRING) { return function (that, pos) { var s = String(defined(that)); var i = toInteger(pos); var l = s.length; var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; /***/ }), /* 272 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(19); var get = __webpack_require__(68); module.exports = __webpack_require__(6).getIterator = function (it) { var iterFn = get(it); if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); return anObject(iterFn.call(it)); }; /***/ }), /* 273 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": "fade" } }, [!_vm.closed ? _c('div', { class: _vm.wrapClasses }, [_vm.showIcon ? _c('span', { class: _vm.iconClasses }, [_vm._t("icon", [_c('Icon', { attrs: { "type": _vm.iconType } })])], 2) : _vm._e(), _vm._v(" "), _c('span', { class: _vm.messageClasses }, [_vm._t("default")], 2), _vm._v(" "), _c('span', { class: _vm.descClasses }, [_vm._t("desc")], 2), _vm._v(" "), _vm.closable ? _c('a', { class: _vm.closeClasses, on: { "click": _vm.close } }, [_vm._t("close", [_c('Icon', { attrs: { "type": "ios-close" } })])], 2) : _vm._e()]) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _anchor = __webpack_require__(275); var _anchor2 = _interopRequireDefault(_anchor); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _anchor2.default; /***/ }), /* 275 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue__ = __webpack_require__(97); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_vue__ = __webpack_require__(276); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_anchor_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c(_vm.wrapperComponent, { tag: "component", attrs: { "offset-top": _vm.offsetTop, "offset-bottom": _vm.offsetBottom }, on: { "on-change": _vm.handleAffixStateChange } }, [_c('div', { class: _vm.prefix + "-wrapper", style: _vm.wrapperStyle }, [_c('div', { class: "" + _vm.prefix }, [_c('div', { class: _vm.prefix + "-ink" }, [_c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.showInk, expression: "showInk" }], class: _vm.prefix + "-ink-ball", style: { top: _vm.inkTop + "px" } })]), _vm._v(" "), _vm._t("default")], 2)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _anchorLink = __webpack_require__(278); var _anchorLink2 = _interopRequireDefault(_anchorLink); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _anchorLink2.default; /***/ }), /* 278 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue__ = __webpack_require__(98); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_link_vue__ = __webpack_require__(279); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_link_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_link_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_anchor_link_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_link_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_anchor_link_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.anchorLinkClasses }, [_c('a', { class: _vm.linkTitleClasses, attrs: { "href": _vm.href, "data-scroll-offset": _vm.scrollOffset, "data-href": _vm.href, "title": _vm.title }, on: { "click": function click($event) { $event.preventDefault();return _vm.goAnchor($event); } } }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _autoComplete = __webpack_require__(281); var _autoComplete2 = _interopRequireDefault(_autoComplete); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _autoComplete2.default; /***/ }), /* 281 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue__ = __webpack_require__(99); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_auto_complete_vue__ = __webpack_require__(328); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_auto_complete_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_auto_complete_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_auto_complete_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_auto_complete_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_auto_complete_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 282 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(283), __esModule: true }; /***/ }), /* 283 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(51); __webpack_require__(45); module.exports = __webpack_require__(284); /***/ }), /* 284 */ /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__(69); var ITERATOR = __webpack_require__(11)('iterator'); var Iterators = __webpack_require__(32); module.exports = __webpack_require__(6).isIterable = function (it) { var O = Object(it); return O[ITERATOR] !== undefined || '@@iterator' in O // eslint-disable-next-line no-prototype-builtins || Iterators.hasOwnProperty(classof(O)); }; /***/ }), /* 285 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(286); module.exports = __webpack_require__(6).Number.isFinite; /***/ }), /* 286 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.2 Number.isFinite(number) var $export = __webpack_require__(10); var _isFinite = __webpack_require__(9).isFinite; $export($export.S, 'Number', { isFinite: function isFinite(it) { return typeof it == 'number' && _isFinite(it); } }); /***/ }), /* 287 */ /***/ (function(module, exports, __webpack_require__) { var core = __webpack_require__(6); var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify }); module.exports = function stringify(it) { // eslint-disable-line no-unused-vars return $JSON.stringify.apply($JSON, arguments); }; /***/ }), /* 288 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(45); __webpack_require__(289); module.exports = __webpack_require__(6).Array.from; /***/ }), /* 289 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var ctx = __webpack_require__(42); var $export = __webpack_require__(10); var toObject = __webpack_require__(39); var call = __webpack_require__(102); var isArrayIter = __webpack_require__(103); var toLength = __webpack_require__(60); var createProperty = __webpack_require__(290); var getIterFn = __webpack_require__(68); $export($export.S + $export.F * !__webpack_require__(104)(function (iter) { Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject(arrayLike); var C = typeof this == 'function' ? this : Array; var aLen = arguments.length; var mapfn = aLen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var index = 0; var iterFn = getIterFn(O); var length, result, step, iterator; if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); // if object isn't iterable or it's array with default iterator - use simple case if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); } } else { length = toLength(O.length); for (result = new C(length); length > index; index++) { createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); } } result.length = index; return result; } }); /***/ }), /* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $defineProperty = __webpack_require__(18); var createDesc = __webpack_require__(43); module.exports = function (object, index, value) { if (index in object) $defineProperty.f(object, index, createDesc(0, value)); else object[index] = value; }; /***/ }), /* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "ivu-select-dropdown", class: _vm.className, style: _vm.styles }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 292 */ /***/ (function(module, exports) { /***/ }), /* 293 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(294), __esModule: true }; /***/ }), /* 294 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(295); module.exports = __webpack_require__(6).Object.getPrototypeOf; /***/ }), /* 295 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 Object.getPrototypeOf(O) var toObject = __webpack_require__(39); var $getPrototypeOf = __webpack_require__(96); __webpack_require__(87)('getPrototypeOf', function () { return function getPrototypeOf(it) { return $getPrototypeOf(toObject(it)); }; }); /***/ }), /* 296 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _lang = __webpack_require__(297); var _lang2 = _interopRequireDefault(_lang); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var lang = { i: { locale: 'zh-CN', select: { placeholder: '', noMatch: '', loading: '' }, table: { noDataText: '', noFilteredDataText: '', confirmFilter: '', resetFilter: '', clearFilter: '' }, datepicker: { selectDate: '', selectTime: '', startTime: '', endTime: '', clear: '', ok: '', datePanelLabel: '[yyyy] [m]', month: '', month1: '1 ', month2: '2 ', month3: '3 ', month4: '4 ', month5: '5 ', month6: '6 ', month7: '7 ', month8: '8 ', month9: '9 ', month10: '10 ', month11: '11 ', month12: '12 ', year: '', weekStartDay: '0', weeks: { sun: '', mon: '', tue: '', wed: '', thu: '', fri: '', sat: '' }, months: { m1: '1', m2: '2', m3: '3', m4: '4', m5: '5', m6: '6', m7: '7', m8: '8', m9: '9', m10: '10', m11: '11', m12: '12' } }, transfer: { titles: { source: '', target: '' }, filterPlaceholder: '', notFoundText: '' }, modal: { okText: '', cancelText: '' }, poptip: { okText: '', cancelText: '' }, page: { prev: '', next: '', total: '', item: '', items: '', prev5: ' 5 ', next5: ' 5 ', page: '/', goto: '', p: '' }, rate: { star: '', stars: '' }, time: { before: '', after: '', just: '', seconds: '', minutes: '', hours: '', days: '' }, tree: { emptyText: '' } } }; (0, _lang2.default)(lang); exports.default = lang; /***/ }), /* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (lang) { if (!isServer) { if (typeof window.iview !== 'undefined') { if (!('langs' in iview)) { iview.langs = {}; } iview.langs[lang.i.locale] = lang; } } }; var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isServer = _vue2.default.prototype.$isServer; ; /***/ }), /* 298 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); var isMergeableObject = function isMergeableObject(value) { return isNonNullObject(value) && !isSpecial(value) }; function isNonNullObject(value) { return !!value && typeof value === 'object' } function isSpecial(value) { var stringValue = Object.prototype.toString.call(value); return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value) } // see path_to_url#L21-L25 var canUseSymbol = typeof Symbol === 'function' && Symbol.for; var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; function isReactElement(value) { return value.$$typeof === REACT_ELEMENT_TYPE } function emptyTarget(val) { return Array.isArray(val) ? [] : {} } function cloneUnlessOtherwiseSpecified(value, options) { return (options.clone !== false && options.isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, options) : value } function defaultArrayMerge(target, source, options) { return target.concat(source).map(function(element) { return cloneUnlessOtherwiseSpecified(element, options) }) } function mergeObject(target, source, options) { var destination = {}; if (options.isMergeableObject(target)) { Object.keys(target).forEach(function(key) { destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); }); } Object.keys(source).forEach(function(key) { if (!options.isMergeableObject(source[key]) || !target[key]) { destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); } else { destination[key] = deepmerge(target[key], source[key], options); } }); return destination } function deepmerge(target, source, options) { options = options || {}; options.arrayMerge = options.arrayMerge || defaultArrayMerge; options.isMergeableObject = options.isMergeableObject || isMergeableObject; var sourceIsArray = Array.isArray(source); var targetIsArray = Array.isArray(target); var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; if (!sourceAndTargetTypesMatch) { return cloneUnlessOtherwiseSpecified(source, options) } else if (sourceIsArray) { return options.arrayMerge(target, source, options) } else { return mergeObject(target, source, options) } } deepmerge.all = function deepmergeAll(array, options) { if (!Array.isArray(array)) { throw new Error('first argument should be an array') } return array.reduce(function(prev, next) { return deepmerge(prev, next, options) }, {}) }; var deepmerge_1 = deepmerge; /* harmony default export */ __webpack_exports__["default"] = (deepmerge_1); /***/ }), /* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _typeof2 = __webpack_require__(36); var _typeof3 = _interopRequireDefault(_typeof2); exports.default = function () { function hasOwn(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } function template(string) { var _this = this; for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } if (args.length === 1 && (0, _typeof3.default)(args[0]) === 'object') { args = args[0]; } if (!args || !args.hasOwnProperty) { args = {}; } return string.replace(RE_NARGS, function (match, prefix, i, index) { (0, _newArrowCheck3.default)(this, _this); var result = void 0; if (string[index - 1] === '{' && string[index + match.length] === '}') { return i; } else { result = hasOwn(args, i) ? args[i] : null; if (result === null || result === undefined) { return ''; } return result; } }.bind(this)); } return template; }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g; /***/ }), /* 300 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(301), __esModule: true }; /***/ }), /* 301 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(45); __webpack_require__(51); module.exports = __webpack_require__(72).f('iterator'); /***/ }), /* 302 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(303), __esModule: true }; /***/ }), /* 303 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(304); __webpack_require__(110); __webpack_require__(310); __webpack_require__(311); module.exports = __webpack_require__(6).Symbol; /***/ }), /* 304 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // ECMAScript 6 symbols shim var global = __webpack_require__(9); var has = __webpack_require__(26); var DESCRIPTORS = __webpack_require__(23); var $export = __webpack_require__(10); var redefine = __webpack_require__(93); var META = __webpack_require__(305).KEY; var $fails = __webpack_require__(30); var shared = __webpack_require__(63); var setToStringTag = __webpack_require__(53); var uid = __webpack_require__(48); var wks = __webpack_require__(11); var wksExt = __webpack_require__(72); var wksDefine = __webpack_require__(73); var enumKeys = __webpack_require__(306); var isArray = __webpack_require__(307); var anObject = __webpack_require__(19); var isObject = __webpack_require__(28); var toIObject = __webpack_require__(29); var toPrimitive = __webpack_require__(66); var createDesc = __webpack_require__(43); var _create = __webpack_require__(94); var gOPNExt = __webpack_require__(308); var $GOPD = __webpack_require__(309); var $DP = __webpack_require__(18); var $keys = __webpack_require__(40); var gOPD = $GOPD.f; var dP = $DP.f; var gOPN = gOPNExt.f; var $Symbol = global.Symbol; var $JSON = global.JSON; var _stringify = $JSON && $JSON.stringify; var PROTOTYPE = 'prototype'; var HIDDEN = wks('_hidden'); var TO_PRIMITIVE = wks('toPrimitive'); var isEnum = {}.propertyIsEnumerable; var SymbolRegistry = shared('symbol-registry'); var AllSymbols = shared('symbols'); var OPSymbols = shared('op-symbols'); var ObjectProto = Object[PROTOTYPE]; var USE_NATIVE = typeof $Symbol == 'function'; var QObject = global.QObject; // Don't use setters in Qt Script, path_to_url var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, path_to_url var setSymbolDesc = DESCRIPTORS && $fails(function () { return _create(dP({}, 'a', { get: function () { return dP(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, D) { var protoDesc = gOPD(ObjectProto, key); if (protoDesc) delete ObjectProto[key]; dP(it, key, D); if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); } : dP; var wrap = function (tag) { var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { return typeof it == 'symbol'; } : function (it) { return it instanceof $Symbol; }; var $defineProperty = function defineProperty(it, key, D) { if (it === ObjectProto) $defineProperty(OPSymbols, key, D); anObject(it); key = toPrimitive(key, true); anObject(D); if (has(AllSymbols, key)) { if (!D.enumerable) { if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); it[HIDDEN][key] = true; } else { if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; D = _create(D, { enumerable: createDesc(0, false) }); } return setSymbolDesc(it, key, D); } return dP(it, key, D); }; var $defineProperties = function defineProperties(it, P) { anObject(it); var keys = enumKeys(P = toIObject(P)); var i = 0; var l = keys.length; var key; while (l > i) $defineProperty(it, key = keys[i++], P[key]); return it; }; var $create = function create(it, P) { return P === undefined ? _create(it) : $defineProperties(_create(it), P); }; var $propertyIsEnumerable = function propertyIsEnumerable(key) { var E = isEnum.call(this, key = toPrimitive(key, true)); if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { it = toIObject(it); key = toPrimitive(key, true); if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; var D = gOPD(it, key); if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; return D; }; var $getOwnPropertyNames = function getOwnPropertyNames(it) { var names = gOPN(toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var IS_OP = it === ObjectProto; var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); } return result; }; // 19.4.1.1 Symbol([description]) if (!USE_NATIVE) { $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); var $set = function (value) { if (this === ObjectProto) $set.call(OPSymbols, value); if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); }; if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); return wrap(tag); }; redefine($Symbol[PROTOTYPE], 'toString', function toString() { return this._k; }); $GOPD.f = $getOwnPropertyDescriptor; $DP.f = $defineProperty; __webpack_require__(109).f = gOPNExt.f = $getOwnPropertyNames; __webpack_require__(50).f = $propertyIsEnumerable; __webpack_require__(67).f = $getOwnPropertySymbols; if (DESCRIPTORS && !__webpack_require__(52)) { redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); } wksExt.f = function (name) { return wrap(wks(name)); }; } $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); for (var es6Symbols = ( // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) 'for': function (key) { return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; }, useSetter: function () { setter = true; }, useSimple: function () { setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { // 19.1.2.2 Object.create(O [, Properties]) create: $create, // 19.1.2.4 Object.defineProperty(O, P, Attributes) defineProperty: $defineProperty, // 19.1.2.3 Object.defineProperties(O, Properties) defineProperties: $defineProperties, // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) getOwnPropertyDescriptor: $getOwnPropertyDescriptor, // 19.1.2.7 Object.getOwnPropertyNames(O) getOwnPropertyNames: $getOwnPropertyNames, // 19.1.2.8 Object.getOwnPropertySymbols(O) getOwnPropertySymbols: $getOwnPropertySymbols }); // 24.3.2 JSON.stringify(value [, replacer [, space]]) $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { var S = $Symbol(); // MS Edge converts symbol values to JSON as {} // WebKit converts symbol values to JSON as null // V8 throws on boxed symbols return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; })), 'JSON', { stringify: function stringify(it) { var args = [it]; var i = 1; var replacer, $replacer; while (arguments.length > i) args.push(arguments[i++]); $replacer = replacer = args[1]; if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined if (!isArray(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!isSymbol(value)) return value; }; args[1] = replacer; return _stringify.apply($JSON, args); } }); // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(27)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); // 19.4.3.5 Symbol.prototype[@@toStringTag] setToStringTag($Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); /***/ }), /* 305 */ /***/ (function(module, exports, __webpack_require__) { var META = __webpack_require__(48)('meta'); var isObject = __webpack_require__(28); var has = __webpack_require__(26); var setDesc = __webpack_require__(18).f; var id = 0; var isExtensible = Object.isExtensible || function () { return true; }; var FREEZE = !__webpack_require__(30)(function () { return isExtensible(Object.preventExtensions({})); }); var setMeta = function (it) { setDesc(it, META, { value: { i: 'O' + ++id, // object ID w: {} // weak collections IDs } }); }; var fastKey = function (it, create) { // return primitive with prefix if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; // not necessary to add metadata if (!create) return 'E'; // add missing metadata setMeta(it); // return object ID } return it[META].i; }; var getWeak = function (it, create) { if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return true; // not necessary to add metadata if (!create) return false; // add missing metadata setMeta(it); // return hash weak collections IDs } return it[META].w; }; // add metadata on freeze-family methods calling var onFreeze = function (it) { if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; var meta = module.exports = { KEY: META, NEED: false, fastKey: fastKey, getWeak: getWeak, onFreeze: onFreeze }; /***/ }), /* 306 */ /***/ (function(module, exports, __webpack_require__) { // all enumerable object keys, includes symbols var getKeys = __webpack_require__(40); var gOPS = __webpack_require__(67); var pIE = __webpack_require__(50); module.exports = function (it) { var result = getKeys(it); var getSymbols = gOPS.f; if (getSymbols) { var symbols = getSymbols(it); var isEnum = pIE.f; var i = 0; var key; while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); } return result; }; /***/ }), /* 307 */ /***/ (function(module, exports, __webpack_require__) { // 7.2.2 IsArray(argument) var cof = __webpack_require__(41); module.exports = Array.isArray || function isArray(arg) { return cof(arg) == 'Array'; }; /***/ }), /* 308 */ /***/ (function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = __webpack_require__(29); var gOPN = __webpack_require__(109).f; var toString = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return gOPN(it); } catch (e) { return windowNames.slice(); } }; module.exports.f = function getOwnPropertyNames(it) { return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; /***/ }), /* 309 */ /***/ (function(module, exports, __webpack_require__) { var pIE = __webpack_require__(50); var createDesc = __webpack_require__(43); var toIObject = __webpack_require__(29); var toPrimitive = __webpack_require__(66); var has = __webpack_require__(26); var IE8_DOM_DEFINE = __webpack_require__(88); var gOPD = Object.getOwnPropertyDescriptor; exports.f = __webpack_require__(23) ? gOPD : function getOwnPropertyDescriptor(O, P) { O = toIObject(O); P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { return gOPD(O, P); } catch (e) { /* empty */ } if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); }; /***/ }), /* 310 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(73)('asyncIterator'); /***/ }), /* 311 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(73)('observable'); /***/ }), /* 312 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue__ = __webpack_require__(111); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_head_vue__ = __webpack_require__(313); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_head_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_head_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_select_head_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_head_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_select_head_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.headCls, on: { "click": _vm.onHeaderClick } }, [_vm.$slots.prefix || _vm.prefix ? _c('span', { class: [_vm.prefixCls + '-prefix'] }, [_vm._t("prefix", [_vm.prefix ? _c('Icon', { attrs: { "type": _vm.prefix } }) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.selectedMultiple, function (item, index) { return _vm.maxTagCount === undefined || index < _vm.maxTagCount ? _c('div', { staticClass: "ivu-tag ivu-tag-checked" }, [_c('span', { staticClass: "ivu-tag-text" }, [_vm._v(_vm._s(item.label))]), _vm._v(" "), _c('Icon', { attrs: { "type": "ios-close" }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.removeTag(item); } } })], 1) : _vm._e(); }), _vm.maxTagCount !== undefined && _vm.selectedMultiple.length > _vm.maxTagCount ? _c('div', { staticClass: "ivu-tag ivu-tag-checked" }, [_c('span', { staticClass: "ivu-tag-text ivu-select-max-tag" }, [_vm.maxTagPlaceholder ? [_vm._v(_vm._s(_vm.maxTagPlaceholder(_vm.selectedMultiple.length - _vm.maxTagCount)))] : [_vm._v("+ " + _vm._s(_vm.selectedMultiple.length - _vm.maxTagCount) + "...")]], 2)]) : _vm._e(), _vm._v(" "), _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.singleDisplayValue, expression: "singleDisplayValue" }], class: _vm.singleDisplayClasses }, [_vm._v(_vm._s(_vm.singleDisplayValue))]), _vm._v(" "), _vm.filterable ? _c('input', { directives: [{ name: "model", rawName: "v-model", value: _vm.query, expression: "query" }], ref: "input", class: [_vm.prefixCls + '-input'], style: _vm.inputStyle, attrs: { "id": _vm.inputElementId, "type": "text", "disabled": _vm.disabled, "placeholder": _vm.showPlaceholder ? _vm.localePlaceholder : '', "autocomplete": "off", "spellcheck": "false" }, domProps: { "value": _vm.query }, on: { "keydown": [_vm.resetInputState, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "delete", [8, 46], $event.key, ["Backspace", "Delete", "Del"])) { return null; }return _vm.handleInputDelete($event); }], "focus": _vm.onInputFocus, "blur": _vm.onInputBlur, "input": function input($event) { if ($event.target.composing) { return; }_vm.query = $event.target.value; } } }) : _vm._e(), _vm._v(" "), _vm.resetSelect ? _c('Icon', { class: [_vm.prefixCls + '-arrow'], attrs: { "type": "ios-close-circle" }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.onClear($event); } } }) : _vm._e(), _vm._v(" "), !_vm.resetSelect && !_vm.remote ? _c('Icon', { class: [_vm.prefixCls + '-arrow'], attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } }) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 314 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_functional_options_vue__ = __webpack_require__(112); /* harmony import */ var your_sha256_hashyour_sha256_hashult = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_functional_options_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_functional_options_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_functional_options_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hash_component_normalizer__ = __webpack_require__(0); /* script */ /* template */ var __vue_render__, __vue_static_render_fns__ /* 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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashyour_sha256_hashult.a, __vue_render__, __vue_static_render_fns__, __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 315 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside.capture", value: _vm.onClickOutside, expression: "onClickOutside", modifiers: { "capture": true } }, { name: "click-outside", rawName: "v-click-outside:mousedown.capture", value: _vm.onClickOutside, expression: "onClickOutside", arg: "mousedown", modifiers: { "capture": true } }, { name: "click-outside", rawName: "v-click-outside:touchstart.capture", value: _vm.onClickOutside, expression: "onClickOutside", arg: "touchstart", modifiers: { "capture": true } }], class: _vm.classes }, [_c('div', { ref: "reference", class: _vm.selectionCls, attrs: { "tabindex": _vm.selectTabindex }, on: { "blur": _vm.toggleHeaderFocus, "focus": _vm.toggleHeaderFocus, "click": _vm.toggleMenu, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.handleKeydown($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleKeydown($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }$event.preventDefault();return _vm.handleKeydown($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }$event.preventDefault();return _vm.handleKeydown($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) { return null; }return _vm.handleKeydown($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "delete", [8, 46], $event.key, ["Backspace", "Delete", "Del"])) { return null; }return _vm.handleKeydown($event); }], "mouseenter": function mouseenter($event) { _vm.hasMouseHoverHead = true; }, "mouseleave": function mouseleave($event) { _vm.hasMouseHoverHead = false; } } }, [_vm._t("input", [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.publicValue } }), _vm._v(" "), _c('select-head', { attrs: { "filterable": _vm.filterable, "multiple": _vm.multiple, "values": _vm.values, "clearable": _vm.canBeCleared, "prefix": _vm.prefix, "disabled": _vm.disabled, "remote": _vm.remote, "input-element-id": _vm.elementId, "initial-label": _vm.initialLabel, "placeholder": _vm.placeholder, "query-prop": _vm.query, "max-tag-count": _vm.maxTagCount, "max-tag-placeholder": _vm.maxTagPlaceholder }, on: { "on-query-change": _vm.onQueryChange, "on-input-focus": function onInputFocus($event) { _vm.isFocused = true; }, "on-input-blur": function onInputBlur($event) { _vm.isFocused = false; }, "on-clear": _vm.clearSingleSelect } }, [_vm._t("prefix", null, { "slot": "prefix" })], 2)])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.dropVisible, expression: "dropVisible" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "dropdown", class: _vm.dropdownCls, attrs: { "placement": _vm.placement, "data-transfer": _vm.transfer, "transfer": _vm.transfer } }, [_c('ul', { directives: [{ name: "show", rawName: "v-show", value: _vm.showNotFoundLabel && !_vm.$slots.empty, expression: "showNotFoundLabel && !$slots.empty" }], class: [_vm.prefixCls + '-not-found'] }, [_c('li', [_vm._v(_vm._s(_vm.localeNotFoundText))])]), _vm._v(" "), _vm.showNotFoundLabel && _vm.$slots.empty ? _c('ul', { class: [_vm.prefixCls + '-not-found'], on: { "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_c('li', [_vm._t("empty")], 2)]) : _vm._e(), _vm._v(" "), _c('ul', { class: _vm.prefixCls + '-dropdown-list' }, [!_vm.remote || _vm.remote && !_vm.loading ? _c('functional-options', { attrs: { "options": _vm.selectOptions, "slot-update-hook": _vm.updateSlotOptions, "slot-options": _vm.slotOptions } }) : _vm._e()], 1), _vm._v(" "), _c('ul', { directives: [{ name: "show", rawName: "v-show", value: _vm.loading, expression: "loading" }], class: [_vm.prefixCls + '-loading'] }, [_vm._v(_vm._s(_vm.localeLoadingText))])])], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 316 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: _vm.classes, on: { "click": function click($event) { $event.stopPropagation();return _vm.select($event); }, "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_vm._t("default", [_vm._v(_vm._s(_vm.showLabel))])], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 317 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(318), __esModule: true }; /***/ }), /* 318 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(319); module.exports = __webpack_require__(6).Number.isNaN; /***/ }), /* 319 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.4 Number.isNaN(number) var $export = __webpack_require__(10); $export($export.S, 'Number', { isNaN: function isNaN(number) { // eslint-disable-next-line no-self-compare return number != number; } }); /***/ }), /* 320 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _maxSafeInteger = __webpack_require__(321); var _maxSafeInteger2 = _interopRequireDefault(_maxSafeInteger); var _minSafeInteger = __webpack_require__(324); var _minSafeInteger2 = _interopRequireDefault(_minSafeInteger); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); exports.default = calcTextareaHeight; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n'; var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing']; var computedStyleCache = {}; var hiddenTextarea = void 0; function calculateNodeStyling(node) { var _this = this; var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name'); if (useCache && computedStyleCache[nodeRef]) { return computedStyleCache[nodeRef]; } var style = window.getComputedStyle(node); var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing'); var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top')); var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width')); var sizingStyle = SIZING_STYLE.map(function (name) { (0, _newArrowCheck3.default)(this, _this); return String(name) + ':' + String(style.getPropertyValue(name)); }.bind(this)).join(';'); var nodeInfo = { sizingStyle: sizingStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing }; if (useCache && nodeRef) { computedStyleCache[nodeRef] = nodeInfo; } return nodeInfo; } function calcTextareaHeight(uiTextNode) { var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var useCache = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; if (!hiddenTextarea) { hiddenTextarea = document.createElement('textarea'); document.body.appendChild(hiddenTextarea); } if (uiTextNode.getAttribute('wrap')) { hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap')); } else { hiddenTextarea.removeAttribute('wrap'); } var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), paddingSize = _calculateNodeStyling.paddingSize, borderSize = _calculateNodeStyling.borderSize, boxSizing = _calculateNodeStyling.boxSizing, sizingStyle = _calculateNodeStyling.sizingStyle; hiddenTextarea.setAttribute('style', String(sizingStyle) + ';' + HIDDEN_TEXTAREA_STYLE); hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || ''; var minHeight = _minSafeInteger2.default; var maxHeight = _maxSafeInteger2.default; var height = hiddenTextarea.scrollHeight; var overflowY = void 0; if (boxSizing === 'border-box') { height = height + borderSize; } else if (boxSizing === 'content-box') { height = height - paddingSize; } if (minRows !== null || maxRows !== null) { hiddenTextarea.value = ' '; var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; if (minRows !== null) { minHeight = singleRowHeight * minRows; if (boxSizing === 'border-box') { minHeight = minHeight + paddingSize + borderSize; } height = Math.max(minHeight, height); } if (maxRows !== null) { maxHeight = singleRowHeight * maxRows; if (boxSizing === 'border-box') { maxHeight = maxHeight + paddingSize + borderSize; } overflowY = height > maxHeight ? '' : 'hidden'; height = Math.min(maxHeight, height); } } if (!maxRows) { overflowY = 'hidden'; } return { height: String(height) + 'px', minHeight: String(minHeight) + 'px', maxHeight: String(maxHeight) + 'px', overflowY: overflowY }; } /***/ }), /* 321 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(322), __esModule: true }; /***/ }), /* 322 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(323); module.exports = 0x1fffffffffffff; /***/ }), /* 323 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.6 Number.MAX_SAFE_INTEGER var $export = __webpack_require__(10); $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); /***/ }), /* 324 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(325), __esModule: true }; /***/ }), /* 325 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(326); module.exports = -0x1fffffffffffff; /***/ }), /* 326 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.10 Number.MIN_SAFE_INTEGER var $export = __webpack_require__(10); $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); /***/ }), /* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_vm.type !== 'textarea' ? [_vm.prepend ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.slotReady, expression: "slotReady" }], class: [_vm.prefixCls + '-group-prepend'] }, [_vm._t("prepend")], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-inner-container'] }, [_vm.clearable && _vm.currentValue && !_vm.disabled ? _c('i', { staticClass: "ivu-icon", class: ['ivu-icon-ios-close-circle', _vm.prefixCls + '-icon', _vm.prefixCls + '-icon-clear', _vm.prefixCls + '-icon-normal'], on: { "click": _vm.handleClear } }) : _vm.icon ? _c('i', { staticClass: "ivu-icon", class: ['ivu-icon-' + _vm.icon, _vm.prefixCls + '-icon', _vm.prefixCls + '-icon-normal'], on: { "click": _vm.handleIconClick } }) : _vm.search && _vm.enterButton === false ? _c('i', { staticClass: "ivu-icon ivu-icon-ios-search", class: [_vm.prefixCls + '-icon', _vm.prefixCls + '-icon-normal', _vm.prefixCls + '-search-icon'], on: { "click": _vm.handleSearch } }) : _vm.showSuffix ? _c('span', { staticClass: "ivu-input-suffix" }, [_vm._t("suffix", [_vm.suffix ? _c('i', { staticClass: "ivu-icon", class: ['ivu-icon-' + _vm.suffix] }) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _c('transition', { attrs: { "name": "fade" } }, [!_vm.icon ? _c('i', { staticClass: "ivu-icon ivu-icon-ios-loading ivu-load-loop", class: [_vm.prefixCls + '-icon', _vm.prefixCls + '-icon-validate'] }) : _vm._e()]), _vm._v(" "), _c('input', { ref: "input", class: _vm.inputClasses, attrs: { "id": _vm.elementId, "autocomplete": _vm.autocomplete, "spellcheck": _vm.spellcheck, "type": _vm.type, "placeholder": _vm.placeholder, "disabled": _vm.disabled, "maxlength": _vm.maxlength, "readonly": _vm.readonly, "name": _vm.name, "number": _vm.number, "autofocus": _vm.autofocus }, domProps: { "value": _vm.currentValue }, on: { "keyup": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleEnter($event); }, _vm.handleKeyup], "keypress": _vm.handleKeypress, "keydown": _vm.handleKeydown, "focus": _vm.handleFocus, "blur": _vm.handleBlur, "compositionstart": _vm.handleComposition, "compositionupdate": _vm.handleComposition, "compositionend": _vm.handleComposition, "input": _vm.handleInput, "change": _vm.handleChange } })], 1), _vm._v(" "), _vm.append ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.slotReady, expression: "slotReady" }], class: [_vm.prefixCls + '-group-append'] }, [_vm._t("append")], 2) : _vm.search && _vm.enterButton ? _c('div', { class: [_vm.prefixCls + '-group-append', _vm.prefixCls + '-search'], on: { "click": _vm.handleSearch } }, [_vm.enterButton === true ? _c('i', { staticClass: "ivu-icon ivu-icon-ios-search" }) : [_vm._v(_vm._s(_vm.enterButton))]], 2) : _vm.showPrefix ? _c('span', { staticClass: "ivu-input-prefix" }, [_vm._t("prefix", [_vm.prefix ? _c('i', { staticClass: "ivu-icon", class: ['ivu-icon-' + _vm.prefix] }) : _vm._e()])], 2) : _vm._e()] : _c('textarea', { ref: "textarea", class: _vm.textareaClasses, style: _vm.textareaStyles, attrs: { "id": _vm.elementId, "wrap": _vm.wrap, "autocomplete": _vm.autocomplete, "spellcheck": _vm.spellcheck, "placeholder": _vm.placeholder, "disabled": _vm.disabled, "rows": _vm.rows, "maxlength": _vm.maxlength, "readonly": _vm.readonly, "name": _vm.name, "autofocus": _vm.autofocus }, domProps: { "value": _vm.currentValue }, on: { "keyup": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleEnter($event); }, _vm.handleKeyup], "keypress": _vm.handleKeypress, "keydown": _vm.handleKeydown, "focus": _vm.handleFocus, "blur": _vm.handleBlur, "compositionstart": _vm.handleComposition, "compositionupdate": _vm.handleComposition, "compositionend": _vm.handleComposition, "input": _vm.handleInput } })], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('i-select', { ref: "select", staticClass: "ivu-auto-complete", attrs: { "label": _vm.label, "disabled": _vm.disabled, "clearable": _vm.clearable, "placeholder": _vm.placeholder, "size": _vm.size, "placement": _vm.placement, "value": _vm.currentValue, "filterable": "", "remote": "", "auto-complete": "", "remote-method": _vm.remoteMethod, "transfer": _vm.transfer }, on: { "on-select": _vm.handleSelect, "on-clickoutside": _vm.handleClickOutside } }, [_vm._t("input", [_c('i-input', { ref: "input", attrs: { "slot": "input", "element-id": _vm.elementId, "name": _vm.name, "placeholder": _vm.placeholder, "disabled": _vm.disabled, "size": _vm.size, "icon": _vm.inputIcon }, on: { "on-click": _vm.handleClear, "on-focus": _vm.handleFocus, "on-blur": _vm.handleBlur }, slot: "input", model: { value: _vm.currentValue, callback: function callback($$v) { _vm.currentValue = $$v; }, expression: "currentValue" } })]), _vm._v(" "), _vm._t("default", _vm._l(_vm.filteredData, function (item) { return _c('i-option', { key: item, attrs: { "value": item } }, [_vm._v(_vm._s(item))]); }))], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _avatar = __webpack_require__(115); var _avatar2 = _interopRequireDefault(_avatar); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _avatar2.default; /***/ }), /* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', { class: _vm.classes }, [_vm.src ? _c('img', { attrs: { "src": _vm.src }, on: { "error": _vm.handleError } }) : _vm.icon || _vm.customIcon ? _c('Icon', { attrs: { "type": _vm.icon, "custom": _vm.customIcon } }) : _c('span', { ref: "children", class: [_vm.prefixCls + '-string'], style: _vm.childrenStyle }, [_vm._t("default")], 2)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _backTop = __webpack_require__(332); var _backTop2 = _interopRequireDefault(_backTop); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _backTop2.default; /***/ }), /* 332 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue__ = __webpack_require__(117); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_back_top_vue__ = __webpack_require__(333); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_back_top_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_back_top_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_back_top_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_back_top_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_back_top_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, style: _vm.styles, on: { "click": _vm.back } }, [_vm._t("default", [_c('div', { class: _vm.innerClasses }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-up" })])])], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _badge = __webpack_require__(335); var _badge2 = _interopRequireDefault(_badge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _badge2.default; /***/ }), /* 335 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_badge_vue__ = __webpack_require__(118); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_badge_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_badge_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_badge_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_badge_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_badge_vue__ = __webpack_require__(336); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_badge_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_badge_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_badge_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_badge_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_badge_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.dot ? _c('span', { ref: "badge", class: _vm.classes }, [_vm._t("default"), _vm._v(" "), _c('sup', { directives: [{ name: "show", rawName: "v-show", value: _vm.badge, expression: "badge" }], class: _vm.dotClasses, style: _vm.styles })], 2) : _vm.status ? _c('span', { ref: "badge", staticClass: "ivu-badge-status", class: _vm.classes }, [_c('span', { class: _vm.statusClasses }), _vm._v(" "), _c('span', { staticClass: "ivu-badge-status-text" }, [_vm._v(_vm._s(_vm.text))])]) : _c('span', { ref: "badge", class: _vm.classes }, [_vm._t("default"), _vm._v(" "), _vm.hasCount ? _c('sup', { directives: [{ name: "show", rawName: "v-show", value: _vm.badge, expression: "badge" }], class: _vm.countClasses, style: _vm.styles }, [_vm._v(_vm._s(_vm.finalCount))]) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 337 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _breadcrumb = __webpack_require__(338); var _breadcrumb2 = _interopRequireDefault(_breadcrumb); var _breadcrumbItem = __webpack_require__(340); var _breadcrumbItem2 = _interopRequireDefault(_breadcrumbItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _breadcrumb2.default.Item = _breadcrumbItem2.default; exports.default = _breadcrumb2.default; /***/ }), /* 338 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue__ = __webpack_require__(119); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_vue__ = __webpack_require__(339); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 340 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_item_vue__ = __webpack_require__(120); /* harmony import */ var your_sha256_hashyour_sha256_hash = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_breadcrumb_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_item_vue__ = __webpack_require__(341); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hash = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashyour_sha256_hash.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_breadcrumb_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 341 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', [_vm.to ? _c('a', { class: _vm.linkClasses, attrs: { "href": _vm.linkUrl, "target": _vm.target }, on: { "click": [function ($event) { if ($event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey) { return null; }return _vm.handleCheckClick($event, false); }, function ($event) { if (!$event.ctrlKey) { return null; }return _vm.handleCheckClick($event, true); }, function ($event) { if (!$event.metaKey) { return null; }return _vm.handleCheckClick($event, true); }] } }, [_vm._t("default")], 2) : _c('span', { class: _vm.linkClasses }, [_vm._t("default")], 2), _vm._v(" "), !_vm.showSeparator ? _c('span', { class: _vm.separatorClasses, domProps: { "innerHTML": _vm._s(_vm.separator) } }) : _c('span', { class: _vm.separatorClasses }, [_vm._t("separator")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 342 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _buttonGroup = __webpack_require__(344); var _buttonGroup2 = _interopRequireDefault(_buttonGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _button2.default.Group = _buttonGroup2.default; exports.default = _button2.default; /***/ }), /* 343 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c(_vm.tagName, _vm._b({ tag: "component", class: _vm.classes, attrs: { "disabled": _vm.disabled }, on: { "click": _vm.handleClickLink } }, 'component', _vm.tagProps, false), [_vm.loading ? _c('Icon', { staticClass: "ivu-load-loop", attrs: { "type": "ios-loading" } }) : _vm._e(), _vm._v(" "), (_vm.icon || _vm.customIcon) && !_vm.loading ? _c('Icon', { attrs: { "type": _vm.icon, "custom": _vm.customIcon } }) : _vm._e(), _vm._v(" "), _vm.showSlot ? _c('span', { ref: "slot" }, [_vm._t("default")], 2) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 344 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue__ = __webpack_require__(122); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_group_vue__ = __webpack_require__(345); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_button_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_button_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _card = __webpack_require__(347); var _card2 = _interopRequireDefault(_card); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _card2.default; /***/ }), /* 347 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_card_vue__ = __webpack_require__(123); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_card_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_card_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_card_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_card_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_card_vue__ = __webpack_require__(348); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_card_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_card_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_card_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_card_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_card_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm.showHead ? _c('div', { class: _vm.headClasses }, [_vm._t("title", [_vm.title ? _c('p', [_vm.icon ? _c('Icon', { attrs: { "type": _vm.icon } }) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.title))])], 1) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _vm.showExtra ? _c('div', { class: _vm.extraClasses }, [_vm._t("extra")], 2) : _vm._e(), _vm._v(" "), _c('div', { class: _vm.bodyClasses, style: _vm.bodyStyles }, [_vm._t("default")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _carousel = __webpack_require__(350); var _carousel2 = _interopRequireDefault(_carousel); var _carouselItem = __webpack_require__(352); var _carouselItem2 = _interopRequireDefault(_carouselItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _carousel2.default.Item = _carouselItem2.default; exports.default = _carousel2.default; /***/ }), /* 350 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue__ = __webpack_require__(124); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_vue__ = __webpack_require__(351); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_carousel_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 351 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_c('button', { staticClass: "left", class: _vm.arrowClasses, attrs: { "type": "button" }, on: { "click": function click($event) { return _vm.arrowEvent(-1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-list'] }, [_c('div', { ref: "originTrack", class: [_vm.prefixCls + '-track', _vm.showCopyTrack ? '' : 'higher'], style: _vm.trackStyles, on: { "click": function click($event) { return _vm.handlerClickEvent('currentIndex'); } } }, [_vm._t("default")], 2), _vm._v(" "), _vm.loop ? _c('div', { ref: "copyTrack", class: [_vm.prefixCls + '-track', _vm.showCopyTrack ? 'higher' : ''], style: _vm.copyTrackStyles, on: { "click": function click($event) { return _vm.handlerClickEvent('copyTrackIndex'); } } }) : _vm._e()]), _vm._v(" "), _c('button', { staticClass: "right", class: _vm.arrowClasses, attrs: { "type": "button" }, on: { "click": function click($event) { return _vm.arrowEvent(1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1), _vm._v(" "), _c('ul', { class: _vm.dotsClasses }, [_vm._l(_vm.slides.length, function (n) { return [_c('li', { class: [n - 1 === _vm.currentIndex ? _vm.prefixCls + '-active' : ''], on: { "click": function click($event) { return _vm.dotsEvent('click', n - 1); }, "mouseover": function mouseover($event) { return _vm.dotsEvent('hover', n - 1); } } }, [_c('button', { class: [_vm.radiusDot ? 'radius' : ''], attrs: { "type": "button" } })])]; })], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 352 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue__ = __webpack_require__(125); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_item_vue__ = __webpack_require__(353); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_carousel_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_carousel_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.prefixCls, style: _vm.styles }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _cascader = __webpack_require__(355); var _cascader2 = _interopRequireDefault(_cascader); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _cascader2.default; /***/ }), /* 355 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue__ = __webpack_require__(126); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cascader_vue__ = __webpack_require__(360); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cascader_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cascader_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_cascader_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cascader_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cascader_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 356 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue__ = __webpack_require__(127); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_caspanel_vue__ = __webpack_require__(359); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_caspanel_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_caspanel_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_caspanel_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_caspanel_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_caspanel_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 357 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue__ = __webpack_require__(128); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_casitem_vue__ = __webpack_require__(358); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_casitem_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_casitem_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_casitem_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_casitem_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_casitem_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: _vm.classes }, [_vm._v("\n " + _vm._s(_vm.data.label) + "\n "), _vm.showArrow ? _c('Icon', { attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } }) : _vm._e(), _vm._v(" "), _vm.showLoading ? _c('i', { staticClass: "ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-cascader-menu-item-loading" }) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', [_vm.data && _vm.data.length ? _c('ul', { class: [_vm.prefixCls + '-menu'] }, _vm._l(_vm.data, function (item) { return _c('Casitem', { key: _vm.getKey(), attrs: { "prefix-cls": _vm.prefixCls, "data": item, "tmp-item": _vm.tmpItem }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.handleClickItem(item, $event); }, "mouseenter": function mouseenter($event) { $event.stopPropagation();return _vm.handleHoverItem(item); } } }); }), 1) : _vm._e(), _vm._v(" "), _vm.sublist && _vm.sublist.length ? _c('Caspanel', { attrs: { "prefix-cls": _vm.prefixCls, "data": _vm.sublist, "disabled": _vm.disabled, "trigger": _vm.trigger, "change-on-select": _vm.changeOnSelect } }) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside", value: _vm.handleClose, expression: "handleClose" }], class: _vm.classes }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-rel'], on: { "click": _vm.toggleOpen } }, [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.currentValue } }), _vm._v(" "), _vm._t("default", [_c('i-input', { ref: "input", attrs: { "element-id": _vm.elementId, "readonly": !_vm.filterable, "disabled": _vm.disabled, "value": _vm.displayInputRender, "size": _vm.size, "placeholder": _vm.inputPlaceholder }, on: { "on-change": _vm.handleInput } }), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query === '', expression: "filterable && query === ''" }], class: [_vm.prefixCls + '-label'], on: { "click": _vm.handleFocus } }, [_vm._v(_vm._s(_vm.displayRender))]), _vm._v(" "), _c('Icon', { directives: [{ name: "show", rawName: "v-show", value: _vm.showCloseIcon, expression: "showCloseIcon" }], class: [_vm.prefixCls + '-arrow'], attrs: { "type": "ios-close-circle" }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.clearSelect($event); } } }), _vm._v(" "), _c('Icon', { class: [_vm.prefixCls + '-arrow'], attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } })])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "drop", class: (_obj = {}, _obj[_vm.prefixCls + '-transfer'] = _vm.transfer, _obj), attrs: { "data-transfer": _vm.transfer, "transfer": _vm.transfer } }, [_c('div', [_c('Caspanel', { directives: [{ name: "show", rawName: "v-show", value: !_vm.filterable || _vm.filterable && _vm.query === '', expression: "!filterable || (filterable && query === '')" }], ref: "caspanel", attrs: { "prefix-cls": _vm.prefixCls, "data": _vm.data, "disabled": _vm.disabled, "change-on-select": _vm.changeOnSelect, "trigger": _vm.trigger } }), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query !== '' && _vm.querySelections.length, expression: "filterable && query !== '' && querySelections.length" }], class: [_vm.prefixCls + '-dropdown'] }, [_c('ul', { class: [_vm.selectPrefixCls + '-dropdown-list'] }, _vm._l(_vm.querySelections, function (item, index) { return _c('li', { key: index, class: [_vm.selectPrefixCls + '-item', (_obj = {}, _obj[_vm.selectPrefixCls + '-item-disabled'] = item.disabled, _obj)], domProps: { "innerHTML": _vm._s(item.display) }, on: { "click": function click($event) { return _vm.handleSelectItem(index); } } }); var _obj; }), 0)]), _vm._v(" "), _c('ul', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query !== '' && !_vm.querySelections.length || !_vm.data.length, expression: "(filterable && query !== '' && !querySelections.length) || !data.length" }], class: [_vm.prefixCls + '-not-found-tip'] }, [_c('li', [_vm._v(_vm._s(_vm.localeNotFoundText))])])], 1)])], 1)], 1); var _obj; }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _cell = __webpack_require__(362); var _cell2 = _interopRequireDefault(_cell); var _cellGroup = __webpack_require__(366); var _cellGroup2 = _interopRequireDefault(_cellGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _cell2.default.Group = _cellGroup2.default; exports.default = _cell2.default; /***/ }), /* 362 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__ = __webpack_require__(129); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__ = __webpack_require__(365); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_cell_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 363 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue__ = __webpack_require__(130); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_item_vue__ = __webpack_require__(364); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_cell_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 364 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "ivu-cell-item" }, [_c('div', { staticClass: "ivu-cell-icon" }, [_vm._t("icon")], 2), _vm._v(" "), _c('div', { staticClass: "ivu-cell-main" }, [_c('div', { staticClass: "ivu-cell-title" }, [_vm._t("default", [_vm._v(_vm._s(_vm.title))])], 2), _vm._v(" "), _c('div', { staticClass: "ivu-cell-label" }, [_vm._t("label", [_vm._v(_vm._s(_vm.label))])], 2)]), _vm._v(" "), _c('div', { staticClass: "ivu-cell-footer" }, [_c('span', { staticClass: "ivu-cell-extra" }, [_vm._t("extra", [_vm._v(_vm._s(_vm.extra))])], 2)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 365 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm.to ? _c('a', { staticClass: "ivu-cell-link", attrs: { "href": _vm.linkUrl, "target": _vm.target }, on: { "click": [function ($event) { if ($event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey) { return null; }return _vm.handleClickItem($event, false); }, function ($event) { if (!$event.ctrlKey) { return null; }return _vm.handleClickItem($event, true); }, function ($event) { if (!$event.metaKey) { return null; }return _vm.handleClickItem($event, true); }] } }, [_c('CellItem', { attrs: { "title": _vm.title, "label": _vm.label, "extra": _vm.extra } }, [_vm._t("icon", null, { "slot": "icon" }), _vm._v(" "), _vm._t("default", null, { "slot": "default" }), _vm._v(" "), _vm._t("extra", null, { "slot": "extra" }), _vm._v(" "), _vm._t("label", null, { "slot": "label" })], 2)], 1) : _c('div', { staticClass: "ivu-cell-link", on: { "click": _vm.handleClickItem } }, [_c('CellItem', { attrs: { "title": _vm.title, "label": _vm.label, "extra": _vm.extra } }, [_vm._t("icon", null, { "slot": "icon" }), _vm._v(" "), _vm._t("default", null, { "slot": "default" }), _vm._v(" "), _vm._t("extra", null, { "slot": "extra" }), _vm._v(" "), _vm._t("label", null, { "slot": "label" })], 2)], 1), _vm._v(" "), _vm.to ? _c('div', { staticClass: "ivu-cell-arrow" }, [_vm._t("arrow", [_c('Icon', { attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } })])], 2) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 366 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue__ = __webpack_require__(131); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_group_vue__ = __webpack_require__(367); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_cell_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 367 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "ivu-cell-group" }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 368 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _checkbox = __webpack_require__(46); var _checkbox2 = _interopRequireDefault(_checkbox); var _checkboxGroup = __webpack_require__(133); var _checkboxGroup2 = _interopRequireDefault(_checkboxGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _checkbox2.default.Group = _checkboxGroup2.default; exports.default = _checkbox2.default; /***/ }), /* 369 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('label', { class: _vm.wrapClasses }, [_c('span', { class: _vm.checkboxClasses }, [_c('span', { class: _vm.innerClasses }), _vm._v(" "), _vm.group ? _c('input', { directives: [{ name: "model", rawName: "v-model", value: _vm.model, expression: "model" }], class: _vm.inputClasses, attrs: { "type": "checkbox", "disabled": _vm.disabled, "name": _vm.name }, domProps: { "value": _vm.label, "checked": Array.isArray(_vm.model) ? _vm._i(_vm.model, _vm.label) > -1 : _vm.model }, on: { "change": [function ($event) { var $$a = _vm.model, $$el = $event.target, $$c = $$el.checked ? true : false;if (Array.isArray($$a)) { var $$v = _vm.label, $$i = _vm._i($$a, $$v);if ($$el.checked) { $$i < 0 && (_vm.model = $$a.concat([$$v])); } else { $$i > -1 && (_vm.model = $$a.slice(0, $$i).concat($$a.slice($$i + 1))); } } else { _vm.model = $$c; } }, _vm.change], "focus": _vm.onFocus, "blur": _vm.onBlur } }) : _c('input', { class: _vm.inputClasses, attrs: { "type": "checkbox", "disabled": _vm.disabled, "name": _vm.name }, domProps: { "checked": _vm.currentValue }, on: { "change": _vm.change, "focus": _vm.onFocus, "blur": _vm.onBlur } })]), _vm._v(" "), _vm._t("default", [_vm.showSlot ? _c('span', [_vm._v(_vm._s(_vm.label))]) : _vm._e()])], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _circle = __webpack_require__(372); var _circle2 = _interopRequireDefault(_circle); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _circle2.default; /***/ }), /* 372 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_circle_vue__ = __webpack_require__(135); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_circle_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_circle_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_circle_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_circle_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_circle_vue__ = __webpack_require__(373); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_circle_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_circle_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_circle_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_circle_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_circle_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses, style: _vm.circleSize }, [_c('svg', { attrs: { "viewBox": "0 0 100 100" } }, [_c('path', { style: _vm.trailStyle, attrs: { "d": _vm.pathString, "stroke": _vm.trailColor, "stroke-width": _vm.trailWidth, "fill-opacity": 0 } }), _vm._v(" "), _c('path', { style: _vm.pathStyle, attrs: { "d": _vm.pathString, "stroke-linecap": _vm.strokeLinecap, "stroke": _vm.strokeColor, "stroke-width": _vm.computedStrokeWidth, "fill-opacity": "0" } })]), _vm._v(" "), _c('div', { class: _vm.innerClasses }, [_vm._t("default")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _collapse = __webpack_require__(375); var _collapse2 = _interopRequireDefault(_collapse); var _panel = __webpack_require__(377); var _panel2 = _interopRequireDefault(_panel); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _collapse2.default.Panel = _panel2.default; exports.default = _collapse2.default; /***/ }), /* 375 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue__ = __webpack_require__(136); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_collapse_vue__ = __webpack_require__(376); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_collapse_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_collapse_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_collapse_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_collapse_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_collapse_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 377 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_panel_vue__ = __webpack_require__(137); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_panel_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_panel_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_panel_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_panel_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_panel_vue__ = __webpack_require__(378); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_panel_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_panel_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_panel_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_panel_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_panel_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.itemClasses }, [_c('div', { class: _vm.headerClasses, on: { "click": _vm.toggle } }, [!_vm.hideArrow ? _c('Icon', { attrs: { "type": "ios-arrow-forward" } }) : _vm._e(), _vm._v(" "), _vm._t("default")], 2), _vm._v(" "), _vm.mounted ? _c('collapse-transition', [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.isActive, expression: "isActive" }], class: _vm.contentClasses }, [_c('div', { class: _vm.boxClasses }, [_vm._t("content")], 2)])]) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _colorPicker = __webpack_require__(380); var _colorPicker2 = _interopRequireDefault(_colorPicker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _colorPicker2.default; /***/ }), /* 380 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue__ = __webpack_require__(138); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_color_picker_vue__ = __webpack_require__(389); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_color_picker_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_color_picker_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_color_picker_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_color_picker_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_color_picker_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 381 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_recommend_colors_vue__ = __webpack_require__(140); /* harmony import */ var your_sha256_hashyour_sha256_hasht = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_recommend_colors_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_recommend_colors_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_recommend_colors_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_recommend_colors_vue__ = __webpack_require__(382); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hasht = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_recommend_colors_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashyour_sha256_hasht.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_recommend_colors_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_recommend_colors_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 382 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { ref: "reference", attrs: { "tabindex": "0" }, on: { "click": _vm.handleClick, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.handleEscape($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleEnter($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.handleArrow($event, 'x', _vm.left); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.handleArrow($event, 'x', _vm.right); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.handleArrow($event, 'y', _vm.up); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.handleArrow($event, 'y', _vm.down); }], "blur": _vm.blurColor, "focus": _vm.focusColor } }, [_vm._l(_vm.list, function (item, index) { return [_c('div', { key: item + ':' + index, class: [_vm.prefixCls + '-picker-colors-wrapper'] }, [_c('div', { attrs: { "data-color-id": index } }, [_c('div', { class: [_vm.prefixCls + '-picker-colors-wrapper-color'], style: { background: item } }), _vm._v(" "), _c('div', { ref: 'color-circle-' + index, refInFor: true, class: [_vm.prefixCls + '-picker-colors-wrapper-circle', _vm.hideClass] })])]), _vm._v(" "), _vm.lineBreak(_vm.list, index) ? _c('br') : _vm._e()]; })], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 383 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue__ = __webpack_require__(142); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_saturation_vue__ = __webpack_require__(384); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_saturation_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_saturation_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_saturation_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_saturation_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_saturation_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls + '-saturation-wrapper'], attrs: { "tabindex": "0" }, on: { "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.handleEscape($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.handleLeft($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.handleRight($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.handleUp($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.handleDown($event); }], "click": function click($event) { return _vm.$el.focus(); } } }, [_c('div', { ref: "container", class: [_vm.prefixCls + '-saturation'], style: _vm.bgColorStyle, on: { "mousedown": _vm.handleMouseDown } }, [_c('div', { class: [_vm.prefixCls + '-saturation--white'] }), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-saturation--black'] }), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-saturation-pointer'], style: _vm.pointerStyle }, [_c('div', { class: [_vm.prefixCls + '-saturation-circle'] })])])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 385 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_hue_vue__ = __webpack_require__(143); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_hue_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_hue_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_hue_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_hue_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_hue_vue__ = __webpack_require__(386); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_hue_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_hue_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_hue_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_hue_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_hue_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls + '-hue'], attrs: { "tabindex": "0" }, on: { "click": function click($event) { return _vm.$el.focus(); }, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.handleEscape($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.handleLeft($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.handleRight($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.handleUp($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.handleDown($event); }] } }, [_c('div', { ref: "container", class: [_vm.prefixCls + '-hue-container'], on: { "mousedown": _vm.handleMouseDown, "touchmove": _vm.handleChange, "touchstart": _vm.handleChange } }, [_c('div', { class: [_vm.prefixCls + '-hue-pointer'], style: { top: 0, left: _vm.percent + "%" } }, [_c('div', { class: [_vm.prefixCls + '-hue-picker'] })])])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 387 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue__ = __webpack_require__(144); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alpha_vue__ = __webpack_require__(388); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alpha_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alpha_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_alpha_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alpha_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_alpha_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls + '-alpha'], attrs: { "tabindex": "0" }, on: { "click": function click($event) { return _vm.$el.focus(); }, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.handleEscape($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.handleLeft($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.handleRight($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.handleUp($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.handleDown($event); }] } }, [_c('div', { class: [_vm.prefixCls + '-alpha-checkboard-wrap'] }, [_c('div', { class: [_vm.prefixCls + '-alpha-checkerboard'] })]), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-alpha-gradient'], style: _vm.gradientStyle }), _vm._v(" "), _c('div', { ref: "container", class: [_vm.prefixCls + '-alpha-container'], on: { "mousedown": _vm.handleMouseDown, "touchmove": _vm.handleChange, "touchstart": _vm.handleChange } }, [_c('div', { class: [_vm.prefixCls + '-alpha-pointer'], style: { top: 0, left: _vm.value.a * 100 + "%" } }, [_c('div', { class: [_vm.prefixCls + '-alpha-picker'] })])])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside", value: _vm.handleClose, expression: "handleClose" }], class: _vm.classes }, [_c('div', { ref: "reference", class: _vm.wrapClasses, on: { "click": _vm.toggleVisible } }, [_c('input', { attrs: { "name": _vm.name, "type": "hidden" }, domProps: { "value": _vm.currentValue } }), _vm._v(" "), _c('Icon', { class: _vm.arrowClasses, attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } }), _vm._v(" "), _c('div', { ref: "input", class: _vm.inputClasses, attrs: { "tabindex": _vm.disabled ? undefined : 0 }, on: { "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) { return null; }return _vm.onTab($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.onEscape($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.onArrow($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.onArrow($event); }] } }, [_c('div', { class: [_vm.prefixCls + '-color'] }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.value === '' && !_vm.visible, expression: "value === '' && !visible" }], class: [_vm.prefixCls + '-color-empty'] }, [_c('i', { class: [_vm.iconPrefixCls, _vm.iconPrefixCls + '-ios-close'] })]), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.value || _vm.visible, expression: "value || visible" }], style: _vm.displayedColorStyle })])])], 1), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "transfer-dom", rawName: "v-transfer-dom" }, { name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], ref: "drop", class: _vm.dropClasses, attrs: { "placement": _vm.placement, "data-transfer": _vm.transfer, "transfer": _vm.transfer } }, [_c('transition', { attrs: { "name": "fade" } }, [_vm.visible ? _c('div', { class: [_vm.prefixCls + '-picker'] }, [_c('div', { class: [_vm.prefixCls + '-picker-wrapper'] }, [_c('div', { class: [_vm.prefixCls + '-picker-panel'] }, [_c('Saturation', { ref: "saturation", attrs: { "focused": _vm.visible }, on: { "change": _vm.childChange }, nativeOn: { "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) { return null; }return _vm.handleFirstTab($event); } }, model: { value: _vm.saturationColors, callback: function callback($$v) { _vm.saturationColors = $$v; }, expression: "saturationColors" } })], 1), _vm._v(" "), _vm.hue ? _c('div', { class: [_vm.prefixCls + '-picker-hue-slider'] }, [_c('Hue', { on: { "change": _vm.childChange }, model: { value: _vm.saturationColors, callback: function callback($$v) { _vm.saturationColors = $$v; }, expression: "saturationColors" } })], 1) : _vm._e(), _vm._v(" "), _vm.alpha ? _c('div', { class: [_vm.prefixCls + '-picker-alpha-slider'] }, [_c('Alpha', { on: { "change": _vm.childChange }, model: { value: _vm.saturationColors, callback: function callback($$v) { _vm.saturationColors = $$v; }, expression: "saturationColors" } })], 1) : _vm._e(), _vm._v(" "), _vm.colors.length ? _c('recommend-colors', { class: [_vm.prefixCls + '-picker-colors'], attrs: { "list": _vm.colors }, on: { "picker-color": _vm.handleSelectColor } }) : _vm._e(), _vm._v(" "), !_vm.colors.length && _vm.recommend ? _c('recommend-colors', { class: [_vm.prefixCls + '-picker-colors'], attrs: { "list": _vm.recommendedColor }, on: { "picker-color": _vm.handleSelectColor } }) : _vm._e()], 1), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-confirm'] }, [_c('span', { class: _vm.confirmColorClasses }, [_vm.editable ? [_c('i-input', { attrs: { "value": _vm.formatColor, "size": "small" }, on: { "on-enter": _vm.handleEditColor, "on-blur": _vm.handleEditColor } })] : [_vm._v(_vm._s(_vm.formatColor))]], 2), _vm._v(" "), _c('i-button', { ref: "clear", attrs: { "tabindex": 0, "size": "small" }, on: { "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleClear($event); } }, nativeOn: { "click": function click($event) { return _vm.handleClear($event); }, "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.closer($event); } } }, [_vm._v(_vm._s(_vm.t('i.datepicker.clear')))]), _vm._v(" "), _c('i-button', { ref: "ok", attrs: { "tabindex": 0, "size": "small", "type": "primary" }, on: { "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleSuccess($event); } }, nativeOn: { "click": function click($event) { return _vm.handleSuccess($event); }, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) { return null; }return _vm.handleLastTab($event); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) { return null; }return _vm.closer($event); }] } }, [_vm._v(_vm._s(_vm.t('i.datepicker.ok')))])], 1)]) : _vm._e()])], 1)], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _content = __webpack_require__(145); var _content2 = _interopRequireDefault(_content); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _content2.default; /***/ }), /* 391 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 392 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _datePicker = __webpack_require__(393); var _datePicker2 = _interopRequireDefault(_datePicker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _datePicker2.default; /***/ }), /* 393 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _picker = __webpack_require__(147); var _picker2 = _interopRequireDefault(_picker); var _date = __webpack_require__(396); var _date2 = _interopRequireDefault(_date); var _dateRange = __webpack_require__(409); var _dateRange2 = _interopRequireDefault(_dateRange); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'CalendarPicker', mixins: [_picker2.default], props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['year', 'month', 'date', 'daterange', 'datetime', 'datetimerange']); }, default: 'date' } }, components: { DatePickerPanel: _date2.default, RangeDatePickerPanel: _dateRange2.default }, computed: { panel: function panel() { var isRange = this.type === 'daterange' || this.type === 'datetimerange'; return isRange ? 'RangeDatePickerPanel' : 'DatePickerPanel'; }, ownPickerProps: function ownPickerProps() { return this.options; } } }; /***/ }), /* 394 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; (function (main) { 'use strict'; var fecha = {}; var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g; var twoDigits = /\d\d?/; var threeDigits = /\d{3}/; var fourDigits = /\d{4}/; var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i; var noop = function noop() {}; function shorten(arr, sLen) { var newArr = []; for (var i = 0, len = arr.length; i < len; i++) { newArr.push(arr[i].substr(0, sLen)); } return newArr; } function monthUpdate(arrName) { return function (d, v, i18n) { var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase()); if (~index) { d.month = index; } }; } function pad(val, len) { val = String(val); len = len || 2; while (val.length < len) { val = '0' + val; } return val; } var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var monthNamesShort = shorten(monthNames, 3); var dayNamesShort = shorten(dayNames, 3); fecha.i18n = { dayNamesShort: dayNamesShort, dayNames: dayNames, monthNamesShort: monthNamesShort, monthNames: monthNames, amPm: ['am', 'pm'], DoFn: function DoFn(D) { return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10]; } }; var formatFlags = { D: function D(dateObj) { return dateObj.getDay(); }, DD: function DD(dateObj) { return pad(dateObj.getDay()); }, Do: function Do(dateObj, i18n) { return i18n.DoFn(dateObj.getDate()); }, d: function d(dateObj) { return dateObj.getDate(); }, dd: function dd(dateObj) { return pad(dateObj.getDate()); }, ddd: function ddd(dateObj, i18n) { return i18n.dayNamesShort[dateObj.getDay()]; }, dddd: function dddd(dateObj, i18n) { return i18n.dayNames[dateObj.getDay()]; }, M: function M(dateObj) { return dateObj.getMonth() + 1; }, MM: function MM(dateObj) { return pad(dateObj.getMonth() + 1); }, MMM: function MMM(dateObj, i18n) { return i18n.monthNamesShort[dateObj.getMonth()]; }, MMMM: function MMMM(dateObj, i18n) { return i18n.monthNames[dateObj.getMonth()]; }, yy: function yy(dateObj) { return String(dateObj.getFullYear()).substr(2); }, yyyy: function yyyy(dateObj) { return dateObj.getFullYear(); }, h: function h(dateObj) { return dateObj.getHours() % 12 || 12; }, hh: function hh(dateObj) { return pad(dateObj.getHours() % 12 || 12); }, H: function H(dateObj) { return dateObj.getHours(); }, HH: function HH(dateObj) { return pad(dateObj.getHours()); }, m: function m(dateObj) { return dateObj.getMinutes(); }, mm: function mm(dateObj) { return pad(dateObj.getMinutes()); }, s: function s(dateObj) { return dateObj.getSeconds(); }, ss: function ss(dateObj) { return pad(dateObj.getSeconds()); }, S: function S(dateObj) { return Math.round(dateObj.getMilliseconds() / 100); }, SS: function SS(dateObj) { return pad(Math.round(dateObj.getMilliseconds() / 10), 2); }, SSS: function SSS(dateObj) { return pad(dateObj.getMilliseconds(), 3); }, a: function a(dateObj, i18n) { return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1]; }, A: function A(dateObj, i18n) { return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase(); }, ZZ: function ZZ(dateObj) { var o = dateObj.getTimezoneOffset(); return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4); } }; var parseFlags = { d: [twoDigits, function (d, v) { d.day = v; }], M: [twoDigits, function (d, v) { d.month = v - 1; }], yy: [twoDigits, function (d, v) { var da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2); d.year = '' + (v > 68 ? cent - 1 : cent) + v; }], h: [twoDigits, function (d, v) { d.hour = v; }], m: [twoDigits, function (d, v) { d.minute = v; }], s: [twoDigits, function (d, v) { d.second = v; }], yyyy: [fourDigits, function (d, v) { d.year = v; }], S: [/\d/, function (d, v) { d.millisecond = v * 100; }], SS: [/\d{2}/, function (d, v) { d.millisecond = v * 10; }], SSS: [threeDigits, function (d, v) { d.millisecond = v; }], D: [twoDigits, noop], ddd: [word, noop], MMM: [word, monthUpdate('monthNamesShort')], MMMM: [word, monthUpdate('monthNames')], a: [word, function (d, v, i18n) { var val = v.toLowerCase(); if (val === i18n.amPm[0]) { d.isPm = false; } else if (val === i18n.amPm[1]) { d.isPm = true; } }], ZZ: [/[\+\-]\d\d:?\d\d/, function (d, v) { var parts = (v + '').match(/([\+\-]|\d\d)/gi), minutes; if (parts) { minutes = +(parts[1] * 60) + parseInt(parts[2], 10); d.timezoneOffset = parts[0] === '+' ? minutes : -minutes; } }] }; parseFlags.DD = parseFlags.DD; parseFlags.dddd = parseFlags.ddd; parseFlags.Do = parseFlags.dd = parseFlags.d; parseFlags.mm = parseFlags.m; parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h; parseFlags.MM = parseFlags.M; parseFlags.ss = parseFlags.s; parseFlags.A = parseFlags.a; fecha.masks = { 'default': 'ddd MMM dd yyyy HH:mm:ss', shortDate: 'M/D/yy', mediumDate: 'MMM d, yyyy', longDate: 'MMMM d, yyyy', fullDate: 'dddd, MMMM d, yyyy', shortTime: 'HH:mm', mediumTime: 'HH:mm:ss', longTime: 'HH:mm:ss.SSS' }; fecha.format = function (dateObj, mask, i18nSettings) { var i18n = i18nSettings || fecha.i18n; if (typeof dateObj === 'number') { dateObj = new Date(dateObj); } if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) { throw new Error('Invalid Date in fecha.format'); } mask = fecha.masks[mask] || mask || fecha.masks['default']; return mask.replace(token, function ($0) { return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1); }); }; fecha.parse = function (dateStr, format, i18nSettings) { var i18n = i18nSettings || fecha.i18n; if (typeof format !== 'string') { throw new Error('Invalid format in fecha.parse'); } format = fecha.masks[format] || format; if (dateStr.length > 1000) { return false; } var isValid = true; var dateInfo = {}; format.replace(token, function ($0) { if (parseFlags[$0]) { var info = parseFlags[$0]; var index = dateStr.search(info[0]); if (!~index) { isValid = false; } else { dateStr.replace(info[0], function (result) { info[1](dateInfo, result, i18n); dateStr = dateStr.substr(index + result.length); return result; }); } } return parseFlags[$0] ? '' : $0.slice(1, $0.length - 1); }); if (!isValid) { return false; } var today = new Date(); if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) { dateInfo.hour = +dateInfo.hour + 12; } else if (dateInfo.isPm === false && +dateInfo.hour === 12) { dateInfo.hour = 0; } var date; if (dateInfo.timezoneOffset != null) { dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset; date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0)); } else { date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0); } return date; }; if (typeof module !== 'undefined' && module.exports) { module.exports = fecha; } else if (true) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return fecha; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else { main.fecha = fecha; } })(undefined); /***/ }), /* 395 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside:mousedown.capture", value: _vm.handleClose, expression: "handleClose", arg: "mousedown", modifiers: { "capture": true } }, { name: "click-outside", rawName: "v-click-outside:touchstart.capture", value: _vm.handleClose, expression: "handleClose", arg: "touchstart", modifiers: { "capture": true } }, { name: "click-outside", rawName: "v-click-outside.capture", value: _vm.handleClose, expression: "handleClose", modifiers: { "capture": true } }], class: _vm.wrapperClasses }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-rel'] }, [_vm._t("default", [_c('i-input', { key: _vm.forceInputRerender, ref: "input", class: [_vm.prefixCls + '-editor'], attrs: { "element-id": _vm.elementId, "readonly": !_vm.editable || _vm.readonly, "disabled": _vm.disabled, "size": _vm.size, "placeholder": _vm.placeholder, "value": _vm.visualValue, "name": _vm.name }, on: { "on-input-change": _vm.handleInputChange, "on-focus": _vm.handleFocus, "on-blur": _vm.handleBlur }, nativeOn: { "click": function click($event) { return _vm.handleFocus($event); }, "keydown": function keydown($event) { return _vm.handleKeydown($event); }, "mouseenter": function mouseenter($event) { return _vm.handleInputMouseenter($event); }, "mouseleave": function mouseleave($event) { return _vm.handleInputMouseleave($event); } } }, [_c('Icon', { attrs: { "slot": "suffix", "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize }, on: { "click": _vm.handleIconClick }, slot: "suffix" })], 1)])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.opened, expression: "opened" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "drop", class: (_obj = {}, _obj[_vm.prefixCls + '-transfer'] = _vm.transfer, _obj), attrs: { "placement": _vm.placement, "data-transfer": _vm.transfer, "transfer": _vm.transfer }, nativeOn: { "click": function click($event) { return _vm.handleTransferClick($event); } } }, [_c('div', [_c(_vm.panel, _vm._b({ ref: "pickerPanel", tag: "component", attrs: { "visible": _vm.visible, "showTime": _vm.type === 'datetime' || _vm.type === 'datetimerange', "confirm": _vm.isConfirm, "selectionMode": _vm.selectionMode, "steps": _vm.steps, "format": _vm.format, "value": _vm.internalValue, "start-date": _vm.startDate, "split-panels": _vm.splitPanels, "show-week-numbers": _vm.showWeekNumbers, "picker-type": _vm.type, "multiple": _vm.multiple, "focused-date": _vm.focusedDate, "time-picker-options": _vm.timePickerOptions }, on: { "on-pick": _vm.onPick, "on-pick-clear": _vm.handleClear, "on-pick-success": _vm.onPickSuccess, "on-pick-click": function onPickClick($event) { _vm.disableClickOutSide = true; }, "on-selection-mode-change": _vm.onSelectionModeChange } }, 'component', _vm.ownPickerProps, false))], 1)])], 1)], 1); var _obj; }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 396 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_vue__ = __webpack_require__(149); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_date_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_date_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_date_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_vue__ = __webpack_require__(408); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_date_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 397 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { Generator: __webpack_require__(398), addLabels: __webpack_require__(399) } /***/ }), /* 398 */ /***/ (function(module, exports) { // calendar with 8 column x 7 rows var oneDay = 1000 * 60 * 60 * 24; function daysInMonth(year, month) { return new Date(year, month + 1, 0).getDate(); } function getYear(year, month, weekNr){ if (month === 0 && weekNr > 50) return year - 1; else if(month === 11 && weekNr < 10) return year + 1; else return year; } function getDateInfo(y, m, d, iso) { if (m > 11){ m = 0; y++; } var currentDay = new Date(y, m, d); if (iso) currentDay.setDate(currentDay.getDate() + 4 - (currentDay.getDay() || 7)); var year = iso ? currentDay.getFullYear() : y; var firstOfJanuary = new Date(year, 0, 1); var numberOfDays = 1 + Math.round((currentDay - firstOfJanuary) / oneDay); if (!iso) numberOfDays += firstOfJanuary.getDay(); var w = Math.ceil(numberOfDays / 7); if (!iso) { var initialDay = new Date(y, m, d); var beginOfNextYear = new Date(y + 1, 0, 1); var startDayOfNextYear = beginOfNextYear.getDay(); if (initialDay.getTime() >= beginOfNextYear.getTime() - (oneDay * startDayOfNextYear)) w = 1; } return w; } function getMonthCalender(year, month, iteratorFns){ // config passed by binding var lang = this.lang || 'en'; var onlyDays = this.onlyDays; var weekStart = typeof this.weekStart === 'undefined' ? 1 : this.weekStart; var iso = weekStart === 1; var cells = []; var monthStartDate = new Date(year, month, 1); // make a date object var dayOfWeek = monthStartDate.getDay() || (iso ? 7 : 0); // month week day for day 1 var currentDay = weekStart - dayOfWeek; // starting position of first day in the week var weekNr = getDateInfo(year, month, 1, iso); // get week number of month start var maxDays = daysInMonth(year, month); // total days in current month var lastMonthMaxDays = daysInMonth(year, month - 1); var currentMonth, day, dayBefore; var currentYear = getYear(year, month, weekNr); var returnObject = { month: month, year: year, daysInMonth: maxDays }; for (var i = 0; i < 7; i++){ // 7 rows in the calendar dayBefore = currentDay; for (var j = 0; j < 8; j++){ // 8 columns: week nr + 7 days p/ week if (i > 0 && j > 0) currentDay++; // not first row, not week nr column if (currentDay > maxDays || currentDay < 1){ // day belongs to sibling month // calculate day in sibling month day = currentDay > maxDays ? currentDay - maxDays : lastMonthMaxDays + currentDay; currentMonth = currentDay > maxDays ? month + 1 : month - 1; } else { day = currentDay; currentMonth = month; } var type = (function(){ if (j === 0) return 'weekLabel'; else if (i === 0) return 'dayLabel'; else if (currentDay < 1) return 'prevMonth'; else if (currentDay > maxDays) return 'nextMonth'; else return 'monthDay'; })(); var isDay = dayBefore !== currentDay && i > 0; var dayData = { desc: isDay ? day : weekNr, week: weekNr, type: type, format: iso ? 'ISO 8601' : 'US', date: isDay ? new Date(Date.UTC(year, currentMonth, day)) : false, year: currentYear, index: cells.length }; if (iteratorFns){ if (typeof iteratorFns === "function") dayData = iteratorFns.call(returnObject, dayData, lang); else iteratorFns.forEach(function(fn){ dayData = fn.call(returnObject, dayData, lang); }); } if (onlyDays && isDay) cells.push(dayData); // add only days else if (!onlyDays) cells.push(dayData); // add also week numbers and labels } if (i > 0) weekNr = getDateInfo(year, currentMonth, day + 1, iso); currentYear = getYear(year, month, weekNr); } returnObject.cells = cells; return returnObject; } module.exports = function (config){ return getMonthCalender.bind(config); } /***/ }), /* 399 */ /***/ (function(module, exports, __webpack_require__) { // calendar with 8 column x 7 rows var labels = __webpack_require__(400); function isIterable(variable){ if (variable == null) return false; if (variable.constructor === Array) return true; if (variable.constructor === Object) return true; return false; } function merge(_new, _old){ for (var prop in _new){ if (!_old[prop]) _old[prop] = _new[prop]; else if (isIterable(_new[prop])) merge(_new[prop], _old[prop]); } } function addLabels(dayObject, lang){ var cssClass = [labels.classes[dayObject.type]]; if (dayObject.class) dayObject.class = (typeof dayObject.class == 'string' ? [dayObject.class] : dayObject.class).concat(cssClass); else dayObject.class = cssClass; if (dayObject.type.indexOf('Label') > 0){ if (dayObject.index == 0 && labels.weekPlaceholder) dayObject.desc = labels.weekPlaceholder; else if (dayObject.index < 8) dayObject.desc = labels.columnNames[lang][dayObject.index]; else if (dayObject.index % 8 == 0) dayObject.desc = dayObject.week; } if (dayObject.date) dayObject.monthName = labels.monthNames[lang][dayObject.date.getMonth()]; if (!this.monthName) this.monthName = labels.monthNames[lang][this.month]; if (!this.labels) this.labels = { monthNames: labels.monthNames[lang], columnNames: labels.columnNames[lang], classes: labels.classes } return dayObject; } addLabels.setLabels = function(newOptions){ merge(newOptions, labels); }; module.exports = addLabels; /***/ }), /* 400 */ /***/ (function(module, exports) { module.exports = { weekPlaceholder: '', columnNames: { en: { 0: 'w', 1: 'monday', 2: 'tuesday', 3: 'wednesday', 4: 'thursday', 5: 'friday', 6: 'saturday', 7: 'sunday' }, sv: { 0: 'v', 1: 'mndag', 2: 'tisdag', 3: 'onsdag', 4: 'torsdag', 5: 'fredag', 6: 'lrdag', 7: 'sndag' }, pt: { 0: 's', 1: 'segunda', 2: 'tera', 3: 'quarta', 4: 'quinta', 5: 'sexta', 6: 'sbado', 7: 'domingo' } }, monthNames: { en: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], sv: [ "januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december" ], pt: [ "Janeiro", "Fevereiro", "Maro", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ] }, classes: { dayLabel: 'day-of-week', weekLabel: 'week-number', prevMonth: 'inactive', nextMonth: 'inactive', monthDay: 'day-in-month' } }; /***/ }), /* 401 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_c('div', { class: [_vm.prefixCls + '-header'] }, _vm._l(_vm.headerDays, function (day) { return _c('span', { key: day }, [_vm._v("\n " + _vm._s(day) + "\n ")]); }), 0), _vm._v(" "), _vm._l(_vm.cells, function (cell, i) { return _c('span', { key: String(cell.date) + i, class: _vm.getCellCls(cell), on: { "click": function click($event) { return _vm.handleClick(cell, $event); }, "mouseenter": function mouseenter($event) { return _vm.handleMouseMove(cell); } } }, [_c('em', [_vm._v(_vm._s(cell.desc))])]); })], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 402 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, _vm._l(_vm.cells, function (cell) { return _c('span', { class: _vm.getCellCls(cell), on: { "click": function click($event) { return _vm.handleClick(cell); }, "mouseenter": function mouseenter($event) { return _vm.handleMouseMove(cell); } } }, [_c('em', [_vm._v(_vm._s(cell.date.getFullYear()))])]); }), 0); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 403 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, _vm._l(_vm.cells, function (cell) { return _c('span', { class: _vm.getCellCls(cell), on: { "click": function click($event) { return _vm.handleClick(cell); }, "mouseenter": function mouseenter($event) { return _vm.handleMouseMove(cell); } } }, [_c('em', [_vm._v(_vm._s(cell.text))])]); }), 0); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_c('div', { ref: "hours", class: [_vm.prefixCls + '-list'] }, [_c('ul', { class: [_vm.prefixCls + '-ul'] }, _vm._l(_vm.hoursList, function (item) { return _c('li', { directives: [{ name: "show", rawName: "v-show", value: !item.hide, expression: "!item.hide" }], class: _vm.getCellCls(item), on: { "click": function click($event) { return _vm.handleClick('hours', item); } } }, [_vm._v(_vm._s(_vm.formatTime(item.text)))]); }), 0)]), _vm._v(" "), _c('div', { ref: "minutes", class: [_vm.prefixCls + '-list'] }, [_c('ul', { class: [_vm.prefixCls + '-ul'] }, _vm._l(_vm.minutesList, function (item) { return _c('li', { directives: [{ name: "show", rawName: "v-show", value: !item.hide, expression: "!item.hide" }], class: _vm.getCellCls(item), on: { "click": function click($event) { return _vm.handleClick('minutes', item); } } }, [_vm._v(_vm._s(_vm.formatTime(item.text)))]); }), 0)]), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.showSeconds, expression: "showSeconds" }], ref: "seconds", class: [_vm.prefixCls + '-list'] }, [_c('ul', { class: [_vm.prefixCls + '-ul'] }, _vm._l(_vm.secondsList, function (item) { return _c('li', { directives: [{ name: "show", rawName: "v-show", value: !item.hide, expression: "!item.hide" }], class: _vm.getCellCls(item), on: { "click": function click($event) { return _vm.handleClick('seconds', item); } } }, [_vm._v(_vm._s(_vm.formatTime(item.text)))]); }), 0)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls + '-confirm'], on: { "!keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) { return null; }return _vm.handleTab($event); } } }, [_vm.showTime ? _c('i-button', { class: _vm.timeClasses, attrs: { "size": "small", "type": "text", "disabled": _vm.timeDisabled }, on: { "click": _vm.handleToggleTime } }, [_vm._v("\n " + _vm._s(_vm.labels.time) + "\n ")]) : _vm._e(), _vm._v(" "), _c('i-button', { attrs: { "size": "small" }, nativeOn: { "click": function click($event) { return _vm.handleClear($event); }, "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleClear($event); } } }, [_vm._v("\n " + _vm._s(_vm.labels.clear) + "\n ")]), _vm._v(" "), _c('i-button', { attrs: { "size": "small", "type": "primary" }, nativeOn: { "click": function click($event) { return _vm.handleSuccess($event); }, "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.handleSuccess($event); } } }, [_vm._v("\n " + _vm._s(_vm.labels.ok) + "\n ")])], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls + '-body-wrapper'], on: { "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_c('div', { class: [_vm.prefixCls + '-body'] }, [_vm.showDate ? _c('div', { class: [_vm.timePrefixCls + '-header'] }, [_vm._v(_vm._s(_vm.visibleDate))]) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-content'] }, [_c('time-spinner', { ref: "timeSpinner", attrs: { "show-seconds": _vm.showSeconds, "steps": _vm.steps, "hours": _vm.timeSlots[0], "minutes": _vm.timeSlots[1], "seconds": _vm.timeSlots[2], "disabled-hours": _vm.disabledHMS.disabledHours, "disabled-minutes": _vm.disabledHMS.disabledMinutes, "disabled-seconds": _vm.disabledHMS.disabledSeconds, "hide-disabled-options": _vm.hideDisabledOptions }, on: { "on-change": _vm.handleChange, "on-pick-click": _vm.handlePickClick } })], 1), _vm._v(" "), _vm.confirm ? _c('Confirm', { on: { "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess } }) : _vm._e()], 1)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 407 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', [_vm.datePanelLabel ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.datePanelLabel.labels[0].type === 'year' || _vm.currentView === 'date', expression: "datePanelLabel.labels[0].type === 'year' || currentView === 'date'" }], class: [_vm.datePrefixCls + '-header-label'], on: { "click": _vm.datePanelLabel.labels[0].handler } }, [_vm._v(_vm._s(_vm.datePanelLabel.labels[0].label))]) : _vm._e(), _vm._v(" "), _vm.datePanelLabel && _vm.currentView === 'date' ? [_vm._v(_vm._s(_vm.datePanelLabel.separator))] : _vm._e(), _vm._v(" "), _vm.datePanelLabel ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.datePanelLabel.labels[1].type === 'year' || _vm.currentView === 'date', expression: "datePanelLabel.labels[1].type === 'year' || currentView === 'date'" }], class: [_vm.datePrefixCls + '-header-label'], on: { "click": _vm.datePanelLabel.labels[1].handler } }, [_vm._v(_vm._s(_vm.datePanelLabel.labels[1].label))]) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 408 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, on: { "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_vm.shortcuts.length ? _c('div', { class: [_vm.prefixCls + '-sidebar'] }, _vm._l(_vm.shortcuts, function (shortcut) { return _c('div', { class: [_vm.prefixCls + '-shortcut'], on: { "click": function click($event) { return _vm.handleShortcutClick(shortcut); } } }, [_vm._v(_vm._s(shortcut.text))]); }), 0) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'] }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView !== 'time', expression: "currentView !== 'time'" }], class: [_vm.datePrefixCls + '-header'] }, [_c('span', { class: _vm.iconBtnCls('prev', '-double'), on: { "click": function click($event) { return _vm.changeYear(-1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1), _vm._v(" "), _vm.pickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('prev'), on: { "click": function click($event) { return _vm.changeMonth(-1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1) : _vm._e(), _vm._v(" "), _c('date-panel-label', { attrs: { "date-panel-label": _vm.datePanelLabel, "current-view": _vm.pickerTable.split('-').shift(), "date-prefix-cls": _vm.datePrefixCls } }), _vm._v(" "), _c('span', { class: _vm.iconBtnCls('next', '-double'), on: { "click": function click($event) { return _vm.changeYear(+1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1), _vm._v(" "), _vm.pickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('next'), on: { "click": function click($event) { return _vm.changeMonth(+1); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1) : _vm._e()], 1), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-content'] }, [_vm.currentView !== 'time' ? _c(_vm.pickerTable, { ref: "pickerTable", tag: "component", attrs: { "table-date": _vm.panelDate, "show-week-numbers": _vm.showWeekNumbers, "value": _vm.dates, "selection-mode": _vm.selectionMode, "disabled-date": _vm.disabledDate, "focused-date": _vm.focusedDate }, on: { "on-pick": _vm.panelPickerHandlers, "on-pick-click": _vm.handlePickClick } }) : _vm._e()], 1), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.isTime, expression: "isTime" }], class: [_vm.prefixCls + '-content'] }, [_vm.currentView === 'time' ? _c('time-picker', _vm._b({ ref: "timePicker", attrs: { "value": _vm.dates, "format": _vm.format, "time-disabled": _vm.timeDisabled, "disabled-date": _vm.disabledDate, "focused-date": _vm.focusedDate }, on: { "on-pick": _vm.handlePick, "on-pick-click": _vm.handlePickClick, "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess, "on-pick-toggle-time": _vm.handleToggleTime } }, 'time-picker', _vm.timePickerOptions, false)) : _vm._e()], 1), _vm._v(" "), _vm.confirm ? _c('Confirm', { attrs: { "show-time": _vm.showTime, "is-time": _vm.isTime }, on: { "on-pick-toggle-time": _vm.handleToggleTime, "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess } }) : _vm._e()], 1)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 409 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue__ = __webpack_require__(164); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_range_vue__ = __webpack_require__(411); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_range_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_range_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_date_range_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_range_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_date_range_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 410 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, on: { "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_c('div', { class: [_vm.prefixCls + '-body'] }, [_c('div', { class: [_vm.prefixCls + '-content', _vm.prefixCls + '-content-left'] }, [_c('div', { class: [_vm.timePrefixCls + '-header'] }, [_vm.showDate ? [_vm._v(_vm._s(_vm.leftDatePanelLabel))] : [_vm._v(_vm._s(_vm.t('i.datepicker.startTime')))]], 2), _vm._v(" "), _c('time-spinner', { ref: "timeSpinner", attrs: { "steps": _vm.steps, "show-seconds": _vm.showSeconds, "hours": _vm.value[0] && _vm.dateStart.getHours(), "minutes": _vm.value[0] && _vm.dateStart.getMinutes(), "seconds": _vm.value[0] && _vm.dateStart.getSeconds(), "disabled-hours": _vm.disabledHours, "disabled-minutes": _vm.disabledMinutes, "disabled-seconds": _vm.disabledSeconds, "hide-disabled-options": _vm.hideDisabledOptions }, on: { "on-change": _vm.handleStartChange, "on-pick-click": _vm.handlePickClick } })], 1), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-content', _vm.prefixCls + '-content-right'] }, [_c('div', { class: [_vm.timePrefixCls + '-header'] }, [_vm.showDate ? [_vm._v(_vm._s(_vm.rightDatePanelLabel))] : [_vm._v(_vm._s(_vm.t('i.datepicker.endTime')))]], 2), _vm._v(" "), _c('time-spinner', { ref: "timeSpinnerEnd", attrs: { "steps": _vm.steps, "show-seconds": _vm.showSeconds, "hours": _vm.value[1] && _vm.dateEnd.getHours(), "minutes": _vm.value[1] && _vm.dateEnd.getMinutes(), "seconds": _vm.value[1] && _vm.dateEnd.getSeconds(), "disabled-hours": _vm.disabledHours, "disabled-minutes": _vm.disabledMinutes, "disabled-seconds": _vm.disabledSeconds, "hide-disabled-options": _vm.hideDisabledOptions }, on: { "on-change": _vm.handleEndChange, "on-pick-click": _vm.handlePickClick } })], 1), _vm._v(" "), _vm.confirm ? _c('Confirm', { on: { "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess } }) : _vm._e()], 1)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 411 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, on: { "mousedown": function mousedown($event) { $event.preventDefault(); } } }, [_vm.shortcuts.length ? _c('div', { class: [_vm.prefixCls + '-sidebar'] }, _vm._l(_vm.shortcuts, function (shortcut) { return _c('div', { class: [_vm.prefixCls + '-shortcut'], on: { "click": function click($event) { return _vm.handleShortcutClick(shortcut); } } }, [_vm._v(_vm._s(shortcut.text))]); }), 0) : _vm._e(), _vm._v(" "), _c('div', { class: _vm.panelBodyClasses }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: !_vm.isTime, expression: "!isTime" }], class: [_vm.prefixCls + '-content', _vm.prefixCls + '-content-left'] }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView !== 'time', expression: "currentView !== 'time'" }], class: [_vm.datePrefixCls + '-header'] }, [_c('span', { class: _vm.iconBtnCls('prev', '-double'), on: { "click": function click($event) { return _vm.prevYear('left'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1), _vm._v(" "), _vm.leftPickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('prev'), on: { "click": function click($event) { return _vm.prevMonth('left'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1) : _vm._e(), _vm._v(" "), _c('date-panel-label', { attrs: { "date-panel-label": _vm.leftDatePanelLabel, "current-view": _vm.leftDatePanelView, "date-prefix-cls": _vm.datePrefixCls } }), _vm._v(" "), _vm.splitPanels || _vm.leftPickerTable !== 'date-table' ? _c('span', { class: _vm.iconBtnCls('next', '-double'), on: { "click": function click($event) { return _vm.nextYear('left'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1) : _vm._e(), _vm._v(" "), _vm.splitPanels && _vm.leftPickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('next'), on: { "click": function click($event) { return _vm.nextMonth('left'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1) : _vm._e()], 1), _vm._v(" "), _vm.currentView !== 'time' ? _c(_vm.leftPickerTable, { ref: "leftYearTable", tag: "component", attrs: { "table-date": _vm.leftPanelDate, "selection-mode": "range", "disabled-date": _vm.disabledDate, "range-state": _vm.rangeState, "show-week-numbers": _vm.showWeekNumbers, "value": _vm.preSelecting.left ? [_vm.dates[0]] : _vm.dates, "focused-date": _vm.focusedDate }, on: { "on-change-range": _vm.handleChangeRange, "on-pick": _vm.panelPickerHandlers.left, "on-pick-click": _vm.handlePickClick } }) : _vm._e()], 1), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: !_vm.isTime, expression: "!isTime" }], class: [_vm.prefixCls + '-content', _vm.prefixCls + '-content-right'] }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView !== 'time', expression: "currentView !== 'time'" }], class: [_vm.datePrefixCls + '-header'] }, [_vm.splitPanels || _vm.rightPickerTable !== 'date-table' ? _c('span', { class: _vm.iconBtnCls('prev', '-double'), on: { "click": function click($event) { return _vm.prevYear('right'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1) : _vm._e(), _vm._v(" "), _vm.splitPanels && _vm.rightPickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('prev'), on: { "click": function click($event) { return _vm.prevMonth('right'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1) : _vm._e(), _vm._v(" "), _c('date-panel-label', { attrs: { "date-panel-label": _vm.rightDatePanelLabel, "current-view": _vm.rightDatePanelView, "date-prefix-cls": _vm.datePrefixCls } }), _vm._v(" "), _c('span', { class: _vm.iconBtnCls('next', '-double'), on: { "click": function click($event) { return _vm.nextYear('right'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1), _vm._v(" "), _vm.rightPickerTable === 'date-table' ? _c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentView === 'date', expression: "currentView === 'date'" }], class: _vm.iconBtnCls('next'), on: { "click": function click($event) { return _vm.nextMonth('right'); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1) : _vm._e()], 1), _vm._v(" "), _vm.currentView !== 'time' ? _c(_vm.rightPickerTable, { ref: "rightYearTable", tag: "component", attrs: { "table-date": _vm.rightPanelDate, "selection-mode": "range", "range-state": _vm.rangeState, "disabled-date": _vm.disabledDate, "show-week-numbers": _vm.showWeekNumbers, "value": _vm.preSelecting.right ? [_vm.dates[_vm.dates.length - 1]] : _vm.dates, "focused-date": _vm.focusedDate }, on: { "on-change-range": _vm.handleChangeRange, "on-pick": _vm.panelPickerHandlers.right, "on-pick-click": _vm.handlePickClick } }) : _vm._e()], 1), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.isTime, expression: "isTime" }], class: [_vm.prefixCls + '-content'] }, [_vm.currentView === 'time' ? _c('time-picker', _vm._b({ ref: "timePicker", attrs: { "value": _vm.dates, "format": _vm.format, "time-disabled": _vm.timeDisabled }, on: { "on-pick": _vm.handleRangePick, "on-pick-click": _vm.handlePickClick, "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess, "on-pick-toggle-time": _vm.handleToggleTime } }, 'time-picker', _vm.timePickerOptions, false)) : _vm._e()], 1), _vm._v(" "), _vm.confirm ? _c('Confirm', { attrs: { "show-time": _vm.showTime, "is-time": _vm.isTime, "time-disabled": _vm.timeDisabled }, on: { "on-pick-toggle-time": _vm.handleToggleTime, "on-pick-clear": _vm.handlePickClear, "on-pick-success": _vm.handlePickSuccess } }) : _vm._e()], 1)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 412 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _divider = __webpack_require__(413); var _divider2 = _interopRequireDefault(_divider); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _divider2.default; /***/ }), /* 413 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_divider_vue__ = __webpack_require__(167); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_divider_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_divider_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_divider_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_divider_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_divider_vue__ = __webpack_require__(414); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_divider_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_divider_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_divider_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_divider_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_divider_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 414 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm.hasSlot ? _c('span', { class: _vm.slotClasses }, [_vm._t("default")], 2) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 415 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _drawer = __webpack_require__(416); var _drawer2 = _interopRequireDefault(_drawer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _drawer2.default; /***/ }), /* 416 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue__ = __webpack_require__(168); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_drawer_vue__ = __webpack_require__(417); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_drawer_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_drawer_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_drawer_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_drawer_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_drawer_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 417 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "transfer-dom", rawName: "v-transfer-dom" }], attrs: { "data-transfer": _vm.transfer } }, [_c('transition', { attrs: { "name": "fade" } }, [_vm.mask ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.maskClasses, style: _vm.maskStyle, on: { "click": _vm.handleMask } }) : _vm._e()]), _vm._v(" "), _c('div', { class: _vm.wrapClasses, on: { "click": _vm.handleWrapClick } }, [_c('transition', { attrs: { "name": 'move-' + _vm.placement } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.classes, style: _vm.mainStyles }, [_c('div', { ref: "content", class: _vm.contentClasses }, [_vm.closable ? _c('a', { staticClass: "ivu-drawer-close", on: { "click": _vm.close } }, [_vm._t("close", [_c('Icon', { attrs: { "type": "ios-close" } })])], 2) : _vm._e(), _vm._v(" "), _vm.showHead ? _c('div', { class: [_vm.prefixCls + '-header'] }, [_vm._t("header", [_c('div', { class: [_vm.prefixCls + '-header-inner'] }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'], style: _vm.styles }, [_vm._t("default")], 2)]), _vm._v(" "), _vm.draggable ? _c('div', { staticClass: "ivu-drawer-drag", class: { 'ivu-drawer-drag-left': _vm.placement === 'left' }, on: { "mousedown": _vm.handleTriggerMousedown } }, [_vm._t("trigger", [_c('div', { staticClass: "ivu-drawer-drag-move-trigger" }, [_c('div', { staticClass: "ivu-drawer-drag-move-trigger-point" }, [_c('i'), _c('i'), _c('i'), _c('i'), _c('i')])])])], 2) : _vm._e()])])], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _dropdown = __webpack_require__(419); var _dropdown2 = _interopRequireDefault(_dropdown); var _dropdownMenu = __webpack_require__(421); var _dropdownMenu2 = _interopRequireDefault(_dropdownMenu); var _dropdownItem = __webpack_require__(423); var _dropdownItem2 = _interopRequireDefault(_dropdownItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _dropdown2.default.Menu = _dropdownMenu2.default; _dropdown2.default.Item = _dropdownItem2.default; exports.default = _dropdown2.default; /***/ }), /* 419 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__ = __webpack_require__(169); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__ = __webpack_require__(420); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_dropdown_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside", value: _vm.onClickoutside, expression: "onClickoutside" }], class: [_vm.prefixCls], on: { "mouseenter": _vm.handleMouseenter, "mouseleave": _vm.handleMouseleave } }, [_c('div', { ref: "reference", class: _vm.relClasses, on: { "click": _vm.handleClick, "contextmenu": function contextmenu($event) { $event.preventDefault();return _vm.handleRightClick($event); } } }, [_vm._t("default")], 2), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentVisible, expression: "currentVisible" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "drop", class: _vm.dropdownCls, attrs: { "placement": _vm.placement, "data-transfer": _vm.transfer, "transfer": _vm.transfer }, nativeOn: { "mouseenter": function mouseenter($event) { return _vm.handleMouseenter($event); }, "mouseleave": function mouseleave($event) { return _vm.handleMouseleave($event); } } }, [_vm._t("list")], 2)], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 421 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue__ = __webpack_require__(170); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_menu_vue__ = __webpack_require__(422); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_menu_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_menu_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_dropdown_menu_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_menu_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_menu_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('ul', { staticClass: "ivu-dropdown-menu" }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 423 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue__ = __webpack_require__(171); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_item_vue__ = __webpack_require__(424); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_dropdown_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_dropdown_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 424 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: _vm.classes, on: { "click": _vm.handleClick } }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 425 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _footer = __webpack_require__(172); var _footer2 = _interopRequireDefault(_footer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _footer2.default; /***/ }), /* 426 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 427 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _form = __webpack_require__(428); var _form2 = _interopRequireDefault(_form); var _formItem = __webpack_require__(440); var _formItem2 = _interopRequireDefault(_formItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _form2.default.Item = _formItem2.default; exports.default = _form2.default; /***/ }), /* 428 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_form_vue__ = __webpack_require__(174); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_form_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_form_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_form_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_form_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_vue__ = __webpack_require__(439); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_form_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 429 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(110); __webpack_require__(45); __webpack_require__(51); __webpack_require__(430); __webpack_require__(437); __webpack_require__(438); module.exports = __webpack_require__(6).Promise; /***/ }), /* 430 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var LIBRARY = __webpack_require__(52); var global = __webpack_require__(9); var ctx = __webpack_require__(42); var classof = __webpack_require__(69); var $export = __webpack_require__(10); var isObject = __webpack_require__(28); var aFunction = __webpack_require__(49); var anInstance = __webpack_require__(431); var forOf = __webpack_require__(432); var speciesConstructor = __webpack_require__(176); var task = __webpack_require__(177).set; var microtask = __webpack_require__(434)(); var newPromiseCapabilityModule = __webpack_require__(80); var perform = __webpack_require__(178); var promiseResolve = __webpack_require__(179); var PROMISE = 'Promise'; var TypeError = global.TypeError; var process = global.process; var $Promise = global[PROMISE]; var isNode = classof(process) == 'process'; var empty = function () { /* empty */ }; var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; var USE_NATIVE = !!function () { try { // correct subclassing with @@species support var promise = $Promise.resolve(1); var FakePromise = (promise.constructor = {})[__webpack_require__(11)('species')] = function (exec) { exec(empty, empty); }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise; } catch (e) { /* empty */ } }(); // helpers var isThenable = function (it) { var then; return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; var notify = function (promise, isReject) { if (promise._n) return; promise._n = true; var chain = promise._c; microtask(function () { var value = promise._v; var ok = promise._s == 1; var i = 0; var run = function (reaction) { var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (promise._h == 2) onHandleUnhandled(promise); promise._h = 1; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); // may throw if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(TypeError('Promise-chain cycle')); } else if (then = isThenable(result)) { then.call(result, resolve, reject); } else resolve(result); } else reject(value); } catch (e) { if (domain && !exited) domain.exit(); reject(e); } }; while (chain.length > i) run(chain[i++]); // variable length - can't use forEach promise._c = []; promise._n = false; if (isReject && !promise._h) onUnhandled(promise); }); }; var onUnhandled = function (promise) { task.call(global, function () { var value = promise._v; var unhandled = isUnhandled(promise); var result, handler, console; if (unhandled) { result = perform(function () { if (isNode) { process.emit('unhandledRejection', value, promise); } else if (handler = global.onunhandledrejection) { handler({ promise: promise, reason: value }); } else if ((console = global.console) && console.error) { console.error('Unhandled promise rejection', value); } }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should promise._h = isNode || isUnhandled(promise) ? 2 : 1; } promise._a = undefined; if (unhandled && result.e) throw result.v; }); }; var isUnhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; var onHandleUnhandled = function (promise) { task.call(global, function () { var handler; if (isNode) { process.emit('rejectionHandled', promise); } else if (handler = global.onrejectionhandled) { handler({ promise: promise, reason: promise._v }); } }); }; var $reject = function (value) { var promise = this; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap promise._v = value; promise._s = 2; if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; var $resolve = function (value) { var promise = this; var then; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap try { if (promise === value) throw TypeError("Promise can't be resolved itself"); if (then = isThenable(value)) { microtask(function () { var wrapper = { _w: promise, _d: false }; // wrap try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } catch (e) { $reject.call(wrapper, e); } }); } else { promise._v = value; promise._s = 1; notify(promise, false); } } catch (e) { $reject.call({ _w: promise, _d: false }, e); // wrap } }; // constructor polyfill if (!USE_NATIVE) { // 25.4.3.1 Promise(executor) $Promise = function Promise(executor) { anInstance(this, $Promise, PROMISE, '_h'); aFunction(executor); Internal.call(this); try { executor(ctx($resolve, this, 1), ctx($reject, this, 1)); } catch (err) { $reject.call(this, err); } }; // eslint-disable-next-line no-unused-vars Internal = function Promise(executor) { this._c = []; // <- awaiting reactions this._a = undefined; // <- checked in isUnhandled reactions this._s = 0; // <- state this._d = false; // <- done this._v = undefined; // <- value this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; Internal.prototype = __webpack_require__(435)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected) { var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; reaction.fail = typeof onRejected == 'function' && onRejected; reaction.domain = isNode ? process.domain : undefined; this._c.push(reaction); if (this._a) this._a.push(reaction); if (this._s) notify(this, false); return reaction.promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); OwnPromiseCapability = function () { var promise = new Internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); this.reject = ctx($reject, promise, 1); }; newPromiseCapabilityModule.f = newPromiseCapability = function (C) { return C === $Promise || C === Wrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; } $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); __webpack_require__(53)($Promise, PROMISE); __webpack_require__(436)(PROMISE); Wrapper = __webpack_require__(6)[PROMISE]; // statics $export($export.S + $export.F * !USE_NATIVE, PROMISE, { // 25.4.4.5 Promise.reject(r) reject: function reject(r) { var capability = newPromiseCapability(this); var $$reject = capability.reject; $$reject(r); return capability.promise; } }); $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { // 25.4.4.6 Promise.resolve(x) resolve: function resolve(x) { return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); } }); $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(104)(function (iter) { $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) all: function all(iterable) { var C = this; var capability = newPromiseCapability(C); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function () { var values = []; var index = 0; var remaining = 1; forOf(iterable, false, function (promise) { var $index = index++; var alreadyCalled = false; values.push(undefined); remaining++; C.resolve(promise).then(function (value) { if (alreadyCalled) return; alreadyCalled = true; values[$index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.e) reject(result.v); return capability.promise; }, // 25.4.4.4 Promise.race(iterable) race: function race(iterable) { var C = this; var capability = newPromiseCapability(C); var reject = capability.reject; var result = perform(function () { forOf(iterable, false, function (promise) { C.resolve(promise).then(capability.resolve, reject); }); }); if (result.e) reject(result.v); return capability.promise; } }); /***/ }), /* 431 */ /***/ (function(module, exports) { module.exports = function (it, Constructor, name, forbiddenField) { if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); } return it; }; /***/ }), /* 432 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(42); var call = __webpack_require__(102); var isArrayIter = __webpack_require__(103); var anObject = __webpack_require__(19); var toLength = __webpack_require__(60); var getIterFn = __webpack_require__(68); var BREAK = {}; var RETURN = {}; var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); var f = ctx(fn, that, entries ? 2 : 1); var index = 0; var length, step, iterator, result; if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); // fast case for arrays with default iterator if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); if (result === BREAK || result === RETURN) return result; } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { result = call(iterator, f, step.value, entries); if (result === BREAK || result === RETURN) return result; } }; exports.BREAK = BREAK; exports.RETURN = RETURN; /***/ }), /* 433 */ /***/ (function(module, exports) { // fast apply, path_to_url module.exports = function (fn, args, that) { var un = that === undefined; switch (args.length) { case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) : fn.call(that, args[0]); case 2: return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); case 3: return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); } return fn.apply(that, args); }; /***/ }), /* 434 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(9); var macrotask = __webpack_require__(177).set; var Observer = global.MutationObserver || global.WebKitMutationObserver; var process = global.process; var Promise = global.Promise; var isNode = __webpack_require__(41)(process) == 'process'; module.exports = function () { var head, last, notify; var flush = function () { var parent, fn; if (isNode && (parent = process.domain)) parent.exit(); while (head) { fn = head.fn; head = head.next; try { fn(); } catch (e) { if (head) notify(); else last = undefined; throw e; } } last = undefined; if (parent) parent.enter(); }; // Node.js if (isNode) { notify = function () { process.nextTick(flush); }; // browsers with MutationObserver, except iOS Safari - path_to_url } else if (Observer && !(global.navigator && global.navigator.standalone)) { var toggle = true; var node = document.createTextNode(''); new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new notify = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise } else if (Promise && Promise.resolve) { var promise = Promise.resolve(); notify = function () { promise.then(flush); }; // for other environments - macrotask based on: // - setImmediate // - MessageChannel // - window.postMessag // - onreadystatechange // - setTimeout } else { notify = function () { // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; } return function (fn) { var task = { fn: fn, next: undefined }; if (last) last.next = task; if (!head) { head = task; notify(); } last = task; }; }; /***/ }), /* 435 */ /***/ (function(module, exports, __webpack_require__) { var hide = __webpack_require__(27); module.exports = function (target, src, safe) { for (var key in src) { if (safe && target[key]) target[key] = src[key]; else hide(target, key, src[key]); } return target; }; /***/ }), /* 436 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var global = __webpack_require__(9); var core = __webpack_require__(6); var dP = __webpack_require__(18); var DESCRIPTORS = __webpack_require__(23); var SPECIES = __webpack_require__(11)('species'); module.exports = function (KEY) { var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, get: function () { return this; } }); }; /***/ }), /* 437 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // path_to_url var $export = __webpack_require__(10); var core = __webpack_require__(6); var global = __webpack_require__(9); var speciesConstructor = __webpack_require__(176); var promiseResolve = __webpack_require__(179); $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { var C = speciesConstructor(this, core.Promise || global.Promise); var isFunction = typeof onFinally == 'function'; return this.then( isFunction ? function (x) { return promiseResolve(C, onFinally()).then(function () { return x; }); } : onFinally, isFunction ? function (e) { return promiseResolve(C, onFinally()).then(function () { throw e; }); } : onFinally ); } }); /***/ }), /* 438 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // path_to_url var $export = __webpack_require__(10); var newPromiseCapability = __webpack_require__(80); var perform = __webpack_require__(178); $export($export.S, 'Promise', { 'try': function (callbackfn) { var promiseCapability = newPromiseCapability.f(this); var result = perform(callbackfn); (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); return promiseCapability.promise; } }); /***/ }), /* 439 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('form', { class: _vm.classes, attrs: { "autocomplete": _vm.autocomplete } }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 440 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue__ = __webpack_require__(180); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_item_vue__ = __webpack_require__(463); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_form_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_form_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 441 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || 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]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _util = __webpack_require__(7); var _validator = __webpack_require__(442); var _validator2 = _interopRequireDefault(_validator); var _messages2 = __webpack_require__(462); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Encapsulates a validation schema. * * @param descriptor An object declaring validation rules * for this schema. */ function Schema(descriptor) { this.rules = null; this._messages = _messages2.messages; this.define(descriptor); } Schema.prototype = { messages: function messages(_messages) { if (_messages) { this._messages = (0, _util.deepMerge)((0, _messages2.newMessages)(), _messages); } return this._messages; }, define: function define(rules) { if (!rules) { throw new Error('Cannot configure a schema with no rules'); } if ((typeof rules === 'undefined' ? 'undefined' : _typeof(rules)) !== 'object' || Array.isArray(rules)) { throw new Error('Rules must be an object'); } this.rules = {}; var z = void 0; var item = void 0; for (z in rules) { if (rules.hasOwnProperty(z)) { item = rules[z]; this.rules[z] = Array.isArray(item) ? item : [item]; } } }, validate: function validate(source_) { var _this = this; var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var oc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {}; var source = source_; var options = o; var callback = oc; if (typeof options === 'function') { callback = options; options = {}; } if (!this.rules || Object.keys(this.rules).length === 0) { if (callback) { callback(); } return Promise.resolve(); } function complete(results) { var i = void 0; var errors = []; var fields = {}; function add(e) { if (Array.isArray(e)) { var _errors; errors = (_errors = errors).concat.apply(_errors, e); } else { errors.push(e); } } for (i = 0; i < results.length; i++) { add(results[i]); } if (!errors.length) { errors = null; fields = null; } else { fields = (0, _util.convertFieldsError)(errors); } callback(errors, fields); } if (options.messages) { var messages = this.messages(); if (messages === _messages2.messages) { messages = (0, _messages2.newMessages)(); } (0, _util.deepMerge)(messages, options.messages); options.messages = messages; } else { options.messages = this.messages(); } var arr = void 0; var value = void 0; var series = {}; var keys = options.keys || Object.keys(this.rules); keys.forEach(function (z) { arr = _this.rules[z]; value = source[z]; arr.forEach(function (r) { var rule = r; if (typeof rule.transform === 'function') { if (source === source_) { source = _extends({}, source); } value = source[z] = rule.transform(value); } if (typeof rule === 'function') { rule = { validator: rule }; } else { rule = _extends({}, rule); } rule.validator = _this.getValidationMethod(rule); rule.field = z; rule.fullField = rule.fullField || z; rule.type = _this.getType(rule); if (!rule.validator) { return; } series[z] = series[z] || []; series[z].push({ rule: rule, value: value, source: source, field: z }); }); }); var errorFields = {}; return (0, _util.asyncMap)(series, options, function (data, doIt) { var rule = data.rule; var deep = (rule.type === 'object' || rule.type === 'array') && (_typeof(rule.fields) === 'object' || _typeof(rule.defaultField) === 'object'); deep = deep && (rule.required || !rule.required && data.value); rule.field = data.field; function addFullfield(key, schema) { return _extends({}, schema, { fullField: rule.fullField + '.' + key }); } function cb() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var errors = e; if (!Array.isArray(errors)) { errors = [errors]; } if (!options.suppressWarning && errors.length) { Schema.warning('async-validator:', errors); } if (errors.length && rule.message) { errors = [].concat(rule.message); } errors = errors.map((0, _util.complementError)(rule)); if (options.first && errors.length) { errorFields[rule.field] = 1; return doIt(errors); } if (!deep) { doIt(errors); } else { // if rule is required but the target object // does not exist fail at the rule level and don't // go deeper if (rule.required && !data.value) { if (rule.message) { errors = [].concat(rule.message).map((0, _util.complementError)(rule)); } else if (options.error) { errors = [options.error(rule, (0, _util.format)(options.messages.required, rule.field))]; } else { errors = []; } return doIt(errors); } var fieldsSchema = {}; if (rule.defaultField) { for (var k in data.value) { if (data.value.hasOwnProperty(k)) { fieldsSchema[k] = rule.defaultField; } } } fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); for (var f in fieldsSchema) { if (fieldsSchema.hasOwnProperty(f)) { var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); } } var schema = new Schema(fieldsSchema); schema.messages(options.messages); if (data.rule.options) { data.rule.options.messages = options.messages; data.rule.options.error = options.error; } schema.validate(data.value, data.rule.options || options, function (errs) { var finalErrors = []; if (errors && errors.length) { finalErrors.push.apply(finalErrors, errors); } if (errs && errs.length) { finalErrors.push.apply(finalErrors, errs); } doIt(finalErrors.length ? finalErrors : null); }); } } var res = void 0; if (rule.asyncValidator) { res = rule.asyncValidator(rule, data.value, cb, data.source, options); } else if (rule.validator) { res = rule.validator(rule, data.value, cb, data.source, options); if (res === true) { cb(); } else if (res === false) { cb(rule.message || rule.field + ' fails'); } else if (res instanceof Array) { cb(res); } else if (res instanceof Error) { cb(res.message); } } if (res && res.then) { res.then(function () { return cb(); }, function (e) { return cb(e); }); } }, function (results) { complete(results); }); }, getType: function getType(rule) { if (rule.type === undefined && rule.pattern instanceof RegExp) { rule.type = 'pattern'; } if (typeof rule.validator !== 'function' && rule.type && !_validator2['default'].hasOwnProperty(rule.type)) { throw new Error((0, _util.format)('Unknown rule type %s', rule.type)); } return rule.type || 'string'; }, getValidationMethod: function getValidationMethod(rule) { if (typeof rule.validator === 'function') { return rule.validator; } var keys = Object.keys(rule); var messageIndex = keys.indexOf('message'); if (messageIndex !== -1) { keys.splice(messageIndex, 1); } if (keys.length === 1 && keys[0] === 'required') { return _validator2['default'].required; } return _validator2['default'][this.getType(rule)] || false; } }; Schema.register = function register(type, validator) { if (typeof validator !== 'function') { throw new Error('Cannot register a validator by type, validator is not a function'); } _validator2['default'][type] = validator; }; Schema.warning = _util.warning; Schema.messages = _messages2.messages; exports['default'] = Schema; /***/ }), /* 442 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _string = __webpack_require__(443); var _string2 = _interopRequireDefault(_string); var _method = __webpack_require__(449); var _method2 = _interopRequireDefault(_method); var _number = __webpack_require__(450); var _number2 = _interopRequireDefault(_number); var _boolean = __webpack_require__(451); var _boolean2 = _interopRequireDefault(_boolean); var _regexp = __webpack_require__(452); var _regexp2 = _interopRequireDefault(_regexp); var _integer = __webpack_require__(453); var _integer2 = _interopRequireDefault(_integer); var _float = __webpack_require__(454); var _float2 = _interopRequireDefault(_float); var _array = __webpack_require__(455); var _array2 = _interopRequireDefault(_array); var _object = __webpack_require__(456); var _object2 = _interopRequireDefault(_object); var _enum = __webpack_require__(457); var _enum2 = _interopRequireDefault(_enum); var _pattern = __webpack_require__(458); var _pattern2 = _interopRequireDefault(_pattern); var _date = __webpack_require__(459); var _date2 = _interopRequireDefault(_date); var _required = __webpack_require__(460); var _required2 = _interopRequireDefault(_required); var _type = __webpack_require__(461); var _type2 = _interopRequireDefault(_type); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { string: _string2['default'], method: _method2['default'], number: _number2['default'], boolean: _boolean2['default'], regexp: _regexp2['default'], integer: _integer2['default'], float: _float2['default'], array: _array2['default'], object: _object2['default'], 'enum': _enum2['default'], pattern: _pattern2['default'], date: _date2['default'], url: _type2['default'], hex: _type2['default'], email: _type2['default'], required: _required2['default'] }; /***/ }), /* 443 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Performs validation for string types. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function string(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, 'string'); if (!(0, _util.isEmptyValue)(value, 'string')) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); _rule2['default'].pattern(rule, value, source, errors, options); if (rule.whitespace === true) { _rule2['default'].whitespace(rule, value, source, errors, options); } } } callback(errors); } exports['default'] = string; /***/ }), /* 444 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating whitespace. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function whitespace(rule, value, source, errors, options) { if (/^\s+$/.test(value) || value === '') { errors.push(util.format(options.messages.whitespace, rule.fullField)); } } exports['default'] = whitespace; /***/ }), /* 445 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); var _required = __webpack_require__(181); var _required2 = _interopRequireDefault(_required); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /* eslint max-len:0 */ var pattern = { // path_to_url email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'), hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i }; var types = { integer: function integer(value) { return types.number(value) && parseInt(value, 10) === value; }, float: function float(value) { return types.number(value) && !types.integer(value); }, array: function array(value) { return Array.isArray(value); }, regexp: function regexp(value) { if (value instanceof RegExp) { return true; } try { return !!new RegExp(value); } catch (e) { return false; } }, date: function date(value) { return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function'; }, number: function number(value) { if (isNaN(value)) { return false; } return typeof value === 'number'; }, object: function object(value) { return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !types.array(value); }, method: function method(value) { return typeof value === 'function'; }, email: function email(value) { return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255; }, url: function url(value) { return typeof value === 'string' && !!value.match(pattern.url); }, hex: function hex(value) { return typeof value === 'string' && !!value.match(pattern.hex); } }; /** * Rule for validating the type of a value. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function type(rule, value, source, errors, options) { if (rule.required && value === undefined) { (0, _required2['default'])(rule, value, source, errors, options); return; } var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; var ruleType = rule.type; if (custom.indexOf(ruleType) > -1) { if (!types[ruleType](value)) { errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); } // straight typeof check } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== rule.type) { errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); } } exports['default'] = type; /***/ }), /* 446 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating minimum and maximum allowed values. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function range(rule, value, source, errors, options) { var len = typeof rule.len === 'number'; var min = typeof rule.min === 'number'; var max = typeof rule.max === 'number'; // U+010000U+10FFFFSupplementary Plane var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; var val = value; var key = null; var num = typeof value === 'number'; var str = typeof value === 'string'; var arr = Array.isArray(value); if (num) { key = 'number'; } else if (str) { key = 'string'; } else if (arr) { key = 'array'; } // if the value is not of a supported type for range validation // the validation rule rule should use the // type property to also test for a particular type if (!key) { return false; } if (arr) { val = value.length; } if (str) { // U+010000lengthbug"".lenght !== 3 val = value.replace(spRegexp, '_').length; } if (len) { if (val !== rule.len) { errors.push(util.format(options.messages[key].len, rule.fullField, rule.len)); } } else if (min && !max && val < rule.min) { errors.push(util.format(options.messages[key].min, rule.fullField, rule.min)); } else if (max && !min && val > rule.max) { errors.push(util.format(options.messages[key].max, rule.fullField, rule.max)); } else if (min && max && (val < rule.min || val > rule.max)) { errors.push(util.format(options.messages[key].range, rule.fullField, rule.min, rule.max)); } } exports['default'] = range; /***/ }), /* 447 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } var ENUM = 'enum'; /** * Rule for validating a value exists in an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function enumerable(rule, value, source, errors, options) { rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; if (rule[ENUM].indexOf(value) === -1) { errors.push(util.format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); } } exports['default'] = enumerable; /***/ }), /* 448 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating a regular expression pattern. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function pattern(rule, value, source, errors, options) { if (rule.pattern) { if (rule.pattern instanceof RegExp) { // if a RegExp instance is passed, reset `lastIndex` in case its `global` // flag is accidentally set to `true`, which in a validation scenario // is not necessary and the result might be misleading rule.pattern.lastIndex = 0; if (!rule.pattern.test(value)) { errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } else if (typeof rule.pattern === 'string') { var _pattern = new RegExp(rule.pattern); if (!_pattern.test(value)) { errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } } } exports['default'] = pattern; /***/ }), /* 449 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a function. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function method(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = method; /***/ }), /* 450 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function number(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if (value === '') { value = undefined; } if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = number; /***/ }), /* 451 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(7); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a boolean. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function boolean(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = boolean; /***/ }), /* 452 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates the regular expression type. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function regexp(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value)) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = regexp; /***/ }), /* 453 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number is an integer. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function integer(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = integer; /***/ }), /* 454 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number is a floating point number. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function floatFn(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = floatFn; /***/ }), /* 455 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates an array. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function array(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'array') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, 'array'); if (!(0, _util.isEmptyValue)(value, 'array')) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = array; /***/ }), /* 456 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates an object. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function object(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = object; /***/ }), /* 457 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ENUM = 'enum'; /** * Validates an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function enumerable(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value) { _rule2['default'][ENUM](rule, value, source, errors, options); } } callback(errors); } exports['default'] = enumerable; /***/ }), /* 458 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a regular expression pattern. * * Performs validation when a rule only contains * a pattern property but is not declared as a string type. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function pattern(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value, 'string')) { _rule2['default'].pattern(rule, value, source, errors, options); } } callback(errors); } exports['default'] = pattern; /***/ }), /* 459 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function date(rule, value, callback, source, options) { // console.log('integer rule called %j', rule); var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value)) { var dateObject = void 0; if (typeof value === 'number') { dateObject = new Date(value); } else { dateObject = value; } _rule2['default'].type(rule, dateObject, source, errors, options); if (dateObject) { _rule2['default'].range(rule, dateObject.getTime(), source, errors, options); } } } callback(errors); } exports['default'] = date; /***/ }), /* 460 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function required(rule, value, callback, source, options) { var errors = []; var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : _typeof(value); _rule2['default'].required(rule, value, source, errors, options, type); callback(errors); } exports['default'] = required; /***/ }), /* 461 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(12); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function type(rule, value, callback, source, options) { var ruleType = rule.type; var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, ruleType) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, ruleType); if (!(0, _util.isEmptyValue)(value, ruleType)) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = type; /***/ }), /* 462 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.newMessages = newMessages; function newMessages() { return { 'default': 'Validation error on field %s', required: '%s is required', 'enum': '%s must be one of %s', whitespace: '%s cannot be empty', date: { format: '%s date %s is invalid for format %s', parse: '%s date could not be parsed, %s is invalid ', invalid: '%s date %s is invalid' }, types: { string: '%s is not a %s', method: '%s is not a %s (function)', array: '%s is not an %s', object: '%s is not an %s', number: '%s is not a %s', date: '%s is not a %s', boolean: '%s is not a %s', integer: '%s is not an %s', float: '%s is not a %s', regexp: '%s is not a valid %s', email: '%s is not a valid %s', url: '%s is not a valid %s', hex: '%s is not a valid %s' }, string: { len: '%s must be exactly %s characters', min: '%s must be at least %s characters', max: '%s cannot be longer than %s characters', range: '%s must be between %s and %s characters' }, number: { len: '%s must equal %s', min: '%s cannot be less than %s', max: '%s cannot be greater than %s', range: '%s must be between %s and %s' }, array: { len: '%s must be exactly %s in length', min: '%s cannot be less than %s in length', max: '%s cannot be greater than %s in length', range: '%s must be between %s and %s in length' }, pattern: { mismatch: '%s value %s does not match pattern %s' }, clone: function clone() { var cloned = JSON.parse(JSON.stringify(this)); cloned.clone = this.clone; return cloned; } }; } var messages = exports.messages = newMessages(); /***/ }), /* 463 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm.label || _vm.$slots.label ? _c('label', { class: [_vm.prefixCls + '-label'], style: _vm.labelStyles, attrs: { "for": _vm.labelFor } }, [_vm._t("label", [_vm._v(_vm._s(_vm.label))])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-content'], style: _vm.contentStyles }, [_vm._t("default"), _vm._v(" "), _c('transition', { attrs: { "name": "fade" } }, [_vm.validateState === 'error' && _vm.showMessage && _vm.form.showMessage ? _c('div', { class: [_vm.prefixCls + '-error-tip'] }, [_vm._v(_vm._s(_vm.validateMessage))]) : _vm._e()])], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 464 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _header = __webpack_require__(182); var _header2 = _interopRequireDefault(_header); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _header2.default; /***/ }), /* 465 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 466 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _input = __webpack_require__(37); var _input2 = _interopRequireDefault(_input); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _input2.default; /***/ }), /* 467 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _inputNumber = __webpack_require__(184); var _inputNumber2 = _interopRequireDefault(_inputNumber); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _inputNumber2.default; /***/ }), /* 468 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_c('div', { class: _vm.handlerClasses }, [_c('a', { class: _vm.upClasses, on: { "click": _vm.up } }, [_c('span', { class: _vm.innerUpClasses, on: { "click": _vm.preventDefault } })]), _vm._v(" "), _c('a', { class: _vm.downClasses, on: { "click": _vm.down } }, [_c('span', { class: _vm.innerDownClasses, on: { "click": _vm.preventDefault } })])]), _vm._v(" "), _c('div', { class: _vm.inputWrapClasses }, [_c('input', { ref: "precisionCursor", class: _vm.inputClasses, attrs: { "id": _vm.elementId, "disabled": _vm.disabled, "autocomplete": "off", "spellcheck": "false", "autofocus": _vm.autofocus, "readonly": _vm.readonly || !_vm.editable, "name": _vm.name, "placeholder": _vm.placeholder }, domProps: { "value": _vm.formatterValue }, on: { "focus": _vm.focus, "blur": _vm.blur, "keydown": function keydown($event) { $event.stopPropagation();return _vm.keyDown($event); }, "input": _vm.change, "mouseup": _vm.preventDefault, "change": _vm.change } })])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 469 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _scroll = __webpack_require__(470); var _scroll2 = _interopRequireDefault(_scroll); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _scroll2.default; /***/ }), /* 470 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue__ = __webpack_require__(186); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_scroll_vue__ = __webpack_require__(479); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_scroll_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_scroll_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_scroll_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_scroll_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_scroll_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 471 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(472), __esModule: true }; /***/ }), /* 472 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(473); module.exports = __webpack_require__(6).Math.sign; /***/ }), /* 473 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.28 Math.sign(x) var $export = __webpack_require__(10); $export($export.S, 'Math', { sign: __webpack_require__(474) }); /***/ }), /* 474 */ /***/ (function(module, exports) { // 20.2.2.28 Math.sign(x) module.exports = Math.sign || function sign(x) { // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; /***/ }), /* 475 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** * lodash (Custom Build) <path_to_url * Build: `lodash modularize exports="npm" -o ./` * Released under MIT license <path_to_url * Based on Underscore.js 1.8.3 <path_to_url */ /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** Used as references for various `Number` constants. */ var NAN = 0 / 0; /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g; /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; /** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i; /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](path_to_url#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max, nativeMin = Math.min; /** * Gets the timestamp of the number of milliseconds that have elapsed since * the Unix epoch (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @since 2.4.0 * @category Date * @returns {number} Returns the timestamp. * @example * * _.defer(function(stamp) { * console.log(_.now() - stamp); * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ var now = function() { return root.Date.now(); }; /** * Creates a debounced function that delays invoking `func` until after `wait` * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. * Provide `options` to indicate whether `func` should be invoked on the * leading and/or trailing edge of the `wait` timeout. The `func` is invoked * with the last arguments provided to the debounced function. Subsequent * calls to the debounced function return the result of the last `func` * invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the debounced function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](path_to_url * for details over the differences between `_.debounce` and `_.throttle`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to debounce. * @param {number} [wait=0] The number of milliseconds to delay. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=false] * Specify invoking on the leading edge of the timeout. * @param {number} [options.maxWait] * The maximum time `func` is allowed to be delayed before it's invoked. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new debounced function. * @example * * // Avoid costly calculations while the window size is in flux. * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); * * // Invoke `sendMail` when clicked, debouncing subsequent calls. * jQuery(element).on('click', _.debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * })); * * // Ensure `batchLog` is invoked once after 1 second of debounced calls. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); * var source = new EventSource('/stream'); * jQuery(source).on('message', debounced); * * // Cancel the trailing debounced invocation. * jQuery(window).on('popstate', debounced.cancel); */ function debounce(func, wait, options) { var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } wait = toNumber(wait) || 0; if (isObject(options)) { leading = !!options.leading; maxing = 'maxWait' in options; maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; trailing = 'trailing' in options ? !!options.trailing : trailing; } function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = undefined; lastInvokeTime = time; result = func.apply(thisArg, args); return result; } function leadingEdge(time) { // Reset any `maxWait` timer. lastInvokeTime = time; // Start the timer for the trailing edge. timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. return leading ? invokeFunc(time) : result; } function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result = wait - timeSinceLastCall; return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; } function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the // trailing edge, the system time has gone backwards and we're treating // it as the trailing edge, or we've hit the `maxWait` limit. return (lastCallTime === undefined || (timeSinceLastCall >= wait) || (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); } function timerExpired() { var time = now(); if (shouldInvoke(time)) { return trailingEdge(time); } // Restart the timer. timerId = setTimeout(timerExpired, remainingWait(time)); } function trailingEdge(time) { timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been // debounced at least once. if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = undefined; return result; } function cancel() { if (timerId !== undefined) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } function flush() { return timerId === undefined ? result : trailingEdge(now()); } function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === undefined) { return leadingEdge(lastCallTime); } if (maxing) { // Handle invocations in a tight loop. timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); } } if (timerId === undefined) { timerId = setTimeout(timerExpired, wait); } return result; } debounced.cancel = cancel; debounced.flush = flush; return debounced; } /** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to * immediately invoke them. Provide `options` to indicate whether `func` * should be invoked on the leading and/or trailing edge of the `wait` * timeout. The `func` is invoked with the last arguments provided to the * throttled function. Subsequent calls to the throttled function return the * result of the last `func` invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the throttled function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](path_to_url * for details over the differences between `_.throttle` and `_.debounce`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to throttle. * @param {number} [wait=0] The number of milliseconds to throttle invocations to. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=true] * Specify invoking on the leading edge of the timeout. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new throttled function. * @example * * // Avoid excessively updating the position while scrolling. * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); * * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); * jQuery(element).on('click', throttled); * * // Cancel the trailing throttled invocation. * jQuery(window).on('popstate', throttled.cancel); */ function throttle(func, wait, options) { var leading = true, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (isObject(options)) { leading = 'leading' in options ? !!options.leading : leading; trailing = 'trailing' in options ? !!options.trailing : trailing; } return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing }); } /** * Checks if `value` is the * [language type](path_to_url#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return !!value && (type == 'object' || type == 'function'); } /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return !!value && typeof value == 'object'; } /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && objectToString.call(value) == symbolTag); } /** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE); * // => 5e-324 * * _.toNumber(Infinity); * // => Infinity * * _.toNumber('3.2'); * // => 3.2 */ function toNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } if (isObject(value)) { var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { return value === 0 ? value : +value; } value = value.replace(reTrim, ''); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } module.exports = throttle; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(107))) /***/ }), /* 476 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_loading_component_vue__ = __webpack_require__(187); /* harmony import */ var your_sha256_hashyour_sha256_hashlt = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_loading_component_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_loading_component_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_loading_component_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_component_vue__ = __webpack_require__(478); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashlt = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_component_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashyour_sha256_hashlt.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_component_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_component_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 477 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": "fade" } }, [_vm.fullscreenVisible ? _c('div', { class: _vm.classes }, [_c('div', { class: _vm.mainClasses }, [_c('span', { class: _vm.dotClasses }), _vm._v(" "), _c('div', { class: _vm.textClasses }, [_vm._t("default")], 2)])]) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 478 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapperClasses }, [_c('div', { class: _vm.spinnerClasses }, [_c('Spin', { attrs: { "fix": "" } }, [_c('Icon', { class: _vm.iconClasses, attrs: { "type": "ios-loading", "size": "18" } }), _vm._v(" "), _vm.text ? _c('div', { class: _vm.textClasses }, [_vm._v(_vm._s(_vm.text))]) : _vm._e()], 1)], 1)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 479 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses, staticStyle: { "touch-action": "none" } }, [_c('div', { ref: "scrollContainer", class: _vm.scrollContainerClasses, style: { height: _vm.height + 'px' }, on: { "scroll": _vm.handleScroll, "wheel": _vm.onWheel, "touchstart": _vm.onPointerDown } }, [_c('div', { ref: "toploader", class: _vm.loaderClasses, style: { paddingTop: _vm.wrapperPadding.paddingTop } }, [_c('loader', { attrs: { "text": _vm.localeLoadingText, "active": _vm.showTopLoader } })], 1), _vm._v(" "), _c('div', { ref: "scrollContent", class: _vm.slotContainerClasses }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { ref: "bottomLoader", class: _vm.loaderClasses, style: { paddingBottom: _vm.wrapperPadding.paddingBottom } }, [_c('loader', { attrs: { "text": _vm.localeLoadingText, "active": _vm.showBottomLoader } })], 1)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 480 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _split = __webpack_require__(481); var _split2 = _interopRequireDefault(_split); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _split2.default; /***/ }), /* 481 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_split_vue__ = __webpack_require__(189); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_split_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_split_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_split_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_split_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_split_vue__ = __webpack_require__(484); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_split_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_split_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_split_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_split_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_split_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 482 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue__ = __webpack_require__(190); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_trigger_vue__ = __webpack_require__(483); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_trigger_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_trigger_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_trigger_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_trigger_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_trigger_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 483 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_c('div', { class: _vm.barConClasses }, _vm._m(0), 0)]); }; var staticRenderFns = [function () { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm._l(8, function (i) { return _c('i', { key: "trigger-" + i, class: _vm.prefix + "-bar" }); }); }]; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 484 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { ref: "outerWrapper", class: _vm.wrapperClasses }, [_vm.isHorizontal ? _c('div', { class: _vm.prefix + "-horizontal" }, [_c('div', { staticClass: "left-pane", class: _vm.paneClasses, style: { right: _vm.anotherOffset + "%" } }, [_vm._t("left")], 2), _vm._v(" "), _c('div', { class: _vm.prefix + "-trigger-con", style: { left: _vm.offset + "%" }, on: { "mousedown": _vm.handleMousedown } }, [_vm._t("trigger", [_c('trigger', { attrs: { "mode": "vertical" } })])], 2), _vm._v(" "), _c('div', { staticClass: "right-pane", class: _vm.paneClasses, style: { left: _vm.offset + "%" } }, [_vm._t("right")], 2)]) : _c('div', { class: _vm.prefix + "-vertical" }, [_c('div', { staticClass: "top-pane", class: _vm.paneClasses, style: { bottom: _vm.anotherOffset + "%" } }, [_vm._t("top")], 2), _vm._v(" "), _c('div', { class: _vm.prefix + "-trigger-con", style: { top: _vm.offset + "%" }, on: { "mousedown": _vm.handleMousedown } }, [_vm._t("trigger", [_c('trigger', { attrs: { "mode": "horizontal" } })])], 2), _vm._v(" "), _c('div', { staticClass: "bottom-pane", class: _vm.paneClasses, style: { top: _vm.offset + "%" } }, [_vm._t("bottom")], 2)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 485 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _layout = __webpack_require__(486); var _layout2 = _interopRequireDefault(_layout); var _header = __webpack_require__(182); var _header2 = _interopRequireDefault(_header); var _sider = __webpack_require__(192); var _sider2 = _interopRequireDefault(_sider); var _content = __webpack_require__(145); var _content2 = _interopRequireDefault(_content); var _footer = __webpack_require__(172); var _footer2 = _interopRequireDefault(_footer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _layout2.default.Header = _header2.default; _layout2.default.Sider = _sider2.default; _layout2.default.Content = _content2.default; _layout2.default.Footer = _footer2.default; exports.default = _layout2.default; /***/ }), /* 486 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_layout_vue__ = __webpack_require__(191); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_layout_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_layout_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_layout_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_layout_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_layout_vue__ = __webpack_require__(487); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_layout_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_layout_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_layout_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_layout_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_layout_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 487 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 488 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses, style: _vm.wrapStyles }, [_c('span', { directives: [{ name: "show", rawName: "v-show", value: _vm.showZeroTrigger, expression: "showZeroTrigger" }], class: _vm.zeroWidthTriggerClasses, on: { "click": _vm.toggleCollapse } }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-menu" })]), _vm._v(" "), _c('div', { class: _vm.childClasses }, [_vm._t("default")], 2), _vm._v(" "), _vm._t("trigger", [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.showBottomTrigger, expression: "showBottomTrigger" }], class: _vm.triggerClasses, style: { width: _vm.siderWidth + 'px' }, on: { "click": _vm.toggleCollapse } }, [_c('i', { class: _vm.triggerIconClasses })])])], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 489 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _list = __webpack_require__(490); var _list2 = _interopRequireDefault(_list); var _listItem = __webpack_require__(492); var _listItem2 = _interopRequireDefault(_listItem); var _listItemMeta = __webpack_require__(494); var _listItemMeta2 = _interopRequireDefault(_listItemMeta); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _list2.default.Item = _listItem2.default; _list2.default.Item.Meta = _listItemMeta2.default; exports.default = _list2.default; /***/ }), /* 490 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_vue__ = __webpack_require__(194); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_list_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_list_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_list_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__ = __webpack_require__(491); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_list_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 491 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm.header || _vm.$slots.header ? _c('div', { staticClass: "ivu-list-header" }, [_vm._t("header", [_vm._v(_vm._s(_vm.header))])], 2) : _vm._e(), _vm._v(" "), _c('div', { staticClass: "ivu-list-container" }, [_c('ul', { staticClass: "ivu-list-items" }, [_vm._t("default")], 2)]), _vm._v(" "), _vm.loading ? _c('Spin', { attrs: { "fix": "", "size": "large" } }, [_vm._t("spin")], 2) : _vm._e(), _vm._v(" "), _vm.footer || _vm.$slots.footer ? _c('div', { staticClass: "ivu-list-footer" }, [_vm._t("footer", [_vm._v(_vm._s(_vm.footer))])], 2) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 492 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue__ = __webpack_require__(195); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_vue__ = __webpack_require__(493); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_list_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 493 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { staticClass: "ivu-list-item", class: _vm.classes }, [_vm.itemLayout === 'vertical' && _vm.$slots.extra ? [_c('div', { staticClass: "ivu-list-item-main" }, [_vm._t("default"), _vm._v(" "), _vm.$slots.action ? _c('ul', { staticClass: "ivu-list-item-action" }, [_vm._t("action")], 2) : _vm._e()], 2), _vm._v(" "), _c('div', { staticClass: "ivu-list-item-extra" }, [_vm._t("extra")], 2)] : [_vm._t("default"), _vm._v(" "), _vm.$slots.action ? _c('ul', { staticClass: "ivu-list-item-action" }, [_vm._t("action")], 2) : _vm._e(), _vm._v(" "), _c('div', { staticClass: "ivu-list-item-extra" }, [_vm._t("extra")], 2)]], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 494 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue__ = __webpack_require__(196); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_meta_vue__ = __webpack_require__(495); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_meta_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_meta_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_list_item_meta_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_meta_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_item_meta_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 495 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "ivu-list-item-meta" }, [_vm.avatar || _vm.$slots.avatar ? _c('div', { staticClass: "ivu-list-item-meta-avatar" }, [_vm._t("avatar", [_c('Avatar', { attrs: { "src": _vm.avatar } })])], 2) : _vm._e(), _vm._v(" "), _c('div', { staticClass: "ivu-list-item-meta-content" }, [_vm.title || _vm.$slots.title ? _c('div', { staticClass: "ivu-list-item-meta-title" }, [_vm._t("title", [_vm._v(_vm._s(_vm.title))])], 2) : _vm._e(), _vm._v(" "), _vm.description || _vm.$slots.description ? _c('div', { staticClass: "ivu-list-item-meta-description" }, [_vm._t("description", [_vm._v(_vm._s(_vm.description))])], 2) : _vm._e()])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 496 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _loadingBar = __webpack_require__(497); var _loadingBar2 = _interopRequireDefault(_loadingBar); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var loadingBarInstance = void 0; var color = 'primary'; var duration = 800; var failedColor = 'error'; var height = 2; var timer = void 0; function getLoadingBarInstance() { loadingBarInstance = loadingBarInstance || _loadingBar2.default.newInstance({ color: color, failedColor: failedColor, height: height }); return loadingBarInstance; } function _update(options) { var instance = getLoadingBarInstance(); instance.update(options); } function hide() { var _this = this; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); _update({ show: false }); setTimeout(function () { (0, _newArrowCheck3.default)(this, _this); _update({ percent: 0 }); }.bind(this), 200); }.bind(this), duration); } function clearTimer() { if (timer) { clearInterval(timer); timer = null; } } exports.default = { start: function start() { var _this2 = this; if (timer) return; var percent = 0; _update({ percent: percent, status: 'success', show: true }); timer = setInterval(function () { (0, _newArrowCheck3.default)(this, _this2); percent += Math.floor(Math.random() * 3 + 1); if (percent > 95) { clearTimer(); } _update({ percent: percent, status: 'success', show: true }); }.bind(this), 200); }, update: function update(percent) { clearTimer(); _update({ percent: percent, status: 'success', show: true }); }, finish: function finish() { clearTimer(); _update({ percent: 100, status: 'success', show: true }); hide(); }, error: function error() { clearTimer(); _update({ percent: 100, status: 'error', show: true }); hide(); }, config: function config(options) { if (options.color) { color = options.color; } if (options.duration) { duration = options.duration; } if (options.failedColor) { failedColor = options.failedColor; } if (options.height) { height = options.height; } }, destroy: function destroy() { clearTimer(); var instance = getLoadingBarInstance(); loadingBarInstance = null; instance.destroy(); } }; /***/ }), /* 497 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _loadingBar = __webpack_require__(498); var _loadingBar2 = _interopRequireDefault(_loadingBar); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _loadingBar2.default.newInstance = function (properties) { (0, _newArrowCheck3.default)(undefined, undefined); var _props = properties || {}; var Instance = new _vue2.default({ data: _props, render: function render(h) { return h(_loadingBar2.default, { props: _props }); } }); var component = Instance.$mount(); document.body.appendChild(component.$el); var loading_bar = Instance.$children[0]; return { update: function update(options) { if ('percent' in options) { loading_bar.percent = options.percent; } if (options.status) { loading_bar.status = options.status; } if ('show' in options) { loading_bar.show = options.show; } }, component: loading_bar, destroy: function destroy() { document.body.removeChild(document.getElementsByClassName('ivu-loading-bar')[0]); } }; }.bind(undefined); exports.default = _loadingBar2.default; /***/ }), /* 498 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue__ = __webpack_require__(197); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_bar_vue__ = __webpack_require__(499); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_bar_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_bar_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_loading_bar_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_bar_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_loading_bar_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 499 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": "fade" } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.show, expression: "show" }], class: _vm.classes, style: _vm.outerStyles }, [_c('div', { class: _vm.innerClasses, style: _vm.styles })])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 500 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _menu = __webpack_require__(501); var _menu2 = _interopRequireDefault(_menu); var _menuGroup = __webpack_require__(503); var _menuGroup2 = _interopRequireDefault(_menuGroup); var _menuItem = __webpack_require__(505); var _menuItem2 = _interopRequireDefault(_menuItem); var _submenu = __webpack_require__(507); var _submenu2 = _interopRequireDefault(_submenu); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _menu2.default.Group = _menuGroup2.default; _menu2.default.Item = _menuItem2.default; _menu2.default.Sub = _submenu2.default; exports.default = _menu2.default; /***/ }), /* 501 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_vue__ = __webpack_require__(198); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_menu_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_menu_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_menu_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_vue__ = __webpack_require__(502); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_menu_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 502 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('ul', { class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 503 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue__ = __webpack_require__(199); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_group_vue__ = __webpack_require__(504); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_menu_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 504 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: [_vm.prefixCls + '-item-group'] }, [_c('div', { class: [_vm.prefixCls + '-item-group-title'], style: _vm.groupStyle }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _c('ul', [_vm._t("default")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 505 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue__ = __webpack_require__(200); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_item_vue__ = __webpack_require__(506); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_menu_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_menu_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 506 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.to ? _c('a', { class: _vm.classes, style: _vm.itemStyle, attrs: { "href": _vm.linkUrl, "target": _vm.target }, on: { "click": [function ($event) { if ($event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey) { return null; }return _vm.handleClickItem($event, false); }, function ($event) { if (!$event.ctrlKey) { return null; }return _vm.handleClickItem($event, true); }, function ($event) { if (!$event.metaKey) { return null; }return _vm.handleClickItem($event, true); }] } }, [_vm._t("default")], 2) : _c('li', { class: _vm.classes, style: _vm.itemStyle, on: { "click": function click($event) { $event.stopPropagation();return _vm.handleClickItem($event); } } }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 507 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue__ = __webpack_require__(201); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_submenu_vue__ = __webpack_require__(508); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_submenu_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_submenu_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_submenu_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_submenu_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_submenu_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 508 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: _vm.classes, on: { "mouseenter": _vm.handleMouseenter, "mouseleave": _vm.handleMouseleave } }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-submenu-title'], style: _vm.titleStyle, on: { "click": function click($event) { $event.stopPropagation();return _vm.handleClick($event); } } }, [_vm._t("title"), _vm._v(" "), _c('Icon', { class: [_vm.prefixCls + '-submenu-title-icon'], attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } })], 2), _vm._v(" "), _vm.mode === 'vertical' ? _c('collapse-transition', [_c('ul', { directives: [{ name: "show", rawName: "v-show", value: _vm.opened, expression: "opened" }], class: [_vm.prefixCls] }, [_vm._t("default")], 2)]) : _c('transition', { attrs: { "name": "slide-up" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.opened, expression: "opened" }], ref: "drop", style: _vm.dropStyle, attrs: { "placement": "bottom" } }, [_c('ul', { class: [_vm.prefixCls + '-drop-list'] }, [_vm._t("default")], 2)])], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 509 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _notification = __webpack_require__(202); var _notification2 = _interopRequireDefault(_notification); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-message'; var iconPrefixCls = 'ivu-icon'; var prefixKey = 'ivu_message_key_'; var defaults = { top: 24, duration: 1.5 }; var messageInstance = void 0; var name = 1; var iconTypes = { 'info': 'ios-information-circle', 'success': 'ios-checkmark-circle', 'warning': 'ios-alert', 'error': 'ios-close-circle', 'loading': 'ios-loading' }; function getMessageInstance() { messageInstance = messageInstance || _notification2.default.newInstance({ prefixCls: prefixCls, styles: { top: String(defaults.top) + 'px' } }); return messageInstance; } function notice() { var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaults.duration; var type = arguments[2]; var onClose = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {}; var closable = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; var render = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : function () {}; var iconType = iconTypes[type]; var loadCls = type === 'loading' ? ' ivu-load-loop' : ''; var instance = getMessageInstance(); instance.notice({ name: '' + prefixKey + name, duration: duration, styles: {}, transitionName: 'move-up', content: '\n <div class="' + prefixCls + '-custom-content ' + prefixCls + '-' + String(type) + '">\n <i class="' + iconPrefixCls + ' ' + iconPrefixCls + '-' + String(iconType) + ' ' + loadCls + '"></i>\n <span>' + String(content) + '</span>\n </div>\n ', render: render, onClose: onClose, closable: closable, type: 'message' }); return function () { var target = name++; return function () { instance.remove('' + prefixKey + target); }; }(); } exports.default = { name: 'Message', info: function info(options) { return this.message('info', options); }, success: function success(options) { return this.message('success', options); }, warning: function warning(options) { return this.message('warning', options); }, error: function error(options) { return this.message('error', options); }, loading: function loading(options) { return this.message('loading', options); }, message: function message(type, options) { if (typeof options === 'string') { options = { content: options }; } return notice(options.content, options.duration, type, options.onClose, options.closable, options.render); }, config: function config(options) { if (options.top || options.top === 0) { defaults.top = options.top; } if (options.duration || options.duration === 0) { defaults.duration = options.duration; } }, destroy: function destroy() { var instance = getMessageInstance(); messageInstance = null; instance.destroy('ivu-message'); } }; /***/ }), /* 510 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_notification_vue__ = __webpack_require__(203); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_notification_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_notification_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_notification_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_notification_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notification_vue__ = __webpack_require__(513); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notification_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notification_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_notification_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notification_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notification_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 511 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_notice_vue__ = __webpack_require__(204); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_notice_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_notice_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_notice_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_notice_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notice_vue__ = __webpack_require__(512); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notice_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notice_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_notice_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notice_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_notice_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 512 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('transition', { attrs: { "name": _vm.transitionName, "appear": "" }, on: { "enter": _vm.handleEnter, "leave": _vm.handleLeave } }, [_c('div', { class: _vm.classes, style: _vm.styles }, [_vm.type === 'notice' ? [_c('div', { ref: "content", class: _vm.contentClasses, domProps: { "innerHTML": _vm._s(_vm.content) } }), _vm._v(" "), _c('div', { class: _vm.contentWithIcon }, [_c('render-cell', { attrs: { "render": _vm.renderFunc } })], 1), _vm._v(" "), _vm.closable ? _c('a', { class: [_vm.baseClass + '-close'], on: { "click": _vm.close } }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-close" })]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm.type === 'message' ? [_c('div', { ref: "content", class: [_vm.baseClass + '-content'] }, [_c('div', { class: [_vm.baseClass + '-content-text'], domProps: { "innerHTML": _vm._s(_vm.content) } }), _vm._v(" "), _c('div', { class: [_vm.baseClass + '-content-text'] }, [_c('render-cell', { attrs: { "render": _vm.renderFunc } })], 1), _vm._v(" "), _vm.closable ? _c('a', { class: [_vm.baseClass + '-close'], on: { "click": _vm.close } }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-close" })]) : _vm._e()])] : _vm._e()], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 513 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, style: _vm.wrapStyles }, _vm._l(_vm.notices, function (notice) { return _c('Notice', { key: notice.name, attrs: { "prefix-cls": _vm.prefixCls, "styles": notice.styles, "type": notice.type, "content": notice.content, "duration": notice.duration, "render": notice.render, "has-title": notice.hasTitle, "withIcon": notice.withIcon, "closable": notice.closable, "name": notice.name, "transition-name": notice.transitionName, "on-close": notice.onClose } }); }), 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 514 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _confirm = __webpack_require__(515); var _confirm2 = _interopRequireDefault(_confirm); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var modalInstance = void 0; function getModalInstance() { var render = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; modalInstance = modalInstance || _confirm2.default.newInstance({ closable: false, maskClosable: false, footerHide: true, render: render }); return modalInstance; } function confirm(options) { var render = 'render' in options ? options.render : undefined; var instance = getModalInstance(render); options.onRemove = function () { modalInstance = null; }; instance.show(options); } _confirm2.default.info = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; props.icon = 'info'; props.showCancel = false; return confirm(props); }; _confirm2.default.success = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; props.icon = 'success'; props.showCancel = false; return confirm(props); }; _confirm2.default.warning = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; props.icon = 'warning'; props.showCancel = false; return confirm(props); }; _confirm2.default.error = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; props.icon = 'error'; props.showCancel = false; return confirm(props); }; _confirm2.default.confirm = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; props.icon = 'confirm'; props.showCancel = true; return confirm(props); }; _confirm2.default.remove = function () { if (!modalInstance) { return false; } var instance = getModalInstance(); instance.remove(); }; exports.default = _confirm2.default; /***/ }), /* 515 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); var _modal = __webpack_require__(516); var _modal2 = _interopRequireDefault(_modal); var _button = __webpack_require__(25); var _button2 = _interopRequireDefault(_button); var _locale = __webpack_require__(5); var _locale2 = _interopRequireDefault(_locale); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-modal-confirm'; _modal2.default.newInstance = function (properties) { (0, _newArrowCheck3.default)(undefined, undefined); var _props = properties || {}; var Instance = new _vue2.default({ mixins: [_locale2.default], data: (0, _assign2.default)({}, _props, { visible: false, width: 416, title: '', body: '', iconType: '', iconName: '', okText: undefined, cancelText: undefined, showCancel: false, loading: false, buttonLoading: false, scrollable: false, closable: false, closing: false }), render: function render(h) { var _this = this; var footerVNodes = []; if (this.showCancel) { footerVNodes.push(h(_button2.default, { props: { type: 'text', size: 'large' }, on: { click: this.cancel } }, this.localeCancelText)); } footerVNodes.push(h(_button2.default, { props: { type: 'primary', size: 'large', loading: this.buttonLoading }, on: { click: this.ok } }, this.localeOkText)); var body_render = void 0; if (this.render) { body_render = h('div', { attrs: { class: prefixCls + '-body ' + prefixCls + '-body-render' } }, [this.render(h)]); } else { body_render = h('div', { attrs: { class: prefixCls + '-body' } }, [h('div', { domProps: { innerHTML: this.body } })]); } var head_render = void 0; if (this.title) { head_render = h('div', { attrs: { class: prefixCls + '-head' } }, [h('div', { class: this.iconTypeCls }, [h('i', { class: this.iconNameCls })]), h('div', { attrs: { class: prefixCls + '-head-title' }, domProps: { innerHTML: this.title } })]); } return h(_modal2.default, { props: (0, _assign2.default)({}, _props, { width: this.width, scrollable: this.scrollable, closable: this.closable }), domProps: { value: this.visible }, on: { input: function input(status) { (0, _newArrowCheck3.default)(this, _this); this.visible = status; }.bind(this), 'on-cancel': this.cancel } }, [h('div', { attrs: { class: prefixCls } }, [head_render, body_render, h('div', { attrs: { class: prefixCls + '-footer' } }, footerVNodes)])]); }, computed: { iconTypeCls: function iconTypeCls() { return [prefixCls + '-head-icon', prefixCls + '-head-icon-' + String(this.iconType)]; }, iconNameCls: function iconNameCls() { return ['ivu-icon', 'ivu-icon-' + String(this.iconName)]; }, localeOkText: function localeOkText() { if (this.okText) { return this.okText; } else { return this.t('i.modal.okText'); } }, localeCancelText: function localeCancelText() { if (this.cancelText) { return this.cancelText; } else { return this.t('i.modal.cancelText'); } } }, methods: { cancel: function cancel() { if (this.closing) return; this.$children[0].visible = false; this.buttonLoading = false; this.onCancel(); this.remove(); }, ok: function ok() { if (this.closing) return; if (this.loading) { this.buttonLoading = true; } else { this.$children[0].visible = false; this.remove(); } this.onOk(); }, remove: function remove() { var _this2 = this; this.closing = true; setTimeout(function () { (0, _newArrowCheck3.default)(this, _this2); this.closing = false; this.destroy(); }.bind(this), 300); }, destroy: function destroy() { this.$destroy(); if (this.$el) { document.body.removeChild(this.$el); } this.onRemove(); }, onOk: function onOk() {}, onCancel: function onCancel() {}, onRemove: function onRemove() {} } }); var component = Instance.$mount(); document.body.appendChild(component.$el); var modal = Instance.$children[0]; return { show: function show(props) { modal.$parent.showCancel = props.showCancel; modal.$parent.iconType = props.icon; switch (props.icon) { case 'info': modal.$parent.iconName = 'ios-information-circle'; break; case 'success': modal.$parent.iconName = 'ios-checkmark-circle'; break; case 'warning': modal.$parent.iconName = 'ios-alert'; break; case 'error': modal.$parent.iconName = 'ios-close-circle'; break; case 'confirm': modal.$parent.iconName = 'ios-help-circle'; break; } if ('width' in props) { modal.$parent.width = props.width; } if ('closable' in props) { modal.$parent.closable = props.closable; } if ('title' in props) { modal.$parent.title = props.title; } if ('content' in props) { modal.$parent.body = props.content; } if ('okText' in props) { modal.$parent.okText = props.okText; } if ('cancelText' in props) { modal.$parent.cancelText = props.cancelText; } if ('onCancel' in props) { modal.$parent.onCancel = props.onCancel; } if ('onOk' in props) { modal.$parent.onOk = props.onOk; } if ('loading' in props) { modal.$parent.loading = props.loading; } if ('scrollable' in props) { modal.$parent.scrollable = props.scrollable; } modal.$parent.onRemove = props.onRemove; modal.visible = true; }, remove: function remove() { modal.visible = false; modal.$parent.buttonLoading = false; modal.$parent.remove(); }, component: modal }; }.bind(undefined); exports.default = _modal2.default; /***/ }), /* 516 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_modal_vue__ = __webpack_require__(206); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_modal_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_modal_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_modal_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_modal_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_modal_vue__ = __webpack_require__(517); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_modal_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_modal_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_modal_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_modal_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_modal_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 517 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "transfer-dom", rawName: "v-transfer-dom" }], attrs: { "data-transfer": _vm.transfer } }, [_c('transition', { attrs: { "name": _vm.transitionNames[1] } }, [_vm.showMask ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.maskClasses, style: _vm.wrapStyles, on: { "click": _vm.handleMask } }) : _vm._e()]), _vm._v(" "), _c('div', { class: _vm.wrapClasses, style: _vm.wrapStyles, on: { "click": _vm.handleWrapClick } }, [_c('transition', { attrs: { "name": _vm.transitionNames[0] }, on: { "after-leave": _vm.animationFinish } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.classes, style: _vm.mainStyles, on: { "mousedown": _vm.handleMousedown } }, [_c('div', { ref: "content", class: _vm.contentClasses, style: _vm.contentStyles, on: { "click": _vm.handleClickModal } }, [_vm.closable ? _c('a', { class: [_vm.prefixCls + '-close'], on: { "click": _vm.close } }, [_vm._t("close", [_c('Icon', { attrs: { "type": "ios-close" } })])], 2) : _vm._e(), _vm._v(" "), _vm.showHead ? _c('div', { class: [_vm.prefixCls + '-header'], on: { "mousedown": _vm.handleMoveStart } }, [_vm._t("header", [_c('div', { class: [_vm.prefixCls + '-header-inner'] }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'] }, [_vm._t("default")], 2), _vm._v(" "), !_vm.footerHide ? _c('div', { class: [_vm.prefixCls + '-footer'] }, [_vm._t("footer", [_c('i-button', { attrs: { "type": "text", "size": "large" }, nativeOn: { "click": function click($event) { return _vm.cancel($event); } } }, [_vm._v(_vm._s(_vm.localeCancelText))]), _vm._v(" "), _c('i-button', { attrs: { "type": "primary", "size": "large", "loading": _vm.buttonLoading }, nativeOn: { "click": function click($event) { return _vm.ok($event); } } }, [_vm._v(_vm._s(_vm.localeOkText))])])], 2) : _vm._e()])])])], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 518 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _notification = __webpack_require__(202); var _notification2 = _interopRequireDefault(_notification); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixCls = 'ivu-notice'; var iconPrefixCls = 'ivu-icon'; var prefixKey = 'ivu_notice_key_'; var top = 24; var defaultDuration = 4.5; var noticeInstance = void 0; var name = 1; var iconTypes = { 'info': 'ios-information-circle', 'success': 'ios-checkmark-circle', 'warning': 'ios-alert', 'error': 'ios-close-circle' }; function getNoticeInstance() { noticeInstance = noticeInstance || _notification2.default.newInstance({ prefixCls: prefixCls, styles: { top: top + 'px', right: 0 } }); return noticeInstance; } function notice(type, options) { var title = options.title || ''; var desc = options.desc || ''; var noticeKey = options.name || '' + prefixKey + name; var onClose = options.onClose || function () {}; var render = options.render; var duration = options.duration === 0 ? 0 : options.duration || defaultDuration; name++; var instance = getNoticeInstance(); var content = void 0; var withIcon = void 0; var with_desc = options.render && !title ? '' : desc || options.render ? ' ' + prefixCls + '-with-desc' : ''; if (type == 'normal') { withIcon = false; content = '\n <div class="' + prefixCls + '-custom-content ' + prefixCls + '-with-normal ' + with_desc + '">\n <div class="' + prefixCls + '-title">' + String(title) + '</div>\n <div class="' + prefixCls + '-desc">' + String(desc) + '</div>\n </div>\n '; } else { var iconType = iconTypes[type]; var outlineIcon = with_desc === '' ? '' : '-outline'; withIcon = true; content = '\n <div class="' + prefixCls + '-custom-content ' + prefixCls + '-with-icon ' + prefixCls + '-with-' + String(type) + ' ' + with_desc + '">\n <span class="' + prefixCls + '-icon ' + prefixCls + '-icon-' + String(type) + '">\n <i class="' + iconPrefixCls + ' ' + iconPrefixCls + '-' + String(iconType) + outlineIcon + '"></i>\n </span>\n <div class="' + prefixCls + '-title">' + String(title) + '</div>\n <div class="' + prefixCls + '-desc">' + String(desc) + '</div>\n </div>\n '; } instance.notice({ name: noticeKey.toString(), duration: duration, styles: {}, transitionName: 'move-notice', content: content, withIcon: withIcon, render: render, hasTitle: !!title, onClose: onClose, closable: true, type: 'notice' }); } exports.default = { open: function open(options) { return notice('normal', options); }, info: function info(options) { return notice('info', options); }, success: function success(options) { return notice('success', options); }, warning: function warning(options) { return notice('warning', options); }, error: function error(options) { return notice('error', options); }, config: function config(options) { if (options.top) { top = options.top; } if (options.duration || options.duration === 0) { defaultDuration = options.duration; } }, close: function close(name) { if (name) { name = name.toString(); if (noticeInstance) { noticeInstance.remove(name); } } else { return false; } }, destroy: function destroy() { var instance = getNoticeInstance(); noticeInstance = null; instance.destroy('ivu-notice'); } }; /***/ }), /* 519 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _page = __webpack_require__(520); var _page2 = _interopRequireDefault(_page); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _page2.default; /***/ }), /* 520 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_page_vue__ = __webpack_require__(207); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_page_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_page_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_page_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_page_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_page_vue__ = __webpack_require__(523); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_page_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_page_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_page_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_page_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_page_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 521 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_options_vue__ = __webpack_require__(208); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_options_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_options_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_options_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_options_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_options_vue__ = __webpack_require__(522); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_options_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_options_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_options_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_options_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_options_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 522 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.showSizer || _vm.showElevator ? _c('div', { class: _vm.optsClasses }, [_vm.showSizer ? _c('div', { class: _vm.sizerClasses }, [_c('i-select', { attrs: { "size": _vm.size, "placement": _vm.placement, "transfer": _vm.transfer }, on: { "on-change": _vm.changeSize }, model: { value: _vm.currentPageSize, callback: function callback($$v) { _vm.currentPageSize = $$v; }, expression: "currentPageSize" } }, _vm._l(_vm.pageSizeOpts, function (item) { return _c('i-option', { key: item, staticStyle: { "text-align": "center" }, attrs: { "value": item } }, [_vm._v(_vm._s(item) + " " + _vm._s(_vm.t('i.page.page')))]); }), 1)], 1) : _vm._e(), _vm._v(" "), _vm.showElevator ? _c('div', { class: _vm.ElevatorClasses }, [_vm._v("\n " + _vm._s(_vm.t('i.page.goto')) + "\n "), _c('input', { attrs: { "type": "text", "autocomplete": "off", "spellcheck": "false" }, domProps: { "value": _vm._current }, on: { "keyup": function keyup($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) { return null; }return _vm.changePage($event); } } }), _vm._v("\n " + _vm._s(_vm.t('i.page.p')) + "\n ")]) : _vm._e()]) : _vm._e(); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 523 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.simple ? _c('ul', { class: _vm.simpleWrapClasses, style: _vm.styles }, [_c('li', { class: _vm.prevClasses, attrs: { "title": _vm.t('i.page.prev') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.prev($event); } } }, [_vm._m(0)]), _vm._v(" "), _c('div', { class: _vm.simplePagerClasses, attrs: { "title": _vm.currentPage + '/' + _vm.allPages } }, [_c('input', { attrs: { "type": "text", "autocomplete": "off", "spellcheck": "false" }, domProps: { "value": _vm.currentPage }, on: { "keydown": _vm.keyDown, "keyup": _vm.keyUp, "change": _vm.keyUp } }), _vm._v(" "), _c('span', [_vm._v("/")]), _vm._v("\n " + _vm._s(_vm.allPages) + "\n ")]), _vm._v(" "), _c('li', { class: _vm.nextClasses, attrs: { "title": _vm.t('i.page.next') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.next($event); } } }, [_vm._m(1)])]) : _c('ul', { class: _vm.wrapClasses, style: _vm.styles }, [_vm.showTotal ? _c('span', { class: [_vm.prefixCls + '-total'] }, [_vm._t("default", [_vm._v(_vm._s(_vm.t('i.page.total')) + " " + _vm._s(_vm.total) + " "), _vm.total <= 1 ? [_vm._v(_vm._s(_vm.t('i.page.item')))] : [_vm._v(_vm._s(_vm.t('i.page.items')))]])], 2) : _vm._e(), _vm._v(" "), _c('li', { class: _vm.prevClasses, attrs: { "title": _vm.t('i.page.prev') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.prev($event); } } }, [_c('a', [_vm.prevText !== '' ? [_vm._v(_vm._s(_vm.prevText))] : _c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-back" })], 2)]), _vm._v(" "), _c('li', { class: _vm.firstPageClasses, attrs: { "title": "1" }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(1); } } }, [_c('a', [_vm._v("1")])]), _vm._v(" "), _vm.currentPage > 5 ? _c('li', { class: [_vm.prefixCls + '-item-jump-prev'], attrs: { "title": _vm.t('i.page.prev5') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.fastPrev($event); } } }, [_vm._m(2)]) : _vm._e(), _vm._v(" "), _vm.currentPage === 5 ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage - 3 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage - 3); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage - 3))])]) : _vm._e(), _vm._v(" "), _vm.currentPage - 2 > 1 ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage - 2 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage - 2); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage - 2))])]) : _vm._e(), _vm._v(" "), _vm.currentPage - 1 > 1 ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage - 1 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage - 1); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage - 1))])]) : _vm._e(), _vm._v(" "), _vm.currentPage != 1 && _vm.currentPage != _vm.allPages ? _c('li', { class: [_vm.prefixCls + '-item', _vm.prefixCls + '-item-active'], attrs: { "title": _vm.currentPage } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage))])]) : _vm._e(), _vm._v(" "), _vm.currentPage + 1 < _vm.allPages ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage + 1 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage + 1); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage + 1))])]) : _vm._e(), _vm._v(" "), _vm.currentPage + 2 < _vm.allPages ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage + 2 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage + 2); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage + 2))])]) : _vm._e(), _vm._v(" "), _vm.allPages - _vm.currentPage === 4 ? _c('li', { class: [_vm.prefixCls + '-item'], attrs: { "title": _vm.currentPage + 3 }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.currentPage + 3); } } }, [_c('a', [_vm._v(_vm._s(_vm.currentPage + 3))])]) : _vm._e(), _vm._v(" "), _vm.allPages - _vm.currentPage >= 5 ? _c('li', { class: [_vm.prefixCls + '-item-jump-next'], attrs: { "title": _vm.t('i.page.next5') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.fastNext($event); } } }, [_vm._m(3)]) : _vm._e(), _vm._v(" "), _vm.allPages > 1 ? _c('li', { class: _vm.lastPageClasses, attrs: { "title": _vm.allPages }, on: { "click": function click($event) { $event.stopPropagation();return _vm.changePage(_vm.allPages); } } }, [_c('a', [_vm._v(_vm._s(_vm.allPages))])]) : _vm._e(), _vm._v(" "), _c('li', { class: _vm.nextClasses, attrs: { "title": _vm.t('i.page.next') }, on: { "click": function click($event) { $event.stopPropagation();return _vm.next($event); } } }, [_c('a', [_vm.nextText !== '' ? [_vm._v(_vm._s(_vm.nextText))] : _c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-forward" })], 2)]), _vm._v(" "), _c('Options', { attrs: { "show-sizer": _vm.showSizer, "page-size": _vm.currentPageSize, "page-size-opts": _vm.pageSizeOpts, "placement": _vm.placement, "transfer": _vm.transfer, "show-elevator": _vm.showElevator, "_current": _vm.currentPage, "current": _vm.currentPage, "all-pages": _vm.allPages, "is-small": _vm.isSmall }, on: { "on-size": _vm.onSize, "on-page": _vm.onPage } })], 1); }; var staticRenderFns = [function () { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('a', [_c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-back" })]); }, function () { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('a', [_c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-forward" })]); }, function () { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('a', [_c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-back" })]); }, function () { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('a', [_c('i', { staticClass: "ivu-icon ivu-icon-ios-arrow-forward" })]); }]; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 524 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _poptip = __webpack_require__(209); var _poptip2 = _interopRequireDefault(_poptip); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _poptip2.default; /***/ }), /* 525 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside", value: _vm.handleClose, expression: "handleClose" }], class: _vm.classes, on: { "mouseenter": _vm.handleMouseenter, "mouseleave": _vm.handleMouseleave } }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-rel'], on: { "click": _vm.handleClick, "mousedown": function mousedown($event) { return _vm.handleFocus(false); }, "mouseup": function mouseup($event) { return _vm.handleBlur(false); } } }, [_vm._t("default")], 2), _vm._v(" "), _c('transition', { attrs: { "name": "fade" } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "popper", class: _vm.popperClasses, style: _vm.styles, attrs: { "data-transfer": _vm.transfer }, on: { "click": _vm.handleTransferClick, "mouseenter": _vm.handleMouseenter, "mouseleave": _vm.handleMouseleave } }, [_c('div', { class: [_vm.prefixCls + '-content'] }, [_c('div', { class: [_vm.prefixCls + '-arrow'] }), _vm._v(" "), _vm.confirm ? _c('div', { class: [_vm.prefixCls + '-inner'] }, [_c('div', { class: [_vm.prefixCls + '-body'] }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-help-circle" }), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body-message'] }, [_vm._t("title", [_vm._v(_vm._s(_vm.title))])], 2)]), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-footer'] }, [_c('i-button', { attrs: { "type": "text", "size": "small" }, nativeOn: { "click": function click($event) { return _vm.cancel($event); } } }, [_vm._v(_vm._s(_vm.localeCancelText))]), _vm._v(" "), _c('i-button', { attrs: { "type": "primary", "size": "small" }, nativeOn: { "click": function click($event) { return _vm.ok($event); } } }, [_vm._v(_vm._s(_vm.localeOkText))])], 1)]) : _vm._e(), _vm._v(" "), !_vm.confirm ? _c('div', { class: [_vm.prefixCls + '-inner'] }, [_vm.showTitle ? _c('div', { ref: "title", class: [_vm.prefixCls + '-title'], style: _vm.contentPaddingStyle }, [_vm._t("title", [_c('div', { class: [_vm.prefixCls + '-title-inner'] }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'], style: _vm.contentPaddingStyle }, [_c('div', { class: _vm.contentClasses }, [_vm._t("content", [_c('div', { class: [_vm.prefixCls + '-body-content-inner'] }, [_vm._v(_vm._s(_vm.content))])])], 2)])]) : _vm._e()])])])], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 526 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _progress = __webpack_require__(212); var _progress2 = _interopRequireDefault(_progress); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _progress2.default; /***/ }), /* 527 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses }, [_c('div', { class: _vm.outerClasses }, [_c('div', { class: _vm.innerClasses }, [_c('div', { class: _vm.bgClasses, style: _vm.bgStyle }, [_vm.textInside ? _c('div', { staticClass: "ivu-progress-inner-text" }, [_vm._v(_vm._s(_vm.percent) + "%")]) : _vm._e()]), _c('div', { class: _vm.successBgClasses, style: _vm.successBgStyle })])]), _vm._v(" "), !_vm.hideInfo && !_vm.textInside ? _c('span', { class: _vm.textClasses }, [_vm._t("default", [_vm.isStatus ? _c('span', { class: _vm.textInnerClasses }, [_c('Icon', { attrs: { "type": _vm.statusIcon } })], 1) : _c('span', { class: _vm.textInnerClasses }, [_vm._v("\n " + _vm._s(_vm.percent) + "%\n ")])])], 2) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 528 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _radio = __webpack_require__(529); var _radio2 = _interopRequireDefault(_radio); var _radioGroup = __webpack_require__(531); var _radioGroup2 = _interopRequireDefault(_radioGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _radio2.default.Group = _radioGroup2.default; exports.default = _radio2.default; /***/ }), /* 529 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_radio_vue__ = __webpack_require__(214); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_radio_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_radio_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_radio_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_radio_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_vue__ = __webpack_require__(530); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_radio_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 530 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('label', { class: _vm.wrapClasses }, [_c('span', { class: _vm.radioClasses }, [_c('span', { class: _vm.innerClasses }), _vm._v(" "), _c('input', { class: _vm.inputClasses, attrs: { "type": "radio", "disabled": _vm.disabled, "name": _vm.groupName }, domProps: { "checked": _vm.currentValue }, on: { "change": _vm.change, "focus": _vm.onFocus, "blur": _vm.onBlur } })]), _vm._t("default", [_vm._v(_vm._s(_vm.label))])], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 531 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue__ = __webpack_require__(215); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_group_vue__ = __webpack_require__(532); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_radio_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_radio_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 532 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, attrs: { "name": _vm.name } }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 533 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rate = __webpack_require__(534); var _rate2 = _interopRequireDefault(_rate); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _rate2.default; /***/ }), /* 534 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_rate_vue__ = __webpack_require__(216); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_rate_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_rate_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_rate_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_rate_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_rate_vue__ = __webpack_require__(535); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_rate_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_rate_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_rate_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_rate_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_rate_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 535 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, on: { "mouseleave": _vm.handleMouseleave } }, [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.currentValue } }), _vm._v(" "), _vm._l(_vm.count, function (item) { return _c('div', { key: item, class: _vm.starCls(item), on: { "mousemove": function mousemove($event) { return _vm.handleMousemove(item, $event); }, "click": function click($event) { return _vm.handleClick(item); } } }, [!_vm.showCharacter ? [_c('span', { class: [_vm.prefixCls + '-star-content'], attrs: { "type": "half" } })] : [_c('span', { class: [_vm.prefixCls + '-star-first'], attrs: { "type": "half" } }, [_vm.character !== '' ? [_vm._v(_vm._s(_vm.character))] : _c('i', { class: _vm.iconClasses, attrs: { "type": "half" } })], 2), _vm._v(" "), _c('span', { class: [_vm.prefixCls + '-star-second'] }, [_vm.character !== '' ? [_vm._v(_vm._s(_vm.character))] : _c('i', { class: _vm.iconClasses })], 2)]], 2); }), _vm._v(" "), _vm.showText ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.currentValue > 0, expression: "currentValue > 0" }], class: [_vm.prefixCls + '-text'] }, [_vm._t("default", [_c('span', [_vm._v(_vm._s(_vm.currentValue))]), _vm._v(" "), _vm.currentValue <= 1 ? _c('span', [_vm._v(_vm._s(_vm.t('i.rate.star')))]) : _c('span', [_vm._v(_vm._s(_vm.t('i.rate.stars')))])])], 2) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 536 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _sider = __webpack_require__(192); var _sider2 = _interopRequireDefault(_sider); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _sider2.default; /***/ }), /* 537 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slider = __webpack_require__(538); var _slider2 = _interopRequireDefault(_slider); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _slider2.default; /***/ }), /* 538 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_slider_vue__ = __webpack_require__(217); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_slider_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_slider_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_slider_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_slider_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_slider_vue__ = __webpack_require__(552); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_slider_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_slider_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_slider_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_slider_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_slider_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 539 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls], on: { "mouseenter": _vm.handleShowPopper, "mouseleave": _vm.handleClosePopper } }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-rel'] }, [_vm._t("default")], 2), _vm._v(" "), _c('transition', { attrs: { "name": "fade" } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: !_vm.disabled && (_vm.visible || _vm.always), expression: "!disabled && (visible || always)" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "popper", class: [_vm.prefixCls + '-popper', _vm.prefixCls + '-' + _vm.theme], style: _vm.dropStyles, attrs: { "data-transfer": _vm.transfer }, on: { "mouseenter": _vm.handleShowPopper, "mouseleave": _vm.handleClosePopper } }, [_c('div', { class: [_vm.prefixCls + '-content'] }, [_c('div', { class: [_vm.prefixCls + '-arrow'] }), _vm._v(" "), _c('div', { class: _vm.innerClasses, style: _vm.innerStyles }, [_vm._t("content", [_vm._v(_vm._s(_vm.content))])], 2)])])])], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 540 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { name: 'SliderMarker', props: { mark: { type: [String, Object] } }, render: function render(h) { var label = typeof this.mark === 'string' ? this.mark : [this.mark.label]; return h('div', { class: 'ivu-slider-marks-item', style: this.mark.style || {} }, label); } }; /***/ }), /* 541 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { inject: { FormInstance: { default: '' } }, computed: { itemDisabled: function itemDisabled() { var state = this.disabled; if (!state && this.FormInstance) state = this.FormInstance.disabled; return state; } } }; /***/ }), /* 542 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function(options) { var getState = options.stateHandler.getState; /** * Tells if the element has been made detectable and ready to be listened for resize events. * @public * @param {element} The element to check. * @returns {boolean} True or false depending on if the element is detectable or not. */ function isDetectable(element) { var state = getState(element); return state && !!state.isDetectable; } /** * Marks the element that it has been made detectable and ready to be listened for resize events. * @public * @param {element} The element to mark. */ function markAsDetectable(element) { getState(element).isDetectable = true; } /** * Tells if the element is busy or not. * @public * @param {element} The element to check. * @returns {boolean} True or false depending on if the element is busy or not. */ function isBusy(element) { return !!getState(element).busy; } /** * Marks the object is busy and should not be made detectable. * @public * @param {element} element The element to mark. * @param {boolean} busy If the element is busy or not. */ function markBusy(element, busy) { getState(element).busy = !!busy; } return { isDetectable: isDetectable, markAsDetectable: markAsDetectable, isBusy: isBusy, markBusy: markBusy }; }; /***/ }), /* 543 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function(idHandler) { var eventListeners = {}; /** * Gets all listeners for the given element. * @public * @param {element} element The element to get all listeners for. * @returns All listeners for the given element. */ function getListeners(element) { var id = idHandler.get(element); if (id === undefined) { return []; } return eventListeners[id] || []; } /** * Stores the given listener for the given element. Will not actually add the listener to the element. * @public * @param {element} element The element that should have the listener added. * @param {function} listener The callback that the element has added. */ function addListener(element, listener) { var id = idHandler.get(element); if(!eventListeners[id]) { eventListeners[id] = []; } eventListeners[id].push(listener); } function removeListener(element, listener) { var listeners = getListeners(element); for (var i = 0, len = listeners.length; i < len; ++i) { if (listeners[i] === listener) { listeners.splice(i, 1); break; } } } function removeAllListeners(element) { var listeners = getListeners(element); if (!listeners) { return; } listeners.length = 0; } return { get: getListeners, add: addListener, removeListener: removeListener, removeAllListeners: removeAllListeners }; }; /***/ }), /* 544 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function() { var idCount = 1; /** * Generates a new unique id in the context. * @public * @returns {number} A unique id in the context. */ function generate() { return idCount++; } return { generate: generate }; }; /***/ }), /* 545 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function(options) { var idGenerator = options.idGenerator; var getState = options.stateHandler.getState; /** * Gets the resize detector id of the element. * @public * @param {element} element The target element to get the id of. * @returns {string|number|null} The id of the element. Null if it has no id. */ function getId(element) { var state = getState(element); if (state && state.id !== undefined) { return state.id; } return null; } /** * Sets the resize detector id of the element. Requires the element to have a resize detector state initialized. * @public * @param {element} element The target element to set the id of. * @returns {string|number|null} The id of the element. */ function setId(element) { var state = getState(element); if (!state) { throw new Error("setId required the element to have a resize detection state."); } var id = idGenerator.generate(); state.id = id; return id; } return { get: getId, set: setId }; }; /***/ }), /* 546 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* global console: false */ /** * Reporter that handles the reporting of logs, warnings and errors. * @public * @param {boolean} quiet Tells if the reporter should be quiet or not. */ module.exports = function(quiet) { function noop() { //Does nothing. } var reporter = { log: noop, warn: noop, error: noop }; if(!quiet && window.console) { var attachFunction = function(reporter, name) { //The proxy is needed to be able to call the method with the console context, //since we cannot use bind. reporter[name] = function reporterProxy() { var f = console[name]; if (f.apply) { //IE9 does not support console.log.apply :) f.apply(console, arguments); } else { for (var i = 0; i < arguments.length; i++) { f(arguments[i]); } } }; }; attachFunction(reporter, "log"); attachFunction(reporter, "warn"); attachFunction(reporter, "error"); } return reporter; }; /***/ }), /* 547 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(548); module.exports = function batchProcessorMaker(options) { options = options || {}; var reporter = options.reporter; var asyncProcess = utils.getOption(options, "async", true); var autoProcess = utils.getOption(options, "auto", true); if(autoProcess && !asyncProcess) { reporter && reporter.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."); asyncProcess = true; } var batch = Batch(); var asyncFrameHandler; var isProcessing = false; function addFunction(level, fn) { if(!isProcessing && autoProcess && asyncProcess && batch.size() === 0) { // Since this is async, it is guaranteed to be executed after that the fn is added to the batch. // This needs to be done before, since we're checking the size of the batch to be 0. processBatchAsync(); } batch.add(level, fn); } function processBatch() { // Save the current batch, and create a new batch so that incoming functions are not added into the currently processing batch. // Continue processing until the top-level batch is empty (functions may be added to the new batch while processing, and so on). isProcessing = true; while (batch.size()) { var processingBatch = batch; batch = Batch(); processingBatch.process(); } isProcessing = false; } function forceProcessBatch(localAsyncProcess) { if (isProcessing) { return; } if(localAsyncProcess === undefined) { localAsyncProcess = asyncProcess; } if(asyncFrameHandler) { cancelFrame(asyncFrameHandler); asyncFrameHandler = null; } if(localAsyncProcess) { processBatchAsync(); } else { processBatch(); } } function processBatchAsync() { asyncFrameHandler = requestFrame(processBatch); } function clearBatch() { batch = {}; batchSize = 0; topLevel = 0; bottomLevel = 0; } function cancelFrame(listener) { // var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; var cancel = clearTimeout; return cancel(listener); } function requestFrame(callback) { // var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function(fn) { return window.setTimeout(fn, 20); }; var raf = function(fn) { return setTimeout(fn, 0); }; return raf(callback); } return { add: addFunction, force: forceProcessBatch }; }; function Batch() { var batch = {}; var size = 0; var topLevel = 0; var bottomLevel = 0; function add(level, fn) { if(!fn) { fn = level; level = 0; } if(level > topLevel) { topLevel = level; } else if(level < bottomLevel) { bottomLevel = level; } if(!batch[level]) { batch[level] = []; } batch[level].push(fn); size++; } function process() { for(var level = bottomLevel; level <= topLevel; level++) { var fns = batch[level]; for(var i = 0; i < fns.length; i++) { var fn = fns[i]; fn(); } } } function getSize() { return size; } return { add: add, process: process, size: getSize }; } /***/ }), /* 548 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = module.exports = {}; utils.getOption = getOption; function getOption(options, name, defaultValue) { var value = options[name]; if((value === undefined || value === null) && defaultValue !== undefined) { return defaultValue; } return value; } /***/ }), /* 549 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var prop = "_erd"; function initState(element) { element[prop] = {}; return getState(element); } function getState(element) { return element[prop]; } function cleanState(element) { delete element[prop]; } module.exports = { initState: initState, getState: getState, cleanState: cleanState }; /***/ }), /* 550 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Resize detection strategy that injects objects to elements in order to detect resize events. * Heavily inspired by: path_to_url */ var browserDetector = __webpack_require__(220); module.exports = function(options) { options = options || {}; var reporter = options.reporter; var batchProcessor = options.batchProcessor; var getState = options.stateHandler.getState; if(!reporter) { throw new Error("Missing required dependency: reporter."); } /** * Adds a resize event listener to the element. * @public * @param {element} element The element that should have the listener added. * @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback. */ function addListener(element, listener) { function listenerProxy() { listener(element); } if(browserDetector.isIE(8)) { //IE 8 does not support object, but supports the resize event directly on elements. getState(element).object = { proxy: listenerProxy }; element.attachEvent("onresize", listenerProxy); } else { var object = getObject(element); if(!object) { throw new Error("Element is not detectable by this strategy."); } object.contentDocument.defaultView.addEventListener("resize", listenerProxy); } } function buildCssTextString(rules) { var seperator = options.important ? " !important; " : "; "; return (rules.join(seperator) + seperator).trim(); } /** * Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes. * @private * @param {object} options Optional options object. * @param {element} element The element to make detectable * @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter. */ function makeDetectable(options, element, callback) { if (!callback) { callback = element; element = options; options = null; } options = options || {}; var debug = options.debug; function injectObject(element, callback) { var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]); //The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element. // Position altering may be performed directly or on object load, depending on if style resolution is possible directly or not. var positionCheckPerformed = false; // The element may not yet be attached to the DOM, and therefore the style object may be empty in some browsers. // Since the style object is a reference, it will be updated as soon as the element is attached to the DOM. var style = window.getComputedStyle(element); var width = element.offsetWidth; var height = element.offsetHeight; getState(element).startSize = { width: width, height: height }; function mutateDom() { function alterPositionStyles() { if(style.position === "static") { element.style.setProperty("position", "relative", options.important ? "important" : ""); var removeRelativeStyles = function(reporter, element, style, property) { function getNumericalValue(value) { return value.replace(/[^-\d\.]/g, ""); } var value = style[property]; if(value !== "auto" && getNumericalValue(value) !== "0") { reporter.warn("An element that is positioned static has style." + property + "=" + value + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + property + " will be set to 0. Element: ", element); element.style.setProperty(property, "0", options.important ? "important" : ""); } }; //Check so that there are no accidental styles that will make the element styled differently now that is is relative. //If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway). removeRelativeStyles(reporter, element, style, "top"); removeRelativeStyles(reporter, element, style, "right"); removeRelativeStyles(reporter, element, style, "bottom"); removeRelativeStyles(reporter, element, style, "left"); } } function onObjectLoad() { // The object has been loaded, which means that the element now is guaranteed to be attached to the DOM. if (!positionCheckPerformed) { alterPositionStyles(); } /*jshint validthis: true */ function getDocument(element, callback) { //Opera 12 seem to call the object.onload before the actual document has been created. //So if it is not present, poll it with an timeout until it is present. //TODO: Could maybe be handled better with object.onreadystatechange or similar. if(!element.contentDocument) { setTimeout(function checkForObjectDocument() { getDocument(element, callback); }, 100); return; } callback(element.contentDocument); } //Mutating the object element here seems to fire another load event. //Mutating the inner document of the object element is fine though. var objectElement = this; //Create the style element to be added to the object. getDocument(objectElement, function onObjectDocumentReady(objectDocument) { //Notify that the element is ready to be listened to. callback(element); }); } // The element may be detached from the DOM, and some browsers does not support style resolving of detached elements. // The alterPositionStyles needs to be delayed until we know the element has been attached to the DOM (which we are sure of when the onObjectLoad has been fired), if style resolution is not possible. if (style.position !== "") { alterPositionStyles(style); positionCheckPerformed = true; } //Add an object element as a child to the target element that will be listened to for resize events. var object = document.createElement("object"); object.style.cssText = OBJECT_STYLE; object.tabIndex = -1; object.type = "text/html"; object.onload = onObjectLoad; //Safari: This must occur before adding the object to the DOM. //IE: Does not like that this happens before, even if it is also added after. if(!browserDetector.isIE()) { object.data = "about:blank"; } if (!getState(element)) { // The element has been uninstalled before the actual loading happened. return; } element.appendChild(object); getState(element).object = object; //IE: This must occur after adding the object to the DOM. if(browserDetector.isIE()) { object.data = "about:blank"; } } if(batchProcessor) { batchProcessor.add(mutateDom); } else { mutateDom(); } } if(browserDetector.isIE(8)) { //IE 8 does not support objects properly. Luckily they do support the resize event. //So do not inject the object and notify that the element is already ready to be listened to. //The event handler for the resize event is attached in the utils.addListener instead. callback(element); } else { injectObject(element, callback); } } /** * Returns the child object of the target element. * @private * @param {element} element The target element. * @returns The object element of the target. */ function getObject(element) { return getState(element).object; } function uninstall(element) { if (!getState(element)) { return; } var object = getObject(element); if (!object) { return; } if (browserDetector.isIE(8)) { element.detachEvent("onresize", object.proxy); } else { element.removeChild(object); } delete getState(element).object; } return { makeDetectable: makeDetectable, addListener: addListener, uninstall: uninstall }; }; /***/ }), /* 551 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Resize detection strategy that injects divs to elements in order to detect resize events on scroll events. * Heavily inspired by: path_to_url */ var forEach = __webpack_require__(219).forEach; module.exports = function(options) { options = options || {}; var reporter = options.reporter; var batchProcessor = options.batchProcessor; var getState = options.stateHandler.getState; var hasState = options.stateHandler.hasState; var idHandler = options.idHandler; if (!batchProcessor) { throw new Error("Missing required dependency: batchProcessor"); } if (!reporter) { throw new Error("Missing required dependency: reporter."); } //TODO: Could this perhaps be done at installation time? var scrollbarSizes = getScrollbarSizes(); var styleId = "erd_scroll_detection_scrollbar_style"; var detectionContainerClass = "erd_scroll_detection_container"; function initDocument(targetDocument) { // Inject the scrollbar styling that prevents them from appearing sometimes in Chrome. // The injected container needs to have a class, so that it may be styled with CSS (pseudo elements). injectScrollStyle(targetDocument, styleId, detectionContainerClass); } initDocument(window.document); function buildCssTextString(rules) { var seperator = options.important ? " !important; " : "; "; return (rules.join(seperator) + seperator).trim(); } function getScrollbarSizes() { var width = 500; var height = 500; var child = document.createElement("div"); child.style.cssText = buildCssTextString(["position: absolute", "width: " + width*2 + "px", "height: " + height*2 + "px", "visibility: hidden", "margin: 0", "padding: 0"]); var container = document.createElement("div"); container.style.cssText = buildCssTextString(["position: absolute", "width: " + width + "px", "height: " + height + "px", "overflow: scroll", "visibility: none", "top: " + -width*3 + "px", "left: " + -height*3 + "px", "visibility: hidden", "margin: 0", "padding: 0"]); container.appendChild(child); document.body.insertBefore(container, document.body.firstChild); var widthSize = width - container.clientWidth; var heightSize = height - container.clientHeight; document.body.removeChild(container); return { width: widthSize, height: heightSize }; } function injectScrollStyle(targetDocument, styleId, containerClass) { function injectStyle(style, method) { method = method || function (element) { targetDocument.head.appendChild(element); }; var styleElement = targetDocument.createElement("style"); styleElement.innerHTML = style; styleElement.id = styleId; method(styleElement); return styleElement; } if (!targetDocument.getElementById(styleId)) { var containerAnimationClass = containerClass + "_animation"; var containerAnimationActiveClass = containerClass + "_animation_active"; var style = "/* Created by the element-resize-detector library. */\n"; style += "." + containerClass + " > div::-webkit-scrollbar { " + buildCssTextString(["display: none"]) + " }\n\n"; style += "." + containerAnimationActiveClass + " { " + buildCssTextString(["-webkit-animation-duration: 0.1s", "animation-duration: 0.1s", "-webkit-animation-name: " + containerAnimationClass, "animation-name: " + containerAnimationClass]) + " }\n"; style += "@-webkit-keyframes " + containerAnimationClass + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n"; style += "@keyframes " + containerAnimationClass + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }"; injectStyle(style); } } function addAnimationClass(element) { element.className += " " + detectionContainerClass + "_animation_active"; } function addEvent(el, name, cb) { if (el.addEventListener) { el.addEventListener(name, cb); } else if(el.attachEvent) { el.attachEvent("on" + name, cb); } else { return reporter.error("[scroll] Don't know how to add event listeners."); } } function removeEvent(el, name, cb) { if (el.removeEventListener) { el.removeEventListener(name, cb); } else if(el.detachEvent) { el.detachEvent("on" + name, cb); } else { return reporter.error("[scroll] Don't know how to remove event listeners."); } } function getExpandElement(element) { return getState(element).container.childNodes[0].childNodes[0].childNodes[0]; } function getShrinkElement(element) { return getState(element).container.childNodes[0].childNodes[0].childNodes[1]; } /** * Adds a resize event listener to the element. * @public * @param {element} element The element that should have the listener added. * @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback. */ function addListener(element, listener) { var listeners = getState(element).listeners; if (!listeners.push) { throw new Error("Cannot add listener to an element that is not detectable."); } getState(element).listeners.push(listener); } /** * Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes. * @private * @param {object} options Optional options object. * @param {element} element The element to make detectable * @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter. */ function makeDetectable(options, element, callback) { if (!callback) { callback = element; element = options; options = null; } options = options || {}; function debug() { if (options.debug) { var args = Array.prototype.slice.call(arguments); args.unshift(idHandler.get(element), "Scroll: "); if (reporter.log.apply) { reporter.log.apply(null, args); } else { for (var i = 0; i < args.length; i++) { reporter.log(args[i]); } } } } function isDetached(element) { function isInDocument(element) { return element === element.ownerDocument.body || element.ownerDocument.body.contains(element); } if (!isInDocument(element)) { return true; } // FireFox returns null style in hidden iframes. See path_to_url and path_to_url if (window.getComputedStyle(element) === null) { return true; } return false; } function isUnrendered(element) { // Check the absolute positioned container since the top level container is display: inline. var container = getState(element).container.childNodes[0]; var style = window.getComputedStyle(container); return !style.width || style.width.indexOf("px") === -1; //Can only compute pixel value when rendered. } function getStyle() { // Some browsers only force layouts when actually reading the style properties of the style object, so make sure that they are all read here, // so that the user of the function can be sure that it will perform the layout here, instead of later (important for batching). var elementStyle = window.getComputedStyle(element); var style = {}; style.position = elementStyle.position; style.width = element.offsetWidth; style.height = element.offsetHeight; style.top = elementStyle.top; style.right = elementStyle.right; style.bottom = elementStyle.bottom; style.left = elementStyle.left; style.widthCSS = elementStyle.width; style.heightCSS = elementStyle.height; return style; } function storeStartSize() { var style = getStyle(); getState(element).startSize = { width: style.width, height: style.height }; debug("Element start size", getState(element).startSize); } function initListeners() { getState(element).listeners = []; } function storeStyle() { debug("storeStyle invoked."); if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } var style = getStyle(); getState(element).style = style; } function storeCurrentSize(element, width, height) { getState(element).lastWidth = width; getState(element).lastHeight = height; } function getExpandChildElement(element) { return getExpandElement(element).childNodes[0]; } function getWidthOffset() { return 2 * scrollbarSizes.width + 1; } function getHeightOffset() { return 2 * scrollbarSizes.height + 1; } function getExpandWidth(width) { return width + 10 + getWidthOffset(); } function getExpandHeight(height) { return height + 10 + getHeightOffset(); } function getShrinkWidth(width) { return width * 2 + getWidthOffset(); } function getShrinkHeight(height) { return height * 2 + getHeightOffset(); } function positionScrollbars(element, width, height) { var expand = getExpandElement(element); var shrink = getShrinkElement(element); var expandWidth = getExpandWidth(width); var expandHeight = getExpandHeight(height); var shrinkWidth = getShrinkWidth(width); var shrinkHeight = getShrinkHeight(height); expand.scrollLeft = expandWidth; expand.scrollTop = expandHeight; shrink.scrollLeft = shrinkWidth; shrink.scrollTop = shrinkHeight; } function injectContainerElement() { var container = getState(element).container; if (!container) { container = document.createElement("div"); container.className = detectionContainerClass; container.style.cssText = buildCssTextString(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]); getState(element).container = container; addAnimationClass(container); element.appendChild(container); var onAnimationStart = function () { getState(element).onRendered && getState(element).onRendered(); }; addEvent(container, "animationstart", onAnimationStart); // Store the event handler here so that they may be removed when uninstall is called. // See uninstall function for an explanation why it is needed. getState(element).onAnimationStart = onAnimationStart; } return container; } function injectScrollElements() { function alterPositionStyles() { var style = getState(element).style; if(style.position === "static") { element.style.setProperty("position", "relative",options.important ? "important" : ""); var removeRelativeStyles = function(reporter, element, style, property) { function getNumericalValue(value) { return value.replace(/[^-\d\.]/g, ""); } var value = style[property]; if(value !== "auto" && getNumericalValue(value) !== "0") { reporter.warn("An element that is positioned static has style." + property + "=" + value + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + property + " will be set to 0. Element: ", element); element.style[property] = 0; } }; //Check so that there are no accidental styles that will make the element styled differently now that is is relative. //If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway). removeRelativeStyles(reporter, element, style, "top"); removeRelativeStyles(reporter, element, style, "right"); removeRelativeStyles(reporter, element, style, "bottom"); removeRelativeStyles(reporter, element, style, "left"); } } function getLeftTopBottomRightCssText(left, top, bottom, right) { left = (!left ? "0" : (left + "px")); top = (!top ? "0" : (top + "px")); bottom = (!bottom ? "0" : (bottom + "px")); right = (!right ? "0" : (right + "px")); return ["left: " + left, "top: " + top, "right: " + right, "bottom: " + bottom]; } debug("Injecting elements"); if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } alterPositionStyles(); var rootContainer = getState(element).container; if (!rootContainer) { rootContainer = injectContainerElement(); } // Due to this WebKit bug path_to_url (currently fixed in Blink, but still present in WebKit browsers such as Safari), // we need to inject two containers, one that is width/height 100% and another that is left/top -1px so that the final container always is 1x1 pixels bigger than // the targeted element. // When the bug is resolved, "containerContainer" may be removed. // The outer container can occasionally be less wide than the targeted when inside inline elements element in WebKit (see path_to_url // This should be no problem since the inner container either way makes sure the injected scroll elements are at least 1x1 px. var scrollbarWidth = scrollbarSizes.width; var scrollbarHeight = scrollbarSizes.height; var containerContainerStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]); var containerStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(getLeftTopBottomRightCssText(-(1 + scrollbarWidth), -(1 + scrollbarHeight), -scrollbarHeight, -scrollbarWidth))); var expandStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]); var shrinkStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]); var expandChildStyle = buildCssTextString(["position: absolute", "left: 0", "top: 0"]); var shrinkChildStyle = buildCssTextString(["position: absolute", "width: 200%", "height: 200%"]); var containerContainer = document.createElement("div"); var container = document.createElement("div"); var expand = document.createElement("div"); var expandChild = document.createElement("div"); var shrink = document.createElement("div"); var shrinkChild = document.createElement("div"); // Some browsers choke on the resize system being rtl, so force it to ltr. path_to_url // However, dir should not be set on the top level container as it alters the dimensions of the target element in some browsers. containerContainer.dir = "ltr"; containerContainer.style.cssText = containerContainerStyle; containerContainer.className = detectionContainerClass; container.className = detectionContainerClass; container.style.cssText = containerStyle; expand.style.cssText = expandStyle; expandChild.style.cssText = expandChildStyle; shrink.style.cssText = shrinkStyle; shrinkChild.style.cssText = shrinkChildStyle; expand.appendChild(expandChild); shrink.appendChild(shrinkChild); container.appendChild(expand); container.appendChild(shrink); containerContainer.appendChild(container); rootContainer.appendChild(containerContainer); function onExpandScroll() { getState(element).onExpand && getState(element).onExpand(); } function onShrinkScroll() { getState(element).onShrink && getState(element).onShrink(); } addEvent(expand, "scroll", onExpandScroll); addEvent(shrink, "scroll", onShrinkScroll); // Store the event handlers here so that they may be removed when uninstall is called. // See uninstall function for an explanation why it is needed. getState(element).onExpandScroll = onExpandScroll; getState(element).onShrinkScroll = onShrinkScroll; } function registerListenersAndPositionElements() { function updateChildSizes(element, width, height) { var expandChild = getExpandChildElement(element); var expandWidth = getExpandWidth(width); var expandHeight = getExpandHeight(height); expandChild.style.setProperty("width", expandWidth + "px", options.important ? "important" : ""); expandChild.style.setProperty("height", expandHeight + "px", options.important ? "important" : ""); } function updateDetectorElements(done) { var width = element.offsetWidth; var height = element.offsetHeight; // Check whether the size has actually changed since last time the algorithm ran. If not, some steps may be skipped. var sizeChanged = width !== getState(element).lastWidth || height !== getState(element).lastHeight; debug("Storing current size", width, height); // Store the size of the element sync here, so that multiple scroll events may be ignored in the event listeners. // Otherwise the if-check in handleScroll is useless. storeCurrentSize(element, width, height); // Since we delay the processing of the batch, there is a risk that uninstall has been called before the batch gets to execute. // Since there is no way to cancel the fn executions, we need to add an uninstall guard to all fns of the batch. batchProcessor.add(0, function performUpdateChildSizes() { if (!sizeChanged) { return; } if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } if (!areElementsInjected()) { debug("Aborting because element container has not been initialized"); return; } if (options.debug) { var w = element.offsetWidth; var h = element.offsetHeight; if (w !== width || h !== height) { reporter.warn(idHandler.get(element), "Scroll: Size changed before updating detector elements."); } } updateChildSizes(element, width, height); }); batchProcessor.add(1, function updateScrollbars() { // This function needs to be invoked event though the size is unchanged. The element could have been resized very quickly and then // been restored to the original size, which will have changed the scrollbar positions. if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } if (!areElementsInjected()) { debug("Aborting because element container has not been initialized"); return; } positionScrollbars(element, width, height); }); if (sizeChanged && done) { batchProcessor.add(2, function () { if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } if (!areElementsInjected()) { debug("Aborting because element container has not been initialized"); return; } done(); }); } } function areElementsInjected() { return !!getState(element).container; } function notifyListenersIfNeeded() { function isFirstNotify() { return getState(element).lastNotifiedWidth === undefined; } debug("notifyListenersIfNeeded invoked"); var state = getState(element); // Don't notify if the current size is the start size, and this is the first notification. if (isFirstNotify() && state.lastWidth === state.startSize.width && state.lastHeight === state.startSize.height) { return debug("Not notifying: Size is the same as the start size, and there has been no notification yet."); } // Don't notify if the size already has been notified. if (state.lastWidth === state.lastNotifiedWidth && state.lastHeight === state.lastNotifiedHeight) { return debug("Not notifying: Size already notified"); } debug("Current size not notified, notifying..."); state.lastNotifiedWidth = state.lastWidth; state.lastNotifiedHeight = state.lastHeight; forEach(getState(element).listeners, function (listener) { listener(element); }); } function handleRender() { debug("startanimation triggered."); if (isUnrendered(element)) { debug("Ignoring since element is still unrendered..."); return; } debug("Element rendered."); var expand = getExpandElement(element); var shrink = getShrinkElement(element); if (expand.scrollLeft === 0 || expand.scrollTop === 0 || shrink.scrollLeft === 0 || shrink.scrollTop === 0) { debug("Scrollbars out of sync. Updating detector elements..."); updateDetectorElements(notifyListenersIfNeeded); } } function handleScroll() { debug("Scroll detected."); if (isUnrendered(element)) { // Element is still unrendered. Skip this scroll event. debug("Scroll event fired while unrendered. Ignoring..."); return; } updateDetectorElements(notifyListenersIfNeeded); } debug("registerListenersAndPositionElements invoked."); if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } getState(element).onRendered = handleRender; getState(element).onExpand = handleScroll; getState(element).onShrink = handleScroll; var style = getState(element).style; updateChildSizes(element, style.width, style.height); } function finalizeDomMutation() { debug("finalizeDomMutation invoked."); if (!getState(element)) { debug("Aborting because element has been uninstalled"); return; } var style = getState(element).style; storeCurrentSize(element, style.width, style.height); positionScrollbars(element, style.width, style.height); } function ready() { callback(element); } function install() { debug("Installing..."); initListeners(); storeStartSize(); batchProcessor.add(0, storeStyle); batchProcessor.add(1, injectScrollElements); batchProcessor.add(2, registerListenersAndPositionElements); batchProcessor.add(3, finalizeDomMutation); batchProcessor.add(4, ready); } debug("Making detectable..."); if (isDetached(element)) { debug("Element is detached"); injectContainerElement(); debug("Waiting until element is attached..."); getState(element).onRendered = function () { debug("Element is now attached"); install(); }; } else { install(); } } function uninstall(element) { var state = getState(element); if (!state) { // Uninstall has been called on a non-erd element. return; } // Uninstall may have been called in the following scenarios: // (1) Right between the sync code and async batch (here state.busy = true, but nothing have been registered or injected). // (2) In the ready callback of the last level of the batch by another element (here, state.busy = true, but all the stuff has been injected). // (3) After the installation process (here, state.busy = false and all the stuff has been injected). // So to be on the safe side, let's check for each thing before removing. // We need to remove the event listeners, because otherwise the event might fire on an uninstall element which results in an error when trying to get the state of the element. state.onExpandScroll && removeEvent(getExpandElement(element), "scroll", state.onExpandScroll); state.onShrinkScroll && removeEvent(getShrinkElement(element), "scroll", state.onShrinkScroll); state.onAnimationStart && removeEvent(state.container, "animationstart", state.onAnimationStart); state.container && element.removeChild(state.container); } return { makeDetectable: makeDetectable, addListener: addListener, uninstall: uninstall, initDocument: initDocument }; }; /***/ }), /* 552 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [!_vm.range && _vm.showInput ? _c('Input-number', { attrs: { "min": _vm.min, "size": _vm.inputSize, "max": _vm.max, "step": _vm.step, "value": _vm.exportValue[0], "disabled": _vm.itemDisabled, "active-change": _vm.activeChange }, on: { "on-change": _vm.handleInputChange } }) : _vm._e(), _vm._v(" "), _c('div', { ref: "slider", class: [_vm.prefixCls + '-wrap'], on: { "click": function click($event) { if ($event.target !== $event.currentTarget) { return null; }return _vm.sliderClick($event); } } }, [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.exportValue } }), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-bar'], style: _vm.barStyle, on: { "click": function click($event) { if ($event.target !== $event.currentTarget) { return null; }return _vm.sliderClick($event); } } }), _vm._v(" "), _vm.showStops ? _vm._l(_vm.stops, function (item, index) { return _c('div', { key: index, class: [_vm.prefixCls + '-stop'], style: { 'left': item + '%' }, on: { "click": function click($event) { if ($event.target !== $event.currentTarget) { return null; }return _vm.sliderClick($event); } } }); }) : _vm._e(), _vm._v(" "), _vm.markList.length > 0 ? [_vm._l(_vm.markList, function (item, key) { return _c('div', { key: key, class: [_vm.prefixCls + '-stop'], style: { 'left': item.position + '%' }, on: { "click": function click($event) { if ($event.target !== $event.currentTarget) { return null; }return _vm.sliderClick($event); } } }); }), _vm._v(" "), _c('div', { staticClass: "ivu-slider-marks" }, _vm._l(_vm.markList, function (item, key) { return _c('SliderMarker', { key: key, style: { 'left': item.position + '%' }, attrs: { "mark": item.mark }, nativeOn: { "click": function click($event) { return _vm.sliderClick($event); } } }); }), 1)] : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-button-wrap'], style: { left: _vm.minPosition + '%' }, on: { "touchstart": function touchstart($event) { return _vm.onPointerDown($event, 'min'); }, "mousedown": function mousedown($event) { return _vm.onPointerDown($event, 'min'); } } }, [_c('Tooltip', { ref: "minTooltip", attrs: { "controlled": _vm.pointerDown === 'min', "placement": "top", "content": _vm.tipFormat(_vm.exportValue[0]), "disabled": _vm.tipDisabled, "always": _vm.showTip === 'always' } }, [_c('div', { class: _vm.minButtonClasses, attrs: { "tabindex": "0" }, on: { "focus": function focus($event) { return _vm.handleFocus('min'); }, "blur": function blur($event) { return _vm.handleBlur('min'); }, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.onKeyLeft($event, 'min'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.onKeyLeft($event, 'min'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.onKeyRight($event, 'min'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.onKeyRight($event, 'min'); }] } })])], 1), _vm._v(" "), _vm.range ? _c('div', { class: [_vm.prefixCls + '-button-wrap'], style: { left: _vm.maxPosition + '%' }, on: { "touchstart": function touchstart($event) { return _vm.onPointerDown($event, 'max'); }, "mousedown": function mousedown($event) { return _vm.onPointerDown($event, 'max'); } } }, [_c('Tooltip', { ref: "maxTooltip", attrs: { "controlled": _vm.pointerDown === 'max', "placement": "top", "content": _vm.tipFormat(_vm.exportValue[1]), "disabled": _vm.tipDisabled, "always": _vm.showTip === 'always' } }, [_c('div', { class: _vm.maxButtonClasses, attrs: { "tabindex": "0" }, on: { "focus": function focus($event) { return _vm.handleFocus('max'); }, "blur": function blur($event) { return _vm.handleBlur('max'); }, "keydown": [function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "left", 37, $event.key, ["Left", "ArrowLeft"])) { return null; }if ('button' in $event && $event.button !== 0) { return null; }return _vm.onKeyLeft($event, 'max'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) { return null; }return _vm.onKeyLeft($event, 'max'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "right", 39, $event.key, ["Right", "ArrowRight"])) { return null; }if ('button' in $event && $event.button !== 2) { return null; }return _vm.onKeyRight($event, 'max'); }, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) { return null; }return _vm.onKeyRight($event, 'max'); }] } })])], 1) : _vm._e()], 2)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 553 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _spin = __webpack_require__(554); var _spin2 = _interopRequireDefault(_spin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var spinInstance = void 0; function getSpinInstance() { var render = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; spinInstance = spinInstance || _spin2.default.newInstance({ render: render }); return spinInstance; } function loading(options) { var render = 'render' in options ? options.render : undefined; var instance = getSpinInstance(render); instance.show(options); } _spin2.default.show = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; return loading(props); }; _spin2.default.hide = function () { var _this = this; if (!spinInstance) return false; var instance = getSpinInstance(); instance.remove(function () { (0, _newArrowCheck3.default)(this, _this); spinInstance = null; }.bind(this)); }; exports.default = _spin2.default; /***/ }), /* 554 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _vue = __webpack_require__(15); var _vue2 = _interopRequireDefault(_vue); var _spin = __webpack_require__(81); var _spin2 = _interopRequireDefault(_spin); var _transferQueue = __webpack_require__(34); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function handleGetIndex() { (0, _transferQueue.transferIncrease)(); return _transferQueue.transferIndex; } var tIndex = handleGetIndex(); _spin2.default.newInstance = function (properties) { (0, _newArrowCheck3.default)(undefined, undefined); var _props = properties || {}; var Instance = new _vue2.default({ data: (0, _assign2.default)({}, _props, {}), render: function render(h) { var vnode = ''; if (this.render) { vnode = h(_spin2.default, { props: { fix: true, fullscreen: true } }, [this.render(h)]); } else { vnode = h(_spin2.default, { props: { size: 'large', fix: true, fullscreen: true } }); } return h('div', { 'class': 'ivu-spin-fullscreen ivu-spin-fullscreen-wrapper', 'style': { 'z-index': 2010 + tIndex } }, [vnode]); } }); var component = Instance.$mount(); document.body.appendChild(component.$el); var spin = Instance.$children[0]; return { show: function show() { spin.visible = true; tIndex = handleGetIndex(); }, remove: function remove(cb) { spin.visible = false; setTimeout(function () { spin.$parent.$destroy(); if (document.getElementsByClassName('ivu-spin-fullscreen')[0] !== undefined) { document.body.removeChild(document.getElementsByClassName('ivu-spin-fullscreen')[0]); } cb(); }, 500); }, component: spin }; }.bind(undefined); exports.default = _spin2.default; /***/ }), /* 555 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _steps = __webpack_require__(556); var _steps2 = _interopRequireDefault(_steps); var _step = __webpack_require__(558); var _step2 = _interopRequireDefault(_step); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _steps2.default.Step = _step2.default; exports.default = _steps2.default; /***/ }), /* 556 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_steps_vue__ = __webpack_require__(221); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_steps_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_steps_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_steps_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_steps_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_steps_vue__ = __webpack_require__(557); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_steps_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_steps_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_steps_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_steps_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_steps_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 557 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 558 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_step_vue__ = __webpack_require__(222); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_step_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_step_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_step_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_step_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_step_vue__ = __webpack_require__(559); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_step_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_step_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_step_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_step_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_step_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 559 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses, style: _vm.styles }, [_c('div', { class: [_vm.prefixCls + '-tail'] }, [_c('i')]), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-head'] }, [_c('div', { class: [_vm.prefixCls + '-head-inner'] }, [!_vm.icon && _vm.currentStatus != 'finish' && _vm.currentStatus != 'error' ? _c('span', [_vm._v(_vm._s(_vm.stepNumber))]) : _c('span', { class: _vm.iconClasses })])]), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-main'] }, [_c('div', { class: [_vm.prefixCls + '-title'] }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _vm._t("default", [_vm.content ? _c('div', { class: [_vm.prefixCls + '-content'] }, [_vm._v(_vm._s(_vm.content))]) : _vm._e()])], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 560 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _switch = __webpack_require__(561); var _switch2 = _interopRequireDefault(_switch); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _switch2.default; /***/ }), /* 561 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_switch_vue__ = __webpack_require__(223); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_switch_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_switch_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_switch_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_switch_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_switch_vue__ = __webpack_require__(562); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_switch_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_switch_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_switch_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_switch_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_switch_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 562 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', { class: _vm.wrapClasses, style: _vm.wrapStyles, attrs: { "tabindex": "0" }, on: { "click": _vm.toggle, "keydown": function keydown($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])) { return null; }return _vm.toggle($event); } } }, [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.currentValue } }), _vm._v(" "), _c('span', { class: _vm.innerClasses }, [_vm.currentValue === _vm.trueValue ? _vm._t("open") : _vm._e(), _vm._v(" "), _vm.currentValue === _vm.falseValue ? _vm._t("close") : _vm._e()], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 563 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _table = __webpack_require__(564); var _table2 = _interopRequireDefault(_table); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _table2.default; /***/ }), /* 564 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_vue__ = __webpack_require__(224); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_table_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_table_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_table_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_vue__ = __webpack_require__(578); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_table_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 565 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue__ = __webpack_require__(225); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_head_vue__ = __webpack_require__(567); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_head_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_head_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_table_head_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_head_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_head_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 566 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableRenderHeader', functional: true, props: { render: Function, column: Object, index: Number }, render: function render(h, ctx) { (0, _newArrowCheck3.default)(undefined, undefined); var params = { column: ctx.props.column, index: ctx.props.index }; return ctx.props.render(h, params); }.bind(undefined) }; /***/ }), /* 567 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('table', { style: _vm.styles, attrs: { "cellspacing": "0", "cellpadding": "0", "border": "0" } }, [_c('colgroup', [_vm._l(_vm.columns, function (column, index) { return _c('col', { attrs: { "width": _vm.setCellWidth(column) } }); }), _vm._v(" "), _vm.$parent.showVerticalScrollBar ? _c('col', { attrs: { "width": _vm.$parent.scrollBarWidth } }) : _vm._e()], 2), _vm._v(" "), _c('thead', _vm._l(_vm.headRows, function (cols, rowIndex) { return _c('tr', [_vm._l(cols, function (column, index) { return _c('th', { class: _vm.alignCls(column), attrs: { "colspan": column.colSpan, "rowspan": column.rowSpan } }, [_c('div', { class: _vm.cellClasses(column) }, [column.type === 'expand' ? [!column.renderHeader ? _c('span', [_vm._v(_vm._s(column.title || ''))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } })] : column.type === 'selection' ? [_c('Checkbox', { attrs: { "value": _vm.isSelectAll, "disabled": _vm.isSelectDisabled }, on: { "on-change": _vm.selectAll } })] : [!column.renderHeader ? _c('span', { class: (_obj = {}, _obj[_vm.prefixCls + '-cell-sort'] = column.sortable, _obj), on: { "click": function click($event) { _vm.handleSortByHead(_vm.getColumn(rowIndex, index)._index); } } }, [_vm._v(_vm._s(column.title || '#'))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } }), _vm._v(" "), column.sortable ? _c('span', { class: [_vm.prefixCls + '-sort'] }, [_c('i', { staticClass: "ivu-icon ivu-icon-md-arrow-dropup", class: { on: _vm.getColumn(rowIndex, index)._sortType === 'asc' }, on: { "click": function click($event) { _vm.handleSort(_vm.getColumn(rowIndex, index)._index, 'asc'); } } }), _vm._v(" "), _c('i', { staticClass: "ivu-icon ivu-icon-md-arrow-dropdown", class: { on: _vm.getColumn(rowIndex, index)._sortType === 'desc' }, on: { "click": function click($event) { _vm.handleSort(_vm.getColumn(rowIndex, index)._index, 'desc'); } } })]) : _vm._e(), _vm._v(" "), _vm.isPopperShow(column) ? _c('Poptip', { attrs: { "placement": "bottom", "popper-class": "ivu-table-popper", "transfer": "" }, on: { "on-popper-hide": function onPopperHide($event) { _vm.handleFilterHide(_vm.getColumn(rowIndex, index)._index); } }, model: { value: _vm.getColumn(rowIndex, index)._filterVisible, callback: function callback($$v) { _vm.$set(_vm.getColumn(rowIndex, index), "_filterVisible", $$v); }, expression: "getColumn(rowIndex, index)._filterVisible" } }, [_c('span', { class: [_vm.prefixCls + '-filter'] }, [_c('i', { staticClass: "ivu-icon ivu-icon-ios-funnel", class: { on: _vm.getColumn(rowIndex, index)._isFiltered } })]), _vm._v(" "), _vm.getColumn(rowIndex, index)._filterMultiple ? _c('div', { class: [_vm.prefixCls + '-filter-list'], attrs: { "slot": "content" }, slot: "content" }, [_c('div', { class: [_vm.prefixCls + '-filter-list-item'] }, [_c('checkbox-group', { model: { value: _vm.getColumn(rowIndex, index)._filterChecked, callback: function callback($$v) { _vm.$set(_vm.getColumn(rowIndex, index), "_filterChecked", $$v); }, expression: "getColumn(rowIndex, index)._filterChecked" } }, _vm._l(column.filters, function (item, index) { return _c('checkbox', { key: index, attrs: { "label": item.value } }, [_vm._v(_vm._s(item.label))]); }), 1)], 1), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-filter-footer'] }, [_c('i-button', { attrs: { "type": "text", "size": "small", "disabled": !_vm.getColumn(rowIndex, index)._filterChecked.length }, nativeOn: { "click": function click($event) { _vm.handleFilter(_vm.getColumn(rowIndex, index)._index); } } }, [_vm._v(_vm._s(_vm.t('i.table.confirmFilter')))]), _vm._v(" "), _c('i-button', { attrs: { "type": "text", "size": "small" }, nativeOn: { "click": function click($event) { _vm.handleReset(_vm.getColumn(rowIndex, index)._index); } } }, [_vm._v(_vm._s(_vm.t('i.table.resetFilter')))])], 1)]) : _c('div', { class: [_vm.prefixCls + '-filter-list'], attrs: { "slot": "content" }, slot: "content" }, [_c('ul', { class: [_vm.prefixCls + '-filter-list-single'] }, [_c('li', { class: _vm.itemAllClasses(_vm.getColumn(rowIndex, index)), on: { "click": function click($event) { _vm.handleReset(_vm.getColumn(rowIndex, index)._index); } } }, [_vm._v(_vm._s(_vm.t('i.table.clearFilter')))]), _vm._v(" "), _vm._l(column.filters, function (item) { return _c('li', { class: _vm.itemClasses(_vm.getColumn(rowIndex, index), item), on: { "click": function click($event) { _vm.handleSelect(_vm.getColumn(rowIndex, index)._index, item.value); } } }, [_vm._v(_vm._s(item.label))]); })], 2)])]) : _vm._e()]], 2)]); var _obj; }), _vm._v(" "), _vm.$parent.showVerticalScrollBar && rowIndex === 0 ? _c('th', { class: _vm.scrollBarCellClass(), attrs: { "rowspan": _vm.headRows.length } }) : _vm._e()], 2); }), 0)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 568 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue__ = __webpack_require__(227); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_body_vue__ = __webpack_require__(574); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_body_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_body_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_table_body_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_body_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_body_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 569 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue__ = __webpack_require__(228); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_tr_vue__ = __webpack_require__(570); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_tr_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_tr_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_table_tr_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_tr_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_table_tr_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 570 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.draggable ? _c('tr', { class: _vm.rowClasses(_vm.row._index), attrs: { "draggable": _vm.draggable }, on: { "dragstart": function dragstart($event) { return _vm.onDrag($event, _vm.row._index); }, "drop": function drop($event) { return _vm.onDrop($event, _vm.row._index); }, "dragover": function dragover($event) { return _vm.allowDrop($event); } } }, [_vm._t("default")], 2) : _c('tr', { class: _vm.rowClasses(_vm.row._index) }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 571 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__ = __webpack_require__(229); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_cell_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_cell_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__ = __webpack_require__(573); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_cell_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_cell_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 572 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'TableSlot', functional: true, inject: ['tableRoot'], props: { row: Object, index: Number, column: { type: Object, default: null } }, render: function render(h, ctx) { (0, _newArrowCheck3.default)(undefined, undefined); return h('div', ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot]({ row: ctx.props.row, column: ctx.props.column, index: ctx.props.index })); }.bind(undefined) }; /***/ }), /* 573 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { ref: "cell", class: _vm.classes }, [_vm.renderType === 'index' ? [_c('span', [_vm._v(_vm._s(_vm.column.indexMethod ? _vm.column.indexMethod(_vm.row) : _vm.naturalIndex + 1))])] : _vm._e(), _vm._v(" "), _vm.renderType === 'selection' ? [_c('Checkbox', { attrs: { "value": _vm.checked, "disabled": _vm.disabled }, on: { "on-change": _vm.toggleSelect }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.handleClick($event); } } })] : _vm._e(), _vm._v(" "), _vm.renderType === 'html' ? [_c('span', { domProps: { "innerHTML": _vm._s(_vm.row[_vm.column.key]) } })] : _vm._e(), _vm._v(" "), _vm.renderType === 'normal' ? [_vm.column.tooltip ? [_c('Tooltip', { staticClass: "ivu-table-cell-tooltip", attrs: { "transfer": "", "content": _vm.row[_vm.column.key], "theme": _vm.tableRoot.tooltipTheme, "disabled": !_vm.showTooltip, "max-width": 300 } }, [_c('span', { ref: "content", staticClass: "ivu-table-cell-tooltip-content", on: { "mouseenter": _vm.handleTooltipIn, "mouseleave": _vm.handleTooltipOut } }, [_vm._v(_vm._s(_vm.row[_vm.column.key]))])])] : _c('span', [_vm._v(_vm._s(_vm.row[_vm.column.key]))])] : _vm._e(), _vm._v(" "), _vm.renderType === 'expand' && !_vm.row._disableExpand ? [_c('div', { class: _vm.expandCls, on: { "click": _vm.toggleExpand } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1)] : _vm._e(), _vm._v(" "), _vm.renderType === 'render' ? _c('table-expand', { attrs: { "row": _vm.row, "column": _vm.column, "index": _vm.index, "render": _vm.column.render } }) : _vm._e(), _vm._v(" "), _vm.renderType === 'slot' ? _c('table-slot', { attrs: { "row": _vm.row, "column": _vm.column, "index": _vm.index } }) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 574 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('table', { style: _vm.styleObject, attrs: { "cellspacing": "0", "cellpadding": "0", "border": "0" } }, [_c('colgroup', _vm._l(_vm.columns, function (column, index) { return _c('col', { attrs: { "width": _vm.setCellWidth(column) } }); }), 0), _vm._v(" "), _c('tbody', { class: [_vm.prefixCls + '-tbody'] }, [_vm._l(_vm.data, function (row, index) { return [_c('table-tr', { key: _vm.rowKey ? row._rowKey : index, attrs: { "draggable": _vm.draggable, "row": row, "prefix-cls": _vm.prefixCls }, nativeOn: { "mouseenter": function mouseenter($event) { $event.stopPropagation();return _vm.handleMouseIn(row._index); }, "mouseleave": function mouseleave($event) { $event.stopPropagation();return _vm.handleMouseOut(row._index); }, "click": function click($event) { return _vm.clickCurrentRow(row._index); }, "dblclick": function dblclick($event) { $event.stopPropagation();return _vm.dblclickCurrentRow(row._index); } } }, _vm._l(_vm.columns, function (column) { return _c('td', { class: _vm.alignCls(column, row) }, [_c('table-cell', { key: column._columnKey, attrs: { "fixed": _vm.fixed, "prefix-cls": _vm.prefixCls, "row": row, "column": column, "natural-index": index, "index": row._index, "checked": _vm.rowChecked(row._index), "disabled": _vm.rowDisabled(row._index), "expanded": _vm.rowExpanded(row._index) } })], 1); }), 0), _vm._v(" "), _vm.rowExpanded(row._index) ? _c('tr', { class: (_obj = {}, _obj[_vm.prefixCls + '-expanded-hidden'] = _vm.fixed, _obj) }, [_c('td', { class: _vm.prefixCls + '-expanded-cell', attrs: { "colspan": _vm.columns.length } }, [_c('Expand', { key: _vm.rowKey ? row._rowKey : index, attrs: { "row": row, "render": _vm.expandRender, "index": row._index } })], 1)]) : _vm._e()]; var _obj; })], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 575 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); var _assign = __webpack_require__(14); var _assign2 = _interopRequireDefault(_assign); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); exports.default = csv; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var newLine = '\r\n'; var appendLine = function (content, row, _ref) { var separator = _ref.separator, quoted = _ref.quoted; (0, _newArrowCheck3.default)(undefined, undefined); var line = row.map(function (data) { (0, _newArrowCheck3.default)(undefined, undefined); if (!quoted) return data; data = typeof data === 'string' ? data.replace(/"/g, '"') : data; return '"' + String(data) + '"'; }.bind(undefined)); content.push(line.join(separator)); }.bind(undefined); var defaults = { separator: ',', quoted: false }; function csv(columns, datas, options) { var _this = this; var noHeader = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; options = (0, _assign2.default)({}, defaults, options); var columnOrder = void 0; var content = []; var column = []; if (columns) { columnOrder = columns.map(function (v) { (0, _newArrowCheck3.default)(this, _this); if (typeof v === 'string') return v; if (!noHeader) { column.push(typeof v.title !== 'undefined' ? v.title : v.key); } return v.key; }.bind(this)); if (column.length > 0) appendLine(content, column, options); } else { columnOrder = []; datas.forEach(function (v) { (0, _newArrowCheck3.default)(this, _this); if (!Array.isArray(v)) { columnOrder = columnOrder.concat((0, _keys2.default)(v)); } }.bind(this)); if (columnOrder.length > 0) { columnOrder = columnOrder.filter(function (value, index, self) { (0, _newArrowCheck3.default)(this, _this); return self.indexOf(value) === index; }.bind(this)); if (!noHeader) appendLine(content, columnOrder, options); } } if (Array.isArray(datas)) { datas.forEach(function (row) { (0, _newArrowCheck3.default)(this, _this); if (!Array.isArray(row)) { row = columnOrder.map(function (k) { (0, _newArrowCheck3.default)(this, _this); return typeof row[k] !== 'undefined' ? row[k] : ''; }.bind(this)); } appendLine(content, row, options); }.bind(this)); } return content.join(newLine); } /***/ }), /* 576 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function has(browser) { var ua = navigator.userAgent; if (browser === 'ie') { var isIE = ua.indexOf('compatible') > -1 && ua.indexOf('MSIE') > -1; if (isIE) { var reIE = new RegExp('MSIE (\\d+\\.\\d+);'); reIE.test(ua); return parseFloat(RegExp['$1']); } else { return false; } } else { return ua.indexOf(browser) > -1; } } var csv = { _isIE11: function _isIE11() { var iev = 0; var ieold = /MSIE (\d+\.\d+);/.test(navigator.userAgent); var trident = !!navigator.userAgent.match(/Trident\/7.0/); var rv = navigator.userAgent.indexOf('rv:11.0'); if (ieold) { iev = Number(RegExp.$1); } if (navigator.appVersion.indexOf('MSIE 10') !== -1) { iev = 10; } if (trident && rv !== -1) { iev = 11; } return iev === 11; }, _isEdge: function _isEdge() { return (/Edge/.test(navigator.userAgent) ); }, _getDownloadUrl: function _getDownloadUrl(text) { var BOM = '\uFEFF'; if (window.Blob && window.URL && window.URL.createObjectURL) { var csvData = new Blob([BOM + text], { type: 'text/csv' }); return URL.createObjectURL(csvData); } else { return 'data:attachment/csv;charset=utf-8,' + BOM + encodeURIComponent(text); } }, download: function download(filename, text) { if (has('ie') && has('ie') < 10) { var oWin = window.top.open('about:blank', '_blank'); oWin.document.charset = 'utf-8'; oWin.document.write(text); oWin.document.close(); oWin.document.execCommand('SaveAs', filename); oWin.close(); } else if (has('ie') === 10 || this._isIE11() || this._isEdge()) { var BOM = '\uFEFF'; var csvData = new Blob([BOM + text], { type: 'text/csv' }); navigator.msSaveBlob(csvData, filename); } else { var link = document.createElement('a'); link.download = filename; link.href = this._getDownloadUrl(text); document.body.appendChild(link); link.click(); document.body.removeChild(link); } } }; exports.default = csv; /***/ }), /* 577 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRandomStr = exports.convertToRows = exports.getAllColumns = exports.convertColumnOrder = undefined; var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var convertColumnOrder = function (columns, fixedType) { (0, _newArrowCheck3.default)(undefined, undefined); var list = []; var other = []; columns.forEach(function (col) { (0, _newArrowCheck3.default)(undefined, undefined); if (col.fixed && col.fixed === fixedType) { list.push(col); } else { other.push(col); } }.bind(undefined)); return list.concat(other); }.bind(undefined); exports.convertColumnOrder = convertColumnOrder; var getAllColumns = function (cols) { var forTableHead = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; (0, _newArrowCheck3.default)(undefined, undefined); var columns = (0, _assist.deepCopy)(cols); var result = []; columns.forEach(function (column) { (0, _newArrowCheck3.default)(undefined, undefined); if (column.children) { if (forTableHead) result.push(column); result.push.apply(result, getAllColumns(column.children, forTableHead)); } else { result.push(column); } }.bind(undefined)); return result; }.bind(undefined); exports.getAllColumns = getAllColumns; var convertToRows = function (columns) { var fixedType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; (0, _newArrowCheck3.default)(undefined, undefined); var originColumns = fixedType ? fixedType === 'left' ? (0, _assist.deepCopy)(convertColumnOrder(columns, 'left')) : (0, _assist.deepCopy)(convertColumnOrder(columns, 'right')) : (0, _assist.deepCopy)(columns); var maxLevel = 1; var traverse = function (column, parent) { (0, _newArrowCheck3.default)(undefined, undefined); if (parent) { column.level = parent.level + 1; if (maxLevel < column.level) { maxLevel = column.level; } } if (column.children) { var colSpan = 0; column.children.forEach(function (subColumn) { (0, _newArrowCheck3.default)(undefined, undefined); traverse(subColumn, column); colSpan += subColumn.colSpan; }.bind(undefined)); column.colSpan = colSpan; } else { column.colSpan = 1; } }.bind(undefined); originColumns.forEach(function (column) { (0, _newArrowCheck3.default)(undefined, undefined); column.level = 1; traverse(column); }.bind(undefined)); var rows = []; for (var i = 0; i < maxLevel; i++) { rows.push([]); } var allColumns = getAllColumns(originColumns, true); allColumns.forEach(function (column) { (0, _newArrowCheck3.default)(undefined, undefined); if (!column.children) { column.rowSpan = maxLevel - column.level + 1; } else { column.rowSpan = 1; } rows[column.level - 1].push(column); }.bind(undefined)); return rows; }.bind(undefined); exports.convertToRows = convertToRows; var getRandomStr = function getRandomStr() { var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32; var $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; var maxPos = $chars.length; var str = ''; for (var i = 0; i < len; i++) { str += $chars.charAt(Math.floor(Math.random() * maxPos)); } return str; }; exports.getRandomStr = getRandomStr; /***/ }), /* 578 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.wrapClasses, style: _vm.styles }, [_c('div', { class: _vm.classes }, [_vm.showSlotHeader ? _c('div', { ref: "title", class: [_vm.prefixCls + '-title'] }, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _vm.showHeader ? _c('div', { ref: "header", class: [_vm.prefixCls + '-header'], on: { "mousewheel": _vm.handleMouseWheel } }, [_c('table-head', { attrs: { "prefix-cls": _vm.prefixCls, "styleObject": _vm.tableHeaderStyle, "columns": _vm.cloneColumns, "column-rows": _vm.columnRows, "obj-data": _vm.objData, "columns-width": _vm.columnsWidth, "data": _vm.rebuildData } })], 1) : _vm._e(), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: !(!!_vm.localeNoDataText && (!_vm.data || _vm.data.length === 0) || !!_vm.localeNoFilteredDataText && (!_vm.rebuildData || _vm.rebuildData.length === 0)), expression: "!((!!localeNoDataText && (!data || data.length === 0)) || (!!localeNoFilteredDataText && (!rebuildData || rebuildData.length === 0)))" }], ref: "body", class: [_vm.prefixCls + '-body'], style: _vm.bodyStyle, on: { "scroll": _vm.handleBodyScroll } }, [_c('table-body', { ref: "tbody", attrs: { "draggable": _vm.draggable, "prefix-cls": _vm.prefixCls, "styleObject": _vm.tableStyle, "columns": _vm.cloneColumns, "data": _vm.rebuildData, "row-key": _vm.rowKey, "columns-width": _vm.columnsWidth, "obj-data": _vm.objData } })], 1), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: !!_vm.localeNoDataText && (!_vm.data || _vm.data.length === 0) || !!_vm.localeNoFilteredDataText && (!_vm.rebuildData || _vm.rebuildData.length === 0), expression: "((!!localeNoDataText && (!data || data.length === 0)) || (!!localeNoFilteredDataText && (!rebuildData || rebuildData.length === 0)))" }], class: [_vm.prefixCls + '-tip'], style: _vm.bodyStyle, on: { "scroll": _vm.handleBodyScroll } }, [_c('table', { attrs: { "cellspacing": "0", "cellpadding": "0", "border": "0" } }, [_c('tbody', [_c('tr', [_c('td', { style: { 'height': _vm.bodyStyle.height, 'width': this.headerWidth + "px" } }, [!_vm.data || _vm.data.length === 0 ? _c('span', { domProps: { "innerHTML": _vm._s(_vm.localeNoDataText) } }) : _c('span', { domProps: { "innerHTML": _vm._s(_vm.localeNoFilteredDataText) } })])])])])]), _vm._v(" "), _vm.isLeftFixed ? _c('div', { class: [_vm.prefixCls + '-fixed'], style: _vm.fixedTableStyle }, [_vm.showHeader ? _c('div', { class: _vm.fixedHeaderClasses }, [_c('table-head', { attrs: { "fixed": "left", "prefix-cls": _vm.prefixCls, "styleObject": _vm.fixedTableStyle, "columns": _vm.leftFixedColumns, "column-rows": _vm.columnRows, "fixed-column-rows": _vm.leftFixedColumnRows, "obj-data": _vm.objData, "columns-width": _vm.columnsWidth, "data": _vm.rebuildData } })], 1) : _vm._e(), _vm._v(" "), _c('div', { ref: "fixedBody", class: [_vm.prefixCls + '-fixed-body'], style: _vm.fixedBodyStyle, on: { "mousewheel": _vm.handleFixedMousewheel, "DOMMouseScroll": _vm.handleFixedMousewheel } }, [_c('table-body', { attrs: { "fixed": "left", "draggable": _vm.draggable, "prefix-cls": _vm.prefixCls, "styleObject": _vm.fixedTableStyle, "columns": _vm.leftFixedColumns, "data": _vm.rebuildData, "row-key": _vm.rowKey, "columns-width": _vm.columnsWidth, "obj-data": _vm.objData } })], 1)]) : _vm._e(), _vm._v(" "), _vm.isRightFixed ? _c('div', { class: [_vm.prefixCls + '-fixed-right'], style: _vm.fixedRightTableStyle }, [_vm.showHeader ? _c('div', { class: _vm.fixedHeaderClasses }, [_c('table-head', { attrs: { "fixed": "right", "prefix-cls": _vm.prefixCls, "styleObject": _vm.fixedRightTableStyle, "columns": _vm.rightFixedColumns, "column-rows": _vm.columnRows, "fixed-column-rows": _vm.rightFixedColumnRows, "obj-data": _vm.objData, "columns-width": _vm.columnsWidth, "data": _vm.rebuildData } })], 1) : _vm._e(), _vm._v(" "), _c('div', { ref: "fixedRightBody", class: [_vm.prefixCls + '-fixed-body'], style: _vm.fixedBodyStyle, on: { "mousewheel": _vm.handleFixedMousewheel, "DOMMouseScroll": _vm.handleFixedMousewheel } }, [_c('table-body', { attrs: { "fixed": "right", "draggable": _vm.draggable, "prefix-cls": _vm.prefixCls, "styleObject": _vm.fixedRightTableStyle, "columns": _vm.rightFixedColumns, "data": _vm.rebuildData, "row-key": _vm.rowKey, "columns-width": _vm.columnsWidth, "obj-data": _vm.objData } })], 1)]) : _vm._e(), _vm._v(" "), _vm.isRightFixed ? _c('div', { class: [_vm.prefixCls + '-fixed-right-header'], style: _vm.fixedRightHeaderStyle }) : _vm._e(), _vm._v(" "), _vm.showSlotFooter ? _c('div', { ref: "footer", class: [_vm.prefixCls + '-footer'] }, [_vm._t("footer")], 2) : _vm._e()]), _vm._v(" "), _vm.loading ? _c('Spin', { attrs: { "fix": "", "size": "large" } }, [_vm._t("loading")], 2) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 579 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _tabs = __webpack_require__(580); var _tabs2 = _interopRequireDefault(_tabs); var _pane = __webpack_require__(582); var _pane2 = _interopRequireDefault(_pane); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _tabs2.default.Pane = _pane2.default; exports.default = _tabs2.default; /***/ }), /* 580 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue__ = __webpack_require__(231); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tabs_vue__ = __webpack_require__(581); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tabs_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tabs_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_tabs_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tabs_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tabs_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 581 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, [_c('div', { class: [_vm.prefixCls + '-bar'] }, [_vm.showSlot ? _c('div', { class: [_vm.prefixCls + '-nav-right'] }, [_vm._t("extra")], 2) : _vm._e(), _vm._v(" "), _c('div', { ref: "navContainer", class: [_vm.prefixCls + '-nav-container'], attrs: { "tabindex": "0" }, on: { "keydown": [_vm.handleTabKeyNavigation, function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])) { return null; }$event.preventDefault();return _vm.handleTabKeyboardSelect(false); }] } }, [_c('div', { ref: "navWrap", class: [_vm.prefixCls + '-nav-wrap', _vm.scrollable ? _vm.prefixCls + '-nav-scrollable' : ''] }, [_c('span', { class: [_vm.prefixCls + '-nav-prev', _vm.scrollable ? '' : _vm.prefixCls + '-nav-scroll-disabled'], on: { "click": _vm.scrollPrev } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } })], 1), _vm._v(" "), _c('span', { class: [_vm.prefixCls + '-nav-next', _vm.scrollable ? '' : _vm.prefixCls + '-nav-scroll-disabled'], on: { "click": _vm.scrollNext } }, [_c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1), _vm._v(" "), _c('div', { ref: "navScroll", class: [_vm.prefixCls + '-nav-scroll'] }, [_c('div', { ref: "nav", class: [_vm.prefixCls + '-nav'], style: _vm.navStyle }, [_c('div', { class: _vm.barClasses, style: _vm.barStyle }), _vm._v(" "), _vm._l(_vm.navList, function (item, index) { return _c('div', { class: _vm.tabCls(item), on: { "click": function click($event) { return _vm.handleChange(index); } } }, [item.icon !== '' ? _c('Icon', { attrs: { "type": item.icon } }) : _vm._e(), _vm._v(" "), item.labelType === 'function' ? _c('Render', { attrs: { "render": item.label } }) : [_vm._v(_vm._s(item.label))], _vm._v(" "), _vm.showClose(item) ? _c('Icon', { class: [_vm.prefixCls + '-close'], attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.handleRemove(index); } } }) : _vm._e()], 2); })], 2)])])])]), _vm._v(" "), _c('div', { ref: "panes", class: _vm.contentClasses, style: _vm.contentStyle }, [_vm._t("default")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 582 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_pane_vue__ = __webpack_require__(232); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_pane_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_pane_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_pane_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_pane_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_pane_vue__ = __webpack_require__(583); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_pane_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_pane_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_pane_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_pane_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_pane_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 583 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.show, expression: "show" }], class: _vm.prefixCls, style: _vm.contentStyle }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 584 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _tag = __webpack_require__(585); var _tag2 = _interopRequireDefault(_tag); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _tag2.default; /***/ }), /* 585 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tag_vue__ = __webpack_require__(233); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tag_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_tag_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_tag_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_tag_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tag_vue__ = __webpack_require__(586); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tag_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tag_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_tag_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tag_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tag_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 586 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _vm.fade ? _c('transition', { attrs: { "name": "fade" } }, [_c('div', { class: _vm.classes, style: _vm.wraperStyles, on: { "click": function click($event) { $event.stopPropagation();return _vm.check($event); } } }, [_vm.showDot ? _c('span', { class: _vm.dotClasses, style: _vm.bgColorStyle }) : _vm._e(), _vm._v(" "), _c('span', { class: _vm.textClasses, style: _vm.textColorStyle }, [_vm._t("default")], 2), _vm._v(" "), _vm.closable ? _c('Icon', { class: _vm.iconClass, attrs: { "color": _vm.lineColor, "type": "ios-close" }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.close($event); } } }) : _vm._e()], 1)]) : _c('div', { class: _vm.classes, style: _vm.wraperStyles, on: { "click": function click($event) { $event.stopPropagation();return _vm.check($event); } } }, [_vm.showDot ? _c('span', { class: _vm.dotClasses, style: _vm.bgColorStyle }) : _vm._e(), _vm._v(" "), _c('span', { class: _vm.textClasses, style: _vm.textColorStyle }, [_vm._t("default")], 2), _vm._v(" "), _vm.closable ? _c('Icon', { class: _vm.iconClass, attrs: { "color": _vm.lineColor, "type": "ios-close" }, nativeOn: { "click": function click($event) { $event.stopPropagation();return _vm.close($event); } } }) : _vm._e()], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 587 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _time = __webpack_require__(588); var _time2 = _interopRequireDefault(_time); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _time2.default; /***/ }), /* 588 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_vue__ = __webpack_require__(234); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_time_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_time_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_time_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_time_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__ = __webpack_require__(590); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_time_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_time_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 589 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRelativeTime = undefined; var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); exports.default = function (timestamp, locale) { return getRelativeTime(timestamp, locale); }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var isEarly = function (timeStamp, currentTime) { (0, _newArrowCheck3.default)(undefined, undefined); return timeStamp <= currentTime; }.bind(undefined); var getHandledValue = function (num) { (0, _newArrowCheck3.default)(undefined, undefined); return num < 10 ? '0' + num : num; }.bind(undefined); var getDate = function (timeStamp, startType) { (0, _newArrowCheck3.default)(undefined, undefined); var d = new Date(timeStamp); var year = d.getFullYear(); var month = getHandledValue(d.getMonth() + 1); var date = getHandledValue(d.getDate()); var hours = getHandledValue(d.getHours()); var minutes = getHandledValue(d.getMinutes()); var second = getHandledValue(d.getSeconds()); var resStr = ''; if (startType === 'year') resStr = year + '-' + month + '-' + date + ' ' + hours + ':' + minutes + ':' + second;else resStr = month + '-' + date + ' ' + hours + ':' + minutes; return resStr; }.bind(undefined); var getRelativeTime = exports.getRelativeTime = function (timeStamp, locale) { (0, _newArrowCheck3.default)(undefined, undefined); var currentTime = new Date().getTime(); var IS_EARLY = isEarly(timeStamp, currentTime); var diff = currentTime - timeStamp; if (!IS_EARLY) diff = -diff; var resStr = ''; var dirStr = IS_EARLY ? locale('i.time.before') || '' : locale('i.time.after') || ''; if (diff < 1000) resStr = locale('i.time.just') || '';else if (diff < 60000) resStr = parseInt(diff / 1000) + (locale('i.time.seconds') || '') + dirStr;else if (diff >= 60000 && diff < 3600000) resStr = Math.floor(diff / 60000) + (locale('i.time.minutes') || '') + dirStr;else if (diff >= 3600000 && diff < 86400000) resStr = Math.floor(diff / 3600000) + (locale('i.time.hours') || '') + dirStr;else if (diff >= 86400000 && diff < 2623860000) resStr = Math.floor(diff / 86400000) + (locale('i.time.days') || '') + dirStr;else if (diff >= 2623860000 && diff <= 31567860000 && IS_EARLY) resStr = getDate(timeStamp);else resStr = getDate(timeStamp, 'year'); return resStr; }.bind(undefined); /***/ }), /* 590 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('span', { class: _vm.classes, on: { "click": _vm.handleClick } }, [_vm._v(_vm._s(_vm.date))]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 591 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _timeline = __webpack_require__(592); var _timeline2 = _interopRequireDefault(_timeline); var _timelineItem = __webpack_require__(594); var _timelineItem2 = _interopRequireDefault(_timelineItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _timeline2.default.Item = _timelineItem2.default; exports.default = _timeline2.default; /***/ }), /* 592 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue__ = __webpack_require__(235); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_vue__ = __webpack_require__(593); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_timeline_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 593 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('ul', { class: _vm.classes }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 594 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue__ = __webpack_require__(236); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_item_vue__ = __webpack_require__(595); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_item_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_item_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_timeline_item_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_item_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_timeline_item_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 595 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { class: _vm.itemClasses }, [_c('div', { class: _vm.tailClasses }), _vm._v(" "), _c('div', { ref: "dot", class: _vm.headClasses, style: _vm.customColor }, [_vm._t("dot")], 2), _vm._v(" "), _c('div', { class: _vm.contentClasses }, [_vm._t("default")], 2)]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 596 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _timePicker = __webpack_require__(597); var _timePicker2 = _interopRequireDefault(_timePicker); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _timePicker2.default; /***/ }), /* 597 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _picker = __webpack_require__(147); var _picker2 = _interopRequireDefault(_picker); var _time = __webpack_require__(156); var _time2 = _interopRequireDefault(_time); var _timeRange = __webpack_require__(165); var _timeRange2 = _interopRequireDefault(_timeRange); var _timeMixins = __webpack_require__(56); var _timeMixins2 = _interopRequireDefault(_timeMixins); var _assist = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { mixins: [_picker2.default, _timeMixins2.default], components: { TimePickerPanel: _time2.default, RangeTimePickerPanel: _timeRange2.default }, props: { type: { validator: function validator(value) { return (0, _assist.oneOf)(value, ['time', 'timerange']); }, default: 'time' } }, computed: { panel: function panel() { var isRange = this.type === 'timerange'; return isRange ? 'RangeTimePickerPanel' : 'TimePickerPanel'; }, ownPickerProps: function ownPickerProps() { return { disabledHours: this.disabledHours, disabledMinutes: this.disabledMinutes, disabledSeconds: this.disabledSeconds, hideDisabledOptions: this.hideDisabledOptions }; } }, watch: { visible: function visible(_visible) { var _this = this; if (_visible) { this.$nextTick(function () { (0, _newArrowCheck3.default)(this, _this); var spinners = (0, _assist.findComponentsDownward)(this, 'TimeSpinner'); spinners.forEach(function (instance) { (0, _newArrowCheck3.default)(this, _this); return instance.updateScroll(); }.bind(this)); }.bind(this)); } } } }; /***/ }), /* 598 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _tooltip = __webpack_require__(83); var _tooltip2 = _interopRequireDefault(_tooltip); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _tooltip2.default; /***/ }), /* 599 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _transfer = __webpack_require__(600); var _transfer2 = _interopRequireDefault(_transfer); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _transfer2.default; /***/ }), /* 600 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue__ = __webpack_require__(237); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hash_component_normalizer__ = __webpack_require__(0); /* script */ /* template */ var __vue_render__, __vue_static_render_fns__ /* 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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_transfer_vue___default.a, __vue_render__, __vue_static_render_fns__, __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 601 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_vue__ = __webpack_require__(238); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_list_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_list_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_list_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_list_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__ = __webpack_require__(604); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_list_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_list_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 602 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_search_vue__ = __webpack_require__(239); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_search_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_search_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_search_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_search_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_search_vue__ = __webpack_require__(603); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_search_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_search_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_search_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_search_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_search_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 603 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.prefixCls }, [_c('i-input', { attrs: { "size": "small", "icon": _vm.icon, "placeholder": _vm.placeholder }, on: { "on-click": _vm.handleClick }, model: { value: _vm.currentQuery, callback: function callback($$v) { _vm.currentQuery = $$v; }, expression: "currentQuery" } })], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 604 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, style: _vm.listStyle }, [_c('div', { class: _vm.prefixCls + '-header' }, [_c('Checkbox', { attrs: { "value": _vm.checkedAll, "disabled": _vm.checkedAllDisabled }, on: { "on-change": _vm.toggleSelectAll } }), _vm._v(" "), _c('span', { class: _vm.prefixCls + '-header-title', on: { "click": function click($event) { return _vm.toggleSelectAll(!_vm.checkedAll); } } }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _c('span', { class: _vm.prefixCls + '-header-count' }, [_vm._v(_vm._s(_vm.count))])], 1), _vm._v(" "), _c('div', { class: _vm.bodyClasses }, [_vm.filterable ? _c('div', { class: _vm.prefixCls + '-body-search-wrapper' }, [_c('Search', { attrs: { "prefix-cls": _vm.prefixCls + '-search', "query": _vm.query, "placeholder": _vm.filterPlaceholder }, on: { "on-query-clear": _vm.handleQueryClear, "on-query-change": _vm.handleQueryChange } })], 1) : _vm._e(), _vm._v(" "), _c('ul', { class: _vm.prefixCls + '-content' }, [_vm._l(_vm.filterData, function (item) { return _c('li', { class: _vm.itemClasses(item), on: { "click": function click($event) { $event.preventDefault();return _vm.select(item); } } }, [_c('Checkbox', { attrs: { "value": _vm.isCheck(item), "disabled": item.disabled } }), _vm._v(" "), _c('span', { domProps: { "innerHTML": _vm._s(_vm.showLabel(item)) } })], 1); }), _vm._v(" "), _c('li', { class: _vm.prefixCls + '-content-not-found' }, [_vm._v(_vm._s(_vm.notFoundText))])], 2)]), _vm._v(" "), _vm.showFooter ? _c('div', { class: _vm.prefixCls + '-footer' }, [_vm._t("default")], 2) : _vm._e()]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 605 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_operation_vue__ = __webpack_require__(240); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_operation_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_operation_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_operation_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_operation_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_operation_vue__ = __webpack_require__(606); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_operation_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_operation_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_operation_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_operation_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_operation_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 606 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.prefixCls + '-operation' }, [_c('i-button', { attrs: { "type": "primary", "size": "small", "disabled": !_vm.rightActive }, nativeOn: { "click": function click($event) { return _vm.moveToLeft($event); } } }, [_c('Icon', { attrs: { "type": "ios-arrow-back" } }), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.operations[0]))])], 1), _vm._v(" "), _c('i-button', { attrs: { "type": "primary", "size": "small", "disabled": !_vm.leftActive }, nativeOn: { "click": function click($event) { return _vm.moveToRight($event); } } }, [_c('span', [_vm._v(_vm._s(_vm.operations[1]))]), _vm._v(" "), _c('Icon', { attrs: { "type": "ios-arrow-forward" } })], 1)], 1); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 607 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _tree = __webpack_require__(608); var _tree2 = _interopRequireDefault(_tree); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _tree2.default; /***/ }), /* 608 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tree_vue__ = __webpack_require__(241); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_tree_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_tree_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_tree_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_tree_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tree_vue__ = __webpack_require__(612); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tree_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tree_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_tree_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tree_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_tree_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 609 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_node_vue__ = __webpack_require__(242); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_node_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_node_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_node_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_node_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_node_vue__ = __webpack_require__(611); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_node_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_node_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_node_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_node_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_node_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 610 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'RenderCell', functional: true, props: { render: Function, data: Object, node: Array }, render: function render(h, ctx) { (0, _newArrowCheck3.default)(undefined, undefined); var params = { root: ctx.props.node[0], node: ctx.props.node[1], data: ctx.props.data }; return ctx.props.render(h, params); }.bind(undefined) }; /***/ }), /* 611 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('collapse-transition', { attrs: { "appear": _vm.appear } }, [_c('ul', { class: _vm.classes }, [_c('li', [_c('span', { class: _vm.arrowClasses, on: { "click": _vm.handleExpand } }, [_vm.showArrow ? _c('Icon', { attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } }) : _vm._e(), _vm._v(" "), _vm.showLoading ? _c('Icon', { staticClass: "ivu-load-loop", attrs: { "type": "ios-loading" } }) : _vm._e()], 1), _vm._v(" "), _vm.showCheckbox ? _c('Checkbox', { attrs: { "value": _vm.data.checked, "indeterminate": _vm.data.indeterminate, "disabled": _vm.data.disabled || _vm.data.disableCheckbox }, nativeOn: { "click": function click($event) { $event.preventDefault();return _vm.handleCheck($event); } } }) : _vm._e(), _vm._v(" "), _vm.data.render ? _c('Render', { attrs: { "render": _vm.data.render, "data": _vm.data, "node": _vm.node } }) : _vm.isParentRender ? _c('Render', { attrs: { "render": _vm.parentRender, "data": _vm.data, "node": _vm.node } }) : _c('span', { class: _vm.titleClasses, on: { "click": _vm.handleSelect } }, [_vm._v(_vm._s(_vm.data.title))]), _vm._v(" "), _vm._l(_vm.children, function (item, i) { return _vm.data.expand ? _c('Tree-node', { key: i, attrs: { "appear": _vm.appearByClickArrow, "data": item, "multiple": _vm.multiple, "show-checkbox": _vm.showCheckbox, "children-key": _vm.childrenKey } }) : _vm._e(); })], 2)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 612 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.prefixCls }, [_vm._l(_vm.stateTree, function (item, i) { return _c('Tree-node', { key: i, attrs: { "data": item, "visible": "", "multiple": _vm.multiple, "show-checkbox": _vm.showCheckbox, "children-key": _vm.childrenKey } }); }), _vm._v(" "), !_vm.stateTree.length ? _c('div', { class: [_vm.prefixCls + '-empty'] }, [_vm._v(_vm._s(_vm.localeEmptyText))]) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 613 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _upload = __webpack_require__(614); var _upload2 = _interopRequireDefault(_upload); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _upload2.default; /***/ }), /* 614 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_upload_vue__ = __webpack_require__(243); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_upload_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_upload_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_upload_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_upload_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_vue__ = __webpack_require__(618); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_upload_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 615 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue__ = __webpack_require__(244); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_list_vue__ = __webpack_require__(616); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_list_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_list_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_upload_list_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_list_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_upload_list_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 616 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('ul', { class: [_vm.prefixCls + '-list'] }, _vm._l(_vm.files, function (file) { return _c('li', { class: _vm.fileCls(file), on: { "click": function click($event) { return _vm.handleClick(file); } } }, [_c('span', { on: { "click": function click($event) { return _vm.handlePreview(file); } } }, [_c('Icon', { attrs: { "type": _vm.format(file) } }), _vm._v(" " + _vm._s(file.name) + "\n ")], 1), _vm._v(" "), _c('Icon', { directives: [{ name: "show", rawName: "v-show", value: file.status === 'finished', expression: "file.status === 'finished'" }], class: [_vm.prefixCls + '-list-remove'], attrs: { "type": "ios-close" }, nativeOn: { "click": function click($event) { return _vm.handleRemove(file); } } }), _vm._v(" "), _c('transition', { attrs: { "name": "fade" } }, [file.showProgress ? _c('i-progress', { attrs: { "stroke-width": 2, "percent": _vm.parsePercentage(file.percentage), "status": file.status === 'finished' && file.showProgress ? 'success' : 'normal' } }) : _vm._e()], 1)], 1); }), 0); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 617 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _newArrowCheck2 = __webpack_require__(1); var _newArrowCheck3 = _interopRequireDefault(_newArrowCheck2); var _keys = __webpack_require__(22); var _keys2 = _interopRequireDefault(_keys); exports.default = upload; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getError(action, option, xhr) { var msg = 'fail to post ' + String(action) + ' ' + String(xhr.status) + '\''; var err = new Error(msg); err.status = xhr.status; err.method = 'post'; err.url = action; return err; } function getBody(xhr) { var text = xhr.responseText || xhr.response; if (!text) { return text; } try { return JSON.parse(text); } catch (e) { return text; } } function upload(option) { var _this = this; if (typeof XMLHttpRequest === 'undefined') { return; } var xhr = new XMLHttpRequest(); var action = option.action; if (xhr.upload) { xhr.upload.onprogress = function progress(e) { if (e.total > 0) { e.percent = e.loaded / e.total * 100; } option.onProgress(e); }; } var formData = new FormData(); if (option.data) { (0, _keys2.default)(option.data).map(function (key) { (0, _newArrowCheck3.default)(this, _this); formData.append(key, option.data[key]); }.bind(this)); } formData.append(option.filename, option.file); xhr.onerror = function error(e) { option.onError(e); }; xhr.onload = function onload() { if (xhr.status < 200 || xhr.status >= 300) { return option.onError(getError(action, option, xhr), getBody(xhr)); } option.onSuccess(getBody(xhr)); }; xhr.open('post', action, true); if (option.withCredentials && 'withCredentials' in xhr) { xhr.withCredentials = true; } var headers = option.headers || {}; for (var item in headers) { if (headers.hasOwnProperty(item) && headers[item] !== null) { xhr.setRequestHeader(item, headers[item]); } } xhr.send(formData); } /***/ }), /* 618 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: [_vm.prefixCls] }, [_c('div', { class: _vm.classes, on: { "click": _vm.handleClick, "drop": function drop($event) { $event.preventDefault();return _vm.onDrop($event); }, "paste": _vm.handlePaste, "dragover": function dragover($event) { $event.preventDefault();_vm.dragOver = true; }, "dragleave": function dragleave($event) { $event.preventDefault();_vm.dragOver = false; } } }, [_c('input', { ref: "input", class: [_vm.prefixCls + '-input'], attrs: { "type": "file", "multiple": _vm.multiple, "accept": _vm.accept }, on: { "change": _vm.handleChange } }), _vm._v(" "), _vm._t("default")], 2), _vm._v(" "), _vm._t("tip"), _vm._v(" "), _vm.showUploadList ? _c('upload-list', { attrs: { "files": _vm.fileList }, on: { "on-file-remove": _vm.handleRemove, "on-file-preview": _vm.handlePreview } }) : _vm._e()], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 619 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Col = exports.Row = undefined; var _row = __webpack_require__(620); var _row2 = _interopRequireDefault(_row); var _col = __webpack_require__(622); var _col2 = _interopRequireDefault(_col); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.Row = _row2.default; exports.Col = _col2.default; /***/ }), /* 620 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_row_vue__ = __webpack_require__(245); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_row_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_row_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_row_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_row_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_row_vue__ = __webpack_require__(621); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_row_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_row_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_row_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_row_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_row_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 621 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 622 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_col_vue__ = __webpack_require__(246); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_col_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_col_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_col_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_col_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_col_vue__ = __webpack_require__(623); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_col_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_col_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_col_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_col_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_col_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 623 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /* 624 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OptionGroup = exports.Option = exports.Select = undefined; var _select = __webpack_require__(70); var _select2 = _interopRequireDefault(_select); var _option = __webpack_require__(74); var _option2 = _interopRequireDefault(_option); var _optionGroup = __webpack_require__(625); var _optionGroup2 = _interopRequireDefault(_optionGroup); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.Select = _select2.default; exports.Option = _option2.default; exports.OptionGroup = _optionGroup2.default; exports.default = _select2.default; /***/ }), /* 625 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue__ = __webpack_require__(247); /* harmony import */ var your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue___default = __webpack_require__.n(your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_group_vue__ = __webpack_require__(626); /* harmony import */ var your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_group_vue___default = __webpack_require__.n(your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_group_vue__); /* harmony import */ var your_sha256_hash_component_normalizer__ = __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 = Object(your_sha256_hash_component_normalizer__["a" /* default */])( your_sha256_hashr_lib_selector_type_script_index_0_option_group_vue___default.a, your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_group_vue__["render"], your_sha256_hashyour_sha256_hashyour_sha256_hashlib_selector_type_template_index_0_option_group_vue__["staticRenderFns"], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /* 626 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('li', { directives: [{ name: "show", rawName: "v-show", value: !_vm.hidden, expression: "!hidden" }], class: [_vm.prefixCls + '-wrap'] }, [_c('div', { class: [_vm.prefixCls + '-title'] }, [_vm._v(_vm._s(_vm.label))]), _vm._v(" "), _c('ul', [_c('li', { ref: "options", class: [_vm.prefixCls] }, [_vm._t("default")], 2)])]); }; var staticRenderFns = []; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }) /******/ ]); }); //# sourceMappingURL=iview.js.map ```
Jean, Count Goblet d'Alviella (3 June 1921 – 28 December 1990), was the mayor of Court-Saint-Étienne. He was married with June Corfield. Together they have four children: Richard Goblet d'Alviella, Christine Goblet d'Alviella, Patrick Goblet d'Alviella, and Michael Goblet d'Alviella. He is a son of Félix Goblet d'Alviella. 1921 births 1990 deaths 20th-century Belgian scientists Jean Mayors of places in Belgium People from Court-Saint-Étienne
ONoffON is the second studio album by American post-punk band Mission of Burma. It was released on May 4, 2004 by Matador Records, marking the band's first studio recording after a nineteen-year hiatus. Track listing "The Setup" – 3:08 "Hunt Again" – 2:16 "The Enthusiast" – 3:37 "Falling" – 4:00 "What We Really Were" – 4:11 "Max Ernst's Dream" – 3:31 "Fake Blood" – 3:32 "Prepared" – 3:02 "Untitled" – 0:15 "Wounded World" – 3:29 "Dirt" – 3:45 "Into the Fire" – 3:40 "Fever Moon" – 3:47 "Nicotine Bomb" – 3:16 "Playland" – 2:32 "Absent Mind" – 5:21 A special track, "Class War" (the Dils cover), was included on the double LP version of the album. Personnel Mission of Burma Clint Conley - bass, guitar, vocals Peter Prescott - drums, percussion, sampling, vocals Roger Miller - guitars, keyboards, percussion, vocals, string arrangement Bob Weston - tape, loops References External links 2004 albums Mission of Burma albums Matador Records albums
Calhoun County School District may refer to Calhoun County School District (Alabama) Calhoun County School District (Florida) Calhoun County School District (Georgia) Calhoun County School District (Mississippi)
```smalltalk using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Runtime.Versioning; using System.Threading; namespace ILRuntime.Other { /// <summary> /// This is a copy of the latest .NET framework 4.5 List implementation, with all extraneous checking removed. /// </summary> /// <typeparam name="T"></typeparam> [Serializable] public sealed class UncheckedList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection { private const int _defaultCapacity = 4; private T[] _items; private int _size; private int _version; [NonSerialized] private Object _syncRoot; private static readonly T[] _emptyArray = new T[0]; // Constructs a UncheckedList. The list is initially empty and has a capacity // of zero. Upon adding the first element to the list the capacity is // increased to _defaultCapacity, and then increased in multiples of two // as required. public UncheckedList() { _items = _emptyArray; } // Constructs a UncheckedList with a given initial capacity. The list is // initially empty, but will have room for the given number of elements // before any reallocations are required. // public UncheckedList(int capacity) { if (capacity == 0) _items = _emptyArray; else _items = new T[capacity]; } // Constructs a UncheckedList, copying the contents of the given collection. The // size and capacity of the new list will both be equal to the size of the // given collection. // public UncheckedList(IEnumerable<T> collection) { ICollection<T> c = collection as ICollection<T>; if (c != null) { int count = c.Count; if (count == 0) { _items = _emptyArray; } else { _items = new T[count]; c.CopyTo(_items, 0); _size = count; } } else { _size = 0; _items = _emptyArray; AddEnumerable(collection); } } // Gets and sets the capacity of this list. The capacity is the size of // the internal array used to hold items. When set, the internal // array of the list is reallocated to the given capacity. // public int Capacity { get { return _items.Length; } set { if (value != _items.Length) { if (value > 0) { T[] newItems = new T[value]; if (_size > 0) { Array.Copy(_items, 0, newItems, 0, _size); } _items = newItems; } else { _items = _emptyArray; } } } } // Read-only property describing how many elements are in the UncheckedList. public int Count { get { return _size; } } bool System.Collections.IList.IsFixedSize { get { return false; } } // Is this UncheckedList read-only? bool ICollection<T>.IsReadOnly { get { return false; } } bool System.Collections.IList.IsReadOnly { get { return false; } } // Is this UncheckedList synchronized (thread-safe)? bool System.Collections.ICollection.IsSynchronized { get { return false; } } // Synchronization root for this object. Object System.Collections.ICollection.SyncRoot { get { if (_syncRoot == null) { System.Threading.Interlocked.CompareExchange<Object>(ref _syncRoot, new Object(), null); } return _syncRoot; } } // Sets or Gets the element at the given index. // public T this[int index] { get { return _items[index]; } set { _items[index] = value; _version++; } } private static bool IsCompatibleObject(object value) { // Non-null values are fine. Only accept nulls if T is a class or Nullable<U>. // Note that default(T) is not equal to null for value types except when T is Nullable<U>. return ((value is T) || (value == null && default(T) == null)); } Object System.Collections.IList.this[int index] { get { return this[index]; } set { try { this[index] = (T)value; } catch (InvalidCastException) { } } } // Adds the given object to the end of this list. The size of the list is // increased by one. If required, the capacity of the list is doubled // before adding the new element. public void Add(T item) { var array = _items; var size = _size; if ((uint)size < (uint)array.Length) { _size = size + 1; array[size] = item; } else { AddWithResize(item); } } // Non-inline from UncheckedList.Add to improve its code quality as uncommon path private void AddWithResize(T item) { var size = _size; EnsureCapacity(size + 1); _size = size + 1; _items[size] = item; } int System.Collections.IList.Add(Object item) { try { Add((T)item); } catch (InvalidCastException) { } return Count - 1; } // Adds the elements of the given collection to the end of this list. If // required, the capacity of the list is increased to twice the previous // capacity or the new size, whichever is larger. // public void AddRange(IEnumerable<T> collection) { InsertRange(_size, collection); } public ReadOnlyCollection<T> AsReadOnly() { return new ReadOnlyCollection<T>(this); } // Searches a section of the list for a given element using a binary search // algorithm. Elements of the list are compared to the search value using // the given IComparer interface. If comparer is null, elements of // the list are compared to the search value using the IComparable // interface, which in that case must be implemented by all elements of the // list and the given search value. This method assumes that the given // section of the list is already sorted; if this is not the case, the // result will be incorrect. // // The method returns the index of the given value in the list. If the // list does not contain the given value, the method returns a negative // integer. The bitwise complement operator (~) can be applied to a // negative result to produce the index of the first element (if any) that // is larger than the given search value. This is also the index at which // the search value should be inserted into the list in order for the list // to remain sorted. // // The method uses the Array.BinarySearch method to perform the // search. // public int BinarySearch(int index, int count, T item, IComparer<T> comparer) { if (index < 0) return -1; return Array.BinarySearch<T>(_items, index, count, item, comparer); } public int BinarySearch(T item) { return BinarySearch(0, Count, item, null); } public int BinarySearch(T item, IComparer<T> comparer) { return BinarySearch(0, Count, item, comparer); } // Clears the contents of UncheckedList. public void Clear() { if (!typeof(T).IsValueType) { int size = _size; _size = 0; _version++; if (size > 0) { Array.Clear(_items, 0, size); // Clear the elements so that the gc can reclaim the references. } } else { _size = 0; _version++; } } // Contains returns true if the specified element is in the UncheckedList. // It does a linear, O(n) search. Equality is determined by calling // EqualityComparer<T>.Default.Equals(). public bool Contains(T item) { // PERF: IndexOf calls Array.IndexOf, which internally // calls EqualityComparer<T>.Default.IndexOf, which // is specialized for different types. This // boosts performance since instead of making a // virtual method call each iteration of the loop, // via EqualityComparer<T>.Default.Equals, we // only make one virtual call to EqualityComparer.IndexOf. return _size != 0 && IndexOf(item) != -1; } bool System.Collections.IList.Contains(Object item) { if (IsCompatibleObject(item)) { return Contains((T)item); } return false; } public UncheckedList<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter) { UncheckedList<TOutput> list = new UncheckedList<TOutput>(_size); for (int i = 0; i < _size; i++) { list._items[i] = converter(_items[i]); } list._size = _size; return list; } // Copies this UncheckedList into array, which must be of a // compatible array type. // public void CopyTo(T[] array) { CopyTo(array, 0); } // Copies this UncheckedList into array, which must be of a // compatible array type. // void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) { try { // Array.Copy will check for NULL. Array.Copy(_items, 0, array, arrayIndex, _size); } catch (ArrayTypeMismatchException) { } } // Copies a section of this list to the given array at the given index. // // The method uses the Array.Copy method to copy the elements. // public void CopyTo(int index, T[] array, int arrayIndex, int count) { // Delegate rest of error checking to Array.Copy. Array.Copy(_items, index, array, arrayIndex, count); } public void CopyTo(T[] array, int arrayIndex) { // Delegate rest of error checking to Array.Copy. Array.Copy(_items, 0, array, arrayIndex, _size); } // Ensures that the capacity of this list is at least the given minimum // value. If the current capacity of the list is less than min, the // capacity is increased to twice the current capacity or to min, // whichever is larger. private void EnsureCapacity(int min) { if (_items.Length < min) { int newCapacity = _items.Length == 0 ? _defaultCapacity : _items.Length * 2; // Allow the list to grow to maximum possible capacity (~2G elements) before encountering overflow. // Note that this check works even when _items.Length overflowed thanks to the (uint) cast if ((uint) newCapacity > Int32.MaxValue) newCapacity = Int32.MaxValue; if (newCapacity < min) newCapacity = min; Capacity = newCapacity; } } public bool Exists(Predicate<T> match) { return FindIndex(match) != -1; } public T Find(Predicate<T> match) { for (int i = 0; i < _size; i++) { if (match(_items[i])) { return _items[i]; } } return default(T); } public UncheckedList<T> FindAll(Predicate<T> match) { UncheckedList<T> list = new UncheckedList<T>(); for (int i = 0; i < _size; i++) { if (match(_items[i])) { list.Add(_items[i]); } } return list; } public int FindIndex(Predicate<T> match) { return FindIndex(0, _size, match); } public int FindIndex(int startIndex, Predicate<T> match) { return FindIndex(startIndex, _size - startIndex, match); } public int FindIndex(int startIndex, int count, Predicate<T> match) { int endIndex = startIndex + count; for (int i = startIndex; i < endIndex; i++) { if (match(_items[i])) return i; } return -1; } public T FindLast(Predicate<T> match) { for (int i = _size - 1; i >= 0; i--) { if (match(_items[i])) { return _items[i]; } } return default(T); } public int FindLastIndex(Predicate<T> match) { return FindLastIndex(_size - 1, _size, match); } public int FindLastIndex(int startIndex, Predicate<T> match) { return FindLastIndex(startIndex, startIndex + 1, match); } public int FindLastIndex(int startIndex, int count, Predicate<T> match) { int endIndex = startIndex - count; for (int i = startIndex; i > endIndex; i--) { if (match(_items[i])) { return i; } } return -1; } public void ForEach(Action<T> action) { int version = _version; for (int i = 0; i < _size; i++) { if (version != _version) { break; } action(_items[i]); } } // Returns an enumerator for this list with the given // permission for removal of elements. If modifications made to the list // while an enumeration is in progress, the MoveNext and // GetObject methods of the enumerator will throw an exception. // public Enumerator GetEnumerator() { return new Enumerator(this); } IEnumerator<T> IEnumerable<T>.GetEnumerator() { return new Enumerator(this); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return new Enumerator(this); } public UncheckedList<T> GetRange(int index, int count) { UncheckedList<T> list = new UncheckedList<T>(count); Array.Copy(_items, index, list._items, 0, count); list._size = count; return list; } // Returns the index of the first occurrence of a given value in a range of // this list. The list is searched forwards from beginning to end. // The elements of the list are compared to the given value using the // Object.Equals method. // // This method uses the Array.IndexOf method to perform the // search. // public int IndexOf(T item) { return Array.IndexOf(_items, item, 0, _size); } int System.Collections.IList.IndexOf(Object item) { if (IsCompatibleObject(item)) { return IndexOf((T)item); } return -1; } // Returns the index of the first occurrence of a given value in a range of // this list. The list is searched forwards, starting at index // index and ending at count number of elements. The // elements of the list are compared to the given value using the // Object.Equals method. // // This method uses the Array.IndexOf method to perform the // search. // public int IndexOf(T item, int index) { return Array.IndexOf(_items, item, index, _size - index); } // Returns the index of the first occurrence of a given value in a range of // this list. The list is searched forwards, starting at index // index and upto count number of elements. The // elements of the list are compared to the given value using the // Object.Equals method. // // This method uses the Array.IndexOf method to perform the // search. // public int IndexOf(T item, int index, int count) { return Array.IndexOf(_items, item, index, count); } // Inserts an element into this list at a given index. The size of the list // is increased by one. If required, the capacity of the list is doubled // before inserting the new element. // public void Insert(int index, T item) { if (_size == _items.Length) EnsureCapacity(_size + 1); if (index < _size) { Array.Copy(_items, index, _items, index + 1, _size - index); } _items[index] = item; _size++; _version++; } void System.Collections.IList.Insert(int index, Object item) { try { Insert(index, (T)item); } catch (InvalidCastException) { } } // Inserts the elements of the given collection at a given index. If // required, the capacity of the list is increased to twice the previous // capacity or the new size, whichever is larger. Ranges may be added // to the end of the list by setting index to the UncheckedList's size. // public void InsertRange(int index, IEnumerable<T> collection) { ICollection<T> c = collection as ICollection<T>; if (c != null) { // if collection is ICollection<T> int count = c.Count; if (count > 0) { EnsureCapacity(_size + count); if (index < _size) { Array.Copy(_items, index, _items, index + count, _size - index); } // If we're inserting a UncheckedList into itself, we want to be able to deal with that. if (this == c) { // Copy first part of _items to insert location Array.Copy(_items, 0, _items, index, index); // Copy last part of _items back to inserted location Array.Copy(_items, index + count, _items, index * 2, _size - index); } else { c.CopyTo(_items, index); } _size += count; } } else if (index < _size) { // We're inserting a lazy enumerable. Call Insert on each of the constituent items. using (IEnumerator<T> en = collection.GetEnumerator()) { while (en.MoveNext()) { Insert(index++, en.Current); } } } else { // We're adding a lazy enumerable because the index is at the end of this list. AddEnumerable(collection); } _version++; } // Returns the index of the last occurrence of a given value in a range of // this list. The list is searched backwards, starting at the end // and ending at the first element in the list. The elements of the list // are compared to the given value using the Object.Equals method. // // This method uses the Array.LastIndexOf method to perform the // search. // public int LastIndexOf(T item) { if (_size == 0) { // Special case for empty list return -1; } else { return LastIndexOf(item, _size - 1, _size); } } // Returns the index of the last occurrence of a given value in a range of // this list. The list is searched backwards, starting at index // index and ending at the first element in the list. The // elements of the list are compared to the given value using the // Object.Equals method. // // This method uses the Array.LastIndexOf method to perform the // search. // public int LastIndexOf(T item, int index) { return LastIndexOf(item, index, index + 1); } // Returns the index of the last occurrence of a given value in a range of // this list. The list is searched backwards, starting at index // index and upto count elements. The elements of // the list are compared to the given value using the Object.Equals // method. // // This method uses the Array.LastIndexOf method to perform the // search. // public int LastIndexOf(T item, int index, int count) { if (_size == 0) { // Special case for empty list return -1; } return Array.LastIndexOf(_items, item, index, count); } // Removes the element at the given index. The size of the list is // decreased by one. // public bool Remove(T item) { int index = IndexOf(item); if (index >= 0) { RemoveAt(index); return true; } return false; } void System.Collections.IList.Remove(Object item) { if (IsCompatibleObject(item)) { Remove((T)item); } } // This method removes all items which matches the predicate. // The complexity is O(n). public int RemoveAll(Predicate<T> match) { int freeIndex = 0; // the first free slot in items array // Find the first item which needs to be removed. while (freeIndex < _size && !match(_items[freeIndex])) freeIndex++; if (freeIndex >= _size) return 0; int current = freeIndex + 1; while (current < _size) { // Find the first item which needs to be kept. while (current < _size && match(_items[current])) current++; if (current < _size) { // copy item to the free slot. _items[freeIndex++] = _items[current++]; } } if (!typeof(T).IsValueType) { Array.Clear(_items, freeIndex, _size - freeIndex); // Clear the elements so that the gc can reclaim the references. } int result = _size - freeIndex; _size = freeIndex; _version++; return result; } // Removes the element at the given index. The size of the list is // decreased by one. // public void RemoveAt(int index) { _size--; if (index < _size) { Array.Copy(_items, index + 1, _items, index, _size - index); } #if DEBUG _items[_size] = default(T); #endif } // Removes a range of elements from this list. // public void RemoveRange(int index, int count) { if (count > 0) { int i = _size; _size -= count; if (index < _size) { Array.Copy(_items, index + count, _items, index, _size - index); } #if DEBUG Array.Clear(_items, _size, count); #endif } } // Reverses the elements in this list. public void Reverse() { Reverse(0, Count); } // Reverses the elements in a range of this list. Following a call to this // method, an element in the range given by index and count // which was previously located at index i will now be located at // index index + (index + count - i - 1). // public void Reverse(int index, int count) { if (count > 1) { Array.Reverse(_items, index, count); } _version++; } // Sorts the elements in this list. Uses the default comparer and // Array.Sort. public void Sort() { Sort(0, Count, null); } // Sorts the elements in this list. Uses Array.Sort with the // provided comparer. public void Sort(IComparer<T> comparer) { Sort(0, Count, comparer); } // Sorts the elements in a section of this list. The sort compares the // elements to each other using the given IComparer interface. If // comparer is null, the elements are compared to each other using // the IComparable interface, which in that case must be implemented by all // elements of the list. // // This method uses the Array.Sort method to sort the elements. // public void Sort(int index, int count, IComparer<T> comparer) { if (count > 1) { Array.Sort<T>(_items, index, count, comparer); } _version++; } public void Sort(Comparison<T> comparison) { throw new NotImplementedException(); /*if (_size > 1) { ArraySortHelper<T>.Sort(_items, 0, _size, comparison); } _version++;*/ } // ToArray returns an array containing the contents of the UncheckedList. // This requires copying the UncheckedList, which is an O(n) operation. public T[] ToArray() { if (_size == 0) { return _emptyArray; } T[] array = new T[_size]; Array.Copy(_items, 0, array, 0, _size); return array; } // Sets the capacity of this list to the size of the list. This method can // be used to minimize a list's memory overhead once it is known that no // new elements will be added to the list. To completely clear a list and // release all memory referenced by the list, execute the following // statements: // // list.Clear(); // list.TrimExcess(); // public void TrimExcess() { int threshold = (int)(((double)_items.Length) * 0.9); if (_size < threshold) { Capacity = _size; } } public bool TrueForAll(Predicate<T> match) { for (int i = 0; i < _size; i++) { if (!match(_items[i])) { return false; } } return true; } private void AddEnumerable(IEnumerable<T> enumerable) { Debug.Assert(enumerable != null); Debug.Assert(!(enumerable is ICollection<T>), "We should have optimized for this beforehand."); using (IEnumerator<T> en = enumerable.GetEnumerator()) { _version++; // Even if the enumerable has no items, we can update _version. while (en.MoveNext()) { // Capture Current before doing anything else. If this throws // an exception, we want to make a clean break. T current = en.Current; if (_size == _items.Length) { EnsureCapacity(_size + 1); } _items[_size++] = current; } } } public struct Enumerator : IEnumerator<T>, System.Collections.IEnumerator { private UncheckedList<T> list; private int index; private int version; private T current; internal Enumerator(UncheckedList<T> list) { this.list = list; index = 0; version = list._version; current = default(T); } public void Dispose() { } public bool MoveNext() { UncheckedList<T> localUncheckedList = list; if (version == localUncheckedList._version && ((uint)index < (uint)localUncheckedList._size)) { current = localUncheckedList._items[index]; index++; return true; } return MoveNextRare(); } private bool MoveNextRare() { index = list._size + 1; current = default(T); return false; } public T Current { get { return current; } } Object System.Collections.IEnumerator.Current { get { return Current; } } void System.Collections.IEnumerator.Reset() { index = 0; current = default(T); } } } } ```
Sanjiv Bajaj (born 2 November 1969) is an Indian billionaire businessman who currently serves as the Chairman and Managing Director of Bajaj Finserv. Early life and education Born into the Bajaj family, Sanjiv is the great-grandson of founder Jamnalal Bajaj and the younger son of Bajaj Group chairman, Rahul Bajaj. He completed his schooling at a Catholic convent school run by the Swiss missionaries. He then pursued his mechanical engineering degree from the University of Pune, masters degree in manufacturing systems engineering from the University of Warwick, and a management degree from Harvard Business School. Career Bajaj began his career in 1994 with Bajaj Auto. During his years at Bajaj Auto, he dabbled in various roles, including heading finance, legal & international business functions within the organisation. He was credited in bringing American-style supply chain management in the Bajaj Auto using General Motors as a model. Currently, he is serving as the non-executive director of Bajaj Auto. After Bajaj Auto's demerger in 2007, Sanjiv took charge as the managing director of Bajaj Finserv. He took over additional roles like the chairman of Bajaj Allianz Life Insurance and Bajaj Allianz General Insurance, vice chairman of Bajaj Finance, and managing director of Bajaj Holdings & Investment Limited in the year 2012. By 2017, under his leadership, Bajaj Allianz General Insurance became the 2nd most profitable insurance company in India. In the year 2023, he spearheaded the launch of Bajaj Finserv Mutual Fund into the Indian market. Sanjiv was the deputy chairman of Confederation of Indian Industry (CII) Western Region for 2018-19. He was also elected as the chairman of CII Western Region for 2019-20. For 2020-21, he was elected as the vice president of CII. In June 2021, he got elected as the President Designate of CII for 2021-22. and in May 2022, he took charge as the President of CII for 2022-23. Currently, he is the chairman and managing director of Bajaj Finserv. He was reappointed as managing director for five years in May 2022. As a part of Confederation of Indian Industry's B20 India Secretariat, Bajaj is appointed as one of the B20 India participants, a position in which he will be a part of a group that will lead the business agenda during India's G-20 presidency. Controversies In January 2022, Bajaj and his top management was threatened by a hacker for a possible cyber security attack on his group companies. Personal life Sanjiv is married to Shefali Bajaj and has two kids. Awards Transformational Leader Award (large-cap category) 2017 at the Asian Center's Leadership, Corporate Governance, Sustainability & CSR Awards. Ernst & Young Entrepreneur of the Year Award 2017. Economic Times Awards for Business Leader of the Year 2018. All India Management Association's Managing India Awards - Entrepreneur of the Year 2019. Financial Express– Banker of the Year 2019. References Living people 1969 births Businesspeople from Pune Indian billionaires Marwari people Harvard Business School alumni Savitribai Phule Pune University alumni Bajaj Group Sanjiv
Bundesstraße 178 (B178) is a German federal highway in the east of Saxony. It was built as a dual carriageway, and the highway connects with the motorway A4 near the city of Weißenberg in Saxony. It ends in Zittau to the Polish border. After crossing the Polish border, the road reaches the Czech border after a few kilometres, where the Czech dual-carriageway R35 begins. In the future the road will be an international corridor in Central Europe, connecting Germany with the west of Poland (Lower Silesian Voivodeship) and the Czech Republic. The road is about long. The planned length, however, is . Bundesstraße Roads in Saxony
Fort Anne (first established in 1629 as the Scottish Charles Fort) is a four-bastion fort built to protect the harbour of Annapolis Royal, Nova Scotia. The fort repelled all French attacks during the early stages of King George's War. Now designated a National Historic Site of Canada, it is managed by Parks Canada. Two buildings remain intact: The 1708 stone powder magazine in Bourgogne Bastion The 1797 Officer's Quarters was renovated in the 1930s and now house the museum with exhibits about the fort's history and historic artifacts from the area. It was former site of two separate structures: Governor's house and chapel. Other structures were replaced by later work by British: Bake house in Dauphin Bastion later became underground magazine Powder magazine in Berry Bastion now vacant Lieutenant Governor house and dry storage building in front of current officers quarters demolished. Currently vacant area. A trail runs along the fort's earthen walls, and provides a view of the Annapolis River and basin. History The site has been fortified since 1629, when the Scots came to colonize Nova Scotia (New Scotland) and built Charles Fort. The region was reverted to French control in the 1630s and Charles de Menou d'Aulnay began work on the first of four forts on the same site, then known as Port Royal. In 1702, the French began construction of the current Vauban earthwork that is found there today. Queen Anne's War During Queen Anne's War, the fort fell to British and New England troops after a week-long siege in 1710 which marked the British conquest of Acadia. A British governor and garrison replaced the French at the fort renaming the Port Royal settlement Annapolis Royal after Queen Anne. With the Treaty of Utrecht three years later, the British gained full control of mainland Nova Scotia and kept Annapolis Royal as the capital until the founding of Halifax in 1749. The 40th Regiment of Foot was raised at Fort Anne in 1717. Father Rale's War Blockade of Annapolis Royal (1722) During Father Rale's War, in July 1722 the Abenaki and Mi'kmaq attempted to create a blockade of Annapolis Royal, with the intent of starving the capital. The natives captured 18 fishing vessels and prisoners from present-day Yarmouth to Canso. They also seized prisoners and vessels from the Bay of Fundy. In response to the New England attack on Father Rale at Norridgewock in March 1722, 165 Mi'kmaq and Maliseet troops gathered at Minas to lay siege to the Lt. Governor of Nova Scotia at Annapolis Royal. Under potential siege, in May 1722, Lieutenant Governor John Doucett took 22 Mi'kmaq hostage at Annapolis Royal to prevent the capital from being attacked. Massachusetts Governor Samuel Shute declared war on the Abenaki. New Englanders retrieved some of the vessels and prisoners after the Battle at Winnepang (Jeddore Harbour) in which thirty-five natives and five New-Englanders were killed. Other vessels and prisoners were retrieved at Malagash Harbour after a ransom was paid. Raid on Annapolis Royal (1724) During Father Rale's War, the worst moment of the war for the capital came in early July 1724 when a group of sixty Mikmaq and Maliseets raided Annapolis Royal. They killed and scalped a sergeant and a private, wounded four more soldiers, and terrorized the village. They also burned houses and took prisoners. The British responded on July 8 by executing one of the Mi'kmaq hostages on the same spot the sergeant was killed. They also burned three Acadian houses in retaliation. As a result of the raid, three blockhouses were built to protect the town. The Acadian church was moved closer to the fort so that it could be more easily monitored. King George's War During King George's War, the French launched three expeditions against the capital to regain the fort with no success, the most famous being the Duc d'Anville Expedition. Father Le Loutre's War During Father Le Loutre's War, the capital of Acadia was moved from Annapolis Royal to Halifax. Fort Edward, Fort Lawrence and Fort Anne were all supplied by and dependent on the arrival of Captains Cobb, Rogers or Taggart, in one of the government sloops. These vessels took the annual or semi-annual relief to their destination. They carried the officers and their families to and fro, as required. French and Indian War During the French and Indian War, the British engaged in the Bay of Fundy Campaign (1755) and deported the Acadians living in the area. With the fall of Quebec in 1759, the fort no longer held the same military importance. It was however still used as an outpost during the American Revolution, where the 84th Regiment of Foot (Royal Highland Emigrants) was stationed, and the War of 1812 in defence of the town from American privateers. The fort acquired the name Fort Anne in the 19th century. Commanding officers John Doucett (1717–1726) Lawrence Armstrong Alexander Cosby Paul Mascarene Henry Daniel (military officer) John Handfield (1752–1755) Fort Anne National Historic Site In 1917, Fort Anne was acquired by the Dominion Parks Branch, the predecessor of Parks Canada, and designated the second national historic park, bearing the name Fort Anne National Park (Fort Howe in Saint John, New Brunswick had been the first historical park). Two years later, a new program of National Historic Sites was established in 1919 to replace the incipient system of historic parks, and Fort Anne was designated a National Historic Site in 1920. Although Fort Anne was neither the first National Historic Park (Fort Howe was designated three years earlier), nor was it the first site designated under the replacement National Historic Site program, it is nonetheless sometimes referred to as Canada's "first national historic site" or the "first administered national historic site", because it was the first site acquired by the federal government for national historic purposes that has subsequently remained under Parks Canada administration (Fort Howe was eventually conveyed to the municipality). Legacy On 28 June 1985 Canada Post issued 'Fort Anne, N.S., circa 1763.' one of the 20 stamps in the "Forts Across Canada Series" (1983 & 1985). The stamps are perforated x 13 mm and were printed by Ashton-Potter Limited based on the designs by Rolf P. Harder. See also Military history of Nova Scotia References Further reading Parks Canada, Fort Anne National Historic Site brochure, undated (2001 ?). External links Fort Anne Bronze Cannon Military history of Acadia Military history of Nova Scotia Military history of New England Military history of the Thirteen Colonies Military forts in Nova Scotia Buildings and structures in Annapolis County, Nova Scotia Fort Anne Fort Anne Military and war museums in Canada Tourist attractions in Annapolis County, Nova Scotia Forts or trading posts on the National Historic Sites of Canada register Military forts in Acadia French forts in North America Military installations established in the 17th century
```c /* * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * You should have received a copy of the GNU Lesser General Public * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <fcntl.h> #include "network.h" #include "tls.h" #include "url.h" #include "libavcodec/internal.h" #include "libavutil/avutil.h" #include "libavutil/mem.h" #include "libavutil/time.h" int ff_tls_init(void) { #if CONFIG_TLS_OPENSSL_PROTOCOL int ret; if ((ret = ff_openssl_init()) < 0) return ret; #endif #if CONFIG_TLS_GNUTLS_PROTOCOL ff_gnutls_init(); #endif return 0; } void ff_tls_deinit(void) { #if CONFIG_TLS_OPENSSL_PROTOCOL ff_openssl_deinit(); #endif #if CONFIG_TLS_GNUTLS_PROTOCOL ff_gnutls_deinit(); #endif } int ff_network_inited_globally; int ff_network_init(void) { #if HAVE_WINSOCK2_H WSADATA wsaData; #endif if (!ff_network_inited_globally) av_log(NULL, AV_LOG_WARNING, "Using network protocols without global " "network initialization. Please use " "avformat_network_init(), this will " "become mandatory later.\n"); #if HAVE_WINSOCK2_H if (WSAStartup(MAKEWORD(1,1), &wsaData)) return 0; #endif return 1; } int ff_network_wait_fd(int fd, int write) { int ev = write ? POLLOUT : POLLIN; struct pollfd p = { .fd = fd, .events = ev, .revents = 0 }; int ret; ret = poll(&p, 1, POLLING_TIME); return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN); } int ff_network_wait_fd_timeout(int fd, int write, int64_t timeout, AVIOInterruptCB *int_cb) { int ret; int64_t wait_start = 0; while (1) { if (ff_check_interrupt(int_cb)) return AVERROR_EXIT; ret = ff_network_wait_fd(fd, write); if (ret != AVERROR(EAGAIN)) return ret; if (timeout > 0) { if (!wait_start) wait_start = av_gettime_relative(); else if (av_gettime_relative() - wait_start > timeout) return AVERROR(ETIMEDOUT); } } } void ff_network_close(void) { #if HAVE_WINSOCK2_H WSACleanup(); #endif } #if HAVE_WINSOCK2_H int ff_neterrno(void) { int err = WSAGetLastError(); switch (err) { case WSAEWOULDBLOCK: return AVERROR(EAGAIN); case WSAEINTR: return AVERROR(EINTR); case WSAEPROTONOSUPPORT: return AVERROR(EPROTONOSUPPORT); case WSAETIMEDOUT: return AVERROR(ETIMEDOUT); case WSAECONNREFUSED: return AVERROR(ECONNREFUSED); case WSAEINPROGRESS: return AVERROR(EINPROGRESS); } return -err; } #endif int ff_is_multicast_address(struct sockaddr *addr) { if (addr->sa_family == AF_INET) { return IN_MULTICAST(ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr)); } #if HAVE_STRUCT_SOCKADDR_IN6 if (addr->sa_family == AF_INET6) { return IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6 *)addr)->sin6_addr); } #endif return 0; } static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout, AVIOInterruptCB *cb) { int runs = timeout / POLLING_TIME; int ret = 0; do { if (ff_check_interrupt(cb)) return AVERROR_EXIT; ret = poll(p, nfds, POLLING_TIME); if (ret != 0) break; } while (timeout <= 0 || runs-- > 0); if (!ret) return AVERROR(ETIMEDOUT); if (ret < 0) return AVERROR(errno); return ret; } int ff_socket(int af, int type, int proto) { int fd; #ifdef SOCK_CLOEXEC fd = socket(af, type | SOCK_CLOEXEC, proto); if (fd == -1 && errno == EINVAL) #endif { fd = socket(af, type, proto); #if HAVE_FCNTL if (fd != -1) { if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) av_log(NULL, AV_LOG_DEBUG, "Failed to set close on exec\n"); } #endif } #ifdef SO_NOSIGPIPE if (fd != -1) setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &(int){1}, sizeof(int)); #endif return fd; } int ff_listen(int fd, const struct sockaddr *addr, socklen_t addrlen) { int ret; int reuse = 1; if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse))) { av_log(NULL, AV_LOG_WARNING, "setsockopt(SO_REUSEADDR) failed\n"); } ret = bind(fd, addr, addrlen); if (ret) return ff_neterrno(); ret = listen(fd, 1); if (ret) return ff_neterrno(); return ret; } int ff_accept(int fd, int timeout, URLContext *h) { int ret; struct pollfd lp = { fd, POLLIN, 0 }; ret = ff_poll_interrupt(&lp, 1, timeout, &h->interrupt_callback); if (ret < 0) return ret; ret = accept(fd, NULL, NULL); if (ret < 0) return ff_neterrno(); if (ff_socket_nonblock(ret, 1) < 0) av_log(NULL, AV_LOG_DEBUG, "ff_socket_nonblock failed\n"); return ret; } int ff_listen_bind(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h) { int ret; if ((ret = ff_listen(fd, addr, addrlen)) < 0) return ret; if ((ret = ff_accept(fd, timeout, h)) < 0) return ret; closesocket(fd); return ret; } int ff_listen_connect(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h, int will_try_next) { struct pollfd p = {fd, POLLOUT, 0}; int ret; socklen_t optlen; if (ff_socket_nonblock(fd, 1) < 0) av_log(NULL, AV_LOG_DEBUG, "ff_socket_nonblock failed\n"); while ((ret = connect(fd, addr, addrlen))) { ret = ff_neterrno(); switch (ret) { case AVERROR(EINTR): if (ff_check_interrupt(&h->interrupt_callback)) return AVERROR_EXIT; continue; case AVERROR(EINPROGRESS): case AVERROR(EAGAIN): ret = ff_poll_interrupt(&p, 1, timeout, &h->interrupt_callback); if (ret < 0) return ret; optlen = sizeof(ret); if (getsockopt (fd, SOL_SOCKET, SO_ERROR, &ret, &optlen)) ret = AVUNERROR(ff_neterrno()); if (ret != 0) { char errbuf[100]; ret = AVERROR(ret); av_strerror(ret, errbuf, sizeof(errbuf)); if (will_try_next) av_log(h, AV_LOG_WARNING, "Connection to %s failed (%s), trying next address\n", h->filename, errbuf); else av_log(h, AV_LOG_ERROR, "Connection to %s failed: %s\n", h->filename, errbuf); } default: return ret; } } return ret; } static int match_host_pattern(const char *pattern, const char *hostname) { int len_p, len_h; if (!strcmp(pattern, "*")) return 1; // Skip a possible *. at the start of the pattern if (pattern[0] == '*') pattern++; if (pattern[0] == '.') pattern++; len_p = strlen(pattern); len_h = strlen(hostname); if (len_p > len_h) return 0; // Simply check if the end of hostname is equal to 'pattern' if (!strcmp(pattern, &hostname[len_h - len_p])) { if (len_h == len_p) return 1; // Exact match if (hostname[len_h - len_p - 1] == '.') return 1; // The matched substring is a domain and not just a substring of a domain } return 0; } int ff_http_match_no_proxy(const char *no_proxy, const char *hostname) { char *buf, *start; int ret = 0; if (!no_proxy) return 0; if (!hostname) return 0; buf = av_strdup(no_proxy); if (!buf) return 0; start = buf; while (start) { char *sep, *next = NULL; start += strspn(start, " ,"); sep = start + strcspn(start, " ,"); if (*sep) { next = sep + 1; *sep = '\0'; } if (match_host_pattern(start, hostname)) { ret = 1; break; } start = next; } av_free(buf); return ret; } ```
Alexander Peterkin (26 March 1781 – 9 November 1846) was a Scottish lawyer, journalist and writer. Life Peterkin was born in Macduff in Banffshire, where his father, William Peterkin, was a parish minister. His father was translated to Leadhills, Lanarkshire, in 1785, and in 1787 to Ecclesmachan, West Lothian, where he died in 1792. Alexander's education, begun at the parish school, was completed in Edinburgh, and he closed his university curriculum as a law student in 1803. In this year he was enrolled in the first regiment of Royal Edinburgh volunteers, feeling with Walter Scott and others that the time needed a strong civilian army. After a full training in the office of a Writer to the Signet, Peterkin was duly qualified as a solicitor before the supreme courts (S. S. C.), and he began his professional career at Peterhead before 1811 as "attorney, notary public, and conveyancer". He was sheriff-substitute of Orkney from 1814 to 1823, when he returned to Edinburgh. For some years he combined journalism with his legal work; he was connected with newspapers in Belfast and Perth, and from 1833 to 1835 he was editor of the Kelso Chronicle. In his later years he was known as a leading ecclesiastical lawyer, while still devoting his leisure to literary work. He died at Edinburgh on 9 November 1846. A lover of literature for its own sake, Peterkin numbered among his friends Walter Scott, Alexander Jeffrey, John Wilson, and the leading contemporary men of letters in Edinburgh. Thomas Wilson Bayne wrote in the Dictionary of National Biography: "A 'whig of 1688', Peterkin was a strenuous and unsparing controversialist.... He was a vigorous and lucid writer, his earlier manner being somewhat florid, and his polemical thrusts occasionally more forcible than polite. His writings on Orkney and Shetland may be consulted with advantage, and his learned and systematic Booke of the Universall Kirk has a distinctly authoritative value." Peterkin married in 1807 Miss Giles, daughter of an Edinburgh citizen, with whom he had two sons and five daughters. The elder son, Alexander Peterkin (1814–1889), was successively editor of the Berwick Advertiser, sub-editor of the Edinburgh Advertiser, and on the staff of the London Times, from which he retired about 1853, owing to uncertain health. He published a poem, The Study of Art, 1870. Publications Besides numerous pamphlets, miscellaneous papers in many periodicals, and an anonymous tale of Scottish life, The Parsonage, or my Father's Fireside, Peterkin published: The Rentals of Orkney, 1820. Notes on Orkney and Zetland, 1822. Letter to the Landowners, Clergy, and other Gentlemen of Orkney and Zetland, 1823. Scottish Peerage, 1826. Compendium of the Laws of the Church, pt. i. 1830, pt. ii. 1831, supplement 1836. Memoir of the Rev. John Johnston, Edinburgh, 1834. The Booke of the Universall Kirk of Scotland, 1839. The Constitution of the Church of Scotland as established at the Revolution, 1689–90, 1841. All were published at Edinburgh. Peterkin also edited James Grahame's The Sabbath, with biography, 1807; Robert Fergusson's Poems, with biography, 1807–9, reprinted 1810; James Currie's Life of Burns, with prefatory critical review, 1815; and Records of the Kirk of Scotland, 1838. References Attribution External links Photograph of Alexander Peterkin by Hill & Adamson, at the National Galleries of Scotland 1781 births 1846 deaths People from Macduff, Aberdeenshire Scottish journalists 19th-century Scottish writers People associated with Orkney
```go package staking import ( "testing" "github.com/stretchr/testify/require" "cosmossdk.io/depinject" "cosmossdk.io/log" authKeeper "cosmossdk.io/x/auth/keeper" authtypes "cosmossdk.io/x/auth/types" "cosmossdk.io/x/staking/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { var accountKeeper authKeeper.AccountKeeper app, err := simtestutil.SetupAtGenesis( depinject.Configs( AppConfig, depinject.Supply(log.NewNopLogger()), ), &accountKeeper) require.NoError(t, err) ctx := app.BaseApp.NewContext(false) acc := accountKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.BondedPoolName)) require.NotNil(t, acc) acc = accountKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.NotBondedPoolName)) require.NotNil(t, acc) } ```
The Martin Luther King Jr. Educational Campus is a five-story public school facility at 122 Amsterdam Avenue between West 65th and 66th Streets in Lincoln Square, Manhattan, New York City, near Lincoln Center. The campus is faced on Amsterdam Avenue by a wide elevated plaza which features a self-weathering steel memorial sculpture by William Tarr. The same steel was used by architect Frost Associates in the curtain wall of the building, the interior of which has an arrangement of perimeter corridors with floor-to-ceiling windows, leaving many classrooms on the inner side windowless. The school is across West 65th Street from Fiorello H. LaGuardia High School of Music & Art and Performing Arts. History The building was formerly the location of Martin Luther King Jr. High School, which opened in 1975. According to The New York Times, the school had been troubled throughout its history, gaining a bad reputation for its construction delay, planned curriculum restructurings, low student enrollment, and abysmal academic performance: It has a history of violence, including the shooting of two tenth grade students inside the school on January 15, 2002, the birthday of Martin Luther King Jr. Other violence had occurred in the school: The closing of the school was included by Chancellor Joel Klein and Mayor Michael Bloomberg in the education reform policy. The school was closed on June 27, 2005 by the New York City Department of Education. Current configuration The high school has been replaced by seven separate high schools which operate on different floors of the building. Students wear uniforms to distinguish them from the other schools and have separate lunch and dismissal times. The schools, listed by the date of their entry into the campus, are: 2002 – High School for Law, Advocacy, and Community Justice: The school is commonly known as MLK Law, due to its cumbersome official name. The High School for Law, Advocacy, and Community Justice graduated its first class in June 2006, consisting of approximately 60 students. In 2008, the school partnered with M.O.V.E. Inc. to implement a mentorship program. 2002 – High School of the Arts and Technology: The High School of Arts and Technology uses the third floor of the building. Ms. Geiger was its founding principal, who retired in 2016 and was replaced by the current principal, Mariela Graham. The school has now become a part of Urban Assembly, which is a non-profit organization that helps underserved youth become college and career ready. 2003 – Manhattan/Hunter College High School for Sciences (not to be confused with the elite Hunter College High School): Students spend their first three years in classes in the MLK complex. Seniors spend their entire fourth year of high school on the Hunter College campus on the Upper East Side, taking a mix of high school and college-level courses. Manhattan Hunter Science is a part of the Early College Initiative. While many New York City high schools offer students the chance to take college courses, what makes Manhattan Hunter different is the level of support the students receive. Their high school English and social studies teachers travel with them to the college and offer regular classes there. While the students take college courses in math and science, the high school English and social studies teachers offer hand-holding and advice for all the subjects. The college courses in math and science tend to be large lecture classes, with as many as 600 students. A collaboration between Hunter College and the New York City Department of Education, Manhattan/Hunter High School for Science offers classes to help students prepare not only for college-level academics, but also for the freedom and responsibility of college life. The new school is designed to address the fact that more than one-third of college students nationally drop out before completing their freshman year. 2005 – High School for Arts, Imagination And Inquiry 2006 – Urban Assembly School For Media Studies 2006 – Manhattan Theatre Lab High School (founded 2004, moved into complex 2006). This school was shuttered in 2015, in the wake of poor performance and allegations of cheating. 2013 – Special Music School High School References Notes Further reading "The Metal Detector: Tales From School", New York Times, Sept. 29, 1996 "Principal Tries to Bolster Image of School Bearing King's Name", New York Times, Jan. 20, 1986 "Stockholders of a Can Company Take Meeting to 'Partner' School", New York Times, May 23, 1984 External links H.S. 490 Martin Luther King Jr. High School at InsideSchools.org Official websites: High School for Law, Advocacy, and Community Justice High School of Arts and Technology Special Music School High School nyc.gov websites: High School for Law, Advocacy and Community Justice New York City Department of Education: High School of Arts and Technology Manhattan/Hunter Science High School Special Music School King Public high schools in Manhattan
Estudios América () was a Mexican film studio and production company which grew to prominence producing films for Antonio Aguilar, Gaspar Henaine, María Elena Velasco, and Vicente Fernández. It was one of the four main film studios of the classic Mexican cinema along with Estudios Churubusco, Estudios San Ángel, and Estudios Tepeyac. The studio's sound stages appear in Duro pero seguro, a 1978 film starring María Elena Velasco as La India María who became the studio's exclusive artist in the early 1980s after her contract with Diana Films ended. In 1993, the studio was sold by the Mexican government as part of the sale of Imevisión. Bought by Ricardo Salinas Pliego, the studio shut down as a film company and in 1996 was converted into a television studio for TV Azteca, where their soap operas and other programming are taped. In 2012, the studio was expanded and currently consists of twelve soundstages. A couple of the movies shot by Estudios América can be seen on TV in Univision and Telemundo. Selected films produced by Estudios América Selected films shot at Estudios América Mexican film studios Film production companies of Mexico
```go // +build integration //Package kms provides gucumber integration tests support. package kms import ( "github.com/aws/aws-sdk-go/awstesting/integration/smoke" "github.com/aws/aws-sdk-go/service/kms" "github.com/gucumber/gucumber" ) func init() { gucumber.Before("@kms", func() { gucumber.World["client"] = kms.New(smoke.Session) }) } ```
Drama TV (, Qanāt Drāmā), formerly known as Abu Dhabi Drama (, Abū Ẓabī Drāmā) and sometimes referred to as AD Drama, was a Pan Arab television channel owned by Abu Dhabi Media. It programmed movies and television series. Programs were subtitled in Arabic. The channel aired 24-hour without commercials, in addition to crime-related North American serials, broadcast every day under the programming block Fox Crime. Hollywood films were also aired Fridays at 7 p.m. , under the block Telecine Night. It was launched on 5 April 2010. On 19 February 2020, the channel got a new logo after 9 years, and on 1 January 2022, the channel was closed. Programming Programming included American television series and films. For current programming, the key symbol denoted by bold, and for programming block distributed by Fox Crime Disney ABC Studios, it was denoted by a cross (†). Canada Cracked King Ties That Bind United States Boston Legal Low Winter Sun Prison Break Black-ish Black-ish (season 1) Black-ish (season 3) Black-ish (season 4) Black-ish (season 5) Station 19 Code Black The Crossing Dead of Summer Once Upon a Time Luke Cage Resurrection Kevin (Probably) Saves the World For the People Scandal Take Two Beyond CSI (franchise) CSI: Cyber Blue Bloods Films Beauty and the Beast Captain America: Civil War Guardians of the Galaxy Vol. 2 Doctor Strange Thor: Ragnarok Avengers: Endgame Mulan Other services Drama TV + was a paid version of Drama TV available on OSN till September 10, 2019. Drama HD was a simulcast of Drama TV in high-definition (HD) launched in via Nilesat. ADTV Catch-Up was Drama TV's video on demand service that allows users to view past and present episodes of its shows. See also Arab television drama Abu Dhabi Media Television in the United Arab Emirates References External links Television in the United Arab Emirates Arabic-language television stations Arabic-language television Defunct television channels Television channels and stations established in 2010 Television channels and stations disestablished in 2022 Television stations in the United Arab Emirates High-definition television 2010 establishments in the United Arab Emirates
```java package com.didispace.chapter39.s.entity; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor public class UserSecondary { private Long id; private String name; private Integer age; public UserSecondary(String name, Integer age) { this.name = name; this.age = age; } } ```
```java /* * Use of this source code is governed by the GPL v3 license * that can be found in the LICENSE file. */ package de.neemann.digital.core.wiring; import de.neemann.digital.TestExecuter; import de.neemann.digital.core.Model; import de.neemann.digital.core.ObservableValue; import de.neemann.digital.core.element.ElementAttributes; import junit.framework.TestCase; import static de.neemann.digital.TestExecuter.IGNORE; import static de.neemann.digital.core.ObservableValues.ovs; public class BusSplitterTest extends TestCase { public void testBusSplitter() throws Exception { Model model = new Model(); ObservableValue oe = new ObservableValue("oe", 1); ObservableValue d = new ObservableValue("d", 4); ObservableValue d0 = new ObservableValue("d0", 1); ObservableValue d1 = new ObservableValue("d1", 1); ObservableValue d2 = new ObservableValue("d2", 1); ObservableValue d3 = new ObservableValue("d3", 1); BusSplitter out = model.add(new BusSplitter( new ElementAttributes() .setBits(4))); out.setInputs(ovs(oe, d, d0, d1, d2, d3)); TestExecuter te = new TestExecuter(model).setInputs(oe, d, d0, d1, d2, d3).setOutputs(out.getOutputs()); te.checkZ(1, 0, 0, 0, 0, 0, IGNORE, 0, 0, 0, 0); te.checkZ(1, 5, 0, 0, 0, 0, IGNORE, 1, 0, 1, 0); te.checkZ(1, 15, 0, 0, 0, 0, IGNORE, 1, 1, 1, 1); te.checkZ(0, 0, 0, 0, 0, 0, 0, IGNORE, IGNORE, IGNORE, IGNORE); te.checkZ(0, 0, 1, 0, 1, 0, 5, IGNORE, IGNORE, IGNORE, IGNORE); te.checkZ(0, 0, 1, 1, 1, 1, 15, IGNORE, IGNORE, IGNORE, IGNORE); } } ```
is a Japanese American singer and songwriter whose music encompasses and fuses a wide variety of genres including jazz, dance, pop, and soul. She is arguably best known for being a pioneer of the acid jazz movement in Japan in the early 1990s yet she has created her own unique style of music that transcends traditional definitions of the aforementioned genres. Monday was born in Tokyo, Japan, to jazz pianist Toshiko Akiyoshi and her then husband, jazz saxophonist Charlie Mariano. At an early age, she expressed an interest in music; she studied modern dance and ballet from age eight, and the classical flute for eight years. It was not until she went to the Interlochen Arts Academy that she discovered her true passion of singing. In 1987, Monday appeared as a lead in the movie Hikaru Onna (Luminous Woman) in which she was credited as Michiru Akiyoshi. Monday's unintentional acting career took off as she won Best New Actress awards from Kinema Junpo, The Japan Academy, and the Yokohama Film Festival. With all this success, Monday became somewhat of a celebrity and could be seen on commercial ads and as a "personality" on several major television networks. In 1991, she re-focused her interests and released her debut solo album Mangetsu. Although she continued her solo work, she became a featured singer/songwriter for many other groups and artists including Basement Jaxx (Always Be There), Mondo Grosso, DJ Krush, M-Flo and numerous others. Since her debut, she has released numerous albums on an annual basis, including many compilations and remix projects, and numerous singles. Monday now lives in New York City. She is known in the music industry for releasing You Make Me as it was also released in Konami's beatmania and Dance Dance Revolution. It gained moderate airplay and has been a favorite easy listening song with its smooth jazz house music. Discography References External links Monday Michiru interview at All About Jazz 1963 births Living people American women pop singers American women singer-songwriters American people of Italian descent Interlochen Center for the Arts alumni American women musicians of Japanese descent Musicians from Tokyo Japanese emigrants to the United States 21st-century American women ArtistShare artists Pony Canyon artists Universal Music Group artists
```javascript CKEDITOR.plugins.setLang("bidi","si",{ltr:" ",rtl:" "}); ```
```python from Zhihu.NN.one.Network import * from Zhihu.NN.Layers import * from Util.Util import DataUtil np.random.seed(142857) # for reproducibility def main(): nn = NNDist() epoch = 1000 x, y = DataUtil.gen_xor(100) nn.add(ReLU((x.shape[1], 24))) nn.add(CrossEntropy((y.shape[1],))) nn.fit(x, y, epoch=epoch) nn.evaluate(x, y) if __name__ == '__main__': main() ```
```go // // Last.Backend LLC CONFIDENTIAL // __________________ // // [2014] - [2019] Last.Backend LLC // All Rights Reserved. // // NOTICE: All information contained herein is, and remains // the property of Last.Backend LLC and its suppliers, // if any. The intellectual and technical concepts contained // herein are proprietary to Last.Backend LLC // and its suppliers and may be covered by Russian Federation and Foreign Patents, // patents in process, and are protected by trade secret or copyright law. // Dissemination of this information or reproduction of this material // is strictly forbidden unless prior written permission is obtained // from Last.Backend LLC. // package interfaces import ( "github.com/lastbackend/lastbackend/pkg/vendors/types" ) type IVCS interface { VendorInfo() *types.Vendor GetUser() (*types.User, error) ListRepositories(username string, org bool) (*types.VCSRepositories, error) ListBranches(owner, repo string) (*types.VCSBranches, error) CreateHook(id, owner, repo, host string) (*string, error) RemoveHook(id, owner, repo string) error PushPayload(data []byte) (*types.VCSBranch, error) } ```
```css /* farro-300normal - latin */ @font-face { font-family: 'Farro'; font-style: normal; font-display: swap; font-weight: 300; src: local('Farro Light '), local('Farro-Light'), url('./files/farro-latin-300.woff2') format('woff2'), /* Super Modern Browsers */ url('./files/farro-latin-300.woff') format('woff'); /* Modern Browsers */ } /* farro-400normal - latin */ @font-face { font-family: 'Farro'; font-style: normal; font-display: swap; font-weight: 400; src: local('Farro Regular '), local('Farro-Regular'), url('./files/farro-latin-400.woff2') format('woff2'), /* Super Modern Browsers */ url('./files/farro-latin-400.woff') format('woff'); /* Modern Browsers */ } /* farro-500normal - latin */ @font-face { font-family: 'Farro'; font-style: normal; font-display: swap; font-weight: 500; src: local('Farro Medium '), local('Farro-Medium'), url('./files/farro-latin-500.woff2') format('woff2'), /* Super Modern Browsers */ url('./files/farro-latin-500.woff') format('woff'); /* Modern Browsers */ } /* farro-700normal - latin */ @font-face { font-family: 'Farro'; font-style: normal; font-display: swap; font-weight: 700; src: local('Farro Bold '), local('Farro-Bold'), url('./files/farro-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ url('./files/farro-latin-700.woff') format('woff'); /* Modern Browsers */ } ```
```java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.svm.test; import org.junit.Assert; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.function.Function; // By declaring and serializing lambda in one class and deserializing it in another, we can simulate situation where program only // deserializes lambda class public class LambdaClassDeserializationTest { private static class SerializeLambda { public static Function<Integer, String> createLambda() { @SuppressWarnings("unchecked") Function<Integer, String> lambda = (Function<Integer, String> & Serializable) (x) -> "Value of parameter is " + x; return lambda; } public static void serialize(ByteArrayOutputStream byteArrayOutputStream, Serializable serializableObject) throws IOException { ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); objectOutputStream.writeObject(serializableObject); objectOutputStream.close(); } } private static class DeserializeLambda { public static Object deserialize(ByteArrayOutputStream byteArrayOutputStream) throws IOException, ClassNotFoundException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray()); ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream); return objectInputStream.readObject(); } } @Test public void testLambdaLambdaDeserialization() throws Exception { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); int n = 10; Function<Integer, String> lambda = SerializeLambda.createLambda(); String originalLambdaString = lambda.apply(n); SerializeLambda.serialize(byteArrayOutputStream, (Serializable) lambda); @SuppressWarnings("unchecked") Function<Integer, String> deserializedFn = (Function<Integer, String>) DeserializeLambda.deserialize(byteArrayOutputStream); String deserializedLambdaString = deserializedFn.apply(n); Assert.assertEquals(originalLambdaString, deserializedLambdaString); } } ```
```rust use kay::{ActorSystem, Fate, World, Actor}; use compact::{CVec, CDict}; use super::resources::{Inventory, Entry, Resource, ResourceAmount}; use super::households::OfferID; use cb_time::units::{TimeOfDayRange, Duration, Instant}; use transport::pathfinding::{RoughLocationID, LocationRequesterID}; use cb_util::log::warn; const LOG_T: &str = "Market"; #[derive(Compact, Clone, Debug, Serialize, Deserialize)] pub struct Deal { pub duration: Duration, pub delta: Inventory, } impl Deal { pub fn new<T: IntoIterator<Item = (Resource, ResourceAmount)>>( delta: T, duration: Duration, ) -> Self { Deal { duration, delta: delta.into_iter().collect(), } } pub fn main_given(&self) -> Resource { self.delta .iter() .filter_map(|&Entry(resource, amount)| if amount > 0.0 { Some(resource) } else { None }) .next() .unwrap() } } pub trait EvaluationRequester { fn expect_n_results(&mut self, resource: Resource, n: u32, world: &mut World); fn on_result(&mut self, result: &EvaluatedSearchResult, world: &mut World); } #[derive(Compact, Clone)] pub struct Market { id: MarketID, offers_by_resource: CDict<Resource, CVec<OfferID>>, } impl Market { pub fn spawn(id: MarketID, _: &mut World) -> Market { Market { id, offers_by_resource: CDict::new(), } } pub fn search( &mut self, instant: Instant, location: RoughLocationID, resource: Resource, requester: EvaluationRequesterID, world: &mut World, ) { let n_to_expect = if let Some(offers) = self.offers_by_resource.get(resource) { for offer in offers.iter() { offer .household .evaluate(offer.idx, instant, location, requester, world); } offers.len() } else { 0 }; requester.expect_n_results(resource, n_to_expect as u32, world); } pub fn register(&mut self, resource: Resource, offer: OfferID, _: &mut World) { self.offers_by_resource.push_at(resource, offer); } pub fn withdraw(&mut self, resource: Resource, offer: OfferID, world: &mut World) { if let Some(offers) = self.offers_by_resource.get_mut(resource) { offers.retain(|o| *o != offer); } offer.household.withdrawal_confirmed(offer.idx, world); } } #[derive(Compact, Clone, Debug, Serialize, Deserialize)] pub struct EvaluatedDeal { pub offer: OfferID, pub deal: Deal, pub opening_hours: TimeOfDayRange, } #[derive(Compact, Clone)] pub struct EvaluatedSearchResult { pub resource: Resource, pub evaluated_deals: CVec<EvaluatedDeal>, } use transport::pathfinding::{PreciseLocation, LocationRequester, DistanceRequester, DistanceRequesterID}; #[derive(Compact, Clone)] pub struct TripCostEstimator { id: TripCostEstimatorID, requester: EvaluationRequesterID, rough_source: RoughLocationID, source: Option<PreciseLocation>, rough_destination: RoughLocationID, destination: Option<PreciseLocation>, n_resolved: u8, base_result: EvaluatedSearchResult, } impl TripCostEstimator { pub fn spawn( id: TripCostEstimatorID, requester: EvaluationRequesterID, rough_source: RoughLocationID, rough_destination: RoughLocationID, base_result: &EvaluatedSearchResult, instant: Instant, world: &mut World, ) -> TripCostEstimator { rough_source.resolve_as_location(id.into(), rough_source, instant, world); rough_destination.resolve_as_location(id.into(), rough_destination, instant, world); TripCostEstimator { id, requester, rough_source, rough_destination, base_result: base_result.clone(), source: None, n_resolved: 0, destination: None, } } pub fn done(&mut self, _: &mut World) -> Fate { Fate::Die } } impl LocationRequester for TripCostEstimator { fn location_resolved( &mut self, rough_location: RoughLocationID, location: Option<PreciseLocation>, _tick: Instant, world: &mut World, ) { if self.rough_source == rough_location { self.source = location; } else if self.rough_destination == rough_location { self.destination = location; } else { panic!("Should have this rough source/destination") } self.n_resolved += 1; if let (Some(source), Some(destination)) = (self.source, self.destination) { source .link .get_distance_to(destination.location, self.id_as(), world); } else if self.n_resolved == 2 { warn( LOG_T, format!( "Either source or dest not resolvable for {}", self.base_result.resource ), self.id(), world, ); self.requester.on_result( EvaluatedSearchResult { resource: self.base_result.resource, evaluated_deals: CVec::new(), }, world, ); self.id.done(world); } } } impl DistanceRequester for TripCostEstimator { fn on_distance(&mut self, maybe_distance: Option<f32>, world: &mut World) { const ASSUMED_AVG_SPEED: f32 = 10.0; // m/s let result = if let Some(distance) = maybe_distance { EvaluatedSearchResult { evaluated_deals: self .base_result .evaluated_deals .iter() .map(|evaluated_deal| { let estimated_travel_time = Duration((distance / ASSUMED_AVG_SPEED) as u32); let mut new_deal = evaluated_deal.clone(); new_deal.deal.duration += estimated_travel_time; new_deal.opening_hours = new_deal.opening_hours.earlier_by(estimated_travel_time); // TODO: adjust resources to incorporate travel costs new_deal }) .collect(), ..self.base_result } } else { warn( LOG_T, format!( "No distance for {}, from {:?} to {:?}", self.base_result.resource, self.source, self.destination ), self.id(), world, ); EvaluatedSearchResult { resource: self.base_result.resource, evaluated_deals: CVec::new(), } }; self.requester.on_result(result, world); self.id.done(world); } } pub fn setup(system: &mut ActorSystem) { system.register::<Market>(); system.register::<TripCostEstimator>(); kay_auto::auto_setup(system); } pub fn spawn(world: &mut World) { MarketID::spawn(world); } mod kay_auto; pub use self::kay_auto::*; ```
```go // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. package main import ( "os" "github.com/codegangsta/cli" "github.com/uber/cherami-client-go/client/cherami" lib "github.com/uber/cherami-server/cmd/tools/common" ) const ( adminToolService = "cherami-admin" ) func main() { app := cli.NewApp() app.Name = "cherami" app.Usage = "A command-line tool for cherami developer, including debugging tool" app.Version = "1.2.1" lib.SetCommonFlags(&app.Flags, false) lib.SetAdminFlags(&app.Flags) cliHelper := lib.GetCommonCliHelper() lib.SetCommonCommands(&app.Commands, cliHelper, adminToolService, false, func(c *cli.Context) cherami.AuthProvider { return nil }) lib.SetAdminCommands(&app.Commands) app.Run(os.Args) } ```
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package stackdriver import ( "fmt" "math" "strconv" "time" "unicode/utf8" timestamppb "github.com/golang/protobuf/ptypes/timestamp" wrapperspb "github.com/golang/protobuf/ptypes/wrappers" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/trace" monitoredrespb "google.golang.org/genproto/googleapis/api/monitoredres" tracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2" statuspb "google.golang.org/genproto/googleapis/rpc/status" ) const ( maxAnnotationEventsPerSpan = 32 maxMessageEventsPerSpan = 128 maxAttributeStringValue = 256 agentLabel = "g.co/agent" labelHTTPHost = `/http/host` labelHTTPMethod = `/http/method` labelHTTPStatusCode = `/http/status_code` labelHTTPPath = `/http/path` labelHTTPUserAgent = `/http/user_agent` ) // proto returns a protocol buffer representation of a SpanData. func protoFromSpanData(s *trace.SpanData, projectID string, mr *monitoredrespb.MonitoredResource, userAgent string) *tracepb.Span { if s == nil { return nil } traceIDString := s.SpanContext.TraceID.String() spanIDString := s.SpanContext.SpanID.String() name := s.Name switch s.SpanKind { case trace.SpanKindClient: name = "Sent." + name case trace.SpanKindServer: name = "Recv." + name } sp := &tracepb.Span{ Name: "projects/" + projectID + "/traces/" + traceIDString + "/spans/" + spanIDString, SpanId: spanIDString, DisplayName: trunc(name, 128), StartTime: timestampProto(s.StartTime), EndTime: timestampProto(s.EndTime), SameProcessAsParentSpan: &wrapperspb.BoolValue{Value: !s.HasRemoteParent}, } if p := s.ParentSpanID; p != (trace.SpanID{}) { sp.ParentSpanId = p.String() } if s.Status.Code != 0 || s.Status.Message != "" { sp.Status = &statuspb.Status{Code: s.Status.Code, Message: s.Status.Message} } var annotations, droppedAnnotationsCount, messageEvents, droppedMessageEventsCount int copyAttributes(&sp.Attributes, s.Attributes) // Copy MonitoredResources as span Attributes sp.Attributes = copyMonitoredResourceAttributes(sp.Attributes, mr) as := s.Annotations for i, a := range as { if annotations >= maxAnnotationEventsPerSpan { droppedAnnotationsCount = len(as) - i break } annotation := &tracepb.Span_TimeEvent_Annotation{Description: trunc(a.Message, maxAttributeStringValue)} copyAttributes(&annotation.Attributes, a.Attributes) event := &tracepb.Span_TimeEvent{ Time: timestampProto(a.Time), Value: &tracepb.Span_TimeEvent_Annotation_{Annotation: annotation}, } annotations++ if sp.TimeEvents == nil { sp.TimeEvents = &tracepb.Span_TimeEvents{} } sp.TimeEvents.TimeEvent = append(sp.TimeEvents.TimeEvent, event) } if sp.Attributes == nil { sp.Attributes = &tracepb.Span_Attributes{ AttributeMap: make(map[string]*tracepb.AttributeValue), } } // Only set the agent label if it is not already set. That enables the // OpenCensus agent/collector to set the agent label based on the library that // sent the span to the agent. // // We now provide a config option to set the userAgent explicitly, which is // used both here and in request headers when sending metric data, but have // retained this non-override functionality for backwards compatibility. if _, hasAgent := sp.Attributes.AttributeMap[agentLabel]; !hasAgent { sp.Attributes.AttributeMap[agentLabel] = &tracepb.AttributeValue{ Value: &tracepb.AttributeValue_StringValue{ StringValue: trunc(userAgent, maxAttributeStringValue), }, } } es := s.MessageEvents for i, e := range es { if messageEvents >= maxMessageEventsPerSpan { droppedMessageEventsCount = len(es) - i break } messageEvents++ if sp.TimeEvents == nil { sp.TimeEvents = &tracepb.Span_TimeEvents{} } sp.TimeEvents.TimeEvent = append(sp.TimeEvents.TimeEvent, &tracepb.Span_TimeEvent{ Time: timestampProto(e.Time), Value: &tracepb.Span_TimeEvent_MessageEvent_{ MessageEvent: &tracepb.Span_TimeEvent_MessageEvent{ Type: tracepb.Span_TimeEvent_MessageEvent_Type(e.EventType), Id: e.MessageID, UncompressedSizeBytes: e.UncompressedByteSize, CompressedSizeBytes: e.CompressedByteSize, }, }, }) } if droppedAnnotationsCount != 0 || droppedMessageEventsCount != 0 { if sp.TimeEvents == nil { sp.TimeEvents = &tracepb.Span_TimeEvents{} } sp.TimeEvents.DroppedAnnotationsCount = clip32(droppedAnnotationsCount) sp.TimeEvents.DroppedMessageEventsCount = clip32(droppedMessageEventsCount) } if len(s.Links) > 0 { sp.Links = &tracepb.Span_Links{} sp.Links.Link = make([]*tracepb.Span_Link, 0, len(s.Links)) for _, l := range s.Links { link := &tracepb.Span_Link{ TraceId: l.TraceID.String(), SpanId: l.SpanID.String(), Type: tracepb.Span_Link_Type(l.Type), } copyAttributes(&link.Attributes, l.Attributes) sp.Links.Link = append(sp.Links.Link, link) } } return sp } // timestampProto creates a timestamp proto for a time.Time. func timestampProto(t time.Time) *timestamppb.Timestamp { return &timestamppb.Timestamp{ Seconds: t.Unix(), Nanos: int32(t.Nanosecond()), } } // copyMonitoredResourceAttributes copies proto monitoredResource to proto map field (Span_Attributes) // it creates the map if it is nil. func copyMonitoredResourceAttributes(out *tracepb.Span_Attributes, mr *monitoredrespb.MonitoredResource) *tracepb.Span_Attributes { if mr == nil { return out } if out == nil { out = &tracepb.Span_Attributes{} } if out.AttributeMap == nil { out.AttributeMap = make(map[string]*tracepb.AttributeValue) } for k, v := range mr.Labels { av := attributeValue(v) out.AttributeMap[fmt.Sprintf("g.co/r/%s/%s", mr.Type, k)] = av } return out } // copyAttributes copies a map of attributes to a proto map field. // It creates the map if it is nil. func copyAttributes(out **tracepb.Span_Attributes, in map[string]interface{}) { if len(in) == 0 { return } if *out == nil { *out = &tracepb.Span_Attributes{} } if (*out).AttributeMap == nil { (*out).AttributeMap = make(map[string]*tracepb.AttributeValue) } var dropped int32 for key, value := range in { av := attributeValue(value) if av == nil { continue } switch key { case ochttp.PathAttribute: (*out).AttributeMap[labelHTTPPath] = av case ochttp.HostAttribute: (*out).AttributeMap[labelHTTPHost] = av case ochttp.MethodAttribute: (*out).AttributeMap[labelHTTPMethod] = av case ochttp.UserAgentAttribute: (*out).AttributeMap[labelHTTPUserAgent] = av case ochttp.StatusCodeAttribute: (*out).AttributeMap[labelHTTPStatusCode] = av default: if len(key) > 128 { dropped++ continue } (*out).AttributeMap[key] = av } } (*out).DroppedAttributesCount = dropped } func attributeValue(v interface{}) *tracepb.AttributeValue { switch value := v.(type) { case bool: return &tracepb.AttributeValue{ Value: &tracepb.AttributeValue_BoolValue{BoolValue: value}, } case int64: return &tracepb.AttributeValue{ Value: &tracepb.AttributeValue_IntValue{IntValue: value}, } case float64: // TODO: set double value if Stackdriver Trace support it in the future. return &tracepb.AttributeValue{ Value: &tracepb.AttributeValue_StringValue{ StringValue: trunc(strconv.FormatFloat(value, 'f', -1, 64), maxAttributeStringValue)}, } case string: return &tracepb.AttributeValue{ Value: &tracepb.AttributeValue_StringValue{StringValue: trunc(value, maxAttributeStringValue)}, } } return nil } // trunc returns a TruncatableString truncated to the given limit. func trunc(s string, limit int) *tracepb.TruncatableString { if len(s) > limit { b := []byte(s[:limit]) for { r, size := utf8.DecodeLastRune(b) if r == utf8.RuneError && size == 1 { b = b[:len(b)-1] } else { break } } return &tracepb.TruncatableString{ Value: string(b), TruncatedByteCount: clip32(len(s) - len(b)), } } return &tracepb.TruncatableString{ Value: s, TruncatedByteCount: 0, } } // clip32 clips an int to the range of an int32. func clip32(x int) int32 { if x < math.MinInt32 { return math.MinInt32 } if x > math.MaxInt32 { return math.MaxInt32 } return int32(x) } ```
Ribeira Sacra is a Spanish Denominación de Origen Protegida (DOP) (Denominación de Orixe Protexida in Galician) for wines located in the south of the province of Lugo and in the north of the province of Ourense, in Galicia, Spain. It extends over the territories of 20 different municipalities that conform a zone and entity called Ribeira Sacra, which could be translated as "Sacred Shore". The vineyards are planted on the steep slopes of the valleys and canyons of the rivers Miño and Sil. The area acquired official Denominación de Origen status in 1996. Three types of varietal wine are produced: red Mencía, white Albariño and white Godello. History Its first name in Latin was Roboira Sacrata (Sacred Oak Grove) but a bad translation made in the XVII century by a monk, changed it to Ribeira Sacra (Sacred Riverside) until nowadays. It is generally believed that grape growing and wine production were introduced to the area by the ancient Romans. It is said that the legendary spiced Vinos de Amandi were shipped to Rome along with the lampreys fished out of the river Miño, to be served at the table of the emperor. It is believed that Ribeira Sacra takes its name from 18 monasteries and hermitages that were founded in the early Middle Ages between the 8th and 12th centuries and which are located in the inaccessible river valleys. It was the monks who replanted the vineyards for their own consumption and maintained the grape-growing and wine-producing tradition until modern times. The most important monasteries are: San Pedro de Bembibre Taboada dos Freires San Paio de Diomondi Santo Estevo de Ribas de Miño Santa María de Pesqueiras Montederramo San Pedro de Rocas Ferreira de Pantón San Paio de Abeleda Santa Cristina de Ribas de Sil San Estevo de Ribas de Sil Geography The area is divided into five sub-regions, each with a different micro-climate, but in general all the soils are alluvial over a slate based subsoil. The sub-zones and the municipalities contained within them have been listed below (the sub-regions were split by parish and so some municipalities are listed more than once): Chantada: Portomarín, Taboada, Chantada, Carballedo, Peroxa Amandi: Sober, Monforte de Lemos Ribeiras do Miño: Paradela, O Saviñao, Pantón, Sober, Monforte de Lemos Ribeiras do Sil: A Teixeira, Parada de Sil, Castro Caldelas, Nogueira de Ramuín Quiroga-Bibei: Monforte de Lemos, Pobra do Brollón, Quiroga, Ribas de Sil, Pobra de Trives, Manzaneda, San Xoán de Río Climate The climate in Ribeira Sacra DO is more continental than Atlantic, and has long hot summers and cool autumns. However, rainfall is high (around 800 mm per year). The sub-zones on the river Miño have more rain (900 mm) than the ones on the river Sil (700 mm). In general, the Miño area has a more Atlantic climate whereas the Sil area is more continental. Winds can be very strong as they are funnelled by the shape of the valleys. Grapes The Recommended red varieties are: Mencía, Brancellao, Merenzao, Sousón, Caiño Tinto, and Tempranillo; also authorized are Garnacha tintorera, Mouratón. The Recommended white varieties are: Godello, Loureira, Treixadura, Dona Branca, Albariño, and Torrontés. The vineyards are planted on terraces (known as bancadas) in the narrow valleys of the rivers and are characterized by the production of grapes with a very concentrated flavor. The terraces are usually very small, making it impossible to mechanize the vineyard activities, such as pruning and harvesting. Access is often very difficult and sometimes only possible from the river. See also Galician wine Spanish wine References External links D.O. Ribeira Sacra official website Wine regions of Spain Galicia (Spain)
The Martyrdom of Saint Ursula (1610), is a painting by the Italian artist Caravaggio (1571–1610) and thought to be his last picture. It is in the Intesa Sanpaolo Collection, the Gallery of Palazzo Zevallos Stigliano, Naples. According to one version of the legend of Saint Ursula, she and her eleven thousand virgin companions were captured by the Huns. The eleven thousand virgins were slaughtered, but the king of the Huns was overcome by Ursula's modesty and beauty and begged her forgiveness if only she would marry him. Ursula replied that she would not, upon which the king transfixed her with an arrow. History Caravaggio painted Saint Ursula in 1610 in Naples for Marcantonio Doria, a 25-year-old nobleman from Genoa. Doria had become an ardent collector of Caravaggio's work, and he commissioned the painting to mark the entry of his stepdaughter into a religious order as Sister Ursula. The date of the painting can be located at shortly prior to 11 May 1610, when Doria's procurator in Naples, Lanfranco Massa, wrote to his master that the painting was finished. There had been a slight accident, the agent wrote, when he had tried to hasten the drying by leaving it out in the sun the day before, softening the varnish. The agent told Doria not to worry as he would take it back to Caravaggio to be fixed and, in fact, Doria should commission more works from the artist as "people are fighting over him and this is a good chance." However, this may be a reference to another artist Marcantonio had also commissioned work from. The original source document is unclear. The painting was received in Genoa on 18 June and Doria was delighted, placing it with his Raphaels and Leonardos and his vial of the authentic blood of John the Baptist. In his will of 19 October 1651, Marcantonio left his art collection to his eldest son Nicolò, Prince of Angri and Duke of Eboli. The estate was transferred to Naples by Maria Doria Cattaneo in 1832. The painting is listed in the inventory of Giovan Carlo Doria's inheritance, taken in 1854–55, in the Palazzo Doria d'Angri allo Spirito Santo, Naples. Caravaggio had arrived in Naples from Sicily in September or October 1609. Within days he was attacked outside a restaurant by four armed men, leading to rumours that he had been killed or facially disfigured. It is probable that he took a long time to convalesce, and it is difficult to link more than a handful of works, and most of them hesitantly, to this second stay in the city. The Saint Ursula, however, can be positively identified. It marks yet another change in style: in Sicily he had continued the compositional scheme introduced with The Beheading of Saint John the Baptist, a small group of figures dwarfed by massive architecture, but Ursula marks a return to a scene which brings the action directly into the space of the viewer, at the very moment when the Hun king lets fly his arrow, and Ursula looks down with an expression of mild surprise at the shaft sticking out of her chest. To the right and rear a few onlookers stare in shock, one of them, the upturned face behind Ursula, apparently Caravaggio himself. Everyone who had seen the painting had been stunned, Doria's agent reported. Doria himself might have been glad to see his favourite artist, unmarked despite all the rumours. Saint Ursula was one of the last paintings ever made by Caravaggio. In July he set off by boat to receive a pardon from the Pope for his part in the death of a young man in a duel in 1606. But instead of the pardon, he died; exactly how is unclear, although a fever is most frequently quoted as the cause, at Porto Ercole, on the coast north of Rome. A discussion of his death is given under the article on John the Baptist. See also List of paintings by Caravaggio References Further reading External links 1610 paintings Paintings by Caravaggio Paintings about death Christian art about death Palazzo Zevallos Stigliano Religious paintings Paintings of Saint Ursula
```c /* __cxa_atexit backwards-compatibility support for Darwin. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under Software Foundation; either version 2, or (at your option) any later version. Free Software Foundation gives you unlimited permission to link the compiled version of this file into combinations with other programs, and to distribute those combinations without any restriction coming do apply in other respects; for example, they cover modification of the file, and distribution when not linked into a combine executable.) GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or for more details. along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Don't do anything if we are compiling for a kext multilib. */ #ifdef __PIC__ /* It is incorrect to include config.h here, because this file is being compiled for the target, and hence definitions concerning only the host do not apply. */ #include "tconfig.h" #include "tsystem.h" #include <dlfcn.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> /* This file works around two different problems. The first problem is that there is no __cxa_atexit on Mac OS versions before 10.4. It fixes this by providing a complete atexit and __cxa_atexit emulation called from the regular atexit. The second problem is that on all shipping versions of Mac OS, __cxa_finalize and exit() don't work right: they don't run routines that were registered while other atexit routines are running. This is worked around by wrapping each atexit/__cxa_atexit routine with our own routine which ensures that any __cxa_atexit calls while it is running are honoured. There are still problems which this does not solve. Before 10.4, shared objects linked with previous compilers won't have their atexit calls properly interleaved with code compiled with newer compilers. Also, atexit routines registered from shared objects linked with previous compilers won't get the bug fix. */ typedef int (*cxa_atexit_p)(void (*func) (void*), void* arg, const void* dso); typedef void (*cxa_finalize_p)(const void *dso); typedef int (*atexit_p)(void (*func)(void)); /* These are from "keymgr.h". */ extern void *_keymgr_get_and_lock_processwide_ptr (unsigned key); extern int _keymgr_get_and_lock_processwide_ptr_2 (unsigned, void **); extern int _keymgr_set_and_unlock_processwide_ptr (unsigned key, void *ptr); extern void *__keymgr_global[]; typedef struct _Sinfo_Node { unsigned int size ; /*size of this node*/ unsigned short major_version ; /*API major version.*/ unsigned short minor_version ; /*API minor version.*/ } _Tinfo_Node ; #ifdef __ppc__ #define CHECK_KEYMGR_ERROR(e) \ (((_Tinfo_Node *)__keymgr_global[2])->major_version >= 4 ? (e) : 0) #else #define CHECK_KEYMGR_ERROR(e) (e) #endif /* Our globals are stored under this keymgr index. */ #define KEYMGR_ATEXIT_LIST 14 /* The different kinds of callback routines. */ typedef void (*atexit_callback)(void); typedef void (*cxa_atexit_callback)(void *); /* This structure holds a routine to call. There may be extra fields at the end of the structure that this code doesn't know about. */ struct one_atexit_routine { union { atexit_callback ac; cxa_atexit_callback cac; } callback; /* has_arg is 0/2/4 if 'ac' is live, 1/3/5 if 'cac' is live. Higher numbers indicate a later version of the structure that this code doesn't understand and will ignore. */ int has_arg; void * arg; }; struct atexit_routine_list { struct atexit_routine_list * next; struct one_atexit_routine r; }; /* The various possibilities for status of atexit(). */ enum atexit_status { atexit_status_unknown = 0, atexit_status_missing = 1, atexit_status_broken = 2, atexit_status_working = 16 }; struct keymgr_atexit_list { /* Version of this list. This code knows only about version 0. If the version is higher than 0, this code may add new atexit routines but should not attempt to run the list. */ short version; /* 1 if an atexit routine is currently being run by this code, 0 otherwise. */ char running_routines; /* Holds a value from 'enum atexit_status'. */ unsigned char atexit_status; /* The list of atexit and cxa_atexit routines registered. If atexit_status_missing it contains all routines registered while linked with this code. If atexit_status_broken it contains all routines registered during cxa_finalize while linked with this code. */ struct atexit_routine_list *l; /* &__cxa_atexit; set if atexit_status >= atexit_status_broken. */ cxa_atexit_p cxa_atexit_f; /* &__cxa_finalize; set if atexit_status >= atexit_status_broken. */ cxa_finalize_p cxa_finalize_f; /* &atexit; set if atexit_status >= atexit_status_working or atexit_status == atexit_status_missing. */ atexit_p atexit_f; }; /* Return 0 if __cxa_atexit has the bug it has in Mac OS 10.4: it fails to call routines registered while an atexit routine is running. Return 1 if it works properly, and -1 if an error occurred. */ struct atexit_data { int result; cxa_atexit_p cxa_atexit; }; static void cxa_atexit_check_2 (void *arg) { ((struct atexit_data *)arg)->result = 1; } static void cxa_atexit_check_1 (void *arg) { struct atexit_data * aed = arg; if (aed->cxa_atexit (cxa_atexit_check_2, arg, arg) != 0) aed->result = -1; } static int check_cxa_atexit (cxa_atexit_p cxa_atexit, cxa_finalize_p cxa_finalize) { struct atexit_data aed = { 0, cxa_atexit }; /* We re-use &aed as the 'dso' parameter, since it's a unique address. */ if (cxa_atexit (cxa_atexit_check_1, &aed, &aed) != 0) return -1; cxa_finalize (&aed); if (aed.result == 0) { /* Call __cxa_finalize again to make sure that cxa_atexit_check_2 is removed from the list before AED goes out of scope. */ cxa_finalize (&aed); aed.result = 0; } return aed.result; } #ifdef __ppc__ /* This comes from Csu. It works only before 10.4. The prototype has been altered a bit to avoid casting. */ extern int _dyld_func_lookup(const char *dyld_func_name, void *address) __attribute__((visibility("hidden"))); static void our_atexit (void); /* We're running on 10.3.9. Find the address of the system atexit() function. So easy to say, so hard to do. */ static atexit_p find_atexit_10_3 (void) { unsigned int (*dyld_image_count_fn)(void); const char *(*dyld_get_image_name_fn)(unsigned int image_index); const void *(*dyld_get_image_header_fn)(unsigned int image_index); const void *(*NSLookupSymbolInImage_fn)(const void *image, const char *symbolName, unsigned int options); void *(*NSAddressOfSymbol_fn)(const void *symbol); unsigned i, count; /* Find some dyld functions. */ _dyld_func_lookup("__dyld_image_count", &dyld_image_count_fn); _dyld_func_lookup("__dyld_get_image_name", &dyld_get_image_name_fn); _dyld_func_lookup("__dyld_get_image_header", &dyld_get_image_header_fn); _dyld_func_lookup("__dyld_NSLookupSymbolInImage", &NSLookupSymbolInImage_fn); _dyld_func_lookup("__dyld_NSAddressOfSymbol", &NSAddressOfSymbol_fn); /* If any of these don't exist, that's an error. */ if (! dyld_image_count_fn || ! dyld_get_image_name_fn || ! dyld_get_image_header_fn || ! NSLookupSymbolInImage_fn || ! NSAddressOfSymbol_fn) return NULL; count = dyld_image_count_fn (); for (i = 0; i < count; i++) { const char * path = dyld_get_image_name_fn (i); const void * image; const void * symbol; if (strcmp (path, "/usr/lib/libSystem.B.dylib") != 0) continue; image = dyld_get_image_header_fn (i); if (! image) return NULL; /* '4' is NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR. */ symbol = NSLookupSymbolInImage_fn (image, "_atexit", 4); if (! symbol) return NULL; return NSAddressOfSymbol_fn (symbol); } return NULL; } #endif /* Create (if necessary), find, lock, fill in, and return our globals. Return NULL on error, in which case the globals will not be locked. The caller should call keymgr_set_and_unlock. */ static struct keymgr_atexit_list * get_globals (void) { struct keymgr_atexit_list * r; #ifdef __ppc__ /* 10.3.9 doesn't have _keymgr_get_and_lock_processwide_ptr_2 so the PPC side can't use it. On 10.4 this just means the error gets reported a little later when _keymgr_set_and_unlock_processwide_ptr finds that the key was never locked. */ r = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST); #else void * rr; if (_keymgr_get_and_lock_processwide_ptr_2 (KEYMGR_ATEXIT_LIST, &rr)) return NULL; r = rr; #endif if (r == NULL) { r = calloc (sizeof (struct keymgr_atexit_list), 1); if (! r) return NULL; } if (r->atexit_status == atexit_status_unknown) { void *handle; handle = dlopen ("/usr/lib/libSystem.B.dylib", RTLD_NOLOAD); if (!handle) { #ifdef __ppc__ r->atexit_status = atexit_status_missing; r->atexit_f = find_atexit_10_3 (); if (! r->atexit_f) goto error; if (r->atexit_f (our_atexit)) goto error; #else goto error; #endif } else { int chk_result; r->cxa_atexit_f = (cxa_atexit_p)dlsym (handle, "__cxa_atexit"); r->cxa_finalize_f = (cxa_finalize_p)dlsym (handle, "__cxa_finalize"); if (! r->cxa_atexit_f || ! r->cxa_finalize_f) goto error; chk_result = check_cxa_atexit (r->cxa_atexit_f, r->cxa_finalize_f); if (chk_result == -1) goto error; else if (chk_result == 0) r->atexit_status = atexit_status_broken; else { r->atexit_f = (atexit_p)dlsym (handle, "atexit"); if (! r->atexit_f) goto error; r->atexit_status = atexit_status_working; } } } return r; error: _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, r); return NULL; } /* Add TO_ADD to ATEXIT_LIST. ATEXIT_LIST may be NULL but is always the result of calling _keymgr_get_and_lock_processwide_ptr and so KEYMGR_ATEXIT_LIST is known to be locked; this routine is responsible for unlocking it. */ static int add_routine (struct keymgr_atexit_list * g, const struct one_atexit_routine * to_add) { struct atexit_routine_list * s = malloc (sizeof (struct atexit_routine_list)); int result; if (!s) { _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); return -1; } s->r = *to_add; s->next = g->l; g->l = s; result = _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); return CHECK_KEYMGR_ERROR (result) == 0 ? 0 : -1; } /* This runs the routines in G->L up to STOP. */ static struct keymgr_atexit_list * run_routines (struct keymgr_atexit_list *g, struct atexit_routine_list *stop) { for (;;) { struct atexit_routine_list * cur = g->l; if (! cur || cur == stop) break; g->l = cur->next; _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); switch (cur->r.has_arg) { case 0: case 2: case 4: cur->r.callback.ac (); break; case 1: case 3: case 5: cur->r.callback.cac (cur->r.arg); break; default: /* Don't understand, so don't call it. */ break; } free (cur); g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST); if (! g) break; } return g; } /* Call the routine described by ROUTINE_PARAM and then call any routines added to KEYMGR_ATEXIT_LIST while that routine was running, all with in_cxa_finalize set. */ static void cxa_atexit_wrapper (void* routine_param) { struct one_atexit_routine * routine = routine_param; struct keymgr_atexit_list *g; struct atexit_routine_list * base = NULL; char prev_running = 0; g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST); if (g) { prev_running = g->running_routines; g->running_routines = 1; base = g->l; _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); } if (routine->has_arg) routine->callback.cac (routine->arg); else routine->callback.ac (); if (g) g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST); if (g) g = run_routines (g, base); if (g) { g->running_routines = prev_running; _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); } } #ifdef __ppc__ /* This code is used while running on 10.3.9, when __cxa_atexit doesn't exist in the system library. 10.3.9 only supported regular PowerPC, so this code isn't necessary on x86 or ppc64. */ /* This routine is called from the system atexit(); it runs everything registered on the KEYMGR_ATEXIT_LIST. */ static void our_atexit (void) { struct keymgr_atexit_list *g; char prev_running; g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST); if (! g || g->version != 0 || g->atexit_status != atexit_status_missing) return; prev_running = g->running_routines; g->running_routines = 1; g = run_routines (g, NULL); if (! g) return; g->running_routines = prev_running; _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); } #endif /* This is our wrapper around atexit and __cxa_atexit. It will return nonzero if an error occurs, and otherwise: - if in_cxa_finalize is set, or running on 10.3.9, add R to KEYMGR_ATEXIT_LIST; or - call the system __cxa_atexit to add cxa_atexit_wrapper with an argument that indicates how cxa_atexit_wrapper should call R. */ static int atexit_common (const struct one_atexit_routine *r, const void *dso) { struct keymgr_atexit_list *g = get_globals (); if (! g) return -1; if (g->running_routines || g->atexit_status == atexit_status_missing) return add_routine (g, r); if (g->atexit_status >= atexit_status_working) { int result; if (r->has_arg) { cxa_atexit_p cxa_atexit = g->cxa_atexit_f; result = _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); if (CHECK_KEYMGR_ERROR (result)) return -1; return cxa_atexit (r->callback.cac, r->arg, dso); } else { atexit_p atexit_f = g->atexit_f; result = _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); if (CHECK_KEYMGR_ERROR (result)) return -1; return atexit_f (r->callback.ac); } } else { cxa_atexit_p cxa_atexit = g->cxa_atexit_f; struct one_atexit_routine *alloced; int result; result = _keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g); if (CHECK_KEYMGR_ERROR (result)) return -1; alloced = malloc (sizeof (struct one_atexit_routine)); if (! alloced) return -1; *alloced = *r; return cxa_atexit (cxa_atexit_wrapper, alloced, dso); } } /* These are the actual replacement routines; they just funnel into atexit_common. */ int __cxa_atexit (cxa_atexit_callback func, void* arg, const void* dso) __attribute__((visibility("hidden"))); int __cxa_atexit (cxa_atexit_callback func, void* arg, const void* dso) { struct one_atexit_routine r; r.callback.cac = func; r.has_arg = 1; r.arg = arg; return atexit_common (&r, dso); } int atexit (atexit_callback func) __attribute__((visibility("hidden"))); /* Use __dso_handle to allow even bundles that call atexit() to be unloaded on 10.4. */ extern void __dso_handle; int atexit (atexit_callback func) { struct one_atexit_routine r; r.callback.ac = func; r.has_arg = 0; return atexit_common (&r, &__dso_handle); } #endif /* __PIC__ */ ```
```less // color @weuiColorPrimary: #1AAD19; @weuiColorWarn: #E64340; // link @weuiLinkColorDefault: #586C94; // background @weuiBgColorDefault: #EFEFF4; @weuiBgColorActive: #ECECEC; // line @weuiLineColorLight: #E5E5E5; @weuiLineColorDark: #BCBAB6; // text @weuiTextColorTitle: #000000; @weuiTextColorTips: #B2B2B2; @weuiTextColorWarn: @weuiColorWarn; @weuiTextColorGray: #999999; ```
The long-nosed echymipera (Echymipera rufescens), or long-nosed spiny bandicoot, is a species of marsupial in the family Peramelidae. It is found in Australia, Indonesia, and Papua New Guinea. Its natural habitat is subtropical or tropical dry forests. Vernacular names Vernacular names for E. rufescens in various Aru languages of the Aru Islands in far eastern Indonesia: Ujir: koa Kola: koyi Dobel: ʔosi Batuley: koyi Manumbai: kagaran Goda-Goda: kawaran Lorang: kagwaran Koba: ngarukwabala West Tarangan: man References External links Image at ADW Peramelemorphs Marsupials of New Guinea Marsupials of Australia Mammals of Papua New Guinea Mammals of Western New Guinea Mammals of Queensland Least concern biota of Oceania Mammals described in 1875 Taxa named by Wilhelm Peters Taxonomy articles created by Polbot
Ummah Tameer-e-Nau (UTN), is a militant organization banned by the United States Department of Treasury on December 20, 2001. It was also placed on the Patriot Act Terrorist Exclusion List. It is suspected of supplying information about constructing nuclear weapons to Osama bin Laden and Al-Qaeda. Origin The UTN was founded in June 2000 by Pakistani scientist Sultan Bashiruddin Mahmood, who notably resigned from the Pakistan Atomic Energy Commission (PAEC) in 1999 in protest of the Pakistani government's willingness to sign the Comprehensive Test Ban Treaty (CTBT). He had previously served as Director for Nuclear Power and was the chief designer and director of the Khushab Reactor-I. On popular Pakistani news channels, Mahmood was a vehement supporter of the Afghan Taliban, and once described the Taliban's regime in Afghanistan as the "ideal Islamic state". In a report published by the New York Times, his fellow scientists and engineers at PAEC began to question his mental state, and wonder seriously if Mahmood was mentally sound." In March 1999, he was awarded with Pakistan's third highest civilian honour, the Sitara-i-Imtiaz, by the President of Pakistan. Membership Lieutenant-General (retired) Hamid Gul former director of Pakistan's Inter-Services Intelligence was also a member and has acknowledged this. Other prominent Pakistani scientists, retired military officers, and industrialists were also members of UTN: Dr. Chaudhry Abdul Majeed, a former senior scientist at the PAEC and ICTP. Mirza Yousaf Baig, nuclear chemist, a senior scientist and the owner of a construction company. Admiral (retired) Humayan Niaz, an electrical engineer and a retired Pakistan Navy Admiral in the electrical engineering division of Pakistan Navy. S.M. Tufail, an industrial engineer Commodore (retired) Arshad Chaudhry (Naval Engineer) Mohammed Hanif (an Industrialist and a civil engineer). Activities The stated purpose of UTN was to rebuild Afghanistan's infrastructure and raise money to develop the Taliban-held areas of Afghanistan. UTN reportedly had the personal support of jihadist Mohammed Omar and close ties to the Taliban regime. The U.S. declared Ummah Tameer-e-Nau a terrorist group after a search of the group's offices in Kabul unearthed documents referencing plans to kidnap a U.S. diplomat and outlining basic physics related to nuclear weapons. Documents also showed that there was a plan to mine uranium inside Afghanistan. Sanctions Consequent to the US actions Pakistan froze the assets of UTN. The Bank of England also ordered a freeze on its assets. It was also sanctioned by the United Nations. Bashiruddin Mahmood and Dr. Chaudhry Abdul Majeed were arrested in Pakistan in November, 2001. However Pakistan refused to extradite him to the United States. He was subsequently freed in February 2002. Hamid Gul, former chief of Pakistan's Inter-Services Intelligence agency. has been placed on a global watchlist of terrorists by the U.S. government. The sanctioned Al-Qaeda affiliate Al Rashid Trust, also provided funds for UTN. References External links Ummah Tamir-e-Nau (Reconstruction of the Muslim Ummah), South Asian Terrorism Portal Jihadist groups in Pakistan Islamic terrorism in Pakistan Far-right politics in Pakistan Organizations designated as terrorist by the United States
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package empty import ( "encoding/json" "errors" v1 "github.com/google/go-containerregistry/pkg/v1" "github.com/google/go-containerregistry/pkg/v1/partial" "github.com/google/go-containerregistry/pkg/v1/types" ) // Index is a singleton empty index, think: FROM scratch. var Index = emptyIndex{} type emptyIndex struct{} func (i emptyIndex) MediaType() (types.MediaType, error) { return types.OCIImageIndex, nil } func (i emptyIndex) Digest() (v1.Hash, error) { return partial.Digest(i) } func (i emptyIndex) Size() (int64, error) { return partial.Size(i) } func (i emptyIndex) IndexManifest() (*v1.IndexManifest, error) { return base(), nil } func (i emptyIndex) RawManifest() ([]byte, error) { return json.Marshal(base()) } func (i emptyIndex) Image(v1.Hash) (v1.Image, error) { return nil, errors.New("empty index") } func (i emptyIndex) ImageIndex(v1.Hash) (v1.ImageIndex, error) { return nil, errors.New("empty index") } func base() *v1.IndexManifest { return &v1.IndexManifest{ SchemaVersion: 2, MediaType: types.OCIImageIndex, Manifests: []v1.Descriptor{}, } } ```
```c++ /* * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include <unordered_set> #include "IRInstruction.h" #include "Match.h" #include "RedexTest.h" #include "Show.h" class MatchTest : public RedexTest {}; TEST_F(MatchTest, Equality) { auto m = m::equals(42); int x = 43; auto n = m::equals(x); auto o = m::equals(&x); EXPECT_TRUE(m.matches(42)); EXPECT_FALSE(m.matches(43)); EXPECT_TRUE(n.matches(43)); EXPECT_FALSE(n.matches(42)); EXPECT_TRUE(o.matches(&x)); EXPECT_FALSE(o.matches(nullptr)); } TEST_F(MatchTest, In) { auto n = m::in<int>(std::unordered_set<int>{43}); std::unordered_set<int> xs{42}; auto m = m::in<int>(xs); EXPECT_TRUE(m.matches(42)); EXPECT_FALSE(m.matches(43)); EXPECT_TRUE(n.matches(43)); EXPECT_FALSE(n.matches(42)); } TEST_F(MatchTest, IputBasic) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexFieldRef* field = DexField::make_field(ty, str, ty); auto iput = std::make_unique<IRInstruction>(OPCODE_IPUT); iput->set_src(0, 0); iput->set_src(1, 1); iput->set_field(field); std::vector<MethodItemEntry> input{MethodItemEntry(iput.get())}; auto match = m::find_insn_match(input, m::an_iput()); ASSERT_EQ(match.size(), 1); EXPECT_EQ(match[0], iput.get()); } TEST_F(MatchTest, IgetBasic) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexFieldRef* field = DexField::make_field(ty, str, ty); auto iget = std::make_unique<IRInstruction>(OPCODE_IGET); iget->set_src(0, 0); iget->set_field(field); std::vector<MethodItemEntry> input{MethodItemEntry(iget.get())}; auto match = m::find_insn_match(input, m::an_iget()); ASSERT_EQ(match.size(), 1); EXPECT_EQ(match[0], iget.get()); } TEST_F(MatchTest, InvokeBasic) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexProto* proto = DexProto::make_proto(ty, DexTypeList::make_type_list({})); DexMethodRef* method = DexMethod::make_method(ty, str, proto); auto invoke = std::make_unique<IRInstruction>(OPCODE_INVOKE_VIRTUAL); invoke->set_method(method); std::vector<MethodItemEntry> input{MethodItemEntry(invoke.get())}; auto match = m::find_insn_match(input, m::an_invoke()); ASSERT_EQ(match.size(), 1); EXPECT_EQ(match[0], invoke.get()); } TEST_F(MatchTest, opcode_string) { auto str = DexString::make_string("foo"); IRInstruction* load_str = new IRInstruction(OPCODE_CONST_STRING); load_str->set_string(str); std::vector<MethodItemEntry> input{MethodItemEntry(load_str)}; auto match = m::find_insn_match(input, m::has_string(m::equals(str))); EXPECT_EQ(match[0], load_str); delete load_str; } TEST_F(MatchTest, has_literal) { auto const_str = std::make_unique<IRInstruction>(OPCODE_CONST_STRING); const_str->set_string(DexString::make_string("foo")); auto const_int = std::make_unique<IRInstruction>(OPCODE_CONST); const_int->set_literal(42); auto p = m::has_literal(); auto q = m::has_literal(m::equals<int64_t>(43)); auto r = m::has_literal(m::equals<int64_t>(42)); EXPECT_FALSE(p.matches(const_str.get())); EXPECT_FALSE(q.matches(const_int.get())); EXPECT_TRUE(r.matches(const_int.get())); } TEST_F(MatchTest, NotAllMatch) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexFieldRef* field = DexField::make_field(ty, str, ty); auto iput = std::make_unique<IRInstruction>(OPCODE_IPUT); iput->set_src(0, 0); iput->set_src(1, 1); iput->set_field(field); auto iget = std::make_unique<IRInstruction>(OPCODE_IGET); iget->set_src(0, 0); iget->set_field(field); DexProto* proto = DexProto::make_proto(ty, DexTypeList::make_type_list({})); DexMethodRef* method = DexMethod::make_method(ty, str, proto); auto invoke = std::make_unique<IRInstruction>(OPCODE_INVOKE_VIRTUAL); invoke->set_method(method); std::vector<MethodItemEntry> input{ MethodItemEntry(iget.get()), MethodItemEntry(iput.get()), MethodItemEntry(invoke.get()), }; auto match = m::find_insn_match(input, m::an_iput()); ASSERT_EQ(match.size(), 1); EXPECT_EQ(match[0], iput.get()); } TEST_F(MatchTest, SameFieldMatch) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexFieldRef* field = DexField::make_field(ty, str, ty); auto iput = std::make_unique<IRInstruction>(OPCODE_IPUT); iput->set_src(0, 0); iput->set_src(1, 1); iput->set_field(field); auto iget = std::make_unique<IRInstruction>(OPCODE_IGET); iget->set_src(0, 0); iget->set_field(field); DexProto* proto = DexProto::make_proto(ty, DexTypeList::make_type_list({})); DexMethodRef* method = DexMethod::make_method(ty, str, proto); auto invoke = std::make_unique<IRInstruction>(OPCODE_INVOKE_VIRTUAL); invoke->set_method(method); std::vector<MethodItemEntry> input{ MethodItemEntry(iget.get()), MethodItemEntry(iput.get()), MethodItemEntry(invoke.get()), }; auto match = m::find_insn_match( input, m::has_field(m::member_of<DexFieldRef>(m::equals(ty)))); EXPECT_EQ(match.size(), 2); } TEST_F(MatchTest, SameMethodMatch) { DexType* ty = DexType::make_type("Lfoo;"); auto str = DexString::make_string("foo"); DexFieldRef* field = DexField::make_field(ty, str, ty); auto iput = std::make_unique<IRInstruction>(OPCODE_IPUT); iput->set_src(0, 0); iput->set_src(1, 1); iput->set_field(field); auto iget = std::make_unique<IRInstruction>(OPCODE_IGET); iget->set_src(0, 0); iget->set_field(field); DexProto* proto = DexProto::make_proto(ty, DexTypeList::make_type_list({})); DexMethodRef* method = DexMethod::make_method(ty, str, proto); auto invoke = std::make_unique<IRInstruction>(OPCODE_INVOKE_VIRTUAL); invoke->set_method(method); std::vector<MethodItemEntry> input{ MethodItemEntry(iget.get()), MethodItemEntry(iput.get()), MethodItemEntry(invoke.get()), }; auto match = m::find_insn_match( input, m::has_method(m::member_of<DexMethodRef>(m::equals(ty)))); EXPECT_EQ(match.size(), 1); } ```
```go package devrpc import ( "github.com/btcsuite/btclog" "github.com/lightningnetwork/lnd/build" ) // log is a logger that is initialized with no output filters. This means the // package will not perform any logging by default until the caller requests // it. var log btclog.Logger // The default amount of logging is none. func init() { UseLogger(build.NewSubLogger("DRPC", nil)) } // DisableLog disables all library log output. Logging output is disabled by // by default until UseLogger is called. func DisableLog() { UseLogger(btclog.Disabled) } // UseLogger uses a specified Logger to output package logging info. This // should be used in preference to SetLogWriter if the caller is also using // btclog. func UseLogger(logger btclog.Logger) { log = logger } ```
El Niño is an opera-oratorio by the contemporary American composer John Adams. It was premiered on December 15, 2000, at the Théâtre du Châtelet in Paris by soloists Dawn Upshaw, Lorraine Hunt Lieberson and Willard White, the vocal ensemble Theatre of Voices (consisting of countertenors Daniel Bubeck, Brian Cummings and Steven Rickards), the London Voices, La Maîtrise de Paris, and the Deutsches Symphonie-Orchester Berlin, with Kent Nagano conducting. It has been performed on a number of occasions since, and has been broadcast on BBC Television. Described as a "nativity oratorio", it retells the Christmas story, with the first half focusing on Mary's thoughts before the birth in the stable in Bethlehem, and the second half covering the aftermath of the birth, Herod's slaughter of the Holy Innocents, and the early life of Jesus. The text follows the traditional biblical story but also incorporates text from the King James Bible, the Wakefield Mystery Plays, Martin Luther's Christmas Sermon, the Gospel of Luke, and several gnostic gospels from the Apocrypha. Also included are poems by Rosario Castellanos, Sor Juana Inés de la Cruz, Gabriela Mistral, Vicente Huidobro, Rubén Darío, librettist Peter Sellars, and Adams himself. He also quotes Gabriela Mistral's "The Christmas Star" and incorporates a choral setting of "" by Hildegard von Bingen. Performers The work is scored for soprano, mezzo-soprano and baritone soloists, a trio of countertenors, a forty-five piece orchestra (including two guitars and a sampling keyboard), SATB chorus, and a children's chorus. It can be performed either as a staged production or as a concert oratorio. The original semi-staged production by Peter Sellars includes dance and film elements. A shortened version of the work, removing two of the three countertenors and the chorus as well as much of the orchestra, was suggested by soprano Julia Bullock in 2018 for a performance at The Cloisters of the Metropolitan Museum of Art under the title El Niño: Nativity Reconsidered. Performance history The American premiere took place on January 11, 2001 at Davies Hall, San Francisco, with Kent Nagano conducting the San Francisco Symphony and San Francisco Symphony Chorus, the Piedmont Children's Choir, and with the same soloists as at the Paris premiere. It received its collegiate premiere as a semi-staged oratorio on November 6, 2002, at the Indiana University Jacobs School of Music, conducted by Carmen Helena Téllez, with student soloists Su-Hyoun Kim, Hannah Penn and Robert Samels, but also including the professional countertenors of the premiere, Dan Bubeck, Brian Cummings and Steve Rickards, members of Theater of Voices and alumni of the School. The artistic director of Theater of Voices, Paul Hillier was at the time a faculty member of the School. It was also given in New York at the Brooklyn Academy of Music in March 2003 by the Los Angeles Philharmonic under Esa-Pekka Salonen, and with the same soloists. In May 2003 the Atlanta Symphony Orchestra and Chorus performed the work under the direction of Robert Spano and the following month opened the 67th Ravinia Festival with a critically acclaimed performance of the oratorio. A new and highly praised production, using puppets instead of dancers and film, was given at Spoleto Festival USA in May 2014, directed by John La Bouchardière and featured the Westminster Choir, directed by Joe Miller. Musical sections El Niño is approximately two hours long, comprises two sections, and is subdivided further into thirteen sub-sections as follows: Recordings 2000: DVD video: Sellars' Paris production of El Niño with Dawn Upshaw, Lorraine Hunt Lieberson, Willard White; conductor: Kent Nagano. Arthaus Musik, Cat #101669 2001: 2-CD recording of original cast from the Théâtre du Châtelet, Paris. Nonesuch Records, Cat #79634-2 See also List of Christmas operas References External links "El Niño: A Nativity Oratorio (1999–2000)" on earbox.com Kun, Josh, "Death and the maiden: John Adams's El Niño restages the Nativity", The Phoenix, 15–22 November 2001. McGregor, Andrew, "John Adams El Niño", review of the 2001 recording under Kent Nagano, on bbc.co.uk, 2002 Operas Oratorios Opera oratorios Operas by John Adams (composer) English-language operas Spanish-language operas 2000 operas Christmas operas
```go package main // no external refs ```
Ophioblennius is a genus of combtooth blennies native to the Atlantic and to the Pacific coasts of the Americas. Species There are currently five recognized species in this genus: Ophioblennius atlanticus (Valenciennes, 1836) (Horseface blenny) Ophioblennius clippertonensis V. G. Springer, 1962 (Clipperton blenny) Ophioblennius macclurei (Silvester, 1915) (Redlip blenny) Ophioblennius steindachneri D. S. Jordan & Evermann, 1898 (Large-banded blenny) Ophioblennius trinitatus A. Miranda-Ribeiro, 1919 (Triple Blenny) Description Ophioblennius blennies have cylindrical bodies and blunt heads with cirri. They can grow up to about long. Habitat These blennies tend to live in shallow water, from . References Salarinae Taxa named by Theodore Gill Marine fish genera
```html <div class="example-listbox-container"> <!-- #docregion listbox --> <label class="example-listbox-label" id="example-toppings-label"> Choose Toppings </label> <ul cdkListbox cdkListboxMultiple [(ngModel)]="order" aria-labelledby="example-toppings-label" class="example-listbox"> @for (topping of toppings; track topping) { <li [cdkOption]="topping" class="example-option">{{topping}}</li> } </ul> <!-- #enddocregion listbox --> </div> <p> Your order: <strong>{{order | json}}</strong>&nbsp; <button (click)="order = []">Reset</button> </p> ```
```ruby require 'mspec/mocks' require 'mspec/runner/mspec' require 'mspec/runner/context' require 'mspec/runner/evaluate' require 'mspec/runner/example' require 'mspec/runner/exception' require 'mspec/runner/object' require 'mspec/runner/formatters' require 'mspec/runner/actions' require 'mspec/runner/filters' require 'mspec/runner/shared' require 'mspec/runner/tag' ```
```javascript // var moment = require("moment"); module.exports = function (post) { return function (callback) { var created, updated, metadata, permalink; var title, dateStamp, tags, draft, page, html; // console.log(Object.keys(post)); title = post.title[0]._; if (!post.content || !post.content[0]._) return callback(new Error("No content")); // console.log("id", post.id); // console.log("published", post.published, new Date(post.published[0])); // console.log("link"); // console.log("id", post.id); // console.log("author", post.author); // console.log(post["media:thumbnail"]); metadata = {}; // if (extract_author(post, blog)) // metadata.author = extract_author(post, blog); let link = ''; try { link = require("url").parse( post.link.filter((item) => item.$.TYPE === "text/html")[0].$.HREF ).pathname } catch (e) { console.log(e); console.log(post.link); } permalink = link; // draft = post.status === "draft" || post.visibility !== "public"; draft = false; // page = !!post.page; page = false; created = new Date(post.published[0]).getTime(); updated = new Date(post.updated[0]).getTime(); dateStamp = new Date(post.published[0]).getTime(); tags = []; html = post.content[0]._; // Add the new post to the list of posts! post = { draft, page, // We don't know any of these properties // as far as I can tell. name: "", permalink, summary: "", title: title, dateStamp: dateStamp, created: created, updated: updated, tags: tags, metadata: metadata, html: html, }; callback(null, post); }; }; ```
Caldilinea is a genus of bacteria from the family of Caldilineaceae. References Further reading Chloroflexota Bacteria genera
The Quebec Emerald (Somatochlora brevicincta) is a species of dragonfly in the family Corduliidae. It is found in Canada and the United States. Its natural habitat is fens. References Corduliidae Taxonomy articles created by Polbot Insects described in 1954
American Princess may refer to: American Princess (2005 TV series), an American reality competition American Princess (2019 TV series), an American drama television series American Princess Cruises, an American ferry company in New Jersey and New York See also List of American heiresses
Aarne Ahi (born 11 September 1943, Tartu) is an Estonian animator and animated film director. Since 1967 he worked at Tallinnfilm's department of puppetry (), later he worked at Nukufilm. Selected filmography Filmography per IMDB: 1975 "Lapsehoidjad" 1978 "Linalakk ja Rosalin" 1980 "Karsumm" 1985 "Vägev vähk ja ahne naine" 1987 "Magus planeet" 1988 "Linnupüüdja" 1991 "Kingikratt" 1991 "The House Spirit" References Living people 1943 births Estonian animators Estonian film directors People from Tartu
```emacs lisp ;;; pcmpl-x.el --- completion for miscellaneous tools -*- lexical-binding: t; -*- ;; Author: Leo Liu <sdl.web@gmail.com> ;; Keywords: processes, tools, convenience ;; Package: pcomplete ;; This file is part of GNU Emacs. ;; GNU Emacs is free software: you can redistribute it and/or modify ;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; along with GNU Emacs. If not, see <path_to_url ;;; Code: (eval-when-compile (require 'cl-lib)) (require 'pcomplete) ;;;; tlmgr - path_to_url (defcustom pcmpl-x-tlmgr-program "tlmgr" "Name of the tlmgr program." :version "24.4" :type 'file :group 'pcomplete) (defvar pcmpl-x-tlmgr-common-options '("--repository" "--gui" "--gui-lang" "--machine-readable" "--package-logfile" "--pause" "--persistent-downloads" "--no-persistent-downloads" "--no-execute-actions" "--debug-translation" "--help" "--version")) (defvar pcmpl-x-tlmgr-actions '(("help") ("version") ("gui") ("install") ("update") ("backup") ("restore") ("remove") ("repository" ("list" "add" "remove" "set")) ("candidates") ("option" ("show" "showall" "repository" "formats" "postcode" "docfiles" "srcfiles" "backupdir" "autobackup" "sys_bin" "sys_man" "sys_info" "desktop_integration" "fileassocs" "multiuser")) ("conf" ("texmf" "tlmgr")) ("paper" ("a4" "letter" "xdvi" "pdftex" "dvips" "dvipdfmx" "dvipdfm" "context") (lambda () (unless (member (pcomplete-arg 1) '("a4" "letter")) (pcomplete-here* '("paper")) (pcomplete-here* '("a4" "letter"))))) ("platform" ("list" "add" "remove")) ("print-platform" ("collections" "schemes")) ("arch" ("list" "add" "remove")) ("print-arch" ("collections" "schemes")) ("info" ("collections" "schemes")) ("search") ("dump-tlpdb") ("check" ("files" "depends" "executes" "runfiles" "all")) ("path" ("add" "remove")) ("postaction" ("install" "remove") ("shortcut" "fileassoc" "script")) ("uninstall") ("generate" ("language" "language.dat" "language.def" "language.dat.lua" "fmtutil")))) (defvar pcmpl-x-tlmgr-options-cache (make-hash-table :size 31 :test 'equal)) (defun pcmpl-x-tlmgr-action-options (action) "Get the list of long options for ACTION." (if (eq (gethash action pcmpl-x-tlmgr-options-cache 'missing) 'missing) (with-temp-buffer (when (zerop (call-process pcmpl-x-tlmgr-program nil t nil action "-h")) (goto-char (point-min)) (puthash action (cons "--help" (cl-loop while (re-search-forward "^[ \t]+\\(--[[:alnum:]-]+=?\\)" nil t) collect (match-string 1))) pcmpl-x-tlmgr-options-cache) (pcmpl-x-tlmgr-action-options action))) (gethash action pcmpl-x-tlmgr-options-cache))) ;;;###autoload (defun pcomplete/tlmgr () "Completion for the `tlmgr' command." (while (pcomplete-match "^--" 0) (pcomplete-here* pcmpl-x-tlmgr-common-options) (unless (or (pcomplete-match "^--" 0) (all-completions (pcomplete-arg 0) pcmpl-x-tlmgr-actions)) (pcomplete-here* (pcomplete-dirs-or-entries)))) (pcomplete-here* pcmpl-x-tlmgr-actions) (let ((action (substring-no-properties (pcomplete-arg 1)))) (while t (if (pcomplete-match "^--" 0) (pcomplete-here* (pcmpl-x-tlmgr-action-options action)) (dolist (completions (cdr (assoc action pcmpl-x-tlmgr-actions))) (cond ((functionp completions) (funcall completions)) ((all-completions (pcomplete-arg 0) completions) (pcomplete-here* completions)) (t (pcomplete-here* (pcomplete-dirs-or-entries))))) (unless (pcomplete-match "^--" 0) (pcomplete-here* (pcomplete-dirs-or-entries))))))) ;;;; ack - path_to_url ;; Usage: ;; - To complete short options type '-' first ;; - To complete long options type '--' first ;; - Color name completion is supported following ;; --color-filename=, --color-match= and --color-lineno= ;; - Type completion is supported following --type= (defcustom pcmpl-x-ack-program (file-name-nondirectory (or (executable-find "ack-grep") (executable-find "ack") "ack")) "Name of the ack program." :version "24.4" :type 'file :group 'pcomplete) (defvar pcmpl-x-ack-color-options '("clear" "reset" "dark" "bold" "underline" "underscore" "blink" "reverse" "concealed" "black" "red" "green" "yellow" "blue" "magenta" "on_black" "on_red" "on_green" "on_yellow" "on_blue" "on_magenta" "on_cyan" "on_white") "Color names for the `ack' command.") (defun pcmpl-x-ack-run (buffer &rest args) "Run ack with ARGS and send the output to BUFFER." (condition-case nil (apply 'call-process (or pcmpl-x-ack-program "ack") nil buffer nil args) (file-error -1))) (defun pcmpl-x-ack-short-options () "Short options for the `ack' command." (with-temp-buffer (let (options) (when (zerop (pcmpl-x-ack-run t "--help")) (goto-char (point-min)) (while (re-search-forward "^ -\\([^-]\\)" nil t) (push (match-string 1) options)) (mapconcat 'identity (nreverse options) ""))))) (defun pcmpl-x-ack-long-options (&optional arg) "Long options for the `ack' command." (with-temp-buffer (let (options) (when (zerop (pcmpl-x-ack-run t (or arg "--help"))) (goto-char (point-min)) (while (re-search-forward "\\(?: ?\\|, \\)\\(--\\(\\[no\\]\\)?\\([[:alnum:]-]+=?\\)\\)" nil t) (if (not (match-string 2)) (push (match-string 1) options) (push (concat "--" (match-string 3)) options) (push (concat "--no" (match-string 3)) options))) (nreverse options))))) (defun pcmpl-x-ack-type-options () "A list of types for the `ack' command." (pcmpl-x-ack-long-options "--help-types")) ;;;###autoload (defun pcomplete/ack () "Completion for the `ack' command. Start an argument with `-' to complete short options and `--' for long options." ;; No space after = (while t (if (pcomplete-match "^-" 0) (cond ((pcomplete-match "^--color-\\w+=\\(\\S-*\\)" 0) (pcomplete-here* pcmpl-x-ack-color-options (pcomplete-match-string 1 0) t)) ((pcomplete-match "^--\\(?:no\\)?ignore-dir=\\(\\S-*\\)" 0) (pcomplete-here* (pcomplete-dirs) (pcomplete-match-string 1 0) t)) ((pcomplete-match "^--type=\\(\\S-*\\)" 0) (pcomplete-here* (mapcar (lambda (type-option) (substring type-option 2)) (pcmpl-x-ack-type-options)) (pcomplete-match-string 1 0) t)) ((pcomplete-match "^--" 0) (pcomplete-here* (append (pcmpl-x-ack-long-options) (pcmpl-x-ack-type-options)))) (t (pcomplete-opt (pcmpl-x-ack-short-options)))) (pcomplete-here* (pcomplete-dirs-or-entries))))) ;;;###autoload (defalias 'pcomplete/ack-grep 'pcomplete/ack) ;;;; the_silver_search - path_to_url (defvar pcmpl-x-ag-options nil) (defun pcmpl-x-ag-options () (or pcmpl-x-ag-options (setq pcmpl-x-ag-options (with-temp-buffer (when (zerop (call-process "ag" nil t nil "--help")) (let (short long) (goto-char (point-min)) (while (re-search-forward "^ +\\(-[a-zA-Z]\\) " nil t) (push (match-string 1) short)) (goto-char (point-min)) (while (re-search-forward "^ +\\(?:-[a-zA-Z] \\)?\\(--\\(\\[no\\]\\)?[^ \t\n]+\\) " nil t) (if (match-string 2) (progn (replace-match "" nil nil nil 2) (push (match-string 1) long) (replace-match "no" nil nil nil 2) (push (match-string 1) long)) (push (match-string 1) long))) (list (cons 'short (nreverse short)) (cons 'long (nreverse long))))))))) ;;;###autoload (defun pcomplete/ag () "Completion for the `ag' command." (while t (if (pcomplete-match "^-" 0) (pcomplete-here* (cdr (assq (if (pcomplete-match "^--" 0) 'long 'short) (pcmpl-x-ag-options)))) (pcomplete-here* (pcomplete-dirs-or-entries))))) (provide 'pcmpl-x) ;;; pcmpl-x.el ends here ```
Dave "Rave" DesRoches is a Canadian rock musician from Hamilton, Ontario. To the general public, he is the sometime Teenage Head rhythm guitarist on the early recordings who graduated to lead singer during a Frankie Venom hiatus in 1985 and catapulted the band back into the charts. Many know him as a session player who has played with such notables as Daniel Lanois, Andrew Loog Oldham and Alex Chilton. Career Early career Dave began his music career in his high school years writing songs and performing driving acoustic rock and folk-pop in and around Hamilton. This evolved into the group, The Shakers, from 1979 to 1982 with Rick Andrew, Tim Gibbons and Claude DesRoches. They charted many singles with albums produced by Daniel Lanois (U2) and Jack Richardson (Guess Who, Alice Cooper). Teenage Head Three years after the break-up of The Shakers in 1982, Dave took over as lead singer of the punk rock band Teenage Head. He had grown up with the members of the band and had played as a backing musician on their "Frantic City" LP, and "The Shakers" had often opened for their fellow Hamiltonians. Dave replaced Frankie Venom who had worked with Dave on several other projects. He continued to aid Teenage Head with hits like "Can’t Stop Shakin'". Dave left Teenage Head after a successful run to try things out on his own. In November 2016, Teenage Head announced the return of Dave "Rave" Desroches as lead singer. The Dave Rave Conspiracy Alongside producer Gary Pig Gold he formed a group called "The Dave Rave Conspiracy", releasing the album "Valentino's Pirates" on Russia's Melodiya record label in 1992. However, to appease cold war era Russian sensibilities, the album was credited to the Dave Rave "Group", as the label was uncomfortable with the word "conspiracy". Notably, the band also included Billy Ficca, formerly of the influential New York City band Television, and Lauren Agnelli, of the 1980s anti-folk band Washington Squares. "Valentino's Pirates" has become a quite a cult classic, and was the first North American rock album released by a post-Soviet state after the fall of the Berlin Wall. Press surrounding this release included a CBC documentary revisiting Russia with the group as well as 3 promotional videos that were in heavy rotation at MuchMusic in Canada. Bullseye Records re-issued the album for the first time on CD in 2001. The next Dave Rave Conspiracy album, Three Octave Fantastic Hexagram, was released in 1994 and included many of the players from the Valentino's album along with former Washington Squares, Lauren Agnelli. However, the band broke up shortly afterward. Agnelli and Dave Rave formed an incredible creative partnership that resulted in 3 Agnelli & Rave albums over the next ten years including the critically acclaimed Cowboy Flowers Sessions, Heaven and Earth, and Confetti. The Dave Rave Group's second album, Everyday Magic, was released in 2003 and featured players from his former bands such as Teenage Head, The Shakers and bands and musicians with whom he had worked as either a musician as a producer such as The Trews, Joe Mannix and Kate Schrock. "Love Fades" and the title track "Everyday Magic" featuring ECMA winners and Juno nominees, The Trews, received airplay at Rock, AC and Campus radio. Dave also co-wrote The Trews' single, "I Can’t Say" with Jack Richardson. Other co-writing credits include bands such as Oliver Black, now Townline, and the Maddhatters and he continues to work with and mentor some of the hottest acts today. Dave spends his time in Canada and the US playing live, producing, writing and coming up with more ideas to bring great musicians together. Dave Rave released his Anthology in two volumes worldwide on Bullseye Records in January 2006. He has also released his second jazz-pop album, "In The Blue of My Dreams", with Mark McCarron in 2007 under the Bongobeat label. It was shortlisted for a Grammy that year. He spent 2008 writing, producing and touring the globe. Dave Rave spent 2009 playing over 100 shows, including Grey Cup 2009 and three European tours and he had a chance to work again with the Trews on the song "How’s Everything" on their Top 10 DVD. He also had time to record the album, "Live with What You Know", which was released in June 2010 on the Bongo Beat label. Players on the album include members of The Trews, Plastic Heroes, Rick Andrew (The Shakers), Sonic Blue Sound Review, Mark McCarron, The Maddhatters, Gary Pig Gold and the debut of vocalist Kate MacDonald on "Silver Lines" among many other great musicians. Dave has already toured Europe twice in 2010 with one more European tour to go along with a tour of North America in support of the new record. Discography Studio albums 1981 – The Shakers / In Time 1983 – The Shakers / Weekend 1990 – The Dave Rave Group / Valentino's Pirates 1994 – The Dave Rave Conspiracy / Three Octave Fantastic Hexagram EPs 1990 – Dave Rave / Pure Honey Compilation appearances 1998 – "Love of Money (Stupid Cupidity)" – Lauren Agnelli And Dave Rave / Somewhere Down The Road 2001 – "Xmas Wish List" – Dave Rave Xmas Spirits / Takin' Care of Christmas 2003 – "Love Fades" – The Dave Rave Group / International Pop Overthrow Vol. 6 2011 – "Your Sparks Fly" – Dave Rave / International Pop Overthrow Vol. 14 2012 – "You're My Sensation" – Dave Rave / International Pop Overthrow Vol. 15 2013 – "Rockin' to the Middle" – Dave Rave with Rick Andrew / International Pop Overthrow Vol. 16 2016 – "So Invisible" – Hailee Rose, Dave Rave / International Pop Overthrow Vol. 19 Writing credits 1985 – Teenage Head / Trouble in the Jungle 2005 – The Trews / Den of Thieves 2008 – Teenage Head with Marky Ramone / Teenage Head with Marky Ramone 2008 – The Black Tales / The Black Tales 2009 – The Trews / Acoustic – Friends & Total Strangers As producer 1985 – Teenage Head / Trouble in the Jungle 1985 – Teenage Head / Frantic Romantic single References External links Year of birth missing (living people) Living people Canadian male singers Canadian rock singers Canadian male songwriters Musicians from Hamilton, Ontario Writers from Hamilton, Ontario Teenage Head (band) members
```objective-c /* * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * path_to_url and read it before using this * file. * * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * * @APPLE_LICENSE_HEADER_END@ */ #ifndef _MACHO_LOADER_H_ #define _MACHO_LOADER_H_ /* * This file describes the format of mach object files. */ #include <stdint.h> /* * <mach/machine.h> is needed here for the cpu_type_t and cpu_subtype_t types * and contains the constants for the possible values of these types. */ #include <mach/machine.h> /* * <mach/vm_prot.h> is needed here for the vm_prot_t type and contains the * constants that are or'ed together for the possible values of this type. */ #include <mach/vm_prot.h> /* * <machine/thread_status.h> is expected to define the flavors of the thread * states and the structures of those flavors for each machine. */ #include <mach/machine/thread_status.h> #include <architecture/byte_order.h> /* * The 32-bit mach header appears at the very beginning of the object file for * 32-bit architectures. */ struct mach_header { uint32_t magic; /* mach magic number identifier */ cpu_type_t cputype; /* cpu specifier */ cpu_subtype_t cpusubtype; /* machine specifier */ uint32_t filetype; /* type of file */ uint32_t ncmds; /* number of load commands */ uint32_t sizeofcmds; /* the size of all the load commands */ uint32_t flags; /* flags */ }; /* Constant for the magic field of the mach_header (32-bit architectures) */ #define MH_MAGIC 0xfeedface /* the mach magic number */ #define MH_CIGAM 0xcefaedfe /* NXSwapInt(MH_MAGIC) */ /* * The 64-bit mach header appears at the very beginning of object files for * 64-bit architectures. */ struct mach_header_64 { uint32_t magic; /* mach magic number identifier */ cpu_type_t cputype; /* cpu specifier */ cpu_subtype_t cpusubtype; /* machine specifier */ uint32_t filetype; /* type of file */ uint32_t ncmds; /* number of load commands */ uint32_t sizeofcmds; /* the size of all the load commands */ uint32_t flags; /* flags */ uint32_t reserved; /* reserved */ }; /* Constant for the magic field of the mach_header_64 (64-bit architectures) */ #define MH_MAGIC_64 0xfeedfacf /* the 64-bit mach magic number */ #define MH_CIGAM_64 0xcffaedfe /* NXSwapInt(MH_MAGIC_64) */ /* * The layout of the file depends on the filetype. For all but the MH_OBJECT * file type the segments are padded out and aligned on a segment alignment * boundary for efficient demand pageing. The MH_EXECUTE, MH_FVMLIB, MH_DYLIB, * MH_DYLINKER and MH_BUNDLE file types also have the headers included as part * of their first segment. * * The file type MH_OBJECT is a compact format intended as output of the * assembler and input (and possibly output) of the link editor (the .o * format). All sections are in one unnamed segment with no segment padding. * This format is used as an executable format when the file is so small the * segment padding greatly increases its size. * * The file type MH_PRELOAD is an executable format intended for things that * are not executed under the kernel (proms, stand alones, kernels, etc). The * format can be executed under the kernel but may demand paged it and not * preload it before execution. * * A core file is in MH_CORE format and can be any in an arbritray legal * Mach-O file. * * Constants for the filetype field of the mach_header */ #define MH_OBJECT 0x1 /* relocatable object file */ #define MH_EXECUTE 0x2 /* demand paged executable file */ #define MH_FVMLIB 0x3 /* fixed VM shared library file */ #define MH_CORE 0x4 /* core file */ #define MH_PRELOAD 0x5 /* preloaded executable file */ #define MH_DYLIB 0x6 /* dynamically bound shared library */ #define MH_DYLINKER 0x7 /* dynamic link editor */ #define MH_BUNDLE 0x8 /* dynamically bound bundle file */ #define MH_DYLIB_STUB 0x9 /* shared library stub for static linking only, no section contents */ #define MH_DSYM 0xa /* companion file with only debug sections */ #define MH_KEXT_BUNDLE 0xb /* x86_64 kexts */ #define MH_FILESET 0xc /* a file composed of other Mach-Os to be run in the same userspace sharing a single linkedit. */ /* Constants for the flags field of the mach_header */ #define MH_NOUNDEFS 0x1 /* the object file has no undefined references */ #define MH_INCRLINK 0x2 /* the object file is the output of an incremental link against a base file and can't be link edited again */ #define MH_DYLDLINK 0x4 /* the object file is input for the dynamic linker and can't be staticly link edited again */ #define MH_BINDATLOAD 0x8 /* the object file's undefined references are bound by the dynamic linker when loaded. */ #define MH_PREBOUND 0x10 /* the file has its dynamic undefined references prebound. */ #define MH_SPLIT_SEGS 0x20 /* the file has its read-only and read-write segments split */ #define MH_LAZY_INIT 0x40 /* the shared library init routine is to be run lazily via catching memory faults to its writeable segments (obsolete) */ #define MH_TWOLEVEL 0x80 /* the image is using two-level name space bindings */ #define MH_FORCE_FLAT 0x100 /* the executable is forcing all images to use flat name space bindings */ #define MH_NOMULTIDEFS 0x200 /* this umbrella guarantees no multiple defintions of symbols in its sub-images so the two-level namespace hints can always be used. */ #define MH_NOFIXPREBINDING 0x400 /* do not have dyld notify the prebinding agent about this executable */ #define MH_PREBINDABLE 0x800 /* the binary is not prebound but can have its prebinding redone. only used when MH_PREBOUND is not set. */ #define MH_ALLMODSBOUND 0x1000 /* indicates that this binary binds to all two-level namespace modules of its dependent libraries. only used when MH_PREBINDABLE and MH_TWOLEVEL are both set. */ #define MH_SUBSECTIONS_VIA_SYMBOLS 0x2000/* safe to divide up the sections into sub-sections via symbols for dead code stripping */ #define MH_CANONICAL 0x4000 /* the binary has been canonicalized via the unprebind operation */ #define MH_WEAK_DEFINES 0x8000 /* the final linked image contains external weak symbols */ #define MH_BINDS_TO_WEAK 0x10000 /* the final linked image uses weak symbols */ #define MH_ALLOW_STACK_EXECUTION 0x20000/* When this bit is set, all stacks in the task will be given stack execution privilege. Only used in MH_EXECUTE filetypes. */ #define MH_ROOT_SAFE 0x40000 /* When this bit is set, the binary declares it is safe for use in processes with uid zero */ #define MH_SETUID_SAFE 0x80000 /* When this bit is set, the binary declares it is safe for use in processes when issetugid() is true */ #define MH_NO_REEXPORTED_DYLIBS 0x100000 /* When this bit is set on a dylib, the static linker does not need to examine dependent dylibs to see if any are re-exported */ #define MH_PIE 0x200000 /* When this bit is set, the OS will load the main executable at a random address. Only used in MH_EXECUTE filetypes. */ #define MH_DEAD_STRIPPABLE_DYLIB 0x400000 /* Only for use on dylibs. When linking against a dylib that has this bit set, the static linker will automatically not create a LC_LOAD_DYLIB load command to the dylib if no symbols are being referenced from the dylib. */ #define MH_HAS_TLV_DESCRIPTORS 0x800000 /* Contains a section of type S_THREAD_LOCAL_VARIABLES */ #define MH_NO_HEAP_EXECUTION 0x1000000 /* When this bit is set, the OS will run the main executable with a non-executable heap even on platforms (e.g. i386) that don't require it. Only used in MH_EXECUTE filetypes. */ #define MH_APP_EXTENSION_SAFE 0x02000000 /* The code was linked for use in an application extension. */ #define MH_NLIST_OUTOFSYNC_WITH_DYLDINFO 0x04000000 /* The external symbols listed in the nlist symbol table do not include all the symbols listed in the dyld info. */ #define MH_SIM_SUPPORT 0x08000000 /* Allow LC_MIN_VERSION_MACOS and LC_BUILD_VERSION load commands with the platforms macOS, macCatalyst, iOSSimulator, tvOSSimulator and watchOSSimulator. */ #define MH_DYLIB_IN_CACHE 0x80000000 /* Only for use on dylibs. When this bit is set, the dylib is part of the dyld shared cache, rather than loose in the filesystem. */ /* * The load commands directly follow the mach_header. The total size of all * of the commands is given by the sizeofcmds field in the mach_header. All * load commands must have as their first two fields cmd and cmdsize. The cmd * field is filled in with a constant for that command type. Each command type * has a structure specifically for it. The cmdsize field is the size in bytes * of the particular load command structure plus anything that follows it that * is a part of the load command (i.e. section structures, strings, etc.). To * advance to the next load command the cmdsize can be added to the offset or * pointer of the current load command. The cmdsize for 32-bit architectures * MUST be a multiple of 4 bytes and for 64-bit architectures MUST be a multiple * of 8 bytes (these are forever the maximum alignment of any load commands). * The padded bytes must be zero. All tables in the object file must also * follow these rules so the file can be memory mapped. Otherwise the pointers * to these tables will not work well or at all on some machines. With all * padding zeroed like objects will compare byte for byte. */ struct load_command { uint32_t cmd; /* type of load command */ uint32_t cmdsize; /* total size of command in bytes */ }; /* * After MacOS X 10.1 when a new load command is added that is required to be * understood by the dynamic linker for the image to execute properly the * LC_REQ_DYLD bit will be or'ed into the load command constant. If the dynamic * linker sees such a load command it it does not understand will issue a * "unknown load command required for execution" error and refuse to use the * image. Other load commands without this bit that are not understood will * simply be ignored. */ #define LC_REQ_DYLD 0x80000000 /* Constants for the cmd field of all load commands, the type */ #define LC_SEGMENT 0x1 /* segment of this file to be mapped */ #define LC_SYMTAB 0x2 /* link-edit stab symbol table info */ #define LC_SYMSEG 0x3 /* link-edit gdb symbol table info (obsolete) */ #define LC_THREAD 0x4 /* thread */ #define LC_UNIXTHREAD 0x5 /* unix thread (includes a stack) */ #define LC_LOADFVMLIB 0x6 /* load a specified fixed VM shared library */ #define LC_IDFVMLIB 0x7 /* fixed VM shared library identification */ #define LC_IDENT 0x8 /* object identification info (obsolete) */ #define LC_FVMFILE 0x9 /* fixed VM file inclusion (internal use) */ #define LC_PREPAGE 0xa /* prepage command (internal use) */ #define LC_DYSYMTAB 0xb /* dynamic link-edit symbol table info */ #define LC_LOAD_DYLIB 0xc /* load a dynamically linked shared library */ #define LC_ID_DYLIB 0xd /* dynamically linked shared lib ident */ #define LC_LOAD_DYLINKER 0xe /* load a dynamic linker */ #define LC_ID_DYLINKER 0xf /* dynamic linker identification */ #define LC_PREBOUND_DYLIB 0x10 /* modules prebound for a dynamically */ /* linked shared library */ #define LC_ROUTINES 0x11 /* image routines */ #define LC_SUB_FRAMEWORK 0x12 /* sub framework */ #define LC_SUB_UMBRELLA 0x13 /* sub umbrella */ #define LC_SUB_CLIENT 0x14 /* sub client */ #define LC_SUB_LIBRARY 0x15 /* sub library */ #define LC_TWOLEVEL_HINTS 0x16 /* two-level namespace lookup hints */ #define LC_PREBIND_CKSUM 0x17 /* prebind checksum */ /* * load a dynamically linked shared library that is allowed to be missing * (all symbols are weak imported). */ #define LC_LOAD_WEAK_DYLIB (0x18 | LC_REQ_DYLD) #define LC_SEGMENT_64 0x19 /* 64-bit segment of this file to be mapped */ #define LC_ROUTINES_64 0x1a /* 64-bit image routines */ #define LC_UUID 0x1b /* the uuid */ #define LC_RPATH (0x1c | LC_REQ_DYLD) /* runpath additions */ #define LC_CODE_SIGNATURE 0x1d /* local of code signature */ #define LC_SEGMENT_SPLIT_INFO 0x1e /* local of info to split segments */ #define LC_REEXPORT_DYLIB (0x1f | LC_REQ_DYLD) /* load and re-export dylib */ #define LC_LAZY_LOAD_DYLIB 0x20 /* delay load of dylib until first use */ #define LC_ENCRYPTION_INFO 0x21 /* encrypted segment information */ #define LC_DYLD_INFO 0x22 /* compressed dyld information */ #define LC_DYLD_INFO_ONLY (0x22|LC_REQ_DYLD) /* compressed dyld information only */ #define LC_LOAD_UPWARD_DYLIB (0x23 | LC_REQ_DYLD) /* load upward dylib */ #define LC_VERSION_MIN_MACOSX 0x24 /* build for MacOSX min OS version */ #define LC_VERSION_MIN_IPHONEOS 0x25 /* build for iPhoneOS min OS version */ #define LC_FUNCTION_STARTS 0x26 /* compressed table of function start addresses */ #define LC_DYLD_ENVIRONMENT 0x27 /* string for dyld to treat like environment variable */ #define LC_MAIN (0x28|LC_REQ_DYLD) /* replacement for LC_UNIXTHREAD */ #define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ #define LC_SOURCE_VERSION 0x2A /* source version used to build binary */ #define LC_DYLIB_CODE_SIGN_DRS 0x2B /* Code signing DRs copied from linked dylibs */ #define LC_ENCRYPTION_INFO_64 0x2C /* 64-bit encrypted segment information */ #define LC_LINKER_OPTION 0x2D /* linker options in MH_OBJECT files */ #define LC_LINKER_OPTIMIZATION_HINT 0x2E /* optimization hints in MH_OBJECT files */ #define LC_VERSION_MIN_TVOS 0x2F /* build for AppleTV min OS version */ #define LC_VERSION_MIN_WATCHOS 0x30 /* build for Watch min OS version */ #define LC_NOTE 0x31 /* arbitrary data included within a Mach-O file */ #define LC_BUILD_VERSION 0x32 /* build for platform min OS version */ #define LC_DYLD_EXPORTS_TRIE (0x33 | LC_REQ_DYLD) /* used with linkedit_data_command, payload is trie */ #define LC_DYLD_CHAINED_FIXUPS (0x34 | LC_REQ_DYLD) /* used with linkedit_data_command */ #define LC_FILESET_ENTRY (0x35 | LC_REQ_DYLD) /* used with fileset_entry_command */ /* * A variable length string in a load command is represented by an lc_str * union. The strings are stored just after the load command structure and * the offset is from the start of the load command structure. The size * of the string is reflected in the cmdsize field of the load command. * Once again any padded bytes to bring the cmdsize field to a multiple * of 4 bytes must be zero. */ union lc_str { uint32_t offset; /* offset to the string */ #ifndef __LP64__ char *ptr; /* pointer to the string */ #endif }; /* * The segment load command indicates that a part of this file is to be * mapped into the task's address space. The size of this segment in memory, * vmsize, maybe equal to or larger than the amount to map from this file, * filesize. The file is mapped starting at fileoff to the beginning of * the segment in memory, vmaddr. The rest of the memory of the segment, * if any, is allocated zero fill on demand. The segment's maximum virtual * memory protection and initial virtual memory protection are specified * by the maxprot and initprot fields. If the segment has sections then the * section structures directly follow the segment command and their size is * reflected in cmdsize. */ struct segment_command { /* for 32-bit architectures */ uint32_t cmd; /* LC_SEGMENT */ uint32_t cmdsize; /* includes sizeof section structs */ char segname[16]; /* segment name */ uint32_t vmaddr; /* memory address of this segment */ uint32_t vmsize; /* memory size of this segment */ uint32_t fileoff; /* file offset of this segment */ uint32_t filesize; /* amount to map from the file */ vm_prot_t maxprot; /* maximum VM protection */ vm_prot_t initprot; /* initial VM protection */ uint32_t nsects; /* number of sections in segment */ uint32_t flags; /* flags */ }; /* * The 64-bit segment load command indicates that a part of this file is to be * mapped into a 64-bit task's address space. If the 64-bit segment has * sections then section_64 structures directly follow the 64-bit segment * command and their size is reflected in cmdsize. */ struct segment_command_64 { /* for 64-bit architectures */ uint32_t cmd; /* LC_SEGMENT_64 */ uint32_t cmdsize; /* includes sizeof section_64 structs */ char segname[16]; /* segment name */ uint64_t vmaddr; /* memory address of this segment */ uint64_t vmsize; /* memory size of this segment */ uint64_t fileoff; /* file offset of this segment */ uint64_t filesize; /* amount to map from the file */ vm_prot_t maxprot; /* maximum VM protection */ vm_prot_t initprot; /* initial VM protection */ uint32_t nsects; /* number of sections in segment */ uint32_t flags; /* flags */ }; /* Constants for the flags field of the segment_command */ #define SG_HIGHVM 0x1 /* the file contents for this segment is for the high part of the VM space, the low part is zero filled (for stacks in core files) */ #define SG_FVMLIB 0x2 /* this segment is the VM that is allocated by a fixed VM library, for overlap checking in the link editor */ #define SG_NORELOC 0x4 /* this segment has nothing that was relocated in it and nothing relocated to it, that is it maybe safely replaced without relocation*/ #define SG_PROTECTED_VERSION_1 0x8 /* This segment is protected. If the segment starts at file offset 0, the first page of the segment is not protected. All other pages of the segment are protected. */ #define SG_READ_ONLY 0x10 /* This segment is made read-only after fixups */ /* * A segment is made up of zero or more sections. Non-MH_OBJECT files have * all of their segments with the proper sections in each, and padded to the * specified segment alignment when produced by the link editor. The first * segment of a MH_EXECUTE and MH_FVMLIB format file contains the mach_header * and load commands of the object file before its first section. The zero * fill sections are always last in their segment (in all formats). This * allows the zeroed segment padding to be mapped into memory where zero fill * sections might be. The gigabyte zero fill sections, those with the section * type S_GB_ZEROFILL, can only be in a segment with sections of this type. * These segments are then placed after all other segments. * * The MH_OBJECT format has all of its sections in one segment for * compactness. There is no padding to a specified segment boundary and the * mach_header and load commands are not part of the segment. * * Sections with the same section name, sectname, going into the same segment, * segname, are combined by the link editor. The resulting section is aligned * to the maximum alignment of the combined sections and is the new section's * alignment. The combined sections are aligned to their original alignment in * the combined section. Any padded bytes to get the specified alignment are * zeroed. * * The format of the relocation entries referenced by the reloff and nreloc * fields of the section structure for mach object files is described in the * header file <reloc.h>. */ struct section { /* for 32-bit architectures */ char sectname[16]; /* name of this section */ char segname[16]; /* segment this section goes in */ uint32_t addr; /* memory address of this section */ uint32_t size; /* size in bytes of this section */ uint32_t offset; /* file offset of this section */ uint32_t align; /* section alignment (power of 2) */ uint32_t reloff; /* file offset of relocation entries */ uint32_t nreloc; /* number of relocation entries */ uint32_t flags; /* flags (section type and attributes)*/ uint32_t reserved1; /* reserved (for offset or index) */ uint32_t reserved2; /* reserved (for count or sizeof) */ }; struct section_64 { /* for 64-bit architectures */ char sectname[16]; /* name of this section */ char segname[16]; /* segment this section goes in */ uint64_t addr; /* memory address of this section */ uint64_t size; /* size in bytes of this section */ uint32_t offset; /* file offset of this section */ uint32_t align; /* section alignment (power of 2) */ uint32_t reloff; /* file offset of relocation entries */ uint32_t nreloc; /* number of relocation entries */ uint32_t flags; /* flags (section type and attributes)*/ uint32_t reserved1; /* reserved (for offset or index) */ uint32_t reserved2; /* reserved (for count or sizeof) */ uint32_t reserved3; /* reserved */ }; /* * The flags field of a section structure is separated into two parts a section * type and section attributes. The section types are mutually exclusive (it * can only have one type) but the section attributes are not (it may have more * than one attribute). */ #define SECTION_TYPE 0x000000ff /* 256 section types */ #define SECTION_ATTRIBUTES 0xffffff00 /* 24 section attributes */ /* Constants for the type of a section */ #define S_REGULAR 0x0 /* regular section */ #define S_ZEROFILL 0x1 /* zero fill on demand section */ #define S_CSTRING_LITERALS 0x2 /* section with only literal C strings*/ #define S_4BYTE_LITERALS 0x3 /* section with only 4 byte literals */ #define S_8BYTE_LITERALS 0x4 /* section with only 8 byte literals */ #define S_LITERAL_POINTERS 0x5 /* section with only pointers to */ /* literals */ /* * For the two types of symbol pointers sections and the symbol stubs section * they have indirect symbol table entries. For each of the entries in the * section the indirect symbol table entries, in corresponding order in the * indirect symbol table, start at the index stored in the reserved1 field * of the section structure. Since the indirect symbol table entries * correspond to the entries in the section the number of indirect symbol table * entries is inferred from the size of the section divided by the size of the * entries in the section. For symbol pointers sections the size of the entries * in the section is 4 bytes and for symbol stubs sections the byte size of the * stubs is stored in the reserved2 field of the section structure. */ #define S_NON_LAZY_SYMBOL_POINTERS 0x6 /* section with only non-lazy symbol pointers */ #define S_LAZY_SYMBOL_POINTERS 0x7 /* section with only lazy symbol pointers */ #define S_SYMBOL_STUBS 0x8 /* section with only symbol stubs, byte size of stub in the reserved2 field */ #define S_MOD_INIT_FUNC_POINTERS 0x9 /* section with only function pointers for initialization*/ #define S_MOD_TERM_FUNC_POINTERS 0xa /* section with only function pointers for termination */ #define S_COALESCED 0xb /* section contains symbols that are to be coalesced */ #define S_GB_ZEROFILL 0xc /* zero fill on demand section (that can be larger than 4 gigabytes) */ #define S_INTERPOSING 0xd /* section with only pairs of function pointers for interposing */ #define S_16BYTE_LITERALS 0xe /* section with only 16 byte literals */ #define S_DTRACE_DOF 0xf /* section contains DTrace Object Format */ #define S_LAZY_DYLIB_SYMBOL_POINTERS 0x10 /* section with only lazy symbol pointers to lazy loaded dylibs */ /* * Section types to support thread local variables */ #define S_THREAD_LOCAL_REGULAR 0x11 /* template of initial values for TLVs */ #define S_THREAD_LOCAL_ZEROFILL 0x12 /* template of initial values for TLVs */ #define S_THREAD_LOCAL_VARIABLES 0x13 /* TLV descriptors */ #define S_THREAD_LOCAL_VARIABLE_POINTERS 0x14 /* pointers to TLV descriptors */ #define S_THREAD_LOCAL_INIT_FUNCTION_POINTERS 0x15 /* functions to call to initialize TLV values */ #define S_INIT_FUNC_OFFSETS 0x16 /* 32-bit offsets to initializers */ /* * Constants for the section attributes part of the flags field of a section * structure. */ #define SECTION_ATTRIBUTES_USR 0xff000000 /* User setable attributes */ #define S_ATTR_PURE_INSTRUCTIONS 0x80000000 /* section contains only true machine instructions */ #define S_ATTR_NO_TOC 0x40000000 /* section contains coalesced symbols that are not to be in a ranlib table of contents */ #define S_ATTR_STRIP_STATIC_SYMS 0x20000000 /* ok to strip static symbols in this section in files with the MH_DYLDLINK flag */ #define S_ATTR_NO_DEAD_STRIP 0x10000000 /* no dead stripping */ #define S_ATTR_LIVE_SUPPORT 0x08000000 /* blocks are live if they reference live blocks */ #define S_ATTR_SELF_MODIFYING_CODE 0x04000000 /* Used with i386 code stubs written on by dyld */ /* * If a segment contains any sections marked with S_ATTR_DEBUG then all * sections in that segment must have this attribute. No section other than * a section marked with this attribute may reference the contents of this * section. A section with this attribute may contain no symbols and must have * a section type S_REGULAR. The static linker will not copy section contents * from sections with this attribute into its output file. These sections * generally contain DWARF debugging info. */ #define S_ATTR_DEBUG 0x02000000 /* a debug section */ #define SECTION_ATTRIBUTES_SYS 0x00ffff00 /* system setable attributes */ #define S_ATTR_SOME_INSTRUCTIONS 0x00000400 /* section contains some machine instructions */ #define S_ATTR_EXT_RELOC 0x00000200 /* section has external relocation entries */ #define S_ATTR_LOC_RELOC 0x00000100 /* section has local relocation entries */ /* * The names of segments and sections in them are mostly meaningless to the * link-editor. But there are few things to support traditional UNIX * executables that require the link-editor and assembler to use some names * agreed upon by convention. * * The initial protection of the "__TEXT" segment has write protection turned * off (not writeable). * * The link-editor will allocate common symbols at the end of the "__common" * section in the "__DATA" segment. It will create the section and segment * if needed. */ /* The currently known segment names and the section names in those segments */ #define SEG_PAGEZERO "__PAGEZERO" /* the pagezero segment which has no */ /* protections and catches NULL */ /* references for MH_EXECUTE files */ #define SEG_TEXT "__TEXT" /* the tradition UNIX text segment */ #define SECT_TEXT "__text" /* the real text part of the text */ /* section no headers, and no padding */ #define SECT_FVMLIB_INIT0 "__fvmlib_init0" /* the fvmlib initialization */ /* section */ #define SECT_FVMLIB_INIT1 "__fvmlib_init1" /* the section following the */ /* fvmlib initialization */ /* section */ #define SEG_DATA "__DATA" /* the tradition UNIX data segment */ #define SECT_DATA "__data" /* the real initialized data section */ /* no padding, no bss overlap */ #define SECT_BSS "__bss" /* the real uninitialized data section*/ /* no padding */ #define SECT_COMMON "__common" /* the section common symbols are */ /* allocated in by the link editor */ #define SEG_OBJC "__OBJC" /* objective-C runtime segment */ #define SECT_OBJC_SYMBOLS "__symbol_table" /* symbol table */ #define SECT_OBJC_MODULES "__module_info" /* module information */ #define SECT_OBJC_STRINGS "__selector_strs" /* string table */ #define SECT_OBJC_REFS "__selector_refs" /* string table */ #define SEG_ICON "__ICON" /* the icon segment */ #define SECT_ICON_HEADER "__header" /* the icon headers */ #define SECT_ICON_TIFF "__tiff" /* the icons in tiff format */ #define SEG_LINKEDIT "__LINKEDIT" /* the segment containing all structs */ /* created and maintained by the link */ /* editor. Created with -seglinkedit */ /* option to ld(1) for MH_EXECUTE and */ /* FVMLIB file types only */ #define SEG_UNIXSTACK "__UNIXSTACK" /* the unix stack segment */ #define SEG_IMPORT "__IMPORT" /* the segment for the self (dyld) */ /* modifing code stubs that has read, */ /* write and execute permissions */ /* * Fixed virtual memory shared libraries are identified by two things. The * target pathname (the name of the library as found for execution), and the * minor version number. The address of where the headers are loaded is in * header_addr. (THIS IS OBSOLETE and no longer supported). */ struct fvmlib { union lc_str name; /* library's target pathname */ uint32_t minor_version; /* library's minor version number */ uint32_t header_addr; /* library's header address */ }; /* * A fixed virtual shared library (filetype == MH_FVMLIB in the mach header) * contains a fvmlib_command (cmd == LC_IDFVMLIB) to identify the library. * An object that uses a fixed virtual shared library also contains a * fvmlib_command (cmd == LC_LOADFVMLIB) for each library it uses. * (THIS IS OBSOLETE and no longer supported). */ struct fvmlib_command { uint32_t cmd; /* LC_IDFVMLIB or LC_LOADFVMLIB */ uint32_t cmdsize; /* includes pathname string */ struct fvmlib fvmlib; /* the library identification */ }; /* * Dynamicly linked shared libraries are identified by two things. The * pathname (the name of the library as found for execution), and the * compatibility version number. The pathname must match and the compatibility * number in the user of the library must be greater than or equal to the * library being used. The time stamp is used to record the time a library was * built and copied into user so it can be use to determined if the library used * at runtime is exactly the same as used to built the program. */ struct dylib { union lc_str name; /* library's path name */ uint32_t timestamp; /* library's build time stamp */ uint32_t current_version; /* library's current version number */ uint32_t compatibility_version; /* library's compatibility vers number*/ }; /* * A dynamically linked shared library (filetype == MH_DYLIB in the mach header) * contains a dylib_command (cmd == LC_ID_DYLIB) to identify the library. * An object that uses a dynamically linked shared library also contains a * dylib_command (cmd == LC_LOAD_DYLIB, LC_LOAD_WEAK_DYLIB, or * LC_REEXPORT_DYLIB) for each library it uses. */ struct dylib_command { uint32_t cmd; /* LC_ID_DYLIB, LC_LOAD_{,WEAK_}DYLIB, LC_REEXPORT_DYLIB */ uint32_t cmdsize; /* includes pathname string */ struct dylib dylib; /* the library identification */ }; /* * A dynamically linked shared library may be a subframework of an umbrella * framework. If so it will be linked with "-umbrella umbrella_name" where * Where "umbrella_name" is the name of the umbrella framework. A subframework * can only be linked against by its umbrella framework or other subframeworks * that are part of the same umbrella framework. Otherwise the static link * editor produces an error and states to link against the umbrella framework. * The name of the umbrella framework for subframeworks is recorded in the * following structure. */ struct sub_framework_command { uint32_t cmd; /* LC_SUB_FRAMEWORK */ uint32_t cmdsize; /* includes umbrella string */ union lc_str umbrella; /* the umbrella framework name */ }; /* * For dynamically linked shared libraries that are subframework of an umbrella * framework they can allow clients other than the umbrella framework or other * subframeworks in the same umbrella framework. To do this the subframework * is built with "-allowable_client client_name" and an LC_SUB_CLIENT load * command is created for each -allowable_client flag. The client_name is * usually a framework name. It can also be a name used for bundles clients * where the bundle is built with "-client_name client_name". */ struct sub_client_command { uint32_t cmd; /* LC_SUB_CLIENT */ uint32_t cmdsize; /* includes client string */ union lc_str client; /* the client name */ }; /* * A dynamically linked shared library may be a sub_umbrella of an umbrella * framework. If so it will be linked with "-sub_umbrella umbrella_name" where * Where "umbrella_name" is the name of the sub_umbrella framework. When * staticly linking when -twolevel_namespace is in effect a twolevel namespace * umbrella framework will only cause its subframeworks and those frameworks * listed as sub_umbrella frameworks to be implicited linked in. Any other * dependent dynamic libraries will not be linked it when -twolevel_namespace * is in effect. The primary library recorded by the static linker when * resolving a symbol in these libraries will be the umbrella framework. * Zero or more sub_umbrella frameworks may be use by an umbrella framework. * The name of a sub_umbrella framework is recorded in the following structure. */ struct sub_umbrella_command { uint32_t cmd; /* LC_SUB_UMBRELLA */ uint32_t cmdsize; /* includes sub_umbrella string */ union lc_str sub_umbrella; /* the sub_umbrella framework name */ }; /* * A dynamically linked shared library may be a sub_library of another shared * library. If so it will be linked with "-sub_library library_name" where * Where "library_name" is the name of the sub_library shared library. When * staticly linking when -twolevel_namespace is in effect a twolevel namespace * shared library will only cause its subframeworks and those frameworks * listed as sub_umbrella frameworks and libraries listed as sub_libraries to * be implicited linked in. Any other dependent dynamic libraries will not be * linked it when -twolevel_namespace is in effect. The primary library * recorded by the static linker when resolving a symbol in these libraries * will be the umbrella framework (or dynamic library). Zero or more sub_library * shared libraries may be use by an umbrella framework or (or dynamic library). * The name of a sub_library framework is recorded in the following structure. * For example /usr/lib/libobjc_profile.A.dylib would be recorded as "libobjc". */ struct sub_library_command { uint32_t cmd; /* LC_SUB_LIBRARY */ uint32_t cmdsize; /* includes sub_library string */ union lc_str sub_library; /* the sub_library name */ }; /* * A program (filetype == MH_EXECUTE) that is * prebound to its dynamic libraries has one of these for each library that * the static linker used in prebinding. It contains a bit vector for the * modules in the library. The bits indicate which modules are bound (1) and * which are not (0) from the library. The bit for module 0 is the low bit * of the first byte. So the bit for the Nth module is: * (linked_modules[N/8] >> N%8) & 1 */ struct prebound_dylib_command { uint32_t cmd; /* LC_PREBOUND_DYLIB */ uint32_t cmdsize; /* includes strings */ union lc_str name; /* library's path name */ uint32_t nmodules; /* number of modules in library */ union lc_str linked_modules; /* bit vector of linked modules */ }; /* * A program that uses a dynamic linker contains a dylinker_command to identify * the name of the dynamic linker (LC_LOAD_DYLINKER). And a dynamic linker * contains a dylinker_command to identify the dynamic linker (LC_ID_DYLINKER). * A file can have at most one of these. * This struct is also used for the LC_DYLD_ENVIRONMENT load command and * contains string for dyld to treat like environment variable. */ struct dylinker_command { uint32_t cmd; /* LC_ID_DYLINKER, LC_LOAD_DYLINKER or LC_DYLD_ENVIRONMENT */ uint32_t cmdsize; /* includes pathname string */ union lc_str name; /* dynamic linker's path name */ }; /* * Thread commands contain machine-specific data structures suitable for * use in the thread state primitives. The machine specific data structures * follow the struct thread_command as follows. * Each flavor of machine specific data structure is preceded by an uint32_t * constant for the flavor of that data structure, an uint32_t that is the * count of uint32_t's of the size of the state data structure and then * the state data structure follows. This triple may be repeated for many * flavors. The constants for the flavors, counts and state data structure * definitions are expected to be in the header file <machine/thread_status.h>. * These machine specific data structures sizes must be multiples of * 4 bytes. The cmdsize reflects the total size of the thread_command * and all of the sizes of the constants for the flavors, counts and state * data structures. * * For executable objects that are unix processes there will be one * thread_command (cmd == LC_UNIXTHREAD) created for it by the link-editor. * This is the same as a LC_THREAD, except that a stack is automatically * created (based on the shell's limit for the stack size). Command arguments * and environment variables are copied onto that stack. */ struct thread_command { uint32_t cmd; /* LC_THREAD or LC_UNIXTHREAD */ uint32_t cmdsize; /* total size of this command */ /* uint32_t flavor flavor of thread state */ /* uint32_t count count of uint32_t's in thread state */ /* struct XXX_thread_state state thread state for this flavor */ /* ... */ }; /* * The routines command contains the address of the dynamic shared library * initialization routine and an index into the module table for the module * that defines the routine. Before any modules are used from the library the * dynamic linker fully binds the module that defines the initialization routine * and then calls it. This gets called before any module initialization * routines (used for C++ static constructors) in the library. */ struct routines_command { /* for 32-bit architectures */ uint32_t cmd; /* LC_ROUTINES */ uint32_t cmdsize; /* total size of this command */ uint32_t init_address; /* address of initialization routine */ uint32_t init_module; /* index into the module table that */ /* the init routine is defined in */ uint32_t reserved1; uint32_t reserved2; uint32_t reserved3; uint32_t reserved4; uint32_t reserved5; uint32_t reserved6; }; /* * The 64-bit routines command. Same use as above. */ struct routines_command_64 { /* for 64-bit architectures */ uint32_t cmd; /* LC_ROUTINES_64 */ uint32_t cmdsize; /* total size of this command */ uint64_t init_address; /* address of initialization routine */ uint64_t init_module; /* index into the module table that */ /* the init routine is defined in */ uint64_t reserved1; uint64_t reserved2; uint64_t reserved3; uint64_t reserved4; uint64_t reserved5; uint64_t reserved6; }; /* * The symtab_command contains the offsets and sizes of the link-edit 4.3BSD * "stab" style symbol table information as described in the header files * <nlist.h> and <stab.h>. */ struct symtab_command { uint32_t cmd; /* LC_SYMTAB */ uint32_t cmdsize; /* sizeof(struct symtab_command) */ uint32_t symoff; /* symbol table offset */ uint32_t nsyms; /* number of symbol table entries */ uint32_t stroff; /* string table offset */ uint32_t strsize; /* string table size in bytes */ }; /* * This is the second set of the symbolic information which is used to support * the data structures for the dynamically link editor. * * The original set of symbolic information in the symtab_command which contains * the symbol and string tables must also be present when this load command is * present. When this load command is present the symbol table is organized * into three groups of symbols: * local symbols (static and debugging symbols) - grouped by module * defined external symbols - grouped by module (sorted by name if not lib) * undefined external symbols (sorted by name if MH_BINDATLOAD is not set, * and in order the were seen by the static * linker if MH_BINDATLOAD is set) * In this load command there are offsets and counts to each of the three groups * of symbols. * * This load command contains a the offsets and sizes of the following new * symbolic information tables: * table of contents * module table * reference symbol table * indirect symbol table * The first three tables above (the table of contents, module table and * reference symbol table) are only present if the file is a dynamically linked * shared library. For executable and object modules, which are files * containing only one module, the information that would be in these three * tables is determined as follows: * table of contents - the defined external symbols are sorted by name * module table - the file contains only one module so everything in the * file is part of the module. * reference symbol table - is the defined and undefined external symbols * * For dynamically linked shared library files this load command also contains * offsets and sizes to the pool of relocation entries for all sections * separated into two groups: * external relocation entries * local relocation entries * For executable and object modules the relocation entries continue to hang * off the section structures. */ struct dysymtab_command { uint32_t cmd; /* LC_DYSYMTAB */ uint32_t cmdsize; /* sizeof(struct dysymtab_command) */ /* * The symbols indicated by symoff and nsyms of the LC_SYMTAB load command * are grouped into the following three groups: * local symbols (further grouped by the module they are from) * defined external symbols (further grouped by the module they are from) * undefined symbols * * The local symbols are used only for debugging. The dynamic binding * process may have to use them to indicate to the debugger the local * symbols for a module that is being bound. * * The last two groups are used by the dynamic binding process to do the * binding (indirectly through the module table and the reference symbol * table when this is a dynamically linked shared library file). */ uint32_t ilocalsym; /* index to local symbols */ uint32_t nlocalsym; /* number of local symbols */ uint32_t iextdefsym;/* index to externally defined symbols */ uint32_t nextdefsym;/* number of externally defined symbols */ uint32_t iundefsym; /* index to undefined symbols */ uint32_t nundefsym; /* number of undefined symbols */ /* * For the for the dynamic binding process to find which module a symbol * is defined in the table of contents is used (analogous to the ranlib * structure in an archive) which maps defined external symbols to modules * they are defined in. This exists only in a dynamically linked shared * library file. For executable and object modules the defined external * symbols are sorted by name and is use as the table of contents. */ uint32_t tocoff; /* file offset to table of contents */ uint32_t ntoc; /* number of entries in table of contents */ /* * To support dynamic binding of "modules" (whole object files) the symbol * table must reflect the modules that the file was created from. This is * done by having a module table that has indexes and counts into the merged * tables for each module. The module structure that these two entries * refer to is described below. This exists only in a dynamically linked * shared library file. For executable and object modules the file only * contains one module so everything in the file belongs to the module. */ uint32_t modtaboff; /* file offset to module table */ uint32_t nmodtab; /* number of module table entries */ /* * To support dynamic module binding the module structure for each module * indicates the external references (defined and undefined) each module * makes. For each module there is an offset and a count into the * reference symbol table for the symbols that the module references. * This exists only in a dynamically linked shared library file. For * executable and object modules the defined external symbols and the * undefined external symbols indicates the external references. */ uint32_t extrefsymoff; /* offset to referenced symbol table */ uint32_t nextrefsyms; /* number of referenced symbol table entries */ /* * The sections that contain "symbol pointers" and "routine stubs" have * indexes and (implied counts based on the size of the section and fixed * size of the entry) into the "indirect symbol" table for each pointer * and stub. For every section of these two types the index into the * indirect symbol table is stored in the section header in the field * reserved1. An indirect symbol table entry is simply a 32bit index into * the symbol table to the symbol that the pointer or stub is referring to. * The indirect symbol table is ordered to match the entries in the section. */ uint32_t indirectsymoff; /* file offset to the indirect symbol table */ uint32_t nindirectsyms; /* number of indirect symbol table entries */ /* * To support relocating an individual module in a library file quickly the * external relocation entries for each module in the library need to be * accessed efficiently. Since the relocation entries can't be accessed * through the section headers for a library file they are separated into * groups of local and external entries further grouped by module. In this * case the presents of this load command who's extreloff, nextrel, * locreloff and nlocrel fields are non-zero indicates that the relocation * entries of non-merged sections are not referenced through the section * structures (and the reloff and nreloc fields in the section headers are * set to zero). * * Since the relocation entries are not accessed through the section headers * this requires the r_address field to be something other than a section * offset to identify the item to be relocated. In this case r_address is * set to the offset from the vmaddr of the first LC_SEGMENT command. * For MH_SPLIT_SEGS images r_address is set to the the offset from the * vmaddr of the first read-write LC_SEGMENT command. * * The relocation entries are grouped by module and the module table * entries have indexes and counts into them for the group of external * relocation entries for that the module. * * For sections that are merged across modules there must not be any * remaining external relocation entries for them (for merged sections * remaining relocation entries must be local). */ uint32_t extreloff; /* offset to external relocation entries */ uint32_t nextrel; /* number of external relocation entries */ /* * All the local relocation entries are grouped together (they are not * grouped by their module since they are only used if the object is moved * from it staticly link edited address). */ uint32_t locreloff; /* offset to local relocation entries */ uint32_t nlocrel; /* number of local relocation entries */ }; /* * An indirect symbol table entry is simply a 32bit index into the symbol table * to the symbol that the pointer or stub is refering to. Unless it is for a * non-lazy symbol pointer section for a defined symbol which strip(1) as * removed. In which case it has the value INDIRECT_SYMBOL_LOCAL. If the * symbol was also absolute INDIRECT_SYMBOL_ABS is or'ed with that. */ #define INDIRECT_SYMBOL_LOCAL 0x80000000 #define INDIRECT_SYMBOL_ABS 0x40000000 /* a table of contents entry */ struct dylib_table_of_contents { uint32_t symbol_index; /* the defined external symbol (index into the symbol table) */ uint32_t module_index; /* index into the module table this symbol is defined in */ }; /* a module table entry */ struct dylib_module { uint32_t module_name; /* the module name (index into string table) */ uint32_t iextdefsym; /* index into externally defined symbols */ uint32_t nextdefsym; /* number of externally defined symbols */ uint32_t irefsym; /* index into reference symbol table */ uint32_t nrefsym; /* number of reference symbol table entries */ uint32_t ilocalsym; /* index into symbols for local symbols */ uint32_t nlocalsym; /* number of local symbols */ uint32_t iextrel; /* index into external relocation entries */ uint32_t nextrel; /* number of external relocation entries */ uint32_t iinit_iterm; /* low 16 bits are the index into the init section, high 16 bits are the index into the term section */ uint32_t ninit_nterm; /* low 16 bits are the number of init section entries, high 16 bits are the number of term section entries */ uint32_t /* for this module address of the start of */ objc_module_info_addr; /* the (__OBJC,__module_info) section */ uint32_t /* for this module size of */ objc_module_info_size; /* the (__OBJC,__module_info) section */ }; /* a 64-bit module table entry */ struct dylib_module_64 { uint32_t module_name; /* the module name (index into string table) */ uint32_t iextdefsym; /* index into externally defined symbols */ uint32_t nextdefsym; /* number of externally defined symbols */ uint32_t irefsym; /* index into reference symbol table */ uint32_t nrefsym; /* number of reference symbol table entries */ uint32_t ilocalsym; /* index into symbols for local symbols */ uint32_t nlocalsym; /* number of local symbols */ uint32_t iextrel; /* index into external relocation entries */ uint32_t nextrel; /* number of external relocation entries */ uint32_t iinit_iterm; /* low 16 bits are the index into the init section, high 16 bits are the index into the term section */ uint32_t ninit_nterm; /* low 16 bits are the number of init section entries, high 16 bits are the number of term section entries */ uint32_t /* for this module size of */ objc_module_info_size; /* the (__OBJC,__module_info) section */ uint64_t /* for this module address of the start of */ objc_module_info_addr; /* the (__OBJC,__module_info) section */ }; /* * The entries in the reference symbol table are used when loading the module * (both by the static and dynamic link editors) and if the module is unloaded * or replaced. Therefore all external symbols (defined and undefined) are * listed in the module's reference table. The flags describe the type of * reference that is being made. The constants for the flags are defined in * <mach-o/nlist.h> as they are also used for symbol table entries. */ struct dylib_reference { uint32_t isym:24, /* index into the symbol table */ flags:8; /* flags to indicate the type of reference */ }; /* * The twolevel_hints_command contains the offset and number of hints in the * two-level namespace lookup hints table. */ struct twolevel_hints_command { uint32_t cmd; /* LC_TWOLEVEL_HINTS */ uint32_t cmdsize; /* sizeof(struct twolevel_hints_command) */ uint32_t offset; /* offset to the hint table */ uint32_t nhints; /* number of hints in the hint table */ }; /* * The entries in the two-level namespace lookup hints table are twolevel_hint * structs. These provide hints to the dynamic link editor where to start * looking for an undefined symbol in a two-level namespace image. The * isub_image field is an index into the sub-images (sub-frameworks and * sub-umbrellas list) that made up the two-level image that the undefined * symbol was found in when it was built by the static link editor. If * isub-image is 0 the the symbol is expected to be defined in library and not * in the sub-images. If isub-image is non-zero it is an index into the array * of sub-images for the umbrella with the first index in the sub-images being * 1. The array of sub-images is the ordered list of sub-images of the umbrella * that would be searched for a symbol that has the umbrella recorded as its * primary library. The table of contents index is an index into the * library's table of contents. This is used as the starting point of the * binary search or a directed linear search. */ struct twolevel_hint { uint32_t isub_image:8, /* index into the sub images */ itoc:24; /* index into the table of contents */ }; /* * The prebind_cksum_command contains the value of the original check sum for * prebound files or zero. When a prebound file is first created or modified * for other than updating its prebinding information the value of the check sum * is set to zero. When the file has it prebinding re-done and if the value of * the check sum is zero the original check sum is calculated and stored in * cksum field of this load command in the output file. If when the prebinding * is re-done and the cksum field is non-zero it is left unchanged from the * input file. */ struct prebind_cksum_command { uint32_t cmd; /* LC_PREBIND_CKSUM */ uint32_t cmdsize; /* sizeof(struct prebind_cksum_command) */ uint32_t cksum; /* the check sum or zero */ }; /* * The uuid load command contains a single 128-bit unique random number that * identifies an object produced by the static link editor. */ struct uuid_command { uint32_t cmd; /* LC_UUID */ uint32_t cmdsize; /* sizeof(struct uuid_command) */ uint8_t uuid[16]; /* the 128-bit uuid */ }; /* * The rpath_command contains a path which at runtime should be added to * the current run path used to find @rpath prefixed dylibs. */ struct rpath_command { uint32_t cmd; /* LC_RPATH */ uint32_t cmdsize; /* includes string */ union lc_str path; /* path to add to run path */ }; /* * The linkedit_data_command contains the offsets and sizes of a blob * of data in the __LINKEDIT segment. */ struct linkedit_data_command { uint32_t cmd; /* LC_CODE_SIGNATURE, LC_SEGMENT_SPLIT_INFO, LC_FUNCTION_STARTS, LC_DATA_IN_CODE, LC_DYLIB_CODE_SIGN_DRS, LC_LINKER_OPTIMIZATION_HINT, LC_DYLD_EXPORTS_TRIE, or LC_DYLD_CHAINED_FIXUPS. */ uint32_t cmdsize; /* sizeof(struct linkedit_data_command) */ uint32_t dataoff; /* file offset of data in __LINKEDIT segment */ uint32_t datasize; /* file size of data in __LINKEDIT segment */ }; /* * The encryption_info_command contains the file offset and size of an * of an encrypted segment. */ struct encryption_info_command { uint32_t cmd; /* LC_ENCRYPTION_INFO */ uint32_t cmdsize; /* sizeof(struct encryption_info_command) */ uint32_t cryptoff; /* file offset of encrypted range */ uint32_t cryptsize; /* file size of encrypted range */ uint32_t cryptid; /* which enryption system, 0 means not-encrypted yet */ }; /* * The encryption_info_command_64 contains the file offset and size of an * of an encrypted segment (for use in x86_64 targets). */ struct encryption_info_command_64 { uint32_t cmd; /* LC_ENCRYPTION_INFO_64 */ uint32_t cmdsize; /* sizeof(struct encryption_info_command_64) */ uint32_t cryptoff; /* file offset of encrypted range */ uint32_t cryptsize; /* file size of encrypted range */ uint32_t cryptid; /* which enryption system, 0 means not-encrypted yet */ uint32_t pad; /* padding to make this struct's size a multiple of 8 bytes */ }; /* * The version_min_command contains the min OS version on which this * binary was built to run. */ struct version_min_command { uint32_t cmd; /* LC_VERSION_MIN_MACOSX or LC_VERSION_MIN_IPHONEOS or LC_VERSION_MIN_WATCHOS or LC_VERSION_MIN_TVOS */ uint32_t cmdsize; /* sizeof(struct min_version_command) */ uint32_t version; /* X.Y.Z is encoded in nibbles xxxx.yy.zz */ uint32_t sdk; /* X.Y.Z is encoded in nibbles xxxx.yy.zz */ }; /* * The build_version_command contains the min OS version on which this * binary was built to run for its platform. The list of known platforms and * tool values following it. */ struct build_version_command { uint32_t cmd; /* LC_BUILD_VERSION */ uint32_t cmdsize; /* sizeof(struct build_version_command) plus */ /* ntools * sizeof(struct build_tool_version) */ uint32_t platform; /* platform */ uint32_t minos; /* X.Y.Z is encoded in nibbles xxxx.yy.zz */ uint32_t sdk; /* X.Y.Z is encoded in nibbles xxxx.yy.zz */ uint32_t ntools; /* number of tool entries following this */ }; struct build_tool_version { uint32_t tool; /* enum for the tool */ uint32_t version; /* version number of the tool */ }; /* Known values for the platform field above. */ #define PLATFORM_MACOS 1 #define PLATFORM_IOS 2 #define PLATFORM_TVOS 3 #define PLATFORM_WATCHOS 4 #define PLATFORM_BRIDGEOS 5 #define PLATFORM_MACCATALYST 6 #define PLATFORM_IOSSIMULATOR 7 #define PLATFORM_TVOSSIMULATOR 8 #define PLATFORM_WATCHOSSIMULATOR 9 #define PLATFORM_DRIVERKIT 10 #ifndef __APPLE_BLEACH_SDK__ #endif /* __APPLE_BLEACH_SDK__ */ /* Known values for the tool field above. */ #define TOOL_CLANG 1 #define TOOL_SWIFT 2 #define TOOL_LD 3 /* * The dyld_info_command contains the file offsets and sizes of * the new compressed form of the information dyld needs to * load the image. This information is used by dyld on Mac OS X * 10.6 and later. All information pointed to by this command * is encoded using byte streams, so no endian swapping is needed * to interpret it. */ struct dyld_info_command { uint32_t cmd; /* LC_DYLD_INFO or LC_DYLD_INFO_ONLY */ uint32_t cmdsize; /* sizeof(struct dyld_info_command) */ /* * Dyld rebases an image whenever dyld loads it at an address different * from its preferred address. The rebase information is a stream * of byte sized opcodes whose symbolic names start with REBASE_OPCODE_. * Conceptually the rebase information is a table of tuples: * <seg-index, seg-offset, type> * The opcodes are a compressed way to encode the table by only * encoding when a column changes. In addition simple patterns * like "every n'th offset for m times" can be encoded in a few * bytes. */ uint32_t rebase_off; /* file offset to rebase info */ uint32_t rebase_size; /* size of rebase info */ /* * Dyld binds an image during the loading process, if the image * requires any pointers to be initialized to symbols in other images. * The bind information is a stream of byte sized * opcodes whose symbolic names start with BIND_OPCODE_. * Conceptually the bind information is a table of tuples: * <seg-index, seg-offset, type, symbol-library-ordinal, symbol-name, addend> * The opcodes are a compressed way to encode the table by only * encoding when a column changes. In addition simple patterns * like for runs of pointers initialzed to the same value can be * encoded in a few bytes. */ uint32_t bind_off; /* file offset to binding info */ uint32_t bind_size; /* size of binding info */ /* * Some C++ programs require dyld to unique symbols so that all * images in the process use the same copy of some code/data. * This step is done after binding. The content of the weak_bind * info is an opcode stream like the bind_info. But it is sorted * alphabetically by symbol name. This enable dyld to walk * all images with weak binding information in order and look * for collisions. If there are no collisions, dyld does * no updating. That means that some fixups are also encoded * in the bind_info. For instance, all calls to "operator new" * are first bound to libstdc++.dylib using the information * in bind_info. Then if some image overrides operator new * that is detected when the weak_bind information is processed * and the call to operator new is then rebound. */ uint32_t weak_bind_off; /* file offset to weak binding info */ uint32_t weak_bind_size; /* size of weak binding info */ /* * Some uses of external symbols do not need to be bound immediately. * Instead they can be lazily bound on first use. The lazy_bind * are contains a stream of BIND opcodes to bind all lazy symbols. * Normal use is that dyld ignores the lazy_bind section when * loading an image. Instead the static linker arranged for the * lazy pointer to initially point to a helper function which * pushes the offset into the lazy_bind area for the symbol * needing to be bound, then jumps to dyld which simply adds * the offset to lazy_bind_off to get the information on what * to bind. */ uint32_t lazy_bind_off; /* file offset to lazy binding info */ uint32_t lazy_bind_size; /* size of lazy binding infs */ /* * The symbols exported by a dylib are encoded in a trie. This * is a compact representation that factors out common prefixes. * It also reduces LINKEDIT pages in RAM because it encodes all * information (name, address, flags) in one small, contiguous range. * The export area is a stream of nodes. The first node sequentially * is the start node for the trie. * * Nodes for a symbol start with a uleb128 that is the length of * the exported symbol information for the string so far. * If there is no exported symbol, the node starts with a zero byte. * If there is exported info, it follows the length. * * First is a uleb128 containing flags. Normally, it is followed by * a uleb128 encoded offset which is location of the content named * by the symbol from the mach_header for the image. If the flags * is EXPORT_SYMBOL_FLAGS_REEXPORT, then following the flags is * a uleb128 encoded library ordinal, then a zero terminated * UTF8 string. If the string is zero length, then the symbol * is re-export from the specified dylib with the same name. * If the flags is EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER, then following * the flags is two uleb128s: the stub offset and the resolver offset. * The stub is used by non-lazy pointers. The resolver is used * by lazy pointers and must be called to get the actual address to use. * * After the optional exported symbol information is a byte of * how many edges (0-255) that this node has leaving it, * followed by each edge. * Each edge is a zero terminated UTF8 of the addition chars * in the symbol, followed by a uleb128 offset for the node that * edge points to. * */ uint32_t export_off; /* file offset to lazy binding info */ uint32_t export_size; /* size of lazy binding infs */ }; /* * The following are used to encode rebasing information */ #define REBASE_TYPE_POINTER 1 #define REBASE_TYPE_TEXT_ABSOLUTE32 2 #define REBASE_TYPE_TEXT_PCREL32 3 #define REBASE_OPCODE_MASK 0xF0 #define REBASE_IMMEDIATE_MASK 0x0F #define REBASE_OPCODE_DONE 0x00 #define REBASE_OPCODE_SET_TYPE_IMM 0x10 #define REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 0x20 #define REBASE_OPCODE_ADD_ADDR_ULEB 0x30 #define REBASE_OPCODE_ADD_ADDR_IMM_SCALED 0x40 #define REBASE_OPCODE_DO_REBASE_IMM_TIMES 0x50 #define REBASE_OPCODE_DO_REBASE_ULEB_TIMES 0x60 #define REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB 0x70 #define REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB 0x80 /* * The following are used to encode binding information */ #define BIND_TYPE_POINTER 1 #define BIND_TYPE_TEXT_ABSOLUTE32 2 #define BIND_TYPE_TEXT_PCREL32 3 #define BIND_SPECIAL_DYLIB_SELF 0 #define BIND_SPECIAL_DYLIB_MAIN_EXECUTABLE -1 #define BIND_SPECIAL_DYLIB_FLAT_LOOKUP -2 #define BIND_SPECIAL_DYLIB_WEAK_LOOKUP -3 #define BIND_SYMBOL_FLAGS_WEAK_IMPORT 0x1 #define BIND_SYMBOL_FLAGS_NON_WEAK_DEFINITION 0x8 #define BIND_OPCODE_MASK 0xF0 #define BIND_IMMEDIATE_MASK 0x0F #define BIND_OPCODE_DONE 0x00 #define BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 0x10 #define BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB 0x20 #define BIND_OPCODE_SET_DYLIB_SPECIAL_IMM 0x30 #define BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 0x40 #define BIND_OPCODE_SET_TYPE_IMM 0x50 #define BIND_OPCODE_SET_ADDEND_SLEB 0x60 #define BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 0x70 #define BIND_OPCODE_ADD_ADDR_ULEB 0x80 #define BIND_OPCODE_DO_BIND 0x90 #define BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB 0xA0 #define BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED 0xB0 #define BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB 0xC0 #define BIND_OPCODE_THREADED 0xD0 #define BIND_SUBOPCODE_THREADED_SET_BIND_ORDINAL_TABLE_SIZE_ULEB 0x00 #define BIND_SUBOPCODE_THREADED_APPLY 0x01 /* * The following are used on the flags byte of a terminal node * in the export information. */ #define EXPORT_SYMBOL_FLAGS_KIND_MASK 0x03 #define EXPORT_SYMBOL_FLAGS_KIND_REGULAR 0x00 #define EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL 0x01 #define EXPORT_SYMBOL_FLAGS_KIND_ABSOLUTE 0x02 #define EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION 0x04 #define EXPORT_SYMBOL_FLAGS_REEXPORT 0x08 #define EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER 0x10 #define EXPORT_SYMBOL_FLAGS_STATIC_RESOLVER 0x20 /* * The linker_option_command contains linker options embedded in object files. */ struct linker_option_command { uint32_t cmd; /* LC_LINKER_OPTION only used in MH_OBJECT filetypes */ uint32_t cmdsize; uint32_t count; /* number of strings */ /* concatenation of zero terminated UTF8 strings. Zero filled at end to align */ }; /* * The symseg_command contains the offset and size of the GNU style * symbol table information as described in the header file <symseg.h>. * The symbol roots of the symbol segments must also be aligned properly * in the file. So the requirement of keeping the offsets aligned to a * multiple of a 4 bytes translates to the length field of the symbol * roots also being a multiple of a long. Also the padding must again be * zeroed. (THIS IS OBSOLETE and no longer supported). */ struct symseg_command { uint32_t cmd; /* LC_SYMSEG */ uint32_t cmdsize; /* sizeof(struct symseg_command) */ uint32_t offset; /* symbol segment offset */ uint32_t size; /* symbol segment size in bytes */ }; /* * The ident_command contains a free format string table following the * ident_command structure. The strings are null terminated and the size of * the command is padded out with zero bytes to a multiple of 4 bytes/ * (THIS IS OBSOLETE and no longer supported). */ struct ident_command { uint32_t cmd; /* LC_IDENT */ uint32_t cmdsize; /* strings that follow this command */ }; /* * The fvmfile_command contains a reference to a file to be loaded at the * specified virtual address. (Presently, this command is reserved for * internal use. The kernel ignores this command when loading a program into * memory). */ struct fvmfile_command { uint32_t cmd; /* LC_FVMFILE */ uint32_t cmdsize; /* includes pathname string */ union lc_str name; /* files pathname */ uint32_t header_addr; /* files virtual address */ }; /* * The entry_point_command is a replacement for thread_command. * It is used for main executables to specify the location (file offset) * of main(). If -stack_size was used at link time, the stacksize * field will contain the stack size need for the main thread. */ struct entry_point_command { uint32_t cmd; /* LC_MAIN only used in MH_EXECUTE filetypes */ uint32_t cmdsize; /* 24 */ uint64_t entryoff; /* file (__TEXT) offset of main() */ uint64_t stacksize;/* if not zero, initial stack size */ }; /* * The source_version_command is an optional load command containing * the version of the sources used to build the binary. */ struct source_version_command { uint32_t cmd; /* LC_SOURCE_VERSION */ uint32_t cmdsize; /* 16 */ uint64_t version; /* A.B.C.D.E packed as a24.b10.c10.d10.e10 */ }; /* * The LC_DATA_IN_CODE load commands uses a linkedit_data_command * to point to an array of data_in_code_entry entries. Each entry * describes a range of data in a code section. */ struct data_in_code_entry { uint32_t offset; /* from mach_header to start of data range*/ uint16_t length; /* number of bytes in data range */ uint16_t kind; /* a DICE_KIND_* value */ }; #define DICE_KIND_DATA 0x0001 #define DICE_KIND_JUMP_TABLE8 0x0002 #define DICE_KIND_JUMP_TABLE16 0x0003 #define DICE_KIND_JUMP_TABLE32 0x0004 #define DICE_KIND_ABS_JUMP_TABLE32 0x0005 /* * Sections of type S_THREAD_LOCAL_VARIABLES contain an array * of tlv_descriptor structures. */ struct tlv_descriptor { void* (*thunk)(struct tlv_descriptor*); unsigned long key; unsigned long offset; }; /* * LC_NOTE commands describe a region of arbitrary data included in a Mach-O * file. Its initial use is to record extra data in MH_CORE files. */ struct note_command { uint32_t cmd; /* LC_NOTE */ uint32_t cmdsize; /* sizeof(struct note_command) */ char data_owner[16]; /* owner name for this LC_NOTE */ uint64_t offset; /* file offset of this data */ uint64_t size; /* length of data region */ }; /* * LC_FILESET_ENTRY commands describe constituent Mach-O files that are part * of a fileset. In one implementation, entries are dylibs with individual * mach headers and repositionable text and data segments. Each entry is * further described by its own mach header. */ struct fileset_entry_command { uint32_t cmd; /* LC_FILESET_ENTRY */ uint32_t cmdsize; /* includes entry_id string */ uint64_t vmaddr; /* memory address of the entry */ uint64_t fileoff; /* file offset of the entry */ union lc_str entry_id; /* contained entry id */ uint32_t reserved; /* reserved */ }; /* * These deprecated values may still be used within Apple but are mechanically * removed from public API. The mechanical process may produce unusual results. */ #if (!defined(PLATFORM_IOSMAC)) #define PLATFORM_IOSMAC PLATFORM_MACCATALYST #endif #endif /* _MACHO_LOADER_H_ */ ```
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // VARIABLES // var toStr = Object.prototype.toString; // MAIN // /** * Returns the internal class of a provided value. * * @private * @param {*} value - input value * @returns {string} internal class */ function toString( value ) { // eslint-disable-line stdlib/no-redeclare return toStr.call( value ); } // EXPORTS // module.exports = toString; ```
```text Damage 0 P1 0 xtatu 0 001BA39C 40820008 # ```
SoRI-9409 is a mixed mu opioid receptor partial agonist and delta opioid receptor antagonist, used in biomedical research. It produces moderate analgesic effects without development of tolerance and with reduced withdrawal symptoms compared to standard opioid analgesics, as well as showing anti-addictive effects that may be useful in the treatment of alcoholism. References Delta-opioid receptor antagonists 4,5-Epoxymorphinans Mu-opioid receptor agonists Phenols Semisynthetic opioids
Baldwin West Aerodrome is a registered aerodrome located adjacent to Baldwin, Ontario, Canada. See also Baldwin Airport References Registered aerodromes in Ontario
Turkey participates in the 2022 Mediterranean Games held in Oran, Algeria from 25 June to 5 July 2022. 321 athletes from Turkey were registered to compete in 24 sports at the Games. Medalists | width="78%" align="left" valign="top" | | width="22%" align="left" valign="top" | Archery Athletics Men Track & road events Field events Women Track & road events Field events Badminton Turkey competed in badminton. Basketball Men's 3x3 tournament Group A Quarterfinal Semifinals Bronze medal game Women's 3x3 tournament Group C Quarterfinal Semifinal Bronze medal game Boules Turkey competed in boules. Men Women Boxing Turkey competed in boxing. Men Women Cycling Men Women Equestrian Fencing Turkey competed in fencing. Men Women Football Summary Team roster Group play Semifinal Bronze medal match Gymnastics Turkey competed in artistic gymnastics. Men's artistic individual all-around Men Women artistic individual all-around Women Handball Summary Men's tournament Team roster Group play Seventh place game Women's tournament Team roster Group play Fifth place game Judo Turkey competed in judo. Men Women Karate Sailing Turkey competed in sailing. Shooting Turkey competed in shooting. Men Women Mixed events Swimming Men Women Volleyball Turkey competed in volleyball. Summary Men's tournament Group B Quarterfinal Classification 5th–8th Fifth place game Women's tournament Group C Quarterfinal Semifinal Final Table tennis Turkey competed in table tennis. Taekwondo Men Women Tennis Turkey competed in tennis. Men Women Water polo Summary Group play Seventh place game Weightlifting Men Women Wrestling Men's Freestyle Greco-Roman Women's Freestyle References Nations at the 2022 Mediterranean Games 2022 Mediterranean Games
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var tape = require( 'tape' ); var floor = require( '@stdlib/math/base/special/floor' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); var Float32Array = require( '@stdlib/array/float32' ); var snanrange = require( './../lib/snanrange.js' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof snanrange, 'function', 'main export is a function' ); t.end(); }); tape( 'the function has an arity of 3', function test( t ) { t.strictEqual( snanrange.length, 3, 'has expected arity' ); t.end(); }); tape( 'the function calculates the range of a strided array', function test( t ) { var x; var v; x = new Float32Array( [ 1.0, -2.0, -4.0, NaN, 5.0, 0.0, 3.0 ] ); v = snanrange( x.length, x, 1 ); t.strictEqual( v, 9.0, 'returns expected value' ); x = new Float32Array( [ -4.0, NaN, -5.0 ] ); v = snanrange( x.length, x, 1 ); t.strictEqual( v, 1.0, 'returns expected value' ); x = new Float32Array( [ -0.0, 0.0, NaN, -0.0 ] ); v = snanrange( x.length, x, 1 ); t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); x = new Float32Array( [ NaN ] ); v = snanrange( x.length, x, 1 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); x = new Float32Array( [ NaN, NaN ] ); v = snanrange( x.length, x, 1 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', function test( t ) { var x; var v; x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); v = snanrange( 0, x, 1 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); v = snanrange( -1, x, 1 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); tape( 'if provided an `N` parameter equal to `1`, the function returns `0` or `NaN`', function test( t ) { var x; var v; x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); v = snanrange( 1, x, 1 ); t.strictEqual( v, 0.0, 'returns expected value' ); x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); v = snanrange( 1, x, 1 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function supports a `stride` parameter', function test( t ) { var N; var x; var v; x = new Float32Array([ 1.0, // 0 2.0, 2.0, // 1 -7.0, -2.0, // 2 3.0, 4.0, // 3 2.0, NaN, // 4 NaN ]); N = floor( x.length / 2 ); v = snanrange( N, x, 2 ); t.strictEqual( v, 6.0, 'returns expected value' ); t.end(); }); tape( 'the function supports a negative `stride` parameter', function test( t ) { var N; var x; var v; x = new Float32Array([ NaN, // 4 NaN, 1.0, // 3 2.0, 2.0, // 2 -7.0, -2.0, // 1 3.0, 4.0, // 0 2.0 ]); N = floor( x.length / 2 ); v = snanrange( N, x, -2 ); t.strictEqual( v, 6.0, 'returns expected value' ); t.end(); }); tape( 'if provided a `stride` parameter equal to `0`, the function returns `0` or `NaN`', function test( t ) { var x; var v; x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); v = snanrange( x.length, x, 0 ); t.strictEqual( v, 0.0, 'returns expected value' ); x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); v = snanrange( x.length, x, 0 ); t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function supports view offsets', function test( t ) { var x0; var x1; var N; var v; x0 = new Float32Array([ 2.0, 1.0, // 0 2.0, -2.0, // 1 -2.0, 2.0, // 2 3.0, 4.0, // 3 6.0, NaN, // 4 NaN ]); x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element N = floor(x1.length / 2); v = snanrange( N, x1, 2 ); t.strictEqual( v, 6.0, 'returns expected value' ); t.end(); }); ```
Dastan Ensemble is an Iranian classical music ensemble. Founded in 1991 by Hamid Motabassem, Dastan has performed concerts throughout the world. Members Hossein Behroozinia (Barbat) Hamid Motebassem (Tar and Setar) Pejman Hadadi (Percussion) Saeed Farajpouri (Kamancheh) Behnam Samani (Percussion) Former members Sima Bina Shahram Nazeri Iraj Bastami Kayhan Kalhor Homayoun Shajarian Parissa Salar Aghili Pouya Saraei (Santour) Sadigh Tarif Mahdieh Mohammadkhani Arjang Ataollahi References External links Official website Photos from Dastan Ensemble concert in California, BBC Persian classical music groups
```javascript const IndexPage = () => <h1>Hello World</h1> export default IndexPage ```
```dart import 'package:test/test.dart'; import 'package:angular/angular.dart'; import 'package:angular_test/angular_test.dart'; import 'mark_child_for_check_test.template.dart' as ng; void main() { tearDown(disposeAnyRunningTest); group('markChildForCheck() should update', () { test('content child', () async { final testBed = NgTestBed(ng.createTestContentChildFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.child!.update('a')); expect(testFixture.text, 'a'); }); test('content children', () async { final testBed = NgTestBed(ng.createTestContentChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.child!.update('a')); expect(testFixture.text, 'aaa'); }); test('view child', () async { final testBed = NgTestBed(ng.createTestViewChildFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.update('a')); expect(testFixture.text, 'a'); }); test('view children', () async { final testBed = NgTestBed(ng.createTestViewChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.update('a')); expect(testFixture.text, 'aaa'); }); // This is a common pattern we should be certain works. group('existing provider', () { test('content children', () async { final testBed = NgTestBed(ng.createTestExistingProviderContentChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.child!.update('a')); expect(testFixture.text, 'aaa'); }); test('view children', () async { final testBed = NgTestBed(ng.createTestExistingProviderViewChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.update('a')); expect(testFixture.text, 'aaa'); }); }); group('nested', () { test('content children', () async { final testBed = NgTestBed(ng.createTestEmbeddedContentChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.child!.update('a')); expect(testFixture.text, 'a'); await testFixture.update((component) { component.isSecondChildVisible = true; }); expect(testFixture.text, 'aa'); await testFixture.update((component) => component.child!.update('b')); expect(testFixture.text, 'bb'); await testFixture.update((component) { component.areRemainingChildrenVisible = true; }); expect(testFixture.text, 'bbbb'); }); test('view children', () async { final testBed = NgTestBed(ng.createTestEmbeddedViewChildrenFactory()); final testFixture = await testBed.create(); expect(testFixture.text, isEmpty); await testFixture.update((component) { component.areRemainingChildrenVisible = true; }); expect(testFixture.text, isEmpty); await testFixture.update((component) => component.update('a')); expect(testFixture.text, 'aaa'); await testFixture.update((component) { component.isSecondChildVisible = true; }); expect(testFixture.text, 'aaaa'); await testFixture.update((component) => component.update('b')); expect(testFixture.text, 'bbbb'); }); }); }); } @Component( selector: 'child', template: '{{value}}', changeDetection: ChangeDetectionStrategy.OnPush, ) class Child { var value = ''; } @Component( selector: 'has-content-child', template: '<ng-content></ng-content>', ) class HasContentChild { HasContentChild(this._changeDetectorRef); final ChangeDetectorRef _changeDetectorRef; @ContentChild(Child) Child? child; void update(String value) { child!.value = value; _changeDetectorRef.markChildForCheck(child!); } } @Component( selector: 'test', template: ''' <has-content-child> <child></child> </has-content-child> ''', directives: [Child, HasContentChild], ) class TestContentChild { @ViewChild(HasContentChild) HasContentChild? child; } @Component( selector: 'has-content-children', template: '<ng-content></ng-content>', ) class HasContentChildren { HasContentChildren(this._changeDetectorRef, this._ngZone); final ChangeDetectorRef _changeDetectorRef; final NgZone _ngZone; List<Child> _children = []; var _value = ''; @ContentChildren(Child) set children(List<Child> value) { _children = value; _ngZone.runAfterChangesObserved(() => update(_value)); } void update(String value) { _value = value; for (final child in _children) { child.value = value; _changeDetectorRef.markChildForCheck(child); } } } @Component( selector: 'test', template: ''' <has-content-children> <child></child> <child></child> <child></child> </has-content-children> ''', directives: [Child, HasContentChildren], ) class TestContentChildren { @ViewChild(HasContentChildren) HasContentChildren? child; } @Component( selector: 'test', template: '<child></child>', directives: [Child], ) class TestViewChild { TestViewChild(this._changeDetectorRef); final ChangeDetectorRef _changeDetectorRef; @ViewChild(Child) Child? child; void update(String value) { child!.value = value; _changeDetectorRef.markChildForCheck(child!); } } @Component( selector: 'test', template: ''' <child></child> <child></child> <child></child> ''', directives: [Child], ) class TestViewChildren { TestViewChildren(this._changeDetectorRef); final ChangeDetectorRef _changeDetectorRef; @ViewChildren(Child) List<Child>? children; void update(String value) { for (final child in children!) { child.value = value; _changeDetectorRef.markChildForCheck(child); } } } abstract class HasValue { String? value; } @Component( selector: 'child', template: '{{value}}', providers: [ ExistingProvider(HasValue, ChildWithExistingProvider), ], changeDetection: ChangeDetectionStrategy.OnPush, ) class ChildWithExistingProvider implements HasValue { @override var value = ''; } @Component( selector: 'has-content-children', template: '<ng-content></ng-content>', ) class HasExistingProviderContentChildren { HasExistingProviderContentChildren(this._changeDetectorRef); final ChangeDetectorRef _changeDetectorRef; @ContentChildren(HasValue) List<HasValue>? children; void update(String value) { for (final child in children!) { child.value = value; _changeDetectorRef.markChildForCheck(child); } } } @Component( selector: 'test', template: ''' <has-content-children> <child></child> <child></child> <child></child> </has-content-children> ''', directives: [ChildWithExistingProvider, HasExistingProviderContentChildren], ) class TestExistingProviderContentChildren { @ViewChild(HasExistingProviderContentChildren) HasExistingProviderContentChildren? child; } @Component( selector: 'test', template: ''' <child></child> <child></child> <child></child> ''', directives: [ChildWithExistingProvider], ) class TestExistingProviderViewChildren { TestExistingProviderViewChildren(this._changeDetectorRef); final ChangeDetectorRef _changeDetectorRef; @ViewChildren(HasValue) List<HasValue>? children; void update(String value) { for (final child in children!) { child.value = value; _changeDetectorRef.markChildForCheck(child); } } } @Component( selector: 'test', template: ''' <has-content-children> <child></child> <child *ngIf="isSecondChildVisible"></child> <ng-container *ngIf="areRemainingChildrenVisible"> <child></child> <child *ngIf="areRemainingChildrenVisible"></child> </ng-container> </has-content-children> ''', directives: [Child, HasContentChildren, NgIf], ) class TestEmbeddedContentChildren { var isSecondChildVisible = false; var areRemainingChildrenVisible = false; @ViewChild(HasContentChildren) HasContentChildren? child; } @Component( selector: 'test', template: ''' <child></child> <child *ngIf="isSecondChildVisible"></child> <ng-container *ngIf="areRemainingChildrenVisible"> <child></child> <child *ngIf="areRemainingChildrenVisible"></child> </ng-container> ''', directives: [Child, NgIf], ) class TestEmbeddedViewChildren { TestEmbeddedViewChildren(this._changeDetectorRef, this._ngZone); final ChangeDetectorRef _changeDetectorRef; final NgZone _ngZone; var isSecondChildVisible = false; var areRemainingChildrenVisible = false; List<Child> _children = []; var _value = ''; @ViewChildren(Child) set children(List<Child> value) { _children = value; _ngZone.runAfterChangesObserved(() => update(_value)); } void update(String value) { _value = value; for (final child in _children) { child.value = value; _changeDetectorRef.markChildForCheck(child); } } } ```
```javascript /** * Validates that the the value is between a {@link #min} and {@link #max}. */ Ext.define('Ext.data.validator.Range', { extend: 'Ext.data.validator.Bound', alias: 'data.validator.range', type: 'range', config: { /** * @cfg {Number} min * The minimum value. */ /** * @cfg {Number} max * The maximum value. */ /** * @inheritdoc */ minOnlyMessage: 'Must be must be at least {0}', /** * @inheritdoc */ maxOnlyMessage: 'Must be no more than than {0}', /** * @inheritdoc */ bothMessage: 'Must be between {0} and {1}', /** * @cfg {String} nanMessage * The error message to return when the value is not numeric. */ nanMessage: 'Must be numeric' }, validateValue: function(value) { var msg = this.callParent([value]); if (msg === true && isNaN(value)) { msg = this.getNanMessage(); } return msg; } }); ```
Sulfolene, or butadiene sulfone is a cyclic organic chemical with a sulfone functional group. It is a white, odorless, crystalline, indefinitely storable solid, which dissolves in water and many organic solvents. The compound is used as a source of butadiene. Production Sulfolene is formed by the cheletropic reaction between butadiene and sulfur dioxide. The reaction is typically conducted in an autoclave. Small amounts of hydroquinone or pyrogallol are added to inhibit polymerization of the diene. The reaction proceeds at room temperature over the course of days. At 130 °C, only 30 minutes are required. An analogous procedure gives the isoprene-derived sulfone. Reactions Acid-base reactivity The compound is unaffected by acids. It can even be recrystallized from conc. HNO3. The protons in the 2- and 5-positions rapidly exchange with deuterium oxide under alkaline conditions. Sodium cyanide catalyzes this reaction. Isomerization to 2-sulfolene In the presence of base or cyanide, 3-sulfolene isomerizes to a mixture of 2-sulfolene and 3-sulfolene. At 50 °C an equilibrium mixture is obtained containing 42% 3-sulfolene and 58% 2-sulfolene. The thermodynamically more stable 2-sulfolene can be isolated from the mixture of isomers as pure substance in the form of white plates (m.p. 48-49 °C) by heating for several days at 100 °C, because of the thermal decomposition of the 3-sulfolene at temperatures above 80 °C. Hydrogenation Catalytic hydrogenation yields sulfolane, a solvent used in the petrochemical industry for the extraction of aromatics from hydrocarbon streams. The hydrogenation of 3-sulfolene over Raney nickel at approx. 20 bar and 60 °C gives sulfolane in yields of up to 65% only because of the poisoning of the catalyst by sulfur compounds. Halogenation 3-Sulfolene reacts in aqueous solution with bromine to give 3,4-dibromotetrohydrothiophene-1,1-dioxide, which can be dehydrobrominated to thiophene-1,1-dioxide with silver carbonate. Thiophene-1,1-dioxide, a highly reactive species, is also accessible via the formation of 3,4-bis(dimethylamino)tetrahydrothiophene-1,1-dioxide and successive double quaternization with methyl iodide and Hofmann elimination with silver hydroxide. A less cumbersome two-step synthesis is the two-fold dehydrobromination of 3,4-dibromotetrohydrothiophene-1,1-dioxide with either powdered sodium hydroxide in tetrahydrofuran (THF) or with ultrasonically dispersed metallic potassium. Diels-Alder reactions 3-sulfolene is mainly valued as a stand-in for butadiene. The in situ production and immediate consumption of 1,3-butadiene largely avoids contact with the diene, which is a gas at room temperature. One potential drawback, aside from expense, is that the evolved sulfur dioxide can cause side reactions with acid-sensitive substrates. Diels-Alder reaction between 1,3-butadiene and dienophiles of low reactivity usually requires prolonged heating above 100 °C. Such procedures are rather dangerous. If neat butadiene is used, special equipment for work under elevated pressure is required. With sulfolene no buildup of butadiene pressure could be expected as the liberated diene is consumed in the cycloaddition, and therefore the equilibrium of the reversible extrusion reaction acts as an internal "safety valve". 3-Sulfolene reacts with maleic anhydride in boiling xylene to cis-4-cyclohexene-1,2-dicarboxylic anhydride, obtaining yields of up to 90%. 3-Sulfolene reacts also with dienophiles in trans configuration (such as diethyl fumarate) at 110 °C with SO2 elimination in 66–73% yield to the trans-4-cyclohexene-1,2-dicarboxylic diethyl ester. 6,7-Dibromo-1,4-epoxy-1,4-dihydronaphthalene (6,7-Dibromonaphthalene-1,4-endoxide, accessible after debromination from 1,2,4,5-tetrabromobenzene using an equivalent of n-butyllithium and Diels-Alder reaction in furan in 70% yield) reacts with 3-sulfolene in boiling xylene to give a tricyclic adduct. This precursor yields, after treatment with perchloric acid, a dibromo dihydroanthracene which is dehydrogenated in the last step with 2,3-dichloro-5,6-dicyano-1,4-benzoquinone (DDQ) to 2,3-dibromoanthracene. 1,3-Butadiene (formed in the retro-cheletrophic reaction of 3-sulfolene) reacts with dehydrobenzene (benzyne, obtained by thermal decomposition of benzenediazonium-2-carboxylate) in a Diels-Alder reaction in 9% yield to give 1,4-dihydronaphthalene. 2- and 3-Sulfolenes as a dienophile In the presence of very reactive dienes (for example 1,3-diphenylisobenzofuran) butadienesulfone behaves as a dienophile and forms the corresponding Diels-Alder adduct. As early as 1938, Kurt Alder and co-workers reported Diels-Alder adducts from the isomeric 2-sulfolene with 1,3-butadiene and 2-sulfolene with cyclopentadiene. Other cycloadditions The base-catalyzed reaction of 3-sulfolene with carbon dioxide at 3 bar pressure produces 3-sulfolene-3-carboxylic acid in 45% yield. With diazomethane, 3-sulfolene forms in a 1,3-dipolar cycloadduct: Polymerization In 1935, H. Staudinger and co-workers found that the reaction of butadiene and SO2 at room temperature gives a second product in addition to 3-sulfolene. This second product is an amorphous solid polymer. By free-radical polymerization of 3-sulfolene in peroxide-containing diethyl ether, up to 50% insoluble high-molecular-weight poly-sulfolene was obtained. The polymer resists degradation by sulfuric and nitric acids. In subsequent investigations, polymerization of 3-sulfolene was initiated above 100 °C with the radical initiator azobis(isobutyronitrile) (AIBN). 3-sulfolene does not copolymerize with vinyl compounds, however. On the other hand, 2-sulfolene does not homopolymerize, but forms copolymers with vinyl compounds, e.g. acrylonitrile and vinyl acetate. 3-Sulfolene as a recyclable solvent The reversibility of the interconversion of 3-sulfolene with buta-1,3-diene and sulfur dioxide suggests the use of sulfolene as a recyclable aprotic dipolar solvent, in replacement for dimethyl sulfoxide (DMSO), which is often used but difficult to separate and poorly reusable. As a model reaction, the reaction of benzyl azide with 4-toluenesulfonic acid cyanide forming 1-benzyl-5-(4-toluenesulfonyl)tetrazole was investigated. The formation of the tetrazole can also be carried out as a one-pot reaction without the isolation of the benzyl azide with 72% overall yield. After the reaction, the solvent 3-sulfolene is decomposed at 135 °C and the volatile butadiene (b.p. −4.4 °C) and sulfur dioxide (b.p. −10.1 °C) are deposited in a cooling trap at −76 °C charged with excess sulfur dioxide. After the addition of hydroquinone as polymerization inhibition, 3-sulfoles is formed again quantitatively upon heating to room temperature. It appears questionable though, if 3-sulfolene with a useful liquid phase range of only 64 to a maximum of about 100 °C can be used as DMSO substitutes (easy handling, low cost, environmental compatibility) in industrial practice. Uses Aside from its synthetic versatility (see above), sulfolene is used as an additive in electrochemical fluorination. It can increase the yield of perfluorooctanesulfonyl fluoride by about 70%. It is "highly soluble in anhydrous HF and increases the conductivity of the electrolyte solution". In this application, it undergoes a ring opening and is fluorinated to form perfluorobutanesulfonyl fluoride. Further reading References Reagents for organic chemistry Sulfones
```c /* * */ #include "mock.h" #include <zephyr/acpi/acpi.h> #include <acpi.h> #include <accommon.h> #include <zephyr/fff.h> FAKE_VOID_FUNC_VARARG(AcpiInfo, const char *, ...); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInstallNotifyHandler, ACPI_HANDLE, UINT32, ACPI_NOTIFY_HANDLER, void *); FAKE_VOID_FUNC_VARARG(AcpiException, const char *, UINT32, ACPI_STATUS, const char *, ...); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeSubsystem); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeTables, ACPI_TABLE_DESC *, UINT32, BOOLEAN); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiEnableSubsystem, UINT32); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeObjects, UINT32); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiLoadTables); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiNsInternalizeName, const char *, char **); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiNsLookup, ACPI_GENERIC_STATE *, char *, ACPI_OBJECT_TYPE, ACPI_INTERPRETER_MODE, UINT32, ACPI_WALK_STATE *, struct acpi_namespace_node **); FAKE_VOID_FUNC(AcpiOsFree, void *); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetHandle, ACPI_HANDLE, const char *, ACPI_HANDLE *); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiEvaluateObject, ACPI_HANDLE, ACPI_STRING, ACPI_OBJECT_LIST *, ACPI_BUFFER *); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetObjectInfo, ACPI_HANDLE, struct acpi_device_info **); FAKE_VALUE_FUNC(char *, AcpiNsGetNormalizedPathname, ACPI_NAMESPACE_NODE *, BOOLEAN); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetCurrentResources, ACPI_HANDLE, ACPI_BUFFER *); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiWalkNamespace, ACPI_OBJECT_TYPE, ACPI_HANDLE, UINT32, ACPI_WALK_CALLBACK, ACPI_WALK_CALLBACK, void *, void **); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetPossibleResources, ACPI_HANDLE, ACPI_BUFFER *); FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetTable, char *, UINT32, struct acpi_table_header **); FAKE_VALUE_FUNC(uint32_t, arch_acpi_encode_irq_flags, uint8_t, uint8_t); ```
Wolfiporia extensa (Peck) Ginns (syn. Poria cocos F.A.Wolf) is a fungus in the family Polyporaceae. It is a wood-decay fungus but has a subterranean growth habit. It is notable in the development of a large, long-lasting underground sclerotium that resembles a small coconut. This sclerotium called "(Chinese) Tuckahoe" or fu-ling (), is not the same as the true tuckahoe used as Indian bread by Native Americans, which is the arrow arum, Peltandra virginica, a flowering tuberous plant in the arum family. W. extensa is also used extensively as a medicinal mushroom in Chinese medicine. Indications for use in the traditional Chinese medicine include promoting urination, to invigorate the spleen function (i.e., digestive function), and to calm the mind. Names Common names include hoelen, poria, tuckahoe, China root, fu ling (, pīnyīn: fúlíng), and matsuhodo. Botanical extract Wolfiporia extensa is a source of a triterpenoid compound, pachymic acid, which has been the object of scientific study based upon the mushroom's role in traditional Chinese medicine. The species is often called cocos in this context. References External links Hoelen (Poria) Medicinal Mushrooms: Their Therapeutic Properties and Current Medical Usage with Special Emphasis on Cancer Treatments by Cancer Research UK, 2001 Fungi described in 1891 Fungi of Asia Fungi of North America Medicinal fungi Polyporaceae Fungi used in traditional Chinese medicine Taxa named by Charles Horton Peck
The Grove Resort & Water Park (also known as The Grove Resort or simply The Grove) is a resort and water park in Winter Garden, Florida, United States, located west of the Walt Disney World Resort near Orlando. The resort property features the Surfari Water Park, multiple restaurants, a grocery market, a spa, and an amusement arcade. History The Grove Resort property was originally developed as the Grand Palisades timeshare, completed and foreclosed for $150 million in 2008 during the Great Recession. The building remained vacant since then and was sold to Fort Lauderdale-based company BTI Partners and Wilton, Connecticut-based Westport Capital Partners LLC in October 2014 for $69 million. $200 million renovations, which included the removal of dated late-2000s furniture, carpets, and colors, began in April 2016. The first tower, the Premier Tower, completed renovations in February 2017, with the opening of 184 of the resort's 878 rooms, a pool area, the Escape spa, a lounge, and the Element and Zest restaurants, and the Alfresco Market and Valencia restaurant opening soon after. The Marquis Tower, Surfari Water Park, and Flip Flop's Family Fun Center opened in 2018 and the third and final Sterling Tower opened in November 2019. At northern end of the resort property, development on The Terraces vacation homes began in the summer of 2020. The phase will add 160 vacation homes and will be completed in 2022. Surfari Water Park The Surfari Water Park, which was opened in early 2018 as a $20 million investment, includes a FlowRider surfing simulator, a 700-foot lazy river, dual water slides, a family swimming pool, and the Longboard Bar & Grill. References Resorts in Florida Hotels in Orlando, Florida 2016 establishments in Florida
Həsənqulular (Hasangulular) is a village de jure in the Shusha District of Azerbaijan, de facto in the Shushi Province of the self-proclaimed Republic of Artsakh. References Populated places in Shusha District
```objective-c // // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // // ViewController.m // AdMobExample // // [START firebase_banner_example] #import "ViewController.h" @import GoogleMobileAds; /** * AdMob ad unit IDs are not currently stored inside the google-services.plist file. Developers * using AdMob can store them as custom values in another plist, or simply use constants. Note that * these ad units are configured to return only test ads, and should not be used outside this sample. */ static NSString *const kBannerAdUnitID = @"ca-app-pub-3940256099942544/2934735716"; static NSString *const kInterstitialAdUnitID = @"ca-app-pub-3940256099942544/4411468910"; @interface ViewController () <GADFullScreenContentDelegate> /** * @property * A UIView subclass that displays ads capable of responding to user touch. */ @property(nonatomic, weak) IBOutlet GADBannerView *bannerView; /** * @property * A UIView subclass that displays ads capable of responding to user touch. */ @property(nonatomic, strong, nullable) GADInterstitialAd *interstitial; @property (weak, nonatomic) IBOutlet UIButton *interstitialButton; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.bannerView.adUnitID = kBannerAdUnitID; self.bannerView.rootViewController = self; [self.bannerView loadRequest:[GADRequest request]]; // [END firebase_banner_example] // [START firebase_interstitial_example] [self createAndLoadInterstitial]; } - (void)createAndLoadInterstitial { [GADInterstitialAd loadWithAdUnitID:kInterstitialAdUnitID request:[GADRequest request] completionHandler:^(GADInterstitialAd *ad, NSError *error) { if (error != nil) { // For more fine-grained error handling, take a look at the values in GADErrorCode. NSLog(@"Error loading ad: %@", error); } self.interstitial = ad; self.interstitialButton.enabled = YES; }]; } - (void)adDidDismissFullScreenContent:(id<GADFullScreenPresentingAd>)ad { self.interstitialButton.enabled = NO; [self createAndLoadInterstitial]; } - (void)ad:(id<GADFullScreenPresentingAd>)ad didFailToPresentFullScreenContentWithError:(NSError *)error { NSLog(@"Error presenting ad: %@", ad); } - (IBAction)didTapInterstitialButton:(id)sender { if (self.interstitial != nil) { [self.interstitial presentFromRootViewController:self]; } } @end // [END firebase_interstitial_example] ```
Martin Wright (born July 15, 1964), better known by the ring name The Boogeyman, is an American semi-retired professional wrestler. He is currently signed to WWE under a legends contract, and is an aerobics instructor. Professional wrestling career World Wrestling Entertainment (2004–2009) Tough Enough and Ohio Valley Wrestling (2004–2005) Wright first entered the world of professional wrestling to take part in the fourth season of the World Wrestling Entertainment (WWE) produced reality television competition Tough Enough. On October 15, 2004, he attended the two-day event in Venice Beach, California, where he was among eight finalists chosen. After surviving the first day of eliminations he admitted that he was actually 40 years old—five years over the competition's cut off point—and not 30 as he'd claimed. As a result, he was cut from the competition. Though he had been cut from Tough Enough, WWE officials invited him to come to their developmental territory Ohio Valley Wrestling (OVW) for possible training. He trained between January and June 2005, making his OVW debut on June 25, 2005. During a dark match pitting the team of Seth Skyfire and Robert Fury against Robbie Dawber and his partner, Wright entered the ring and squashed all three men, no-selling the offense of Skyfire in the process. He then announced that he was "The Boogeyman" before leaving the building. The Boogeyman gimmick further evolved into a "monster" face who would appear when another wrestler said his name and attack him, while not selling any offense he received. SmackDown! (2005–2007) On the July 11, 2005 episode of Raw, horror movie-style vignettes began airing to promote the debut of his "The Boogeyman" gimmick, a horror-themed, disturbing, worm-devouring, Beetlejuice-like freak of nature. After a few weeks, the vignettes were moved from Raw to SmackDown!, but the planned debut was delayed when Wright hyperextended both knees and needed time to recover. He made his debut on the October 14, 2005 episode of SmackDown!, being brought in by network executive Palmer Cannon as part of a "new talent initiative". The storyline referenced to vignettes months ago as promos for a television series on the network called "The Boogeyman". The show was cancelled before it could air, but they still had the actor under contract, so he was brought to SmackDown! to wrestle. The Boogeyman then proceeded to recite a modified version of the chant One, two, Freddy's coming for you from the movie A Nightmare on Elm Street before smashing an oversized alarm clock on his own head. For the next few weeks, The Boogeyman appeared in unexpected places backstage (closets, vans, et cetera), reciting different nursery rhymes and holding up clocks before screaming his catchphrase "I'm The Boogeyman and I'm comin' to get'cha!" and laughing maniacally. At Survivor Series, The Boogeyman helped SmackDown! general manager Theodore Long defeat his Raw counterpart, Eric Bischoff. He made his official in-ring debut on the December 2 episode of SmackDown!, defeating Simon Dean in a squash. During this match, he took a handful of live worms from his pocket and stuffed them into his mouth. Over the next few weeks, Boogeyman's opponents were generally "flattened" in the ring, left with worms in their mouths and/or spit on their faces. His official pay-per-view debut was at December's Armageddon when he came to the ring to confront Vito and Nunzio who were dressed as Santa Claus and an elf. Boogeyman's first major feud occurred with John Bradshaw Layfield (JBL) and his "fixer" Jillian Hall, and it began when he stalked the duo throughout a number of shows. During the January 6 episode of SmackDown!, he caught a fleeing Hall and shoved worms down the back of her skirt. On the January 13 taping of SmackDown!, during a Piper's Pit segment, The Boogeyman not only sniffed a "growth" on Jillian's face, but then licked it, bit it off and ate it. The Boogeyman faced JBL at the Royal Rumble, winning in under two minutes. After defeating The Dicks in a handicap match on the February 24 episode of SmackDown!, The Boogeyman dumped a bucket of worms on the announce table, frightening special guest commentators Booker T and his wife Sharmell. The Boogeyman subsequently began to stalk Booker T and Sharmell over the next few weeks. He and Booker T were set to face off on the March 18 Saturday Night's Main Event XXXII, but the match was canceled due to Booker T faking a knee injury to escape competition. The feud eventually culminated at WrestleMania 22, with The Boogeyman defeating Booker T and Sharmell in a handicap match. During the match, Boogeyman kissed Sharmell with a mouthful of worms. The match had to be cut short because of a biceps tear at a house show. To explain his absence to rehab his injury, Booker T and Sharmell obtained a restraining order against The Boogeyman on the April 7 episode of SmackDown!. As SummerSlam approached, The Boogeyman began appearing in TV spots to promote the event. Vignettes also began airing advertising his return to SmackDown!. On September 20, WWE.com reported that Wright had been released from the company, however, on October 6, WWE.com announced that Wright had re-signed with the company and would be sent to be trained at Booker T and Stevie Ray's wrestling school in Houston, Texas. Wright returned on the October 27 episode of SmackDown!, attacking and spitting worms into the faces of The Miz and Kristal Marshall. During the feud he again terrorized and stalked his opponents, and eventually ended The Miz's undefeated streak at the Armageddon pay-per-view on December 17. Wright then feuded with Finlay, who ended The Boogeyman's undefeated streak when Hornswoggle interfered. On the February 2 edition of SmackDown! during a match against Chris Benoit for the WWE United States Championship, Boogeyman abducted Hornswoggle, distracting Finlay and giving Benoit a chance to win the match with a roll-up. On the February 16 edition of SmackDown! The Boogeyman appeared with a little person of his own, Little Boogeyman, who was portrayed by an actor named Chris Hollyfield. His purpose was to counteract Hornswoggle, who was proving a problem in one-on-one matches with Finlay. The Boogeyman and the Little Boogeyman lost to Finlay and Hornswoggle in a mixed tag team match at No Way Out. The team lost a rematch the following week on SmackDown!; Little Boogeyman was pinned by Finlay, after Wright had chased away Hornswoggle. On OVW's 400th anniversary show, The Boogeyman made an appearance, losing to Ryan Wilson in a tables match. The Boogeyman returned to in ring action when teamed with Kane during his feud with William Regal and Dave Taylor. This also marked the return of Little Boogeyman. The feud would be short lived as Boogeyman and Little Boogeyman would then start another feud with Finlay and Hornswoggle. Boogeyman and Little Boogeyman were defeated in a mixed tag match by Finlay and Hornswoggle at Saturday Night's Main Event XXXIV on June 2. The Boogeyman ended his tenure on SmackDown! with a loss to Mark Henry in a squash match, as part of Henry's new "Path of Destruction" gimmick. After that match, Mark Henry then beat up Little Boogeyman who was at ringside, and Henry gave him a body splash, (kayfabe) severely injuring him. ECW and departure (2007–2009) On the June 11 edition of Raw, The Boogeyman was drafted to the ECW brand in the annual WWE draft. The next day he debuted for the brand and defeated Matt Striker, beginning a feud with him. On July 10 in New Orleans, The Boogeyman was a guest during a Striker's Classroom segment, ostensibly to be educated on worms, only to be attacked by Striker's debuting enforcer, Big Daddy V. The Boogeyman was not seen for the next three weeks, finally re-emerging on the July 31 episode—with a new face paint design and black contact lenses—to scare Big Daddy V off after he finished a match. Boogeyman was taken out by Big Daddy V from behind after a distraction from Striker a week later. On the August 14 episode of ECW, Boogeyman scored a disqualification victory over ECW Champion John Morrison after Morrison shoved the referee. Boogeyman went on to successfully team with CM Punk at Saturday Night's Main Event XXXV on August 18 against Morrison and Big Daddy V. On the August 28 episode of ECW, Boogeyman was one of the participants in the Fatal Four Way match for a shot at Morrison's title; however, CM Punk was the victor. On September 4, on ECW, Boogeyman defeated Matt Striker by disqualification when Big Daddy V interfered, and went on to hit Boogeyman with a ghetto drop on the outside of the ring. On the September 18 episode of ECW, Boogeyman and Big Daddy V finally faced off in their first one-on-one match, which Boogeyman lost. Boogeyman's return to wrestling action was initially delayed due to a torn calf muscle, but it had also been reported that he was having dental surgery done to replace missing teeth. On the October 7 episode of ECW a vignette was aired promoting The Boogeyman's return. Additional vignettes aired for a few weeks after that. On the October 13, 2008 edition of Raw, The Boogeyman made his return, appearing during a segment with Jackasss Johnny Knoxville, Chris Pontius, and Big Dick Johnson ending with The Boogeyman bringing live worms out of a bag and after putting them in his own mouth spat them into the mouth of Pontius. The Boogeyman made his ECW return on the November 25 episode, in a segment with John Morrison and The Miz. He made his return to in ring competition on December 9 against Scott Reed, a local talent, who he defeated with ease. On the December 30 episode of ECW, he lost to John Morrison and The Miz in a No DQ match with Finlay as his partner. On the January 20, 2009 edition of ECW, he defeated Paul Burchill by disqualification, his first victory over a non-enhancement talent since returning to the brand. His last appearance on WWE programming was on the March 3 episode of ECW where he lost in a match against Kane. The next day on March 4, 2009, WWE announced that they had released Wright from his WWE contract. Independent circuit (2010–present) After WWE, Wright returned to the Pro Wrestling Alliance using his Boogeyman gimmick. He wrestled at the Cyberstarz event of Millennium Wrestling Federation in February 2012, where he defeated Lukas Sharp. Return to WWE (2012–present) On the December 16, 2012 episode of Raw, Wright returned as The Boogeyman during the Slammy Awards, sneaking up on former rival Booker T. Boogeyman appeared in Halloween themed videos on the WWE YouTube channel in both November 2013 and October 2014. On the December 22, 2014 episode of Raw, Boogeyman appeared in a segment on the WWE App. On January 25, 2015, at the Royal Rumble, Boogeyman entered the Royal Rumble match as a surprise entrant at number 7, marking his first WWE in–ring performance in almost six years, but he was quickly eliminated by Bray Wyatt. On November 6, it was announced that Wright has signed a legends contract (a long-term deal to make infrequent, non-wrestling appearances) with WWE. On January 22, 2018, Boogeyman made an appearance on Raw 25 Years. On July 22, 2019, Boogeyman appeared at the Raw Reunion show, and scared Drake Maverick in the locker room, helping Pat Patterson pin Maverick and win the WWE 24/7 Championship. On January 4, 2021, Boogeyman once again appeared on the Raw Legends Night special and scared 24/7 Champion Angel Garza, allowing R-Truth to pin him and win the title. Personal life As of 2018, Wright was working as an aerobics instructor in Denver, Colorado. Wright has his own training facility in Boulder, Colorado, from which he regularly posts videos of himself helping others lose weight and get in shape. Other media In January 2013, Wright appeared on two short promos featuring Bobby Lashley to promote Lashley's family fitness center in Aurora, Colorado named American Top Team Altitude. In 2015, Wright appeared in two episodes of the WWE Network series, Swerved, a hidden camera prank show by Jackass co-creator Jeff Tremaine. In 2018, he appeared on the House Hardy Halloween special that aired on WWE Network. Wright made his video game debut as a playable character in WWE SmackDown vs. Raw 2007 and also appeared in WWE SmackDown vs. Raw 2009, WWE 2K Battlegrounds (as DLC) , WWE 2K22 (as DLC) and WWE 2K23. Championships and accomplishmentsAlabama Wrestling FederationAWF Tag Team Championship (1 time) – with Bobby LashleyPro Wrestling Illustrated''Rookie of the Year (2006) Ranked No. 114''' of the top 500 singles wrestlers in the PWI 500 in 2007 References External links 1964 births 21st-century African-American people 20th-century African-American sportspeople 20th-century professional wrestlers 21st-century professional wrestlers African-American male professional wrestlers American male professional wrestlers Living people Professional wrestlers who use face paint Professional wrestlers from Arizona Sportspeople from Phoenix, Arizona Tough Enough contestants
Ranald is a name. Ranald may also refer to: 4248 Ranald, asteroid Clan Ranald SS Clan Ranald (1900), ship wrecked off Australia See also
```xml import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'filtroArray' }) export class FiltroArrayPipe implements PipeTransform { transform(value: any, args?: any): any { if (value.length === 0 || args === undefined){ return value; } let filter = args.toLocaleLowerCase(); return value.filter( v => v.toLocaleLowerCase().includes(filter) ); } } ```
```smalltalk using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Threading; namespace g3 { // // Write OFF mesh format // path_to_url // public class OFFWriter : IMeshWriter { public IOWriteResult Write(BinaryWriter writer, List<WriteMesh> vMeshes, WriteOptions options) { return new IOWriteResult(IOCode.FormatNotSupportedError, "binary write not supported for OFF format"); } public IOWriteResult Write(TextWriter writer, List<WriteMesh> vMeshes, WriteOptions options) { int N = vMeshes.Count; writer.WriteLine("OFF"); string three_floats = Util.MakeVec3FormatString(0, 1, 2, options.RealPrecisionDigits); int nTotalV = 0, nTotalT = 0, nTotalE = 0; // OFF only supports one mesh, so have to collapse all input meshes // into a single list, with mapping for triangles // [TODO] can skip this if input is a single mesh! int[][] mapV = new int[N][]; for ( int mi = 0; mi < N; ++mi ) { nTotalV += vMeshes[mi].Mesh.VertexCount; nTotalT += vMeshes[mi].Mesh.TriangleCount; nTotalE += 0; mapV[mi] = new int[vMeshes[mi].Mesh.MaxVertexID]; } writer.WriteLine(string.Format("{0} {1} {2}", nTotalV, nTotalT, nTotalE)); // write all vertices, and construct vertex re-map int vi = 0; for (int mi = 0; mi < N; ++mi) { IMesh mesh = vMeshes[mi].Mesh; if (options.ProgressFunc != null) options.ProgressFunc(mi, 2*(N - 1)); foreach (int vid in mesh.VertexIndices()) { Vector3d v = mesh.GetVertex(vid); writer.WriteLine(three_floats, v.x, v.y, v.z); mapV[mi][vid] = vi; vi++; } } // write all triangles for (int mi = 0; mi < N; ++mi) { IMesh mesh = vMeshes[mi].Mesh; if (options.ProgressFunc != null) options.ProgressFunc(N + mi, 2*(N - 1)); foreach ( int ti in mesh.TriangleIndices() ) { Index3i t = mesh.GetTriangle(ti); t[0] = mapV[mi][t[0]]; t[1] = mapV[mi][t[1]]; t[2] = mapV[mi][t[2]]; writer.WriteLine(string.Format("3 {0} {1} {2}", t[0], t[1], t[2])); } } return new IOWriteResult(IOCode.Ok, ""); } } } ```
Diego Cammarata (born 27 March 1951) is an Italian politician. He was member of The People of Freedom Party. He has served as Mayor of Palermo from 2001 to 2012. He was provincial coordinator of Forza Italia from 1996 to 2001. He was elected president of Associazione Nazionale Comuni Italiani in Sicily on 22 July 2008. He resigned as mayor of Palermo in January 2012, a few months before the natural expiry. Biography Diego Cammarata was born in Palermo, Italy on 1951. He has been a professor of information and communication law and of image promotion theory and technique at the University of Palermo. See also List of mayors of Palermo References External links Diego Cammarata on Openpolis Living people 1951 births Jurists from Palermo The People of Freedom politicians 21st-century Italian politicians 20th-century Italian politicians Mayors of Palermo 20th-century Italian lawyers Academic staff of the University of Palermo
Mahtowa Township ( ) is a township in Carlton County, Minnesota, United States. The population was 494 as of the 2000 census. The name Mahtowa was derived from a Native American term meaning "bear" or "grass lands". Interstate 35 serves as a main route in the township. Geography According to the United States Census Bureau, the township has a total area of 24.1 square miles (62.5 km2), of which 23.8 square miles (61.7 km2) is land and 0.3 square mile (0.9 km2) (1.41%) is water. Unincorporated communities Mahtowa Major highway Interstate 35 Lakes Benfield Lake Ellstrom Lake (west quarter) Flodeen Lake (west edge) Hizer Lake Katzel Lake (north three-quarters) Munson Lake Sandy Lake (west half) Park Lake Adjacent townships Atkinson Township (north) Twin Lakes Township (northeast) Blackhoof Township (east) Barnum Township (south) Skelton Township (west) Demographics As of the census of 2000, there were 494 people, 189 households, and 147 families residing in the township. The population density was . There were 211 housing units at an average density of . The racial makeup of the township was 96.56% White, 0.20% African American, 1.01% Native American, 0.40% Asian, 0.40% from other races, and 1.42% from two or more races. Hispanic or Latino of any race were 0.61% of the population. 27.1% were of Swedish, 19.3% German, 13.2% Norwegian, 9.2% Finnish, 6.7% English and 5.6% Polish ancestry according to Census 2000. There were 189 households, out of which 33.3% had children under the age of 18 living with them, 65.1% were married couples living together, 6.9% had a female householder with no husband present, and 22.2% were non-families. 19.6% of all households were made up of individuals, and 9.5% had someone living alone who was 65 years of age or older. The average household size was 2.61 and the average family size was 2.96. In the township the population was spread out, with 24.7% under the age of 18, 7.1% from 18 to 24, 26.3% from 25 to 44, 29.6% from 45 to 64, and 12.3% who were 65 years of age or older. The median age was 41 years. For every 100 females, there were 101.6 males. For every 100 females age 18 and over, there were 100.0 males. The median income for a household in the township was $43,750, and the median income for a family was $53,750. Males had a median income of $42,375 versus $24,531 for females. The per capita income for the township was $17,832. About 5.0% of families and 4.1% of the population were below the poverty line, including 0.8% of those under age 18 and 8.7% of those age 65 or over. References United States National Atlas United States Census Bureau 2007 TIGER/Line Shapefiles United States Board on Geographic Names (GNIS) Townships in Carlton County, Minnesota Townships in Minnesota
Anti-Japanese sentiment in the United States has existed since the late 19th century, especially during the Yellow Peril, which had also extended to other Asian immigrants. Anti-Japanese sentiment in the United States would peak during World War II, when they were belligerents in the Pacific War theater. After the war, the rise of Japan as a major economic power was seen as a widespread economic threat to the United States and also led to a renewal of anti-Japanese sentiment, known as Japan bashing. Origins In the United States, anti-Japanese sentiment had its beginnings well before World War II. Racial prejudice against Asian immigrants began building soon after Chinese workers started arriving in the country in the mid-19th century, and set the tone for the resistance Japanese would face in the decades to come. Although Chinese were heavily recruited in the mining and railroad industries initially, whites in Western states and territories came to view the immigrants as a source of economic competition and a threat to racial purity as their population increased. A network of anti-Chinese groups (many of which would reemerge in the anti-Japanese movement) worked to pass laws that limited Asian immigrants' access to legal and economic equality with whites. Most important of these discriminatory laws was the exclusion of Asians from citizenship rights. The Naturalization Act of 1870 revised the previous law, under which only white immigrants could become U.S. citizens, to extend eligibility to people of African descent. By designating Asians as permanent aliens, the law prohibited them from voting and serving on juries, which, combined with laws that prevented people of color from testifying against whites in court, made it virtually impossible for Asian Americans to participate in the country's legal and political systems. Also significant were alien land laws, which relied on coded language barring "aliens ineligible for citizenship" from owning land or real estate, and in some cases from even entering into a temporary lease, to discourage Asian immigrants from establishing homes and businesses in over a dozen states. These laws were greatly detrimental to the newly arrived immigrants, since many of them were farmers and had little choice but to become migrant workers. After the Chinese Exclusion Act of 1882 stopped immigration from China, American labor recruiters began targeting Japanese workers, triggering a rapid increase in the country's Japanese population, which in turn triggered the movement to decrease their number and restrict their economic and political power. Some cite the formation of the Asiatic Exclusion League as the start of the anti-Japanese movement in California, where, along with the Japanese American population, the exclusion movement was centered. Their efforts focused on ending Japanese immigration and, as with the previous anti-Chinese movement, nativist groups like the Asiatic Exclusion League lobbied to limit and finally, with the Immigration Act of 1924, ban Japanese and other East Asians from entering the U.S. However, in the process they created an atmosphere of systematic hostility and discrimination that would later contribute to the push to incarcerate 120,000 Japanese Americans during World War II. Early 20th century Anti-Japanese racism and fear of the Yellow Peril had become increasingly xenophobic in California after the Japanese victory over the Russian Empire in the Russo-Japanese War. On October 11, 1906, the San Francisco, California Board of Education passed a regulation whereby children of Japanese descent would be required to attend racially segregated and separate schools. At the time, Japanese immigrants made up approximately 1% of the population of California; many of them had come under the treaty in 1894 which had assured free immigration from Japan. In 1907, Californian nativists supporting exclusion of Japanese immigrants and maintenance of segregated schools for Caucasian and Japanese students rioted in San Francisco. Anti-Japanese organizations California Farm Bureau California Joint Immigration Committee Committee of One Thousand Japanese Exclusion League of California Native Sons and Daughters of the Golden West Anti-Japanese League of Washington Alien land laws The California Alien Land Law of 1913 was specifically created to prevent land ownership among Japanese citizens who were residing in the state of California. In State of California v. Jukichi Harada (1918), Judge Hugh H. Craig sided with the defendant and ruled that American children – who happened to be born to Japanese parents – had the right to own land. California proceeded to strengthen its Alien land law in 1920 and 1923. Other states passes similar laws including Washington in 1921 and Oregon in 1923. In State of California v. Oyama (1948), the U.S. Supreme Court ruled that California's Alien Land Law was anti-Japanese in concept, and deemed unfit to stand in America's law books. Justices Murphy and Rutledge wrote: It took four years for California's Supreme Court to concede that the law was unconstitutional, in State of California v. Fujii (1952). Finally, in 1956, California voters repealed the law. Anti-Japanese immigration agreements and legislation In 1907, the Gentlemen's Agreement was an informal deal between the governments of Japan and the U.S. It ended the immigration of Japanese laborers, though it did allow the immigration of spouses and children of Japanese immigrants already in the United States. The Immigration Act of 1924 banned the immigration of all but a few token Japanese. Passage of the Immigration Act contributed to the growth of anti-Americanism and ending of a growing democratic movement in Japan during this time period, opening the door to Japanese militarist government control. Japanese military activity prior to American entry in World War II The Japanese invasion of China in 1931 and the annexation of Manchuria was roundly criticized in the US. In addition, efforts by citizens who were outraged by Japanese atrocities, such as the Nanjing Massacre, led to calls for American economic intervention to encourage Japan to leave China; these calls played a role in shaping American foreign policy. As more and more unfavorable reports of Japanese actions came to the attention of the American government, embargoes on oil and other supplies were placed on Japan, out of concern for the safety of the Chinese populace and concern for the safety of American interests in the Pacific. Furthermore, the European American population became strongly pro-Chinese and strongly anti-Japanese, an example of which was a grass-roots campaign to ask women to stop buying silk stockings, because the material was procured from Japan through its colonies. European traders sought access to Chinese markets and resources. Chinese Americans were again distressed when an estimated 150,000 Taishanese locals died from starvation in Taishan County by the Japanese blockade, as Taishan County was the homeland of most Chinese Americans at that time. When the Second Sino-Japanese War broke out in 1937, Western public opinion was decidedly pro-China, with eyewitness reports by Western journalists on atrocities committed against Chinese civilians further strengthening anti-Japanese sentiments. African American sentiments at the time could be quite different than the mainstream, with organizations like the Pacific Movement of the Eastern World (PMEW) which promised equality and land distribution under Japanese rule. The PMEW had thousands of members hopefully preparing for liberation from white supremacy with the arrival of the Japanese Imperial Army. World War II The most profound cause of anti-Japanese sentiment outside of Asia had its beginning in the attack on Pearl Harbor, as it propelled the United States into World War II. The Americans were unified by the attack to fight against the Empire of Japan and its allies, the German Reich and the Kingdom of Italy. The bombing of Pearl Harbor by Japan on the neutral United States without warning and the deaths of almost 2,500 people during ongoing U.S./Japanese peace negotiations was presented to the American populace as an act of treachery, barbarism, and cowardice. Following the attack, many non-governmental "Jap hunting licenses" were circulated around the country. Life magazine published an article on how to distinguish a Japanese person from a Chinese person by the shape of the nose and the stature of the body. Japanese conduct during the war did little to quell anti-Japanese sentiment. Fanning the flames of outrage were the treatment of American and other prisoners of war. Military-related outrages included the murder of POWs, the use of POWs as slave labor for Japanese industries, the Bataan Death March, the kamikaze attacks on Allied ships, and atrocities committed on Wake Island and elsewhere. The Guadalacanal Diary, which was published in 1943, wrote about the accounts of American soldiers, collecting Japanese 'gold teeth' or body parts such as hands or ears, to keep as trophies. The diary became extremely popular within the United States during the Second World war. U.S. historian James J. Weingartner attributes the very low number of Japanese in U.S. POW compounds to two key factors: a Japanese reluctance to surrender and a widespread American "conviction that the Japanese were 'animals' or 'subhuman' and unworthy of the normal treatment accorded to POWs." The latter reasoning is supported by Niall Ferguson, who says that "Allied troops often saw the Japanese in the same way that Germans regarded Russians [sic] — as Untermenschen." Weingartner believes this explains the fact that a mere 604 Japanese captives were alive in Allied POW camps by October 1944. Ulrich Straus, a U.S. Japanologist, believed that front line troops intensely hated Japanese military personnel and were "not easily persuaded" to take or protect prisoners. They believed that Allied personnel who surrendered got "no mercy" from the Japanese. Allied soldiers believed that Japanese soldiers were inclined to feign surrender, in order to make surprise attacks. Therefore, according to Straus, "[s]enior officers opposed the taking of prisoners[,] on the grounds that it needlessly exposed American troops to risks..." Jap hunts The attack on Pearl Harbor on December 7, 1941 plunged the United States into war and planted the notion that the Japanese were treacherous and barbaric in the minds of Americans. The hysteria which enveloped the West Coast during the early months of the war, combined with long standing anti-Asian prejudices, set the stage for what was to come. Executive Order 9066 authorized the military to exclude any person from any area of the country where national security was considered threatened. It gave the military broad authority over the civilian population without the imposition of martial law. Although the order did not mention any specific group or recommend detention, its language implied that any citizen might be removed. In practice, the order was applied almost exclusively to Japanese Americans and Japanese nationals, with only few Italian and German Americans suffering similar fates. Ultimately, approximately 110,000 Japanese nationals and Japanese Americans were interned in housing facilities called "War Relocation Camps". After the surprise attack on Pearl Harbor, much anti-Japanese paraphernalia and propaganda surfaced in the United States. An example of this was the so-called "Jap hunting license", a faux-official document, button or medallion that purported to authorize "open season" on "hunting" the Japanese, despite the fact that over a quarter of a million Americans at that time were of Japanese origin. Some reminded holders that there was "no limit" on the number of "Japs" they could "hunt or trap". These "licenses" often characterized Japanese people as sub-human. Many of the "Jap Hunting Licenses", for example, depicted the Japanese in animalistic fashion. Edmund Russell writes that, whereas in Europe Americans perceived themselves to be struggling against "great individual monsters", such as Adolf Hitler, Benito Mussolini, and Joseph Goebbels, Americans often saw themselves fighting against a "nameless mass of vermin", in regards to Japan. Russell attributes this to the outrage of Americans in regards to the bombing of Pearl Harbor, the Bataan Death March, the killing of American POWs in the hands of Imperial Japanese forces, and the perceived "inhuman tenacity" demonstrated in the refusal of Imperial forces to surrender. Kamikaze suicide bombings, according to John Morton Blum, were instrumental in confirming this stereotype of the "insane martial spirit" of Imperial Japan, and the bigoted picture it would engender of the Japanese people as a whole. Commonwealth troops also employed rhetoric of "hunting", in regards to their engagement with Imperial Japanese forces. According to T. R. Moreman, the demonization of the Japanese served "to improve morale, foster belief that the war in the Far East was worthwhile and build the moral component of fighting power". Training instruction issued by the headquarters of 5th Indian Division suggested, "The JAP is a fanatic and therefore a menace until he is dead!... It will be our fanatical aim to KILL JAPS. Hunt him and kill him like any other wild beast!" US Professor of Japanese History, John Dower, introduces his 'War Hates and War Crimes' by quoting American Historian, Allan Nevins, that 'no foe has been so detested as were the Japanese', in his essay about the Second World War. Dower highlights how the Japanese were more despised than the Germans by the American public, and he claims that it was a result of racial hatred. This racial element separated Japanese and Germans, as Dower presents how Germans could be distinguished as "good" or "bad", whereas the 'savage' and 'brutal' traits associated with the Japanese military in the war, were just seen as being "Japanese". Magazines like Time hammered this home even further by frequently referring to "the Jap" rather than "Japs", thereby denying the enemy even the merest semblance of pluralism. Strategic bombing of Japan Author John M. Curatola wrote that the anti-Japanese sentiment probably played a role in the strategic bombing of Japanese cities, which began on March 9/10, 1945 with the destructive Operation Meetinghouse firebombing of Tokyo to August 15, 1945, with the surrender of Japan. Sixty-nine cities in Japan lost significant areas and hundreds of thousands of civilian lives to firebombing and nuclear attacks from United States Army Air Forces B-29 Superfortress bombers during this period. Internment of Japanese Americans An estimated 112,000 to 120,000 Japanese migrants and Japanese Americans from the West Coast were interned regardless of their attitude to the U.S. or Japan. They were held for the duration of the war in the inner U.S. The large Japanese population of Hawaii was not massively relocated in spite of their proximity to vital military areas. In 1942, with the Japanese incarcerated in ten American concentration camps, California Attorney General Earl Warren saw his chance and approved the state takeover of twenty parcels of land held in the name of American children of Japanese parents, in absentia. In 1943, Governor Warren signed a bill that expanded the Alien Land Law by denying the Japanese the opportunity to farm as they had before World War II. In 1945, he followed up by signing two bills that facilitated the seizure of land owned by American descendants of the Japanese. In a December 19, 1944 opinion poll, it was found that 13% of the U.S. public were in favor of the extermination of all Japanese, as well as 50% of American GI's. Dower suggests the racial hatred of the front-lines in the war rubbed off onto the American public, through media representation of Japanese and propaganda. Since World War II In the 1970s and 1980s, the waning fortunes of heavy industry in the United States prompted layoffs and hiring slowdowns just as counterpart businesses in Japan were making major inroads into U.S. markets. Nowhere was this more visible than in the automobile industry, where the then-lethargic Big Three automobile manufacturers (General Motors, Ford, and Chrysler) watched as their former customers bought Japanese imports from Honda, Toyota and Nissan, a consequence of the 1973 oil crisis. The anti-Japanese sentiment manifested itself in occasional public destruction of Japanese cars, and in the 1982 murder of Vincent Chin, a Chinese American beaten to death when he was mistaken to be Japanese. In 1987, after the Toshiba–Kongsberg scandal a group of US congressmen smashed Toshiba products on Capitol Hill. Pictures of the event were replayed hundreds of times on Japanese television. Other highly symbolic deals—including the sale of famous American commercial and cultural symbols such as Columbia Records, Columbia Pictures, and the Rockefeller Center building to Japanese firms—further fanned anti-Japanese sentiment. When the Seattle Mariners were being sold to Nintendo of America, 71 percent of Americans opposed the sale of an American baseball team to a Japanese corporation. Popular culture of the period reflected American's growing distrust of Japan. Futuristic period pieces such as Back to the Future Part II and RoboCop 3 frequently showed Americans as working precariously under Japanese superiors. Criticism was also lobbied in many novels of the day. Author Michael Crichton took a break from science fiction to write Rising Sun, a murder mystery (later made into a feature film) involving Japanese businessmen in the U.S. Likewise, in Tom Clancy's book Debt of Honor, Clancy implies that Japan's prosperity is due primarily to unequal trading terms, and portrays Japan's business leaders acting in a power hungry cabal. As argued by Marie Thorsten, however, Japanophobia mixed with Japanophilia during Japan's peak moments of economic dominance during the 1980s. The fear of Japan became a rallying point for techno-nationalism, the imperative to be first in the world in mathematics, science and other quantifiable measures of national strength necessary to boost technological and economic supremacy. Notorious "Japan bashing" took place alongside the image of Japan as superhuman, mimicking in some ways the image of the Soviet Union after it launched the first Sputnik satellite in 1957: both events turned the spotlight on American education. American bureaucrats purposely pushed this analogy. In 1982, Ernest Boyer, a former U.S. Commissioner of Education, publicly declared that, "What we need is another Sputnik" to re-boot American education, and that "maybe what we should do is get the Japanese to put a Toyota into orbit". Japan was both a threat and a model for human resource development in education and the workforce, merging with the image of Asian-Americans as the "model minority". Both the animosity and super-humanizing which peaked in the 1980s, when the term "Japan bashing" became popular, had largely faded by the late 1990s. Japan's waning economic fortunes in the 1990s, known today as the Lost Decade, coupled with an upsurge in the U.S. economy as the Internet took off largely crowded anti-Japanese sentiment out of the popular media. Nevertheless, there are areas that have recently proven to be an issue such as for Asians accessing higher education in the US. For example, in August 2020, the US Justice Department argued that Yale University discriminated against Asian candidates on the basis of their race, a charge the university denied. In 2023, a top Japanese diplomat was assaulted in Portland, Oregon. Yoshioka Yuzo, the consul general of Japan in the city, said he was shoved to the ground unprovoked while walking. A first responder said Yuzo bled profusely from a cut on his head. The suspect, a 23-year-old transient woman with a history of attacking Asians, was arrested and charged with felony bias crime and fourth-degree assault. See also Anti-Americanism#Japan Anti-Chinese sentiment in the United States Anti-Japaneseism Japan–United States relations Japanese American Citizens League Nativism (politics) in the United States Stereotypes of East Asians in the United States Killing of Vincent Chin References Cited sources Further reading August, Jack. "The Anti-Japanese Crusade in Arizona's Salt River Valley: 1934-35." Arizona and the West 21.2 (1979): 113-136. online Buell, Raymond Leslie. "The development of the anti-Japanese agitation in the United States." Political Science Quarterly 37.4 (1922): 605-638. online Daniels, Roger. The politics of prejudice: The anti-Japanese movement in California and the struggle for Japanese exclusion (Univ of California Press, 1977). MeGovney, Dudley O. "The anti-Japanese land laws of California and ten other states." California Law Review 35 (1947): 7+ [MeGovney, Dudley O. "The anti-Japanese land laws of California and ten other states." Calif. L. Rev. 35 (1947): 7. online]. Okihiro, Gary. Cane fires: The anti-Japanese movement in Hawaii, 1865-1945 (Temple UP, 1992). Shim, Doobo. "From yellow peril through model minority to renewed yellow peril." Journal of Communication Inquiry 22.4 (1998): 385-409. online Tamura, Eileen H. "The English-only effort, the anti-Japanese campaign, and language acquisition in the education of Japanese Americans in Hawaii, 1915–40." History of Education Quarterly 33.1 (1993): 37-58. Anti-Japanese sentiment Asian-American issues Japan–United States relations History of racism in the United States Japanese-American history
```java package com.tencent.wetest; import java.lang.reflect.Field; import java.lang.reflect.Method; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.os.Build; import android.os.SystemClock; import android.util.Log; import android.view.InputDevice; import android.view.MotionEvent; import android.view.SurfaceView; import android.view.View; public class U3DAutomation { private final static String TAG = "wetest"; protected static View mUnityPlayer = null; protected static boolean handleForward = false; protected static Class<?> unityPlayerClass = null; protected static Field forward = null; protected static int unity_version = 0; protected static Method nativeForwardEventsToDalvik = null; protected static Activity playerActivity = null; protected static SurfaceView surfaceView = null; //unity SurfaceView field protected static Context scontext = null; protected static MScreen mscreen = null; protected static class MScreen { public int width = 0; public int height = 0; public float x = 0; public float y = 0; MScreen() { width = 0; height = 0; x = 0; y = 0; } MScreen(int w, int h, float x, float y) { width = w; height = h; this.x = x; this.y = y; } } static class InjectAction implements Runnable { private MotionEvent event; private View v = null; public InjectAction(MotionEvent event, View view) { this.event = event; this.v = view; } @Override public void run() { while (true) { if (handleForward) { setForward(false); if (!v.onTouchEvent(event)) { Log.e(TAG, "touch fail."); } setForward(true); break; } boolean result = v.onTouchEvent(event); if (!result) { boolean forwardResult = getForward(); Log.i(TAG, "getForward = " + forwardResult); if (forwardResult) { handleForward = true; continue; } } break; } event.recycle(); } } private static int getUnityVersion() { try { Field f = getDeclaredFieldNest(unityPlayerClass, "l"); if (f != null) { f.setAccessible(true); if (f.getGenericType().equals(boolean.class)) { return 4; } } f = getDeclaredFieldNest(unityPlayerClass, "k"); if (f != null) { f.setAccessible(true); if (f.getGenericType().equals(boolean.class)) { return 5; } } return 0; } catch (NoSuchFieldException e) { Log.e(TAG, e.getMessage(),e); } return 0; } private static boolean getForward() { try { if (forward == null) { String fname = ""; if (unity_version == 5) { fname = "k"; } else if (unity_version == 4) { fname = "l"; } else { return false; } forward = getDeclaredFieldNest(unityPlayerClass, fname); if (forward == null) { Log.e(TAG, "can't find forwardNative!"); return false; } forward.setAccessible(true); } return forward.getBoolean(mUnityPlayer); } catch (NoSuchFieldException e) { Log.e(TAG, "getForward", e); } catch (IllegalAccessException e) { Log.e(TAG, "getForward", e); } catch (IllegalArgumentException e) { Log.e(TAG, "getForward", e); } return false; } private static void setForward(boolean b) { try { if (unity_version == 4) { if (forward == null) { forward = getDeclaredFieldNest(unityPlayerClass, "l"); if (forward == null) { Log.e(TAG, "can't find forwardNative!"); return; } forward.setAccessible(true); } forward.setBoolean(mUnityPlayer, b); } try { if (nativeForwardEventsToDalvik == null) { nativeForwardEventsToDalvik = unityPlayerClass .getDeclaredMethod("nativeForwardEventsToDalvik", boolean.class); if (nativeForwardEventsToDalvik == null) { Log.e(TAG, "can't find nativeForwardEventsToDalvik!"); return; } nativeForwardEventsToDalvik.setAccessible(true); } nativeForwardEventsToDalvik.invoke(mUnityPlayer, b); } catch (Exception e) { Log.e(TAG, "can't find nativeForwardEventsToDalvik!"); } return; } catch (NoSuchFieldException e) { Log.e(TAG, "setForward", e); } catch (IllegalAccessException e) { Log.e(TAG, "setForward", e); } catch (IllegalArgumentException e) { Log.e(TAG, "setForward", e); } } private static Field getDeclaredFieldNest(Class<?> cls, String name) throws NoSuchFieldException { NoSuchFieldException ex = null; try { return cls.getDeclaredField(name); } catch (NoSuchFieldException e) { ex = e; } Class<?> supercls = cls.getSuperclass(); if (supercls == null) { throw ex; } return getDeclaredFieldNest(supercls, name); } private static Class<?> getUnityPlayerClass() { if (unityPlayerClass != null) { return unityPlayerClass; } try { unityPlayerClass = Class.forName("com.unity3d.player.UnityPlayer"); return unityPlayerClass; } catch (ClassNotFoundException e) { Log.e(TAG, "can't find com.unity3d.player.UnityPlayer"); } return null; } @SuppressLint({ "NewApi", "Recycle" }) public static void InjectTouchEvent(int action, float x, float y) { long now = SystemClock.uptimeMillis(); final float DEFAULT_SIZE = 1.0f; final int DEFAULT_META_STATE = 0; final float DEFAULT_PRECISION_X = 1.0f; final float DEFAULT_PRECISION_Y = 1.0f; final int DEFAULT_DEVICE_ID = 0; final int DEFAULT_EDGE_FLAGS = 0; float pressure = (action == MotionEvent.ACTION_UP) ? 0.0f : 1.0f; MotionEvent event = MotionEvent.obtain(now, now, action, x, y, pressure, DEFAULT_SIZE, DEFAULT_META_STATE, DEFAULT_PRECISION_X, DEFAULT_PRECISION_Y, DEFAULT_DEVICE_ID, DEFAULT_EDGE_FLAGS); if (Build.VERSION.SDK_INT >= 12) { event.setSource(InputDevice.SOURCE_TOUCHSCREEN); } View unityPlayer = (View)getUnityPlayerActivity(); if (unityPlayer == null) { Log.e(TAG, "Unable to get UnityPlayer object! please check the Unity3D version."); } else { if (unity_version == 0) { unity_version = getUnityVersion(); Log.i(TAG, "Unity version = " + unity_version); } unityPlayer.post(new InjectAction(event, unityPlayer)); } } public static Activity GetPlayerActivity() { if (playerActivity != null) { return playerActivity; } try { Class<?> unityPlayerClass = getUnityPlayerClass(); if (unityPlayerClass == null) { Log.e(TAG, "GetPlayerActivity: can't find com.unity3d.player.UnityPlayer"); return null; } Field fcurrentActivity = getDeclaredFieldNest(unityPlayerClass, "currentActivity"); if (fcurrentActivity == null) { Log.e(TAG, "GetPlayerActivity: can't find currentActivity"); return null; } Object objcurrentActivity = fcurrentActivity.get(null); if (objcurrentActivity == null) { Log.e(TAG, "GetPlayerActivity: can't get currentActivity"); return null; } playerActivity = (Activity) objcurrentActivity; } catch (Exception e) { Log.e(TAG, e.getMessage(), e); } return playerActivity; } private static Object getUnityPlayerActivity() { Activity obj = (Activity) GetPlayerActivity(); if (obj == null) { return null; } try { if (obj.getClass().getCanonicalName() .equals("com.unity3d.player.UnityPlayer")) { return obj; } else { Log.i(TAG, "Activity obj name= "+obj.getClass().getCanonicalName()); Field[] fields = obj.getClass().getDeclaredFields(); for (int i = 0; i < fields.length; ++i) { Field f = fields[i]; Log.i(TAG, "field type = " + f.getType()); if (f.getType().getCanonicalName() .equals("com.unity3d.player.UnityPlayer")) { Object activity; try { f.setAccessible(true); activity = f.get(obj); return activity; } catch (IllegalAccessException e) { Log.e(TAG, e.getMessage(), e); } catch (IllegalArgumentException e) { Log.e(TAG, e.getMessage(), e); } } } } } catch (Exception e) { Log.e(TAG, e.getMessage(), e); } return null; } private static SurfaceView getSurfaceView(){ if (surfaceView == null) { Object activity = getUnityPlayerActivity(); if (activity == null) { Log.e(TAG, "not find com.unity3d.player.UnityPlayer"); return null; } Field[] fields = activity.getClass().getDeclaredFields(); for (int i = 0; i < fields.length; ++i) { Field f = fields[i]; Log.i(TAG, "field type = " + f.getType()); if (f.getType() == SurfaceView.class) { Log.i(TAG, "find SurfaceView"); f.setAccessible(true); try { surfaceView = (SurfaceView) f.get(activity); } catch (IllegalAccessException e) { Log.e(TAG, e.getMessage()); } catch (IllegalArgumentException e) { Log.e(TAG, e.getMessage()); } } } } return surfaceView; } /** * @brief * * use Surfaceview to get the unity application's display size * * @note * @return */ private static MScreen getMscreen() { SurfaceView surfaceView_ = getSurfaceView(); if(surfaceView_!=null){ try { int[] rootViewLocation = new int[2]; surfaceView_.getLocationOnScreen(rootViewLocation); float x = rootViewLocation[0]; float y = rootViewLocation[1]; int height = surfaceView_.getHeight(); int width = surfaceView_.getWidth(); mscreen = new MScreen(width, height,x,y); return mscreen; } catch (Exception e) { Log.e(TAG, e.getMessage()); } } //can't find surfaceview use other method return GetMResolution(); } /** * @brief * * use the activity's root component to get the display size * * @note * * wrong in some mobile phone * * @return */ private static MScreen GetMResolution() { Log.i(TAG, "GetMResolution Enter"); Activity obj = (Activity) GetPlayerActivity(); if (obj == null) { Log.e(TAG, "GetContext: get activity is null"); return null; } scontext = (Context) obj; View view = (View) obj.findViewById(android.R.id.content); Log.d(TAG, "View class name = " + view.getClass().getCanonicalName()); int width = view.getWidth(); int height = view.getHeight(); int[] rootViewLocation = new int[2]; view.getLocationOnScreen(rootViewLocation); float x = rootViewLocation[0]; float y = rootViewLocation[1]; Log.d(TAG, "width=" + width + ", height=" + height + ", x=" + x + ", y=" + y); mscreen = new MScreen(width, height, x , y); return mscreen; } public static int GetWidth() { Log.i(TAG, "GetWidth()"); MScreen msc = null; try { msc = getMscreen(); //1 return msc.width; } catch (Exception e) { Log.e(TAG, e.getMessage(),e); } return -1; } public static int GetHeight() { MScreen msc = null; try { msc = getMscreen(); return msc.height; } catch (Exception e) { Log.e(TAG, e.getMessage(),e); } return -1; } public static float GetX() { Log.i(TAG, "GetX()"); MScreen msc = null; try { msc = getMscreen(); //1 return msc.x; } catch (Exception e) { Log.e(TAG, e.getMessage(),e); } return -1; } public static float GetY() { Log.i(TAG, "GetY()"); MScreen msc = null; try { msc = getMscreen(); //1 return msc.y; } catch (Exception e) { Log.e(TAG, e.getMessage(),e); } return -1; } } ```
```python #!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of satpy. # # satpy is free software: you can redistribute it and/or modify it under the # version. # # satpy is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # # satpy. If not, see <path_to_url """Reader for generic image (e.g. gif, png, jpg, tif, geotiff, ...). Returns a dataset without calibration. Includes coordinates if available in the file (eg. geotiff). If nodata values are present (and rasterio is able to read them), it will be preserved as attribute ``_FillValue`` in the returned dataset. In case that nodata values should be used to mask pixels (that have equal values) with np.nan, it has to be enabled in the reader yaml file (key ``nodata_handling`` per dataset with value ``"nan_mask"``). """ import logging import dask.array as da import numpy as np import rasterio import rioxarray # noqa: F401 # need by xarray with the engine rasterio import xarray as xr from pyresample import utils from satpy.readers.file_handlers import BaseFileHandler from satpy.utils import get_legacy_chunk_size CHUNK_SIZE = get_legacy_chunk_size() BANDS = {1: ["L"], 2: ["L", "A"], 3: ["R", "G", "B"], 4: ["R", "G", "B", "A"]} NODATA_HANDLING_FILLVALUE = "fill_value" NODATA_HANDLING_NANMASK = "nan_mask" logger = logging.getLogger(__name__) class GenericImageFileHandler(BaseFileHandler): """Handle reading of generic image files.""" def __init__(self, filename, filename_info, filetype_info): """Initialize filehandler.""" super(GenericImageFileHandler, self).__init__( filename, filename_info, filetype_info) self.finfo = filename_info try: self.finfo["end_time"] = self.finfo["start_time"] except KeyError: pass self.finfo["filename"] = self.filename self.file_content = {} self.area = None self.dataset_name = None self.read() def read(self): """Read the image.""" dataset = rasterio.open(self.finfo["filename"]) # Create area definition if hasattr(dataset, "crs") and dataset.crs is not None: self.area = utils.get_area_def_from_raster(dataset) # xarray use the engine 'rasterio' to open the file, but # its actually rioxarray used in the backend. # however, error is not explicit enough (see path_to_url data = xr.open_dataset(self.finfo["filename"], engine="rasterio", chunks={"band": 1, "y": CHUNK_SIZE, "x": CHUNK_SIZE}, mask_and_scale=False)["band_data"] if hasattr(dataset, "nodatavals"): # The nodata values for the raster bands # copied from path_to_url#L322-L326 nodatavals = tuple( np.nan if nodataval is None else nodataval for nodataval in dataset.nodatavals ) data.attrs["nodatavals"] = nodatavals attrs = data.attrs.copy() # Rename to Satpy convention data = data.rename({"band": "bands"}) # Rename bands to [R, G, B, A], or a subset of those data["bands"] = BANDS[data.bands.size] data.attrs = attrs self.dataset_name = "image" self.file_content[self.dataset_name] = data def get_area_def(self, dsid): """Get area definition of the image.""" if self.area is None: raise NotImplementedError("No CRS information available from image") return self.area @property def start_time(self): """Return start time.""" return self.finfo["start_time"] @property def end_time(self): """Return end time.""" return self.finfo["end_time"] def get_dataset(self, key, info): """Get a dataset from the file.""" ds_name = self.dataset_name if self.dataset_name else key["name"] logger.debug("Reading '%s.'", ds_name) data = self.file_content[ds_name] # Mask data if necessary try: data = _mask_image_data(data, info) except ValueError as err: logger.warning(err) data.attrs.update(key.to_dict()) data.attrs.update(info) return data def _mask_image_data(data, info): """Mask image data if necessary. Masking is done if alpha channel is present or dataset 'nodata_handling' is set to 'nan_mask'. In the latter case even integer data is converted to float32 and masked with np.nan. """ if data.bands.size in (2, 4): if not np.issubdtype(data.dtype, np.integer): raise ValueError("Only integer datatypes can be used as a mask.") mask = data.data[-1, :, :] == np.iinfo(data.dtype).min data = data.astype(np.float64) masked_data = da.stack([da.where(mask, np.nan, data.data[i, :, :]) for i in range(data.shape[0])]) data.data = masked_data data = data.sel(bands=BANDS[data.bands.size - 1]) elif hasattr(data, "nodatavals") and data.nodatavals: data = _handle_nodatavals(data, info.get("nodata_handling", NODATA_HANDLING_FILLVALUE)) return data def _handle_nodatavals(data, nodata_handling): """Mask data with np.nan or only set 'attr_FillValue'.""" if nodata_handling == NODATA_HANDLING_NANMASK: # data converted to float and masked with np.nan data = data.astype(np.float32) masked_data = da.stack([da.where(data.data[i, :, :] == nodataval, np.nan, data.data[i, :, :]) for i, nodataval in enumerate(data.nodatavals)]) data.data = masked_data data.attrs["_FillValue"] = np.nan elif nodata_handling == NODATA_HANDLING_FILLVALUE: # keep data as it is but set _FillValue attribute to provided # nodatavalue (first one as it has to be the same for all bands at least # in GeoTiff, see GDAL gtiff driver documentation) fill_value = data.nodatavals[0] if np.issubdtype(data.dtype, np.integer): fill_value = int(fill_value) data.attrs["_FillValue"] = fill_value return data ```
George Froeschel (9 March 1891 – 22 November 1979) was an Austrian novelist and screenwriter. In 1943, he received two Academy Award nominations for co-writing screenplays for Mrs. Miniver and Random Harvest. He won the Academy Award for Mrs. Miniver. Biography Georg Froeschel was born in 1891, the son of a Jewish banker in Vienna. He wrote his first novel during his time at grammar school, Ein Protest (A Protest). After his postgraduate studies he was Doctor of Laws. In World War I he wrote reports for the k.u.k. army. Following he wrote several novels, of which some were adapted for films in the 1920s. In the 1920s he worked for the Ullstein-Verlag in Berlin. In 1936 he emigrated to the United States, where he first worked in the editorial office of Chicago's Coronet magazine. His efforts to find a job in Hollywood's film industry were not successful until April 1939, when Sidney Franklin of MGM engaged him as screenwriter. Films 1921: Roswolsky's Mistress (GER, Felix Basch; based on a novel by G. Froeschel) 1921: Der Schlüssel zur Macht (AUT, ? ; based on a novel by G. Froeschel) 1927: Der Anwalt des Herzens (GER, Wilhelm Thiele; based on a novel by G. Froeschel) 1928: Weib in Flammen (GER, Max Reichmann; based on a novel by G. Froeschel) 1929: Scandal in Baden-Baden (GER, Erich Waschneck; based on a novel by G. Froeschel) Screenwriter 1923: Nora (GER, Berthold Viertel) 1940: Waterloo Bridge (United States, Mervyn LeRoy) 1940: The Mortal Storm (United States, Frank Borzage) 1942: Mrs. Miniver (United States, William Wyler) 1942: Random Harvest (United States, Mervyn LeRoy) 1942: We Were Dancing (United States, Robert Z. Leonard) 1943: Madame Curie (United States, Mervyn LeRoy) 1944: The White Cliffs of Dover (United States, Clarence Brown) 1948: Command Decision (United States, Sam Wood) 1950: The Miniver Story (United States, H.C. Potter) 1951: The Unknown Man (United States, Richard Thorpe) 1952: Scaramouche (United States, George Sidney) 1953: The Story of Three Loves (United States, Vincente Minnelli, Gottfried Reinhardt) 1953: Never Let Me Go (United States, Delmer Daves) 1954: Rose Marie (United States, Mervyn LeRoy) 1954: Betrayed (United States, Gottfried Reinhardt) 1955: The Adventures of Quentin Durward (United States, Richard Thorpe) 1956: Gaby (United States, Curtis Bernhard) 1958: Me and the Colonel (United States, Peter Glenville) 1960: I Aim at the Stars (United States/GER, J. Lee Thompson) Awards and nominations References Rudolf Ulrich: Österreicher in Hollywood. Verlag Filmarchiv Austria, Vienna 2004, , p. 148 and 149 (German) External links 1891 births 1979 deaths 20th-century Austrian screenwriters 20th-century Austrian male writers American people of Austrian-Jewish descent Austrian Jews Austrian emigrants to the United States Best Adapted Screenplay Academy Award winners Burials at Hollywood Forever Cemetery Jewish American writers Austrian male screenwriters 20th-century American Jews
```objective-c // // // path_to_url // #ifndef PXR_BASE_GF_HOMOGENEOUS_H #define PXR_BASE_GF_HOMOGENEOUS_H /// \file gf/homogeneous.h /// \ingroup group_gf_LinearAlgebra /// Utility functions for GfVec4f and GfVec4d as homogeneous vectors #include "pxr/pxr.h" #include "pxr/base/gf/vec3d.h" #include "pxr/base/gf/vec3f.h" #include "pxr/base/gf/vec4d.h" #include "pxr/base/gf/vec4f.h" #include "pxr/base/gf/api.h" PXR_NAMESPACE_OPEN_SCOPE /// Returns a vector which is \p v homogenized. If the fourth element of \p v /// is 0, it is set to 1. /// \ingroup group_gf_LinearAlgebra GF_API GfVec4f GfGetHomogenized(const GfVec4f &v); /// Homogenizes \p a and \p b and then performs the cross product on the first /// three elements of each. Returns the cross product as a homogenized /// vector. /// \ingroup group_gf_LinearAlgebra GF_API GfVec4f GfHomogeneousCross(const GfVec4f &a, const GfVec4f &b); GF_API GfVec4d GfGetHomogenized(const GfVec4d &v); /// Homogenizes \p a and \p b and then performs the cross product on the first /// three elements of each. Returns the cross product as a homogenized /// vector. /// \ingroup group_gf_LinearAlgebra GF_API GfVec4d GfHomogeneousCross(const GfVec4d &a, const GfVec4d &b); /// Projects homogeneous \p v into Euclidean space and returns the result as a /// Vec3f. inline GfVec3f GfProject(const GfVec4f &v) { float inv = (v[3] != 0.0f) ? 1.0f/v[3] : 1.0f; return GfVec3f(inv * v[0], inv * v[1], inv * v[2]); } /// Projects homogeneous \p v into Euclidean space and returns the result as a /// Vec3d. inline GfVec3d GfProject(const GfVec4d &v) { double inv = (v[3] != 0.0) ? 1.0/v[3] : 1.0; return GfVec3d(inv * v[0], inv * v[1], inv * v[2]); } PXR_NAMESPACE_CLOSE_SCOPE #endif /* PXR_BASE_GF_HOMOGENEOUS_H */ ```
```python # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # # path_to_url # # Unless required by applicable law or agreed to in writing, # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # specific language governing permissions and limitations """Relay to ONNX target test cases""" import pytest pytest.importorskip("onnx") pytest.importorskip("onnxruntime") from collections import OrderedDict import numpy as np import onnxruntime as rt import tvm from tvm import relay from tvm.contrib.target.onnx import to_onnx import tvm.relay.testing from tvm.relay.op.annotation import compiler_begin, compiler_end from tvm.ir import IRModule from tvm.relay import transform def func_to_onnx(mod, params, name): onnx_model = to_onnx(mod, params, name, path=None) return onnx_model.SerializeToString() def run_onnx(mod, params, name, input_data): onnx_model = func_to_onnx(mod, params, name) sess = rt.InferenceSession(onnx_model) input_names = {} for input, data in zip(sess.get_inputs(), input_data): input_names[input.name] = data output_names = [output.name for output in sess.get_outputs()] res = sess.run(output_names, input_names) return res[0] def get_data(in_data_shapes, dtype="float32"): in_data = OrderedDict() for name, shape in in_data_shapes.items(): in_data[name] = np.random.uniform(size=shape).astype(dtype) return in_data def run_relay(mod, params, in_data): target = "llvm" dev = tvm.device("llvm", 0) in_data = [tvm.nd.array(value) for value in in_data.values()] return ( relay.create_executor("graph", mod, device=dev, target=target) .evaluate()(*in_data, **params) .numpy() ) def _verify_results(mod, params, in_data): a = run_relay(mod, params, in_data) b = run_onnx(mod, params, "test_resent", in_data.values()) np.testing.assert_allclose(a, b, rtol=1e-7, atol=1e-7) def test_resnet(): num_class = 1000 in_data_shapes = OrderedDict({"data": (1, 3, 224, 224)}) in_data = get_data(in_data_shapes, dtype="float32") for n in [18, 34, 50, 101]: mod, params = tvm.relay.testing.resnet.get_workload(1, num_class, num_layers=n) _verify_results(mod, params, in_data) def test_squeezenet(): in_data_shapes = OrderedDict({"data": (1, 3, 224, 224)}) in_data = get_data(in_data_shapes, dtype="float32") for version in ["1.0", "1.1"]: mod, params = tvm.relay.testing.squeezenet.get_workload(1, version=version) _verify_results(mod, params, in_data) @pytest.mark.skip("USE_TARGET_ONNX should be ON") def test_partition(): in_1 = relay.var("in_1", shape=(10, 10), dtype="float32") in_2 = relay.var("in_2", shape=(10, 10), dtype="float32") in_3 = relay.var("in_3", shape=(10, 10), dtype="float32") in_4 = relay.var("in_4", shape=(10, 10), dtype="float32") in_5 = relay.var("in_5", shape=(10, 10), dtype="float32") in_6 = relay.var("in_6", shape=(10, 10), dtype="float32") in_7 = relay.var("in_7", shape=(10, 10), dtype="float32") in_8 = relay.var("in_8", shape=(10, 10), dtype="float32") in_9 = relay.var("in_9", shape=(10, 10), dtype="float32") in_10 = relay.var("in_10", shape=(10, 10), dtype="float32") begin0 = compiler_begin(in_1, "onnx") begin1 = compiler_begin(in_2, "onnx") begin2 = compiler_begin(in_3, "onnx") begin3 = compiler_begin(in_4, "onnx") node0 = relay.add(begin0, begin1) node1 = relay.add(begin2, begin3) end0 = compiler_end(node0, "onnx") end1 = compiler_end(node1, "onnx") begin4 = compiler_begin(end0, "onnx") begin5 = compiler_begin(end1, "onnx") node2 = relay.add(begin4, begin5) end2 = compiler_end(node2, "onnx") dbegin0 = compiler_begin(in_5, "default") dbegin1 = compiler_begin(in_6, "default") node3 = relay.subtract(dbegin0, dbegin1) dbegin2 = compiler_begin(in_7, "default") dend1 = compiler_end(node3, "default") dbegin3 = compiler_begin(dend1, "default") node4 = relay.subtract(dbegin2, dbegin3) dend2 = compiler_end(node4, "default") begin6 = compiler_begin(end2, "onnx") begin7 = compiler_begin(dend2, "onnx") node5 = relay.add(begin6, begin7) end3 = compiler_end(node5, "onnx") end4 = compiler_end(node5, "onnx") dbegin4 = compiler_begin(in_8, "default") dbegin5 = compiler_begin(end3, "default") node6 = relay.subtract(dbegin4, dbegin5) begin8 = compiler_begin(in_9, "onnx") begin9 = compiler_begin(end4, "onnx") node7 = relay.multiply(begin8, begin9) end5 = compiler_end(node7, "onnx") dend3 = compiler_end(node6, "default") begin10 = compiler_begin(dend3, "onnx") begin11 = compiler_begin(end5, "onnx") node8 = relay.add(begin10, begin11) end6 = compiler_end(node8, "onnx") begin12 = compiler_begin(in_10, "onnx") begin13 = compiler_begin(end6, "onnx") node9 = relay.add(begin12, begin13) end7 = compiler_end(node9, "onnx") func = relay.Function([in_1, in_2, in_3, in_4, in_5, in_6, in_7, in_8, in_9, in_10], end7) target = "llvm" mod = IRModule.from_expr(func) mod = transform.PartitionGraph()(mod) with tvm.transform.PassContext(opt_level=3, disabled_pass=["FuseOps"]): graph_json, mod1, params = relay.build(mod, target) assert mod1.type_key == "metadata" assert mod1.imported_modules[0].type_key == "llvm" assert mod1.imported_modules[0].get_source() assert mod1.imported_modules[1].type_key == "onnx" assert mod1.imported_modules[1].get_source() if __name__ == "__main__": test_resnet() test_squeezenet() # test_partition needs USE_TARGET_ONNX to be ON test_partition() ```
```makefile # # Main Makefile. This is basically the same as a component makefile. # # This Makefile should, at the very least, just include $(SDK_PATH)/make/component_common.mk. By default, # this will take the sources in the src/ directory, compile them and link them into # lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable, # please read the ESP-IDF documents if you need to do this. # #include $(IDF_PATH)/make/component_common.mk COMPONENT_ADD_INCLUDEDIRS := include ```
```yaml title: Graduate CustomResourceDefinitions to GA kep-number: 95 authors: - "@jpbetz" - "@roycaihw" - "@sttts" owning-sig: sig-api-machinery participating-sigs: - sig-api-machinery - sig-architecture reviewers: - "@deads2k" - "@lavalamp" - "@liggitt" - "@mbohlool" - "@sttts" approvers: - "@deads2k" - "@lavalamp" editor: TBD creation-date: 2018-04-15 last-updated: 2018-04-24 status: implemented see-also: - "[Umbrella Issue](path_to_url" - "[Vanilla OpenAPI Subset Design](path_to_url" - "[Pruning for CustomResources KEP](path_to_url" - "[Defaulting for Custom Resources KEP](path_to_url" latest-milestone: "1.16" stage: "stable" ```
Diane M. Pearson is a New Zealand landscape architecture academic. As of 2018, she is a full professor at the Massey University. Academic career After a 1998 PhD titled 'The impact of human activity on landscape diversity in space and time : measurement and analysis of spatial structure and change in the Milton-Ulladulla area of NSW' at the Australian National University, Peason moved to the Charles Darwin University and then Massey University, rising to full professor. Selected works Aspinall, Richard, and Diane Pearson. "Integrated geographical assessment of environmental condition in water catchments: Linking landscape ecology, environmental modelling and GIS." Journal of Environmental Management 59, no. 4 (2000): 299–319. Pearson, Diane M. "The application of local measures of spatial autocorrelation for describing pattern in north Australian landscapes." Journal of Environmental Management 64, no. 1 (2002): 85–95. Aspinall, Richard J., and Diane M. Pearson. "Describing and managing uncertainty of categorical maps in GIS." Innovations in GIS 2 (1995): 71–83. Davies, Jocelyn, David Campbell, Matthew Campbell, Josie Douglas, Hannah Hueneke, Michael LaFlamme, Diane Pearson, Karissa Preuss, Jane Walker, and Fiona Walsh. "Attention to four key principles can promote health outcomes from desert Aboriginal land management." The Rangeland Journal 33, no. 4 (2011): 417–431. References External links Living people New Zealand women academics Year of birth missing (living people) Australian National University alumni Academic staff of Charles Darwin University Academic staff of Massey University Landscape architects
```go // +build !linux,!windows,!freebsd,!solaris package graphdriver var ( // Slice of drivers that should be used in an order priority = []string{ "unsupported", } ) // GetFSMagic returns the filesystem id given the path. func GetFSMagic(rootpath string) (FsMagic, error) { return FsMagicUnsupported, nil } ```
Ocnerioxyna maripilosa is a species of tephritid or fruit flies in the genus Ocnerioxyna of the family Tephritidae. Distribution Uganda, Kenya. References Tephritinae Insects described in 1947 Diptera of Africa
The HAL Tejas Mark 2 (lit. 'Radiance'), or Medium Weight Fighter (MWF), is an Indian single-engine, canard delta wing, multirole combat aircraft designed by the Aeronautical Development Agency (ADA) in collaboration with Aircraft Research and Design Centre (ARDC) of Hindustan Aeronautics Limited (HAL) for the Indian Air Force (IAF). It is a further development of the HAL Tejas, with an elongated airframe, close coupled canards, new sensors, and a more powerful engine. The fighter is being designed and developed to replace multiple strike fighters of IAF viz, the SEPECAT Jaguar, Dassault Mirage 2000, and Mikoyan MiG-29. The indigenous content of the fighter will be 82% initially and will cross 90% after the licensed production of its engine. Development MWF Programme Dr. V. Madhusudana Rao is the Project Director of Tejas Mark 2. The development of Tejas Mark 2 or MWF was initiated to address all the shortcomings in Tejas Mark 1 and Mark 1A, and to meet the original air staff requirements set out for the LCA programme by the IAF. The development of Tejas Mark 2 was authorised in November 2009 as a continuation of LCA programme, under the phase 3 of full-scale engineering development (FSED) process. The FSED phase 3 consisted of design, development and manufacturing of two prototypes. Initially planned as an upsized Tejas, with a 0.5 m fuselage plug to accommodate more fuel and a more powerful engine, the Tejas Mark 2 design has evolved over years into a completely new medium-weight class fighter. The preliminary design studies for the Tejas Mark 2 was completed in 2014 and was in the detailed design phase as of 2015. The redesigned fighter was first unveiled at the Aero India air show 2019, it was a 17.5-tonne-class fighter with close-coupled canards and integrated IRST system. Metal-cutting for the Tejas Mark 2 started in February 2021. The "roll out" of the first prototype was scheduled for August 2022, but has been postponed to end of 2022. Its first flight is expected to be in late 2023. In total, four prototypes are being planned initially. The ADA completed its critical design review on 15 November 2021, with a total of 20 subsystems for the aircraft cleared by IAF for production. From 62% in Tejas Mark 1A, the plan is to touch the 70% mark in indigenization for Mark 2. More foreign components are replaced by locally developed ones that are sufficiently matured as ADA and DRDO will carry forward some of the critical technologies from the LCA programme. Private suppliers of line-replaceable units also increased from 344 during Tejas Mark 1A development to 410. HAL had already outsourced 25% of the work share to the private sector. On September 1, 2022, Cabinet Committee on Security (CCS) cleared ₹10,000 crore for Tejas Mark 2 that includes prototype development and flight testing. The cost of fighter jet development will take ₹6,500 crore in addition to ₹2,500 crore sanctioned previously through internal funding. HAL planned high speed taxi trials from 2023 and limited series production from 2025. The entire development process will be completed by 2027 with serial production from 2030. Tejas Mark 2 will become operationally available from 2028. Apart from current commitment of 110-120 aircraft that will form six squadrons, expectations include an additional order of 210 aircraft. After an initial plan to involve private players failed due to no backers, HAL is planning to form its own consortium to fast track the manufacturing process. Due to delay, the first prototype will roll out by December 2023 and first flight will happen by December 2024. Four prototypes will be made until 2027 for testing purpose. Delegation from 16 countries were seeking details of Tejas Mark 2 at Defexpo 2022. Government is speeding up efforts to identify Indian private sector company to increase the production rate and decrease the cost for exports. Design Apart from design commonalities and a few critical systems from its predecessor Tejas Mark 1A, most of the technologies are to be borrowed from whatever has been developed so far for Advanced Medium Combat Aircraft programmme. Several radar cross-section-reducing measures will be incorporated in the airframe design so that a degree of frontal stealth can be achieved, including radar-absorbent material coating and composites making up its skin and twisted air-intake ducts. It has a tail-less compound delta-wing configuration with a single vertical stabilizer and close-coupled canards to provide static instability and high manoeuvrability, and is equipped with fly-by-wire systems to control instability. This MWF is also to feature an indigenous integrated life-support system-onboard oxygen generation system (ILSS-OBOGS), from Defence Bioengineering and Electromedical Laboratory, aircraft health and usage monitoring system to integrate various sensors onboard Tejas Mark 2 from Defence Institute of Advanced Technology and a built-in integrated electro-optic electronic warfare suite, among other improvements to avionics. Utilizing extra fuselage space, ADA designed larger air-intake for GE's F414 INS6 engine. It will have an infra-red search and track (IRST) system and a missile approach warning system. An increase in payload capacity to and internal fuel capacity to over , will allow it to carry more weapons with a longer range. Sensors and avionics The avionics of Tejas Mark 2 will be centered on multisensor data fusion incorporating both active and passive sensors on board. The Tejas Mark 2 would be equipped with a variant of Uttam AESA Radar developed by Electronics and Radar Development Establishment, while the combat aircraft will also have an integrated IRST system for passive target acquisition. The Tejas Mark 2 will have indigenous software-defined radio-based tactical data link for secured communication and network-centric warfare capabilities supported by the IAF's AFNet digital information grid. Cockpit The Tejas Mark 2 will have a night vision goggles-compatible glass cockpit dominated by a touch-sensitive wide area display placed in panoramic orientation and a wide-angle holographic head-up display system. The Tejas Mark 2 will have hands-on throttle-and-stick arrangement with right-hand-on-stick and left-hand-on-throttle settings to ease the pilot workload. Propulsion In 2008, HAL issued a fresh request for proposal for the procurement of 95- to 100-kilonewton (kN) (21,000–23,000 lbf) thrust-class engine to power the Tejas Mark 2. In 2010, after extensive evaluation of both the Eurojet EJ200 and the General Electric F414, GE's F414 INS6 afterburning turbofan engine was declared as the lowest bidder. The deal covered the purchase of 99 GE F414 engines, with the initial batch supplied directly by GE, while the remainder is to be manufactured in India by HAL under a transfer-of-technology agreement. The GE F414 INS6 engine has a maximum thrust output of 98 kN and also offers improved specific fuel consumption over the F404 IN20 engine selected to power both Mark 1 and Mark 1A variants of Tejas. The aircraft is designed keeping in mind that GE's F414 will be replaced once an Indian powerplant is available. Therefore, the future engine replacement should make minimal changes in the configuration. Operators Indian Air Force – 10 squadrons Phase 1 – 6 squadrons Phase 2 – 4 squadrons Specifications (Projected) See also Notes References Bibliography External links TEJAS The Indian Light Combat Aircraft, official brochure 2015 (PDF). . Indian military aircraft procurement programs Proposed aircraft of India Tailless delta-wing aircraft Single-engined jet aircraft
Palathinkal Varkey Cherian (or Cheriyan) (9 July 1893 – 9 November 1969) was a physician, surgeon and politician from India. He was the Governor of Maharashtra from 14 November 1964 to 8 November 1969. Early life and medical career Cherian was born in Alleppey, Travancore, as the son of Achamma and Magistrate P.M Varkey and to the Anglican Syrian Christian Palathinkal family. After completing schooling in Travancore, Cherian went to Madras in 1912, where he earned his MBBS degree in 1917. He then joined the Government Hospital for Women and Children as an Assistant Surgeon. He was later commissioned to the Indian Medical Service, as part of the 88th Carnatic Infantry and served in various cities in Mesopotamia. In 1925, Cherian went to the United Kingdom to specialise in ear, nose and throat diseases and, in 1926, passed the FRCS examination from Edinburgh. R. N. Arogyasamy Mudaliar, the Minister for Medical Administration (1926–28), he was keen to "indianise" medical services. So he appointed Cherian the first Indian Superintendent of Madras Medical College. Later, Cherian became Principal of the college and was appointed the first Indian Surgeon General of Madras Presidency. Political career After his retirement from the government medical service in 1948, Cherian became increasingly active in politics. He was an alderman of the Corporation of Madras in 1948 and, in 1950, became mayor of the city. His wife, Tara, whom he married in 1935, was elected to this office in 1956, making the Cherians the only couple to have held the office of the Mayor of Madras. Tara Cherian, who died in November 2000, was the first woman mayor of independent India and was herself a Member of the Legislative Council during M. G. Ramachandran's government. In 1952, Cherian was elected to the Madras Legislative Council and became its Chairman. He was re-elected to both the Council and its chairmanship in 1959. On 14 November 1964, P. V. Cherian was sworn in as the Governor of Maharashtra. He was a well known figure in that position. As a Christian, he promoted ecumenism. He was the president of the All India Conference of Indian Christians. At the same time, he was a high ranking rotarian and freemason. In recognition of their services to the Indian Christian community, Dr. Cherian and his wife Tara were vested with the Pontifical Equestrian Order of St. Gregory the Great and the Benemerenti medal respectively, by Pope Paul VI. They are the first non-Catholic Indians to receive such Papal Orders. Tara Cherian was also awarded Padma Bhushan, the third highest civilian honour in India, for her social work. Governor Cherian died in office, on 9 November 1969, at the age of 76. References Bibliography 1893 births 1969 deaths Saint Thomas Christians Indian Anglicans 20th-century Indian medical doctors Governors of Maharashtra Indian Medical Service officers Indian surgeons Mayors of Chennai Medical doctors from Kerala Tamil Nadu politicians 20th-century surgeons
James Leigh may refer to: James Henry Leigh, English MP for Winchester James Mathews Leigh (1808–1860), English art educator and painter James Wentworth Leigh (1838–1923), English Anglican priest James Leigh (cricketer) (1862–1925), English cricketer See also James Lee (disambiguation) Leigh (disambiguation)
```html <html> <head> <title>{% block title %}{% endblock %}</title> <meta name="viewport" content="initial-scale=1.0,user-scalable=0"> </head> <body> {% block content %}{% endblock %} <p> --- </p> {% block unsubscribe %} {% if unsubscribe_url %} <p><a href="{{ unsubscribe_url }}">Click here</a> if you don't want to hear from us again.</p> {% endif %} {% endblock %} </body> </html> ```
```smalltalk using UnityEngine; namespace Microsoft.MixedReality.Toolkit.SpatialAwareness { /// <summary> /// The interface for defining an <see cref="ISpatialAwarenessPhysicsProperties"/> which provides physical materials /// </summary> public interface ISpatialAwarenessPhysicsProperties { /// <summary> /// Gets or sets the <see href="path_to_url">PhysicMaterial</see> to be used when displaying <see href="path_to_url">Mesh</see>es. /// </summary> PhysicMaterial PhysicsMaterial { get; set; } } } ```
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.shardingsphere.sql.parser.statement.sqlserver.dal; import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ExplainStatement; import org.apache.shardingsphere.sql.parser.statement.sqlserver.SQLServerStatement; /** * SQLServer explain statement. */ public final class SQLServerExplainStatement extends ExplainStatement implements SQLServerStatement { } ```
The Italian geographic region, Italian physical region or Italian region is a geographical region of south-central Europe delimited to the north by the mountain chains of the Alps. This subregion is composed of a peninsular and continental part and an insular part. Located between the Balkan Peninsula and the Iberian Peninsula, it protrudes into the centre of the Mediterranean Sea and overlooks the Adriatic Sea, the Ionian Sea, the Ligurian Sea, the Sardinian Channel, the Sea of Corsica, the Sea of Sardinia, the Strait of Sicily, and the Tyrrhenian Sea. The Italian geographic region, in its traditional and most widely accepted extent, has an area of approximately , which is greater than the area of the entire Italian Republic (). The region also includes territories that are sovereign parts of Croatia, France, Slovenia, and Switzerland, as well as the four small sovereign states of the Principality of Monaco, the Republic of Malta, the Republic of San Marino, and the Vatican City State (the Holy See). Geography Physical geography In common language, the Italian region generally refers to the Italian Peninsula. Similarly, the inhabitants of the islands use the term continent to designate the mainland that goes from the Alps to Reggio Calabria. Geographically, Italy running in north-west to south-east direction can be divided into the calcareous Alps, the alluvial plain, the Northern, Central and Southern Apennines and Sicily. Geographical limits The natural limits of the Italian region, marked by the Alpine drainage divide and the sea, are relatively clear, except at the western and eastern extremities of the Alps. On the eastern borders, the chain of the Julian Alps and the Kvarner Gulf are traditionally indicated, to which Dante Alighieri also refers. However, other proposed limits include a border along the Isonzo (formerly advocated by Austrian Empire), which would exclude the upper Isonzo valley, Trieste and Istria entirely. Other borders were listed by the historian, and exile from Cherso, Luigi Tomaz in "The border of Italy in Istria and Dalmatia", among which, in the Augustan regional structure of Roman Italy, the administrative limes along the Arsa River, marked the end of Venetia et Histria. Therefore, to the east, despite the more depressed character of the orography and the scarcity of surface hydrography found in the region south of the Nauporto pass near Postumia, the continuity of the mountain bulwark is ensured by the reliefs placed between Mount Pomario and Mount Nevoso, its terminal pillar, where it reaches the Kvarner Gulf and the Bay of Buccari, immediately south-east of Fiume. To the east, therefore, the extreme limit of Italy is generally identified in Buccari. To the south-east of the Nauporto pass and to the north-west of Mount Pomario, the traceability of the natural border is rather difficult as in this area the hydrographic watershed does not coincide with the orographic chain, which is characterized by rather small peaks. As for the islands of Cherso and Lussino, their belonging to the Italian geographical region may vary according to the sources and interpretations. In particular, they are included in the Italian geographical region as these islands are the natural continuation of Istria, being closer to the Istrian coasts than to the Dalmatian ones. On the contrary, to the west, the boundary is unchallenged and easily definable between the canton of Valais, Savoy, Aosta Valley and Piedmont, near the coast can be represented by that buttress of the Maritime Alps which, detaching itself from the Po-French drainage divide in correspondence with Monte Clapier, follows the Authion Massif, which culminates in Mont Bégo, and divides the Roia basin to the east from the Varo and Paglione basins to the west. The salient created by the side valley of the Bevera including the Mentone basin is orographically separated from everything, thus grafting the border at Capo d'Aglio where the entire Principality of Monaco is included. Due to the characteristic of being orographically separated from everything, the Menton basin can be excluded. In the latter case, the geographical limit would rejoin the current international state border at the height of Mount Buletta, corresponding with it up to the sea (this is not a priori correspondence but a simple correspondence by convergence between the geographical and political border; the latter is cited for convenience). This solution makes it possible to bring the border of the Italian geographic region closer to the ethno-linguistic one between Ligurian, Intemelio and Occitan languages of the Niçard dialect. Another hypothesis would have it that the border, after touching the top of Mont Pelat, includes the entire basin of the Varo river with its tributaries, placing Nice within the Italian region, or that, albeit smaller, than from Monte Clapier divides the Roia and Paglione basins on one side from that of the Varo on the other, reaching the coast not far from the latter's mouth, south-west of Nice, thus leaving Nice still in the geographic region of Italy (as Francesco Petrarca already claimed in 1331). However, there is an opposite thesis, supported by Charles de Gaulle at the end of World War II, which, assigning the nature of a transalpine pass to Colle di Tenda, excludes the entire Roia Valley with Ventimiglia from the Italian physical region. Continental and peninsular part In a narrow sense, the continental part, delimited to the north by the Alpine watershed, to about 40% of the Italian region and is located in the north of an imaginary line that goes from the mouth of the Magra river to that of the Rubicone river. Most of them are made up of the water catchment areas of the Po, Adige, Brenta, Piave, Tagliamento and Isonzo rivers. From the continental part, however, some Alpine valleys are excluded which, although they are part of the Italian State, such as the Val di Lei tributary of the North Sea through the Rhine river, the Val di Livigno, the Sella di Dobbiaco and the Tarvisio basin to the north-east of the Camporosso saddle, tributaries of the Black Sea through rivers affluent of the Danube. The Italian Peninsula, or the Italic Peninsula or the Apennine Peninsula, is a peninsula on the European continent crossed by the Apennine chain and delimited by four seas: the Ligurian Sea, the Tyrrhenian Sea, the Ionian Sea and the Adriatic Sea. Together with the Iberian Peninsula and the Balkan Peninsula, they are the three peninsulas that make up Southern Europe. The peninsula in a narrow sense begins from the Tuscan-Romagna Apennines, starting from an imaginary line that goes from the mouth of the Magra river to that of the Rubicone river, and extends to the extreme southern offshoot of Capo Spartivento in Calabria. The peninsula has an extension of about in a north-west / south-east direction. The closest large islands, Sicily, Sardinia, and Corsica, are not parts of it. The peninsula corresponds to about 45% of the Italian geographical region. Insular part The island part extends over an area of about (about 18.5% of the whole Italian region), of which for Sicily, Sardinia, and Corsica. Outside these large islands, numerous smaller islands, often grouped in archipelagos, are found along the Italian coast, mostly in the Tyrrhenian Sea. The list below shows the largest islands belonging to the Italian geographical region: Extreme points The extreme points of the Italian geographical region, measured with respect to the Greenwich meridian, are: to the north, the Testa Gemella Occidentale in the Aurine Alps, in Alto Adige/Südtirol, at 47° 04′ 20″ north; to the south, the South Cape of the Piccolo Sciutu rock, in the Maltese Archipelago, at 35° 47′ 04″ north; to the east, Capo d'Otranto, in Apulia, Italy, at 18° 31′ 13″ east longitude. to the west, the Rocca di Chardonnet in the Cottian Alps, in France, at 6° 32′ 52″ east. The orthodromic distance N–S is 1,269 km. Political geography The Italian Republic occupies 93% of the Italian geographical region. The remaining portion (23 000 km2) is divided between several other states, some of which (in order of geographical extension: Malta, San Marino, Monaco, and Vatican City) are entirely included in the political borders. Some strips of western Niçard and the Alpine sector near the French border (Italian up to the 1947 Peace Treaty), Corsica, Italian Switzerland, the Maltese Islands, and Julian March, Slovenian and Croatian, are also ascribed to the Italian geographical region, including the city of Fiume. The following countries are entirely included in the limits of the Italian geographical region: the Principality of Monaco (entirely included in the continental part, to the west); the Republic of Malta (entirely included in the insular part, to the south); the Republic of San Marino (entirely included in the peninsular part, to the north-east); the Vatican City State (entirely included in the peninsular part, in the center-west). The following areas also fall within the borders of the Italian geographical region: in Croatia (partly included in the continental part and in the insular part, in the east): Istria, the city of Fiume, the Pelagosa archipelago and, according to an extensive thesis, the two islands of Cherso and Lussino; in France (partly included in the continental part and in the insular part, to the west): Corsica and the Roia Valley (with Briga Marittima and Tenda, sold with the Treaty of Paris of 1947), Colle del Monginevro, Valle Stretta behind Bardonecchia, the area of Mont Chaberton near the Montgenevre pass, the Colle area Mont Cenis with the Mont Cenis lake (also ceded with the 1947 Treaty of Paris), and the Mentone basin up to Turbìa; in Slovenia (partly included in the continental part, to the east): the Slovenian Julian Alps (Slovenian Gorizia), a part of western Carniola and the Slovene Littoral; in Switzerland (partly included in the continental part, to the north): the upper Val Divedro in the canton of Valais, the Canton of Ticino (with the exception of the upper valley of the Reuss and the Val Cadlimo with the Piz Blas) as well as - in the Canton of Grisons - the Val Mesolcina, the Val Calanca, the Val Bregaglia, the Val Poschiavo and Val Monastero (all, except the latter, in any case constituting Italian-speaking Switzerland). Three alpine valleys, tributaries of the Rhine and Danube, as well as Lampedusa and Lampione of the Pelagie Islands (small islands located on the African continental shelf) are parts of the Italian Republic even though they are not parts of the Italian geographical region. History Ancient times The idea of Italy as a geographic region is very old. It was described with the geographical notion of peninsula as early as the 1st century BC in the oldest treatise called Geographica (in ancient Greek: Γεωγραφικά - Gheographikà), a work in 17 volumes by the Greek geographer Strabo (65/64 – 25/21 BC). In the 15th century, Guarino da Verona translated the entire work into Latin, thus contributing to its rediscovery. In the introduction of his book, Strabo gives his definition of Italy: Middle Ages For several centuries, the geographical description of Strabo did not change until the publication of the first universal geography of Conrad Malte-Brun (1775–1826), Geography or description of all parts of the world. After the fall of the Western Roman Empire, and in particular with the arrival of the Lombards, Italy lost its political unity. In the Carolingian age, a new Kingdom of Italy was born (in Latin, Regnum Italicum), it includes only Northern Italy. In addition, starting from the 12th century, Northern Italy itself found itself divided into a myriad of small states often in conflict with each other or victims of foreign expansionist aims. However, in the 14th century, Dante Alighieri wrote in the Divine Comedy (L'Inferno, Canto IX, 114): Similarly, Francesco Petrarca wrote at the same time in his work the Il Canzoniere (s. CXLVI, 13–14): 19th century Napoleonic era In his memoirs written during his captivity on the island of Saint Helena, but published only in 2010, Napoleon Bonaparte makes a description of Italy in the first chapter: Italian unification and the effects of nationalism After the fall of Napoleon and the restoration of the absolutist monarchical regimes, Italy remains according to Metternich's expression "a simple geographical expression" without political unity. However, a process has been set in motion that will lead to the unification of Italy. After the proclamation of Vittorio Emanuele II King of Italy on 17 March 1861, the new united Italy experienced the birth of the Italian nationalism and the Italian irredentism, which claimed that the natural border of Italy had to pass on the crest of the Alps based on geographical concepts. Furthermore, the environment that gravitates around the Società Geografica Italiana of Rome and the Società di Studi Geografici of Florence was strongly imbued with a nationalist spirit which, during the following decades, will become more and more colonialist and militarist. This would explain, as Lucio Gambi demonstrated, the enthusiastic and almost unanimous adhesion of Italian geographers to fascism a few decades later. 20th century After World War I, the notion of the Italian geographical region diminished, as the natural borders, except for some marginal territory, were mostly reached with the annexation of Trentino-Alto Adige and Julian March, and it was on other scales that Italian nationalism and imperialism were expressed, well beyond the borders of the Italian geographical region. After World War II, Italy lost a large part of Julian March, and Italian geography eliminated all political and nationalistic aspects to focus only on geographic ones. Therefore, the notion of Italian geographic region, including territories that are not part of the Italian Republic, continues to be present in some Italian geographic encyclopedias, such as the one published by the De Agostini. Notes References Regions of Europe Geography of Europe Geography of Italy Geography of Malta Geography of Corsica Geography of France Geography of Switzerland Geography of Croatia Geography of Slovenia
The 7th Ohio Infantry Regiment was an infantry regiment formed in northeastern Ohio for service in the Union Army during the American Civil War. It served in the Eastern Theater in a number of campaigns and battles with the Army of Virginia and the Army of the Potomac, and was then transferred to the Western Theater, where it joined the Army of the Cumberland besieged at Chattanooga. It was noted for its holding the high ground at the center of the line at Antietam as part of Tyndale's 1st Brigade, Greene's 2nd Division of Mansfield's XII Corps. It is of the 7th regiment that a war historian wrote, "All in all, considering the number of its battles, its marches, its losses, its conduct in action, it may be safely said that not a single regiment in the United States gained more lasting honor or deserved better of its country than the Seventh Ohio Volunteer Infantry." Three-months regiment On 27 April 1861, orders were given to form the 7th Ohio Infantry Regiment from independent companies gathered at Camp Taylor in Cleveland. The regiment elected its own field officers, and Erastus B. Tyler of Ravenna became colonel, William R. Creighton of Cleveland as lieutenant colonel, and John S. Casement of Painesville as major. Among the original officers was Captain John W. Sprague of Sandusky; he would later be a brigadier general and Medal of Honor recipient while serving in the 63rd Ohio Infantry. On 6 May 1861, the Seventh left Camp Taylor and traveled to Cincinnati, where the new soldiers trained at Camp Dennison. In mid-June, the term of enlistment expired, and the men were asked to re-enlist for three-years' service. The vast majority did so, with their ranks augmented by fresh recruits. Three-years regiment Western Virginia On 26 June 1861, the reconstituted regiment departed Camp Dennison for western Virginia, where the men would see their first action of the war. On 26 August, Brig. Gen. John B. Floyd, commanding Confederate forces in the Kanawha Valley, crossed the Gauley River to attack the 7th Ohio Infantry encamped at Kessler's Cross Lanes. The Seventh was surprised and routed with severe loss, the two wings of Tyler's line retreating in opposite directions. Throughout the rout and carnage Major Jack Casement, at the head of Tyler's left wing, commenced a retrograde march through Confederate territory over mountain ranges and rivers to Charleston, West Virginia without the capture of a single man. Floyd then withdrew to the river and took up a defensive position at Carnifex Ferry. During the month, General Robert E. Lee arrived in western Virginia and attempted to coordinate his forces. On 13 November, the Seventh was involved in fighting at Cotton Hill. Virginia On 5 January 1862, the regiment was engaged at the Blue's Gap Affair. On 23 March, it was at Kernstown, the opening battle of Confederate Maj. Gen. Thomas J. "Stonewall" Jackson's campaign through the Shenandoah Valley. The battle was a Union victory, later proving to be Jackson's only defeat in the war. The last battle of Jackson's Valley Campaign was the Battle of Port Republic, which took place on 9 June. Here, the Seventh fought very effectively. With less than three thousand muskets, Jackson's force of fourteen thousand was held at bay for five hours. The Union forces however, were finally forced to retreat. On 5 July, the regiment was issued new Model 1861 Springfield rifles to replace the obsolete Model 1816 muskets they had been carrying until then. On 9 August, at the Battle of Cedar Mountain, the regiment was again at the front and engaged in a fierce hand-to-hand conflict. Of the three hundred men engaged, only one hundred escaped unhurt. The Seventh suffered more than any other Union regiment in this battle. On 21 August, the men experienced a brief engagement at Snicker's Gap. During the subsequent campaign, which lasted until 2 September and culminated in the Second Battle of Manassas, the Seventh was held in reserve guarding the railroads. Antietam On 17 September 1862, the 7th Ohio Infantry made the farthest advance of any Union regiment. With Tyndale's brigade of Greene's division, they first formed in the East Woods and came upon a line of Confederates. After the rebels were driven back, Tyndale's brigade began their movement at the edge of the Cornfield and proceeded through the fields along Smoketown Road until they were in front of the Dunker Church. They then moved forward into the West Woods, contesting the enemy. After the altercation, the division and brigade were forced to withdraw, leaving all of the ground they had gained. This was reflective of most Union units at Antietam. After the battle, the Confederate army retreated back across the Potomac River and into Virginia. During the hesitant march south against Lee and his army, the Seventh camped at Loudoun Heights and then Bolivar Heights near Harpers Ferry. Chancellorsville The Seventh crossed the Rapidan River at Germanna Ford on 30 April 1863, and advanced to Chancellorsville by way of the Germanna Plank Road and Orange Plank Road. It took position just south of the Chancellor house, in support of a Union artillery battery that had unlimbered just across the intersection from the house. On 1 May, along with the rest of the 12th Corps, it moved eastward along the Plank Road. In the vicinity of the Catharpin Road, it encountered Stonewall Jackson's Confederates. In the evening, it beat off a probing attack by Confederate troops up the Plank Road. During Jackson's famous flank march on 2 May, the Seventh held its position near the Chancellor house and did not take part in this action. The Confederates renewed their attacks the following morning, and the regiment found itself in a crossfire from Major General Lafayette McLaws' Confederates, who were attacking it from the east, and from Jackson's men attacking from the west. The converging fire from Confederate artillery batteries contributed to the Buckeye regiment's casualties. By 10 a.m., Hooker decided to retreat. Candy's brigade fell back through the regiment, which, along with several other regiments, helped cover the withdrawal. Once the rest of the army had fallen back, the Seventh joined the retreat, passing through the Chancellorsville clearing and retreating to a point on the United States Ford Road about two miles north of the battlefield. It moved back to the front later that afternoon, occupying a point near the apex of Hooker's final line. That evening, Hooker reshuffled his line, placing the Twelfth Corps on his left flank, next to the Rappahannock River. The regiment was among the last regiments to retreat, crossing the river just before daylight on 6 May. Gettysburg The 7th Ohio Infantry arrived on the fields near Gettysburg in the late afternoon of 1 July 1863. They camped in the area of Little Round Top for the night. On 2 July, they were sent to Culp's Hill and helped build breastworks with the rest of the division. Later in the day, the division was sent to the southern end of the battlefield to support the Union left. They ended up getting lost along Baltimore Pike and never reached the area they intended. That night, they returned to Culp's Hill. On 3 July, at about 6 a.m., the Seventh was chosen to relieve the 60th New York at the left of Greene's line. It would be the first time the regiment had ever fought behind breastworks. Sherman R. Norris of Company D found that the Rebel formation in the 7th Ohio Infantry's front "melted away before our volleys, and after they had been broken, numbers of the enemy took refuge behind trees and rocks." At 8 a.m., the 60th New York again exchanged places with the 7th Ohio Infantry. Creighton's Ohioans were back in the breastworks by 9:45 a.m., relieving an unspecified regiment to the left of the 29th Ohio. This is when Confederate Maj. Gen. Edward Johnson flung his last assault at Culp's Hill. Among the attacking Confederates were the five regiments of the vaunted Stonewall Brigade. After an attempt to storm the right center of Greene's line, some Rebels became stranded on the hillside. About 11:00 a.m., Creighton noticed a makeshift white flag thrown out from behind rocks in front of the 7th Ohio Infantry's entrenchments. He shouted for his men to stop shooting. The Buckeyes then observed a mounted officer in gray at the foot of the hill. He spurred his horse forward hoping to stop any attempt of surrender. Partway up the slope, he was met by a fusillade of bullets. Rider and horse both tumbled to the ground, dead. The officer proved to be Major Benjamin W. Leigh, Johnson's chief of staff. Afterwards, 78 Rebel soldiers surrendered to the 7th Ohio Infantry, many of them members of the 4th Virginia Infantry. The next morning, Company H Corporal John Pollock climbed over the works and picked up the 4th Virginia's rumpled colors, one of three battle flags captured by Geary's division at Culp's Hill. Gettysburg was the last battle for the 7th Ohio Infantry in the Army of the Potomac. After pursuing the Army of Northern Virginia back into Virginia, the 11th and 12th corps were transferred west as reinforcements in order to support the besieged Union Army of the Cumberland in Chattanooga, Tennessee. They were placed under the command of Joseph Hooker. Chattanooga On 24 November 1863, the regiment marched with Geary's Division from Wauhatchie early in the morning, crossed Lookout Creek about 9:30 a.m. and formed the left of Geary's line when the latter was formed for advance toward the northern slope of Lookout Mountain. Ireland's brigade was on their right about 50 paces in front, a march of a mile and a quarter uncovered the fords by which Grose's Brigade of Cruft's Division joined the left of the line. In the general attack, they pushed on to Cravens' house, and continued in action on the front line throughout the afternoon, and then participated in the heavy skirmishing of the night. The next day, they were in the pursuit of the Confederates towards the Rossville Gap on Missionary Ridge. They captured many men and guns without losing a single man in the regiment. On 27 November, with General Hooker, the Seventh charged up a series of hills in which the Confederates were holding called Taylor's Ridge in the battle of Ringgold. In this battle, the Seventh lost their colonel, William R. Creighton, as well as many officers and many of their men. This would be the Seventh's harshest experience throughout the war. Once the campaign concluded and the siege had been lifted, the Seventh encamped at Chattanooga for the winter. Atlanta Campaign The 7th Ohio Infantry joined the campaign against Atlanta on 1 May 1864. First, it had an engagement at Rocky Face Ridge from 8–11 May. Then they took part in the Battle of Resaca on the 14th and 15th. Next, it had an engagement at Cassville on the 19th and then participated in reconnaissance at Pumpkin Vine Creek on the 25th. Later that day, they were in the Battle of Dallas and in the engagement at New Hope Church. Finally on 5 June, they fought at Allatoona Hills. Before Sherman's forces entered Atlanta, the Seventh was removed from the front because their three-year term of service had reached its expiration. Withdrawal On 11 July 1864, with the regiment's term of enlistment having expired, men who wished to continue serving in the army were transferred to the 5th Ohio, while the others left the front for their withdrawal from active service. The regiment was mustered out in Cleveland on 6–7 July. Commemoration On 4 May 1885, the Ohio General Assembly passed an Act "To appropriate money to purchase land upon which to erect a monument to the memory of the soldiers of Ohio who died upon the battlefield of Gettysburg." The Act appropriated $5,000 to be spent for the purpose under the direction of the Battlefield Memorial Commission. To see that this Act would be carried out in the best means, a meeting of the surviving Ohio soldiers was held at the State Capitol on 4 July 1885. At that same meeting, it was agreed upon that a committee would accompany the Adjutant-General to Gettysburg, and assist him in locating the positions in which Ohio troops fought. After inspecting the field, the committee declared that $2,000 would be appropriated for each Ohio regiment, battery, or other organization which took part in the battle. This sum would be for the proper placement of monuments and tablets, and for keeping the grounds and memorials in good condition. On 15 and 16 July 1886, after careful inspection and examination of the positions occupied by Ohio organizations during the battle, it was decided that each organization should have its own special monument. No two would be alike in pattern and design, and each would be $1,500. On 14 September 1887, they were formally dedicated and turned over to the Gettysburg Battlefield Commission for future care and protection. The 7th Ohio Infantry's monument is located near Gettysburg, Pennsylvania in Adams County. It is a simple stone structure located at the intersection of Slocum Avenue and Williams Avenue, on the right when traveling north on Slocum Avenue. It lies on the "saddle" between the lower and upper crest of Culp's Hill in Gettysburg National Military Park. Dedicated on 14 September 1887, it marks the position held by the regiment on 2 and 3 July 1863. It is vertical with mostly rough-hewn surfaces and an apexed top. There is a polished inscription stone on each one of its sides. On two faces, towards the top, are State Seal and unit reliefs. A relief of crossed muskets with a wreath in the center is on the lower front sloped surface. A Corps star insignia appears on the top of the front inscription tablet. It was constructed by Smith Granite Company. (Front) - 7th Ohio Infantry – 1st Brigade 2d Division – 12th Corps – 1, 2 July 3, 1863 (Left) - Dulce et Decorum est Pro Patria Mori – 7th Ohio Infantry – Arrived near Little Round Top evening of 1 July on 2 July, held positions on Culp's Hill from morning until 6 p.m. then moved with Brigade to support the left. Returned at midnight to Culp's Hill and remained there until the close of the battle. (Back) - 7th Ohio Infantry – Mustered in for – 3 months 30 April 1861 – Mustered in for – 3 years 21 June 1861 – Mustered out in June 1864 (Right) - Ohio honors her brave sons – 7th Ohio Infantry – Served with the national armies in Virginia and the Antietam and Gettysburg Campaigns. Was transferred in September 1863 to the Army of the Cumberland and served with that Army until June 1864. Today, the lineage and honors of the 7th Ohio Infantry are carried on by the 145th Armored Regiment, Ohio National Guard. Notes References Ohio in the Civil War: 7th OVI by Larry Stevens Home Camp of The Seventh Regiment, Ohio Volunteer Infantry CWSAC Battle Summaries, National Park Service National Park Service battle description NPS report on battlefield condition Seventh Ohio Infantry Itinerary of the Seventh Ohio Volunteer Infantry 1861-1864 External links Civil War Index: 7th Ohio Infantry – 3 Months Service in the American Civil War Civil War Index: 7th Ohio Infantry – 3 Years Service in the American Civil War Units and formations of the Union Army from Ohio 1861 establishments in Ohio Military units and formations established in 1861 Military units and formations disestablished in 1864 1864 disestablishments in Ohio
Gathiruini is a settlement in Kenya's Central Province. It is a small town along kwamaiko nyanduma road. References Populated places in Central Province (Kenya)