/* eslint-disable @typescript-eslint/no-non-null-assertion, unicorn/prefer-module */ import type * as globalTypes from "../types/globalTypes"; import type * as recordTypes from "../types/recordTypes"; import type { cityssmGlobal } from "@cityssm/bulma-webapp-js/src/types"; import type { BulmaJS } from "@cityssm/bulma-js/types"; declare const cityssm: cityssmGlobal; declare const bulmaJS: BulmaJS; (() => { const los = exports.los as globalTypes.LOS; const feeCategoriesContainerElement = document.querySelector("#container--feeCategories") as HTMLElement; let feeCategories: recordTypes.FeeCategory[] = exports.feeCategories; delete exports.feeCategories; function renderFeeCategories(): void { if (feeCategories.length === 0) { feeCategoriesContainerElement.innerHTML = `
`; return; } feeCategoriesContainerElement.innerHTML = ""; for (const feeCategory of feeCategories) { const feeCategoryContainerElement = document.createElement("section"); feeCategoryContainerElement.className = "panel container--feeCategory"; feeCategoryContainerElement.dataset.feeCategoryId = feeCategory.feeCategoryId!.toString(); feeCategoryContainerElement.innerHTML = '" +
'' +
cityssm.escapeHTML(fee.feeName || "") +
"
" +
"" +
cityssm.escapeHTML(fee.feeDescription || "").replace(/\n/g, "
") +
"" +
"