@spaziodati/atoka-design-system 2.2.37 → 2.2.39
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/AddableItems/index.js +1 -1
- package/Alert/index.js +1 -1
- package/Badge/index.js +1 -1
- package/Bs4V3Wrapper/index.js +1 -1
- package/BubbleChart/index.js +1 -1
- package/Button/index.js +1 -1
- package/ButtonDropdown/index.js +1 -1
- package/CardsPage/index.js +1 -1
- package/CursorPagination/index.js +1 -1
- package/DatePicker/index.js +1 -1
- package/DetailPage/index.js +1 -1
- package/Dropdown/index.js +1 -1
- package/EditableString/index.js +1 -1
- package/EllipsableContent/index.js +1 -1
- package/EmptyState/index.js +1 -1
- package/Facet/index.js +1 -1
- package/FacetSection/index.js +1 -1
- package/FadeAnimation/index.js +1 -1
- package/FeedbackButton/index.js +1 -1
- package/Form/index.js +1 -1
- package/Funnel/index.js +1 -1
- package/Gauge/index.js +1 -1
- package/GridCard/index.js +1 -1
- package/HighlightableText/index.js +1 -1
- package/Histogram/index.js +1 -1
- package/InlineStringEditor/index.js +1 -1
- package/InputGroup/index.js +1 -1
- package/Jumbotron/index.js +1 -1
- package/Map/index.js +1 -1
- package/Modal/index.js +1 -1
- package/Navbar/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PieChart/index.js +1 -1
- package/PublicFooter/index.js +1 -1
- package/PublicNavbar/index.js +1 -1
- package/RecordBit/index.js +1 -1
- package/ResultItemCard/index.js +1 -1
- package/RowCard/index.js +1 -1
- package/SelectDropdown/index.js +1 -1
- package/Spinner/index.js +1 -1
- package/StatisticsItemCard/index.js +1 -1
- package/StatisticsItemNumeric/index.js +1 -1
- package/StatisticsLegend/index.js +1 -1
- package/StatisticsTooltip/index.js +1 -1
- package/Suggester/index.js +1 -1
- package/SunBurst/index.js +1 -1
- package/TabSwitcher/index.js +1 -1
- package/Title/index.js +1 -1
- package/Toast/index.js +1 -1
- package/ToggleButtonGroup/index.js +1 -1
- package/Tooltip/index.js +1 -1
- package/Utils/index.js +1 -1
- package/{atoka-design-system-2.2.37.min.css → atoka-design-system-2.2.39.min.css} +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
package/GridCard/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Card"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Card","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Card"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):e["atoka-design-system"]=t(e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Card"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"])}(self,(function(e,t,r,o,n,a,l,i,c,p,s,u){return(()=>{"use strict";var f,d={6627:(e,t,r)=>{r.d(t,{ZP:()=>i});var o=r(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,o.Z)(Symbol.iterator)?function(e){return(0,o.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.Z)(e)},n(e)}function a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}function l(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,a(e,t,r))}})),e}function i(){return 1===arguments.length?l.apply(void 0,arguments):a.apply(void 0,arguments)}},4397:(e,t,r)=>{r.d(t,{z:()=>y});var o,n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(8926),p=r.n(c),s=r(5692),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(){return f=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(e){return null==e?null:a().createElement(s.FontAwesomeIcon,{icon:e})},t.prototype.renderChildren=function(e){return null==e?null:a().createElement("span",{className:"btn-children"},e)},t.prototype.renderLeftSide=function(e,t){return null==e?null==t?null:a().createElement(s.FontAwesomeIcon,{icon:t,className:"invisible"}):a().createElement(s.FontAwesomeIcon,{icon:e})},t.prototype.renderRightSide=function(e,t){return null==t?null==e?null:a().createElement(s.FontAwesomeIcon,{icon:e,className:"invisible"}):a().createElement(s.FontAwesomeIcon,{icon:t})},t.prototype.renderContent=function(e,t){return null!=e&&null==t?this.renderIcon(e):a().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))},t.prototype.render=function(){var e=this.props,t=e.icon,r=e.iconLeft,o=e.iconRight,n=e.children,l=e.size,c=e.className,s=d(e,["icon","iconLeft","iconRight","children","size","className"]),u=i()("atoka-btn","btn-".concat(l),c,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return a().createElement(p(),f({className:u},s),this.renderLeftSide(r,o),this.renderContent(t,n),this.renderRightSide(r,o))},t.displayName="Button",t.defaultProps={variant:"primary",size:"md",disabled:!1,block:!1},t}(a().PureComponent)},7325:(e,t,r)=>{r.d(t,{Button:()=>o.z});var o=r(4397)},192:(e,t,r)=>{r.d(t,{AtokaSimpleDropdownToggle:()=>_,Dropdown:()=>h});var o,n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(4976),p=r.n(c),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=i()("atoka-dropdown-menu",this.props.className,this.props.size);return a().createElement(p().Menu,u({},this.props,{className:e}),this.props.children)},t.displayName="DropdownMenu",t.defaultProps={size:"sm"},t}(a().PureComponent),d=a().memo((function(e){var t=e.children;return a().createElement("div",{className:"atoka-dropdown-section"},t,a().createElement(h.Divider,null))}));d.displayName="DropdownSection";var y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),m=function(){return m=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},m.apply(this,arguments)},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(){var e=i()(this.props.className,"atoka-dropdown");return a().createElement(p(),m({},this.props,{className:e}),this.props.children)},t.displayName="DropDown",t.Toggle=p().Toggle,t.Menu=f,t.Item=p().Item,t.Divider=p().Divider,t.Header=p().Header,t.Section=d,t}(a().PureComponent),b=r(6627),v=r(3041),g=r(1349),O=r(7325),w=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(a<3?n(l):a>3?n(t,r,l):n(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function P(e,t){var r=a().forwardRef((function(e,r){return a().createElement("div",{ref:r},a().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return r.displayName=e,r}var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement(O.Button,{variant:"secondary",size:"xs",icon:v.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})},t.displayName="AtokaSimpleDropdownToggleComponent",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=i()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return a().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,a().createElement("div",{className:"chevron-container"},a().createElement(O.Button,{variant:"tertiary",size:"md",icon:g.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),_=P("AtokaSimpleDropdownToggle",j);P("AtokaCustomDropdownToggle",N),P("AtokaCustomDropdownToggleWithChevron",k)},7045:(e,t,r)=>{r.d(t,{G:()=>m});var o,n=r(8310),a=r.n(n),l=r(8156),i=r.n(l),c=r(4603),p=r(4915),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){return i().createElement("div",{className:"ellipsable-content-prepend"},e.children)};f.displayName="EllipsableContent.Prepend";var d=function(e){return i().createElement("div",{className:"ellipsable-content-append"},e.children)};d.displayName="EllipsableContent.Append";var y=function(e){var t=i().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:i().createElement(c.Tooltip,u({},e.tooltipProps,{content:e.tooltip}),t)};y.displayName="EllipsableContent.Content";var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.renderFullContent=function(){var e=(0,p.z8)(this.props.children,t.Prepend),r=(0,p.z8)(this.props.children,t.Content),o=(0,p.z8)(this.props.children,t.Append);return null!=r||null==e&&null==o?(null==r&&(r=i().createElement(t.Content,null,this.props.children)),null!=this.props.tooltip&&(r=i().createElement(r.type,u({},r.props,{tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps}))),i().createElement(i().Fragment,null,e,r,o)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)},t.prototype.render=function(){var e=a()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:i().createElement("div",{className:e,style:this.props.style},t)},t.displayName="EllipsableContent",t.Prepend=f,t.Append=d,t.Content=y,t}(i().PureComponent)},3642:(e,t,r)=>{r.d(t,{l:()=>m});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=r(7269),s=r(2380),u=r(5145),f=r(8672),d=r(2722),y=function(){return y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},y.apply(this,arguments)},m=function(e){var t=l()(null==e?void 0:e.className,"atoka-form");return n().createElement(c(),y({},e,{className:t}),e.children)};m.displayName="Form",m.Control=s.N,m.Label=p.l,m.Checkbox=u.z,m.Radio=f.w,m.File=c().File,m.Switch=c().Switch,m.Help=d.y,m.Group=c().Group},5145:(e,t,r)=>{r.d(t,{z:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e){var t,r=l()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(c().Check,p({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};s.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>f});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(1082),c=r.n(i),p=r(7605),s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=s(e,["size"]),i=l()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(c(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:i,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));u.displayName="FormControlComponent";var f=u;f.FeedBack=p.t,f.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(1082),c=r.n(i),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},s=n().memo((function(e){var t=e.show,r=void 0===t||t,o=p(e,["show"]),a=l()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(c().Feedback,{type:o.type,className:a},o.children)}));s.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>s});var o=r(8763),n=r.n(o),a=r(8156),l=r.n(a),i=r(8310),c=r.n(i),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},s=l().memo((function(e){var t=e.children,r=p(e,["children"]),o=c()("d-block",null==r?void 0:r.className);return l().createElement(n(),{bsPrefix:"atoka-form-help",className:o},t)}));s.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>p});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=n().memo((function(e){var t=l()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(c().Label,{className:t},e.children)}));p.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e){var t,r=l()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(c().Check,p({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};s.displayName="FormRadio"},2031:(e,t,r)=>{r.d(t,{$:()=>c});var o=r(8310),n=r.n(o),a=r(8156),l=r.n(a),i=r(192),c=l().memo((function(e){var t=n()(e.className,"ml-1");return l().createElement("div",{className:t},l().createElement(i.Dropdown,{drop:"left"},l().createElement(i.Dropdown.Toggle,{disabled:!0===e.isDisabled,as:i.AtokaSimpleDropdownToggle}),l().createElement(i.Dropdown.Menu,null,e.children)))}));c.displayName="CardMenu"},3808:(e,t,r)=>{r.d(t,{l:()=>c});var o=r(8156),n=r.n(o),a=r(7045),l=r(38),i=function(){return i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)},c=n().memo((function(e){var t,r=[];return n().Children.forEach(e.children,(function(e){var t;"EllipsableContent"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.displayName)&&r.push(e)})),r.length>0?e.children:n().createElement(a.G,{tooltip:null!==(t=e.tooltip)&&void 0!==t?t:null,tooltipProps:i({delay:200},e.tooltipProps)},n().createElement(l.D,{size:"sm",className:"mb-0"},e.children))}));c.displayName="CardTitle"},8684:(e,t,r)=>{r.r(t),r.d(t,{GridCard:()=>P});var o=r(6627),n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(2494),p=r.n(c),s=r(4915),u=r(3808),f=a().memo((function(e){return a().createElement("div",{className:"mt-3"},e.children)}));f.displayName="GridCardFooter";var d=r(3642),y=r(2031),m=a().memo((function(e){return a().createElement("div",{className:"d-flex align-items-center h-100"},e.children)}));m.displayName="GridCardTags";var h,b=(h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},h(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.stopPropagation=function(e){e.stopPropagation()},t.prototype.renderCheckbox=function(){return this.props.isSelectable?a().createElement("span",{onClick:this.stopPropagation},a().createElement(d.l.Checkbox,{className:"checkbox-container mb-0",onChange:this.props.onSelect,checked:this.props.isSelected,id:String(this.props.id)})):null},t.prototype.render=function(){return a().createElement("div",{className:"card-title d-flex"},this.renderCheckbox(),(0,s.z8)(this.props.children,u.l),a().createElement("span",{onClick:this.stopPropagation},(0,s.z8)(this.props.children,m)),a().createElement("span",null,(0,s.z8)(this.props.children,y.$)))},t.displayName="GridCardHeader",t}(a().PureComponent),g=a().memo((function(e){return a().createElement("div",{className:"mt-3"},e.children)}));g.displayName="GridCardContent";var O=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),w=function(){return w=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},w.apply(this,arguments)},C=function(e,t,r,o){var n,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(a<3?n(l):a>3?n(t,r,l):n(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.stopPropagation=function(e){e.stopPropagation()},t.prototype.handleClick=function(){this.props.onSelect&&this.props.onSelect()},t.prototype.render=function(){var e=i()("grid-card mb-2",this.props.className,{"is-selectable":this.props.isSelectable});return a().createElement(p(),{className:e,onClick:this.handleClick},a().createElement(v,w({},this.props),(0,s.z8)(this.props.children,u.l),(0,s.z8)(this.props.children,m),(0,s.z8)(this.props.children,y.$)),(0,s.z8)(this.props.children,g),a().createElement("span",{onClick:this.stopPropagation},(0,s.z8)(this.props.children,f)))},t.displayName="GridCard",t.Header=v,t.Title=u.l,t.Tags=m,t.Menu=y.$,t.Content=g,t.Footer=f,t.defaultProps={isSelected:!1,isSelectable:!1,id:"".concat(Math.random())},C([o.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().PureComponent)},38:(e,t,r)=>{r.d(t,{D:()=>u});var o,n=r(8156),a=r.n(n),l=r(5692),i=r(8310),c=r.n(i),p=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.renderIcon=function(){if(null==this.props.icon)return null;var e=c()({"mr-2":""!==this.props.children&&null!=this.props.children});return a().createElement(l.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})},t.prototype.renderContent=function(){return a().createElement(a().Fragment,null,this.renderIcon(),this.props.children)},t.prototype.render=function(){var e={className:this.props.className,style:this.props.style};switch(this.props.size){case"xs":return a().createElement("h6",s({},e),this.renderContent());case"sm":return a().createElement("h5",s({},e),this.renderContent());case"md":return a().createElement("h4",s({},e),this.renderContent());case"lg":return a().createElement("h3",s({},e),this.renderContent());case"xl":return a().createElement("h2",s({},e),this.renderContent());default:return a().createElement("h1",s({},e),this.renderContent())}},t.displayName="Title",t.defaultProps={size:"xxl"},t}(a().PureComponent)},4603:(e,t,r)=>{r.d(t,{Tooltip:()=>u});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(6043),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().memo((function(e){var t,r=document.querySelector(".bs4-v3-external-container"),o=null!==(t=e.placement)&&void 0!==t?t:"top",a=l()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===o.indexOf("top"),"right bs-tooltip-right":0===o.indexOf("right"),"bottom bs-tooltip-bottom":0===o.indexOf("bottom"),"left bs-tooltip-left":0===o.indexOf("left")}),i=e.content,u=s(e,["content"]);return n().createElement(c(),p({},u,{container:r,overlay:function(e){var t=e.arrowProps,r=s(e,["arrowProps"]),o=(r.show,s(r,["show"]));return n().createElement("div",p({},o,{className:a,role:"tooltip"}),n().createElement("div",{className:"tooltip-inner"},n().createElement("div",p({className:"arrow arrow-back"},t)),i,n().createElement("div",p({className:"arrow arrow-front"},t))))}}),e.children)}));u.displayName="Tooltip"},4915:(e,t,r)=>{r.d(t,{z8:()=>a});r(5692);var o=r(8156),n=r.n(o);r(3642);function a(e,t){var r,o;return null!==(o=null===(r=function(e,t){var r=[];return n().Children.forEach(e,(function(e){(null==e?void 0:e.type)===t&&r.push(e)})),r}(e,t))||void 0===r?void 0:r[0])&&void 0!==o?o:null}},1349:t=>{t.exports=e},3041:e=>{e.exports=t},5692:e=>{e.exports=r},8310:e=>{e.exports=o},8156:e=>{e.exports=n},8926:e=>{e.exports=a},2494:e=>{e.exports=l},4976:e=>{e.exports=i},8721:e=>{e.exports=c},1082:e=>{e.exports=p},8763:e=>{e.exports=s},6043:e=>{e.exports=u},4329:(e,t,r)=>{function o(e){return o="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},o(e)}r.d(t,{Z:()=>o})}},y={};function m(e){var t=y[e];if(void 0!==t)return t.exports;var r=y[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.m=d,f=[],m.O=(e,t,r,o)=>{if(!t){var n=1/0;for(c=0;c<f.length;c++){for(var[t,r,o]=f[c],a=!0,l=0;l<t.length;l++)(!1&o||n>=o)&&Object.keys(m.O).every((e=>m.O[e](t[l])))?t.splice(l--,1):(a=!1,o<n&&(n=o));if(a){f.splice(c--,1);var i=r();void 0!==i&&(e=i)}}return e}o=o||0;for(var c=f.length;c>0&&f[c-1][2]>o;c--)f[c]=f[c-1];f[c]=[t,r,o]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4975:0,6615:0,8621:0,2823:0,4149:0};m.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,l,i]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in l)m.o(l,o)&&(m.m[o]=l[o]);if(i)var p=i(m)}for(t&&t(r);c<a.length;c++)n=a[c],m.o(e,n)&&e[n]&&e[n][0](),e[a[c]]=0;return m.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var h=m.O(void 0,[4149],(()=>m(8684)));return h=m.O(h)})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Card"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Card","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Card"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):e["atoka-design-system"]=t(e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Card"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"])}(self,(function(e,t,r,o,n,a,l,i,c,p,s,u){return(()=>{"use strict";var f,d={6627:(e,t,r)=>{r.d(t,{ZP:()=>i});var o=r(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,o.Z)(Symbol.iterator)?function(e){return(0,o.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.Z)(e)},n(e)}function a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}function l(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,a(e,t,r))}})),e}function i(){return 1===arguments.length?l.apply(void 0,arguments):a.apply(void 0,arguments)}},4397:(e,t,r)=>{r.d(t,{z:()=>y});var o,n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(8926),p=r.n(c),s=r(5692),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(){return f=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(e){return null==e?null:a().createElement(s.FontAwesomeIcon,{icon:e})},t.prototype.renderChildren=function(e){return null==e?null:a().createElement("span",{className:"btn-children"},e)},t.prototype.renderLeftSide=function(e,t){return null==e?null==t?null:a().createElement(s.FontAwesomeIcon,{icon:t,className:"invisible"}):a().createElement(s.FontAwesomeIcon,{icon:e})},t.prototype.renderRightSide=function(e,t){return null==t?null==e?null:a().createElement(s.FontAwesomeIcon,{icon:e,className:"invisible"}):a().createElement(s.FontAwesomeIcon,{icon:t})},t.prototype.renderContent=function(e,t){return null!=e&&null==t?this.renderIcon(e):a().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))},t.prototype.render=function(){var e=this.props,t=e.icon,r=e.iconLeft,o=e.iconRight,n=e.children,l=e.size,c=e.className,s=d(e,["icon","iconLeft","iconRight","children","size","className"]),u=i()("atoka-btn","btn-".concat(l),c,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return a().createElement(p(),f({className:u},s),this.renderLeftSide(r,o),this.renderContent(t,n),this.renderRightSide(r,o))},t.displayName="Button",t.defaultProps={variant:"primary",size:"md",disabled:!1,block:!1},t}(a().PureComponent)},7325:(e,t,r)=>{r.d(t,{Button:()=>o.z});var o=r(4397)},192:(e,t,r)=>{r.d(t,{AtokaSimpleDropdownToggle:()=>_,Dropdown:()=>h});var o,n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(4976),p=r.n(c),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=i()("atoka-dropdown-menu",this.props.className,this.props.size);return a().createElement(p().Menu,u({},this.props,{className:e}),this.props.children)},t.displayName="DropdownMenu",t.defaultProps={size:"sm"},t}(a().PureComponent),d=a().memo((function(e){var t=e.children;return a().createElement("div",{className:"atoka-dropdown-section"},t,a().createElement(h.Divider,null))}));d.displayName="DropdownSection";var y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),m=function(){return m=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},m.apply(this,arguments)},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(){var e=i()(this.props.className,"atoka-dropdown");return a().createElement(p(),m({},this.props,{className:e}),this.props.children)},t.displayName="DropDown",t.Toggle=p().Toggle,t.Menu=f,t.Item=p().Item,t.Divider=p().Divider,t.Header=p().Header,t.Section=d,t}(a().PureComponent),b=r(6627),v=r(3041),g=r(1349),O=r(7325),w=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(a<3?n(l):a>3?n(t,r,l):n(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function P(e,t){var r=a().forwardRef((function(e,r){return a().createElement("div",{ref:r},a().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return r.displayName=e,r}var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement(O.Button,{variant:"secondary",size:"xs",icon:v.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})},t.displayName="AtokaSimpleDropdownToggleComponent",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return w(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=i()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return a().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,a().createElement("div",{className:"chevron-container"},a().createElement(O.Button,{variant:"tertiary",size:"md",icon:g.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",C([b.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),_=P("AtokaSimpleDropdownToggle",j);P("AtokaCustomDropdownToggle",N),P("AtokaCustomDropdownToggleWithChevron",k)},7045:(e,t,r)=>{r.d(t,{G:()=>m});var o,n=r(8310),a=r.n(n),l=r(8156),i=r.n(l),c=r(4603),p=r(4915),s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){return i().createElement("div",{className:"ellipsable-content-prepend"},e.children)};f.displayName="EllipsableContent.Prepend";var d=function(e){return i().createElement("div",{className:"ellipsable-content-append"},e.children)};d.displayName="EllipsableContent.Append";var y=function(e){var t=i().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:i().createElement(c.Tooltip,u({},e.tooltipProps,{content:e.tooltip}),t)};y.displayName="EllipsableContent.Content";var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.renderFullContent=function(){var e=(0,p.z8)(this.props.children,t.Prepend),r=(0,p.z8)(this.props.children,t.Content),o=(0,p.z8)(this.props.children,t.Append);return null!=r||null==e&&null==o?(null==r&&(r=i().createElement(t.Content,null,this.props.children)),null!=this.props.tooltip&&(r=i().createElement(r.type,u({},r.props,{tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps}))),i().createElement(i().Fragment,null,e,r,o)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)},t.prototype.render=function(){var e=a()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:i().createElement("div",{className:e,style:this.props.style},t)},t.displayName="EllipsableContent",t.Prepend=f,t.Append=d,t.Content=y,t}(i().PureComponent)},3642:(e,t,r)=>{r.d(t,{l:()=>m});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=r(7269),s=r(2380),u=r(5145),f=r(8672),d=r(2722),y=function(){return y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},y.apply(this,arguments)},m=function(e){var t=l()(null==e?void 0:e.className,"atoka-form");return n().createElement(c(),y({},e,{className:t}),e.children)};m.displayName="Form",m.Control=s.N,m.Label=p.l,m.Checkbox=u.z,m.Radio=f.w,m.File=c().File,m.Switch=c().Switch,m.Help=d.y,m.Group=c().Group},5145:(e,t,r)=>{r.d(t,{z:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e){var t,r=l()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(c().Check,p({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};s.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>f});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(1082),c=r.n(i),p=r(7605),s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=s(e,["size"]),i=l()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(c(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:i,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));u.displayName="FormControlComponent";var f=u;f.FeedBack=p.t,f.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(1082),c=r.n(i),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},s=n().memo((function(e){var t=e.show,r=void 0===t||t,o=p(e,["show"]),a=l()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(c().Feedback,{type:o.type,className:a},o.children)}));s.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>s});var o=r(8763),n=r.n(o),a=r(8156),l=r.n(a),i=r(8310),c=r.n(i),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},s=l().memo((function(e){var t=e.children,r=p(e,["children"]),o=c()("d-block",null==r?void 0:r.className);return l().createElement(n(),{bsPrefix:"atoka-form-help",className:o},t)}));s.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>p});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=n().memo((function(e){var t=l()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(c().Label,{className:t},e.children)}));p.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>s});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(8721),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e){var t,r=l()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(c().Check,p({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};s.displayName="FormRadio"},2031:(e,t,r)=>{r.d(t,{$:()=>c});var o=r(8310),n=r.n(o),a=r(8156),l=r.n(a),i=r(192),c=l().memo((function(e){var t=n()(e.className,"ml-1");return l().createElement("div",{className:t},l().createElement(i.Dropdown,{drop:"left"},l().createElement(i.Dropdown.Toggle,{disabled:!0===e.isDisabled,as:i.AtokaSimpleDropdownToggle}),l().createElement(i.Dropdown.Menu,null,e.children)))}));c.displayName="CardMenu"},3808:(e,t,r)=>{r.d(t,{l:()=>c});var o=r(8156),n=r.n(o),a=r(7045),l=r(38),i=function(){return i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)},c=n().memo((function(e){var t,r=[];return n().Children.forEach(e.children,(function(e){var t;"EllipsableContent"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.displayName)&&r.push(e)})),r.length>0?e.children:n().createElement(a.G,{tooltip:null!==(t=e.tooltip)&&void 0!==t?t:null,tooltipProps:i({delay:200},e.tooltipProps)},n().createElement(l.D,{size:"sm",className:"mb-0"},e.children))}));c.displayName="CardTitle"},8684:(e,t,r)=>{r.r(t),r.d(t,{GridCard:()=>P});var o=r(6627),n=r(8156),a=r.n(n),l=r(8310),i=r.n(l),c=r(2494),p=r.n(c),s=r(4915),u=r(3808),f=a().memo((function(e){return a().createElement("div",{className:"mt-3"},e.children)}));f.displayName="GridCardFooter";var d=r(3642),y=r(2031),m=a().memo((function(e){return a().createElement("div",{className:"d-flex align-items-center h-100"},e.children)}));m.displayName="GridCardTags";var h,b=(h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},h(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.stopPropagation=function(e){e.stopPropagation()},t.prototype.renderCheckbox=function(){return this.props.isSelectable?a().createElement("span",{onClick:this.stopPropagation},a().createElement(d.l.Checkbox,{className:"checkbox-container mb-0",onChange:this.props.onSelect,checked:this.props.isSelected,id:String(this.props.id)})):null},t.prototype.render=function(){return a().createElement("div",{className:"card-title d-flex"},this.renderCheckbox(),(0,s.z8)(this.props.children,u.l),a().createElement("span",{onClick:this.stopPropagation},(0,s.z8)(this.props.children,m)),a().createElement("span",null,(0,s.z8)(this.props.children,y.$)))},t.displayName="GridCardHeader",t}(a().PureComponent),g=a().memo((function(e){return a().createElement("div",{className:"mt-3"},e.children)}));g.displayName="GridCardContent";var O=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),w=function(){return w=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},w.apply(this,arguments)},C=function(e,t,r,o){var n,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(l=(a<3?n(l):a>3?n(t,r,l):n(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.stopPropagation=function(e){e.stopPropagation()},t.prototype.handleClick=function(){this.props.onSelect&&this.props.onSelect()},t.prototype.render=function(){var e=i()("grid-card mb-2",this.props.className,{"is-selectable":this.props.isSelectable});return a().createElement(p(),{className:e,onClick:this.handleClick},a().createElement(v,w({},this.props),(0,s.z8)(this.props.children,u.l),(0,s.z8)(this.props.children,m),(0,s.z8)(this.props.children,y.$)),(0,s.z8)(this.props.children,g),a().createElement("span",{onClick:this.stopPropagation},(0,s.z8)(this.props.children,f)))},t.displayName="GridCard",t.Header=v,t.Title=u.l,t.Tags=m,t.Menu=y.$,t.Content=g,t.Footer=f,t.defaultProps={isSelected:!1,isSelectable:!1,id:"".concat(Math.random())},C([o.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().PureComponent)},38:(e,t,r)=>{r.d(t,{D:()=>u});var o,n=r(8156),a=r.n(n),l=r(5692),i=r(8310),c=r.n(i),p=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.renderIcon=function(){if(null==this.props.icon)return null;var e=c()({"mr-2":""!==this.props.children&&null!=this.props.children});return a().createElement(l.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})},t.prototype.renderContent=function(){return a().createElement(a().Fragment,null,this.renderIcon(),this.props.children)},t.prototype.render=function(){var e={className:this.props.className,style:this.props.style};switch(this.props.size){case"xs":return a().createElement("h6",s({},e),this.renderContent());case"sm":return a().createElement("h5",s({},e),this.renderContent());case"md":return a().createElement("h4",s({},e),this.renderContent());case"lg":return a().createElement("h3",s({},e),this.renderContent());case"xl":return a().createElement("h2",s({},e),this.renderContent());default:return a().createElement("h1",s({},e),this.renderContent())}},t.displayName="Title",t.defaultProps={size:"xxl"},t}(a().PureComponent)},4603:(e,t,r)=>{r.d(t,{Tooltip:()=>u});var o=r(8156),n=r.n(o),a=r(8310),l=r.n(a),i=r(6043),c=r.n(i),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().memo((function(e){var t,r=document.querySelector(".bs4-v3-external-container"),o=null!==(t=e.placement)&&void 0!==t?t:"top",a=l()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===o.indexOf("top"),"right bs-tooltip-right":0===o.indexOf("right"),"bottom bs-tooltip-bottom":0===o.indexOf("bottom"),"left bs-tooltip-left":0===o.indexOf("left")}),i=e.content,u=s(e,["content"]);return n().createElement(c(),p({},u,{container:r,overlay:function(e){var t=e.arrowProps,r=s(e,["arrowProps"]),o=(r.show,s(r,["show"]));return n().createElement("div",p({},o,{className:a,role:"tooltip"}),n().createElement("div",{className:"tooltip-inner"},n().createElement("div",p({className:"arrow arrow-back"},t)),i,n().createElement("div",p({className:"arrow arrow-front"},t))))}}),e.children)}));u.displayName="Tooltip"},4915:(e,t,r)=>{r.d(t,{z8:()=>a});r(5692);var o=r(8156),n=r.n(o);r(3642);function a(e,t){var r,o;return null!==(o=null===(r=function(e,t){var r=[];return n().Children.forEach(e,(function(e){(null==e?void 0:e.type)===t&&r.push(e)})),r}(e,t))||void 0===r?void 0:r[0])&&void 0!==o?o:null}},1349:t=>{t.exports=e},3041:e=>{e.exports=t},5692:e=>{e.exports=r},8310:e=>{e.exports=o},8156:e=>{e.exports=n},8926:e=>{e.exports=a},2494:e=>{e.exports=l},4976:e=>{e.exports=i},8721:e=>{e.exports=c},1082:e=>{e.exports=p},8763:e=>{e.exports=s},6043:e=>{e.exports=u},4329:(e,t,r)=>{function o(e){return o="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},o(e)}r.d(t,{Z:()=>o})}},y={};function m(e){var t=y[e];if(void 0!==t)return t.exports;var r=y[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.m=d,f=[],m.O=(e,t,r,o)=>{if(!t){var n=1/0;for(c=0;c<f.length;c++){for(var[t,r,o]=f[c],a=!0,l=0;l<t.length;l++)(!1&o||n>=o)&&Object.keys(m.O).every((e=>m.O[e](t[l])))?t.splice(l--,1):(a=!1,o<n&&(n=o));if(a){f.splice(c--,1);var i=r();void 0!==i&&(e=i)}}return e}o=o||0;for(var c=f.length;c>0&&f[c-1][2]>o;c--)f[c]=f[c-1];f[c]=[t,r,o]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4975:0,6615:0,8621:0,2823:0,9156:0};m.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,l,i]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in l)m.o(l,o)&&(m.m[o]=l[o]);if(i)var p=i(m)}for(t&&t(r);c<a.length;c++)n=a[c],m.o(e,n)&&e[n]&&e[n][0](),e[a[c]]=0;return m.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var h=m.O(void 0,[9156],(()=>m(8684)));return h=m.O(h)})()}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("classnames"),require("react")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react"],e):"object"==typeof exports?exports["atoka-design-system"]=e(require("classnames"),require("react")):t["atoka-design-system"]=e(t.classnames,t.react)}(self,(function(t,e){return(()=>{"use strict";var r,n={6627:(t,e,r)=>{r.d(e,{MR:()=>i});var n=r(4329);function o(t){return o="function"==typeof Symbol&&"symbol"===(0,n.Z)(Symbol.iterator)?function(t){return(0,n.Z)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,n.Z)(t)},o(t)}function i(t,e,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var r=n.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return r},set:function(t){n=t,delete this[e]}}),i=!1,r},set:function(t){n=t}}}},8265:(t,e,r)=>{r.r(e),r.d(e,{HighlightableText:()=>h});var n,o=r(6627),i=r(8310),l=r.n(i),a=r(8156),s=r.n(a),u=r(2394),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t,e,r,n){var o,i=arguments.length,l=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return c(e,t),e.prototype.needToHighlight=function(){return!(0,u.Wq)(this.props.highlighted)},e.prototype.getParts=function(){if("string"!=typeof this.props.children)throw Error("In this component, children have to be a string");return(0,u.ho)(this.props.highlighted,this.props.children)},e.prototype.renderPart=function(t,e){var r,n=(0,u.OH)(t,this.props.highlighted),o=l()("atoka-highlightable-text",this.props.size,((r={"text-muted":!0===this.props.isDisabled,bold:this.props.isBold,"selected-text":n})[this.props.highlightColor]=n,r)),i=t;return n&&(i=s().createElement("strong",null,t)),s().createElement("span",{key:"".concat(t,"-").concat(e),className:o},i)},e.prototype.highlightedText=function(){var t=this.getParts();return null==t?null:s().createElement("span",{className:this.props.className},t.map(this.renderPart))},e.prototype.render=function(){var t=this.props.children,e=l()("atoka-highlightable-text",this.props.highlightColor,this.props.size,this.props.className,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold});return"string"!=typeof t?s().createElement("span",{className:e},t):this.needToHighlight()?this.highlightedText():s().createElement("span",{className:e},t)},e.displayName="HighlightableText",e.defaultProps={size:"md",highlightColor:"orange"},f([o.MR,p("design:type",Function),p("design:paramtypes",[String,Number]),p("design:returntype","function"==typeof(r=void 0!==s()&&s().ReactNode)?r:Object)],e.prototype,"renderPart",null),e}(s().PureComponent)},2394:(t,e,r)=>{r.d(e,{Wq:()=>l,OH:()=>s,ho:()=>u});var n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l},i=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};function l(t){return null==t||null!==t.match(/^\s*$/)}function a(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function s(t,e){var r,o;if(null==t||null==e)return!1;if(t=t.toLowerCase(),null===(e=e.toLowerCase()).match(" "))return null!==t.match(a(e));var i=e.split(" ").filter((function(t){return!l(t)})).sort((function(t,e){return e.length-t.length}));try{for(var s=n(i),u=s.next();!u.done;u=s.next()){if(t===u.value)return!0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return!1}function u(t,e){var r,u;if(null==e)return[];if(null===(t=a(t)).match(" ")){var c=new RegExp("("+t+")","gi");return e.split(c)}var f=t.split(" ").filter((function(t){return!l(t)})).sort((function(t,e){return e.length-t.length})),p=[e];try{for(var h=n(f),y=h.next();!y.done;y=h.next())for(var d=y.value,g=(c=new RegExp("("+d+")","gi"),0);g<p.length;g++){var m=p[g];if(!s(m,t)){var b=m.split(c).filter((function(t){return""!==t}));p.splice.apply(p,i([g,1],o(b),!1))}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(u=h.return)&&u.call(h)}finally{if(r)throw r.error}}return p}},8310:e=>{e.exports=t},8156:t=>{t.exports=e},4329:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.m=n,r=[],i.O=(t,e,n,o)=>{if(!e){var l=1/0;for(c=0;c<r.length;c++){for(var[e,n,o]=r[c],a=!0,s=0;s<e.length;s++)(!1&o||l>=o)&&Object.keys(i.O).every((t=>i.O[t](e[s])))?e.splice(s--,1):(a=!1,o<l&&(l=o));if(a){r.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}o=o||0;for(var c=r.length;c>0&&r[c-1][2]>o;c--)r[c]=r[c-1];r[c]=[e,n,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={4953:0,
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("classnames"),require("react")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react"],e):"object"==typeof exports?exports["atoka-design-system"]=e(require("classnames"),require("react")):t["atoka-design-system"]=e(t.classnames,t.react)}(self,(function(t,e){return(()=>{"use strict";var r,n={6627:(t,e,r)=>{r.d(e,{MR:()=>i});var n=r(4329);function o(t){return o="function"==typeof Symbol&&"symbol"===(0,n.Z)(Symbol.iterator)?function(t){return(0,n.Z)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,n.Z)(t)},o(t)}function i(t,e,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var r=n.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return r},set:function(t){n=t,delete this[e]}}),i=!1,r},set:function(t){n=t}}}},8265:(t,e,r)=>{r.r(e),r.d(e,{HighlightableText:()=>h});var n,o=r(6627),i=r(8310),l=r.n(i),a=r(8156),s=r.n(a),u=r(2394),c=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t,e,r,n){var o,i=arguments.length,l=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return c(e,t),e.prototype.needToHighlight=function(){return!(0,u.Wq)(this.props.highlighted)},e.prototype.getParts=function(){if("string"!=typeof this.props.children)throw Error("In this component, children have to be a string");return(0,u.ho)(this.props.highlighted,this.props.children)},e.prototype.renderPart=function(t,e){var r,n=(0,u.OH)(t,this.props.highlighted),o=l()("atoka-highlightable-text",this.props.size,((r={"text-muted":!0===this.props.isDisabled,bold:this.props.isBold,"selected-text":n})[this.props.highlightColor]=n,r)),i=t;return n&&(i=s().createElement("strong",null,t)),s().createElement("span",{key:"".concat(t,"-").concat(e),className:o},i)},e.prototype.highlightedText=function(){var t=this.getParts();return null==t?null:s().createElement("span",{className:this.props.className},t.map(this.renderPart))},e.prototype.render=function(){var t=this.props.children,e=l()("atoka-highlightable-text",this.props.highlightColor,this.props.size,this.props.className,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold});return"string"!=typeof t?s().createElement("span",{className:e},t):this.needToHighlight()?this.highlightedText():s().createElement("span",{className:e},t)},e.displayName="HighlightableText",e.defaultProps={size:"md",highlightColor:"orange"},f([o.MR,p("design:type",Function),p("design:paramtypes",[String,Number]),p("design:returntype","function"==typeof(r=void 0!==s()&&s().ReactNode)?r:Object)],e.prototype,"renderPart",null),e}(s().PureComponent)},2394:(t,e,r)=>{r.d(e,{Wq:()=>l,OH:()=>s,ho:()=>u});var n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l},i=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};function l(t){return null==t||null!==t.match(/^\s*$/)}function a(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function s(t,e){var r,o;if(null==t||null==e)return!1;if(t=t.toLowerCase(),null===(e=e.toLowerCase()).match(" "))return null!==t.match(a(e));var i=e.split(" ").filter((function(t){return!l(t)})).sort((function(t,e){return e.length-t.length}));try{for(var s=n(i),u=s.next();!u.done;u=s.next()){if(t===u.value)return!0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return!1}function u(t,e){var r,u;if(null==e)return[];if(null===(t=a(t)).match(" ")){var c=new RegExp("("+t+")","gi");return e.split(c)}var f=t.split(" ").filter((function(t){return!l(t)})).sort((function(t,e){return e.length-t.length})),p=[e];try{for(var h=n(f),y=h.next();!y.done;y=h.next())for(var d=y.value,g=(c=new RegExp("("+d+")","gi"),0);g<p.length;g++){var m=p[g];if(!s(m,t)){var b=m.split(c).filter((function(t){return""!==t}));p.splice.apply(p,i([g,1],o(b),!1))}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(u=h.return)&&u.call(h)}finally{if(r)throw r.error}}return p}},8310:e=>{e.exports=t},8156:t=>{t.exports=e},4329:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.m=n,r=[],i.O=(t,e,n,o)=>{if(!e){var l=1/0;for(c=0;c<r.length;c++){for(var[e,n,o]=r[c],a=!0,s=0;s<e.length;s++)(!1&o||l>=o)&&Object.keys(i.O).every((t=>i.O[t](e[s])))?e.splice(s--,1):(a=!1,o<l&&(l=o));if(a){r.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}o=o||0;for(var c=r.length;c>0&&r[c-1][2]>o;c--)r[c]=r[c-1];r[c]=[e,n,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={4953:0,9156:0};i.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[l,a,s]=r,u=0;if(l.some((e=>0!==t[e]))){for(n in a)i.o(a,n)&&(i.m[n]=a[n]);if(s)var c=s(i)}for(e&&e(r);u<l.length;u++)o=l[u],i.o(t,o)&&t[o]&&t[o][0](),t[l[u]]=0;return i.O(c)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var l=i.O(void 0,[9156],(()=>i(8265)));return l=i.O(l)})()}));
|
package/Histogram/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faEmptySet"),require("@fortawesome/react-fontawesome"),require("@nivo/bar"),require("@nivo/tooltip"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faEmptySet","@fortawesome/react-fontawesome","@nivo/bar","@nivo/tooltip","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faEmptySet"),require("@fortawesome/react-fontawesome"),require("@nivo/bar"),require("@nivo/tooltip"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faEmptySet"],e["@fortawesome/react-fontawesome"],e["@nivo/bar"],e["@nivo/tooltip"],e.classnames,e.react,e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"])}(self,(function(e,t,r,n,o,a,i,l,s){return(()=>{"use strict";var u,p={6627:(e,t,r)=>{r.d(t,{MR:()=>a});var n=r(4329);function o(e){return o="function"==typeof Symbol&&"symbol"===(0,n.Z)(Symbol.iterator)?function(e){return(0,n.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,n.Z)(e)},o(e)}function a(e,t,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof n)return n;var r=n.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){n=e,delete this[t]}}),a=!1,r},set:function(e){n=e}}}},2766:(e,t,r)=>{function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function a(){}r.d(t,{ZP:()=>x});var i=.7,l=1/i,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),m=new RegExp("^rgba\\("+[p,p,p,u]+"\\)$"),v=new RegExp("^hsl\\("+[u,p,p]+"\\)$"),y=new RegExp("^hsla\\("+[u,p,p,u]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function x(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?C(t):3===r?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new O(t[1],t[2],t[3],1):(t=h.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?k(t[1],t[2],t[3],t[4]):(t=m.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?C(g[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function C(e){return new O(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new O(e,t,r,n)}function E(e){return e instanceof a||(e=x(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function O(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function N(){return"#"+S(this.r)+S(this.g)+S(this.b)}function L(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function S(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new F(e,t,r,n)}function j(e){if(e instanceof F)return new F(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=x(e)),!e)return new F;if(e instanceof F)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),l=NaN,s=i-o,u=(i+o)/2;return s?(l=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=u<.5?i+o:2-i-o,l*=60):s=u>0&&u<1?0:l,new F(l,s,u,e.opacity)}function F(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function P(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}n(a,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return j(this).formatHsl()},formatRgb:w,toString:w}),n(O,(function(e,t,r,n){return 1===arguments.length?E(e):new O(e,t,r,null==n?1:n)}),o(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatRgb:L,toString:L})),n(F,(function(e,t,r,n){return 1===arguments.length?j(e):new F(e,t,r,null==n?1:n)}),o(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new F(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new F(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new O(P(e>=240?e-240:e+120,o,n),P(e,o,n),P(e<120?e+240:e-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},1469:(e,t,r)=>{r.d(t,{EmptyState:()=>c});var n,o=r(8156),a=r.n(o),i=r(5692),l=r(3402),s=r(8310),u=r.n(s),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){return a().createElement("div",{className:u()("atoka-empty-state",this.props.className)},a().createElement("div",{className:"mb-2"},a().createElement(i.FontAwesomeIcon,{icon:l.faEmptySet})),this.props.children)},t.displayName="EmptyState",t}(a().PureComponent)},3642:(e,t,r)=>{var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=r(7269),p=r(2380),c=r(5145),d=r(8672),h=r(2722),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},m=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return o().createElement(s(),f({},e,{className:t}),e.children)};m.displayName="Form",m.Control=p.N,m.Label=u.l,m.Checkbox=c.z,m.Radio=d.w,m.File=s().File,m.Switch=s().Switch,m.Help=h.y,m.Group=s().Group},5145:(e,t,r)=>{r.d(t,{z:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},p=function(e){var t,r=i()("atoka-form-checkbox",null==e?void 0:e.className);return o().createElement(s().Check,u({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};p.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>d});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(1082),s=r.n(l),u=r(7605),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},c=o().forwardRef((function(e,t){var r=e.size,n=void 0===r?"md":r,a=p(e,["size"]),l=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return o().createElement(s(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:l,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===n?void 0:n,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));c.displayName="FormControlComponent";var d=c;d.FeedBack=u.t,d.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(1082),s=r.n(l),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},p=o().memo((function(e){var t=e.show,r=void 0===t||t,n=u(e,["show"]),a=i()(null==n?void 0:n.className,"atoka-form-control-feedback",{"d-block":r});return o().createElement(s().Feedback,{type:n.type,className:a},n.children)}));p.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>p});var n=r(8763),o=r.n(n),a=r(8156),i=r.n(a),l=r(8310),s=r.n(l),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},p=i().memo((function(e){var t=e.children,r=u(e,["children"]),n=s()("d-block",null==r?void 0:r.className);return i().createElement(o(),{bsPrefix:"atoka-form-help",className:n},t)}));p.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>u});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=o().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return o().createElement(s().Label,{className:t},e.children)}));u.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},p=function(e){var t,r=i()(null==e?void 0:e.className,"atoka-form-radio");return o().createElement(s().Check,u({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};p.displayName="FormRadio"},4950:()=>{},9825:(e,t,r)=>{r.r(t),r.d(t,{BarCustomLayerProps:()=>s.BarCustomLayerProps,CanvasLegendConfig:()=>n.CanvasLegendConfig,GetHistogramCanvasLegendConfig:()=>n.GetHistogramCanvasLegendConfig,Histogram:()=>L,RenderHistogramSVGLegend:()=>n.RenderHistogramSVGLegend});var n={};r.r(n),r.d(n,{b:()=>L});var o,a=r(6627),i=r(8156),l=r.n(i),s=r(2895),u=r(2766),p=r(8310),c=r.n(p),d=r(5521),h=r(4915),f=r(6216),m=r(1469),v=r(7540),y=r(9274),g=r(5909),b=r(2394),w=r(4950),x=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),C=function(){return C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)},k=function(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},O=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},N=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ellipseAndFormat=b.TK,t.matchAndFormatRangeLabel=b.eR,t.baseLayers=["grid","axes","bars"],t.state={data:[],selectedColumns:new Set,customColors:null},t}var r,n,o,p,L,S,M,j,F,P;return x(t,e),t.fromDataPointToBarDatum=function(e){return Object.keys(e).reduce((function(t,r){var n;return null==e[r]?t:C(C({},t),((n={})[r]=e[r],n))}),{})},Object.defineProperty(t.prototype,"areAllDataZero",{get:function(){return 0===this.props.data.reduce((function(e,t){return e+t.value}),0)},enumerable:!1,configurable:!0}),t.prototype.setupComponent=function(){var e,t,r,n,o;if(null==this.props.maxColsNumber&&this.props.colors.length>0&&this.props.colors.length!==this.props.data.length)throw Error("The colors.length must be of the same length as the data you give to the component");if(null!=this.props.maxColsNumber&&this.props.colors.length>0&&this.props.maxColsNumber!==this.props.colors.length-1)throw Error("With a maxColsNumber prop, colors.length must be of length + 1 of the maxColsNumbert");var a=this.prepareData(this.props.data),i=this.wrapTooltip(),l=null==this.props.maxColsNumber?a:(0,g.xG)(null!=a?a:[],null===(e=this.props)||void 0===e?void 0:e.otherId,null===(t=this.props)||void 0===t?void 0:t.otherLabel,null!==(n=null===(r=this.props)||void 0===r?void 0:r.maxColsNumber)&&void 0!==n?n:1/0,null===(o=this.props)||void 0===o?void 0:o.total),s=this.props.colors.reduce((function(e,t,r){var n;return C(C({},e),((n={})[l[r].id]=t,n))}),{});null!=this.props.selectedColumns?this.setState({customColors:s,renderTooltip:i,data:l,selectedColumns:new Set(this.props.selectedColumns)}):this.setState({data:l,customColors:s,renderTooltip:i})},t.prototype.wrapTooltip=function(){var e=this,t=void 0===this.props.renderTooltip?(0,y.getRenderStatisticsTooltip)({tooltipDataLabelKey:"value",tooltipDataTitleKey:"id",otherId:this.props.otherId,otherLabel:this.props.otherLabel,numberToStringFormatter:function(t){var r,n,o;return"".concat(null!==(o=null===(n=(r=e.props).tooltipValueFormat)||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:t)},withColor:!1}):this.props.renderTooltip;return null==t?null:function(e){var r,n;return null!==(n=null==t?void 0:t(C(C({},e),{data:C(C({},e.data),{value:null!==(r=e.data.initialValue)&&void 0!==r?r:0})})))&&void 0!==n?n:null}},t.prototype.prepareData=function(e){var r=this,n=-1/0,o=0;(e=null!=e?e:[]).forEach((function(e){n=Math.max(n,e.value),o=Math.min(o,e.value)})),0===n&&0===o&&(n=10);var a=this.computeZeroReplacingValue(Math.abs(n-o));return e.map((function(e){var n=r.idFormatWrapper(e.label),o=e.value;return o=o>=0?Math.max(o,a):Math.min(o,-a),C(C({},t.fromDataPointToBarDatum(e)),{id:n,value:o,label:n,initialLabel:e.label,initialValue:e.value})}))},t.prototype.idFormatWrapper=function(e){return null==this.props.labelFormat?e:this.matchAndFormatRangeLabel(this.props.labelFormat)(e)},t.prototype.componentDidUpdate=function(e){(0,h.vZ)(e,this.props)||this.setupComponent()},t.prototype.componentDidMount=function(){this.setupComponent()},t.prototype.handleClick=function(e){var t;if(this.isClickable()){var r=this.state.selectedColumns,n=new Set(r);if(r.has(e.indexValue)?n.delete(e.indexValue):n.add(e.indexValue),null!=this.props.onClick){var o=[];(null!==(t=this.state.data)&&void 0!==t?t:[]).forEach((function(e){var t;if(n.has(e.label)){var r=null!==(t=e.initialLabel)&&void 0!==t?t:e.label;o.push({value:e.value,label:r})}})),this.props.onClick(o)}this.setState({selectedColumns:n})}},t.prototype.handleMouseEnter=function(e,t){var r,n,o;if(this.props.isHoverable){var a=null===(r=this.state.customColors)||void 0===r?void 0:r[e.indexValue],i=v.ZM;null!=a&&(i=null!==(o=null===(n=(0,u.ZP)(a))||void 0===n?void 0:n.darker(1).formatHex())&&void 0!==o?o:a),t.target.setAttribute("fill",i)}},t.prototype.handleMouseLeave=function(e,t){this.props.isHoverable&&t.target.setAttribute("fill",this.getColors(e))},t.prototype.getColors=function(e){var t,r,n=v.qi,o=v.pN,a=this.isClickable(),i=v.KH,l=null===(t=this.state.customColors)||void 0===t?void 0:t[e.indexValue];return 0===this.state.selectedColumns.size||this.state.selectedColumns.has(e.indexValue)||this.state.selectedColumns.has(null===(r=e.data)||void 0===r?void 0:r.initialLabel)?null!=l?l:n:a?i:o},t.prototype.isClickable=function(){return null==this.props.selectedColumns&&this.props.isClickable},t.prototype.renderIsLoading=function(){return this.props.isLoading?(0,h.z8)(this.props.children,f.Spinner):null},t.prototype.renderIsEmpty=function(){return this.props.isEmpty?(0,h.z8)(this.props.children,m.EmptyState):null},t.prototype.getEmptyAxis=function(){return"vertical"===this.props.layout?{tickValues:[],tickSize:0}:{tickValues:[]}},t.prototype.getDefaultBottomAxis=function(){var e={tickRotation:-45,tickSize:0,tickPadding:this.props.isCanvas?20:void 0};return"vertical"===this.props.layout?C(C({},e),{format:this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat),this.props.maxLabelLength)}):C(C({},e),{format:this.ellipseAndFormat(this.props.valueFormat,this.props.maxLabelLength),tickValues:this.props.gridXValues})},t.prototype.getDefaultLeftAxis=function(){return"vertical"===this.props.layout?{format:this.ellipseAndFormat(this.props.valueFormat,this.props.maxLabelLength),tickSize:0,tickValues:this.props.gridYValues}:{format:this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat),this.props.maxLabelLength)}},t.prototype.getMargin=function(){var e,r,n,o,a,i,l,s,u=C({},this.props.margin),p=C({},t.defaultProps.margin),c=p.top,d=p.right,h=p.bottom,f=p.left;u.bottom=null!==(e=u.bottom)&&void 0!==e?e:0,u.left=null!==(r=u.left)&&void 0!==r?r:0;var m="value",v=1,y=this.props.enableAxisLeft,g=this.getDefaultLeftAxis().format;if("horizontal"===this.props.layout&&(m="label",v=1.2,y=this.props.enableAxisBottom,g=this.getDefaultBottomAxis().format),this.props.computeMargin&&y){var b=0,w=0;null===(n=this.props.data)||void 0===n||n.forEach((function(e){var t,r,n="string"==typeof e[m]?e[m]:String(e[m]),o="string"==typeof g?n.length:null!==(r=null===(t=null==g?void 0:g(n))||void 0===t?void 0:t.length)&&void 0!==r?r:n.length;b=Math.max(o,b),w=Math.max(Math.abs(e.value),w)}));var x=w<1e3?10:0;"horizontal"===this.props.layout?u.bottom+=x+4.3*Math.min(b,this.props.maxLabelLength)*v:u.left+=x+7.7*Math.min(b,this.props.maxLabelLength)*v}return{top:null!==(o=u.top)&&void 0!==o?o:c,right:null!==(a=u.right)&&void 0!==a?a:d,bottom:null!==(l=null!==(i=u.bottom)&&void 0!==i?i:h)&&void 0!==l?l:0,left:null!==(s=u.left)&&void 0!==s?s:f}},t.prototype.buildCanvasLegend=function(e,t){if(null!=this.props.getCanvasLegendConfig){var r=this.props.getCanvasLegendConfig(t),n=r.x,o=void 0===n?0:n,a=r.y,i=void 0===a?0:a,l=r.data,s=[0];(void 0===l?[]:l).forEach((function(t,r){var n=10*r;e.fillStyle=v.de;var a=o+n+s[r];e.fillText(t.label,a,i);var l=a+e.measureText(t.label).width+10;e.fillStyle=v.Sn,e.font="bold",e.fillText("".concat(t.value),l,i);var u=e.measureText("".concat(t.value));s.push(l+u.width)}))}},t.prototype.computeZeroReplacingValue=function(e,t){return void 0===t&&(t=.02),e*t},t.prototype.renderEmptyParts=function(e){var t,r,n=null!==(r=null===(t=null==e?void 0:e.bars)||void 0===t?void 0:t.map(this.renderEmptyPart(e)))&&void 0!==r?r:[];return 0===n.length?null:l().createElement("g",null,n)},t.prototype.renderEmptyPart=function(e){var t=this;return function(r,n){var o,a=(0,d.useTooltip)(),s=a.showTooltipFromEvent,u=a.hideTooltip,p=C(C(C({},r),r.data),{value:null!==(o=r.data.value)&&void 0!==o?o:0}),c=(0,i.useMemo)((function(){return function(){return(0,i.createElement)(e.tooltip,p)}}),[e.tooltip,r,r.data]),h=(0,i.useCallback)((function(e){return s(c(),e)}),[s,c]),f=(0,i.useCallback)((function(t){var n;null===(n=e.onMouseEnter)||void 0===n||n.call(e,r.data,t),s(c(),t)}),[r.data,e.onMouseEnter,s,c]),m=(0,i.useCallback)((function(t){var n;null===(n=e.onMouseLeave)||void 0===n||n.call(e,r.data,t),u()}),[r.data,u,e.onMouseLeave]);return l().createElement("g",{key:n,transform:"translate(".concat(r.x,", ").concat(r.y+r.height,")")},l().createElement("rect",{width:r.width,height:Math.max(t.computeZeroReplacingValue(r.height),2),rx:"0",ry:"0",fill:v.qi,strokeWidth:"0",stroke:v.qi,onMouseEnter:f,onMouseLeave:m,onMouseMove:h}))}},t.prototype.getLayers=function(){var e=this.areAllDataZero?[this.renderEmptyParts]:N([],O(this.baseLayers),!1);return null!=this.props.renderSVGLegend&&e.push(this.props.renderSVGLegend),e},t.prototype.getCanvasLayers=function(){var e=N([],O(this.baseLayers),!1);return null!=this.props.getCanvasLegendConfig&&e.push(this.buildCanvasLegend),e},t.prototype.renderContent=function(){var e,r;if(this.props.isEmpty||this.props.isLoading)return null;var n=this.props,o=n.enableAxisBottom,a=n.enableAxisLeft,i=n.layout,u=n.padding,p=n.enableGridY,c=n.enableGridX,d=n.gridYValues,h=n.gridXValues,f=o?this.getDefaultBottomAxis():this.getEmptyAxis(),m=a?this.getDefaultLeftAxis():this.getEmptyAxis(),y=null!==this.state.renderTooltip,g={padding:u,layout:i,gridXValues:h,gridYValues:d,margin:this.getMargin(),theme:C({textColor:v.de},this.props.theme),isInteractive:this.isClickable()||y,indexBy:"id",tooltip:null!==(e=this.state.renderTooltip)&&void 0!==e?e:void 0,colors:this.getColors,enableGridY:"vertical"===this.props.layout&&p,enableGridX:"horizontal"===this.props.layout&&c,enableLabel:!1},b=this.state.data;if(this.props.isCanvas){var w=null!==(r=this.props.size)&&void 0!==r?r:t.defaultProps.size;return g.theme=C(C({},g.theme),{background:"#fff"}),l().createElement(s.ResponsiveBarCanvas,C({},g,w,{data:b,layers:this.getCanvasLayers(),axisLeft:m,axisBottom:f}))}return l().createElement(s.ResponsiveBar,C({},g,{layers:this.getLayers(),axisLeft:m,axisBottom:f,data:b,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}))},t.prototype.render=function(){var e=c()("histogram-container","d-flex","justify-content-center","align-items-center",{clickable:this.isClickable()});return l().createElement("div",{id:this.props.id,className:e,ref:this.props.chartRef},this.renderIsLoading(),this.renderIsEmpty(),this.renderContent())},t.displayName="Histogram",t.legendHeight=20,t.defaultProps={computeMargin:!0,enableGridY:!0,enableGridX:!0,enableAxisLeft:!0,enableAxisBottom:!0,size:{height:400},isEmpty:!1,isLoading:!1,isHoverable:!1,isClickable:!0,layout:"vertical",margin:{top:30,right:0,bottom:30,left:0},padding:.05,maxLabelLength:12,id:"",colors:[],otherId:"other",gridXValues:6,gridYValues:6},k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==w.Z&&w.Z)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(n=void 0!==s.ComputedDatum&&s.ComputedDatum)?n:Object,"function"==typeof(o=void 0!==l()&&l().MouseEvent)?o:Object]),E("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(p=void 0!==s.ComputedDatum&&s.ComputedDatum)?p:Object,"function"==typeof(L=void 0!==l()&&l().MouseEvent)?L:Object]),E("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(S=void 0!==s.ComputedDatum&&s.ComputedDatum)?S:Object]),E("design:returntype",String)],t.prototype,"getColors",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(M="undefined"!=typeof CanvasRenderingContext2D&&CanvasRenderingContext2D)?M:Object,"function"==typeof(j=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?j:Object]),E("design:returntype",void 0)],t.prototype,"buildCanvasLegend",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(F=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?F:Object]),E("design:returntype",Object)],t.prototype,"renderEmptyParts",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(P=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?P:Object]),E("design:returntype",Function)],t.prototype,"renderEmptyPart",null),t}(l().Component)},6216:(e,t,r)=>{r.d(t,{Spinner:()=>p});var n,o,a=r(8310),i=r.n(a),l=r(8156),s=r.n(l),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){e[e.mini=0]="mini",e[e.small=1]="small",e[e.big=2]="big",e[e.modal=3]="modal"}(o||(o={}));var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderOnlyDotsSpinner=function(e){var t="atoka-spinner spinner-"+e+" "+this.props.className;return s().createElement("div",{className:t},s().createElement("div",{className:"spinner-dot1"},s().createElement("div",{className:"spinner-leaf"})),s().createElement("div",{className:"spinner-dot2"},s().createElement("div",{className:"spinner-leaf"})),s().createElement("div",{className:"spinner-dot3"},s().createElement("div",{className:"spinner-leaf"})))},t.prototype.renderSmall=function(){return this.renderOnlyDotsSpinner("small")},t.prototype.renderMini=function(){return this.renderOnlyDotsSpinner("mini")},t.prototype.renderLeaf=function(){return s().createElement("svg",{viewBox:"0 0 204.01 190.64",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s().createElement("g",{id:"leaf"},s().createElement("path",{d:"M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z"})))},t.prototype.renderLetter=function(){return s().createElement("svg",{viewBox:"0 0 204.01 190.64",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s().createElement("g",{id:"logo-vector"},s().createElement("path",{d:"M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z"})))},t.prototype.renderBig=function(){var e=i()(this.props.className,{"atoka-spinner":!0,"spinner-big":this.props.size===o.big,"spinner-medium":this.props.size===o.modal}),t=i()({"container-fluid spinner-modal":this.props.size===o.modal});return s().createElement("div",{className:t},s().createElement("div",{className:e},s().createElement("div",{className:"spinner-dot1"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("div",{className:"spinner-dot2"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("div",{className:"spinner-dot3"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("span",{className:"spinner-letter"},this.renderLetter())))},t.prototype.render=function(){switch(this.props.size){case o.mini:return this.renderMini();case o.small:return this.renderSmall();case o.big:case o.modal:return this.renderBig();default:return null}},t.displayName="Spinner",t.defaultProps={size:o.small,className:""},t}(s().Component)},9274:(e,t,r)=>{r.d(t,{StatisticsTooltip:()=>s,getRenderStatisticsTooltip:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(5909),s=o().memo((function(e){function t(){var t=e.tooltipDataLabelKey,r=e.numberToStringFormatter,o=n(t,e.data);if(null!=o)return null==r?String(o):"string"==typeof o?o:r(o)}function r(){var t=n(e.tooltipDataValueKey,e.data);if(null!=t)return"number"==typeof t?(0,l.Ow)(t):t}function n(e,t){return null==e||null==t?void 0:t[e]}var a,s,u,p,c,d,h=i()("statistics-tooltip",null==e?void 0:e.className),f=null==e.color?null:o().createElement("span",{className:"tooltip-rectangle",style:{background:e.color}});return o().createElement("div",{className:h},o().createElement("div",{className:"d-flex align-items-center"},f,o().createElement("span",{className:"text-left"},(s=e.tooltipDataTitleKey,u=e.data,p=e.otherId,c=e.otherLabel,(d=n(s,u))===p?null!=c?c:p:d?String(d):void 0))),0===(a=[{value:t(),key:e.tooltipDataLabelKey,className:"label"},{value:r(),key:e.tooltipDataValueKey,className:"value"}].filter((function(e){return null!=e.value})).map((function(e){return o().createElement("span",{key:e.key,className:e.className},e.value)}))).length?null:o().createElement("div",{className:"d-flex justify-content-between"},a),e.children)}));s.displayName="StatisticsTooltip";var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function p(e){var t=e.tooltipDataLabelKey,r=e.tooltipDataValueKey,n=e.tooltipDataTitleKey,a=e.otherId,i=e.otherLabel,l=e.numberToStringFormatter,p=e.withColor,c=e.className,d=void 0===c?"tooltip-background":c;return function(e){var c,h,f,m,v=u(u({},e.data),{value:null===(c=e.data)||void 0===c?void 0:c.value,label:null===(h=e.data)||void 0===h?void 0:h.label,id:null===(f=e.data)||void 0===f?void 0:f.id,percentage:null===(m=e.data)||void 0===m?void 0:m.percentage});return o().createElement(s,{otherId:a,otherLabel:i,numberToStringFormatter:l,data:v,tooltipDataLabelKey:t,tooltipDataTitleKey:n,tooltipDataValueKey:r,className:null!=d?d:"",color:p?e.color:void 0})}}},5909:(e,t,r)=>{r.d(t,{xG:()=>a,Ow:()=>l});var n=r(4915),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function a(e,t,r,o,a,l){var s,u;void 0===o&&(o=0),void 0===l&&(l="value");var p=0,c=null!=t?t:"other",d=null!=o?o:0,h=[],f=null==e?void 0:e.sort((0,n.kV)(l));null==f||f.forEach((function(e,r){var o;if(r<d&&e.id!==t)h.push(function(e){if(null==e.children)return e;var t=(0,n.d9)(e);return i(t),t}(e));else{var a=null!==(o=Number(null==e?void 0:e.value))&&void 0!==o?o:0;p+=a}}));var m={};return m.id=c,m.value=parseFloat(p.toFixed(2)),m.initialValue=parseFloat(p.toFixed(2)),m.label=null!==(s=null!=r?r:c)&&void 0!==s?s:"",null!=(null===(u=null==e?void 0:e[0])||void 0===u?void 0:u.percentage)&&null!=a&&(m.percentage=p/a*100),o===1/0&&0===p||h.push(m),h}function i(e){var t,r,n,a=null!==(n=null==e?void 0:e.children)&&void 0!==n?n:[];e.initialValue=e.value,a.length>0&&delete e.value;try{for(var l=o(a),s=l.next();!s.done;s=l.next()){i(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}}function l(e){var t;return"".concat(parseInt(null===(t=null==e?void 0:e.toFixed)||void 0===t?void 0:t.call(e,0),10),"%")}},7540:(e,t,r)=>{r.d(t,{KH:()=>n,qi:()=>o,pN:()=>i,ZM:()=>a,de:()=>l,Sn:()=>s});var n="#CBD8E0",o="#578EA8",a="#11455C",i="#EBEBEB",l="#717171",s="#222222"},2394:(e,t,r)=>{r.d(t,{eR:()=>o,TK:()=>a});function n(e,t){return null==e?"":e.length>t?"".concat(e.substr(0,t-1),"…"):e}function o(e){return function(t){var r=/^([\d*]+)-([\d*]+)$/.exec(t);return null==r?t:function(e,t){var r,n,o="*"===e.to?"*":t(parseInt(null!==(r=e.to)&&void 0!==r?r:"0",10)),a=t(parseInt(null!==(n=e.from)&&void 0!==n?n:"0",10));if(a===o)return"".concat(a);return"".concat(a," - ").concat(o)}({from:r[1],to:r[2]},null!=e?e:function(e){return e})}}function a(e,t){return function(r){var o=r.toString();return n(null==e?o:"".concat(e(o)),t)}}},4915:(e,t,r)=>{r.d(t,{z8:()=>a,kV:()=>i,d9:()=>l,vZ:()=>u});r(5692);var n=r(8156),o=r.n(n);r(3642);function a(e,t){var r,n;return null!==(n=null===(r=function(e,t){var r=[];return o().Children.forEach(e,(function(e){(null==e?void 0:e.type)===t&&r.push(e)})),r}(e,t))||void 0===r?void 0:r[0])&&void 0!==n?n:null}function i(e){return function(t,r){var n=0,o=0;return null!=(null==t?void 0:t[e])&&(n=null==t?void 0:t[e]),null!=(null==r?void 0:r[e])&&(o=null==r?void 0:r[e]),n>o?-1:1}}function l(e){return JSON.parse(JSON.stringify(e))}function s(e){return"object"==typeof e&&null!=e}function u(e,t){if(e===t)return!0;if(s(e)&&s(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!u(e[r],t[r]))return!1;return!0}return!1}},3402:t=>{t.exports=e},5692:e=>{e.exports=t},2895:e=>{e.exports=r},5521:e=>{e.exports=n},8310:e=>{e.exports=o},8156:e=>{e.exports=a},8721:e=>{e.exports=i},1082:e=>{e.exports=l},8763:e=>{e.exports=s},4329:(e,t,r)=>{function n(e){return n="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},n(e)}r.d(t,{Z:()=>n})}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return p[e](r,r.exports,d),r.exports}d.m=p,u=[],d.O=(e,t,r,n)=>{if(!t){var o=1/0;for(s=0;s<u.length;s++){for(var[t,r,n]=u[s],a=!0,i=0;i<t.length;i++)(!1&n||o>=n)&&Object.keys(d.O).every((e=>d.O[e](t[i])))?t.splice(i--,1):(a=!1,n<o&&(o=n));if(a){u.splice(s--,1);var l=r();void 0!==l&&(e=l)}}return e}n=n||0;for(var s=u.length;s>0&&u[s-1][2]>n;s--)u[s]=u[s-1];u[s]=[t,r,n]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3397:0,8016:0,410:0,9811:0,4149:0};d.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,i,l]=r,s=0;if(a.some((t=>0!==e[t]))){for(n in i)d.o(i,n)&&(d.m[n]=i[n]);if(l)var u=l(d)}for(t&&t(r);s<a.length;s++)o=a[s],d.o(e,o)&&e[o]&&e[o][0](),e[a[s]]=0;return d.O(u)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var h=d.O(void 0,[4149],(()=>d(9825)));return h=d.O(h)})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faEmptySet"),require("@fortawesome/react-fontawesome"),require("@nivo/bar"),require("@nivo/tooltip"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faEmptySet","@fortawesome/react-fontawesome","@nivo/bar","@nivo/tooltip","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faEmptySet"),require("@fortawesome/react-fontawesome"),require("@nivo/bar"),require("@nivo/tooltip"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faEmptySet"],e["@fortawesome/react-fontawesome"],e["@nivo/bar"],e["@nivo/tooltip"],e.classnames,e.react,e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"])}(self,(function(e,t,r,n,o,a,i,l,s){return(()=>{"use strict";var u,p={6627:(e,t,r)=>{r.d(t,{MR:()=>a});var n=r(4329);function o(e){return o="function"==typeof Symbol&&"symbol"===(0,n.Z)(Symbol.iterator)?function(e){return(0,n.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,n.Z)(e)},o(e)}function a(e,t,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof n)return n;var r=n.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){n=e,delete this[t]}}),a=!1,r},set:function(e){n=e}}}},2766:(e,t,r)=>{function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function a(){}r.d(t,{ZP:()=>x});var i=.7,l=1/i,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),m=new RegExp("^rgba\\("+[p,p,p,u]+"\\)$"),v=new RegExp("^hsl\\("+[u,p,p]+"\\)$"),y=new RegExp("^hsla\\("+[u,p,p,u]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function x(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?C(t):3===r?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new O(t[1],t[2],t[3],1):(t=h.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?k(t[1],t[2],t[3],t[4]):(t=m.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?C(g[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function C(e){return new O(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new O(e,t,r,n)}function E(e){return e instanceof a||(e=x(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function O(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function N(){return"#"+S(this.r)+S(this.g)+S(this.b)}function L(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function S(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new F(e,t,r,n)}function j(e){if(e instanceof F)return new F(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=x(e)),!e)return new F;if(e instanceof F)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),l=NaN,s=i-o,u=(i+o)/2;return s?(l=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=u<.5?i+o:2-i-o,l*=60):s=u>0&&u<1?0:l,new F(l,s,u,e.opacity)}function F(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function P(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}n(a,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return j(this).formatHsl()},formatRgb:w,toString:w}),n(O,(function(e,t,r,n){return 1===arguments.length?E(e):new O(e,t,r,null==n?1:n)}),o(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatRgb:L,toString:L})),n(F,(function(e,t,r,n){return 1===arguments.length?j(e):new F(e,t,r,null==n?1:n)}),o(a,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new F(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new F(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new O(P(e>=240?e-240:e+120,o,n),P(e,o,n),P(e<120?e+240:e-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},1469:(e,t,r)=>{r.d(t,{EmptyState:()=>c});var n,o=r(8156),a=r.n(o),i=r(5692),l=r(3402),s=r(8310),u=r.n(s),p=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){return a().createElement("div",{className:u()("atoka-empty-state",this.props.className)},a().createElement("div",{className:"mb-2"},a().createElement(i.FontAwesomeIcon,{icon:l.faEmptySet})),this.props.children)},t.displayName="EmptyState",t}(a().PureComponent)},3642:(e,t,r)=>{var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=r(7269),p=r(2380),c=r(5145),d=r(8672),h=r(2722),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},m=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return o().createElement(s(),f({},e,{className:t}),e.children)};m.displayName="Form",m.Control=p.N,m.Label=u.l,m.Checkbox=c.z,m.Radio=d.w,m.File=s().File,m.Switch=s().Switch,m.Help=h.y,m.Group=s().Group},5145:(e,t,r)=>{r.d(t,{z:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},p=function(e){var t,r=i()("atoka-form-checkbox",null==e?void 0:e.className);return o().createElement(s().Check,u({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};p.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>d});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(1082),s=r.n(l),u=r(7605),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},c=o().forwardRef((function(e,t){var r=e.size,n=void 0===r?"md":r,a=p(e,["size"]),l=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return o().createElement(s(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:l,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===n?void 0:n,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));c.displayName="FormControlComponent";var d=c;d.FeedBack=u.t,d.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(1082),s=r.n(l),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},p=o().memo((function(e){var t=e.show,r=void 0===t||t,n=u(e,["show"]),a=i()(null==n?void 0:n.className,"atoka-form-control-feedback",{"d-block":r});return o().createElement(s().Feedback,{type:n.type,className:a},n.children)}));p.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>p});var n=r(8763),o=r.n(n),a=r(8156),i=r.n(a),l=r(8310),s=r.n(l),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},p=i().memo((function(e){var t=e.children,r=u(e,["children"]),n=s()("d-block",null==r?void 0:r.className);return i().createElement(o(),{bsPrefix:"atoka-form-help",className:n},t)}));p.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>u});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=o().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return o().createElement(s().Label,{className:t},e.children)}));u.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(8721),s=r.n(l),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},p=function(e){var t,r=i()(null==e?void 0:e.className,"atoka-form-radio");return o().createElement(s().Check,u({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};p.displayName="FormRadio"},4950:()=>{},9825:(e,t,r)=>{r.r(t),r.d(t,{BarCustomLayerProps:()=>s.BarCustomLayerProps,CanvasLegendConfig:()=>n.CanvasLegendConfig,GetHistogramCanvasLegendConfig:()=>n.GetHistogramCanvasLegendConfig,Histogram:()=>L,RenderHistogramSVGLegend:()=>n.RenderHistogramSVGLegend});var n={};r.r(n),r.d(n,{b:()=>L});var o,a=r(6627),i=r(8156),l=r.n(i),s=r(2895),u=r(2766),p=r(8310),c=r.n(p),d=r(5521),h=r(4915),f=r(6216),m=r(1469),v=r(7540),y=r(9274),g=r(5909),b=r(2394),w=r(4950),x=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),C=function(){return C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)},k=function(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},O=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},N=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ellipseAndFormat=b.TK,t.matchAndFormatRangeLabel=b.eR,t.baseLayers=["grid","axes","bars"],t.state={data:[],selectedColumns:new Set,customColors:null},t}var r,n,o,p,L,S,M,j,F,P;return x(t,e),t.fromDataPointToBarDatum=function(e){return Object.keys(e).reduce((function(t,r){var n;return null==e[r]?t:C(C({},t),((n={})[r]=e[r],n))}),{})},Object.defineProperty(t.prototype,"areAllDataZero",{get:function(){return 0===this.props.data.reduce((function(e,t){return e+t.value}),0)},enumerable:!1,configurable:!0}),t.prototype.setupComponent=function(){var e,t,r,n,o;if(null==this.props.maxColsNumber&&this.props.colors.length>0&&this.props.colors.length!==this.props.data.length)throw Error("The colors.length must be of the same length as the data you give to the component");if(null!=this.props.maxColsNumber&&this.props.colors.length>0&&this.props.maxColsNumber!==this.props.colors.length-1)throw Error("With a maxColsNumber prop, colors.length must be of length + 1 of the maxColsNumbert");var a=this.prepareData(this.props.data),i=this.wrapTooltip(),l=null==this.props.maxColsNumber?a:(0,g.xG)(null!=a?a:[],null===(e=this.props)||void 0===e?void 0:e.otherId,null===(t=this.props)||void 0===t?void 0:t.otherLabel,null!==(n=null===(r=this.props)||void 0===r?void 0:r.maxColsNumber)&&void 0!==n?n:1/0,null===(o=this.props)||void 0===o?void 0:o.total),s=this.props.colors.reduce((function(e,t,r){var n;return C(C({},e),((n={})[l[r].id]=t,n))}),{});null!=this.props.selectedColumns?this.setState({customColors:s,renderTooltip:i,data:l,selectedColumns:new Set(this.props.selectedColumns)}):this.setState({data:l,customColors:s,renderTooltip:i})},t.prototype.wrapTooltip=function(){var e=this,t=void 0===this.props.renderTooltip?(0,y.getRenderStatisticsTooltip)({tooltipDataLabelKey:"value",tooltipDataTitleKey:"id",otherId:this.props.otherId,otherLabel:this.props.otherLabel,numberToStringFormatter:function(t){var r,n,o;return"".concat(null!==(o=null===(n=(r=e.props).tooltipValueFormat)||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:t)},withColor:!1}):this.props.renderTooltip;return null==t?null:function(e){var r,n;return null!==(n=null==t?void 0:t(C(C({},e),{data:C(C({},e.data),{value:null!==(r=e.data.initialValue)&&void 0!==r?r:0})})))&&void 0!==n?n:null}},t.prototype.prepareData=function(e){var r=this,n=-1/0,o=0;(e=null!=e?e:[]).forEach((function(e){n=Math.max(n,e.value),o=Math.min(o,e.value)})),0===n&&0===o&&(n=10);var a=this.computeZeroReplacingValue(Math.abs(n-o));return e.map((function(e){var n=r.idFormatWrapper(e.label),o=e.value;return o=o>=0?Math.max(o,a):Math.min(o,-a),C(C({},t.fromDataPointToBarDatum(e)),{id:n,value:o,label:n,initialLabel:e.label,initialValue:e.value})}))},t.prototype.idFormatWrapper=function(e){return null==this.props.labelFormat?e:this.matchAndFormatRangeLabel(this.props.labelFormat)(e)},t.prototype.componentDidUpdate=function(e){(0,h.vZ)(e,this.props)||this.setupComponent()},t.prototype.componentDidMount=function(){this.setupComponent()},t.prototype.handleClick=function(e){var t;if(this.isClickable()){var r=this.state.selectedColumns,n=new Set(r);if(r.has(e.indexValue)?n.delete(e.indexValue):n.add(e.indexValue),null!=this.props.onClick){var o=[];(null!==(t=this.state.data)&&void 0!==t?t:[]).forEach((function(e){var t;if(n.has(e.label)){var r=null!==(t=e.initialLabel)&&void 0!==t?t:e.label;o.push({value:e.value,label:r})}})),this.props.onClick(o)}this.setState({selectedColumns:n})}},t.prototype.handleMouseEnter=function(e,t){var r,n,o;if(this.props.isHoverable){var a=null===(r=this.state.customColors)||void 0===r?void 0:r[e.indexValue],i=v.ZM;null!=a&&(i=null!==(o=null===(n=(0,u.ZP)(a))||void 0===n?void 0:n.darker(1).formatHex())&&void 0!==o?o:a),t.target.setAttribute("fill",i)}},t.prototype.handleMouseLeave=function(e,t){this.props.isHoverable&&t.target.setAttribute("fill",this.getColors(e))},t.prototype.getColors=function(e){var t,r,n=v.qi,o=v.pN,a=this.isClickable(),i=v.KH,l=null===(t=this.state.customColors)||void 0===t?void 0:t[e.indexValue];return 0===this.state.selectedColumns.size||this.state.selectedColumns.has(e.indexValue)||this.state.selectedColumns.has(null===(r=e.data)||void 0===r?void 0:r.initialLabel)?null!=l?l:n:a?i:o},t.prototype.isClickable=function(){return null==this.props.selectedColumns&&this.props.isClickable},t.prototype.renderIsLoading=function(){return this.props.isLoading?(0,h.z8)(this.props.children,f.Spinner):null},t.prototype.renderIsEmpty=function(){return this.props.isEmpty?(0,h.z8)(this.props.children,m.EmptyState):null},t.prototype.getEmptyAxis=function(){return"vertical"===this.props.layout?{tickValues:[],tickSize:0}:{tickValues:[]}},t.prototype.getDefaultBottomAxis=function(){var e={tickRotation:-45,tickSize:0,tickPadding:this.props.isCanvas?20:void 0};return"vertical"===this.props.layout?C(C({},e),{format:this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat),this.props.maxLabelLength)}):C(C({},e),{format:this.ellipseAndFormat(this.props.valueFormat,this.props.maxLabelLength),tickValues:this.props.gridXValues})},t.prototype.getDefaultLeftAxis=function(){return"vertical"===this.props.layout?{format:this.ellipseAndFormat(this.props.valueFormat,this.props.maxLabelLength),tickSize:0,tickValues:this.props.gridYValues}:{format:this.ellipseAndFormat(this.matchAndFormatRangeLabel(this.props.labelFormat),this.props.maxLabelLength)}},t.prototype.getMargin=function(){var e,r,n,o,a,i,l,s,u=C({},this.props.margin),p=C({},t.defaultProps.margin),c=p.top,d=p.right,h=p.bottom,f=p.left;u.bottom=null!==(e=u.bottom)&&void 0!==e?e:0,u.left=null!==(r=u.left)&&void 0!==r?r:0;var m="value",v=1,y=this.props.enableAxisLeft,g=this.getDefaultLeftAxis().format;if("horizontal"===this.props.layout&&(m="label",v=1.2,y=this.props.enableAxisBottom,g=this.getDefaultBottomAxis().format),this.props.computeMargin&&y){var b=0,w=0;null===(n=this.props.data)||void 0===n||n.forEach((function(e){var t,r,n="string"==typeof e[m]?e[m]:String(e[m]),o="string"==typeof g?n.length:null!==(r=null===(t=null==g?void 0:g(n))||void 0===t?void 0:t.length)&&void 0!==r?r:n.length;b=Math.max(o,b),w=Math.max(Math.abs(e.value),w)}));var x=w<1e3?10:0;"horizontal"===this.props.layout?u.bottom+=x+4.3*Math.min(b,this.props.maxLabelLength)*v:u.left+=x+7.7*Math.min(b,this.props.maxLabelLength)*v}return{top:null!==(o=u.top)&&void 0!==o?o:c,right:null!==(a=u.right)&&void 0!==a?a:d,bottom:null!==(l=null!==(i=u.bottom)&&void 0!==i?i:h)&&void 0!==l?l:0,left:null!==(s=u.left)&&void 0!==s?s:f}},t.prototype.buildCanvasLegend=function(e,t){if(null!=this.props.getCanvasLegendConfig){var r=this.props.getCanvasLegendConfig(t),n=r.x,o=void 0===n?0:n,a=r.y,i=void 0===a?0:a,l=r.data,s=[0];(void 0===l?[]:l).forEach((function(t,r){var n=10*r;e.fillStyle=v.de;var a=o+n+s[r];e.fillText(t.label,a,i);var l=a+e.measureText(t.label).width+10;e.fillStyle=v.Sn,e.font="bold",e.fillText("".concat(t.value),l,i);var u=e.measureText("".concat(t.value));s.push(l+u.width)}))}},t.prototype.computeZeroReplacingValue=function(e,t){return void 0===t&&(t=.02),e*t},t.prototype.renderEmptyParts=function(e){var t,r,n=null!==(r=null===(t=null==e?void 0:e.bars)||void 0===t?void 0:t.map(this.renderEmptyPart(e)))&&void 0!==r?r:[];return 0===n.length?null:l().createElement("g",null,n)},t.prototype.renderEmptyPart=function(e){var t=this;return function(r,n){var o,a=(0,d.useTooltip)(),s=a.showTooltipFromEvent,u=a.hideTooltip,p=C(C(C({},r),r.data),{value:null!==(o=r.data.value)&&void 0!==o?o:0}),c=(0,i.useMemo)((function(){return function(){return(0,i.createElement)(e.tooltip,p)}}),[e.tooltip,r,r.data]),h=(0,i.useCallback)((function(e){return s(c(),e)}),[s,c]),f=(0,i.useCallback)((function(t){var n;null===(n=e.onMouseEnter)||void 0===n||n.call(e,r.data,t),s(c(),t)}),[r.data,e.onMouseEnter,s,c]),m=(0,i.useCallback)((function(t){var n;null===(n=e.onMouseLeave)||void 0===n||n.call(e,r.data,t),u()}),[r.data,u,e.onMouseLeave]);return l().createElement("g",{key:n,transform:"translate(".concat(r.x,", ").concat(r.y+r.height,")")},l().createElement("rect",{width:r.width,height:Math.max(t.computeZeroReplacingValue(r.height),2),rx:"0",ry:"0",fill:v.qi,strokeWidth:"0",stroke:v.qi,onMouseEnter:f,onMouseLeave:m,onMouseMove:h}))}},t.prototype.getLayers=function(){var e=this.areAllDataZero?[this.renderEmptyParts]:N([],O(this.baseLayers),!1);return null!=this.props.renderSVGLegend&&e.push(this.props.renderSVGLegend),e},t.prototype.getCanvasLayers=function(){var e=N([],O(this.baseLayers),!1);return null!=this.props.getCanvasLegendConfig&&e.push(this.buildCanvasLegend),e},t.prototype.renderContent=function(){var e,r;if(this.props.isEmpty||this.props.isLoading)return null;var n=this.props,o=n.enableAxisBottom,a=n.enableAxisLeft,i=n.layout,u=n.padding,p=n.enableGridY,c=n.enableGridX,d=n.gridYValues,h=n.gridXValues,f=o?this.getDefaultBottomAxis():this.getEmptyAxis(),m=a?this.getDefaultLeftAxis():this.getEmptyAxis(),y=null!==this.state.renderTooltip,g={padding:u,layout:i,gridXValues:h,gridYValues:d,margin:this.getMargin(),theme:C({textColor:v.de},this.props.theme),isInteractive:this.isClickable()||y,indexBy:"id",tooltip:null!==(e=this.state.renderTooltip)&&void 0!==e?e:void 0,colors:this.getColors,enableGridY:"vertical"===this.props.layout&&p,enableGridX:"horizontal"===this.props.layout&&c,enableLabel:!1},b=this.state.data;if(this.props.isCanvas){var w=null!==(r=this.props.size)&&void 0!==r?r:t.defaultProps.size;return g.theme=C(C({},g.theme),{background:"#fff"}),l().createElement(s.ResponsiveBarCanvas,C({},g,w,{data:b,layers:this.getCanvasLayers(),axisLeft:m,axisBottom:f}))}return l().createElement(s.ResponsiveBar,C({},g,{layers:this.getLayers(),axisLeft:m,axisBottom:f,data:b,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}))},t.prototype.render=function(){var e=c()("histogram-container","d-flex","justify-content-center","align-items-center",{clickable:this.isClickable()});return l().createElement("div",{id:this.props.id,className:e,ref:this.props.chartRef},this.renderIsLoading(),this.renderIsEmpty(),this.renderContent())},t.displayName="Histogram",t.legendHeight=20,t.defaultProps={computeMargin:!0,enableGridY:!0,enableGridX:!0,enableAxisLeft:!0,enableAxisBottom:!0,size:{height:400},isEmpty:!1,isLoading:!1,isHoverable:!1,isClickable:!0,layout:"vertical",margin:{top:30,right:0,bottom:30,left:0},padding:.05,maxLabelLength:12,id:"",colors:[],otherId:"other",gridXValues:6,gridYValues:6},k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==w.Z&&w.Z)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleClick",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(n=void 0!==s.ComputedDatum&&s.ComputedDatum)?n:Object,"function"==typeof(o=void 0!==l()&&l().MouseEvent)?o:Object]),E("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(p=void 0!==s.ComputedDatum&&s.ComputedDatum)?p:Object,"function"==typeof(L=void 0!==l()&&l().MouseEvent)?L:Object]),E("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(S=void 0!==s.ComputedDatum&&s.ComputedDatum)?S:Object]),E("design:returntype",String)],t.prototype,"getColors",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(M="undefined"!=typeof CanvasRenderingContext2D&&CanvasRenderingContext2D)?M:Object,"function"==typeof(j=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?j:Object]),E("design:returntype",void 0)],t.prototype,"buildCanvasLegend",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(F=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?F:Object]),E("design:returntype",Object)],t.prototype,"renderEmptyParts",null),k([a.MR,E("design:type",Function),E("design:paramtypes",["function"==typeof(P=void 0!==s.BarCustomLayerProps&&s.BarCustomLayerProps)?P:Object]),E("design:returntype",Function)],t.prototype,"renderEmptyPart",null),t}(l().Component)},6216:(e,t,r)=>{r.d(t,{Spinner:()=>p});var n,o,a=r(8310),i=r.n(a),l=r(8156),s=r.n(l),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){e[e.mini=0]="mini",e[e.small=1]="small",e[e.big=2]="big",e[e.modal=3]="modal"}(o||(o={}));var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderOnlyDotsSpinner=function(e){var t="atoka-spinner spinner-"+e+" "+this.props.className;return s().createElement("div",{className:t},s().createElement("div",{className:"spinner-dot1"},s().createElement("div",{className:"spinner-leaf"})),s().createElement("div",{className:"spinner-dot2"},s().createElement("div",{className:"spinner-leaf"})),s().createElement("div",{className:"spinner-dot3"},s().createElement("div",{className:"spinner-leaf"})))},t.prototype.renderSmall=function(){return this.renderOnlyDotsSpinner("small")},t.prototype.renderMini=function(){return this.renderOnlyDotsSpinner("mini")},t.prototype.renderLeaf=function(){return s().createElement("svg",{viewBox:"0 0 204.01 190.64",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s().createElement("g",{id:"leaf"},s().createElement("path",{d:"M80.88,7.62a26,26,0,0,0-36.79,36.8,25.85,25.85,0,0,0,13.4,7.14V83.39c1.19,0,2.4-.08,3.62-.08,2.16,0,4.28.08,6.38.23v-32A26,26,0,0,0,80.88,7.62ZM73.81,37.35a16,16,0,1,1,0-22.66,15.92,15.92,0,0,1,0,22.66Z"})))},t.prototype.renderLetter=function(){return s().createElement("svg",{viewBox:"0 0 204.01 190.64",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s().createElement("g",{id:"logo-vector"},s().createElement("path",{d:"M110.77,180.67V140.16a50.47,50.47,0,1,0-22,41.71L93.12,187a10,10,0,0,0,17.65-6.34Zm-81-40.51a30.5,30.5,0,1,1,30.5,30.5,30.49,30.49,0,0,1-30.5-30.5Z"})))},t.prototype.renderBig=function(){var e=i()(this.props.className,{"atoka-spinner":!0,"spinner-big":this.props.size===o.big,"spinner-medium":this.props.size===o.modal}),t=i()({"container-fluid spinner-modal":this.props.size===o.modal});return s().createElement("div",{className:t},s().createElement("div",{className:e},s().createElement("div",{className:"spinner-dot1"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("div",{className:"spinner-dot2"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("div",{className:"spinner-dot3"},s().createElement("div",{className:"spinner-leaf"},this.renderLeaf())),s().createElement("span",{className:"spinner-letter"},this.renderLetter())))},t.prototype.render=function(){switch(this.props.size){case o.mini:return this.renderMini();case o.small:return this.renderSmall();case o.big:case o.modal:return this.renderBig();default:return null}},t.displayName="Spinner",t.defaultProps={size:o.small,className:""},t}(s().Component)},9274:(e,t,r)=>{r.d(t,{StatisticsTooltip:()=>s,getRenderStatisticsTooltip:()=>p});var n=r(8156),o=r.n(n),a=r(8310),i=r.n(a),l=r(5909),s=o().memo((function(e){function t(){var t=e.tooltipDataLabelKey,r=e.numberToStringFormatter,o=n(t,e.data);if(null!=o)return null==r?String(o):"string"==typeof o?o:r(o)}function r(){var t=n(e.tooltipDataValueKey,e.data);if(null!=t)return"number"==typeof t?(0,l.Ow)(t):t}function n(e,t){return null==e||null==t?void 0:t[e]}var a,s,u,p,c,d,h=i()("statistics-tooltip",null==e?void 0:e.className),f=null==e.color?null:o().createElement("span",{className:"tooltip-rectangle",style:{background:e.color}});return o().createElement("div",{className:h},o().createElement("div",{className:"d-flex align-items-center"},f,o().createElement("span",{className:"text-left"},(s=e.tooltipDataTitleKey,u=e.data,p=e.otherId,c=e.otherLabel,(d=n(s,u))===p?null!=c?c:p:d?String(d):void 0))),0===(a=[{value:t(),key:e.tooltipDataLabelKey,className:"label"},{value:r(),key:e.tooltipDataValueKey,className:"value"}].filter((function(e){return null!=e.value})).map((function(e){return o().createElement("span",{key:e.key,className:e.className},e.value)}))).length?null:o().createElement("div",{className:"d-flex justify-content-between"},a),e.children)}));s.displayName="StatisticsTooltip";var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function p(e){var t=e.tooltipDataLabelKey,r=e.tooltipDataValueKey,n=e.tooltipDataTitleKey,a=e.otherId,i=e.otherLabel,l=e.numberToStringFormatter,p=e.withColor,c=e.className,d=void 0===c?"tooltip-background":c;return function(e){var c,h,f,m,v=u(u({},e.data),{value:null===(c=e.data)||void 0===c?void 0:c.value,label:null===(h=e.data)||void 0===h?void 0:h.label,id:null===(f=e.data)||void 0===f?void 0:f.id,percentage:null===(m=e.data)||void 0===m?void 0:m.percentage});return o().createElement(s,{otherId:a,otherLabel:i,numberToStringFormatter:l,data:v,tooltipDataLabelKey:t,tooltipDataTitleKey:n,tooltipDataValueKey:r,className:null!=d?d:"",color:p?e.color:void 0})}}},5909:(e,t,r)=>{r.d(t,{xG:()=>a,Ow:()=>l});var n=r(4915),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function a(e,t,r,o,a,l){var s,u;void 0===o&&(o=0),void 0===l&&(l="value");var p=0,c=null!=t?t:"other",d=null!=o?o:0,h=[],f=null==e?void 0:e.sort((0,n.kV)(l));null==f||f.forEach((function(e,r){var o;if(r<d&&e.id!==t)h.push(function(e){if(null==e.children)return e;var t=(0,n.d9)(e);return i(t),t}(e));else{var a=null!==(o=Number(null==e?void 0:e.value))&&void 0!==o?o:0;p+=a}}));var m={};return m.id=c,m.value=parseFloat(p.toFixed(2)),m.initialValue=parseFloat(p.toFixed(2)),m.label=null!==(s=null!=r?r:c)&&void 0!==s?s:"",null!=(null===(u=null==e?void 0:e[0])||void 0===u?void 0:u.percentage)&&null!=a&&(m.percentage=p/a*100),o===1/0&&0===p||h.push(m),h}function i(e){var t,r,n,a=null!==(n=null==e?void 0:e.children)&&void 0!==n?n:[];e.initialValue=e.value,a.length>0&&delete e.value;try{for(var l=o(a),s=l.next();!s.done;s=l.next()){i(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}}function l(e){var t;return"".concat(parseInt(null===(t=null==e?void 0:e.toFixed)||void 0===t?void 0:t.call(e,0),10),"%")}},7540:(e,t,r)=>{r.d(t,{KH:()=>n,qi:()=>o,pN:()=>i,ZM:()=>a,de:()=>l,Sn:()=>s});var n="#CBD8E0",o="#578EA8",a="#11455C",i="#EBEBEB",l="#717171",s="#222222"},2394:(e,t,r)=>{r.d(t,{eR:()=>o,TK:()=>a});function n(e,t){return null==e?"":e.length>t?"".concat(e.substr(0,t-1),"…"):e}function o(e){return function(t){var r=/^([\d*]+)-([\d*]+)$/.exec(t);return null==r?t:function(e,t){var r,n,o="*"===e.to?"*":t(parseInt(null!==(r=e.to)&&void 0!==r?r:"0",10)),a=t(parseInt(null!==(n=e.from)&&void 0!==n?n:"0",10));if(a===o)return"".concat(a);return"".concat(a," - ").concat(o)}({from:r[1],to:r[2]},null!=e?e:function(e){return e})}}function a(e,t){return function(r){var o=r.toString();return n(null==e?o:"".concat(e(o)),t)}}},4915:(e,t,r)=>{r.d(t,{z8:()=>a,kV:()=>i,d9:()=>l,vZ:()=>u});r(5692);var n=r(8156),o=r.n(n);r(3642);function a(e,t){var r,n;return null!==(n=null===(r=function(e,t){var r=[];return o().Children.forEach(e,(function(e){(null==e?void 0:e.type)===t&&r.push(e)})),r}(e,t))||void 0===r?void 0:r[0])&&void 0!==n?n:null}function i(e){return function(t,r){var n=0,o=0;return null!=(null==t?void 0:t[e])&&(n=null==t?void 0:t[e]),null!=(null==r?void 0:r[e])&&(o=null==r?void 0:r[e]),n>o?-1:1}}function l(e){return JSON.parse(JSON.stringify(e))}function s(e){return"object"==typeof e&&null!=e}function u(e,t){if(e===t)return!0;if(s(e)&&s(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!u(e[r],t[r]))return!1;return!0}return!1}},3402:t=>{t.exports=e},5692:e=>{e.exports=t},2895:e=>{e.exports=r},5521:e=>{e.exports=n},8310:e=>{e.exports=o},8156:e=>{e.exports=a},8721:e=>{e.exports=i},1082:e=>{e.exports=l},8763:e=>{e.exports=s},4329:(e,t,r)=>{function n(e){return n="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},n(e)}r.d(t,{Z:()=>n})}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return p[e](r,r.exports,d),r.exports}d.m=p,u=[],d.O=(e,t,r,n)=>{if(!t){var o=1/0;for(s=0;s<u.length;s++){for(var[t,r,n]=u[s],a=!0,i=0;i<t.length;i++)(!1&n||o>=n)&&Object.keys(d.O).every((e=>d.O[e](t[i])))?t.splice(i--,1):(a=!1,n<o&&(o=n));if(a){u.splice(s--,1);var l=r();void 0!==l&&(e=l)}}return e}n=n||0;for(var s=u.length;s>0&&u[s-1][2]>n;s--)u[s]=u[s-1];u[s]=[t,r,n]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3397:0,8016:0,410:0,9811:0,9156:0};d.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,i,l]=r,s=0;if(a.some((t=>0!==e[t]))){for(n in i)d.o(i,n)&&(d.m[n]=i[n]);if(l)var u=l(d)}for(t&&t(r);s<a.length;s++)o=a[s],d.o(e,o)&&e[o]&&e[o][0](),e[a[s]]=0;return d.O(u)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var h=d.O(void 0,[9156],(()=>d(9825)));return h=d.O(h)})()}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faCheck","@fortawesome/pro-light-svg-icons/faTimes","@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Col","react-bootstrap/Collapse","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/Row"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faCheck"],e["@fortawesome/pro-light-svg-icons/faTimes"],e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Col"],e["react-bootstrap/Collapse"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/Row"])}(self,(function(e,t,r,o,n,a,i,s,l,p,c,u,f,d,y){return(()=>{"use strict";var h,m={6627:(e,t,r)=>{r.d(t,{ZP:()=>s});var o=r(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,o.Z)(Symbol.iterator)?function(e){return(0,o.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.Z)(e)},n(e)}function a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,a(e,t,r))}})),e}function s(){return 1===arguments.length?i.apply(void 0,arguments):a.apply(void 0,arguments)}},4397:(e,t,r)=>{r.d(t,{z:()=>y});var o,n=r(8156),a=r.n(n),i=r(8310),s=r.n(i),l=r(8926),p=r.n(l),c=r(5692),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(){return f=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(e){return null==e?null:a().createElement(c.FontAwesomeIcon,{icon:e})},t.prototype.renderChildren=function(e){return null==e?null:a().createElement("span",{className:"btn-children"},e)},t.prototype.renderLeftSide=function(e,t){return null==e?null==t?null:a().createElement(c.FontAwesomeIcon,{icon:t,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:e})},t.prototype.renderRightSide=function(e,t){return null==t?null==e?null:a().createElement(c.FontAwesomeIcon,{icon:e,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:t})},t.prototype.renderContent=function(e,t){return null!=e&&null==t?this.renderIcon(e):a().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))},t.prototype.render=function(){var e=this.props,t=e.icon,r=e.iconLeft,o=e.iconRight,n=e.children,i=e.size,l=e.className,c=d(e,["icon","iconLeft","iconRight","children","size","className"]),u=s()("atoka-btn","btn-".concat(i),l,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return a().createElement(p(),f({className:u},c),this.renderLeftSide(r,o),this.renderContent(t,n),this.renderRightSide(r,o))},t.displayName="Button",t.defaultProps={variant:"primary",size:"md",disabled:!1,block:!1},t}(a().PureComponent)},7325:(e,t,r)=>{r.d(t,{Button:()=>o.z});var o=r(4397)},192:(e,t,r)=>{r.d(t,{AtokaCustomDropdownToggleWithChevron:()=>N,Dropdown:()=>m});var o,n=r(8156),a=r.n(n),i=r(8310),s=r.n(i),l=r(4976),p=r.n(l),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=s()("atoka-dropdown-menu",this.props.className,this.props.size);return a().createElement(p().Menu,u({},this.props,{className:e}),this.props.children)},t.displayName="DropdownMenu",t.defaultProps={size:"sm"},t}(a().PureComponent),d=a().memo((function(e){var t=e.children;return a().createElement("div",{className:"atoka-dropdown-section"},t,a().createElement(m.Divider,null))}));d.displayName="DropdownSection";var y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),h=function(){return h=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(){var e=s()(this.props.className,"atoka-dropdown");return a().createElement(p(),h({},this.props,{className:e}),this.props.children)},t.displayName="DropDown",t.Toggle=p().Toggle,t.Menu=f,t.Item=p().Item,t.Divider=p().Divider,t.Header=p().Header,t.Section=d,t}(a().PureComponent),v=r(6627),b=r(3041),g=r(1349),w=r(7325),O=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},j=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function E(e,t){var r=a().forwardRef((function(e,r){return a().createElement("div",{ref:r},a().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return r.displayName=e,r}var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement(w.Button,{variant:"secondary",size:"xs",icon:b.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})},t.displayName="AtokaSimpleDropdownToggleComponent",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=s()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return a().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,a().createElement("div",{className:"chevron-container"},a().createElement(w.Button,{variant:"tertiary",size:"md",icon:g.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),N=(E("AtokaSimpleDropdownToggle",S),E("AtokaCustomDropdownToggle",k),E("AtokaCustomDropdownToggleWithChevron",P))},3642:(e,t,r)=>{r.d(t,{l:()=>h});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=r(7269),c=r(2380),u=r(5145),f=r(8672),d=r(2722),y=function(){return y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},y.apply(this,arguments)},h=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return n().createElement(l(),y({},e,{className:t}),e.children)};h.displayName="Form",h.Control=c.N,h.Label=p.l,h.Checkbox=u.z,h.Radio=f.w,h.File=l().File,h.Switch=l().Switch,h.Help=d.y,h.Group=l().Group},5145:(e,t,r)=>{r.d(t,{z:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},c=function(e){var t,r=i()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(l().Check,p({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};c.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>f});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(1082),l=r.n(s),p=r(7605),c=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=c(e,["size"]),s=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(l(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:s,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));u.displayName="FormControlComponent";var f=u;f.FeedBack=p.t,f.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(1082),l=r.n(s),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},c=n().memo((function(e){var t=e.show,r=void 0===t||t,o=p(e,["show"]),a=i()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(l().Feedback,{type:o.type,className:a},o.children)}));c.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>c});var o=r(8763),n=r.n(o),a=r(8156),i=r.n(a),s=r(8310),l=r.n(s),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},c=i().memo((function(e){var t=e.children,r=p(e,["children"]),o=l()("d-block",null==r?void 0:r.className);return i().createElement(n(),{bsPrefix:"atoka-form-help",className:o},t)}));c.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>p});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=n().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(l().Label,{className:t},e.children)}));p.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},c=function(e){var t,r=i()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(l().Check,p({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};c.displayName="FormRadio"},1862:(e,t,r)=>{r.d(t,{Form:()=>o.l});var o=r(3642)},2599:(e,t,r)=>{r.d(t,{M:()=>k});var o,n=r(6627),a=r(8156),i=r.n(a),s=r(5315),l=r.n(s),p=r(3915),c=r.n(p),u=r(4440),f=r.n(u),d=r(8310),y=r.n(d),h=r(6988),m=r(4600),v=r(7325),b=r(2380),g=r(188),w=r(1862),O=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),C=function(){return C=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},C.apply(this,arguments)},j=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=i().createRef(),t.state={currentValue:t.props.value},t}var r,o;return O(t,e),t.prototype.componentDidMount=function(){var e,t,r,o;null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(o=null===(r=this.inputRef)||void 0===r?void 0:r.current)||void 0===o||o.select()},t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.handleKeyDown=function(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleCancel(),"Enter"===e.key&&(e.stopPropagation(),this.handleSave())},t.prototype.handleCancel=function(){this.setState({currentValue:this.props.value}),this.props.onCancel()},t.prototype.handleSave=function(){this.isSaveDisabled()||this.props.onSave(this.state.currentValue)},t.prototype.handleTextChange=function(e){var t,r,o=e.target.value,n=null!==(r=null===(t=this.props)||void 0===t?void 0:t.maxLength)&&void 0!==r?r:0;o.length<=n&&(null!=this.props.onChange&&this.props.onChange(o),this.setState({currentValue:o}))},t.prototype.handleOptionChange=function(e){var t,r,o,n=null!==(o=this.props.options)&&void 0!==o?o:[];try{for(var a=S(n),i=a.next();!i.done;i=a.next()){var s=i.value;String(s.value)===String(e)&&(null!=this.props.onChange&&this.props.onChange(s),this.setState({currentValue:s}))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},t.prototype.isSaveDisabled=function(){return null!=this.props.getIsSaveDisabled?this.props.getIsSaveDisabled(this.state.currentValue):null!=this.props.getError&&null!=this.props.getError(this.state.currentValue)||(null==this.props.onChange&&this.state.currentValue===this.props.value||"string"==typeof this.state.currentValue&&this.state.currentValue.length<this.props.minLength)},t.prototype.renderHelp=function(){return null==this.props.help?null:i().createElement(f(),{appear:!0,in:!0},i().createElement(w.Form.Help,null,this.props.help))},t.prototype.renderError=function(){if(null==this.props.getError)return null;var e=this.props.getError(this.state.currentValue);return null==e?null:i().createElement(f(),{appear:!0,in:!0},i().createElement(w.Form.Control.FeedBack,{type:"invalid"},e))},t.prototype.renderInput=function(){var e;if(null!=this.props.options&&this.props.options.length>0){var t=null!=this.state.currentValue?this.state.currentValue.value:"";return i().createElement(g.SelectDropdown,{className:"inline-dropdown-select",size:this.props.size,selected:String(t),onSelect:this.handleOptionChange,onKeyDown:this.handleKeyDown,options:this.props.options,isInvalid:null!=this.renderError()})}return i().createElement(b.N,{ref:this.inputRef,size:this.props.size,type:this.props.inputType,value:null!==(e=this.state.currentValue)&&void 0!==e?e:"",onChange:this.handleTextChange,onKeyDown:this.handleKeyDown,isInvalid:null!=this.renderError()})},t.prototype.renderCancelButton=function(){var e={onClick:this.handleCancel,variant:"secondary",size:this.props.size,className:"inline-string-editor-cancel"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:h.faTimes},e)):i().createElement(v.Button,C({},e),this.props.cancelLabel)},t.prototype.renderSaveButton=function(){var e={onClick:this.handleSave,variant:"primary",disabled:this.isSaveDisabled(),size:this.props.size,className:"inline-string-editor-save"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:m.faCheck},e)):i().createElement(v.Button,C({},e),this.props.saveLabel)},t.prototype.render=function(){var e=y()("inline-string-editor w-100",this.props.className);return i().createElement("div",{className:e},i().createElement(c(),{className:"no-gutters"},i().createElement(l(),null,this.renderInput()),i().createElement(l(),{xs:"auto",className:"inline-string-editor-controls"},this.renderCancelButton(),this.renderSaveButton())),this.renderError(),this.renderHelp())},t.displayName="InlineStringEditor",t.defaultProps={useIcons:!1,inputType:"text",maxLength:60,minLength:3,saveLabel:"Save",cancelLabel:"Cancel",size:"md"},j([n.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==i()&&i().KeyboardEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleKeyDown",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleCancel",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleSave",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(o=void 0!==i()&&i().FormEvent)?o:Object]),E("design:returntype",void 0)],t.prototype,"handleTextChange",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[String]),E("design:returntype",void 0)],t.prototype,"handleOptionChange",null),t}(i().Component)},2327:(e,t,r)=>{r.r(t),r.d(t,{InlineStringEditor:()=>o.M,InlineStringValueType:()=>o.InlineStringValueType});var o=r(2599)},188:(e,t,r)=>{r.d(t,{SelectDropdown:()=>m});var o,n=r(6627),a=r(8156),i=r.n(a),s=r(4976),l=r.n(s),p=r(8310),c=r.n(p),u=r(192),f=r(4589),d=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},h=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r,o;return d(t,e),t.prototype.renderOptions=function(){return this.props.options.map(this.renderItem)},t.prototype.renderItem=function(e){var t,r,o,n="".concat(e.value);return e.isDivider?i().createElement(u.Dropdown.Divider,{key:n}):i().createElement(u.Dropdown.Item,{key:n,disabled:e.disabled,eventKey:n},null!==(o=null===(r=(t=this.props).renderValue)||void 0===r?void 0:r.call(t,e))&&void 0!==o?o:e.label)},t.prototype.renderSelectedValue=function(){var e,t,r,o=this,n=i().createElement("span",{className:"placeholder"},this.props.placeholder);if(null==this.props.selected)return n;var a=this.props.options.find((function(e){return e.value===o.props.selected}));return null==a?n:null!==(r=null===(t=(e=this.props).renderSelectedValue)||void 0===t?void 0:t.call(e,a))&&void 0!==r?r:a.label},Object.defineProperty(t.prototype,"popperConfig",{get:function(){if(this.props.isFixed)return{strategy:"fixed",modifiers:[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state,r=t.elements.reference;t.elements.popper.style.width="".concat(r.offsetWidth,"px")}}]}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=c()("atoka-select-dropdown",this.props.className,this.props.size,{"is-invalid":this.props.isInvalid}),t=c()("atoka-select-dropdown-menu",this.props.size,this.props.menuClassName);return i().createElement(u.Dropdown,{onSelect:this.props.onSelect,className:e,drop:this.props.direction},i().createElement(u.Dropdown.Toggle,{disabled:this.props.disabled,as:u.AtokaCustomDropdownToggleWithChevron},i().createElement("span",{className:"dropdown-toggle-text-container"},this.renderSelectedValue())),i().createElement(l().Menu,{className:t,flip:!1,popperConfig:this.popperConfig},this.renderOptions()))},t.displayName="SelectDropdown",t.defaultProps={size:"md",placeholder:"--",direction:"down"},y([n.ZP,h("design:type",Function),h("design:paramtypes",["function"==typeof(r=void 0!==f.OptionData&&f.OptionData)?r:Object]),h("design:returntype","function"==typeof(o=void 0!==i()&&i().ReactNode)?o:Object)],t.prototype,"renderItem",null),t}(i().PureComponent)},3654:()=>{},5909:(e,t,r)=>{r(4915)},2394:(e,t,r)=>{},4915:(e,t,r)=>{r(5692),r(8156),r(3642)},4589:(e,t,r)=>{r.d(t,{OptionData:()=>o.nJ});var o=r(3654);r(5909),r(4915),r(2394)},4600:t=>{t.exports=e},6988:e=>{e.exports=t},1349:e=>{e.exports=r},3041:e=>{e.exports=o},5692:e=>{e.exports=n},8310:e=>{e.exports=a},8156:e=>{e.exports=i},8926:e=>{e.exports=s},5315:e=>{e.exports=l},4440:e=>{e.exports=p},4976:e=>{e.exports=c},8721:e=>{e.exports=u},1082:e=>{e.exports=f},8763:e=>{e.exports=d},3915:e=>{e.exports=y},4329:(e,t,r)=>{function o(e){return o="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},o(e)}r.d(t,{Z:()=>o})}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var r=v[e]={exports:{}};return m[e](r,r.exports,b),r.exports}b.m=m,h=[],b.O=(e,t,r,o)=>{if(!t){var n=1/0;for(l=0;l<h.length;l++){for(var[t,r,o]=h[l],a=!0,i=0;i<t.length;i++)(!1&o||n>=o)&&Object.keys(b.O).every((e=>b.O[e](t[i])))?t.splice(i--,1):(a=!1,o<n&&(n=o));if(a){h.splice(l--,1);var s=r();void 0!==s&&(e=s)}}return e}o=o||0;for(var l=h.length;l>0&&h[l-1][2]>o;l--)h[l]=h[l-1];h[l]=[t,r,o]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var r in t)b.o(t,r)&&!b.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={7331:0,6615:0,8621:0,6419:0,6740:0,4149:0};b.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,i,s]=r,l=0;if(a.some((t=>0!==e[t]))){for(o in i)b.o(i,o)&&(b.m[o]=i[o]);if(s)var p=s(b)}for(t&&t(r);l<a.length;l++)n=a[l],b.o(e,n)&&e[n]&&e[n][0](),e[a[l]]=0;return b.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var g=b.O(void 0,[4149],(()=>b(2327)));return g=b.O(g)})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faCheck","@fortawesome/pro-light-svg-icons/faTimes","@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Col","react-bootstrap/Collapse","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/Row"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faCheck"),require("@fortawesome/pro-light-svg-icons/faTimes"),require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Col"),require("react-bootstrap/Collapse"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Row")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faCheck"],e["@fortawesome/pro-light-svg-icons/faTimes"],e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Col"],e["react-bootstrap/Collapse"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/Row"])}(self,(function(e,t,r,o,n,a,i,s,l,p,c,u,f,d,y){return(()=>{"use strict";var h,m={6627:(e,t,r)=>{r.d(t,{ZP:()=>s});var o=r(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,o.Z)(Symbol.iterator)?function(e){return(0,o.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,o.Z)(e)},n(e)}function a(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),a=!1,r},set:function(e){o=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,a(e,t,r))}})),e}function s(){return 1===arguments.length?i.apply(void 0,arguments):a.apply(void 0,arguments)}},4397:(e,t,r)=>{r.d(t,{z:()=>y});var o,n=r(8156),a=r.n(n),i=r(8310),s=r.n(i),l=r(8926),p=r.n(l),c=r(5692),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(){return f=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderIcon=function(e){return null==e?null:a().createElement(c.FontAwesomeIcon,{icon:e})},t.prototype.renderChildren=function(e){return null==e?null:a().createElement("span",{className:"btn-children"},e)},t.prototype.renderLeftSide=function(e,t){return null==e?null==t?null:a().createElement(c.FontAwesomeIcon,{icon:t,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:e})},t.prototype.renderRightSide=function(e,t){return null==t?null==e?null:a().createElement(c.FontAwesomeIcon,{icon:e,className:"invisible"}):a().createElement(c.FontAwesomeIcon,{icon:t})},t.prototype.renderContent=function(e,t){return null!=e&&null==t?this.renderIcon(e):a().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))},t.prototype.render=function(){var e=this.props,t=e.icon,r=e.iconLeft,o=e.iconRight,n=e.children,i=e.size,l=e.className,c=d(e,["icon","iconLeft","iconRight","children","size","className"]),u=s()("atoka-btn","btn-".concat(i),l,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return a().createElement(p(),f({className:u},c),this.renderLeftSide(r,o),this.renderContent(t,n),this.renderRightSide(r,o))},t.displayName="Button",t.defaultProps={variant:"primary",size:"md",disabled:!1,block:!1},t}(a().PureComponent)},7325:(e,t,r)=>{r.d(t,{Button:()=>o.z});var o=r(4397)},192:(e,t,r)=>{r.d(t,{AtokaCustomDropdownToggleWithChevron:()=>N,Dropdown:()=>m});var o,n=r(8156),a=r.n(n),i=r(8310),s=r.n(i),l=r(4976),p=r.n(l),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=s()("atoka-dropdown-menu",this.props.className,this.props.size);return a().createElement(p().Menu,u({},this.props,{className:e}),this.props.children)},t.displayName="DropdownMenu",t.defaultProps={size:"sm"},t}(a().PureComponent),d=a().memo((function(e){var t=e.children;return a().createElement("div",{className:"atoka-dropdown-section"},t,a().createElement(m.Divider,null))}));d.displayName="DropdownSection";var y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),h=function(){return h=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(){var e=s()(this.props.className,"atoka-dropdown");return a().createElement(p(),h({},this.props,{className:e}),this.props.children)},t.displayName="DropDown",t.Toggle=p().Toggle,t.Menu=f,t.Item=p().Item,t.Divider=p().Divider,t.Header=p().Header,t.Section=d,t}(a().PureComponent),v=r(6627),b=r(3041),g=r(1349),w=r(7325),O=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},j=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function E(e,t){var r=a().forwardRef((function(e,r){return a().createElement("div",{ref:r},a().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))}));return r.displayName=e,r}var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement(w.Button,{variant:"secondary",size:"xs",icon:b.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})},t.displayName="AtokaSimpleDropdownToggleComponent",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){return a().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)},t.displayName="AtokaCustomDropdownToggleComponent",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r;return O(t,e),t.prototype.handleClick=function(e){e.preventDefault(),this.props.onClick(e)},t.prototype.render=function(){var e=s()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return a().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,a().createElement("div",{className:"chevron-container"},a().createElement(w.Button,{variant:"tertiary",size:"md",icon:g.faChevronDown})))},t.displayName="AtokaCustomDropdownToggleWithChevronComponent ",C([v.ZP,j("design:type",Function),j("design:paramtypes",["function"==typeof(r=void 0!==a()&&a().SyntheticEvent)?r:Object]),j("design:returntype",void 0)],t.prototype,"handleClick",null),t}(a().Component),N=(E("AtokaSimpleDropdownToggle",S),E("AtokaCustomDropdownToggle",k),E("AtokaCustomDropdownToggleWithChevron",P))},3642:(e,t,r)=>{r.d(t,{l:()=>h});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=r(7269),c=r(2380),u=r(5145),f=r(8672),d=r(2722),y=function(){return y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},y.apply(this,arguments)},h=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return n().createElement(l(),y({},e,{className:t}),e.children)};h.displayName="Form",h.Control=c.N,h.Label=p.l,h.Checkbox=u.z,h.Radio=f.w,h.File=l().File,h.Switch=l().Switch,h.Help=d.y,h.Group=l().Group},5145:(e,t,r)=>{r.d(t,{z:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},c=function(e){var t,r=i()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(l().Check,p({type:"checkbox"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};c.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>f});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(1082),l=r.n(s),p=r(7605),c=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},u=n().forwardRef((function(e,t){var r=e.size,o=void 0===r?"md":r,a=c(e,["size"]),s=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(l(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:s,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===o?void 0:o,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));u.displayName="FormControlComponent";var f=u;f.FeedBack=p.t,f.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(1082),l=r.n(s),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},c=n().memo((function(e){var t=e.show,r=void 0===t||t,o=p(e,["show"]),a=i()(null==o?void 0:o.className,"atoka-form-control-feedback",{"d-block":r});return n().createElement(l().Feedback,{type:o.type,className:a},o.children)}));c.displayName=" FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>c});var o=r(8763),n=r.n(o),a=r(8156),i=r.n(a),s=r(8310),l=r.n(s),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},c=i().memo((function(e){var t=e.children,r=p(e,["children"]),o=l()("d-block",null==r?void 0:r.className);return i().createElement(n(),{bsPrefix:"atoka-form-help",className:o},t)}));c.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>p});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=n().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(l().Label,{className:t},e.children)}));p.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>c});var o=r(8156),n=r.n(o),a=r(8310),i=r.n(a),s=r(8721),l=r.n(s),p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)},c=function(e){var t,r=i()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(l().Check,p({type:"radio"},e,{custom:!0,className:r,label:null!==(t=e.label)&&void 0!==t?t:""}))};c.displayName="FormRadio"},1862:(e,t,r)=>{r.d(t,{Form:()=>o.l});var o=r(3642)},2599:(e,t,r)=>{r.d(t,{M:()=>k});var o,n=r(6627),a=r(8156),i=r.n(a),s=r(5315),l=r.n(s),p=r(3915),c=r.n(p),u=r(4440),f=r.n(u),d=r(8310),y=r.n(d),h=r(6988),m=r(4600),v=r(7325),b=r(2380),g=r(188),w=r(1862),O=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),C=function(){return C=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},C.apply(this,arguments)},j=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=i().createRef(),t.state={currentValue:t.props.value},t}var r,o;return O(t,e),t.prototype.componentDidMount=function(){var e,t,r,o;null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(o=null===(r=this.inputRef)||void 0===r?void 0:r.current)||void 0===o||o.select()},t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.handleKeyDown=function(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleCancel(),"Enter"===e.key&&(e.stopPropagation(),this.handleSave())},t.prototype.handleCancel=function(){this.setState({currentValue:this.props.value}),this.props.onCancel()},t.prototype.handleSave=function(){this.isSaveDisabled()||this.props.onSave(this.state.currentValue)},t.prototype.handleTextChange=function(e){var t,r,o=e.target.value,n=null!==(r=null===(t=this.props)||void 0===t?void 0:t.maxLength)&&void 0!==r?r:0;o.length<=n&&(null!=this.props.onChange&&this.props.onChange(o),this.setState({currentValue:o}))},t.prototype.handleOptionChange=function(e){var t,r,o,n=null!==(o=this.props.options)&&void 0!==o?o:[];try{for(var a=S(n),i=a.next();!i.done;i=a.next()){var s=i.value;String(s.value)===String(e)&&(null!=this.props.onChange&&this.props.onChange(s),this.setState({currentValue:s}))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},t.prototype.isSaveDisabled=function(){return null!=this.props.getIsSaveDisabled?this.props.getIsSaveDisabled(this.state.currentValue):null!=this.props.getError&&null!=this.props.getError(this.state.currentValue)||(null==this.props.onChange&&this.state.currentValue===this.props.value||"string"==typeof this.state.currentValue&&this.state.currentValue.length<this.props.minLength)},t.prototype.renderHelp=function(){return null==this.props.help?null:i().createElement(f(),{appear:!0,in:!0},i().createElement(w.Form.Help,null,this.props.help))},t.prototype.renderError=function(){if(null==this.props.getError)return null;var e=this.props.getError(this.state.currentValue);return null==e?null:i().createElement(f(),{appear:!0,in:!0},i().createElement(w.Form.Control.FeedBack,{type:"invalid"},e))},t.prototype.renderInput=function(){var e;if(null!=this.props.options&&this.props.options.length>0){var t=null!=this.state.currentValue?this.state.currentValue.value:"";return i().createElement(g.SelectDropdown,{className:"inline-dropdown-select",size:this.props.size,selected:String(t),onSelect:this.handleOptionChange,onKeyDown:this.handleKeyDown,options:this.props.options,isInvalid:null!=this.renderError()})}return i().createElement(b.N,{ref:this.inputRef,size:this.props.size,type:this.props.inputType,value:null!==(e=this.state.currentValue)&&void 0!==e?e:"",onChange:this.handleTextChange,onKeyDown:this.handleKeyDown,isInvalid:null!=this.renderError()})},t.prototype.renderCancelButton=function(){var e={onClick:this.handleCancel,variant:"secondary",size:this.props.size,className:"inline-string-editor-cancel"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:h.faTimes},e)):i().createElement(v.Button,C({},e),this.props.cancelLabel)},t.prototype.renderSaveButton=function(){var e={onClick:this.handleSave,variant:"primary",disabled:this.isSaveDisabled(),size:this.props.size,className:"inline-string-editor-save"};return!0===this.props.useIcons?i().createElement(v.Button,C({icon:m.faCheck},e)):i().createElement(v.Button,C({},e),this.props.saveLabel)},t.prototype.render=function(){var e=y()("inline-string-editor w-100",this.props.className);return i().createElement("div",{className:e},i().createElement(c(),{className:"no-gutters"},i().createElement(l(),null,this.renderInput()),i().createElement(l(),{xs:"auto",className:"inline-string-editor-controls"},this.renderCancelButton(),this.renderSaveButton())),this.renderError(),this.renderHelp())},t.displayName="InlineStringEditor",t.defaultProps={useIcons:!1,inputType:"text",maxLength:60,minLength:3,saveLabel:"Save",cancelLabel:"Cancel",size:"md"},j([n.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(r=void 0!==i()&&i().KeyboardEvent)?r:Object]),E("design:returntype",void 0)],t.prototype,"handleKeyDown",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleCancel",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],t.prototype,"handleSave",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",["function"==typeof(o=void 0!==i()&&i().FormEvent)?o:Object]),E("design:returntype",void 0)],t.prototype,"handleTextChange",null),j([n.ZP,E("design:type",Function),E("design:paramtypes",[String]),E("design:returntype",void 0)],t.prototype,"handleOptionChange",null),t}(i().Component)},2327:(e,t,r)=>{r.r(t),r.d(t,{InlineStringEditor:()=>o.M,InlineStringValueType:()=>o.InlineStringValueType});var o=r(2599)},188:(e,t,r)=>{r.d(t,{SelectDropdown:()=>m});var o,n=r(6627),a=r(8156),i=r.n(a),s=r(4976),l=r.n(s),p=r(8310),c=r.n(p),u=r(192),f=r(4589),d=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},h=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r,o;return d(t,e),t.prototype.renderOptions=function(){return this.props.options.map(this.renderItem)},t.prototype.renderItem=function(e){var t,r,o,n="".concat(e.value);return e.isDivider?i().createElement(u.Dropdown.Divider,{key:n}):i().createElement(u.Dropdown.Item,{key:n,disabled:e.disabled,eventKey:n},null!==(o=null===(r=(t=this.props).renderValue)||void 0===r?void 0:r.call(t,e))&&void 0!==o?o:e.label)},t.prototype.renderSelectedValue=function(){var e,t,r,o=this,n=i().createElement("span",{className:"placeholder"},this.props.placeholder);if(null==this.props.selected)return n;var a=this.props.options.find((function(e){return e.value===o.props.selected}));return null==a?n:null!==(r=null===(t=(e=this.props).renderSelectedValue)||void 0===t?void 0:t.call(e,a))&&void 0!==r?r:a.label},Object.defineProperty(t.prototype,"popperConfig",{get:function(){if(this.props.isFixed)return{strategy:"fixed",modifiers:[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state,r=t.elements.reference;t.elements.popper.style.width="".concat(r.offsetWidth,"px")}}]}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=c()("atoka-select-dropdown",this.props.className,this.props.size,{"is-invalid":this.props.isInvalid}),t=c()("atoka-select-dropdown-menu",this.props.size,this.props.menuClassName);return i().createElement(u.Dropdown,{onSelect:this.props.onSelect,className:e,drop:this.props.direction},i().createElement(u.Dropdown.Toggle,{disabled:this.props.disabled,as:u.AtokaCustomDropdownToggleWithChevron},i().createElement("span",{className:"dropdown-toggle-text-container"},this.renderSelectedValue())),i().createElement(l().Menu,{className:t,flip:!1,popperConfig:this.popperConfig},this.renderOptions()))},t.displayName="SelectDropdown",t.defaultProps={size:"md",placeholder:"--",direction:"down"},y([n.ZP,h("design:type",Function),h("design:paramtypes",["function"==typeof(r=void 0!==f.OptionData&&f.OptionData)?r:Object]),h("design:returntype","function"==typeof(o=void 0!==i()&&i().ReactNode)?o:Object)],t.prototype,"renderItem",null),t}(i().PureComponent)},3654:()=>{},5909:(e,t,r)=>{r(4915)},2394:(e,t,r)=>{},4915:(e,t,r)=>{r(5692),r(8156),r(3642)},4589:(e,t,r)=>{r.d(t,{OptionData:()=>o.nJ});var o=r(3654);r(5909),r(4915),r(2394)},4600:t=>{t.exports=e},6988:e=>{e.exports=t},1349:e=>{e.exports=r},3041:e=>{e.exports=o},5692:e=>{e.exports=n},8310:e=>{e.exports=a},8156:e=>{e.exports=i},8926:e=>{e.exports=s},5315:e=>{e.exports=l},4440:e=>{e.exports=p},4976:e=>{e.exports=c},8721:e=>{e.exports=u},1082:e=>{e.exports=f},8763:e=>{e.exports=d},3915:e=>{e.exports=y},4329:(e,t,r)=>{function o(e){return o="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},o(e)}r.d(t,{Z:()=>o})}},v={};function b(e){var t=v[e];if(void 0!==t)return t.exports;var r=v[e]={exports:{}};return m[e](r,r.exports,b),r.exports}b.m=m,h=[],b.O=(e,t,r,o)=>{if(!t){var n=1/0;for(l=0;l<h.length;l++){for(var[t,r,o]=h[l],a=!0,i=0;i<t.length;i++)(!1&o||n>=o)&&Object.keys(b.O).every((e=>b.O[e](t[i])))?t.splice(i--,1):(a=!1,o<n&&(n=o));if(a){h.splice(l--,1);var s=r();void 0!==s&&(e=s)}}return e}o=o||0;for(var l=h.length;l>0&&h[l-1][2]>o;l--)h[l]=h[l-1];h[l]=[t,r,o]},b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var r in t)b.o(t,r)&&!b.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={7331:0,6615:0,8621:0,6419:0,6740:0,9156:0};b.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,i,s]=r,l=0;if(a.some((t=>0!==e[t]))){for(o in i)b.o(i,o)&&(b.m[o]=i[o]);if(s)var p=s(b)}for(t&&t(r);l<a.length;l++)n=a[l],b.o(e,n)&&e[n]&&e[n][0](),e[a[l]]=0;return b.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var g=b.O(void 0,[9156],(()=>b(2327)));return g=b.O(g)})()}));
|
package/InputGroup/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("classnames"),require("react"),require("react-bootstrap/InputGroup")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react","react-bootstrap/InputGroup"],r):"object"==typeof exports?exports["atoka-design-system"]=r(require("classnames"),require("react"),require("react-bootstrap/InputGroup")):e["atoka-design-system"]=r(e.classnames,e.react,e["react-bootstrap/InputGroup"])}(self,(function(e,r,t){return(()=>{"use strict";var o,a={2913:(e,r,t)=>{t.r(r),t.d(r,{InputGroup:()=>d});var o=t(8156),a=t.n(o),n=t(2476),s=t.n(n),i=t(8310),p=t.n(i),u=function(){return u=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},u.apply(this,arguments)},l=a().memo((function(e){var r,t,o=p()(((r={})[null!==(t=null==e?void 0:e.className)&&void 0!==t?t:""]=!0,r["atoka-input-group-text"]=!0,r));return a().createElement(s().Text,u({},e,{className:o}),e.children)}));l.displayName="InputGroupText";var d=function(e){var r=p()("atoka-input-group",null==e?void 0:e.className,{disabled:e.disabled,"atoka-shadow":e.withShadow,"is-invalid":e.isInvalid});return a().createElement(s(),{size:"md"===e.size?void 0:e.size,className:r},e.children)};d.displayName="InputGroup",d.Text=l,d.Append=s().Append,d.Prepend=s().Prepend},8310:r=>{r.exports=e},8156:e=>{e.exports=r},2476:e=>{e.exports=t}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return a[e](t,t.exports,s),t.exports}s.m=a,o=[],s.O=(e,r,t,a)=>{if(!r){var n=1/0;for(l=0;l<o.length;l++){for(var[r,t,a]=o[l],i=!0,p=0;p<r.length;p++)(!1&a||n>=a)&&Object.keys(s.O).every((e=>s.O[e](r[p])))?r.splice(p--,1):(i=!1,a<n&&(n=a));if(i){o.splice(l--,1);var u=t();void 0!==u&&(e=u)}}return e}a=a||0;for(var l=o.length;l>0&&o[l-1][2]>a;l--)o[l]=o[l-1];o[l]=[r,t,a]},s.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return s.d(r,{a:r}),r},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2558:0,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("classnames"),require("react"),require("react-bootstrap/InputGroup")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react","react-bootstrap/InputGroup"],r):"object"==typeof exports?exports["atoka-design-system"]=r(require("classnames"),require("react"),require("react-bootstrap/InputGroup")):e["atoka-design-system"]=r(e.classnames,e.react,e["react-bootstrap/InputGroup"])}(self,(function(e,r,t){return(()=>{"use strict";var o,a={2913:(e,r,t)=>{t.r(r),t.d(r,{InputGroup:()=>d});var o=t(8156),a=t.n(o),n=t(2476),s=t.n(n),i=t(8310),p=t.n(i),u=function(){return u=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},u.apply(this,arguments)},l=a().memo((function(e){var r,t,o=p()(((r={})[null!==(t=null==e?void 0:e.className)&&void 0!==t?t:""]=!0,r["atoka-input-group-text"]=!0,r));return a().createElement(s().Text,u({},e,{className:o}),e.children)}));l.displayName="InputGroupText";var d=function(e){var r=p()("atoka-input-group",null==e?void 0:e.className,{disabled:e.disabled,"atoka-shadow":e.withShadow,"is-invalid":e.isInvalid});return a().createElement(s(),{size:"md"===e.size?void 0:e.size,className:r},e.children)};d.displayName="InputGroup",d.Text=l,d.Append=s().Append,d.Prepend=s().Prepend},8310:r=>{r.exports=e},8156:e=>{e.exports=r},2476:e=>{e.exports=t}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return a[e](t,t.exports,s),t.exports}s.m=a,o=[],s.O=(e,r,t,a)=>{if(!r){var n=1/0;for(l=0;l<o.length;l++){for(var[r,t,a]=o[l],i=!0,p=0;p<r.length;p++)(!1&a||n>=a)&&Object.keys(s.O).every((e=>s.O[e](r[p])))?r.splice(p--,1):(i=!1,a<n&&(n=a));if(i){o.splice(l--,1);var u=t();void 0!==u&&(e=u)}}return e}a=a||0;for(var l=o.length;l>0&&o[l-1][2]>a;l--)o[l]=o[l-1];o[l]=[r,t,a]},s.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return s.d(r,{a:r}),r},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2558:0,9156:0};s.O.j=r=>0===e[r];var r=(r,t)=>{var o,a,[n,i,p]=t,u=0;if(n.some((r=>0!==e[r]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(p)var l=p(s)}for(r&&r(t);u<n.length;u++)a=n[u],s.o(e,a)&&e[a]&&e[a][0](),e[n[u]]=0;return s.O(l)},t=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var i=s.O(void 0,[9156],(()=>s(2913)));return i=s.O(i)})()}));
|
package/Jumbotron/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("classnames"),require("react"),require("react-bootstrap/Jumbotron")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react","react-bootstrap/Jumbotron"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("classnames"),require("react"),require("react-bootstrap/Jumbotron")):e["atoka-design-system"]=t(e.classnames,e.react,e["react-bootstrap/Jumbotron"])}(self,(function(e,t,r){return(()=>{"use strict";var o,n={6060:(e,t,r)=>{r.r(t),r.d(t,{Jumbotron:()=>l});var o,n=r(8310),a=r.n(n),s=r(8156),i=r.n(s),u=r(3161),p=r.n(u),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=a()("jumbotron-".concat(this.props.variant),this.props.className);return i().createElement(p(),{className:e},this.props.children)},t.displayName="Jumbotron",t.defaultProps={variant:"primary"},t}(i().PureComponent)},8310:t=>{t.exports=e},8156:e=>{e.exports=t},3161:e=>{e.exports=r}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return n[e](r,r.exports,s),r.exports}s.m=n,o=[],s.O=(e,t,r,n)=>{if(!t){var a=1/0;for(c=0;c<o.length;c++){for(var[t,r,n]=o[c],i=!0,u=0;u<t.length;u++)(!1&n||a>=n)&&Object.keys(s.O).every((e=>s.O[e](t[u])))?t.splice(u--,1):(i=!1,n<a&&(a=n));if(i){o.splice(c--,1);var p=r();void 0!==p&&(e=p)}}return e}n=n||0;for(var c=o.length;c>0&&o[c-1][2]>n;c--)o[c]=o[c-1];o[c]=[t,r,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4783:0,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("classnames"),require("react"),require("react-bootstrap/Jumbotron")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react","react-bootstrap/Jumbotron"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("classnames"),require("react"),require("react-bootstrap/Jumbotron")):e["atoka-design-system"]=t(e.classnames,e.react,e["react-bootstrap/Jumbotron"])}(self,(function(e,t,r){return(()=>{"use strict";var o,n={6060:(e,t,r)=>{r.r(t),r.d(t,{Jumbotron:()=>l});var o,n=r(8310),a=r.n(n),s=r(8156),i=r.n(s),u=r(3161),p=r.n(u),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=a()("jumbotron-".concat(this.props.variant),this.props.className);return i().createElement(p(),{className:e},this.props.children)},t.displayName="Jumbotron",t.defaultProps={variant:"primary"},t}(i().PureComponent)},8310:t=>{t.exports=e},8156:e=>{e.exports=t},3161:e=>{e.exports=r}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return n[e](r,r.exports,s),r.exports}s.m=n,o=[],s.O=(e,t,r,n)=>{if(!t){var a=1/0;for(c=0;c<o.length;c++){for(var[t,r,n]=o[c],i=!0,u=0;u<t.length;u++)(!1&n||a>=n)&&Object.keys(s.O).every((e=>s.O[e](t[u])))?t.splice(u--,1):(i=!1,n<a&&(a=n));if(i){o.splice(c--,1);var p=r();void 0!==p&&(e=p)}}return e}n=n||0;for(var c=o.length;c>0&&o[c-1][2]>n;c--)o[c]=o[c-1];o[c]=[t,r,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4783:0,9156:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var o,n,[a,i,u]=r,p=0;if(a.some((t=>0!==e[t]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(u)var c=u(s)}for(t&&t(r);p<a.length;p++)n=a[p],s.o(e,n)&&e[n]&&e[n][0](),e[a[p]]=0;return s.O(c)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=s.O(void 0,[9156],(()=>s(6060)));return i=s.O(i)})()}));
|