/**
* @external SearchData
*/
import searchBoxTemplate from '!!raw-loader!../includes/templates/SearchBox.mustache';
import Button from '!!raw-loader!../includes/templates/Button.mustache';
import { htmlUserLanguageAttributes } from './utils';
/**
* @type {SearchData}
*/
const searchBoxData = {
'form-action': '/w/index.php',
class: 'vector-search-box vector-search-show-thumbnail',
'html-user-language-attributes': htmlUserLanguageAttributes,
'msg-search': 'Search',
'html-input': '',
'page-title': 'Special:Search',
'html-button-search-fallback': '',
'html-button-search': ''
};
/**
* @type {SearchData}
*/
const searchBoxDataWithCollapsing = Object.assign( {}, searchBoxData, {
class: `${searchBoxData.class} vector-search-box-collapses`,
'is-collapsible': true,
'data-collapse-icon': {
icon: 'wikimedia-search',
'is-quiet': true,
class: 'search-toggle',
href: '/wiki/Special:Search',
label: 'Search'
}
} );
const SEARCH_TEMPLATE_PARTIALS = {
Button
};
export {
SEARCH_TEMPLATE_PARTIALS,
searchBoxTemplate,
searchBoxDataWithCollapsing,
searchBoxData
};