// Generated, do not edit. sha256:4bf6f8ef0a0bf339d290a677844034b6b894f341f060833980b2dc5ccb489b09 import { esc } from './escape.js'; import { SHIELD } from './icons.js'; import { t } from '../i18n/index.js'; import { TARGETS, targetHash } from '../../shared/config.js'; import { limitFor } from '../license.js'; export function lockIcon(title = t('license.lockedTitle')) { return `${SHIELD}`; } export function lockPanelHtml(what) { const href = targetHash(TARGETS.LICENSE); return `
${lockIcon()}${esc(t('license.lockedTitle'))}

${esc(what)}

${esc(t('license.whatIsPaid'))}

`; } export function lockNoteHtml(what) { return `
${lockIcon()}${esc(what)} ` + `${esc(t('license.whatIsPaid'))}
`; } export function counterHtml(text) { return text ? `${esc(text)}` : ''; } export function capacityCfg(kind, used) { const max = limitFor(kind); if (max === null) return {}; return { toolbarNote: () => t('license.counter', { n: used(), max }), createHidden: () => used() >= max, }; }