@bigbinary/neeto-filters-frontend 2.11.14 → 2.11.15
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.cjs.js +225 -2873
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +374 -3022
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useContext
|
|
2
|
+
import React__default, { useContext, useState, useRef, useEffect, useDebugValue, createContext, forwardRef as forwardRef$1, Children, isValidElement, cloneElement, useCallback, useMemo, useLayoutEffect, Component, createElement, Fragment } from 'react';
|
|
3
3
|
import classnames$4 from 'classnames';
|
|
4
4
|
import { curryN as curryN$1, isNil as isNil$1, curry, complement, either as either$1, isEmpty as isEmpty$1, mergeLeft as mergeLeft$1, toPairs, groupBy, anyPass, any, identity, omit, mergeRight, concat, pluck as pluck$1, has as has$5, dissoc, equals as equals$1, pick, modify, prop as prop$1, isNotNil, append as append$1, last } from 'ramda';
|
|
5
5
|
import { Tooltip as Tooltip$1, Typography as Typography$1, Dropdown as Dropdown$2, Button as Button$1, Pane as Pane$1, Alert, Select as Select$2, DatePicker, TimePicker, Input as Input$2, Accordion, Spinner as Spinner$1 } from '@bigbinary/neetoui';
|
|
6
|
-
import { Link, useHistory
|
|
6
|
+
import { Link, useHistory, useLocation } from 'react-router-dom';
|
|
7
7
|
import '@honeybadger-io/react';
|
|
8
8
|
import 'react-helmet';
|
|
9
9
|
import axios from 'axios';
|
|
10
10
|
import { Close, Search as Search$1, Plus, Check, MenuHorizontal, Down, Settings } from '@bigbinary/neeto-icons';
|
|
11
|
-
import require$$0
|
|
11
|
+
import require$$0 from 'util';
|
|
12
12
|
import dayjs$1 from 'dayjs';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import { useFormikContext, Field, Formik, useField, Form as Form$1 } from 'formik';
|
|
@@ -247,28 +247,7 @@ function _defineProperty$5(obj, key, value) {
|
|
|
247
247
|
return obj;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
var commonjsGlobal$
|
|
251
|
-
|
|
252
|
-
function getAugmentedNamespace(n) {
|
|
253
|
-
var f = n.default;
|
|
254
|
-
if (typeof f == "function") {
|
|
255
|
-
var a = function () {
|
|
256
|
-
return f.apply(this, arguments);
|
|
257
|
-
};
|
|
258
|
-
a.prototype = f.prototype;
|
|
259
|
-
} else a = {};
|
|
260
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
261
|
-
Object.keys(n).forEach(function (k) {
|
|
262
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
263
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () {
|
|
266
|
-
return n[k];
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
return a;
|
|
271
|
-
}
|
|
250
|
+
var commonjsGlobal$2 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
272
251
|
|
|
273
252
|
function _classCallCheck$3(instance, Constructor) {
|
|
274
253
|
if (!(instance instanceof Constructor)) {
|
|
@@ -495,7 +474,7 @@ function useTranslation(ns) {
|
|
|
495
474
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
496
475
|
var i18nFromProps = props.i18n;
|
|
497
476
|
|
|
498
|
-
var _ref = useContext
|
|
477
|
+
var _ref = useContext(I18nContext) || {},
|
|
499
478
|
i18nFromContext = _ref.i18n,
|
|
500
479
|
defaultNSFromContext = _ref.defaultNS;
|
|
501
480
|
|
|
@@ -605,9 +584,9 @@ var SvgInternalServerError = function SvgInternalServerError(props) {
|
|
|
605
584
|
};
|
|
606
585
|
|
|
607
586
|
var _path$1, _path2$1;
|
|
608
|
-
function _extends$1$
|
|
587
|
+
function _extends$1$2() { _extends$1$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1$2.apply(this, arguments); }
|
|
609
588
|
var SvgPageNotFound = function SvgPageNotFound(props) {
|
|
610
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1$
|
|
589
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1$2({
|
|
611
590
|
width: 121,
|
|
612
591
|
height: 120,
|
|
613
592
|
fill: "none",
|
|
@@ -622,9 +601,9 @@ var SvgPageNotFound = function SvgPageNotFound(props) {
|
|
|
622
601
|
};
|
|
623
602
|
|
|
624
603
|
var _path, _path2;
|
|
625
|
-
function _extends$
|
|
604
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
626
605
|
var SvgUnauthorized = function SvgUnauthorized(props) {
|
|
627
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
606
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
628
607
|
width: 120,
|
|
629
608
|
height: 120,
|
|
630
609
|
fill: "none",
|
|
@@ -1267,7 +1246,7 @@ const createStoreImpl = (createState) => {
|
|
|
1267
1246
|
};
|
|
1268
1247
|
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
1269
1248
|
|
|
1270
|
-
var commonjsGlobal$
|
|
1249
|
+
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1271
1250
|
|
|
1272
1251
|
function getDefaultExportFromCjs$1 (x) {
|
|
1273
1252
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -2975,7 +2954,7 @@ var platform$1 = {exports: {}};
|
|
|
2975
2954
|
var freeModule = module && !module.nodeType && module;
|
|
2976
2955
|
|
|
2977
2956
|
/** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
|
|
2978
|
-
var freeGlobal = freeExports && freeModule && typeof commonjsGlobal$
|
|
2957
|
+
var freeGlobal = freeExports && freeModule && typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1;
|
|
2979
2958
|
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
|
|
2980
2959
|
root = freeGlobal;
|
|
2981
2960
|
}
|
|
@@ -4188,7 +4167,7 @@ var platform$1 = {exports: {}};
|
|
|
4188
4167
|
// Export to the global object.
|
|
4189
4168
|
root.platform = platform;
|
|
4190
4169
|
}
|
|
4191
|
-
}.call(commonjsGlobal$
|
|
4170
|
+
}.call(commonjsGlobal$1));
|
|
4192
4171
|
} (platform$1, platform$1.exports));
|
|
4193
4172
|
|
|
4194
4173
|
var platform = platform$1.exports;
|
|
@@ -4307,7 +4286,7 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
4307
4286
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
4308
4287
|
}
|
|
4309
4288
|
|
|
4310
|
-
function parse$
|
|
4289
|
+
function parse$3(uuid) {
|
|
4311
4290
|
if (!validate(uuid)) {
|
|
4312
4291
|
throw TypeError('Invalid UUID');
|
|
4313
4292
|
}
|
|
@@ -4362,7 +4341,7 @@ function v35(name, version, hashfunc) {
|
|
|
4362
4341
|
}
|
|
4363
4342
|
|
|
4364
4343
|
if (typeof namespace === 'string') {
|
|
4365
|
-
namespace = parse$
|
|
4344
|
+
namespace = parse$3(namespace);
|
|
4366
4345
|
}
|
|
4367
4346
|
|
|
4368
4347
|
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
@@ -5124,12 +5103,12 @@ function _assertThisInitialized$3(self) {
|
|
|
5124
5103
|
return self;
|
|
5125
5104
|
}
|
|
5126
5105
|
|
|
5127
|
-
function _setPrototypeOf$
|
|
5128
|
-
_setPrototypeOf$
|
|
5106
|
+
function _setPrototypeOf$3(o, p) {
|
|
5107
|
+
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
5129
5108
|
o.__proto__ = p;
|
|
5130
5109
|
return o;
|
|
5131
5110
|
};
|
|
5132
|
-
return _setPrototypeOf$
|
|
5111
|
+
return _setPrototypeOf$3(o, p);
|
|
5133
5112
|
}
|
|
5134
5113
|
|
|
5135
5114
|
function _inherits$1(subClass, superClass) {
|
|
@@ -5146,7 +5125,7 @@ function _inherits$1(subClass, superClass) {
|
|
|
5146
5125
|
Object.defineProperty(subClass, "prototype", {
|
|
5147
5126
|
writable: false
|
|
5148
5127
|
});
|
|
5149
|
-
if (superClass) _setPrototypeOf$
|
|
5128
|
+
if (superClass) _setPrototypeOf$3(subClass, superClass);
|
|
5150
5129
|
}
|
|
5151
5130
|
|
|
5152
5131
|
function _possibleConstructorReturn$1(self, call) {
|
|
@@ -7994,7 +7973,7 @@ var SHORTCUTS = {
|
|
|
7994
7973
|
var relativeTime$1 = {exports: {}};
|
|
7995
7974
|
|
|
7996
7975
|
(function (module, exports) {
|
|
7997
|
-
!function(r,e){module.exports=e();}(commonjsGlobal$
|
|
7976
|
+
!function(r,e){module.exports=e();}(commonjsGlobal$2,(function(){return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)};}}));
|
|
7998
7977
|
} (relativeTime$1));
|
|
7999
7978
|
|
|
8000
7979
|
var relativeTime = relativeTime$1.exports;
|
|
@@ -8002,7 +7981,7 @@ var relativeTime = relativeTime$1.exports;
|
|
|
8002
7981
|
var updateLocale$1 = {exports: {}};
|
|
8003
7982
|
|
|
8004
7983
|
(function (module, exports) {
|
|
8005
|
-
!function(e,n){module.exports=n();}(commonjsGlobal$
|
|
7984
|
+
!function(e,n){module.exports=n();}(commonjsGlobal$2,(function(){return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return (n?Object.keys(n):[]).forEach((function(e){o[e]=n[e];})),o};}}));
|
|
8006
7985
|
} (updateLocale$1));
|
|
8007
7986
|
|
|
8008
7987
|
var updateLocale = updateLocale$1.exports;
|
|
@@ -8906,7 +8885,7 @@ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
|
8906
8885
|
return intrinsic;
|
|
8907
8886
|
};
|
|
8908
8887
|
|
|
8909
|
-
var util_inspect = require$$0
|
|
8888
|
+
var util_inspect = require$$0.inspect;
|
|
8910
8889
|
|
|
8911
8890
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
8912
8891
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
@@ -10409,12 +10388,12 @@ var parse$1$1 = function (str, opts) {
|
|
|
10409
10388
|
};
|
|
10410
10389
|
|
|
10411
10390
|
var stringify$2 = stringify_1;
|
|
10412
|
-
var parse$
|
|
10391
|
+
var parse$2 = parse$1$1;
|
|
10413
10392
|
var formats = formats$3;
|
|
10414
10393
|
|
|
10415
10394
|
var lib = {
|
|
10416
10395
|
formats: formats,
|
|
10417
|
-
parse: parse$
|
|
10396
|
+
parse: parse$2,
|
|
10418
10397
|
stringify: stringify$2
|
|
10419
10398
|
};
|
|
10420
10399
|
function ownKeys$7(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; }
|
|
@@ -10655,7 +10634,7 @@ function _slicedToArray$2(arr, i) {
|
|
|
10655
10634
|
var timezone$1 = {exports: {}};
|
|
10656
10635
|
|
|
10657
10636
|
(function (module, exports) {
|
|
10658
|
-
!function(t,e){module.exports=e();}(commonjsGlobal$
|
|
10637
|
+
!function(t,e){module.exports=e();}(commonjsGlobal$2,(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;};}}));
|
|
10659
10638
|
} (timezone$1));
|
|
10660
10639
|
|
|
10661
10640
|
var timezone = timezone$1.exports;
|
|
@@ -10663,7 +10642,7 @@ var timezone = timezone$1.exports;
|
|
|
10663
10642
|
var utc$3 = {exports: {}};
|
|
10664
10643
|
|
|
10665
10644
|
(function (module, exports) {
|
|
10666
|
-
!function(t,i){module.exports=i();}(commonjsGlobal$
|
|
10645
|
+
!function(t,i){module.exports=i();}(commonjsGlobal$2,(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||(new Date).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)};}}));
|
|
10667
10646
|
} (utc$3));
|
|
10668
10647
|
|
|
10669
10648
|
var utc$2 = utc$3.exports;
|
|
@@ -10671,7 +10650,7 @@ var utc$2 = utc$3.exports;
|
|
|
10671
10650
|
var weekday$3 = {exports: {}};
|
|
10672
10651
|
|
|
10673
10652
|
(function (module, exports) {
|
|
10674
|
-
!function(e,t){module.exports=t();}(commonjsGlobal$
|
|
10653
|
+
!function(e,t){module.exports=t();}(commonjsGlobal$2,(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")};}}));
|
|
10675
10654
|
} (weekday$3));
|
|
10676
10655
|
|
|
10677
10656
|
var weekday$2 = weekday$3.exports;
|
|
@@ -11406,7 +11385,7 @@ function _extends$2$1() {
|
|
|
11406
11385
|
return _extends$2$1.apply(this, arguments);
|
|
11407
11386
|
}
|
|
11408
11387
|
|
|
11409
|
-
var commonjsGlobal
|
|
11388
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
11410
11389
|
|
|
11411
11390
|
var classnames$2 = {exports: {}};
|
|
11412
11391
|
|
|
@@ -13165,7 +13144,7 @@ function loadFeatures(features) {
|
|
|
13165
13144
|
}
|
|
13166
13145
|
}
|
|
13167
13146
|
|
|
13168
|
-
var invariant
|
|
13147
|
+
var invariant = function () { };
|
|
13169
13148
|
|
|
13170
13149
|
var LazyContext = createContext({ strict: false });
|
|
13171
13150
|
|
|
@@ -13176,7 +13155,7 @@ var numFeatures = featureNames.length;
|
|
|
13176
13155
|
*/
|
|
13177
13156
|
function useFeatures(props, visualElement, preloadedFeatures) {
|
|
13178
13157
|
var features = [];
|
|
13179
|
-
useContext
|
|
13158
|
+
useContext(LazyContext);
|
|
13180
13159
|
if (!visualElement)
|
|
13181
13160
|
return null;
|
|
13182
13161
|
for (var i = 0; i < numFeatures; i++) {
|
|
@@ -13204,7 +13183,7 @@ var MotionConfigContext = createContext({
|
|
|
13204
13183
|
|
|
13205
13184
|
var MotionContext = createContext({});
|
|
13206
13185
|
function useVisualElementContext() {
|
|
13207
|
-
return useContext
|
|
13186
|
+
return useContext(MotionContext).visualElement;
|
|
13208
13187
|
}
|
|
13209
13188
|
|
|
13210
13189
|
/**
|
|
@@ -13251,7 +13230,7 @@ function useConstant(init) {
|
|
|
13251
13230
|
* @public
|
|
13252
13231
|
*/
|
|
13253
13232
|
function usePresence() {
|
|
13254
|
-
var context = useContext
|
|
13233
|
+
var context = useContext(PresenceContext);
|
|
13255
13234
|
if (context === null)
|
|
13256
13235
|
return [true, null];
|
|
13257
13236
|
var isPresent = context.isPresent, onExitComplete = context.onExitComplete, register = context.register;
|
|
@@ -13281,16 +13260,16 @@ var useIsomorphicLayoutEffect$2 = isBrowser$6 ? useLayoutEffect : useEffect;
|
|
|
13281
13260
|
|
|
13282
13261
|
function useLayoutId(_a) {
|
|
13283
13262
|
var layoutId = _a.layoutId;
|
|
13284
|
-
var layoutGroupId = useContext
|
|
13263
|
+
var layoutGroupId = useContext(LayoutGroupContext);
|
|
13285
13264
|
return layoutGroupId && layoutId !== undefined
|
|
13286
13265
|
? layoutGroupId + "-" + layoutId
|
|
13287
13266
|
: layoutId;
|
|
13288
13267
|
}
|
|
13289
13268
|
function useVisualElement(Component, visualState, props, createVisualElement) {
|
|
13290
|
-
var config = useContext
|
|
13291
|
-
var lazyContext = useContext
|
|
13269
|
+
var config = useContext(MotionConfigContext);
|
|
13270
|
+
var lazyContext = useContext(LazyContext);
|
|
13292
13271
|
var parent = useVisualElementContext();
|
|
13293
|
-
var presenceContext = useContext
|
|
13272
|
+
var presenceContext = useContext(PresenceContext);
|
|
13294
13273
|
var layoutId = useLayoutId(props);
|
|
13295
13274
|
var visualElementRef = useRef(undefined);
|
|
13296
13275
|
/**
|
|
@@ -13441,7 +13420,7 @@ function getCurrentTreeVariants(props, context) {
|
|
|
13441
13420
|
}
|
|
13442
13421
|
|
|
13443
13422
|
function useCreateMotionContext(props, isStatic) {
|
|
13444
|
-
var _a = getCurrentTreeVariants(props, useContext
|
|
13423
|
+
var _a = getCurrentTreeVariants(props, useContext(MotionContext)), initial = _a.initial, animate = _a.animate;
|
|
13445
13424
|
return useMemo(function () { return ({ initial: initial, animate: animate }); },
|
|
13446
13425
|
/**
|
|
13447
13426
|
* Only break memoisation in static mode
|
|
@@ -13478,7 +13457,7 @@ function createMotionComponent(_a) {
|
|
|
13478
13457
|
* means we don't need to load additional memory structures like VisualElement,
|
|
13479
13458
|
* or any gesture/animation features.
|
|
13480
13459
|
*/
|
|
13481
|
-
var isStatic = useContext
|
|
13460
|
+
var isStatic = useContext(MotionConfigContext).isStatic;
|
|
13482
13461
|
var features = null;
|
|
13483
13462
|
/**
|
|
13484
13463
|
* Create the tree context. This is memoized and will only trigger renders
|
|
@@ -14526,8 +14505,8 @@ function makeState(_a, props, context, presenceContext) {
|
|
|
14526
14505
|
return state;
|
|
14527
14506
|
}
|
|
14528
14507
|
var makeUseVisualState = function (config) { return function (props, isStatic) {
|
|
14529
|
-
var context = useContext
|
|
14530
|
-
var presenceContext = useContext
|
|
14508
|
+
var context = useContext(MotionContext);
|
|
14509
|
+
var presenceContext = useContext(PresenceContext);
|
|
14531
14510
|
return isStatic
|
|
14532
14511
|
? makeState(config, props, context, presenceContext)
|
|
14533
14512
|
: useConstant(function () { return makeState(config, props, context, presenceContext); });
|
|
@@ -14887,7 +14866,7 @@ function useUnmountEffect(callback) {
|
|
|
14887
14866
|
return useEffect(function () { return function () { return callback(); }; }, []);
|
|
14888
14867
|
}
|
|
14889
14868
|
|
|
14890
|
-
var clamp
|
|
14869
|
+
var clamp = function (min, max, v) {
|
|
14891
14870
|
return Math.min(Math.max(v, min), max);
|
|
14892
14871
|
};
|
|
14893
14872
|
|
|
@@ -14901,8 +14880,8 @@ function findSpring(_a) {
|
|
|
14901
14880
|
var envelope;
|
|
14902
14881
|
var derivative;
|
|
14903
14882
|
var dampingRatio = 1 - bounce;
|
|
14904
|
-
dampingRatio = clamp
|
|
14905
|
-
duration = clamp
|
|
14883
|
+
dampingRatio = clamp(minDamping, maxDamping, dampingRatio);
|
|
14884
|
+
duration = clamp(minDuration, maxDuration, duration / 1000);
|
|
14906
14885
|
if (dampingRatio < 1) {
|
|
14907
14886
|
envelope = function (undampedFreq) {
|
|
14908
14887
|
var exponentialDecay = undampedFreq * dampingRatio;
|
|
@@ -15105,7 +15084,7 @@ var getColorType = function (v) {
|
|
|
15105
15084
|
var mixColor = function (from, to) {
|
|
15106
15085
|
var fromColorType = getColorType(from);
|
|
15107
15086
|
var toColorType = getColorType(to);
|
|
15108
|
-
invariant
|
|
15087
|
+
invariant(fromColorType.transform === toColorType.transform);
|
|
15109
15088
|
var fromColor = fromColorType.parse(from);
|
|
15110
15089
|
var toColor = toColorType.parse(to);
|
|
15111
15090
|
var blended = __assign({}, fromColor);
|
|
@@ -15265,8 +15244,8 @@ function slowInterpolate(input, mixers) {
|
|
|
15265
15244
|
function interpolate(input, output, _a) {
|
|
15266
15245
|
var _b = _a === void 0 ? {} : _a, _c = _b.clamp, isClamp = _c === void 0 ? true : _c, ease = _b.ease, mixer = _b.mixer;
|
|
15267
15246
|
var inputLength = input.length;
|
|
15268
|
-
invariant
|
|
15269
|
-
invariant
|
|
15247
|
+
invariant(inputLength === output.length);
|
|
15248
|
+
invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1);
|
|
15270
15249
|
if (input[0] > input[inputLength - 1]) {
|
|
15271
15250
|
input = [].concat(input);
|
|
15272
15251
|
output = [].concat(output);
|
|
@@ -15278,7 +15257,7 @@ function interpolate(input, output, _a) {
|
|
|
15278
15257
|
? fastInterpolate(input, mixers)
|
|
15279
15258
|
: slowInterpolate(input, mixers);
|
|
15280
15259
|
return isClamp
|
|
15281
|
-
? function (v) { return interpolator(clamp
|
|
15260
|
+
? function (v) { return interpolator(clamp(input[0], input[inputLength - 1], v)); }
|
|
15282
15261
|
: interpolator;
|
|
15283
15262
|
}
|
|
15284
15263
|
|
|
@@ -15905,7 +15884,7 @@ var easingLookup = {
|
|
|
15905
15884
|
var easingDefinitionToFunction = function (definition) {
|
|
15906
15885
|
if (Array.isArray(definition)) {
|
|
15907
15886
|
// If cubic bezier definition, create bezier curve
|
|
15908
|
-
invariant
|
|
15887
|
+
invariant(definition.length === 4);
|
|
15909
15888
|
var _a = __read(definition, 4), x1 = _a[0], y1 = _a[1], x2 = _a[2], y2 = _a[3];
|
|
15910
15889
|
return cubicBezier(x1, y1, x2, y2);
|
|
15911
15890
|
}
|
|
@@ -17187,7 +17166,7 @@ var animations = {
|
|
|
17187
17166
|
exit: makeRenderlessComponent(function (props) {
|
|
17188
17167
|
var custom = props.custom, visualElement = props.visualElement;
|
|
17189
17168
|
var _a = __read(usePresence(), 2), isPresent = _a[0], onExitComplete = _a[1];
|
|
17190
|
-
var presenceContext = useContext
|
|
17169
|
+
var presenceContext = useContext(PresenceContext);
|
|
17191
17170
|
useEffect(function () {
|
|
17192
17171
|
var _a, _b;
|
|
17193
17172
|
var animation = (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Exit, !isPresent, { custom: (_b = presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.custom) !== null && _b !== void 0 ? _b : custom });
|
|
@@ -17560,7 +17539,7 @@ function getBoundingBox(element, transformPagePoint) {
|
|
|
17560
17539
|
return convertBoundingBoxToAxisBox(transformBoundingBox(box, transformPagePoint));
|
|
17561
17540
|
}
|
|
17562
17541
|
|
|
17563
|
-
var clampProgress = function (v) { return clamp
|
|
17542
|
+
var clampProgress = function (v) { return clamp(0, 1, v); };
|
|
17564
17543
|
/**
|
|
17565
17544
|
* Returns true if the provided value is within maxDistance of the provided target
|
|
17566
17545
|
*/
|
|
@@ -18496,7 +18475,7 @@ function getCurrentDirection(offset, lockThreshold) {
|
|
|
18496
18475
|
*/
|
|
18497
18476
|
function useDrag(props) {
|
|
18498
18477
|
var groupDragControls = props.dragControls, visualElement = props.visualElement;
|
|
18499
|
-
var transformPagePoint = useContext
|
|
18478
|
+
var transformPagePoint = useContext(MotionConfigContext).transformPagePoint;
|
|
18500
18479
|
var dragControls = useConstant(function () {
|
|
18501
18480
|
return new VisualElementDragControls({
|
|
18502
18481
|
visualElement: visualElement,
|
|
@@ -18526,7 +18505,7 @@ function usePanGesture(_a) {
|
|
|
18526
18505
|
var onPan = _a.onPan, onPanStart = _a.onPanStart, onPanEnd = _a.onPanEnd, onPanSessionStart = _a.onPanSessionStart, visualElement = _a.visualElement;
|
|
18527
18506
|
var hasPanEvents = onPan || onPanStart || onPanEnd || onPanSessionStart;
|
|
18528
18507
|
var panSession = useRef(null);
|
|
18529
|
-
var transformPagePoint = useContext
|
|
18508
|
+
var transformPagePoint = useContext(MotionConfigContext).transformPagePoint;
|
|
18530
18509
|
var handlers = {
|
|
18531
18510
|
onSessionStart: onPanSessionStart,
|
|
18532
18511
|
onStart: onPanStart,
|
|
@@ -19136,8 +19115,8 @@ var Measure = /** @class */ (function (_super) {
|
|
|
19136
19115
|
return Measure;
|
|
19137
19116
|
}(React__default.Component));
|
|
19138
19117
|
function MeasureContextProvider(props) {
|
|
19139
|
-
var syncLayout = useContext
|
|
19140
|
-
var framerSyncLayout = useContext
|
|
19118
|
+
var syncLayout = useContext(SharedLayoutContext);
|
|
19119
|
+
var framerSyncLayout = useContext(FramerTreeLayoutContext);
|
|
19141
19120
|
return (React__default.createElement(Measure, __assign({}, props, { syncLayout: syncLayout, framerSyncLayout: framerSyncLayout })));
|
|
19142
19121
|
}
|
|
19143
19122
|
|
|
@@ -20171,7 +20150,7 @@ var checkAndConvertChangedValueTypes = function (visualElement, target, origin,
|
|
|
20171
20150
|
toType = findDimensionValueType(to[i]);
|
|
20172
20151
|
}
|
|
20173
20152
|
else {
|
|
20174
|
-
invariant
|
|
20153
|
+
invariant(findDimensionValueType(to[i]) === toType);
|
|
20175
20154
|
}
|
|
20176
20155
|
}
|
|
20177
20156
|
}
|
|
@@ -20549,7 +20528,7 @@ var AnimatePresence = function (_a) {
|
|
|
20549
20528
|
// We want to force a re-render once all exiting animations have finished. We
|
|
20550
20529
|
// either use a local forceRender function, or one from a parent context if it exists.
|
|
20551
20530
|
var forceRender = useForceUpdate();
|
|
20552
|
-
var layoutContext = useContext
|
|
20531
|
+
var layoutContext = useContext(SharedLayoutContext);
|
|
20553
20532
|
if (isSharedLayout(layoutContext)) {
|
|
20554
20533
|
forceRender = layoutContext.forceUpdate;
|
|
20555
20534
|
}
|
|
@@ -25228,7 +25207,7 @@ var forwardRef = (function (Tippy, defaultProps) {
|
|
|
25228
25207
|
);
|
|
25229
25208
|
});
|
|
25230
25209
|
});
|
|
25231
|
-
var index$1
|
|
25210
|
+
var index$1 = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
25232
25211
|
|
|
25233
25212
|
var ARROW = "<svg width='12' height='6' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 5H0.926697L3.95208 1.63847C4.74227 0.760478 6.11722 0.754951 6.91445 1.62656L10 5Z' /></svg>";
|
|
25234
25213
|
|
|
@@ -25275,7 +25254,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
25275
25254
|
}
|
|
25276
25255
|
return undefined;
|
|
25277
25256
|
}, [instance, hideOnTargetExit]);
|
|
25278
|
-
return /*#__PURE__*/React__default.createElement(index$1
|
|
25257
|
+
return /*#__PURE__*/React__default.createElement(index$1, _extends$2$1({
|
|
25279
25258
|
animation: "scale-subtle",
|
|
25280
25259
|
arrow: ARROW,
|
|
25281
25260
|
content: content,
|
|
@@ -26027,8 +26006,8 @@ var n$1$1=["size","color","strokeWidth"],s=function(e){var s=e.size,i=e.color,d=
|
|
|
26027
26006
|
|
|
26028
26007
|
({color:xe.string,size:xe.oneOfType([xe.string,xe.number]),strokeWidth:xe.oneOfType([xe.string,xe.number])});
|
|
26029
26008
|
|
|
26030
|
-
function _extends$1$
|
|
26031
|
-
_extends$1$
|
|
26009
|
+
function _extends$1$1() {
|
|
26010
|
+
_extends$1$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
26032
26011
|
for (var i = 1; i < arguments.length; i++) {
|
|
26033
26012
|
var source = arguments[i];
|
|
26034
26013
|
for (var key in source) {
|
|
@@ -26039,7 +26018,7 @@ function _extends$1$2() {
|
|
|
26039
26018
|
}
|
|
26040
26019
|
return target;
|
|
26041
26020
|
};
|
|
26042
|
-
return _extends$1$
|
|
26021
|
+
return _extends$1$1.apply(this, arguments);
|
|
26043
26022
|
}
|
|
26044
26023
|
|
|
26045
26024
|
function _objectWithoutPropertiesLoose$1$1(source, excluded) {
|
|
@@ -26063,7 +26042,7 @@ function _setPrototypeOf$1$1(o, p) {
|
|
|
26063
26042
|
return _setPrototypeOf$1$1(o, p);
|
|
26064
26043
|
}
|
|
26065
26044
|
|
|
26066
|
-
function _inheritsLoose$
|
|
26045
|
+
function _inheritsLoose$2(subClass, superClass) {
|
|
26067
26046
|
subClass.prototype = Object.create(superClass.prototype);
|
|
26068
26047
|
subClass.prototype.constructor = subClass;
|
|
26069
26048
|
_setPrototypeOf$1$1(subClass, superClass);
|
|
@@ -26308,7 +26287,7 @@ var EXITING$2 = 'exiting';
|
|
|
26308
26287
|
*/
|
|
26309
26288
|
|
|
26310
26289
|
var Transition$3 = /*#__PURE__*/function (_React$Component) {
|
|
26311
|
-
_inheritsLoose$
|
|
26290
|
+
_inheritsLoose$2(Transition, _React$Component);
|
|
26312
26291
|
|
|
26313
26292
|
function Transition(props, context) {
|
|
26314
26293
|
var _this;
|
|
@@ -26618,7 +26597,7 @@ var Transition$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
26618
26597
|
Transition$3.contextType = TransitionGroupContext$2;
|
|
26619
26598
|
Transition$3.propTypes = {}; // Name the function so it is clearer in the documentation
|
|
26620
26599
|
|
|
26621
|
-
function noop$2
|
|
26600
|
+
function noop$2() {}
|
|
26622
26601
|
|
|
26623
26602
|
Transition$3.defaultProps = {
|
|
26624
26603
|
in: false,
|
|
@@ -26627,12 +26606,12 @@ Transition$3.defaultProps = {
|
|
|
26627
26606
|
appear: false,
|
|
26628
26607
|
enter: true,
|
|
26629
26608
|
exit: true,
|
|
26630
|
-
onEnter: noop$2
|
|
26631
|
-
onEntering: noop$2
|
|
26632
|
-
onEntered: noop$2
|
|
26633
|
-
onExit: noop$2
|
|
26634
|
-
onExiting: noop$2
|
|
26635
|
-
onExited: noop$2
|
|
26609
|
+
onEnter: noop$2,
|
|
26610
|
+
onEntering: noop$2,
|
|
26611
|
+
onEntered: noop$2,
|
|
26612
|
+
onExit: noop$2,
|
|
26613
|
+
onExiting: noop$2,
|
|
26614
|
+
onExited: noop$2
|
|
26636
26615
|
};
|
|
26637
26616
|
Transition$3.UNMOUNTED = UNMOUNTED$2;
|
|
26638
26617
|
Transition$3.EXITED = EXITED$2;
|
|
@@ -26723,7 +26702,7 @@ var removeClass$4 = function removeClass(node, classes) {
|
|
|
26723
26702
|
|
|
26724
26703
|
|
|
26725
26704
|
var CSSTransition$3 = /*#__PURE__*/function (_React$Component) {
|
|
26726
|
-
_inheritsLoose$
|
|
26705
|
+
_inheritsLoose$2(CSSTransition, _React$Component);
|
|
26727
26706
|
|
|
26728
26707
|
function CSSTransition() {
|
|
26729
26708
|
var _this;
|
|
@@ -26894,7 +26873,7 @@ var CSSTransition$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
26894
26873
|
_this$props.classNames;
|
|
26895
26874
|
var props = _objectWithoutPropertiesLoose$1$1(_this$props, ["classNames"]);
|
|
26896
26875
|
|
|
26897
|
-
return /*#__PURE__*/React__default.createElement(Transition$3, _extends$1$
|
|
26876
|
+
return /*#__PURE__*/React__default.createElement(Transition$3, _extends$1$1({}, props, {
|
|
26898
26877
|
onEnter: this.onEnter,
|
|
26899
26878
|
onEntered: this.onEntered,
|
|
26900
26879
|
onEntering: this.onEntering,
|
|
@@ -27087,7 +27066,7 @@ var defaultProps$1 = {
|
|
|
27087
27066
|
*/
|
|
27088
27067
|
|
|
27089
27068
|
var TransitionGroup$1 = /*#__PURE__*/function (_React$Component) {
|
|
27090
|
-
_inheritsLoose$
|
|
27069
|
+
_inheritsLoose$2(TransitionGroup, _React$Component);
|
|
27091
27070
|
|
|
27092
27071
|
function TransitionGroup(props, context) {
|
|
27093
27072
|
var _this;
|
|
@@ -27143,7 +27122,7 @@ var TransitionGroup$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
27143
27122
|
|
|
27144
27123
|
if (this.mounted) {
|
|
27145
27124
|
this.setState(function (state) {
|
|
27146
|
-
var children = _extends$1$
|
|
27125
|
+
var children = _extends$1$1({}, state.children);
|
|
27147
27126
|
|
|
27148
27127
|
delete children[child.key];
|
|
27149
27128
|
return {
|
|
@@ -27195,7 +27174,7 @@ TransitionGroup$1.defaultProps = defaultProps$1;
|
|
|
27195
27174
|
*/
|
|
27196
27175
|
|
|
27197
27176
|
var ReplaceTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
27198
|
-
_inheritsLoose$
|
|
27177
|
+
_inheritsLoose$2(ReplaceTransition, _React$Component);
|
|
27199
27178
|
|
|
27200
27179
|
function ReplaceTransition() {
|
|
27201
27180
|
var _this;
|
|
@@ -27437,7 +27416,7 @@ var enterRenders$1 = (_enterRenders$1 = {}, _enterRenders$1[modes$1.out] = funct
|
|
|
27437
27416
|
*/
|
|
27438
27417
|
|
|
27439
27418
|
var SwitchTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
27440
|
-
_inheritsLoose$
|
|
27419
|
+
_inheritsLoose$2(SwitchTransition, _React$Component);
|
|
27441
27420
|
|
|
27442
27421
|
function SwitchTransition() {
|
|
27443
27422
|
var _this;
|
|
@@ -28195,7 +28174,7 @@ new OverlayManager();
|
|
|
28195
28174
|
var dayjs_min = {exports: {}};
|
|
28196
28175
|
|
|
28197
28176
|
(function (module, exports) {
|
|
28198
|
-
!function(t,e){module.exports=e();}(commonjsGlobal
|
|
28177
|
+
!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",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\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("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={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,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);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:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",D={};D[v]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return v;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&&(v=i),i||!r&&v},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;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 _=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(l);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()===$)},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,h=O.p(t),$=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)},l=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,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var v=this.$locale().weekStart||0,D=(y<v?y+7:y)-v;return $(r?m-D:m+(6-D),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"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),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){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 $&&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,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||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||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,v=O.m(this,M);return v=(l={},l[c]=v/12,l[f]=v,l[h]=v/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?v:O.a(v)},m.daysInMonth=function(){return this.endOf(f).$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}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[v],w.Ls=D,w.p={},w}));
|
|
28199
28178
|
} (dayjs_min));
|
|
28200
28179
|
|
|
28201
28180
|
var dayjs = dayjs_min.exports;
|
|
@@ -28203,7 +28182,7 @@ var dayjs = dayjs_min.exports;
|
|
|
28203
28182
|
var localeData$1 = {exports: {}};
|
|
28204
28183
|
|
|
28205
28184
|
(function (module, exports) {
|
|
28206
|
-
!function(n,e){module.exports=e();}(commonjsGlobal
|
|
28185
|
+
!function(n,e){module.exports=e();}(commonjsGlobal,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
|
|
28207
28186
|
} (localeData$1));
|
|
28208
28187
|
|
|
28209
28188
|
var localeData = localeData$1.exports;
|
|
@@ -28211,7 +28190,7 @@ var localeData = localeData$1.exports;
|
|
|
28211
28190
|
var utc$1 = {exports: {}};
|
|
28212
28191
|
|
|
28213
28192
|
(function (module, exports) {
|
|
28214
|
-
!function(t,i){module.exports=i();}(commonjsGlobal
|
|
28193
|
+
!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||(new Date).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)};}}));
|
|
28215
28194
|
} (utc$1));
|
|
28216
28195
|
|
|
28217
28196
|
var utc = utc$1.exports;
|
|
@@ -28219,7 +28198,7 @@ var utc = utc$1.exports;
|
|
|
28219
28198
|
var weekday$1 = {exports: {}};
|
|
28220
28199
|
|
|
28221
28200
|
(function (module, exports) {
|
|
28222
|
-
!function(e,t){module.exports=t();}(commonjsGlobal
|
|
28201
|
+
!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")};}}));
|
|
28223
28202
|
} (weekday$1));
|
|
28224
28203
|
|
|
28225
28204
|
var weekday = weekday$1.exports;
|
|
@@ -28227,7 +28206,7 @@ var weekday = weekday$1.exports;
|
|
|
28227
28206
|
var weekOfYear$1 = {exports: {}};
|
|
28228
28207
|
|
|
28229
28208
|
(function (module, exports) {
|
|
28230
|
-
!function(e,t){module.exports=t();}(commonjsGlobal
|
|
28209
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
|
|
28231
28210
|
} (weekOfYear$1));
|
|
28232
28211
|
|
|
28233
28212
|
var weekOfYear = weekOfYear$1.exports;
|
|
@@ -28850,8 +28829,8 @@ function _toConsumableArray$1(arr) {
|
|
|
28850
28829
|
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
28851
28830
|
}
|
|
28852
28831
|
|
|
28853
|
-
function _extends$
|
|
28854
|
-
_extends$
|
|
28832
|
+
function _extends$4() {
|
|
28833
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function (target) {
|
|
28855
28834
|
for (var i = 1; i < arguments.length; i++) {
|
|
28856
28835
|
var source = arguments[i];
|
|
28857
28836
|
for (var key in source) {
|
|
@@ -28862,7 +28841,7 @@ function _extends$5() {
|
|
|
28862
28841
|
}
|
|
28863
28842
|
return target;
|
|
28864
28843
|
};
|
|
28865
|
-
return _extends$
|
|
28844
|
+
return _extends$4.apply(this, arguments);
|
|
28866
28845
|
}
|
|
28867
28846
|
|
|
28868
28847
|
function _defineProperty$2(obj, key, value) {
|
|
@@ -28925,12 +28904,12 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
28925
28904
|
return Constructor;
|
|
28926
28905
|
}
|
|
28927
28906
|
|
|
28928
|
-
function _setPrototypeOf$
|
|
28929
|
-
_setPrototypeOf$
|
|
28907
|
+
function _setPrototypeOf$2(o, p) {
|
|
28908
|
+
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
28930
28909
|
o.__proto__ = p;
|
|
28931
28910
|
return o;
|
|
28932
28911
|
};
|
|
28933
|
-
return _setPrototypeOf$
|
|
28912
|
+
return _setPrototypeOf$2(o, p);
|
|
28934
28913
|
}
|
|
28935
28914
|
|
|
28936
28915
|
function _inherits(subClass, superClass) {
|
|
@@ -28947,7 +28926,7 @@ function _inherits(subClass, superClass) {
|
|
|
28947
28926
|
Object.defineProperty(subClass, "prototype", {
|
|
28948
28927
|
writable: false
|
|
28949
28928
|
});
|
|
28950
|
-
if (superClass) _setPrototypeOf$
|
|
28929
|
+
if (superClass) _setPrototypeOf$2(subClass, superClass);
|
|
28951
28930
|
}
|
|
28952
28931
|
|
|
28953
28932
|
function _getPrototypeOf(o) {
|
|
@@ -29527,8 +29506,8 @@ function identifier (index) {
|
|
|
29527
29506
|
* @param {string} value
|
|
29528
29507
|
* @return {object[]}
|
|
29529
29508
|
*/
|
|
29530
|
-
function compile
|
|
29531
|
-
return dealloc(parse
|
|
29509
|
+
function compile (value) {
|
|
29510
|
+
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
29532
29511
|
}
|
|
29533
29512
|
|
|
29534
29513
|
/**
|
|
@@ -29543,7 +29522,7 @@ function compile$1 (value) {
|
|
|
29543
29522
|
* @param {string[]} declarations
|
|
29544
29523
|
* @return {object}
|
|
29545
29524
|
*/
|
|
29546
|
-
function parse
|
|
29525
|
+
function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
29547
29526
|
var index = 0;
|
|
29548
29527
|
var offset = 0;
|
|
29549
29528
|
var length = pseudo;
|
|
@@ -29612,15 +29591,15 @@ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
29612
29591
|
|
|
29613
29592
|
if (character === 123)
|
|
29614
29593
|
if (offset === 0)
|
|
29615
|
-
parse
|
|
29594
|
+
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
29616
29595
|
else
|
|
29617
29596
|
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
29618
29597
|
// d m s
|
|
29619
29598
|
case 100: case 109: case 115:
|
|
29620
|
-
parse
|
|
29599
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
29621
29600
|
break
|
|
29622
29601
|
default:
|
|
29623
|
-
parse
|
|
29602
|
+
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
29624
29603
|
}
|
|
29625
29604
|
}
|
|
29626
29605
|
|
|
@@ -29923,7 +29902,7 @@ var removeLabel = function removeLabel(element) {
|
|
|
29923
29902
|
|
|
29924
29903
|
/* eslint-disable no-fallthrough */
|
|
29925
29904
|
|
|
29926
|
-
function prefix
|
|
29905
|
+
function prefix(value, length) {
|
|
29927
29906
|
switch (hash(value, length)) {
|
|
29928
29907
|
// color-adjust
|
|
29929
29908
|
case 5103:
|
|
@@ -30051,7 +30030,7 @@ function prefix$2(value, length) {
|
|
|
30051
30030
|
// (s)tretch
|
|
30052
30031
|
|
|
30053
30032
|
case 115:
|
|
30054
|
-
return ~indexof(value, 'stretch') ? prefix
|
|
30033
|
+
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
30055
30034
|
}
|
|
30056
30035
|
break;
|
|
30057
30036
|
// position: sticky
|
|
@@ -30099,7 +30078,7 @@ function prefix$2(value, length) {
|
|
|
30099
30078
|
var prefixer = function prefixer(element, index, children, callback) {
|
|
30100
30079
|
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
30101
30080
|
case DECLARATION:
|
|
30102
|
-
element["return"] = prefix
|
|
30081
|
+
element["return"] = prefix(element.value, element.length);
|
|
30103
30082
|
break;
|
|
30104
30083
|
|
|
30105
30084
|
case KEYFRAMES:
|
|
@@ -30203,7 +30182,7 @@ var createCache = function createCache(options) {
|
|
|
30203
30182
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
30204
30183
|
|
|
30205
30184
|
var stylis = function stylis(styles) {
|
|
30206
|
-
return serialize(compile
|
|
30185
|
+
return serialize(compile(styles), serializer);
|
|
30207
30186
|
};
|
|
30208
30187
|
|
|
30209
30188
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
@@ -30221,7 +30200,7 @@ var createCache = function createCache(options) {
|
|
|
30221
30200
|
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
30222
30201
|
|
|
30223
30202
|
var _stylis = function _stylis(styles) {
|
|
30224
|
-
return serialize(compile
|
|
30203
|
+
return serialize(compile(styles), _serializer);
|
|
30225
30204
|
}; // $FlowFixMe
|
|
30226
30205
|
|
|
30227
30206
|
|
|
@@ -30312,15 +30291,15 @@ reactIs_production_min$2.isValidElementType=function(a){return "string"===typeof
|
|
|
30312
30291
|
}
|
|
30313
30292
|
} (reactIs$1$1));
|
|
30314
30293
|
|
|
30315
|
-
var reactIs$
|
|
30316
|
-
var FORWARD_REF_STATICS
|
|
30294
|
+
var reactIs$2 = reactIs$1$1.exports;
|
|
30295
|
+
var FORWARD_REF_STATICS = {
|
|
30317
30296
|
'$$typeof': true,
|
|
30318
30297
|
render: true,
|
|
30319
30298
|
defaultProps: true,
|
|
30320
30299
|
displayName: true,
|
|
30321
30300
|
propTypes: true
|
|
30322
30301
|
};
|
|
30323
|
-
var MEMO_STATICS
|
|
30302
|
+
var MEMO_STATICS = {
|
|
30324
30303
|
'$$typeof': true,
|
|
30325
30304
|
compare: true,
|
|
30326
30305
|
defaultProps: true,
|
|
@@ -30328,9 +30307,9 @@ var MEMO_STATICS$1 = {
|
|
|
30328
30307
|
propTypes: true,
|
|
30329
30308
|
type: true
|
|
30330
30309
|
};
|
|
30331
|
-
var TYPE_STATICS
|
|
30332
|
-
TYPE_STATICS
|
|
30333
|
-
TYPE_STATICS
|
|
30310
|
+
var TYPE_STATICS = {};
|
|
30311
|
+
TYPE_STATICS[reactIs$2.ForwardRef] = FORWARD_REF_STATICS;
|
|
30312
|
+
TYPE_STATICS[reactIs$2.Memo] = MEMO_STATICS;
|
|
30334
30313
|
|
|
30335
30314
|
var isBrowser$2 = typeof document !== 'undefined';
|
|
30336
30315
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
@@ -30735,7 +30714,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
30735
30714
|
// $FlowFixMe
|
|
30736
30715
|
return /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
30737
30716
|
// the cache will never be null in the browser
|
|
30738
|
-
var cache = useContext
|
|
30717
|
+
var cache = useContext(EmotionCacheContext);
|
|
30739
30718
|
return func(props, cache, ref);
|
|
30740
30719
|
});
|
|
30741
30720
|
};
|
|
@@ -30743,7 +30722,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
30743
30722
|
if (!isBrowser) {
|
|
30744
30723
|
withEmotionCache = function withEmotionCache(func) {
|
|
30745
30724
|
return function (props) {
|
|
30746
|
-
var cache = useContext
|
|
30725
|
+
var cache = useContext(EmotionCacheContext);
|
|
30747
30726
|
|
|
30748
30727
|
if (cache === null) {
|
|
30749
30728
|
// yes, we're potentially creating this on every render
|
|
@@ -30829,7 +30808,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
30829
30808
|
className = props.className + " ";
|
|
30830
30809
|
}
|
|
30831
30810
|
|
|
30832
|
-
var serialized = serializeStyles(registeredStyles, undefined, useContext
|
|
30811
|
+
var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
|
|
30833
30812
|
|
|
30834
30813
|
className += cache.key + "-" + serialized.name;
|
|
30835
30814
|
var newProps = {};
|
|
@@ -31018,7 +30997,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
31018
30997
|
var content = {
|
|
31019
30998
|
css: css,
|
|
31020
30999
|
cx: cx,
|
|
31021
|
-
theme: useContext
|
|
31000
|
+
theme: useContext(ThemeContext)
|
|
31022
31001
|
};
|
|
31023
31002
|
var ele = props.children(content);
|
|
31024
31003
|
hasRendered = true;
|
|
@@ -31039,7 +31018,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
31039
31018
|
}));
|
|
31040
31019
|
}
|
|
31041
31020
|
|
|
31042
|
-
function _objectWithoutPropertiesLoose$
|
|
31021
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
31043
31022
|
if (source == null) return {};
|
|
31044
31023
|
var target = {};
|
|
31045
31024
|
var sourceKeys = Object.keys(source);
|
|
@@ -31054,7 +31033,7 @@ function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
|
31054
31033
|
|
|
31055
31034
|
function _objectWithoutProperties$2(source, excluded) {
|
|
31056
31035
|
if (source == null) return {};
|
|
31057
|
-
var target = _objectWithoutPropertiesLoose$
|
|
31036
|
+
var target = _objectWithoutPropertiesLoose$4(source, excluded);
|
|
31058
31037
|
var key, i;
|
|
31059
31038
|
if (Object.getOwnPropertySymbols) {
|
|
31060
31039
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -31819,7 +31798,7 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
31819
31798
|
menuPosition = props.menuPosition,
|
|
31820
31799
|
menuShouldScrollIntoView = props.menuShouldScrollIntoView,
|
|
31821
31800
|
theme = props.theme;
|
|
31822
|
-
var _ref4 = useContext
|
|
31801
|
+
var _ref4 = useContext(PortalPlacementContext) || {},
|
|
31823
31802
|
setPortalPlacement = _ref4.setPortalPlacement;
|
|
31824
31803
|
var ref = useRef(null);
|
|
31825
31804
|
var _useState = useState(maxMenuHeight),
|
|
@@ -31865,7 +31844,7 @@ var Menu$1 = function Menu(props) {
|
|
|
31865
31844
|
getStyles = props.getStyles,
|
|
31866
31845
|
innerRef = props.innerRef,
|
|
31867
31846
|
innerProps = props.innerProps;
|
|
31868
|
-
return jsx("div", _extends$
|
|
31847
|
+
return jsx("div", _extends$4({
|
|
31869
31848
|
css: getStyles('menu', props),
|
|
31870
31849
|
className: cx({
|
|
31871
31850
|
menu: true
|
|
@@ -31899,7 +31878,7 @@ var MenuList = function MenuList(props) {
|
|
|
31899
31878
|
innerProps = props.innerProps,
|
|
31900
31879
|
innerRef = props.innerRef,
|
|
31901
31880
|
isMulti = props.isMulti;
|
|
31902
|
-
return jsx("div", _extends$
|
|
31881
|
+
return jsx("div", _extends$4({
|
|
31903
31882
|
css: getStyles('menuList', props),
|
|
31904
31883
|
className: cx({
|
|
31905
31884
|
'menu-list': true,
|
|
@@ -31931,7 +31910,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
31931
31910
|
cx = props.cx,
|
|
31932
31911
|
getStyles = props.getStyles,
|
|
31933
31912
|
innerProps = props.innerProps;
|
|
31934
|
-
return jsx("div", _extends$
|
|
31913
|
+
return jsx("div", _extends$4({
|
|
31935
31914
|
css: getStyles('noOptionsMessage', props),
|
|
31936
31915
|
className: cx({
|
|
31937
31916
|
'menu-notice': true,
|
|
@@ -31948,7 +31927,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
31948
31927
|
cx = props.cx,
|
|
31949
31928
|
getStyles = props.getStyles,
|
|
31950
31929
|
innerProps = props.innerProps;
|
|
31951
|
-
return jsx("div", _extends$
|
|
31930
|
+
return jsx("div", _extends$4({
|
|
31952
31931
|
css: getStyles('loadingMessage', props),
|
|
31953
31932
|
className: cx({
|
|
31954
31933
|
'menu-notice': true,
|
|
@@ -32039,7 +32018,7 @@ var MenuPortal = function MenuPortal(_ref8) {
|
|
|
32039
32018
|
if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null;
|
|
32040
32019
|
|
|
32041
32020
|
// same wrapper element whether fixed or portalled
|
|
32042
|
-
var menuWrapper = jsx("div", _extends$
|
|
32021
|
+
var menuWrapper = jsx("div", _extends$4({
|
|
32043
32022
|
ref: setMenuPortalElement,
|
|
32044
32023
|
css: getStyles('menuPortal', {
|
|
32045
32024
|
offset: computedPosition.offset,
|
|
@@ -32074,7 +32053,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
32074
32053
|
innerProps = props.innerProps,
|
|
32075
32054
|
isDisabled = props.isDisabled,
|
|
32076
32055
|
isRtl = props.isRtl;
|
|
32077
|
-
return jsx("div", _extends$
|
|
32056
|
+
return jsx("div", _extends$4({
|
|
32078
32057
|
css: getStyles('container', props),
|
|
32079
32058
|
className: cx({
|
|
32080
32059
|
'--is-disabled': isDisabled,
|
|
@@ -32111,7 +32090,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
32111
32090
|
isMulti = props.isMulti,
|
|
32112
32091
|
getStyles = props.getStyles,
|
|
32113
32092
|
hasValue = props.hasValue;
|
|
32114
|
-
return jsx("div", _extends$
|
|
32093
|
+
return jsx("div", _extends$4({
|
|
32115
32094
|
css: getStyles('valueContainer', props),
|
|
32116
32095
|
className: cx({
|
|
32117
32096
|
'value-container': true,
|
|
@@ -32139,7 +32118,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
32139
32118
|
cx = props.cx,
|
|
32140
32119
|
innerProps = props.innerProps,
|
|
32141
32120
|
getStyles = props.getStyles;
|
|
32142
|
-
return jsx("div", _extends$
|
|
32121
|
+
return jsx("div", _extends$4({
|
|
32143
32122
|
css: getStyles('indicatorsContainer', props),
|
|
32144
32123
|
className: cx({
|
|
32145
32124
|
indicators: true
|
|
@@ -32160,7 +32139,7 @@ var _ref2$2 = {
|
|
|
32160
32139
|
var Svg = function Svg(_ref) {
|
|
32161
32140
|
var size = _ref.size,
|
|
32162
32141
|
props = _objectWithoutProperties$2(_ref, _excluded$2$1);
|
|
32163
|
-
return jsx("svg", _extends$
|
|
32142
|
+
return jsx("svg", _extends$4({
|
|
32164
32143
|
height: size,
|
|
32165
32144
|
width: size,
|
|
32166
32145
|
viewBox: "0 0 20 20",
|
|
@@ -32170,14 +32149,14 @@ var Svg = function Svg(_ref) {
|
|
|
32170
32149
|
}, props));
|
|
32171
32150
|
};
|
|
32172
32151
|
var CrossIcon = function CrossIcon(props) {
|
|
32173
|
-
return jsx(Svg, _extends$
|
|
32152
|
+
return jsx(Svg, _extends$4({
|
|
32174
32153
|
size: 20
|
|
32175
32154
|
}, props), jsx("path", {
|
|
32176
32155
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
32177
32156
|
}));
|
|
32178
32157
|
};
|
|
32179
32158
|
var DownChevron = function DownChevron(props) {
|
|
32180
|
-
return jsx(Svg, _extends$
|
|
32159
|
+
return jsx(Svg, _extends$4({
|
|
32181
32160
|
size: 20
|
|
32182
32161
|
}, props), jsx("path", {
|
|
32183
32162
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -32211,7 +32190,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
32211
32190
|
cx = props.cx,
|
|
32212
32191
|
getStyles = props.getStyles,
|
|
32213
32192
|
innerProps = props.innerProps;
|
|
32214
|
-
return jsx("div", _extends$
|
|
32193
|
+
return jsx("div", _extends$4({
|
|
32215
32194
|
css: getStyles('dropdownIndicator', props),
|
|
32216
32195
|
className: cx({
|
|
32217
32196
|
indicator: true,
|
|
@@ -32226,7 +32205,7 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
32226
32205
|
cx = props.cx,
|
|
32227
32206
|
getStyles = props.getStyles,
|
|
32228
32207
|
innerProps = props.innerProps;
|
|
32229
|
-
return jsx("div", _extends$
|
|
32208
|
+
return jsx("div", _extends$4({
|
|
32230
32209
|
css: getStyles('clearIndicator', props),
|
|
32231
32210
|
className: cx({
|
|
32232
32211
|
indicator: true,
|
|
@@ -32258,7 +32237,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
32258
32237
|
cx = props.cx,
|
|
32259
32238
|
getStyles = props.getStyles,
|
|
32260
32239
|
innerProps = props.innerProps;
|
|
32261
|
-
return jsx("span", _extends$
|
|
32240
|
+
return jsx("span", _extends$4({}, innerProps, {
|
|
32262
32241
|
css: getStyles('indicatorSeparator', props),
|
|
32263
32242
|
className: cx({
|
|
32264
32243
|
'indicator-separator': true
|
|
@@ -32313,7 +32292,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
32313
32292
|
getStyles = props.getStyles,
|
|
32314
32293
|
innerProps = props.innerProps,
|
|
32315
32294
|
isRtl = props.isRtl;
|
|
32316
|
-
return jsx("div", _extends$
|
|
32295
|
+
return jsx("div", _extends$4({
|
|
32317
32296
|
css: getStyles('loadingIndicator', props),
|
|
32318
32297
|
className: cx({
|
|
32319
32298
|
indicator: true,
|
|
@@ -32373,7 +32352,7 @@ var Control = function Control(props) {
|
|
|
32373
32352
|
innerRef = props.innerRef,
|
|
32374
32353
|
innerProps = props.innerProps,
|
|
32375
32354
|
menuIsOpen = props.menuIsOpen;
|
|
32376
|
-
return jsx("div", _extends$
|
|
32355
|
+
return jsx("div", _extends$4({
|
|
32377
32356
|
ref: innerRef,
|
|
32378
32357
|
css: getStyles('control', props),
|
|
32379
32358
|
className: cx({
|
|
@@ -32404,12 +32383,12 @@ var Group = function Group(props) {
|
|
|
32404
32383
|
label = props.label,
|
|
32405
32384
|
theme = props.theme,
|
|
32406
32385
|
selectProps = props.selectProps;
|
|
32407
|
-
return jsx("div", _extends$
|
|
32386
|
+
return jsx("div", _extends$4({
|
|
32408
32387
|
css: getStyles('group', props),
|
|
32409
32388
|
className: cx({
|
|
32410
32389
|
group: true
|
|
32411
32390
|
}, className)
|
|
32412
|
-
}, innerProps), jsx(Heading, _extends$
|
|
32391
|
+
}, innerProps), jsx(Heading, _extends$4({}, headingProps, {
|
|
32413
32392
|
selectProps: selectProps,
|
|
32414
32393
|
theme: theme,
|
|
32415
32394
|
getStyles: getStyles,
|
|
@@ -32438,7 +32417,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
32438
32417
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
32439
32418
|
_cleanCommonProps.data;
|
|
32440
32419
|
var innerProps = _objectWithoutProperties$2(_cleanCommonProps, _excluded$1$1);
|
|
32441
|
-
return jsx("div", _extends$
|
|
32420
|
+
return jsx("div", _extends$4({
|
|
32442
32421
|
css: getStyles('groupHeading', props),
|
|
32443
32422
|
className: cx({
|
|
32444
32423
|
'group-heading': true
|
|
@@ -32510,7 +32489,7 @@ var Input = function Input(props) {
|
|
|
32510
32489
|
}, className),
|
|
32511
32490
|
css: getStyles('input', props),
|
|
32512
32491
|
"data-value": value || ''
|
|
32513
|
-
}, jsx("input", _extends$
|
|
32492
|
+
}, jsx("input", _extends$4({
|
|
32514
32493
|
className: cx({
|
|
32515
32494
|
input: true
|
|
32516
32495
|
}, inputClassName),
|
|
@@ -32580,7 +32559,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
32580
32559
|
function MultiValueRemove$1(_ref5) {
|
|
32581
32560
|
var children = _ref5.children,
|
|
32582
32561
|
innerProps = _ref5.innerProps;
|
|
32583
|
-
return jsx("div", _extends$
|
|
32562
|
+
return jsx("div", _extends$4({
|
|
32584
32563
|
role: "button"
|
|
32585
32564
|
}, innerProps), children || jsx(CrossIcon, {
|
|
32586
32565
|
size: 14
|
|
@@ -32667,7 +32646,7 @@ var Option = function Option(props) {
|
|
|
32667
32646
|
isSelected = props.isSelected,
|
|
32668
32647
|
innerRef = props.innerRef,
|
|
32669
32648
|
innerProps = props.innerProps;
|
|
32670
|
-
return jsx("div", _extends$
|
|
32649
|
+
return jsx("div", _extends$4({
|
|
32671
32650
|
css: getStyles('option', props),
|
|
32672
32651
|
className: cx({
|
|
32673
32652
|
option: true,
|
|
@@ -32698,7 +32677,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
32698
32677
|
cx = props.cx,
|
|
32699
32678
|
getStyles = props.getStyles,
|
|
32700
32679
|
innerProps = props.innerProps;
|
|
32701
|
-
return jsx("div", _extends$
|
|
32680
|
+
return jsx("div", _extends$4({
|
|
32702
32681
|
css: getStyles('placeholder', props),
|
|
32703
32682
|
className: cx({
|
|
32704
32683
|
placeholder: true
|
|
@@ -32730,7 +32709,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
32730
32709
|
getStyles = props.getStyles,
|
|
32731
32710
|
isDisabled = props.isDisabled,
|
|
32732
32711
|
innerProps = props.innerProps;
|
|
32733
|
-
return jsx("div", _extends$
|
|
32712
|
+
return jsx("div", _extends$4({
|
|
32734
32713
|
css: getStyles('singleValue', props),
|
|
32735
32714
|
className: cx({
|
|
32736
32715
|
'single-value': true,
|
|
@@ -32826,7 +32805,7 @@ var _ref = {
|
|
|
32826
32805
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
32827
32806
|
} ;
|
|
32828
32807
|
var A11yText = function A11yText(props) {
|
|
32829
|
-
return jsx("span", _extends$
|
|
32808
|
+
return jsx("span", _extends$4({
|
|
32830
32809
|
css: _ref
|
|
32831
32810
|
}, props));
|
|
32832
32811
|
};
|
|
@@ -33332,7 +33311,7 @@ function DummyInput(_ref) {
|
|
|
33332
33311
|
props = _objectWithoutProperties$2(_ref, _excluded$f);
|
|
33333
33312
|
// Remove animation props not meant for HTML elements
|
|
33334
33313
|
var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
|
|
33335
|
-
return jsx("input", _extends$
|
|
33314
|
+
return jsx("input", _extends$4({
|
|
33336
33315
|
ref: innerRef
|
|
33337
33316
|
}, filteredProps, {
|
|
33338
33317
|
css: /*#__PURE__*/css$2({
|
|
@@ -33489,7 +33468,7 @@ function preventInertiaScroll() {
|
|
|
33489
33468
|
function isTouchDevice() {
|
|
33490
33469
|
return 'ontouchstart' in window || navigator.maxTouchPoints;
|
|
33491
33470
|
}
|
|
33492
|
-
var canUseDOM
|
|
33471
|
+
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
33493
33472
|
var activeScrollLocks = 0;
|
|
33494
33473
|
var listenerOptions = {
|
|
33495
33474
|
capture: false,
|
|
@@ -33502,7 +33481,7 @@ function useScrollLock(_ref) {
|
|
|
33502
33481
|
var originalStyles = useRef({});
|
|
33503
33482
|
var scrollTarget = useRef(null);
|
|
33504
33483
|
var addScrollLock = useCallback(function (touchScrollTarget) {
|
|
33505
|
-
if (!canUseDOM
|
|
33484
|
+
if (!canUseDOM) return;
|
|
33506
33485
|
var target = document.body;
|
|
33507
33486
|
var targetStyle = target && target.style;
|
|
33508
33487
|
if (accountForScrollbars) {
|
|
@@ -33545,7 +33524,7 @@ function useScrollLock(_ref) {
|
|
|
33545
33524
|
activeScrollLocks += 1;
|
|
33546
33525
|
}, [accountForScrollbars]);
|
|
33547
33526
|
var removeScrollLock = useCallback(function (touchScrollTarget) {
|
|
33548
|
-
if (!canUseDOM
|
|
33527
|
+
if (!canUseDOM) return;
|
|
33549
33528
|
var target = document.body;
|
|
33550
33529
|
var targetStyle = target && target.style;
|
|
33551
33530
|
|
|
@@ -34815,7 +34794,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34815
34794
|
});
|
|
34816
34795
|
if (!isSearchable) {
|
|
34817
34796
|
// use a dummy input to maintain focus/blur functionality
|
|
34818
|
-
return /*#__PURE__*/React.createElement(DummyInput, _extends$
|
|
34797
|
+
return /*#__PURE__*/React.createElement(DummyInput, _extends$4({
|
|
34819
34798
|
id: id,
|
|
34820
34799
|
innerRef: this.getInputRef,
|
|
34821
34800
|
onBlur: this.onInputBlur,
|
|
@@ -34828,7 +34807,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34828
34807
|
value: ""
|
|
34829
34808
|
}, ariaAttributes));
|
|
34830
34809
|
}
|
|
34831
|
-
return /*#__PURE__*/React.createElement(Input, _extends$
|
|
34810
|
+
return /*#__PURE__*/React.createElement(Input, _extends$4({}, commonProps, {
|
|
34832
34811
|
autoCapitalize: "none",
|
|
34833
34812
|
autoComplete: "off",
|
|
34834
34813
|
autoCorrect: "off",
|
|
@@ -34869,7 +34848,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34869
34848
|
focusedValue = _this$state5.focusedValue,
|
|
34870
34849
|
isFocused = _this$state5.isFocused;
|
|
34871
34850
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
34872
|
-
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends$
|
|
34851
|
+
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends$4({}, commonProps, {
|
|
34873
34852
|
key: "placeholder",
|
|
34874
34853
|
isDisabled: isDisabled,
|
|
34875
34854
|
isFocused: isFocused,
|
|
@@ -34882,7 +34861,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34882
34861
|
return selectValue.map(function (opt, index) {
|
|
34883
34862
|
var isOptionFocused = opt === focusedValue;
|
|
34884
34863
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
34885
|
-
return /*#__PURE__*/React.createElement(MultiValue, _extends$
|
|
34864
|
+
return /*#__PURE__*/React.createElement(MultiValue, _extends$4({}, commonProps, {
|
|
34886
34865
|
components: {
|
|
34887
34866
|
Container: MultiValueContainer,
|
|
34888
34867
|
Label: MultiValueLabel,
|
|
@@ -34911,7 +34890,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34911
34890
|
return null;
|
|
34912
34891
|
}
|
|
34913
34892
|
var singleValue = selectValue[0];
|
|
34914
|
-
return /*#__PURE__*/React.createElement(SingleValue, _extends$
|
|
34893
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends$4({}, commonProps, {
|
|
34915
34894
|
data: singleValue,
|
|
34916
34895
|
isDisabled: isDisabled
|
|
34917
34896
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -34934,7 +34913,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34934
34913
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
34935
34914
|
'aria-hidden': 'true'
|
|
34936
34915
|
};
|
|
34937
|
-
return /*#__PURE__*/React.createElement(ClearIndicator, _extends$
|
|
34916
|
+
return /*#__PURE__*/React.createElement(ClearIndicator, _extends$4({}, commonProps, {
|
|
34938
34917
|
innerProps: innerProps,
|
|
34939
34918
|
isFocused: isFocused
|
|
34940
34919
|
}));
|
|
@@ -34953,7 +34932,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34953
34932
|
var innerProps = {
|
|
34954
34933
|
'aria-hidden': 'true'
|
|
34955
34934
|
};
|
|
34956
|
-
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends$
|
|
34935
|
+
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends$4({}, commonProps, {
|
|
34957
34936
|
innerProps: innerProps,
|
|
34958
34937
|
isDisabled: isDisabled,
|
|
34959
34938
|
isFocused: isFocused
|
|
@@ -34971,7 +34950,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34971
34950
|
var commonProps = this.commonProps;
|
|
34972
34951
|
var isDisabled = this.props.isDisabled;
|
|
34973
34952
|
var isFocused = this.state.isFocused;
|
|
34974
|
-
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends$
|
|
34953
|
+
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends$4({}, commonProps, {
|
|
34975
34954
|
isDisabled: isDisabled,
|
|
34976
34955
|
isFocused: isFocused
|
|
34977
34956
|
}));
|
|
@@ -34990,7 +34969,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
34990
34969
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
34991
34970
|
'aria-hidden': 'true'
|
|
34992
34971
|
};
|
|
34993
|
-
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends$
|
|
34972
|
+
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends$4({}, commonProps, {
|
|
34994
34973
|
innerProps: innerProps,
|
|
34995
34974
|
isDisabled: isDisabled,
|
|
34996
34975
|
isFocused: isFocused
|
|
@@ -35052,7 +35031,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35052
35031
|
onMouseOver: onHover,
|
|
35053
35032
|
tabIndex: -1
|
|
35054
35033
|
};
|
|
35055
|
-
return /*#__PURE__*/React.createElement(Option, _extends$
|
|
35034
|
+
return /*#__PURE__*/React.createElement(Option, _extends$4({}, commonProps, {
|
|
35056
35035
|
innerProps: innerProps,
|
|
35057
35036
|
data: data,
|
|
35058
35037
|
isDisabled: isDisabled,
|
|
@@ -35074,7 +35053,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35074
35053
|
groupIndex = item.index;
|
|
35075
35054
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
35076
35055
|
var headingId = "".concat(groupId, "-heading");
|
|
35077
|
-
return /*#__PURE__*/React.createElement(Group, _extends$
|
|
35056
|
+
return /*#__PURE__*/React.createElement(Group, _extends$4({}, commonProps, {
|
|
35078
35057
|
key: groupId,
|
|
35079
35058
|
data: _data,
|
|
35080
35059
|
options: options,
|
|
@@ -35111,12 +35090,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35111
35090
|
menuPosition: menuPosition,
|
|
35112
35091
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
35113
35092
|
};
|
|
35114
|
-
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends$
|
|
35093
|
+
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends$4({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
35115
35094
|
var ref = _ref4.ref,
|
|
35116
35095
|
_ref4$placerProps = _ref4.placerProps,
|
|
35117
35096
|
placement = _ref4$placerProps.placement,
|
|
35118
35097
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
35119
|
-
return /*#__PURE__*/React.createElement(Menu, _extends$
|
|
35098
|
+
return /*#__PURE__*/React.createElement(Menu, _extends$4({}, commonProps, menuPlacementProps, {
|
|
35120
35099
|
innerRef: ref,
|
|
35121
35100
|
innerProps: {
|
|
35122
35101
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -35131,7 +35110,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35131
35110
|
onBottomArrive: onMenuScrollToBottom,
|
|
35132
35111
|
lockEnabled: menuShouldBlockScroll
|
|
35133
35112
|
}, function (scrollTargetRef) {
|
|
35134
|
-
return /*#__PURE__*/React.createElement(MenuList, _extends$
|
|
35113
|
+
return /*#__PURE__*/React.createElement(MenuList, _extends$4({}, commonProps, {
|
|
35135
35114
|
innerRef: function innerRef(instance) {
|
|
35136
35115
|
_this4.getMenuListRef(instance);
|
|
35137
35116
|
scrollTargetRef(instance);
|
|
@@ -35146,7 +35125,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35146
35125
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
35147
35126
|
// so we use the same component. the actual portalling logic is forked
|
|
35148
35127
|
// within the component based on `menuPosition`
|
|
35149
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends$
|
|
35128
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends$4({}, commonProps, {
|
|
35150
35129
|
appendTo: menuPortalTarget,
|
|
35151
35130
|
controlElement: this.controlRef,
|
|
35152
35131
|
menuPlacement: menuPlacement,
|
|
@@ -35216,7 +35195,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35216
35195
|
isFocused = _this$state6.isFocused,
|
|
35217
35196
|
selectValue = _this$state6.selectValue;
|
|
35218
35197
|
var focusableOptions = this.getFocusableOptions();
|
|
35219
|
-
return /*#__PURE__*/React.createElement(LiveRegion, _extends$
|
|
35198
|
+
return /*#__PURE__*/React.createElement(LiveRegion, _extends$4({}, commonProps, {
|
|
35220
35199
|
id: this.getElementId('live-region'),
|
|
35221
35200
|
ariaSelection: ariaSelection,
|
|
35222
35201
|
focusedOption: focusedOption,
|
|
@@ -35241,7 +35220,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35241
35220
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
35242
35221
|
var isFocused = this.state.isFocused;
|
|
35243
35222
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
35244
|
-
return /*#__PURE__*/React.createElement(SelectContainer, _extends$
|
|
35223
|
+
return /*#__PURE__*/React.createElement(SelectContainer, _extends$4({}, commonProps, {
|
|
35245
35224
|
className: className,
|
|
35246
35225
|
innerProps: {
|
|
35247
35226
|
id: id,
|
|
@@ -35249,7 +35228,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35249
35228
|
},
|
|
35250
35229
|
isDisabled: isDisabled,
|
|
35251
35230
|
isFocused: isFocused
|
|
35252
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends$
|
|
35231
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends$4({}, commonProps, {
|
|
35253
35232
|
innerRef: this.getControlRef,
|
|
35254
35233
|
innerProps: {
|
|
35255
35234
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -35258,9 +35237,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
35258
35237
|
isDisabled: isDisabled,
|
|
35259
35238
|
isFocused: isFocused,
|
|
35260
35239
|
menuIsOpen: menuIsOpen
|
|
35261
|
-
}), /*#__PURE__*/React.createElement(ValueContainer, _extends$
|
|
35240
|
+
}), /*#__PURE__*/React.createElement(ValueContainer, _extends$4({}, commonProps, {
|
|
35262
35241
|
isDisabled: isDisabled
|
|
35263
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends$
|
|
35242
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends$4({}, commonProps, {
|
|
35264
35243
|
isDisabled: isDisabled
|
|
35265
35244
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
35266
35245
|
}
|
|
@@ -35483,14 +35462,14 @@ function useCreatable(_ref) {
|
|
|
35483
35462
|
var CreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
35484
35463
|
var creatableProps = useStateManager(props);
|
|
35485
35464
|
var selectProps = useCreatable(creatableProps);
|
|
35486
|
-
return /*#__PURE__*/React.createElement(Select$1, _extends$
|
|
35465
|
+
return /*#__PURE__*/React.createElement(Select$1, _extends$4({
|
|
35487
35466
|
ref: ref
|
|
35488
35467
|
}, selectProps));
|
|
35489
35468
|
});
|
|
35490
35469
|
|
|
35491
35470
|
var StateManagedSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
35492
35471
|
var baseSelectProps = useStateManager(props);
|
|
35493
|
-
return /*#__PURE__*/React.createElement(Select$1, _extends$
|
|
35472
|
+
return /*#__PURE__*/React.createElement(Select$1, _extends$4({
|
|
35494
35473
|
ref: ref
|
|
35495
35474
|
}, baseSelectProps));
|
|
35496
35475
|
});
|
|
@@ -35904,7 +35883,7 @@ function useAsync(_ref) {
|
|
|
35904
35883
|
var AsyncSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
35905
35884
|
var stateManagedProps = useAsync(props);
|
|
35906
35885
|
var selectProps = useStateManager(stateManagedProps);
|
|
35907
|
-
return /*#__PURE__*/React.createElement(Select$1, _extends$
|
|
35886
|
+
return /*#__PURE__*/React.createElement(Select$1, _extends$4({
|
|
35908
35887
|
ref: ref
|
|
35909
35888
|
}, selectProps));
|
|
35910
35889
|
});
|
|
@@ -35913,7 +35892,7 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
35913
35892
|
var stateManagerProps = useAsync(props);
|
|
35914
35893
|
var creatableProps = useStateManager(stateManagerProps);
|
|
35915
35894
|
var selectProps = useCreatable(creatableProps);
|
|
35916
|
-
return /*#__PURE__*/React.createElement(Select$1, _extends$
|
|
35895
|
+
return /*#__PURE__*/React.createElement(Select$1, _extends$4({
|
|
35917
35896
|
ref: ref
|
|
35918
35897
|
}, selectProps));
|
|
35919
35898
|
});
|
|
@@ -36118,7 +36097,7 @@ var SelectField = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
36118
36097
|
SelectField.displayName = "SelectField";
|
|
36119
36098
|
|
|
36120
36099
|
var _excluded$3$2 = ["label", "required", "className", "error", "onChange", "labelProps", "children"];
|
|
36121
|
-
var Switch
|
|
36100
|
+
var Switch = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
36122
36101
|
var _ref$label = _ref.label,
|
|
36123
36102
|
label = _ref$label === void 0 ? "" : _ref$label,
|
|
36124
36103
|
_ref$required = _ref.required,
|
|
@@ -36174,7 +36153,7 @@ var Switch$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
36174
36153
|
id: errorId
|
|
36175
36154
|
}, error));
|
|
36176
36155
|
});
|
|
36177
|
-
Switch
|
|
36156
|
+
Switch.displayName = "Switch";
|
|
36178
36157
|
|
|
36179
36158
|
var _excluded$1$2 = ["size", "rows", "disabled", "required", "nakedTextarea", "helpText", "error", "label", "className", "maxLength", "unlimitedChars", "labelProps"];
|
|
36180
36159
|
var SIZES$3 = {
|
|
@@ -36407,7 +36386,7 @@ var Segment = function Segment(_ref) {
|
|
|
36407
36386
|
var inputRef = useRef(null);
|
|
36408
36387
|
var _useTranslation = useTranslation(),
|
|
36409
36388
|
t = _useTranslation.t;
|
|
36410
|
-
var history = useHistory
|
|
36389
|
+
var history = useHistory();
|
|
36411
36390
|
var filtersPayload = buildSegmentsPayload(filters, childrenKeys);
|
|
36412
36391
|
var _getQueryParams = getQueryParams(),
|
|
36413
36392
|
segmentId = _getQueryParams.segmentId;
|
|
@@ -36551,7 +36530,7 @@ var Bar = function Bar(_ref) {
|
|
|
36551
36530
|
var nonHiddenFilters = removeBy({
|
|
36552
36531
|
hidden: true
|
|
36553
36532
|
}, filters);
|
|
36554
|
-
var history = useHistory
|
|
36533
|
+
var history = useHistory();
|
|
36555
36534
|
var _useTranslation = useTranslation(),
|
|
36556
36535
|
t = _useTranslation.t;
|
|
36557
36536
|
useEffect(function () {
|
|
@@ -36646,8 +36625,8 @@ var Bar = function Bar(_ref) {
|
|
|
36646
36625
|
}));
|
|
36647
36626
|
};
|
|
36648
36627
|
|
|
36649
|
-
function _extends$
|
|
36650
|
-
_extends$
|
|
36628
|
+
function _extends$3() {
|
|
36629
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function (target) {
|
|
36651
36630
|
for (var i = 1; i < arguments.length; i++) {
|
|
36652
36631
|
var source = arguments[i];
|
|
36653
36632
|
for (var key in source) {
|
|
@@ -36658,10 +36637,10 @@ function _extends$4() {
|
|
|
36658
36637
|
}
|
|
36659
36638
|
return target;
|
|
36660
36639
|
};
|
|
36661
|
-
return _extends$
|
|
36640
|
+
return _extends$3.apply(this, arguments);
|
|
36662
36641
|
}
|
|
36663
36642
|
|
|
36664
|
-
function _objectWithoutPropertiesLoose$
|
|
36643
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
36665
36644
|
if (source == null) return {};
|
|
36666
36645
|
var target = {};
|
|
36667
36646
|
var sourceKeys = Object.keys(source);
|
|
@@ -36676,7 +36655,7 @@ function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
|
36676
36655
|
|
|
36677
36656
|
function _objectWithoutProperties$1(source, excluded) {
|
|
36678
36657
|
if (source == null) return {};
|
|
36679
|
-
var target = _objectWithoutPropertiesLoose$
|
|
36658
|
+
var target = _objectWithoutPropertiesLoose$3(source, excluded);
|
|
36680
36659
|
var key, i;
|
|
36681
36660
|
if (Object.getOwnPropertySymbols) {
|
|
36682
36661
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -36718,8 +36697,8 @@ var Portal = function Portal(_ref) {
|
|
|
36718
36697
|
return /*#__PURE__*/createPortal(children, target.current);
|
|
36719
36698
|
};
|
|
36720
36699
|
|
|
36721
|
-
function _extends$
|
|
36722
|
-
_extends$
|
|
36700
|
+
function _extends$2() {
|
|
36701
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
|
36723
36702
|
for (var i = 1; i < arguments.length; i++) {
|
|
36724
36703
|
var source = arguments[i];
|
|
36725
36704
|
for (var key in source) {
|
|
@@ -36730,10 +36709,10 @@ function _extends$3() {
|
|
|
36730
36709
|
}
|
|
36731
36710
|
return target;
|
|
36732
36711
|
};
|
|
36733
|
-
return _extends$
|
|
36712
|
+
return _extends$2.apply(this, arguments);
|
|
36734
36713
|
}
|
|
36735
36714
|
|
|
36736
|
-
function _objectWithoutPropertiesLoose$
|
|
36715
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
36737
36716
|
if (source == null) return {};
|
|
36738
36717
|
var target = {};
|
|
36739
36718
|
var sourceKeys = Object.keys(source);
|
|
@@ -36746,23 +36725,23 @@ function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
|
36746
36725
|
return target;
|
|
36747
36726
|
}
|
|
36748
36727
|
|
|
36749
|
-
function _setPrototypeOf$
|
|
36750
|
-
_setPrototypeOf$
|
|
36728
|
+
function _setPrototypeOf$1(o, p) {
|
|
36729
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
36751
36730
|
o.__proto__ = p;
|
|
36752
36731
|
return o;
|
|
36753
36732
|
};
|
|
36754
|
-
return _setPrototypeOf$
|
|
36733
|
+
return _setPrototypeOf$1(o, p);
|
|
36755
36734
|
}
|
|
36756
36735
|
|
|
36757
|
-
function _inheritsLoose$
|
|
36736
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
36758
36737
|
subClass.prototype = Object.create(superClass.prototype);
|
|
36759
36738
|
subClass.prototype.constructor = subClass;
|
|
36760
|
-
_setPrototypeOf$
|
|
36739
|
+
_setPrototypeOf$1(subClass, superClass);
|
|
36761
36740
|
}
|
|
36762
36741
|
|
|
36763
36742
|
var propTypes$1 = {exports: {}};
|
|
36764
36743
|
|
|
36765
|
-
var reactIs$
|
|
36744
|
+
var reactIs$1 = {exports: {}};
|
|
36766
36745
|
|
|
36767
36746
|
var reactIs_production_min$1 = {};
|
|
36768
36747
|
|
|
@@ -36981,7 +36960,7 @@ function requireReactIs_development$1 () {
|
|
|
36981
36960
|
var hasRequiredReactIs$1;
|
|
36982
36961
|
|
|
36983
36962
|
function requireReactIs$1 () {
|
|
36984
|
-
if (hasRequiredReactIs$1) return reactIs$
|
|
36963
|
+
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
36985
36964
|
hasRequiredReactIs$1 = 1;
|
|
36986
36965
|
(function (module) {
|
|
36987
36966
|
|
|
@@ -36990,8 +36969,8 @@ function requireReactIs$1 () {
|
|
|
36990
36969
|
} else {
|
|
36991
36970
|
module.exports = requireReactIs_development$1();
|
|
36992
36971
|
}
|
|
36993
|
-
} (reactIs$
|
|
36994
|
-
return reactIs$
|
|
36972
|
+
} (reactIs$1));
|
|
36973
|
+
return reactIs$1.exports;
|
|
36995
36974
|
}
|
|
36996
36975
|
|
|
36997
36976
|
/*
|
|
@@ -38111,7 +38090,7 @@ var EXITING$1 = 'exiting';
|
|
|
38111
38090
|
*/
|
|
38112
38091
|
|
|
38113
38092
|
var Transition$1 = /*#__PURE__*/function (_React$Component) {
|
|
38114
|
-
_inheritsLoose$
|
|
38093
|
+
_inheritsLoose$1(Transition, _React$Component);
|
|
38115
38094
|
|
|
38116
38095
|
function Transition(props, context) {
|
|
38117
38096
|
var _this;
|
|
@@ -38404,7 +38383,7 @@ var Transition$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
38404
38383
|
_this$props.onExiting;
|
|
38405
38384
|
_this$props.onExited;
|
|
38406
38385
|
_this$props.nodeRef;
|
|
38407
|
-
var childProps = _objectWithoutPropertiesLoose$
|
|
38386
|
+
var childProps = _objectWithoutPropertiesLoose$2(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
38408
38387
|
|
|
38409
38388
|
return (
|
|
38410
38389
|
/*#__PURE__*/
|
|
@@ -38607,7 +38586,7 @@ Transition$1.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
38607
38586
|
onExited: propTypes$1.exports.func
|
|
38608
38587
|
} : {}; // Name the function so it is clearer in the documentation
|
|
38609
38588
|
|
|
38610
|
-
function noop$
|
|
38589
|
+
function noop$1() {}
|
|
38611
38590
|
|
|
38612
38591
|
Transition$1.defaultProps = {
|
|
38613
38592
|
in: false,
|
|
@@ -38616,12 +38595,12 @@ Transition$1.defaultProps = {
|
|
|
38616
38595
|
appear: false,
|
|
38617
38596
|
enter: true,
|
|
38618
38597
|
exit: true,
|
|
38619
|
-
onEnter: noop$
|
|
38620
|
-
onEntering: noop$
|
|
38621
|
-
onEntered: noop$
|
|
38622
|
-
onExit: noop$
|
|
38623
|
-
onExiting: noop$
|
|
38624
|
-
onExited: noop$
|
|
38598
|
+
onEnter: noop$1,
|
|
38599
|
+
onEntering: noop$1,
|
|
38600
|
+
onEntered: noop$1,
|
|
38601
|
+
onExit: noop$1,
|
|
38602
|
+
onExiting: noop$1,
|
|
38603
|
+
onExited: noop$1
|
|
38625
38604
|
};
|
|
38626
38605
|
Transition$1.UNMOUNTED = UNMOUNTED$1;
|
|
38627
38606
|
Transition$1.EXITED = EXITED$1;
|
|
@@ -38713,7 +38692,7 @@ var removeClass$2 = function removeClass(node, classes) {
|
|
|
38713
38692
|
|
|
38714
38693
|
|
|
38715
38694
|
var CSSTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
38716
|
-
_inheritsLoose$
|
|
38695
|
+
_inheritsLoose$1(CSSTransition, _React$Component);
|
|
38717
38696
|
|
|
38718
38697
|
function CSSTransition() {
|
|
38719
38698
|
var _this;
|
|
@@ -38882,9 +38861,9 @@ var CSSTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
38882
38861
|
_proto.render = function render() {
|
|
38883
38862
|
var _this$props = this.props;
|
|
38884
38863
|
_this$props.classNames;
|
|
38885
|
-
var props = _objectWithoutPropertiesLoose$
|
|
38864
|
+
var props = _objectWithoutPropertiesLoose$2(_this$props, ["classNames"]);
|
|
38886
38865
|
|
|
38887
|
-
return /*#__PURE__*/React__default.createElement(Transition$2, _extends$
|
|
38866
|
+
return /*#__PURE__*/React__default.createElement(Transition$2, _extends$2({}, props, {
|
|
38888
38867
|
onEnter: this.onEnter,
|
|
38889
38868
|
onEntered: this.onEntered,
|
|
38890
38869
|
onEntering: this.onEntering,
|
|
@@ -38900,7 +38879,7 @@ var CSSTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
38900
38879
|
CSSTransition$1.defaultProps = {
|
|
38901
38880
|
classNames: ''
|
|
38902
38881
|
};
|
|
38903
|
-
CSSTransition$1.propTypes = process.env.NODE_ENV !== "production" ? _extends$
|
|
38882
|
+
CSSTransition$1.propTypes = process.env.NODE_ENV !== "production" ? _extends$2({}, Transition$2.propTypes, {
|
|
38904
38883
|
/**
|
|
38905
38884
|
* The animation classNames applied to the component as it appears, enters,
|
|
38906
38885
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -39092,7 +39071,7 @@ var Slider = function Slider(_ref) {
|
|
|
39092
39071
|
timeout: 300
|
|
39093
39072
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
39094
39073
|
className: "neeto-filters-slider__pane"
|
|
39095
|
-
}, /*#__PURE__*/React__default.createElement("div", _extends$
|
|
39074
|
+
}, /*#__PURE__*/React__default.createElement("div", _extends$3({
|
|
39096
39075
|
className: classnames$4("neeto-filters-slider__wrapper", _defineProperty$6({
|
|
39097
39076
|
"neeto-filters-slider__wrapper--xsmall": size === SIZES.xsmall,
|
|
39098
39077
|
"neeto-filters-slider__wrapper--small": size === SIZES.small,
|
|
@@ -39121,9 +39100,9 @@ var useFilters = function useFilters(_ref) {
|
|
|
39121
39100
|
onSelectorsChange = _ref.onSelectorsChange;
|
|
39122
39101
|
var initialRender = useRef(true);
|
|
39123
39102
|
var prevFilters = useRef([]);
|
|
39124
|
-
var location = useLocation
|
|
39103
|
+
var location = useLocation();
|
|
39125
39104
|
var filters = buildFiltersFromSearchParams(columns, false);
|
|
39126
|
-
var history = useHistory
|
|
39105
|
+
var history = useHistory();
|
|
39127
39106
|
var defaultValuesOfColumns = JSON.stringify(pluck$1("defaultValue", columns));
|
|
39128
39107
|
var keywordFilter = _objectSpread$1({
|
|
39129
39108
|
key: "keyword",
|
|
@@ -39267,7 +39246,7 @@ var Boolean$1 = function Boolean(_ref) {
|
|
|
39267
39246
|
});
|
|
39268
39247
|
handleApplyFilter(updatedFilter);
|
|
39269
39248
|
};
|
|
39270
|
-
return /*#__PURE__*/React__default.createElement(Select$2, _extends$
|
|
39249
|
+
return /*#__PURE__*/React__default.createElement(Select$2, _extends$3({
|
|
39271
39250
|
isClearable: true,
|
|
39272
39251
|
autoFocus: autoFocus,
|
|
39273
39252
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
@@ -39343,7 +39322,7 @@ var Datetime = function Datetime(_ref) {
|
|
|
39343
39322
|
resource: label.toLocaleLowerCase()
|
|
39344
39323
|
}),
|
|
39345
39324
|
onChange: handleChange
|
|
39346
|
-
}), isCustomDateRangeShown && /*#__PURE__*/React__default.createElement(DatePicker, _extends$
|
|
39325
|
+
}), isCustomDateRangeShown && /*#__PURE__*/React__default.createElement(DatePicker, _extends$3({
|
|
39347
39326
|
"data-cy": "neeto-filters-".concat(key, "-date-range"),
|
|
39348
39327
|
type: "range",
|
|
39349
39328
|
value: filter.value,
|
|
@@ -39392,7 +39371,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
39392
39371
|
});
|
|
39393
39372
|
handleApplyFilter(updatedFilter);
|
|
39394
39373
|
};
|
|
39395
|
-
return /*#__PURE__*/React__default.createElement(Select$2, _extends$
|
|
39374
|
+
return /*#__PURE__*/React__default.createElement(Select$2, _extends$3({
|
|
39396
39375
|
autoFocus: autoFocus,
|
|
39397
39376
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
39398
39377
|
isClearable: !defaultValue && isClearable,
|
|
@@ -39485,7 +39464,7 @@ var SingleDatetime = function SingleDatetime(_ref) {
|
|
|
39485
39464
|
strategy: "fixed",
|
|
39486
39465
|
value: selectedRule,
|
|
39487
39466
|
onChange: handleRuleChange
|
|
39488
|
-
}), /*#__PURE__*/React__default.createElement(DatePicker, _extends$
|
|
39467
|
+
}), /*#__PURE__*/React__default.createElement(DatePicker, _extends$3({
|
|
39489
39468
|
autoFocus: autoFocus,
|
|
39490
39469
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
39491
39470
|
type: datePickerType,
|
|
@@ -39564,7 +39543,7 @@ var SingleTime = function SingleTime(_ref) {
|
|
|
39564
39543
|
strategy: "fixed",
|
|
39565
39544
|
value: selectedRule,
|
|
39566
39545
|
onChange: handleRuleChange
|
|
39567
|
-
}), /*#__PURE__*/React__default.createElement(TimePicker, _extends$
|
|
39546
|
+
}), /*#__PURE__*/React__default.createElement(TimePicker, _extends$3({
|
|
39568
39547
|
use12Hours: true,
|
|
39569
39548
|
autoFocus: autoFocus,
|
|
39570
39549
|
className: "w-full",
|
|
@@ -39657,7 +39636,7 @@ var Text = function Text(_ref) {
|
|
|
39657
39636
|
strategy: "fixed",
|
|
39658
39637
|
value: selectedRule,
|
|
39659
39638
|
onChange: handleRuleChange
|
|
39660
|
-
}), /*#__PURE__*/React__default.createElement(Input$2, _extends$
|
|
39639
|
+
}), /*#__PURE__*/React__default.createElement(Input$2, _extends$3({
|
|
39661
39640
|
autoFocus: autoFocus,
|
|
39662
39641
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
39663
39642
|
label: !showRuleSelector && label,
|
|
@@ -39726,7 +39705,7 @@ var Time = function Time(_ref) {
|
|
|
39726
39705
|
resource: label.toLocaleLowerCase()
|
|
39727
39706
|
}),
|
|
39728
39707
|
onChange: handleChange
|
|
39729
|
-
}), isCustomTimeRangeShown && /*#__PURE__*/React__default.createElement(TimePicker, _extends$
|
|
39708
|
+
}), isCustomTimeRangeShown && /*#__PURE__*/React__default.createElement(TimePicker, _extends$3({
|
|
39730
39709
|
use12Hours: true,
|
|
39731
39710
|
"data-cy": "neeto-filters-".concat(key, "-date-range"),
|
|
39732
39711
|
format: "h:mm A",
|
|
@@ -39837,7 +39816,7 @@ var Pane = function Pane(_ref) {
|
|
|
39837
39816
|
_useState2 = _slicedToArray$2(_useState, 2),
|
|
39838
39817
|
searchTerm = _useState2[0],
|
|
39839
39818
|
setSearchTerm = _useState2[1];
|
|
39840
|
-
var history = useHistory
|
|
39819
|
+
var history = useHistory();
|
|
39841
39820
|
var _useTranslation = useTranslation(),
|
|
39842
39821
|
t = _useTranslation.t;
|
|
39843
39822
|
var _buildFilteredColumns = buildFilteredColumns({
|
|
@@ -39897,7 +39876,7 @@ var Pane = function Pane(_ref) {
|
|
|
39897
39876
|
});
|
|
39898
39877
|
return /*#__PURE__*/React__default.createElement(Portal, {
|
|
39899
39878
|
rootId: "neeto-filters-portal"
|
|
39900
|
-
}, /*#__PURE__*/React__default.createElement(Slider, _extends$
|
|
39879
|
+
}, /*#__PURE__*/React__default.createElement(Slider, _extends$3({
|
|
39901
39880
|
isOpen: isOpen,
|
|
39902
39881
|
size: size,
|
|
39903
39882
|
onClose: handleClose
|
|
@@ -40005,14 +39984,14 @@ var Filters = function Filters(_ref) {
|
|
|
40005
39984
|
t = _useTranslation.t;
|
|
40006
39985
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
40007
39986
|
className: classnames$4(_defineProperty$6({}, className, className))
|
|
40008
|
-
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$
|
|
39987
|
+
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$3({
|
|
40009
39988
|
"data-cy": "neeto-filters-toggle-btn",
|
|
40010
39989
|
label: t("common.filter"),
|
|
40011
39990
|
style: "secondary",
|
|
40012
39991
|
onClick: function onClick() {
|
|
40013
39992
|
return setIsOpen(true);
|
|
40014
39993
|
}
|
|
40015
|
-
}, buttonProps)), /*#__PURE__*/React__default.createElement(Pane, _extends$
|
|
39994
|
+
}, buttonProps)), /*#__PURE__*/React__default.createElement(Pane, _extends$3({
|
|
40016
39995
|
childrenKeys: childrenKeys,
|
|
40017
39996
|
columns: columns,
|
|
40018
39997
|
isOpen: isOpen,
|
|
@@ -40162,8 +40141,8 @@ var classnames$1 = {exports: {}};
|
|
|
40162
40141
|
|
|
40163
40142
|
var classnames = classnames$1.exports;
|
|
40164
40143
|
|
|
40165
|
-
function _extends$1
|
|
40166
|
-
_extends$1
|
|
40144
|
+
function _extends$1() {
|
|
40145
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
40167
40146
|
for (var i = 1; i < arguments.length; i++) {
|
|
40168
40147
|
var source = arguments[i];
|
|
40169
40148
|
for (var key in source) {
|
|
@@ -40174,10 +40153,10 @@ function _extends$1$1() {
|
|
|
40174
40153
|
}
|
|
40175
40154
|
return target;
|
|
40176
40155
|
};
|
|
40177
|
-
return _extends$1
|
|
40156
|
+
return _extends$1.apply(this, arguments);
|
|
40178
40157
|
}
|
|
40179
40158
|
|
|
40180
|
-
function _objectWithoutPropertiesLoose
|
|
40159
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
40181
40160
|
if (source == null) return {};
|
|
40182
40161
|
var target = {};
|
|
40183
40162
|
var sourceKeys = Object.keys(source);
|
|
@@ -40190,23 +40169,23 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
|
40190
40169
|
return target;
|
|
40191
40170
|
}
|
|
40192
40171
|
|
|
40193
|
-
function _setPrototypeOf
|
|
40194
|
-
_setPrototypeOf
|
|
40172
|
+
function _setPrototypeOf(o, p) {
|
|
40173
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
40195
40174
|
o.__proto__ = p;
|
|
40196
40175
|
return o;
|
|
40197
40176
|
};
|
|
40198
|
-
return _setPrototypeOf
|
|
40177
|
+
return _setPrototypeOf(o, p);
|
|
40199
40178
|
}
|
|
40200
40179
|
|
|
40201
|
-
function _inheritsLoose
|
|
40180
|
+
function _inheritsLoose(subClass, superClass) {
|
|
40202
40181
|
subClass.prototype = Object.create(superClass.prototype);
|
|
40203
40182
|
subClass.prototype.constructor = subClass;
|
|
40204
|
-
_setPrototypeOf
|
|
40183
|
+
_setPrototypeOf(subClass, superClass);
|
|
40205
40184
|
}
|
|
40206
40185
|
|
|
40207
40186
|
var propTypes = {exports: {}};
|
|
40208
40187
|
|
|
40209
|
-
var reactIs
|
|
40188
|
+
var reactIs = {exports: {}};
|
|
40210
40189
|
|
|
40211
40190
|
var reactIs_production_min = {};
|
|
40212
40191
|
|
|
@@ -40425,7 +40404,7 @@ function requireReactIs_development () {
|
|
|
40425
40404
|
var hasRequiredReactIs;
|
|
40426
40405
|
|
|
40427
40406
|
function requireReactIs () {
|
|
40428
|
-
if (hasRequiredReactIs) return reactIs
|
|
40407
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
40429
40408
|
hasRequiredReactIs = 1;
|
|
40430
40409
|
(function (module) {
|
|
40431
40410
|
|
|
@@ -40434,8 +40413,8 @@ function requireReactIs () {
|
|
|
40434
40413
|
} else {
|
|
40435
40414
|
module.exports = requireReactIs_development();
|
|
40436
40415
|
}
|
|
40437
|
-
} (reactIs
|
|
40438
|
-
return reactIs
|
|
40416
|
+
} (reactIs));
|
|
40417
|
+
return reactIs.exports;
|
|
40439
40418
|
}
|
|
40440
40419
|
|
|
40441
40420
|
/*
|
|
@@ -69241,7 +69220,7 @@ var EXITING = 'exiting';
|
|
|
69241
69220
|
*/
|
|
69242
69221
|
|
|
69243
69222
|
var Transition = /*#__PURE__*/function (_React$Component) {
|
|
69244
|
-
_inheritsLoose
|
|
69223
|
+
_inheritsLoose(Transition, _React$Component);
|
|
69245
69224
|
|
|
69246
69225
|
function Transition(props, context) {
|
|
69247
69226
|
var _this;
|
|
@@ -69534,7 +69513,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
69534
69513
|
_this$props.onExiting;
|
|
69535
69514
|
_this$props.onExited;
|
|
69536
69515
|
_this$props.nodeRef;
|
|
69537
|
-
var childProps = _objectWithoutPropertiesLoose
|
|
69516
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
69538
69517
|
|
|
69539
69518
|
return (
|
|
69540
69519
|
/*#__PURE__*/
|
|
@@ -69737,7 +69716,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
69737
69716
|
onExited: propTypes.exports.func
|
|
69738
69717
|
} : {}; // Name the function so it is clearer in the documentation
|
|
69739
69718
|
|
|
69740
|
-
function noop
|
|
69719
|
+
function noop() {}
|
|
69741
69720
|
|
|
69742
69721
|
Transition.defaultProps = {
|
|
69743
69722
|
in: false,
|
|
@@ -69746,12 +69725,12 @@ Transition.defaultProps = {
|
|
|
69746
69725
|
appear: false,
|
|
69747
69726
|
enter: true,
|
|
69748
69727
|
exit: true,
|
|
69749
|
-
onEnter: noop
|
|
69750
|
-
onEntering: noop
|
|
69751
|
-
onEntered: noop
|
|
69752
|
-
onExit: noop
|
|
69753
|
-
onExiting: noop
|
|
69754
|
-
onExited: noop
|
|
69728
|
+
onEnter: noop,
|
|
69729
|
+
onEntering: noop,
|
|
69730
|
+
onEntered: noop,
|
|
69731
|
+
onExit: noop,
|
|
69732
|
+
onExiting: noop,
|
|
69733
|
+
onExited: noop
|
|
69755
69734
|
};
|
|
69756
69735
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
69757
69736
|
Transition.EXITED = EXITED;
|
|
@@ -69842,7 +69821,7 @@ var removeClass = function removeClass(node, classes) {
|
|
|
69842
69821
|
|
|
69843
69822
|
|
|
69844
69823
|
var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
69845
|
-
_inheritsLoose
|
|
69824
|
+
_inheritsLoose(CSSTransition, _React$Component);
|
|
69846
69825
|
|
|
69847
69826
|
function CSSTransition() {
|
|
69848
69827
|
var _this;
|
|
@@ -70011,9 +69990,9 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
70011
69990
|
_proto.render = function render() {
|
|
70012
69991
|
var _this$props = this.props;
|
|
70013
69992
|
_this$props.classNames;
|
|
70014
|
-
var props = _objectWithoutPropertiesLoose
|
|
69993
|
+
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
70015
69994
|
|
|
70016
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends$1
|
|
69995
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({}, props, {
|
|
70017
69996
|
onEnter: this.onEnter,
|
|
70018
69997
|
onEntered: this.onEntered,
|
|
70019
69998
|
onEntering: this.onEntering,
|
|
@@ -70029,7 +70008,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
70029
70008
|
CSSTransition.defaultProps = {
|
|
70030
70009
|
classNames: ''
|
|
70031
70010
|
};
|
|
70032
|
-
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1
|
|
70011
|
+
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
|
|
70033
70012
|
/**
|
|
70034
70013
|
* The animation classNames applied to the component as it appears, enters,
|
|
70035
70014
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -70335,7 +70314,7 @@ var defaultProps = {
|
|
|
70335
70314
|
*/
|
|
70336
70315
|
|
|
70337
70316
|
var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
70338
|
-
_inheritsLoose
|
|
70317
|
+
_inheritsLoose(TransitionGroup, _React$Component);
|
|
70339
70318
|
|
|
70340
70319
|
function TransitionGroup(props, context) {
|
|
70341
70320
|
var _this;
|
|
@@ -70391,7 +70370,7 @@ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
70391
70370
|
|
|
70392
70371
|
if (this.mounted) {
|
|
70393
70372
|
this.setState(function (state) {
|
|
70394
|
-
var children = _extends$1
|
|
70373
|
+
var children = _extends$1({}, state.children);
|
|
70395
70374
|
|
|
70396
70375
|
delete children[child.key];
|
|
70397
70376
|
return {
|
|
@@ -70405,7 +70384,7 @@ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
70405
70384
|
var _this$props = this.props,
|
|
70406
70385
|
Component = _this$props.component,
|
|
70407
70386
|
childFactory = _this$props.childFactory,
|
|
70408
|
-
props = _objectWithoutPropertiesLoose
|
|
70387
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
70409
70388
|
|
|
70410
70389
|
var contextValue = this.state.contextValue;
|
|
70411
70390
|
var children = values(this.state.children).map(childFactory);
|
|
@@ -70500,7 +70479,7 @@ TransitionGroup.defaultProps = defaultProps;
|
|
|
70500
70479
|
*/
|
|
70501
70480
|
|
|
70502
70481
|
var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
70503
|
-
_inheritsLoose
|
|
70482
|
+
_inheritsLoose(ReplaceTransition, _React$Component);
|
|
70504
70483
|
|
|
70505
70484
|
function ReplaceTransition() {
|
|
70506
70485
|
var _this;
|
|
@@ -70581,7 +70560,7 @@ var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
70581
70560
|
var _this$props = this.props,
|
|
70582
70561
|
children = _this$props.children,
|
|
70583
70562
|
inProp = _this$props.in,
|
|
70584
|
-
props = _objectWithoutPropertiesLoose
|
|
70563
|
+
props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
|
|
70585
70564
|
|
|
70586
70565
|
var _React$Children$toArr = React__default.Children.toArray(children),
|
|
70587
70566
|
first = _React$Children$toArr[0],
|
|
@@ -70748,7 +70727,7 @@ var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_re
|
|
|
70748
70727
|
*/
|
|
70749
70728
|
|
|
70750
70729
|
var SwitchTransition = /*#__PURE__*/function (_React$Component) {
|
|
70751
|
-
_inheritsLoose
|
|
70730
|
+
_inheritsLoose(SwitchTransition, _React$Component);
|
|
70752
70731
|
|
|
70753
70732
|
function SwitchTransition() {
|
|
70754
70733
|
var _this;
|
|
@@ -70867,8 +70846,8 @@ SwitchTransition.defaultProps = {
|
|
|
70867
70846
|
mode: modes.out
|
|
70868
70847
|
};
|
|
70869
70848
|
|
|
70870
|
-
function _extends
|
|
70871
|
-
_extends
|
|
70849
|
+
function _extends() {
|
|
70850
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
70872
70851
|
for (var i = 1; i < arguments.length; i++) {
|
|
70873
70852
|
var source = arguments[i];
|
|
70874
70853
|
for (var key in source) {
|
|
@@ -70879,7 +70858,7 @@ function _extends$2() {
|
|
|
70879
70858
|
}
|
|
70880
70859
|
return target;
|
|
70881
70860
|
};
|
|
70882
|
-
return _extends
|
|
70861
|
+
return _extends.apply(this, arguments);
|
|
70883
70862
|
}
|
|
70884
70863
|
|
|
70885
70864
|
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}}
|
|
@@ -71004,7 +70983,7 @@ var AddNew = function AddNew(_ref) {
|
|
|
71004
70983
|
otherProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
71005
70984
|
cov_ip1v8v12c().f[0]++;
|
|
71006
70985
|
cov_ip1v8v12c().s[1]++;
|
|
71007
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
70986
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
71008
70987
|
className: "neeto-molecules-menubar__add-new-wrap"
|
|
71009
70988
|
}, otherProps), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
71010
70989
|
icon: Plus,
|
|
@@ -71614,7 +71593,7 @@ var Block = function Block(_ref) {
|
|
|
71614
71593
|
return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
|
|
71615
71594
|
};
|
|
71616
71595
|
cov_wb90gd2wn().s[10]++;
|
|
71617
|
-
return /*#__PURE__*/React__default.createElement(Parent, _extends
|
|
71596
|
+
return /*#__PURE__*/React__default.createElement(Parent, _extends({
|
|
71618
71597
|
"data-cy": (cov_wb90gd2wn().b[6][0]++, otherProps["data-cy"]) || (cov_wb90gd2wn().b[6][1]++, hyphenize(label)) || (cov_wb90gd2wn().b[6][2]++, "nui"),
|
|
71619
71598
|
to: url,
|
|
71620
71599
|
className: classnames("neeto-molecules-menubar__block", _defineProperty({
|
|
@@ -71837,7 +71816,7 @@ var Item = function Item(_ref) {
|
|
|
71837
71816
|
otherProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
71838
71817
|
cov_yzr6v8k7l().f[0]++;
|
|
71839
71818
|
cov_yzr6v8k7l().s[1]++;
|
|
71840
|
-
return /*#__PURE__*/React__default.createElement("button", _extends
|
|
71819
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
71841
71820
|
className: classnames("neeto-molecules-menubar__item", _defineProperty({
|
|
71842
71821
|
"neeto-molecules-menubar__item--active": active
|
|
71843
71822
|
}, className, className))
|
|
@@ -72017,7 +71996,7 @@ var Search = function Search(_ref) {
|
|
|
72017
71996
|
cov_262f5m07ws().s[2]++;
|
|
72018
71997
|
return (cov_262f5m07ws().b[1][0]++, !isCollapsed) && (cov_262f5m07ws().b[1][1]++, /*#__PURE__*/React__default.createElement("div", {
|
|
72019
71998
|
className: "neeto-molecules-menubar__search"
|
|
72020
|
-
}, /*#__PURE__*/React__default.createElement(Input$2, _extends
|
|
71999
|
+
}, /*#__PURE__*/React__default.createElement(Input$2, _extends({
|
|
72021
72000
|
placeholder: t("neetoMolecules.common.actions.search"),
|
|
72022
72001
|
prefix: /*#__PURE__*/React__default.createElement(Search$1, null),
|
|
72023
72002
|
type: "search"
|
|
@@ -72189,7 +72168,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
72189
72168
|
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
72190
72169
|
cov_1i7kzu2ga4().f[0]++;
|
|
72191
72170
|
cov_1i7kzu2ga4().s[1]++;
|
|
72192
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
72171
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
72193
72172
|
className: "neeto-molecules-menubar__subtitle",
|
|
72194
72173
|
"data-cy": (cov_1i7kzu2ga4().b[0][0]++, otherProps["data-cy"]) || (cov_1i7kzu2ga4().b[0][1]++, "menubar-subtitle-heading")
|
|
72195
72174
|
}, otherProps), children, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -72197,7 +72176,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
72197
72176
|
}, iconProps === null || iconProps === void 0 ? void 0 : iconProps.map(function (iconProp, index) {
|
|
72198
72177
|
cov_1i7kzu2ga4().f[1]++;
|
|
72199
72178
|
cov_1i7kzu2ga4().s[2]++;
|
|
72200
|
-
return /*#__PURE__*/React__default.createElement(Button$1, _extends
|
|
72179
|
+
return /*#__PURE__*/React__default.createElement(Button$1, _extends({
|
|
72201
72180
|
key: index,
|
|
72202
72181
|
style: "text"
|
|
72203
72182
|
}, iconProp));
|
|
@@ -72526,2764 +72505,137 @@ MenuBar.Search = Search;
|
|
|
72526
72505
|
cov_2lkpa29vdy().s[6]++;
|
|
72527
72506
|
MenuBar.AddNew = AddNew;
|
|
72528
72507
|
|
|
72529
|
-
var
|
|
72530
|
-
|
|
72531
|
-
|
|
72532
|
-
|
|
72533
|
-
|
|
72534
|
-
|
|
72535
|
-
|
|
72536
|
-
|
|
72537
|
-
|
|
72538
|
-
|
|
72539
|
-
|
|
72540
|
-
|
|
72541
|
-
|
|
72542
|
-
|
|
72543
|
-
|
|
72544
|
-
|
|
72545
|
-
|
|
72546
|
-
|
|
72547
|
-
|
|
72548
|
-
|
|
72549
|
-
|
|
72550
|
-
|
|
72551
|
-
target[key] = source[key];
|
|
72552
|
-
}
|
|
72553
|
-
}
|
|
72554
|
-
}
|
|
72555
|
-
return target;
|
|
72508
|
+
var DeleteAlert = function DeleteAlert(_ref) {
|
|
72509
|
+
var isOpen = _ref.isOpen,
|
|
72510
|
+
onClose = _ref.onClose,
|
|
72511
|
+
segment = _ref.segment,
|
|
72512
|
+
columns = _ref.columns;
|
|
72513
|
+
var _useTranslation = useTranslation(),
|
|
72514
|
+
t = _useTranslation.t;
|
|
72515
|
+
var history = useHistory();
|
|
72516
|
+
var _getQueryParams = getQueryParams(),
|
|
72517
|
+
segmentId = _getQueryParams.segmentId;
|
|
72518
|
+
var _useDestroySegment = useDestroySegment(),
|
|
72519
|
+
deleteSegment = _useDestroySegment.mutate,
|
|
72520
|
+
isDeleting = _useDestroySegment.isLoading;
|
|
72521
|
+
var handleClearAll = function handleClearAll() {
|
|
72522
|
+
var params = buildUrlFromFilters({
|
|
72523
|
+
columns: columns,
|
|
72524
|
+
filters: [],
|
|
72525
|
+
isClearAll: true
|
|
72526
|
+
});
|
|
72527
|
+
history.push({
|
|
72528
|
+
search: params
|
|
72529
|
+
});
|
|
72556
72530
|
};
|
|
72557
|
-
|
|
72558
|
-
|
|
72559
|
-
|
|
72560
|
-
|
|
72561
|
-
return pathname.charAt(0) === '/';
|
|
72562
|
-
}
|
|
72563
|
-
|
|
72564
|
-
// About 1.5x faster than the two-arg version of Array#splice()
|
|
72565
|
-
function spliceOne(list, index) {
|
|
72566
|
-
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
|
72567
|
-
list[i] = list[k];
|
|
72568
|
-
}
|
|
72569
|
-
|
|
72570
|
-
list.pop();
|
|
72571
|
-
}
|
|
72572
|
-
|
|
72573
|
-
// This implementation is based heavily on node's url.parse
|
|
72574
|
-
function resolvePathname(to, from) {
|
|
72575
|
-
if (from === undefined) from = '';
|
|
72576
|
-
|
|
72577
|
-
var toParts = (to && to.split('/')) || [];
|
|
72578
|
-
var fromParts = (from && from.split('/')) || [];
|
|
72579
|
-
|
|
72580
|
-
var isToAbs = to && isAbsolute(to);
|
|
72581
|
-
var isFromAbs = from && isAbsolute(from);
|
|
72582
|
-
var mustEndAbs = isToAbs || isFromAbs;
|
|
72583
|
-
|
|
72584
|
-
if (to && isAbsolute(to)) {
|
|
72585
|
-
// to is absolute
|
|
72586
|
-
fromParts = toParts;
|
|
72587
|
-
} else if (toParts.length) {
|
|
72588
|
-
// to is relative, drop the filename
|
|
72589
|
-
fromParts.pop();
|
|
72590
|
-
fromParts = fromParts.concat(toParts);
|
|
72591
|
-
}
|
|
72592
|
-
|
|
72593
|
-
if (!fromParts.length) return '/';
|
|
72594
|
-
|
|
72595
|
-
var hasTrailingSlash;
|
|
72596
|
-
if (fromParts.length) {
|
|
72597
|
-
var last = fromParts[fromParts.length - 1];
|
|
72598
|
-
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
|
72599
|
-
} else {
|
|
72600
|
-
hasTrailingSlash = false;
|
|
72601
|
-
}
|
|
72602
|
-
|
|
72603
|
-
var up = 0;
|
|
72604
|
-
for (var i = fromParts.length; i >= 0; i--) {
|
|
72605
|
-
var part = fromParts[i];
|
|
72606
|
-
|
|
72607
|
-
if (part === '.') {
|
|
72608
|
-
spliceOne(fromParts, i);
|
|
72609
|
-
} else if (part === '..') {
|
|
72610
|
-
spliceOne(fromParts, i);
|
|
72611
|
-
up++;
|
|
72612
|
-
} else if (up) {
|
|
72613
|
-
spliceOne(fromParts, i);
|
|
72614
|
-
up--;
|
|
72615
|
-
}
|
|
72616
|
-
}
|
|
72617
|
-
|
|
72618
|
-
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
|
|
72619
|
-
|
|
72620
|
-
if (
|
|
72621
|
-
mustEndAbs &&
|
|
72622
|
-
fromParts[0] !== '' &&
|
|
72623
|
-
(!fromParts[0] || !isAbsolute(fromParts[0]))
|
|
72624
|
-
)
|
|
72625
|
-
fromParts.unshift('');
|
|
72626
|
-
|
|
72627
|
-
var result = fromParts.join('/');
|
|
72628
|
-
|
|
72629
|
-
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
|
72630
|
-
|
|
72631
|
-
return result;
|
|
72632
|
-
}
|
|
72633
|
-
|
|
72634
|
-
function valueOf(obj) {
|
|
72635
|
-
return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);
|
|
72636
|
-
}
|
|
72637
|
-
|
|
72638
|
-
function valueEqual(a, b) {
|
|
72639
|
-
// Test for strict equality first.
|
|
72640
|
-
if (a === b) return true;
|
|
72641
|
-
|
|
72642
|
-
// Otherwise, if either of them == null they are not equal.
|
|
72643
|
-
if (a == null || b == null) return false;
|
|
72644
|
-
|
|
72645
|
-
if (Array.isArray(a)) {
|
|
72646
|
-
return (
|
|
72647
|
-
Array.isArray(b) &&
|
|
72648
|
-
a.length === b.length &&
|
|
72649
|
-
a.every(function(item, index) {
|
|
72650
|
-
return valueEqual(item, b[index]);
|
|
72651
|
-
})
|
|
72652
|
-
);
|
|
72653
|
-
}
|
|
72654
|
-
|
|
72655
|
-
if (typeof a === 'object' || typeof b === 'object') {
|
|
72656
|
-
var aValue = valueOf(a);
|
|
72657
|
-
var bValue = valueOf(b);
|
|
72658
|
-
|
|
72659
|
-
if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);
|
|
72660
|
-
|
|
72661
|
-
return Object.keys(Object.assign({}, a, b)).every(function(key) {
|
|
72662
|
-
return valueEqual(a[key], b[key]);
|
|
72531
|
+
var handleDelete = function handleDelete() {
|
|
72532
|
+
equals$1(segment.id, segmentId) && handleClearAll();
|
|
72533
|
+
deleteSegment(segment.id, {
|
|
72534
|
+
onSuccess: onClose
|
|
72663
72535
|
});
|
|
72664
|
-
}
|
|
72665
|
-
|
|
72666
|
-
return false;
|
|
72667
|
-
}
|
|
72668
|
-
|
|
72669
|
-
var isProduction$2 = process.env.NODE_ENV === 'production';
|
|
72670
|
-
function warning(condition, message) {
|
|
72671
|
-
if (!isProduction$2) {
|
|
72672
|
-
if (condition) {
|
|
72673
|
-
return;
|
|
72674
|
-
}
|
|
72675
|
-
|
|
72676
|
-
var text = "Warning: " + message;
|
|
72677
|
-
|
|
72678
|
-
if (typeof console !== 'undefined') {
|
|
72679
|
-
console.warn(text);
|
|
72680
|
-
}
|
|
72681
|
-
|
|
72682
|
-
try {
|
|
72683
|
-
throw Error(text);
|
|
72684
|
-
} catch (x) {}
|
|
72685
|
-
}
|
|
72686
|
-
}
|
|
72687
|
-
|
|
72688
|
-
var isProduction$1 = process.env.NODE_ENV === 'production';
|
|
72689
|
-
var prefix$1 = 'Invariant failed';
|
|
72690
|
-
function invariant$1(condition, message) {
|
|
72691
|
-
if (condition) {
|
|
72692
|
-
return;
|
|
72693
|
-
}
|
|
72694
|
-
if (isProduction$1) {
|
|
72695
|
-
throw new Error(prefix$1);
|
|
72696
|
-
}
|
|
72697
|
-
var provided = typeof message === 'function' ? message() : message;
|
|
72698
|
-
var value = provided ? "".concat(prefix$1, ": ").concat(provided) : prefix$1;
|
|
72699
|
-
throw new Error(value);
|
|
72700
|
-
}
|
|
72701
|
-
|
|
72702
|
-
function addLeadingSlash$1(path) {
|
|
72703
|
-
return path.charAt(0) === '/' ? path : '/' + path;
|
|
72704
|
-
}
|
|
72705
|
-
function stripLeadingSlash(path) {
|
|
72706
|
-
return path.charAt(0) === '/' ? path.substr(1) : path;
|
|
72707
|
-
}
|
|
72708
|
-
function hasBasename(path, prefix) {
|
|
72709
|
-
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
|
72710
|
-
}
|
|
72711
|
-
function stripBasename$1(path, prefix) {
|
|
72712
|
-
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
72713
|
-
}
|
|
72714
|
-
function stripTrailingSlash(path) {
|
|
72715
|
-
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
|
72716
|
-
}
|
|
72717
|
-
function parsePath(path) {
|
|
72718
|
-
var pathname = path || '/';
|
|
72719
|
-
var search = '';
|
|
72720
|
-
var hash = '';
|
|
72721
|
-
var hashIndex = pathname.indexOf('#');
|
|
72722
|
-
|
|
72723
|
-
if (hashIndex !== -1) {
|
|
72724
|
-
hash = pathname.substr(hashIndex);
|
|
72725
|
-
pathname = pathname.substr(0, hashIndex);
|
|
72726
|
-
}
|
|
72727
|
-
|
|
72728
|
-
var searchIndex = pathname.indexOf('?');
|
|
72729
|
-
|
|
72730
|
-
if (searchIndex !== -1) {
|
|
72731
|
-
search = pathname.substr(searchIndex);
|
|
72732
|
-
pathname = pathname.substr(0, searchIndex);
|
|
72733
|
-
}
|
|
72734
|
-
|
|
72735
|
-
return {
|
|
72736
|
-
pathname: pathname,
|
|
72737
|
-
search: search === '?' ? '' : search,
|
|
72738
|
-
hash: hash === '#' ? '' : hash
|
|
72739
72536
|
};
|
|
72740
|
-
|
|
72741
|
-
|
|
72742
|
-
|
|
72743
|
-
|
|
72744
|
-
|
|
72745
|
-
|
|
72746
|
-
|
|
72747
|
-
|
|
72748
|
-
|
|
72749
|
-
}
|
|
72750
|
-
|
|
72751
|
-
|
|
72752
|
-
|
|
72753
|
-
|
|
72754
|
-
if (typeof path === 'string') {
|
|
72755
|
-
// Two-arg form: push(path, state)
|
|
72756
|
-
location = parsePath(path);
|
|
72757
|
-
location.state = state;
|
|
72758
|
-
} else {
|
|
72759
|
-
// One-arg form: push(location)
|
|
72760
|
-
location = _extends$1({}, path);
|
|
72761
|
-
if (location.pathname === undefined) location.pathname = '';
|
|
72762
|
-
|
|
72763
|
-
if (location.search) {
|
|
72764
|
-
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
|
72765
|
-
} else {
|
|
72766
|
-
location.search = '';
|
|
72767
|
-
}
|
|
72768
|
-
|
|
72769
|
-
if (location.hash) {
|
|
72770
|
-
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
|
72771
|
-
} else {
|
|
72772
|
-
location.hash = '';
|
|
72773
|
-
}
|
|
72774
|
-
|
|
72775
|
-
if (state !== undefined && location.state === undefined) location.state = state;
|
|
72776
|
-
}
|
|
72777
|
-
|
|
72778
|
-
try {
|
|
72779
|
-
location.pathname = decodeURI(location.pathname);
|
|
72780
|
-
} catch (e) {
|
|
72781
|
-
if (e instanceof URIError) {
|
|
72782
|
-
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
|
72783
|
-
} else {
|
|
72784
|
-
throw e;
|
|
72785
|
-
}
|
|
72786
|
-
}
|
|
72787
|
-
|
|
72788
|
-
if (key) location.key = key;
|
|
72789
|
-
|
|
72790
|
-
if (currentLocation) {
|
|
72791
|
-
// Resolve incomplete/relative pathname relative to current location.
|
|
72792
|
-
if (!location.pathname) {
|
|
72793
|
-
location.pathname = currentLocation.pathname;
|
|
72794
|
-
} else if (location.pathname.charAt(0) !== '/') {
|
|
72795
|
-
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
|
|
72796
|
-
}
|
|
72797
|
-
} else {
|
|
72798
|
-
// When there is no prior location and pathname is empty, set it to /
|
|
72799
|
-
if (!location.pathname) {
|
|
72800
|
-
location.pathname = '/';
|
|
72801
|
-
}
|
|
72802
|
-
}
|
|
72803
|
-
|
|
72804
|
-
return location;
|
|
72805
|
-
}
|
|
72806
|
-
function locationsAreEqual(a, b) {
|
|
72807
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);
|
|
72808
|
-
}
|
|
72809
|
-
|
|
72810
|
-
function createTransitionManager() {
|
|
72811
|
-
var prompt = null;
|
|
72812
|
-
|
|
72813
|
-
function setPrompt(nextPrompt) {
|
|
72814
|
-
process.env.NODE_ENV !== "production" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;
|
|
72815
|
-
prompt = nextPrompt;
|
|
72816
|
-
return function () {
|
|
72817
|
-
if (prompt === nextPrompt) prompt = null;
|
|
72818
|
-
};
|
|
72819
|
-
}
|
|
72820
|
-
|
|
72821
|
-
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
|
72822
|
-
// TODO: If another transition starts while we're still confirming
|
|
72823
|
-
// the previous one, we may end up in a weird state. Figure out the
|
|
72824
|
-
// best way to handle this.
|
|
72825
|
-
if (prompt != null) {
|
|
72826
|
-
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
|
72537
|
+
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
72538
|
+
isOpen: isOpen,
|
|
72539
|
+
isSubmitting: isDeleting,
|
|
72540
|
+
message: t("segments.deleteAlertMessage", {
|
|
72541
|
+
entity: segment.name
|
|
72542
|
+
}),
|
|
72543
|
+
submitButtonLabel: t("common.proceed"),
|
|
72544
|
+
title: t("segments.deleteAlertTitle", {
|
|
72545
|
+
entity: segment.name
|
|
72546
|
+
}),
|
|
72547
|
+
onClose: onClose,
|
|
72548
|
+
onSubmit: handleDelete
|
|
72549
|
+
});
|
|
72550
|
+
};
|
|
72827
72551
|
|
|
72828
|
-
|
|
72829
|
-
|
|
72830
|
-
|
|
72831
|
-
|
|
72832
|
-
|
|
72833
|
-
|
|
72834
|
-
|
|
72835
|
-
|
|
72836
|
-
|
|
72837
|
-
|
|
72552
|
+
var Card = function Card(_ref) {
|
|
72553
|
+
var segment = _ref.segment,
|
|
72554
|
+
columns = _ref.columns;
|
|
72555
|
+
var _useState = useState(false),
|
|
72556
|
+
_useState2 = _slicedToArray$2(_useState, 2),
|
|
72557
|
+
isEditing = _useState2[0],
|
|
72558
|
+
setIsEditing = _useState2[1];
|
|
72559
|
+
var _useState3 = useState(false),
|
|
72560
|
+
_useState4 = _slicedToArray$2(_useState3, 2),
|
|
72561
|
+
isDeleteAlertOpen = _useState4[0],
|
|
72562
|
+
setIsDeleteAlertOpen = _useState4[1];
|
|
72563
|
+
var _useTranslation = useTranslation(),
|
|
72564
|
+
t = _useTranslation.t;
|
|
72565
|
+
var Menu = Dropdown$2.Menu,
|
|
72566
|
+
MenuItem = Dropdown$2.MenuItem;
|
|
72567
|
+
var _useUpdateSegment = useUpdateSegment(),
|
|
72568
|
+
updateSegment = _useUpdateSegment.mutate;
|
|
72569
|
+
var handleRename = function handleRename(values) {
|
|
72570
|
+
return updateSegment({
|
|
72571
|
+
id: segment.id,
|
|
72572
|
+
payload: values
|
|
72573
|
+
}, {
|
|
72574
|
+
onSuccess: function onSuccess() {
|
|
72575
|
+
return setIsEditing(false);
|
|
72838
72576
|
}
|
|
72839
|
-
} else {
|
|
72840
|
-
callback(true);
|
|
72841
|
-
}
|
|
72842
|
-
}
|
|
72843
|
-
|
|
72844
|
-
var listeners = [];
|
|
72845
|
-
|
|
72846
|
-
function appendListener(fn) {
|
|
72847
|
-
var isActive = true;
|
|
72848
|
-
|
|
72849
|
-
function listener() {
|
|
72850
|
-
if (isActive) fn.apply(void 0, arguments);
|
|
72851
|
-
}
|
|
72852
|
-
|
|
72853
|
-
listeners.push(listener);
|
|
72854
|
-
return function () {
|
|
72855
|
-
isActive = false;
|
|
72856
|
-
listeners = listeners.filter(function (item) {
|
|
72857
|
-
return item !== listener;
|
|
72858
|
-
});
|
|
72859
|
-
};
|
|
72860
|
-
}
|
|
72861
|
-
|
|
72862
|
-
function notifyListeners() {
|
|
72863
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
72864
|
-
args[_key] = arguments[_key];
|
|
72865
|
-
}
|
|
72866
|
-
|
|
72867
|
-
listeners.forEach(function (listener) {
|
|
72868
|
-
return listener.apply(void 0, args);
|
|
72869
72577
|
});
|
|
72870
|
-
}
|
|
72871
|
-
|
|
72872
|
-
return {
|
|
72873
|
-
setPrompt: setPrompt,
|
|
72874
|
-
confirmTransitionTo: confirmTransitionTo,
|
|
72875
|
-
appendListener: appendListener,
|
|
72876
|
-
notifyListeners: notifyListeners
|
|
72877
72578
|
};
|
|
72878
|
-
|
|
72879
|
-
|
|
72880
|
-
|
|
72881
|
-
|
|
72882
|
-
|
|
72883
|
-
|
|
72884
|
-
|
|
72885
|
-
|
|
72886
|
-
|
|
72887
|
-
|
|
72888
|
-
|
|
72889
|
-
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
|
72890
|
-
*/
|
|
72891
|
-
|
|
72892
|
-
function supportsHistory() {
|
|
72893
|
-
var ua = window.navigator.userAgent;
|
|
72894
|
-
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
|
72895
|
-
return window.history && 'pushState' in window.history;
|
|
72896
|
-
}
|
|
72897
|
-
/**
|
|
72898
|
-
* Returns true if browser fires popstate on hash change.
|
|
72899
|
-
* IE10 and IE11 do not.
|
|
72900
|
-
*/
|
|
72901
|
-
|
|
72902
|
-
function supportsPopStateOnHashChange() {
|
|
72903
|
-
return window.navigator.userAgent.indexOf('Trident') === -1;
|
|
72904
|
-
}
|
|
72905
|
-
/**
|
|
72906
|
-
* Returns false if using go(n) with hash history causes a full page reload.
|
|
72907
|
-
*/
|
|
72908
|
-
|
|
72909
|
-
function supportsGoWithoutReloadUsingHash() {
|
|
72910
|
-
return window.navigator.userAgent.indexOf('Firefox') === -1;
|
|
72911
|
-
}
|
|
72912
|
-
/**
|
|
72913
|
-
* Returns true if a given popstate event is an extraneous WebKit event.
|
|
72914
|
-
* Accounts for the fact that Chrome on iOS fires real popstate events
|
|
72915
|
-
* containing undefined state when pressing the back button.
|
|
72916
|
-
*/
|
|
72917
|
-
|
|
72918
|
-
function isExtraneousPopstateEvent(event) {
|
|
72919
|
-
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
|
72920
|
-
}
|
|
72921
|
-
|
|
72922
|
-
var PopStateEvent = 'popstate';
|
|
72923
|
-
var HashChangeEvent = 'hashchange';
|
|
72924
|
-
|
|
72925
|
-
function getHistoryState() {
|
|
72926
|
-
try {
|
|
72927
|
-
return window.history.state || {};
|
|
72928
|
-
} catch (e) {
|
|
72929
|
-
// IE 11 sometimes throws when accessing window.history.state
|
|
72930
|
-
// See https://github.com/ReactTraining/history/pull/289
|
|
72931
|
-
return {};
|
|
72932
|
-
}
|
|
72933
|
-
}
|
|
72934
|
-
/**
|
|
72935
|
-
* Creates a history object that uses the HTML5 history API including
|
|
72936
|
-
* pushState, replaceState, and the popstate event.
|
|
72937
|
-
*/
|
|
72938
|
-
|
|
72939
|
-
|
|
72940
|
-
function createBrowserHistory(props) {
|
|
72941
|
-
if (props === void 0) {
|
|
72942
|
-
props = {};
|
|
72943
|
-
}
|
|
72944
|
-
|
|
72945
|
-
!canUseDOM ? process.env.NODE_ENV !== "production" ? invariant$1(false, 'Browser history needs a DOM') : invariant$1(false) : void 0;
|
|
72946
|
-
var globalHistory = window.history;
|
|
72947
|
-
var canUseHistory = supportsHistory();
|
|
72948
|
-
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
|
72949
|
-
var _props = props,
|
|
72950
|
-
_props$forceRefresh = _props.forceRefresh,
|
|
72951
|
-
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
|
72952
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
|
72953
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
|
72954
|
-
_props$keyLength = _props.keyLength,
|
|
72955
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
72956
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash$1(props.basename)) : '';
|
|
72957
|
-
|
|
72958
|
-
function getDOMLocation(historyState) {
|
|
72959
|
-
var _ref = historyState || {},
|
|
72960
|
-
key = _ref.key,
|
|
72961
|
-
state = _ref.state;
|
|
72962
|
-
|
|
72963
|
-
var _window$location = window.location,
|
|
72964
|
-
pathname = _window$location.pathname,
|
|
72965
|
-
search = _window$location.search,
|
|
72966
|
-
hash = _window$location.hash;
|
|
72967
|
-
var path = pathname + search + hash;
|
|
72968
|
-
process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
|
|
72969
|
-
if (basename) path = stripBasename$1(path, basename);
|
|
72970
|
-
return createLocation(path, state, key);
|
|
72971
|
-
}
|
|
72972
|
-
|
|
72973
|
-
function createKey() {
|
|
72974
|
-
return Math.random().toString(36).substr(2, keyLength);
|
|
72975
|
-
}
|
|
72976
|
-
|
|
72977
|
-
var transitionManager = createTransitionManager();
|
|
72978
|
-
|
|
72979
|
-
function setState(nextState) {
|
|
72980
|
-
_extends$1(history, nextState);
|
|
72981
|
-
|
|
72982
|
-
history.length = globalHistory.length;
|
|
72983
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
72984
|
-
}
|
|
72985
|
-
|
|
72986
|
-
function handlePopState(event) {
|
|
72987
|
-
// Ignore extraneous popstate events in WebKit.
|
|
72988
|
-
if (isExtraneousPopstateEvent(event)) return;
|
|
72989
|
-
handlePop(getDOMLocation(event.state));
|
|
72990
|
-
}
|
|
72991
|
-
|
|
72992
|
-
function handleHashChange() {
|
|
72993
|
-
handlePop(getDOMLocation(getHistoryState()));
|
|
72994
|
-
}
|
|
72995
|
-
|
|
72996
|
-
var forceNextPop = false;
|
|
72997
|
-
|
|
72998
|
-
function handlePop(location) {
|
|
72999
|
-
if (forceNextPop) {
|
|
73000
|
-
forceNextPop = false;
|
|
73001
|
-
setState();
|
|
73002
|
-
} else {
|
|
73003
|
-
var action = 'POP';
|
|
73004
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73005
|
-
if (ok) {
|
|
73006
|
-
setState({
|
|
73007
|
-
action: action,
|
|
73008
|
-
location: location
|
|
73009
|
-
});
|
|
73010
|
-
} else {
|
|
73011
|
-
revertPop(location);
|
|
73012
|
-
}
|
|
73013
|
-
});
|
|
73014
|
-
}
|
|
73015
|
-
}
|
|
73016
|
-
|
|
73017
|
-
function revertPop(fromLocation) {
|
|
73018
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
|
73019
|
-
// keeping a list of keys we've seen in sessionStorage.
|
|
73020
|
-
// Instead, we just default to 0 for keys we don't know.
|
|
73021
|
-
|
|
73022
|
-
var toIndex = allKeys.indexOf(toLocation.key);
|
|
73023
|
-
if (toIndex === -1) toIndex = 0;
|
|
73024
|
-
var fromIndex = allKeys.indexOf(fromLocation.key);
|
|
73025
|
-
if (fromIndex === -1) fromIndex = 0;
|
|
73026
|
-
var delta = toIndex - fromIndex;
|
|
73027
|
-
|
|
73028
|
-
if (delta) {
|
|
73029
|
-
forceNextPop = true;
|
|
73030
|
-
go(delta);
|
|
72579
|
+
return /*#__PURE__*/React__default.createElement(Form, {
|
|
72580
|
+
className: "flex w-full items-center justify-between rounded-md border p-2",
|
|
72581
|
+
formProps: {
|
|
72582
|
+
noValidate: true
|
|
72583
|
+
},
|
|
72584
|
+
formikProps: {
|
|
72585
|
+
initialValues: segment,
|
|
72586
|
+
validateOnChange: true,
|
|
72587
|
+
validateOnBlur: true,
|
|
72588
|
+
validationSchema: SEGMENT_VALIDATION_SCHEMA,
|
|
72589
|
+
onSubmit: handleRename
|
|
73031
72590
|
}
|
|
73032
|
-
}
|
|
73033
|
-
|
|
73034
|
-
|
|
73035
|
-
|
|
73036
|
-
|
|
73037
|
-
|
|
73038
|
-
|
|
73039
|
-
|
|
73040
|
-
|
|
73041
|
-
|
|
73042
|
-
|
|
73043
|
-
|
|
73044
|
-
|
|
73045
|
-
|
|
73046
|
-
|
|
73047
|
-
var href = createHref(location);
|
|
73048
|
-
var key = location.key,
|
|
73049
|
-
state = location.state;
|
|
73050
|
-
|
|
73051
|
-
if (canUseHistory) {
|
|
73052
|
-
globalHistory.pushState({
|
|
73053
|
-
key: key,
|
|
73054
|
-
state: state
|
|
73055
|
-
}, null, href);
|
|
73056
|
-
|
|
73057
|
-
if (forceRefresh) {
|
|
73058
|
-
window.location.href = href;
|
|
73059
|
-
} else {
|
|
73060
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
73061
|
-
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
|
73062
|
-
nextKeys.push(location.key);
|
|
73063
|
-
allKeys = nextKeys;
|
|
73064
|
-
setState({
|
|
73065
|
-
action: action,
|
|
73066
|
-
location: location
|
|
73067
|
-
});
|
|
72591
|
+
}, function (_ref2) {
|
|
72592
|
+
var resetForm = _ref2.resetForm;
|
|
72593
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(FormikInput, {
|
|
72594
|
+
autoFocus: true,
|
|
72595
|
+
nakedInput: true,
|
|
72596
|
+
name: "name",
|
|
72597
|
+
placeholder: t("segments.name")
|
|
72598
|
+
}), /*#__PURE__*/React__default.createElement(ActionBlock, {
|
|
72599
|
+
cancelButtonProps: {
|
|
72600
|
+
icon: Close,
|
|
72601
|
+
label: "",
|
|
72602
|
+
style: "text",
|
|
72603
|
+
disabled: !isEditing,
|
|
72604
|
+
onClick: function onClick() {
|
|
72605
|
+
return setIsEditing(false);
|
|
73068
72606
|
}
|
|
73069
|
-
}
|
|
73070
|
-
|
|
73071
|
-
|
|
72607
|
+
},
|
|
72608
|
+
submitButtonProps: {
|
|
72609
|
+
icon: Check,
|
|
72610
|
+
label: "",
|
|
72611
|
+
style: "text"
|
|
73072
72612
|
}
|
|
73073
|
-
})
|
|
73074
|
-
|
|
73075
|
-
|
|
73076
|
-
|
|
73077
|
-
|
|
73078
|
-
|
|
73079
|
-
|
|
73080
|
-
|
|
73081
|
-
|
|
73082
|
-
|
|
73083
|
-
var key = location.key,
|
|
73084
|
-
state = location.state;
|
|
73085
|
-
|
|
73086
|
-
if (canUseHistory) {
|
|
73087
|
-
globalHistory.replaceState({
|
|
73088
|
-
key: key,
|
|
73089
|
-
state: state
|
|
73090
|
-
}, null, href);
|
|
73091
|
-
|
|
73092
|
-
if (forceRefresh) {
|
|
73093
|
-
window.location.replace(href);
|
|
73094
|
-
} else {
|
|
73095
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
73096
|
-
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
|
73097
|
-
setState({
|
|
73098
|
-
action: action,
|
|
73099
|
-
location: location
|
|
73100
|
-
});
|
|
73101
|
-
}
|
|
73102
|
-
} else {
|
|
73103
|
-
process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
|
|
73104
|
-
window.location.replace(href);
|
|
72613
|
+
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
72614
|
+
style: "body2"
|
|
72615
|
+
}, segment.name), /*#__PURE__*/React__default.createElement(Dropdown$2, {
|
|
72616
|
+
buttonStyle: "text",
|
|
72617
|
+
icon: MenuHorizontal,
|
|
72618
|
+
size: "small"
|
|
72619
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
72620
|
+
onClick: function onClick() {
|
|
72621
|
+
setIsEditing(true);
|
|
72622
|
+
resetForm();
|
|
73105
72623
|
}
|
|
73106
|
-
})
|
|
73107
|
-
|
|
73108
|
-
|
|
73109
|
-
function go(n) {
|
|
73110
|
-
globalHistory.go(n);
|
|
73111
|
-
}
|
|
73112
|
-
|
|
73113
|
-
function goBack() {
|
|
73114
|
-
go(-1);
|
|
73115
|
-
}
|
|
73116
|
-
|
|
73117
|
-
function goForward() {
|
|
73118
|
-
go(1);
|
|
73119
|
-
}
|
|
73120
|
-
|
|
73121
|
-
var listenerCount = 0;
|
|
73122
|
-
|
|
73123
|
-
function checkDOMListeners(delta) {
|
|
73124
|
-
listenerCount += delta;
|
|
73125
|
-
|
|
73126
|
-
if (listenerCount === 1 && delta === 1) {
|
|
73127
|
-
window.addEventListener(PopStateEvent, handlePopState);
|
|
73128
|
-
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
|
73129
|
-
} else if (listenerCount === 0) {
|
|
73130
|
-
window.removeEventListener(PopStateEvent, handlePopState);
|
|
73131
|
-
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
|
73132
|
-
}
|
|
73133
|
-
}
|
|
73134
|
-
|
|
73135
|
-
var isBlocked = false;
|
|
73136
|
-
|
|
73137
|
-
function block(prompt) {
|
|
73138
|
-
if (prompt === void 0) {
|
|
73139
|
-
prompt = false;
|
|
73140
|
-
}
|
|
73141
|
-
|
|
73142
|
-
var unblock = transitionManager.setPrompt(prompt);
|
|
73143
|
-
|
|
73144
|
-
if (!isBlocked) {
|
|
73145
|
-
checkDOMListeners(1);
|
|
73146
|
-
isBlocked = true;
|
|
73147
|
-
}
|
|
73148
|
-
|
|
73149
|
-
return function () {
|
|
73150
|
-
if (isBlocked) {
|
|
73151
|
-
isBlocked = false;
|
|
73152
|
-
checkDOMListeners(-1);
|
|
72624
|
+
}, t("common.rename")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
72625
|
+
onClick: function onClick() {
|
|
72626
|
+
return setIsDeleteAlertOpen(true);
|
|
73153
72627
|
}
|
|
73154
|
-
|
|
73155
|
-
|
|
73156
|
-
|
|
73157
|
-
|
|
73158
|
-
|
|
73159
|
-
|
|
73160
|
-
|
|
73161
|
-
|
|
73162
|
-
|
|
73163
|
-
checkDOMListeners(-1);
|
|
73164
|
-
unlisten();
|
|
73165
|
-
};
|
|
73166
|
-
}
|
|
73167
|
-
|
|
73168
|
-
var history = {
|
|
73169
|
-
length: globalHistory.length,
|
|
73170
|
-
action: 'POP',
|
|
73171
|
-
location: initialLocation,
|
|
73172
|
-
createHref: createHref,
|
|
73173
|
-
push: push,
|
|
73174
|
-
replace: replace,
|
|
73175
|
-
go: go,
|
|
73176
|
-
goBack: goBack,
|
|
73177
|
-
goForward: goForward,
|
|
73178
|
-
block: block,
|
|
73179
|
-
listen: listen
|
|
73180
|
-
};
|
|
73181
|
-
return history;
|
|
73182
|
-
}
|
|
73183
|
-
|
|
73184
|
-
var HashChangeEvent$1 = 'hashchange';
|
|
73185
|
-
var HashPathCoders = {
|
|
73186
|
-
hashbang: {
|
|
73187
|
-
encodePath: function encodePath(path) {
|
|
73188
|
-
return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
|
|
73189
|
-
},
|
|
73190
|
-
decodePath: function decodePath(path) {
|
|
73191
|
-
return path.charAt(0) === '!' ? path.substr(1) : path;
|
|
73192
|
-
}
|
|
73193
|
-
},
|
|
73194
|
-
noslash: {
|
|
73195
|
-
encodePath: stripLeadingSlash,
|
|
73196
|
-
decodePath: addLeadingSlash$1
|
|
73197
|
-
},
|
|
73198
|
-
slash: {
|
|
73199
|
-
encodePath: addLeadingSlash$1,
|
|
73200
|
-
decodePath: addLeadingSlash$1
|
|
73201
|
-
}
|
|
72628
|
+
}, t("common.delete"))))), /*#__PURE__*/React__default.createElement(DeleteAlert, {
|
|
72629
|
+
columns: columns,
|
|
72630
|
+
isOpen: isDeleteAlertOpen,
|
|
72631
|
+
segment: segment,
|
|
72632
|
+
onClose: function onClose() {
|
|
72633
|
+
return setIsDeleteAlertOpen(false);
|
|
72634
|
+
}
|
|
72635
|
+
}));
|
|
72636
|
+
});
|
|
73202
72637
|
};
|
|
73203
|
-
|
|
73204
|
-
function stripHash(url) {
|
|
73205
|
-
var hashIndex = url.indexOf('#');
|
|
73206
|
-
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
73207
|
-
}
|
|
73208
|
-
|
|
73209
|
-
function getHashPath() {
|
|
73210
|
-
// We can't use window.location.hash here because it's not
|
|
73211
|
-
// consistent across browsers - Firefox will pre-decode it!
|
|
73212
|
-
var href = window.location.href;
|
|
73213
|
-
var hashIndex = href.indexOf('#');
|
|
73214
|
-
return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
|
|
73215
|
-
}
|
|
73216
|
-
|
|
73217
|
-
function pushHashPath(path) {
|
|
73218
|
-
window.location.hash = path;
|
|
73219
|
-
}
|
|
73220
|
-
|
|
73221
|
-
function replaceHashPath(path) {
|
|
73222
|
-
window.location.replace(stripHash(window.location.href) + '#' + path);
|
|
73223
|
-
}
|
|
73224
|
-
|
|
73225
|
-
function createHashHistory(props) {
|
|
73226
|
-
if (props === void 0) {
|
|
73227
|
-
props = {};
|
|
73228
|
-
}
|
|
73229
|
-
|
|
73230
|
-
!canUseDOM ? process.env.NODE_ENV !== "production" ? invariant$1(false, 'Hash history needs a DOM') : invariant$1(false) : void 0;
|
|
73231
|
-
var globalHistory = window.history;
|
|
73232
|
-
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
|
73233
|
-
var _props = props,
|
|
73234
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
|
73235
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
|
73236
|
-
_props$hashType = _props.hashType,
|
|
73237
|
-
hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
|
|
73238
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash$1(props.basename)) : '';
|
|
73239
|
-
var _HashPathCoders$hashT = HashPathCoders[hashType],
|
|
73240
|
-
encodePath = _HashPathCoders$hashT.encodePath,
|
|
73241
|
-
decodePath = _HashPathCoders$hashT.decodePath;
|
|
73242
|
-
|
|
73243
|
-
function getDOMLocation() {
|
|
73244
|
-
var path = decodePath(getHashPath());
|
|
73245
|
-
process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
|
|
73246
|
-
if (basename) path = stripBasename$1(path, basename);
|
|
73247
|
-
return createLocation(path);
|
|
73248
|
-
}
|
|
73249
|
-
|
|
73250
|
-
var transitionManager = createTransitionManager();
|
|
73251
|
-
|
|
73252
|
-
function setState(nextState) {
|
|
73253
|
-
_extends$1(history, nextState);
|
|
73254
|
-
|
|
73255
|
-
history.length = globalHistory.length;
|
|
73256
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
73257
|
-
}
|
|
73258
|
-
|
|
73259
|
-
var forceNextPop = false;
|
|
73260
|
-
var ignorePath = null;
|
|
73261
|
-
|
|
73262
|
-
function locationsAreEqual$$1(a, b) {
|
|
73263
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
|
|
73264
|
-
}
|
|
73265
|
-
|
|
73266
|
-
function handleHashChange() {
|
|
73267
|
-
var path = getHashPath();
|
|
73268
|
-
var encodedPath = encodePath(path);
|
|
73269
|
-
|
|
73270
|
-
if (path !== encodedPath) {
|
|
73271
|
-
// Ensure we always have a properly-encoded hash.
|
|
73272
|
-
replaceHashPath(encodedPath);
|
|
73273
|
-
} else {
|
|
73274
|
-
var location = getDOMLocation();
|
|
73275
|
-
var prevLocation = history.location;
|
|
73276
|
-
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
|
|
73277
|
-
|
|
73278
|
-
if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
|
|
73279
|
-
|
|
73280
|
-
ignorePath = null;
|
|
73281
|
-
handlePop(location);
|
|
73282
|
-
}
|
|
73283
|
-
}
|
|
73284
|
-
|
|
73285
|
-
function handlePop(location) {
|
|
73286
|
-
if (forceNextPop) {
|
|
73287
|
-
forceNextPop = false;
|
|
73288
|
-
setState();
|
|
73289
|
-
} else {
|
|
73290
|
-
var action = 'POP';
|
|
73291
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73292
|
-
if (ok) {
|
|
73293
|
-
setState({
|
|
73294
|
-
action: action,
|
|
73295
|
-
location: location
|
|
73296
|
-
});
|
|
73297
|
-
} else {
|
|
73298
|
-
revertPop(location);
|
|
73299
|
-
}
|
|
73300
|
-
});
|
|
73301
|
-
}
|
|
73302
|
-
}
|
|
73303
|
-
|
|
73304
|
-
function revertPop(fromLocation) {
|
|
73305
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
|
73306
|
-
// keeping a list of paths we've seen in sessionStorage.
|
|
73307
|
-
// Instead, we just default to 0 for paths we don't know.
|
|
73308
|
-
|
|
73309
|
-
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
|
73310
|
-
if (toIndex === -1) toIndex = 0;
|
|
73311
|
-
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
|
73312
|
-
if (fromIndex === -1) fromIndex = 0;
|
|
73313
|
-
var delta = toIndex - fromIndex;
|
|
73314
|
-
|
|
73315
|
-
if (delta) {
|
|
73316
|
-
forceNextPop = true;
|
|
73317
|
-
go(delta);
|
|
73318
|
-
}
|
|
73319
|
-
} // Ensure the hash is encoded properly before doing anything else.
|
|
73320
|
-
|
|
73321
|
-
|
|
73322
|
-
var path = getHashPath();
|
|
73323
|
-
var encodedPath = encodePath(path);
|
|
73324
|
-
if (path !== encodedPath) replaceHashPath(encodedPath);
|
|
73325
|
-
var initialLocation = getDOMLocation();
|
|
73326
|
-
var allPaths = [createPath(initialLocation)]; // Public interface
|
|
73327
|
-
|
|
73328
|
-
function createHref(location) {
|
|
73329
|
-
var baseTag = document.querySelector('base');
|
|
73330
|
-
var href = '';
|
|
73331
|
-
|
|
73332
|
-
if (baseTag && baseTag.getAttribute('href')) {
|
|
73333
|
-
href = stripHash(window.location.href);
|
|
73334
|
-
}
|
|
73335
|
-
|
|
73336
|
-
return href + '#' + encodePath(basename + createPath(location));
|
|
73337
|
-
}
|
|
73338
|
-
|
|
73339
|
-
function push(path, state) {
|
|
73340
|
-
process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;
|
|
73341
|
-
var action = 'PUSH';
|
|
73342
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
|
73343
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73344
|
-
if (!ok) return;
|
|
73345
|
-
var path = createPath(location);
|
|
73346
|
-
var encodedPath = encodePath(basename + path);
|
|
73347
|
-
var hashChanged = getHashPath() !== encodedPath;
|
|
73348
|
-
|
|
73349
|
-
if (hashChanged) {
|
|
73350
|
-
// We cannot tell if a hashchange was caused by a PUSH, so we'd
|
|
73351
|
-
// rather setState here and ignore the hashchange. The caveat here
|
|
73352
|
-
// is that other hash histories in the page will consider it a POP.
|
|
73353
|
-
ignorePath = path;
|
|
73354
|
-
pushHashPath(encodedPath);
|
|
73355
|
-
var prevIndex = allPaths.lastIndexOf(createPath(history.location));
|
|
73356
|
-
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
|
73357
|
-
nextPaths.push(path);
|
|
73358
|
-
allPaths = nextPaths;
|
|
73359
|
-
setState({
|
|
73360
|
-
action: action,
|
|
73361
|
-
location: location
|
|
73362
|
-
});
|
|
73363
|
-
} else {
|
|
73364
|
-
process.env.NODE_ENV !== "production" ? warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;
|
|
73365
|
-
setState();
|
|
73366
|
-
}
|
|
73367
|
-
});
|
|
73368
|
-
}
|
|
73369
|
-
|
|
73370
|
-
function replace(path, state) {
|
|
73371
|
-
process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;
|
|
73372
|
-
var action = 'REPLACE';
|
|
73373
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
|
73374
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73375
|
-
if (!ok) return;
|
|
73376
|
-
var path = createPath(location);
|
|
73377
|
-
var encodedPath = encodePath(basename + path);
|
|
73378
|
-
var hashChanged = getHashPath() !== encodedPath;
|
|
73379
|
-
|
|
73380
|
-
if (hashChanged) {
|
|
73381
|
-
// We cannot tell if a hashchange was caused by a REPLACE, so we'd
|
|
73382
|
-
// rather setState here and ignore the hashchange. The caveat here
|
|
73383
|
-
// is that other hash histories in the page will consider it a POP.
|
|
73384
|
-
ignorePath = path;
|
|
73385
|
-
replaceHashPath(encodedPath);
|
|
73386
|
-
}
|
|
73387
|
-
|
|
73388
|
-
var prevIndex = allPaths.indexOf(createPath(history.location));
|
|
73389
|
-
if (prevIndex !== -1) allPaths[prevIndex] = path;
|
|
73390
|
-
setState({
|
|
73391
|
-
action: action,
|
|
73392
|
-
location: location
|
|
73393
|
-
});
|
|
73394
|
-
});
|
|
73395
|
-
}
|
|
73396
|
-
|
|
73397
|
-
function go(n) {
|
|
73398
|
-
process.env.NODE_ENV !== "production" ? warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;
|
|
73399
|
-
globalHistory.go(n);
|
|
73400
|
-
}
|
|
73401
|
-
|
|
73402
|
-
function goBack() {
|
|
73403
|
-
go(-1);
|
|
73404
|
-
}
|
|
73405
|
-
|
|
73406
|
-
function goForward() {
|
|
73407
|
-
go(1);
|
|
73408
|
-
}
|
|
73409
|
-
|
|
73410
|
-
var listenerCount = 0;
|
|
73411
|
-
|
|
73412
|
-
function checkDOMListeners(delta) {
|
|
73413
|
-
listenerCount += delta;
|
|
73414
|
-
|
|
73415
|
-
if (listenerCount === 1 && delta === 1) {
|
|
73416
|
-
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
|
73417
|
-
} else if (listenerCount === 0) {
|
|
73418
|
-
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
|
73419
|
-
}
|
|
73420
|
-
}
|
|
73421
|
-
|
|
73422
|
-
var isBlocked = false;
|
|
73423
|
-
|
|
73424
|
-
function block(prompt) {
|
|
73425
|
-
if (prompt === void 0) {
|
|
73426
|
-
prompt = false;
|
|
73427
|
-
}
|
|
73428
|
-
|
|
73429
|
-
var unblock = transitionManager.setPrompt(prompt);
|
|
73430
|
-
|
|
73431
|
-
if (!isBlocked) {
|
|
73432
|
-
checkDOMListeners(1);
|
|
73433
|
-
isBlocked = true;
|
|
73434
|
-
}
|
|
73435
|
-
|
|
73436
|
-
return function () {
|
|
73437
|
-
if (isBlocked) {
|
|
73438
|
-
isBlocked = false;
|
|
73439
|
-
checkDOMListeners(-1);
|
|
73440
|
-
}
|
|
73441
|
-
|
|
73442
|
-
return unblock();
|
|
73443
|
-
};
|
|
73444
|
-
}
|
|
73445
|
-
|
|
73446
|
-
function listen(listener) {
|
|
73447
|
-
var unlisten = transitionManager.appendListener(listener);
|
|
73448
|
-
checkDOMListeners(1);
|
|
73449
|
-
return function () {
|
|
73450
|
-
checkDOMListeners(-1);
|
|
73451
|
-
unlisten();
|
|
73452
|
-
};
|
|
73453
|
-
}
|
|
73454
|
-
|
|
73455
|
-
var history = {
|
|
73456
|
-
length: globalHistory.length,
|
|
73457
|
-
action: 'POP',
|
|
73458
|
-
location: initialLocation,
|
|
73459
|
-
createHref: createHref,
|
|
73460
|
-
push: push,
|
|
73461
|
-
replace: replace,
|
|
73462
|
-
go: go,
|
|
73463
|
-
goBack: goBack,
|
|
73464
|
-
goForward: goForward,
|
|
73465
|
-
block: block,
|
|
73466
|
-
listen: listen
|
|
73467
|
-
};
|
|
73468
|
-
return history;
|
|
73469
|
-
}
|
|
73470
|
-
|
|
73471
|
-
function clamp(n, lowerBound, upperBound) {
|
|
73472
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
73473
|
-
}
|
|
73474
|
-
/**
|
|
73475
|
-
* Creates a history object that stores locations in memory.
|
|
73476
|
-
*/
|
|
73477
|
-
|
|
73478
|
-
|
|
73479
|
-
function createMemoryHistory(props) {
|
|
73480
|
-
if (props === void 0) {
|
|
73481
|
-
props = {};
|
|
73482
|
-
}
|
|
73483
|
-
|
|
73484
|
-
var _props = props,
|
|
73485
|
-
getUserConfirmation = _props.getUserConfirmation,
|
|
73486
|
-
_props$initialEntries = _props.initialEntries,
|
|
73487
|
-
initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
|
|
73488
|
-
_props$initialIndex = _props.initialIndex,
|
|
73489
|
-
initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
|
|
73490
|
-
_props$keyLength = _props.keyLength,
|
|
73491
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
73492
|
-
var transitionManager = createTransitionManager();
|
|
73493
|
-
|
|
73494
|
-
function setState(nextState) {
|
|
73495
|
-
_extends$1(history, nextState);
|
|
73496
|
-
|
|
73497
|
-
history.length = history.entries.length;
|
|
73498
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
73499
|
-
}
|
|
73500
|
-
|
|
73501
|
-
function createKey() {
|
|
73502
|
-
return Math.random().toString(36).substr(2, keyLength);
|
|
73503
|
-
}
|
|
73504
|
-
|
|
73505
|
-
var index = clamp(initialIndex, 0, initialEntries.length - 1);
|
|
73506
|
-
var entries = initialEntries.map(function (entry) {
|
|
73507
|
-
return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
|
|
73508
|
-
}); // Public interface
|
|
73509
|
-
|
|
73510
|
-
var createHref = createPath;
|
|
73511
|
-
|
|
73512
|
-
function push(path, state) {
|
|
73513
|
-
process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
|
73514
|
-
var action = 'PUSH';
|
|
73515
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
73516
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73517
|
-
if (!ok) return;
|
|
73518
|
-
var prevIndex = history.index;
|
|
73519
|
-
var nextIndex = prevIndex + 1;
|
|
73520
|
-
var nextEntries = history.entries.slice(0);
|
|
73521
|
-
|
|
73522
|
-
if (nextEntries.length > nextIndex) {
|
|
73523
|
-
nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
|
|
73524
|
-
} else {
|
|
73525
|
-
nextEntries.push(location);
|
|
73526
|
-
}
|
|
73527
|
-
|
|
73528
|
-
setState({
|
|
73529
|
-
action: action,
|
|
73530
|
-
location: location,
|
|
73531
|
-
index: nextIndex,
|
|
73532
|
-
entries: nextEntries
|
|
73533
|
-
});
|
|
73534
|
-
});
|
|
73535
|
-
}
|
|
73536
|
-
|
|
73537
|
-
function replace(path, state) {
|
|
73538
|
-
process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
|
73539
|
-
var action = 'REPLACE';
|
|
73540
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
73541
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73542
|
-
if (!ok) return;
|
|
73543
|
-
history.entries[history.index] = location;
|
|
73544
|
-
setState({
|
|
73545
|
-
action: action,
|
|
73546
|
-
location: location
|
|
73547
|
-
});
|
|
73548
|
-
});
|
|
73549
|
-
}
|
|
73550
|
-
|
|
73551
|
-
function go(n) {
|
|
73552
|
-
var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
|
|
73553
|
-
var action = 'POP';
|
|
73554
|
-
var location = history.entries[nextIndex];
|
|
73555
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
73556
|
-
if (ok) {
|
|
73557
|
-
setState({
|
|
73558
|
-
action: action,
|
|
73559
|
-
location: location,
|
|
73560
|
-
index: nextIndex
|
|
73561
|
-
});
|
|
73562
|
-
} else {
|
|
73563
|
-
// Mimic the behavior of DOM histories by
|
|
73564
|
-
// causing a render after a cancelled POP.
|
|
73565
|
-
setState();
|
|
73566
|
-
}
|
|
73567
|
-
});
|
|
73568
|
-
}
|
|
73569
|
-
|
|
73570
|
-
function goBack() {
|
|
73571
|
-
go(-1);
|
|
73572
|
-
}
|
|
73573
|
-
|
|
73574
|
-
function goForward() {
|
|
73575
|
-
go(1);
|
|
73576
|
-
}
|
|
73577
|
-
|
|
73578
|
-
function canGo(n) {
|
|
73579
|
-
var nextIndex = history.index + n;
|
|
73580
|
-
return nextIndex >= 0 && nextIndex < history.entries.length;
|
|
73581
|
-
}
|
|
73582
|
-
|
|
73583
|
-
function block(prompt) {
|
|
73584
|
-
if (prompt === void 0) {
|
|
73585
|
-
prompt = false;
|
|
73586
|
-
}
|
|
73587
|
-
|
|
73588
|
-
return transitionManager.setPrompt(prompt);
|
|
73589
|
-
}
|
|
73590
|
-
|
|
73591
|
-
function listen(listener) {
|
|
73592
|
-
return transitionManager.appendListener(listener);
|
|
73593
|
-
}
|
|
73594
|
-
|
|
73595
|
-
var history = {
|
|
73596
|
-
length: entries.length,
|
|
73597
|
-
action: 'POP',
|
|
73598
|
-
location: entries[index],
|
|
73599
|
-
index: index,
|
|
73600
|
-
entries: entries,
|
|
73601
|
-
createHref: createHref,
|
|
73602
|
-
push: push,
|
|
73603
|
-
replace: replace,
|
|
73604
|
-
go: go,
|
|
73605
|
-
goBack: goBack,
|
|
73606
|
-
goForward: goForward,
|
|
73607
|
-
canGo: canGo,
|
|
73608
|
-
block: block,
|
|
73609
|
-
listen: listen
|
|
73610
|
-
};
|
|
73611
|
-
return history;
|
|
73612
|
-
}
|
|
73613
|
-
|
|
73614
|
-
var history = /*#__PURE__*/Object.freeze({
|
|
73615
|
-
__proto__: null,
|
|
73616
|
-
createBrowserHistory: createBrowserHistory,
|
|
73617
|
-
createHashHistory: createHashHistory,
|
|
73618
|
-
createMemoryHistory: createMemoryHistory,
|
|
73619
|
-
createLocation: createLocation,
|
|
73620
|
-
locationsAreEqual: locationsAreEqual,
|
|
73621
|
-
parsePath: parsePath,
|
|
73622
|
-
createPath: createPath
|
|
73623
|
-
});
|
|
73624
|
-
|
|
73625
|
-
function _setPrototypeOf(o, p) {
|
|
73626
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
73627
|
-
o.__proto__ = p;
|
|
73628
|
-
return o;
|
|
73629
|
-
};
|
|
73630
|
-
return _setPrototypeOf(o, p);
|
|
73631
|
-
}
|
|
73632
|
-
|
|
73633
|
-
function _inheritsLoose(subClass, superClass) {
|
|
73634
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
73635
|
-
subClass.prototype.constructor = subClass;
|
|
73636
|
-
_setPrototypeOf(subClass, superClass);
|
|
73637
|
-
}
|
|
73638
|
-
|
|
73639
|
-
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
|
73640
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
|
|
73641
|
-
|
|
73642
|
-
function getUniqueId() {
|
|
73643
|
-
var key = '__global_unique_id__';
|
|
73644
|
-
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
|
73645
|
-
}
|
|
73646
|
-
|
|
73647
|
-
function objectIs(x, y) {
|
|
73648
|
-
if (x === y) {
|
|
73649
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
73650
|
-
} else {
|
|
73651
|
-
return x !== x && y !== y;
|
|
73652
|
-
}
|
|
73653
|
-
}
|
|
73654
|
-
|
|
73655
|
-
function createEventEmitter(value) {
|
|
73656
|
-
var handlers = [];
|
|
73657
|
-
return {
|
|
73658
|
-
on: function on(handler) {
|
|
73659
|
-
handlers.push(handler);
|
|
73660
|
-
},
|
|
73661
|
-
off: function off(handler) {
|
|
73662
|
-
handlers = handlers.filter(function (h) {
|
|
73663
|
-
return h !== handler;
|
|
73664
|
-
});
|
|
73665
|
-
},
|
|
73666
|
-
get: function get() {
|
|
73667
|
-
return value;
|
|
73668
|
-
},
|
|
73669
|
-
set: function set(newValue, changedBits) {
|
|
73670
|
-
value = newValue;
|
|
73671
|
-
handlers.forEach(function (handler) {
|
|
73672
|
-
return handler(value, changedBits);
|
|
73673
|
-
});
|
|
73674
|
-
}
|
|
73675
|
-
};
|
|
73676
|
-
}
|
|
73677
|
-
|
|
73678
|
-
function onlyChild(children) {
|
|
73679
|
-
return Array.isArray(children) ? children[0] : children;
|
|
73680
|
-
}
|
|
73681
|
-
|
|
73682
|
-
function createReactContext(defaultValue, calculateChangedBits) {
|
|
73683
|
-
var _Provider$childContex, _Consumer$contextType;
|
|
73684
|
-
|
|
73685
|
-
var contextProp = '__create-react-context-' + getUniqueId() + '__';
|
|
73686
|
-
|
|
73687
|
-
var Provider = /*#__PURE__*/function (_Component) {
|
|
73688
|
-
_inheritsLoose(Provider, _Component);
|
|
73689
|
-
|
|
73690
|
-
function Provider() {
|
|
73691
|
-
var _this;
|
|
73692
|
-
|
|
73693
|
-
_this = _Component.apply(this, arguments) || this;
|
|
73694
|
-
_this.emitter = createEventEmitter(_this.props.value);
|
|
73695
|
-
return _this;
|
|
73696
|
-
}
|
|
73697
|
-
|
|
73698
|
-
var _proto = Provider.prototype;
|
|
73699
|
-
|
|
73700
|
-
_proto.getChildContext = function getChildContext() {
|
|
73701
|
-
var _ref;
|
|
73702
|
-
|
|
73703
|
-
return _ref = {}, _ref[contextProp] = this.emitter, _ref;
|
|
73704
|
-
};
|
|
73705
|
-
|
|
73706
|
-
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
73707
|
-
if (this.props.value !== nextProps.value) {
|
|
73708
|
-
var oldValue = this.props.value;
|
|
73709
|
-
var newValue = nextProps.value;
|
|
73710
|
-
var changedBits;
|
|
73711
|
-
|
|
73712
|
-
if (objectIs(oldValue, newValue)) {
|
|
73713
|
-
changedBits = 0;
|
|
73714
|
-
} else {
|
|
73715
|
-
changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
|
73716
|
-
|
|
73717
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
73718
|
-
warning((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: ' + changedBits);
|
|
73719
|
-
}
|
|
73720
|
-
|
|
73721
|
-
changedBits |= 0;
|
|
73722
|
-
|
|
73723
|
-
if (changedBits !== 0) {
|
|
73724
|
-
this.emitter.set(nextProps.value, changedBits);
|
|
73725
|
-
}
|
|
73726
|
-
}
|
|
73727
|
-
}
|
|
73728
|
-
};
|
|
73729
|
-
|
|
73730
|
-
_proto.render = function render() {
|
|
73731
|
-
return this.props.children;
|
|
73732
|
-
};
|
|
73733
|
-
|
|
73734
|
-
return Provider;
|
|
73735
|
-
}(Component);
|
|
73736
|
-
|
|
73737
|
-
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = propTypes$1.exports.object.isRequired, _Provider$childContex);
|
|
73738
|
-
|
|
73739
|
-
var Consumer = /*#__PURE__*/function (_Component2) {
|
|
73740
|
-
_inheritsLoose(Consumer, _Component2);
|
|
73741
|
-
|
|
73742
|
-
function Consumer() {
|
|
73743
|
-
var _this2;
|
|
73744
|
-
|
|
73745
|
-
_this2 = _Component2.apply(this, arguments) || this;
|
|
73746
|
-
_this2.state = {
|
|
73747
|
-
value: _this2.getValue()
|
|
73748
|
-
};
|
|
73749
|
-
|
|
73750
|
-
_this2.onUpdate = function (newValue, changedBits) {
|
|
73751
|
-
var observedBits = _this2.observedBits | 0;
|
|
73752
|
-
|
|
73753
|
-
if ((observedBits & changedBits) !== 0) {
|
|
73754
|
-
_this2.setState({
|
|
73755
|
-
value: _this2.getValue()
|
|
73756
|
-
});
|
|
73757
|
-
}
|
|
73758
|
-
};
|
|
73759
|
-
|
|
73760
|
-
return _this2;
|
|
73761
|
-
}
|
|
73762
|
-
|
|
73763
|
-
var _proto2 = Consumer.prototype;
|
|
73764
|
-
|
|
73765
|
-
_proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
73766
|
-
var observedBits = nextProps.observedBits;
|
|
73767
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
|
73768
|
-
};
|
|
73769
|
-
|
|
73770
|
-
_proto2.componentDidMount = function componentDidMount() {
|
|
73771
|
-
if (this.context[contextProp]) {
|
|
73772
|
-
this.context[contextProp].on(this.onUpdate);
|
|
73773
|
-
}
|
|
73774
|
-
|
|
73775
|
-
var observedBits = this.props.observedBits;
|
|
73776
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
|
73777
|
-
};
|
|
73778
|
-
|
|
73779
|
-
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
73780
|
-
if (this.context[contextProp]) {
|
|
73781
|
-
this.context[contextProp].off(this.onUpdate);
|
|
73782
|
-
}
|
|
73783
|
-
};
|
|
73784
|
-
|
|
73785
|
-
_proto2.getValue = function getValue() {
|
|
73786
|
-
if (this.context[contextProp]) {
|
|
73787
|
-
return this.context[contextProp].get();
|
|
73788
|
-
} else {
|
|
73789
|
-
return defaultValue;
|
|
73790
|
-
}
|
|
73791
|
-
};
|
|
73792
|
-
|
|
73793
|
-
_proto2.render = function render() {
|
|
73794
|
-
return onlyChild(this.props.children)(this.state.value);
|
|
73795
|
-
};
|
|
73796
|
-
|
|
73797
|
-
return Consumer;
|
|
73798
|
-
}(Component);
|
|
73799
|
-
|
|
73800
|
-
Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = propTypes$1.exports.object, _Consumer$contextType);
|
|
73801
|
-
return {
|
|
73802
|
-
Provider: Provider,
|
|
73803
|
-
Consumer: Consumer
|
|
73804
|
-
};
|
|
73805
|
-
}
|
|
73806
|
-
|
|
73807
|
-
var index$1 = React__default.createContext || createReactContext;
|
|
73808
|
-
|
|
73809
|
-
function _extends() {
|
|
73810
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
73811
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
73812
|
-
var source = arguments[i];
|
|
73813
|
-
for (var key in source) {
|
|
73814
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
73815
|
-
target[key] = source[key];
|
|
73816
|
-
}
|
|
73817
|
-
}
|
|
73818
|
-
}
|
|
73819
|
-
return target;
|
|
73820
|
-
};
|
|
73821
|
-
return _extends.apply(this, arguments);
|
|
73822
|
-
}
|
|
73823
|
-
|
|
73824
|
-
var pathToRegexp$1 = {exports: {}};
|
|
73825
|
-
|
|
73826
|
-
var isarray$1 = Array.isArray || function (arr) {
|
|
73827
|
-
return Object.prototype.toString.call(arr) == '[object Array]';
|
|
73828
|
-
};
|
|
73829
|
-
|
|
73830
|
-
var isarray = isarray$1;
|
|
73831
|
-
|
|
73832
|
-
/**
|
|
73833
|
-
* Expose `pathToRegexp`.
|
|
73834
|
-
*/
|
|
73835
|
-
pathToRegexp$1.exports = pathToRegexp;
|
|
73836
|
-
pathToRegexp$1.exports.parse = parse;
|
|
73837
|
-
pathToRegexp$1.exports.compile = compile;
|
|
73838
|
-
pathToRegexp$1.exports.tokensToFunction = tokensToFunction;
|
|
73839
|
-
pathToRegexp$1.exports.tokensToRegExp = tokensToRegExp;
|
|
73840
|
-
|
|
73841
|
-
/**
|
|
73842
|
-
* The main path matching regexp utility.
|
|
73843
|
-
*
|
|
73844
|
-
* @type {RegExp}
|
|
73845
|
-
*/
|
|
73846
|
-
var PATH_REGEXP = new RegExp([
|
|
73847
|
-
// Match escaped characters that would otherwise appear in future matches.
|
|
73848
|
-
// This allows the user to escape special characters that won't transform.
|
|
73849
|
-
'(\\\\.)',
|
|
73850
|
-
// Match Express-style parameters and un-named parameters with a prefix
|
|
73851
|
-
// and optional suffixes. Matches appear as:
|
|
73852
|
-
//
|
|
73853
|
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
73854
|
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
73855
|
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
73856
|
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
|
73857
|
-
].join('|'), 'g');
|
|
73858
|
-
|
|
73859
|
-
/**
|
|
73860
|
-
* Parse a string for the raw tokens.
|
|
73861
|
-
*
|
|
73862
|
-
* @param {string} str
|
|
73863
|
-
* @param {Object=} options
|
|
73864
|
-
* @return {!Array}
|
|
73865
|
-
*/
|
|
73866
|
-
function parse (str, options) {
|
|
73867
|
-
var tokens = [];
|
|
73868
|
-
var key = 0;
|
|
73869
|
-
var index = 0;
|
|
73870
|
-
var path = '';
|
|
73871
|
-
var defaultDelimiter = options && options.delimiter || '/';
|
|
73872
|
-
var res;
|
|
73873
|
-
|
|
73874
|
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
|
73875
|
-
var m = res[0];
|
|
73876
|
-
var escaped = res[1];
|
|
73877
|
-
var offset = res.index;
|
|
73878
|
-
path += str.slice(index, offset);
|
|
73879
|
-
index = offset + m.length;
|
|
73880
|
-
|
|
73881
|
-
// Ignore already escaped sequences.
|
|
73882
|
-
if (escaped) {
|
|
73883
|
-
path += escaped[1];
|
|
73884
|
-
continue
|
|
73885
|
-
}
|
|
73886
|
-
|
|
73887
|
-
var next = str[index];
|
|
73888
|
-
var prefix = res[2];
|
|
73889
|
-
var name = res[3];
|
|
73890
|
-
var capture = res[4];
|
|
73891
|
-
var group = res[5];
|
|
73892
|
-
var modifier = res[6];
|
|
73893
|
-
var asterisk = res[7];
|
|
73894
|
-
|
|
73895
|
-
// Push the current path onto the tokens.
|
|
73896
|
-
if (path) {
|
|
73897
|
-
tokens.push(path);
|
|
73898
|
-
path = '';
|
|
73899
|
-
}
|
|
73900
|
-
|
|
73901
|
-
var partial = prefix != null && next != null && next !== prefix;
|
|
73902
|
-
var repeat = modifier === '+' || modifier === '*';
|
|
73903
|
-
var optional = modifier === '?' || modifier === '*';
|
|
73904
|
-
var delimiter = res[2] || defaultDelimiter;
|
|
73905
|
-
var pattern = capture || group;
|
|
73906
|
-
|
|
73907
|
-
tokens.push({
|
|
73908
|
-
name: name || key++,
|
|
73909
|
-
prefix: prefix || '',
|
|
73910
|
-
delimiter: delimiter,
|
|
73911
|
-
optional: optional,
|
|
73912
|
-
repeat: repeat,
|
|
73913
|
-
partial: partial,
|
|
73914
|
-
asterisk: !!asterisk,
|
|
73915
|
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
|
73916
|
-
});
|
|
73917
|
-
}
|
|
73918
|
-
|
|
73919
|
-
// Match any characters still remaining.
|
|
73920
|
-
if (index < str.length) {
|
|
73921
|
-
path += str.substr(index);
|
|
73922
|
-
}
|
|
73923
|
-
|
|
73924
|
-
// If the path exists, push it onto the end.
|
|
73925
|
-
if (path) {
|
|
73926
|
-
tokens.push(path);
|
|
73927
|
-
}
|
|
73928
|
-
|
|
73929
|
-
return tokens
|
|
73930
|
-
}
|
|
73931
|
-
|
|
73932
|
-
/**
|
|
73933
|
-
* Compile a string to a template function for the path.
|
|
73934
|
-
*
|
|
73935
|
-
* @param {string} str
|
|
73936
|
-
* @param {Object=} options
|
|
73937
|
-
* @return {!function(Object=, Object=)}
|
|
73938
|
-
*/
|
|
73939
|
-
function compile (str, options) {
|
|
73940
|
-
return tokensToFunction(parse(str, options), options)
|
|
73941
|
-
}
|
|
73942
|
-
|
|
73943
|
-
/**
|
|
73944
|
-
* Prettier encoding of URI path segments.
|
|
73945
|
-
*
|
|
73946
|
-
* @param {string}
|
|
73947
|
-
* @return {string}
|
|
73948
|
-
*/
|
|
73949
|
-
function encodeURIComponentPretty (str) {
|
|
73950
|
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
|
73951
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
73952
|
-
})
|
|
73953
|
-
}
|
|
73954
|
-
|
|
73955
|
-
/**
|
|
73956
|
-
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
|
73957
|
-
*
|
|
73958
|
-
* @param {string}
|
|
73959
|
-
* @return {string}
|
|
73960
|
-
*/
|
|
73961
|
-
function encodeAsterisk (str) {
|
|
73962
|
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
|
73963
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
73964
|
-
})
|
|
73965
|
-
}
|
|
73966
|
-
|
|
73967
|
-
/**
|
|
73968
|
-
* Expose a method for transforming tokens into the path function.
|
|
73969
|
-
*/
|
|
73970
|
-
function tokensToFunction (tokens, options) {
|
|
73971
|
-
// Compile all the tokens into regexps.
|
|
73972
|
-
var matches = new Array(tokens.length);
|
|
73973
|
-
|
|
73974
|
-
// Compile all the patterns before compilation.
|
|
73975
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
73976
|
-
if (typeof tokens[i] === 'object') {
|
|
73977
|
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
|
|
73978
|
-
}
|
|
73979
|
-
}
|
|
73980
|
-
|
|
73981
|
-
return function (obj, opts) {
|
|
73982
|
-
var path = '';
|
|
73983
|
-
var data = obj || {};
|
|
73984
|
-
var options = opts || {};
|
|
73985
|
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
|
|
73986
|
-
|
|
73987
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
73988
|
-
var token = tokens[i];
|
|
73989
|
-
|
|
73990
|
-
if (typeof token === 'string') {
|
|
73991
|
-
path += token;
|
|
73992
|
-
|
|
73993
|
-
continue
|
|
73994
|
-
}
|
|
73995
|
-
|
|
73996
|
-
var value = data[token.name];
|
|
73997
|
-
var segment;
|
|
73998
|
-
|
|
73999
|
-
if (value == null) {
|
|
74000
|
-
if (token.optional) {
|
|
74001
|
-
// Prepend partial segment prefixes.
|
|
74002
|
-
if (token.partial) {
|
|
74003
|
-
path += token.prefix;
|
|
74004
|
-
}
|
|
74005
|
-
|
|
74006
|
-
continue
|
|
74007
|
-
} else {
|
|
74008
|
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
|
74009
|
-
}
|
|
74010
|
-
}
|
|
74011
|
-
|
|
74012
|
-
if (isarray(value)) {
|
|
74013
|
-
if (!token.repeat) {
|
|
74014
|
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
|
74015
|
-
}
|
|
74016
|
-
|
|
74017
|
-
if (value.length === 0) {
|
|
74018
|
-
if (token.optional) {
|
|
74019
|
-
continue
|
|
74020
|
-
} else {
|
|
74021
|
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
|
74022
|
-
}
|
|
74023
|
-
}
|
|
74024
|
-
|
|
74025
|
-
for (var j = 0; j < value.length; j++) {
|
|
74026
|
-
segment = encode(value[j]);
|
|
74027
|
-
|
|
74028
|
-
if (!matches[i].test(segment)) {
|
|
74029
|
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
|
74030
|
-
}
|
|
74031
|
-
|
|
74032
|
-
path += (j === 0 ? token.prefix : token.delimiter) + segment;
|
|
74033
|
-
}
|
|
74034
|
-
|
|
74035
|
-
continue
|
|
74036
|
-
}
|
|
74037
|
-
|
|
74038
|
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value);
|
|
74039
|
-
|
|
74040
|
-
if (!matches[i].test(segment)) {
|
|
74041
|
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
|
74042
|
-
}
|
|
74043
|
-
|
|
74044
|
-
path += token.prefix + segment;
|
|
74045
|
-
}
|
|
74046
|
-
|
|
74047
|
-
return path
|
|
74048
|
-
}
|
|
74049
|
-
}
|
|
74050
|
-
|
|
74051
|
-
/**
|
|
74052
|
-
* Escape a regular expression string.
|
|
74053
|
-
*
|
|
74054
|
-
* @param {string} str
|
|
74055
|
-
* @return {string}
|
|
74056
|
-
*/
|
|
74057
|
-
function escapeString (str) {
|
|
74058
|
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
|
74059
|
-
}
|
|
74060
|
-
|
|
74061
|
-
/**
|
|
74062
|
-
* Escape the capturing group by escaping special characters and meaning.
|
|
74063
|
-
*
|
|
74064
|
-
* @param {string} group
|
|
74065
|
-
* @return {string}
|
|
74066
|
-
*/
|
|
74067
|
-
function escapeGroup (group) {
|
|
74068
|
-
return group.replace(/([=!:$\/()])/g, '\\$1')
|
|
74069
|
-
}
|
|
74070
|
-
|
|
74071
|
-
/**
|
|
74072
|
-
* Attach the keys as a property of the regexp.
|
|
74073
|
-
*
|
|
74074
|
-
* @param {!RegExp} re
|
|
74075
|
-
* @param {Array} keys
|
|
74076
|
-
* @return {!RegExp}
|
|
74077
|
-
*/
|
|
74078
|
-
function attachKeys (re, keys) {
|
|
74079
|
-
re.keys = keys;
|
|
74080
|
-
return re
|
|
74081
|
-
}
|
|
74082
|
-
|
|
74083
|
-
/**
|
|
74084
|
-
* Get the flags for a regexp from the options.
|
|
74085
|
-
*
|
|
74086
|
-
* @param {Object} options
|
|
74087
|
-
* @return {string}
|
|
74088
|
-
*/
|
|
74089
|
-
function flags (options) {
|
|
74090
|
-
return options && options.sensitive ? '' : 'i'
|
|
74091
|
-
}
|
|
74092
|
-
|
|
74093
|
-
/**
|
|
74094
|
-
* Pull out keys from a regexp.
|
|
74095
|
-
*
|
|
74096
|
-
* @param {!RegExp} path
|
|
74097
|
-
* @param {!Array} keys
|
|
74098
|
-
* @return {!RegExp}
|
|
74099
|
-
*/
|
|
74100
|
-
function regexpToRegexp (path, keys) {
|
|
74101
|
-
// Use a negative lookahead to match only capturing groups.
|
|
74102
|
-
var groups = path.source.match(/\((?!\?)/g);
|
|
74103
|
-
|
|
74104
|
-
if (groups) {
|
|
74105
|
-
for (var i = 0; i < groups.length; i++) {
|
|
74106
|
-
keys.push({
|
|
74107
|
-
name: i,
|
|
74108
|
-
prefix: null,
|
|
74109
|
-
delimiter: null,
|
|
74110
|
-
optional: false,
|
|
74111
|
-
repeat: false,
|
|
74112
|
-
partial: false,
|
|
74113
|
-
asterisk: false,
|
|
74114
|
-
pattern: null
|
|
74115
|
-
});
|
|
74116
|
-
}
|
|
74117
|
-
}
|
|
74118
|
-
|
|
74119
|
-
return attachKeys(path, keys)
|
|
74120
|
-
}
|
|
74121
|
-
|
|
74122
|
-
/**
|
|
74123
|
-
* Transform an array into a regexp.
|
|
74124
|
-
*
|
|
74125
|
-
* @param {!Array} path
|
|
74126
|
-
* @param {Array} keys
|
|
74127
|
-
* @param {!Object} options
|
|
74128
|
-
* @return {!RegExp}
|
|
74129
|
-
*/
|
|
74130
|
-
function arrayToRegexp (path, keys, options) {
|
|
74131
|
-
var parts = [];
|
|
74132
|
-
|
|
74133
|
-
for (var i = 0; i < path.length; i++) {
|
|
74134
|
-
parts.push(pathToRegexp(path[i], keys, options).source);
|
|
74135
|
-
}
|
|
74136
|
-
|
|
74137
|
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
|
74138
|
-
|
|
74139
|
-
return attachKeys(regexp, keys)
|
|
74140
|
-
}
|
|
74141
|
-
|
|
74142
|
-
/**
|
|
74143
|
-
* Create a path regexp from string input.
|
|
74144
|
-
*
|
|
74145
|
-
* @param {string} path
|
|
74146
|
-
* @param {!Array} keys
|
|
74147
|
-
* @param {!Object} options
|
|
74148
|
-
* @return {!RegExp}
|
|
74149
|
-
*/
|
|
74150
|
-
function stringToRegexp (path, keys, options) {
|
|
74151
|
-
return tokensToRegExp(parse(path, options), keys, options)
|
|
74152
|
-
}
|
|
74153
|
-
|
|
74154
|
-
/**
|
|
74155
|
-
* Expose a function for taking tokens and returning a RegExp.
|
|
74156
|
-
*
|
|
74157
|
-
* @param {!Array} tokens
|
|
74158
|
-
* @param {(Array|Object)=} keys
|
|
74159
|
-
* @param {Object=} options
|
|
74160
|
-
* @return {!RegExp}
|
|
74161
|
-
*/
|
|
74162
|
-
function tokensToRegExp (tokens, keys, options) {
|
|
74163
|
-
if (!isarray(keys)) {
|
|
74164
|
-
options = /** @type {!Object} */ (keys || options);
|
|
74165
|
-
keys = [];
|
|
74166
|
-
}
|
|
74167
|
-
|
|
74168
|
-
options = options || {};
|
|
74169
|
-
|
|
74170
|
-
var strict = options.strict;
|
|
74171
|
-
var end = options.end !== false;
|
|
74172
|
-
var route = '';
|
|
74173
|
-
|
|
74174
|
-
// Iterate over the tokens and create our regexp string.
|
|
74175
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
74176
|
-
var token = tokens[i];
|
|
74177
|
-
|
|
74178
|
-
if (typeof token === 'string') {
|
|
74179
|
-
route += escapeString(token);
|
|
74180
|
-
} else {
|
|
74181
|
-
var prefix = escapeString(token.prefix);
|
|
74182
|
-
var capture = '(?:' + token.pattern + ')';
|
|
74183
|
-
|
|
74184
|
-
keys.push(token);
|
|
74185
|
-
|
|
74186
|
-
if (token.repeat) {
|
|
74187
|
-
capture += '(?:' + prefix + capture + ')*';
|
|
74188
|
-
}
|
|
74189
|
-
|
|
74190
|
-
if (token.optional) {
|
|
74191
|
-
if (!token.partial) {
|
|
74192
|
-
capture = '(?:' + prefix + '(' + capture + '))?';
|
|
74193
|
-
} else {
|
|
74194
|
-
capture = prefix + '(' + capture + ')?';
|
|
74195
|
-
}
|
|
74196
|
-
} else {
|
|
74197
|
-
capture = prefix + '(' + capture + ')';
|
|
74198
|
-
}
|
|
74199
|
-
|
|
74200
|
-
route += capture;
|
|
74201
|
-
}
|
|
74202
|
-
}
|
|
74203
|
-
|
|
74204
|
-
var delimiter = escapeString(options.delimiter || '/');
|
|
74205
|
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
|
|
74206
|
-
|
|
74207
|
-
// In non-strict mode we allow a slash at the end of match. If the path to
|
|
74208
|
-
// match already ends with a slash, we remove it for consistency. The slash
|
|
74209
|
-
// is valid at the end of a path match, not in the middle. This is important
|
|
74210
|
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
|
74211
|
-
if (!strict) {
|
|
74212
|
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
|
|
74213
|
-
}
|
|
74214
|
-
|
|
74215
|
-
if (end) {
|
|
74216
|
-
route += '$';
|
|
74217
|
-
} else {
|
|
74218
|
-
// In non-ending mode, we need the capturing groups to match as much as
|
|
74219
|
-
// possible by using a positive lookahead to the end or next path segment.
|
|
74220
|
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
|
|
74221
|
-
}
|
|
74222
|
-
|
|
74223
|
-
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
|
74224
|
-
}
|
|
74225
|
-
|
|
74226
|
-
/**
|
|
74227
|
-
* Normalize the given path string, returning a regular expression.
|
|
74228
|
-
*
|
|
74229
|
-
* An empty array can be passed in for the keys, which will hold the
|
|
74230
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
74231
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
74232
|
-
*
|
|
74233
|
-
* @param {(string|RegExp|Array)} path
|
|
74234
|
-
* @param {(Array|Object)=} keys
|
|
74235
|
-
* @param {Object=} options
|
|
74236
|
-
* @return {!RegExp}
|
|
74237
|
-
*/
|
|
74238
|
-
function pathToRegexp (path, keys, options) {
|
|
74239
|
-
if (!isarray(keys)) {
|
|
74240
|
-
options = /** @type {!Object} */ (keys || options);
|
|
74241
|
-
keys = [];
|
|
74242
|
-
}
|
|
74243
|
-
|
|
74244
|
-
options = options || {};
|
|
74245
|
-
|
|
74246
|
-
if (path instanceof RegExp) {
|
|
74247
|
-
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
|
74248
|
-
}
|
|
74249
|
-
|
|
74250
|
-
if (isarray(path)) {
|
|
74251
|
-
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
|
74252
|
-
}
|
|
74253
|
-
|
|
74254
|
-
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
|
74255
|
-
}
|
|
74256
|
-
|
|
74257
|
-
var reactIsExports = requireReactIs$1();
|
|
74258
|
-
|
|
74259
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
74260
|
-
if (source == null) return {};
|
|
74261
|
-
var target = {};
|
|
74262
|
-
var sourceKeys = Object.keys(source);
|
|
74263
|
-
var key, i;
|
|
74264
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
74265
|
-
key = sourceKeys[i];
|
|
74266
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
74267
|
-
target[key] = source[key];
|
|
74268
|
-
}
|
|
74269
|
-
return target;
|
|
74270
|
-
}
|
|
74271
|
-
|
|
74272
|
-
var reactIs = requireReactIs$1();
|
|
74273
|
-
|
|
74274
|
-
/**
|
|
74275
|
-
* Copyright 2015, Yahoo! Inc.
|
|
74276
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
74277
|
-
*/
|
|
74278
|
-
var REACT_STATICS = {
|
|
74279
|
-
childContextTypes: true,
|
|
74280
|
-
contextType: true,
|
|
74281
|
-
contextTypes: true,
|
|
74282
|
-
defaultProps: true,
|
|
74283
|
-
displayName: true,
|
|
74284
|
-
getDefaultProps: true,
|
|
74285
|
-
getDerivedStateFromError: true,
|
|
74286
|
-
getDerivedStateFromProps: true,
|
|
74287
|
-
mixins: true,
|
|
74288
|
-
propTypes: true,
|
|
74289
|
-
type: true
|
|
74290
|
-
};
|
|
74291
|
-
var KNOWN_STATICS = {
|
|
74292
|
-
name: true,
|
|
74293
|
-
length: true,
|
|
74294
|
-
prototype: true,
|
|
74295
|
-
caller: true,
|
|
74296
|
-
callee: true,
|
|
74297
|
-
arguments: true,
|
|
74298
|
-
arity: true
|
|
74299
|
-
};
|
|
74300
|
-
var FORWARD_REF_STATICS = {
|
|
74301
|
-
'$$typeof': true,
|
|
74302
|
-
render: true,
|
|
74303
|
-
defaultProps: true,
|
|
74304
|
-
displayName: true,
|
|
74305
|
-
propTypes: true
|
|
74306
|
-
};
|
|
74307
|
-
var MEMO_STATICS = {
|
|
74308
|
-
'$$typeof': true,
|
|
74309
|
-
compare: true,
|
|
74310
|
-
defaultProps: true,
|
|
74311
|
-
displayName: true,
|
|
74312
|
-
propTypes: true,
|
|
74313
|
-
type: true
|
|
74314
|
-
};
|
|
74315
|
-
var TYPE_STATICS = {};
|
|
74316
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
74317
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
74318
|
-
|
|
74319
|
-
function getStatics(component) {
|
|
74320
|
-
// React v16.11 and below
|
|
74321
|
-
if (reactIs.isMemo(component)) {
|
|
74322
|
-
return MEMO_STATICS;
|
|
74323
|
-
} // React v16.12 and above
|
|
74324
|
-
|
|
74325
|
-
|
|
74326
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
74327
|
-
}
|
|
74328
|
-
|
|
74329
|
-
var defineProperty = Object.defineProperty;
|
|
74330
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
74331
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
74332
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
74333
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
74334
|
-
var objectPrototype = Object.prototype;
|
|
74335
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
74336
|
-
if (typeof sourceComponent !== 'string') {
|
|
74337
|
-
// don't hoist over string (html) components
|
|
74338
|
-
if (objectPrototype) {
|
|
74339
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
74340
|
-
|
|
74341
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
74342
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
74343
|
-
}
|
|
74344
|
-
}
|
|
74345
|
-
|
|
74346
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
74347
|
-
|
|
74348
|
-
if (getOwnPropertySymbols) {
|
|
74349
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
74350
|
-
}
|
|
74351
|
-
|
|
74352
|
-
var targetStatics = getStatics(targetComponent);
|
|
74353
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
74354
|
-
|
|
74355
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
74356
|
-
var key = keys[i];
|
|
74357
|
-
|
|
74358
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
74359
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
74360
|
-
|
|
74361
|
-
try {
|
|
74362
|
-
// Avoid failures from read-only properties
|
|
74363
|
-
defineProperty(targetComponent, key, descriptor);
|
|
74364
|
-
} catch (e) {}
|
|
74365
|
-
}
|
|
74366
|
-
}
|
|
74367
|
-
}
|
|
74368
|
-
|
|
74369
|
-
return targetComponent;
|
|
74370
|
-
}
|
|
74371
|
-
|
|
74372
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
74373
|
-
|
|
74374
|
-
var hoistStatics = hoistNonReactStatics_cjs;
|
|
74375
|
-
|
|
74376
|
-
// TODO: Replace with React.createContext once we can assume React 16+
|
|
74377
|
-
|
|
74378
|
-
var createNamedContext = function createNamedContext(name) {
|
|
74379
|
-
var context = index$1();
|
|
74380
|
-
context.displayName = name;
|
|
74381
|
-
return context;
|
|
74382
|
-
};
|
|
74383
|
-
|
|
74384
|
-
var historyContext = /*#__PURE__*/createNamedContext("Router-History");
|
|
74385
|
-
|
|
74386
|
-
var context = /*#__PURE__*/createNamedContext("Router");
|
|
74387
|
-
|
|
74388
|
-
/**
|
|
74389
|
-
* The public API for putting history on context.
|
|
74390
|
-
*/
|
|
74391
|
-
|
|
74392
|
-
var Router = /*#__PURE__*/function (_React$Component) {
|
|
74393
|
-
_inheritsLoose$1(Router, _React$Component);
|
|
74394
|
-
|
|
74395
|
-
Router.computeRootMatch = function computeRootMatch(pathname) {
|
|
74396
|
-
return {
|
|
74397
|
-
path: "/",
|
|
74398
|
-
url: "/",
|
|
74399
|
-
params: {},
|
|
74400
|
-
isExact: pathname === "/"
|
|
74401
|
-
};
|
|
74402
|
-
};
|
|
74403
|
-
|
|
74404
|
-
function Router(props) {
|
|
74405
|
-
var _this;
|
|
74406
|
-
|
|
74407
|
-
_this = _React$Component.call(this, props) || this;
|
|
74408
|
-
_this.state = {
|
|
74409
|
-
location: props.history.location
|
|
74410
|
-
}; // This is a bit of a hack. We have to start listening for location
|
|
74411
|
-
// changes here in the constructor in case there are any <Redirect>s
|
|
74412
|
-
// on the initial render. If there are, they will replace/push when
|
|
74413
|
-
// they mount and since cDM fires in children before parents, we may
|
|
74414
|
-
// get a new location before the <Router> is mounted.
|
|
74415
|
-
|
|
74416
|
-
_this._isMounted = false;
|
|
74417
|
-
_this._pendingLocation = null;
|
|
74418
|
-
|
|
74419
|
-
if (!props.staticContext) {
|
|
74420
|
-
_this.unlisten = props.history.listen(function (location) {
|
|
74421
|
-
if (_this._isMounted) {
|
|
74422
|
-
_this.setState({
|
|
74423
|
-
location: location
|
|
74424
|
-
});
|
|
74425
|
-
} else {
|
|
74426
|
-
_this._pendingLocation = location;
|
|
74427
|
-
}
|
|
74428
|
-
});
|
|
74429
|
-
}
|
|
74430
|
-
|
|
74431
|
-
return _this;
|
|
74432
|
-
}
|
|
74433
|
-
|
|
74434
|
-
var _proto = Router.prototype;
|
|
74435
|
-
|
|
74436
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
74437
|
-
this._isMounted = true;
|
|
74438
|
-
|
|
74439
|
-
if (this._pendingLocation) {
|
|
74440
|
-
this.setState({
|
|
74441
|
-
location: this._pendingLocation
|
|
74442
|
-
});
|
|
74443
|
-
}
|
|
74444
|
-
};
|
|
74445
|
-
|
|
74446
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
74447
|
-
if (this.unlisten) {
|
|
74448
|
-
this.unlisten();
|
|
74449
|
-
this._isMounted = false;
|
|
74450
|
-
this._pendingLocation = null;
|
|
74451
|
-
}
|
|
74452
|
-
};
|
|
74453
|
-
|
|
74454
|
-
_proto.render = function render() {
|
|
74455
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
74456
|
-
value: {
|
|
74457
|
-
history: this.props.history,
|
|
74458
|
-
location: this.state.location,
|
|
74459
|
-
match: Router.computeRootMatch(this.state.location.pathname),
|
|
74460
|
-
staticContext: this.props.staticContext
|
|
74461
|
-
}
|
|
74462
|
-
}, /*#__PURE__*/React__default.createElement(historyContext.Provider, {
|
|
74463
|
-
children: this.props.children || null,
|
|
74464
|
-
value: this.props.history
|
|
74465
|
-
}));
|
|
74466
|
-
};
|
|
74467
|
-
|
|
74468
|
-
return Router;
|
|
74469
|
-
}(React__default.Component);
|
|
74470
|
-
|
|
74471
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74472
|
-
Router.propTypes = {
|
|
74473
|
-
children: propTypes$1.exports.node,
|
|
74474
|
-
history: propTypes$1.exports.object.isRequired,
|
|
74475
|
-
staticContext: propTypes$1.exports.object
|
|
74476
|
-
};
|
|
74477
|
-
|
|
74478
|
-
Router.prototype.componentDidUpdate = function (prevProps) {
|
|
74479
|
-
process.env.NODE_ENV !== "production" ? warning(prevProps.history === this.props.history, "You cannot change <Router history>") : void 0;
|
|
74480
|
-
};
|
|
74481
|
-
}
|
|
74482
|
-
|
|
74483
|
-
/**
|
|
74484
|
-
* The public API for a <Router> that stores location in memory.
|
|
74485
|
-
*/
|
|
74486
|
-
|
|
74487
|
-
var MemoryRouter = /*#__PURE__*/function (_React$Component) {
|
|
74488
|
-
_inheritsLoose$1(MemoryRouter, _React$Component);
|
|
74489
|
-
|
|
74490
|
-
function MemoryRouter() {
|
|
74491
|
-
var _this;
|
|
74492
|
-
|
|
74493
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
74494
|
-
args[_key] = arguments[_key];
|
|
74495
|
-
}
|
|
74496
|
-
|
|
74497
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
74498
|
-
_this.history = createMemoryHistory(_this.props);
|
|
74499
|
-
return _this;
|
|
74500
|
-
}
|
|
74501
|
-
|
|
74502
|
-
var _proto = MemoryRouter.prototype;
|
|
74503
|
-
|
|
74504
|
-
_proto.render = function render() {
|
|
74505
|
-
return /*#__PURE__*/React__default.createElement(Router, {
|
|
74506
|
-
history: this.history,
|
|
74507
|
-
children: this.props.children
|
|
74508
|
-
});
|
|
74509
|
-
};
|
|
74510
|
-
|
|
74511
|
-
return MemoryRouter;
|
|
74512
|
-
}(React__default.Component);
|
|
74513
|
-
|
|
74514
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74515
|
-
MemoryRouter.propTypes = {
|
|
74516
|
-
initialEntries: propTypes$1.exports.array,
|
|
74517
|
-
initialIndex: propTypes$1.exports.number,
|
|
74518
|
-
getUserConfirmation: propTypes$1.exports.func,
|
|
74519
|
-
keyLength: propTypes$1.exports.number,
|
|
74520
|
-
children: propTypes$1.exports.node
|
|
74521
|
-
};
|
|
74522
|
-
|
|
74523
|
-
MemoryRouter.prototype.componentDidMount = function () {
|
|
74524
|
-
process.env.NODE_ENV !== "production" ? warning(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : void 0;
|
|
74525
|
-
};
|
|
74526
|
-
}
|
|
74527
|
-
|
|
74528
|
-
var Lifecycle = /*#__PURE__*/function (_React$Component) {
|
|
74529
|
-
_inheritsLoose$1(Lifecycle, _React$Component);
|
|
74530
|
-
|
|
74531
|
-
function Lifecycle() {
|
|
74532
|
-
return _React$Component.apply(this, arguments) || this;
|
|
74533
|
-
}
|
|
74534
|
-
|
|
74535
|
-
var _proto = Lifecycle.prototype;
|
|
74536
|
-
|
|
74537
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
74538
|
-
if (this.props.onMount) this.props.onMount.call(this, this);
|
|
74539
|
-
};
|
|
74540
|
-
|
|
74541
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
74542
|
-
if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
|
|
74543
|
-
};
|
|
74544
|
-
|
|
74545
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
74546
|
-
if (this.props.onUnmount) this.props.onUnmount.call(this, this);
|
|
74547
|
-
};
|
|
74548
|
-
|
|
74549
|
-
_proto.render = function render() {
|
|
74550
|
-
return null;
|
|
74551
|
-
};
|
|
74552
|
-
|
|
74553
|
-
return Lifecycle;
|
|
74554
|
-
}(React__default.Component);
|
|
74555
|
-
|
|
74556
|
-
/**
|
|
74557
|
-
* The public API for prompting the user before navigating away from a screen.
|
|
74558
|
-
*/
|
|
74559
|
-
|
|
74560
|
-
function Prompt(_ref) {
|
|
74561
|
-
var message = _ref.message,
|
|
74562
|
-
_ref$when = _ref.when,
|
|
74563
|
-
when = _ref$when === void 0 ? true : _ref$when;
|
|
74564
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
74565
|
-
!context ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You should not use <Prompt> outside a <Router>") : invariant$1(false) : void 0;
|
|
74566
|
-
if (!when || context.staticContext) return null;
|
|
74567
|
-
var method = context.history.block;
|
|
74568
|
-
return /*#__PURE__*/React__default.createElement(Lifecycle, {
|
|
74569
|
-
onMount: function onMount(self) {
|
|
74570
|
-
self.release = method(message);
|
|
74571
|
-
},
|
|
74572
|
-
onUpdate: function onUpdate(self, prevProps) {
|
|
74573
|
-
if (prevProps.message !== message) {
|
|
74574
|
-
self.release();
|
|
74575
|
-
self.release = method(message);
|
|
74576
|
-
}
|
|
74577
|
-
},
|
|
74578
|
-
onUnmount: function onUnmount(self) {
|
|
74579
|
-
self.release();
|
|
74580
|
-
},
|
|
74581
|
-
message: message
|
|
74582
|
-
});
|
|
74583
|
-
});
|
|
74584
|
-
}
|
|
74585
|
-
|
|
74586
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74587
|
-
var messageType = propTypes$1.exports.oneOfType([propTypes$1.exports.func, propTypes$1.exports.string]);
|
|
74588
|
-
Prompt.propTypes = {
|
|
74589
|
-
when: propTypes$1.exports.bool,
|
|
74590
|
-
message: messageType.isRequired
|
|
74591
|
-
};
|
|
74592
|
-
}
|
|
74593
|
-
|
|
74594
|
-
var cache = {};
|
|
74595
|
-
var cacheLimit = 10000;
|
|
74596
|
-
var cacheCount = 0;
|
|
74597
|
-
|
|
74598
|
-
function compilePath(path) {
|
|
74599
|
-
if (cache[path]) return cache[path];
|
|
74600
|
-
var generator = pathToRegexp$1.exports.compile(path);
|
|
74601
|
-
|
|
74602
|
-
if (cacheCount < cacheLimit) {
|
|
74603
|
-
cache[path] = generator;
|
|
74604
|
-
cacheCount++;
|
|
74605
|
-
}
|
|
74606
|
-
|
|
74607
|
-
return generator;
|
|
74608
|
-
}
|
|
74609
|
-
/**
|
|
74610
|
-
* Public API for generating a URL pathname from a path and parameters.
|
|
74611
|
-
*/
|
|
74612
|
-
|
|
74613
|
-
|
|
74614
|
-
function generatePath(path, params) {
|
|
74615
|
-
if (path === void 0) {
|
|
74616
|
-
path = "/";
|
|
74617
|
-
}
|
|
74618
|
-
|
|
74619
|
-
if (params === void 0) {
|
|
74620
|
-
params = {};
|
|
74621
|
-
}
|
|
74622
|
-
|
|
74623
|
-
return path === "/" ? path : compilePath(path)(params, {
|
|
74624
|
-
pretty: true
|
|
74625
|
-
});
|
|
74626
|
-
}
|
|
74627
|
-
|
|
74628
|
-
/**
|
|
74629
|
-
* The public API for navigating programmatically with a component.
|
|
74630
|
-
*/
|
|
74631
|
-
|
|
74632
|
-
function Redirect(_ref) {
|
|
74633
|
-
var computedMatch = _ref.computedMatch,
|
|
74634
|
-
to = _ref.to,
|
|
74635
|
-
_ref$push = _ref.push,
|
|
74636
|
-
push = _ref$push === void 0 ? false : _ref$push;
|
|
74637
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
74638
|
-
!context ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You should not use <Redirect> outside a <Router>") : invariant$1(false) : void 0;
|
|
74639
|
-
var history = context.history,
|
|
74640
|
-
staticContext = context.staticContext;
|
|
74641
|
-
var method = push ? history.push : history.replace;
|
|
74642
|
-
var location = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends({}, to, {
|
|
74643
|
-
pathname: generatePath(to.pathname, computedMatch.params)
|
|
74644
|
-
}) : to); // When rendering in a static context,
|
|
74645
|
-
// set the new location immediately.
|
|
74646
|
-
|
|
74647
|
-
if (staticContext) {
|
|
74648
|
-
method(location);
|
|
74649
|
-
return null;
|
|
74650
|
-
}
|
|
74651
|
-
|
|
74652
|
-
return /*#__PURE__*/React__default.createElement(Lifecycle, {
|
|
74653
|
-
onMount: function onMount() {
|
|
74654
|
-
method(location);
|
|
74655
|
-
},
|
|
74656
|
-
onUpdate: function onUpdate(self, prevProps) {
|
|
74657
|
-
var prevLocation = createLocation(prevProps.to);
|
|
74658
|
-
|
|
74659
|
-
if (!locationsAreEqual(prevLocation, _extends({}, location, {
|
|
74660
|
-
key: prevLocation.key
|
|
74661
|
-
}))) {
|
|
74662
|
-
method(location);
|
|
74663
|
-
}
|
|
74664
|
-
},
|
|
74665
|
-
to: to
|
|
74666
|
-
});
|
|
74667
|
-
});
|
|
74668
|
-
}
|
|
74669
|
-
|
|
74670
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74671
|
-
Redirect.propTypes = {
|
|
74672
|
-
push: propTypes$1.exports.bool,
|
|
74673
|
-
from: propTypes$1.exports.string,
|
|
74674
|
-
to: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.object]).isRequired
|
|
74675
|
-
};
|
|
74676
|
-
}
|
|
74677
|
-
|
|
74678
|
-
var cache$1 = {};
|
|
74679
|
-
var cacheLimit$1 = 10000;
|
|
74680
|
-
var cacheCount$1 = 0;
|
|
74681
|
-
|
|
74682
|
-
function compilePath$1(path, options) {
|
|
74683
|
-
var cacheKey = "" + options.end + options.strict + options.sensitive;
|
|
74684
|
-
var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
|
|
74685
|
-
if (pathCache[path]) return pathCache[path];
|
|
74686
|
-
var keys = [];
|
|
74687
|
-
var regexp = pathToRegexp$1.exports(path, keys, options);
|
|
74688
|
-
var result = {
|
|
74689
|
-
regexp: regexp,
|
|
74690
|
-
keys: keys
|
|
74691
|
-
};
|
|
74692
|
-
|
|
74693
|
-
if (cacheCount$1 < cacheLimit$1) {
|
|
74694
|
-
pathCache[path] = result;
|
|
74695
|
-
cacheCount$1++;
|
|
74696
|
-
}
|
|
74697
|
-
|
|
74698
|
-
return result;
|
|
74699
|
-
}
|
|
74700
|
-
/**
|
|
74701
|
-
* Public API for matching a URL pathname to a path.
|
|
74702
|
-
*/
|
|
74703
|
-
|
|
74704
|
-
|
|
74705
|
-
function matchPath(pathname, options) {
|
|
74706
|
-
if (options === void 0) {
|
|
74707
|
-
options = {};
|
|
74708
|
-
}
|
|
74709
|
-
|
|
74710
|
-
if (typeof options === "string" || Array.isArray(options)) {
|
|
74711
|
-
options = {
|
|
74712
|
-
path: options
|
|
74713
|
-
};
|
|
74714
|
-
}
|
|
74715
|
-
|
|
74716
|
-
var _options = options,
|
|
74717
|
-
path = _options.path,
|
|
74718
|
-
_options$exact = _options.exact,
|
|
74719
|
-
exact = _options$exact === void 0 ? false : _options$exact,
|
|
74720
|
-
_options$strict = _options.strict,
|
|
74721
|
-
strict = _options$strict === void 0 ? false : _options$strict,
|
|
74722
|
-
_options$sensitive = _options.sensitive,
|
|
74723
|
-
sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
|
|
74724
|
-
var paths = [].concat(path);
|
|
74725
|
-
return paths.reduce(function (matched, path) {
|
|
74726
|
-
if (!path && path !== "") return null;
|
|
74727
|
-
if (matched) return matched;
|
|
74728
|
-
|
|
74729
|
-
var _compilePath = compilePath$1(path, {
|
|
74730
|
-
end: exact,
|
|
74731
|
-
strict: strict,
|
|
74732
|
-
sensitive: sensitive
|
|
74733
|
-
}),
|
|
74734
|
-
regexp = _compilePath.regexp,
|
|
74735
|
-
keys = _compilePath.keys;
|
|
74736
|
-
|
|
74737
|
-
var match = regexp.exec(pathname);
|
|
74738
|
-
if (!match) return null;
|
|
74739
|
-
var url = match[0],
|
|
74740
|
-
values = match.slice(1);
|
|
74741
|
-
var isExact = pathname === url;
|
|
74742
|
-
if (exact && !isExact) return null;
|
|
74743
|
-
return {
|
|
74744
|
-
path: path,
|
|
74745
|
-
// the path used to match
|
|
74746
|
-
url: path === "/" && url === "" ? "/" : url,
|
|
74747
|
-
// the matched portion of the URL
|
|
74748
|
-
isExact: isExact,
|
|
74749
|
-
// whether or not we matched exactly
|
|
74750
|
-
params: keys.reduce(function (memo, key, index) {
|
|
74751
|
-
memo[key.name] = values[index];
|
|
74752
|
-
return memo;
|
|
74753
|
-
}, {})
|
|
74754
|
-
};
|
|
74755
|
-
}, null);
|
|
74756
|
-
}
|
|
74757
|
-
|
|
74758
|
-
function isEmptyChildren(children) {
|
|
74759
|
-
return React__default.Children.count(children) === 0;
|
|
74760
|
-
}
|
|
74761
|
-
|
|
74762
|
-
function evalChildrenDev(children, props, path) {
|
|
74763
|
-
var value = children(props);
|
|
74764
|
-
process.env.NODE_ENV !== "production" ? warning(value !== undefined, "You returned `undefined` from the `children` function of " + ("<Route" + (path ? " path=\"" + path + "\"" : "") + ">, but you ") + "should have returned a React element or `null`") : void 0;
|
|
74765
|
-
return value || null;
|
|
74766
|
-
}
|
|
74767
|
-
/**
|
|
74768
|
-
* The public API for matching a single path and rendering.
|
|
74769
|
-
*/
|
|
74770
|
-
|
|
74771
|
-
|
|
74772
|
-
var Route = /*#__PURE__*/function (_React$Component) {
|
|
74773
|
-
_inheritsLoose$1(Route, _React$Component);
|
|
74774
|
-
|
|
74775
|
-
function Route() {
|
|
74776
|
-
return _React$Component.apply(this, arguments) || this;
|
|
74777
|
-
}
|
|
74778
|
-
|
|
74779
|
-
var _proto = Route.prototype;
|
|
74780
|
-
|
|
74781
|
-
_proto.render = function render() {
|
|
74782
|
-
var _this = this;
|
|
74783
|
-
|
|
74784
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context$1) {
|
|
74785
|
-
!context$1 ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You should not use <Route> outside a <Router>") : invariant$1(false) : void 0;
|
|
74786
|
-
var location = _this.props.location || context$1.location;
|
|
74787
|
-
var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
|
|
74788
|
-
: _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
|
|
74789
|
-
|
|
74790
|
-
var props = _extends({}, context$1, {
|
|
74791
|
-
location: location,
|
|
74792
|
-
match: match
|
|
74793
|
-
});
|
|
74794
|
-
|
|
74795
|
-
var _this$props = _this.props,
|
|
74796
|
-
children = _this$props.children,
|
|
74797
|
-
component = _this$props.component,
|
|
74798
|
-
render = _this$props.render; // Preact uses an empty array as children by
|
|
74799
|
-
// default, so use null if that's the case.
|
|
74800
|
-
|
|
74801
|
-
if (Array.isArray(children) && isEmptyChildren(children)) {
|
|
74802
|
-
children = null;
|
|
74803
|
-
}
|
|
74804
|
-
|
|
74805
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
74806
|
-
value: props
|
|
74807
|
-
}, props.match ? children ? typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : children : component ? /*#__PURE__*/React__default.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : null);
|
|
74808
|
-
});
|
|
74809
|
-
};
|
|
74810
|
-
|
|
74811
|
-
return Route;
|
|
74812
|
-
}(React__default.Component);
|
|
74813
|
-
|
|
74814
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74815
|
-
Route.propTypes = {
|
|
74816
|
-
children: propTypes$1.exports.oneOfType([propTypes$1.exports.func, propTypes$1.exports.node]),
|
|
74817
|
-
component: function component(props, propName) {
|
|
74818
|
-
if (props[propName] && !reactIsExports.isValidElementType(props[propName])) {
|
|
74819
|
-
return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
|
|
74820
|
-
}
|
|
74821
|
-
},
|
|
74822
|
-
exact: propTypes$1.exports.bool,
|
|
74823
|
-
location: propTypes$1.exports.object,
|
|
74824
|
-
path: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.arrayOf(propTypes$1.exports.string)]),
|
|
74825
|
-
render: propTypes$1.exports.func,
|
|
74826
|
-
sensitive: propTypes$1.exports.bool,
|
|
74827
|
-
strict: propTypes$1.exports.bool
|
|
74828
|
-
};
|
|
74829
|
-
|
|
74830
|
-
Route.prototype.componentDidMount = function () {
|
|
74831
|
-
process.env.NODE_ENV !== "production" ? warning(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored") : void 0;
|
|
74832
|
-
process.env.NODE_ENV !== "production" ? warning(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored") : void 0;
|
|
74833
|
-
process.env.NODE_ENV !== "production" ? warning(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored") : void 0;
|
|
74834
|
-
};
|
|
74835
|
-
|
|
74836
|
-
Route.prototype.componentDidUpdate = function (prevProps) {
|
|
74837
|
-
process.env.NODE_ENV !== "production" ? warning(!(this.props.location && !prevProps.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
|
|
74838
|
-
process.env.NODE_ENV !== "production" ? warning(!(!this.props.location && prevProps.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
|
|
74839
|
-
};
|
|
74840
|
-
}
|
|
74841
|
-
|
|
74842
|
-
function addLeadingSlash(path) {
|
|
74843
|
-
return path.charAt(0) === "/" ? path : "/" + path;
|
|
74844
|
-
}
|
|
74845
|
-
|
|
74846
|
-
function addBasename(basename, location) {
|
|
74847
|
-
if (!basename) return location;
|
|
74848
|
-
return _extends({}, location, {
|
|
74849
|
-
pathname: addLeadingSlash(basename) + location.pathname
|
|
74850
|
-
});
|
|
74851
|
-
}
|
|
74852
|
-
|
|
74853
|
-
function stripBasename(basename, location) {
|
|
74854
|
-
if (!basename) return location;
|
|
74855
|
-
var base = addLeadingSlash(basename);
|
|
74856
|
-
if (location.pathname.indexOf(base) !== 0) return location;
|
|
74857
|
-
return _extends({}, location, {
|
|
74858
|
-
pathname: location.pathname.substr(base.length)
|
|
74859
|
-
});
|
|
74860
|
-
}
|
|
74861
|
-
|
|
74862
|
-
function createURL(location) {
|
|
74863
|
-
return typeof location === "string" ? location : createPath(location);
|
|
74864
|
-
}
|
|
74865
|
-
|
|
74866
|
-
function staticHandler(methodName) {
|
|
74867
|
-
return function () {
|
|
74868
|
-
process.env.NODE_ENV !== "production" ? invariant$1(false, "You cannot %s with <StaticRouter>") : invariant$1(false) ;
|
|
74869
|
-
};
|
|
74870
|
-
}
|
|
74871
|
-
|
|
74872
|
-
function noop() {}
|
|
74873
|
-
/**
|
|
74874
|
-
* The public top-level API for a "static" <Router>, so-called because it
|
|
74875
|
-
* can't actually change the current location. Instead, it just records
|
|
74876
|
-
* location changes in a context object. Useful mainly in testing and
|
|
74877
|
-
* server-rendering scenarios.
|
|
74878
|
-
*/
|
|
74879
|
-
|
|
74880
|
-
|
|
74881
|
-
var StaticRouter = /*#__PURE__*/function (_React$Component) {
|
|
74882
|
-
_inheritsLoose$1(StaticRouter, _React$Component);
|
|
74883
|
-
|
|
74884
|
-
function StaticRouter() {
|
|
74885
|
-
var _this;
|
|
74886
|
-
|
|
74887
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
74888
|
-
args[_key] = arguments[_key];
|
|
74889
|
-
}
|
|
74890
|
-
|
|
74891
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
74892
|
-
|
|
74893
|
-
_this.handlePush = function (location) {
|
|
74894
|
-
return _this.navigateTo(location, "PUSH");
|
|
74895
|
-
};
|
|
74896
|
-
|
|
74897
|
-
_this.handleReplace = function (location) {
|
|
74898
|
-
return _this.navigateTo(location, "REPLACE");
|
|
74899
|
-
};
|
|
74900
|
-
|
|
74901
|
-
_this.handleListen = function () {
|
|
74902
|
-
return noop;
|
|
74903
|
-
};
|
|
74904
|
-
|
|
74905
|
-
_this.handleBlock = function () {
|
|
74906
|
-
return noop;
|
|
74907
|
-
};
|
|
74908
|
-
|
|
74909
|
-
return _this;
|
|
74910
|
-
}
|
|
74911
|
-
|
|
74912
|
-
var _proto = StaticRouter.prototype;
|
|
74913
|
-
|
|
74914
|
-
_proto.navigateTo = function navigateTo(location, action) {
|
|
74915
|
-
var _this$props = this.props,
|
|
74916
|
-
_this$props$basename = _this$props.basename,
|
|
74917
|
-
basename = _this$props$basename === void 0 ? "" : _this$props$basename,
|
|
74918
|
-
_this$props$context = _this$props.context,
|
|
74919
|
-
context = _this$props$context === void 0 ? {} : _this$props$context;
|
|
74920
|
-
context.action = action;
|
|
74921
|
-
context.location = addBasename(basename, createLocation(location));
|
|
74922
|
-
context.url = createURL(context.location);
|
|
74923
|
-
};
|
|
74924
|
-
|
|
74925
|
-
_proto.render = function render() {
|
|
74926
|
-
var _this$props2 = this.props,
|
|
74927
|
-
_this$props2$basename = _this$props2.basename,
|
|
74928
|
-
basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
|
|
74929
|
-
_this$props2$context = _this$props2.context,
|
|
74930
|
-
context = _this$props2$context === void 0 ? {} : _this$props2$context,
|
|
74931
|
-
_this$props2$location = _this$props2.location,
|
|
74932
|
-
location = _this$props2$location === void 0 ? "/" : _this$props2$location,
|
|
74933
|
-
rest = _objectWithoutPropertiesLoose(_this$props2, ["basename", "context", "location"]);
|
|
74934
|
-
|
|
74935
|
-
var history = {
|
|
74936
|
-
createHref: function createHref(path) {
|
|
74937
|
-
return addLeadingSlash(basename + createURL(path));
|
|
74938
|
-
},
|
|
74939
|
-
action: "POP",
|
|
74940
|
-
location: stripBasename(basename, createLocation(location)),
|
|
74941
|
-
push: this.handlePush,
|
|
74942
|
-
replace: this.handleReplace,
|
|
74943
|
-
go: staticHandler(),
|
|
74944
|
-
goBack: staticHandler(),
|
|
74945
|
-
goForward: staticHandler(),
|
|
74946
|
-
listen: this.handleListen,
|
|
74947
|
-
block: this.handleBlock
|
|
74948
|
-
};
|
|
74949
|
-
return /*#__PURE__*/React__default.createElement(Router, _extends({}, rest, {
|
|
74950
|
-
history: history,
|
|
74951
|
-
staticContext: context
|
|
74952
|
-
}));
|
|
74953
|
-
};
|
|
74954
|
-
|
|
74955
|
-
return StaticRouter;
|
|
74956
|
-
}(React__default.Component);
|
|
74957
|
-
|
|
74958
|
-
if (process.env.NODE_ENV !== "production") {
|
|
74959
|
-
StaticRouter.propTypes = {
|
|
74960
|
-
basename: propTypes$1.exports.string,
|
|
74961
|
-
context: propTypes$1.exports.object,
|
|
74962
|
-
location: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.object])
|
|
74963
|
-
};
|
|
74964
|
-
|
|
74965
|
-
StaticRouter.prototype.componentDidMount = function () {
|
|
74966
|
-
process.env.NODE_ENV !== "production" ? warning(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.") : void 0;
|
|
74967
|
-
};
|
|
74968
|
-
}
|
|
74969
|
-
|
|
74970
|
-
/**
|
|
74971
|
-
* The public API for rendering the first <Route> that matches.
|
|
74972
|
-
*/
|
|
74973
|
-
|
|
74974
|
-
var Switch = /*#__PURE__*/function (_React$Component) {
|
|
74975
|
-
_inheritsLoose$1(Switch, _React$Component);
|
|
74976
|
-
|
|
74977
|
-
function Switch() {
|
|
74978
|
-
return _React$Component.apply(this, arguments) || this;
|
|
74979
|
-
}
|
|
74980
|
-
|
|
74981
|
-
var _proto = Switch.prototype;
|
|
74982
|
-
|
|
74983
|
-
_proto.render = function render() {
|
|
74984
|
-
var _this = this;
|
|
74985
|
-
|
|
74986
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
74987
|
-
!context ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You should not use <Switch> outside a <Router>") : invariant$1(false) : void 0;
|
|
74988
|
-
var location = _this.props.location || context.location;
|
|
74989
|
-
var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
|
|
74990
|
-
// here because toArray adds keys to all child elements and we do not want
|
|
74991
|
-
// to trigger an unmount/remount for two <Route>s that render the same
|
|
74992
|
-
// component at different URLs.
|
|
74993
|
-
|
|
74994
|
-
React__default.Children.forEach(_this.props.children, function (child) {
|
|
74995
|
-
if (match == null && /*#__PURE__*/React__default.isValidElement(child)) {
|
|
74996
|
-
element = child;
|
|
74997
|
-
var path = child.props.path || child.props.from;
|
|
74998
|
-
match = path ? matchPath(location.pathname, _extends({}, child.props, {
|
|
74999
|
-
path: path
|
|
75000
|
-
})) : context.match;
|
|
75001
|
-
}
|
|
75002
|
-
});
|
|
75003
|
-
return match ? /*#__PURE__*/React__default.cloneElement(element, {
|
|
75004
|
-
location: location,
|
|
75005
|
-
computedMatch: match
|
|
75006
|
-
}) : null;
|
|
75007
|
-
});
|
|
75008
|
-
};
|
|
75009
|
-
|
|
75010
|
-
return Switch;
|
|
75011
|
-
}(React__default.Component);
|
|
75012
|
-
|
|
75013
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75014
|
-
Switch.propTypes = {
|
|
75015
|
-
children: propTypes$1.exports.node,
|
|
75016
|
-
location: propTypes$1.exports.object
|
|
75017
|
-
};
|
|
75018
|
-
|
|
75019
|
-
Switch.prototype.componentDidUpdate = function (prevProps) {
|
|
75020
|
-
process.env.NODE_ENV !== "production" ? warning(!(this.props.location && !prevProps.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
|
|
75021
|
-
process.env.NODE_ENV !== "production" ? warning(!(!this.props.location && prevProps.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
|
|
75022
|
-
};
|
|
75023
|
-
}
|
|
75024
|
-
|
|
75025
|
-
/**
|
|
75026
|
-
* A public higher-order component to access the imperative API
|
|
75027
|
-
*/
|
|
75028
|
-
|
|
75029
|
-
function withRouter(Component) {
|
|
75030
|
-
var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
|
|
75031
|
-
|
|
75032
|
-
var C = function C(props) {
|
|
75033
|
-
var wrappedComponentRef = props.wrappedComponentRef,
|
|
75034
|
-
remainingProps = _objectWithoutPropertiesLoose(props, ["wrappedComponentRef"]);
|
|
75035
|
-
|
|
75036
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
75037
|
-
!context ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You should not use <" + displayName + " /> outside a <Router>") : invariant$1(false) : void 0;
|
|
75038
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, remainingProps, context, {
|
|
75039
|
-
ref: wrappedComponentRef
|
|
75040
|
-
}));
|
|
75041
|
-
});
|
|
75042
|
-
};
|
|
75043
|
-
|
|
75044
|
-
C.displayName = displayName;
|
|
75045
|
-
C.WrappedComponent = Component;
|
|
75046
|
-
|
|
75047
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75048
|
-
C.propTypes = {
|
|
75049
|
-
wrappedComponentRef: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.func, propTypes$1.exports.object])
|
|
75050
|
-
};
|
|
75051
|
-
}
|
|
75052
|
-
|
|
75053
|
-
return hoistStatics(C, Component);
|
|
75054
|
-
}
|
|
75055
|
-
|
|
75056
|
-
var useContext = React__default.useContext;
|
|
75057
|
-
function useHistory() {
|
|
75058
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75059
|
-
!(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You must use React >= 16.8 in order to use useHistory()") : invariant$1(false) : void 0;
|
|
75060
|
-
}
|
|
75061
|
-
|
|
75062
|
-
return useContext(historyContext);
|
|
75063
|
-
}
|
|
75064
|
-
function useLocation() {
|
|
75065
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75066
|
-
!(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You must use React >= 16.8 in order to use useLocation()") : invariant$1(false) : void 0;
|
|
75067
|
-
}
|
|
75068
|
-
|
|
75069
|
-
return useContext(context).location;
|
|
75070
|
-
}
|
|
75071
|
-
function useParams() {
|
|
75072
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75073
|
-
!(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You must use React >= 16.8 in order to use useParams()") : invariant$1(false) : void 0;
|
|
75074
|
-
}
|
|
75075
|
-
|
|
75076
|
-
var match = useContext(context).match;
|
|
75077
|
-
return match ? match.params : {};
|
|
75078
|
-
}
|
|
75079
|
-
function useRouteMatch(path) {
|
|
75080
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75081
|
-
!(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? invariant$1(false, "You must use React >= 16.8 in order to use useRouteMatch()") : invariant$1(false) : void 0;
|
|
75082
|
-
}
|
|
75083
|
-
|
|
75084
|
-
var location = useLocation();
|
|
75085
|
-
var match = useContext(context).match;
|
|
75086
|
-
return path ? matchPath(location.pathname, path) : match;
|
|
75087
|
-
}
|
|
75088
|
-
|
|
75089
|
-
if (process.env.NODE_ENV !== "production") {
|
|
75090
|
-
if (typeof window !== "undefined") {
|
|
75091
|
-
var global$1 = window;
|
|
75092
|
-
var key = "__react_router_build__";
|
|
75093
|
-
var buildNames = {
|
|
75094
|
-
cjs: "CommonJS",
|
|
75095
|
-
esm: "ES modules",
|
|
75096
|
-
umd: "UMD"
|
|
75097
|
-
};
|
|
75098
|
-
|
|
75099
|
-
if (global$1[key] && global$1[key] !== "esm") {
|
|
75100
|
-
var initialBuildName = buildNames[global$1[key]];
|
|
75101
|
-
var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
|
|
75102
|
-
// loading 2 different builds.
|
|
75103
|
-
|
|
75104
|
-
throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
|
|
75105
|
-
}
|
|
75106
|
-
|
|
75107
|
-
global$1[key] = "esm";
|
|
75108
|
-
}
|
|
75109
|
-
}
|
|
75110
|
-
|
|
75111
|
-
var reactRouter = /*#__PURE__*/Object.freeze({
|
|
75112
|
-
__proto__: null,
|
|
75113
|
-
MemoryRouter: MemoryRouter,
|
|
75114
|
-
Prompt: Prompt,
|
|
75115
|
-
Redirect: Redirect,
|
|
75116
|
-
Route: Route,
|
|
75117
|
-
Router: Router,
|
|
75118
|
-
StaticRouter: StaticRouter,
|
|
75119
|
-
Switch: Switch,
|
|
75120
|
-
__HistoryContext: historyContext,
|
|
75121
|
-
__RouterContext: context,
|
|
75122
|
-
generatePath: generatePath,
|
|
75123
|
-
matchPath: matchPath,
|
|
75124
|
-
useHistory: useHistory,
|
|
75125
|
-
useLocation: useLocation,
|
|
75126
|
-
useParams: useParams,
|
|
75127
|
-
useRouteMatch: useRouteMatch,
|
|
75128
|
-
withRouter: withRouter
|
|
75129
|
-
});
|
|
75130
|
-
|
|
75131
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(reactRouter);
|
|
75132
|
-
|
|
75133
|
-
var require$$2 = /*@__PURE__*/getAugmentedNamespace(history);
|
|
75134
|
-
|
|
75135
|
-
var isProduction = process.env.NODE_ENV === 'production';
|
|
75136
|
-
var prefix = 'Invariant failed';
|
|
75137
|
-
function invariant(condition, message) {
|
|
75138
|
-
if (condition) {
|
|
75139
|
-
return;
|
|
75140
|
-
}
|
|
75141
|
-
if (isProduction) {
|
|
75142
|
-
throw new Error(prefix);
|
|
75143
|
-
}
|
|
75144
|
-
var provided = typeof message === 'function' ? message() : message;
|
|
75145
|
-
var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
75146
|
-
throw new Error(value);
|
|
75147
|
-
}
|
|
75148
|
-
|
|
75149
|
-
var tinyInvariant_cjs = invariant;
|
|
75150
|
-
|
|
75151
|
-
(function (exports) {
|
|
75152
|
-
function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var reactRouter=require$$0,React=_interopDefault(React__default),history=require$$2;var invariant=_interopDefault(tinyInvariant_cjs);function _extends(){return (_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),_setPrototypeOf(e.prototype.constructor=e,t);}function _setPrototypeOf(e,t){return (_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return {};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||(n[r]=e[r]);return n}var BrowserRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return (e=n.call.apply(n,[this].concat(r))||this).history=history.createBrowserHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component),HashRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return (e=n.call.apply(n,[this].concat(r))||this).history=history.createHashHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component),resolveToLocation=function(e,t){return "function"==typeof e?e(t):e},normalizeToLocation=function(e,t){return "string"==typeof e?history.createLocation(e,null,null,t):e},forwardRefShim=function(e){return e},forwardRef=React.forwardRef;function isModifiedEvent(e){return !!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}void 0===forwardRef&&(forwardRef=forwardRefShim);var LinkAnchor=forwardRef(function(e,t){var r=e.innerRef,o=e.navigate,n=e.onClick,a=_objectWithoutPropertiesLoose(e,["innerRef","navigate","onClick"]),i=a.target,c=_extends({},a,{onClick:function(t){try{n&&n(t);}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||i&&"_self"!==i||isModifiedEvent(t)||(t.preventDefault(),o());}});return c.ref=forwardRefShim!==forwardRef&&t||r,React.createElement("a",c)}),Link=forwardRef(function(e,a){var t=e.component,i=void 0===t?LinkAnchor:t,c=e.replace,u=e.to,f=e.innerRef,s=_objectWithoutPropertiesLoose(e,["component","replace","to","innerRef"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(r){r||invariant(!1);var o=r.history,e=normalizeToLocation(resolveToLocation(u,r.location),r.location),t=e?o.createHref(e):"",n=_extends({},s,{href:t,navigate:function(){var e=resolveToLocation(u,r.location),t=history.createPath(r.location)===history.createPath(normalizeToLocation(e));(c||t?o.replace:o.push)(e);}});return forwardRefShim!==forwardRef?n.ref=a||f:n.innerRef=f,React.createElement(i,n)})}),forwardRefShim$1=function(e){return e},forwardRef$1=React.forwardRef;function joinClassnames(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e}).join(" ")}void 0===forwardRef$1&&(forwardRef$1=forwardRefShim$1);var NavLink=forwardRef$1(function(e,s){var t=e["aria-current"],l=void 0===t?"page":t,r=e.activeClassName,p=void 0===r?"active":r,R=e.activeStyle,h=e.className,y=e.exact,d=e.isActive,m=e.location,v=e.sensitive,b=e.strict,P=e.style,w=e.to,x=e.innerRef,g=_objectWithoutPropertiesLoose(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(e){e||invariant(!1);var t=m||e.location,r=normalizeToLocation(resolveToLocation(w,t),t),o=r.pathname,n=o&&o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),a=n?reactRouter.matchPath(t.pathname,{path:n,exact:y,sensitive:v,strict:b}):null,i=!!(d?d(a,t):a),c="function"==typeof h?h(i):h,u="function"==typeof P?P(i):P;i&&(c=joinClassnames(c,p),u=_extends({},u,R));var f=_extends({"aria-current":i&&l||null,className:c,style:u,to:r},g);return forwardRefShim$1!==forwardRef$1?f.ref=s||x:f.innerRef=x,React.createElement(Link,f)})});Object.defineProperty(exports,"MemoryRouter",{enumerable:!0,get:function(){return reactRouter.MemoryRouter}}),Object.defineProperty(exports,"Prompt",{enumerable:!0,get:function(){return reactRouter.Prompt}}),Object.defineProperty(exports,"Redirect",{enumerable:!0,get:function(){return reactRouter.Redirect}}),Object.defineProperty(exports,"Route",{enumerable:!0,get:function(){return reactRouter.Route}}),Object.defineProperty(exports,"Router",{enumerable:!0,get:function(){return reactRouter.Router}}),Object.defineProperty(exports,"StaticRouter",{enumerable:!0,get:function(){return reactRouter.StaticRouter}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return reactRouter.Switch}}),Object.defineProperty(exports,"generatePath",{enumerable:!0,get:function(){return reactRouter.generatePath}}),Object.defineProperty(exports,"matchPath",{enumerable:!0,get:function(){return reactRouter.matchPath}}),Object.defineProperty(exports,"useHistory",{enumerable:!0,get:function(){return reactRouter.useHistory}}),Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return reactRouter.useLocation}}),Object.defineProperty(exports,"useParams",{enumerable:!0,get:function(){return reactRouter.useParams}}),Object.defineProperty(exports,"useRouteMatch",{enumerable:!0,get:function(){return reactRouter.useRouteMatch}}),Object.defineProperty(exports,"withRouter",{enumerable:!0,get:function(){return reactRouter.withRouter}}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
|
|
75153
|
-
|
|
75154
|
-
} (reactRouterDom_min));
|
|
75155
|
-
|
|
75156
|
-
var DeleteAlert = function DeleteAlert(_ref) {
|
|
75157
|
-
var isOpen = _ref.isOpen,
|
|
75158
|
-
onClose = _ref.onClose,
|
|
75159
|
-
segment = _ref.segment,
|
|
75160
|
-
columns = _ref.columns;
|
|
75161
|
-
var _useTranslation = useTranslation(),
|
|
75162
|
-
t = _useTranslation.t;
|
|
75163
|
-
var history = reactRouterDom_min.useHistory();
|
|
75164
|
-
var _getQueryParams = getQueryParams(),
|
|
75165
|
-
segmentId = _getQueryParams.segmentId;
|
|
75166
|
-
var _useDestroySegment = useDestroySegment(),
|
|
75167
|
-
deleteSegment = _useDestroySegment.mutate,
|
|
75168
|
-
isDeleting = _useDestroySegment.isLoading;
|
|
75169
|
-
var handleClearAll = function handleClearAll() {
|
|
75170
|
-
var params = buildUrlFromFilters({
|
|
75171
|
-
columns: columns,
|
|
75172
|
-
filters: [],
|
|
75173
|
-
isClearAll: true
|
|
75174
|
-
});
|
|
75175
|
-
history.push({
|
|
75176
|
-
search: params
|
|
75177
|
-
});
|
|
75178
|
-
};
|
|
75179
|
-
var handleDelete = function handleDelete() {
|
|
75180
|
-
equals$1(segment.id, segmentId) && handleClearAll();
|
|
75181
|
-
deleteSegment(segment.id, {
|
|
75182
|
-
onSuccess: onClose
|
|
75183
|
-
});
|
|
75184
|
-
};
|
|
75185
|
-
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
75186
|
-
isOpen: isOpen,
|
|
75187
|
-
isSubmitting: isDeleting,
|
|
75188
|
-
message: t("segments.deleteAlertMessage", {
|
|
75189
|
-
entity: segment.name
|
|
75190
|
-
}),
|
|
75191
|
-
submitButtonLabel: t("common.proceed"),
|
|
75192
|
-
title: t("segments.deleteAlertTitle", {
|
|
75193
|
-
entity: segment.name
|
|
75194
|
-
}),
|
|
75195
|
-
onClose: onClose,
|
|
75196
|
-
onSubmit: handleDelete
|
|
75197
|
-
});
|
|
75198
|
-
};
|
|
75199
|
-
|
|
75200
|
-
var Card = function Card(_ref) {
|
|
75201
|
-
var segment = _ref.segment,
|
|
75202
|
-
columns = _ref.columns;
|
|
75203
|
-
var _useState = useState(false),
|
|
75204
|
-
_useState2 = _slicedToArray$2(_useState, 2),
|
|
75205
|
-
isEditing = _useState2[0],
|
|
75206
|
-
setIsEditing = _useState2[1];
|
|
75207
|
-
var _useState3 = useState(false),
|
|
75208
|
-
_useState4 = _slicedToArray$2(_useState3, 2),
|
|
75209
|
-
isDeleteAlertOpen = _useState4[0],
|
|
75210
|
-
setIsDeleteAlertOpen = _useState4[1];
|
|
75211
|
-
var _useTranslation = useTranslation(),
|
|
75212
|
-
t = _useTranslation.t;
|
|
75213
|
-
var Menu = Dropdown$2.Menu,
|
|
75214
|
-
MenuItem = Dropdown$2.MenuItem;
|
|
75215
|
-
var _useUpdateSegment = useUpdateSegment(),
|
|
75216
|
-
updateSegment = _useUpdateSegment.mutate;
|
|
75217
|
-
var handleRename = function handleRename(values) {
|
|
75218
|
-
return updateSegment({
|
|
75219
|
-
id: segment.id,
|
|
75220
|
-
payload: values
|
|
75221
|
-
}, {
|
|
75222
|
-
onSuccess: function onSuccess() {
|
|
75223
|
-
return setIsEditing(false);
|
|
75224
|
-
}
|
|
75225
|
-
});
|
|
75226
|
-
};
|
|
75227
|
-
return /*#__PURE__*/React__default.createElement(Form, {
|
|
75228
|
-
className: "flex w-full items-center justify-between rounded-md border p-2",
|
|
75229
|
-
formProps: {
|
|
75230
|
-
noValidate: true
|
|
75231
|
-
},
|
|
75232
|
-
formikProps: {
|
|
75233
|
-
initialValues: segment,
|
|
75234
|
-
validateOnChange: true,
|
|
75235
|
-
validateOnBlur: true,
|
|
75236
|
-
validationSchema: SEGMENT_VALIDATION_SCHEMA,
|
|
75237
|
-
onSubmit: handleRename
|
|
75238
|
-
}
|
|
75239
|
-
}, function (_ref2) {
|
|
75240
|
-
var resetForm = _ref2.resetForm;
|
|
75241
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isEditing ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(FormikInput, {
|
|
75242
|
-
autoFocus: true,
|
|
75243
|
-
nakedInput: true,
|
|
75244
|
-
name: "name",
|
|
75245
|
-
placeholder: t("segments.name")
|
|
75246
|
-
}), /*#__PURE__*/React__default.createElement(ActionBlock, {
|
|
75247
|
-
cancelButtonProps: {
|
|
75248
|
-
icon: Close,
|
|
75249
|
-
label: "",
|
|
75250
|
-
style: "text",
|
|
75251
|
-
disabled: !isEditing,
|
|
75252
|
-
onClick: function onClick() {
|
|
75253
|
-
return setIsEditing(false);
|
|
75254
|
-
}
|
|
75255
|
-
},
|
|
75256
|
-
submitButtonProps: {
|
|
75257
|
-
icon: Check,
|
|
75258
|
-
label: "",
|
|
75259
|
-
style: "text"
|
|
75260
|
-
}
|
|
75261
|
-
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
75262
|
-
style: "body2"
|
|
75263
|
-
}, segment.name), /*#__PURE__*/React__default.createElement(Dropdown$2, {
|
|
75264
|
-
buttonStyle: "text",
|
|
75265
|
-
icon: MenuHorizontal,
|
|
75266
|
-
size: "small"
|
|
75267
|
-
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
75268
|
-
onClick: function onClick() {
|
|
75269
|
-
setIsEditing(true);
|
|
75270
|
-
resetForm();
|
|
75271
|
-
}
|
|
75272
|
-
}, t("common.rename")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
75273
|
-
onClick: function onClick() {
|
|
75274
|
-
return setIsDeleteAlertOpen(true);
|
|
75275
|
-
}
|
|
75276
|
-
}, t("common.delete"))))), /*#__PURE__*/React__default.createElement(DeleteAlert, {
|
|
75277
|
-
columns: columns,
|
|
75278
|
-
isOpen: isDeleteAlertOpen,
|
|
75279
|
-
segment: segment,
|
|
75280
|
-
onClose: function onClose() {
|
|
75281
|
-
return setIsDeleteAlertOpen(false);
|
|
75282
|
-
}
|
|
75283
|
-
}));
|
|
75284
|
-
});
|
|
75285
|
-
};
|
|
75286
|
-
var Card$1 = /*#__PURE__*/React__default.memo(Card);
|
|
72638
|
+
var Card$1 = /*#__PURE__*/React__default.memo(Card);
|
|
75287
72639
|
|
|
75288
72640
|
var ManagePane = function ManagePane(_ref) {
|
|
75289
72641
|
var isOpen = _ref.isOpen,
|
|
@@ -75348,8 +72700,8 @@ var MenuBlocks = function MenuBlocks(_ref) {
|
|
|
75348
72700
|
_useState2 = _slicedToArray$2(_useState, 2),
|
|
75349
72701
|
showAll = _useState2[0],
|
|
75350
72702
|
setShowAll = _useState2[1];
|
|
75351
|
-
var location = useLocation
|
|
75352
|
-
var history = useHistory
|
|
72703
|
+
var location = useLocation();
|
|
72704
|
+
var history = useHistory();
|
|
75353
72705
|
var _useTranslation = useTranslation(),
|
|
75354
72706
|
t = _useTranslation.t;
|
|
75355
72707
|
var _Object$fromEntries = Object.fromEntries(new URLSearchParams(location.search)),
|