@moosend/mooskin 1.0.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Checkbox/Checkbox.d.ts +1 -1
- package/lib/Checkbox/styles.d.ts +1 -1
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Input/styles.d.ts +1 -1
- package/lib/NumberLabel/model.d.ts +1 -1
- package/lib/Radio/Radio.d.ts +1 -1
- package/lib/Radio/styles.d.ts +1 -1
- package/lib/Styled/model.d.ts +15 -0
- package/lib/index/index.d.ts +9 -9
- package/lib/index/index.js +2 -2
- package/package.json +2 -5
- package/lib/Button/index.d.ts +0 -2
- package/lib/Button/index.js +0 -1
- package/lib/Button/style.css +0 -1
- package/lib/Carousel/index.d.ts +0 -2
- package/lib/Carousel/index.js +0 -12
- package/lib/Carousel/style.css +0 -326
- package/lib/CheckListItem/CheckListItem.d.ts +0 -24
- package/lib/CheckListItem/index.d.ts +0 -2
- package/lib/CheckListItem/index.js +0 -1
- package/lib/CheckListItem/style.css +0 -5
- package/lib/Checkbox/index.d.ts +0 -3
- package/lib/Checkbox/index.js +0 -1
- package/lib/Checkbox/style.css +0 -14
- package/lib/ClipboardButton/ClipboardButton.d.ts +0 -19
- package/lib/ClipboardButton/index.d.ts +0 -2
- package/lib/ClipboardButton/index.js +0 -1
- package/lib/ClipboardButton/style.css +0 -1
- package/lib/DatePicker/index.d.ts +0 -3
- package/lib/DatePicker/index.js +0 -12
- package/lib/DatePicker/style.css +0 -7
- package/lib/DateRange/index.d.ts +0 -2
- package/lib/DateRange/index.js +0 -12
- package/lib/DateRange/style.css +0 -19
- package/lib/Fieldset/Fieldset.d.ts +0 -16
- package/lib/Fieldset/index.d.ts +0 -2
- package/lib/Fieldset/index.js +0 -1
- package/lib/Fieldset/style.css +0 -2
- package/lib/File/FileUpload.d.ts +0 -43
- package/lib/File/index.d.ts +0 -2
- package/lib/File/index.js +0 -1
- package/lib/File/style.css +0 -1
- package/lib/Form/Form.d.ts +0 -36
- package/lib/Form/index.d.ts +0 -3
- package/lib/Form/index.js +0 -1
- package/lib/Form/style.css +0 -1
- package/lib/Grid/index.d.ts +0 -4
- package/lib/Grid/index.js +0 -1
- package/lib/Grid/style.css +0 -1
- package/lib/Headings/H1/H1.d.ts +0 -11
- package/lib/Headings/H2/H2.d.ts +0 -11
- package/lib/Headings/H3/H3.d.ts +0 -11
- package/lib/Headings/H4/H4.d.ts +0 -11
- package/lib/Headings/H5/H5.d.ts +0 -11
- package/lib/Headings/H6/H6.d.ts +0 -11
- package/lib/Headings/index.d.ts +0 -6
- package/lib/Headings/index.js +0 -1
- package/lib/Headings/props.d.ts +0 -7
- package/lib/Headings/style.css +0 -12
- package/lib/HorizontalRangeBar/HorizontalRangeBar.d.ts +0 -25
- package/lib/HorizontalRangeBar/index.d.ts +0 -2
- package/lib/HorizontalRangeBar/index.js +0 -1
- package/lib/HorizontalRangeBar/style.css +0 -1
- package/lib/Input/index.d.ts +0 -2
- package/lib/Input/index.js +0 -1
- package/lib/Input/style.css +0 -465
- package/lib/Label/index.d.ts +0 -2
- package/lib/Label/index.js +0 -1
- package/lib/Label/style.css +0 -2
- package/lib/List/index.d.ts +0 -3
- package/lib/List/index.js +0 -1
- package/lib/List/style.css +0 -2
- package/lib/Loader/index.d.ts +0 -2
- package/lib/Loader/index.js +0 -1
- package/lib/Loader/style.css +0 -1
- package/lib/LoadingBar/index.d.ts +0 -2
- package/lib/LoadingBar/index.js +0 -1
- package/lib/LoadingBar/style.css +0 -1
- package/lib/Modal/index.d.ts +0 -2
- package/lib/Modal/index.js +0 -1
- package/lib/Modal/style.css +0 -15
- package/lib/Pagination/index.d.ts +0 -2
- package/lib/Pagination/index.js +0 -1
- package/lib/Pagination/style.css +0 -1
- package/lib/Radio/index.d.ts +0 -3
- package/lib/Radio/index.js +0 -1
- package/lib/Radio/style.css +0 -13
- package/lib/RadioAccordion/RadioAccordion.d.ts +0 -49
- package/lib/RadioAccordion/index.d.ts +0 -3
- package/lib/RadioAccordion/index.js +0 -1
- package/lib/RadioAccordion/style.css +0 -1
- package/lib/Select/index.d.ts +0 -3
- package/lib/Select/index.js +0 -1
- package/lib/Select/style.css +0 -2
- package/lib/SideBar/SideBar.d.ts +0 -79
- package/lib/SideBar/index.d.ts +0 -3
- package/lib/SideBar/index.js +0 -1
- package/lib/SideBar/style.css +0 -3
- package/lib/Slider/index.d.ts +0 -3
- package/lib/Slider/index.js +0 -1
- package/lib/Slider/style.css +0 -2
- package/lib/SmallIconButton/SmallIconButton.d.ts +0 -23
- package/lib/SmallIconButton/index.d.ts +0 -2
- package/lib/SmallIconButton/index.js +0 -1
- package/lib/SmallIconButton/style.css +0 -2
- package/lib/StatsBox/StatsBox.d.ts +0 -16
- package/lib/StatsBox/index.d.ts +0 -2
- package/lib/StatsBox/index.js +0 -1
- package/lib/StatsBox/style.css +0 -2
- package/lib/Steps/index.d.ts +0 -3
- package/lib/Steps/index.js +0 -1
- package/lib/Steps/style.css +0 -1
- package/lib/Switch/index.d.ts +0 -2
- package/lib/Switch/index.js +0 -1
- package/lib/Switch/style.css +0 -1
- package/lib/TabbedContent/TabbedContent.d.ts +0 -72
- package/lib/TabbedContent/index.d.ts +0 -3
- package/lib/TabbedContent/index.js +0 -1
- package/lib/TabbedContent/style.css +0 -4
- package/lib/Table/index.d.ts +0 -3
- package/lib/Table/index.js +0 -1
- package/lib/Table/style.css +0 -6
- package/lib/Tags/index.d.ts +0 -2
- package/lib/Tags/index.js +0 -1
- package/lib/Tags/style.css +0 -3
- package/lib/TextArea/index.d.ts +0 -2
- package/lib/TextArea/index.js +0 -1
- package/lib/TextArea/style.css +0 -1
- package/lib/TextEditor/index.d.ts +0 -2
- package/lib/TextEditor/index.js +0 -28
- package/lib/TextEditor/style.css +0 -852
- package/lib/TopNotification/TopNotification.d.ts +0 -27
- package/lib/TopNotification/index.d.ts +0 -2
- package/lib/TopNotification/index.js +0 -1
- package/lib/TopNotification/style.css +0 -2
- package/lib/Topbar/Topbar.d.ts +0 -23
- package/lib/Topbar/index.d.ts +0 -2
- package/lib/Topbar/index.js +0 -1
- package/lib/Topbar/style.css +0 -1
- package/lib/_utils/index.js +0 -1
- package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +0 -6
- package/lib/components/ActionsDropdown/model.d.ts +0 -10
- package/lib/components/ActionsDropdown/styles.d.ts +0 -6
- package/lib/components/Alert/Alert.d.ts +0 -7
- package/lib/components/Alert/model.d.ts +0 -5
- package/lib/components/Alert/styles.d.ts +0 -7
- package/lib/components/Anchor/Anchor.d.ts +0 -3
- package/lib/components/Anchor/model.d.ts +0 -4
- package/lib/components/Anchor/styles.d.ts +0 -3
- package/lib/components/Box/Box.d.ts +0 -3
- package/lib/components/Box/model.d.ts +0 -113
- package/lib/components/Box/styles.d.ts +0 -7
- package/lib/components/Button/Button.d.ts +0 -5
- package/lib/components/Button/model.d.ts +0 -6
- package/lib/components/Button/styles.d.ts +0 -6
- package/lib/components/Carousel/Carousel.d.ts +0 -7
- package/lib/components/Carousel/model.d.ts +0 -33
- package/lib/components/Carousel/styles.d.ts +0 -4
- package/lib/components/Checkbox/Checkbox.d.ts +0 -8
- package/lib/components/Checkbox/model.d.ts +0 -12
- package/lib/components/Checkbox/styles.d.ts +0 -6
- package/lib/components/DatePicker/DatePicker.d.ts +0 -3
- package/lib/components/DatePicker/model.d.ts +0 -11
- package/lib/components/DateRange/DateRange.d.ts +0 -5
- package/lib/components/DateRange/model.d.ts +0 -13
- package/lib/components/DateSelect/DateSelect.d.ts +0 -3
- package/lib/components/DateSelect/model.d.ts +0 -7
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +0 -3
- package/lib/components/DateTimePicker/model.d.ts +0 -11
- package/lib/components/Description/Description.d.ts +0 -3
- package/lib/components/Description/styles.d.ts +0 -3
- package/lib/components/Drawer/Drawer.d.ts +0 -10
- package/lib/components/Drawer/model.d.ts +0 -21
- package/lib/components/Drawer/styles.d.ts +0 -25
- package/lib/components/Expandable/Expandable.d.ts +0 -9
- package/lib/components/Expandable/model.d.ts +0 -13
- package/lib/components/Expandable/styles.d.ts +0 -9
- package/lib/components/Footer/Footer.d.ts +0 -6
- package/lib/components/Footer/styles.d.ts +0 -7
- package/lib/components/Grid/Grid.d.ts +0 -5
- package/lib/components/Grid/model.d.ts +0 -18
- package/lib/components/Grid/styles.d.ts +0 -5
- package/lib/components/IconButton/IconButton.d.ts +0 -3
- package/lib/components/IconButton/model.d.ts +0 -4
- package/lib/components/IconButton/styles.d.ts +0 -3
- package/lib/components/Image/Image.d.ts +0 -3
- package/lib/components/Image/styles.d.ts +0 -3
- package/lib/components/Input/Input.d.ts +0 -12
- package/lib/components/Input/model.d.ts +0 -27
- package/lib/components/Input/styles.d.ts +0 -12
- package/lib/components/Label/Label.d.ts +0 -3
- package/lib/components/Label/model.d.ts +0 -5
- package/lib/components/Label/styles.d.ts +0 -3
- package/lib/components/Layout/Layout.d.ts +0 -3
- package/lib/components/Layout/model.d.ts +0 -5
- package/lib/components/Layout/styles.d.ts +0 -3
- package/lib/components/List/List.d.ts +0 -8
- package/lib/components/List/styles.d.ts +0 -7
- package/lib/components/Loader/Loader.d.ts +0 -3
- package/lib/components/Loader/model.d.ts +0 -5
- package/lib/components/Loader/styles.d.ts +0 -3
- package/lib/components/LoadingBar/LoadingBar.d.ts +0 -3
- package/lib/components/LoadingBar/model.d.ts +0 -7
- package/lib/components/LoadingBar/styles.d.ts +0 -3
- package/lib/components/Modal/Modal.d.ts +0 -10
- package/lib/components/Modal/model.d.ts +0 -15
- package/lib/components/Modal/styles.d.ts +0 -14
- package/lib/components/NumberLabel/NumberLabel.d.ts +0 -3
- package/lib/components/NumberLabel/model.d.ts +0 -7
- package/lib/components/Pagination/Pagination.d.ts +0 -4
- package/lib/components/Pagination/model.d.ts +0 -10
- package/lib/components/Pagination/styles.d.ts +0 -6
- package/lib/components/Radio/Radio.d.ts +0 -8
- package/lib/components/Radio/model.d.ts +0 -13
- package/lib/components/Radio/styles.d.ts +0 -6
- package/lib/components/Select/Select.d.ts +0 -13
- package/lib/components/Select/model.d.ts +0 -22
- package/lib/components/Select/styles.d.ts +0 -13
- package/lib/components/Selector/Selector.d.ts +0 -4
- package/lib/components/Selector/model.d.ts +0 -10
- package/lib/components/Selector/styles.d.ts +0 -4
- package/lib/components/Sidemenu/Sidemenu.d.ts +0 -4
- package/lib/components/Sidemenu/model.d.ts +0 -10
- package/lib/components/Sidemenu/styles.d.ts +0 -4
- package/lib/components/Skeleton/Skeleton.d.ts +0 -5
- package/lib/components/Skeleton/model.d.ts +0 -14
- package/lib/components/Skeleton/styles.d.ts +0 -6
- package/lib/components/Slider/Model.d.ts +0 -7
- package/lib/components/Slider/Slider.d.ts +0 -3
- package/lib/components/Slider/styles.d.ts +0 -3
- package/lib/components/Stack/Stack.d.ts +0 -5
- package/lib/components/Stack/model.d.ts +0 -6
- package/lib/components/Stack/styles.d.ts +0 -3
- package/lib/components/Steps/Steps.d.ts +0 -6
- package/lib/components/Steps/model.d.ts +0 -16
- package/lib/components/Steps/styles.d.ts +0 -7
- package/lib/components/Styled/GlobalStyles.d.ts +0 -2
- package/lib/components/Styled/MooskinContextProvider.d.ts +0 -6
- package/lib/components/Styled/model.d.ts +0 -74
- package/lib/components/Switch/Switch.d.ts +0 -4
- package/lib/components/Switch/model.d.ts +0 -16
- package/lib/components/Switch/styles.d.ts +0 -7
- package/lib/components/Table/Table.d.ts +0 -7
- package/lib/components/Table/styles.d.ts +0 -7
- package/lib/components/Tabs/Tabs.d.ts +0 -6
- package/lib/components/Tabs/model.d.ts +0 -13
- package/lib/components/Tabs/styles.d.ts +0 -6
- package/lib/components/Tags/Tags.d.ts +0 -7
- package/lib/components/Tags/model.d.ts +0 -18
- package/lib/components/Tags/styles.d.ts +0 -8
- package/lib/components/Text/Text.d.ts +0 -3
- package/lib/components/Text/model.d.ts +0 -4
- package/lib/components/Text/styles.d.ts +0 -3
- package/lib/components/TextArea/TextArea.d.ts +0 -3
- package/lib/components/TextArea/model.d.ts +0 -4
- package/lib/components/TextArea/styles.d.ts +0 -3
- package/lib/components/TextEditor/TextEditor.d.ts +0 -3
- package/lib/components/TextEditor/model.d.ts +0 -14
- package/lib/components/_utils/adapter.d.ts +0 -1
- package/lib/components/_utils/globals/screens.d.ts +0 -11
- package/lib/components/_utils/globals/variables.d.ts +0 -3
- package/lib/components/_utils/helper.d.ts +0 -3
- package/lib/components/_utils/index.d.ts +0 -3
- package/lib/components/_utils/test-setup.d.ts +0 -0
- package/lib/components/_utils/types/commonTypes.d.ts +0 -4
- package/lib/components/index/index.d.ts +0 -85
- package/lib/stories/ActionsDropdown.stories.d.ts +0 -6
- package/lib/stories/Alert.stories.d.ts +0 -5
- package/lib/stories/Anchor.stories.d.ts +0 -5
- package/lib/stories/Box.stories.d.ts +0 -4
- package/lib/stories/Button.stories.d.ts +0 -8
- package/lib/stories/Carousel.stories.d.ts +0 -4
- package/lib/stories/Checkbox.stories.d.ts +0 -8
- package/lib/stories/DatePicker.stories.d.ts +0 -4
- package/lib/stories/DateRange.stories.d.ts +0 -4
- package/lib/stories/DateSelect.stories.d.ts +0 -9
- package/lib/stories/DateTimePicker.stories.d.ts +0 -4
- package/lib/stories/Drawer.stories.d.ts +0 -6
- package/lib/stories/Expandable.stories.d.ts +0 -4
- package/lib/stories/Footer.stories.d.ts +0 -4
- package/lib/stories/Grid.stories.d.ts +0 -4
- package/lib/stories/IconButton.stories.d.ts +0 -5
- package/lib/stories/Input.stories.d.ts +0 -6
- package/lib/stories/Layout.stories.d.ts +0 -4
- package/lib/stories/List.stories.d.ts +0 -5
- package/lib/stories/Loader.stories.d.ts +0 -4
- package/lib/stories/LoadingBar.stories.d.ts +0 -4
- package/lib/stories/Modal.stories.d.ts +0 -4
- package/lib/stories/NumberLabel.stories.d.ts +0 -10
- package/lib/stories/Pagination.stories.d.ts +0 -4
- package/lib/stories/Radio.stories.d.ts +0 -8
- package/lib/stories/Select.stories.d.ts +0 -7
- package/lib/stories/Selector.stories.d.ts +0 -4
- package/lib/stories/Sidemenu.stories.d.ts +0 -4
- package/lib/stories/Skeleton.stories.d.ts +0 -6
- package/lib/stories/Slider.stories.d.ts +0 -4
- package/lib/stories/Stack.stories.d.ts +0 -9
- package/lib/stories/StackedTags.stories.d.ts +0 -4
- package/lib/stories/Steps.stories.d.ts +0 -4
- package/lib/stories/Switch.stories.d.ts +0 -6
- package/lib/stories/Table.stories.d.ts +0 -4
- package/lib/stories/Tabs.stories.d.ts +0 -4
- package/lib/stories/Tags.stories.d.ts +0 -6
- package/lib/stories/TextEditor.stories.d.ts +0 -8
- package/lib/stories/Textarea.stories.d.ts +0 -5
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IStatsBoxProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
sideTitle: string;
|
|
5
|
-
sideColor: string;
|
|
6
|
-
sideTextColor: string;
|
|
7
|
-
sideTitleHref?: string;
|
|
8
|
-
onClickSideTitle?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
}
|
|
11
|
-
export default class StatsBox extends React.Component<IStatsBoxProps, {}> {
|
|
12
|
-
static defaultProps: Partial<IStatsBoxProps>;
|
|
13
|
-
static displayName: string;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
onClickSideTitle: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
16
|
-
}
|
package/lib/StatsBox/index.d.ts
DELETED
package/lib/StatsBox/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=350)}({0:function(t,n){t.exports=e},350:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(70),i=n.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=l(this,s(t).apply(this,arguments))).onClickSideTitle=function(t){e.props.onClickSideTitle&&e.props.onClickSideTitle(t)},e}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.sideColor,r=e.sideTextColor,a=e.sideTitle,c=e.style,l=e.sideTitleHref,s={background:n,color:r},u=o.createElement("div",{className:i.a.statsTitle,style:s,onClick:this.onClickSideTitle},o.createElement("div",{className:i.a.rotateText},a)),f=l?o.createElement("a",{href:l,className:i.a.titleAnchor,target:l.includes("http:")||l.includes("https:")?"_blank":""},u):u;return o.createElement("div",{style:c,className:"".concat(i.a.statsBox," ").concat(t)},o.createElement("div",{style:{paddingLeft:36,position:"relative",flex:1,display:"flex"}},f,o.createElement("div",{className:i.a.statsContent},this.props.children)))}}])&&c(n.prototype,r),a&&c(n,a),t}();f.defaultProps={className:"",sideTextColor:"#fff",style:{}},f.displayName="StatsBox";t.default=f},70:function(e,t,n){e.exports={statsBox:"statsBox___2sFLC",statsTitle:"statsTitle___2B0Sa",rotateText:"rotateText___3kQHb",statsContent:"statsContent___2tHNf",titleAnchor:"titleAnchor___1zUfr"}}})});
|
package/lib/StatsBox/style.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
2
|
-
.statsBox___2sFLC{border-radius:8px;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.statsBox___2sFLC,.statsTitle___2B0Sa{display:-webkit-box;display:-ms-flexbox;display:flex}.statsTitle___2B0Sa{width:36px;padding:0 10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0;bottom:0}.rotateText___3kQHb{font-size:14px;font-family:Convergence,Alegreya Sans,sans-serif;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.statsContent___2tHNf{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:20px;background:#fff;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statsContent___2tHNf,.titleAnchor___1zUfr{display:-webkit-box;display:-ms-flexbox;display:flex}.titleAnchor___1zUfr{cursor:pointer}.titleAnchor___1zUfr:link,.titleAnchor___1zUfr:visited{text-decoration:none}.titleAnchor___1zUfr:hover{text-decoration:none}.titleAnchor___1zUfr:active{text-decoration:none}
|
package/lib/Steps/index.d.ts
DELETED
package/lib/Steps/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=310)}({0:function(t,n){t.exports=e},310:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(62),i=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,u(t).apply(this,arguments))).renderBodies=function(){var t=[];return r.Children.forEach(e.props.children,function(e,n){if(!r.isValidElement(e))throw new Error("<Steps> element only accepts Step elements as children");e.props.active&&t.push(r.createElement(d,{content:e.props.children,active:e.props.active}))}),t},e}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,r["Component"]),n=t,(o=[{key:"render",value:function(){var e=this.props.className;return r.createElement("div",{className:"".concat(i.a.steps," ").concat(e)},r.createElement("div",{className:i.a.stepsContainer},this.props.children),r.createElement("div",null,this.renderBodies()))}}])&&c(n.prototype,o),a&&c(n,a),t}();l.defaultProps={className:""},l.displayName="StatsBox";var f=function(e){var t=e.active?i.a.activeStep:"",n=e.disabled?i.a.disabledStep:"";return r.createElement("div",{id:e.id,className:"".concat(i.a.step," ").concat(e.className," ").concat(t),onClick:e.disabled?void 0:function(t){e.onClick&&e.onClick(e.id)}},r.createElement("a",{className:n,href:"javascript:void(0)"},e.title))};f.defaultProps={className:""},f.displayName="Step";var d=function(e){return r.createElement("div",{className:i.a.stepBody},e.content)};d.displayName="StepBody",n.d(t,"Step",function(){return f}),l.Step=f;t.default=l},62:function(e,t,n){e.exports={steps:"steps___1GGYh",stepsContainer:"stepsContainer___391TH",step:"step___KAdtm",activeStep:"activeStep___vyKaD",stepBody:"stepBody___3zmTP",disabledStep:"disabledStep___1wwgh"}}})});
|
package/lib/Steps/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.steps___1GGYh{width:100%}.stepsContainer___391TH{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.step___KAdtm{position:relative;width:200px;text-align:center}.step___KAdtm>a{display:block;font-size:13px;text-decoration:none;padding-top:15px;padding-bottom:15px;color:#e0e0e0;border-bottom:1px solid #efefef}.activeStep___vyKaD a{color:#5ccdde;border-bottom:2px solid #5ccdde}.step___KAdtm>a:before{position:absolute;content:"";background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAJCAYAAAARml2dAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHlJREFUeNpczTEOAVEYReFvHhUbILQWoplKRqVTWoHtKG1AotTYhGgUf0ExrYiISvNeMnHLc3LvrSJijRobfOUknDHFAcOuuGOBD04YFQFvrHDJzVkVEf5yxS11QA87PLHtZzjAHmM0aBMmOGZZoy3nczywxKvs/gYAFk8Y/ACgIQAAAAAASUVORK5CYII=) 50% no-repeat;top:18px;left:0;width:6px;height:9px;display:block}.step___KAdtm:first-child>a:before{background:none}.stepBody___3zmTP{padding:10px}.disabledStep___1wwgh{opacity:.5}@media (max-width:768px){.step___KAdtm{width:100%}}
|
package/lib/Switch/index.d.ts
DELETED
package/lib/Switch/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=349)}({0:function(t,n){t.exports=e},34:function(e,t,n){e.exports={switchContainer:"switchContainer___jFnVB",label:"label___245l3",switch:"switch___36ugE",onContainer:"onContainer___1jPk6",offContainer:"offContainer___jLDVa",onSwitch:"onSwitch___3rtxf",offSwitch:"offSwitch_____AWy",slider:"slider___1pwEO",onSlider:"onSlider___1AJQz",text:"text___13nOg",disabledSwitch:"disabledSwitch___xVD7U"}},349:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(34),a=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=l(this,s(t).apply(this,arguments))).renderDisabledContent=function(){return o.createElement("label",{className:"switch-component ".concat(a.a.text)},e.props.disabledLabel)},e.renderSwitchContent=function(){var t=e.props,n=t.onLabel,r=t.offLabel,i=t.on;return o.createElement("div",{style:{display:"flex",height:"100%"},className:i?a.a.onContainer:a.a.offContainer},o.createElement("label",{className:"switch-component ".concat(a.a.text," ").concat(a.a.onSwitch)},n),o.createElement("label",{className:"switch-component ".concat(a.a.text," ").concat(a.a.offSwitch)},r))},e.onClick=function(t,n){!e.props.disabled&&e.props.onClick&&e.props.onClick(t,{value:!e.props.on&&!e.props.disabled,dataLabel:e.props.dataLabel})},e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.style,r=e.className,i=e.disabled,c=e.label,l=this.props.on?a.a.onSlider:"",s=i?a.a.disabledSwitch:"",f=this.props.labelWidth?{flexBasis:"".concat(this.props.labelWidth,"px")}:{};return o.createElement("div",{className:a.a.switchContainer},c&&o.createElement("span",{className:a.a.label,style:f},c),o.createElement("div",{id:t,style:n,onClick:this.onClick,className:"switch-component ".concat(l," ").concat(s," ").concat(a.a.switch," ").concat(r)},o.createElement("span",{className:"switch-component ".concat(a.a.slider)}),this.props.disabled?this.renderDisabledContent():this.renderSwitchContent()))}}])&&c(n.prototype,r),i&&c(n,i),t}();u.defaultProps={className:"",disabledLabel:"INCOMPLETE",offLabel:"INACTIVE",onLabel:"ACTIVE",style:{}},u.displayName="Switch";var p=u;t.default=p}})});
|
package/lib/Switch/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.switchContainer___jFnVB{display:-webkit-box;display:-ms-flexbox;display:flex}.label___245l3{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;color:#6b6b6b;font-size:14.857px;font-size:.92857142857rem;-ms-flex-preferred-size:150px;flex-basis:150px;vertical-align:13px}.label___245l3,.switch___36ugE{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;justify-content:center;cursor:pointer}.switch___36ugE{overflow:hidden;position:relative;content:"";-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;width:90px;height:27px;margin:2px;border-radius:36px;-webkit-transition:background-color .3s;transition:background-color .3s;text-align:center}.onContainer___1jPk6{-webkit-transform:translate(45px);transform:translate(45px)}.offContainer___jLDVa,.onContainer___1jPk6{-webkit-transition:all .3s ease;transition:all .3s ease}.offContainer___jLDVa{-webkit-transform:translate(-45px);transform:translate(-45px)}.onSwitch___3rtxf{background-color:#5ccdde;padding:3px 23px 3px 5px}.offSwitch_____AWy{background-color:#e6e6e6;padding:3px 5px 3px 23px}.switch___36ugE input{display:none}.slider___1pwEO{position:absolute;content:"";top:4px;left:4px;height:19px;width:19px;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;border-radius:50%;z-index:1}.onSlider___1AJQz .slider___1pwEO{-webkit-transform:translate(63px);transform:translate(63px)}.text___13nOg{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:#fff;font-family:Arial,sans-serif;line-height:1;font-size:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;width:90px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.disabledSwitch___xVD7U>.text___13nOg{cursor:not-allowed}.disabledSwitch___xVD7U{background-color:#c5c5c5;padding:0}.disabledSwitch___xVD7U>.slider___1pwEO{display:none}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface ITabbedContentProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
type?: 'normal' | 'alternate' | 'radio';
|
|
5
|
-
alignHeaders?: string;
|
|
6
|
-
vertical?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
children?: React.ReactElement<ITabProps> | Array<React.ReactElement<ITabProps>>;
|
|
10
|
-
}
|
|
11
|
-
export interface ITabProps {
|
|
12
|
-
active?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
children?: Array<React.ReactElement<IHeaderProps> | React.ReactElement<IContentProps>>;
|
|
16
|
-
}
|
|
17
|
-
export interface IHeaderProps {
|
|
18
|
-
active?: boolean;
|
|
19
|
-
type?: string;
|
|
20
|
-
align?: string;
|
|
21
|
-
vertical?: boolean;
|
|
22
|
-
width?: number;
|
|
23
|
-
className?: string;
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
children?: any;
|
|
26
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
27
|
-
}
|
|
28
|
-
export interface IContentProps {
|
|
29
|
-
active?: boolean;
|
|
30
|
-
className?: string;
|
|
31
|
-
style?: React.CSSProperties;
|
|
32
|
-
children?: any;
|
|
33
|
-
}
|
|
34
|
-
export interface ITabbedContentState {
|
|
35
|
-
activeTab?: number;
|
|
36
|
-
}
|
|
37
|
-
export default class TabbedContent extends React.Component<ITabbedContentProps, ITabbedContentState> {
|
|
38
|
-
static defaultProps: {
|
|
39
|
-
activeTab: number;
|
|
40
|
-
className: string;
|
|
41
|
-
style: {};
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
static displayName: string;
|
|
45
|
-
static Tab: React.StatelessComponent<ITabProps>;
|
|
46
|
-
static Header: React.StatelessComponent<IHeaderProps>;
|
|
47
|
-
static Content: React.StatelessComponent<IContentProps>;
|
|
48
|
-
static getActiveTab: (children: React.ReactElement<IContentProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<IContentProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[]) => number;
|
|
49
|
-
static activeChildren: (children: React.ReactElement<IContentProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<IContentProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[]) => {
|
|
50
|
-
activeCount: number;
|
|
51
|
-
count: number;
|
|
52
|
-
};
|
|
53
|
-
static getDerivedStateFromProps(nextProps: ITabbedContentProps): {
|
|
54
|
-
activeTab: number;
|
|
55
|
-
} | null | undefined;
|
|
56
|
-
constructor(props: ITabbedContentProps);
|
|
57
|
-
render(): JSX.Element;
|
|
58
|
-
riteOfRakshir: () => {
|
|
59
|
-
headers: React.ReactElement<IHeaderProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
60
|
-
contents: React.ReactElement<ITabProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
61
|
-
};
|
|
62
|
-
assignPropsToChildren: (children: any, index: number) => {
|
|
63
|
-
header: any;
|
|
64
|
-
content: any;
|
|
65
|
-
};
|
|
66
|
-
onClickHeader: (tabIndex: number, header: React.ReactElement<IHeaderProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
67
|
-
getClasses: () => any;
|
|
68
|
-
getAlign: (style: any) => any;
|
|
69
|
-
}
|
|
70
|
-
export declare const Tab: React.StatelessComponent<ITabProps>;
|
|
71
|
-
export declare const Header: React.StatelessComponent<IHeaderProps>;
|
|
72
|
-
export declare const Content: React.StatelessComponent<IContentProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=238)}({0:function(t,n){t.exports=e},238:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(242),a=n.n(i),o=n(63),c=n.n(o),l=n(243),s=n.n(l);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=_(this,f(t).call(this,e))).riteOfRakshir=function(){var e=[],t=[];return r.Children.forEach(n.props.children,function(i,a){if(r.isValidElement(i)){if(!i.props.children)return void console.error("Tab ".concat(a," did not render correctly, due to missing children (<Header>, <Content>)"));if(!Array.isArray(i.props.children))return void console.error("Tab ".concat(a," did not render correctly, <Header> or <Content> is missing on the Tab component"));var o=n.assignPropsToChildren(i.props.children,a),c=o.header,l=o.content;e.push(c),t.push(l)}}),{headers:e,contents:t}},n.assignPropsToChildren=function(e,t){var i={active:n.state.activeTab===t,align:n.props.alignHeaders,key:t,onClick:n.onClickHeader(t,e[0]),type:n.props.type,vertical:n.props.vertical},a={active:n.state.activeTab===t,key:t};return{header:r.cloneElement(e[0],i),content:r.cloneElement(e[1],a)}},n.onClickHeader=function(e,r){return function(i){r.props.onClick&&r.props.onClick(i),0===(n.props.children?t.activeChildren(n.props.children):{count:0}).count&&n.setState({activeTab:e})}},n.getClasses=function(){switch(n.props.type){case"normal":return c.a;case"alternate":return a.a;case"radio":return s.a;default:return c.a}},n.getAlign=function(e){return"right"===n.props.alignHeaders||"bottom"===n.props.alignHeaders?n.props.vertical?e.headingVRight:e.headingHRight:"left"===n.props.alignHeaders||"top"===n.props.alignHeaders?"":e.headingCenter},n.state={activeTab:n.props.children?t.getActiveTab(n.props.children):void 0},n}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,r["Component"]),n=t,o=[{key:"getDerivedStateFromProps",value:function(e){if(e.children){var n=t.activeChildren(e.children),r=n.activeCount;if(0===n.count)return null;if(r>1)throw new Error("There can't be more than one active tab content");return{activeTab:t.getActiveTab(e.children)}}}}],(i=[{key:"render",value:function(){var e=this.getClasses(),t=this.props.vertical?e.containerV:e.containerH,n=this.props.vertical?e.headingV:e.headingH,i=this.props.vertical?e.borderV:e.borderH,a=this.props.vertical?e.contentV:e.contentH,o=this.props.alignHeaders&&this.props.vertical?e.headingVAlign:"",c=this.getAlign(e),l=this.riteOfRakshir(),s=l.headers,d=l.contents;return r.createElement("div",{id:this.props.id,className:"tabbed-content-component ".concat(e.container," ").concat(t," ").concat(this.props.className),style:this.props.style},r.createElement("div",{className:"".concat(e.heading," ").concat(n," ").concat(i," ").concat(c," ").concat(o)},s),r.createElement("div",{className:"".concat(e.content," ").concat(a)},d))}}])&&p(n.prototype,i),o&&p(n,o),t}();v.defaultProps={activeTab:0,className:"",style:{},type:"normal"},v.displayName="TabbedContent",v.getActiveTab=function(e){var t=0,n=r.Children.toArray(e),i=!0,a=!1,o=void 0;try{for(var c,l=n.entries()[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var s=d(c.value,2),u=s[0],p=s[1];r.isValidElement(p)&&p.props.active&&(t=u)}}catch(e){a=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}return t},v.activeChildren=function(e){var t=r.Children.toArray(e),n=0,i=0;return t.forEach(function(e,t){void 0!==e.props.active&&(n+=1),!0===e.props.active&&(i+=1)}),{activeCount:i,count:n}};var b=function(e){return r.createElement("div",{className:"tab-component ".concat(e.className),style:e.style},e.children)};b.defaultProps={className:"",style:{}},b.displayName="Tab";var y=function(e){var t=function(){switch(e.type){case"normal":return c.a;case"alternate":return a.a;case"radio":return s.a;default:return c.a}}(),n=e.active&&"radio"!==e.type?t.activeHeader:t.inactiveHeader,i="radio"===e.type?r.createElement("input",{type:"radio",checked:e.active,readOnly:!0}):"",o=e.align?t.headerAlign:"";return r.createElement("div",{className:"tab-header ".concat(t.header," ").concat(n," ").concat(o," ").concat(e.className),style:Object.assign({width:e.width},e.style),onClick:e.onClick},i,e.children)};y.defaultProps={className:"",style:{}},y.displayName="Header";var g=function(e){var t=e.active?c.a.visible:c.a.invisible;return r.createElement("div",{className:"content-component ".concat(t," ").concat(e.className),style:e.style},e.children)};g.defaultProps={className:"",style:{}},g.displayName="Content",n.d(t,"Content",function(){return g}),n.d(t,"Header",function(){return y}),n.d(t,"Tab",function(){return b}),v.Tab=b,v.Header=y,v.Content=g;t.default=v},242:function(e,t,n){e.exports={containerH:"containerH___2W9LG",containerV:"containerV___6s06J",headingV:"headingV___L61yV",headingH:"headingH___fcnbF",content:"content___YsOHa",contentH:"contentH___39b-d",contentV:"contentV___3URbC",header:"header___1e2Sb",activeHeader:"activeHeader___2DphJ",visible:"visible___VtsSq",invisible:"invisible___3wA3l"}},243:function(e,t,n){e.exports={containerH:"containerH___2r82j",containerV:"containerV___2648l",headingV:"headingV___2DrvI",borderV:"borderV___3VoaI",header:"header___3MzIB",headingH:"headingH___37gJs",content:"content___3iw7Q",contentH:"contentH___359A1",contentV:"contentV___vZ38T",activeHeader:"activeHeader___1U4Nz",visible:"visible___2RV3S",invisible:"invisible___1fo8f"}},63:function(e,t,n){e.exports={container:"container___bsMJb",containerV:"containerV___AG2g-",containerH:"containerH___HmdXv",heading:"heading___bfE4H",headingH:"headingH___2iLvn",headingV:"headingV___1oBQ8",contentH:"contentH___2jLUA",contentV:"contentV___YfVlW",header:"header___1U1Wx",headerAlign:"headerAlign___33Suq",headingHRight:"headingHRight___2M5bj",headingVRight:"headingVRight___16qoN",headingCenter:"headingCenter___1wdNE",headingVAlign:"headingVAlign___1Uxan",tab:"tab___2dMa_",activeHeader:"activeHeader___e8zSc",inactiveHeader:"inactiveHeader___28Hrj",visible:"visible___22C1C",invisible:"invisible___1Cb6W",image:"image___3IFo3"}}})});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
2
|
-
.containerH___2W9LG{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.containerH___2W9LG,.containerV___6s06J{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.containerV___6s06J{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.headingV___L61yV{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.headingH___fcnbF,.headingV___L61yV{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;border-radius:8px;background:#fff!important}.headingH___fcnbF{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.content___YsOHa{color:#7b7b7b;font-size:14px;font-size:.875rem}.contentH___39b-d{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.contentV___3URbC{-webkit-box-flex:2;-ms-flex:2;flex:2 1}.header___1e2Sb{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:0;color:#aaa;font-size:16px;font-size:1rem;background:transparent;-webkit-transition:background-color .3s;transition:background-color .3s;padding:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header___1e2Sb,.header___1e2Sb label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;cursor:pointer}.header___1e2Sb label{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:.875rem;height:100%}.activeHeader___2DphJ{background:#5ccdde;color:#fff;margin:0}.activeHeader___2DphJ:first-child{border-bottom-left-radius:8px;border-top-left-radius:8px}.activeHeader___2DphJ:last-child{border-bottom-right-radius:8px;border-top-right-radius:8px}.activeHeader___2DphJ:hover{background:#5ccdde;border-color:#5ccdde}.visible___VtsSq{display:block}.invisible___3wA3l{display:none}@media (max-width:768px){.headingV___L61yV{border-right:none;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #5ccdde}.containerV___6s06J,.headingH___fcnbF{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}
|
|
3
|
-
.container___bsMJb{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.containerV___AG2g-{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.containerH___HmdXv,.containerV___AG2g-{-webkit-box-direction:normal}.containerH___HmdXv{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.heading___bfE4H{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.headingH___2iLvn{border-bottom:10px solid #efefef;border-top-left-radius:5px;border-top-right-radius:5px}.headingH___2iLvn,.headingV___1oBQ8{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.headingV___1oBQ8{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border-right:10px solid #efefef;border-top-left-radius:5px;border-bottom-left-radius:5px}.contentH___2jLUA{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.contentV___YfVlW{-webkit-box-flex:2;-ms-flex:2;flex:2 1}.header___1U1Wx{padding:20px 10px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:all .4s ease;transition:all .4s ease;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:inherit;color:#575757;font-family:Convergence,Alegreya Sans,sans-serif;font-size:18px;font-size:1.125rem}.headerAlign___33Suq{padding:0;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;width:120px;height:120px}.headingHRight___2M5bj{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.headingVRight___16qoN{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.headingCenter___1wdNE{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.headingVAlign___1Uxan{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-preferred-size:auto;flex-basis:auto}.tab___2dMa_{display:block}.activeHeader___e8zSc{background:#efefef}.inactiveHeader___28Hrj{background:#fff}.inactiveHeader___28Hrj:hover{background:hsla(0,0%,96.1%,.5)}.visible___22C1C{display:block}.invisible___1Cb6W{display:none}.image___3IFo3{margin-top:10px;width:40px}@media (max-width:768px){.containerV___AG2g-{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.containerV___AG2g-,.headingV___1oBQ8{-webkit-box-direction:normal}.headingV___1oBQ8{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;border-bottom:10px solid #efefef;border-right:none}}
|
|
4
|
-
.containerH___2r82j{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.containerH___2r82j,.containerV___2648l{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.containerV___2648l{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.headingV___2DrvI{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;margin-right:10px}.borderV___3VoaI{border-right:1px solid #5ccdde}.headingV___2DrvI>.header___3MzIB+.header___3MzIB{margin-top:10px}.headingH___37gJs{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-bottom:10px}.headingH___37gJs>.header___3MzIB+.header___3MzIB{margin:10px 0 0}.content___3iw7Q{color:#7b7b7b;font-size:14px;font-size:.875rem}.contentH___359A1{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.contentV___vZ38T{-webkit-box-flex:2;-ms-flex:2;flex:2 1}.header___3MzIB{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;border-radius:10px;font-size:14px;font-size:.875rem;padding:15px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#7b7b7b;background:#f2f2f2}.header___3MzIB input[type=radio]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:22px;height:22px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-right:10px;cursor:pointer;background:#fff;border-radius:50%}.header___3MzIB:hover input[type=radio]{border-color:#95dee9}.header___3MzIB input[type=radio]:checked:after{background:#333;content:"";display:block;width:9.6px;width:.6rem;height:9.6px;height:.6rem;border-radius:50%}.header___3MzIB label{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:14px;font-size:.875rem;width:100%;height:100%}.header___3MzIB label,.header___3MzIB span{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;cursor:pointer}.header___3MzIB span{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.activeHeader___1U4Nz{background:#5ccdde;color:#fff}.activeHeader___1U4Nz:hover{background:#5ccdde;border-color:#5ccdde}.activeHeader___1U4Nz:hover input[type=radio]{border-color:#5ccdde}.visible___2RV3S{display:block}.invisible___1fo8f{display:none}@media (max-width:768px){.headingV___2DrvI{padding:0;border-right:none;margin:0 0 10px}.headingH___37gJs{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.headingH___37gJs>.header___3MzIB+.header___3MzIB{margin:10px 0 0}.containerV___2648l{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}@media (min-width:769px) and (max-width:991px){.headingV___2DrvI{padding:0;border-right:none;margin:0 0 10px}.headingH___37gJs{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.headingH___37gJs>.header___3MzIB+.header___3MzIB{margin:10px 0 0}.containerV___2648l{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}
|
package/lib/Table/index.d.ts
DELETED
package/lib/Table/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="../",r(r.s=304)}({0:function(t,r){t.exports=e},244:function(e,t,r){"use strict";(function(e,n){var o,a=r(337);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(a.a)(o);t.a=i}).call(this,r(27),r(468)(e))},245:function(e,t,r){"use strict";(function(e){function n(e){a.length||(o(),!0),a[a.length]=e}r.d(t,"a",function(){return n});var o,a=[],i=0,c=1024;function u(){for(;i<a.length;){var e=i;if(i+=1,a[e].call(),i>c){for(var t=0,r=a.length-i;t<r;t++)a[t]=a[t+i];a.length-=i,i=0}}a.length=0,i=0,!1}var s,l,f,d=void 0!==e?e:self,p=d.MutationObserver||d.WebKitMutationObserver;function g(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof p?(s=1,l=new p(u),f=document.createTextNode(""),l.observe(f,{characterData:!0}),o=function(){s=-s,f.data=s}):o=g(u),n.requestFlush=o,n.makeRequestCallFromTimer=g}).call(this,r(27))},27:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},30:function(e,t,r){e.exports={list:"list___28ECv",listItem:"listItem___1cwcR",content:"content___tsw35",expandedSection:"expandedSection___WFyq_",arrow:"arrow___1j_pg",innerArrow:"innerArrow___1RM3O",borderArrow:"borderArrow___6bbum",detailsContainer:"detailsContainer___3FE4O",titleContainer:"titleContainer___3ZbfE"}},304:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"FILE",function(){return le}),r.d(n,"URL",function(){return fe}),r.d(n,"TEXT",function(){return de});var o=r(0),a=r(7),i=r.n(a),c=r(91),u=r(49),s=r(6),l=r.n(s),f=r(56),d=r(30),p=r.n(d),g=r(474),h=r(4),v="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function y(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u<a.length;u++){var s=a[u];if(!c(s))return!1;var l=e[s],f=t[s];if(!1===(o=r?r.call(n,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t,r){var n=O(function(e,t,r){var n=b(Object(o.useState)(function(){return t(e)}),2),a=n[0],i=n[1],c=Object(o.useCallback)(function(){var n=t(e);y(a,n)||(i(n),r&&r())},[a,e,r]);return v(c,[]),[a,c]}(e,t,r),2),a=n[0],i=n[1];return v(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),a}var D=r(78);function I(){var e=Object(o.useContext)(D.a).dragDropManager;return Object(h.a)(null!=e,"Expected drag drop context"),e}function E(e,t){"function"==typeof e?e(t):e.current=t}function C(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(o.isValidElement)(t)){var n=t;return e(n,r),n}var a=t;return function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(a),function(e,t){var r=e.ref;return Object(h.a)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?Object(o.cloneElement)(e,{ref:function(e){E(r,e),E(t,e)}}):Object(o.cloneElement)(e,{ref:t})}(a,r?function(t){return e(t,r)}:e)}}function k(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=C(n);t[r]=function(){return o}}}),t}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){return null!==e&&"object"===T(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var P=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=k({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,_(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!y(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&j(t.prototype,r),n&&j(t,n),e}();function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var x=!1,A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(h.a)(!x,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return x=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{x=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&N(t.prototype,r),n&&N(t,n),e}();function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function H(e){var t=Object(o.useRef)(e);t.current=e,Object(h.a)(null!=e.accept,"accept must be defined");var r,n=B((r=I(),[Object(o.useMemo)(function(){return new A(r)},[r]),Object(o.useMemo)(function(){return new P(r.getBackend())},[r])]),2),a=n[0],i=n[1];!function(e,t,r){var n=I(),a=Object(o.useMemo)(function(){return{canDrop:function(){var r=e.current.canDrop;return!r||r(t.getItem(),t)},hover:function(){var r=e.current.hover;r&&r(t.getItem(),t)},drop:function(){var r=e.current.drop;if(r)return r(t.getItem(),t)}}},[t]);v(function(){var o=R(function(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}(e.current.accept,a,n),2),i=o[0],c=o[1];return t.receiveHandlerId(i),r.receiveHandlerId(i),c},[t,r])}(t,a,i);var c=S(a,t.current.collect||function(){return{}},function(){return i.reconnect()}),u=Object(o.useMemo)(function(){return i.hooks.dropTarget()},[i]);return v(function(){i.dropTargetOptions=e.options||null,i.reconnect()},[e.options]),[c,u]}function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var F=!1,W=!1,Y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(h.a)(!F,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return F=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{F=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(h.a)(!W,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return W=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{W=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&U(t.prototype,r),n&&U(t,n),e}();function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var G=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=k({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,_(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,_(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!y(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!y(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&X(t.prototype,r),n&&X(t,n),e}();function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z(e){var t=Object(o.useRef)(e);t.current=e,Object(h.a)(null!=e.item,"item must be defined"),Object(h.a)(null!=e.item.type,"item type must be defined");var r,n=z((r=I(),[Object(o.useMemo)(function(){return new Y(r)},[r]),Object(o.useMemo)(function(){return new G(r.getBackend())},[r])]),2),a=n[0],i=n[1];!function(e,t,r){var n=I(),a=Object(o.useMemo)(function(){return{beginDrag:function(){var r=e.current,n=r.begin,o=r.item;if(n){var a=n(t);return Object(h.a)(null==a||"object"===q(a),"dragSpec.begin() must either return an object, undefined, or null"),a||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(r,n){var o=e.current.isDragging;return o?o(t):n===r.getSourceId()},endDrag:function(){var n=e.current.end;n&&n(t.getItem(),t),r.reconnect()}}},[]);v(function(){var o=K(function(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}(e.current.item.type,a,n),2),i=o[0],c=o[1];return t.receiveHandlerId(i),r.receiveHandlerId(i),c},[])}(t,a,i);var c=S(a,t.current.collect||function(){return{}},function(){return i.reconnect()}),u=Object(o.useMemo)(function(){return i.hooks.dragSource()},[i]),s=Object(o.useMemo)(function(){return i.hooks.dragPreview()},[i]);return v(function(){i.dragSourceOptions=t.current.options||null,i.reconnect()},[i]),v(function(){i.dragPreviewOptions=t.current.previewOptions||null,i.reconnect()},[i]),[c,u,s]}function Q(e){var t=null;return function(){return null==t&&(t=e()),t}}function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ee=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))}),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter(function(e){return e!==r})),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&J(t.prototype,r),n&&J(t,n),e}(),te=Q(function(){return/firefox/i.test(navigator.userAgent)}),re=Q(function(){return Boolean(window.safari)});function ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var oe=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],a=0;a<n;a++)o.push(a);o.sort(function(e,r){return t[e]<t[r]?-1:1});for(var i,c,u=[],s=[],l=[],f=0;f<n-1;f++)i=t[f+1]-t[f],c=r[f+1]-r[f],s.push(i),u.push(c),l.push(c/i);for(var d=[l[0]],p=0;p<s.length-1;p++){var g=l[p],h=l[p+1];if(g*h<=0)d.push(0);else{i=s[p];var v=s[p+1],y=i+v;d.push(3*y/((y+v)/g+(y+i)/h))}}d.push(l[l.length-1]);for(var b,m=[],O=[],w=0;w<d.length-1;w++){b=l[w];var S=d[w],D=1/s[w],I=S+d[w+1]-b-b;m.push((b-S-I)*D),O.push(I*D*D)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=O}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,a=this.c3s,i=t.length-1;if(e===t[i])return r[i];for(var c,u=0,s=a.length-1;u<=s;){var l=t[c=Math.floor(.5*(u+s))];if(l<e)u=c+1;else{if(!(l>e))return r[c];s=c-1}}var f=e-t[i=Math.max(0,s)],d=f*f;return r[i]+n[i]*f+o[i]*d+a[i]*f*d}}])&&ne(t.prototype,r),n&&ne(t,n),e}(),ae=1;function ie(e){var t=e.nodeType===ae?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function ce(e){return{x:e.clientX,y:e.clientY}}function ue(e,t,r,n,o){var a,i,c,u="IMG"===(a=t).nodeName&&(te()||!(null===(i=document.documentElement)||void 0===i?void 0:i.contains(a))),s=ie(u?e:t),l={x:r.x-s.x,y:r.y-s.y},f=e.offsetWidth,d=e.offsetHeight,p=n.anchorX,g=n.anchorY,h=function(e,t,r,n){var o=e?t.width:r,a=e?t.height:n;return re()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(u,t,f,d),v=h.dragPreviewWidth,y=h.dragPreviewHeight,b=o.offsetX,m=o.offsetY,O=0===m||m;return{x:0===b||b?b:new oe([0,.5,1],[l.x,l.x/f*v,l.x+v-f]).interpolate(p),y:O?m:(c=new oe([0,.5,1],[l.y,l.y/d*y,l.y+y-d]).interpolate(g),re()&&u&&(c+=(window.devicePixelRatio-1)*y),c)}}var se,le="__NATIVE_FILE__",fe="__NATIVE_URL__",de="__NATIVE_TEXT__";function pe(e,t,r){var n=t.reduce(function(t,r){return t||e.getData(r)},"");return null!=n?n:r}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=(ge(se={},le,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),ge(se,fe,{exposeProperties:{urls:function(e,t){return pe(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),ge(se,de,{exposeProperties:{text:function(e,t){return pe(e,t,"")}},matchesTypes:["Text","text/plain"]}),se);function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ye=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&ve(t.prototype,r),n&&ve(t,n),e}();function be(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(he).filter(function(e){return he[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&me(t.prototype,r),n&&me(t,n),e}();function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach(function(t){De(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=n.sourceNodes.get(e);return t&&ie(t)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&n.document&&n.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=n.currentDragSourceNode;n.isNodeInDocument(e)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=n.dragStartSourceIds;n.dragStartSourceIds=null;var r=ce(e);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,a=be(o);if(n.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var i=n.monitor.getSourceId(),c=n.sourceNodes.get(i),u=n.sourcePreviewNodes.get(i)||c;if(u){var s=n.getCurrentSourcePreviewNodeOptions(),l=ue(c,u,r,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});o.setDragImage(u,l.x,l.y)}}try{null==o||o.setData("application/json",{})}catch(e){}n.setCurrentDragSourceNode(e.target),n.getCurrentSourcePreviewNodeOptions().captureDraggingState?n.actions.publishDragSource():setTimeout(function(){return n.actions.publishDragSource()},0)}else if(a)n.beginDragNativeItem(a);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(n.dragEnterTargetIds=[],n.enterLeaveCounter.enter(e.target)&&!n.monitor.isDragging()){var t=e.dataTransfer,r=be(t);r&&n.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=n.dragEnterTargetIds;(n.dragEnterTargetIds=[],n.monitor.isDragging())&&(n.altKeyPressed=e.altKey,te()||n.actions.hover(t,{clientOffset:ce(e)}),t.some(function(e){return n.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));n.altKeyPressed=e.altKey,n.actions.hover(t||[],{clientOffset:ce(e)}),(t||[]).some(function(e){return n.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){n.isDraggingNativeItem()&&e.preventDefault(),n.enterLeaveCounter.leave(e.target)&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(n.dropTargetIds=[],e.preventDefault(),n.isDraggingNativeItem())&&(null===(t=n.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));n.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(t,{clientOffset:ce(e)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Oe(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new ee(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},a=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",a),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",a),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},a=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",a),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Se({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return Se({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some(function(t){return n[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new ye(he[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&Ie(t.prototype,r),o&&Ie(t,o),e}(),Ce=function(e,t){return new Ee(e,t)};function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function je(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xe="row",Ae=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=je(this,Pe(t).call(this,e))).getRows=function(){var e=[],t=r.getSettings(),n=t.settings,a=t.sortable,i=r.props.paginate||a?r.state.data:r.props.data,c=0;return i.map(function(t,a){var s=[],f=[],d=function(e){t.hasOwnProperty(e)&&(1,n.forEach(function(n,c){if(n.dataField.toUpperCase()===e.toUpperCase()){var u=n.hide?l.a.hide:"",d=r.getContent(t[e]),p=r.props.alternate?l.a.alternateCol:l.a.col,g=r.props.smallCollapse?c+1:c,h=n.dataField,v=t.onClick?r.onCellClick(t.onClick,{label:t[e],dataField:h,content:i[a],index:a}):void 0;s[c]=o.createElement(Be,{style:Object.assign({},n.styles,t.style),className:"".concat(p," ").concat(l.a.colComponent," ").concat(u," ").concat(n.classes),key:g,onClick:v},o.createElement("div",{className:l.a.contentContainer},d)),r.props.smallCollapse&&(f[c]=o.createElement("div",{className:l.a.popoverCol,key:c},o.createElement("span",{className:l.a.heading},n.heading),o.createElement("span",{className:l.a.content},t[e])))}}))};for(var g in t)d(g);if(r.props.smallCollapse){var h=r.props.alternate?l.a.alternateButton:"",v=o.createElement(Be,{key:0,className:"".concat(l.a.buttonCol," ").concat(h)},o.createElement(u.default,{icon:"list",className:l.a.toggle,onClick:r.showPopover(a),transparent:!0}),o.createElement(Le,{active:r.state.activeRow===a},f));s.splice(0,0,v)}var y=r.props.alternate?l.a.alternateRow:"";if(t&&t.expandable&&t.expandable.expanded){var b=t.expandable.content?r.prepareContent(t.expandable.content,t.expandable.expanded):null;e.push(o.createElement(Me,{key:a+c,style:r.props.rowStyle,className:"".concat(y," ").concat(r.props.rowClass),id:a+c,dragAndDrop:r.props.dragAndDrop},s)),e.push(o.createElement(Me,{style:t.expandable.style,className:"".concat(p.a.expandedSection," ").concat(t.expandable.className),key:a+c+1,id:a+c+1,dragAndDrop:r.props.dragAndDrop},b)),c+=1}else e.push(o.createElement(Me,{key:a+c,style:r.props.rowStyle,className:"".concat(y," ").concat(r.props.rowClass),id:a+c,dragAndDrop:r.props.dragAndDrop},s))}),r.props.paginate?r.paginateRows(e)[r.state.page-1]:e},r.getSettings=function(){var e=[],t=!1;return o.Children.forEach(r.props.children,function(r,n){o.isValidElement(r)&&(e.push({classes:r.props.colClasses,dataField:r.props.dataField,heading:r.props.children,hide:r.props.hideSmall,styles:r.props.colStyles}),r.props.sortable&&(t=!0))}),r.props.dragAndDrop&&r.props.dragAndDrop.pos&&e.splice(r.props.dragAndDrop.pos,0,{classes:void 0,dataField:"dndCol",heading:"dndCol",hide:void 0,styles:void 0}),{settings:e,sortable:t}},r.renderWithDndProvider=function(){return o.createElement(g.a,{backend:Ce},r.getRows())},r.sortData=function(e,t,n){var o=r.state.data;n?o.sort(function(t,o){return n(t,o,r.state.order,e)}):(o.sort(function(t,r){var n=0;return t[e]<r[e]?n=-1:t[e]>r[e]&&(n=1),n}),"desc"===t&&o.reverse()),r.setState({data:o,sortBy:e,order:r.setOrder(t)})},r.onCellClick=function(e,t){return function(r){return e(r,t)}},r.setOrder=function(e){return"desc"===e?"asc":"desc"},r.getHeaders=function(){var e=[],t=r.props.alternate?l.a.alternateHeader:l.a.header;if(o.Children.forEach(r.props.children,function(n,a){if(o.isValidElement(n)){var i=n.props.sortable||n.props.onClick?l.a.sortHeader:"",c=n.props.sortable||n.props.onClick?r.onClickHeader(n.props.dataField,n.props.sortfn,n.props.onClick,n.props.sortable):void 0,u=r.props.smallCollapse?a+1:a;e.push(o.createElement(Re,{key:u,className:"".concat(t," ").concat(n.props.className," ").concat(i),style:n.props.style,dataField:n.props.dataField,hideSmall:n.props.hideSmall,onClick:c},o.createElement("div",null,n.props.children,r.getArrow(n.props.dataField,n.props.arrowDirection))))}}),r.props.smallCollapse){var n=o.createElement(Re,{dataField:"collapse-button",key:0,className:"".concat(t," ").concat(l.a.buttonHeader," ").concat(r.props.collapseHeaderClassName),style:r.props.collapseHeaderStyle},o.createElement("div",{style:{visibility:"hidden"}},"X"));e.splice(0,0,n)}return r.props.dragAndDrop&&r.props.dragAndDrop.pos&&e.splice(r.props.smallCollapse?r.props.dragAndDrop.pos+1:r.props.dragAndDrop.pos,0,o.createElement(Re,{dataField:"dndCol",key:"99ssww",className:"".concat(t),style:r.props.collapseHeaderStyle},o.createElement("span",null))),e},r.getArrow=function(e,t){return r.state.sortBy===e&&"desc"===r.state.order||"asc"===t?o.createElement("i",{className:"".concat(i.a.mooskinIcons," ").concat(l.a.arrow)},"keyboard_arrow_up"):r.state.sortBy===e&&"asc"===r.state.order||"desc"===t?o.createElement("i",{className:"".concat(i.a.mooskinIcons," ").concat(l.a.arrow)},"keyboard_arrow_down"):void 0},r.onClickHeader=function(e,t,n,o){return function(a){n&&n(),o&&r.sortData(e,r.state.order,t)}},r.showPopover=function(e){return function(t){r.setState({activeRow:e})}},r.getCover=function(){if(r.state.activeRow>=0)return o.createElement("div",{className:l.a.cover,onClick:r.toggle()})},r.toggle=function(){return function(e){r.setState({activeRow:-1})}},r.getContent=function(e){return Array.isArray(e)?e.map(function(t,r){return 0===r?o.createElement("span",{key:r,className:l.a.content},e[r]):o.createElement("span",{key:r,className:l.a.smallContent},e[r])}):o.createElement("span",{className:l.a.content},e)},r.paginateRows=function(e){for(var t=[],n=r.props.paginate;e.length>0;)t.push(e.splice(0,n));return t},r.getPagination=function(){var e=r.props,t=e.paginate,n=e.paginationProps;if(t){var a=Math.ceil(r.state.data.length/t);return o.createElement("div",{className:l.a.pagination},o.createElement(c.default,{onClick:r.onPaginationClick,items:a,currentItem:r.state.page,firstBtn:n&&n.firstBtn,lastBtn:n&&n.lastBtn,prevBtn:n&&n.prevBtn,nextBtn:n&&n.nextBtn,className:n&&n.className,maxButtons:n&&n.maxButtons,style:n&&n.style,inverseStyle:n&&n.inverseStyle}))}},r.onPaginationClick=function(e){var t=r.props.paginate?r.props.paginate:0;e<=Math.ceil(r.state.data.length/t)&&r.setState({page:e})},r.prepareContent=function(e,t){if(Array.isArray(e)){var n=[];return e.map(function(e,o){var a=r.constructElement(e,t,o);n.push(a)}),n}return r.constructElement(e,t,0)},r.constructElement=function(e,t,r){var n=Object(f.d)(t,1),a=0===r?[e.props.children,n]:e.props.children,i=Object.assign({},e.props,{style:Object.assign({},e.props.style,{position:"relative"}),children:a});return o.cloneElement(e,i,a)},r.state={activeRow:-1,data:[],order:"desc",page:1,sortBy:""},r}var r,n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(t,o["Component"]),r=t,a=[{key:"getDerivedStateFromProps",value:function(e,t){return t.data!==e.data?{data:e.data}:null}}],(n=[{key:"componentDidMount",value:function(){this.setState({data:this.props.data})}},{key:"render",value:function(){var e=this.getHeaders(),t=this.getRows(),r=this.getCover(),n=this.props.alternate?l.a.alternate:l.a.table,a=!!this.props.paginate;return o.createElement("div",null,o.createElement("div",{className:l.a.tableWrapper,style:this.props.containerStyle},r,o.createElement("table",{className:"table-component ".concat(n," ").concat(this.props.className),style:this.props.style},o.createElement("thead",null,o.createElement("tr",null,e)),o.createElement("tbody",{className:l.a.body},this.props.dragAndDrop?this.renderWithDndProvider():t))),a&&this.getPagination())}}])&&_e(r.prototype,n),a&&_e(r,a),t}();Ae.defaultProps={className:"",paginationProps:{firstBtn:!0,lastBtn:!0,nextBtn:!0,prevBtn:!0},style:{}},Ae.displayName="Table";var Re=function(e){var t=e.hideSmall?l.a.hide:"";return o.createElement("th",{style:e.style,className:"table-header ".concat(t," ").concat(e.className),onClick:e.onClick},e.children)};Re.defaultProps={className:"",style:{}},Re.displayName="TableHeader";var Me=function(e){var t=o.useRef(null),r=o.useRef(null),n=e.dragAndDrop?function(e,t,r,n){if(void 0!==r){var o=ke(H({accept:xe,hover:function(n,o){if(e.current){var a=n.index,i=t;if(a!==i){var c=e.current.getBoundingClientRect(),u=(c.bottom-c.top)/2,s=o.getClientOffset().y-c.top;a<i&&s<u||a>i&&s>u||(r&&r(a,i),n.index=i)}}},drop:function(e,t){n&&n(e.index)}}),2)[1],a=ke(Z({collect:function(e){return{isDragging:!!e.isDragging()}},item:{type:xe,index:t}}),3);return{drop:o,drag:{isDragging:a[0].isDragging,drag:a[1],preview:a[2]}}}}(r,e.id,e.dragAndDrop.hoverCb,e.dragAndDrop.dropCb):void 0;e.dragAndDrop&&(n&&n.drop(t),n&&n.drag.drag(r),Array.isArray(e.children)&&!e.children.find(function(e){return e&&"9920z"===e.key})&&e.children.splice(e.dragAndDrop.pos,0,o.createElement(Be,{className:l.a.dragItem,key:"9920z"},o.createElement("div",{className:l.a.contentContainer},o.createElement(He,{id:e.id,dragAndDrop:e.dragAndDrop&&e.dragAndDrop.hoverCb,ref:r})))));return o.createElement("tr",{ref:function(e){return function(e){t.current=e,n&&n.drag.preview(e)}(e)},className:"row ".concat(l.a.row," ").concat(e.className),style:Object.assign({},e.style,{opacity:n&&n.drag.isDragging?.8:1})},e.children)};Me.defaultProps={className:"",style:{}},Me.displayName="Row";var Be=function(e){return o.createElement("td",{className:"column ".concat(e.className),style:e.style,onClick:e.onClick},e.children)};Be.defaultProps={className:"",style:{}},Be.displayName="Col";var Le=function(e){var t=e.active?l.a.active:l.a.inactive;return o.createElement("div",{className:"".concat(l.a.popover," ").concat(t),style:e.style},e.children)};Le.defaultProps={className:"",style:{}},Le.displayName="Popover";var He=o.forwardRef(function(e,t){return o.createElement("div",{className:l.a.menuIcon,ref:t},o.createElement("span",{className:l.a.line}),o.createElement("span",{className:l.a.line}),o.createElement("span",{className:l.a.line}))});He.displayName="DragIcon",r.d(t,"TableHeader",function(){return Re}),Ae.TableHeader=Re;t.default=Ae},33:function(e,t,r){e.exports={pagination:"pagination___1JKxv",paginationInner:"paginationInner___2UF7g",paginationButton:"paginationButton___1mfoR",activeButton:"activeButton___AM91A",inverseActive:"inverseActive___2Duwi",disabledButton:"disabledButton___2PIN7",inverseButton:"inverseButton___SVNEc",itemButton:"itemButton___23LQW"}},337:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})},4:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(a=new Error(t.replace(/%s/g,function(){return n[i++]}))).name="Invariant Violation"}throw a.framesToPop=1,a}}r.d(t,"a",function(){return n})},468:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},474:function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s});var n=r(0),o=r(78);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=0,s=Object(n.memo)(function(e){var t=e.children,r=a(function(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;a[l]||(a[l]=Object(o.b)(e,t,r,n));return a[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}(c(e,["children"])),2),i=r[0],s=r[1];return n.useEffect(function(){return s&&u++,function(){s&&(0===--u&&(f()[l]=null))}},[]),n.createElement(o.a.Provider,{value:i},t)});s.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function f(){return void 0!==e?e:window}}).call(this,r(27))},49:function(e,t,r){"use strict";r.r(t);var n=r(50);t.default=n.a},50:function(e,t,r){"use strict";r.d(t,"a",function(){return g});var n=r(0),o=r(7),a=r.n(o),i=r(9),c=r.n(i);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p={outlined:c.a.outlined,round:c.a.round,sharp:c.a.sharp,twotone:c.a.twoTone},g=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=l(this,f(t).apply(this,arguments))).onClick=function(t){!e.props.disabled&&e.props.onClick&&e.props.onClick(t)},e.getIcon=function(){return e.props.icon?e.props.icon.replace(/\s/g,"_"):""},e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,n["Component"]),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.style,r=e.transparent,o=e.disabled,i=e.className,u=e.id,s=e.type,l=r?c.a.transparent:c.a.normalButton,f=o?c.a.disabledButton:"",d=this.getIcon(),g=s&&p[s]?p[s]:"",h="button-icon-component\n ".concat(c.a.button,"\n ").concat(l,"\n ").concat(f,"\n ").concat(i);return n.createElement("button",{id:u,onClick:this.onClick,disabled:o,className:h,title:this.props.title,style:t},n.createElement("i",{className:"".concat(a.a.mooskinIcons," ").concat(c.a.icon," ").concat(g)},d))}}])&&s(r.prototype,o),i&&s(r,i),t}();g.defaultProps={className:"",style:{},type:""},g.displayName="SmallIconButton"},56:function(e,t,r){"use strict";r.d(t,"e",function(){return f}),r.d(t,"c",function(){return d}),r.d(t,"a",function(){return p}),r.d(t,"d",function(){return g}),r.d(t,"b",function(){return h});var n=r(0),o=r(30),a=r.n(o);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,s(t).call(this,e))}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,n["Component"]),r=t,(o=[{key:"render",value:function(){var e="".concat(a.a.list," ").concat(this.props.className);return n.createElement("div",{className:"list-component ".concat(e),style:this.props.style,id:this.props.id},this.props.children)}}])&&c(r.prototype,o),i&&c(r,i),t}();f.defaultProps={className:"",style:{}},f.displayName="List";var d=function(e){var t=e.className,r=e.style;return n.createElement("div",{className:"listitem-component ".concat(a.a.listItem," ").concat(t),style:Object.assign({},r),onClick:e.onClick},e.children)};d.defaultProps={className:"",style:{}},d.displayName="ListItem";var p=function(e){var t=e.expanded?{display:"block"}:{display:"none"},r=void 0===e.arrow||e.arrow;return n.createElement("div",{id:e.id,className:"expanded-section-component ".concat(a.a.expandedSection," ").concat(e.className),style:Object.assign({},t,e.style),onClick:function(e){return e.stopPropagation()}},g(r),e.children)};p.displayName="ExpandedSection";var g=function(e,t){var r=t||void 0;return e&&n.createElement("div",{key:r,className:a.a.arrow},n.createElement("div",{style:{position:"relative",height:"100%",width:"100%"}},n.createElement("div",{className:a.a.innerArrow}),n.createElement("div",{className:a.a.borderArrow})))||null},h=function(e){return n.createElement("div",{id:e.id,className:"item-content-component ".concat(a.a.content," ").concat(e.className),style:e.style},e.children)};h.displayName="ItemContent"},6:function(e,t,r){e.exports={tableWrapper:"tableWrapper___3qZ5p",table:"table___1jlfS",alternate:"alternate___iWrTe",alternateHeader:"alternateHeader___2km76",header:"header___278gY",sortHeader:"sortHeader___1WtO1",col:"col___2ja2f",alternateCol:"alternateCol___WEQ0J",row:"row___214JC",alternateRow:"alternateRow___3Lkth",alternateButton:"alternateButton___1xmp7",arrow:"arrow___d0vFL",heading:"heading___1Z6jn",popover:"popover___3t5Q3",cover:"cover___1_B-1",buttonCol:"buttonCol___2QtPX",buttonHeader:"buttonHeader___Xq5_f",contentContainer:"contentContainer___TyPUq",pagination:"pagination___2nYDx",menuIcon:"menuIcon___Di__K",line:"line___2zTv5",dragItem:"dragItem___1y5Zg",hide:"hide___3ORYg",smallContent:"smallContent___3MDB6",popoverCol:"popoverCol___3G_BI",content:"content___2ZYgJ",toggleButton:"toggleButton___G1K10",inactive:"inactive___QNZL9",active:"active___30o9S"}},7:function(e,t,r){e.exports={mooskinIcons:"mooskinIcons___2i54i"}},78:function(e,t,r){"use strict";var n=r(0),o=r(244),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var a=e,s=t,l=[],f=l,d=!1;function p(){f===l&&(f=l.slice())}function g(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var r=f.indexOf(e);f.splice(r,1),l=null}}}function v(e){if(!c(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=a(s,e)}finally{d=!1}for(var t=l=f,r=0;r<t.length;r++){(0,t[r])()}return e}return v({type:i.INIT}),(n={dispatch:v,subscribe:h,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,v({type:i.REPLACE})}})[o.a]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(g())}return r(),{unsubscribe:t(r)}}})[o.a]=function(){return this},e},n}var s="dnd-core/INIT_COORDS",l="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",d="dnd-core/HOVER",p="dnd-core/DROP",g="dnd-core/END_DRAG",h=function(e,t){return e===t};function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function O(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case s:case l:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case d:return e=r.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?r:y(y({},r),{},{clientOffset:o.clientOffset});case g:case p:return m;default:return r}}var w="dnd-core/ADD_SOURCE",S="dnd-core/ADD_TARGET",D="dnd-core/REMOVE_SOURCE",I="dnd-core/REMOVE_TARGET";function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e){return"object"===E(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function P(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case l:return T(T({},r),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case f:return T(T({},r),{},{isSourcePublic:!0});case d:return T(T({},r),{},{targetIds:o.targetIds});case I:return-1===r.targetIds.indexOf(o.targetId)?r:T(T({},r),{},{targetIds:(e=r.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case p:return T(T({},r),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case g:return T(T({},r),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return r}}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case w:case S:return e+1;case D:case I:return e-1;default:return e}}var x=[],A=[];function R(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case d:break;case w:case S:case I:case D:return x;case l:case f:case g:case p:default:return A}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,a=void 0===o?[]:o,i=function(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach(function(e,t){1===e&&o.push(t)}),o}(n,a);if(!(i.length>0||!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(n,a)))return x;var c=a[a.length-1],u=n[n.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function M(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){H(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:R(n.dirtyHandlerIds,{type:o.type,payload:L(L({},o.payload),{},{prevTargetIds:(e=n,t="dragOperation.targetIds",r=[],t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:r||null},e))})}),dragOffset:O(n.dragOffset,o),refCount:N(n.refCount,o),dragOperation:P(n.dragOperation,o),stateId:M(n.stateId)}}x.__IS_NONE__=!0,A.__IS_ALL__=!0;var F=r(4);function W(e,t){return{type:s,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Y={type:s,payload:{clientOffset:null,sourceClientOffset:null}};function X(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,a=r.clientOffset,i=r.getSourceClientOffset,c=e.getMonitor(),u=e.getRegistry();e.dispatch(W(a)),function(e,t,r){Object(F.a)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Object(F.a)(r.getSource(e),"Expected sourceIds to be registered.")})}(t,c,u);var s=function(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,c);if(null!==s){var f=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Object(F.a)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),f=i(s)}e.dispatch(W(a,f));var d=u.getSource(s).beginDrag(c,s);!function(e){Object(F.a)(C(e),"Item must be an object.")}(d),u.pinSource(s);var p=u.getSourceType(s);return{type:l,payload:{itemType:p,item:d,sourceId:s,clientOffset:a||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(Y)}}function G(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}function K(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function V(e){return function(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){Object(F.a)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var n=t.slice(0),o=e.getMonitor(),a=e.getRegistry();return function(e,t,r){Object(F.a)(t.isDragging(),"Cannot call hover while not dragging."),Object(F.a)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];Object(F.a)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var a=r.getTarget(o);Object(F.a)(a,"Expected targetIds to be registered.")}}(n,o,a),function(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n],a=t.getTargetType(o);K(a,r)||e.splice(n,1)}}(n,a,o.getItemType()),function(e,t,r){e.forEach(function(e){var n=r.getTarget(e);n.hover(t,e)})}(n,o,a),{type:d,payload:{targetIds:n,clientOffset:r||null}}}}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach(function(t){$(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();!function(e){Object(F.a)(e.isDragging(),"Cannot call drop while not dragging."),Object(F.a)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r),function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r).forEach(function(o,a){var i=function(e,t,r,n){var o=r.getTarget(e),a=o?o.drop(n,e):void 0;(function(e){Object(F.a)(void 0===e||C(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:n.getDropResult());return a}(o,a,n,r),c={type:p,payload:{dropResult:z(z({},t),i)}};e.dispatch(c)})}}function Q(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){Object(F.a)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:g}}}function J(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var te,re=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,(r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;Object(F.a)("function"==typeof e,"listener must be a function."),Object(F.a)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var n=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),a=o.stateId;try{a===n||a===n+1&&!function(e,t){return e!==x&&(e===A||void 0===t||(r=e,t.filter(function(e){return r.indexOf(e)>-1})).length>0);var r}(o.dirtyHandlerIds,r)||e()}finally{n=a}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Object(F.a)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe(function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Object(F.a)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Object(F.a)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&(K(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Object(F.a)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!K(n,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var i=a.indexOf(e);return r?i===a.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,n=e.clientOffset,o=e.initialClientOffset,a=e.initialSourceClientOffset,n&&o&&a?J((r=a,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,r=e.initialClientOffset,t&&r?J(t,r):null;var e,t,r}}])&&ee(t.prototype,r),n&&ee(t,n),e}(),ne=0;function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){t&&Array.isArray(e)?e.forEach(function(e){return ae(e,!1)}):Object(F.a)("string"==typeof e||"symbol"===oe(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(te||(te={}));var ie=r(245),ce=[],ue=[],se=ie.a.makeRequestCallFromTimer(function(){if(ue.length)throw ue.shift()});function le(e){var t;(t=ce.length?ce.pop():new fe).task=e,Object(ie.a)(t)}var fe=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){le.onerror?le.onerror(e):(ue.push(e),se())}finally{this.task=null,ce[ce.length]=this}},e}();function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function he(e){var t=(ne++).toString();switch(e){case te.SOURCE:return"S".concat(t);case te.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function ve(e){switch(e[0]){case"S":return te.SOURCE;case"T":return te.TARGET;default:Object(F.a)(!1,"Cannot parse handler ID: ".concat(e))}}function ye(e,t){var r=e.entries(),n=!1;do{var o=r.next(),a=o.done;if(pe(o.value,2)[1]===t)return!0;n=!!a}while(!n);return!1}var be=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,(r=[{key:"addSource",value:function(e,t){ae(e),function(e){Object(F.a)("function"==typeof e.canDrag,"Expected canDrag to be a function."),Object(F.a)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Object(F.a)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(te.SOURCE,e,t);return this.store.dispatch(function(e){return{type:w,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){ae(e,!0),function(e){Object(F.a)("function"==typeof e.canDrop,"Expected canDrop to be a function."),Object(F.a)("function"==typeof e.hover,"Expected hover to be a function."),Object(F.a)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(te.TARGET,e,t);return this.store.dispatch(function(e){return{type:S,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return ye(this.dragSources,e)||ye(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(F.a)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return Object(F.a)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Object(F.a)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Object(F.a)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ve(e)===te.SOURCE}},{key:"isTargetId",value:function(e){return ve(e)===te.TARGET}},{key:"removeSource",value:function(e){var t=this;Object(F.a)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:D,payload:{sourceId:e}}}(e)),le(function(){t.dragSources.delete(e),t.types.delete(e)})}},{key:"removeTarget",value:function(e){Object(F.a)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:I,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Object(F.a)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Object(F.a)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=he(e);return this.types.set(n,t),e===te.SOURCE?this.dragSources.set(n,r):e===te.TARGET&&this.dropTargets.set(n,r),n}}])&&de(t.prototype,r),n&&de(t,n),e}();function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(U,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r);this.store=n,this.monitor=new re(n,new be(n)),n.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,(r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;var r=function(e){return{beginDrag:X(e),publishDragSource:G(e),hover:V(e),drop:Z(e),endDrag:Q(e)}}(this);return Object.keys(r).reduce(function(n,o){var a,i=r[o];return n[o]=(a=i,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=a.apply(e,n);void 0!==i&&t(i)}),n},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&me(t.prototype,r),n&&me(t,n),e}();function we(e,t,r,n){var o=new Oe(n),a=e(o,t,r);return o.receiveBackend(a),o}r.d(t,"a",function(){return Se}),r.d(t,"b",function(){return De});var Se=n.createContext({dragDropManager:void 0});function De(e,t,r,n){return{dragDropManager:we(e,t,r,n)}}},9:function(e,t,r){e.exports={button:"button___2-L3K",disabledButton:"disabledButton___1e1jx",normalButton:"normalButton___2dyrQ",transparent:"transparent___10ND3",icon:"icon___oOv43",outlined:"outlined___1X5wR",round:"round___2udth",sharp:"sharp___156K3",twotone:"twotone___1FFZr"}},91:function(e,t,r){"use strict";r.r(t);var n,o=r(0),a=r(33),i=r.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e[e.right=0]="right",e[e.left=1]="left",e[e.current=2]="current",e[e.none=3]="none"}(n||(n={}));var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=l(this,f(t).apply(this,arguments))).onClick=function(t){return function(r){e.props.onClick(t)}},e}var r,a,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,o["Component"]),r=t,(a=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.style,n=e.id;return o.createElement("div",{className:"".concat(i.a.pagination," ").concat(t),style:r,id:n},o.createElement("div",{className:i.a.paginationInner},this.renderAllButtons()))}},{key:"renderAllButtons",value:function(){var e=this.props,t=e.currentItem,r=e.items,n=e.firstBtn,a=e.lastBtn,i=e.nextBtn,c=e.prevBtn;return t&&[n&&t>2&&o.createElement(g,{key:"asd1",active:!1,label:this.props.inverseStyle?"<< First":"<<",item:1,inverseStyle:this.props.inverseStyle,onClick:this.onClick,className:"pagination-first-btn"}),c&&t>1&&o.createElement(g,{key:"asd2",active:!1,label:this.props.inverseStyle?"< Prev":"<",item:t&&t-1||1,inverseStyle:this.props.inverseStyle,onClick:this.onClick,className:"pagination-prev-btn"}),this.needsLeftEllipsis()&&o.createElement(g,{key:"asdd2",active:!1,label:"...",item:t,onClick:this.onClick,inverseStyle:this.props.inverseStyle,disabled:!0,className:"pagination-ellipsis"}),this.renderNormalButtons(),this.needsRightEllipsis()&&o.createElement(g,{key:"asdd3",active:!1,label:"...",item:t,onClick:this.onClick,inverseStyle:this.props.inverseStyle,disabled:!0,className:"pagination-ellipsis"}),i&&t<=r-1&&o.createElement(g,{key:"asd3",active:!1,label:this.props.inverseStyle?"Next >":">",item:t&&t+1||r,inverseStyle:this.props.inverseStyle,onClick:this.onClick,className:"pagination-next-btn"}),a&&t<r-1&&o.createElement(g,{key:"asd4",active:!1,label:this.props.inverseStyle?"Last >>":">>",item:r,inverseStyle:this.props.inverseStyle,onClick:this.onClick,className:"pagination-last-btn"})]}},{key:"renderNormalButtons",value:function(){var e=this,t=this.getLeftRightButtonCounts();return u(Array(this.props.items).keys()).map(function(r){var a=r+1,c=e.getItemType(a,t[0],t[1]);return c!==n.none&&o.createElement(g,{key:a,active:c===n.current,label:a.toString(),item:a,onClick:e.onClick,inverseStyle:e.props.inverseStyle,className:"pagination-normal-btn ".concat(i.a.itemButton)})})}},{key:"getItemType",value:function(e,t,r){var o=this.props.currentItem,a=n.none;return o&&e<o&&e+t>=o?a=n.left:o&&e>o&&e-r<=o?a=n.right:o&&e===o&&(a=n.current),a}},{key:"getLeftRightButtonCounts",value:function(){var e=this.props.maxButtons,t=0,r=0;return e&&(t=e%2!=0?(e-1)/2:e/2,r=e%2!=0?(e-1)/2:t-1),[t,r]}},{key:"needsLeftEllipsis",value:function(){var e=this.props.currentItem,t=this.getLeftRightButtonCounts()[0];return e&&e-t>1}},{key:"needsRightEllipsis",value:function(){var e=this.props,t=e.currentItem,r=e.items,n=this.getLeftRightButtonCounts()[1];return t&&t+n<r}}])&&s(r.prototype,a),c&&s(r,c),t}();p.defaultProps={currentItem:1,firstBtn:!1,lastBtn:!1,maxButtons:5,nextBtn:!1,prevBtn:!1},p.displayName="Pagination";var g=function(e){var t=e.inverseStyle?i.a.inverseActive:i.a.activeButton,r=e.active?t:"",n=e.disabled?i.a.disabledButton:"",a=e.inverseStyle?i.a.inverseButton:"";return o.createElement("div",{className:"".concat(i.a.paginationButton," ").concat(r," ").concat(n," ").concat(a," ").concat(e.className),onClick:e.onClick(e.item)},e.label)};g.defaultProps={className:""},g.displayName="PaginationButton";t.default=p}})});
|