@bigbinary/neeto-filters-frontend 3.0.4 → 3.0.5

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
@@ -1,47 +1,43 @@
1
1
  import React, { useState, useRef, useEffect, useTransition, useMemo } from 'react';
2
2
  import classnames from 'classnames';
3
- import { curryN, isNil, complement, isEmpty, curry, either, groupBy, anyPass, any, toLower, mergeLeft, identity, omit, mergeRight, toPairs, concat, pluck, has as has$1, equals, pick, modify, prop, isNotNil, append, last, not } from 'ramda';
3
+ import { capitalize, removeBy, findBy, isNotEmpty, humanize, noop as noop$1, toLabelAndValue, replaceBy, isPresent, existsBy, filterBy } from '@bigbinary/neeto-cist';
4
4
  import { useHotKeys, useMutationWithInvalidation, useQueryParams, useDebounce, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
5
5
  import { getQueryParams, dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
6
6
  import { Tooltip, Typography, Dropdown as Dropdown$2, Button, Pane as Pane$1, Alert, Select, DatePicker, TimePicker, Input as Input$1, Accordion, Spinner } from '@bigbinary/neetoui';
7
+ import { groupBy, anyPass, isNil, isEmpty, any, toLower, mergeLeft, identity, omit, mergeRight, toPairs, not, pluck, either, has, concat, equals, pick, modify, prop, isNotNil, append, last } from 'ramda';
7
8
  import { useTranslation, Trans } from 'react-i18next';
8
9
  import { useHistory, useLocation } from 'react-router-dom';
9
- import { Close, MenuHorizontal, Down, Search as Search$1, Settings } from '@bigbinary/neeto-icons';
10
+ import { Close, Search, MenuHorizontal, Down, Settings } from '@bigbinary/neeto-icons';
10
11
  import i18next, { t as t$1 } from 'i18next';
11
- import dayjs from 'dayjs';
12
12
  import * as yup from 'yup';
13
- import timezone from 'dayjs/plugin/timezone';
14
- import utc from 'dayjs/plugin/utc';
15
- import weekday from 'dayjs/plugin/weekday';
16
13
  import { Form, Input, ActionBlock } from '@bigbinary/neetoui/formik';
17
14
  import { useQuery } from 'react-query';
18
15
  import axios from 'axios';
19
- import Search from '@bigbinary/neeto-molecules/Search';
20
16
  import ReactDOM, { createPortal } from 'react-dom';
21
17
  import MenuBar from '@bigbinary/neeto-molecules/MenuBar';
22
18
  import { FormikInlineInput } from '@bigbinary/neeto-molecules/InlineInput';
23
19
 
24
- function _arrayLikeToArray$1(arr, len) {
20
+ function _arrayLikeToArray(arr, len) {
25
21
  if (len == null || len > arr.length) len = arr.length;
26
22
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
27
23
  return arr2;
28
24
  }
29
25
 
30
26
  function _arrayWithoutHoles(arr) {
31
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
27
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
32
28
  }
33
29
 
34
30
  function _iterableToArray(iter) {
35
31
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
36
32
  }
37
33
 
38
- function _unsupportedIterableToArray$1(o, minLen) {
34
+ function _unsupportedIterableToArray(o, minLen) {
39
35
  if (!o) return;
40
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
36
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
41
37
  var n = Object.prototype.toString.call(o).slice(8, -1);
42
38
  if (n === "Object" && o.constructor) n = o.constructor.name;
43
39
  if (n === "Map" || n === "Set") return Array.from(o);
44
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
40
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
45
41
  }
46
42
 
47
43
  function _nonIterableSpread() {
@@ -49,25 +45,25 @@ function _nonIterableSpread() {
49
45
  }
50
46
 
51
47
  function _toConsumableArray(arr) {
52
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
48
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
53
49
  }
54
50
 
55
- function _typeof$1(obj) {
51
+ function _typeof(obj) {
56
52
  "@babel/helpers - typeof";
57
53
 
58
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
54
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
59
55
  return typeof obj;
60
56
  } : function (obj) {
61
57
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
62
- }, _typeof$1(obj);
58
+ }, _typeof(obj);
63
59
  }
64
60
 
65
61
  function _toPrimitive(input, hint) {
66
- if (_typeof$1(input) !== "object" || input === null) return input;
62
+ if (_typeof(input) !== "object" || input === null) return input;
67
63
  var prim = input[Symbol.toPrimitive];
68
64
  if (prim !== undefined) {
69
65
  var res = prim.call(input, hint || "default");
70
- if (_typeof$1(res) !== "object") return res;
66
+ if (_typeof(res) !== "object") return res;
71
67
  throw new TypeError("@@toPrimitive must return a primitive value.");
72
68
  }
73
69
  return (hint === "string" ? String : Number)(input);
@@ -75,7 +71,7 @@ function _toPrimitive(input, hint) {
75
71
 
76
72
  function _toPropertyKey(arg) {
77
73
  var key = _toPrimitive(arg, "string");
78
- return _typeof$1(key) === "symbol" ? key : String(key);
74
+ return _typeof(key) === "symbol" ? key : String(key);
79
75
  }
80
76
 
81
77
  function _defineProperty(obj, key, value) {
@@ -93,153 +89,6 @@ function _defineProperty(obj, key, value) {
93
89
  return obj;
94
90
  }
95
91
 
96
- function _arrayWithHoles$1(arr) {
97
- if (Array.isArray(arr)) return arr;
98
- }
99
-
100
- function _iterableToArrayLimit$1(arr, i) {
101
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
102
- if (null != _i) {
103
- var _s,
104
- _e,
105
- _x,
106
- _r,
107
- _arr = [],
108
- _n = !0,
109
- _d = !1;
110
- try {
111
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
112
- if (Object(_i) !== _i) return;
113
- _n = !1;
114
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
115
- } catch (err) {
116
- _d = !0, _e = err;
117
- } finally {
118
- try {
119
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
120
- } finally {
121
- if (_d) throw _e;
122
- }
123
- }
124
- return _arr;
125
- }
126
- }
127
-
128
- function _arrayLikeToArray(arr, len) {
129
- if (len == null || len > arr.length) len = arr.length;
130
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
131
- return arr2;
132
- }
133
-
134
- function _unsupportedIterableToArray(o, minLen) {
135
- if (!o) return;
136
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
137
- var n = Object.prototype.toString.call(o).slice(8, -1);
138
- if (n === "Object" && o.constructor) n = o.constructor.name;
139
- if (n === "Map" || n === "Set") return Array.from(o);
140
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
141
- }
142
-
143
- function _nonIterableRest$1() {
144
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
145
- }
146
-
147
- function _slicedToArray$1(arr, i) {
148
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest$1();
149
- }
150
-
151
- function _typeof(obj) {
152
- "@babel/helpers - typeof";
153
-
154
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
155
- return typeof obj;
156
- } : function (obj) {
157
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
158
- }, _typeof(obj);
159
- }
160
-
161
- /**
162
- * @template {Function} T
163
- * @param {T} func
164
- * @returns {T}
165
- */
166
- var nullSafe = function nullSafe(func) {
167
- return (
168
- // @ts-ignore
169
- curryN(func.length, function () {
170
- var _ref;
171
- var dataArg = (_ref = func.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref]);
172
- return isNil(dataArg) ? dataArg : func.apply(void 0, arguments);
173
- })
174
- );
175
- };
176
- var noop$1 = function noop() {};
177
- var toLabelAndValue = function toLabelAndValue(string) {
178
- return {
179
- label: string,
180
- value: string
181
- };
182
- };
183
- var isNotEmpty = /*#__PURE__*/complement(isEmpty);
184
- var isNotPresent = /*#__PURE__*/either(isNil, isEmpty);
185
- var isPresent = /*#__PURE__*/complement(isNotPresent);
186
-
187
- var humanize = function humanize(string) {
188
- string = string.replace(/[_-]+/g, " ").replace(/\s{2,}/g, " ").replace(/([a-z\d])([A-Z])/g, "$1" + " " + "$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1" + " " + "$2").toLowerCase().trim();
189
- string = string.charAt(0).toUpperCase() + string.slice(1);
190
- return string;
191
- };
192
- var capitalize = function capitalize(string) {
193
- return string.charAt(0).toUpperCase() + string.slice(1);
194
- };
195
-
196
- var matchesImpl = function matchesImpl(pattern, object) {
197
- var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
198
- if (object === pattern) return true;
199
- if (typeof pattern === "function" && pattern(object, __parent)) return true;
200
- if (isNil(pattern) || isNil(object)) return false;
201
- if (_typeof(pattern) !== "object") return false;
202
- return Object.entries(pattern).every(function (_ref) {
203
- var _ref2 = _slicedToArray$1(_ref, 2),
204
- key = _ref2[0],
205
- value = _ref2[1];
206
- return matchesImpl(value, object[key], __parent);
207
- });
208
- };
209
- var matches = /*#__PURE__*/curry(function (pattern, object) {
210
- return matchesImpl(pattern, object);
211
- });
212
- var filterNonNull = function filterNonNull(object) {
213
- return Object.fromEntries(Object.entries(object).filter(function (_ref5) {
214
- var _ref6 = _slicedToArray$1(_ref5, 2),
215
- v = _ref6[1];
216
- return !isNil(v);
217
- }).map(function (_ref7) {
218
- var _ref8 = _slicedToArray$1(_ref7, 2),
219
- k = _ref8[0],
220
- v = _ref8[1];
221
- return [k, _typeof(v) === "object" && !Array.isArray(v) ? filterNonNull(v) : v];
222
- }));
223
- };
224
- nullSafe(filterNonNull);
225
- var findBy = /*#__PURE__*/curry(function (pattern, array) {
226
- return array.find(matches(pattern));
227
- });
228
- var removeBy = /*#__PURE__*/curry(function (pattern, array) {
229
- return array.filter(complement(matches(pattern)));
230
- });
231
- var replaceBy = /*#__PURE__*/curry(function (pattern, newItem, array) {
232
- return array.map(function (item) {
233
- return matches(pattern, item) ? newItem : item;
234
- });
235
- });
236
- var existsBy = /*#__PURE__*/curry(function (pattern, array) {
237
- return array.some(matches(pattern));
238
- });
239
- var filterBy = /*#__PURE__*/curry(function (pattern, array) {
240
- return array.filter(matches(pattern));
241
- });
242
-
243
92
  var SHORTCUTS = {
244
93
  closePane: {
245
94
  sequence: "escape",
@@ -338,6 +187,23 @@ var DATE_RULES = {
338
187
  "all-time": "before"
339
188
  };
340
189
 
190
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
191
+
192
+ function getDefaultExportFromCjs (x) {
193
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
194
+ }
195
+
196
+ var dayjs_min = {exports: {}};
197
+
198
+ dayjs_min.exports;
199
+
200
+ (function (module, exports) {
201
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
202
+ } (dayjs_min, dayjs_min.exports));
203
+
204
+ var dayjs_minExports = dayjs_min.exports;
205
+ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
206
+
341
207
  var NUMBER_RULES = [{
342
208
  label: t$1("neetoFilters.rules.is"),
343
209
  value: "is"
@@ -421,9 +287,42 @@ function _nonIterableRest() {
421
287
  }
422
288
 
423
289
  function _slicedToArray(arr, i) {
424
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
290
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
425
291
  }
426
292
 
293
+ var timezone$1 = {exports: {}};
294
+
295
+ timezone$1.exports;
296
+
297
+ (function (module, exports) {
298
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,v=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",h=+e;return (o.utc(v).valueOf()-(h-=h%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute");}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
299
+ } (timezone$1, timezone$1.exports));
300
+
301
+ var timezoneExports = timezone$1.exports;
302
+ var timezone = /*@__PURE__*/getDefaultExportFromCjs(timezoneExports);
303
+
304
+ var utc$1 = {exports: {}};
305
+
306
+ utc$1.exports;
307
+
308
+ (function (module, exports) {
309
+ !function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
310
+ } (utc$1, utc$1.exports));
311
+
312
+ var utcExports = utc$1.exports;
313
+ var utc = /*@__PURE__*/getDefaultExportFromCjs(utcExports);
314
+
315
+ var weekday$1 = {exports: {}};
316
+
317
+ weekday$1.exports;
318
+
319
+ (function (module, exports) {
320
+ !function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
321
+ } (weekday$1, weekday$1.exports));
322
+
323
+ var weekdayExports = weekday$1.exports;
324
+ var weekday = /*@__PURE__*/getDefaultExportFromCjs(weekdayExports);
325
+
427
326
  dayjs.extend(utc);
428
327
  dayjs.extend(timezone);
429
328
  dayjs.extend(weekday);
@@ -503,10 +402,10 @@ var buildRuleOptions = function buildRuleOptions(_ref5) {
503
402
  return [];
504
403
  };
505
404
  var getDefaultRuleValue = function getDefaultRuleValue(defaultType) {
506
- var _buildRuleOptions, _buildRuleOptions$;
405
+ var _buildRuleOptions;
507
406
  return ((_buildRuleOptions = buildRuleOptions({
508
407
  defaultType: defaultType
509
- })) === null || _buildRuleOptions === void 0 ? void 0 : (_buildRuleOptions$ = _buildRuleOptions[0]) === null || _buildRuleOptions$ === void 0 ? void 0 : _buildRuleOptions$.value) || "";
408
+ })) === null || _buildRuleOptions === void 0 || (_buildRuleOptions = _buildRuleOptions[0]) === null || _buildRuleOptions === void 0 ? void 0 : _buildRuleOptions.value) || "";
510
409
  };
511
410
  var isUndefinedOrEmpty = anyPass([isNil, isEmpty, any(isNil)]);
512
411
 
@@ -569,7 +468,7 @@ var buildUpdatedFilter = function buildUpdatedFilter(_ref8) {
569
468
  var _column$preprocessor;
570
469
  return mergeLeft(filter, {
571
470
  rule: rule,
572
- value: (column === null || column === void 0 ? void 0 : (_column$preprocessor = column.preprocessor) === null || _column$preprocessor === void 0 ? void 0 : _column$preprocessor.call(column, value)) || value
471
+ value: (column === null || column === void 0 || (_column$preprocessor = column.preprocessor) === null || _column$preprocessor === void 0 ? void 0 : _column$preprocessor.call(column, value)) || value
573
472
  });
574
473
  } else if (isSingleTime(defaultType)) {
575
474
  return mergeLeft(filter, {
@@ -597,6 +496,7 @@ var buildFiltersFromSearchParams = function buildFiltersFromSearchParams(columns
597
496
  } else if (isNil(value) || value === "" || column.key === "keyword") {
598
497
  return null;
599
498
  } else if (column.key === "search_term") {
499
+ if (isNil(column.node)) return null;
600
500
  return mergeLeft({
601
501
  value: value,
602
502
  type: "text",
@@ -805,7 +705,7 @@ var buildSegmentsPayload = function buildSegmentsPayload(filters) {
805
705
  });
806
706
  var searchParams = getQueryParams();
807
707
  var modifiedPayload = childrenKeys.reduce(function (acc, key) {
808
- if (has$1(key, searchParams)) {
708
+ if (has(key, searchParams)) {
809
709
  var filterPayload = {
810
710
  key: key,
811
711
  node: "children",
@@ -850,8 +750,7 @@ var compareFilters = function compareFilters(oldFilters, newFilters) {
850
750
  return equals(formatFilters(oldFilters), formatFilters(newFilters));
851
751
  };
852
752
  var buildFilteredColumns = function buildFilteredColumns(_ref11) {
853
- var _ref11$searchTerm = _ref11.searchTerm,
854
- searchTerm = _ref11$searchTerm === void 0 ? "" : _ref11$searchTerm,
753
+ var searchTerm = _ref11.searchTerm,
855
754
  columns = _ref11.columns;
856
755
  var groupedColumsObject = groupByGroup(columns.filter(function (_ref12) {
857
756
  var label = _ref12.label,
@@ -922,6 +821,9 @@ var buildUrlFromFilters = function buildUrlFromFilters(_ref16) {
922
821
  _ref16$childrenKeys = _ref16.childrenKeys,
923
822
  childrenKeys = _ref16$childrenKeys === void 0 ? [] : _ref16$childrenKeys;
924
823
  var searchParams = getQueryParams();
824
+ var isKeywordFilterPresent = findBy({
825
+ key: "search_term"
826
+ }, filters);
925
827
  columns.forEach(function (_ref17) {
926
828
  var key = _ref17.key,
927
829
  defaultValue = _ref17.defaultValue;
@@ -934,7 +836,7 @@ var buildUrlFromFilters = function buildUrlFromFilters(_ref16) {
934
836
  delete searchParams["segmentId"];
935
837
  }
936
838
  var defaultFilters = buildDefaultFilters(columns, filters);
937
- delete searchParams["search_term"];
839
+ isKeywordFilterPresent && delete searchParams["search_term"];
938
840
  concat(filters, defaultFilters).forEach(function (filter) {
939
841
  searchParams[filter.key] = createUrlParamString({
940
842
  filter: filter,
@@ -1025,6 +927,9 @@ var getColumnsWithStandardizedType = function getColumnsWithStandardizedType(col
1025
927
  });
1026
928
  });
1027
929
  };
930
+ var isKeywordFilterPresent = function isKeywordFilterPresent(keyworFilter) {
931
+ return not(isEmpty(keyworFilter.node));
932
+ };
1028
933
 
1029
934
  var buildCustomDateValue = function buildCustomDateValue(value) {
1030
935
  var isBeforeOrAfter = Math.abs(dayjs(value[1]).diff(dayjs(value[0]), "year")) >= 90;
@@ -1459,27 +1364,15 @@ var Bar = function Bar(_ref) {
1459
1364
  key: "search_term",
1460
1365
  value: keywordValue
1461
1366
  });
1462
- var filters = buildFiltersFromSearchParams(isNotEmpty(keywordValue) ? [keywordFilter].concat(_toConsumableArray(columns)) : columns);
1367
+ var filters = buildFiltersFromSearchParams(isKeywordFilterPresent(keywordFilter) && isNotEmpty(keywordValue) ? [keywordFilter].concat(_toConsumableArray(columns)) : columns);
1463
1368
  var nonHiddenFilters = removeBy({
1464
1369
  hidden: true
1465
1370
  }, filters);
1466
1371
  var history = useHistory();
1467
- useEffect(function () {
1468
- if (initialRenderRef.current) {
1469
- initialRenderRef.current = false;
1470
- return noop$1;
1471
- }
1472
- var handler = setTimeout(function () {
1473
- handleSubmit(filters);
1474
- }, 500);
1475
- return function () {
1476
- return clearTimeout(handler);
1477
- };
1478
- }, [keywordValue]);
1479
1372
  var handleSubmit = function handleSubmit(newFilters, isClearAll) {
1480
1373
  var params = buildUrlFromFilters(_objectSpread$2({
1481
1374
  columns: columns,
1482
- filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
1375
+ filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
1483
1376
  }, isClearAll && {
1484
1377
  isClearAll: true,
1485
1378
  childrenKeys: childrenKeys
@@ -1506,19 +1399,31 @@ var Bar = function Bar(_ref) {
1506
1399
  handleSubmit(newFilters);
1507
1400
  };
1508
1401
  var handleClearAll = function handleClearAll() {
1509
- var params = omit(["search_term"], getQueryParams());
1402
+ var params = isKeywordFilterPresent(keywordFilter) ? omit(["search_term"], getQueryParams()) : getQueryParams();
1510
1403
  var pathname = window.location.pathname;
1511
1404
  history.push(buildUrl(pathname, params));
1512
1405
  handleSubmit([], true);
1513
1406
  };
1514
1407
  var childrenFiltersApplied = childrenKeys.some(function (key) {
1515
- return has$1(key, searchParams);
1408
+ return has(key, searchParams);
1516
1409
  });
1517
1410
  var hideClearButton = nonHiddenFilters.every(function (_ref2) {
1518
1411
  var defaultValue = _ref2.defaultValue,
1519
1412
  isClearable = _ref2.isClearable;
1520
1413
  return defaultValue && !isClearable;
1521
1414
  }) && !childrenFiltersApplied;
1415
+ useEffect(function () {
1416
+ if (initialRenderRef.current) {
1417
+ initialRenderRef.current = false;
1418
+ return noop$1;
1419
+ }
1420
+ var handler = setTimeout(function () {
1421
+ handleSubmit(filters);
1422
+ }, 500);
1423
+ return function () {
1424
+ return clearTimeout(handler);
1425
+ };
1426
+ }, [keywordValue]);
1522
1427
  if (isEmpty(nonHiddenFilters) && !childrenFiltersApplied) return null;
1523
1428
  return /*#__PURE__*/React.createElement("div", {
1524
1429
  className: classnames("neeto-filters-bar", _defineProperty({}, className, className))
@@ -1534,7 +1439,7 @@ var Bar = function Bar(_ref) {
1534
1439
  className: "neeto-filters-bar--separator"
1535
1440
  }));
1536
1441
  }), childrenKeys.filter(function (childKey) {
1537
- return has$1(childKey, searchParams);
1442
+ return has(childKey, searchParams);
1538
1443
  }).map(function (childKey) {
1539
1444
  return /*#__PURE__*/React.createElement(React.Fragment, {
1540
1445
  key: childKey
@@ -1559,8 +1464,8 @@ var Bar = function Bar(_ref) {
1559
1464
  }));
1560
1465
  };
1561
1466
 
1562
- function _extends$1() {
1563
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
1467
+ function _extends() {
1468
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1564
1469
  for (var i = 1; i < arguments.length; i++) {
1565
1470
  var source = arguments[i];
1566
1471
  for (var key in source) {
@@ -1571,10 +1476,10 @@ function _extends$1() {
1571
1476
  }
1572
1477
  return target;
1573
1478
  };
1574
- return _extends$1.apply(this, arguments);
1479
+ return _extends.apply(this, arguments);
1575
1480
  }
1576
1481
 
1577
- function _objectWithoutPropertiesLoose$1(source, excluded) {
1482
+ function _objectWithoutPropertiesLoose(source, excluded) {
1578
1483
  if (source == null) return {};
1579
1484
  var target = {};
1580
1485
  var sourceKeys = Object.keys(source);
@@ -1589,7 +1494,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
1589
1494
 
1590
1495
  function _objectWithoutProperties(source, excluded) {
1591
1496
  if (source == null) return {};
1592
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
1497
+ var target = _objectWithoutPropertiesLoose(source, excluded);
1593
1498
  var key, i;
1594
1499
  if (Object.getOwnPropertySymbols) {
1595
1500
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1631,34 +1536,6 @@ var Portal = function Portal(_ref) {
1631
1536
  return /*#__PURE__*/createPortal(children, target.current);
1632
1537
  };
1633
1538
 
1634
- function _extends() {
1635
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1636
- for (var i = 1; i < arguments.length; i++) {
1637
- var source = arguments[i];
1638
- for (var key in source) {
1639
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1640
- target[key] = source[key];
1641
- }
1642
- }
1643
- }
1644
- return target;
1645
- };
1646
- return _extends.apply(this, arguments);
1647
- }
1648
-
1649
- function _objectWithoutPropertiesLoose(source, excluded) {
1650
- if (source == null) return {};
1651
- var target = {};
1652
- var sourceKeys = Object.keys(source);
1653
- var key, i;
1654
- for (i = 0; i < sourceKeys.length; i++) {
1655
- key = sourceKeys[i];
1656
- if (excluded.indexOf(key) >= 0) continue;
1657
- target[key] = source[key];
1658
- }
1659
- return target;
1660
- }
1661
-
1662
1539
  function _setPrototypeOf(o, p) {
1663
1540
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1664
1541
  o.__proto__ = p;
@@ -1673,1188 +1550,6 @@ function _inheritsLoose(subClass, superClass) {
1673
1550
  _setPrototypeOf(subClass, superClass);
1674
1551
  }
1675
1552
 
1676
- var propTypes = {exports: {}};
1677
-
1678
- var reactIs = {exports: {}};
1679
-
1680
- var reactIs_production_min = {};
1681
-
1682
- /** @license React v16.13.1
1683
- * react-is.production.min.js
1684
- *
1685
- * Copyright (c) Facebook, Inc. and its affiliates.
1686
- *
1687
- * This source code is licensed under the MIT license found in the
1688
- * LICENSE file in the root directory of this source tree.
1689
- */
1690
-
1691
- var hasRequiredReactIs_production_min;
1692
-
1693
- function requireReactIs_production_min () {
1694
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
1695
- hasRequiredReactIs_production_min = 1;
1696
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
1697
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
1698
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
1699
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
1700
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
1701
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
1702
- return reactIs_production_min;
1703
- }
1704
-
1705
- var reactIs_development = {};
1706
-
1707
- /** @license React v16.13.1
1708
- * react-is.development.js
1709
- *
1710
- * Copyright (c) Facebook, Inc. and its affiliates.
1711
- *
1712
- * This source code is licensed under the MIT license found in the
1713
- * LICENSE file in the root directory of this source tree.
1714
- */
1715
-
1716
- var hasRequiredReactIs_development;
1717
-
1718
- function requireReactIs_development () {
1719
- if (hasRequiredReactIs_development) return reactIs_development;
1720
- hasRequiredReactIs_development = 1;
1721
-
1722
-
1723
-
1724
- if (process.env.NODE_ENV !== "production") {
1725
- (function() {
1726
-
1727
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1728
- // nor polyfill, then a plain number is used for performance.
1729
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1730
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1731
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1732
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1733
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1734
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1735
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1736
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1737
- // (unstable) APIs that have been removed. Can we remove the symbols?
1738
-
1739
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1740
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1741
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1742
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1743
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1744
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1745
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1746
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1747
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1748
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1749
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1750
-
1751
- function isValidElementType(type) {
1752
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1753
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1754
- }
1755
-
1756
- function typeOf(object) {
1757
- if (typeof object === 'object' && object !== null) {
1758
- var $$typeof = object.$$typeof;
1759
-
1760
- switch ($$typeof) {
1761
- case REACT_ELEMENT_TYPE:
1762
- var type = object.type;
1763
-
1764
- switch (type) {
1765
- case REACT_ASYNC_MODE_TYPE:
1766
- case REACT_CONCURRENT_MODE_TYPE:
1767
- case REACT_FRAGMENT_TYPE:
1768
- case REACT_PROFILER_TYPE:
1769
- case REACT_STRICT_MODE_TYPE:
1770
- case REACT_SUSPENSE_TYPE:
1771
- return type;
1772
-
1773
- default:
1774
- var $$typeofType = type && type.$$typeof;
1775
-
1776
- switch ($$typeofType) {
1777
- case REACT_CONTEXT_TYPE:
1778
- case REACT_FORWARD_REF_TYPE:
1779
- case REACT_LAZY_TYPE:
1780
- case REACT_MEMO_TYPE:
1781
- case REACT_PROVIDER_TYPE:
1782
- return $$typeofType;
1783
-
1784
- default:
1785
- return $$typeof;
1786
- }
1787
-
1788
- }
1789
-
1790
- case REACT_PORTAL_TYPE:
1791
- return $$typeof;
1792
- }
1793
- }
1794
-
1795
- return undefined;
1796
- } // AsyncMode is deprecated along with isAsyncMode
1797
-
1798
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
1799
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1800
- var ContextConsumer = REACT_CONTEXT_TYPE;
1801
- var ContextProvider = REACT_PROVIDER_TYPE;
1802
- var Element = REACT_ELEMENT_TYPE;
1803
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1804
- var Fragment = REACT_FRAGMENT_TYPE;
1805
- var Lazy = REACT_LAZY_TYPE;
1806
- var Memo = REACT_MEMO_TYPE;
1807
- var Portal = REACT_PORTAL_TYPE;
1808
- var Profiler = REACT_PROFILER_TYPE;
1809
- var StrictMode = REACT_STRICT_MODE_TYPE;
1810
- var Suspense = REACT_SUSPENSE_TYPE;
1811
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1812
-
1813
- function isAsyncMode(object) {
1814
- {
1815
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1816
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1817
-
1818
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1819
- }
1820
- }
1821
-
1822
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1823
- }
1824
- function isConcurrentMode(object) {
1825
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1826
- }
1827
- function isContextConsumer(object) {
1828
- return typeOf(object) === REACT_CONTEXT_TYPE;
1829
- }
1830
- function isContextProvider(object) {
1831
- return typeOf(object) === REACT_PROVIDER_TYPE;
1832
- }
1833
- function isElement(object) {
1834
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1835
- }
1836
- function isForwardRef(object) {
1837
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1838
- }
1839
- function isFragment(object) {
1840
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1841
- }
1842
- function isLazy(object) {
1843
- return typeOf(object) === REACT_LAZY_TYPE;
1844
- }
1845
- function isMemo(object) {
1846
- return typeOf(object) === REACT_MEMO_TYPE;
1847
- }
1848
- function isPortal(object) {
1849
- return typeOf(object) === REACT_PORTAL_TYPE;
1850
- }
1851
- function isProfiler(object) {
1852
- return typeOf(object) === REACT_PROFILER_TYPE;
1853
- }
1854
- function isStrictMode(object) {
1855
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1856
- }
1857
- function isSuspense(object) {
1858
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1859
- }
1860
-
1861
- reactIs_development.AsyncMode = AsyncMode;
1862
- reactIs_development.ConcurrentMode = ConcurrentMode;
1863
- reactIs_development.ContextConsumer = ContextConsumer;
1864
- reactIs_development.ContextProvider = ContextProvider;
1865
- reactIs_development.Element = Element;
1866
- reactIs_development.ForwardRef = ForwardRef;
1867
- reactIs_development.Fragment = Fragment;
1868
- reactIs_development.Lazy = Lazy;
1869
- reactIs_development.Memo = Memo;
1870
- reactIs_development.Portal = Portal;
1871
- reactIs_development.Profiler = Profiler;
1872
- reactIs_development.StrictMode = StrictMode;
1873
- reactIs_development.Suspense = Suspense;
1874
- reactIs_development.isAsyncMode = isAsyncMode;
1875
- reactIs_development.isConcurrentMode = isConcurrentMode;
1876
- reactIs_development.isContextConsumer = isContextConsumer;
1877
- reactIs_development.isContextProvider = isContextProvider;
1878
- reactIs_development.isElement = isElement;
1879
- reactIs_development.isForwardRef = isForwardRef;
1880
- reactIs_development.isFragment = isFragment;
1881
- reactIs_development.isLazy = isLazy;
1882
- reactIs_development.isMemo = isMemo;
1883
- reactIs_development.isPortal = isPortal;
1884
- reactIs_development.isProfiler = isProfiler;
1885
- reactIs_development.isStrictMode = isStrictMode;
1886
- reactIs_development.isSuspense = isSuspense;
1887
- reactIs_development.isValidElementType = isValidElementType;
1888
- reactIs_development.typeOf = typeOf;
1889
- })();
1890
- }
1891
- return reactIs_development;
1892
- }
1893
-
1894
- var hasRequiredReactIs;
1895
-
1896
- function requireReactIs () {
1897
- if (hasRequiredReactIs) return reactIs.exports;
1898
- hasRequiredReactIs = 1;
1899
- (function (module) {
1900
-
1901
- if (process.env.NODE_ENV === 'production') {
1902
- module.exports = requireReactIs_production_min();
1903
- } else {
1904
- module.exports = requireReactIs_development();
1905
- }
1906
- } (reactIs));
1907
- return reactIs.exports;
1908
- }
1909
-
1910
- /*
1911
- object-assign
1912
- (c) Sindre Sorhus
1913
- @license MIT
1914
- */
1915
-
1916
- var objectAssign;
1917
- var hasRequiredObjectAssign;
1918
-
1919
- function requireObjectAssign () {
1920
- if (hasRequiredObjectAssign) return objectAssign;
1921
- hasRequiredObjectAssign = 1;
1922
- /* eslint-disable no-unused-vars */
1923
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1924
- var hasOwnProperty = Object.prototype.hasOwnProperty;
1925
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1926
-
1927
- function toObject(val) {
1928
- if (val === null || val === undefined) {
1929
- throw new TypeError('Object.assign cannot be called with null or undefined');
1930
- }
1931
-
1932
- return Object(val);
1933
- }
1934
-
1935
- function shouldUseNative() {
1936
- try {
1937
- if (!Object.assign) {
1938
- return false;
1939
- }
1940
-
1941
- // Detect buggy property enumeration order in older V8 versions.
1942
-
1943
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
1944
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1945
- test1[5] = 'de';
1946
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
1947
- return false;
1948
- }
1949
-
1950
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1951
- var test2 = {};
1952
- for (var i = 0; i < 10; i++) {
1953
- test2['_' + String.fromCharCode(i)] = i;
1954
- }
1955
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
1956
- return test2[n];
1957
- });
1958
- if (order2.join('') !== '0123456789') {
1959
- return false;
1960
- }
1961
-
1962
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
1963
- var test3 = {};
1964
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
1965
- test3[letter] = letter;
1966
- });
1967
- if (Object.keys(Object.assign({}, test3)).join('') !==
1968
- 'abcdefghijklmnopqrst') {
1969
- return false;
1970
- }
1971
-
1972
- return true;
1973
- } catch (err) {
1974
- // We don't expect any of the above to throw, but better to be safe.
1975
- return false;
1976
- }
1977
- }
1978
-
1979
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
1980
- var from;
1981
- var to = toObject(target);
1982
- var symbols;
1983
-
1984
- for (var s = 1; s < arguments.length; s++) {
1985
- from = Object(arguments[s]);
1986
-
1987
- for (var key in from) {
1988
- if (hasOwnProperty.call(from, key)) {
1989
- to[key] = from[key];
1990
- }
1991
- }
1992
-
1993
- if (getOwnPropertySymbols) {
1994
- symbols = getOwnPropertySymbols(from);
1995
- for (var i = 0; i < symbols.length; i++) {
1996
- if (propIsEnumerable.call(from, symbols[i])) {
1997
- to[symbols[i]] = from[symbols[i]];
1998
- }
1999
- }
2000
- }
2001
- }
2002
-
2003
- return to;
2004
- };
2005
- return objectAssign;
2006
- }
2007
-
2008
- /**
2009
- * Copyright (c) 2013-present, Facebook, Inc.
2010
- *
2011
- * This source code is licensed under the MIT license found in the
2012
- * LICENSE file in the root directory of this source tree.
2013
- */
2014
-
2015
- var ReactPropTypesSecret_1;
2016
- var hasRequiredReactPropTypesSecret;
2017
-
2018
- function requireReactPropTypesSecret () {
2019
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
2020
- hasRequiredReactPropTypesSecret = 1;
2021
-
2022
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2023
-
2024
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
2025
- return ReactPropTypesSecret_1;
2026
- }
2027
-
2028
- var has;
2029
- var hasRequiredHas;
2030
-
2031
- function requireHas () {
2032
- if (hasRequiredHas) return has;
2033
- hasRequiredHas = 1;
2034
- has = Function.call.bind(Object.prototype.hasOwnProperty);
2035
- return has;
2036
- }
2037
-
2038
- /**
2039
- * Copyright (c) 2013-present, Facebook, Inc.
2040
- *
2041
- * This source code is licensed under the MIT license found in the
2042
- * LICENSE file in the root directory of this source tree.
2043
- */
2044
-
2045
- var checkPropTypes_1;
2046
- var hasRequiredCheckPropTypes;
2047
-
2048
- function requireCheckPropTypes () {
2049
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
2050
- hasRequiredCheckPropTypes = 1;
2051
-
2052
- var printWarning = function() {};
2053
-
2054
- if (process.env.NODE_ENV !== 'production') {
2055
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2056
- var loggedTypeFailures = {};
2057
- var has = requireHas();
2058
-
2059
- printWarning = function(text) {
2060
- var message = 'Warning: ' + text;
2061
- if (typeof console !== 'undefined') {
2062
- console.error(message);
2063
- }
2064
- try {
2065
- // --- Welcome to debugging React ---
2066
- // This error was thrown as a convenience so that you can use this stack
2067
- // to find the callsite that caused this warning to fire.
2068
- throw new Error(message);
2069
- } catch (x) { /**/ }
2070
- };
2071
- }
2072
-
2073
- /**
2074
- * Assert that the values match with the type specs.
2075
- * Error messages are memorized and will only be shown once.
2076
- *
2077
- * @param {object} typeSpecs Map of name to a ReactPropType
2078
- * @param {object} values Runtime values that need to be type-checked
2079
- * @param {string} location e.g. "prop", "context", "child context"
2080
- * @param {string} componentName Name of the component for error messages.
2081
- * @param {?Function} getStack Returns the component stack.
2082
- * @private
2083
- */
2084
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
2085
- if (process.env.NODE_ENV !== 'production') {
2086
- for (var typeSpecName in typeSpecs) {
2087
- if (has(typeSpecs, typeSpecName)) {
2088
- var error;
2089
- // Prop type validation may throw. In case they do, we don't want to
2090
- // fail the render phase where it didn't fail before. So we log it.
2091
- // After these have been cleaned up, we'll let them throw.
2092
- try {
2093
- // This is intentionally an invariant that gets caught. It's the same
2094
- // behavior as without this statement except with a better message.
2095
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2096
- var err = Error(
2097
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
2098
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
2099
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
2100
- );
2101
- err.name = 'Invariant Violation';
2102
- throw err;
2103
- }
2104
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
2105
- } catch (ex) {
2106
- error = ex;
2107
- }
2108
- if (error && !(error instanceof Error)) {
2109
- printWarning(
2110
- (componentName || 'React class') + ': type specification of ' +
2111
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
2112
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
2113
- 'You may have forgotten to pass an argument to the type checker ' +
2114
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
2115
- 'shape all require an argument).'
2116
- );
2117
- }
2118
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2119
- // Only monitor this failure once because there tends to be a lot of the
2120
- // same error.
2121
- loggedTypeFailures[error.message] = true;
2122
-
2123
- var stack = getStack ? getStack() : '';
2124
-
2125
- printWarning(
2126
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
2127
- );
2128
- }
2129
- }
2130
- }
2131
- }
2132
- }
2133
-
2134
- /**
2135
- * Resets warning cache when testing.
2136
- *
2137
- * @private
2138
- */
2139
- checkPropTypes.resetWarningCache = function() {
2140
- if (process.env.NODE_ENV !== 'production') {
2141
- loggedTypeFailures = {};
2142
- }
2143
- };
2144
-
2145
- checkPropTypes_1 = checkPropTypes;
2146
- return checkPropTypes_1;
2147
- }
2148
-
2149
- /**
2150
- * Copyright (c) 2013-present, Facebook, Inc.
2151
- *
2152
- * This source code is licensed under the MIT license found in the
2153
- * LICENSE file in the root directory of this source tree.
2154
- */
2155
-
2156
- var factoryWithTypeCheckers;
2157
- var hasRequiredFactoryWithTypeCheckers;
2158
-
2159
- function requireFactoryWithTypeCheckers () {
2160
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
2161
- hasRequiredFactoryWithTypeCheckers = 1;
2162
-
2163
- var ReactIs = requireReactIs();
2164
- var assign = requireObjectAssign();
2165
-
2166
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2167
- var has = requireHas();
2168
- var checkPropTypes = requireCheckPropTypes();
2169
-
2170
- var printWarning = function() {};
2171
-
2172
- if (process.env.NODE_ENV !== 'production') {
2173
- printWarning = function(text) {
2174
- var message = 'Warning: ' + text;
2175
- if (typeof console !== 'undefined') {
2176
- console.error(message);
2177
- }
2178
- try {
2179
- // --- Welcome to debugging React ---
2180
- // This error was thrown as a convenience so that you can use this stack
2181
- // to find the callsite that caused this warning to fire.
2182
- throw new Error(message);
2183
- } catch (x) {}
2184
- };
2185
- }
2186
-
2187
- function emptyFunctionThatReturnsNull() {
2188
- return null;
2189
- }
2190
-
2191
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2192
- /* global Symbol */
2193
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2194
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
2195
-
2196
- /**
2197
- * Returns the iterator method function contained on the iterable object.
2198
- *
2199
- * Be sure to invoke the function with the iterable as context:
2200
- *
2201
- * var iteratorFn = getIteratorFn(myIterable);
2202
- * if (iteratorFn) {
2203
- * var iterator = iteratorFn.call(myIterable);
2204
- * ...
2205
- * }
2206
- *
2207
- * @param {?object} maybeIterable
2208
- * @return {?function}
2209
- */
2210
- function getIteratorFn(maybeIterable) {
2211
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
2212
- if (typeof iteratorFn === 'function') {
2213
- return iteratorFn;
2214
- }
2215
- }
2216
-
2217
- /**
2218
- * Collection of methods that allow declaration and validation of props that are
2219
- * supplied to React components. Example usage:
2220
- *
2221
- * var Props = require('ReactPropTypes');
2222
- * var MyArticle = React.createClass({
2223
- * propTypes: {
2224
- * // An optional string prop named "description".
2225
- * description: Props.string,
2226
- *
2227
- * // A required enum prop named "category".
2228
- * category: Props.oneOf(['News','Photos']).isRequired,
2229
- *
2230
- * // A prop named "dialog" that requires an instance of Dialog.
2231
- * dialog: Props.instanceOf(Dialog).isRequired
2232
- * },
2233
- * render: function() { ... }
2234
- * });
2235
- *
2236
- * A more formal specification of how these methods are used:
2237
- *
2238
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
2239
- * decl := ReactPropTypes.{type}(.isRequired)?
2240
- *
2241
- * Each and every declaration produces a function with the same signature. This
2242
- * allows the creation of custom validation functions. For example:
2243
- *
2244
- * var MyLink = React.createClass({
2245
- * propTypes: {
2246
- * // An optional string or URI prop named "href".
2247
- * href: function(props, propName, componentName) {
2248
- * var propValue = props[propName];
2249
- * if (propValue != null && typeof propValue !== 'string' &&
2250
- * !(propValue instanceof URI)) {
2251
- * return new Error(
2252
- * 'Expected a string or an URI for ' + propName + ' in ' +
2253
- * componentName
2254
- * );
2255
- * }
2256
- * }
2257
- * },
2258
- * render: function() {...}
2259
- * });
2260
- *
2261
- * @internal
2262
- */
2263
-
2264
- var ANONYMOUS = '<<anonymous>>';
2265
-
2266
- // Important!
2267
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
2268
- var ReactPropTypes = {
2269
- array: createPrimitiveTypeChecker('array'),
2270
- bigint: createPrimitiveTypeChecker('bigint'),
2271
- bool: createPrimitiveTypeChecker('boolean'),
2272
- func: createPrimitiveTypeChecker('function'),
2273
- number: createPrimitiveTypeChecker('number'),
2274
- object: createPrimitiveTypeChecker('object'),
2275
- string: createPrimitiveTypeChecker('string'),
2276
- symbol: createPrimitiveTypeChecker('symbol'),
2277
-
2278
- any: createAnyTypeChecker(),
2279
- arrayOf: createArrayOfTypeChecker,
2280
- element: createElementTypeChecker(),
2281
- elementType: createElementTypeTypeChecker(),
2282
- instanceOf: createInstanceTypeChecker,
2283
- node: createNodeChecker(),
2284
- objectOf: createObjectOfTypeChecker,
2285
- oneOf: createEnumTypeChecker,
2286
- oneOfType: createUnionTypeChecker,
2287
- shape: createShapeTypeChecker,
2288
- exact: createStrictShapeTypeChecker,
2289
- };
2290
-
2291
- /**
2292
- * inlined Object.is polyfill to avoid requiring consumers ship their own
2293
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
2294
- */
2295
- /*eslint-disable no-self-compare*/
2296
- function is(x, y) {
2297
- // SameValue algorithm
2298
- if (x === y) {
2299
- // Steps 1-5, 7-10
2300
- // Steps 6.b-6.e: +0 != -0
2301
- return x !== 0 || 1 / x === 1 / y;
2302
- } else {
2303
- // Step 6.a: NaN == NaN
2304
- return x !== x && y !== y;
2305
- }
2306
- }
2307
- /*eslint-enable no-self-compare*/
2308
-
2309
- /**
2310
- * We use an Error-like object for backward compatibility as people may call
2311
- * PropTypes directly and inspect their output. However, we don't use real
2312
- * Errors anymore. We don't inspect their stack anyway, and creating them
2313
- * is prohibitively expensive if they are created too often, such as what
2314
- * happens in oneOfType() for any type before the one that matched.
2315
- */
2316
- function PropTypeError(message, data) {
2317
- this.message = message;
2318
- this.data = data && typeof data === 'object' ? data: {};
2319
- this.stack = '';
2320
- }
2321
- // Make `instanceof Error` still work for returned errors.
2322
- PropTypeError.prototype = Error.prototype;
2323
-
2324
- function createChainableTypeChecker(validate) {
2325
- if (process.env.NODE_ENV !== 'production') {
2326
- var manualPropTypeCallCache = {};
2327
- var manualPropTypeWarningCount = 0;
2328
- }
2329
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
2330
- componentName = componentName || ANONYMOUS;
2331
- propFullName = propFullName || propName;
2332
-
2333
- if (secret !== ReactPropTypesSecret) {
2334
- if (throwOnDirectAccess) {
2335
- // New behavior only for users of `prop-types` package
2336
- var err = new Error(
2337
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
2338
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
2339
- 'Read more at http://fb.me/use-check-prop-types'
2340
- );
2341
- err.name = 'Invariant Violation';
2342
- throw err;
2343
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
2344
- // Old behavior for people using React.PropTypes
2345
- var cacheKey = componentName + ':' + propName;
2346
- if (
2347
- !manualPropTypeCallCache[cacheKey] &&
2348
- // Avoid spamming the console because they are often not actionable except for lib authors
2349
- manualPropTypeWarningCount < 3
2350
- ) {
2351
- printWarning(
2352
- 'You are manually calling a React.PropTypes validation ' +
2353
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
2354
- 'and will throw in the standalone `prop-types` package. ' +
2355
- 'You may be seeing this warning due to a third-party PropTypes ' +
2356
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
2357
- );
2358
- manualPropTypeCallCache[cacheKey] = true;
2359
- manualPropTypeWarningCount++;
2360
- }
2361
- }
2362
- }
2363
- if (props[propName] == null) {
2364
- if (isRequired) {
2365
- if (props[propName] === null) {
2366
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
2367
- }
2368
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
2369
- }
2370
- return null;
2371
- } else {
2372
- return validate(props, propName, componentName, location, propFullName);
2373
- }
2374
- }
2375
-
2376
- var chainedCheckType = checkType.bind(null, false);
2377
- chainedCheckType.isRequired = checkType.bind(null, true);
2378
-
2379
- return chainedCheckType;
2380
- }
2381
-
2382
- function createPrimitiveTypeChecker(expectedType) {
2383
- function validate(props, propName, componentName, location, propFullName, secret) {
2384
- var propValue = props[propName];
2385
- var propType = getPropType(propValue);
2386
- if (propType !== expectedType) {
2387
- // `propValue` being instance of, say, date/regexp, pass the 'object'
2388
- // check, but we can offer a more precise error message here rather than
2389
- // 'of type `object`'.
2390
- var preciseType = getPreciseType(propValue);
2391
-
2392
- return new PropTypeError(
2393
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
2394
- {expectedType: expectedType}
2395
- );
2396
- }
2397
- return null;
2398
- }
2399
- return createChainableTypeChecker(validate);
2400
- }
2401
-
2402
- function createAnyTypeChecker() {
2403
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
2404
- }
2405
-
2406
- function createArrayOfTypeChecker(typeChecker) {
2407
- function validate(props, propName, componentName, location, propFullName) {
2408
- if (typeof typeChecker !== 'function') {
2409
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
2410
- }
2411
- var propValue = props[propName];
2412
- if (!Array.isArray(propValue)) {
2413
- var propType = getPropType(propValue);
2414
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
2415
- }
2416
- for (var i = 0; i < propValue.length; i++) {
2417
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
2418
- if (error instanceof Error) {
2419
- return error;
2420
- }
2421
- }
2422
- return null;
2423
- }
2424
- return createChainableTypeChecker(validate);
2425
- }
2426
-
2427
- function createElementTypeChecker() {
2428
- function validate(props, propName, componentName, location, propFullName) {
2429
- var propValue = props[propName];
2430
- if (!isValidElement(propValue)) {
2431
- var propType = getPropType(propValue);
2432
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
2433
- }
2434
- return null;
2435
- }
2436
- return createChainableTypeChecker(validate);
2437
- }
2438
-
2439
- function createElementTypeTypeChecker() {
2440
- function validate(props, propName, componentName, location, propFullName) {
2441
- var propValue = props[propName];
2442
- if (!ReactIs.isValidElementType(propValue)) {
2443
- var propType = getPropType(propValue);
2444
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
2445
- }
2446
- return null;
2447
- }
2448
- return createChainableTypeChecker(validate);
2449
- }
2450
-
2451
- function createInstanceTypeChecker(expectedClass) {
2452
- function validate(props, propName, componentName, location, propFullName) {
2453
- if (!(props[propName] instanceof expectedClass)) {
2454
- var expectedClassName = expectedClass.name || ANONYMOUS;
2455
- var actualClassName = getClassName(props[propName]);
2456
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
2457
- }
2458
- return null;
2459
- }
2460
- return createChainableTypeChecker(validate);
2461
- }
2462
-
2463
- function createEnumTypeChecker(expectedValues) {
2464
- if (!Array.isArray(expectedValues)) {
2465
- if (process.env.NODE_ENV !== 'production') {
2466
- if (arguments.length > 1) {
2467
- printWarning(
2468
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
2469
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
2470
- );
2471
- } else {
2472
- printWarning('Invalid argument supplied to oneOf, expected an array.');
2473
- }
2474
- }
2475
- return emptyFunctionThatReturnsNull;
2476
- }
2477
-
2478
- function validate(props, propName, componentName, location, propFullName) {
2479
- var propValue = props[propName];
2480
- for (var i = 0; i < expectedValues.length; i++) {
2481
- if (is(propValue, expectedValues[i])) {
2482
- return null;
2483
- }
2484
- }
2485
-
2486
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
2487
- var type = getPreciseType(value);
2488
- if (type === 'symbol') {
2489
- return String(value);
2490
- }
2491
- return value;
2492
- });
2493
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
2494
- }
2495
- return createChainableTypeChecker(validate);
2496
- }
2497
-
2498
- function createObjectOfTypeChecker(typeChecker) {
2499
- function validate(props, propName, componentName, location, propFullName) {
2500
- if (typeof typeChecker !== 'function') {
2501
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
2502
- }
2503
- var propValue = props[propName];
2504
- var propType = getPropType(propValue);
2505
- if (propType !== 'object') {
2506
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
2507
- }
2508
- for (var key in propValue) {
2509
- if (has(propValue, key)) {
2510
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2511
- if (error instanceof Error) {
2512
- return error;
2513
- }
2514
- }
2515
- }
2516
- return null;
2517
- }
2518
- return createChainableTypeChecker(validate);
2519
- }
2520
-
2521
- function createUnionTypeChecker(arrayOfTypeCheckers) {
2522
- if (!Array.isArray(arrayOfTypeCheckers)) {
2523
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
2524
- return emptyFunctionThatReturnsNull;
2525
- }
2526
-
2527
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2528
- var checker = arrayOfTypeCheckers[i];
2529
- if (typeof checker !== 'function') {
2530
- printWarning(
2531
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
2532
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
2533
- );
2534
- return emptyFunctionThatReturnsNull;
2535
- }
2536
- }
2537
-
2538
- function validate(props, propName, componentName, location, propFullName) {
2539
- var expectedTypes = [];
2540
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
2541
- var checker = arrayOfTypeCheckers[i];
2542
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
2543
- if (checkerResult == null) {
2544
- return null;
2545
- }
2546
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
2547
- expectedTypes.push(checkerResult.data.expectedType);
2548
- }
2549
- }
2550
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
2551
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
2552
- }
2553
- return createChainableTypeChecker(validate);
2554
- }
2555
-
2556
- function createNodeChecker() {
2557
- function validate(props, propName, componentName, location, propFullName) {
2558
- if (!isNode(props[propName])) {
2559
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
2560
- }
2561
- return null;
2562
- }
2563
- return createChainableTypeChecker(validate);
2564
- }
2565
-
2566
- function invalidValidatorError(componentName, location, propFullName, key, type) {
2567
- return new PropTypeError(
2568
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
2569
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
2570
- );
2571
- }
2572
-
2573
- function createShapeTypeChecker(shapeTypes) {
2574
- function validate(props, propName, componentName, location, propFullName) {
2575
- var propValue = props[propName];
2576
- var propType = getPropType(propValue);
2577
- if (propType !== 'object') {
2578
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2579
- }
2580
- for (var key in shapeTypes) {
2581
- var checker = shapeTypes[key];
2582
- if (typeof checker !== 'function') {
2583
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2584
- }
2585
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2586
- if (error) {
2587
- return error;
2588
- }
2589
- }
2590
- return null;
2591
- }
2592
- return createChainableTypeChecker(validate);
2593
- }
2594
-
2595
- function createStrictShapeTypeChecker(shapeTypes) {
2596
- function validate(props, propName, componentName, location, propFullName) {
2597
- var propValue = props[propName];
2598
- var propType = getPropType(propValue);
2599
- if (propType !== 'object') {
2600
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
2601
- }
2602
- // We need to check all keys in case some are required but missing from props.
2603
- var allKeys = assign({}, props[propName], shapeTypes);
2604
- for (var key in allKeys) {
2605
- var checker = shapeTypes[key];
2606
- if (has(shapeTypes, key) && typeof checker !== 'function') {
2607
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
2608
- }
2609
- if (!checker) {
2610
- return new PropTypeError(
2611
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
2612
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
2613
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
2614
- );
2615
- }
2616
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
2617
- if (error) {
2618
- return error;
2619
- }
2620
- }
2621
- return null;
2622
- }
2623
-
2624
- return createChainableTypeChecker(validate);
2625
- }
2626
-
2627
- function isNode(propValue) {
2628
- switch (typeof propValue) {
2629
- case 'number':
2630
- case 'string':
2631
- case 'undefined':
2632
- return true;
2633
- case 'boolean':
2634
- return !propValue;
2635
- case 'object':
2636
- if (Array.isArray(propValue)) {
2637
- return propValue.every(isNode);
2638
- }
2639
- if (propValue === null || isValidElement(propValue)) {
2640
- return true;
2641
- }
2642
-
2643
- var iteratorFn = getIteratorFn(propValue);
2644
- if (iteratorFn) {
2645
- var iterator = iteratorFn.call(propValue);
2646
- var step;
2647
- if (iteratorFn !== propValue.entries) {
2648
- while (!(step = iterator.next()).done) {
2649
- if (!isNode(step.value)) {
2650
- return false;
2651
- }
2652
- }
2653
- } else {
2654
- // Iterator will provide entry [k,v] tuples rather than values.
2655
- while (!(step = iterator.next()).done) {
2656
- var entry = step.value;
2657
- if (entry) {
2658
- if (!isNode(entry[1])) {
2659
- return false;
2660
- }
2661
- }
2662
- }
2663
- }
2664
- } else {
2665
- return false;
2666
- }
2667
-
2668
- return true;
2669
- default:
2670
- return false;
2671
- }
2672
- }
2673
-
2674
- function isSymbol(propType, propValue) {
2675
- // Native Symbol.
2676
- if (propType === 'symbol') {
2677
- return true;
2678
- }
2679
-
2680
- // falsy value can't be a Symbol
2681
- if (!propValue) {
2682
- return false;
2683
- }
2684
-
2685
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
2686
- if (propValue['@@toStringTag'] === 'Symbol') {
2687
- return true;
2688
- }
2689
-
2690
- // Fallback for non-spec compliant Symbols which are polyfilled.
2691
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
2692
- return true;
2693
- }
2694
-
2695
- return false;
2696
- }
2697
-
2698
- // Equivalent of `typeof` but with special handling for array and regexp.
2699
- function getPropType(propValue) {
2700
- var propType = typeof propValue;
2701
- if (Array.isArray(propValue)) {
2702
- return 'array';
2703
- }
2704
- if (propValue instanceof RegExp) {
2705
- // Old webkits (at least until Android 4.0) return 'function' rather than
2706
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
2707
- // passes PropTypes.object.
2708
- return 'object';
2709
- }
2710
- if (isSymbol(propType, propValue)) {
2711
- return 'symbol';
2712
- }
2713
- return propType;
2714
- }
2715
-
2716
- // This handles more types than `getPropType`. Only used for error messages.
2717
- // See `createPrimitiveTypeChecker`.
2718
- function getPreciseType(propValue) {
2719
- if (typeof propValue === 'undefined' || propValue === null) {
2720
- return '' + propValue;
2721
- }
2722
- var propType = getPropType(propValue);
2723
- if (propType === 'object') {
2724
- if (propValue instanceof Date) {
2725
- return 'date';
2726
- } else if (propValue instanceof RegExp) {
2727
- return 'regexp';
2728
- }
2729
- }
2730
- return propType;
2731
- }
2732
-
2733
- // Returns a string that is postfixed to a warning about an invalid type.
2734
- // For example, "undefined" or "of type array"
2735
- function getPostfixForTypeWarning(value) {
2736
- var type = getPreciseType(value);
2737
- switch (type) {
2738
- case 'array':
2739
- case 'object':
2740
- return 'an ' + type;
2741
- case 'boolean':
2742
- case 'date':
2743
- case 'regexp':
2744
- return 'a ' + type;
2745
- default:
2746
- return type;
2747
- }
2748
- }
2749
-
2750
- // Returns class name of the object, if any.
2751
- function getClassName(propValue) {
2752
- if (!propValue.constructor || !propValue.constructor.name) {
2753
- return ANONYMOUS;
2754
- }
2755
- return propValue.constructor.name;
2756
- }
2757
-
2758
- ReactPropTypes.checkPropTypes = checkPropTypes;
2759
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
2760
- ReactPropTypes.PropTypes = ReactPropTypes;
2761
-
2762
- return ReactPropTypes;
2763
- };
2764
- return factoryWithTypeCheckers;
2765
- }
2766
-
2767
- /**
2768
- * Copyright (c) 2013-present, Facebook, Inc.
2769
- *
2770
- * This source code is licensed under the MIT license found in the
2771
- * LICENSE file in the root directory of this source tree.
2772
- */
2773
-
2774
- var factoryWithThrowingShims;
2775
- var hasRequiredFactoryWithThrowingShims;
2776
-
2777
- function requireFactoryWithThrowingShims () {
2778
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
2779
- hasRequiredFactoryWithThrowingShims = 1;
2780
-
2781
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2782
-
2783
- function emptyFunction() {}
2784
- function emptyFunctionWithReset() {}
2785
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
2786
-
2787
- factoryWithThrowingShims = function() {
2788
- function shim(props, propName, componentName, location, propFullName, secret) {
2789
- if (secret === ReactPropTypesSecret) {
2790
- // It is still safe when called from React.
2791
- return;
2792
- }
2793
- var err = new Error(
2794
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
2795
- 'Use PropTypes.checkPropTypes() to call them. ' +
2796
- 'Read more at http://fb.me/use-check-prop-types'
2797
- );
2798
- err.name = 'Invariant Violation';
2799
- throw err;
2800
- } shim.isRequired = shim;
2801
- function getShim() {
2802
- return shim;
2803
- } // Important!
2804
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
2805
- var ReactPropTypes = {
2806
- array: shim,
2807
- bigint: shim,
2808
- bool: shim,
2809
- func: shim,
2810
- number: shim,
2811
- object: shim,
2812
- string: shim,
2813
- symbol: shim,
2814
-
2815
- any: shim,
2816
- arrayOf: getShim,
2817
- element: shim,
2818
- elementType: shim,
2819
- instanceOf: getShim,
2820
- node: shim,
2821
- objectOf: getShim,
2822
- oneOf: getShim,
2823
- oneOfType: getShim,
2824
- shape: getShim,
2825
- exact: getShim,
2826
-
2827
- checkPropTypes: emptyFunctionWithReset,
2828
- resetWarningCache: emptyFunction
2829
- };
2830
-
2831
- ReactPropTypes.PropTypes = ReactPropTypes;
2832
-
2833
- return ReactPropTypes;
2834
- };
2835
- return factoryWithThrowingShims;
2836
- }
2837
-
2838
- /**
2839
- * Copyright (c) 2013-present, Facebook, Inc.
2840
- *
2841
- * This source code is licensed under the MIT license found in the
2842
- * LICENSE file in the root directory of this source tree.
2843
- */
2844
-
2845
- if (process.env.NODE_ENV !== 'production') {
2846
- var ReactIs = requireReactIs();
2847
-
2848
- // By explicitly using `prop-types` you are opting into new development behavior.
2849
- // http://fb.me/prop-types-in-prod
2850
- var throwOnDirectAccess = true;
2851
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
2852
- } else {
2853
- // By explicitly using `prop-types` you are opting into new production behavior.
2854
- // http://fb.me/prop-types-in-prod
2855
- propTypes.exports = requireFactoryWithThrowingShims()();
2856
- }
2857
-
2858
1553
  /**
2859
1554
  * Checks if a given element has a CSS class.
2860
1555
  *
@@ -2902,24 +1597,6 @@ var config = {
2902
1597
  disabled: false
2903
1598
  };
2904
1599
 
2905
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.shape({
2906
- enter: propTypes.exports.number,
2907
- exit: propTypes.exports.number,
2908
- appear: propTypes.exports.number
2909
- }).isRequired]) : null;
2910
- var classNamesShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.shape({
2911
- enter: propTypes.exports.string,
2912
- exit: propTypes.exports.string,
2913
- active: propTypes.exports.string
2914
- }), propTypes.exports.shape({
2915
- enter: propTypes.exports.string,
2916
- enterDone: propTypes.exports.string,
2917
- enterActive: propTypes.exports.string,
2918
- exit: propTypes.exports.string,
2919
- exitDone: propTypes.exports.string,
2920
- exitActive: propTypes.exports.string
2921
- })]) : null;
2922
-
2923
1600
  var TransitionGroupContext = React.createContext(null);
2924
1601
 
2925
1602
  var forceReflow = function forceReflow(node) {
@@ -3332,193 +2009,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
3332
2009
  }(React.Component);
3333
2010
 
3334
2011
  Transition.contextType = TransitionGroupContext;
3335
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
3336
- /**
3337
- * A React reference to DOM element that need to transition:
3338
- * https://stackoverflow.com/a/51127130/4671932
3339
- *
3340
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
3341
- * (e.g. `onEnter`) because user already has direct access to the node.
3342
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
3343
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
3344
- * (see
3345
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
3346
- */
3347
- nodeRef: propTypes.exports.shape({
3348
- current: typeof Element === 'undefined' ? propTypes.exports.any : function (propValue, key, componentName, location, propFullName, secret) {
3349
- var value = propValue[key];
3350
- return propTypes.exports.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
3351
- }
3352
- }),
3353
-
3354
- /**
3355
- * A `function` child can be used instead of a React element. This function is
3356
- * called with the current transition status (`'entering'`, `'entered'`,
3357
- * `'exiting'`, `'exited'`), which can be used to apply context
3358
- * specific props to a component.
3359
- *
3360
- * ```jsx
3361
- * <Transition in={this.state.in} timeout={150}>
3362
- * {state => (
3363
- * <MyComponent className={`fade fade-${state}`} />
3364
- * )}
3365
- * </Transition>
3366
- * ```
3367
- */
3368
- children: propTypes.exports.oneOfType([propTypes.exports.func.isRequired, propTypes.exports.element.isRequired]).isRequired,
3369
-
3370
- /**
3371
- * Show the component; triggers the enter or exit states
3372
- */
3373
- in: propTypes.exports.bool,
3374
-
3375
- /**
3376
- * By default the child component is mounted immediately along with
3377
- * the parent `Transition` component. If you want to "lazy mount" the component on the
3378
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
3379
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
3380
- */
3381
- mountOnEnter: propTypes.exports.bool,
3382
-
3383
- /**
3384
- * By default the child component stays mounted after it reaches the `'exited'` state.
3385
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
3386
- */
3387
- unmountOnExit: propTypes.exports.bool,
3388
-
3389
- /**
3390
- * By default the child component does not perform the enter transition when
3391
- * it first mounts, regardless of the value of `in`. If you want this
3392
- * behavior, set both `appear` and `in` to `true`.
3393
- *
3394
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
3395
- * > only adds an additional enter transition. However, in the
3396
- * > `<CSSTransition>` component that first enter transition does result in
3397
- * > additional `.appear-*` classes, that way you can choose to style it
3398
- * > differently.
3399
- */
3400
- appear: propTypes.exports.bool,
3401
-
3402
- /**
3403
- * Enable or disable enter transitions.
3404
- */
3405
- enter: propTypes.exports.bool,
3406
-
3407
- /**
3408
- * Enable or disable exit transitions.
3409
- */
3410
- exit: propTypes.exports.bool,
3411
-
3412
- /**
3413
- * The duration of the transition, in milliseconds.
3414
- * Required unless `addEndListener` is provided.
3415
- *
3416
- * You may specify a single timeout for all transitions:
3417
- *
3418
- * ```jsx
3419
- * timeout={500}
3420
- * ```
3421
- *
3422
- * or individually:
3423
- *
3424
- * ```jsx
3425
- * timeout={{
3426
- * appear: 500,
3427
- * enter: 300,
3428
- * exit: 500,
3429
- * }}
3430
- * ```
3431
- *
3432
- * - `appear` defaults to the value of `enter`
3433
- * - `enter` defaults to `0`
3434
- * - `exit` defaults to `0`
3435
- *
3436
- * @type {number | { enter?: number, exit?: number, appear?: number }}
3437
- */
3438
- timeout: function timeout(props) {
3439
- var pt = timeoutsShape;
3440
- if (!props.addEndListener) pt = pt.isRequired;
3441
-
3442
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3443
- args[_key - 1] = arguments[_key];
3444
- }
3445
-
3446
- return pt.apply(void 0, [props].concat(args));
3447
- },
3448
-
3449
- /**
3450
- * Add a custom transition end trigger. Called with the transitioning
3451
- * DOM node and a `done` callback. Allows for more fine grained transition end
3452
- * logic. Timeouts are still used as a fallback if provided.
3453
- *
3454
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3455
- *
3456
- * ```jsx
3457
- * addEndListener={(node, done) => {
3458
- * // use the css transitionend event to mark the finish of a transition
3459
- * node.addEventListener('transitionend', done, false);
3460
- * }}
3461
- * ```
3462
- */
3463
- addEndListener: propTypes.exports.func,
3464
-
3465
- /**
3466
- * Callback fired before the "entering" status is applied. An extra parameter
3467
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3468
- *
3469
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3470
- *
3471
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
3472
- */
3473
- onEnter: propTypes.exports.func,
3474
-
3475
- /**
3476
- * Callback fired after the "entering" status is applied. An extra parameter
3477
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3478
- *
3479
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3480
- *
3481
- * @type Function(node: HtmlElement, isAppearing: bool)
3482
- */
3483
- onEntering: propTypes.exports.func,
3484
-
3485
- /**
3486
- * Callback fired after the "entered" status is applied. An extra parameter
3487
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3488
- *
3489
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3490
- *
3491
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
3492
- */
3493
- onEntered: propTypes.exports.func,
3494
-
3495
- /**
3496
- * Callback fired before the "exiting" status is applied.
3497
- *
3498
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3499
- *
3500
- * @type Function(node: HtmlElement) -> void
3501
- */
3502
- onExit: propTypes.exports.func,
3503
-
3504
- /**
3505
- * Callback fired after the "exiting" status is applied.
3506
- *
3507
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3508
- *
3509
- * @type Function(node: HtmlElement) -> void
3510
- */
3511
- onExiting: propTypes.exports.func,
3512
-
3513
- /**
3514
- * Callback fired after the "exited" status is applied.
3515
- *
3516
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
3517
- *
3518
- * @type Function(node: HtmlElement) -> void
3519
- */
3520
- onExited: propTypes.exports.func
3521
- } : {}; // Name the function so it is clearer in the documentation
2012
+ Transition.propTypes = {}; // Name the function so it is clearer in the documentation
3522
2013
 
3523
2014
  function noop() {}
3524
2015
 
@@ -3813,136 +2304,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
3813
2304
  CSSTransition.defaultProps = {
3814
2305
  classNames: ''
3815
2306
  };
3816
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, Transition$1.propTypes, {
3817
- /**
3818
- * The animation classNames applied to the component as it appears, enters,
3819
- * exits or has finished the transition. A single name can be provided, which
3820
- * will be suffixed for each stage, e.g. `classNames="fade"` applies:
3821
- *
3822
- * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
3823
- * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
3824
- * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
3825
- *
3826
- * A few details to note about how these classes are applied:
3827
- *
3828
- * 1. They are _joined_ with the ones that are already defined on the child
3829
- * component, so if you want to add some base styles, you can use
3830
- * `className` without worrying that it will be overridden.
3831
- *
3832
- * 2. If the transition component mounts with `in={false}`, no classes are
3833
- * applied yet. You might be expecting `*-exit-done`, but if you think
3834
- * about it, a component cannot finish exiting if it hasn't entered yet.
3835
- *
3836
- * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
3837
- * allows you to define different behavior for when appearing is done and
3838
- * when regular entering is done, using selectors like
3839
- * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
3840
- * an epic entrance animation when element first appears in the DOM using
3841
- * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
3842
- * simply use `fade-enter-done` for defining both cases.
3843
- *
3844
- * Each individual classNames can also be specified independently like:
3845
- *
3846
- * ```js
3847
- * classNames={{
3848
- * appear: 'my-appear',
3849
- * appearActive: 'my-active-appear',
3850
- * appearDone: 'my-done-appear',
3851
- * enter: 'my-enter',
3852
- * enterActive: 'my-active-enter',
3853
- * enterDone: 'my-done-enter',
3854
- * exit: 'my-exit',
3855
- * exitActive: 'my-active-exit',
3856
- * exitDone: 'my-done-exit',
3857
- * }}
3858
- * ```
3859
- *
3860
- * If you want to set these classes using CSS Modules:
3861
- *
3862
- * ```js
3863
- * import styles from './styles.css';
3864
- * ```
3865
- *
3866
- * you might want to use camelCase in your CSS file, that way could simply
3867
- * spread them instead of listing them one by one:
3868
- *
3869
- * ```js
3870
- * classNames={{ ...styles }}
3871
- * ```
3872
- *
3873
- * @type {string | {
3874
- * appear?: string,
3875
- * appearActive?: string,
3876
- * appearDone?: string,
3877
- * enter?: string,
3878
- * enterActive?: string,
3879
- * enterDone?: string,
3880
- * exit?: string,
3881
- * exitActive?: string,
3882
- * exitDone?: string,
3883
- * }}
3884
- */
3885
- classNames: classNamesShape,
3886
-
3887
- /**
3888
- * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
3889
- * applied.
3890
- *
3891
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3892
- *
3893
- * @type Function(node: HtmlElement, isAppearing: bool)
3894
- */
3895
- onEnter: propTypes.exports.func,
3896
-
3897
- /**
3898
- * A `<Transition>` callback fired immediately after the 'enter-active' or
3899
- * 'appear-active' class is applied.
3900
- *
3901
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3902
- *
3903
- * @type Function(node: HtmlElement, isAppearing: bool)
3904
- */
3905
- onEntering: propTypes.exports.func,
3906
-
3907
- /**
3908
- * A `<Transition>` callback fired immediately after the 'enter' or
3909
- * 'appear' classes are **removed** and the `done` class is added to the DOM node.
3910
- *
3911
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3912
- *
3913
- * @type Function(node: HtmlElement, isAppearing: bool)
3914
- */
3915
- onEntered: propTypes.exports.func,
3916
-
3917
- /**
3918
- * A `<Transition>` callback fired immediately after the 'exit' class is
3919
- * applied.
3920
- *
3921
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
3922
- *
3923
- * @type Function(node: HtmlElement)
3924
- */
3925
- onExit: propTypes.exports.func,
3926
-
3927
- /**
3928
- * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
3929
- *
3930
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
3931
- *
3932
- * @type Function(node: HtmlElement)
3933
- */
3934
- onExiting: propTypes.exports.func,
3935
-
3936
- /**
3937
- * A `<Transition>` callback fired immediately after the 'exit' classes
3938
- * are **removed** and the `exit-done` class is added to the DOM node.
3939
- *
3940
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
3941
- *
3942
- * @type Function(node: HtmlElement)
3943
- */
3944
- onExited: propTypes.exports.func
3945
- }) : {};
2307
+ CSSTransition.propTypes = {};
3946
2308
  var CSSTransition$1 = CSSTransition;
3947
2309
 
3948
2310
  var Body = function Body(_ref) {
@@ -4005,7 +2367,7 @@ var Slider = function Slider(_ref) {
4005
2367
  timeout: 300
4006
2368
  }, /*#__PURE__*/React.createElement("div", {
4007
2369
  className: "neeto-filters-slider__pane"
4008
- }, /*#__PURE__*/React.createElement("div", _extends$1({
2370
+ }, /*#__PURE__*/React.createElement("div", _extends({
4009
2371
  className: classnames("neeto-filters-slider__wrapper", _defineProperty({
4010
2372
  "neeto-filters-slider__wrapper--xsmall": size === SIZES.xsmall,
4011
2373
  "neeto-filters-slider__wrapper--small": size === SIZES.small,
@@ -4044,7 +2406,7 @@ var useFilters = function useFilters(_ref) {
4044
2406
  var handlePrecenseOfDefaultFilters = function handlePrecenseOfDefaultFilters(defaultFilters) {
4045
2407
  var params = buildUrlFromFilters({
4046
2408
  columns: columns,
4047
- filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(defaultFilters), [keywordFilter]) : defaultFilters
2409
+ filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(defaultFilters), [keywordFilter]) : defaultFilters
4048
2410
  });
4049
2411
  history.replace({
4050
2412
  search: params
@@ -4064,7 +2426,7 @@ var useFilters = function useFilters(_ref) {
4064
2426
  return;
4065
2427
  }
4066
2428
  var newFilters = buildFiltersFromSearchParams(columns);
4067
- var filtersPayload = isNotEmpty(getSearchTermFromUrl()) ? append(keywordFilter, newFilters) : newFilters;
2429
+ var filtersPayload = isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? append(keywordFilter, newFilters) : newFilters;
4068
2430
  handleFiltersChange(filtersPayload);
4069
2431
  onSelectorsChange(buildSelectorsFromURL(columns));
4070
2432
  };
@@ -4225,7 +2587,7 @@ var Boolean = function Boolean(_ref) {
4225
2587
  });
4226
2588
  handleApplyFilter(updatedFilter);
4227
2589
  };
4228
- return /*#__PURE__*/React.createElement(Select, _extends$1({
2590
+ return /*#__PURE__*/React.createElement(Select, _extends({
4229
2591
  autoFocus: autoFocus,
4230
2592
  label: label,
4231
2593
  options: options,
@@ -4310,7 +2672,7 @@ var Datetime = function Datetime(_ref) {
4310
2672
  resource: label.toLocaleLowerCase()
4311
2673
  }),
4312
2674
  onChange: handleChange
4313
- }), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends$1({
2675
+ }), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends({
4314
2676
  "data-cy": "neeto-filters-".concat(key, "-date-range"),
4315
2677
  getPopupContainer: prop("parentNode"),
4316
2678
  type: (selectedRule === null || selectedRule === void 0 ? void 0 : selectedRule.value) === "custom-date-range" ? "range" : "date",
@@ -4360,7 +2722,7 @@ var Dropdown = function Dropdown(_ref) {
4360
2722
  });
4361
2723
  handleApplyFilter(updatedFilter);
4362
2724
  };
4363
- return /*#__PURE__*/React.createElement(Select, _extends$1({
2725
+ return /*#__PURE__*/React.createElement(Select, _extends({
4364
2726
  autoFocus: autoFocus,
4365
2727
  label: label,
4366
2728
  options: options,
@@ -4401,9 +2763,8 @@ var SingleDatetime = function SingleDatetime(_ref) {
4401
2763
 
4402
2764
  // Reset states when "Clear filters" button is clicked.
4403
2765
  useEffect(function () {
4404
- if (isEmpty(filters)) {
4405
- setSelectedRule(SINGLE_DATE_OPTIONS[0]);
4406
- }
2766
+ if (!isEmpty(filters)) return;
2767
+ setSelectedRule(SINGLE_DATE_OPTIONS[0]);
4407
2768
  }, [filters]);
4408
2769
  var handleRuleChange = function handleRuleChange(ruleOption) {
4409
2770
  setSelectedRule(ruleOption);
@@ -4451,7 +2812,7 @@ var SingleDatetime = function SingleDatetime(_ref) {
4451
2812
  strategy: "fixed",
4452
2813
  value: selectedRule,
4453
2814
  onChange: handleRuleChange
4454
- }), /*#__PURE__*/React.createElement(DatePicker, _extends$1({
2815
+ }), /*#__PURE__*/React.createElement(DatePicker, _extends({
4455
2816
  autoFocus: autoFocus,
4456
2817
  value: value,
4457
2818
  "data-cy": "neeto-filters-".concat(key, "-filter"),
@@ -4483,9 +2844,8 @@ var SingleTime = function SingleTime(_ref) {
4483
2844
  var timePickerType = selectedRule.value === "between" ? "range" : "time";
4484
2845
  var value = filter === null || filter === void 0 ? void 0 : filter.value;
4485
2846
  useEffect(function () {
4486
- if (isEmpty(filters)) {
4487
- setSelectedRule(SINGLE_TIME_OPTIONS[0]);
4488
- }
2847
+ if (!isEmpty(filters)) return;
2848
+ setSelectedRule(SINGLE_TIME_OPTIONS[0]);
4489
2849
  }, [filters]);
4490
2850
  var handleRuleChange = function handleRuleChange(ruleOption) {
4491
2851
  setSelectedRule(ruleOption);
@@ -4526,10 +2886,10 @@ var SingleTime = function SingleTime(_ref) {
4526
2886
  strategy: "fixed",
4527
2887
  value: selectedRule,
4528
2888
  onChange: handleRuleChange
4529
- }), /*#__PURE__*/React.createElement(TimePicker, _extends$1({
4530
- use12Hours: true,
2889
+ }), /*#__PURE__*/React.createElement(TimePicker, _extends({
4531
2890
  autoFocus: autoFocus,
4532
2891
  value: value,
2892
+ use12Hours: true,
4533
2893
  className: "w-full",
4534
2894
  "data-cy": "neeto-filters-".concat(key, "-filter"),
4535
2895
  format: "h:mm A",
@@ -4586,10 +2946,9 @@ var Text = function Text(_ref) {
4586
2946
  handleApplyFilter(updatedFilter);
4587
2947
  };
4588
2948
  var handleKeydown = function handleKeydown(e) {
4589
- if (e.key === "Enter") {
4590
- handleUpdateAndApplyFilter(inputValue);
4591
- onClose();
4592
- }
2949
+ if (!(e.key === "Enter")) return;
2950
+ handleUpdateAndApplyFilter(inputValue);
2951
+ onClose();
4593
2952
  };
4594
2953
  var handleRuleChange = function handleRuleChange(ruleOption) {
4595
2954
  setSelectedRule(ruleOption);
@@ -4620,7 +2979,7 @@ var Text = function Text(_ref) {
4620
2979
  strategy: "fixed",
4621
2980
  value: selectedRule,
4622
2981
  onChange: handleRuleChange
4623
- }), /*#__PURE__*/React.createElement(Input$1, _extends$1({
2982
+ }), /*#__PURE__*/React.createElement(Input$1, _extends({
4624
2983
  autoFocus: autoFocus,
4625
2984
  "data-cy": "neeto-filters-".concat(key, "-filter"),
4626
2985
  label: !showRuleSelector && label,
@@ -4690,7 +3049,7 @@ var Time = function Time(_ref) {
4690
3049
  resource: label.toLocaleLowerCase()
4691
3050
  }),
4692
3051
  onChange: handleChange
4693
- }), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends$1({
3052
+ }), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends({
4694
3053
  use12Hours: true,
4695
3054
  "data-cy": "neeto-filters-".concat(key, "-date-range"),
4696
3055
  format: "h:mm A",
@@ -4818,19 +3177,6 @@ var Pane = function Pane(_ref) {
4818
3177
  groupedColumns = _buildFilteredColumns2 === void 0 ? [] : _buildFilteredColumns2,
4819
3178
  _buildFilteredColumns3 = _buildFilteredColumns.ungroupedColumns,
4820
3179
  ungroupedColumns = _buildFilteredColumns3 === void 0 ? [] : _buildFilteredColumns3;
4821
- var handleChange = function handleChange(newFilters) {
4822
- var isClearAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4823
- var params = buildUrlFromFilters(_objectSpread$1({
4824
- columns: columns,
4825
- filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
4826
- }, isClearAll && {
4827
- isClearAll: true,
4828
- childrenKeys: childrenKeys
4829
- }));
4830
- history.push({
4831
- search: params
4832
- });
4833
- };
4834
3180
  var keywordFilter = _objectSpread$1(_objectSpread$1({
4835
3181
  type: "text",
4836
3182
  rule: "contains",
@@ -4845,8 +3191,21 @@ var Pane = function Pane(_ref) {
4845
3191
  keywordFilter: keywordFilter,
4846
3192
  onSelectorsChange: onSelectorsChange
4847
3193
  });
3194
+ var handleChange = function handleChange(newFilters) {
3195
+ var isClearAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3196
+ var params = buildUrlFromFilters(_objectSpread$1({
3197
+ columns: columns,
3198
+ filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
3199
+ }, isClearAll && {
3200
+ isClearAll: true,
3201
+ childrenKeys: childrenKeys
3202
+ }));
3203
+ history.push({
3204
+ search: params
3205
+ });
3206
+ };
4848
3207
  var handleClearAll = function handleClearAll() {
4849
- var params = omit(["search_term"], getQueryParams());
3208
+ var params = isKeywordFilterPresent(keywordFilter) ? omit(["search_term"], getQueryParams()) : getQueryParams();
4850
3209
  var pathname = window.location.pathname;
4851
3210
  history.push(buildUrl(pathname, params));
4852
3211
  handleChange([], true);
@@ -4870,7 +3229,7 @@ var Pane = function Pane(_ref) {
4870
3229
  });
4871
3230
  return /*#__PURE__*/React.createElement(Portal, {
4872
3231
  rootId: "neeto-filters-portal"
4873
- }, /*#__PURE__*/React.createElement(Slider, _extends$1({
3232
+ }, /*#__PURE__*/React.createElement(Slider, _extends({
4874
3233
  isOpen: isOpen,
4875
3234
  size: size,
4876
3235
  onClose: handleClose
@@ -4882,13 +3241,16 @@ var Pane = function Pane(_ref) {
4882
3241
  weight: "semibold"
4883
3242
  }, t("neetoFilters.common.filters"))), /*#__PURE__*/React.createElement(Slider.Body, {
4884
3243
  className: "neeto-filters-pane-filter__body neeto-ui-pt-2"
4885
- }, isSearchable && /*#__PURE__*/React.createElement(Search, {
3244
+ }, isSearchable && /*#__PURE__*/React.createElement(Input$1, {
3245
+ autoFocus: true,
4886
3246
  "data-cy": "neeto-filters-column-search",
3247
+ prefix: /*#__PURE__*/React.createElement(Search, null),
3248
+ value: searchTerm,
4887
3249
  placeholder: t("neetoFilters.messages.searchResources", {
4888
3250
  resources: t("neetoFilters.common.filters").toLocaleLowerCase()
4889
3251
  }),
4890
- onSearch: function onSearch(value) {
4891
- return setSearchTerm(value);
3252
+ onChange: function onChange(event) {
3253
+ return setSearchTerm(event.target.value);
4892
3254
  }
4893
3255
  }), ungroupedColumns.map(function (column) {
4894
3256
  return /*#__PURE__*/React.createElement(Item, {
@@ -4943,7 +3305,7 @@ var Pane = function Pane(_ref) {
4943
3305
 
4944
3306
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
4945
3307
 
4946
- var css = ".neeto-filters-bar{align-items:center;display:flex;flex-wrap:wrap}.neeto-filters-bar__block{border-radius:var(--neeto-ui-rounded);display:flex;gap:4px;margin:4px 0;max-width:384px;overflow:hidden;padding:4px 8px;position:relative;transition:var(--neeto-ui-transition);white-space:nowrap}.neeto-filters-bar__block p:first-child{color:rgb(var(--neeto-ui-gray-700))}.neeto-filters-bar__block-close{background-image:linear-gradient(90deg,rgba(var(--neeto-ui-gray-200),.5) 0,rgba(var(--neeto-ui-gray-200),1) 25%);color:rgb(var(--neeto-ui-gray-800));opacity:0;padding:8px;position:absolute;right:0;top:0;transition:var(--neeto-ui-transition)}.neeto-filters-bar__block:active,.neeto-filters-bar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));cursor:pointer}.neeto-filters-bar__block:active .neeto-filters-bar__block-close,.neeto-filters-bar__block:hover .neeto-filters-bar__block-close{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-black));opacity:1}.neeto-filters-bar__block:focus{box-shadow:0 0 0 3px rgba(var(--neeto-ui-gray-800),15%);outline:none}.neeto-filters-bar--separator{align-self:stretch;border-left:1px solid rgb(var(--neeto-ui-gray-400));margin:12px 8px}.neeto-filters-slider__pane{border-radius:12px 0 0 12px;position:fixed;right:0;top:0;z-index:99998}.neeto-filters-slider__wrapper{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-m);height:100vh;max-width:100%;transform:translateX(100%);transition:all .3s}.neeto-filters-slider__wrapper--xsmall{width:360px}.neeto-filters-slider__wrapper--small{width:480px}.neeto-filters-slider__wrapper--large{width:50vw}@media screen and (max-width:767px){.neeto-filters-slider__wrapper{width:100vw}}.neeto-filters-slider__close{position:absolute!important;right:24px;top:24px}.neeto-filters-slider__header{padding:24px 60px 24px 24px;width:100%}.neeto-filters-slider__body{font-size:var(--neeto-ui-text-sm);height:calc(100vh - var(--neeto-ui-pane-header-height));overflow-y:auto;padding:0 24px;width:100%}.neeto-filters-slider__body.neeto-filters-slider__body--has-footer{height:calc(100vh - var(--neeto-ui-pane-header-height) - var(--neeto-ui-pane-footer-height))}.neeto-filters-slider__footer{background-color:rgb(var(--neeto-ui-white));min-height:var(--neeto-ui-pane-footer-height);padding:24px;width:100%}.neeto-filters-slider__footer.neeto-filters-slider__footer__absolute{bottom:0;left:0;position:absolute;width:100%}.neeto-filters-slider-enter .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-slider-enter-active .neeto-filters-slider__wrapper,.neeto-filters-slider-enter-done .neeto-filters-slider__wrapper{transform:translateX(0)}.neeto-filters-slider-exit .neeto-filters-slider__wrapper,.neeto-filters-slider-exit-active .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-pane-filter__body{align-items:stretch!important;gap:20px}.neeto-filters-pane-filter__body>*{flex-grow:0!important}.neeto-filters-pane-filter__body p{text-align:center}.neeto-filters-pane-filter__body .neeto-filters-pane-filter__item-wrapper{display:flex;flex-direction:column;gap:8px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper:first-of-type{margin-top:0}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__wrapper:first-of-type{margin-top:0}.neeto-filters-pane-filter__body .accordion_item:first-of-type .neeto-ui-accordion__item{padding-top:0}.neeto-filters-pane-filter__body .neeto-ui-accordion__wrapper--last-item{border-bottom:thin solid rgb(var(--neeto-ui-gray-300))}.neeto-filters-pane-filter__footer{justify-content:space-between}.neeto-filters-pane-filter__footer div{display:flex;gap:8px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19iYXIuc2NzcyIsInNyYy9zdHlsZXNoZWV0cy9pbmRleC5zY3NzIiwic3JjL3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3NsaWRlci5zY3NzIiwic3JjL3N0eWxlc2hlZXRzL2Fic3RyYWN0cy9fbWl4aW5zLnNjc3MiLCJz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JldGNoICFpbXBvcnRhbnQ7XG4gICAgZ2FwOiAyMHB4O1xuXG4gICAgPiAqIHtcbiAgICAgIGZsZXgtZ3JvdzogMCAhaW1wb3J0YW50O1xuICAgIH1cblxuICAgIHAge1xuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIH1cblxuICAgIC5uZWV0by1maWx0ZXJzLXBhbmUtZmlsdGVyX19pdGVtLXdyYXBwZXIge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICBnYXA6IDhweDtcbiAgICB9XG5cbiAgICAuYWNjb3JkaW9uX2l0ZW0ge1xuICAgICAgLm5lZXRvLWZpbHRlcnMtcGFuZS1maWx0ZXJfX2l0ZW0td3JhcHBlciB7XG4gICAgICAgIG1hcmdpbi10b3A6IDE2cHg7XG5cbiAgICAgICAgJjpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICAubmVldG8tdWktaW5wdXRfX3dyYXBwZXIge1xuICAgICAgICBtYXJnaW4tdG9wOiAxNnB4O1xuXG4gICAgICAgICY6Zmlyc3Qtb2YtdHlwZSB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAmOmZpcnN0LW9mLXR5cGUge1xuICAgICAgICAubmVldG8tdWktYWNjb3JkaW9uX19pdGVtIHtcbiAgICAgICAgICBwYWRkaW5nLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICAubmVldG8tdWktYWNjb3JkaW9uX193cmFwcGVyLS1sYXN0LWl0ZW0ge1xuICAgICAgYm9yZGVyLWJvdHRvbTogdGhpbiBzb2xpZCByZ2IodmFyKC0tbmVldG8tdWktZ3JheS0zMDApKTtcbiAgICB9XG4gIH1cblxuICAmX19mb290ZXIge1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcblxuICAgIGRpdiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgZ2FwOiA4cHg7XG4gICAgfVxuICB9XG59XG4iXX0= */";
3308
+ var css = ".neeto-filters-bar{align-items:center;display:flex;flex-wrap:wrap}.neeto-filters-bar__block{border-radius:var(--neeto-ui-rounded);display:flex;gap:4px;margin:4px 0;max-width:384px;overflow:hidden;padding:4px 8px;position:relative;transition:var(--neeto-ui-transition);white-space:nowrap}.neeto-filters-bar__block p:first-child{color:rgb(var(--neeto-ui-gray-700))}.neeto-filters-bar__block-close{background-image:linear-gradient(90deg,rgba(var(--neeto-ui-gray-200),.5) 0,rgba(var(--neeto-ui-gray-200),1) 25%);color:rgb(var(--neeto-ui-gray-800));opacity:0;padding:8px;position:absolute;right:0;top:0;transition:var(--neeto-ui-transition)}.neeto-filters-bar__block:active,.neeto-filters-bar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));cursor:pointer}.neeto-filters-bar__block:active .neeto-filters-bar__block-close,.neeto-filters-bar__block:hover .neeto-filters-bar__block-close{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-black));opacity:1}.neeto-filters-bar__block:focus{box-shadow:0 0 0 3px rgba(var(--neeto-ui-gray-800),15%);outline:none}.neeto-filters-bar--separator{align-self:stretch;border-left:1px solid rgb(var(--neeto-ui-gray-400));margin:12px 8px}.neeto-filters-slider__pane{border-radius:12px 0 0 12px;position:fixed;right:0;top:0;z-index:99998}.neeto-filters-slider__wrapper{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-m);height:100vh;max-width:100%;transform:translateX(100%);transition:all .3s}.neeto-filters-slider__wrapper--xsmall{width:360px}.neeto-filters-slider__wrapper--small{width:480px}.neeto-filters-slider__wrapper--large{width:50vw}@media screen and (max-width:767px){.neeto-filters-slider__wrapper{width:100vw}}.neeto-filters-slider__close{position:absolute!important;right:24px;top:24px}.neeto-filters-slider__header{padding:24px 60px 24px 24px;width:100%}.neeto-filters-slider__body{font-size:var(--neeto-ui-text-sm);height:calc(100vh - var(--neeto-ui-pane-header-height));overflow-y:auto;padding:0 24px;width:100%}.neeto-filters-slider__body.neeto-filters-slider__body--has-footer{height:calc(100vh - var(--neeto-ui-pane-header-height) - var(--neeto-ui-pane-footer-height))}.neeto-filters-slider__footer{background-color:rgb(var(--neeto-ui-white));min-height:var(--neeto-ui-pane-footer-height);padding:24px;width:100%}.neeto-filters-slider__footer.neeto-filters-slider__footer__absolute{bottom:0;left:0;position:absolute;width:100%}.neeto-filters-slider-enter .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-slider-enter-active .neeto-filters-slider__wrapper,.neeto-filters-slider-enter-done .neeto-filters-slider__wrapper{transform:translateX(0)}.neeto-filters-slider-exit .neeto-filters-slider__wrapper,.neeto-filters-slider-exit-active .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-pane-filter__body{align-items:stretch!important;gap:20px}.neeto-filters-pane-filter__body>*{flex-grow:0!important}.neeto-filters-pane-filter__body p{text-align:center}.neeto-filters-pane-filter__body .neeto-filters-pane-filter__item-wrapper{display:flex;flex-direction:column;gap:8px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper:first-of-type{margin-top:0}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__wrapper:first-of-type{margin-top:0}.neeto-filters-pane-filter__body .accordion_item:first-of-type .neeto-ui-accordion__item{padding-top:0}.neeto-filters-pane-filter__body .neeto-ui-accordion__wrapper--last-item{border-bottom:thin solid rgb(var(--neeto-ui-gray-300))}.neeto-filters-pane-filter__footer{justify-content:space-between}.neeto-filters-pane-filter__footer div{display:flex;gap:8px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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cGUge1xuICAgICAgICAubmVldG8tdWktYWNjb3JkaW9uX19pdGVtIHtcbiAgICAgICAgICBwYWRkaW5nLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICAubmVldG8tdWktYWNjb3JkaW9uX193cmFwcGVyLS1sYXN0LWl0ZW0ge1xuICAgICAgYm9yZGVyLWJvdHRvbTogdGhpbiBzb2xpZCByZ2IodmFyKC0tbmVldG8tdWktZ3JheS0zMDApKTtcbiAgICB9XG4gIH1cblxuICAmX19mb290ZXIge1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcblxuICAgIGRpdiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgZ2FwOiA4cHg7XG4gICAgfVxuICB9XG59XG4iXX0= */";
4947
3309
  n(css,{});
4948
3310
 
4949
3311
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -4978,14 +3340,14 @@ var Filters = withT(function (_ref) {
4978
3340
  children = _ref.children;
4979
3341
  return /*#__PURE__*/React.createElement("span", {
4980
3342
  className: classnames(_defineProperty({}, className, className))
4981
- }, /*#__PURE__*/React.createElement(Button, _extends$1({
3343
+ }, /*#__PURE__*/React.createElement(Button, _extends({
4982
3344
  "data-cy": "neeto-filters-toggle-btn",
4983
3345
  label: t("neetoFilters.common.filter"),
4984
3346
  style: "secondary",
4985
3347
  onClick: function onClick() {
4986
3348
  return setIsOpen(true);
4987
3349
  }
4988
- }, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends$1({
3350
+ }, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends({
4989
3351
  onClose: function onClose() {
4990
3352
  return setIsOpen(false);
4991
3353
  }
@@ -5151,11 +3513,15 @@ var ManagePane = function ManagePane(_ref) {
5151
3513
  style: "h2"
5152
3514
  }, t("neetoFilters.segments.manageSegments"))), /*#__PURE__*/React.createElement(Pane$1.Body, {
5153
3515
  className: "max-h-full gap-4 overflow-scroll"
5154
- }, /*#__PURE__*/React.createElement(Search, {
3516
+ }, /*#__PURE__*/React.createElement(Input$1, {
5155
3517
  className: "w-full flex-grow-0",
5156
3518
  placeholder: t("neetoFilters.segments.searchSegments"),
3519
+ prefix: /*#__PURE__*/React.createElement(Search, null),
5157
3520
  ref: inputRef,
5158
- onSearch: function onSearch(value) {
3521
+ type: "search",
3522
+ value: searchTerm,
3523
+ onChange: function onChange(_ref2) {
3524
+ var value = _ref2.target.value;
5159
3525
  return setSearchTerm(value);
5160
3526
  }
5161
3527
  }), isLoading ? /*#__PURE__*/React.createElement(Spinner, {
@@ -5270,7 +3636,7 @@ var Segments = function Segments(_ref) {
5270
3636
  t = _useTranslation.t;
5271
3637
  var debouncedSearchTerm = useDebounce(searchTerm);
5272
3638
  var iconProps = [{
5273
- icon: Search$1,
3639
+ icon: Search,
5274
3640
  onClick: function onClick() {
5275
3641
  setSearchTerm("");
5276
3642
  setIsSearchCollapsed(function (collapsed) {