Files
starface-outlook-sync-addin/node_modules/@griffel/core/devtools/mergeDebugSequence.cjs.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

29 lines
1.1 KiB
JavaScript

'use strict';
var getAtomicDebugSequenceTree = require('./getAtomicDebugSequenceTree.cjs.js');
var getResetDebugSequence = require('./getResetDebugSequence.cjs.js');
function mergeDebugSequence(atomicClases, resetClassName) {
const debugResultRootAtomic = atomicClases ? getAtomicDebugSequenceTree.getAtomicDebugSequenceTree(atomicClases) : undefined;
const debugResultRootReset = resetClassName ? getResetDebugSequence.getResetDebugSequence(resetClassName) : undefined;
if (!debugResultRootAtomic && !debugResultRootReset) {
return undefined;
}
if (!debugResultRootAtomic) {
return debugResultRootReset;
}
if (!debugResultRootReset) {
return debugResultRootAtomic;
}
const debugResultRoot = {
sequenceHash: debugResultRootAtomic.sequenceHash + debugResultRootReset.sequenceHash,
direction: debugResultRootAtomic.direction,
children: [debugResultRootAtomic, debugResultRootReset],
debugClassNames: [...debugResultRootAtomic.debugClassNames, ...debugResultRootReset.debugClassNames]
};
return debugResultRoot;
}
exports.mergeDebugSequence = mergeDebugSequence;
//# sourceMappingURL=mergeDebugSequence.cjs.js.map