| Current Path : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/assets/js/ |
| Current File : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/assets/js/app.js |
/******/ (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/assets/sass/app.scss":
/*!*************************************!*\
!*** ./public/assets/sass/app.scss ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ "./resources/js/app.js":
/*!*****************************!*\
!*** ./resources/js/app.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/*------------------------------------------------------------------
Project: Gogi - Bootstrap Admin Dashboard Template
Version: 1.0
Author: laborasyon
Author URL: https://themeforest.net/user/laborasyon/portfolio
---------------------------------------------------------------------*/
(function ($) {
var wind_ = $(window),
body_ = $('body'),
settings = {
show_active_tab: true,
navigation_level_icon: 'ti-plus' // ti-angle-up
};
feather.replace({
'stroke-width': 1
});
flexTable(); // Active pages, automatically show on the menu
$('.navigation .navigation-menu-body ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
$('[data-background-image]').each(function (e) {
$(this).css("background", 'url(' + $(this).data('background-image') + ')');
});
var table_responsive_stack = $(".table-responsive-stack");
table_responsive_stack.find("th").each(function (i) {
$(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
$(".table-responsive-stack-thead").hide();
});
table_responsive_stack.each(function () {
var thCount = $(this).find("th").length,
rowGrow = 100 / thCount + "%";
$(this).find("th, td").css("flex-basis", rowGrow);
}); //------------------- Methods -------------------
$.createOverlay = function () {
if ($('.overlay').length < 1) {
body_.addClass('no-scroll').append('<div class="overlay"></div>');
$('.overlay').addClass('show');
}
};
$.removeOverlay = function () {
body_.removeClass('no-scroll');
$('.overlay').remove();
};
function flexTable() {
if (wind_.width() < 768) {
$(".table-responsive-stack").each(function (i) {
$(this).find(".table-responsive-stack-thead").show();
$(this).find("thead").hide();
}); // window is less than 768px
} else {
$(".table-responsive-stack").each(function (i) {
$(this).find(".table-responsive-stack-thead").hide();
$(this).find("thead").show();
});
}
}
if ($('.chat-block').length > 0 || $('.app-block').length > 0) {
body_.addClass('web-app');
} //------------------- Events -------------------
window.onresize = function () {
flexTable();
};
$(document).on('click', '[data-toggle="fullscreen"]', function () {
$(this).toggleClass('active-fullscreen');
if (document.fullscreenEnabled) {
if ($(this).hasClass("active-fullscreen")) {
document.documentElement.requestFullscreen();
} else {
document.exitFullscreen();
}
} else {
alert("Your browser does not support fullscreen.");
}
return false;
});
$(document).on('click', '.overlay', function () {
$.removeOverlay();
$('.navigation').removeClass('open');
$('.app-block .app-sidebar.show').removeClass('show');
});
$(document).on('click', '.navigation ul li a.disabled', function () {
return false;
});
$(document).on('click', '[data-sidebar-target]', function () {
var target = $(this).data('sidebar-target');
$('body').addClass('no-scroll');
$('.sidebar-group').addClass('show');
$('.sidebar-group .sidebar').removeClass('show');
$('.sidebar-group .sidebar' + target).addClass('show');
if ($('.sidebar-group').hasClass('show')) {
$('.sidebar-group .sidebar' + target).niceScroll({
overflowx: false
});
} else {
$('.sidebar-group .sidebar' + target).getNiceScroll().remove();
}
return false;
});
$(document).on('click', '.sidebar-group', function (e) {
if ($(e.target).is($('.sidebar-group'))) {
$('.sidebar-group').removeClass('show');
$('body').removeClass('no-scroll');
$('.sidebar-group .sidebar').removeClass('show');
$('.sidebar-group .sidebar').getNiceScroll().remove();
}
});
wind_.on('load', function () {
$('.preloader').fadeOut(300, function () {
toastr.options = {
timeOut: 2000,
progressBar: true,
showMethod: "slideDown",
hideMethod: "slideUp",
showDuration: 200,
hideDuration: 200
};
toastr.success('Welcome!');
});
});
wind_.on('load', function () {
setTimeout(function () {
$('.navigation .navigation-menu-body ul li a').each(function () {
var $this = $(this);
if ($this.next('ul').length) {
$this.append('<i class="sub-menu-arrow ' + settings.navigation_level_icon + '"></i>');
}
});
$('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
$('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
var $this = $(this);
if ($this.next('ul').length) {
$this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
}
});
}, 200);
if (settings.show_active_tab) {
setTimeout(function () {
$('.navigation .navigation-menu-body').animate({
scrollTop: $('.navigation .navigation-menu-body ul li a.active').position().top - $('.header').height()
});
}, 200);
}
});
$(document).on('click', '.navigation-toggler a', function () {
$.createOverlay();
$('.navigation').toggleClass('open');
return false;
});
$(document).on('click', '.navigation .navigation-header a', function () {
$.removeOverlay();
$('.navigation').removeClass('open');
return false;
});
$(document).on('click', '.btn-sidebar-close', function () {
$.removeOverlay();
$('.sidebar-group').removeClass('show');
$('.sidebar-group .sidebar').removeClass('show');
return false;
});
$(document).on('click', '.header-toggler a', function () {
$('.header .header-body').toggleClass('open');
return false;
});
$(document).on('click', '*', function (e) {
if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
body_.removeClass('navigation-show');
}
});
$(document).on('click', '*', function (e) {
if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
$('.header .header-body').removeClass('open');
}
});
/*------------- responsive html table -------------*/
/*------------- Header search -------------*/
$(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
$('.header .header-body .header-search').show().find('.form-control').focus();
return false;
});
$(document).on('click', '.close-header-search, .close-header-search svg', function () {
$('.header .header-body .header-search').hide();
return false;
});
$(document).on('click', '*', function (e) {
if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
$('.header .header-body .header-search').hide();
}
});
/*------------- Custom accordion -------------*/
$(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
var $this = $(this);
$this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
$this.parent('.accordion-row').toggleClass('open');
return false;
});
/*------------- responsive table dropdown -------------*/
var dropdownMenu,
table_responsive = $('.table-responsive');
table_responsive.on('show.bs.dropdown', function (e) {
dropdownMenu = $(e.target).find('.dropdown-menu');
body_.append(dropdownMenu.detach());
var eOffset = $(e.target).offset();
dropdownMenu.css({
'display': 'block',
'top': eOffset.top + $(e.target).outerHeight(),
'left': eOffset.left,
'width': '184px',
'font-size': '14px'
});
dropdownMenu.addClass("mobPosDropdown");
});
table_responsive.on('hide.bs.dropdown', function (e) {
$(e.target).append(dropdownMenu.detach());
dropdownMenu.hide();
});
/*------------- responsive table dropdown -------------*/
/*------------- Mobile chat sidebar -------------*/
$(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
$('.chat-block .chat-content').addClass('chat-mobile-open');
return false;
});
/*------------- Mobile chat sidebar close btn -------------*/
$(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
$('.chat-block .chat-content').removeClass('chat-mobile-open');
return false;
});
/*------------- Navigation collapse -------------*/
$(document).on('click', '.navigation ul li a', function () {
var $this = $(this);
if ($this.next('ul').length) {
if (!body_.hasClass('horizontal-navigation') || wind_.width() < 1200) {
var sub_menu_arrow = $this.find('.sub-menu-arrow');
sub_menu_arrow.toggleClass('rotate-in');
$this.next('ul').toggle(250);
$this.parent('li').siblings().not($this.parent('li')).find('ul').hide(250);
$this.next('ul').find('li>ul').hide('open');
$this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
$this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
$this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
$this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
if (sub_menu_arrow.hasClass('rotate-in')) {
setTimeout(function () {
sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
}, 200);
} else {
sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
}
setTimeout(function () {
$('.navigation .navigation-menu-body').getNiceScroll().resize();
}, 300);
}
return false;
}
});
$(document).on('click', '.dropdown-menu', function (e) {
e.stopPropagation();
});
$('#exampleModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget),
recipient = button.data('whatever'),
modal = $(this);
modal.find('.modal-title').text('New message to ' + recipient);
modal.find('.modal-body input').val(recipient);
});
$('[data-toggle="tooltip"]').tooltip({
container: 'body'
});
$('[data-toggle="popover"]').popover();
$('.carousel').carousel();
$(document).on('click', '.mobile-header-search-btn', function () {
$('.header .header-body .header-body-left .header-search-form').addClass('show');
setTimeout(function () {
$('.header .header-body .header-body-left .header-search-form .form-control').focus();
}, 500);
return false;
});
$(document).on('click', '.header-search-close-btn', function () {
$('.header .header-body .header-body-left .header-search-form').removeClass('show');
return false;
});
$(document).on('click', '.header .header-body .header-body-left .header-search-form', function (e) {
if (!$(e.target).is($('form *'))) {
$('.header .header-body .header-body-left .header-search-form').removeClass('show');
}
return false;
});
if (wind_.width() >= 1200) {
$('.layout-wrapper .content-wrapper .content-body .content').niceScroll();
setTimeout(function () {
$('.card-scroll').niceScroll({
overflowx: false
});
$('.dropdown-scroll').niceScroll({
overflowx: false
});
$('.table-responsive').niceScroll();
$('.app-block .app-content .app-lists').niceScroll({
overflowx: false
});
$('.app-block .app-sidebar').niceScroll({
overflowx: false
});
$('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll({
overflowx: false
});
var chat_messages = $('.chat-block .chat-content .messages');
if (chat_messages.length) {
chat_messages.niceScroll({
overflowx: false
});
chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
}
}, 200);
}
$(document).on('mouseenter', 'body.small-navigation:not(.scrollable-layout) .navigation', function (e) {
$(this).find('.navigation-menu-body').niceScroll();
});
$(document).on('mouseleave', 'body.small-navigation:not(.scrollable-layout) .navigation', function (e) {
$(this).find('.navigation-menu-body').getNiceScroll().remove();
$(this).find('.navigation-menu-body').removeAttr('style');
});
$(document).on('mouseleave', 'body.small-navigation .navigation', function (e) {
$(this).find('.navigation-menu-body ul').removeAttr('style');
$(this).find('.navigation-menu-body ul').prev('a').find('.sub-menu-arrow').removeClass('rotate-in ti-minus').addClass('ti-plus');
});
if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 1200) {
var navigation_scroll = $('.navigation .navigation-menu-body').niceScroll();
$(navigation_scroll.rail[0]).addClass("navigation-nicescroll");
}
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$('.layout-wrapper .content-wrapper .content-body .content').getNiceScroll().resize();
});
$('a[data-toggle="pill"]').on('shown.bs.tab', function (e) {
$('.chat-block .chat-sidebar .chat-sidebar-content').getNiceScroll().resize();
}); // RTL
if (body_.hasClass('rtl')) {
$('.dropdown-menu').removeClass('dropdown-menu-right');
}
})(jQuery);
/***/ }),
/***/ 0:
/*!*****************************************************************!*\
!*** multi ./resources/js/app.js ./public/assets/sass/app.scss ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! C:\wamp64\www\themeforest\gogi\resources\js\app.js */"./resources/js/app.js");
module.exports = __webpack_require__(/*! C:\wamp64\www\themeforest\gogi\public\assets\sass\app.scss */"./public/assets/sass/app.scss");
/***/ })
/******/ });