import $ from "jquery";

import Vue from "vue/dist/vue.esm.browser.min";

import tippy from "tippy.js";
import "tippy.js/dist/tippy.css";
import "tippy.js/themes/light-border.css";
import "tippy.js/animations/scale-subtle.css";

window["Vue"] = Vue;

$(window).ready(
    () => {
        // Add tooltips
        for (const tooltipElement of $('.__tooltipped')) {
            tippy(
                tooltipElement,
                {
                    content: tooltipElement.getAttribute("aria-label"),
                    animation: "scale-subtle"
                }
            )
        }
    }
);