`
}
/**
* The list as a page to print or save as PDF, in the look of the trip PDF: a navy cover
* block with the trip, its dates and the list's numbers, then one card per category in
* two columns, each item with a box to tick on paper. A category card never breaks across
* a column or a page, and the bags close the page with what each one holds.
*/
export function packingPrintHtml(items: PackingItem[], text: PackingPrintText, bag: PackingBagLookup): string {
const groups = groupByCategory(items, text.uncategorized)
const categories = groups.map(group => group.category)
const packed = items.filter(item => item.checked).length
const percent = items.length ? Math.round((packed / items.length) * 100) : 0
const total = items.reduce((sum, item) => sum + packingItemWeight(item), 0)
const bags = bagSummaries(items, bag)
const stat = (value: string, label: string) =>
`