<script type="text/hyperscript">
def initTooltips(t)
  -- Initialize new tooltips
  for tooltipTriggerEl in <[data-bs-toggle="tooltip"]/> in t
    call bootstrap.Tooltip.getOrCreateInstance(tooltipTriggerEl)
  end
end

init
  call initTooltips(body)
end

on htmx:afterSettle
  call initTooltips(event.detail.target)
end
  
on tooltips
  call initTooltips(body)
end
</script>
