git-truck 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +93 -743
- package/cli.js +1 -3
- package/package.json +1 -3
- package/public/build/manifest-80C84C72.js +1 -0
- package/public/build/root-WYGBICN2.js +1 -0
- package/public/build/routes/$repo.$-WXCO7VTZ.js +358 -0
- package/public/build/_shared/chunk-2EHCKJST.js +0 -1
- package/public/build/manifest-98E5D664.js +0 -1
- package/public/build/root-4FO5NL4Q.js +0 -1
- package/public/build/routes/$repo.$-7MSIYLH5.js +0 -358
package/build/index.js
CHANGED
|
@@ -5619,7 +5619,7 @@ import(${JSON.stringify(manifest.entry.module)});`;
|
|
|
5619
5619
|
} = transitionManager.getState();
|
|
5620
5620
|
return actionData ? actionData[routeId] : void 0;
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function useTransition7() {
|
|
5623
5623
|
let {
|
|
5624
5624
|
transitionManager
|
|
5625
5625
|
} = useRemixEntryContext();
|
|
@@ -5681,7 +5681,7 @@ import(${JSON.stringify(manifest.entry.module)});`;
|
|
|
5681
5681
|
exports.useMatches = useMatches;
|
|
5682
5682
|
exports.useSubmit = useSubmit2;
|
|
5683
5683
|
exports.useSubmitImpl = useSubmitImpl;
|
|
5684
|
-
exports.useTransition =
|
|
5684
|
+
exports.useTransition = useTransition7;
|
|
5685
5685
|
}
|
|
5686
5686
|
});
|
|
5687
5687
|
|
|
@@ -7663,56 +7663,6 @@ var require_Konami = __commonJS({
|
|
|
7663
7663
|
}
|
|
7664
7664
|
});
|
|
7665
7665
|
|
|
7666
|
-
// node_modules/@react-aria/ssr/dist/main.js
|
|
7667
|
-
var require_main4 = __commonJS({
|
|
7668
|
-
"node_modules/@react-aria/ssr/dist/main.js"(exports, module2) {
|
|
7669
|
-
var $4hxXn$react = require_react();
|
|
7670
|
-
function $parcel$export(e, n, v, s) {
|
|
7671
|
-
Object.defineProperty(e, n, { get: v, set: s, enumerable: !0, configurable: !0 });
|
|
7672
|
-
}
|
|
7673
|
-
function $parcel$interopDefault(a) {
|
|
7674
|
-
return a && a.__esModule ? a.default : a;
|
|
7675
|
-
}
|
|
7676
|
-
$parcel$export(module2.exports, "SSRProvider", () => $29383e587d62412a$export$9f8ac96af4b1b2ae);
|
|
7677
|
-
$parcel$export(module2.exports, "useSSRSafeId", () => $29383e587d62412a$export$619500959fc48b26);
|
|
7678
|
-
$parcel$export(module2.exports, "useIsSSR", () => $29383e587d62412a$export$535bd6ca7f90a273);
|
|
7679
|
-
var $29383e587d62412a$var$defaultContext = {
|
|
7680
|
-
prefix: String(Math.round(Math.random() * 1e10)),
|
|
7681
|
-
current: 0
|
|
7682
|
-
}, $29383e587d62412a$var$SSRContext = /* @__PURE__ */ $parcel$interopDefault($4hxXn$react).createContext($29383e587d62412a$var$defaultContext);
|
|
7683
|
-
function $29383e587d62412a$export$9f8ac96af4b1b2ae(props) {
|
|
7684
|
-
let cur = $4hxXn$react.useContext($29383e587d62412a$var$SSRContext), value = $4hxXn$react.useMemo(
|
|
7685
|
-
() => ({
|
|
7686
|
-
prefix: cur === $29383e587d62412a$var$defaultContext ? "" : `${cur.prefix}-${++cur.current}`,
|
|
7687
|
-
current: 0
|
|
7688
|
-
}),
|
|
7689
|
-
[
|
|
7690
|
-
cur
|
|
7691
|
-
]
|
|
7692
|
-
);
|
|
7693
|
-
return /* @__PURE__ */ $parcel$interopDefault($4hxXn$react).createElement($29383e587d62412a$var$SSRContext.Provider, {
|
|
7694
|
-
value
|
|
7695
|
-
}, props.children);
|
|
7696
|
-
}
|
|
7697
|
-
var $29383e587d62412a$var$canUseDOM = Boolean(typeof window < "u" && window.document && window.document.createElement);
|
|
7698
|
-
function $29383e587d62412a$export$619500959fc48b26(defaultId) {
|
|
7699
|
-
let ctx = $4hxXn$react.useContext($29383e587d62412a$var$SSRContext);
|
|
7700
|
-
return ctx === $29383e587d62412a$var$defaultContext && !$29383e587d62412a$var$canUseDOM && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."), $4hxXn$react.useMemo(
|
|
7701
|
-
() => defaultId || `react-aria${ctx.prefix}-${++ctx.current}`,
|
|
7702
|
-
[
|
|
7703
|
-
defaultId
|
|
7704
|
-
]
|
|
7705
|
-
);
|
|
7706
|
-
}
|
|
7707
|
-
function $29383e587d62412a$export$535bd6ca7f90a273() {
|
|
7708
|
-
let isInSSRContext = $4hxXn$react.useContext($29383e587d62412a$var$SSRContext) !== $29383e587d62412a$var$defaultContext, [isSSR, setIsSSR] = $4hxXn$react.useState(isInSSRContext);
|
|
7709
|
-
return typeof window < "u" && isInSSRContext && $4hxXn$react.useLayoutEffect(() => {
|
|
7710
|
-
setIsSSR(!1);
|
|
7711
|
-
}, []), isSSR;
|
|
7712
|
-
}
|
|
7713
|
-
}
|
|
7714
|
-
});
|
|
7715
|
-
|
|
7716
7666
|
// node_modules/@babel/runtime/helpers/interopRequireDefault.js
|
|
7717
7667
|
var require_interopRequireDefault = __commonJS({
|
|
7718
7668
|
"node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module2) {
|
|
@@ -131095,12 +131045,12 @@ var require_useDebounce = __commonJS({
|
|
|
131095
131045
|
"use strict";
|
|
131096
131046
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
131097
131047
|
var tslib_1 = require_tslib(), react_1 = require_react(), useTimeoutFn_1 = tslib_1.__importDefault(require_useTimeoutFn());
|
|
131098
|
-
function
|
|
131048
|
+
function useDebounce(fn, ms, deps) {
|
|
131099
131049
|
ms === void 0 && (ms = 0), deps === void 0 && (deps = []);
|
|
131100
131050
|
var _a = useTimeoutFn_1.default(fn, ms), isReady = _a[0], cancel = _a[1], reset = _a[2];
|
|
131101
131051
|
return react_1.useEffect(reset, deps), [isReady, cancel];
|
|
131102
131052
|
}
|
|
131103
|
-
exports.default =
|
|
131053
|
+
exports.default = useDebounce;
|
|
131104
131054
|
}
|
|
131105
131055
|
});
|
|
131106
131056
|
|
|
@@ -131632,8 +131582,8 @@ var require_useHover = __commonJS({
|
|
|
131632
131582
|
"node_modules/react-use/lib/useHover.js"(exports) {
|
|
131633
131583
|
"use strict";
|
|
131634
131584
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
131635
|
-
var tslib_1 = require_tslib(), React = tslib_1.__importStar(require_react()), util_1 = require_util(),
|
|
131636
|
-
var _a =
|
|
131585
|
+
var tslib_1 = require_tslib(), React = tslib_1.__importStar(require_react()), util_1 = require_util(), useState10 = React.useState, useHover = function(element) {
|
|
131586
|
+
var _a = useState10(!1), state = _a[0], setState = _a[1], onMouseEnter = function(originalOnMouseEnter) {
|
|
131637
131587
|
return function(event) {
|
|
131638
131588
|
(originalOnMouseEnter || util_1.noop)(event), setState(!0);
|
|
131639
131589
|
};
|
|
@@ -133451,7 +133401,7 @@ var require_useSize = __commonJS({
|
|
|
133451
133401
|
"node_modules/react-use/lib/useSize.js"(exports) {
|
|
133452
133402
|
"use strict";
|
|
133453
133403
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
133454
|
-
var tslib_1 = require_tslib(), React = tslib_1.__importStar(require_react()), util_1 = require_util(),
|
|
133404
|
+
var tslib_1 = require_tslib(), React = tslib_1.__importStar(require_react()), util_1 = require_util(), useState10 = React.useState, useEffect7 = React.useEffect, useRef4 = React.useRef, DRAF = function(callback) {
|
|
133455
133405
|
return setTimeout(callback, 35);
|
|
133456
133406
|
}, useSize = function(element, _a) {
|
|
133457
133407
|
var _b = _a === void 0 ? {} : _a, _c = _b.width, width = _c === void 0 ? 1 / 0 : _c, _d = _b.height, height = _d === void 0 ? 1 / 0 : _d;
|
|
@@ -133460,7 +133410,7 @@ var require_useSize = __commonJS({
|
|
|
133460
133410
|
typeof element == "function" ? element({ width, height }) : element,
|
|
133461
133411
|
{ width, height }
|
|
133462
133412
|
];
|
|
133463
|
-
var _e =
|
|
133413
|
+
var _e = useState10({ width, height }), state = _e[0], setState = _e[1];
|
|
133464
133414
|
typeof element == "function" && (element = element(state));
|
|
133465
133415
|
var style = element.props.style || {}, ref = useRef4(null), window2 = null, setSize = function() {
|
|
133466
133416
|
var iframe = ref.current, size = iframe ? {
|
|
@@ -141323,7 +141273,7 @@ var require_entry = __commonJS({
|
|
|
141323
141273
|
}));
|
|
141324
141274
|
}
|
|
141325
141275
|
function createEntryRouteModules(manifest) {
|
|
141326
|
-
return Object.keys(manifest).reduce((
|
|
141276
|
+
return Object.keys(manifest).reduce((memo4, routeId) => (memo4[routeId] = manifest[routeId].module, memo4), {});
|
|
141327
141277
|
}
|
|
141328
141278
|
exports.createEntryMatches = createEntryMatches;
|
|
141329
141279
|
exports.createEntryRouteModules = createEntryRouteModules;
|
|
@@ -172364,7 +172314,7 @@ var require_react_spring_core_cjs_prod = __commonJS({
|
|
|
172364
172314
|
(function(TransitionPhase2) {
|
|
172365
172315
|
TransitionPhase2.MOUNT = "mount", TransitionPhase2.ENTER = "enter", TransitionPhase2.UPDATE = "update", TransitionPhase2.LEAVE = "leave";
|
|
172366
172316
|
})(TransitionPhase || (TransitionPhase = {}));
|
|
172367
|
-
function
|
|
172317
|
+
function useTransition7(data, props, deps) {
|
|
172368
172318
|
let propsFn = shared.is.fun(props) && props, {
|
|
172369
172319
|
reset,
|
|
172370
172320
|
sort,
|
|
@@ -172556,7 +172506,7 @@ var require_react_spring_core_cjs_prod = __commonJS({
|
|
|
172556
172506
|
items,
|
|
172557
172507
|
children
|
|
172558
172508
|
} = _ref, props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
172559
|
-
return
|
|
172509
|
+
return useTransition7(items, props)(children);
|
|
172560
172510
|
}
|
|
172561
172511
|
var Interpolation = class extends FrameValue {
|
|
172562
172512
|
constructor(source, args) {
|
|
@@ -172657,7 +172607,7 @@ var require_react_spring_core_cjs_prod = __commonJS({
|
|
|
172657
172607
|
exports.useSpringRef = useSpringRef;
|
|
172658
172608
|
exports.useSprings = useSprings;
|
|
172659
172609
|
exports.useTrail = useTrail;
|
|
172660
|
-
exports.useTransition =
|
|
172610
|
+
exports.useTransition = useTransition7;
|
|
172661
172611
|
Object.keys(animated2).forEach(function(k) {
|
|
172662
172612
|
k !== "default" && !exports.hasOwnProperty(k) && Object.defineProperty(exports, k, {
|
|
172663
172613
|
enumerable: !0,
|
|
@@ -178920,595 +178870,6 @@ var require_dist7 = __commonJS({
|
|
|
178920
178870
|
}
|
|
178921
178871
|
});
|
|
178922
178872
|
|
|
178923
|
-
// node_modules/@react-stately/utils/dist/main.js
|
|
178924
|
-
var require_main5 = __commonJS({
|
|
178925
|
-
"node_modules/@react-stately/utils/dist/main.js"(exports, module2) {
|
|
178926
|
-
var $kC0mY$react = require_react();
|
|
178927
|
-
function $parcel$export(e, n, v, s) {
|
|
178928
|
-
Object.defineProperty(e, n, { get: v, set: s, enumerable: !0, configurable: !0 });
|
|
178929
|
-
}
|
|
178930
|
-
$parcel$export(module2.exports, "useControlledState", () => $8d8fdfab47455712$export$40bfa8c7b0832715);
|
|
178931
|
-
$parcel$export(module2.exports, "clamp", () => $ac8e4d4816275668$export$7d15b64cf5a3a4c4);
|
|
178932
|
-
$parcel$export(module2.exports, "snapValueToStep", () => $ac8e4d4816275668$export$cb6e0bb50bc19463);
|
|
178933
|
-
$parcel$export(module2.exports, "toFixedNumber", () => $ac8e4d4816275668$export$b6268554fba451f);
|
|
178934
|
-
function $8d8fdfab47455712$export$40bfa8c7b0832715(value1, defaultValue, onChange) {
|
|
178935
|
-
let [stateValue, setStateValue] = $kC0mY$react.useState(value1 || defaultValue), ref = $kC0mY$react.useRef(value1 !== void 0), wasControlled = ref.current, isControlled = value1 !== void 0, stateRef = $kC0mY$react.useRef(stateValue);
|
|
178936
|
-
wasControlled !== isControlled && console.warn(`WARN: A component changed from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}.`), ref.current = isControlled;
|
|
178937
|
-
let setValue = $kC0mY$react.useCallback((value2, ...args) => {
|
|
178938
|
-
let onChangeCaller = (value, ...onChangeArgs) => {
|
|
178939
|
-
onChange && (Object.is(stateRef.current, value) || onChange(value, ...onChangeArgs)), isControlled || (stateRef.current = value);
|
|
178940
|
-
};
|
|
178941
|
-
typeof value2 == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), setStateValue((oldValue, ...functionArgs) => {
|
|
178942
|
-
let interceptedValue = value2(isControlled ? stateRef.current : oldValue, ...functionArgs);
|
|
178943
|
-
return onChangeCaller(interceptedValue, ...args), isControlled ? oldValue : interceptedValue;
|
|
178944
|
-
})) : (isControlled || setStateValue(value2), onChangeCaller(value2, ...args));
|
|
178945
|
-
}, [
|
|
178946
|
-
isControlled,
|
|
178947
|
-
onChange
|
|
178948
|
-
]);
|
|
178949
|
-
return isControlled ? stateRef.current = value1 : value1 = stateValue, [
|
|
178950
|
-
value1,
|
|
178951
|
-
setValue
|
|
178952
|
-
];
|
|
178953
|
-
}
|
|
178954
|
-
function $ac8e4d4816275668$export$7d15b64cf5a3a4c4(value, min = -1 / 0, max = 1 / 0) {
|
|
178955
|
-
return Math.min(Math.max(value, min), max);
|
|
178956
|
-
}
|
|
178957
|
-
function $ac8e4d4816275668$export$cb6e0bb50bc19463(value, min, max, step) {
|
|
178958
|
-
let remainder = (value - (isNaN(min) ? 0 : min)) % step, snappedValue = Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder;
|
|
178959
|
-
isNaN(min) ? !isNaN(max) && snappedValue > max && (snappedValue = Math.floor(max / step) * step) : snappedValue < min ? snappedValue = min : !isNaN(max) && snappedValue > max && (snappedValue = min + Math.floor((max - min) / step) * step);
|
|
178960
|
-
let string = step.toString(), index = string.indexOf("."), precision = index >= 0 ? string.length - index : 0;
|
|
178961
|
-
if (precision > 0) {
|
|
178962
|
-
let pow = Math.pow(10, precision);
|
|
178963
|
-
snappedValue = Math.round(snappedValue * pow) / pow;
|
|
178964
|
-
}
|
|
178965
|
-
return snappedValue;
|
|
178966
|
-
}
|
|
178967
|
-
function $ac8e4d4816275668$export$b6268554fba451f(value, digits, base = 10) {
|
|
178968
|
-
let pow = Math.pow(base, digits);
|
|
178969
|
-
return Math.round(value * pow) / pow;
|
|
178970
|
-
}
|
|
178971
|
-
}
|
|
178972
|
-
});
|
|
178973
|
-
|
|
178974
|
-
// node_modules/clsx/dist/clsx.js
|
|
178975
|
-
var require_clsx = __commonJS({
|
|
178976
|
-
"node_modules/clsx/dist/clsx.js"(exports, module2) {
|
|
178977
|
-
function toVal(mix) {
|
|
178978
|
-
var k, y, str = "";
|
|
178979
|
-
if (typeof mix == "string" || typeof mix == "number")
|
|
178980
|
-
str += mix;
|
|
178981
|
-
else if (typeof mix == "object")
|
|
178982
|
-
if (Array.isArray(mix))
|
|
178983
|
-
for (k = 0; k < mix.length; k++)
|
|
178984
|
-
mix[k] && (y = toVal(mix[k])) && (str && (str += " "), str += y);
|
|
178985
|
-
else
|
|
178986
|
-
for (k in mix)
|
|
178987
|
-
mix[k] && (str && (str += " "), str += k);
|
|
178988
|
-
return str;
|
|
178989
|
-
}
|
|
178990
|
-
module2.exports = function() {
|
|
178991
|
-
for (var i = 0, tmp, x, str = ""; i < arguments.length; )
|
|
178992
|
-
(tmp = arguments[i++]) && (x = toVal(tmp)) && (str && (str += " "), str += x);
|
|
178993
|
-
return str;
|
|
178994
|
-
};
|
|
178995
|
-
}
|
|
178996
|
-
});
|
|
178997
|
-
|
|
178998
|
-
// node_modules/@react-aria/utils/dist/main.js
|
|
178999
|
-
var require_main6 = __commonJS({
|
|
179000
|
-
"node_modules/@react-aria/utils/dist/main.js"(exports, module2) {
|
|
179001
|
-
var $1Yh1N$reactstatelyutils = require_main5(), $1Yh1N$react = require_react(), $1Yh1N$reactariassr = require_main4(), $1Yh1N$clsx = require_clsx();
|
|
179002
|
-
function $parcel$export(e, n, v, s) {
|
|
179003
|
-
Object.defineProperty(e, n, { get: v, set: s, enumerable: !0, configurable: !0 });
|
|
179004
|
-
}
|
|
179005
|
-
function $parcel$interopDefault(a) {
|
|
179006
|
-
return a && a.__esModule ? a.default : a;
|
|
179007
|
-
}
|
|
179008
|
-
$parcel$export(module2.exports, "useId", () => $8c61827343eed941$export$f680877a34711e37);
|
|
179009
|
-
$parcel$export(module2.exports, "mergeIds", () => $8c61827343eed941$export$cd8c9cb68f842629);
|
|
179010
|
-
$parcel$export(module2.exports, "useSlotId", () => $8c61827343eed941$export$b4cc09c592e8fdb8);
|
|
179011
|
-
$parcel$export(module2.exports, "chain", () => $1e2191638e54f613$export$e08e3b67e392101e);
|
|
179012
|
-
$parcel$export(module2.exports, "mergeProps", () => $f847cd1382ea7cd4$export$9d1611c77c2fe928);
|
|
179013
|
-
$parcel$export(module2.exports, "mergeRefs", () => $f05dc24eafaeb7e2$export$c9058316764c140e);
|
|
179014
|
-
$parcel$export(module2.exports, "filterDOMProps", () => $8d15d0e1797d4238$export$457c3d6518dd4c6f);
|
|
179015
|
-
$parcel$export(module2.exports, "focusWithoutScrolling", () => $1117b6c0d4c4c164$export$de79e2c695e052f3);
|
|
179016
|
-
$parcel$export(module2.exports, "getOffset", () => $16ec41ef3e36c19c$export$622cea445a1c5b7d);
|
|
179017
|
-
$parcel$export(module2.exports, "runAfterTransition", () => $e8117ebcab55be6a$export$24490316f764c430);
|
|
179018
|
-
$parcel$export(module2.exports, "useDrag1D", () => $28ed3fb20343b78b$export$7bbed75feba39706);
|
|
179019
|
-
$parcel$export(module2.exports, "useGlobalListeners", () => $4571ff54ac709100$export$4eaf04e54aa8eed6);
|
|
179020
|
-
$parcel$export(module2.exports, "useLabels", () => $6ec78bde395c477d$export$d6875122194c7b44);
|
|
179021
|
-
$parcel$export(module2.exports, "useObjectRef", () => $475b35fe72ba49b3$export$4338b53315abf666);
|
|
179022
|
-
$parcel$export(module2.exports, "useUpdateEffect", () => $29293a6f5c75b37e$export$496315a1608d9602);
|
|
179023
|
-
$parcel$export(module2.exports, "useLayoutEffect", () => $78605a5d7424e31b$export$e5c5a5f917a5871c);
|
|
179024
|
-
$parcel$export(module2.exports, "useResizeObserver", () => $37733e1652f47193$export$683480f191c0e3ea);
|
|
179025
|
-
$parcel$export(module2.exports, "useSyncRef", () => $6fc733991a9f977c$export$4debdb1a3f0fa79e);
|
|
179026
|
-
$parcel$export(module2.exports, "getScrollParent", () => $d796e7157ac96470$export$cfa2225e87938781);
|
|
179027
|
-
$parcel$export(module2.exports, "useViewportSize", () => $8b24bab62f5c65ad$export$d699905dd57c73ca);
|
|
179028
|
-
$parcel$export(module2.exports, "useDescription", () => $34da4502ea8120db$export$f8aeda7b10753fa1);
|
|
179029
|
-
$parcel$export(module2.exports, "isMac", () => $9e20cff0af27e8cc$export$9ac100e40613ea10);
|
|
179030
|
-
$parcel$export(module2.exports, "isIPhone", () => $9e20cff0af27e8cc$export$186c6964ca17d99);
|
|
179031
|
-
$parcel$export(module2.exports, "isIPad", () => $9e20cff0af27e8cc$export$7bef049ce92e4224);
|
|
179032
|
-
$parcel$export(module2.exports, "isIOS", () => $9e20cff0af27e8cc$export$fedb369cb70207f1);
|
|
179033
|
-
$parcel$export(module2.exports, "isAppleDevice", () => $9e20cff0af27e8cc$export$e1865c3bedcd822b);
|
|
179034
|
-
$parcel$export(module2.exports, "isWebKit", () => $9e20cff0af27e8cc$export$78551043582a6a98);
|
|
179035
|
-
$parcel$export(module2.exports, "isChrome", () => $9e20cff0af27e8cc$export$6446a186d09e379e);
|
|
179036
|
-
$parcel$export(module2.exports, "isAndroid", () => $9e20cff0af27e8cc$export$a11b0059900ceec8);
|
|
179037
|
-
$parcel$export(module2.exports, "useEvent", () => $2a8c0bb1629926c8$export$90fc3a17d93f704c);
|
|
179038
|
-
$parcel$export(module2.exports, "useValueEffect", () => $19a2307bfabafaf1$export$14d238f342723f25);
|
|
179039
|
-
$parcel$export(module2.exports, "scrollIntoView", () => $449412113267a1fe$export$53a0910f038337bd);
|
|
179040
|
-
$parcel$export(module2.exports, "clamp", () => $1Yh1N$reactstatelyutils.clamp);
|
|
179041
|
-
$parcel$export(module2.exports, "snapValueToStep", () => $1Yh1N$reactstatelyutils.snapValueToStep);
|
|
179042
|
-
$parcel$export(module2.exports, "isVirtualClick", () => $577e795361f19be9$export$60278871457622de);
|
|
179043
|
-
$parcel$export(module2.exports, "isVirtualPointerEvent", () => $577e795361f19be9$export$29bf1b5f2c56cf63);
|
|
179044
|
-
var $78605a5d7424e31b$export$e5c5a5f917a5871c = typeof window < "u" ? $parcel$interopDefault($1Yh1N$react).useLayoutEffect : () => {
|
|
179045
|
-
}, $8c61827343eed941$var$idsUpdaterMap = /* @__PURE__ */ new Map();
|
|
179046
|
-
function $8c61827343eed941$export$f680877a34711e37(defaultId) {
|
|
179047
|
-
let [value, setValue] = $1Yh1N$react.useState(defaultId), nextId = $1Yh1N$react.useRef(null), res = $1Yh1N$reactariassr.useSSRSafeId(value), updateValue = $1Yh1N$react.useCallback((val) => {
|
|
179048
|
-
nextId.current = val;
|
|
179049
|
-
}, []);
|
|
179050
|
-
return $8c61827343eed941$var$idsUpdaterMap.set(res, updateValue), $78605a5d7424e31b$export$e5c5a5f917a5871c(() => {
|
|
179051
|
-
let r = res;
|
|
179052
|
-
return () => {
|
|
179053
|
-
$8c61827343eed941$var$idsUpdaterMap.delete(r);
|
|
179054
|
-
};
|
|
179055
|
-
}, [
|
|
179056
|
-
res
|
|
179057
|
-
]), $1Yh1N$react.useEffect(() => {
|
|
179058
|
-
let newId = nextId.current;
|
|
179059
|
-
newId && (nextId.current = null, setValue(newId));
|
|
179060
|
-
}), res;
|
|
179061
|
-
}
|
|
179062
|
-
function $8c61827343eed941$export$cd8c9cb68f842629(idA, idB) {
|
|
179063
|
-
if (idA === idB)
|
|
179064
|
-
return idA;
|
|
179065
|
-
let setIdA = $8c61827343eed941$var$idsUpdaterMap.get(idA);
|
|
179066
|
-
if (setIdA)
|
|
179067
|
-
return setIdA(idB), idB;
|
|
179068
|
-
let setIdB = $8c61827343eed941$var$idsUpdaterMap.get(idB);
|
|
179069
|
-
return setIdB ? (setIdB(idA), idA) : idB;
|
|
179070
|
-
}
|
|
179071
|
-
function $8c61827343eed941$export$b4cc09c592e8fdb8(depArray = []) {
|
|
179072
|
-
let id = $8c61827343eed941$export$f680877a34711e37(), [resolvedId, setResolvedId] = $19a2307bfabafaf1$export$14d238f342723f25(id), updateId = $1Yh1N$react.useCallback(() => {
|
|
179073
|
-
setResolvedId(function* () {
|
|
179074
|
-
yield id, yield document.getElementById(id) ? id : void 0;
|
|
179075
|
-
});
|
|
179076
|
-
}, [
|
|
179077
|
-
id,
|
|
179078
|
-
setResolvedId
|
|
179079
|
-
]);
|
|
179080
|
-
return $78605a5d7424e31b$export$e5c5a5f917a5871c(updateId, [
|
|
179081
|
-
id,
|
|
179082
|
-
updateId,
|
|
179083
|
-
...depArray
|
|
179084
|
-
]), resolvedId;
|
|
179085
|
-
}
|
|
179086
|
-
function $1e2191638e54f613$export$e08e3b67e392101e(...callbacks) {
|
|
179087
|
-
return (...args) => {
|
|
179088
|
-
for (let callback of callbacks)
|
|
179089
|
-
typeof callback == "function" && callback(...args);
|
|
179090
|
-
};
|
|
179091
|
-
}
|
|
179092
|
-
function $f847cd1382ea7cd4$export$9d1611c77c2fe928(...args) {
|
|
179093
|
-
let result = {
|
|
179094
|
-
...args[0]
|
|
179095
|
-
};
|
|
179096
|
-
for (let i = 1; i < args.length; i++) {
|
|
179097
|
-
let props = args[i];
|
|
179098
|
-
for (let key in props) {
|
|
179099
|
-
let a = result[key], b = props[key];
|
|
179100
|
-
typeof a == "function" && typeof b == "function" && key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= 65 && key.charCodeAt(2) <= 90 ? result[key] = $1e2191638e54f613$export$e08e3b67e392101e(a, b) : (key === "className" || key === "UNSAFE_className") && typeof a == "string" && typeof b == "string" ? result[key] = $parcel$interopDefault($1Yh1N$clsx)(a, b) : key === "id" && a && b ? result.id = $8c61827343eed941$export$cd8c9cb68f842629(a, b) : result[key] = b !== void 0 ? b : a;
|
|
179101
|
-
}
|
|
179102
|
-
}
|
|
179103
|
-
return result;
|
|
179104
|
-
}
|
|
179105
|
-
function $f05dc24eafaeb7e2$export$c9058316764c140e(...refs) {
|
|
179106
|
-
return (value) => {
|
|
179107
|
-
for (let ref of refs)
|
|
179108
|
-
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
179109
|
-
};
|
|
179110
|
-
}
|
|
179111
|
-
var $8d15d0e1797d4238$var$DOMPropNames = /* @__PURE__ */ new Set([
|
|
179112
|
-
"id"
|
|
179113
|
-
]), $8d15d0e1797d4238$var$labelablePropNames = /* @__PURE__ */ new Set([
|
|
179114
|
-
"aria-label",
|
|
179115
|
-
"aria-labelledby",
|
|
179116
|
-
"aria-describedby",
|
|
179117
|
-
"aria-details"
|
|
179118
|
-
]), $8d15d0e1797d4238$var$propRe = /^(data-.*)$/;
|
|
179119
|
-
function $8d15d0e1797d4238$export$457c3d6518dd4c6f(props, opts = {}) {
|
|
179120
|
-
let { labelable, propNames } = opts, filteredProps = {};
|
|
179121
|
-
for (let prop in props)
|
|
179122
|
-
Object.prototype.hasOwnProperty.call(props, prop) && ($8d15d0e1797d4238$var$DOMPropNames.has(prop) || labelable && $8d15d0e1797d4238$var$labelablePropNames.has(prop) || (propNames == null ? void 0 : propNames.has(prop)) || $8d15d0e1797d4238$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
|
|
179123
|
-
return filteredProps;
|
|
179124
|
-
}
|
|
179125
|
-
function $1117b6c0d4c4c164$export$de79e2c695e052f3(element) {
|
|
179126
|
-
if ($1117b6c0d4c4c164$var$supportsPreventScroll())
|
|
179127
|
-
element.focus({
|
|
179128
|
-
preventScroll: !0
|
|
179129
|
-
});
|
|
179130
|
-
else {
|
|
179131
|
-
let scrollableElements = $1117b6c0d4c4c164$var$getScrollableElements(element);
|
|
179132
|
-
element.focus(), $1117b6c0d4c4c164$var$restoreScrollPosition(scrollableElements);
|
|
179133
|
-
}
|
|
179134
|
-
}
|
|
179135
|
-
var $1117b6c0d4c4c164$var$supportsPreventScrollCached = null;
|
|
179136
|
-
function $1117b6c0d4c4c164$var$supportsPreventScroll() {
|
|
179137
|
-
if ($1117b6c0d4c4c164$var$supportsPreventScrollCached == null) {
|
|
179138
|
-
$1117b6c0d4c4c164$var$supportsPreventScrollCached = !1;
|
|
179139
|
-
try {
|
|
179140
|
-
var focusElem = document.createElement("div");
|
|
179141
|
-
focusElem.focus({
|
|
179142
|
-
get preventScroll() {
|
|
179143
|
-
return $1117b6c0d4c4c164$var$supportsPreventScrollCached = !0, !0;
|
|
179144
|
-
}
|
|
179145
|
-
});
|
|
179146
|
-
} catch {
|
|
179147
|
-
}
|
|
179148
|
-
}
|
|
179149
|
-
return $1117b6c0d4c4c164$var$supportsPreventScrollCached;
|
|
179150
|
-
}
|
|
179151
|
-
function $1117b6c0d4c4c164$var$getScrollableElements(element) {
|
|
179152
|
-
for (var parent = element.parentNode, scrollableElements = [], rootScrollingElement = document.scrollingElement || document.documentElement; parent instanceof HTMLElement && parent !== rootScrollingElement; )
|
|
179153
|
-
(parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) && scrollableElements.push({
|
|
179154
|
-
element: parent,
|
|
179155
|
-
scrollTop: parent.scrollTop,
|
|
179156
|
-
scrollLeft: parent.scrollLeft
|
|
179157
|
-
}), parent = parent.parentNode;
|
|
179158
|
-
return rootScrollingElement instanceof HTMLElement && scrollableElements.push({
|
|
179159
|
-
element: rootScrollingElement,
|
|
179160
|
-
scrollTop: rootScrollingElement.scrollTop,
|
|
179161
|
-
scrollLeft: rootScrollingElement.scrollLeft
|
|
179162
|
-
}), scrollableElements;
|
|
179163
|
-
}
|
|
179164
|
-
function $1117b6c0d4c4c164$var$restoreScrollPosition(scrollableElements) {
|
|
179165
|
-
for (let { element, scrollTop, scrollLeft } of scrollableElements)
|
|
179166
|
-
element.scrollTop = scrollTop, element.scrollLeft = scrollLeft;
|
|
179167
|
-
}
|
|
179168
|
-
function $16ec41ef3e36c19c$export$622cea445a1c5b7d(element, reverse, orientation = "horizontal") {
|
|
179169
|
-
let rect = element.getBoundingClientRect();
|
|
179170
|
-
return reverse ? orientation === "horizontal" ? rect.right : rect.bottom : orientation === "horizontal" ? rect.left : rect.top;
|
|
179171
|
-
}
|
|
179172
|
-
var $e8117ebcab55be6a$var$transitionsByElement = /* @__PURE__ */ new Map(), $e8117ebcab55be6a$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
179173
|
-
function $e8117ebcab55be6a$var$setupGlobalEvents() {
|
|
179174
|
-
if (typeof window > "u")
|
|
179175
|
-
return;
|
|
179176
|
-
let onTransitionStart = (e) => {
|
|
179177
|
-
let transitions = $e8117ebcab55be6a$var$transitionsByElement.get(e.target);
|
|
179178
|
-
transitions || (transitions = /* @__PURE__ */ new Set(), $e8117ebcab55be6a$var$transitionsByElement.set(e.target, transitions), e.target.addEventListener("transitioncancel", onTransitionEnd)), transitions.add(e.propertyName);
|
|
179179
|
-
}, onTransitionEnd = (e) => {
|
|
179180
|
-
let properties = $e8117ebcab55be6a$var$transitionsByElement.get(e.target);
|
|
179181
|
-
if (!!properties && (properties.delete(e.propertyName), properties.size === 0 && (e.target.removeEventListener("transitioncancel", onTransitionEnd), $e8117ebcab55be6a$var$transitionsByElement.delete(e.target)), $e8117ebcab55be6a$var$transitionsByElement.size === 0)) {
|
|
179182
|
-
for (let cb of $e8117ebcab55be6a$var$transitionCallbacks)
|
|
179183
|
-
cb();
|
|
179184
|
-
$e8117ebcab55be6a$var$transitionCallbacks.clear();
|
|
179185
|
-
}
|
|
179186
|
-
};
|
|
179187
|
-
document.body.addEventListener("transitionrun", onTransitionStart), document.body.addEventListener("transitionend", onTransitionEnd);
|
|
179188
|
-
}
|
|
179189
|
-
typeof document < "u" && (document.readyState !== "loading" ? $e8117ebcab55be6a$var$setupGlobalEvents() : document.addEventListener("DOMContentLoaded", $e8117ebcab55be6a$var$setupGlobalEvents));
|
|
179190
|
-
function $e8117ebcab55be6a$export$24490316f764c430(fn) {
|
|
179191
|
-
requestAnimationFrame(() => {
|
|
179192
|
-
$e8117ebcab55be6a$var$transitionsByElement.size === 0 ? fn() : $e8117ebcab55be6a$var$transitionCallbacks.add(fn);
|
|
179193
|
-
});
|
|
179194
|
-
}
|
|
179195
|
-
var $28ed3fb20343b78b$var$draggingElements = [];
|
|
179196
|
-
function $28ed3fb20343b78b$export$7bbed75feba39706(props) {
|
|
179197
|
-
console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");
|
|
179198
|
-
let { containerRef, reverse, orientation, onHover, onDrag, onPositionChange, onIncrement, onDecrement, onIncrementToMax, onDecrementToMin, onCollapseToggle } = props, getPosition = (e) => orientation === "horizontal" ? e.clientX : e.clientY, getNextOffset = (e) => {
|
|
179199
|
-
let containerOffset = $16ec41ef3e36c19c$export$622cea445a1c5b7d(containerRef.current, reverse, orientation), mouseOffset = getPosition(e);
|
|
179200
|
-
return reverse ? containerOffset - mouseOffset : mouseOffset - containerOffset;
|
|
179201
|
-
}, dragging = $1Yh1N$react.useRef(!1), prevPosition = $1Yh1N$react.useRef(0), handlers = $1Yh1N$react.useRef({
|
|
179202
|
-
onPositionChange,
|
|
179203
|
-
onDrag
|
|
179204
|
-
});
|
|
179205
|
-
handlers.current.onDrag = onDrag, handlers.current.onPositionChange = onPositionChange;
|
|
179206
|
-
let onMouseDragged = (e) => {
|
|
179207
|
-
e.preventDefault();
|
|
179208
|
-
let nextOffset = getNextOffset(e);
|
|
179209
|
-
dragging.current || (dragging.current = !0, handlers.current.onDrag && handlers.current.onDrag(!0), handlers.current.onPositionChange && handlers.current.onPositionChange(nextOffset)), prevPosition.current !== nextOffset && (prevPosition.current = nextOffset, onPositionChange && onPositionChange(nextOffset));
|
|
179210
|
-
}, onMouseUp = (e) => {
|
|
179211
|
-
let target = e.target;
|
|
179212
|
-
dragging.current = !1;
|
|
179213
|
-
let nextOffset = getNextOffset(e);
|
|
179214
|
-
handlers.current.onDrag && handlers.current.onDrag(!1), handlers.current.onPositionChange && handlers.current.onPositionChange(nextOffset), $28ed3fb20343b78b$var$draggingElements.splice($28ed3fb20343b78b$var$draggingElements.indexOf(target), 1), window.removeEventListener("mouseup", onMouseUp, !1), window.removeEventListener("mousemove", onMouseDragged, !1);
|
|
179215
|
-
};
|
|
179216
|
-
return {
|
|
179217
|
-
onMouseDown: (e) => {
|
|
179218
|
-
let target = e.currentTarget;
|
|
179219
|
-
$28ed3fb20343b78b$var$draggingElements.some(
|
|
179220
|
-
(elt) => target.contains(elt)
|
|
179221
|
-
) || ($28ed3fb20343b78b$var$draggingElements.push(target), window.addEventListener("mousemove", onMouseDragged, !1), window.addEventListener("mouseup", onMouseUp, !1));
|
|
179222
|
-
},
|
|
179223
|
-
onMouseEnter: () => {
|
|
179224
|
-
onHover && onHover(!0);
|
|
179225
|
-
},
|
|
179226
|
-
onMouseOut: () => {
|
|
179227
|
-
onHover && onHover(!1);
|
|
179228
|
-
},
|
|
179229
|
-
onKeyDown: (e) => {
|
|
179230
|
-
switch (e.key) {
|
|
179231
|
-
case "Left":
|
|
179232
|
-
case "ArrowLeft":
|
|
179233
|
-
orientation === "horizontal" && (e.preventDefault(), onDecrement && !reverse ? onDecrement() : onIncrement && reverse && onIncrement());
|
|
179234
|
-
break;
|
|
179235
|
-
case "Up":
|
|
179236
|
-
case "ArrowUp":
|
|
179237
|
-
orientation === "vertical" && (e.preventDefault(), onDecrement && !reverse ? onDecrement() : onIncrement && reverse && onIncrement());
|
|
179238
|
-
break;
|
|
179239
|
-
case "Right":
|
|
179240
|
-
case "ArrowRight":
|
|
179241
|
-
orientation === "horizontal" && (e.preventDefault(), onIncrement && !reverse ? onIncrement() : onDecrement && reverse && onDecrement());
|
|
179242
|
-
break;
|
|
179243
|
-
case "Down":
|
|
179244
|
-
case "ArrowDown":
|
|
179245
|
-
orientation === "vertical" && (e.preventDefault(), onIncrement && !reverse ? onIncrement() : onDecrement && reverse && onDecrement());
|
|
179246
|
-
break;
|
|
179247
|
-
case "Home":
|
|
179248
|
-
e.preventDefault(), onDecrementToMin && onDecrementToMin();
|
|
179249
|
-
break;
|
|
179250
|
-
case "End":
|
|
179251
|
-
e.preventDefault(), onIncrementToMax && onIncrementToMax();
|
|
179252
|
-
break;
|
|
179253
|
-
case "Enter":
|
|
179254
|
-
e.preventDefault(), onCollapseToggle && onCollapseToggle();
|
|
179255
|
-
break;
|
|
179256
|
-
}
|
|
179257
|
-
}
|
|
179258
|
-
};
|
|
179259
|
-
}
|
|
179260
|
-
function $4571ff54ac709100$export$4eaf04e54aa8eed6() {
|
|
179261
|
-
let globalListeners = $1Yh1N$react.useRef(/* @__PURE__ */ new Map()), addGlobalListener = $1Yh1N$react.useCallback((eventTarget, type, listener, options) => {
|
|
179262
|
-
let fn = options != null && options.once ? (...args) => {
|
|
179263
|
-
globalListeners.current.delete(listener), listener(...args);
|
|
179264
|
-
} : listener;
|
|
179265
|
-
globalListeners.current.set(listener, {
|
|
179266
|
-
type,
|
|
179267
|
-
eventTarget,
|
|
179268
|
-
fn,
|
|
179269
|
-
options
|
|
179270
|
-
}), eventTarget.addEventListener(type, listener, options);
|
|
179271
|
-
}, []), removeGlobalListener = $1Yh1N$react.useCallback((eventTarget, type, listener, options) => {
|
|
179272
|
-
var ref;
|
|
179273
|
-
let fn = ((ref = globalListeners.current.get(listener)) === null || ref === void 0 ? void 0 : ref.fn) || listener;
|
|
179274
|
-
eventTarget.removeEventListener(type, fn, options), globalListeners.current.delete(listener);
|
|
179275
|
-
}, []), removeAllGlobalListeners = $1Yh1N$react.useCallback(() => {
|
|
179276
|
-
globalListeners.current.forEach((value, key) => {
|
|
179277
|
-
removeGlobalListener(value.eventTarget, value.type, key, value.options);
|
|
179278
|
-
});
|
|
179279
|
-
}, [
|
|
179280
|
-
removeGlobalListener
|
|
179281
|
-
]);
|
|
179282
|
-
return $1Yh1N$react.useEffect(() => removeAllGlobalListeners, [
|
|
179283
|
-
removeAllGlobalListeners
|
|
179284
|
-
]), {
|
|
179285
|
-
addGlobalListener,
|
|
179286
|
-
removeGlobalListener,
|
|
179287
|
-
removeAllGlobalListeners
|
|
179288
|
-
};
|
|
179289
|
-
}
|
|
179290
|
-
function $6ec78bde395c477d$export$d6875122194c7b44(props, defaultLabel) {
|
|
179291
|
-
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
179292
|
-
return id = $8c61827343eed941$export$f680877a34711e37(id), labelledBy && label ? labelledBy = [
|
|
179293
|
-
.../* @__PURE__ */ new Set([
|
|
179294
|
-
...labelledBy.trim().split(/\s+/),
|
|
179295
|
-
id
|
|
179296
|
-
])
|
|
179297
|
-
].join(" ") : labelledBy && (labelledBy = labelledBy.trim().split(/\s+/).join(" ")), !label && !labelledBy && defaultLabel && (label = defaultLabel), {
|
|
179298
|
-
id,
|
|
179299
|
-
"aria-label": label,
|
|
179300
|
-
"aria-labelledby": labelledBy
|
|
179301
|
-
};
|
|
179302
|
-
}
|
|
179303
|
-
function $475b35fe72ba49b3$export$4338b53315abf666(forwardedRef) {
|
|
179304
|
-
let objRef = $1Yh1N$react.useRef();
|
|
179305
|
-
return $78605a5d7424e31b$export$e5c5a5f917a5871c(() => {
|
|
179306
|
-
!forwardedRef || (typeof forwardedRef == "function" ? forwardedRef(objRef.current) : forwardedRef.current = objRef.current);
|
|
179307
|
-
}, [
|
|
179308
|
-
forwardedRef
|
|
179309
|
-
]), objRef;
|
|
179310
|
-
}
|
|
179311
|
-
function $29293a6f5c75b37e$export$496315a1608d9602(effect, dependencies) {
|
|
179312
|
-
let isInitialMount = $1Yh1N$react.useRef(!0);
|
|
179313
|
-
$1Yh1N$react.useEffect(() => {
|
|
179314
|
-
isInitialMount.current ? isInitialMount.current = !1 : effect();
|
|
179315
|
-
}, dependencies);
|
|
179316
|
-
}
|
|
179317
|
-
function $37733e1652f47193$var$hasResizeObserver() {
|
|
179318
|
-
return typeof window.ResizeObserver < "u";
|
|
179319
|
-
}
|
|
179320
|
-
function $37733e1652f47193$export$683480f191c0e3ea(options) {
|
|
179321
|
-
let { ref, onResize } = options;
|
|
179322
|
-
$1Yh1N$react.useEffect(() => {
|
|
179323
|
-
let element = ref == null ? void 0 : ref.current;
|
|
179324
|
-
if (!!element)
|
|
179325
|
-
if ($37733e1652f47193$var$hasResizeObserver()) {
|
|
179326
|
-
let resizeObserverInstance = new window.ResizeObserver((entries2) => {
|
|
179327
|
-
!entries2.length || onResize();
|
|
179328
|
-
});
|
|
179329
|
-
return resizeObserverInstance.observe(element), () => {
|
|
179330
|
-
element && resizeObserverInstance.unobserve(element);
|
|
179331
|
-
};
|
|
179332
|
-
} else
|
|
179333
|
-
return window.addEventListener("resize", onResize, !1), () => {
|
|
179334
|
-
window.removeEventListener("resize", onResize, !1);
|
|
179335
|
-
};
|
|
179336
|
-
}, [
|
|
179337
|
-
onResize,
|
|
179338
|
-
ref
|
|
179339
|
-
]);
|
|
179340
|
-
}
|
|
179341
|
-
function $6fc733991a9f977c$export$4debdb1a3f0fa79e(context, ref) {
|
|
179342
|
-
$78605a5d7424e31b$export$e5c5a5f917a5871c(() => {
|
|
179343
|
-
if (context && context.ref && ref)
|
|
179344
|
-
return context.ref.current = ref.current, () => {
|
|
179345
|
-
context.ref.current = null;
|
|
179346
|
-
};
|
|
179347
|
-
}, [
|
|
179348
|
-
context,
|
|
179349
|
-
ref
|
|
179350
|
-
]);
|
|
179351
|
-
}
|
|
179352
|
-
function $d796e7157ac96470$export$cfa2225e87938781(node) {
|
|
179353
|
-
for (; node && !$d796e7157ac96470$var$isScrollable(node); )
|
|
179354
|
-
node = node.parentElement;
|
|
179355
|
-
return node || document.scrollingElement || document.documentElement;
|
|
179356
|
-
}
|
|
179357
|
-
function $d796e7157ac96470$var$isScrollable(node) {
|
|
179358
|
-
let style = window.getComputedStyle(node);
|
|
179359
|
-
return /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
179360
|
-
}
|
|
179361
|
-
var $8b24bab62f5c65ad$var$visualViewport = typeof window < "u" && window.visualViewport;
|
|
179362
|
-
function $8b24bab62f5c65ad$export$d699905dd57c73ca() {
|
|
179363
|
-
let [size1, setSize] = $1Yh1N$react.useState(
|
|
179364
|
-
() => $8b24bab62f5c65ad$var$getViewportSize()
|
|
179365
|
-
);
|
|
179366
|
-
return $1Yh1N$react.useEffect(() => {
|
|
179367
|
-
let onResize = () => {
|
|
179368
|
-
setSize((size) => {
|
|
179369
|
-
let newSize = $8b24bab62f5c65ad$var$getViewportSize();
|
|
179370
|
-
return newSize.width === size.width && newSize.height === size.height ? size : newSize;
|
|
179371
|
-
});
|
|
179372
|
-
};
|
|
179373
|
-
return $8b24bab62f5c65ad$var$visualViewport ? $8b24bab62f5c65ad$var$visualViewport.addEventListener("resize", onResize) : window.addEventListener("resize", onResize), () => {
|
|
179374
|
-
$8b24bab62f5c65ad$var$visualViewport ? $8b24bab62f5c65ad$var$visualViewport.removeEventListener("resize", onResize) : window.removeEventListener("resize", onResize);
|
|
179375
|
-
};
|
|
179376
|
-
}, []), size1;
|
|
179377
|
-
}
|
|
179378
|
-
function $8b24bab62f5c65ad$var$getViewportSize() {
|
|
179379
|
-
return {
|
|
179380
|
-
width: ($8b24bab62f5c65ad$var$visualViewport == null ? void 0 : $8b24bab62f5c65ad$var$visualViewport.width) || window.innerWidth,
|
|
179381
|
-
height: ($8b24bab62f5c65ad$var$visualViewport == null ? void 0 : $8b24bab62f5c65ad$var$visualViewport.height) || window.innerHeight
|
|
179382
|
-
};
|
|
179383
|
-
}
|
|
179384
|
-
var $34da4502ea8120db$var$descriptionId = 0, $34da4502ea8120db$var$descriptionNodes = /* @__PURE__ */ new Map();
|
|
179385
|
-
function $34da4502ea8120db$export$f8aeda7b10753fa1(description) {
|
|
179386
|
-
let [id1, setId] = $1Yh1N$react.useState(void 0);
|
|
179387
|
-
return $78605a5d7424e31b$export$e5c5a5f917a5871c(() => {
|
|
179388
|
-
if (!description)
|
|
179389
|
-
return;
|
|
179390
|
-
let desc = $34da4502ea8120db$var$descriptionNodes.get(description);
|
|
179391
|
-
if (desc)
|
|
179392
|
-
setId(desc.element.id);
|
|
179393
|
-
else {
|
|
179394
|
-
let id = `react-aria-description-${$34da4502ea8120db$var$descriptionId++}`;
|
|
179395
|
-
setId(id);
|
|
179396
|
-
let node = document.createElement("div");
|
|
179397
|
-
node.id = id, node.style.display = "none", node.textContent = description, document.body.appendChild(node), desc = {
|
|
179398
|
-
refCount: 0,
|
|
179399
|
-
element: node
|
|
179400
|
-
}, $34da4502ea8120db$var$descriptionNodes.set(description, desc);
|
|
179401
|
-
}
|
|
179402
|
-
return desc.refCount++, () => {
|
|
179403
|
-
--desc.refCount === 0 && (desc.element.remove(), $34da4502ea8120db$var$descriptionNodes.delete(description));
|
|
179404
|
-
};
|
|
179405
|
-
}, [
|
|
179406
|
-
description
|
|
179407
|
-
]), {
|
|
179408
|
-
"aria-describedby": description ? id1 : void 0
|
|
179409
|
-
};
|
|
179410
|
-
}
|
|
179411
|
-
function $9e20cff0af27e8cc$var$testUserAgent(re) {
|
|
179412
|
-
var ref;
|
|
179413
|
-
return typeof window > "u" || window.navigator == null ? !1 : ((ref = window.navigator.userAgentData) === null || ref === void 0 ? void 0 : ref.brands.some(
|
|
179414
|
-
(brand) => re.test(brand.brand)
|
|
179415
|
-
)) || re.test(window.navigator.userAgent);
|
|
179416
|
-
}
|
|
179417
|
-
function $9e20cff0af27e8cc$var$testPlatform(re) {
|
|
179418
|
-
var ref;
|
|
179419
|
-
return typeof window < "u" && window.navigator != null ? re.test(((ref = window.navigator.userAgentData) === null || ref === void 0 ? void 0 : ref.platform) || window.navigator.platform) : !1;
|
|
179420
|
-
}
|
|
179421
|
-
function $9e20cff0af27e8cc$export$9ac100e40613ea10() {
|
|
179422
|
-
return $9e20cff0af27e8cc$var$testPlatform(/^Mac/i);
|
|
179423
|
-
}
|
|
179424
|
-
function $9e20cff0af27e8cc$export$186c6964ca17d99() {
|
|
179425
|
-
return $9e20cff0af27e8cc$var$testPlatform(/^iPhone/i);
|
|
179426
|
-
}
|
|
179427
|
-
function $9e20cff0af27e8cc$export$7bef049ce92e4224() {
|
|
179428
|
-
return $9e20cff0af27e8cc$var$testPlatform(/^iPad/i) || $9e20cff0af27e8cc$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
179429
|
-
}
|
|
179430
|
-
function $9e20cff0af27e8cc$export$fedb369cb70207f1() {
|
|
179431
|
-
return $9e20cff0af27e8cc$export$186c6964ca17d99() || $9e20cff0af27e8cc$export$7bef049ce92e4224();
|
|
179432
|
-
}
|
|
179433
|
-
function $9e20cff0af27e8cc$export$e1865c3bedcd822b() {
|
|
179434
|
-
return $9e20cff0af27e8cc$export$9ac100e40613ea10() || $9e20cff0af27e8cc$export$fedb369cb70207f1();
|
|
179435
|
-
}
|
|
179436
|
-
function $9e20cff0af27e8cc$export$78551043582a6a98() {
|
|
179437
|
-
return $9e20cff0af27e8cc$var$testUserAgent(/AppleWebKit/i) && !$9e20cff0af27e8cc$export$6446a186d09e379e();
|
|
179438
|
-
}
|
|
179439
|
-
function $9e20cff0af27e8cc$export$6446a186d09e379e() {
|
|
179440
|
-
return $9e20cff0af27e8cc$var$testUserAgent(/Chrome/i);
|
|
179441
|
-
}
|
|
179442
|
-
function $9e20cff0af27e8cc$export$a11b0059900ceec8() {
|
|
179443
|
-
return $9e20cff0af27e8cc$var$testUserAgent(/Android/i);
|
|
179444
|
-
}
|
|
179445
|
-
function $2a8c0bb1629926c8$export$90fc3a17d93f704c(ref, event, handler1, options) {
|
|
179446
|
-
let handlerRef = $1Yh1N$react.useRef(handler1);
|
|
179447
|
-
handlerRef.current = handler1;
|
|
179448
|
-
let isDisabled = handler1 == null;
|
|
179449
|
-
$1Yh1N$react.useEffect(() => {
|
|
179450
|
-
if (isDisabled)
|
|
179451
|
-
return;
|
|
179452
|
-
let element = ref.current, handler = (e) => handlerRef.current.call(this, e);
|
|
179453
|
-
return element.addEventListener(event, handler, options), () => {
|
|
179454
|
-
element.removeEventListener(event, handler, options);
|
|
179455
|
-
};
|
|
179456
|
-
}, [
|
|
179457
|
-
ref,
|
|
179458
|
-
event,
|
|
179459
|
-
options,
|
|
179460
|
-
isDisabled
|
|
179461
|
-
]);
|
|
179462
|
-
}
|
|
179463
|
-
function $19a2307bfabafaf1$export$14d238f342723f25(defaultValue) {
|
|
179464
|
-
let [value, setValue] = $1Yh1N$react.useState(defaultValue), valueRef = $1Yh1N$react.useRef(value), effect = $1Yh1N$react.useRef(null);
|
|
179465
|
-
valueRef.current = value;
|
|
179466
|
-
let nextRef = $1Yh1N$react.useRef(null);
|
|
179467
|
-
nextRef.current = () => {
|
|
179468
|
-
let newValue = effect.current.next();
|
|
179469
|
-
if (newValue.done) {
|
|
179470
|
-
effect.current = null;
|
|
179471
|
-
return;
|
|
179472
|
-
}
|
|
179473
|
-
value === newValue.value ? nextRef.current() : setValue(newValue.value);
|
|
179474
|
-
}, $78605a5d7424e31b$export$e5c5a5f917a5871c(() => {
|
|
179475
|
-
effect.current && nextRef.current();
|
|
179476
|
-
});
|
|
179477
|
-
let queue = $1Yh1N$react.useCallback((fn) => {
|
|
179478
|
-
effect.current = fn(valueRef.current), nextRef.current();
|
|
179479
|
-
}, [
|
|
179480
|
-
effect,
|
|
179481
|
-
nextRef
|
|
179482
|
-
]);
|
|
179483
|
-
return [
|
|
179484
|
-
value,
|
|
179485
|
-
queue
|
|
179486
|
-
];
|
|
179487
|
-
}
|
|
179488
|
-
function $449412113267a1fe$export$53a0910f038337bd(scrollView, element) {
|
|
179489
|
-
let offsetX = $449412113267a1fe$var$relativeOffset(scrollView, element, "left"), offsetY = $449412113267a1fe$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, maxX = x + scrollView.offsetWidth, maxY = y + scrollView.offsetHeight;
|
|
179490
|
-
offsetX <= x ? x = offsetX : offsetX + width > maxX && (x += offsetX + width - maxX), offsetY <= y ? y = offsetY : offsetY + height > maxY && (y += offsetY + height - maxY), scrollView.scrollLeft = x, scrollView.scrollTop = y;
|
|
179491
|
-
}
|
|
179492
|
-
function $449412113267a1fe$var$relativeOffset(ancestor, child, axis) {
|
|
179493
|
-
let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0;
|
|
179494
|
-
for (; child.offsetParent && (sum += child[prop], child.offsetParent !== ancestor); ) {
|
|
179495
|
-
if (child.offsetParent.contains(ancestor)) {
|
|
179496
|
-
sum -= ancestor[prop];
|
|
179497
|
-
break;
|
|
179498
|
-
}
|
|
179499
|
-
child = child.offsetParent;
|
|
179500
|
-
}
|
|
179501
|
-
return sum;
|
|
179502
|
-
}
|
|
179503
|
-
function $577e795361f19be9$export$60278871457622de(event) {
|
|
179504
|
-
return event.mozInputSource === 0 && event.isTrusted ? !0 : $9e20cff0af27e8cc$export$a11b0059900ceec8() && event.pointerType ? event.type === "click" && event.buttons === 1 : event.detail === 0 && !event.pointerType;
|
|
179505
|
-
}
|
|
179506
|
-
function $577e795361f19be9$export$29bf1b5f2c56cf63(event) {
|
|
179507
|
-
return event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
179508
|
-
}
|
|
179509
|
-
}
|
|
179510
|
-
});
|
|
179511
|
-
|
|
179512
178873
|
// <stdin>
|
|
179513
178874
|
var stdin_exports = {};
|
|
179514
178875
|
__export(stdin_exports, {
|
|
@@ -179546,7 +178907,7 @@ __export(root_exports, {
|
|
|
179546
178907
|
links: () => links,
|
|
179547
178908
|
meta: () => meta
|
|
179548
178909
|
});
|
|
179549
|
-
var import_react_konami_code = __toESM(require_Konami()), import_react2 = __toESM(require_dist())
|
|
178910
|
+
var import_react_konami_code = __toESM(require_Konami()), import_react2 = __toESM(require_dist());
|
|
179550
178911
|
|
|
179551
178912
|
// src/styles/App.css
|
|
179552
178913
|
var App_default = "/build/_assets/App-G6V2GHO3.css";
|
|
@@ -179829,9 +179190,7 @@ function App() {
|
|
|
179829
179190
|
}),
|
|
179830
179191
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("body", {
|
|
179831
179192
|
children: [
|
|
179832
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
179833
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Outlet, {})
|
|
179834
|
-
}),
|
|
179193
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Outlet, {}),
|
|
179835
179194
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.ScrollRestoration, {}),
|
|
179836
179195
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Scripts, {}),
|
|
179837
179196
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.LiveReload, {})
|
|
@@ -179903,7 +179262,7 @@ __export(repo_exports, {
|
|
|
179903
179262
|
default: () => Repo,
|
|
179904
179263
|
loader: () => loader
|
|
179905
179264
|
});
|
|
179906
|
-
var import_material10 = __toESM(require_material()), import_path8 = require("path"),
|
|
179265
|
+
var import_material10 = __toESM(require_material()), import_path8 = require("path"), import_react28 = __toESM(require_react()), import_react_use5 = __toESM(require_lib4()), import_node = __toESM(require_dist4()), import_remix_typedjson = __toESM(require_dist5()), import_react29 = __toESM(require_dist()), import_styled_components21 = __toESM(require_styled_components_cjs());
|
|
179907
179266
|
|
|
179908
179267
|
// src/analyzer/analyze.server.ts
|
|
179909
179268
|
var import_fs3 = require("fs");
|
|
@@ -179972,7 +179331,7 @@ var import_perf_hooks = require("perf_hooks"), import_path2 = require("path");
|
|
|
179972
179331
|
// package.json
|
|
179973
179332
|
var package_default = {
|
|
179974
179333
|
name: "git-truck",
|
|
179975
|
-
version: "1.3.
|
|
179334
|
+
version: "1.3.1",
|
|
179976
179335
|
private: !1,
|
|
179977
179336
|
description: "Visualizing a Git repository",
|
|
179978
179337
|
license: "MIT",
|
|
@@ -180001,8 +179360,6 @@ var package_default = {
|
|
|
180001
179360
|
lint: "eslint --cache --fix {src,scripts}/**/*.{ts,tsx,js,mjs}"
|
|
180002
179361
|
},
|
|
180003
179362
|
devDependencies: {
|
|
180004
|
-
"@react-aria/ssr": "^3.3.0",
|
|
180005
|
-
"@react-aria/utils": "^3.14.0",
|
|
180006
179363
|
"@react-spring/web": "^9.5.5",
|
|
180007
179364
|
"@remix-run/dev": "^1.7.2",
|
|
180008
179365
|
"@remix-run/eslint-config": "^1.7.2",
|
|
@@ -183667,8 +183024,7 @@ function addAuthorUnion(data, dupeMap) {
|
|
|
183667
183024
|
function addAuthorUnionRec(tree, authorUnions) {
|
|
183668
183025
|
for (let child of tree.children)
|
|
183669
183026
|
child.type === "blob" ? child.unionedAuthors = {
|
|
183670
|
-
HISTORICAL: unionAuthors(child.authors, authorUnions)
|
|
183671
|
-
BLAME: unionAuthors(child.blameAuthors, authorUnions)
|
|
183027
|
+
HISTORICAL: unionAuthors(child.authors, authorUnions)
|
|
183672
183028
|
} : addAuthorUnionRec(child, authorUnions);
|
|
183673
183029
|
return tree;
|
|
183674
183030
|
}
|
|
@@ -187139,8 +186495,7 @@ var TruckFactorTranslater = class {
|
|
|
187139
186495
|
|
|
187140
186496
|
// src/metrics/metrics.ts
|
|
187141
186497
|
var Authorship = {
|
|
187142
|
-
HISTORICAL: "Complete history"
|
|
187143
|
-
BLAME: "Newest version"
|
|
186498
|
+
HISTORICAL: "Complete history"
|
|
187144
186499
|
}, Metric = {
|
|
187145
186500
|
FILE_EXTENSION: "File extension",
|
|
187146
186501
|
MOST_COMMITS: "Number of commits",
|
|
@@ -187153,8 +186508,7 @@ function createMetricData(data) {
|
|
|
187153
186508
|
let authorColors = generateAuthorColors(data.authors);
|
|
187154
186509
|
return [
|
|
187155
186510
|
{
|
|
187156
|
-
HISTORICAL: setupMetricsCache(data.commit.tree, getMetricCalcs(data, "HISTORICAL", authorColors))
|
|
187157
|
-
BLAME: setupMetricsCache(data.commit.tree, getMetricCalcs(data, "BLAME", authorColors))
|
|
186511
|
+
HISTORICAL: setupMetricsCache(data.commit.tree, getMetricCalcs(data, "HISTORICAL", authorColors))
|
|
187158
186512
|
},
|
|
187159
186513
|
authorColors
|
|
187160
186514
|
];
|
|
@@ -189017,8 +188371,7 @@ var import_jsx_runtime = __toESM(require_jsx_runtime()), TooltipBox = (0, import
|
|
|
189017
188371
|
inset: 0;
|
|
189018
188372
|
pointer-events: none;
|
|
189019
188373
|
overflow: hidden;
|
|
189020
|
-
|
|
189021
|
-
function Tooltip({ hoveredBlob }) {
|
|
188374
|
+
`, Tooltip = (0, import_react18.memo)(function({ hoveredBlob }) {
|
|
189022
188375
|
let tooltipContainerRef = (0, import_react18.useRef)(null), { metricType, authorshipType } = useOptions(), documentElementRef = (0, import_react18.useRef)(document.documentElement), mouse = (0, import_react_use3.useMouse)(documentElementRef), unitRaw = useCSSVar("--unit"), unit = unitRaw ? Number(unitRaw.replace("px", "")) : 0, [metricsData] = useMetrics(), color = (0, import_react18.useMemo)(() => {
|
|
189023
188376
|
var _a, _b;
|
|
189024
188377
|
if (!hoveredBlob)
|
|
@@ -189053,7 +188406,7 @@ function Tooltip({ hoveredBlob }) {
|
|
|
189053
188406
|
]
|
|
189054
188407
|
})
|
|
189055
188408
|
});
|
|
189056
|
-
}
|
|
188409
|
+
});
|
|
189057
188410
|
function ColorMetricDependentInfo(props) {
|
|
189058
188411
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
189059
188412
|
switch (props.metric) {
|
|
@@ -189115,7 +188468,6 @@ function ColorMetricDependentInfo(props) {
|
|
|
189115
188468
|
]
|
|
189116
188469
|
});
|
|
189117
188470
|
}
|
|
189118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
|
|
189119
188471
|
default:
|
|
189120
188472
|
return null;
|
|
189121
188473
|
}
|
|
@@ -189497,10 +188849,10 @@ var IconButton2 = import_styled_components16.default.button`
|
|
|
189497
188849
|
`;
|
|
189498
188850
|
|
|
189499
188851
|
// src/components/EnumSelect.tsx
|
|
189500
|
-
var
|
|
188852
|
+
var import_react20 = __toESM(require_react());
|
|
189501
188853
|
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
189502
188854
|
function EnumSelect(props) {
|
|
189503
|
-
let id = (0,
|
|
188855
|
+
let id = (0, import_react20.useId)(), enumEntries = Object.entries(props.enum);
|
|
189504
188856
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
189505
188857
|
style: props.hidden ? { display: "none" } : {},
|
|
189506
188858
|
children: [
|
|
@@ -189560,12 +188912,12 @@ function Options2() {
|
|
|
189560
188912
|
}
|
|
189561
188913
|
|
|
189562
188914
|
// src/components/Providers.tsx
|
|
189563
|
-
var
|
|
188915
|
+
var import_react22 = __toESM(require_react());
|
|
189564
188916
|
|
|
189565
188917
|
// src/contexts/SearchContext.ts
|
|
189566
|
-
var
|
|
188918
|
+
var import_react21 = __toESM(require_react()), SearchContext = (0, import_react21.createContext)(void 0);
|
|
189567
188919
|
function useSearch() {
|
|
189568
|
-
let context = (0,
|
|
188920
|
+
let context = (0, import_react21.useContext)(SearchContext);
|
|
189569
188921
|
if (!context)
|
|
189570
188922
|
throw new Error("useSearch must be used within a SearchProvider");
|
|
189571
188923
|
return context;
|
|
@@ -189574,7 +188926,7 @@ function useSearch() {
|
|
|
189574
188926
|
// src/components/Providers.tsx
|
|
189575
188927
|
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
189576
188928
|
function Providers({ children, data }) {
|
|
189577
|
-
let [options, setOptions] = (0,
|
|
188929
|
+
let [options, setOptions] = (0, import_react22.useState)(null), [searchText, setSearchText] = (0, import_react22.useState)(""), [searchResults, setSearchResults] = (0, import_react22.useState)([]), [path, setPath] = (0, import_react22.useState)(data.repo.name), [clickedObject, setClickedObject] = (0, import_react22.useState)(null), metricsData = (0, import_react22.useMemo)(() => createMetricData(data.analyzerData), [data]), optionsValue = (0, import_react22.useMemo)(
|
|
189578
188930
|
() => ({
|
|
189579
188931
|
...getDefaultOptions(),
|
|
189580
188932
|
...options,
|
|
@@ -189632,8 +188984,8 @@ function Providers({ children, data }) {
|
|
|
189632
188984
|
}
|
|
189633
188985
|
|
|
189634
188986
|
// src/components/SearchBar.tsx
|
|
189635
|
-
var import_styled_components18 = __toESM(require_styled_components_cjs()),
|
|
189636
|
-
var
|
|
188987
|
+
var import_styled_components18 = __toESM(require_styled_components_cjs()), import_react23 = __toESM(require_react());
|
|
188988
|
+
var import_react24 = __toESM(require_react());
|
|
189637
188989
|
var import_material8 = __toESM(require_material()), import_jsx_runtime = __toESM(require_jsx_runtime()), StyledBox2 = (0, import_styled_components18.default)(Box)`
|
|
189638
188990
|
display: flex;
|
|
189639
188991
|
flex-direction: column;
|
|
@@ -189647,19 +188999,8 @@ function findSearchResults(tree, searchString) {
|
|
|
189647
188999
|
return subTreeSearch(tree), searchResults;
|
|
189648
189000
|
}
|
|
189649
189001
|
function SearchBar() {
|
|
189650
|
-
let searchFieldRef = (0,
|
|
189651
|
-
|
|
189652
|
-
if (setClickedObject(object), object.type === "tree")
|
|
189653
|
-
setPath(object.path);
|
|
189654
|
-
else {
|
|
189655
|
-
let sep3 = getSeparator(object.path);
|
|
189656
|
-
setPath(allExceptLast(object.path.split(sep3)).join(sep3));
|
|
189657
|
-
}
|
|
189658
|
-
}
|
|
189659
|
-
function debounceUpdate() {
|
|
189660
|
-
setSearchText(value), setSearchResults(findSearchResults(analyzerData.commit.tree, value));
|
|
189661
|
-
}
|
|
189662
|
-
return (0, import_react_use4.useDebounce)(() => debounceUpdate(), 200, [value]), (0, import_react22.useEffect)(() => {
|
|
189002
|
+
let searchFieldRef = (0, import_react23.useRef)(null), [isTransitioning, startTransition] = (0, import_react23.useTransition)(), { setSearchText, searchText, searchResults, setSearchResults } = useSearch(), id = (0, import_react24.useId)(), { analyzerData } = useData();
|
|
189003
|
+
return (0, import_react23.useEffect)(() => {
|
|
189663
189004
|
let searchOverride = (event) => {
|
|
189664
189005
|
var _a;
|
|
189665
189006
|
event.ctrlKey && event.key === "f" && (event.preventDefault(), (_a = searchFieldRef.current) == null || _a.focus());
|
|
@@ -189672,51 +189013,60 @@ function SearchBar() {
|
|
|
189672
189013
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SearchField, {
|
|
189673
189014
|
ref: searchFieldRef,
|
|
189674
189015
|
id,
|
|
189675
|
-
value,
|
|
189676
189016
|
type: "search",
|
|
189677
189017
|
placeholder: "Search for a file or folder...",
|
|
189678
189018
|
onChange: (event) => {
|
|
189679
|
-
|
|
189019
|
+
let value = event.target.value;
|
|
189020
|
+
startTransition(() => {
|
|
189021
|
+
setSearchText(value), setSearchResults(findSearchResults(analyzerData.commit.tree, value));
|
|
189022
|
+
});
|
|
189680
189023
|
}
|
|
189681
189024
|
}),
|
|
189682
|
-
|
|
189683
|
-
children:
|
|
189684
|
-
|
|
189685
|
-
|
|
189686
|
-
|
|
189687
|
-
" results"
|
|
189688
|
-
]
|
|
189689
|
-
}),
|
|
189690
|
-
searchResults.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {}) : null
|
|
189691
|
-
]
|
|
189692
|
-
}) : null,
|
|
189693
|
-
searchResults.map((result) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react22.Fragment, {
|
|
189694
|
-
children: [
|
|
189695
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SearchResultButton, {
|
|
189696
|
-
title: result.path,
|
|
189697
|
-
value: result.path,
|
|
189698
|
-
onClick: () => onClick(result),
|
|
189699
|
-
children: [
|
|
189700
|
-
result.type === "tree" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material8.Folder, {
|
|
189701
|
-
display: "inline-block",
|
|
189702
|
-
height: "1rem"
|
|
189703
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material8.TextSnippet, {
|
|
189704
|
-
display: "inline-block",
|
|
189705
|
-
height: "1rem"
|
|
189706
|
-
}),
|
|
189707
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
189708
|
-
children: result.name
|
|
189709
|
-
})
|
|
189710
|
-
]
|
|
189711
|
-
}),
|
|
189712
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {
|
|
189713
|
-
xs: !0
|
|
189714
|
-
})
|
|
189715
|
-
]
|
|
189716
|
-
}, result.path))
|
|
189025
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxP, {
|
|
189026
|
+
children: isTransitioning ? "Searching..." : searchText.length > 0 ? `${searchResults.length} results` : null
|
|
189027
|
+
}),
|
|
189028
|
+
searchResults.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {}) : null,
|
|
189029
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SearchResults, {})
|
|
189717
189030
|
]
|
|
189718
189031
|
});
|
|
189719
189032
|
}
|
|
189033
|
+
var SearchResults = (0, import_react23.memo)(function() {
|
|
189034
|
+
let { setPath } = usePath(), { setClickedObject } = useClickedObject(), { searchResults } = useSearch();
|
|
189035
|
+
function onClick(object) {
|
|
189036
|
+
if (setClickedObject(object), object.type === "tree")
|
|
189037
|
+
setPath(object.path);
|
|
189038
|
+
else {
|
|
189039
|
+
let sep3 = getSeparator(object.path);
|
|
189040
|
+
setPath(allExceptLast(object.path.split(sep3)).join(sep3));
|
|
189041
|
+
}
|
|
189042
|
+
}
|
|
189043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
189044
|
+
children: searchResults.map((result) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react23.Fragment, {
|
|
189045
|
+
children: [
|
|
189046
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SearchResultButton, {
|
|
189047
|
+
title: result.path,
|
|
189048
|
+
value: result.path,
|
|
189049
|
+
onClick: () => onClick(result),
|
|
189050
|
+
children: [
|
|
189051
|
+
result.type === "tree" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material8.Folder, {
|
|
189052
|
+
display: "inline-block",
|
|
189053
|
+
height: "1rem"
|
|
189054
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material8.TextSnippet, {
|
|
189055
|
+
display: "inline-block",
|
|
189056
|
+
height: "1rem"
|
|
189057
|
+
}),
|
|
189058
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
189059
|
+
children: result.name
|
|
189060
|
+
})
|
|
189061
|
+
]
|
|
189062
|
+
}),
|
|
189063
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {
|
|
189064
|
+
xs: !0
|
|
189065
|
+
})
|
|
189066
|
+
]
|
|
189067
|
+
}, result.path))
|
|
189068
|
+
});
|
|
189069
|
+
});
|
|
189720
189070
|
|
|
189721
189071
|
// src/components/SidePanel.tsx
|
|
189722
189072
|
var import_styled_components19 = __toESM(require_styled_components_cjs()), import_jsx_runtime = __toESM(require_jsx_runtime()), SidePanelRoot = import_styled_components19.default.aside`
|
|
@@ -189731,11 +189081,11 @@ function SidePanel(props) {
|
|
|
189731
189081
|
}
|
|
189732
189082
|
|
|
189733
189083
|
// src/components/UnionAuthorsModal.tsx
|
|
189734
|
-
var
|
|
189084
|
+
var import_react25 = __toESM(require_react()), import_react26 = __toESM(require_react()), import_react27 = __toESM(require_dist()), import_styled_components20 = __toESM(require_styled_components_cjs());
|
|
189735
189085
|
var import_octicons2 = __toESM(require_octicons());
|
|
189736
|
-
var import_material9 = __toESM(require_material()),
|
|
189086
|
+
var import_material9 = __toESM(require_material()), import_react_use4 = __toESM(require_lib4()), import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
189737
189087
|
function UnionAuthorsModal({ visible, onClose }) {
|
|
189738
|
-
let { repo, analyzerData, truckConfig } = useData(), submit = (0,
|
|
189088
|
+
let { repo, analyzerData, truckConfig } = useData(), submit = (0, import_react27.useSubmit)(), { authors } = analyzerData, authorUnions = truckConfig.unionedAuthors ?? [], [selectedAuthors, setSelectedAuthors] = (0, import_react26.useState)([]), flattedUnionedAuthors = authorUnions.reduce((acc, union) => [...acc, ...union], []).sort(stringSorter);
|
|
189739
189089
|
function unmergeGroup(groupToUnGroup) {
|
|
189740
189090
|
let newAuthorUnions = authorUnions.filter((_, i) => i !== groupToUnGroup), form = new FormData();
|
|
189741
189091
|
form.append("unionedAuthors", JSON.stringify(newAuthorUnions)), submit(form, {
|
|
@@ -189759,11 +189109,11 @@ function UnionAuthorsModal({ visible, onClose }) {
|
|
|
189759
189109
|
method: "post"
|
|
189760
189110
|
});
|
|
189761
189111
|
}
|
|
189762
|
-
let transitionData = (0,
|
|
189112
|
+
let transitionData = (0, import_react27.useTransition)(), disabled = transitionData.state !== "idle", [, authorColors] = useMetrics(), ungroupedUsersSorted = authors.filter((a) => !flattedUnionedAuthors.includes(a)).slice(0).sort(stringSorter);
|
|
189763
189113
|
function handleModalWrapperClick(event) {
|
|
189764
189114
|
event.target === event.currentTarget && onClose();
|
|
189765
189115
|
}
|
|
189766
|
-
(0,
|
|
189116
|
+
(0, import_react_use4.useKey)("Escape", onClose);
|
|
189767
189117
|
let getColorFromDisplayName = (displayName) => authorColors.get(displayName) ?? "#333";
|
|
189768
189118
|
if (!visible)
|
|
189769
189119
|
return null;
|
|
@@ -189913,7 +189263,7 @@ function CheckboxWithLabel({
|
|
|
189913
189263
|
checked,
|
|
189914
189264
|
onChange
|
|
189915
189265
|
}) {
|
|
189916
|
-
let id = (0,
|
|
189266
|
+
let id = (0, import_react25.useId)();
|
|
189917
189267
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CheckboxWrapper, {
|
|
189918
189268
|
children: [
|
|
189919
189269
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Checkbox2, {
|
|
@@ -190042,13 +189392,13 @@ var import_jsx_runtime = __toESM(require_jsx_runtime()), invalidateCache = !1, l
|
|
|
190042
189392
|
children: error2.stack
|
|
190043
189393
|
}),
|
|
190044
189394
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
190045
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
189395
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react29.Link, {
|
|
190046
189396
|
to: ".",
|
|
190047
189397
|
children: "Retry"
|
|
190048
189398
|
})
|
|
190049
189399
|
}),
|
|
190050
189400
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
190051
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
189401
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react29.Link, {
|
|
190052
189402
|
to: "..",
|
|
190053
189403
|
children: "Go back"
|
|
190054
189404
|
})
|
|
@@ -190120,7 +189470,7 @@ function UpdateNotifier() {
|
|
|
190120
189470
|
});
|
|
190121
189471
|
}
|
|
190122
189472
|
function Repo() {
|
|
190123
|
-
let data = (0, import_remix_typedjson.useTypedLoaderData)(), { analyzerData, gitTruckInfo } = data, [isFullscreen, setIsFullscreen] = (0,
|
|
189473
|
+
let data = (0, import_remix_typedjson.useTypedLoaderData)(), { analyzerData, gitTruckInfo } = data, [isFullscreen, setIsFullscreen] = (0, import_react28.useState)(!1), [unionAuthorsModalOpen, setUnionAuthorsModalOpen] = (0, import_react_use5.useBoolean)(!1), showUnionAuthorsModal = () => setUnionAuthorsModalOpen(!0);
|
|
190124
189474
|
return analyzerData ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Providers, {
|
|
190125
189475
|
data,
|
|
190126
189476
|
children: [
|
|
@@ -190200,7 +189550,7 @@ __export(routes_exports, {
|
|
|
190200
189550
|
default: () => Index,
|
|
190201
189551
|
loader: () => loader2
|
|
190202
189552
|
});
|
|
190203
|
-
var import_node2 = __toESM(require_dist4()),
|
|
189553
|
+
var import_node2 = __toESM(require_dist4()), import_react30 = __toESM(require_dist()), import_styled_components23 = __toESM(require_styled_components_cjs());
|
|
190204
189554
|
|
|
190205
189555
|
// src/components/AnalyzingIndicator.tsx
|
|
190206
189556
|
var import_styled_components22 = __toESM(require_styled_components_cjs());
|
|
@@ -190246,7 +189596,7 @@ function AnalyzingIndicator() {
|
|
|
190246
189596
|
|
|
190247
189597
|
// src/routes/index.tsx
|
|
190248
189598
|
var import_path9 = require("path");
|
|
190249
|
-
var
|
|
189599
|
+
var import_react31 = __toESM(require_react());
|
|
190250
189600
|
var import_jsx_runtime = __toESM(require_jsx_runtime()), loader2 = async () => {
|
|
190251
189601
|
let args = await getArgsWithDefaults(), [repo, repositories] = await GitCaller.scanDirectoryForRepositories(args.path), baseDir = (0, import_path9.resolve)(repo ? getBaseDirFromPath(args.path) : args.path);
|
|
190252
189602
|
return (0, import_node2.json)({
|
|
@@ -190257,8 +189607,8 @@ var import_jsx_runtime = __toESM(require_jsx_runtime()), loader2 = async () => {
|
|
|
190257
189607
|
});
|
|
190258
189608
|
};
|
|
190259
189609
|
function Index() {
|
|
190260
|
-
let loaderData = (0,
|
|
190261
|
-
return (0,
|
|
189610
|
+
let loaderData = (0, import_react30.useLoaderData)(), { repositories, baseDir, baseDirName } = loaderData;
|
|
189611
|
+
return (0, import_react30.useTransition)().state !== "idle" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnalyzingIndicator, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Wrapper, {
|
|
190262
189612
|
children: [
|
|
190263
189613
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {}),
|
|
190264
189614
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(H1, {
|
|
@@ -190312,7 +189662,7 @@ function Index() {
|
|
|
190312
189662
|
});
|
|
190313
189663
|
}
|
|
190314
189664
|
function RepositoryEntry({ repo }) {
|
|
190315
|
-
let [head, setHead] = (0,
|
|
189665
|
+
let [head, setHead] = (0, import_react31.useState)(repo.currentHead), path = getPathFromRepoAndHead(repo.name, head), branchIsAnalyzed = repo.analyzedHeads[head], iconColor = branchIsAnalyzed ? "green" : void 0;
|
|
190316
189666
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Li, {
|
|
190317
189667
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
190318
189668
|
style: {
|
|
@@ -190366,7 +189716,7 @@ var Wrapper = import_styled_components23.default.div`
|
|
|
190366
189716
|
grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
|
|
190367
189717
|
`, Li = import_styled_components23.default.li`
|
|
190368
189718
|
margin: 0;
|
|
190369
|
-
`, SLink = (0, import_styled_components23.default)(
|
|
189719
|
+
`, SLink = (0, import_styled_components23.default)(import_react30.Link)`
|
|
190370
189720
|
line-height: 100%;
|
|
190371
189721
|
text-decoration: none;
|
|
190372
189722
|
font-weight: bold;
|
|
@@ -190396,7 +189746,7 @@ var Wrapper = import_styled_components23.default.div`
|
|
|
190396
189746
|
`;
|
|
190397
189747
|
|
|
190398
189748
|
// server-assets-manifest:@remix-run/dev/assets-manifest
|
|
190399
|
-
var assets_manifest_default = { version: "
|
|
189749
|
+
var assets_manifest_default = { version: "80c84c72", entry: { module: "/build/entry.client-YPWZXPQ4.js", imports: ["/build/_shared/chunk-XMAWJ27N.js", "/build/_shared/chunk-2BPXJFRU.js"] }, routes: { root: { id: "root", parentId: void 0, path: "", index: void 0, caseSensitive: void 0, module: "/build/root-WYGBICN2.js", imports: ["/build/_shared/chunk-Y7QOL3BF.js"], hasAction: !1, hasLoader: !1, hasCatchBoundary: !0, hasErrorBoundary: !0 }, "routes/$repo.$": { id: "routes/$repo.$", parentId: "root", path: ":repo/*", index: void 0, caseSensitive: void 0, module: "/build/routes/$repo.$-WXCO7VTZ.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !0, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !0 }, "routes/index": { id: "routes/index", parentId: "root", path: void 0, index: !0, caseSensitive: void 0, module: "/build/routes/index-EFMTA3RM.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !1, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !1 } }, url: "/build/manifest-80C84C72.js" };
|
|
190400
189750
|
|
|
190401
189751
|
// server-entry-module:@remix-run/dev/server-build
|
|
190402
189752
|
var assetsBuildDirectory = "public/build", publicPath = "/build/", entry = { module: entry_server_exports }, routes = {
|