(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[27],{

/***/ "../../node_modules/@atlaskit/badge/dist/esm/Badge/index.js":
/*!**************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/@atlaskit/badge/dist/esm/Badge/index.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_core_js_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/core-js/object/get-prototype-of */ "../../node_modules/babel-runtime/core-js/object/get-prototype-of.js");
/* harmony import */ var babel_runtime_core_js_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_core_js_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "../../node_modules/babel-runtime/helpers/classCallCheck.js");
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "../../node_modules/babel-runtime/helpers/createClass.js");
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ "../../node_modules/babel-runtime/helpers/possibleConstructorReturn.js");
/* harmony import */ var babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/inherits */ "../../node_modules/babel-runtime/helpers/inherits.js");
/* harmony import */ var babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _atlaskit_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @atlaskit/theme */ "../../node_modules/@atlaskit/theme/dist/esm/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _styled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./styled */ "../../node_modules/@atlaskit/badge/dist/esm/Badge/styled.js");
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../theme */ "../../node_modules/@atlaskit/badge/dist/esm/theme.js");










function getValue(value, max) {
  if (value < 0) {
    return '0';
  }
  if (max > 0 && value > max) {
    return max + '+';
  }
  if (value === Infinity) {
    return '∞';
  }
  return String(value);
}

var Badge = function (_PureComponent) {
  babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Badge, _PureComponent);

  function Badge() {
    babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Badge);

    return babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, (Badge.__proto__ || babel_runtime_core_js_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_0___default()(Badge)).apply(this, arguments));
  }

  babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Badge, [{
    key: 'componentWillUpdate',
    value: function componentWillUpdate(nextProps) {
      var _props = this.props,
          onValueUpdated = _props.onValueUpdated,
          oldValue = _props.value;
      var newValue = nextProps.value;


      if (onValueUpdated && newValue !== oldValue) {
        onValueUpdated({ oldValue: oldValue, newValue: newValue });
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          appearance = _props2.appearance,
          max = _props2.max,
          value = _props2.value;

      var computedValue = getValue(value, max);
      return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(
        _atlaskit_theme__WEBPACK_IMPORTED_MODULE_5__["Appearance"],
        { props: appearance, theme: _theme__WEBPACK_IMPORTED_MODULE_8__ },
        function (styleProps) {
          return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(
            _styled__WEBPACK_IMPORTED_MODULE_7__["BadgeElement"],
            styleProps,
            computedValue
          );
        }
      );
    }
  }]);

  return Badge;
}(react__WEBPACK_IMPORTED_MODULE_6__["PureComponent"]);

Badge.defaultProps = {
  appearance: 'default',
  max: 99,
  value: 0
};
/* harmony default export */ __webpack_exports__["default"] = (Badge);

/***/ }),

/***/ "../../node_modules/@atlaskit/badge/dist/esm/Badge/styled.js":
/*!***************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/@atlaskit/badge/dist/esm/Badge/styled.js ***!
  \***************************************************************************************/
/*! exports provided: BadgeElement */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadgeElement", function() { return BadgeElement; });
/* harmony import */ var babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/taggedTemplateLiteral */ "../../node_modules/babel-runtime/helpers/taggedTemplateLiteral.js");
/* harmony import */ var babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "../../node_modules/styled-components/dist/styled-components.browser.es.js");


var _templateObject = babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(['\n  ', ';\n  border-radius: 2em;\n  display: inline-block;\n  font-size: 12px;\n  font-weight: normal;\n  line-height: 1;\n  min-width: 1px;\n  padding: 0.16666666666667em 0.5em;\n  text-align: center;\n'], ['\n  ', ';\n  border-radius: 2em;\n  display: inline-block;\n  font-size: 12px;\n  font-weight: normal;\n  line-height: 1;\n  min-width: 1px;\n  padding: 0.16666666666667em 0.5em;\n  text-align: center;\n']);



var BadgeElement = styled_components__WEBPACK_IMPORTED_MODULE_1__["default"].span(_templateObject, function (props) {
  return '\n    background-color: ' + props.backgroundColor + ';\n    color: ' + props.textColor + ';\n  ';
});
BadgeElement.displayName = 'BadgeElement';



/***/ }),

/***/ "../../node_modules/@atlaskit/badge/dist/esm/theme.js":
/*!********************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/@atlaskit/badge/dist/esm/theme.js ***!
  \********************************************************************************/
/*! exports provided: backgroundColor, textColor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backgroundColor", function() { return backgroundColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "textColor", function() { return textColor; });
/* harmony import */ var _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @atlaskit/theme */ "../../node_modules/@atlaskit/theme/dist/esm/index.js");


var backgroundColor = Object(_atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["themed"])('appearance', {
  added: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].G50, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].G50 },
  default: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N30, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].DN70 },
  important: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R300, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R300 },
  primary: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].B400, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].B100 },
  /* Note that primary inverted is a temporary implementation. Once navigation has
  context of the nav location to pass down, this will be moved to the primary when
  viewed in a global context. */
  primaryInverted: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N0, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].DN400 },
  removed: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R50, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R50 }
});

var textColor = Object(_atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["themed"])('appearance', {
  added: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].G500, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].G500 },
  default: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N800, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].DN900 },
  important: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N0, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N0 },
  primary: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].N0, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].DN0 },
  primaryInverted: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].B500, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].DN0 },
  removed: { light: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R500, dark: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_0__["colors"].R500 }
});

/***/ }),

/***/ "../atlaskit-samples/lib/component/BadgeSamples.js":
/*!*********************************************************!*\
  !*** ../atlaskit-samples/lib/component/BadgeSamples.js ***!
  \*********************************************************/
/*! exports provided: BadgeSample, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadgeSample", function() { return BadgeSample; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return BadgeSample; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @atlaskit/badge/dist/esm/Badge */ "../../node_modules/@atlaskit/badge/dist/esm/Badge/index.js");
/* harmony import */ var _atlaskit_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @atlaskit/theme */ "../../node_modules/@atlaskit/theme/dist/esm/index.js");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();



var Item = /** @class */ (function (_super) {
    __extends(Item, _super);
    function Item() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Item.prototype.render = function () {
        return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: {
                alignItems: "center",
                background: this.props.inverted ? _atlaskit_theme__WEBPACK_IMPORTED_MODULE_2__["colors"].B400 : "none",
                borderRadius: _atlaskit_theme__WEBPACK_IMPORTED_MODULE_2__["borderRadius"],
                color: this.props.inverted ? _atlaskit_theme__WEBPACK_IMPORTED_MODULE_2__["colors"].N0 : "inherit",
                display: "flex",
                justifyContent: "space-between",
                marginBottom: 4,
                maxWidth: 300,
                padding: "0.6em 1em"
            } }, this.props.children));
    };
    return Item;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
var BadgeSample = /** @class */ (function (_super) {
    __extends(BadgeSample, _super);
    function BadgeSample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    BadgeSample.prototype.render = function () {
        return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: { padding: 8 } },
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Default"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { value: 5 })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Primary"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { appearance: "primary", value: -5 })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Important"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { appearance: "important", value: 25 })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, { inverted: true },
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Primary Inverted"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { appearance: "primaryInverted", value: -5 })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Added (no theme change)"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { appearance: "added", max: 99, value: 3000 })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Removed (no theme change)"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { appearance: "removed" })),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Item, null,
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("p", null, "Infinity (\u221E)"),
                react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_atlaskit_badge_dist_esm_Badge__WEBPACK_IMPORTED_MODULE_1__["default"], { max: Infinity, value: Infinity }))));
    };
    return BadgeSample;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));



/***/ })

}]);
//# sourceMappingURL=27.js.map