text: import createAutocompleteSource from './createAutocompleteSource.js';
  import defaultTemplates from './defaultTemplates.js';
  
  export default function createAutocompleteDataset(options) {
    const templates = {
      ...defaultTemplates,
      ...options.templates,
    };
  
    const source = createAutocompleteSource({
      ...options,
      formatInputValue: templates.value,
      templates: undefined,
    });
  
    return {
      source,
      templates,
      displayKey: 'value',
      name: 'places',
      debounce: options.debounce
    };
  }
  