// Rôle : lit les réglages d'ouverture mythique publiés dans le catalogue pour l'administration. export function openingSettingFor(catalog, scope, targetId) { const setting = catalog.mythicOpeningSettings?.find((item) => item.scope === scope && item.targetId === targetId); return { particleShapeId: setting?.particleShapeId || null, particlePaletteId: setting?.particlePaletteId || null }; } export function withoutOpeningSetting(catalog, scope, targetId) { return { ...catalog, mythicOpeningSettings: (catalog.mythicOpeningSettings || []).filter((item) => item.scope !== scope || item.targetId !== targetId) }; }