@vitessce/scatterplot 3.8.9 → 3.8.13
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/{deflate-B59Iec3_.js → deflate-CeYijgt6.js} +1 -1
- package/dist/{index-B9HtnmvK.js → index-DOJ0SQ9r.js} +603 -593
- package/dist/index.js +1 -1
- package/dist/{jpeg-BRLf1BFV.js → jpeg-9W5Yt9ZO.js} +1 -1
- package/dist/{lerc-Bm1LBCBR.js → lerc-6BpvcXOs.js} +1 -1
- package/dist/{lzw-DdQkXqbQ.js → lzw-B7vskPPs.js} +1 -1
- package/dist/{packbits-D7iShEMY.js → packbits-BPd00-mr.js} +1 -1
- package/dist/{raw-DAqPf4b8.js → raw-x7WjGrAR.js} +1 -1
- package/dist/{webimage-DVQqsXwn.js → webimage-BfG0h7pO.js} +1 -1
- package/dist-tsc/shared-spatial-scatterplot/dynamic-opacity.d.ts +44 -2
- package/dist-tsc/shared-spatial-scatterplot/dynamic-opacity.d.ts.map +1 -1
- package/dist-tsc/shared-spatial-scatterplot/dynamic-opacity.js +48 -6
- package/dist-tsc/shared-spatial-scatterplot/dynamic-opacity.test.js +27 -3
- package/package.json +8 -8
- package/src/shared-spatial-scatterplot/dynamic-opacity.js +60 -6
- package/src/shared-spatial-scatterplot/dynamic-opacity.test.js +32 -3
|
@@ -105941,22 +105941,22 @@ function addDecoder(cases, importFn) {
|
|
|
105941
105941
|
}
|
|
105942
105942
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
105943
105943
|
}
|
|
105944
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
105945
|
-
addDecoder(5, () => import("./lzw-
|
|
105944
|
+
addDecoder([void 0, 1], () => import("./raw-x7WjGrAR.js").then((m2) => m2.default));
|
|
105945
|
+
addDecoder(5, () => import("./lzw-B7vskPPs.js").then((m2) => m2.default));
|
|
105946
105946
|
addDecoder(6, () => {
|
|
105947
105947
|
throw new Error("old style JPEG compression is not supported.");
|
|
105948
105948
|
});
|
|
105949
|
-
addDecoder(7, () => import("./jpeg-
|
|
105950
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
105951
|
-
addDecoder(32773, () => import("./packbits-
|
|
105949
|
+
addDecoder(7, () => import("./jpeg-9W5Yt9ZO.js").then((m2) => m2.default));
|
|
105950
|
+
addDecoder([8, 32946], () => import("./deflate-CeYijgt6.js").then((m2) => m2.default));
|
|
105951
|
+
addDecoder(32773, () => import("./packbits-BPd00-mr.js").then((m2) => m2.default));
|
|
105952
105952
|
addDecoder(
|
|
105953
105953
|
34887,
|
|
105954
|
-
() => import("./lerc-
|
|
105954
|
+
() => import("./lerc-6BpvcXOs.js").then(async (m2) => {
|
|
105955
105955
|
await m2.zstd.init();
|
|
105956
105956
|
return m2;
|
|
105957
105957
|
}).then((m2) => m2.default)
|
|
105958
105958
|
);
|
|
105959
|
-
addDecoder(50001, () => import("./webimage-
|
|
105959
|
+
addDecoder(50001, () => import("./webimage-BfG0h7pO.js").then((m2) => m2.default));
|
|
105960
105960
|
function decodeRowAcc(row, stride) {
|
|
105961
105961
|
let length2 = row.length - stride;
|
|
105962
105962
|
let offset2 = 0;
|
|
@@ -131142,11 +131142,6 @@ const { tss } = createTss({
|
|
|
131142
131142
|
"usePlugin": useMuiThemeStyleOverridesPlugin
|
|
131143
131143
|
});
|
|
131144
131144
|
const useStyles$3 = tss.create({});
|
|
131145
|
-
function chainPropTypes(propType1, propType2) {
|
|
131146
|
-
return function validate2(...args) {
|
|
131147
|
-
return propType1(...args) || propType2(...args);
|
|
131148
|
-
};
|
|
131149
|
-
}
|
|
131150
131145
|
const memoTheme = unstable_memoTheme;
|
|
131151
131146
|
({
|
|
131152
131147
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -131165,413 +131160,87 @@ const memoTheme = unstable_memoTheme;
|
|
|
131165
131160
|
function useDefaultProps(params) {
|
|
131166
131161
|
return useDefaultProps$1(params);
|
|
131167
131162
|
}
|
|
131168
|
-
function
|
|
131169
|
-
return
|
|
131170
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
131171
|
-
var t = arguments[e2];
|
|
131172
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
131173
|
-
}
|
|
131174
|
-
return n2;
|
|
131175
|
-
}, _extends$1.apply(null, arguments);
|
|
131176
|
-
}
|
|
131177
|
-
function _objectWithoutPropertiesLoose(r2, e2) {
|
|
131178
|
-
if (null == r2) return {};
|
|
131179
|
-
var t = {};
|
|
131180
|
-
for (var n2 in r2) if ({}.hasOwnProperty.call(r2, n2)) {
|
|
131181
|
-
if (-1 !== e2.indexOf(n2)) continue;
|
|
131182
|
-
t[n2] = r2[n2];
|
|
131183
|
-
}
|
|
131184
|
-
return t;
|
|
131185
|
-
}
|
|
131186
|
-
function _setPrototypeOf(t, e2) {
|
|
131187
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
|
|
131188
|
-
return t2.__proto__ = e3, t2;
|
|
131189
|
-
}, _setPrototypeOf(t, e2);
|
|
131190
|
-
}
|
|
131191
|
-
function _inheritsLoose(t, o2) {
|
|
131192
|
-
t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
|
|
131193
|
-
}
|
|
131194
|
-
const TransitionGroupContext = React__default.createContext(null);
|
|
131195
|
-
function _assertThisInitialized(e2) {
|
|
131196
|
-
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
131197
|
-
return e2;
|
|
131163
|
+
function getSvgIconUtilityClass(slot) {
|
|
131164
|
+
return generateUtilityClass("MuiSvgIcon", slot);
|
|
131198
131165
|
}
|
|
131199
|
-
|
|
131200
|
-
|
|
131201
|
-
|
|
131166
|
+
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
131167
|
+
const useUtilityClasses$7 = (ownerState) => {
|
|
131168
|
+
const {
|
|
131169
|
+
color: color2,
|
|
131170
|
+
fontSize,
|
|
131171
|
+
classes
|
|
131172
|
+
} = ownerState;
|
|
131173
|
+
const slots = {
|
|
131174
|
+
root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
|
|
131202
131175
|
};
|
|
131203
|
-
|
|
131204
|
-
if (children) Children.map(children, function(c2) {
|
|
131205
|
-
return c2;
|
|
131206
|
-
}).forEach(function(child) {
|
|
131207
|
-
result[child.key] = mapper(child);
|
|
131208
|
-
});
|
|
131209
|
-
return result;
|
|
131210
|
-
}
|
|
131211
|
-
function mergeChildMappings(prev2, next2) {
|
|
131212
|
-
prev2 = prev2 || {};
|
|
131213
|
-
next2 = next2 || {};
|
|
131214
|
-
function getValueForKey(key) {
|
|
131215
|
-
return key in next2 ? next2[key] : prev2[key];
|
|
131216
|
-
}
|
|
131217
|
-
var nextKeysPending = /* @__PURE__ */ Object.create(null);
|
|
131218
|
-
var pendingKeys = [];
|
|
131219
|
-
for (var prevKey in prev2) {
|
|
131220
|
-
if (prevKey in next2) {
|
|
131221
|
-
if (pendingKeys.length) {
|
|
131222
|
-
nextKeysPending[prevKey] = pendingKeys;
|
|
131223
|
-
pendingKeys = [];
|
|
131224
|
-
}
|
|
131225
|
-
} else {
|
|
131226
|
-
pendingKeys.push(prevKey);
|
|
131227
|
-
}
|
|
131228
|
-
}
|
|
131229
|
-
var i2;
|
|
131230
|
-
var childMapping = {};
|
|
131231
|
-
for (var nextKey in next2) {
|
|
131232
|
-
if (nextKeysPending[nextKey]) {
|
|
131233
|
-
for (i2 = 0; i2 < nextKeysPending[nextKey].length; i2++) {
|
|
131234
|
-
var pendingNextKey = nextKeysPending[nextKey][i2];
|
|
131235
|
-
childMapping[nextKeysPending[nextKey][i2]] = getValueForKey(pendingNextKey);
|
|
131236
|
-
}
|
|
131237
|
-
}
|
|
131238
|
-
childMapping[nextKey] = getValueForKey(nextKey);
|
|
131239
|
-
}
|
|
131240
|
-
for (i2 = 0; i2 < pendingKeys.length; i2++) {
|
|
131241
|
-
childMapping[pendingKeys[i2]] = getValueForKey(pendingKeys[i2]);
|
|
131242
|
-
}
|
|
131243
|
-
return childMapping;
|
|
131244
|
-
}
|
|
131245
|
-
function getProp(child, prop, props) {
|
|
131246
|
-
return props[prop] != null ? props[prop] : child.props[prop];
|
|
131247
|
-
}
|
|
131248
|
-
function getInitialChildMapping(props, onExited) {
|
|
131249
|
-
return getChildMapping(props.children, function(child) {
|
|
131250
|
-
return cloneElement(child, {
|
|
131251
|
-
onExited: onExited.bind(null, child),
|
|
131252
|
-
in: true,
|
|
131253
|
-
appear: getProp(child, "appear", props),
|
|
131254
|
-
enter: getProp(child, "enter", props),
|
|
131255
|
-
exit: getProp(child, "exit", props)
|
|
131256
|
-
});
|
|
131257
|
-
});
|
|
131258
|
-
}
|
|
131259
|
-
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
131260
|
-
var nextChildMapping = getChildMapping(nextProps.children);
|
|
131261
|
-
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
131262
|
-
Object.keys(children).forEach(function(key) {
|
|
131263
|
-
var child = children[key];
|
|
131264
|
-
if (!isValidElement(child)) return;
|
|
131265
|
-
var hasPrev = key in prevChildMapping;
|
|
131266
|
-
var hasNext = key in nextChildMapping;
|
|
131267
|
-
var prevChild = prevChildMapping[key];
|
|
131268
|
-
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
131269
|
-
if (hasNext && (!hasPrev || isLeaving)) {
|
|
131270
|
-
children[key] = cloneElement(child, {
|
|
131271
|
-
onExited: onExited.bind(null, child),
|
|
131272
|
-
in: true,
|
|
131273
|
-
exit: getProp(child, "exit", nextProps),
|
|
131274
|
-
enter: getProp(child, "enter", nextProps)
|
|
131275
|
-
});
|
|
131276
|
-
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
131277
|
-
children[key] = cloneElement(child, {
|
|
131278
|
-
in: false
|
|
131279
|
-
});
|
|
131280
|
-
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
131281
|
-
children[key] = cloneElement(child, {
|
|
131282
|
-
onExited: onExited.bind(null, child),
|
|
131283
|
-
in: prevChild.props.in,
|
|
131284
|
-
exit: getProp(child, "exit", nextProps),
|
|
131285
|
-
enter: getProp(child, "enter", nextProps)
|
|
131286
|
-
});
|
|
131287
|
-
}
|
|
131288
|
-
});
|
|
131289
|
-
return children;
|
|
131290
|
-
}
|
|
131291
|
-
var values = Object.values || function(obj) {
|
|
131292
|
-
return Object.keys(obj).map(function(k) {
|
|
131293
|
-
return obj[k];
|
|
131294
|
-
});
|
|
131176
|
+
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
131295
131177
|
};
|
|
131296
|
-
|
|
131297
|
-
|
|
131298
|
-
|
|
131299
|
-
|
|
131178
|
+
const SvgIconRoot = styled("svg", {
|
|
131179
|
+
name: "MuiSvgIcon",
|
|
131180
|
+
slot: "Root",
|
|
131181
|
+
overridesResolver: (props, styles) => {
|
|
131182
|
+
const {
|
|
131183
|
+
ownerState
|
|
131184
|
+
} = props;
|
|
131185
|
+
return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
131300
131186
|
}
|
|
131301
|
-
}
|
|
131302
|
-
|
|
131303
|
-
|
|
131304
|
-
|
|
131305
|
-
|
|
131306
|
-
|
|
131307
|
-
|
|
131308
|
-
|
|
131309
|
-
|
|
131310
|
-
|
|
131187
|
+
})(memoTheme(({
|
|
131188
|
+
theme
|
|
131189
|
+
}) => {
|
|
131190
|
+
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
131191
|
+
return {
|
|
131192
|
+
userSelect: "none",
|
|
131193
|
+
width: "1em",
|
|
131194
|
+
height: "1em",
|
|
131195
|
+
display: "inline-block",
|
|
131196
|
+
flexShrink: 0,
|
|
131197
|
+
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
131198
|
+
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
131199
|
+
}),
|
|
131200
|
+
variants: [
|
|
131201
|
+
{
|
|
131202
|
+
props: (props) => !props.hasSvgAsChild,
|
|
131203
|
+
style: {
|
|
131204
|
+
// the <svg> will define the property that has `currentColor`
|
|
131205
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
131206
|
+
fill: "currentColor"
|
|
131207
|
+
}
|
|
131311
131208
|
},
|
|
131312
|
-
|
|
131313
|
-
|
|
131314
|
-
|
|
131315
|
-
|
|
131316
|
-
|
|
131317
|
-
|
|
131318
|
-
|
|
131319
|
-
|
|
131320
|
-
|
|
131321
|
-
|
|
131322
|
-
|
|
131323
|
-
|
|
131324
|
-
|
|
131325
|
-
|
|
131326
|
-
|
|
131327
|
-
|
|
131328
|
-
|
|
131329
|
-
|
|
131330
|
-
|
|
131331
|
-
|
|
131332
|
-
|
|
131333
|
-
|
|
131334
|
-
|
|
131335
|
-
|
|
131336
|
-
|
|
131337
|
-
|
|
131338
|
-
|
|
131339
|
-
|
|
131340
|
-
|
|
131341
|
-
|
|
131342
|
-
|
|
131343
|
-
|
|
131344
|
-
|
|
131345
|
-
|
|
131346
|
-
|
|
131347
|
-
children
|
|
131348
|
-
};
|
|
131349
|
-
});
|
|
131350
|
-
}
|
|
131351
|
-
};
|
|
131352
|
-
_proto.render = function render() {
|
|
131353
|
-
var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
131354
|
-
var contextValue = this.state.contextValue;
|
|
131355
|
-
var children = values(this.state.children).map(childFactory2);
|
|
131356
|
-
delete props.appear;
|
|
131357
|
-
delete props.enter;
|
|
131358
|
-
delete props.exit;
|
|
131359
|
-
if (Component2 === null) {
|
|
131360
|
-
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
131361
|
-
value: contextValue
|
|
131362
|
-
}, children);
|
|
131363
|
-
}
|
|
131364
|
-
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
131365
|
-
value: contextValue
|
|
131366
|
-
}, /* @__PURE__ */ React__default.createElement(Component2, props, children));
|
|
131367
|
-
};
|
|
131368
|
-
return TransitionGroup2;
|
|
131369
|
-
}(React__default.Component);
|
|
131370
|
-
TransitionGroup.propTypes = {
|
|
131371
|
-
/**
|
|
131372
|
-
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
131373
|
-
* behavior by providing a `component` prop.
|
|
131374
|
-
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
131375
|
-
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
131376
|
-
* borks your css styles.
|
|
131377
|
-
*/
|
|
131378
|
-
component: PropTypes.any,
|
|
131379
|
-
/**
|
|
131380
|
-
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
131381
|
-
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
131382
|
-
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
131383
|
-
* with our `<Fade>` example.
|
|
131384
|
-
*
|
|
131385
|
-
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
131386
|
-
* children, sometimes you may want to have a single transition child with
|
|
131387
|
-
* content that you want to be transitioned out and in when you change it
|
|
131388
|
-
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
131389
|
-
* the transition child as you change its content, this will cause
|
|
131390
|
-
* `TransitionGroup` to transition the child out and back in.
|
|
131391
|
-
*/
|
|
131392
|
-
children: PropTypes.node,
|
|
131393
|
-
/**
|
|
131394
|
-
* A convenience prop that enables or disables appear animations
|
|
131395
|
-
* for all children. Note that specifying this will override any defaults set
|
|
131396
|
-
* on individual children Transitions.
|
|
131397
|
-
*/
|
|
131398
|
-
appear: PropTypes.bool,
|
|
131399
|
-
/**
|
|
131400
|
-
* A convenience prop that enables or disables enter animations
|
|
131401
|
-
* for all children. Note that specifying this will override any defaults set
|
|
131402
|
-
* on individual children Transitions.
|
|
131403
|
-
*/
|
|
131404
|
-
enter: PropTypes.bool,
|
|
131405
|
-
/**
|
|
131406
|
-
* A convenience prop that enables or disables exit animations
|
|
131407
|
-
* for all children. Note that specifying this will override any defaults set
|
|
131408
|
-
* on individual children Transitions.
|
|
131409
|
-
*/
|
|
131410
|
-
exit: PropTypes.bool,
|
|
131411
|
-
/**
|
|
131412
|
-
* You may need to apply reactive updates to a child as it is exiting.
|
|
131413
|
-
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
131414
|
-
* child the element has already been removed and not accessible to the consumer.
|
|
131415
|
-
*
|
|
131416
|
-
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
131417
|
-
* to wrap every child, even the ones that are leaving.
|
|
131418
|
-
*
|
|
131419
|
-
* @type Function(child: ReactElement) -> ReactElement
|
|
131420
|
-
*/
|
|
131421
|
-
childFactory: PropTypes.func
|
|
131422
|
-
};
|
|
131423
|
-
TransitionGroup.defaultProps = defaultProps;
|
|
131424
|
-
const UNINITIALIZED = {};
|
|
131425
|
-
function useLazyRef(init, initArg) {
|
|
131426
|
-
const ref = React.useRef(UNINITIALIZED);
|
|
131427
|
-
if (ref.current === UNINITIALIZED) {
|
|
131428
|
-
ref.current = init(initArg);
|
|
131429
|
-
}
|
|
131430
|
-
return ref;
|
|
131431
|
-
}
|
|
131432
|
-
const EMPTY = [];
|
|
131433
|
-
function useOnMount(fn) {
|
|
131434
|
-
React.useEffect(fn, EMPTY);
|
|
131435
|
-
}
|
|
131436
|
-
class Timeout {
|
|
131437
|
-
constructor() {
|
|
131438
|
-
__publicField(this, "currentId", null);
|
|
131439
|
-
__publicField(this, "clear", () => {
|
|
131440
|
-
if (this.currentId !== null) {
|
|
131441
|
-
clearTimeout(this.currentId);
|
|
131442
|
-
this.currentId = null;
|
|
131443
|
-
}
|
|
131444
|
-
});
|
|
131445
|
-
__publicField(this, "disposeEffect", () => {
|
|
131446
|
-
return this.clear;
|
|
131447
|
-
});
|
|
131448
|
-
}
|
|
131449
|
-
static create() {
|
|
131450
|
-
return new Timeout();
|
|
131451
|
-
}
|
|
131452
|
-
/**
|
|
131453
|
-
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
131454
|
-
*/
|
|
131455
|
-
start(delay, fn) {
|
|
131456
|
-
this.clear();
|
|
131457
|
-
this.currentId = setTimeout(() => {
|
|
131458
|
-
this.currentId = null;
|
|
131459
|
-
fn();
|
|
131460
|
-
}, delay);
|
|
131461
|
-
}
|
|
131462
|
-
}
|
|
131463
|
-
function useTimeout() {
|
|
131464
|
-
const timeout2 = useLazyRef(Timeout.create).current;
|
|
131465
|
-
useOnMount(timeout2.disposeEffect);
|
|
131466
|
-
return timeout2;
|
|
131467
|
-
}
|
|
131468
|
-
function isClassComponent(elementType) {
|
|
131469
|
-
const {
|
|
131470
|
-
prototype = {}
|
|
131471
|
-
} = elementType;
|
|
131472
|
-
return Boolean(prototype.isReactComponent);
|
|
131473
|
-
}
|
|
131474
|
-
function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
|
|
131475
|
-
const propValue = props[propName];
|
|
131476
|
-
const safePropName = propFullName || propName;
|
|
131477
|
-
if (propValue == null || // When server-side rendering React doesn't warn either.
|
|
131478
|
-
// This is not an accurate check for SSR.
|
|
131479
|
-
// This is only in place for emotion compat.
|
|
131480
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
131481
|
-
typeof window === "undefined") {
|
|
131482
|
-
return null;
|
|
131483
|
-
}
|
|
131484
|
-
let warningHint;
|
|
131485
|
-
if (typeof propValue === "function" && !isClassComponent(propValue)) {
|
|
131486
|
-
warningHint = "Did you accidentally provide a plain function component instead?";
|
|
131487
|
-
}
|
|
131488
|
-
if (warningHint !== void 0) {
|
|
131489
|
-
return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
|
|
131490
|
-
}
|
|
131491
|
-
return null;
|
|
131492
|
-
}
|
|
131493
|
-
const elementTypeAcceptingRef$1 = chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);
|
|
131494
|
-
function getSvgIconUtilityClass(slot) {
|
|
131495
|
-
return generateUtilityClass("MuiSvgIcon", slot);
|
|
131496
|
-
}
|
|
131497
|
-
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
131498
|
-
const useUtilityClasses$7 = (ownerState) => {
|
|
131499
|
-
const {
|
|
131500
|
-
color: color2,
|
|
131501
|
-
fontSize,
|
|
131502
|
-
classes
|
|
131503
|
-
} = ownerState;
|
|
131504
|
-
const slots = {
|
|
131505
|
-
root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
|
|
131506
|
-
};
|
|
131507
|
-
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
131508
|
-
};
|
|
131509
|
-
const SvgIconRoot = styled("svg", {
|
|
131510
|
-
name: "MuiSvgIcon",
|
|
131511
|
-
slot: "Root",
|
|
131512
|
-
overridesResolver: (props, styles) => {
|
|
131513
|
-
const {
|
|
131514
|
-
ownerState
|
|
131515
|
-
} = props;
|
|
131516
|
-
return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
131517
|
-
}
|
|
131518
|
-
})(memoTheme(({
|
|
131519
|
-
theme
|
|
131520
|
-
}) => {
|
|
131521
|
-
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
131522
|
-
return {
|
|
131523
|
-
userSelect: "none",
|
|
131524
|
-
width: "1em",
|
|
131525
|
-
height: "1em",
|
|
131526
|
-
display: "inline-block",
|
|
131527
|
-
flexShrink: 0,
|
|
131528
|
-
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
131529
|
-
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
131530
|
-
}),
|
|
131531
|
-
variants: [
|
|
131532
|
-
{
|
|
131533
|
-
props: (props) => !props.hasSvgAsChild,
|
|
131534
|
-
style: {
|
|
131535
|
-
// the <svg> will define the property that has `currentColor`
|
|
131536
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
131537
|
-
fill: "currentColor"
|
|
131538
|
-
}
|
|
131539
|
-
},
|
|
131540
|
-
{
|
|
131541
|
-
props: {
|
|
131542
|
-
fontSize: "inherit"
|
|
131543
|
-
},
|
|
131544
|
-
style: {
|
|
131545
|
-
fontSize: "inherit"
|
|
131546
|
-
}
|
|
131547
|
-
},
|
|
131548
|
-
{
|
|
131549
|
-
props: {
|
|
131550
|
-
fontSize: "small"
|
|
131551
|
-
},
|
|
131552
|
-
style: {
|
|
131553
|
-
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
131554
|
-
}
|
|
131555
|
-
},
|
|
131556
|
-
{
|
|
131557
|
-
props: {
|
|
131558
|
-
fontSize: "medium"
|
|
131559
|
-
},
|
|
131560
|
-
style: {
|
|
131561
|
-
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
131562
|
-
}
|
|
131563
|
-
},
|
|
131564
|
-
{
|
|
131565
|
-
props: {
|
|
131566
|
-
fontSize: "large"
|
|
131567
|
-
},
|
|
131568
|
-
style: {
|
|
131569
|
-
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
131570
|
-
}
|
|
131571
|
-
},
|
|
131572
|
-
// TODO v5 deprecate color prop, v6 remove for sx
|
|
131573
|
-
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
131574
|
-
var _a4, _b3;
|
|
131209
|
+
{
|
|
131210
|
+
props: {
|
|
131211
|
+
fontSize: "inherit"
|
|
131212
|
+
},
|
|
131213
|
+
style: {
|
|
131214
|
+
fontSize: "inherit"
|
|
131215
|
+
}
|
|
131216
|
+
},
|
|
131217
|
+
{
|
|
131218
|
+
props: {
|
|
131219
|
+
fontSize: "small"
|
|
131220
|
+
},
|
|
131221
|
+
style: {
|
|
131222
|
+
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
131223
|
+
}
|
|
131224
|
+
},
|
|
131225
|
+
{
|
|
131226
|
+
props: {
|
|
131227
|
+
fontSize: "medium"
|
|
131228
|
+
},
|
|
131229
|
+
style: {
|
|
131230
|
+
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
131231
|
+
}
|
|
131232
|
+
},
|
|
131233
|
+
{
|
|
131234
|
+
props: {
|
|
131235
|
+
fontSize: "large"
|
|
131236
|
+
},
|
|
131237
|
+
style: {
|
|
131238
|
+
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
131239
|
+
}
|
|
131240
|
+
},
|
|
131241
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
131242
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
131243
|
+
var _a4, _b3;
|
|
131575
131244
|
return {
|
|
131576
131245
|
props: {
|
|
131577
131246
|
color: color2
|
|
@@ -131712,201 +131381,532 @@ SvgIcon.propTypes = {
|
|
|
131712
131381
|
*/
|
|
131713
131382
|
shapeRendering: PropTypes.string,
|
|
131714
131383
|
/**
|
|
131715
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
131384
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
131385
|
+
*/
|
|
131386
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
131387
|
+
/**
|
|
131388
|
+
* Provides a human-readable title for the element that contains it.
|
|
131389
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
131390
|
+
*/
|
|
131391
|
+
titleAccess: PropTypes.string,
|
|
131392
|
+
/**
|
|
131393
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
131394
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
131395
|
+
* and you pass viewBox="0 0 50 20",
|
|
131396
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
131397
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
131398
|
+
* @default '0 0 24 24'
|
|
131399
|
+
*/
|
|
131400
|
+
viewBox: PropTypes.string
|
|
131401
|
+
};
|
|
131402
|
+
SvgIcon.muiName = "SvgIcon";
|
|
131403
|
+
function createSvgIcon(path, displayName) {
|
|
131404
|
+
function Component2(props, ref) {
|
|
131405
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
|
|
131406
|
+
"data-testid": `${displayName}Icon`,
|
|
131407
|
+
ref,
|
|
131408
|
+
...props,
|
|
131409
|
+
children: path
|
|
131410
|
+
});
|
|
131411
|
+
}
|
|
131412
|
+
{
|
|
131413
|
+
Component2.displayName = `${displayName}Icon`;
|
|
131414
|
+
}
|
|
131415
|
+
Component2.muiName = SvgIcon.muiName;
|
|
131416
|
+
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
131417
|
+
}
|
|
131418
|
+
function ownerDocument(node2) {
|
|
131419
|
+
return node2 && node2.ownerDocument || document;
|
|
131420
|
+
}
|
|
131421
|
+
function setRef$1(ref, value) {
|
|
131422
|
+
if (typeof ref === "function") {
|
|
131423
|
+
ref(value);
|
|
131424
|
+
} else if (ref) {
|
|
131425
|
+
ref.current = value;
|
|
131426
|
+
}
|
|
131427
|
+
}
|
|
131428
|
+
function useControlled(props) {
|
|
131429
|
+
const {
|
|
131430
|
+
controlled,
|
|
131431
|
+
default: defaultProp,
|
|
131432
|
+
name: name2,
|
|
131433
|
+
state = "value"
|
|
131434
|
+
} = props;
|
|
131435
|
+
const {
|
|
131436
|
+
current: isControlled
|
|
131437
|
+
} = React.useRef(controlled !== void 0);
|
|
131438
|
+
const [valueState, setValue] = React.useState(defaultProp);
|
|
131439
|
+
const value = isControlled ? controlled : valueState;
|
|
131440
|
+
{
|
|
131441
|
+
React.useEffect(() => {
|
|
131442
|
+
if (isControlled !== (controlled !== void 0)) {
|
|
131443
|
+
console.error([`MUI: A component is changing the ${isControlled ? "" : "un"}controlled ${state} state of ${name2} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name2} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
|
|
131444
|
+
}
|
|
131445
|
+
}, [state, name2, controlled]);
|
|
131446
|
+
const {
|
|
131447
|
+
current: defaultValue2
|
|
131448
|
+
} = React.useRef(defaultProp);
|
|
131449
|
+
React.useEffect(() => {
|
|
131450
|
+
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
131451
|
+
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name2} after being initialized. To suppress this warning opt to use a controlled ${name2}.`].join("\n"));
|
|
131452
|
+
}
|
|
131453
|
+
}, [JSON.stringify(defaultProp)]);
|
|
131454
|
+
}
|
|
131455
|
+
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
131456
|
+
if (!isControlled) {
|
|
131457
|
+
setValue(newValue);
|
|
131458
|
+
}
|
|
131459
|
+
}, []);
|
|
131460
|
+
return [value, setValueIfUncontrolled];
|
|
131461
|
+
}
|
|
131462
|
+
function useEventCallback(fn) {
|
|
131463
|
+
const ref = React.useRef(fn);
|
|
131464
|
+
useEnhancedEffect$1(() => {
|
|
131465
|
+
ref.current = fn;
|
|
131466
|
+
});
|
|
131467
|
+
return React.useRef((...args) => (
|
|
131468
|
+
// @ts-expect-error hide `this`
|
|
131469
|
+
(0, ref.current)(...args)
|
|
131470
|
+
)).current;
|
|
131471
|
+
}
|
|
131472
|
+
function useForkRef$1(...refs) {
|
|
131473
|
+
const cleanupRef = React.useRef(void 0);
|
|
131474
|
+
const refEffect = React.useCallback((instance) => {
|
|
131475
|
+
const cleanups = refs.map((ref) => {
|
|
131476
|
+
if (ref == null) {
|
|
131477
|
+
return null;
|
|
131478
|
+
}
|
|
131479
|
+
if (typeof ref === "function") {
|
|
131480
|
+
const refCallback = ref;
|
|
131481
|
+
const refCleanup = refCallback(instance);
|
|
131482
|
+
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
131483
|
+
refCallback(null);
|
|
131484
|
+
};
|
|
131485
|
+
}
|
|
131486
|
+
ref.current = instance;
|
|
131487
|
+
return () => {
|
|
131488
|
+
ref.current = null;
|
|
131489
|
+
};
|
|
131490
|
+
});
|
|
131491
|
+
return () => {
|
|
131492
|
+
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
131493
|
+
};
|
|
131494
|
+
}, refs);
|
|
131495
|
+
return React.useMemo(() => {
|
|
131496
|
+
if (refs.every((ref) => ref == null)) {
|
|
131497
|
+
return null;
|
|
131498
|
+
}
|
|
131499
|
+
return (value) => {
|
|
131500
|
+
if (cleanupRef.current) {
|
|
131501
|
+
cleanupRef.current();
|
|
131502
|
+
cleanupRef.current = void 0;
|
|
131503
|
+
}
|
|
131504
|
+
if (value != null) {
|
|
131505
|
+
cleanupRef.current = refEffect(value);
|
|
131506
|
+
}
|
|
131507
|
+
};
|
|
131508
|
+
}, refs);
|
|
131509
|
+
}
|
|
131510
|
+
function isEventHandler(key, value) {
|
|
131511
|
+
const thirdCharCode = key.charCodeAt(2);
|
|
131512
|
+
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
|
131513
|
+
}
|
|
131514
|
+
function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
131515
|
+
if (!externalSlotProps) {
|
|
131516
|
+
return defaultSlotProps;
|
|
131517
|
+
}
|
|
131518
|
+
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
|
131519
|
+
const handlers2 = {};
|
|
131520
|
+
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
|
131521
|
+
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
131522
|
+
handlers2[key] = (...args) => {
|
|
131523
|
+
externalSlotPropsValue[key](...args);
|
|
131524
|
+
defaultSlotPropsValue[key](...args);
|
|
131525
|
+
};
|
|
131526
|
+
}
|
|
131527
|
+
});
|
|
131528
|
+
return handlers2;
|
|
131529
|
+
}
|
|
131530
|
+
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") {
|
|
131531
|
+
return (ownerState) => {
|
|
131532
|
+
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
131533
|
+
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
131534
|
+
...ownerState,
|
|
131535
|
+
...defaultSlotPropsValue
|
|
131536
|
+
}) : externalSlotProps;
|
|
131537
|
+
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
131538
|
+
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
131539
|
+
return {
|
|
131540
|
+
...defaultSlotPropsValue,
|
|
131541
|
+
...externalSlotPropsValue,
|
|
131542
|
+
...handlers2,
|
|
131543
|
+
...!!className2 && {
|
|
131544
|
+
className: className2
|
|
131545
|
+
},
|
|
131546
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
131547
|
+
style: {
|
|
131548
|
+
...defaultSlotPropsValue.style,
|
|
131549
|
+
...externalSlotPropsValue.style
|
|
131550
|
+
}
|
|
131551
|
+
},
|
|
131552
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
131553
|
+
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
131554
|
+
}
|
|
131555
|
+
};
|
|
131556
|
+
};
|
|
131557
|
+
}
|
|
131558
|
+
const typedDefaultSlotProps = defaultSlotProps;
|
|
131559
|
+
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
131560
|
+
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
131561
|
+
return {
|
|
131562
|
+
...defaultSlotProps,
|
|
131563
|
+
...externalSlotProps,
|
|
131564
|
+
...handlers,
|
|
131565
|
+
...!!className && {
|
|
131566
|
+
className
|
|
131567
|
+
},
|
|
131568
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
131569
|
+
style: {
|
|
131570
|
+
...typedDefaultSlotProps.style,
|
|
131571
|
+
...externalSlotProps.style
|
|
131572
|
+
}
|
|
131573
|
+
},
|
|
131574
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
131575
|
+
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
131576
|
+
}
|
|
131577
|
+
};
|
|
131578
|
+
}
|
|
131579
|
+
function chainPropTypes(propType1, propType2) {
|
|
131580
|
+
return function validate2(...args) {
|
|
131581
|
+
return propType1(...args) || propType2(...args);
|
|
131582
|
+
};
|
|
131583
|
+
}
|
|
131584
|
+
function _extends$1() {
|
|
131585
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
131586
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
131587
|
+
var t = arguments[e2];
|
|
131588
|
+
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
131589
|
+
}
|
|
131590
|
+
return n2;
|
|
131591
|
+
}, _extends$1.apply(null, arguments);
|
|
131592
|
+
}
|
|
131593
|
+
function _objectWithoutPropertiesLoose(r2, e2) {
|
|
131594
|
+
if (null == r2) return {};
|
|
131595
|
+
var t = {};
|
|
131596
|
+
for (var n2 in r2) if ({}.hasOwnProperty.call(r2, n2)) {
|
|
131597
|
+
if (-1 !== e2.indexOf(n2)) continue;
|
|
131598
|
+
t[n2] = r2[n2];
|
|
131599
|
+
}
|
|
131600
|
+
return t;
|
|
131601
|
+
}
|
|
131602
|
+
function _setPrototypeOf(t, e2) {
|
|
131603
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
|
|
131604
|
+
return t2.__proto__ = e3, t2;
|
|
131605
|
+
}, _setPrototypeOf(t, e2);
|
|
131606
|
+
}
|
|
131607
|
+
function _inheritsLoose(t, o2) {
|
|
131608
|
+
t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
|
|
131609
|
+
}
|
|
131610
|
+
const TransitionGroupContext = React__default.createContext(null);
|
|
131611
|
+
function _assertThisInitialized(e2) {
|
|
131612
|
+
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
131613
|
+
return e2;
|
|
131614
|
+
}
|
|
131615
|
+
function getChildMapping(children, mapFn) {
|
|
131616
|
+
var mapper = function mapper2(child) {
|
|
131617
|
+
return mapFn && isValidElement(child) ? mapFn(child) : child;
|
|
131618
|
+
};
|
|
131619
|
+
var result = /* @__PURE__ */ Object.create(null);
|
|
131620
|
+
if (children) Children.map(children, function(c2) {
|
|
131621
|
+
return c2;
|
|
131622
|
+
}).forEach(function(child) {
|
|
131623
|
+
result[child.key] = mapper(child);
|
|
131624
|
+
});
|
|
131625
|
+
return result;
|
|
131626
|
+
}
|
|
131627
|
+
function mergeChildMappings(prev2, next2) {
|
|
131628
|
+
prev2 = prev2 || {};
|
|
131629
|
+
next2 = next2 || {};
|
|
131630
|
+
function getValueForKey(key) {
|
|
131631
|
+
return key in next2 ? next2[key] : prev2[key];
|
|
131632
|
+
}
|
|
131633
|
+
var nextKeysPending = /* @__PURE__ */ Object.create(null);
|
|
131634
|
+
var pendingKeys = [];
|
|
131635
|
+
for (var prevKey in prev2) {
|
|
131636
|
+
if (prevKey in next2) {
|
|
131637
|
+
if (pendingKeys.length) {
|
|
131638
|
+
nextKeysPending[prevKey] = pendingKeys;
|
|
131639
|
+
pendingKeys = [];
|
|
131640
|
+
}
|
|
131641
|
+
} else {
|
|
131642
|
+
pendingKeys.push(prevKey);
|
|
131643
|
+
}
|
|
131644
|
+
}
|
|
131645
|
+
var i2;
|
|
131646
|
+
var childMapping = {};
|
|
131647
|
+
for (var nextKey in next2) {
|
|
131648
|
+
if (nextKeysPending[nextKey]) {
|
|
131649
|
+
for (i2 = 0; i2 < nextKeysPending[nextKey].length; i2++) {
|
|
131650
|
+
var pendingNextKey = nextKeysPending[nextKey][i2];
|
|
131651
|
+
childMapping[nextKeysPending[nextKey][i2]] = getValueForKey(pendingNextKey);
|
|
131652
|
+
}
|
|
131653
|
+
}
|
|
131654
|
+
childMapping[nextKey] = getValueForKey(nextKey);
|
|
131655
|
+
}
|
|
131656
|
+
for (i2 = 0; i2 < pendingKeys.length; i2++) {
|
|
131657
|
+
childMapping[pendingKeys[i2]] = getValueForKey(pendingKeys[i2]);
|
|
131658
|
+
}
|
|
131659
|
+
return childMapping;
|
|
131660
|
+
}
|
|
131661
|
+
function getProp(child, prop, props) {
|
|
131662
|
+
return props[prop] != null ? props[prop] : child.props[prop];
|
|
131663
|
+
}
|
|
131664
|
+
function getInitialChildMapping(props, onExited) {
|
|
131665
|
+
return getChildMapping(props.children, function(child) {
|
|
131666
|
+
return cloneElement(child, {
|
|
131667
|
+
onExited: onExited.bind(null, child),
|
|
131668
|
+
in: true,
|
|
131669
|
+
appear: getProp(child, "appear", props),
|
|
131670
|
+
enter: getProp(child, "enter", props),
|
|
131671
|
+
exit: getProp(child, "exit", props)
|
|
131672
|
+
});
|
|
131673
|
+
});
|
|
131674
|
+
}
|
|
131675
|
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
131676
|
+
var nextChildMapping = getChildMapping(nextProps.children);
|
|
131677
|
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
131678
|
+
Object.keys(children).forEach(function(key) {
|
|
131679
|
+
var child = children[key];
|
|
131680
|
+
if (!isValidElement(child)) return;
|
|
131681
|
+
var hasPrev = key in prevChildMapping;
|
|
131682
|
+
var hasNext = key in nextChildMapping;
|
|
131683
|
+
var prevChild = prevChildMapping[key];
|
|
131684
|
+
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
131685
|
+
if (hasNext && (!hasPrev || isLeaving)) {
|
|
131686
|
+
children[key] = cloneElement(child, {
|
|
131687
|
+
onExited: onExited.bind(null, child),
|
|
131688
|
+
in: true,
|
|
131689
|
+
exit: getProp(child, "exit", nextProps),
|
|
131690
|
+
enter: getProp(child, "enter", nextProps)
|
|
131691
|
+
});
|
|
131692
|
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
131693
|
+
children[key] = cloneElement(child, {
|
|
131694
|
+
in: false
|
|
131695
|
+
});
|
|
131696
|
+
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
131697
|
+
children[key] = cloneElement(child, {
|
|
131698
|
+
onExited: onExited.bind(null, child),
|
|
131699
|
+
in: prevChild.props.in,
|
|
131700
|
+
exit: getProp(child, "exit", nextProps),
|
|
131701
|
+
enter: getProp(child, "enter", nextProps)
|
|
131702
|
+
});
|
|
131703
|
+
}
|
|
131704
|
+
});
|
|
131705
|
+
return children;
|
|
131706
|
+
}
|
|
131707
|
+
var values = Object.values || function(obj) {
|
|
131708
|
+
return Object.keys(obj).map(function(k) {
|
|
131709
|
+
return obj[k];
|
|
131710
|
+
});
|
|
131711
|
+
};
|
|
131712
|
+
var defaultProps = {
|
|
131713
|
+
component: "div",
|
|
131714
|
+
childFactory: function childFactory(child) {
|
|
131715
|
+
return child;
|
|
131716
|
+
}
|
|
131717
|
+
};
|
|
131718
|
+
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
131719
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
131720
|
+
function TransitionGroup2(props, context) {
|
|
131721
|
+
var _this;
|
|
131722
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
131723
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
131724
|
+
_this.state = {
|
|
131725
|
+
contextValue: {
|
|
131726
|
+
isMounting: true
|
|
131727
|
+
},
|
|
131728
|
+
handleExited,
|
|
131729
|
+
firstRender: true
|
|
131730
|
+
};
|
|
131731
|
+
return _this;
|
|
131732
|
+
}
|
|
131733
|
+
var _proto = TransitionGroup2.prototype;
|
|
131734
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
131735
|
+
this.mounted = true;
|
|
131736
|
+
this.setState({
|
|
131737
|
+
contextValue: {
|
|
131738
|
+
isMounting: false
|
|
131739
|
+
}
|
|
131740
|
+
});
|
|
131741
|
+
};
|
|
131742
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
131743
|
+
this.mounted = false;
|
|
131744
|
+
};
|
|
131745
|
+
TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
|
131746
|
+
var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
|
|
131747
|
+
return {
|
|
131748
|
+
children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
|
|
131749
|
+
firstRender: false
|
|
131750
|
+
};
|
|
131751
|
+
};
|
|
131752
|
+
_proto.handleExited = function handleExited(child, node2) {
|
|
131753
|
+
var currentChildMapping = getChildMapping(this.props.children);
|
|
131754
|
+
if (child.key in currentChildMapping) return;
|
|
131755
|
+
if (child.props.onExited) {
|
|
131756
|
+
child.props.onExited(node2);
|
|
131757
|
+
}
|
|
131758
|
+
if (this.mounted) {
|
|
131759
|
+
this.setState(function(state) {
|
|
131760
|
+
var children = _extends$1({}, state.children);
|
|
131761
|
+
delete children[child.key];
|
|
131762
|
+
return {
|
|
131763
|
+
children
|
|
131764
|
+
};
|
|
131765
|
+
});
|
|
131766
|
+
}
|
|
131767
|
+
};
|
|
131768
|
+
_proto.render = function render() {
|
|
131769
|
+
var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
131770
|
+
var contextValue = this.state.contextValue;
|
|
131771
|
+
var children = values(this.state.children).map(childFactory2);
|
|
131772
|
+
delete props.appear;
|
|
131773
|
+
delete props.enter;
|
|
131774
|
+
delete props.exit;
|
|
131775
|
+
if (Component2 === null) {
|
|
131776
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
131777
|
+
value: contextValue
|
|
131778
|
+
}, children);
|
|
131779
|
+
}
|
|
131780
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
131781
|
+
value: contextValue
|
|
131782
|
+
}, /* @__PURE__ */ React__default.createElement(Component2, props, children));
|
|
131783
|
+
};
|
|
131784
|
+
return TransitionGroup2;
|
|
131785
|
+
}(React__default.Component);
|
|
131786
|
+
TransitionGroup.propTypes = {
|
|
131787
|
+
/**
|
|
131788
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
131789
|
+
* behavior by providing a `component` prop.
|
|
131790
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
131791
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
131792
|
+
* borks your css styles.
|
|
131793
|
+
*/
|
|
131794
|
+
component: PropTypes.any,
|
|
131795
|
+
/**
|
|
131796
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
131797
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
131798
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
131799
|
+
* with our `<Fade>` example.
|
|
131800
|
+
*
|
|
131801
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
131802
|
+
* children, sometimes you may want to have a single transition child with
|
|
131803
|
+
* content that you want to be transitioned out and in when you change it
|
|
131804
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
131805
|
+
* the transition child as you change its content, this will cause
|
|
131806
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
131807
|
+
*/
|
|
131808
|
+
children: PropTypes.node,
|
|
131809
|
+
/**
|
|
131810
|
+
* A convenience prop that enables or disables appear animations
|
|
131811
|
+
* for all children. Note that specifying this will override any defaults set
|
|
131812
|
+
* on individual children Transitions.
|
|
131813
|
+
*/
|
|
131814
|
+
appear: PropTypes.bool,
|
|
131815
|
+
/**
|
|
131816
|
+
* A convenience prop that enables or disables enter animations
|
|
131817
|
+
* for all children. Note that specifying this will override any defaults set
|
|
131818
|
+
* on individual children Transitions.
|
|
131716
131819
|
*/
|
|
131717
|
-
|
|
131820
|
+
enter: PropTypes.bool,
|
|
131718
131821
|
/**
|
|
131719
|
-
*
|
|
131720
|
-
*
|
|
131822
|
+
* A convenience prop that enables or disables exit animations
|
|
131823
|
+
* for all children. Note that specifying this will override any defaults set
|
|
131824
|
+
* on individual children Transitions.
|
|
131721
131825
|
*/
|
|
131722
|
-
|
|
131826
|
+
exit: PropTypes.bool,
|
|
131723
131827
|
/**
|
|
131724
|
-
*
|
|
131725
|
-
*
|
|
131726
|
-
* and
|
|
131727
|
-
*
|
|
131728
|
-
* to
|
|
131729
|
-
*
|
|
131828
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
131829
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
131830
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
131831
|
+
*
|
|
131832
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
131833
|
+
* to wrap every child, even the ones that are leaving.
|
|
131834
|
+
*
|
|
131835
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
131730
131836
|
*/
|
|
131731
|
-
|
|
131837
|
+
childFactory: PropTypes.func
|
|
131732
131838
|
};
|
|
131733
|
-
|
|
131734
|
-
|
|
131735
|
-
|
|
131736
|
-
|
|
131737
|
-
|
|
131738
|
-
|
|
131739
|
-
...props,
|
|
131740
|
-
children: path
|
|
131741
|
-
});
|
|
131742
|
-
}
|
|
131743
|
-
{
|
|
131744
|
-
Component2.displayName = `${displayName}Icon`;
|
|
131839
|
+
TransitionGroup.defaultProps = defaultProps;
|
|
131840
|
+
const UNINITIALIZED = {};
|
|
131841
|
+
function useLazyRef(init, initArg) {
|
|
131842
|
+
const ref = React.useRef(UNINITIALIZED);
|
|
131843
|
+
if (ref.current === UNINITIALIZED) {
|
|
131844
|
+
ref.current = init(initArg);
|
|
131745
131845
|
}
|
|
131746
|
-
|
|
131747
|
-
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
131748
|
-
}
|
|
131749
|
-
function ownerDocument(node2) {
|
|
131750
|
-
return node2 && node2.ownerDocument || document;
|
|
131846
|
+
return ref;
|
|
131751
131847
|
}
|
|
131752
|
-
|
|
131753
|
-
|
|
131754
|
-
|
|
131755
|
-
} else if (ref) {
|
|
131756
|
-
ref.current = value;
|
|
131757
|
-
}
|
|
131848
|
+
const EMPTY = [];
|
|
131849
|
+
function useOnMount(fn) {
|
|
131850
|
+
React.useEffect(fn, EMPTY);
|
|
131758
131851
|
}
|
|
131759
|
-
|
|
131760
|
-
|
|
131761
|
-
|
|
131762
|
-
|
|
131763
|
-
|
|
131764
|
-
|
|
131765
|
-
|
|
131766
|
-
const {
|
|
131767
|
-
current: isControlled
|
|
131768
|
-
} = React.useRef(controlled !== void 0);
|
|
131769
|
-
const [valueState, setValue] = React.useState(defaultProp);
|
|
131770
|
-
const value = isControlled ? controlled : valueState;
|
|
131771
|
-
{
|
|
131772
|
-
React.useEffect(() => {
|
|
131773
|
-
if (isControlled !== (controlled !== void 0)) {
|
|
131774
|
-
console.error([`MUI: A component is changing the ${isControlled ? "" : "un"}controlled ${state} state of ${name2} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name2} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
|
|
131775
|
-
}
|
|
131776
|
-
}, [state, name2, controlled]);
|
|
131777
|
-
const {
|
|
131778
|
-
current: defaultValue2
|
|
131779
|
-
} = React.useRef(defaultProp);
|
|
131780
|
-
React.useEffect(() => {
|
|
131781
|
-
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
131782
|
-
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name2} after being initialized. To suppress this warning opt to use a controlled ${name2}.`].join("\n"));
|
|
131852
|
+
class Timeout {
|
|
131853
|
+
constructor() {
|
|
131854
|
+
__publicField(this, "currentId", null);
|
|
131855
|
+
__publicField(this, "clear", () => {
|
|
131856
|
+
if (this.currentId !== null) {
|
|
131857
|
+
clearTimeout(this.currentId);
|
|
131858
|
+
this.currentId = null;
|
|
131783
131859
|
}
|
|
131784
|
-
}
|
|
131860
|
+
});
|
|
131861
|
+
__publicField(this, "disposeEffect", () => {
|
|
131862
|
+
return this.clear;
|
|
131863
|
+
});
|
|
131864
|
+
}
|
|
131865
|
+
static create() {
|
|
131866
|
+
return new Timeout();
|
|
131867
|
+
}
|
|
131868
|
+
/**
|
|
131869
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
131870
|
+
*/
|
|
131871
|
+
start(delay, fn) {
|
|
131872
|
+
this.clear();
|
|
131873
|
+
this.currentId = setTimeout(() => {
|
|
131874
|
+
this.currentId = null;
|
|
131875
|
+
fn();
|
|
131876
|
+
}, delay);
|
|
131785
131877
|
}
|
|
131786
|
-
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
131787
|
-
if (!isControlled) {
|
|
131788
|
-
setValue(newValue);
|
|
131789
|
-
}
|
|
131790
|
-
}, []);
|
|
131791
|
-
return [value, setValueIfUncontrolled];
|
|
131792
|
-
}
|
|
131793
|
-
function useEventCallback(fn) {
|
|
131794
|
-
const ref = React.useRef(fn);
|
|
131795
|
-
useEnhancedEffect$1(() => {
|
|
131796
|
-
ref.current = fn;
|
|
131797
|
-
});
|
|
131798
|
-
return React.useRef((...args) => (
|
|
131799
|
-
// @ts-expect-error hide `this`
|
|
131800
|
-
(0, ref.current)(...args)
|
|
131801
|
-
)).current;
|
|
131802
131878
|
}
|
|
131803
|
-
function
|
|
131804
|
-
const
|
|
131805
|
-
|
|
131806
|
-
|
|
131807
|
-
if (ref == null) {
|
|
131808
|
-
return null;
|
|
131809
|
-
}
|
|
131810
|
-
if (typeof ref === "function") {
|
|
131811
|
-
const refCallback = ref;
|
|
131812
|
-
const refCleanup = refCallback(instance);
|
|
131813
|
-
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
131814
|
-
refCallback(null);
|
|
131815
|
-
};
|
|
131816
|
-
}
|
|
131817
|
-
ref.current = instance;
|
|
131818
|
-
return () => {
|
|
131819
|
-
ref.current = null;
|
|
131820
|
-
};
|
|
131821
|
-
});
|
|
131822
|
-
return () => {
|
|
131823
|
-
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
131824
|
-
};
|
|
131825
|
-
}, refs);
|
|
131826
|
-
return React.useMemo(() => {
|
|
131827
|
-
if (refs.every((ref) => ref == null)) {
|
|
131828
|
-
return null;
|
|
131829
|
-
}
|
|
131830
|
-
return (value) => {
|
|
131831
|
-
if (cleanupRef.current) {
|
|
131832
|
-
cleanupRef.current();
|
|
131833
|
-
cleanupRef.current = void 0;
|
|
131834
|
-
}
|
|
131835
|
-
if (value != null) {
|
|
131836
|
-
cleanupRef.current = refEffect(value);
|
|
131837
|
-
}
|
|
131838
|
-
};
|
|
131839
|
-
}, refs);
|
|
131879
|
+
function useTimeout() {
|
|
131880
|
+
const timeout2 = useLazyRef(Timeout.create).current;
|
|
131881
|
+
useOnMount(timeout2.disposeEffect);
|
|
131882
|
+
return timeout2;
|
|
131840
131883
|
}
|
|
131841
|
-
function
|
|
131842
|
-
const
|
|
131843
|
-
|
|
131884
|
+
function isClassComponent(elementType) {
|
|
131885
|
+
const {
|
|
131886
|
+
prototype = {}
|
|
131887
|
+
} = elementType;
|
|
131888
|
+
return Boolean(prototype.isReactComponent);
|
|
131844
131889
|
}
|
|
131845
|
-
function
|
|
131846
|
-
|
|
131847
|
-
|
|
131890
|
+
function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
|
|
131891
|
+
const propValue = props[propName];
|
|
131892
|
+
const safePropName = propFullName || propName;
|
|
131893
|
+
if (propValue == null || // When server-side rendering React doesn't warn either.
|
|
131894
|
+
// This is not an accurate check for SSR.
|
|
131895
|
+
// This is only in place for emotion compat.
|
|
131896
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
131897
|
+
typeof window === "undefined") {
|
|
131898
|
+
return null;
|
|
131848
131899
|
}
|
|
131849
|
-
|
|
131850
|
-
|
|
131851
|
-
|
|
131852
|
-
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
131853
|
-
handlers2[key] = (...args) => {
|
|
131854
|
-
externalSlotPropsValue[key](...args);
|
|
131855
|
-
defaultSlotPropsValue[key](...args);
|
|
131856
|
-
};
|
|
131857
|
-
}
|
|
131858
|
-
});
|
|
131859
|
-
return handlers2;
|
|
131900
|
+
let warningHint;
|
|
131901
|
+
if (typeof propValue === "function" && !isClassComponent(propValue)) {
|
|
131902
|
+
warningHint = "Did you accidentally provide a plain function component instead?";
|
|
131860
131903
|
}
|
|
131861
|
-
if (
|
|
131862
|
-
return (
|
|
131863
|
-
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
131864
|
-
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
131865
|
-
...ownerState,
|
|
131866
|
-
...defaultSlotPropsValue
|
|
131867
|
-
}) : externalSlotProps;
|
|
131868
|
-
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
131869
|
-
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
131870
|
-
return {
|
|
131871
|
-
...defaultSlotPropsValue,
|
|
131872
|
-
...externalSlotPropsValue,
|
|
131873
|
-
...handlers2,
|
|
131874
|
-
...!!className2 && {
|
|
131875
|
-
className: className2
|
|
131876
|
-
},
|
|
131877
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
131878
|
-
style: {
|
|
131879
|
-
...defaultSlotPropsValue.style,
|
|
131880
|
-
...externalSlotPropsValue.style
|
|
131881
|
-
}
|
|
131882
|
-
},
|
|
131883
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
131884
|
-
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
131885
|
-
}
|
|
131886
|
-
};
|
|
131887
|
-
};
|
|
131904
|
+
if (warningHint !== void 0) {
|
|
131905
|
+
return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
|
|
131888
131906
|
}
|
|
131889
|
-
|
|
131890
|
-
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
131891
|
-
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
131892
|
-
return {
|
|
131893
|
-
...defaultSlotProps,
|
|
131894
|
-
...externalSlotProps,
|
|
131895
|
-
...handlers,
|
|
131896
|
-
...!!className && {
|
|
131897
|
-
className
|
|
131898
|
-
},
|
|
131899
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
131900
|
-
style: {
|
|
131901
|
-
...typedDefaultSlotProps.style,
|
|
131902
|
-
...externalSlotProps.style
|
|
131903
|
-
}
|
|
131904
|
-
},
|
|
131905
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
131906
|
-
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
131907
|
-
}
|
|
131908
|
-
};
|
|
131907
|
+
return null;
|
|
131909
131908
|
}
|
|
131909
|
+
const elementTypeAcceptingRef$1 = chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);
|
|
131910
131910
|
function getTypeByValue(value) {
|
|
131911
131911
|
const valueType = typeof value;
|
|
131912
131912
|
switch (valueType) {
|
|
@@ -138285,8 +138285,18 @@ function forceCollideRects() {
|
|
|
138285
138285
|
};
|
|
138286
138286
|
return force;
|
|
138287
138287
|
}
|
|
138288
|
-
|
|
138289
|
-
|
|
138288
|
+
const BASE_POINT_SIZE = 5;
|
|
138289
|
+
const LARGE_DATASET_CELL_COUNT = 1e4;
|
|
138290
|
+
const SMALL_DATASET_CELL_COUNT = 100;
|
|
138291
|
+
function getInitialPointSize(numCells = LARGE_DATASET_CELL_COUNT) {
|
|
138292
|
+
return BASE_POINT_SIZE / clamp$4(
|
|
138293
|
+
numCells,
|
|
138294
|
+
SMALL_DATASET_CELL_COUNT,
|
|
138295
|
+
LARGE_DATASET_CELL_COUNT
|
|
138296
|
+
);
|
|
138297
|
+
}
|
|
138298
|
+
function getPointSizeDevicePixels(devicePixelRatio, zoom, xRange, yRange, width2, height2, numCells) {
|
|
138299
|
+
const pointSize = getInitialPointSize(numCells);
|
|
138290
138300
|
const pointScreenSizeMax = 10;
|
|
138291
138301
|
const pointScreenSizeMin = 1 / devicePixelRatio;
|
|
138292
138302
|
const scaleFactor = 2 ** zoom;
|