@mw-kit/mw-ui 1.2.4 → 1.3.1

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/dist/index.js CHANGED
@@ -158,6 +158,9 @@ var typographies = {
158
158
  }
159
159
  };
160
160
 
161
+ var stripAccents = function stripAccents(value) {
162
+ return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
163
+ };
161
164
  var isKeyOf = function isKeyOf(object, key) {
162
165
  return Object.prototype.hasOwnProperty.call(object, key);
163
166
  };
@@ -171,6 +174,35 @@ var isObject = function isObject(value) {
171
174
  var isString = function isString(value) {
172
175
  return typeof value === 'string';
173
176
  };
177
+ var strCmp = function strCmp(x, y, options) {
178
+ if (options === void 0) {
179
+ options = {};
180
+ }
181
+
182
+ options = _extends({
183
+ ignoreAccents: true,
184
+ ignoreCase: true,
185
+ trim: true,
186
+ contain: false
187
+ }, options);
188
+
189
+ if (options.trim) {
190
+ x = x.trim();
191
+ y = y.trim();
192
+ }
193
+
194
+ if (options.ignoreCase) {
195
+ x = x.toUpperCase();
196
+ y = y.toUpperCase();
197
+ }
198
+
199
+ if (options.ignoreAccents) {
200
+ x = stripAccents(x);
201
+ y = stripAccents(y);
202
+ }
203
+
204
+ return options.contain ? x.includes(y) : x === y;
205
+ };
174
206
 
175
207
  var filterObject = function filterObject(object, keys, inital) {
176
208
  if (inital === void 0) {
@@ -11809,7 +11841,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
11809
11841
  }));
11810
11842
  };
11811
11843
 
11812
- var _templateObject$5, _templateObject2$3, _templateObject3$3, _templateObject4$3, _templateObject5$3;
11844
+ var _templateObject$5, _templateObject2$3, _templateObject3$3, _templateObject4$3;
11813
11845
  var Container$1 = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n"])), function (_ref) {
11814
11846
  var theme = _ref.theme;
11815
11847
  return theme.useTypography('p');
@@ -11817,10 +11849,9 @@ var Container$1 = styled__default.div(_templateObject$5 || (_templateObject$5 =
11817
11849
  var theme = _ref2.theme;
11818
11850
  return theme.spacings.s1;
11819
11851
  });
11820
- var OverflowContainer = styled__default.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n max-height: 100%;\n width: 100%;\n\n ", "\n\n scrollbar-color: ", ";\n scrollbar-width: auto;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ", ";\n"])), function (_ref3) {
11852
+ var OverflowContainer = styled__default.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n width: 100%;\n\n max-height: ", ";\n\n scrollbar-color: ", ";\n scrollbar-width: auto;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ", ";\n"])), function (_ref3) {
11821
11853
  var height = _ref3.height;
11822
- if (!height) return;
11823
- return styled.css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
11854
+ return height || '100%';
11824
11855
  }, function (_ref4) {
11825
11856
  var theme = _ref4.theme;
11826
11857
  return theme.colors.grey + " " + theme.colors.white;
@@ -11834,14 +11865,15 @@ var OverflowContainer = styled__default.div(_templateObject2$3 || (_templateObje
11834
11865
  var spacing = _ref7.spacing,
11835
11866
  theme = _ref7.theme;
11836
11867
  var value = getSpacings(spacing || '0', '0').split(' ');
11837
- return styled.css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
11868
+ return styled.css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
11838
11869
  });
11839
- var RelativeContainer = styled__default.div(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n"])));
11870
+ var RelativeContainer = styled__default.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n"])));
11840
11871
 
11841
11872
  var ScrollContainer = function ScrollContainer(props) {
11842
11873
  var before = props.before,
11843
11874
  after = props.after,
11844
- loading = props.loading;
11875
+ loading = props.loading,
11876
+ inner = props.inner;
11845
11877
 
11846
11878
  var onScrollEnd = props.onScrollEnd || function () {};
11847
11879
 
@@ -11868,7 +11900,7 @@ var ScrollContainer = function ScrollContainer(props) {
11868
11900
  var _onScroll = props.onScroll || function () {};
11869
11901
 
11870
11902
  var htmlProps = filterObject(props, ['onScrollEnd', 'before', 'after', 'loading']);
11871
- return React__default.createElement(Container$1, null, before, React__default.createElement(RelativeContainer, null, React__default.createElement(OverflowContainer, Object.assign({}, htmlProps, {
11903
+ return React__default.createElement(Container$1, null, before, React__default.createElement(RelativeContainer, null, inner || React__default.createElement(OverflowContainer, Object.assign({}, htmlProps, {
11872
11904
  onScroll: function onScroll(event) {
11873
11905
  _onScroll(event);
11874
11906
 
@@ -11879,27 +11911,31 @@ var ScrollContainer = function ScrollContainer(props) {
11879
11911
  })), after);
11880
11912
  };
11881
11913
 
11882
- var _templateObject$6, _templateObject2$4, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
11914
+ var _templateObject$6, _templateObject2$4, _templateObject3$4, _templateObject4$4, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
11883
11915
  var positions = {
11884
11916
  'top right': function topRight(_ref) {
11885
- var left = _ref.left;
11886
- return styled.css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n top: 0;\n left: ", ";\n "])), left || '100%');
11917
+ var bottom = _ref.bottom,
11918
+ left = _ref.left;
11919
+ return styled.css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n top: ", ";\n left: ", ";\n "])), bottom ? "calc(100% - " + bottom + ")" : 0, left || '100%');
11887
11920
  },
11888
11921
  'top left': function topLeft(_ref2) {
11889
- var right = _ref2.right;
11890
- return styled.css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n top: 0;\n right: ", ";\n "])), right || '100%');
11922
+ var bottom = _ref2.bottom,
11923
+ right = _ref2.right;
11924
+ return styled.css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n top: ", ";\n right: ", ";\n "])), bottom ? "calc(100% - " + bottom + ")" : 0, right || '100%');
11891
11925
  },
11892
11926
  'bottom right': function bottomRight(_ref3) {
11893
- var left = _ref3.left;
11894
- return styled.css(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n left: ", ";\n "])), left || '100%');
11927
+ var top = _ref3.top,
11928
+ left = _ref3.left;
11929
+ return styled.css(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n left: ", ";\n "])), top ? "calc(100% - " + top + ")" : 0, left || '100%');
11895
11930
  },
11896
11931
  'bottom left': function bottomLeft(_ref4) {
11897
- var right = _ref4.right;
11898
- return styled.css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n right: ", ";\n "])), right || '100%');
11932
+ var top = _ref4.top,
11933
+ right = _ref4.right;
11934
+ return styled.css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: ", ";\n "])), top ? "calc(100% - " + top + ")" : 0, right || '100%');
11899
11935
  },
11900
11936
  'right top': function rightTop(_ref5) {
11901
11937
  var bottom = _ref5.bottom;
11902
- return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: 0;\n "])), bottom || '100%');
11938
+ return styled.css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: 0;\n "])), bottom || '100%');
11903
11939
  },
11904
11940
  'right bottom': function rightBottom(_ref6) {
11905
11941
  var top = _ref6.top;
@@ -11953,7 +11989,6 @@ var Container$2 = styled__default.div(_templateObject9$1 || (_templateObject9$1
11953
11989
  });
11954
11990
 
11955
11991
  var AbsoluteContainer = function AbsoluteContainer(props) {
11956
- var disableAutoPosition = props.disableAutoPosition || props.position;
11957
11992
  var center = props.center || {
11958
11993
  x: 50,
11959
11994
  y: 75
@@ -11974,7 +12009,8 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
11974
12009
  setFirstRender = _useState3[1];
11975
12010
 
11976
12011
  React.useEffect(function () {
11977
- if (disableAutoPosition || !ref) return;
12012
+ setFirstRender(false);
12013
+ if (props.position || !ref) return;
11978
12014
  var width = window.innerWidth;
11979
12015
  var height = window.innerHeight;
11980
12016
 
@@ -11984,13 +12020,23 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
11984
12020
 
11985
12021
  var x = left * 100 / width;
11986
12022
  var y = top * 100 / height;
11987
- var xDirection = x > center.x ? 'left' : 'right';
11988
- var yDirection = y > center.y ? 'top' : 'bottom';
11989
- var newPosition = axis === 'y' ? xDirection + " " + yDirection : yDirection + " " + xDirection;
11990
- setPosition(newPosition);
11991
- setFirstRender(false);
12023
+
12024
+ if (axis === 'y') {
12025
+ var xDirection = x > center.x ? 'left' : 'right';
12026
+ var yDirection = y > center.y ? 'top' : 'bottom';
12027
+ var newPosition = xDirection + " " + yDirection;
12028
+ setPosition(newPosition);
12029
+ } else {
12030
+ var _xDirection = x > center.x ? 'left' : 'right';
12031
+
12032
+ var _yDirection = y > center.y ? 'bottom' : 'top';
12033
+
12034
+ var _newPosition = _yDirection + " " + _xDirection;
12035
+
12036
+ setPosition(_newPosition);
12037
+ }
11992
12038
  }, [ref]);
11993
- var htmlProps = filterObject(props, ['center', 'position', 'disableAutoPosition', 'children']);
12039
+ var htmlProps = filterObject(props, ['center', 'position', 'children']);
11994
12040
  return React__default.createElement(Container$2, Object.assign({}, htmlProps, {
11995
12041
  position: position,
11996
12042
  ref: setRef,
@@ -11998,7 +12044,7 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
11998
12044
  }), React__default.createElement("div", null, props.children));
11999
12045
  };
12000
12046
 
12001
- var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$5, _templateObject6$2, _templateObject7$2, _templateObject8$2;
12047
+ var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2;
12002
12048
  var Option = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
12003
12049
  var theme = _ref.theme;
12004
12050
  return theme.useTypography('p');
@@ -12017,29 +12063,36 @@ var Option = styled__default.div(_templateObject$7 || (_templateObject$7 = _tagg
12017
12063
  var theme = _ref4.theme;
12018
12064
  return theme.colors.iceWhite;
12019
12065
  });
12020
- var Container$3 = styled__default(AbsoluteContainer)(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n > div {\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref5) {
12066
+ var Container$3 = styled__default(AbsoluteContainer)(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref5) {
12021
12067
  var theme = _ref5.theme;
12022
12068
  return theme.colors.white;
12069
+ }, function (props) {
12070
+ if (!props.containerSpacing) return;
12071
+ var spacing = getSpacings(props.containerSpacing);
12072
+ var tmp = spacing.split(' ');
12073
+ tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
12074
+ spacing = tmp.join(' ');
12075
+ return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
12023
12076
  }, function (_ref6) {
12024
12077
  var bordered = _ref6.bordered;
12025
12078
  if (!bordered) return;
12026
- return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref7) {
12079
+ return styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref7) {
12027
12080
  var theme = _ref7.theme;
12028
12081
  return theme.getColor('greyishBlue', 10);
12029
12082
  });
12030
12083
  }, function (props) {
12031
12084
  var theme = props.theme;
12032
12085
 
12033
- if (!props.spacing) {
12034
- return styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
12086
+ if (!props.itemSpacing) {
12087
+ return styled.css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
12035
12088
  }
12036
12089
 
12037
- var spacing = getSpacings(props.spacing, {
12090
+ var spacing = getSpacings(props.itemSpacing, {
12038
12091
  right: '0'
12039
12092
  });
12040
- return styled.css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
12093
+ return styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
12041
12094
  });
12042
- var Delimiter = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref8) {
12095
+ var Delimiter = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref8) {
12043
12096
  var theme = _ref8.theme;
12044
12097
  return theme.useTypography('p');
12045
12098
  }, function (_ref9) {
@@ -12052,22 +12105,14 @@ var Menu = function Menu(props) {
12052
12105
  open = _props.open,
12053
12106
  close = _props.close,
12054
12107
  options = _props.options,
12055
- width = _props.width,
12056
- height = _props.height,
12057
- maxWidth = _props.maxWidth,
12058
- maxHeight = _props.maxHeight,
12059
- bordered = _props.bordered,
12060
- spacing = _props.spacing,
12061
- position = _props.position,
12062
- disableAutoPosition = _props.disableAutoPosition,
12063
- axis = _props.axis,
12064
- references = _props.references,
12065
12108
  onScrollEnd = _props.onScrollEnd,
12066
12109
  before = _props.before,
12067
12110
  after = _props.after,
12068
12111
  scrollHeight = _props.scrollHeight,
12069
12112
  scrollSpacing = _props.scrollSpacing,
12070
- loading = _props.loading;
12113
+ children = _props.children,
12114
+ loading = _props.loading,
12115
+ innerContent = _props.innerContent;
12071
12116
 
12072
12117
  var _useState = React.useState(-1),
12073
12118
  activeOption = _useState[0],
@@ -12098,22 +12143,15 @@ var Menu = function Menu(props) {
12098
12143
  }));
12099
12144
  };
12100
12145
 
12146
+ var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'onScrollEnd', 'before', 'after', 'scrollHeight', 'open', 'close', 'options', 'loading', 'children'], {
12147
+ itemSpacing: 's1'
12148
+ });
12101
12149
  if (!open) return React__default.createElement(React__default.Fragment, null);
12102
- return React__default.createElement(Container$3, {
12103
- width: width,
12104
- height: height,
12105
- maxWidth: maxWidth,
12106
- maxHeight: maxHeight,
12107
- position: position,
12108
- bordered: bordered,
12109
- spacing: spacing,
12110
- disableAutoPosition: disableAutoPosition,
12111
- axis: axis,
12112
- references: references
12113
- }, React__default.createElement(ScrollContainer, {
12150
+ return React__default.createElement(Container$3, Object.assign({}, absoluteContainerProps), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
12114
12151
  onScrollEnd: onScrollEnd,
12115
12152
  before: before,
12116
12153
  after: after,
12154
+ inner: innerContent,
12117
12155
  height: scrollHeight,
12118
12156
  spacing: scrollSpacing,
12119
12157
  loading: loading
@@ -12121,7 +12159,8 @@ var Menu = function Menu(props) {
12121
12159
  var _option = _extends({}, option),
12122
12160
  delimiter = _option.delimiter,
12123
12161
  keepOpen = _option.keepOpen,
12124
- submenu = _option.submenu;
12162
+ submenu = _option.submenu,
12163
+ caret = _option.caret;
12125
12164
 
12126
12165
  var label = isString(option.label) ? {
12127
12166
  text: option.label,
@@ -12181,15 +12220,15 @@ var Menu = function Menu(props) {
12181
12220
  }, React__default.createElement(Option, {
12182
12221
  onClick: onClick,
12183
12222
  disabled: disabled
12184
- }, isString(label.element) ? React__default.createElement(EllipsisContainer$1, null, label.element) : label.element, submenu && React__default.createElement(Icon, {
12223
+ }, isString(label.element) ? React__default.createElement(EllipsisContainer$1, null, label.element) : label.element, caret || submenu ? React__default.createElement(Icon, {
12185
12224
  type: 'semantic',
12186
12225
  icon: 'caret right',
12187
12226
  width: '14px'
12188
- })), delimiter && React__default.createElement(Delimiter, null));
12189
- })), getSubmenu(activeOption));
12227
+ }) : null), delimiter && React__default.createElement(Delimiter, null));
12228
+ })), children, getSubmenu(activeOption)));
12190
12229
  };
12191
12230
 
12192
- var _templateObject$8, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$6, _templateObject6$3;
12231
+ var _templateObject$8, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$5, _templateObject6$3;
12193
12232
  var Container$4 = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n div {\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n\n span {\n display: inline-block;\n margin-left: 8px;\n color: ", ";\n }\n"])), function (_ref) {
12194
12233
  var props = _ref.props;
12195
12234
  return props.size === 'medium' ? '15px' : '6px';
@@ -12216,7 +12255,7 @@ var Container$4 = styled__default.div(_templateObject$8 || (_templateObject$8 =
12216
12255
  });
12217
12256
  }, function (_ref9) {
12218
12257
  var props = _ref9.props;
12219
- return props.type === 'success' && styled.css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref10) {
12258
+ return props.type === 'success' && styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref10) {
12220
12259
  var theme = _ref10.theme;
12221
12260
  return theme.colors.green;
12222
12261
  });
@@ -12236,7 +12275,7 @@ var Indicator = function Indicator(props) {
12236
12275
  }, React__default.createElement("div", null), React__default.createElement("span", null, " ", props.description, " "));
12237
12276
  };
12238
12277
 
12239
- var _templateObject$9, _templateObject2$7, _templateObject3$7, _templateObject4$7, _templateObject5$7, _templateObject6$4, _templateObject7$3;
12278
+ var _templateObject$9, _templateObject2$7, _templateObject3$7, _templateObject4$7, _templateObject5$6, _templateObject6$4, _templateObject7$3;
12240
12279
  var Container$5 = styled__default.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
12241
12280
  var Progress = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
12242
12281
  return props.value + "%";
@@ -12251,7 +12290,7 @@ var Progress = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _
12251
12290
  return theme.colors.blue;
12252
12291
  });
12253
12292
  }, function (props) {
12254
- return props.type === 'danger' && styled.css(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref3) {
12293
+ return props.type === 'danger' && styled.css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref3) {
12255
12294
  var theme = _ref3.theme;
12256
12295
  return theme.colors.warningRed;
12257
12296
  });
@@ -12306,7 +12345,7 @@ function SvgClose(props) {
12306
12345
  })));
12307
12346
  }
12308
12347
 
12309
- var _templateObject$a, _templateObject2$8, _templateObject3$8, _templateObject4$8, _templateObject5$8, _templateObject6$5;
12348
+ var _templateObject$a, _templateObject2$8, _templateObject3$8, _templateObject4$8, _templateObject5$7, _templateObject6$5;
12310
12349
  var Container$6 = styled__default.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: block;\n border-bottom-style: solid;\n\n ", "\n"])), function (_ref) {
12311
12350
  var theme = _ref.theme,
12312
12351
  internal = _ref.internal;
@@ -12317,7 +12356,7 @@ var Tabs = styled__default.ul(_templateObject3$8 || (_templateObject3$8 = _tagge
12317
12356
  internal = _ref2.internal;
12318
12357
  return styled.css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n height: ", ";\n box-shadow: 0 0 10px 0 ", ";\n "])), internal ? '41px' : '49px', theme.getColor('black', 10));
12319
12358
  });
12320
- var Tab = styled__default.li(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 4px 4px 0 0;\n\n svg {\n transform: scale(calc(18 / 24));\n stroke-width: 2px;\n }\n\n ", "\n"])), function (_ref3) {
12359
+ var Tab = styled__default.li(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 4px 4px 0 0;\n\n svg {\n transform: scale(calc(18 / 24));\n stroke-width: 2px;\n }\n\n ", "\n"])), function (_ref3) {
12321
12360
  var theme = _ref3.theme,
12322
12361
  active = _ref3.active;
12323
12362
  return styled.css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 0 ", ";\n gap: ", ";\n\n span {\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n\n color: ", ";\n }\n\n svg {\n stroke: ", ";\n\n &:hover {\n stroke: ", ";\n }\n }\n "])), theme.colors[active ? 'blue' : 'white'], theme.spacings.s2, theme.spacings.s2, theme.typographies.h2.fontFamily, theme.typographies.h2.fontSize, theme.typographies.h2.fontWeight, theme.colors[active ? 'white' : 'darkBlue'], theme.colors[active ? 'white' : 'darkBlue'], theme.colors.red);
@@ -12409,7 +12448,7 @@ var getMask = function getMask(mask) {
12409
12448
  };
12410
12449
  };
12411
12450
 
12412
- var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$9, _templateObject5$9, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$2, _templateObject10$2, _templateObject11$1, _templateObject12$1;
12451
+ var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$1, _templateObject12$1;
12413
12452
  var IconContainer = styled__default.button(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " + 1px);\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12414
12453
  var theme = _ref.theme;
12415
12454
  return theme.spacings.s2;
@@ -12440,7 +12479,7 @@ var Input = styled__default.input(_templateObject3$9 || (_templateObject3$9 = _t
12440
12479
  });
12441
12480
  }
12442
12481
 
12443
- return styled.css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12482
+ return styled.css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12444
12483
  }, function (_ref8) {
12445
12484
  var theme = _ref8.theme;
12446
12485
  return theme.spacings.s2 + " " + theme.spacings.s3;
@@ -12475,7 +12514,7 @@ var Label = styled__default.label(_templateObject8$3 || (_templateObject8$3 = _t
12475
12514
  }, function (_ref16) {
12476
12515
  var disabled = _ref16.disabled;
12477
12516
  if (!disabled) return;
12478
- return styled.css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12517
+ return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12479
12518
  }, function (_ref17) {
12480
12519
  var theme = _ref17.theme;
12481
12520
  return theme.spacings.s1;
@@ -12653,7 +12692,7 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12653
12692
  });
12654
12693
  Input$1.displayName = 'Input';
12655
12694
 
12656
- var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$a, _templateObject5$a, _templateObject6$7, _templateObject7$5;
12695
+ var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$a, _templateObject5$9, _templateObject6$7, _templateObject7$5;
12657
12696
  var width = '17px';
12658
12697
  var Checkmark = styled__default.span(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0px;\n left: 0;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: ", ";\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n"])), width, width, function (_ref) {
12659
12698
  var theme = _ref.theme;
@@ -12719,7 +12758,7 @@ var Label$1 = styled__default.label(_templateObject2$a || (_templateObject2$a =
12719
12758
  return styled.css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12720
12759
  }
12721
12760
 
12722
- return styled.css(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12761
+ return styled.css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12723
12762
  }, width, function (_ref7) {
12724
12763
  var theme = _ref7.theme;
12725
12764
  return theme.spacings.s1;
@@ -12897,7 +12936,7 @@ var Time = React__default.forwardRef(function (props, ref) {
12897
12936
  });
12898
12937
  Time.displayName = 'Time';
12899
12938
 
12900
- var _templateObject$d, _templateObject2$b, _templateObject3$b, _templateObject4$b, _templateObject5$b, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$1;
12939
+ var _templateObject$d, _templateObject2$b, _templateObject3$b, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$4, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$1;
12901
12940
  var Container$7 = styled__default.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n display: inline-block;\n background-color: ", ";\n padding: ", ";\n\n > div:nth-child(1) {\n border: 1px solid ", ";\n margin-bottom: ", ";\n }\n"])), function (_ref) {
12902
12941
  var theme = _ref.theme;
12903
12942
  return theme.colors.white;
@@ -12920,7 +12959,7 @@ var MonthContainer = styled__default.div(_templateObject4$b || (_templateObject4
12920
12959
  var theme = _ref6.theme;
12921
12960
  return theme.spacings.s1;
12922
12961
  });
12923
- var NavBtn = styled__default.button(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n width: 32px;\n height: 32px;\n box-shadow: none;\n border: 0.5px solid transparent;\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n\n :disabled {\n visibility: hidden;\n }\n"])), function (_ref7) {
12962
+ var NavBtn = styled__default.button(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n width: 32px;\n height: 32px;\n box-shadow: none;\n border: 0.5px solid transparent;\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n\n :disabled {\n visibility: hidden;\n }\n"])), function (_ref7) {
12924
12963
  var theme = _ref7.theme;
12925
12964
  return theme.useTypography('p');
12926
12965
  });
@@ -12952,7 +12991,7 @@ var DayContainer = styled__default.button(_templateObject8$4 || (_templateObject
12952
12991
  color = _ref15.color;
12953
12992
 
12954
12993
  if (color === 'grey') {
12955
- return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('greyishBlue', 10));
12994
+ return styled.css(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('greyishBlue', 10));
12956
12995
  } else if (color === 'blue') {
12957
12996
  return styled.css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n :not(:disabled) {\n background-color: ", ";\n }\n "])), theme.colors.white, theme.getColor('blue', 30));
12958
12997
  }
@@ -13419,6 +13458,9 @@ var Header$1 = function Header() {
13419
13458
  setSearched = _context$search[1],
13420
13459
  loading = context.loading,
13421
13460
  options = context.options;
13461
+ React.useEffect(function () {
13462
+ setSearch(searched);
13463
+ }, [searched]);
13422
13464
 
13423
13465
  var onClick = function onClick() {
13424
13466
  setChecked(function (prev) {
@@ -13544,7 +13586,6 @@ var getOptions = function getOptions(props, options, checked, setChecked) {
13544
13586
 
13545
13587
  var Select = React__default.forwardRef(function (props, ref) {
13546
13588
  var position = props.position,
13547
- disableAutoPosition = props.disableAutoPosition,
13548
13589
  loader = props.loader,
13549
13590
  type = props.type;
13550
13591
 
@@ -13585,7 +13626,7 @@ var Select = React__default.forwardRef(function (props, ref) {
13585
13626
  };
13586
13627
 
13587
13628
  var parsedOptions = getOptions(props, options, checked, setChecked);
13588
- var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'disableAutoPosition', 'value']);
13629
+ var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']);
13589
13630
 
13590
13631
  if (props.type === 'select-multiple') {
13591
13632
  if (props.value.length > 0) {
@@ -13645,6 +13686,11 @@ var Select = React__default.forwardRef(function (props, ref) {
13645
13686
  return clearTimeout(timeoutId);
13646
13687
  };
13647
13688
  }, [onSubmit]);
13689
+ React.useEffect(function () {
13690
+ if (open) return;
13691
+ setSearch('');
13692
+ if (Array.isArray(props.value)) setChecked([].concat(props.value));
13693
+ }, [props.value, open]);
13648
13694
  return React__default.createElement(Provider.Provider, {
13649
13695
  value: {
13650
13696
  props: props,
@@ -13685,16 +13731,19 @@ var Select = React__default.forwardRef(function (props, ref) {
13685
13731
  onScrollEnd: onScrollEnd,
13686
13732
  width: '100%',
13687
13733
  bordered: true,
13688
- spacing: type === 'select-multiple' ? undefined : 's3',
13734
+ itemSpacing: type === 'select-multiple' ? undefined : 's3',
13689
13735
  position: position,
13690
- disableAutoPosition: disableAutoPosition,
13691
13736
  references: {
13692
13737
  bottom: '35px'
13693
13738
  },
13694
13739
  before: React__default.createElement(Header$1, null),
13695
13740
  after: React__default.createElement(Footer$1, null),
13696
13741
  scrollHeight: props.search ? '135px' : '165px',
13697
- loading: loading
13742
+ loading: loading,
13743
+ center: props.center || {
13744
+ x: 50,
13745
+ y: 50
13746
+ }
13698
13747
  })));
13699
13748
  });
13700
13749
  Select.displayName = 'Select';
@@ -14094,12 +14143,12 @@ var Phone = React__default.forwardRef(function (props, ref) {
14094
14143
  width: '100%',
14095
14144
  maxHeight: '165px',
14096
14145
  bordered: true,
14097
- spacing: 's3'
14146
+ itemSpacing: 's3'
14098
14147
  }));
14099
14148
  });
14100
14149
  Phone.displayName = 'Phone';
14101
14150
 
14102
- var _templateObject$i, _templateObject2$f, _templateObject3$e, _templateObject4$d, _templateObject5$c, _templateObject6$9;
14151
+ var _templateObject$i, _templateObject2$f, _templateObject3$e, _templateObject4$d, _templateObject5$b, _templateObject6$9;
14103
14152
  var RelativeContainer$4 = styled__default.div(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
14104
14153
  var Container$8 = styled__default.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n width: calc(100% - 2px - ", ");\n height: 33px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: ", ";\n border-radius: 4px;\n\n ", "\n\n ", "\n"])), function (_ref) {
14105
14154
  var iconWidth = _ref.iconWidth,
@@ -14118,7 +14167,7 @@ var Container$8 = styled__default.div(_templateObject2$f || (_templateObject2$f
14118
14167
  if (!disabled) return;
14119
14168
  return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14120
14169
  });
14121
- var Button$3 = styled__default.button(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref5) {
14170
+ var Button$3 = styled__default.button(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref5) {
14122
14171
  var onClick = _ref5.onClick;
14123
14172
  if (!onClick) return;
14124
14173
  return styled.css(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
@@ -14232,7 +14281,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
14232
14281
  });
14233
14282
  DatePicker.displayName = 'DatePicker';
14234
14283
 
14235
- var _templateObject$j, _templateObject2$g, _templateObject3$f, _templateObject4$e, _templateObject5$d, _templateObject6$a, _templateObject7$7;
14284
+ var _templateObject$j, _templateObject2$g, _templateObject3$f, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$7;
14236
14285
  var LabelContainer = styled__default.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n"])), function (_ref) {
14237
14286
  var theme = _ref.theme;
14238
14287
  return theme.useTypography('p');
@@ -14251,7 +14300,7 @@ var Label$3 = styled__default.label(_templateObject2$g || (_templateObject2$g =
14251
14300
  }, function (_ref4) {
14252
14301
  var required = _ref4.required;
14253
14302
  if (!required) return;
14254
- return styled.css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: '*';\n }\n }\n "])), LabelContainer);
14303
+ return styled.css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: '*';\n }\n }\n "])), LabelContainer);
14255
14304
  }, function (_ref5) {
14256
14305
  var invalid = _ref5.invalid;
14257
14306
 
@@ -14310,7 +14359,7 @@ var Switch = function Switch(props) {
14310
14359
  })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer, null, label));
14311
14360
  };
14312
14361
 
14313
- var _templateObject$k, _templateObject2$h, _templateObject3$g, _templateObject4$f, _templateObject5$e, _templateObject6$b, _templateObject7$8, _templateObject8$5, _templateObject9$4, _templateObject10$4, _templateObject11$3, _templateObject12$3, _templateObject13$2, _templateObject14$1, _templateObject15, _templateObject16;
14362
+ var _templateObject$k, _templateObject2$h, _templateObject3$g, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$8, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$3, _templateObject12$3, _templateObject13$2, _templateObject14$1, _templateObject15, _templateObject16;
14314
14363
  var bullet = styled.css(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
14315
14364
  var theme = _ref.theme;
14316
14365
  return theme.spacings.s4;
@@ -14341,7 +14390,7 @@ var Label$4 = styled__default.label(_templateObject3$g || (_templateObject3$g =
14341
14390
  }, function (_ref9) {
14342
14391
  var required = _ref9.required;
14343
14392
  if (!required) return;
14344
- return styled.css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
14393
+ return styled.css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
14345
14394
  });
14346
14395
  var InputContainer = styled__default.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
14347
14396
  var theme = _ref10.theme,
@@ -14353,7 +14402,7 @@ var InputContainer = styled__default.div(_templateObject6$b || (_templateObject6
14353
14402
 
14354
14403
  return styled.css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
14355
14404
  });
14356
- var MinMaxLabelContainer = styled__default.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
14405
+ var MinMaxLabelContainer = styled__default.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
14357
14406
  var LabelsContainer = styled__default.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
14358
14407
  var position = _ref11.position;
14359
14408
 
@@ -14520,7 +14569,7 @@ var Range = React__default.forwardRef(function (props, ref) {
14520
14569
  });
14521
14570
  Range.displayName = 'input';
14522
14571
 
14523
- var _templateObject$l, _templateObject2$i, _templateObject3$h, _templateObject4$g, _templateObject5$f, _templateObject6$c, _templateObject7$9;
14572
+ var _templateObject$l, _templateObject2$i, _templateObject3$h, _templateObject4$g, _templateObject5$e, _templateObject6$c, _templateObject7$9;
14524
14573
  var LabelContainer$1 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
14525
14574
  var theme = _ref.theme;
14526
14575
  return theme.useTypography('p');
@@ -14539,7 +14588,7 @@ var Label$5 = styled__default.label(_templateObject2$i || (_templateObject2$i =
14539
14588
  }, function (_ref4) {
14540
14589
  var required = _ref4.required;
14541
14590
  if (!required) return;
14542
- return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$1);
14591
+ return styled.css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$1);
14543
14592
  }, function (_ref5) {
14544
14593
  var invalid = _ref5.invalid;
14545
14594
 
@@ -14697,7 +14746,7 @@ var widths = {
14697
14746
  default: '642.5px'
14698
14747
  };
14699
14748
 
14700
- var _templateObject$m, _templateObject2$j, _templateObject3$i, _templateObject4$h, _templateObject5$g, _templateObject6$d, _templateObject7$a, _templateObject8$6, _templateObject9$5, _templateObject10$5;
14749
+ var _templateObject$m, _templateObject2$j, _templateObject3$i, _templateObject4$h, _templateObject5$f, _templateObject6$d, _templateObject7$a, _templateObject8$6, _templateObject9$6, _templateObject10$5;
14701
14750
  var Background = styled__default.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
14702
14751
  var theme = _ref.theme;
14703
14752
  return theme.getColor('black', 25);
@@ -14710,7 +14759,7 @@ var Header$2 = styled__default.div(_templateObject3$i || (_templateObject3$i = _
14710
14759
  useTypography = _ref2$theme.useTypography;
14711
14760
  return styled.css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
14712
14761
  });
14713
- var Footer$2 = styled__default.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
14762
+ var Footer$2 = styled__default.div(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
14714
14763
  var _ref3$theme = _ref3.theme,
14715
14764
  spacings = _ref3$theme.spacings,
14716
14765
  colors = _ref3$theme.colors;
@@ -14724,7 +14773,7 @@ var FooterButtons = styled__default.div(_templateObject8$6 || (_templateObject8$
14724
14773
  var theme = _ref5.theme;
14725
14774
  return theme.spacings.s3;
14726
14775
  });
14727
- var Container$9 = styled__default.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n ", "\n"])), function (_ref6) {
14776
+ var Container$9 = styled__default.div(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n ", "\n"])), function (_ref6) {
14728
14777
  var theme = _ref6.theme,
14729
14778
  size = _ref6.size,
14730
14779
  customSize = _ref6.customSize,
@@ -14926,7 +14975,7 @@ Modal$1.ConfirmDelete = ConfirmDelete;
14926
14975
  Modal$1.ConfirmEdit = ConfirmSuccess;
14927
14976
  Modal$1.Audit = Audit;
14928
14977
 
14929
- var _templateObject$q, _templateObject2$k, _templateObject3$j, _templateObject4$i, _templateObject5$h, _templateObject6$e, _templateObject7$b, _templateObject8$7, _templateObject9$6, _templateObject10$6;
14978
+ var _templateObject$q, _templateObject2$k, _templateObject3$j, _templateObject4$i, _templateObject5$g, _templateObject6$e, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$6;
14930
14979
  var Container$a = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
14931
14980
  return props.size === 'mini' && styled.css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
14932
14981
  }, function (props) {
@@ -14934,7 +14983,7 @@ var Container$a = styled__default.div(_templateObject$q || (_templateObject$q =
14934
14983
  }, function (props) {
14935
14984
  return props.size === 'medium' && styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
14936
14985
  }, function (props) {
14937
- return props.size === 'big' && styled.css(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
14986
+ return props.size === 'big' && styled.css(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
14938
14987
  }, function (props) {
14939
14988
  return props.borderType === 'info' && styled.css(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n border-left-color: #4d6dbe;\n "])));
14940
14989
  }, function (props) {
@@ -14942,7 +14991,7 @@ var Container$a = styled__default.div(_templateObject$q || (_templateObject$q =
14942
14991
  }, function (props) {
14943
14992
  return props.borderType === 'warning' && styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n border-left-color: #fbcb01;\n "])));
14944
14993
  }, function (props) {
14945
- return props.borderType === 'danger' && styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
14994
+ return props.borderType === 'danger' && styled.css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
14946
14995
  }, function (props) {
14947
14996
  return props.borderType === 'none' && styled.css(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
14948
14997
  });
@@ -14956,7 +15005,7 @@ var Card = function Card(_ref) {
14956
15005
  return React__default.createElement(Container$a, Object.assign({}, rest), children);
14957
15006
  };
14958
15007
 
14959
- var _templateObject$r, _templateObject2$l, _templateObject3$k, _templateObject4$j, _templateObject5$i, _templateObject6$f;
15008
+ var _templateObject$r, _templateObject2$l, _templateObject3$k, _templateObject4$j, _templateObject5$h, _templateObject6$f;
14960
15009
  var Container$b = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
14961
15010
  return props.size === 'large' ? '837px' : '460px';
14962
15011
  }, function (props) {
@@ -14966,7 +15015,7 @@ var Container$b = styled__default.div(_templateObject$r || (_templateObject$r =
14966
15015
  }, function (props) {
14967
15016
  return props.color === 'warning' && styled.css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
14968
15017
  });
14969
- var IconContainer$2 = styled__default.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
15018
+ var IconContainer$2 = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
14970
15019
  var IconContent = styled__default.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
14971
15020
 
14972
15021
  var Toast = function Toast(props) {
@@ -15085,12 +15134,12 @@ var CalendarInterval = function CalendarInterval(props) {
15085
15134
  })));
15086
15135
  };
15087
15136
 
15088
- var _templateObject$t, _templateObject2$m, _templateObject3$l, _templateObject4$k, _templateObject5$j, _templateObject6$g, _templateObject7$c, _templateObject8$8, _templateObject9$7, _templateObject10$7, _templateObject11$4;
15137
+ var _templateObject$t, _templateObject2$m, _templateObject3$l, _templateObject4$k, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$4;
15089
15138
  var Container$d = styled__default.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
15090
15139
  var Header$3 = styled__default.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
15091
15140
  var HeaderImage = styled__default.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15092
15141
  var HeaderContent = styled__default.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15093
- var MainContent = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
15142
+ var MainContent = styled__default.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
15094
15143
  var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
15095
15144
  return props.height;
15096
15145
  }, function (props) {
@@ -15098,7 +15147,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
15098
15147
  }, function (props) {
15099
15148
  return props.size === 'small' && styled.css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15100
15149
  }, function (props) {
15101
- return props.size === 'medium' && styled.css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15150
+ return props.size === 'medium' && styled.css(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15102
15151
  }, function (props) {
15103
15152
  return props.size === 'large' && styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15104
15153
  });
@@ -15137,7 +15186,7 @@ var Template1 = function Template1(props) {
15137
15186
  })));
15138
15187
  };
15139
15188
 
15140
- var _templateObject$u, _templateObject2$n, _templateObject3$m, _templateObject4$l, _templateObject5$k;
15189
+ var _templateObject$u, _templateObject2$n, _templateObject3$m, _templateObject4$l, _templateObject5$j;
15141
15190
  var HeaderLine$1 = styled__default.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
15142
15191
  return props.height;
15143
15192
  }, function (props) {
@@ -15147,15 +15196,15 @@ var HeaderLine$1 = styled__default.div(_templateObject$u || (_templateObject$u =
15147
15196
  }, function (props) {
15148
15197
  return props.size === 'medium' && styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15149
15198
  }, function (props) {
15150
- return props.size === 'large' && styled.css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15199
+ return props.size === 'large' && styled.css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15151
15200
  });
15152
15201
 
15153
- var _templateObject$v, _templateObject2$o, _templateObject3$n, _templateObject4$m, _templateObject5$l, _templateObject6$h, _templateObject7$d, _templateObject8$9;
15202
+ var _templateObject$v, _templateObject2$o, _templateObject3$n, _templateObject4$m, _templateObject5$k, _templateObject6$h, _templateObject7$d, _templateObject8$9;
15154
15203
  var Container$e = styled__default.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15155
15204
  var Template2Container = styled__default(Container$e)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
15156
15205
  var Header$4 = styled__default.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
15157
15206
  var HeaderImage$1 = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15158
- var HeaderContent$1 = styled__default.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15207
+ var HeaderContent$1 = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15159
15208
  var MainContent$1 = styled__default.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
15160
15209
  var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
15161
15210
  var HeaderLine$2 = styled__default(HeaderLine$1)(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose([""])));
@@ -15213,7 +15262,7 @@ var Template3 = function Template3(props) {
15213
15262
  }));
15214
15263
  };
15215
15264
 
15216
- var _templateObject$x, _templateObject2$q, _templateObject3$p, _templateObject4$n, _templateObject5$m, _templateObject6$i, _templateObject7$e, _templateObject8$a;
15265
+ var _templateObject$x, _templateObject2$q, _templateObject3$p, _templateObject4$n, _templateObject5$l, _templateObject6$i, _templateObject7$e, _templateObject8$a;
15217
15266
  var Container$g = styled__default.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15218
15267
  var HeaderLine$3 = styled__default.div(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
15219
15268
  return props.height;
@@ -15222,7 +15271,7 @@ var HeaderLine$3 = styled__default.div(_templateObject2$q || (_templateObject2$q
15222
15271
  }, function (props) {
15223
15272
  return props.size === 'small' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15224
15273
  }, function (props) {
15225
- return props.size === 'medium' && styled.css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15274
+ return props.size === 'medium' && styled.css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15226
15275
  }, function (props) {
15227
15276
  return props.size === 'large' && styled.css(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15228
15277
  });
@@ -15280,7 +15329,7 @@ var Template4 = function Template4(props) {
15280
15329
  }));
15281
15330
  };
15282
15331
 
15283
- var _templateObject$y, _templateObject2$r, _templateObject3$q, _templateObject4$o, _templateObject5$n, _templateObject6$j, _templateObject7$f, _templateObject8$b, _templateObject9$8;
15332
+ var _templateObject$y, _templateObject2$r, _templateObject3$q, _templateObject4$o, _templateObject5$m, _templateObject6$j, _templateObject7$f, _templateObject8$b, _templateObject9$9;
15284
15333
  var Container$h = styled__default.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
15285
15334
  var Circle = styled__default.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
15286
15335
  var HeaderLine$4 = styled__default.div(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -15288,7 +15337,7 @@ var HeaderLine$4 = styled__default.div(_templateObject3$q || (_templateObject3$q
15288
15337
  }, function (props) {
15289
15338
  return props.size === 'mini' && styled.css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15290
15339
  }, function (props) {
15291
- return props.size === 'small' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15340
+ return props.size === 'small' && styled.css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15292
15341
  }, function (props) {
15293
15342
  return props.size === 'medium' && styled.css(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15294
15343
  }, function (props) {
@@ -15301,7 +15350,7 @@ var CustomLine$1 = styled__default(HeaderLine$4)(_templateObject8$b || (_templat
15301
15350
  }, function (props) {
15302
15351
  return props.color;
15303
15352
  });
15304
- var MainContent$2 = styled__default.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n flex: 1;\n margin-left: 35px;\n"])));
15353
+ var MainContent$2 = styled__default.div(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n margin-left: 35px;\n"])));
15305
15354
 
15306
15355
  var Template5 = function Template5(props) {
15307
15356
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -15328,14 +15377,14 @@ var Template5 = function Template5(props) {
15328
15377
  })));
15329
15378
  };
15330
15379
 
15331
- var _templateObject$z, _templateObject2$s, _templateObject3$r, _templateObject4$p, _templateObject5$o, _templateObject6$k, _templateObject7$g, _templateObject8$c, _templateObject9$9;
15380
+ var _templateObject$z, _templateObject2$s, _templateObject3$r, _templateObject4$p, _templateObject5$n, _templateObject6$k, _templateObject7$g, _templateObject8$c, _templateObject9$a;
15332
15381
  var Container$i = styled__default.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
15333
15382
  var Header$5 = styled__default.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
15334
15383
  var Footer$3 = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
15335
15384
  var HeaderLine$5 = styled__default.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
15336
15385
  return props.height;
15337
15386
  }, function (props) {
15338
- return props.size === 'mini' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15387
+ return props.size === 'mini' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15339
15388
  }, function (props) {
15340
15389
  return props.size === 'small' && styled.css(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15341
15390
  }, function (props) {
@@ -15343,7 +15392,7 @@ var HeaderLine$5 = styled__default.div(_templateObject4$p || (_templateObject4$p
15343
15392
  }, function (props) {
15344
15393
  return props.size === 'large' && styled.css(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15345
15394
  });
15346
- var CustomLine$2 = styled__default(HeaderLine$5)(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
15395
+ var CustomLine$2 = styled__default(HeaderLine$5)(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
15347
15396
  return props.width;
15348
15397
  }, function (props) {
15349
15398
  return props.height;
@@ -15371,7 +15420,7 @@ var Template6 = function Template6(props) {
15371
15420
  })));
15372
15421
  };
15373
15422
 
15374
- var _templateObject$A, _templateObject2$t, _templateObject3$s, _templateObject4$q, _templateObject5$p, _templateObject6$l, _templateObject7$h, _templateObject8$d, _templateObject9$a, _templateObject10$8;
15423
+ var _templateObject$A, _templateObject2$t, _templateObject3$s, _templateObject4$q, _templateObject5$o, _templateObject6$l, _templateObject7$h, _templateObject8$d, _templateObject9$b, _templateObject10$8;
15375
15424
  var Container$j = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
15376
15425
  var Header$6 = styled__default.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15377
15426
  var HeaderLine$6 = styled__default.div(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -15379,7 +15428,7 @@ var HeaderLine$6 = styled__default.div(_templateObject3$s || (_templateObject3$s
15379
15428
  }, function (props) {
15380
15429
  return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15381
15430
  }, function (props) {
15382
- return props.size === 'small' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15431
+ return props.size === 'small' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15383
15432
  }, function (props) {
15384
15433
  return props.size === 'medium' && styled.css(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15385
15434
  }, function (props) {
@@ -15392,7 +15441,7 @@ var CustomLine$3 = styled__default(HeaderLine$6)(_templateObject8$d || (_templat
15392
15441
  }, function (props) {
15393
15442
  return props.color;
15394
15443
  });
15395
- var Main = styled__default.div(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
15444
+ var Main = styled__default.div(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
15396
15445
  var Circle$1 = styled__default.div(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
15397
15446
 
15398
15447
  var Template7 = function Template7(props) {
@@ -15405,7 +15454,7 @@ var Template7 = function Template7(props) {
15405
15454
  })), React__default.createElement(Main, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
15406
15455
  };
15407
15456
 
15408
- var _templateObject$B, _templateObject2$u, _templateObject3$t, _templateObject4$r, _templateObject5$q, _templateObject6$m, _templateObject7$i, _templateObject8$e, _templateObject9$b;
15457
+ var _templateObject$B, _templateObject2$u, _templateObject3$t, _templateObject4$r, _templateObject5$p, _templateObject6$m, _templateObject7$i, _templateObject8$e, _templateObject9$c;
15409
15458
  var Container$k = styled__default.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
15410
15459
  var Header$7 = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15411
15460
  var HeaderLine$7 = styled__default.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -15413,7 +15462,7 @@ var HeaderLine$7 = styled__default.div(_templateObject3$t || (_templateObject3$t
15413
15462
  }, function (props) {
15414
15463
  return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15415
15464
  }, function (props) {
15416
- return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15465
+ return props.size === 'small' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15417
15466
  }, function (props) {
15418
15467
  return props.size === 'medium' && styled.css(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15419
15468
  }, function (props) {
@@ -15426,7 +15475,7 @@ var CustomLine$4 = styled__default(HeaderLine$7)(_templateObject8$e || (_templat
15426
15475
  }, function (props) {
15427
15476
  return props.color;
15428
15477
  });
15429
- var Main$1 = styled__default.div(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
15478
+ var Main$1 = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
15430
15479
 
15431
15480
  var Template8 = function Template8(props) {
15432
15481
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -15448,7 +15497,7 @@ var Template8 = function Template8(props) {
15448
15497
  })));
15449
15498
  };
15450
15499
 
15451
- var _templateObject$C, _templateObject2$v, _templateObject3$u, _templateObject4$s, _templateObject5$r, _templateObject6$n, _templateObject7$j, _templateObject8$f, _templateObject9$c, _templateObject10$9;
15500
+ var _templateObject$C, _templateObject2$v, _templateObject3$u, _templateObject4$s, _templateObject5$q, _templateObject6$n, _templateObject7$j, _templateObject8$f, _templateObject9$d, _templateObject10$9;
15452
15501
  var Container$l = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
15453
15502
  var Header$8 = styled__default.div(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15454
15503
  var HeaderLine$8 = styled__default.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -15456,7 +15505,7 @@ var HeaderLine$8 = styled__default.div(_templateObject3$u || (_templateObject3$u
15456
15505
  }, function (props) {
15457
15506
  return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15458
15507
  }, function (props) {
15459
- return props.size === 'small' && styled.css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15508
+ return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15460
15509
  }, function (props) {
15461
15510
  return props.size === 'medium' && styled.css(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15462
15511
  }, function (props) {
@@ -15469,7 +15518,7 @@ var CustomLine$5 = styled__default(HeaderLine$8)(_templateObject8$f || (_templat
15469
15518
  }, function (props) {
15470
15519
  return props.color;
15471
15520
  });
15472
- var Main$2 = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
15521
+ var Main$2 = styled__default.div(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
15473
15522
  var Circle$2 = styled__default.div(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
15474
15523
 
15475
15524
  var Template8$1 = function Template8(props) {
@@ -15487,7 +15536,7 @@ var Template8$1 = function Template8(props) {
15487
15536
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
15488
15537
  };
15489
15538
 
15490
- var _templateObject$D, _templateObject2$w, _templateObject3$v, _templateObject4$t, _templateObject5$s, _templateObject6$o, _templateObject7$k, _templateObject8$g, _templateObject9$d, _templateObject10$a, _templateObject11$5;
15539
+ var _templateObject$D, _templateObject2$w, _templateObject3$v, _templateObject4$t, _templateObject5$r, _templateObject6$o, _templateObject7$k, _templateObject8$g, _templateObject9$e, _templateObject10$a, _templateObject11$5;
15491
15540
  var Container$m = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
15492
15541
  var Header$9 = styled__default.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15493
15542
  var HeaderLine$9 = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -15495,7 +15544,7 @@ var HeaderLine$9 = styled__default.div(_templateObject3$v || (_templateObject3$v
15495
15544
  }, function (props) {
15496
15545
  return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15497
15546
  }, function (props) {
15498
- return props.size === 'small' && styled.css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15547
+ return props.size === 'small' && styled.css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15499
15548
  }, function (props) {
15500
15549
  return props.size === 'medium' && styled.css(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15501
15550
  }, function (props) {
@@ -15508,7 +15557,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$g || (_templat
15508
15557
  }, function (props) {
15509
15558
  return props.color;
15510
15559
  });
15511
- var GraphLine = styled__default(CustomLine$6)(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
15560
+ var GraphLine = styled__default(CustomLine$6)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
15512
15561
  var Main$3 = styled__default.div(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
15513
15562
  var Circle$3 = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
15514
15563
 
@@ -15631,7 +15680,7 @@ var Placeholder = function Placeholder(props) {
15631
15680
  }
15632
15681
  };
15633
15682
 
15634
- var _templateObject$E, _templateObject2$x, _templateObject3$w, _templateObject4$u, _templateObject5$t;
15683
+ var _templateObject$E, _templateObject2$x, _templateObject3$w, _templateObject4$u, _templateObject5$s;
15635
15684
  var Image = styled__default.img(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
15636
15685
  var Container$n = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
15637
15686
  var width = _ref.width;
@@ -15668,7 +15717,7 @@ var Button$4 = styled__default(Button$1)(_templateObject4$u || (_templateObject4
15668
15717
  var theme = _ref4.theme;
15669
15718
  return theme.getColor('white', 50);
15670
15719
  });
15671
- var ModalContent = styled__default.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n\n img {\n max-height: 100%;\n max-width: 100%;\n }\n"])));
15720
+ var ModalContent = styled__default.div(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n\n img {\n max-height: 100%;\n max-width: 100%;\n }\n"])));
15672
15721
 
15673
15722
  var _excluded$3 = ["src", "defaultClickOptions"];
15674
15723
 
@@ -15704,6 +15753,331 @@ var Zoom = function Zoom(props) {
15704
15753
  }))));
15705
15754
  };
15706
15755
 
15756
+ var _templateObject$F;
15757
+ var Container$o = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
15758
+ var _ref$theme$spacings = _ref.theme.spacings,
15759
+ s1 = _ref$theme$spacings.s1,
15760
+ s3 = _ref$theme$spacings.s3;
15761
+ return "0 calc(" + s3 + " * .75) " + s1 + " " + s1;
15762
+ }, function (_ref2) {
15763
+ var s3 = _ref2.theme.spacings.s3;
15764
+ return s3;
15765
+ }, function (_ref3) {
15766
+ var useTypography = _ref3.theme.useTypography;
15767
+ return useTypography('p');
15768
+ }, function (_ref4) {
15769
+ var getColor = _ref4.theme.getColor;
15770
+ return getColor('greyishBlue', 50);
15771
+ });
15772
+
15773
+ var Header$a = function Header(props) {
15774
+ var title = props.title,
15775
+ _props$search = props.search,
15776
+ searched = _props$search[0],
15777
+ _setSearched = _props$search[1],
15778
+ allowEmptySearch = props.allowEmptySearch,
15779
+ withSearch = props.withSearch,
15780
+ _props$touched = props.touched,
15781
+ setTouched = _props$touched[1];
15782
+
15783
+ var _useState = React.useState(''),
15784
+ search = _useState[0],
15785
+ setSearch = _useState[1];
15786
+
15787
+ var setSearched = allowEmptySearch ? _setSearched : function (value) {
15788
+ if (value === '') return;
15789
+
15790
+ _setSearched(value);
15791
+
15792
+ setTouched(true);
15793
+ };
15794
+ React.useEffect(function () {
15795
+ setSearch(searched);
15796
+ }, [searched]);
15797
+
15798
+ var onSubmit = function onSubmit() {
15799
+ setSearched(search);
15800
+ };
15801
+
15802
+ var onClear = function onClear() {
15803
+ setSearch('');
15804
+ setSearched('');
15805
+ };
15806
+
15807
+ return React__default.createElement(Container$o, null, React__default.createElement("div", null, isString(title) ? title : title.element), withSearch && React__default.createElement(Input$3, {
15808
+ type: 'search',
15809
+ placeholder: 'Pesquisa',
15810
+ setValue: setSearch,
15811
+ value: search,
15812
+ onPressEnter: onSubmit,
15813
+ clearable: search !== '' && search === searched ? onClear : undefined,
15814
+ icon: {
15815
+ icon: {
15816
+ type: 'feather',
15817
+ icon: 'search'
15818
+ },
15819
+ onClick: onSubmit
15820
+ }
15821
+ }));
15822
+ };
15823
+
15824
+ var _templateObject$G;
15825
+ var EmptyMessage = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
15826
+ var lightGrey = _ref.theme.colors.lightGrey;
15827
+ return lightGrey;
15828
+ });
15829
+
15830
+ var getInstance = function getInstance(props) {
15831
+ var item = props.item;
15832
+
15833
+ if (Array.isArray(item.options)) {
15834
+ var intialOptions = [].concat(item.options);
15835
+
15836
+ var _getOptions = function _getOptions(value) {
15837
+ try {
15838
+ var options = intialOptions.filter(function (option) {
15839
+ var label = isString(option.label) ? option.label : option.label.text;
15840
+ return strCmp(label, value, {
15841
+ contain: true
15842
+ });
15843
+ });
15844
+ return Promise.resolve({
15845
+ options: options,
15846
+ lastPage: true
15847
+ });
15848
+ } catch (e) {
15849
+ return Promise.reject(e);
15850
+ }
15851
+ };
15852
+
15853
+ return {
15854
+ getOptions: _getOptions
15855
+ };
15856
+ }
15857
+
15858
+ var loader = item.options;
15859
+
15860
+ var getOptions = function getOptions(value, page) {
15861
+ try {
15862
+ return Promise.resolve(loader(value, page)).then(function (options) {
15863
+ return Array.isArray(options) ? {
15864
+ options: options,
15865
+ lastPage: true
15866
+ } : options;
15867
+ });
15868
+ } catch (e) {
15869
+ return Promise.reject(e);
15870
+ }
15871
+ };
15872
+
15873
+ return {
15874
+ getOptions: getOptions
15875
+ };
15876
+ };
15877
+
15878
+ var Submenu = function Submenu(props) {
15879
+ var item = props.item,
15880
+ close = props.close,
15881
+ setAppliedFilters = props.setAppliedFilters;
15882
+ var isDynamic = !Array.isArray(item.options);
15883
+
15884
+ var _getInstance = getInstance(props),
15885
+ getOptions = _getInstance.getOptions;
15886
+
15887
+ var _useState = React.useState([]),
15888
+ options = _useState[0],
15889
+ setOptions = _useState[1];
15890
+
15891
+ var _useState2 = React.useState(1),
15892
+ page = _useState2[0],
15893
+ setPage = _useState2[1];
15894
+
15895
+ var _useState3 = React.useState(''),
15896
+ search = _useState3[0],
15897
+ _setSearch = _useState3[1];
15898
+
15899
+ var _useState4 = React.useState(false),
15900
+ lastPage = _useState4[0],
15901
+ setLastPage = _useState4[1];
15902
+
15903
+ var _useState5 = React.useState(false),
15904
+ loading = _useState5[0],
15905
+ setLoading = _useState5[1];
15906
+
15907
+ var _useState6 = React.useState(false),
15908
+ touched = _useState6[0],
15909
+ setTouched = _useState6[1];
15910
+
15911
+ var setSearch = function setSearch(value) {
15912
+ _setSearch(value);
15913
+
15914
+ setPage(1);
15915
+ };
15916
+
15917
+ var onSearch = React.useCallback(function () {
15918
+ try {
15919
+ return Promise.resolve(getOptions(search, page)).then(function (_ref) {
15920
+ var newOptions = _ref.options,
15921
+ lastPage = _ref.lastPage;
15922
+ setLastPage(lastPage);
15923
+ setOptions([].concat(newOptions));
15924
+ setLoading(false);
15925
+ });
15926
+ } catch (e) {
15927
+ return Promise.reject(e);
15928
+ }
15929
+ }, [item, search, page]);
15930
+ React.useEffect(function () {
15931
+ setOptions([]);
15932
+ setSearch('');
15933
+ setTouched(false);
15934
+ }, [item]);
15935
+ React.useEffect(function () {
15936
+ if (isDynamic && !touched) {
15937
+ setLoading(false);
15938
+ return;
15939
+ }
15940
+
15941
+ setLoading(true);
15942
+ var timeoutId = setTimeout(function () {
15943
+ return onSearch();
15944
+ }, 250);
15945
+ return function () {
15946
+ return clearTimeout(timeoutId);
15947
+ };
15948
+ }, [touched, onSearch]);
15949
+
15950
+ var onClickOption = function onClickOption(index) {
15951
+ var option = options[index];
15952
+ setAppliedFilters(function (prev) {
15953
+ var newState = [].concat(prev);
15954
+ var index = newState.findIndex(function (filter) {
15955
+ return filter.name === item.name;
15956
+ });
15957
+
15958
+ if (index !== -1) {
15959
+ if (newState[index].value === option.value) return prev;
15960
+ newState[index].value = option.value;
15961
+ return [].concat(newState);
15962
+ }
15963
+
15964
+ newState.push({
15965
+ name: item.name,
15966
+ labels: {
15967
+ filter: isString(item.label) ? {
15968
+ text: item.label,
15969
+ element: item.label
15970
+ } : item.label,
15971
+ option: isString(option.label) ? {
15972
+ text: option.label,
15973
+ element: option.label
15974
+ } : option.label
15975
+ },
15976
+ value: option.value
15977
+ });
15978
+ return newState;
15979
+ });
15980
+ };
15981
+
15982
+ var optionsParser = function optionsParser(option) {
15983
+ return {
15984
+ label: option.label,
15985
+ data: {
15986
+ value: option.value
15987
+ },
15988
+ onClick: onClickOption
15989
+ };
15990
+ };
15991
+
15992
+ var onScrollEnd = function onScrollEnd() {
15993
+ if (lastPage) return;
15994
+ setPage(function (prev) {
15995
+ return prev + 1;
15996
+ });
15997
+ };
15998
+
15999
+ var itemSpacing = item.optionSpacing || isDynamic ? 's3' : 's1';
16000
+ return React__default.createElement(Menu, {
16001
+ open: true,
16002
+ axis: 'x',
16003
+ options: options.map(optionsParser),
16004
+ close: close,
16005
+ width: isDynamic ? '275px' : '160px',
16006
+ height: '261px',
16007
+ containerSpacing: {
16008
+ top: 's3',
16009
+ left: 's1',
16010
+ bottom: isDynamic ? 's3' : 's1'
16011
+ },
16012
+ onScrollEnd: onScrollEnd,
16013
+ itemSpacing: {
16014
+ top: itemSpacing,
16015
+ left: 's1',
16016
+ bottom: itemSpacing
16017
+ },
16018
+ bordered: isDynamic,
16019
+ before: React__default.createElement(Header$a, {
16020
+ title: item.label,
16021
+ search: [search, setSearch],
16022
+ touched: [touched, setTouched],
16023
+ allowEmptySearch: item.allowEmptySearch,
16024
+ withSearch: isDynamic
16025
+ }),
16026
+ loading: loading,
16027
+ innerContent: isDynamic && options.length === 0 ? React__default.createElement(EmptyMessage, null, function () {
16028
+ if (search !== '') {
16029
+ return React__default.createElement(React__default.Fragment, null, "Nenhum resultado foi encontrado");
16030
+ }
16031
+
16032
+ return React__default.createElement(React__default.Fragment, null, "Utilize a busca para pesquisar por ", React__default.createElement("br", null), isString(item.label) ? item.label : item.label.text);
16033
+ }()) : undefined
16034
+ });
16035
+ };
16036
+
16037
+ var FilterMenu = function FilterMenu(props) {
16038
+ var _useState = React.useState(-1),
16039
+ active = _useState[0],
16040
+ setActive = _useState[1];
16041
+
16042
+ var items = props.items.map(function (item) {
16043
+ return {
16044
+ label: item.label,
16045
+ delimiter: item.delimiter,
16046
+ keepOpen: true,
16047
+ caret: true,
16048
+ onClick: function onClick(index) {
16049
+ setActive(function (prev) {
16050
+ return prev === index ? -1 : index;
16051
+ });
16052
+ }
16053
+ };
16054
+ });
16055
+ var selected = active >= 0 && active < props.items.length ? props.items[active] : null;
16056
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Menu, {
16057
+ open: props.open,
16058
+ options: items,
16059
+ close: props.close,
16060
+ width: '160px',
16061
+ height: '261px',
16062
+ containerSpacing: {
16063
+ top: 's1',
16064
+ left: 's1',
16065
+ bottom: 's1'
16066
+ },
16067
+ itemSpacing: {
16068
+ top: 's1',
16069
+ left: 's1',
16070
+ bottom: 's1'
16071
+ }
16072
+ }, selected && React__default.createElement(Submenu, {
16073
+ item: selected,
16074
+ close: function close() {
16075
+ return setActive(-1);
16076
+ },
16077
+ setAppliedFilters: props.setAppliedFilters
16078
+ })));
16079
+ };
16080
+
15707
16081
  var theme = {
15708
16082
  sizes: sizes,
15709
16083
  fontSizes: fontSizes
@@ -15713,14 +16087,14 @@ var theme$1 = {
15713
16087
  button: theme
15714
16088
  };
15715
16089
 
15716
- var _templateObject$F;
15717
- var FontStyles = styled.createGlobalStyle(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n"])));
16090
+ var _templateObject$H;
16091
+ var FontStyles = styled.createGlobalStyle(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n"])));
15718
16092
 
15719
16093
  var Globals = function Globals() {
15720
16094
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
15721
16095
  };
15722
16096
 
15723
- var _templateObject$G;
16097
+ var _templateObject$I;
15724
16098
 
15725
16099
  var getColor$1 = function getColor(color, opacity) {
15726
16100
  if (opacity === void 0) {
@@ -15735,7 +16109,7 @@ var useTypography = function useTypography(typography) {
15735
16109
  fontFamily = _typographies$typogra.fontFamily,
15736
16110
  fontWeight = _typographies$typogra.fontWeight,
15737
16111
  fontSize = _typographies$typogra.fontSize;
15738
- return styled.css(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, fontWeight, fontSize);
16112
+ return styled.css(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, fontWeight, fontSize);
15739
16113
  };
15740
16114
 
15741
16115
  var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
@@ -15795,6 +16169,7 @@ exports.MwCalendarInterval = CalendarInterval;
15795
16169
  exports.MwCard = Card;
15796
16170
  exports.MwDatePicker = Calendar;
15797
16171
  exports.MwEllipsisContainer = EllipsisContainer$1;
16172
+ exports.MwFilterMenu = FilterMenu;
15798
16173
  exports.MwIcon = Icon;
15799
16174
  exports.MwIndicator = Indicator;
15800
16175
  exports.MwInput = Input$3;