import { registerUnbound } from "discourse-common/lib/helpers"; import I18n from "I18n"; import Handlebars from "handlebars"; export default registerUnbound( "wizard-char-counter", function (body, maxLength) { let bodyLength = body ? body.length : 0; let finalString; if (maxLength) { let isOverMax = bodyLength > maxLength ? "true" : "false"; finalString = `