/* Minification failed. Returning unminified contents.
(264,34-35): run-time warning JS1195: Expected expression: >
(264,51-52): run-time warning JS1014: Invalid character: #
 */
(function (e, t) { var n = { smoketimeout: [], init: false, zindex: 1e3, i: 0, bodyload: function (e) { var r = t.createElement("div"); r.setAttribute("id", "smoke-out-" + e); r.className = "smoke-base"; r.style.zIndex = n.zindex; n.zindex++; t.body.appendChild(r) }, newdialog: function () { var t = (new Date).getTime(); t = Math.random(1, 99) + t; if (!n.init) { n.listen(e, "load", function () { n.bodyload(t) }) } else { n.bodyload(t) } return t }, forceload: function () { }, build: function (t, r) { n.i++; r.stack = n.i; t = t.replace(/\n/g, "<br />"); t = t.replace(/\r/g, "<br />"); var i = "", s = "OK", o = "Cancel", u = "", a = "", f; if (r.type === "prompt") { i = '<div class="dialog-prompt">' + '<input id="dialog-input-' + r.newid + '" type="text" ' + (r.params.value ? 'value="' + r.params.value + '"' : "") + " />" + "</div>" } if (r.params.ok) { s = r.params.ok } if (r.params.cancel) { o = r.params.cancel } if (r.params.classname) { u = r.params.classname } if (r.type !== "signal") { a = '<div class="dialog-buttons">'; if (r.type === "alert") { a += '<button id="alert-ok-' + r.newid + '">' + s + "</button>" } else if (r.type === "quiz") { if (r.params.button_1) { a += '<button class="quiz-button" id="' + r.type + "-ok1-" + r.newid + '">' + r.params.button_1 + "</button>" } if (r.params.button_2) { a += '<button class="quiz-button" id="' + r.type + "-ok2-" + r.newid + '">' + r.params.button_2 + "</button>" } if (r.params.button_3) { a += '<button class="quiz-button" id="' + r.type + "-ok3-" + r.newid + '">' + r.params.button_3 + "</button>" } if (r.params.button_cancel) { a += '<button id="' + r.type + "-cancel-" + r.newid + '" class="cancel">' + r.params.button_cancel + "</button>" } } else if (r.type === "prompt" || r.type === "confirm") { if (r.params.reverseButtons) { a += '<button id="' + r.type + "-ok-" + r.newid + '">' + s + "</button>" + '<button id="' + r.type + "-cancel-" + r.newid + '" class="cancel">' + o + "</button>" } else { a += '<button id="' + r.type + "-cancel-" + r.newid + '" class="cancel">' + o + "</button>" + '<button id="' + r.type + "-ok-" + r.newid + '">' + s + "</button>" } } a += "</div>" } f = '<div id="smoke-bg-' + r.newid + '" class="smokebg"></div>' + '<div class="dialog smoke ' + u + '">' + '<div class="dialog-inner">' + t + i + a + "</div>" + "</div>"; if (!n.init) { n.listen(e, "load", function () { n.finishbuild(t, r, f) }) } else { n.finishbuild(t, r, f) } }, finishbuild: function (e, r, i) { var s = t.getElementById("smoke-out-" + r.newid); s.className = "smoke-base smoke-visible  smoke-" + r.type; s.innerHTML = i; while (s.innerHTML === "") { s.innerHTML = i } if (n.smoketimeout[r.newid]) { clearTimeout(n.smoketimeout[r.newid]) } n.listen(t.getElementById("smoke-bg-" + r.newid), "click", function () { n.destroy(r.type, r.newid); if (r.type === "prompt" || r.type === "confirm" || r.type === "quiz") { r.callback(false) } else if (r.type === "alert" && typeof r.callback !== "undefined") { r.callback() } }); switch (r.type) { case "alert": n.finishbuildAlert(e, r, i); break; case "confirm": n.finishbuildConfirm(e, r, i); break; case "quiz": n.finishbuildQuiz(e, r, i); break; case "prompt": n.finishbuildPrompt(e, r, i); break; case "signal": n.finishbuildSignal(e, r, i); break; default: throw "Unknown type: " + r.type } }, finishbuildAlert: function (r, i, s) { n.listen(t.getElementById("alert-ok-" + i.newid), "click", function () { n.destroy(i.type, i.newid); if (typeof i.callback !== "undefined") { i.callback() } }); t.onkeyup = function (t) { if (!t) { t = e.event } if (t.keyCode === 13 || t.keyCode === 32 || t.keyCode === 27) { n.destroy(i.type, i.newid); if (typeof i.callback !== "undefined") { i.callback() } } } }, finishbuildConfirm: function (r, i, s) { n.listen(t.getElementById("confirm-cancel-" + i.newid), "click", function () { n.destroy(i.type, i.newid); i.callback(false) }); n.listen(t.getElementById("confirm-ok-" + i.newid), "click", function () { n.destroy(i.type, i.newid); i.callback(true) }); t.onkeyup = function (t) { if (!t) { t = e.event } if (t.keyCode === 13 || t.keyCode === 32) { n.destroy(i.type, i.newid); i.callback(true) } else if (t.keyCode === 27) { n.destroy(i.type, i.newid); i.callback(false) } } }, finishbuildQuiz: function (r, i, s) { var o, u, a; n.listen(t.getElementById("quiz-cancel-" + i.newid), "click", function () { n.destroy(i.type, i.newid); i.callback(false) }); if (o = t.getElementById("quiz-ok1-" + i.newid)) n.listen(o, "click", function () { n.destroy(i.type, i.newid); i.callback(o.innerHTML) }); if (u = t.getElementById("quiz-ok2-" + i.newid)) n.listen(u, "click", function () { n.destroy(i.type, i.newid); i.callback(u.innerHTML) }); if (a = t.getElementById("quiz-ok3-" + i.newid)) n.listen(a, "click", function () { n.destroy(i.type, i.newid); i.callback(a.innerHTML) }); t.onkeyup = function (t) { if (!t) { t = e.event } if (t.keyCode === 27) { n.destroy(i.type, i.newid); i.callback(false) } } }, finishbuildPrompt: function (r, i, s) { var o = t.getElementById("dialog-input-" + i.newid); setTimeout(function () { o.focus(); o.select() }, 100); n.listen(t.getElementById("prompt-cancel-" + i.newid), "click", function () { n.destroy(i.type, i.newid); i.callback(false) }); n.listen(t.getElementById("prompt-ok-" + i.newid), "click", function () { n.destroy(i.type, i.newid); i.callback(o.value) }); t.onkeyup = function (t) { if (!t) { t = e.event } if (t.keyCode === 13) { n.destroy(i.type, i.newid); i.callback(o.value) } else if (t.keyCode === 27) { n.destroy(i.type, i.newid); i.callback(false) } } }, finishbuildSignal: function (r, i, s) { t.onkeyup = function (t) { if (!t) { t = e.event } if (t.keyCode === 27) { n.destroy(i.type, i.newid); if (typeof i.callback !== "undefined") { i.callback() } } }; n.smoketimeout[i.newid] = setTimeout(function () { n.destroy(i.type, i.newid); if (typeof i.callback !== "undefined") { i.callback() } }, i.timeout) }, destroy: function (e, r) { var i = t.getElementById("smoke-out-" + r); if (e !== "quiz") { var s = t.getElementById(e + "-ok-" + r) } var o = t.getElementById(e + "-cancel-" + r); i.className = "smoke-base"; if (s) { n.stoplistening(s, "click", function () { }); t.onkeyup = null } if (e === "quiz") { var u = t.getElementsByClassName("quiz-button"); for (var a = 0; a < u.length; a++) { n.stoplistening(u[a], "click", function () { }); t.onkeyup = null } } if (o) { n.stoplistening(o, "click", function () { }) } n.i = 0; i.innerHTML = "" }, alert: function (e, t, r) { if (typeof r !== "object") { r = false } var i = n.newdialog(); n.build(e, { type: "alert", callback: t, params: r, newid: i }) }, signal: function (e, t, r) { if (typeof r !== "object") { r = false } var i = 5e3; if (r.duration !== "undefined") { i = r.duration } var s = n.newdialog(); n.build(e, { type: "signal", callback: t, timeout: i, params: r, newid: s }) }, confirm: function (e, t, r) { if (typeof r !== "object") { r = false } var i = n.newdialog(); n.build(e, { type: "confirm", callback: t, params: r, newid: i }) }, quiz: function (e, t, r) { if (typeof r !== "object") { r = false } var i = n.newdialog(); n.build(e, { type: "quiz", callback: t, params: r, newid: i }) }, prompt: function (e, t, r) { if (typeof r !== "object") { r = false } var i = n.newdialog(); return n.build(e, { type: "prompt", callback: t, params: r, newid: i }) }, listen: function (e, t, n) { if (e.addEventListener) { return e.addEventListener(t, n, false) } if (e.attachEvent) { return e.attachEvent("on" + t, n) } return false }, stoplistening: function (e, t, n) { if (e.removeEventListener) { return e.removeEventListener(t, n, false) } if (e.detachEvent) { return e.detachEvent("on" + t, n) } return false } }; n.init = true; if (typeof module != "undefined" && module.exports) { module.exports = n } else if (typeof define === "function" && define.amd) { define("smoke", [], function () { return n }) } else { this.smoke = n } })(window, document)
$(document).on("ready", function () {

    //alert(url.indexOf("office.suratmunicipal.org"));
    function CheckIsExterNal(url) {
        if (url.indexOf("http://suratmunicipalcorporation.org:8020/") == -1) {
            return true;
        }

        else {
            return false;
        }
    }
    $('a').not(".litebox").filter(function () {
        return this.hostname && this.hostname !== location.hostname;
    }).click(function (e) {
        e.preventDefault();
        var url = $(this).attr("href");
        var isExternal = false;
        isExternal = CheckIsExterNal(url);
        if (url == "http://office.suratsmartcity.com/SuratCovid19/")
            isExternal = false;
        if (isExternal) {
            smoke.confirm("You are about to proceed to an external website. Do you wish to continue?", function (e) {
                if (e) {
                    window.open(url, "_blank");
                } else {
                    return false;
                }
            }, {
                ok: "Yes",
                cancel: "No",
                classname: "custom-class",
                reverseButtons: true
            });
        }
        else {
            window.open(url);
        }
    });
    $('body').removeClass('noJS').addClass("hasJS");

    if ($(".main-menu li").length) {
        $(".main-menu li > a").focus(function () {
            $(this).parent().siblings("li").removeClass("focus");
            $(this).parent().addClass("focus");
        });
        $(document).on("click", function () {
            $(".main-menu li").removeClass("focus");
        });
    }
    $(".search-btn").click(function () {
        $(".search-bar").slideToggle();
        $(".search-btn span").toggleClass("fa-times");
        $("#q").focus();
    });
    setTimeout(function () { $("#notification").fadeIn("slow"); }, 8000);
    $("#closenotification").click(function () {
        $("#notification").fadeOut("100");
    });
    $("#element").introLoader({
        animation: {
            name: "gifLoader",
            options: {
                ease: "easeInOutCirc",
                style: "dark bubble",
                delayBefore: 0,
                delayAfter: 0,
                exitTime: 1e3,
                preventScroll: !1
            }
        }
    })
    setFontSizeOnSite();
    setSiteView();
}),
    function () {
        function e() {
            window.addEventListener("scroll", function () {
                l || (l = !0, setTimeout(t, 250))
            }, !1)
        }
        function t() {
            var e = o();
            e >= a ? ($(".header-top").slideUp(400), $("header").addClass("fixed-header"), $(".fixed-inner-header").fadeIn("slow"), $("body").attr({
                "data-spy": "scroll",
                "data-target": "#innermenu",
                "data-offset": "140"
            })) : ($(".header-top").slideDown(400), $("header").removeClass("fixed-header"), $(".fixed-inner-header").fadeOut("slow")), l = !1
        }
        function o() {
            return window.pageYOffset || n.scrollTop
        }
        var n = document.documentElement,
            l = !1,
            a = 250;
        document.querySelector("header"), e()
    }(),
$('[data-spy="scroll"]').each(function () {
    $(this).scrollspy("refresh")
});
var offset = 100,
    duration = 500;
$(window).scroll(function () {
    $(this).scrollTop() > offset ? $(".backtotop-wrapper").fadeIn(400) : ($(".backtotop-wrapper").fadeOut(400), $(".topbar").fadeIn(400))
}), $(window).scroll(function () {
    $(this).scrollTop() > 600 && $("#left-panel-hidden").css({
        display: "block",
        position: "fixed"
    })
}), $("#left-panel a").on("click", function () { }), $(".back-to-top").click(function (e) {
    return e.preventDefault(), $("html, body").animate({
        scrollTop: 0
    }, 600), !1
}), $("#onlineservicesbutton").click(function () {
    $("#onlineservicesblock").hasClass("closed") ? ($("#onlineservicesblock").animate({
        right: -2
    }, 1e3), $("#onlineservicesblock").addClass("opened"), $("#onlineservicesblock").removeClass("closed")) : $("#onlineservicesblock").hasClass("opened") && ($("#onlineservicesblock").animate({
        right: -260
    }, 1e3), $("#onlineservicesblock").addClass("closed"), $("#onlineservicesblock").removeClass("opened"))
}), $(function () {
    $('[data-toggle="tooltip"]').tooltip()
}), $("#close-left-panel").click(function () {
    $("#left-panel").hasClass("closed") ? ($("#right-panel").removeClass("col-lg-12"), $("#right-panel").addClass("col-lg-9"), $("#left-panel").removeClass("closed"), $("#left-panel").removeClass("hidden closed"), $("#left-panel").addClass("opened"), $("#close-left-panel").text("← Hide left panel")) : $("#left-panel").hasClass("opened") && ($("#right-panel").removeClass("col-lg-9"), $("#right-panel").addClass("col-lg-12"), $("#left-panel").removeClass("opened"), $("#left-panel").addClass("hidden closed"), $("#close-left-panel").text("Show left panel →"), $(".right-icon").css("display", "block"))
}), $("#fontincrease").on("click", function () {
    setCookie("15px");
    return $("body").css("font-size", "15px"), $("#fontincrease").addClass("selected"), $("#fontdecrease").removeClass("selected"), $("#fontdefault").removeClass("selected"), !1
}), $("#fontdefault").on("click", function () {
    setCookie("14px");
    return $("body").css("font-size", "14px"), $("#fontincrease").removeClass("selected"), $("#fontdecrease").removeClass("selected"), $("#fontdefault").addClass("selected"), !1
}), $("#fontdecrease").on("click", function () {
    setCookie("13px");
    return $("body").css("font-size", "13px"), $("#fontincrease").removeClass("selected"), $("#fontdecrease").addClass("selected"), $("#fontdefault").removeClass("selected"), !1
}), $("#radioBtn a").on("click", function () {
    var e = $(this).data("title"),
        t = $(this).data("toggle");
    $("#" + t).prop("value", e), $('a[data-toggle="' + t + '"]').not('[data-title="' + e + '"]').removeClass("active").addClass("notActive"), $('a[data-toggle="' + t + '"][data-title="' + e + '"]').removeClass("notActive").addClass("active"), "N" == $("#ContentLanguage").val() ? ($(".English-contents").fadeOut(), $(".Gujarati-contents").fadeIn()) : ($(".English-contents").fadeIn(), $(".Gujarati-contents").fadeOut())
}), $("#loadmoretimeline").on("click", function () {
    return $("#hiddentimeline").slideToggle(3e3, function () {
        $("#loadmoretimeline").html('<i class="fa fa-angle-down"></i> Load More..' == $("#loadmoretimeline").html() ? '<i class="fa fa-angle-up"></i> Show Less..' : '<i class="fa fa-angle-down"></i> Load More..')
    }), !1
}), $(document).ready(function () {
    var e = window.location.hash;
    "" != e && $("body, html").animate({
        scrollTop: $($(e)).offset().top - 90
    }, 600)
}), $("#left-panel li a").on("click", function () {
    if ($(this).attr("href").includes(".pdf") || $(this).attr("target"));
    else {
        window.location = $(this).attr("href"), linkwithlocation = $(this).attr("href"), linkwithlocation = window.location.host + linkwithlocation.substr(0, linkwithlocation.indexOf("#")), currentlocation = window.location.toString(), len = window.location.toString().length - window.location.hash.toString().length, currentlocation = currentlocation.substr(0, len);
        var e = window.location.hash;
        if ("http://" + linkwithlocation == currentlocation || "https://" + linkwithlocation == currentlocation) {
            var e = window.location.hash;
            "" != e && $("body, html").animate({
                scrollTop: $($(e)).offset().top - 90
            }, 10)
        }
    }
}), $("#allzones li a").on("click", function () {
    if ($(this).attr("href").includes(".pdf") || $(this).attr("target"));
    else {
        window.location = $(this).attr("href"), linkwithlocation = $(this).attr("href"), linkwithlocation = window.location.host + linkwithlocation.substr(0, linkwithlocation.indexOf("#")), currentlocation = window.location.toString(), len = window.location.toString().length - window.location.hash.toString().length, currentlocation = currentlocation.substr(0, len);
        var e = window.location.hash;
        if ("http://" + linkwithlocation == currentlocation || "https://" + linkwithlocation == currentlocation) {
            var e = window.location.hash;
            "" != e && $("body, html").animate({
                scrollTop: $($(e)).offset().top - 90
            }, 10)
        }
    }
}),
$(".bookmark li a").on("click", function () {
    if ($(this).attr("href").includes(".pdf") || $(this).attr("target"));
    else {
        window.location = $(this).attr("href"), linkwithlocation = $(this).attr("href"), linkwithlocation = window.location.host + linkwithlocation.substr(0, linkwithlocation.indexOf("#")), currentlocation = window.location.toString(), len = window.location.toString().length - window.location.hash.toString().length, currentlocation = currentlocation.substr(0, len);
        var e = window.location.hash;
        if ("http://" + linkwithlocation == currentlocation || "https://" + linkwithlocation == currentlocation) {
            var e = window.location.hash;
            "" != e && $("body, html").animate({
                scrollTop: $($(e)).offset().top - 90
            }, 10)
        }
    }
}), $("#innermenu li a").on("click", function () {
    var e = $(this).attr("href");
    "" != e && $("body, html").animate({
        scrollTop: $($(e)).offset().top - 120
    }, 600)
}), $(".collapsible-panels-wrapper a").on("click", function () {
    var e = $(this);
    e.hasClass("collapsed") ? (e.removeClass("collapsed").addClass("active"), e.find("i").removeClass("fa-plus-circle").addClass("fa-minus-circle")) : (e.addClass("collapsed").removeClass("active"), e.find("i").removeClass("fa-minus-circle").addClass("fa-plus-circle"))
});
$("a.btn-collansible").on("click", function () {
    var e = $("#complaintinfomrationbtn");
    //alert(e);
    e.hasClass("collapsed") ? (e.removeClass("collapsed").addClass("active"), e.find("i").removeClass("fa-plus-circle").addClass("fa-minus-circle")) : (e.addClass("collapsed").removeClass("active"), e.find("i").removeClass("fa-minus-circle").addClass("fa-plus-circle"))
    $("#personalinfomrationbtn").removeClass("collapsed");
    $("#personalinfomrationbtn i").addClass("fa-minus-circle");
    $("#personalinformation").addClass("in");
    $("#personalinformation").attr("aria-expanded", "true");
});
$("#hidesociallinks").click(function () {
    $("#hidesociallinks").toggleClass("hideIcon", "showIcon");
    $(".sociallink").toggleClass("hidesociallinks", "showsociallinks");
    $("#hidesociallinks span").toggleClass("fa-caret-right", "fa-caret-left");
});
function setCookie(fontsize) {
    var now = new Date();
    var time = now.getTime();
    time += 3600 * 1000;
    now.setTime(time);
    //alert(now);
    cookieTxt = 'accessibilityfontsize=' + fontsize +
    '; expires=' + now +
    '; path=/';
    document.cookie = cookieTxt;
}
function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
}

function setFontSizeOnSite() {
    var getFontSize = getCookie("accessibilityfontsize");
    $("body").css("font-size", getFontSize);
    if (getFontSize == "15px") { $("#fontincrease").addClass("selected"), $("#fontdecrease").removeClass("selected"), $("#fontdefault").removeClass("selected"); }
    else if (getFontSize == "14px") { $("#fontincrease").removeClass("selected"), $("#fontdecrease").removeClass("selected"), $("#fontdefault").addClass("selected"); }
    else if (getFontSize == "13px") { $("#fontincrease").removeClass("selected"), $("#fontdecrease").addClass("selected"), $("#fontdefault").removeClass("selected"); }
}

$("#search-btn").click(function () {
    $(".search-box").slideToggle();
    var headerHeight = $("header").height();
    var headerHeight = +headerHeight + "px";
    $(".search-box").css("top", headerHeight);
});

function setCookieForSiteView(SiteViewType) {
    var now = new Date();
    var time = now.getTime();
    time += 3600 * 1000;
    now.setTime(time);
    cookieTxt = 'SiteView=' + SiteViewType +
    '; expires=' + now +
    '; path=/';
    document.cookie = cookieTxt;
}
function setSiteView() {
    var SiteView = getCookie("SiteView");
    if (SiteView == 'highContrastView') { $('body').addClass("wob"); } else if (SiteView == 'stdview') { $('body').removeClass("wob"); }
}

const decodeHtmlCharCodes = str => str.replace(/(&#(\d+);)/g, (match, capture, charCode) => String.fromCharCode(charCode));

function htmlDecode(input) {
    let doc = new DOMParser().parseFromString(input, "text/html");
    return doc.documentElement.textContent;
}

$("#stdView").click(function () {
    setCookieForSiteView("stdview");
    $('body').removeClass("wob");
});
$("#highContrastView").click(function () {
    setCookieForSiteView("highContrastView");
    $('body').addClass("wob");
});

$(document).ready(function () {
    $('.no-cache').each(function(e, res){
        var aHref = $(this).attr('href');
        aHref = aHref + '?ver=' + (Math.floor(Math.random() * 10000) + 1);
        $(this).attr('href',aHref);
    }); 
});;