import { cellStyleKey } from './workbook-store-records.js';
export const WORKBOOK_DEFAULT_STYLE_ID = 'style-0';
export const WORKBOOK_DEFAULT_FORMAT_ID = 'format-0';
export function ensureWorkbookDefaultStyleFormat(catalog) {
    ensureWorkbookDefaultStyle(catalog);
    ensureWorkbookDefaultNumberFormat(catalog);
}
export function ensureWorkbookDefaultStyle(catalog) {
    const defaultStyle = { id: WORKBOOK_DEFAULT_STYLE_ID };
    catalog.cellStyles.set(defaultStyle.id, defaultStyle);
    catalog.styleKeys.set(cellStyleKey(defaultStyle), defaultStyle.id);
}
export function ensureWorkbookDefaultNumberFormat(catalog) {
    const defaultFormat = {
        id: WORKBOOK_DEFAULT_FORMAT_ID,
        code: 'general',
        kind: 'general',
    };
    catalog.cellNumberFormats.set(defaultFormat.id, defaultFormat);
    catalog.numberFormatKeys.set(defaultFormat.code, defaultFormat.id);
}
//# sourceMappingURL=workbook-default-style-format.js.map