// Generated, do not edit. sha256:d2bc926ea0bee8d8465cb325428dc8ec0f61a809df8e09696d2ce30fb50111c2 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, counterText } 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: () => counterText(kind, used()), createHidden: () => used() >= max, }; }