/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. (() => { /*!************************************!*\ !*** ./resources/assets/js/app.js ***! \************************************/ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __nested_webpack_require_572__(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, __nested_webpack_require_572__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __nested_webpack_require_572__.m = modules; /******/ /******/ // expose the module cache /******/ __nested_webpack_require_572__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __nested_webpack_require_572__.d = function (exports, name, getter) { /******/ if (!__nested_webpack_require_572__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __nested_webpack_require_572__.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 /******/ __nested_webpack_require_572__.t = function (value, mode) { /******/ if (mode & 1) value = __nested_webpack_require_572__(value); /******/ if (mode & 8) return value; /******/ if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __nested_webpack_require_572__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if (mode & 2 && typeof value != 'string') for (var key in value) { __nested_webpack_require_572__.d(ns, key, function (key) { return value[key]; }.bind(null, key)); } /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __nested_webpack_require_572__.n = function (module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __nested_webpack_require_572__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __nested_webpack_require_572__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __nested_webpack_require_572__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0); /******/ })({ /***/ "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin /***/ }, /***/ "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) { "use strict"; (function ($) { var wind_ = $(window), body_ = $('body'); feather.replace({ 'stroke-width': 1.5 }); $(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(); if (body_.hasClass('horizontal-navigation')) { $('.horizontal-navigation').removeClass('open'); } else { $('.navigation').removeClass('open'); } body_.removeClass('navigation-show'); }); $(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'); 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'); } }); // Active pages, automatically show on the menu $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open'); $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open'); $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active'); $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open'); /*------------- create/remove overlay -------------*/ $.createOverlay = function () { if ($('.overlay').length < 1) { body_.addClass('no-scroll').append('
'); $('.overlay').addClass('show'); } }; $.removeOverlay = function () { body_.removeClass('no-scroll'); $('.overlay').remove(); }; /*------------- create/remove overlay -------------*/ $('[data-backround-image]').each(function (e) { $(this).css("background", 'url(' + $(this).data('backround-image') + ')'); }); /*------------- page loader -------------*/ wind_.on('load', function () { $('.preloader').fadeOut(400, function () { setTimeout(function () { toastr.options = { timeOut: 2000, progressBar: true, showMethod: "slideDown", hideMethod: "slideUp", showDuration: 200, hideDuration: 200, positionClass: "toast-top-center" }; //toastr.success('Welcome'); $('.theme-switcher').removeClass('open'); }, 500); // $('.theme-switcher').css('opacity', 1); }); }); /*------------- page loader -------------*/ /*------------- side menu (sub menü arrow) -------------*/ 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(''); } }); $('.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(''); } }); }, 200); }); /*------------- side menu (sub menü arrow) -------------*/ $(document).on('click', '[data-action="navigation-toggler"]', function () { if (body_.hasClass('horizontal-navigation')) { $('.horizontal-navigation').toggleClass('open'); } else { $('.navigation').toggleClass('open'); } $.createOverlay(); }); $(document).on('click', '[data-nav-target]', function () { var $this = $(this), target = $this.data('nav-target'); if (body_.hasClass('navigation-toggle-one')) { body_.addClass('navigation-show'); } if (body_.hasClass('horizontal-navigation')) { $('.navigation .navigation-menu-body').show(); } $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open'); $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open'); $('[data-nav-target]').removeClass('active'); $this.addClass('active'); $this.tooltip('hide'); return false; }); var c = $('.header .header-left .header-logo').clone(); $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo')); $(document).on('click', '.navigation-toggler a', function () { if (wind_.width() < 1200) { $.createOverlay(); body_.addClass('navigation-show'); } else { if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) { body_.addClass('navigation-toggle-one'); } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) { body_.addClass('navigation-toggle-two'); body_.removeClass('navigation-toggle-one'); } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) { body_.removeClass('navigation-toggle-two'); body_.removeClass('navigation-toggle-one'); } } return false; }); $(document).on('click', '.header-toggler a', function () { $('.header ul.navbar-nav').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 ul.navbar-nav').removeClass('open'); } }); /*------------- form validation -------------*/ window.addEventListener('load', function () { // Fetch all the forms we want to apply custom Bootstrap validation styles to var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission Array.prototype.filter.call(forms, function (form) { form.addEventListener('submit', function (event) { if (form.checkValidity() === false) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); }, false); /*------------- form validation -------------*/ /*------------- responsive html table -------------*/ var table_responsive_stack = $(".table-responsive-stack"); table_responsive_stack.find("th").each(function (i) { $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('' + $(this).text() + ": "); $(".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); }); 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(); }); } } flexTable(); window.onresize = function (event) { flexTable(); }; /*------------- 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(); } }); /*------------- header search -------------*/ /*------------- 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; }); /*------------- custom accordion -------------*/ /*------------- 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 -------------*/ /*------------- chat -------------*/ $(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; }); $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () { $('.chat-block .chat-content').removeClass('chat-mobile-open'); return false; }); /*------------- chat -------------*/ /*------------- aside menu toggle -------------*/ $(document).on('click', '.navigation ul li a', function () { var $this = $(this); if ($this.next('ul').length) { var sub_menu_arrow = $this.find('.sub-menu-arrow'); sub_menu_arrow.toggleClass('rotate-in'); $this.next('ul').toggle(200); $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200); $this.next('ul').find('li ul').slideUp(200); $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'); } if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) { setTimeout(function (e) { $('.navigation .navigation-menu-body').getNiceScroll().resize(); }, 300); } return false; } }); $(document).on('click', '.horizontal-navigation ul li a', function () { var $this = $(this); if ($this.next('ul').length) { $this.next('ul').toggle(200); $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200); $this.next('ul').find('li ul').slideUp(200); return false; } }); /*------------- aside menu toggle -------------*/ /*------------- other -------------*/ $(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(); if (wind_.width() >= 992) { $('.card-scroll').niceScroll(); $('.table-responsive').niceScroll(); $('.sidebar-group .sidebar').niceScroll(); $('.app-block .app-content .app-lists').niceScroll(); $('.app-block .app-sidebar .app-sidebar-menu').niceScroll(); $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll(); var chat_messages = $('.chat-block .chat-content .messages'); if (chat_messages.length) { chat_messages.niceScroll({ horizrailenabled: false }); chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1); } } if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) { $('.navigation .navigation-menu-body').niceScroll(); } $('.dropdown-menu ul.list-group').niceScroll(); /* Theme Switcher */ /* var path = window.location.pathname; var page = path.split("/").pop(); var theme_switcher_html = '
\n\
\n\ \n\
\n\
\n\
\n\
\n\
Theme Switcher
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\
\n\
'; $('body').append(theme_switcher_html); $(document).on('click', '.theme-switcher input[type="checkbox"]', function () { var id = $(this).attr('id'); if (id === 'sticky-navigation') { if ($(this).prop('checked')) { $('.navigation').niceScroll().resize(); } else { $('.navigation').niceScroll().remove(); } if ($('body').hasClass('small-navigation')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); $('body').removeClass('small-navigation'); $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false); } if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE $('body').removeClass('hidden-navigation'); $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false); } } if (id === 'small-navigation') { if ($(this).prop('checked')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('> a').next('ul').prepend('') } else { // Add tooltip $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text()); $(this).find('> a').tooltip({ placement: "right" }); } }); } else { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); } if ($('body').hasClass('sticky-navigation')) { $('body').removeClass('sticky-navigation'); $('.navigation').niceScroll().remove(); $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false); } if ($('body').hasClass('hidden-navigation')) { $('body').removeClass('hidden-navigation'); $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false); } } if (id === 'hidden-navigation') { setTimeout(function () { $('.navigation').niceScroll().resize(); $('.app-block .app-content .app-lists').niceScroll().resize(); $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize(); $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize(); }, 200); if (!$(this).prop('checked')) { $.removeOverlay(); $('.navigation').removeClass('open'); } if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') { if ($('body').hasClass('sticky-navigation')) { $('body').removeClass('sticky-navigation'); $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false); } } if ($('body').hasClass('small-navigation')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); $('body').removeClass('small-navigation'); $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false); } } if (id === 'dark') { if ($('body').hasClass('semi-dark')) { $('body').removeClass('semi-dark'); $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false); } } if (id === 'semi-dark') { if ($('body').hasClass('dark')) { $('body').removeClass('dark'); $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false); } } $('body').toggleClass(id); }); $(document).on('click', '.theme-switcher .theme-switcher-button', function () { $('.theme-switcher').toggleClass('open'); }); */ })(jQuery); /***/ }, /***/ 0: function _(module, exports, __nested_webpack_require_30733__) { __nested_webpack_require_30733__( /**/ "./resources/js/app.js"); module.exports = __nested_webpack_require_30733__( /**/ "./public/assets/sass/app.scss"); /***/ } /******/ }); })(); // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. (() => { /*!****************************************!*\ !*** ./resources/assets/js/app.min.js ***! \****************************************/ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __nested_webpack_require_572__(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, __nested_webpack_require_572__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __nested_webpack_require_572__.m = modules; /******/ /******/ // expose the module cache /******/ __nested_webpack_require_572__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __nested_webpack_require_572__.d = function (exports, name, getter) { /******/ if (!__nested_webpack_require_572__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __nested_webpack_require_572__.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 /******/ __nested_webpack_require_572__.t = function (value, mode) { /******/ if (mode & 1) value = __nested_webpack_require_572__(value); /******/ if (mode & 8) return value; /******/ if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __nested_webpack_require_572__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if (mode & 2 && typeof value != 'string') for (var key in value) { __nested_webpack_require_572__.d(ns, key, function (key) { return value[key]; }.bind(null, key)); } /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __nested_webpack_require_572__.n = function (module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __nested_webpack_require_572__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __nested_webpack_require_572__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __nested_webpack_require_572__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0); /******/ })({ /***/ "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin /***/ }, /***/ "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) { "use strict"; (function ($) { var wind_ = $(window), body_ = $('body'); feather.replace({ 'stroke-width': 1.5 }); $(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(); if (body_.hasClass('horizontal-navigation')) { $('.horizontal-navigation').removeClass('open'); } else { $('.navigation').removeClass('open'); } body_.removeClass('navigation-show'); }); $(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'); 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'); } }); // Active pages, automatically show on the menu $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open'); $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open'); $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active'); $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open'); /*------------- create/remove overlay -------------*/ $.createOverlay = function () { if ($('.overlay').length < 1) { body_.addClass('no-scroll').append('
'); $('.overlay').addClass('show'); } }; $.removeOverlay = function () { body_.removeClass('no-scroll'); $('.overlay').remove(); }; /*------------- create/remove overlay -------------*/ $('[data-backround-image]').each(function (e) { $(this).css("background", 'url(' + $(this).data('backround-image') + ')'); }); /*------------- page loader -------------*/ wind_.on('load', function () { $('.preloader').fadeOut(400, function () { setTimeout(function () { toastr.options = { timeOut: 2000, progressBar: true, showMethod: "slideDown", hideMethod: "slideUp", showDuration: 200, hideDuration: 200, positionClass: "toast-top-center" }; $('.theme-switcher').removeClass('open'); }, 500); // $('.theme-switcher').css('opacity', 1); }); }); /*------------- page loader -------------*/ /*------------- side menu (sub menü arrow) -------------*/ 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(''); } }); $('.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(''); } }); }, 200); }); /*------------- side menu (sub menü arrow) -------------*/ $(document).on('click', '[data-action="navigation-toggler"]', function () { if (body_.hasClass('horizontal-navigation')) { $('.horizontal-navigation').toggleClass('open'); } else { $('.navigation').toggleClass('open'); } $.createOverlay(); }); $(document).on('click', '[data-nav-target]', function () { var $this = $(this), target = $this.data('nav-target'); if (body_.hasClass('navigation-toggle-one')) { body_.addClass('navigation-show'); } if (body_.hasClass('horizontal-navigation')) { $('.navigation .navigation-menu-body').show(); } $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open'); $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open'); $('[data-nav-target]').removeClass('active'); $this.addClass('active'); $this.tooltip('hide'); return false; }); var c = $('.header .header-left .header-logo').clone(); $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo')); $(document).on('click', '.navigation-toggler a', function () { if (wind_.width() < 1200) { $.createOverlay(); body_.addClass('navigation-show'); } else { if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) { body_.addClass('navigation-toggle-one'); } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) { body_.addClass('navigation-toggle-two'); body_.removeClass('navigation-toggle-one'); } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) { body_.removeClass('navigation-toggle-two'); body_.removeClass('navigation-toggle-one'); } } return false; }); $(document).on('click', '.header-toggler a', function () { $('.header ul.navbar-nav').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 ul.navbar-nav').removeClass('open'); } }); /*------------- form validation -------------*/ window.addEventListener('load', function () { // Fetch all the forms we want to apply custom Bootstrap validation styles to var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission Array.prototype.filter.call(forms, function (form) { form.addEventListener('submit', function (event) { if (form.checkValidity() === false) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); }, false); /*------------- form validation -------------*/ /*------------- responsive html table -------------*/ var table_responsive_stack = $(".table-responsive-stack"); table_responsive_stack.find("th").each(function (i) { $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('' + $(this).text() + ": "); $(".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); }); 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(); }); } } flexTable(); window.onresize = function (event) { flexTable(); }; /*------------- 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(); } }); /*------------- header search -------------*/ /*------------- 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; }); /*------------- custom accordion -------------*/ /*------------- 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 -------------*/ /*------------- chat -------------*/ $(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; }); $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () { $('.chat-block .chat-content').removeClass('chat-mobile-open'); return false; }); /*------------- chat -------------*/ /*------------- aside menu toggle -------------*/ $(document).on('click', '.navigation ul li a', function () { var $this = $(this); if ($this.next('ul').length) { var sub_menu_arrow = $this.find('.sub-menu-arrow'); sub_menu_arrow.toggleClass('rotate-in'); $this.next('ul').toggle(200); $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200); $this.next('ul').find('li ul').slideUp(200); $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'); } if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) { setTimeout(function (e) { $('.navigation .navigation-menu-body').getNiceScroll().resize(); }, 300); } return false; } }); $(document).on('click', '.horizontal-navigation ul li a', function () { var $this = $(this); if ($this.next('ul').length) { $this.next('ul').toggle(200); $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200); $this.next('ul').find('li ul').slideUp(200); return false; } }); /*------------- aside menu toggle -------------*/ /*------------- other -------------*/ $(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(); if (wind_.width() >= 992) { $('.card-scroll').niceScroll(); $('.table-responsive').niceScroll(); $('.sidebar-group .sidebar').niceScroll(); $('.app-block .app-content .app-lists').niceScroll(); $('.app-block .app-sidebar .app-sidebar-menu').niceScroll(); $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll(); var chat_messages = $('.chat-block .chat-content .messages'); if (chat_messages.length) { chat_messages.niceScroll({ horizrailenabled: false }); chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1); } } if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) { $('.navigation .navigation-menu-body').niceScroll(); } $('.dropdown-menu ul.list-group').niceScroll(); /* Theme Switcher */ /* var path = window.location.pathname; var page = path.split("/").pop(); var theme_switcher_html = '
\n\
\n\ \n\
\n\
\n\
\n\
\n\
Theme Switcher
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\ \n\ \n\
\n\
\n\
\n\
\n\
\n\
'; $('body').append(theme_switcher_html); $(document).on('click', '.theme-switcher input[type="checkbox"]', function () { var id = $(this).attr('id'); if (id === 'sticky-navigation') { if ($(this).prop('checked')) { $('.navigation').niceScroll().resize(); } else { $('.navigation').niceScroll().remove(); } if ($('body').hasClass('small-navigation')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); $('body').removeClass('small-navigation'); $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false); } if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE $('body').removeClass('hidden-navigation'); $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false); } } if (id === 'small-navigation') { if ($(this).prop('checked')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('> a').next('ul').prepend('') } else { // Add tooltip $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text()); $(this).find('> a').tooltip({ placement: "right" }); } }); } else { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); } if ($('body').hasClass('sticky-navigation')) { $('body').removeClass('sticky-navigation'); $('.navigation').niceScroll().remove(); $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false); } if ($('body').hasClass('hidden-navigation')) { $('body').removeClass('hidden-navigation'); $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false); } } if (id === 'hidden-navigation') { setTimeout(function () { $('.navigation').niceScroll().resize(); $('.app-block .app-content .app-lists').niceScroll().resize(); $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize(); $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize(); }, 200); if (!$(this).prop('checked')) { $.removeOverlay(); $('.navigation').removeClass('open'); } if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') { if ($('body').hasClass('sticky-navigation')) { $('body').removeClass('sticky-navigation'); $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false); } } if ($('body').hasClass('small-navigation')) { $('.navigation .navigation-menu-body > ul > li').each(function () { if ($(this).find('> a').next('ul').length) { // Dropdown add header title $(this).find('.dropdown-divider').remove(); } else { // Add tooltip $(this).find('> a').tooltip('dispose'); } }); $('body').removeClass('small-navigation'); $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false); } } if (id === 'dark') { if ($('body').hasClass('semi-dark')) { $('body').removeClass('semi-dark'); $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false); } } if (id === 'semi-dark') { if ($('body').hasClass('dark')) { $('body').removeClass('dark'); $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false); } } $('body').toggleClass(id); }); $(document).on('click', '.theme-switcher .theme-switcher-button', function () { $('.theme-switcher').toggleClass('open'); }); */ })(jQuery); /***/ }, /***/ 0: function _(module, exports, __nested_webpack_require_30526__) { __nested_webpack_require_30526__( /**/ "./resources/js/app.js"); module.exports = __nested_webpack_require_30526__( /**/ "./public/assets/sass/app.scss"); /***/ } /******/ }); })(); // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; /*!***************************************!*\ !*** ./resources/assets/js/custom.js ***! \***************************************/ (function ($) { $(document).on('click', '.layout-builder .layout-builder-toggle', function () { $('.layout-builder').toggleClass('show'); }); $(window).on('load', function () { setTimeout(function () { $('.layout-builder').removeClass('show'); }, 500); }); $('.body').append("\n
\n
\n \n
\n
\n \n
\n
\n
Customizer
\n
\n

Layout

\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n
\n Some theme options can not be displayed in case of combined when they are not relevant each other. For that reason, you are adviced to try all theme options seperately.\n
\n
\n
"); var site_layout = localStorage.getItem('site_layout'); $('body').addClass(site_layout); $('.layout-builder .layout-builder-body input[type="radio"][data-layout="' + $('body').attr('class') + '"]').prop('checked', true); $('.layout-builder .layout-builder-body input[type="radio"]').click(function () { var class_names = ''; $('.layout-builder .layout-builder-body input[type="radio"]:checked').each(function () { class_names += ' ' + $(this).data('layout'); }); localStorage.setItem('site_layout', class_names); window.location.href = window.location.href.replace('#', ''); }); $(document).on('click', '#btn-layout-builder', function () {}); $(document).on('click', '#btn-layout-builder-reset', function () { localStorage.removeItem('site_layout'); localStorage.removeItem('site_layout_dark'); window.location.href = window.location.href.replace('#', ''); }); $(window).on('load', function () { if ($('body').hasClass('horizontal-side-menu') && $(window).width() > 768) { if ($('body').hasClass('layout-container')) { $('.side-menu .side-menu-body').wrap('
'); } else { $('.side-menu .side-menu-body').wrap('
'); } setTimeout(function () { $('.side-menu .side-menu-body > ul').append('
  • Other
  • '); }, 100); $('.side-menu .side-menu-body > ul > li').each(function () { var index = $(this).index(), $this = $(this); if (index > 7) { setTimeout(function () { $('.side-menu .side-menu-body > ul > li:last-child > ul').append($this.clone()); $this.addClass('d-none'); }, 100); } }); } }); $(document).on('click', '[data-attr="layout-builder-toggle"]', function () { $('.layout-builder').toggleClass('show'); return false; }); })(jQuery); })(); // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; /*!******************************************!*\ !*** ./resources/assets/js/Toast.min.js ***! \******************************************/ function Toast(t) { if (!t.message) throw new Error("Toast.js - You need to set a message to display"); this.options = t, this.options.type = t.type || "default", this.toastContainerEl = document.querySelector(".toastjs-container"), this.toastEl = document.querySelector(".toastjs"), this._init(); } Toast.prototype._createElements = function () { var t = this; return new Promise(function (e, o) { t.toastContainerEl = document.createElement("div"), t.toastContainerEl.classList.add("toastjs-container"), t.toastContainerEl.setAttribute("role", "alert"), t.toastContainerEl.setAttribute("aria-hidden", !0), t.toastEl = document.createElement("div"), t.toastEl.classList.add("toastjs"), t.toastContainerEl.appendChild(t.toastEl), document.body.appendChild(t.toastContainerEl), setTimeout(function () { return e(); }, 500); }); }, Toast.prototype._addEventListeners = function () { var t = this; if (document.querySelector(".toastjs-btn--close").addEventListener("click", function () { t._close(); }), this.options.customButtons) { var e = Array.prototype.slice.call(document.querySelectorAll(".toastjs-btn--custom")); e.map(function (e, o) { e.addEventListener("click", function (e) { return t.options.customButtons[o].onClick(e); }); }); } }, Toast.prototype._close = function () { var t = this; return new Promise(function (e, o) { t.toastContainerEl.setAttribute("aria-hidden", !0), setTimeout(function () { t.toastEl.innerHTML = "", t.toastEl.classList.remove("default", "success", "warning", "danger"), t.focusedElBeforeOpen && t.focusedElBeforeOpen.focus(), e(); }, 1e3); }); }, Toast.prototype._open = function () { this.toastEl.classList.add(this.options.type), this.toastContainerEl.setAttribute("aria-hidden", !1); var t = ""; this.options.customButtons && (t = this.options.customButtons.map(function (t, e) { return '"; }), t = t.join("")), this.toastEl.innerHTML = "\n

    " + this.options.message + '

    \n \n ' + t + "\n ", this.focusedElBeforeOpen = document.activeElement, document.querySelector(".toastjs-btn--close").focus(); }, Toast.prototype._init = function () { var t = this; Promise.resolve().then(function () { return t.toastContainerEl ? Promise.resolve() : t._createElements(); }).then(function () { return "false" == t.toastContainerEl.getAttribute("aria-hidden") ? t._close() : Promise.resolve(); }).then(function () { t._open(), t._addEventListeners(); }); }; })(); /******/ })() ;