__vite_ssr_exportName__("stepIndex", () => { try { return stepIndex } catch {} });
__vite_ssr_exportName__("neighbour", () => { try { return neighbour } catch {} });
/** Where a step sits in the wizard, without trusting the server's order blindly. */
function stepIndex(steps, step) {
	return Math.max(0, steps.indexOf(step));
};
function neighbour(steps, step, direction) {
	const target = steps[stepIndex(steps, step) + direction];
	return target ?? step;
}

//# vitestCache=W3siZmlsZSI6IjEiLCJpZCI6IjEiLCJpbXBvcnRzIjoiMiIsIm1hcHBpbmdzIjpmYWxzZSwiZGVwcyI6IjMiLCJkeW5hbWljRGVwcyI6IjQiLCJzdGF0aWNNb2NrcyI6bnVsbCwiaGFzQ292ZXJhZ2VEYXRhIjpmYWxzZX0sIkQ6L0dpdEh1Yi9WaWNlQ3V0L3dlYi9zcmMvZW50aXRpZXMvc2V0dXAvc3RlcHMudHMiLHsidXJscyI6IjUiLCJpZHMiOiI2In0sW10sW10sW10se31d
//# vitestSourceMap={"version":3,"mappings":"AAAA,CAAA;;;AACO,SAAS,UAAU,OAA0B,MAAsB;CACxE,OAAO,KAAK,IAAI,GAAG,MAAM,QAAQ,IAAI,CAAC;AACxC;AAEO,SAAS,UAAU,OAA0B,MAAc,WAA2B;CAC3F,MAAM,SAAS,MAAM,UAAU,OAAO,IAAI,IAAI;CAC9C,OAAO,UAAU;AACnB","names":[],"ignoreList":[],"sources":["steps.ts"],"sourcesContent":["/** Where a step sits in the wizard, without trusting the server's order blindly. */\nexport function stepIndex(steps: readonly string[], step: string): number {\n  return Math.max(0, steps.indexOf(step));\n}\n\nexport function neighbour(steps: readonly string[], step: string, direction: 1 | -1): string {\n  const target = steps[stepIndex(steps, step) + direction];\n  return target ?? step;\n}\n"],"file":"/web/src/entities/setup/steps.ts"}