text: "use strict";
  self["webpackHotUpdate_zendeskgarden_react_components"]("main",{
  
  /***/ "./packages/modals/demo/stories/ModalStory.tsx":
  /*!*****************************************************!*\
    !*** ./packages/modals/demo/stories/ModalStory.tsx ***!
    \*****************************************************/
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  /* harmony export */   "ModalStory": () => (/* binding */ ModalStory)
  /* harmony export */ });
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.index-of.js */ "./node_modules/core-js/modules/es.array.index-of.js");
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_1__);
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__);
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__);
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
  /* harmony import */ var C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(C_xampp_htdocs_design_react_components_node_modules_core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/Modal.tsx");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/Header.tsx");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/Body.tsx");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/Footer.tsx");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/FooterItem.tsx");
  /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../src */ "./packages/modals/src/elements/Close.tsx");
  /* harmony import */ var _buttons_src__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../buttons/src */ "./packages/buttons/src/elements/Button.tsx");
  
  
  
  
  var _excluded = ["onClick", "onClose", "isVisible", "hasBody", "body", "hasClose", "hasFooter", "footerItems", "hasHeader", "header", "isDanger"];
  
  function _extends() { _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; }; return _extends.apply(this, arguments); }
  
  
  
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  
  /**
   * Copyright Zendesk, Inc.
   *
   * Use of this source code is governed under the Apache License, Version 2.0
   * found at http://www.apache.org/licenses/LICENSE-2.0.
   */
  
  
  
  var ModalStory = function ModalStory(_ref) {
    var onClick = _ref.onClick,
        onClose = _ref.onClose,
        isVisible = _ref.isVisible,
        hasBody = _ref.hasBody,
        body = _ref.body,
        hasClose = _ref.hasClose,
        hasFooter = _ref.hasFooter,
        footerItems = _ref.footerItems,
        hasHeader = _ref.hasHeader,
        header = _ref.header,
        isDanger = _ref.isDanger,
        args = _objectWithoutProperties(_ref, _excluded);
  
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_buttons_src__WEBPACK_IMPORTED_MODULE_6__["default"], {
      size: args.isLarge ? 'large' : undefined,
      isDanger: isDanger,
      onClick: onClick
    }, "Open", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_buttons_src__WEBPACK_IMPORTED_MODULE_6__["default"].EndIcon, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      width: "16",
      height: "16",
      focusable: "false",
      viewBox: "0 0 16 16"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement("path", {
      fill: "none",
      stroke: "currentColor",
      d: "M12.17 7.5H9.5L12.96 1c.12-.28-.01-.5-.29-.5H7.5c-.28 0-.6.22-.71.5L4.21 7c-.11.28.01.5.29.5h2.45l-2.64 7.24c-.19.51-.04.95.59.38l7.29-6.87c.43-.4.4-.75-.02-.75z"
    })))), isVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_7__.Modal, _extends({}, args, {
      onClose: onClose
    }), hasHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_8__.Header, {
      isDanger: isDanger
    }, header), hasBody ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_9__.Body, null, body) : body, hasFooter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_10__.Footer, null, footerItems.map(function (_ref2, index) {
      var text = _ref2.text,
          type = _ref2.type;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_11__.FooterItem, {
        key: index
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_buttons_src__WEBPACK_IMPORTED_MODULE_6__["default"], {
        isBasic: type === 'basic',
        isPrimary: type === 'primary',
        isDanger: isDanger && type === 'primary',
        onClick: onClose
      }, text));
    })), hasClose && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_src__WEBPACK_IMPORTED_MODULE_12__.Close, null)));
  };
  
  /***/ })
  
  });
  //# sourceMappingURL=main.70f85f806eea6cc96296.hot-update.js.map