/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./public/js/functions.js":
/*!********************************!*\
  !*** ./public/js/functions.js ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

custom_ajax = function custom_ajax(url, data, async, calback) {
  //    data['_token'] = $token;
  if (async == undefined) {
    async = false;
  }

  var response = "";
  $.ajax({
    url: urlD + "/" + url,
    crossDomain: true,
    dataType: "json",
    data: data,
    type: "post",
    async: async,
    success: function success(data) {
      if (calback != undefined) {
        calback(data);
      } else {
        response = data;
      }
    },
    error: function error(reject) {
      if (reject.status === 422) {
        response = $.parseJSON(reject.responseText);
      }
    }
  });

  if (calback == undefined) {
    return response;
  }
};

show_message = function show_message($msg, $type) {
  toastr.options = {
    closeButton: true,
    debug: false,
    newestOnTop: true,
    progressBar: true,
    positionClass: "toast-top-right",
    preventDuplicates: false,
    showDuration: "300",
    hideDuration: "1000",
    timeOut: "5000",
    extendedTimeOut: "1000",
    showEasing: "swing",
    hideEasing: "linear",
    showMethod: "fadeIn",
    hideMethod: "fadeOut"
  };

  switch ($type) {
    case "sa":
      toastr.options["timeOut"] = "30000";
      toastr.success($msg);
      break;

    case "i":
      toastr.info($msg);
      break;

    case "w":
      toastr.warning($msg);
      break;

    case "s":
      toastr.success($msg);
      break;

    case "e":
      toastr.error($msg);
      break;

    default:
      toastr.info($msg);
  }
};

var obj = {};
obj["_token"] = $token;
$.ajaxSetup({
  data: obj,
  dataType: "jsonp"
});

__commentRender = function __commentRender() {
  var response = custom_ajax("postComments", {
    postID: postID
  });
  $(".blog-comment-div").html(response.html);
  setTimeout(function () {
    $('[name="comment"]').val("");
  }, 100);
};

log = function log($log) {
  console.log($log);
}; // ;(function (i, s, o, g, r, a, m) {
//   i["GoogleAnalyticsObject"] = r
//   ;(i[r] =
//     i[r] ||
//     function () {
//       ;(i[r].q = i[r].q || []).push(arguments)
//     }),
//     (i[r].l = 1 * new Date())
//   ;(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0])
//   a.async = 1
//   a.src = g
//   m.parentNode.insertBefore(a, m)
// })(window, document, "script", "//www.google-analytics.com/analytics.js", "ga")
// ga("create", "UA-108021284-6", "mywebsite.com")
// ga("send", "pageview")


isEmail = function isEmail(email) {
  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  return regex.test(email);
};

setCookie = function setCookie(cname, cvalue, exdays) {
  var d = new Date();
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
  var expires = "expires=" + d.toUTCString();
  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
};

getCookie = 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 "";
};

gaEvent = function gaEvent(event) {
  var post_category = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  var event_label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";

  switch (event) {
    case "Showcard view":
      gtag("event", "Showcard view", {
        event_label: event_label,
        post_title: post_title,
        post_keywords: post_keywords,
        post_category: post_category
      });
      break;

    case "ValueDrivenContentRead":
      gtag("event", "Value driven content read", {
        post_title: post_title,
        post_keywords: post_keywords,
        post_category: post_category
      });
      break;

    default:
      break;
  }
};

/***/ }),

/***/ "./public/js/loading.js":
/*!******************************!*\
  !*** ./public/js/loading.js ***!
  \******************************/
/*! no static exports found */
/***/ (function(module, exports) {

loadingH = function loadingH(width, height) {
  var style = '';

  if (height) {
    style += 'height: ' + height + 'px;';
  }

  if (width) {
    style += 'width: ' + width + 'px;';
  }

  if (height || width) {
    style = 'style="' + style + '"';
  }

  return "<div class=\"loading-main\" ".concat(style, ">\n    <div id=\"container\">\n        <div class=\"divider\" aria-hidden=\"true\"></div>\n            <p class=\"loading-text\" aria-label=\"Loading\">\n                <span class=\"letter\" aria-hidden=\"true\">L</span>\n                <span class=\"letter\" aria-hidden=\"true\">o</span>\n                <span class=\"letter\" aria-hidden=\"true\">a</span>\n                <span class=\"letter\" aria-hidden=\"true\">d</span>\n                <span class=\"letter\" aria-hidden=\"true\">i</span>\n                <span class=\"letter\" aria-hidden=\"true\">n</span>\n                <span class=\"letter\" aria-hidden=\"true\">g</span>\n            </p>\n        </div>\n    </div>\n\n<style>\n.loading-main * {\n  box-sizing: border-box;\n}\n.loading-main *::before, .loading-main *::after {\n  box-sizing: border-box;\n}\n\n.loading-main {\n  font-family: \"Roboto\", sans-serif;\n  font-size: 1rem;\n  line-height: 1.5;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin: 0;\n  background: #fff;\n  overflow: hidden;\n}\n\n#container {\n  position: relative;\n  transform: scale(0.725);\n}\n\n.divider {\n  position: absolute;\n  z-index: 2;\n  top: 65px;\n  left: 200px;\n  width: 50px;\n  height: 15px;\n  background: #fff;\n}\n\n.loading-text {\n  position: relative;\n  font-size: 3.75rem;\n  font-weight: 300;\n  margin: 0;\n  white-space: nowrap;\n}\n.loading-text::before {\n  position: absolute;\n  content: \"\";\n  z-index: 1;\n  top: 40px;\n  left: 115px;\n  width: 6px;\n  height: 6px;\n  background: #000;\n  border-radius: 50%;\n  -webkit-animation: dotMove 1800ms cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite;\n          animation: dotMove 1800ms cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite;\n}\n.loading-text .letter {\n  display: inline-block;\n  position: relative;\n  color: #000;\n  letter-spacing: 5px;\n}\n.loading-text .letter:nth-child(1) {\n  transform-origin: 100% 70%;\n  transform: scale(1, 1.275);\n  color:#295495;\n}\n.loading-text .letter:nth-child(1)::before {\n  position: absolute;\n  content: \"\";\n  top: 22px;\n  left: 0;\n  width: 14px;\n  height: 36px;\n  background: #fff;\n  transform-origin: 100% 0;\n  -webkit-animation: lineStretch 1800ms cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite;\n          animation: lineStretch 1800ms cubic-bezier(0.25, 0.25, 0.75, 0.75) infinite;\n}\n.loading-text .letter:nth-child(5) {\n    color:#4399A9;\n  transform-origin: 100% 70%;\n  -webkit-animation: letterStretch 1800ms cubic-bezier(0.25, 0.23, 0.73, 0.75) infinite;\n          animation: letterStretch 1800ms cubic-bezier(0.25, 0.23, 0.73, 0.75) infinite;\n}\n.loading-text .letter:nth-child(5)::before {\n  position: absolute;\n  content: \"\";\n  top: 15px;\n  left: 2px;\n  width: 9px;\n  height: 15px;\n  background: #fff;\n}\n\n@-webkit-keyframes dotMove {\n  0%, 100% {\n    transform: rotate(180deg) translate(-110px, -10px) rotate(-180deg);\n  }\n  50% {\n    transform: rotate(0deg) translate(-111px, 10px) rotate(0deg);\n  }\n}\n\n@keyframes dotMove {\n  0%, 100% {\n    transform: rotate(180deg) translate(-110px, -10px) rotate(-180deg);\n  }\n  50% {\n    transform: rotate(0deg) translate(-111px, 10px) rotate(0deg);\n  }\n}\n@-webkit-keyframes letterStretch {\n  0%, 100% {\n    transform: scale(1, 0.35);\n    transform-origin: 100% 75%;\n  }\n  8%, 28% {\n    transform: scale(1, 2.125);\n    transform-origin: 100% 67%;\n  }\n  37% {\n    transform: scale(1, 0.875);\n    transform-origin: 100% 75%;\n  }\n  46% {\n    transform: scale(1, 1.03);\n    transform-origin: 100% 75%;\n  }\n  50%, 97% {\n    transform: scale(1);\n    transform-origin: 100% 75%;\n  }\n}\n@keyframes letterStretch {\n  0%, 100% {\n    transform: scale(1, 0.35);\n    transform-origin: 100% 75%;\n  }\n  8%, 28% {\n    transform: scale(1, 2.125);\n    transform-origin: 100% 67%;\n  }\n  37% {\n    transform: scale(1, 0.875);\n    transform-origin: 100% 75%;\n  }\n  46% {\n    transform: scale(1, 1.03);\n    transform-origin: 100% 75%;\n  }\n  50%, 97% {\n    transform: scale(1);\n    transform-origin: 100% 75%;\n  }\n}\n@-webkit-keyframes lineStretch {\n  0%, 45%, 70%, 100% {\n    transform: scaleY(0.125);\n  }\n  49% {\n    transform: scaleY(0.75);\n  }\n  50% {\n    transform: scaleY(0.875);\n  }\n  53% {\n    transform: scaleY(0.5);\n  }\n  60% {\n    transform: scaleY(0);\n  }\n  68% {\n    transform: scaleY(0.18);\n  }\n}\n@keyframes lineStretch {\n  0%, 45%, 70%, 100% {\n    transform: scaleY(0.125);\n  }\n  49% {\n    transform: scaleY(0.75);\n  }\n  50% {\n    transform: scaleY(0.875);\n  }\n  53% {\n    transform: scaleY(0.5);\n  }\n  60% {\n    transform: scaleY(0);\n  }\n  68% {\n    transform: scaleY(0.18);\n  }\n}\n@media (min-width: 48rem) {\n  #container {\n    transform: scale(0.725rem);\n  }\n}\n@media (min-width: 62rem) {\n  #container {\n    transform: scale(0.85);\n  }\n}\n</style>");
};

/***/ }),

/***/ "./public/js/main.js":
/*!***************************!*\
  !*** ./public/js/main.js ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports) {

var $portfolio;
var $masonry_block;
var $portfolio_selectors;
var $portfolio_selectors_li;
var $blog;
var hashfilter;
var gaFAQOpen = "0";
var gaShowcardEvent = "0";
var gaCompanyAdds = "0";
$(document).ready(function () {
  if (guest) {
    var getSp = getCookie("specialty");
    var getDistrict = getCookie("district");

    if (!getDistrict && getSp != "") {
      $("#guest_districts_modal").modal("show");
    }

    if (!getSp) {
      $(".select2_c_specialty").select2();
      $("#guest_specialty_modal").modal("show");
      $(".select2_c_specialty").on("select2:select", function (e) {
        var specialty = e.params.data.id;
        setCookie("specialty", specialty, "1");
      });
    }
  }

  $("body").on("click", ".pagination-dashboard-mini li a", function () {
    var _this = this;

    $($(this).parent().parent()).children().removeClass("active");
    $(this).parent().addClass("active");
    var mainEl = $(this).parent().parent().parent().prev();
    var thHeight = $(mainEl).height();
    var thWidth = $(mainEl).width();
    var loading = loadingH(thWidth, thHeight);
    $(mainEl).html(loading);
    setTimeout(function () {
      var section = $(_this).parent().parent().attr("url");
      var page = parseInt($(_this).text());
      var response = custom_ajax("dashboard-pagination", {
        section: section,
        page: page
      });
      var html = "";
      $.each(response, function (k, val) {
        var slug = val.slug;
        var title = val.title;
        var content = val.content;
        var img = val.img;

        if (!isMobile) {
          html += "<div class=\"col-md-4 col-sm-6 col-xs-6 blog-listing wow fadeInUp\" data-wow-duration=\"300ms\">\n                      <div class=\"blog-image\">\n                          <a href=\"".concat(slug, "\">\n                              <img src=\"").concat(img, "\" alt=\"\" />\n                          </a>\n                      </div>\n                      <div class=\"blog-details\">\n                          <div class=\"blog-title\"><a\n                                  href=\"").concat(slug, "\">").concat(title, "</a>\n                          </div>\n                          <div class=\"blog-short-description\">\n                              ").concat(content, "\n                          </div>\n                      </div>\n                  </div>");
        } else {
          html += "<div class=\"clear-both\">\n                    <div class=\"blog-image col-xs-5 mb-2\">\n                        <a href=\"".concat(slug, "\">\n                            <img src=\"").concat(img, "\" alt=\"\" />\n                        </a>\n                    </div>\n                    <div class=\"blog-details col-xs-7\">\n                        <div class=\"blog-title\"><a href=\"").concat(slug, "\">").concat(title, "</a>\n                        </div>\n                    </div>\n                </div>");
        }
      });
      $(_this).parent().parent().parent().prev().html(html);
    }, 100);
  });
  $("body").on("click", ".false", function (e) {
    e.preventDefault();
  });

  if ($(".owl-carousel").length) {
    var owl = $(".owl-carousel").owlCarousel({
      stagePadding: 50,
      loop: true,
      margin: 10,
      items: 4,
      nav: true,
      autoplay: true,
      autoplayTimeout: 2000,
      navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
      responsive: {
        0: {
          items: 1
        },
        600: {
          items: 3
        },
        1000: {
          items: 5
        }
      }
    });
  } //   $('#accordion .menu-first-level').click(function(){
  // // $('.dropdown-toggle').toggle()
  //   });
  // console.clear()


  $("body").on("click", "#division_accordion .district_list", function () {
    var district = $.trim($(this).text());
    setCookie("district", district, "365");
    $("#guest_districts_modal").modal("hide");
  });
  $("body").on("click", ".change_your_specialty", function () {
    $(".your_specialty").parent().parent().addClass("hidden");
    $(".specialty_list_div").removeClass("hidden");
  });
  $("body").on("click", ".specialty_list", function () {
    $(".specialty_list").removeClass("active");
    $(this).addClass("active");
    var specialty = $.trim($(this).text());
    setCookie("specialty", specialty, "365");
    setCookie("district", specialty, "7"); // $('#guest_specialty_modal').modal('hide')

    $(".your_specialty").html(specialty);
    $(".your_specialty").parent().parent().removeClass("hidden");
    $(".specialty_list_div").addClass("hidden");
  });
  $("body").on("click", ".submitNewsletter", function () {
    var email = $(".email_newsletter").val();

    if ($.trim(email) != "" && isEmail(email)) {
      var response = custom_ajax("newsLetter", {
        email: email
      });

      if (response.email != undefined) {
        toastr.error("your email address is invalid.");
        $(".email_newsletter").css({
          "border-bottom": "2px solid red"
        });
      } else {
        if (response.success == "true") {
          toastr.success(response.msg);
        } else {
          toastr.error(response.msg);
        }

        $(".email_newsletter").removeAttr("style");
      }
    } else {
      $(".email_newsletter").css({
        "border-bottom": "2px solid red"
      });
    }
  });

  if ($(".remove_ads").length > 0) {
    $(".remove_ads").remove();
  } //


  if (isMobile == false) {// $(".adds,.adds2").hide()
  }

  if ($(".datatable_normal").length > 0) {
    $(".datatable_normal").DataTable({
      bLengthChange: false,
      bFilter: false,
      bInfo: false
    });
  }

  $(".num_inp").change(function () {
    var old_val = $(this).val();

    if (parseInt(old_val) > $max_quantity) {
      bootbox.alert(" you can't apply to more than " + $max_quantity);
      $(this).val("1");
    }
  });
  $(".num_decrease").click(function () {
    var old_val = $(this).next().val();

    if (parseInt(old_val) > 1) {
      $(this).next().val(parseInt(old_val) - 1);
    }
  });
  $(".num_increase").click(function () {
    var old_val = $(this).prev().val();

    if (parseInt(old_val) < $max_quantity) {
      $(this).prev().val(parseInt(old_val) + 1);
    } else {
      bootbox.alert(" you can't apply to more than " + $max_quantity);
    }
  });
  $(".jqzoom").jqzoom({
    zoomWidth: 500,
    zoomType: "standard",
    lens: true,
    preloadImages: false,
    alwaysOn: false
  });
  $("body").on("click", ".sample_medicine_details", function () {
    var content = $(".adds2 .carousel-inner .active");
    var gift_title = $(content).attr("sample_medicine_title");
    window.open(urlD + "/sample_medicine_details/" + gift_title, "_self");
  });
  var elementOffset = $(".company_content").offset().top; // log("main " + elementOffset);
  // window.scrollTo({ top: elementOffset, behavior: 'smooth' });
  // log("gaShowcardEvent " + gaShowcardEvent);

  $(window).scroll(function () {
    if (gaShowcardEvent == "0") {
      var scrollPoint = $(this).scrollTop();

      if (scrollPoint >= elementOffset) {
        gaEvent("Showcard view", post_category, post_title + post_keywords);
        gaShowcardEvent = "1"; // log("gaShowcardEvent " + gaShowcardEvent);
      }
    }
  });
  $("body").on("click", ".adds2 .item a", function (e) {
    return true;
  });

  if ($(".select2_normal").length > 0) {
    $(".select2_normal").select2();
  }

  $(".sample_medicine_claim_now").click(function () {
    var num_inp = $(".num_inp").val();
    $(this).attr("href", $(this).attr("href") + "/" + num_inp);
  });
  $("body").on("click", ".remove_sample_medicine_claim", function (e) {
    var $this = $(this);
    bootbox.confirm({
      message: "are you sure you want to delete this item?",
      buttons: {
        confirm: {
          label: "Yes",
          className: "btn-success"
        },
        cancel: {
          label: "No",
          className: "btn-danger"
        }
      },
      callback: function callback(result) {
        if (result == true) {
          var claim_id = $($this).attr("claim_id");
          var response = custom_ajax("remove_sample_medicine_claim", {
            claim_id: claim_id
          });
          show_message(response.msg);

          if (response.status == "1") {
            setTimeout(function () {
              location.reload();
            }, 1000);
          }
        }
      }
    });
  });
  $("body").on("click", ".remove_gift_claim", function (e) {
    var $this = $(this);
    bootbox.confirm({
      message: "are you sure you want to delete this item?",
      buttons: {
        confirm: {
          label: "Yes",
          className: "btn-success"
        },
        cancel: {
          label: "No",
          className: "btn-danger"
        }
      },
      callback: function callback(result) {
        if (result == true) {
          var claim_id = $($this).attr("claim_id");
          var response = custom_ajax("remove_claim", {
            claim_id: claim_id
          });
          show_message(response.msg);

          if (response.status == "1") {
            setTimeout(function () {
              location.reload();
            }, 1000);
          }
        }
      }
    });
  });
  $("body").on("click", ".gift_details", function () {
    var content = $(".adds3 .carousel-inner .active");
    var gift_title = $(content).attr("gift_title");
    window.open(urlD + "/gift_details/" + gift_title, "_self");
  });
  $("body").on("click", ".adds3 .item a", function (e) {
    return true;
  });
  $(".gift_claim_now").click(function () {
    return true;
  });
  $(".claim_now").click(function () {
    var content = $(".carousel-inner .active");
    var title = $(content).children().eq(0).attr("alt");
    var src = $(content).children().eq(0).attr("src");
    var response = custom_ajax("claim_now", {
      title: title,
      src: src
    });
    show_message(response.msg);

    if (response.status == "1") {
      $(".carousel-indicators li.active").next().addClass("active");
      $(content).next().addClass("active");
      $(content).remove();
      $(".carousel-indicators li.active").prev().remove();
    }

    if (response.msg == "authentication required.") {
      setTimeout(function () {
        window.open(urlD + "/login", "_self");
      }, 1000);
    }
  });
  var size_li = $(".category-list li").size();
  var x = 3;
  $(".category-list li:lt(" + x + ")").show();
  $(".loadMore").click(function () {
    x = x + 5 <= size_li ? x + 5 : size_li;
    $($(this).parent().children().eq(0)).children("li:lt(" + x + ")").show();
  });
  $(".showLess").click(function () {
    x = x - 5 < 0 ? 3 : x - 5;
    $($(this).parent().children().eq(0)).children("li").not(":lt(" + x + ")").hide();
  });
  $(".showLess").click(); // Show Animated Counters

  animatecounters();
  /* ===================================
  counter number reset while scrolling
  ====================================== */

  /*==============================================================*/
  //Smooth Scroll - START CODE

  /*==============================================================*/

  jQuery(".inner-top").smoothScroll({
    speed: 900,
    offset: -68
  });
  /*==============================================================*/
  //Smooth Scroll - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Set Resize Header Menu - START CODE

  /*==============================================================*/

  SetResizeHeaderMenu();
  /*==============================================================*/
  //Set Resize Header Menu - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //For shopping cart- START CODE

  /*==============================================================*/

  var isMobile = false;
  var isiPhoneiPad = false;

  if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
    isMobile = true;
  }

  if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
    isiPhoneiPad = true;
  }

  if (!isMobile) {
    jQuery(".top-cart a.shopping-cart, .cart-content").hover(function () {
      jQuery(".cart-content").css("opacity", "1");
      jQuery(".cart-content").css("visibility", "visible");
    }, function () {
      jQuery(".cart-content").css("opacity", "0");
      jQuery(".cart-content").css("visibility", "hidden");
    });
  }

  if (isiPhoneiPad) {
    jQuery(".video-wrapper").css("display", "none");
  }

  jQuery(".top-cart a.shopping-cart").click(function () {
    //$('.navbar-collapse').collapse('hide');
    if ($(".cart-content").css("visibility") == "visible") {
      jQuery(".cart-content").css("opacity", "0");
      jQuery(".cart-content").css("visibility", "hidden");
    } else {
      jQuery(".cart-content").css("opacity", "1");
      jQuery(".cart-content").css("visibility", "visible");
    }
  });
  /*==============================================================*/
  //Shrink nav on scroll - START CODE

  /*==============================================================*/

  if ($(window).scrollTop() > 10) {
    $("nav").addClass("shrink-nav");
  } else {
    $("nav").removeClass("shrink-nav");
  }
  /*==============================================================*/
  //Shrink nav on scroll - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //accordion  - START CODE

  /*==============================================================*/


  $(".collapse").on("show.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").addClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-minus"></i>');
  });
  $(".collapse").on("hide.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").removeClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-plus"></i>');
  });
  $(".nav.navbar-nav a.inner-link").click(function () {
    $(this).parents("ul.navbar-nav").find("a.inner-link").removeClass("active");
    $(this).addClass("active");
    if ($(".navbar-header .navbar-toggle").is(":visible")) $(this).parents(".navbar-collapse").collapse("hide");
  });
  $(".accordion-style2 .collapse").on("show.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").addClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-up"></i>');
  });
  $(".accordion-style2 .collapse").on("hide.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").removeClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-down"></i>');
  });
  $(".accordion-style3 .collapse").on("show.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").addClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-up"></i>');
  });
  $(".accordion-style3 .collapse").on("hide.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").removeClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-down"></i>');
  });
  /*==============================================================*/
  //accordion - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //toggles  - START CODE

  /*==============================================================*/

  $("toggles .collapse").on("show.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").addClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-minus"></i>');
  });
  $("toggles .collapse").on("hide.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").removeClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-plus"></i>');
  });
  $(".toggles-style2 .collapse").on("show.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").addClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-up"></i>');
  });
  $(".toggles-style2 .collapse").on("hide.bs.collapse", function () {
    var id = $(this).attr("id");
    $('a[href="#' + id + '"]').closest(".panel-heading").removeClass("active-accordion");
    $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-down"></i>');
  });
  /*==============================================================*/
  //toggles  - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //fit video  - START CODE

  /*==============================================================*/
  // Target your .container, .wrapper, .post, etc.

  try {
    $(".fit-videos").fitVids();
  } catch (err) {}
  /*==============================================================*/
  //fit video  - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //google map - mouse scrolling wheel behavior - START CODE

  /*==============================================================*/
  // you want to enable the pointer events only on click;


  $("#map_canvas1").addClass("scrolloff"); // set the pointer events to none on doc ready

  $("#canvas1").on("click", function () {
    $("#map_canvas1").removeClass("scrolloff"); // set the pointer events true on click
  }); // you want to disable pointer events when the mouse leave the canvas area;

  $("#map_canvas1").mouseleave(function () {
    $("#map_canvas1").addClass("scrolloff"); // set the pointer events to none when mouse leaves the map area
  });
  /*==============================================================*/
  //google map - mouse scrolling wheel behavior - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Search - START CODE

  /*==============================================================*/

  $("input.search-input").bind("keypress", function (event) {
    if (event.which == 13 && !isMobile) {
      $("button.search-button").click();
      event.preventDefault();
    }
  });
  $("input.search-input").bind("keyup", function (event) {
    if ($(this).val() == null || $(this).val() == "") {
      $(this).css({
        border: "none",
        "border-bottom": "2px solid red"
      });
    } else {
      $(this).css({
        border: "none",
        "border-bottom": "2px solid #000"
      });
    }
  });

  function validationSearchForm() {
    var error = true;
    $("#search-header input[type=text]").each(function (index) {
      if (index == 0) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#search-header").find("input:eq(" + index + ")").css({
            border: "none",
            "border-bottom": "2px solid red"
          });
          error = false;
        } else {
          $("#search-header").find("input:eq(" + index + ")").css({
            border: "none",
            "border-bottom": "2px solid #000"
          });
        }
      }
    });
    return error;
  }

  $("form.search-form, form.search-form-result").submit(function (event) {
    var error = validationSearchForm();

    if (error) {
      var action = $(this).attr("action");
      action = action == "#" || action == "" ? "blog-grid-3columns.html" : action;
      action = action + "?" + $(this).serialize();
      window.location = action;
    }

    event.preventDefault();
  });
  $('.navbar .navbar-collapse a.dropdown-toggle, .accordion-style1 .panel-heading a, .accordion-style2 .panel-heading a, .accordion-style3 .panel-heading a, .toggles .panel-heading a, .toggles-style2 .panel-heading a, .toggles-style3 .panel-heading a, a.carousel-control, .nav-tabs a[data-toggle="tab"], a.shopping-cart').click(function (e) {
    e.preventDefault();
  });
  $("body").on("touchstart click", function (e) {
    if ($(window).width() < 992) {
      if (!$(".navbar-collapse").has(e.target).is(".navbar-collapse") && $(".navbar-collapse").hasClass("in") && !$(e.target).hasClass("navbar-toggle")) {
        $(".navbar-collapse").collapse("hide");
      }
    } else {
      if (!$(".navbar-collapse").has(e.target).is(".navbar-collapse") && $(".navbar-collapse ul").hasClass("in")) {
        console.log(this);
        $(".navbar-collapse").find("a.dropdown-toggle").addClass("collapsed");
        $(".navbar-collapse").find("ul.dropdown-menu").removeClass("in");
        $(".navbar-collapse a.dropdown-toggle").removeClass("active");
      }
    }
  });
  $(".navbar-collapse a.dropdown-toggle").on("touchstart", function (e) {
    $(".navbar-collapse a.dropdown-toggle").not(this).removeClass("active");
    if ($(this).hasClass("active")) $(this).removeClass("active");else $(this).addClass("active");
  });
  $("button.navbar-toggle").click(function () {
    if (isMobile) {
      jQuery(".cart-content").css("opacity", "0");
      jQuery(".cart-content").css("visibility", "hidden");
    }
  });
  $("a.dropdown-toggle").click(function () {
    if (isMobile) {
      jQuery(".cart-content").css("opacity", "0");
      jQuery(".cart-content").css("visibility", "hidden");
    }
  });
  /*==============================================================*/
  //Search - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //FORM TO EMAIL - START CODE

  /*==============================================================*/

  $("#success").hide();
  $("#contact-us-button").click(function () {
    var error = validationContactUsForm();

    if (error) {
      $.ajax({
        type: "POST",
        url: "contact.php",
        data: $("#contactusform").serialize(),
        success: function success(result) {
          $("input[type=text],textarea").each(function () {
            $(this).val("");
          });
          $("#success").html(result);
          $("#success").fadeIn("slow");
          $("#success").delay(4000).fadeOut("slow");
        }
      });
    }
  });

  function validationContactUsForm() {
    var error = true;
    $("#contactusform input[type=text]").each(function (index) {
      if (index == 1) {
        if (!/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val())) {
          $("#contactusform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#contactusform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      } else if (index == 0) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#contactusform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#contactusform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      }
    });
    return error;
  }

  $("#notifyme-button").click(function () {
    var error = validationnotifymeForm();

    if (error) {
      $.ajax({
        type: "POST",
        url: "notifyme.php",
        data: $("#notifymeform").serialize(),
        success: function success(result) {
          $("input[type=text],textarea").each(function () {
            $(this).val("");
          });
          $("#success").html(result);
          $("#success").fadeIn("slow");
          $("#success").delay(4000).fadeOut("slow");
        }
      });
    }
  });

  function validationnotifymeForm() {
    var error = true;
    $("#notifymeform input[type=text]").each(function (index) {
      if (index == 0) {
        if (!/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val())) {
          $("#notifymeform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#notifymeform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      }
    });
    return error;
  }

  $("#success-free30daytrial").hide();
  $("#free30daytrial-button").click(function () {
    var error = validationfree30daytrialForm();

    if (error) {
      $.ajax({
        type: "POST",
        url: "free30daytrial.php",
        data: $("#free30daytrialform").serialize(),
        success: function success(result) {
          $("input[type=text],textarea").each(function () {
            $(this).val("");
          });
          $("#success-free30daytrial").html(result);
          $("#success-free30daytrial").fadeIn("slow");
          $("#success-free30daytrial").delay(4000).fadeOut("slow");
        }
      });
    }
  });

  function validationfree30daytrialForm() {
    var error = true;
    $("#free30daytrialform input[type=text]").each(function (index) {
      if (index == 1) {
        if (!/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val())) {
          $("#free30daytrialform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#free30daytrialform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      } else if (index == 0) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#free30daytrialform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#free30daytrialform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      }
    });
    return error;
  }

  $("#event-button").click(function () {
    var error = validationeventForm();

    if (error) {
      $.ajax({
        type: "POST",
        url: "rsvp.php",
        data: $("#eventform").serialize(),
        success: function success(result) {
          $("input[type=text],textarea").each(function () {
            $(this).val("");
          });
          $("#success").html(result);
          $("#success").fadeIn("slow");
          $("#success").delay(4000).fadeOut("slow");
        }
      });
    }
  });

  function validationeventForm() {
    var error = true;
    $("#eventform input[type=text]").each(function (index) {
      if (index == 0) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#eventform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#eventform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      }
    });
    return error;
  }

  $("#careers-button").click(function () {
    var error = validationcareersForm();

    if (error) {
      $.ajax({
        type: "POST",
        url: "careers.php",
        data: $("#careersform").serialize(),
        success: function success(result) {
          $("input[type=text],textarea").each(function () {
            $(this).val("");
          });
          $("#success").html(result);
          $("#success").fadeIn("slow");
          $("#success").delay(4000).fadeOut("slow");
        }
      });
    }
  });

  function validationcareersForm() {
    var error = true;
    $("#careersform input[type=text]").each(function (index) {
      if (index == 1) {
        if (!/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val())) {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      } else if (index == 0) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      } else if (index == 2) {
        if ($(this).val() == null || $(this).val() == "") {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid red"
          });
          error = false;
        } else {
          $("#careersform").find("input:eq(" + index + ")").css({
            border: "1px solid #dfdfdf"
          });
        }
      }
    });
    return error;
  }
  /*==============================================================*/
  //FORM TO EMAIL - END CODE

  /*==============================================================*/
  // pull-menu close on href click event in mobile devices


  $(".pull-menu a.inner-link").click(function (e) {
    $("#close-button").click();
  });
});

function animatecounters() {
  /*==============================================================*/
  //Counter Number - START CODE

  /*==============================================================*/
  $(".timer").each(count);

  function count(options) {
    var $this = $(this);
    options = $.extend({}, options || {}, $this.data("countToOptions") || {});
    $this.countTo(options);
  }
  /*==============================================================*/
  //Counter Number - END CODE

  /*==============================================================*/

}

var inViewchart = false;
var inViewanimnumberpizza = false;
var inViewanimnumberclient = false;
var inViewanimnumberprojects = false;
var inViewanimnumbercomments = false;
var inViewcounter1 = false;
var inViewcounter2 = false;
var inViewcounter3 = false;
var inViewcounter4 = false;
var inViewcounter5 = false;
var inViewcounter6 = false;
var inViewcounter7 = false;

function isScrolledIntoView(elem) {
  try {
    var docViewTop = $(window).scrollTop();
    var docViewBottom = docViewTop + $(window).height();
    var elemTop = $(elem).offset().top;
    var elemBottom = elemTop + $(elem).height();
    return elemTop <= docViewBottom && elemBottom >= docViewTop;
  } catch (ex) {
    return false;
  }
}
/*==============================================================*/
//Navigation - START CODE

/*==============================================================*/
// Shrink nav on scroll


$(window).scroll(function () {
  if ($(window).scrollTop() > 10) {
    $("nav").addClass("shrink-nav");
  } else {
    $("nav").removeClass("shrink-nav");
  } //Animate Elements in view position


  if (isScrolledIntoView(".chart")) {
    if (inViewchart == false) {
      inViewchart = true;
      $(".chart").each(function () {
        try {
          $(this).data("easyPieChart").update(0);
          $(this).data("easyPieChart").update($(this).attr("data-percent"));
        } catch (ex) {}
      });
      $(".chart2").each(function () {
        try {
          $(this).data("easyPieChart").update(0);
          $(this).data("easyPieChart").update($(this).attr("data-percent"));
        } catch (ex) {}
      });
    }
  }
}); // Resize Header Menu

function SetResizeHeaderMenu() {
  var width = jQuery("nav.navbar").children("div.container").width();
  $("ul.mega-menu-full").each(function () {
    jQuery(this).css("width", width + "px");
  });
}
/*==============================================================*/
//Navigation - END CODE

/*==============================================================*/

/*==============================================================*/
//Mobile Toggle Control - START CODE

/*==============================================================*/


$(".mobile-toggle").click(function () {
  $("nav").toggleClass("open-nav");
});
$(".dropdown-arrow").click(function () {
  if ($(".mobile-toggle").is(":visible")) {
    if ($(this).children(".dropdown").hasClass("open-nav")) {
      $(this).children(".dropdown").removeClass("open-nav");
    } else {
      $(".dropdown").removeClass("open-nav");
      $(this).children(".dropdown").addClass("open-nav");
    }
  }
});
/*==============================================================*/
//Mobile Toggle Control - END CODE

/*==============================================================*/

/*==============================================================*/
//Position Fullwidth Subnavs fullwidth correctly - START CODE

/*==============================================================*/

$(".dropdown-fullwidth").each(function () {
  $(this).css("width", $(".row").width());
  var subNavOffset = -($("nav .row").innerWidth() - $(".menu").innerWidth() - 15);
  $(this).css("left", subNavOffset);
});
/*==============================================================*/
//Position Fullwidth Subnavs fullwidth correctly - END CODE

/*==============================================================*/

/*==============================================================*/
//Smooth Scroll - START CODE

/*==============================================================*/

var scrollAnimationTime = 1200,
    scrollAnimation = "easeInOutExpo";
$("a.scrollto").bind("click.smoothscroll", function (event) {
  event.preventDefault();
  var target = this.hash;
  $("html, body").stop().animate({
    scrollTop: $(target).offset().top
  }, scrollAnimationTime, scrollAnimation, function () {
    window.location.hash = target;
  });
}); // Inner links

$(".inner-link").smoothScroll({
  speed: 900,
  offset: -0
});
$(".section-link").smoothScroll({
  speed: 900,
  offset: 1
}); // Scroll To Down

function scrollToDown() {
  var target = $("#features");
  $("html, body").animate({
    scrollTop: $(target).offset().top
  }, 800);
}

function scrollToDownSection() {
  var target = $("#about");
  $("html, body").animate({
    scrollTop: $(target).offset().top
  }, 800);
}
/*==============================================================*/
//Smooth Scroll - END CODE

/*==============================================================*/

/*==============================================================*/
//Full Screen Header - START CODE

/*==============================================================*/


function SetResizeContent() {
  var minheight = $(window).height();
  $(".full-screen").css("min-height", minheight);
  var minwidth = $(window).width();
  $(".full-screen-width").css("min-width", minwidth);
}

SetResizeContent();
/*==============================================================*/
//Full Screen Header - END CODE

/*==============================================================*/

/*==============================================================*/
//Window Resize Events - START CODE

/*==============================================================*/

$(window).resize(function () {
  //Position Fullwidth Subnavs fullwidth correctly
  $(".dropdown-fullwidth").each(function () {
    $(this).css("width", $(".row").width());
    var subNavOffset = -($("nav .row").innerWidth() - $(".menu").innerWidth() - 15);
    $(this).css("left", subNavOffset);
  });
  SetResizeContent();
  setTimeout(function () {
    SetResizeHeaderMenu();
  }, 200);

  if ($(window).width() >= 992 && $(".navbar-collapse").hasClass("in")) {
    $(".navbar-collapse").removeClass("in"); //$('.navbar-collapse').removeClass('in').find('ul.dropdown-menu').removeClass('in').parent('li.dropdown').addClass('open');

    $(".navbar-collapse ul.dropdown-menu").each(function () {
      if ($(this).hasClass("in")) {
        $(this).removeClass("in"); //.parent('li.dropdown').addClass('open');
      }
    });
    $("ul.navbar-nav > li.dropdown > a.dropdown-toggle").addClass("collapsed");
    $(".logo").focus();
    $(".navbar-collapse a.dropdown-toggle").removeClass("active");
  }
});
/*==============================================================*/
//Window Resize Events - END CODE

/*==============================================================*/

/*==============================================================*/
//Scroll To Top - START CODE

/*==============================================================*/

$(window).scroll(function () {
  if ($(this).scrollTop() > 100) {
    $(".scrollToTop").fadeIn();
  } else {
    $(".scrollToTop").fadeOut();
  }
}); //Click event to scroll to top

$(".scrollToTop").click(function () {
  $("html, body").animate({
    scrollTop: 0
  }, 1000);
  return false;
});
/*==============================================================*/
//Scroll To Top - END CODE

/*==============================================================*/

$("nav.full-width-pull-menu ul.panel-group li.dropdown a.dropdown-toggle").click(function () {
  if ($(this).parent("li").find("ul.dropdown-menu").length > 0) {
    if ($(this).parent("li").hasClass("open")) {
      $(this).parent("li").removeClass("open");
    } else {
      $(this).parent("li").addClass("open");
    }
  }
}); // pull-menu close on href click event in mobile devices

$(".pull-menu a.section-link").click(function (e) {
  if ($(window).width() <= 500) $("#close-button").click();
});
/*==============================================================*/
// Main navigation href

/*==============================================================*/

$(document).ready(function () {
  $(document).on("click", ".menu-first-level > a:first-child", function () {
    var geturl = $(this).attr("data-redirect-url");

    if (geturl != "#" && geturl != "") {
      if ($(this).attr("target") == "_blank") {
        window.open(geturl, "_blank");
      } else {
        window.location = geturl;
      }
    }
  });
});

/***/ }),

/***/ "./public/js/popup-gallery.js":
/*!************************************!*\
  !*** ./public/js/popup-gallery.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* =================================
 Popup Gallery
 ==================================== */


function ScrollStop() {
  return false;
}

function ScrollStart() {
  return true;
}

$(document).ready(function () {
  var isMobile = false;

  if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
    isMobile = true;
  }
  /*==============================================================*/
  //Lightbox gallery - START CODE

  /*==============================================================*/


  $('.lightbox-gallery').magnificPopup({
    delegate: 'a',
    type: 'image',
    tLoading: 'Loading image #%curr%...',
    mainClass: 'mfp-fade',
    gallery: {
      enabled: true,
      navigateByImgClick: true,
      preload: [0, 1] // Will preload 0 - before current, and 1 after the current image

    }
  });
  $('.header-search-form').magnificPopup({
    mainClass: 'mfp-fade',
    closeOnBgClick: false,
    preloader: false,
    // for white backgriund
    whitebg: true,
    fixedContentPos: false,
    callbacks: {
      open: function open() {
        setTimeout(function () {
          $('.search-input').focus();
        }, 500);
        $('#search-header').parent().addClass('search-popup');

        if (!isMobile) {
          $('body').addClass('overflow-hidden');
          document.onmousewheel = ScrollStop;
        } else {
          $('body, html').on('touchmove', function (e) {
            e.preventDefault();
          });
        }
      },
      close: function close() {
        if (!isMobile) {
          $('body').removeClass('overflow-hidden');
          $('#search-header input[type=text]').each(function (index) {
            if (index == 0) {
              $(this).val('');
              $("#search-header").find("input:eq(" + index + ")").css({
                "border": "none",
                "border-bottom": "2px solid #000"
              });
            }
          });
          document.onmousewheel = ScrollStart;
        } else {
          $('body, html').unbind('touchmove');
        }
      }
    }
  });
  /*==============================================================*/
  //Lightbox gallery - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Ajax MagnificPopup For Onepage Portfolio - START CODE

  /*==============================================================*/

  $('.simple-ajax-popup-align-top').magnificPopup({
    type: 'ajax',
    alignTop: true,
    overflowY: 'scroll',
    // as we know that popup content is tall we set scroll overflow by default to avoid jump
    callbacks: {
      open: function open() {
        $('.navbar .collapse').removeClass('in');
        $('.navbar a.dropdown-toggle').addClass('collapsed');
      }
    }
  });
  /*==============================================================*/
  //Ajax MagnificPopup For Onepage Portfolio - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Video MagnificPopup - START CODE

  /*==============================================================*/

  $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
    disableOn: 700,
    type: 'iframe',
    mainClass: 'mfp-fade',
    removalDelay: 160,
    preloader: false,
    fixedContentPos: false,
    callbacks: {
      open: function open() {
        if (!isMobile) $('body').addClass('overflow-hidden');
      },
      close: function close() {
        if (!isMobile) $('body').removeClass('overflow-hidden');
      } // e.t.c.

    }
  });
  /*==============================================================*/
  //Video MagnificPopup - END CODE

  /*==============================================================*/

  /*==============================================================*/
  // magnificPopup - START CODE

  /*==============================================================*/

  $('.popup-youtube-landing').magnificPopup({
    disableOn: 700,
    type: 'iframe',
    mainClass: 'mfp-fade',
    removalDelay: 160,
    preloader: false,
    // for black backgriund
    blackbg: true,
    fixedContentPos: false,
    callbacks: {
      open: function open() {
        if (!isMobile) $('body').addClass('overflow-hidden');
      },
      close: function close() {
        if (!isMobile) $('body').removeClass('overflow-hidden');
      } // e.t.c.

    }
  });
  /*==============================================================*/
  // magnificPopup - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Single image lightbox - zoom animation - START CODE

  /*==============================================================*/

  $('.image-popup-no-margins').magnificPopup({
    type: 'image',
    closeOnContentClick: true,
    fixedContentPos: true,
    mainClass: 'mfp-no-margins mfp-with-zoom',
    // class to remove default margin from left and right side
    image: {
      verticalFit: true
    },
    zoom: {
      enabled: true,
      duration: 300 // don't foget to change the duration also in CSS

    }
  });
  /*==============================================================*/
  //Single image lightbox - zoom animation - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Single image -  fits horizontally and vertically - START CODE

  /*==============================================================*/

  $('.image-popup-vertical-fit').magnificPopup({
    type: 'image',
    closeOnContentClick: true,
    mainClass: 'mfp-img-mobile',
    image: {
      verticalFit: true
    }
  });
  /*==============================================================*/
  //Single image -  fits horizontally and vertically - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Zoom gallery - START CODE

  /*==============================================================*/

  $('.zoom-gallery').magnificPopup({
    delegate: 'a',
    type: 'image',
    mainClass: 'mfp-with-zoom mfp-img-mobile',
    image: {
      verticalFit: true
    },
    gallery: {
      enabled: true
    },
    zoom: {
      enabled: true,
      duration: 300,
      // don't foget to change the duration also in CSS
      opener: function opener(element) {
        return element.find('img');
      }
    }
  });
  /*==============================================================*/
  //Zoom gallery - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Popup with form - START CODE

  /*==============================================================*/

  $('.popup-with-form').magnificPopup({
    type: 'inline',
    preloader: false,
    closeBtnInside: true,
    focus: '#name',
    // When elemened is focused, some mobile browsers in some cases zoom in
    // It looks not nice, so we disable it:
    callbacks: {
      beforeOpen: function beforeOpen() {
        if ($(window).width() < 700) {
          this.st.focus = false;
        } else {
          this.st.focus = '#name';
        }
      }
    }
  });
  /*==============================================================*/
  //Popup with form - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Modal popup - START CODE

  /*==============================================================*/

  $('.modal-popup').magnificPopup({
    type: 'inline',
    preloader: false,
    // modal: true,
    blackbg: true
  });
  $(document).on('click', '.popup-modal-dismiss', function (e) {
    e.preventDefault();
    $.magnificPopup.close();
  });
  /*==============================================================*/
  //Modal popup - END CODE

  /*==============================================================*/

  /*==============================================================*/
  //Modal popup - zoom animation - START CODE

  /*==============================================================*/

  $('.popup-with-zoom-anim').magnificPopup({
    type: 'inline',
    fixedContentPos: false,
    fixedBgPos: true,
    overflowY: 'auto',
    closeBtnInside: true,
    preloader: false,
    midClick: true,
    removalDelay: 300,
    blackbg: true,
    mainClass: 'my-mfp-zoom-in'
  });
  $('.popup-with-move-anim').magnificPopup({
    type: 'inline',
    fixedContentPos: false,
    fixedBgPos: true,
    overflowY: 'auto',
    closeBtnInside: true,
    preloader: false,
    midClick: true,
    removalDelay: 300,
    blackbg: true,
    mainClass: 'my-mfp-slide-bottom'
  });
  /*==============================================================*/
  //Modal popup - zoom animation - END CODE

  /*==============================================================*/
});

/***/ }),

/***/ 0:
/*!**************************************************************************************************************!*\
  !*** multi ./public/js/popup-gallery.js ./public/js/loading.js ./public/js/main.js ./public/js/functions.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! /var/www/html/4 Clinical Info BD/new/public/js/popup-gallery.js */"./public/js/popup-gallery.js");
__webpack_require__(/*! /var/www/html/4 Clinical Info BD/new/public/js/loading.js */"./public/js/loading.js");
__webpack_require__(/*! /var/www/html/4 Clinical Info BD/new/public/js/main.js */"./public/js/main.js");
module.exports = __webpack_require__(/*! /var/www/html/4 Clinical Info BD/new/public/js/functions.js */"./public/js/functions.js");


/***/ })

/******/ });