using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace LHDN.CRM.Web
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {

            //Styles.DefaultTagFormat = $"<script type=\"text/javascript\" src=\"{VirtualPathUtility.ToAbsolute("~/Content/css")}\"></script>";

            bundles.Add(new StyleBundle("~/Content/css/fonts").Include(
                "~/Content/css/font-awesome.min.css",
                "~/Content/css/ionicons.min.css",
                "~/Content/css/poppins.css"
                ));

            bundles.Add(new StyleBundle("~/Content/css/base").Include(
                "~/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css",
                "~/wwwroot/lib/angular-material/angular-material.min.css",
                "~/wwwroot/lib/angular-timeline/dist/angular-timeline.css",
                "~/wwwroot/lib/sweetalert/1.1.3/sweetalert.min.css",
                "~/wwwroot/lib/angularjs-datepicker/dist/angular-datepicker.min.css",
                "~/wwwroot/lib/angular-ui-select/dist/select.min.css",
                "~/Content/js/simple-scrollbar-master/simple-scrollbar.min.css",
                "~/Content/js/chosen_v1.8.7/chosen.min.css"
                ));

            bundles.Add(new ScriptBundle("~/Content/js/ngbase").Include(
                "~/wwwroot/lib/jquery/dist/jquery.min.js",
                "~/wwwroot/lib/sweetalert/1.1.3/sweetalert.min.js",
                "~/wwwroot/lib/datatables.net/js/jquery.dataTables.min.js",
                "~/Content/js/chosen_v1.8.7/chosen.jquery.min.js",
                "~/wwwroot/lib/angular/angular.min.js",
                "~/Content/js/moment.js",
                "~/Content/js/jquery.redirect.js",
                "~/wwwroot/lib/bootstrap/js/collapse.js"));

            bundles.Add(new ScriptBundle("~/Content/js/ngcomponents").Include(
                "~/wwwroot/lib/angular-route/angular-route.min.js",
                "~/wwwroot/lib/angular-datatables/dist/angular-datatables.min.js",
                "~/wwwroot/lib/angular-timeline/dist/angular-timeline.js",
                "~/wwwroot/lib/angular-animate/angular-animate.min.js",
                "~/wwwroot/lib/angular-aria/angular-aria.min.js",
                "~/wwwroot/lib/angular-messages/angular-messages.min.js",
                "~/wwwroot/lib/angular-sanitize/angular-sanitize.min.js",
                "~/wwwroot/lib/angular-material/angular-material.min.js",
                "~/wwwroot/lib/angularjs-datepicker/dist/angular-datepicker.js",
                "~/wwwroot/lib/angular-ui-select/dist/select.min.js",
                "~/wwwroot/lib/ng-file-upload/ng-file-upload-shim.min.js",
                "~/wwwroot/lib/ng-file-upload/ng-file-upload.min.js",
                "~/wwwroot/lib/angular-local-storage/dist/angular-local-storage.min.js",
                "~/Content/js/simple-scrollbar-master/simple-scrollbar.min.js",
                "~/wwwroot/lib/angular-chosen-1.8.0/dist/angular-chosen.min.js"
                ));

            bundles.Add(new ScriptBundle("~/Content/app/base").Include(
                "~/Content/app/app.js",
                "~/Content/app/services/webapiservice.js",
                "~/Content/app/services/taxpayerservice.js",
                "~/Content/app/services/menubarservice.js",
                "~/Content/app/services/generalservice.js",
                "~/Content/app/services/advanceruleservice.js",
                "~/Content/app/services/antiforgeryservice.js",
                "~/Content/app/controllers/appcontroller.js",
                "~/Content/app/controllers/menucontroller.js"
                ));

            BundleTable.Bundles.ToList().ForEach(b => b.Transforms.Clear());

        }
    }
}