'use strict'; /******/ (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 = 4); /******/ }) /************************************************************************/ /******/ ({ /***/ 4: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(5); /***/ }), /***/ 5: /***/ (function(module, exports) { var $ = window.jQuery; var tween = window.TweenMax; // Testimonial Author Photo fixed. $('.ghostkit-testimonial .ghostkit-testimonial-photo').parent().find('.ghostkit-testimonial-content').addClass('ghostkit-testimonial-content-with-photo'); // Masonry blog grid. $('.nk-blog-grid-masonry > .row').each(function () { var masonryItem = new window.Masonry(this); $(this).imagesLoaded().progress(function () { masonryItem.layout(); }); }); // WooCommerce add labels on cart list items function addaCartTableLabels() { $('.woocommerce table.shop_table tr.woocommerce-cart-form__cart-item td').each(function () { var dataTitle = $(this).attr('data-title'); if (0 === $(this).find('h5').length) { if ('undefined' !== typeof dataTitle) { $(this).prepend("
".concat(dataTitle, ":
")); } if ($(this).hasClass('product-name')) { $(this).find('a').wrap('

'); } } }); } // WooCommerce cart. $(document.body).on('wc_fragments_loaded wc_fragments_refreshed', function () { var $badge = $('.squadforce-woocommerce-cart-count'); var $smallCartCount = $('.widget_shopping_cart_content:eq(0) [data-squadforce-cart-count]'); var $smallCart = $('.nk-cart-dropdown'); var count = parseInt($smallCartCount.attr('data-squadforce-cart-count'), 10); addaCartTableLabels(); // add badge count. if ('number' === typeof count) { $badge.text(count); $badge[count ? 'removeClass' : 'addClass']('d-none'); } // change position of items in Mini cart. $smallCart.find('.mini_cart_item').each(function () { var $this = $(this); var $remove = $this.find('.remove_from_cart_button'); var $thumb = $this.find('img'); var $quantity = $this.find('.quantity'); var $title = $thumb.parent().addClass('nk-shop-cart-item-title'); var $thumbWrap = $('
').appendTo($this); var $contWrap = $('
').appendTo($this); $this.addClass('nk-widget-post'); $remove.addClass('nk-cart-remove-item'); $remove.html(''); $thumbWrap.append($thumb); $thumb.wrap("")); $contWrap.append($title); $title.wrap('

'); $title.parent().prepend($remove); $contWrap.append($quantity); $quantity.wrap('
'); }); }); // WooCommerce single product gallery. Must be replaced with the designer of the Woo gallery var $woocommerceProductGalleryWrapper = $('.woocommerce-product-gallery__wrapper'); $woocommerceProductGalleryWrapper.find('div.woocommerce-product-gallery__image').addClass('nk-gallery-item-box'); $woocommerceProductGalleryWrapper.find('a').addClass('nk-gallery-item'); $woocommerceProductGalleryWrapper.find('a').prepend(''); $(document.body).on('wc-product-gallery-after-init', function () { var $$thumbnailsWrapper = $('.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li'); $$thumbnailsWrapper.addClass('col-6 col-md-4'); $$thumbnailsWrapper.find('img').wrap('