Modification Alert personnalisée
This commit is contained in:
parent
e9f33b98cf
commit
ffa5071435
11295
Front-end/.vite/deps/@mui_material_Slider.js
Normal file
11295
Front-end/.vite/deps/@mui_material_Slider.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/@mui_material_Slider.js.map
Normal file
7
Front-end/.vite/deps/@mui_material_Slider.js.map
Normal file
File diff suppressed because one or more lines are too long
79
Front-end/.vite/deps/_metadata.json
Normal file
79
Front-end/.vite/deps/_metadata.json
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"hash": "9786a6e1",
|
||||
"configHash": "fb1b2e05",
|
||||
"lockfileHash": "07bba541",
|
||||
"browserHash": "df6a5965",
|
||||
"optimized": {
|
||||
"react": {
|
||||
"src": "../../node_modules/react/index.js",
|
||||
"file": "react.js",
|
||||
"fileHash": "93e4d9cc",
|
||||
"needsInterop": true
|
||||
},
|
||||
"react-dom/client": {
|
||||
"src": "../../node_modules/react-dom/client.js",
|
||||
"file": "react-dom_client.js",
|
||||
"fileHash": "75480039",
|
||||
"needsInterop": true
|
||||
},
|
||||
"react-router-dom": {
|
||||
"src": "../../node_modules/react-router-dom/dist/index.mjs",
|
||||
"file": "react-router-dom.js",
|
||||
"fileHash": "c08021c2",
|
||||
"needsInterop": false
|
||||
},
|
||||
"jwt-decode": {
|
||||
"src": "../../node_modules/jwt-decode/build/esm/index.js",
|
||||
"file": "jwt-decode.js",
|
||||
"fileHash": "d90b24a4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"lucide-react": {
|
||||
"src": "../../node_modules/lucide-react/dist/esm/lucide-react.js",
|
||||
"file": "lucide-react.js",
|
||||
"fileHash": "0b3ce2ad",
|
||||
"needsInterop": false
|
||||
},
|
||||
"axios": {
|
||||
"src": "../../node_modules/axios/index.js",
|
||||
"file": "axios.js",
|
||||
"fileHash": "ddcc2f69",
|
||||
"needsInterop": false
|
||||
},
|
||||
"recharts": {
|
||||
"src": "../../node_modules/recharts/es6/index.js",
|
||||
"file": "recharts.js",
|
||||
"fileHash": "31005dc9",
|
||||
"needsInterop": false
|
||||
},
|
||||
"react-circle-progress-bar": {
|
||||
"src": "../../node_modules/react-circle-progress-bar/dist/progress.js",
|
||||
"file": "react-circle-progress-bar.js",
|
||||
"fileHash": "39e9f2a6",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@mui/material/Slider": {
|
||||
"src": "../../node_modules/@mui/material/esm/Slider/index.js",
|
||||
"file": "@mui_material_Slider.js",
|
||||
"fileHash": "110c1e8f",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {
|
||||
"chunk-AG6MXCTY": {
|
||||
"file": "chunk-AG6MXCTY.js"
|
||||
},
|
||||
"chunk-JMVEG3FK": {
|
||||
"file": "chunk-JMVEG3FK.js"
|
||||
},
|
||||
"chunk-TWJRYSII": {
|
||||
"file": "chunk-TWJRYSII.js"
|
||||
},
|
||||
"chunk-PMYNNG2G": {
|
||||
"file": "chunk-PMYNNG2G.js"
|
||||
},
|
||||
"chunk-DC5AMYBS": {
|
||||
"file": "chunk-DC5AMYBS.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
2509
Front-end/.vite/deps/axios.js
Normal file
2509
Front-end/.vite/deps/axios.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/axios.js.map
Normal file
7
Front-end/.vite/deps/axios.js.map
Normal file
File diff suppressed because one or more lines are too long
680
Front-end/.vite/deps/chunk-AG6MXCTY.js
Normal file
680
Front-end/.vite/deps/chunk-AG6MXCTY.js
Normal file
@ -0,0 +1,680 @@
|
||||
import {
|
||||
require_ReactPropTypesSecret,
|
||||
require_checkPropTypes,
|
||||
require_has,
|
||||
require_object_assign
|
||||
} from "./chunk-PMYNNG2G.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-DC5AMYBS.js";
|
||||
|
||||
// node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
|
||||
var require_react_is_development = __commonJS({
|
||||
"node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
||||
"use strict";
|
||||
if (true) {
|
||||
(function() {
|
||||
"use strict";
|
||||
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
||||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
||||
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
||||
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
||||
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
||||
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
||||
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
||||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
||||
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
||||
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
||||
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
||||
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
||||
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
||||
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
||||
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
||||
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
||||
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
||||
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
||||
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
||||
function isValidElementType(type) {
|
||||
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||
}
|
||||
function typeOf(object) {
|
||||
if (typeof object === "object" && object !== null) {
|
||||
var $$typeof = object.$$typeof;
|
||||
switch ($$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
var type = object.type;
|
||||
switch (type) {
|
||||
case REACT_ASYNC_MODE_TYPE:
|
||||
case REACT_CONCURRENT_MODE_TYPE:
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
case REACT_PROFILER_TYPE:
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return type;
|
||||
default:
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
switch ($$typeofType) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
case REACT_MEMO_TYPE:
|
||||
case REACT_PROVIDER_TYPE:
|
||||
return $$typeofType;
|
||||
default:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
case REACT_PORTAL_TYPE:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
return void 0;
|
||||
}
|
||||
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||
var Element = REACT_ELEMENT_TYPE;
|
||||
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||
var Fragment = REACT_FRAGMENT_TYPE;
|
||||
var Lazy = REACT_LAZY_TYPE;
|
||||
var Memo = REACT_MEMO_TYPE;
|
||||
var Portal = REACT_PORTAL_TYPE;
|
||||
var Profiler = REACT_PROFILER_TYPE;
|
||||
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
var Suspense = REACT_SUSPENSE_TYPE;
|
||||
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
||||
function isAsyncMode(object) {
|
||||
{
|
||||
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
||||
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
||||
}
|
||||
}
|
||||
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||
}
|
||||
function isConcurrentMode(object) {
|
||||
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||
}
|
||||
function isContextConsumer(object) {
|
||||
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||
}
|
||||
function isContextProvider(object) {
|
||||
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||
}
|
||||
function isElement(object) {
|
||||
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
function isForwardRef(object) {
|
||||
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||
}
|
||||
function isFragment(object) {
|
||||
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||
}
|
||||
function isLazy(object) {
|
||||
return typeOf(object) === REACT_LAZY_TYPE;
|
||||
}
|
||||
function isMemo(object) {
|
||||
return typeOf(object) === REACT_MEMO_TYPE;
|
||||
}
|
||||
function isPortal(object) {
|
||||
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||
}
|
||||
function isProfiler(object) {
|
||||
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||
}
|
||||
function isStrictMode(object) {
|
||||
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||
}
|
||||
function isSuspense(object) {
|
||||
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||
}
|
||||
exports.AsyncMode = AsyncMode;
|
||||
exports.ConcurrentMode = ConcurrentMode;
|
||||
exports.ContextConsumer = ContextConsumer;
|
||||
exports.ContextProvider = ContextProvider;
|
||||
exports.Element = Element;
|
||||
exports.ForwardRef = ForwardRef;
|
||||
exports.Fragment = Fragment;
|
||||
exports.Lazy = Lazy;
|
||||
exports.Memo = Memo;
|
||||
exports.Portal = Portal;
|
||||
exports.Profiler = Profiler;
|
||||
exports.StrictMode = StrictMode;
|
||||
exports.Suspense = Suspense;
|
||||
exports.isAsyncMode = isAsyncMode;
|
||||
exports.isConcurrentMode = isConcurrentMode;
|
||||
exports.isContextConsumer = isContextConsumer;
|
||||
exports.isContextProvider = isContextProvider;
|
||||
exports.isElement = isElement;
|
||||
exports.isForwardRef = isForwardRef;
|
||||
exports.isFragment = isFragment;
|
||||
exports.isLazy = isLazy;
|
||||
exports.isMemo = isMemo;
|
||||
exports.isPortal = isPortal;
|
||||
exports.isProfiler = isProfiler;
|
||||
exports.isStrictMode = isStrictMode;
|
||||
exports.isSuspense = isSuspense;
|
||||
exports.isValidElementType = isValidElementType;
|
||||
exports.typeOf = typeOf;
|
||||
})();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/node_modules/react-is/index.js
|
||||
var require_react_is = __commonJS({
|
||||
"node_modules/prop-types/node_modules/react-is/index.js"(exports, module) {
|
||||
"use strict";
|
||||
if (false) {
|
||||
module.exports = null;
|
||||
} else {
|
||||
module.exports = require_react_is_development();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/factoryWithTypeCheckers.js
|
||||
var require_factoryWithTypeCheckers = __commonJS({
|
||||
"node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) {
|
||||
"use strict";
|
||||
var ReactIs = require_react_is();
|
||||
var assign = require_object_assign();
|
||||
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
||||
var has = require_has();
|
||||
var checkPropTypes = require_checkPropTypes();
|
||||
var printWarning = function() {
|
||||
};
|
||||
if (true) {
|
||||
printWarning = function(text) {
|
||||
var message = "Warning: " + text;
|
||||
if (typeof console !== "undefined") {
|
||||
console.error(message);
|
||||
}
|
||||
try {
|
||||
throw new Error(message);
|
||||
} catch (x) {
|
||||
}
|
||||
};
|
||||
}
|
||||
function emptyFunctionThatReturnsNull() {
|
||||
return null;
|
||||
}
|
||||
module.exports = function(isValidElement, throwOnDirectAccess) {
|
||||
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
||||
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||
function getIteratorFn(maybeIterable) {
|
||||
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
||||
if (typeof iteratorFn === "function") {
|
||||
return iteratorFn;
|
||||
}
|
||||
}
|
||||
var ANONYMOUS = "<<anonymous>>";
|
||||
var ReactPropTypes = {
|
||||
array: createPrimitiveTypeChecker("array"),
|
||||
bigint: createPrimitiveTypeChecker("bigint"),
|
||||
bool: createPrimitiveTypeChecker("boolean"),
|
||||
func: createPrimitiveTypeChecker("function"),
|
||||
number: createPrimitiveTypeChecker("number"),
|
||||
object: createPrimitiveTypeChecker("object"),
|
||||
string: createPrimitiveTypeChecker("string"),
|
||||
symbol: createPrimitiveTypeChecker("symbol"),
|
||||
any: createAnyTypeChecker(),
|
||||
arrayOf: createArrayOfTypeChecker,
|
||||
element: createElementTypeChecker(),
|
||||
elementType: createElementTypeTypeChecker(),
|
||||
instanceOf: createInstanceTypeChecker,
|
||||
node: createNodeChecker(),
|
||||
objectOf: createObjectOfTypeChecker,
|
||||
oneOf: createEnumTypeChecker,
|
||||
oneOfType: createUnionTypeChecker,
|
||||
shape: createShapeTypeChecker,
|
||||
exact: createStrictShapeTypeChecker
|
||||
};
|
||||
function is(x, y) {
|
||||
if (x === y) {
|
||||
return x !== 0 || 1 / x === 1 / y;
|
||||
} else {
|
||||
return x !== x && y !== y;
|
||||
}
|
||||
}
|
||||
function PropTypeError(message, data) {
|
||||
this.message = message;
|
||||
this.data = data && typeof data === "object" ? data : {};
|
||||
this.stack = "";
|
||||
}
|
||||
PropTypeError.prototype = Error.prototype;
|
||||
function createChainableTypeChecker(validate) {
|
||||
if (true) {
|
||||
var manualPropTypeCallCache = {};
|
||||
var manualPropTypeWarningCount = 0;
|
||||
}
|
||||
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
||||
componentName = componentName || ANONYMOUS;
|
||||
propFullName = propFullName || propName;
|
||||
if (secret !== ReactPropTypesSecret) {
|
||||
if (throwOnDirectAccess) {
|
||||
var err = new Error(
|
||||
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
||||
);
|
||||
err.name = "Invariant Violation";
|
||||
throw err;
|
||||
} else if (typeof console !== "undefined") {
|
||||
var cacheKey = componentName + ":" + propName;
|
||||
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
||||
manualPropTypeWarningCount < 3) {
|
||||
printWarning(
|
||||
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
||||
);
|
||||
manualPropTypeCallCache[cacheKey] = true;
|
||||
manualPropTypeWarningCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (props[propName] == null) {
|
||||
if (isRequired) {
|
||||
if (props[propName] === null) {
|
||||
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
||||
}
|
||||
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return validate(props, propName, componentName, location, propFullName);
|
||||
}
|
||||
}
|
||||
var chainedCheckType = checkType.bind(null, false);
|
||||
chainedCheckType.isRequired = checkType.bind(null, true);
|
||||
return chainedCheckType;
|
||||
}
|
||||
function createPrimitiveTypeChecker(expectedType) {
|
||||
function validate(props, propName, componentName, location, propFullName, secret) {
|
||||
var propValue = props[propName];
|
||||
var propType = getPropType(propValue);
|
||||
if (propType !== expectedType) {
|
||||
var preciseType = getPreciseType(propValue);
|
||||
return new PropTypeError(
|
||||
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
||||
{ expectedType }
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createAnyTypeChecker() {
|
||||
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
||||
}
|
||||
function createArrayOfTypeChecker(typeChecker) {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
if (typeof typeChecker !== "function") {
|
||||
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
||||
}
|
||||
var propValue = props[propName];
|
||||
if (!Array.isArray(propValue)) {
|
||||
var propType = getPropType(propValue);
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
||||
}
|
||||
for (var i = 0; i < propValue.length; i++) {
|
||||
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
||||
if (error instanceof Error) {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createElementTypeChecker() {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var propValue = props[propName];
|
||||
if (!isValidElement(propValue)) {
|
||||
var propType = getPropType(propValue);
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createElementTypeTypeChecker() {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var propValue = props[propName];
|
||||
if (!ReactIs.isValidElementType(propValue)) {
|
||||
var propType = getPropType(propValue);
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createInstanceTypeChecker(expectedClass) {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
if (!(props[propName] instanceof expectedClass)) {
|
||||
var expectedClassName = expectedClass.name || ANONYMOUS;
|
||||
var actualClassName = getClassName(props[propName]);
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createEnumTypeChecker(expectedValues) {
|
||||
if (!Array.isArray(expectedValues)) {
|
||||
if (true) {
|
||||
if (arguments.length > 1) {
|
||||
printWarning(
|
||||
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
||||
);
|
||||
} else {
|
||||
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
||||
}
|
||||
}
|
||||
return emptyFunctionThatReturnsNull;
|
||||
}
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var propValue = props[propName];
|
||||
for (var i = 0; i < expectedValues.length; i++) {
|
||||
if (is(propValue, expectedValues[i])) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
||||
var type = getPreciseType(value);
|
||||
if (type === "symbol") {
|
||||
return String(value);
|
||||
}
|
||||
return value;
|
||||
});
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createObjectOfTypeChecker(typeChecker) {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
if (typeof typeChecker !== "function") {
|
||||
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
||||
}
|
||||
var propValue = props[propName];
|
||||
var propType = getPropType(propValue);
|
||||
if (propType !== "object") {
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
||||
}
|
||||
for (var key in propValue) {
|
||||
if (has(propValue, key)) {
|
||||
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
||||
if (error instanceof Error) {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
||||
if (!Array.isArray(arrayOfTypeCheckers)) {
|
||||
true ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
||||
return emptyFunctionThatReturnsNull;
|
||||
}
|
||||
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
||||
var checker = arrayOfTypeCheckers[i];
|
||||
if (typeof checker !== "function") {
|
||||
printWarning(
|
||||
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
||||
);
|
||||
return emptyFunctionThatReturnsNull;
|
||||
}
|
||||
}
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var expectedTypes = [];
|
||||
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
||||
var checker2 = arrayOfTypeCheckers[i2];
|
||||
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
||||
if (checkerResult == null) {
|
||||
return null;
|
||||
}
|
||||
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
||||
expectedTypes.push(checkerResult.data.expectedType);
|
||||
}
|
||||
}
|
||||
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createNodeChecker() {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
if (!isNode(props[propName])) {
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
||||
return new PropTypeError(
|
||||
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
||||
);
|
||||
}
|
||||
function createShapeTypeChecker(shapeTypes) {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var propValue = props[propName];
|
||||
var propType = getPropType(propValue);
|
||||
if (propType !== "object") {
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
||||
}
|
||||
for (var key in shapeTypes) {
|
||||
var checker = shapeTypes[key];
|
||||
if (typeof checker !== "function") {
|
||||
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
||||
}
|
||||
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
||||
if (error) {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function createStrictShapeTypeChecker(shapeTypes) {
|
||||
function validate(props, propName, componentName, location, propFullName) {
|
||||
var propValue = props[propName];
|
||||
var propType = getPropType(propValue);
|
||||
if (propType !== "object") {
|
||||
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
||||
}
|
||||
var allKeys = assign({}, props[propName], shapeTypes);
|
||||
for (var key in allKeys) {
|
||||
var checker = shapeTypes[key];
|
||||
if (has(shapeTypes, key) && typeof checker !== "function") {
|
||||
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
||||
}
|
||||
if (!checker) {
|
||||
return new PropTypeError(
|
||||
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
||||
);
|
||||
}
|
||||
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
||||
if (error) {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return createChainableTypeChecker(validate);
|
||||
}
|
||||
function isNode(propValue) {
|
||||
switch (typeof propValue) {
|
||||
case "number":
|
||||
case "string":
|
||||
case "undefined":
|
||||
return true;
|
||||
case "boolean":
|
||||
return !propValue;
|
||||
case "object":
|
||||
if (Array.isArray(propValue)) {
|
||||
return propValue.every(isNode);
|
||||
}
|
||||
if (propValue === null || isValidElement(propValue)) {
|
||||
return true;
|
||||
}
|
||||
var iteratorFn = getIteratorFn(propValue);
|
||||
if (iteratorFn) {
|
||||
var iterator = iteratorFn.call(propValue);
|
||||
var step;
|
||||
if (iteratorFn !== propValue.entries) {
|
||||
while (!(step = iterator.next()).done) {
|
||||
if (!isNode(step.value)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
while (!(step = iterator.next()).done) {
|
||||
var entry = step.value;
|
||||
if (entry) {
|
||||
if (!isNode(entry[1])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function isSymbol(propType, propValue) {
|
||||
if (propType === "symbol") {
|
||||
return true;
|
||||
}
|
||||
if (!propValue) {
|
||||
return false;
|
||||
}
|
||||
if (propValue["@@toStringTag"] === "Symbol") {
|
||||
return true;
|
||||
}
|
||||
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function getPropType(propValue) {
|
||||
var propType = typeof propValue;
|
||||
if (Array.isArray(propValue)) {
|
||||
return "array";
|
||||
}
|
||||
if (propValue instanceof RegExp) {
|
||||
return "object";
|
||||
}
|
||||
if (isSymbol(propType, propValue)) {
|
||||
return "symbol";
|
||||
}
|
||||
return propType;
|
||||
}
|
||||
function getPreciseType(propValue) {
|
||||
if (typeof propValue === "undefined" || propValue === null) {
|
||||
return "" + propValue;
|
||||
}
|
||||
var propType = getPropType(propValue);
|
||||
if (propType === "object") {
|
||||
if (propValue instanceof Date) {
|
||||
return "date";
|
||||
} else if (propValue instanceof RegExp) {
|
||||
return "regexp";
|
||||
}
|
||||
}
|
||||
return propType;
|
||||
}
|
||||
function getPostfixForTypeWarning(value) {
|
||||
var type = getPreciseType(value);
|
||||
switch (type) {
|
||||
case "array":
|
||||
case "object":
|
||||
return "an " + type;
|
||||
case "boolean":
|
||||
case "date":
|
||||
case "regexp":
|
||||
return "a " + type;
|
||||
default:
|
||||
return type;
|
||||
}
|
||||
}
|
||||
function getClassName(propValue) {
|
||||
if (!propValue.constructor || !propValue.constructor.name) {
|
||||
return ANONYMOUS;
|
||||
}
|
||||
return propValue.constructor.name;
|
||||
}
|
||||
ReactPropTypes.checkPropTypes = checkPropTypes;
|
||||
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
||||
ReactPropTypes.PropTypes = ReactPropTypes;
|
||||
return ReactPropTypes;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/index.js
|
||||
var require_prop_types = __commonJS({
|
||||
"node_modules/prop-types/index.js"(exports, module) {
|
||||
if (true) {
|
||||
ReactIs = require_react_is();
|
||||
throwOnDirectAccess = true;
|
||||
module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
||||
} else {
|
||||
module.exports = null();
|
||||
}
|
||||
var ReactIs;
|
||||
var throwOnDirectAccess;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/clsx/dist/clsx.mjs
|
||||
function r(e) {
|
||||
var t, f, n = "";
|
||||
if ("string" == typeof e || "number" == typeof e) n += e;
|
||||
else if ("object" == typeof e) if (Array.isArray(e)) {
|
||||
var o = e.length;
|
||||
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
||||
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
||||
return n;
|
||||
}
|
||||
function clsx() {
|
||||
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
||||
return n;
|
||||
}
|
||||
var clsx_default = clsx;
|
||||
|
||||
// node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
function _extends() {
|
||||
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
||||
for (var e = 1; e < arguments.length; e++) {
|
||||
var t = arguments[e];
|
||||
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
||||
}
|
||||
return n;
|
||||
}, _extends.apply(null, arguments);
|
||||
}
|
||||
|
||||
export {
|
||||
clsx_default,
|
||||
require_prop_types,
|
||||
_extends
|
||||
};
|
||||
/*! Bundled license information:
|
||||
|
||||
react-is/cjs/react-is.development.js:
|
||||
(** @license React v16.13.1
|
||||
* react-is.development.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
*/
|
||||
//# sourceMappingURL=chunk-AG6MXCTY.js.map
|
||||
7
Front-end/.vite/deps/chunk-AG6MXCTY.js.map
Normal file
7
Front-end/.vite/deps/chunk-AG6MXCTY.js.map
Normal file
File diff suppressed because one or more lines are too long
39
Front-end/.vite/deps/chunk-DC5AMYBS.js
Normal file
39
Front-end/.vite/deps/chunk-DC5AMYBS.js
Normal file
@ -0,0 +1,39 @@
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||
var __commonJS = (cb, mod) => function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||||
|
||||
export {
|
||||
__commonJS,
|
||||
__export,
|
||||
__toESM,
|
||||
__publicField
|
||||
};
|
||||
//# sourceMappingURL=chunk-DC5AMYBS.js.map
|
||||
7
Front-end/.vite/deps/chunk-DC5AMYBS.js.map
Normal file
7
Front-end/.vite/deps/chunk-DC5AMYBS.js.map
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
21629
Front-end/.vite/deps/chunk-JMVEG3FK.js
Normal file
21629
Front-end/.vite/deps/chunk-JMVEG3FK.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/chunk-JMVEG3FK.js.map
Normal file
7
Front-end/.vite/deps/chunk-JMVEG3FK.js.map
Normal file
File diff suppressed because one or more lines are too long
172
Front-end/.vite/deps/chunk-PMYNNG2G.js
Normal file
172
Front-end/.vite/deps/chunk-PMYNNG2G.js
Normal file
@ -0,0 +1,172 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-DC5AMYBS.js";
|
||||
|
||||
// node_modules/object-assign/index.js
|
||||
var require_object_assign = __commonJS({
|
||||
"node_modules/object-assign/index.js"(exports, module) {
|
||||
"use strict";
|
||||
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
function toObject(val) {
|
||||
if (val === null || val === void 0) {
|
||||
throw new TypeError("Object.assign cannot be called with null or undefined");
|
||||
}
|
||||
return Object(val);
|
||||
}
|
||||
function shouldUseNative() {
|
||||
try {
|
||||
if (!Object.assign) {
|
||||
return false;
|
||||
}
|
||||
var test1 = new String("abc");
|
||||
test1[5] = "de";
|
||||
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
||||
return false;
|
||||
}
|
||||
var test2 = {};
|
||||
for (var i = 0; i < 10; i++) {
|
||||
test2["_" + String.fromCharCode(i)] = i;
|
||||
}
|
||||
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
||||
return test2[n];
|
||||
});
|
||||
if (order2.join("") !== "0123456789") {
|
||||
return false;
|
||||
}
|
||||
var test3 = {};
|
||||
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
||||
test3[letter] = letter;
|
||||
});
|
||||
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
module.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
||||
var from;
|
||||
var to = toObject(target);
|
||||
var symbols;
|
||||
for (var s = 1; s < arguments.length; s++) {
|
||||
from = Object(arguments[s]);
|
||||
for (var key in from) {
|
||||
if (hasOwnProperty.call(from, key)) {
|
||||
to[key] = from[key];
|
||||
}
|
||||
}
|
||||
if (getOwnPropertySymbols) {
|
||||
symbols = getOwnPropertySymbols(from);
|
||||
for (var i = 0; i < symbols.length; i++) {
|
||||
if (propIsEnumerable.call(from, symbols[i])) {
|
||||
to[symbols[i]] = from[symbols[i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return to;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/lib/ReactPropTypesSecret.js
|
||||
var require_ReactPropTypesSecret = __commonJS({
|
||||
"node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
|
||||
"use strict";
|
||||
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
||||
module.exports = ReactPropTypesSecret;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/lib/has.js
|
||||
var require_has = __commonJS({
|
||||
"node_modules/prop-types/lib/has.js"(exports, module) {
|
||||
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/prop-types/checkPropTypes.js
|
||||
var require_checkPropTypes = __commonJS({
|
||||
"node_modules/prop-types/checkPropTypes.js"(exports, module) {
|
||||
"use strict";
|
||||
var printWarning = function() {
|
||||
};
|
||||
if (true) {
|
||||
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
||||
loggedTypeFailures = {};
|
||||
has = require_has();
|
||||
printWarning = function(text) {
|
||||
var message = "Warning: " + text;
|
||||
if (typeof console !== "undefined") {
|
||||
console.error(message);
|
||||
}
|
||||
try {
|
||||
throw new Error(message);
|
||||
} catch (x) {
|
||||
}
|
||||
};
|
||||
}
|
||||
var ReactPropTypesSecret;
|
||||
var loggedTypeFailures;
|
||||
var has;
|
||||
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
||||
if (true) {
|
||||
for (var typeSpecName in typeSpecs) {
|
||||
if (has(typeSpecs, typeSpecName)) {
|
||||
var error;
|
||||
try {
|
||||
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||
var err = Error(
|
||||
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
||||
);
|
||||
err.name = "Invariant Violation";
|
||||
throw err;
|
||||
}
|
||||
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
||||
} catch (ex) {
|
||||
error = ex;
|
||||
}
|
||||
if (error && !(error instanceof Error)) {
|
||||
printWarning(
|
||||
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
||||
);
|
||||
}
|
||||
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
||||
loggedTypeFailures[error.message] = true;
|
||||
var stack = getStack ? getStack() : "";
|
||||
printWarning(
|
||||
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
checkPropTypes.resetWarningCache = function() {
|
||||
if (true) {
|
||||
loggedTypeFailures = {};
|
||||
}
|
||||
};
|
||||
module.exports = checkPropTypes;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_object_assign,
|
||||
require_ReactPropTypesSecret,
|
||||
require_has,
|
||||
require_checkPropTypes
|
||||
};
|
||||
/*! Bundled license information:
|
||||
|
||||
object-assign/index.js:
|
||||
(*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*)
|
||||
*/
|
||||
//# sourceMappingURL=chunk-PMYNNG2G.js.map
|
||||
7
Front-end/.vite/deps/chunk-PMYNNG2G.js.map
Normal file
7
Front-end/.vite/deps/chunk-PMYNNG2G.js.map
Normal file
File diff suppressed because one or more lines are too long
1906
Front-end/.vite/deps/chunk-TWJRYSII.js
Normal file
1906
Front-end/.vite/deps/chunk-TWJRYSII.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/chunk-TWJRYSII.js.map
Normal file
7
Front-end/.vite/deps/chunk-TWJRYSII.js.map
Normal file
File diff suppressed because one or more lines are too long
62
Front-end/.vite/deps/jwt-decode.js
Normal file
62
Front-end/.vite/deps/jwt-decode.js
Normal file
@ -0,0 +1,62 @@
|
||||
import "./chunk-DC5AMYBS.js";
|
||||
|
||||
// node_modules/jwt-decode/build/esm/index.js
|
||||
var InvalidTokenError = class extends Error {
|
||||
};
|
||||
InvalidTokenError.prototype.name = "InvalidTokenError";
|
||||
function b64DecodeUnicode(str) {
|
||||
return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
|
||||
let code = p.charCodeAt(0).toString(16).toUpperCase();
|
||||
if (code.length < 2) {
|
||||
code = "0" + code;
|
||||
}
|
||||
return "%" + code;
|
||||
}));
|
||||
}
|
||||
function base64UrlDecode(str) {
|
||||
let output = str.replace(/-/g, "+").replace(/_/g, "/");
|
||||
switch (output.length % 4) {
|
||||
case 0:
|
||||
break;
|
||||
case 2:
|
||||
output += "==";
|
||||
break;
|
||||
case 3:
|
||||
output += "=";
|
||||
break;
|
||||
default:
|
||||
throw new Error("base64 string is not of the correct length");
|
||||
}
|
||||
try {
|
||||
return b64DecodeUnicode(output);
|
||||
} catch (err) {
|
||||
return atob(output);
|
||||
}
|
||||
}
|
||||
function jwtDecode(token, options) {
|
||||
if (typeof token !== "string") {
|
||||
throw new InvalidTokenError("Invalid token specified: must be a string");
|
||||
}
|
||||
options || (options = {});
|
||||
const pos = options.header === true ? 0 : 1;
|
||||
const part = token.split(".")[pos];
|
||||
if (typeof part !== "string") {
|
||||
throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
|
||||
}
|
||||
let decoded;
|
||||
try {
|
||||
decoded = base64UrlDecode(part);
|
||||
} catch (e) {
|
||||
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
|
||||
}
|
||||
try {
|
||||
return JSON.parse(decoded);
|
||||
} catch (e) {
|
||||
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
|
||||
}
|
||||
}
|
||||
export {
|
||||
InvalidTokenError,
|
||||
jwtDecode
|
||||
};
|
||||
//# sourceMappingURL=jwt-decode.js.map
|
||||
7
Front-end/.vite/deps/jwt-decode.js.map
Normal file
7
Front-end/.vite/deps/jwt-decode.js.map
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../node_modules/jwt-decode/build/esm/index.js"],
|
||||
"sourcesContent": ["export class InvalidTokenError extends Error {\n}\nInvalidTokenError.prototype.name = \"InvalidTokenError\";\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {\n let code = p.charCodeAt(0).toString(16).toUpperCase();\n if (code.length < 2) {\n code = \"0\" + code;\n }\n return \"%\" + code;\n }));\n}\nfunction base64UrlDecode(str) {\n let output = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += \"==\";\n break;\n case 3:\n output += \"=\";\n break;\n default:\n throw new Error(\"base64 string is not of the correct length\");\n }\n try {\n return b64DecodeUnicode(output);\n }\n catch (err) {\n return atob(output);\n }\n}\nexport function jwtDecode(token, options) {\n if (typeof token !== \"string\") {\n throw new InvalidTokenError(\"Invalid token specified: must be a string\");\n }\n options || (options = {});\n const pos = options.header === true ? 0 : 1;\n const part = token.split(\".\")[pos];\n if (typeof part !== \"string\") {\n throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);\n }\n let decoded;\n try {\n decoded = base64UrlDecode(part);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);\n }\n try {\n return JSON.parse(decoded);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);\n }\n}\n"],
|
||||
"mappings": ";;;AAAO,IAAM,oBAAN,cAAgC,MAAM;AAC7C;AACA,kBAAkB,UAAU,OAAO;AACnC,SAAS,iBAAiB,KAAK;AAC3B,SAAO,mBAAmB,KAAK,GAAG,EAAE,QAAQ,QAAQ,CAAC,GAAG,MAAM;AAC1D,QAAI,OAAO,EAAE,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,YAAY;AACpD,QAAI,KAAK,SAAS,GAAG;AACjB,aAAO,MAAM;AAAA,IACjB;AACA,WAAO,MAAM;AAAA,EACjB,CAAC,CAAC;AACN;AACA,SAAS,gBAAgB,KAAK;AAC1B,MAAI,SAAS,IAAI,QAAQ,MAAM,GAAG,EAAE,QAAQ,MAAM,GAAG;AACrD,UAAQ,OAAO,SAAS,GAAG;AAAA,IACvB,KAAK;AACD;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ;AACI,YAAM,IAAI,MAAM,4CAA4C;AAAA,EACpE;AACA,MAAI;AACA,WAAO,iBAAiB,MAAM;AAAA,EAClC,SACO,KAAK;AACR,WAAO,KAAK,MAAM;AAAA,EACtB;AACJ;AACO,SAAS,UAAU,OAAO,SAAS;AACtC,MAAI,OAAO,UAAU,UAAU;AAC3B,UAAM,IAAI,kBAAkB,2CAA2C;AAAA,EAC3E;AACA,cAAY,UAAU,CAAC;AACvB,QAAM,MAAM,QAAQ,WAAW,OAAO,IAAI;AAC1C,QAAM,OAAO,MAAM,MAAM,GAAG,EAAE,GAAG;AACjC,MAAI,OAAO,SAAS,UAAU;AAC1B,UAAM,IAAI,kBAAkB,0CAA0C,MAAM,CAAC,EAAE;AAAA,EACnF;AACA,MAAI;AACJ,MAAI;AACA,cAAU,gBAAgB,IAAI;AAAA,EAClC,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,qDAAqD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC7G;AACA,MAAI;AACA,WAAO,KAAK,MAAM,OAAO;AAAA,EAC7B,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,mDAAmD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC3G;AACJ;",
|
||||
"names": []
|
||||
}
|
||||
34429
Front-end/.vite/deps/lucide-react.js
Normal file
34429
Front-end/.vite/deps/lucide-react.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/lucide-react.js.map
Normal file
7
Front-end/.vite/deps/lucide-react.js.map
Normal file
File diff suppressed because one or more lines are too long
3
Front-end/.vite/deps/package.json
Normal file
3
Front-end/.vite/deps/package.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
1471
Front-end/.vite/deps/react-circle-progress-bar.js
vendored
Normal file
1471
Front-end/.vite/deps/react-circle-progress-bar.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/react-circle-progress-bar.js.map
Normal file
7
Front-end/.vite/deps/react-circle-progress-bar.js.map
Normal file
File diff suppressed because one or more lines are too long
39
Front-end/.vite/deps/react-dom_client.js
vendored
Normal file
39
Front-end/.vite/deps/react-dom_client.js
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import {
|
||||
require_react_dom
|
||||
} from "./chunk-JMVEG3FK.js";
|
||||
import "./chunk-TWJRYSII.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-DC5AMYBS.js";
|
||||
|
||||
// node_modules/react-dom/client.js
|
||||
var require_client = __commonJS({
|
||||
"node_modules/react-dom/client.js"(exports) {
|
||||
var m = require_react_dom();
|
||||
if (false) {
|
||||
exports.createRoot = m.createRoot;
|
||||
exports.hydrateRoot = m.hydrateRoot;
|
||||
} else {
|
||||
i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
exports.createRoot = function(c, o) {
|
||||
i.usingClientEntryPoint = true;
|
||||
try {
|
||||
return m.createRoot(c, o);
|
||||
} finally {
|
||||
i.usingClientEntryPoint = false;
|
||||
}
|
||||
};
|
||||
exports.hydrateRoot = function(c, h, o) {
|
||||
i.usingClientEntryPoint = true;
|
||||
try {
|
||||
return m.hydrateRoot(c, h, o);
|
||||
} finally {
|
||||
i.usingClientEntryPoint = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
var i;
|
||||
}
|
||||
});
|
||||
export default require_client();
|
||||
//# sourceMappingURL=react-dom_client.js.map
|
||||
7
Front-end/.vite/deps/react-dom_client.js.map
Normal file
7
Front-end/.vite/deps/react-dom_client.js.map
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../node_modules/react-dom/client.js"],
|
||||
"sourcesContent": ["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],
|
||||
"mappings": ";;;;;;;;;AAAA;AAAA;AAEA,QAAI,IAAI;AACR,QAAI,OAAuC;AACzC,cAAQ,aAAa,EAAE;AACvB,cAAQ,cAAc,EAAE;AAAA,IAC1B,OAAO;AACD,UAAI,EAAE;AACV,cAAQ,aAAa,SAAS,GAAG,GAAG;AAClC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AACA,cAAQ,cAAc,SAAS,GAAG,GAAG,GAAG;AACtC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,YAAY,GAAG,GAAG,CAAC;AAAA,QAC9B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAjBM;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
11494
Front-end/.vite/deps/react-router-dom.js
vendored
Normal file
11494
Front-end/.vite/deps/react-router-dom.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/react-router-dom.js.map
Normal file
7
Front-end/.vite/deps/react-router-dom.js.map
Normal file
File diff suppressed because one or more lines are too long
6
Front-end/.vite/deps/react.js
vendored
Normal file
6
Front-end/.vite/deps/react.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-TWJRYSII.js";
|
||||
import "./chunk-DC5AMYBS.js";
|
||||
export default require_react();
|
||||
//# sourceMappingURL=react.js.map
|
||||
7
Front-end/.vite/deps/react.js.map
Normal file
7
Front-end/.vite/deps/react.js.map
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
33925
Front-end/.vite/deps/recharts.js
Normal file
33925
Front-end/.vite/deps/recharts.js
Normal file
File diff suppressed because it is too large
Load Diff
7
Front-end/.vite/deps/recharts.js.map
Normal file
7
Front-end/.vite/deps/recharts.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -2,11 +2,11 @@ import React, {useState} from "react";
|
||||
import { TriangleAlert,X } from "lucide-react";
|
||||
import { useAuth } from "../AuthContext";
|
||||
|
||||
function AlertInactive({affAlert,setAffAlert}) {
|
||||
function AlertInactive({affAlert,setAffAlert, message}) {
|
||||
const { user } = useAuth();
|
||||
return (
|
||||
(affAlert&&(user?.role!=="user")&&(
|
||||
<div className="flex flex-col md:flex-row bg-slate-600 w-full md:w-1/2 lg:w-1/3 fixed top-20 right-1 sm:right-4 rounded-lg p-4 md:p-5 items-center gap-4 md:gap-6 shadow-lg opacity-90">
|
||||
<div className="fixed z-50 flex flex-col md:flex-row bg-slate-600 w-full md:w-1/2 lg:w-1/3 top-20 right-1 sm:right-4 rounded-lg p-4 md:p-5 items-center gap-4 md:gap-6 shadow-lg opacity-90">
|
||||
<button onClick={()=>setAffAlert(false)}className="absolute top-2 right-2 text-white hover:text-gray-300">
|
||||
<X/>
|
||||
</button>
|
||||
@ -14,8 +14,7 @@ function AlertInactive({affAlert,setAffAlert}) {
|
||||
<TriangleAlert className="text-red-700 w-12 h-12 md:w-16 md:h-16" />
|
||||
|
||||
<p className="text-sm md:text-base text-white text-center md:text-left">
|
||||
Cet objet peut être inactif dû à son manque de données. Vous pouvez le
|
||||
rendre inactif en changeant son status.
|
||||
{message}
|
||||
</p>
|
||||
</div>
|
||||
)));
|
||||
|
||||
@ -25,7 +25,9 @@ function MeteoInfos({ object, graphStates, setGraphStates, graphRefs }) {
|
||||
return (
|
||||
<div key={object.id} className="bg-white p-6 rounded-xl min-w-5xl">
|
||||
{AffAlert && object.status === "active" && (
|
||||
<AlertInactive affAlert={AffAlert} setAffAlert={setAffAlert} />
|
||||
<AlertInactive affAlert={AffAlert} setAffAlert={setAffAlert} message={`Cet objet peut être inactif dû à son manque de données.
|
||||
Vous pouvez le rendre inactif en changeant son statut.`}
|
||||
/>
|
||||
)}
|
||||
<div className="flex align-items gap-6">
|
||||
<div className="w-12 h-12 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
|
||||
|
||||
@ -5,16 +5,18 @@ import axios from "axios";
|
||||
import { API_BASE_URL } from "../../config";
|
||||
import { useAuth } from "../../AuthContext";
|
||||
import Alert from "../../components/Alert";
|
||||
import AlertInactive from "../../components/AlertInactive";
|
||||
|
||||
function ObjectManagement() {
|
||||
const {user} = useAuth();
|
||||
const { user } = useAuth();
|
||||
const [searchQuery, setSearchQuery] = useState("");
|
||||
const [activeFilter, setActiveFilter] = useState("");
|
||||
const [objects, setObjects] = useState([]);
|
||||
const [nbAffObject, setnbAffObject] = useState(6);
|
||||
const [affAlert, setAffAlert] = useState(false);
|
||||
const [messageAlert, setMessageAlert] = useState("");
|
||||
|
||||
const [messageAlert, setMessageAlert] = useState("");
|
||||
const [success, setSuccess] = useState(false);
|
||||
|
||||
const filteredDATA = objects.filter((node) => {
|
||||
const matchesSearchQuery =
|
||||
searchQuery === "" ||
|
||||
@ -38,14 +40,14 @@ function ObjectManagement() {
|
||||
|
||||
const handleRequestDeletion = async (objectId) => {
|
||||
console.log("Demande de suppression pour l'objet", objectId);
|
||||
|
||||
|
||||
try {
|
||||
// Log des données envoyées
|
||||
console.log("Envoi de la requête:", {
|
||||
object_id: objectId,
|
||||
requested_by: user.id,
|
||||
});
|
||||
|
||||
|
||||
const response = await axios.post(
|
||||
`${API_BASE_URL}/requestDeleteObject`,
|
||||
{
|
||||
@ -58,28 +60,41 @@ function ObjectManagement() {
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
console.log("Réponse du serveur:", response.data);
|
||||
setMessageAlert("Demande de suppression envoyée à l'administrateur.");
|
||||
setAffAlert(true);
|
||||
setSuccess(false);
|
||||
} catch (error) {
|
||||
console.error("Erreur lors de la requête :", error.response?.data || error.message);
|
||||
alert("Erreur lors de la demande.");
|
||||
console.error(
|
||||
"Erreur lors de la requête :",
|
||||
error.response?.data || error.message
|
||||
);
|
||||
setMessageAlert("Erreur demande déjà envoyé à l'administrateur.");
|
||||
setAffAlert(true);
|
||||
setSuccess(true);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
<Alert affAlert={affAlert} setAffAlert={setAffAlert} message={messageAlert} />
|
||||
{success ? (
|
||||
<AlertInactive
|
||||
affAlert={affAlert}
|
||||
setAffAlert={setAffAlert}
|
||||
message={messageAlert}
|
||||
/>
|
||||
): <Alert
|
||||
affAlert={affAlert}
|
||||
setAffAlert={setAffAlert}
|
||||
message={messageAlert}/>
|
||||
}
|
||||
|
||||
<div className="text-center mb-12">
|
||||
<h2 className="text-4xl font-bold text-gray-900 mb-4">
|
||||
{(user?.role!=="user")?("Gestion"):("Visualisation")} des <b>Objets</b> connectés.
|
||||
{user?.role !== "user" ? "Gestion" : "Visualisation"} des{" "}
|
||||
<b>Objets</b> connectés.
|
||||
</h2>
|
||||
</div>
|
||||
<div className="max-w-3xl mx-auto mb-12">
|
||||
@ -96,7 +111,7 @@ function ObjectManagement() {
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
{/* Filtres responsifs - utilisation de flex-wrap et responsive spacing */}
|
||||
<div className="flex flex-wrap gap-2 mt-4 justify-center">
|
||||
<button
|
||||
@ -151,7 +166,6 @@ function ObjectManagement() {
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Grille responsive pour les objets */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8">
|
||||
{filteredDATA.length === 0 ? (
|
||||
@ -203,11 +217,12 @@ function ObjectManagement() {
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
|
||||
{(nbAffObject < filteredDATA.length) && (
|
||||
{nbAffObject < filteredDATA.length && (
|
||||
<div className="flex items-center flex-col mt-6">
|
||||
<button
|
||||
onClick={() => {setnbAffObject((prev) => prev + 6)}}
|
||||
<button
|
||||
onClick={() => {
|
||||
setnbAffObject((prev) => prev + 6);
|
||||
}}
|
||||
className="hover:bg-indigo-50 p-2 rounded-full transition-colors"
|
||||
>
|
||||
<Plus size={40} className="text-indigo-600" />
|
||||
@ -220,4 +235,4 @@ function ObjectManagement() {
|
||||
);
|
||||
}
|
||||
|
||||
export default ObjectManagement;
|
||||
export default ObjectManagement;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user