{"version":3,"sources":["webpack://frontend-taglib-clay/node_modules/@clayui/alert/lib/Footer.js","webpack://frontend-taglib-clay/node_modules/@clayui/alert/lib/ToastContainer.js","webpack://frontend-taglib-clay/frontend-js-react-web/__liferay__/exports/classnames.js\"","webpack://frontend-taglib-clay/frontend-js-react-web/__liferay__/exports/react.js\"","webpack://frontend-taglib-clay/frontend-taglib-clay/__liferay__/exports/@clayui$icon.js\"","webpack://frontend-taglib-clay/frontend-taglib-clay/__liferay__/exports/@clayui$layout.js\"","webpack://frontend-taglib-clay/webpack/bootstrap","webpack://frontend-taglib-clay/node_modules/@clayui/alert/lib/index.js"],"names":["Object","defineProperty","exports","value","_classnames","_interopRequireDefault","__webpack_require__","_react","_excluded","obj","__esModule","default","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_default","_ref","children","className","otherProps","createElement","module","__WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_classnames_js_a73da2a0__","__WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_react_js_52accfa8__","__WEBPACK_EXTERNAL_MODULE__frontend_taglib_clay_liferay_exports_clayui$icon_js_79ccb798__","__WEBPACK_EXTERNAL_MODULE__frontend_taglib_clay_liferay_exports_clayui$layout_js_d12e1494__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","_icon","_layout","_Footer","_ToastContainer","ICON_MAP","danger","info","success","warning","VARIANTS","ClayAlert","actions","autoClose","_ref$displayType","displayType","_ref$hideCloseIcon","hideCloseIcon","onClose","spritemap","title","variant","_useAutoClose","startedTime","useRef","timer","timeToClose","pauseTimer","startTimer","current","Date","now","clearTimeout","window","setTimeout","useEffect","pauseAutoCloseTimer","startAutoCloseTimer","useAutoClose","ConditionalContainer","_ref2","Fragment","showDismissible","AlertIndicator","symbol","alert-dismissible","alert-feedback alert-indicator-start","alert-fluid","alert-inline","concat","enumerable","configurable","writable","onMouseOut","onMouseOver","role","ContentRow","includes","ContentCol","ContentSection","expand","aria-label","onClick","type","Footer","ToastContainer"],"mappings":";;;uEAEAA,OAAAC,eAAAC,EAAA,aAAA,CACAC,OAAA,IAEAD,EAAA,aAAA,EAEA,IAAAE,EAAAC,EAAAC,mBAAA,eAEAC,EAAAF,EAAAC,cAAA,UAEAE,EAAA,CAAA,WAAA,aAEA,SAAAH,EAAAI,GAAA,OAAAA,GAAAA,EAAAC,WAAAD,EAAA,CAAAE,QAAAF,GAEA,SAAAG,IAAA,OAAAA,EAAAZ,OAAAa,QAAA,SAAAC,GAAA,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAA,CAAA,IAAAG,EAAAF,UAAAD,GAAA,IAAA,IAAAI,KAAAD,EAAAlB,OAAAoB,UAAAC,eAAAC,KAAAJ,EAAAC,KAAAL,EAAAK,GAAAD,EAAAC,IAAA,OAAAL,IAAAS,MAAAC,KAAAR,WAEA,SAAAS,EAAAP,EAAAQ,GAAA,GAAA,MAAAR,EAAA,MAAA,GAAA,IAAAC,EAAAJ,EAAAD,EAEA,SAAAI,EAAAQ,GAAA,GAAA,MAAAR,EAAA,MAAA,GAAA,IAAAC,EAAAJ,EAAAD,EAAA,GAAAa,EAAA3B,OAAA4B,KAAAV,GAAA,IAAAH,EAAA,EAAAA,EAAAY,EAAAV,OAAAF,IAAAI,EAAAQ,EAAAZ,GAAAW,EAAAG,QAAAV,IAAA,IAAAL,EAAAK,GAAAD,EAAAC,IAAA,OAAAL,EAFAgB,CAAAZ,EAAAQ,GAAA,GAAA1B,OAAA+B,sBAAA,CAAA,IAAAC,EAAAhC,OAAA+B,sBAAAb,GAAA,IAAAH,EAAA,EAAAA,EAAAiB,EAAAf,OAAAF,IAAAI,EAAAa,EAAAjB,GAAAW,EAAAG,QAAAV,IAAA,GAAAnB,OAAAoB,UAAAa,qBAAAX,KAAAJ,E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,KAAA,UACAzG,EAAAI,QAAA4B,cAAAW,EAAAvC,QAAA,CACAyD,UAAAA,EACAyB,OAAA,cAIAjC,EAAAqD,OAAA7D,EAAAzC,QACAiD,EAAAsD,eAAA7D,EAAA1C,QACA,IAAAuB,EAAA0B,EACA1D,EAAA,QAAAgC","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _excluded = [\"children\", \"className\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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); }\n\nfunction _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; }\n\nfunction _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; }\n\nvar ClayAlertFooter = function ClayAlertFooter(_ref) {\n var children = _ref.children,\n className = _ref.className,\n otherProps = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/_react.default.createElement(\"div\", _extends({\n className: (0, _classnames.default)(className, 'alert-footer')\n }, otherProps), children);\n};\n\nvar _default = ClayAlertFooter;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _excluded = [\"children\", \"className\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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); }\n\nfunction _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; }\n\nfunction _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; }\n\nvar ClayToastContainer = function ClayToastContainer(_ref) {\n var children = _ref.children,\n className = _ref.className,\n otherProps = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/_react.default.createElement(\"div\", _extends({}, otherProps, {\n className: (0, _classnames.default)(className, 'alert-container container')\n }), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"alert-notifications alert-notifications-fixed\"\n }, children));\n};\n\nvar _default = ClayToastContainer;\nexports.default = _default;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_classnames_js_a73da2a0__;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_js_react_web_liferay_exports_react_js_52accfa8__;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_taglib_clay_liferay_exports_clayui$icon_js_79ccb798__;","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__frontend_taglib_clay_liferay_exports_clayui$layout_js_d12e1494__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _icon = _interopRequireDefault(require(\"@clayui/icon\"));\n\nvar _layout = _interopRequireDefault(require(\"@clayui/layout\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Footer = _interopRequireDefault(require(\"./Footer\"));\n\nvar _ToastContainer = _interopRequireDefault(require(\"./ToastContainer\"));\n\nvar _excluded = [\"actions\", \"autoClose\", \"children\", \"className\", \"displayType\", \"hideCloseIcon\", \"onClose\", \"spritemap\", \"title\", \"variant\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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); }\n\nfunction _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; }\n\nfunction _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; }\n\nfunction _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; }\n\nvar useAutoClose = function useAutoClose(autoClose) {\n var onClose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n\n var startedTime = _react.default.useRef(0);\n\n var timer = _react.default.useRef(undefined);\n\n var timeToClose = _react.default.useRef(autoClose === true ? 10000 : autoClose);\n\n var pauseTimer = function pauseTimer() {};\n\n var startTimer = function startTimer() {};\n\n if (autoClose) {\n pauseTimer = function pauseTimer() {\n if (timer.current) {\n timeToClose.current = timeToClose.current - (Date.now() - startedTime.current);\n clearTimeout(timer.current);\n timer.current = undefined;\n }\n };\n\n startTimer = function startTimer() {\n startedTime.current = Date.now();\n timer.current = window.setTimeout(onClose, timeToClose.current);\n };\n }\n\n _react.default.useEffect(function () {\n if (autoClose && onClose) {\n startTimer();\n return pauseTimer;\n }\n }, []);\n\n return {\n pauseAutoCloseTimer: pauseTimer,\n startAutoCloseTimer: startTimer\n };\n};\n\nvar ICON_MAP = {\n danger: 'exclamation-full',\n info: 'info-circle',\n success: 'check-circle-full',\n warning: 'warning-full'\n};\nvar VARIANTS = ['inline', 'feedback'];\n\nvar ClayAlert = function ClayAlert(_ref) {\n var actions = _ref.actions,\n autoClose = _ref.autoClose,\n children = _ref.children,\n className = _ref.className,\n _ref$displayType = _ref.displayType,\n displayType = _ref$displayType === void 0 ? 'info' : _ref$displayType,\n _ref$hideCloseIcon = _ref.hideCloseIcon,\n hideCloseIcon = _ref$hideCloseIcon === void 0 ? false : _ref$hideCloseIcon,\n onClose = _ref.onClose,\n spritemap = _ref.spritemap,\n title = _ref.title,\n variant = _ref.variant,\n otherProps = _objectWithoutProperties(_ref, _excluded);\n\n var _useAutoClose = useAutoClose(autoClose, onClose),\n pauseAutoCloseTimer = _useAutoClose.pauseAutoCloseTimer,\n startAutoCloseTimer = _useAutoClose.startAutoCloseTimer;\n\n var ConditionalContainer = function ConditionalContainer(_ref2) {\n var children = _ref2.children;\n return variant === 'stripe' ? /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"container\"\n }, children) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);\n };\n\n var showDismissible = onClose && !hideCloseIcon;\n\n var AlertIndicator = function AlertIndicator() {\n return /*#__PURE__*/_react.default.createElement(\"span\", {\n className: \"alert-indicator\"\n }, /*#__PURE__*/_react.default.createElement(_icon.default, {\n spritemap: spritemap,\n symbol: ICON_MAP[displayType]\n }));\n };\n\n return /*#__PURE__*/_react.default.createElement(\"div\", _extends({}, otherProps, {\n className: (0, _classnames.default)(className, 'alert', _defineProperty({\n 'alert-dismissible': showDismissible,\n 'alert-feedback alert-indicator-start': variant === 'feedback',\n 'alert-fluid': variant === 'stripe',\n 'alert-inline': variant === 'inline'\n }, \"alert-\".concat(displayType), displayType)),\n onMouseOut: startAutoCloseTimer,\n onMouseOver: pauseAutoCloseTimer,\n role: \"alert\"\n }), /*#__PURE__*/_react.default.createElement(ConditionalContainer, null, /*#__PURE__*/_react.default.createElement(_layout.default.ContentRow, {\n className: \"alert-autofit-row\"\n }, !VARIANTS.includes(variant) && /*#__PURE__*/_react.default.createElement(_layout.default.ContentCol, null, /*#__PURE__*/_react.default.createElement(_layout.default.ContentSection, null, /*#__PURE__*/_react.default.createElement(AlertIndicator, null))), /*#__PURE__*/_react.default.createElement(_layout.default.ContentCol, {\n expand: true\n }, /*#__PURE__*/_react.default.createElement(_layout.default.ContentSection, null, VARIANTS.includes(variant) && /*#__PURE__*/_react.default.createElement(AlertIndicator, null), title && /*#__PURE__*/_react.default.createElement(\"strong\", {\n className: \"lead\"\n }, title), children, variant !== 'inline' && actions && /*#__PURE__*/_react.default.createElement(_Footer.default, null, actions))), variant === 'inline' && actions && /*#__PURE__*/_react.default.createElement(_layout.default.ContentCol, null, /*#__PURE__*/_react.default.createElement(_layout.default.ContentSection, null, actions))), showDismissible && /*#__PURE__*/_react.default.createElement(\"button\", {\n \"aria-label\": \"Close\",\n className: \"close\",\n onClick: onClose,\n type: \"button\"\n }, /*#__PURE__*/_react.default.createElement(_icon.default, {\n spritemap: spritemap,\n symbol: \"times\"\n }))));\n};\n\nClayAlert.Footer = _Footer.default;\nClayAlert.ToastContainer = _ToastContainer.default;\nvar _default = ClayAlert;\nexports.default = _default;"]}