/******/ (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 = "./src/js/main.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./src/js/front/ajax.js": /*!******************************!*\ !*** ./src/js/front/ajax.js ***! \******************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File ajax.js. * * Contains all the ajax calls */ (function ($) { "use strict"; var max_pages = $(".deflecto-blog").attr("data-max-posts"); $(document).on("click", ".deflecto-prev", function (e) { e.preventDefault(); var pageNo = parseInt($(this).attr("data-page")); if (pageNo > 1) { ajax_call(pageNo, "preve"); } return false; }); $(document).on("click", ".deflecto-next", function (e) { e.preventDefault(); var pageNo = parseInt($(this).attr("data-page")); if (pageNo <= max_pages) { ajax_call(pageNo, "next"); } return false; }); // Ajax Function function ajax_call(pageNo, action) { var data = { action: "blog_lisitng_ajax", nonce: siteConfig.ajax_nonce }; if (action === "preve") { data.pageNo = pageNo - 1; } else { data.pageNo = pageNo; } var year = $("#deflecto-blog").attr("data-year"); var month = $("#deflecto-blog").attr("data-month"); if (year !== "" || month !== "") { data.postYear = year; data.postMonth = month; } var parentItem = document.getElementById("deflecto-blog__container--inner"); $.ajax({ data: data, url: siteConfig.ajaxUrl, beforeSend: function beforeSend() { $(".loader-svg__container").css("display", "flex"); parentItem.innerText = ""; }, success: function success(response) { if (action === "preve") { if (pageNo > 1) { $(".deflecto-prev").addClass("active"); $(".deflecto-next").addClass("active"); } if (pageNo - 1 == 1) { $(".deflecto-prev").removeClass("active"); } $(".deflecto-prev").attr("data-page", pageNo - 1); $(".deflecto-next").attr("data-page", pageNo); } else { if (pageNo <= max_pages) { $(".deflecto-next").addClass("active"); $(".deflecto-prev").addClass("active"); } if (pageNo + 1 >= max_pages) { $(".deflecto-next").removeClass("active"); } $(".deflecto-prev").attr("data-page", pageNo); $(".deflecto-next").attr("data-page", pageNo + 1); } $(".loader-svg__container").css("display", "none"); var postData = jQuery.parseJSON(response); $.each(postData.deflectoPosts, function (key, item) { var postWrapper = document.createElement("div"); postWrapper.setAttribute("class", "deflecto-blog__item"); var listWrapper = document.createElement("ul"); var firstlistItem = document.createElement("li"); firstlistItem.innerText = item.date; var secondlistItem = document.createElement("li"); secondlistItem.innerText = item.author; var thirdlistItem = document.createElement("li"); var thirdlistItemLink = document.createElement("a"); thirdlistItem.appendChild(thirdlistItemLink); thirdlistItemLink.setAttribute("href", item.url + "#comments"); thirdlistItemLink.innerText = "Comments(" + item.comment_number + ")"; listWrapper.appendChild(firstlistItem); listWrapper.appendChild(secondlistItem); listWrapper.appendChild(thirdlistItem); postWrapper.appendChild(listWrapper); var heading = document.createElement("h2"); var headingLink = document.createElement("a"); headingLink.setAttribute("href", item.url); headingLink.innerText = item.title; heading.appendChild(headingLink); postWrapper.appendChild(heading); var excerpt = document.createElement("p"); excerpt.innerText = item.description + " "; var readMore = document.createElement("a"); readMore.setAttribute("href", item.url); readMore.setAttribute("class", "deflecto-blog__readmorelink"); readMore.innerText = "more"; excerpt.appendChild(readMore); postWrapper.appendChild(excerpt); parentItem.appendChild(postWrapper); }); } }); } })(jQuery); /***/ }), /***/ "./src/js/front/all.js": /*!*****************************!*\ !*** ./src/js/front/all.js ***! \*****************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./header */ "./src/js/front/header.js"); /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_header__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./footer */ "./src/js/front/footer.js"); /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_footer__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _hero_banner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hero-banner */ "./src/js/front/hero-banner.js"); /* harmony import */ var _hero_banner__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_hero_banner__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _product_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./product-list */ "./src/js/front/product-list.js"); /* harmony import */ var _product_list__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_product_list__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _search_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./search-page */ "./src/js/front/search-page.js"); /* harmony import */ var _search_page__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_search_page__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _filter_tool__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./filter-tool */ "./src/js/front/filter-tool.js"); /* harmony import */ var _filter_tool__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_filter_tool__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _product_single__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./product-single */ "./src/js/front/product-single.js"); /* harmony import */ var _product_single__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_product_single__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _faq_block__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./faq-block */ "./src/js/front/faq-block.js"); /* harmony import */ var _faq_block__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_faq_block__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _ajax__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ajax */ "./src/js/front/ajax.js"); /* harmony import */ var _ajax__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_ajax__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _blog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./blog */ "./src/js/front/blog.js"); /* harmony import */ var _blog__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_blog__WEBPACK_IMPORTED_MODULE_9__); /***/ }), /***/ "./src/js/front/blog.js": /*!******************************!*\ !*** ./src/js/front/blog.js ***! \******************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File blog.js. * */ (function ($) { "use strict"; $(document).ready(function () { $(document).on('click', '#open-hamburger', function (e) { $(".deflecto-blog__hamburger").toggleClass("toggled"); $(".dim-background-blog").toggleClass("toggled"); $("html").css("overflow", ""); }); $(document).on('click', '.close-hamburger-blog', function (e) { $(".deflecto-blog__hamburger").toggleClass("toggled"); $(".dim-background-blog").toggleClass("toggled"); $("html").css("overflow", ""); }); $(document).on('click', '.dim-background-blog', function (e) { $(".deflecto-blog__hamburger").toggleClass("toggled"); $(".dim-background-blog").toggleClass("toggled"); $("html").css("overflow", ""); }); }); })(jQuery); /***/ }), /***/ "./src/js/front/faq-block.js": /*!***********************************!*\ !*** ./src/js/front/faq-block.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File faq-block.js * * Click listeners for FAQ block. * */ (function ($) { "use strict"; $(document).ready(function () { $(document).on('click', '.deflecto-accordion-main__header', function (e) { $(this).toggleClass("active"); $(this).parents('.deflecto-accordion-main').find('.deflecto-accordion-sub').toggleClass("active"); $(this).parents('.deflecto-accordion-main').find('.deflecto-accordion__expander.plus').toggleClass("active"); $('html, body').animate({ scrollTop: $(this).offset().top - 120 }, 500); }); $(document).on('click', '.deflecto-accordion-sub__header', function (e) { $(this).parent().siblings('.column-item').removeClass("active"); $(this).parent().siblings('.column-item').find('.deflecto-accordion-sub__answer').removeClass("active"); $(this).parent().toggleClass("active"); }); }); })(jQuery); /***/ }), /***/ "./src/js/front/filter-tool.js": /*!*************************************!*\ !*** ./src/js/front/filter-tool.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Filtertool.js. * * Use Sample Formate for Create new JS file. */ (function ($) { "use strict"; $(document).ready(function () { $(document).on('click', '.drawerToggle', function (e) { $('body').toggleClass('is-toggled--filters'); $("html").css("overflow", "hidden"); }); $(document).on('click', '.tool-close', function (e) { $('body').removeClass('is-toggled--filters'); $("html").css("overflow", ""); }); $(document).on('click', '.tool-mask', function (e) { $('body').removeClass('is-toggled--filters'); $("html").css("overflow", ""); }); // Show-more/Less function truncateList(maxShown, linkTextShow, linkTextHide) { // set default to show if (!maxShown) maxShown = 5; // set defaults for link texts if (!linkTextShow) linkTextShow = "View More"; if (!linkTextHide) linkTextHide = "View Less"; $('ul.truncateList').each(function () { if ($(this).children('li').length > maxShown) { // hide anything after the maxShown item $(this).find("li:gt(" + (maxShown - 1) + ")").addClass("is-hidden"); // add the View more link var numMore = $(this).find("li:gt(" + (maxShown - 1) + ")").length; $(this).append("
  • ".concat(linkTextShow, " ( ").concat(numMore, " )
  • ")); //phpcs ignore. // wire up link click event $(this).find('.truncateList-toggle a').click(function (e) { e.preventDefault(); if ($(this).closest('ul').find('li.is-hidden').length > 0) { // show items $(this).closest('ul').find("li:gt(" + (maxShown - 1) + ")").not('.truncateList-toggle').removeClass('is-hidden'); $(this).text("View Less"); $(this).closest('li').addClass('is-active'); } else { // hide items var numMore = $(this).closest('ul').find("li:gt(" + (maxShown - 1) + ")").not('.truncateList-toggle').length; $(this).closest('ul').find("li:gt(" + (maxShown - 1) + ")").not('.truncateList-toggle').addClass('is-hidden'); $(this).text("".concat(linkTextShow, " ").concat(numMore)); $(this).closest('li').removeClass('is-active'); } }); } }); } truncateList(); // Remove Selected Filter $(".is-closeable").click(function () { $(this).remove(); }); }); })(jQuery); /***/ }), /***/ "./src/js/front/footer.js": /*!********************************!*\ !*** ./src/js/front/footer.js ***! \********************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Footer.js. * */ (function ($) { "use strict"; $(document).ready(function () { $(document).on('click', '.back-to-top', function (e) { $("html, body").animate({ scrollTop: "0" }); }); }); })(jQuery); /***/ }), /***/ "./src/js/front/header.js": /*!********************************!*\ !*** ./src/js/front/header.js ***! \********************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Header.js. * */ (function ($) { "use strict"; $(document).ready(function () { $(document).on("click", ".menu-toggle", function (e) { $("header .main-navigation").toggleClass("toggled"); $(".dim-background").toggleClass("toggled"); $("html").css("overflow", "hidden"); }); $(document).on("click", ".deflecto-search-mobile-toggle", function (e) { $("header .deflecto-menu-search-mobile").toggleClass("toggled"); }); $(document).on("click", ".close-hamburger, .dim-background", function (e) { $("header .main-navigation").toggleClass("toggled"); $(".dim-background").toggleClass("toggled"); $("html").css("overflow", ""); }); // responsive menu css $(".menu-item-has-children").append(''); $(document).on("click", ".navMain-mobile-subToggle", function (e) { var windowWidth = $(window).width(); if (1024 > windowWidth) { $(this).parent().siblings().removeClass("active-sub"); $(this).parent().siblings().find(".sub-menu,.children").slideUp(); $(this).siblings(".sub-menu,.children").slideToggle(); $(this).parent().toggleClass("active-sub"); } }); // Sticky Header var lastScroll = 0; $(window).scroll(function () { var scroll = $(this).scrollTop(); if (scroll < lastScroll) { $(".header-inner:not(.header-small .header-inner)").addClass("fixed-header"); } else { $(".header-inner:not(.header-small .header-inner)").removeClass("fixed-header"); } lastScroll = scroll; }); function removeactiveClassfordesktop() { var screenWidth = $(window).width(); if (1024 > screenWidth) { $(".menu-item").removeClass("active-sub"); $(".sub-menu").css("display", ""); } } removeactiveClassfordesktop(); $(window).resize(function () { removeactiveClassfordesktop(); }); }); })(jQuery); /***/ }), /***/ "./src/js/front/hero-banner.js": /*!*************************************!*\ !*** ./src/js/front/hero-banner.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Header.js. * */ (function ($) { "use strict"; $(document).ready(function () { $(".banner--fixedBackground").parallax(); }); $.fn.parallax = function () { var $elements = this; parallaxMe($elements); $(window).on("scroll resize orientationchange", function () { parallaxMe($elements); }); function parallaxMe(els) { var $els = $($elements); if (window.matchMedia("(min-device-width: 700px)").matches && window.matchMedia("(min-width: 841px)").matches) { $els.each(function () { var elementTop = $(this).offset().top; var elementHight = $(this).outerHeight(); var scrollTop = $(window).scrollTop(); var viewHeight = $(window).innerHeight(); var inViewport = scrollTop - elementTop + viewHeight; var bgpos = -((elementTop - scrollTop + elementHight) / (viewHeight + elementHight) * 150); if (inViewport > 0 && !(scrollTop > elementTop + elementHight)) { $(this).css("background-position-y", bgpos + "px"); } }); } else { $els.css("background-position-y", ""); } return $els; } return $elements; }; })(jQuery); /***/ }), /***/ "./src/js/front/product-list.js": /*!**************************************!*\ !*** ./src/js/front/product-list.js ***! \**************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Product.js. * * Home Page Product Listing */ (function ($) { "use strict"; $(document).ready(function () { featureProductListAnim(); $(window).on('scroll', function () { featureProductListAnim(); }); }); // Product list items animation function featureProductListAnim() { if ($(".featureBlock, .pdf-main, .catalog-cover").length > 0) { $(".featureBlock .u-flex-column, .pdf-main .pdf-item, .catalog-cover .catalog-item").each(function (index, item) { var top_of_element = $(this).offset().top; var bottom_of_element = $(this).offset().top + $(this).outerHeight(); var bottom_of_screen = $(window).scrollTop() + $(window).innerHeight(); var top_of_screen = $(window).scrollTop(); if (bottom_of_screen > top_of_element && top_of_screen < bottom_of_element) { $(this).addClass("active"); } }); } } })(jQuery); /***/ }), /***/ "./src/js/front/product-single.js": /*!****************************************!*\ !*** ./src/js/front/product-single.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * File Product-single.js. * */ (function ($) { "use strict"; $(document).ready(function () { $('.productGallery').slick({ dots: true, infinite: true, speed: 500, fade: true, slide: 'li', cssEase: 'linear', slidesToShow: 1, arrows: false, // customPaging: function (slick, index) { // var targetImage = slick.$slides.eq(index).find('img').attr('src'); // return ''; // }, customPaging: function customPaging(b, c) { return a('