JSFiddle - React, Tailwind, and code Playground

JavaScript

$('#popoverData').popover();
        $('#popoverOption, #popoverOptionn, #popoverOptionnn, #popoverOptionnnn').popover({
            trigger: "hover"
        });


        window.___gcfg = {
            lang: 'en_US',
            parsetags: 'onload'
        };
  
        TypePrice = [4.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 3, 3, 3, 3, 3.2, 3.5, 4, 5.5, 6.5, 8, 10, 24];
        NumberPrice = [1];
        GoldPrice1 = [1, 0.78, 0.78, 0.78, 0.78];
        DiamondPrice1 = [1.5, 1.4, 1, 0.85, 0.7];
        PlatinumPrice1 = [1.32, 1.14, 1.08, 1.01, 0.95];
        Silver1Price = 9.2;
        Silver2Price = 9.2;
        Silver3Price = 9.2;
        Silver4Price = 9.2;
        Silver5Price = 9.2;
        Silver6Price = 9.2;
        Gold1Price = 9.2;
        Gold2Price = 9.2;
        Gold3Price = 9.2;
        Gold4Price = 12;
        Master1Price = 12;
        Master2Price = 15;
        Master3Price = 18;
        Master4Price = 20;
        Legendary1Price = 24;
        Legendary2Price = 46;
        Supreme1Price = 110;
        Global1Price = 105;


$(document).ready(function() {
    e();
    d();
    placements();
    $("#jqslider").slider({
        min: 1,
        max: 10,
        slide: function(b, a) {
            $("#amount").val(a.value);
            e()
        }
    });
    $("#sType, #sNumber, #amount, #chbox4, #chbox5, #chbox6").change(function() {
        e()
    });
    $("#sTypes2, #sLevel2, #sTypes3, #sLevel3, #sNumber2, #chbox1, #chbox2, #chbox3").change(function() {
        d()
    });

    function e() {
        var j = $("#sType")[0].selectedIndex;
        var l = $("#sType").val();
        var b = $("#sNumber")[0].selectedIndex;
        var a = $("#sNumber").val();
        var c = $("#amount").val();
        jan = l.split(" ").join("_");
        $("#icon").attr("src", basePath + "img/csgo/" + jan.toLowerCase() + ".png");
        if (l == "normal" || l == "Unranked") {
            $("#sNumber").css("display", "none");
            b = 0
        } else {
         ...