// ============================================================
// bedside/index.js
// Imports + registers all Bedside section modules on load.
// Loaded as <script type="module"> from index.html and e2e-harness.html.
// ============================================================

import './shared.js';                 // side-effect: sets window._EM for back-compat
import * as ageWeight from './age-weight.js';
import * as subNav from './sub-nav.js';
import * as lightbox from './image-lightbox.js';
import * as neonatal from './neonatal.js';
import * as airway from './airway.js';
import * as cardiac from './cardiac.js';
import * as respiratory from './respiratory.js';
import * as ventilation from './ventilation.js';
import * as seizure from './seizure.js';
import * as sepsis from './sepsis.js';
import * as anaphylaxis from './anaphylaxis.js';
import * as sedation from './sedation.js';
import * as agitation from './agitation.js';
import * as antiemetics from './antiemetics.js';
import * as antimicrobials from './antimicrobials.js';
import * as burns from './burns.js';
import * as toxicology from './toxicology.js';
import * as trauma from './trauma.js';
import * as sutures from './sutures.js';

[
  ageWeight,
  subNav,
  lightbox,
  neonatal,
  airway,
  cardiac,
  respiratory,
  ventilation,
  seizure,
  sepsis,
  anaphylaxis,
  sedation,
  agitation,
  antiemetics,
  antimicrobials,
  burns,
  toxicology,
  trauma,
  sutures,
].forEach(function(m) { if (m && typeof m.init === 'function') m.init(); });
