Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

27
node_modules/@mantine/form/esm/paths/set-path.mjs generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use client';
import { klona } from 'klona/full';
import { getSplittedPath } from './get-splitted-path.mjs';
function setPath(path, value, values) {
const splittedPath = getSplittedPath(path);
if (splittedPath.length === 0) {
return values;
}
const cloned = klona(values);
if (splittedPath.length === 1) {
cloned[splittedPath[0]] = value;
return cloned;
}
let val = cloned[splittedPath[0]];
for (let i = 1; i < splittedPath.length - 1; i += 1) {
if (val === void 0) {
return cloned;
}
val = val[splittedPath[i]];
}
val[splittedPath[splittedPath.length - 1]] = value;
return cloned;
}
export { setPath };
//# sourceMappingURL=set-path.mjs.map