1 | /******/ (() => { // webpackBootstrap
|
---|
2 | var __webpack_exports__ = {};
|
---|
3 | // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
|
---|
4 | (() => {
|
---|
5 | /*!************************************!*\
|
---|
6 | !*** ./resources/assets/js/app.js ***!
|
---|
7 | \************************************/
|
---|
8 | 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); }
|
---|
9 |
|
---|
10 | /******/
|
---|
11 | (function (modules) {
|
---|
12 | // webpackBootstrap
|
---|
13 |
|
---|
14 | /******/
|
---|
15 | // The module cache
|
---|
16 |
|
---|
17 | /******/
|
---|
18 | var installedModules = {};
|
---|
19 | /******/
|
---|
20 |
|
---|
21 | /******/
|
---|
22 | // The require function
|
---|
23 |
|
---|
24 | /******/
|
---|
25 |
|
---|
26 | function __nested_webpack_require_572__(moduleId) {
|
---|
27 | /******/
|
---|
28 |
|
---|
29 | /******/
|
---|
30 | // Check if module is in cache
|
---|
31 |
|
---|
32 | /******/
|
---|
33 | if (installedModules[moduleId]) {
|
---|
34 | /******/
|
---|
35 | return installedModules[moduleId].exports;
|
---|
36 | /******/
|
---|
37 | }
|
---|
38 | /******/
|
---|
39 | // Create a new module (and put it into the cache)
|
---|
40 |
|
---|
41 | /******/
|
---|
42 |
|
---|
43 |
|
---|
44 | var module = installedModules[moduleId] = {
|
---|
45 | /******/
|
---|
46 | i: moduleId,
|
---|
47 |
|
---|
48 | /******/
|
---|
49 | l: false,
|
---|
50 |
|
---|
51 | /******/
|
---|
52 | exports: {}
|
---|
53 | /******/
|
---|
54 |
|
---|
55 | };
|
---|
56 | /******/
|
---|
57 |
|
---|
58 | /******/
|
---|
59 | // Execute the module function
|
---|
60 |
|
---|
61 | /******/
|
---|
62 |
|
---|
63 | modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_572__);
|
---|
64 | /******/
|
---|
65 |
|
---|
66 | /******/
|
---|
67 | // Flag the module as loaded
|
---|
68 |
|
---|
69 | /******/
|
---|
70 |
|
---|
71 | module.l = true;
|
---|
72 | /******/
|
---|
73 |
|
---|
74 | /******/
|
---|
75 | // Return the exports of the module
|
---|
76 |
|
---|
77 | /******/
|
---|
78 |
|
---|
79 | return module.exports;
|
---|
80 | /******/
|
---|
81 | }
|
---|
82 | /******/
|
---|
83 |
|
---|
84 | /******/
|
---|
85 |
|
---|
86 | /******/
|
---|
87 | // expose the modules object (__webpack_modules__)
|
---|
88 |
|
---|
89 | /******/
|
---|
90 |
|
---|
91 |
|
---|
92 | __nested_webpack_require_572__.m = modules;
|
---|
93 | /******/
|
---|
94 |
|
---|
95 | /******/
|
---|
96 | // expose the module cache
|
---|
97 |
|
---|
98 | /******/
|
---|
99 |
|
---|
100 | __nested_webpack_require_572__.c = installedModules;
|
---|
101 | /******/
|
---|
102 |
|
---|
103 | /******/
|
---|
104 | // define getter function for harmony exports
|
---|
105 |
|
---|
106 | /******/
|
---|
107 |
|
---|
108 | __nested_webpack_require_572__.d = function (exports, name, getter) {
|
---|
109 | /******/
|
---|
110 | if (!__nested_webpack_require_572__.o(exports, name)) {
|
---|
111 | /******/
|
---|
112 | Object.defineProperty(exports, name, {
|
---|
113 | enumerable: true,
|
---|
114 | get: getter
|
---|
115 | });
|
---|
116 | /******/
|
---|
117 | }
|
---|
118 | /******/
|
---|
119 |
|
---|
120 | };
|
---|
121 | /******/
|
---|
122 |
|
---|
123 | /******/
|
---|
124 | // define __esModule on exports
|
---|
125 |
|
---|
126 | /******/
|
---|
127 |
|
---|
128 |
|
---|
129 | __nested_webpack_require_572__.r = function (exports) {
|
---|
130 | /******/
|
---|
131 | if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
---|
132 | /******/
|
---|
133 | Object.defineProperty(exports, Symbol.toStringTag, {
|
---|
134 | value: 'Module'
|
---|
135 | });
|
---|
136 | /******/
|
---|
137 | }
|
---|
138 | /******/
|
---|
139 |
|
---|
140 |
|
---|
141 | Object.defineProperty(exports, '__esModule', {
|
---|
142 | value: true
|
---|
143 | });
|
---|
144 | /******/
|
---|
145 | };
|
---|
146 | /******/
|
---|
147 |
|
---|
148 | /******/
|
---|
149 | // create a fake namespace object
|
---|
150 |
|
---|
151 | /******/
|
---|
152 | // mode & 1: value is a module id, require it
|
---|
153 |
|
---|
154 | /******/
|
---|
155 | // mode & 2: merge all properties of value into the ns
|
---|
156 |
|
---|
157 | /******/
|
---|
158 | // mode & 4: return value when already ns object
|
---|
159 |
|
---|
160 | /******/
|
---|
161 | // mode & 8|1: behave like require
|
---|
162 |
|
---|
163 | /******/
|
---|
164 |
|
---|
165 |
|
---|
166 | __nested_webpack_require_572__.t = function (value, mode) {
|
---|
167 | /******/
|
---|
168 | if (mode & 1) value = __nested_webpack_require_572__(value);
|
---|
169 | /******/
|
---|
170 |
|
---|
171 | if (mode & 8) return value;
|
---|
172 | /******/
|
---|
173 |
|
---|
174 | if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value;
|
---|
175 | /******/
|
---|
176 |
|
---|
177 | var ns = Object.create(null);
|
---|
178 | /******/
|
---|
179 |
|
---|
180 | __nested_webpack_require_572__.r(ns);
|
---|
181 | /******/
|
---|
182 |
|
---|
183 |
|
---|
184 | Object.defineProperty(ns, 'default', {
|
---|
185 | enumerable: true,
|
---|
186 | value: value
|
---|
187 | });
|
---|
188 | /******/
|
---|
189 |
|
---|
190 | if (mode & 2 && typeof value != 'string') for (var key in value) {
|
---|
191 | __nested_webpack_require_572__.d(ns, key, function (key) {
|
---|
192 | return value[key];
|
---|
193 | }.bind(null, key));
|
---|
194 | }
|
---|
195 | /******/
|
---|
196 |
|
---|
197 | return ns;
|
---|
198 | /******/
|
---|
199 | };
|
---|
200 | /******/
|
---|
201 |
|
---|
202 | /******/
|
---|
203 | // getDefaultExport function for compatibility with non-harmony modules
|
---|
204 |
|
---|
205 | /******/
|
---|
206 |
|
---|
207 |
|
---|
208 | __nested_webpack_require_572__.n = function (module) {
|
---|
209 | /******/
|
---|
210 | var getter = module && module.__esModule ?
|
---|
211 | /******/
|
---|
212 | function getDefault() {
|
---|
213 | return module['default'];
|
---|
214 | } :
|
---|
215 | /******/
|
---|
216 | function getModuleExports() {
|
---|
217 | return module;
|
---|
218 | };
|
---|
219 | /******/
|
---|
220 |
|
---|
221 | __nested_webpack_require_572__.d(getter, 'a', getter);
|
---|
222 | /******/
|
---|
223 |
|
---|
224 |
|
---|
225 | return getter;
|
---|
226 | /******/
|
---|
227 | };
|
---|
228 | /******/
|
---|
229 |
|
---|
230 | /******/
|
---|
231 | // Object.prototype.hasOwnProperty.call
|
---|
232 |
|
---|
233 | /******/
|
---|
234 |
|
---|
235 |
|
---|
236 | __nested_webpack_require_572__.o = function (object, property) {
|
---|
237 | return Object.prototype.hasOwnProperty.call(object, property);
|
---|
238 | };
|
---|
239 | /******/
|
---|
240 |
|
---|
241 | /******/
|
---|
242 | // __webpack_public_path__
|
---|
243 |
|
---|
244 | /******/
|
---|
245 |
|
---|
246 |
|
---|
247 | __nested_webpack_require_572__.p = "/";
|
---|
248 | /******/
|
---|
249 |
|
---|
250 | /******/
|
---|
251 |
|
---|
252 | /******/
|
---|
253 | // Load entry module and return exports
|
---|
254 |
|
---|
255 | /******/
|
---|
256 |
|
---|
257 | return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0);
|
---|
258 | /******/
|
---|
259 | })({
|
---|
260 | /***/
|
---|
261 | "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin
|
---|
262 |
|
---|
263 | /***/
|
---|
264 | },
|
---|
265 |
|
---|
266 | /***/
|
---|
267 | "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) {
|
---|
268 | "use strict";
|
---|
269 |
|
---|
270 | (function ($) {
|
---|
271 | var wind_ = $(window),
|
---|
272 | body_ = $('body');
|
---|
273 | feather.replace({
|
---|
274 | 'stroke-width': 1.5
|
---|
275 | });
|
---|
276 | $(document).on('click', '[data-toggle="fullscreen"]', function () {
|
---|
277 | $(this).toggleClass('active-fullscreen');
|
---|
278 |
|
---|
279 | if (document.fullscreenEnabled) {
|
---|
280 | if ($(this).hasClass("active-fullscreen")) {
|
---|
281 | document.documentElement.requestFullscreen();
|
---|
282 | } else {
|
---|
283 | document.exitFullscreen();
|
---|
284 | }
|
---|
285 | } else {
|
---|
286 | alert("Your browser does not support fullscreen.");
|
---|
287 | }
|
---|
288 |
|
---|
289 | return false;
|
---|
290 | });
|
---|
291 | $(document).on('click', '.overlay', function () {
|
---|
292 | $.removeOverlay();
|
---|
293 |
|
---|
294 | if (body_.hasClass('horizontal-navigation')) {
|
---|
295 | $('.horizontal-navigation').removeClass('open');
|
---|
296 | } else {
|
---|
297 | $('.navigation').removeClass('open');
|
---|
298 | }
|
---|
299 |
|
---|
300 | body_.removeClass('navigation-show');
|
---|
301 | });
|
---|
302 | $(document).on('click', '[data-sidebar-target]', function () {
|
---|
303 | var target = $(this).data('sidebar-target');
|
---|
304 | $('body').addClass('no-scroll');
|
---|
305 | $('.sidebar-group').addClass('show');
|
---|
306 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
307 | $('.sidebar-group .sidebar' + target).addClass('show');
|
---|
308 | return false;
|
---|
309 | });
|
---|
310 | $(document).on('click', '.sidebar-group', function (e) {
|
---|
311 | if ($(e.target).is($('.sidebar-group'))) {
|
---|
312 | $('.sidebar-group').removeClass('show');
|
---|
313 | $('body').removeClass('no-scroll');
|
---|
314 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
315 | }
|
---|
316 | }); // Active pages, automatically show on the menu
|
---|
317 |
|
---|
318 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
319 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
|
---|
320 | $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
|
---|
321 | $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
322 | /*------------- create/remove overlay -------------*/
|
---|
323 |
|
---|
324 | $.createOverlay = function () {
|
---|
325 | if ($('.overlay').length < 1) {
|
---|
326 | body_.addClass('no-scroll').append('<div class="overlay"></div>');
|
---|
327 | $('.overlay').addClass('show');
|
---|
328 | }
|
---|
329 | };
|
---|
330 |
|
---|
331 | $.removeOverlay = function () {
|
---|
332 | body_.removeClass('no-scroll');
|
---|
333 | $('.overlay').remove();
|
---|
334 | };
|
---|
335 | /*------------- create/remove overlay -------------*/
|
---|
336 |
|
---|
337 |
|
---|
338 | $('[data-backround-image]').each(function (e) {
|
---|
339 | $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
|
---|
340 | });
|
---|
341 | /*------------- page loader -------------*/
|
---|
342 |
|
---|
343 | wind_.on('load', function () {
|
---|
344 | $('.preloader').fadeOut(400, function () {
|
---|
345 | setTimeout(function () {
|
---|
346 | toastr.options = {
|
---|
347 | timeOut: 2000,
|
---|
348 | progressBar: true,
|
---|
349 | showMethod: "slideDown",
|
---|
350 | hideMethod: "slideUp",
|
---|
351 | showDuration: 200,
|
---|
352 | hideDuration: 200,
|
---|
353 | positionClass: "toast-top-center"
|
---|
354 | }; //toastr.success('Welcome');
|
---|
355 |
|
---|
356 | $('.theme-switcher').removeClass('open');
|
---|
357 | }, 500); // $('.theme-switcher').css('opacity', 1);
|
---|
358 | });
|
---|
359 | });
|
---|
360 | /*------------- page loader -------------*/
|
---|
361 |
|
---|
362 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
363 |
|
---|
364 | wind_.on('load', function () {
|
---|
365 | setTimeout(function () {
|
---|
366 | $('.navigation .navigation-menu-body ul li a').each(function () {
|
---|
367 | var $this = $(this);
|
---|
368 |
|
---|
369 | if ($this.next('ul').length) {
|
---|
370 | $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
|
---|
371 | }
|
---|
372 | });
|
---|
373 | $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
|
---|
374 | $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
|
---|
375 | var $this = $(this);
|
---|
376 |
|
---|
377 | if ($this.next('ul').length) {
|
---|
378 | $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
|
---|
379 | }
|
---|
380 | });
|
---|
381 | }, 200);
|
---|
382 | });
|
---|
383 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
384 |
|
---|
385 | $(document).on('click', '[data-action="navigation-toggler"]', function () {
|
---|
386 | if (body_.hasClass('horizontal-navigation')) {
|
---|
387 | $('.horizontal-navigation').toggleClass('open');
|
---|
388 | } else {
|
---|
389 | $('.navigation').toggleClass('open');
|
---|
390 | }
|
---|
391 |
|
---|
392 | $.createOverlay();
|
---|
393 | });
|
---|
394 | $(document).on('click', '[data-nav-target]', function () {
|
---|
395 | var $this = $(this),
|
---|
396 | target = $this.data('nav-target');
|
---|
397 |
|
---|
398 | if (body_.hasClass('navigation-toggle-one')) {
|
---|
399 | body_.addClass('navigation-show');
|
---|
400 | }
|
---|
401 |
|
---|
402 | if (body_.hasClass('horizontal-navigation')) {
|
---|
403 | $('.navigation .navigation-menu-body').show();
|
---|
404 | }
|
---|
405 |
|
---|
406 | $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
|
---|
407 | $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
|
---|
408 | $('[data-nav-target]').removeClass('active');
|
---|
409 | $this.addClass('active');
|
---|
410 | $this.tooltip('hide');
|
---|
411 | return false;
|
---|
412 | });
|
---|
413 | var c = $('.header .header-left .header-logo').clone();
|
---|
414 | $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
|
---|
415 | $(document).on('click', '.navigation-toggler a', function () {
|
---|
416 | if (wind_.width() < 1200) {
|
---|
417 | $.createOverlay();
|
---|
418 | body_.addClass('navigation-show');
|
---|
419 | } else {
|
---|
420 | if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
421 | body_.addClass('navigation-toggle-one');
|
---|
422 | } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
423 | body_.addClass('navigation-toggle-two');
|
---|
424 | body_.removeClass('navigation-toggle-one');
|
---|
425 | } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
|
---|
426 | body_.removeClass('navigation-toggle-two');
|
---|
427 | body_.removeClass('navigation-toggle-one');
|
---|
428 | }
|
---|
429 | }
|
---|
430 |
|
---|
431 | return false;
|
---|
432 | });
|
---|
433 | $(document).on('click', '.header-toggler a', function () {
|
---|
434 | $('.header ul.navbar-nav').toggleClass('open');
|
---|
435 | return false;
|
---|
436 | });
|
---|
437 | $(document).on('click', '*', function (e) {
|
---|
438 | if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
|
---|
439 | body_.removeClass('navigation-show');
|
---|
440 | }
|
---|
441 | });
|
---|
442 | $(document).on('click', '*', function (e) {
|
---|
443 | if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
|
---|
444 | $('.header ul.navbar-nav').removeClass('open');
|
---|
445 | }
|
---|
446 | });
|
---|
447 | /*------------- form validation -------------*/
|
---|
448 |
|
---|
449 | window.addEventListener('load', function () {
|
---|
450 | // Fetch all the forms we want to apply custom Bootstrap validation styles to
|
---|
451 | var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
|
---|
452 |
|
---|
453 | Array.prototype.filter.call(forms, function (form) {
|
---|
454 | form.addEventListener('submit', function (event) {
|
---|
455 | if (form.checkValidity() === false) {
|
---|
456 | event.preventDefault();
|
---|
457 | event.stopPropagation();
|
---|
458 | }
|
---|
459 |
|
---|
460 | form.classList.add('was-validated');
|
---|
461 | }, false);
|
---|
462 | });
|
---|
463 | }, false);
|
---|
464 | /*------------- form validation -------------*/
|
---|
465 |
|
---|
466 | /*------------- responsive html table -------------*/
|
---|
467 |
|
---|
468 | var table_responsive_stack = $(".table-responsive-stack");
|
---|
469 | table_responsive_stack.find("th").each(function (i) {
|
---|
470 | $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
|
---|
471 | $(".table-responsive-stack-thead").hide();
|
---|
472 | });
|
---|
473 | table_responsive_stack.each(function () {
|
---|
474 | var thCount = $(this).find("th").length,
|
---|
475 | rowGrow = 100 / thCount + "%";
|
---|
476 | $(this).find("th, td").css("flex-basis", rowGrow);
|
---|
477 | });
|
---|
478 |
|
---|
479 | function flexTable() {
|
---|
480 | if (wind_.width() < 768) {
|
---|
481 | $(".table-responsive-stack").each(function (i) {
|
---|
482 | $(this).find(".table-responsive-stack-thead").show();
|
---|
483 | $(this).find("thead").hide();
|
---|
484 | }); // window is less than 768px
|
---|
485 | } else {
|
---|
486 | $(".table-responsive-stack").each(function (i) {
|
---|
487 | $(this).find(".table-responsive-stack-thead").hide();
|
---|
488 | $(this).find("thead").show();
|
---|
489 | });
|
---|
490 | }
|
---|
491 | }
|
---|
492 |
|
---|
493 | flexTable();
|
---|
494 |
|
---|
495 | window.onresize = function (event) {
|
---|
496 | flexTable();
|
---|
497 | };
|
---|
498 | /*------------- responsive html table -------------*/
|
---|
499 |
|
---|
500 | /*------------- header search -------------*/
|
---|
501 |
|
---|
502 |
|
---|
503 | $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
|
---|
504 | $('.header .header-body .header-search').show().find('.form-control').focus();
|
---|
505 | return false;
|
---|
506 | });
|
---|
507 | $(document).on('click', '.close-header-search, .close-header-search svg', function () {
|
---|
508 | $('.header .header-body .header-search').hide();
|
---|
509 | return false;
|
---|
510 | });
|
---|
511 | $(document).on('click', '*', function (e) {
|
---|
512 | if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
|
---|
513 | $('.header .header-body .header-search').hide();
|
---|
514 | }
|
---|
515 | });
|
---|
516 | /*------------- header search -------------*/
|
---|
517 |
|
---|
518 | /*------------- custom accordion -------------*/
|
---|
519 |
|
---|
520 | $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
|
---|
521 | var $this = $(this);
|
---|
522 | $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
|
---|
523 | $this.parent('.accordion-row').toggleClass('open');
|
---|
524 | return false;
|
---|
525 | });
|
---|
526 | /*------------- custom accordion -------------*/
|
---|
527 |
|
---|
528 | /*------------- responsive table dropdown -------------*/
|
---|
529 |
|
---|
530 | var dropdownMenu,
|
---|
531 | table_responsive = $('.table-responsive');
|
---|
532 | table_responsive.on('show.bs.dropdown', function (e) {
|
---|
533 | dropdownMenu = $(e.target).find('.dropdown-menu');
|
---|
534 | body_.append(dropdownMenu.detach());
|
---|
535 | var eOffset = $(e.target).offset();
|
---|
536 | dropdownMenu.css({
|
---|
537 | 'display': 'block',
|
---|
538 | 'top': eOffset.top + $(e.target).outerHeight(),
|
---|
539 | 'left': eOffset.left,
|
---|
540 | 'width': '184px',
|
---|
541 | 'font-size': '14px'
|
---|
542 | });
|
---|
543 | dropdownMenu.addClass("mobPosDropdown");
|
---|
544 | });
|
---|
545 | table_responsive.on('hide.bs.dropdown', function (e) {
|
---|
546 | $(e.target).append(dropdownMenu.detach());
|
---|
547 | dropdownMenu.hide();
|
---|
548 | });
|
---|
549 | /*------------- responsive table dropdown -------------*/
|
---|
550 |
|
---|
551 | /*------------- chat -------------*/
|
---|
552 |
|
---|
553 | $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
|
---|
554 | $('.chat-block .chat-content').addClass('chat-mobile-open');
|
---|
555 | return false;
|
---|
556 | });
|
---|
557 | $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
|
---|
558 | $('.chat-block .chat-content').removeClass('chat-mobile-open');
|
---|
559 | return false;
|
---|
560 | });
|
---|
561 | /*------------- chat -------------*/
|
---|
562 |
|
---|
563 | /*------------- aside menu toggle -------------*/
|
---|
564 |
|
---|
565 | $(document).on('click', '.navigation ul li a', function () {
|
---|
566 | var $this = $(this);
|
---|
567 |
|
---|
568 | if ($this.next('ul').length) {
|
---|
569 | var sub_menu_arrow = $this.find('.sub-menu-arrow');
|
---|
570 | sub_menu_arrow.toggleClass('rotate-in');
|
---|
571 | $this.next('ul').toggle(200);
|
---|
572 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
573 | $this.next('ul').find('li ul').slideUp(200);
|
---|
574 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
575 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
576 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
577 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
578 |
|
---|
579 | if (sub_menu_arrow.hasClass('rotate-in')) {
|
---|
580 | setTimeout(function () {
|
---|
581 | sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
|
---|
582 | }, 200);
|
---|
583 | } else {
|
---|
584 | sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
|
---|
585 | }
|
---|
586 |
|
---|
587 | if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
|
---|
588 | setTimeout(function (e) {
|
---|
589 | $('.navigation .navigation-menu-body').getNiceScroll().resize();
|
---|
590 | }, 300);
|
---|
591 | }
|
---|
592 |
|
---|
593 | return false;
|
---|
594 | }
|
---|
595 | });
|
---|
596 | $(document).on('click', '.horizontal-navigation ul li a', function () {
|
---|
597 | var $this = $(this);
|
---|
598 |
|
---|
599 | if ($this.next('ul').length) {
|
---|
600 | $this.next('ul').toggle(200);
|
---|
601 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
602 | $this.next('ul').find('li ul').slideUp(200);
|
---|
603 | return false;
|
---|
604 | }
|
---|
605 | });
|
---|
606 | /*------------- aside menu toggle -------------*/
|
---|
607 |
|
---|
608 | /*------------- other -------------*/
|
---|
609 |
|
---|
610 | $(document).on('click', '.dropdown-menu', function (e) {
|
---|
611 | e.stopPropagation();
|
---|
612 | });
|
---|
613 | $('#exampleModal').on('show.bs.modal', function (event) {
|
---|
614 | var button = $(event.relatedTarget),
|
---|
615 | recipient = button.data('whatever'),
|
---|
616 | modal = $(this);
|
---|
617 | modal.find('.modal-title').text('New message to ' + recipient);
|
---|
618 | modal.find('.modal-body input').val(recipient);
|
---|
619 | });
|
---|
620 | $('[data-toggle="tooltip"]').tooltip({
|
---|
621 | container: 'body'
|
---|
622 | });
|
---|
623 | $('[data-toggle="popover"]').popover();
|
---|
624 | $('.carousel').carousel();
|
---|
625 |
|
---|
626 | if (wind_.width() >= 992) {
|
---|
627 | $('.card-scroll').niceScroll();
|
---|
628 | $('.table-responsive').niceScroll();
|
---|
629 | $('.sidebar-group .sidebar').niceScroll();
|
---|
630 | $('.app-block .app-content .app-lists').niceScroll();
|
---|
631 | $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
|
---|
632 | $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
|
---|
633 | var chat_messages = $('.chat-block .chat-content .messages');
|
---|
634 |
|
---|
635 | if (chat_messages.length) {
|
---|
636 | chat_messages.niceScroll({
|
---|
637 | horizrailenabled: false
|
---|
638 | });
|
---|
639 | chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
|
---|
640 | }
|
---|
641 | }
|
---|
642 |
|
---|
643 | if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
|
---|
644 | $('.navigation .navigation-menu-body').niceScroll();
|
---|
645 | }
|
---|
646 |
|
---|
647 | $('.dropdown-menu ul.list-group').niceScroll();
|
---|
648 | /* Theme Switcher */
|
---|
649 |
|
---|
650 | /* var path = window.location.pathname;
|
---|
651 | var page = path.split("/").pop();
|
---|
652 | var theme_switcher_html = '<div class="theme-switcher open"> \n\
|
---|
653 | <div class="theme-switcher-button"> \n\
|
---|
654 | <i class="fa fa-cog"></i> \n\
|
---|
655 | </div> \n\
|
---|
656 | <div class="theme-switcher-panel"> \n\
|
---|
657 | <div class="card"> \n\
|
---|
658 | <div class="card-body"> \n\
|
---|
659 | <h6 class="card-title">Theme Switcher</h6> \n\
|
---|
660 | <div class="form-group mb-2"> \n\
|
---|
661 | <div class="custom-control custom-switch"> \n\
|
---|
662 | <input type="checkbox" class="custom-control-input" id="dark"> \n\
|
---|
663 | <label class="custom-control-label" for="dark">Dark</label> \n\
|
---|
664 | </div> \n\
|
---|
665 | </div> \n\
|
---|
666 | <div class="form-group mb-2"> \n\
|
---|
667 | <div class="custom-control custom-switch"> \n\
|
---|
668 | <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
|
---|
669 | <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
|
---|
670 | </div> \n\
|
---|
671 | </div> \n\
|
---|
672 | <div class="form-group mb-2"> \n\
|
---|
673 | <div class="custom-control custom-switch"> \n\
|
---|
674 | <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
|
---|
675 | <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
|
---|
676 | </div> \n\
|
---|
677 | </div> \n\
|
---|
678 | <div class="form-group mb-2"> \n\
|
---|
679 | <div class="custom-control custom-switch"> \n\
|
---|
680 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
|
---|
681 | <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
|
---|
682 | </div> \n\
|
---|
683 | </div> \n\
|
---|
684 | <div class="form-group mb-2"> \n\
|
---|
685 | <div class="custom-control custom-switch"> \n\
|
---|
686 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
|
---|
687 | <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
|
---|
688 | </div> \n\
|
---|
689 | </div> \n\
|
---|
690 | <div class="form-group mb-2"> \n\
|
---|
691 | <div class="custom-control custom-switch"> \n\
|
---|
692 | <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
|
---|
693 | <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
|
---|
694 | </div> \n\
|
---|
695 | </div> \n\
|
---|
696 | <div class="form-group mb-2"> \n\
|
---|
697 | <div class="custom-control custom-switch"> \n\
|
---|
698 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
|
---|
699 | <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
|
---|
700 | </div> \n\
|
---|
701 | </div> \n\
|
---|
702 | <div class="form-group mb-2"> \n\
|
---|
703 | <div class="custom-control custom-switch"> \n\
|
---|
704 | <input type="checkbox" class="custom-control-input" id="light-header"> \n\
|
---|
705 | <label class="custom-control-label" for="light-header">Light header</label> \n\
|
---|
706 | </div> \n\
|
---|
707 | </div> \n\
|
---|
708 | <div class="form-group mb-2"> \n\
|
---|
709 | <div class="custom-control custom-switch"> \n\
|
---|
710 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
|
---|
711 | <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
|
---|
712 | </div> \n\
|
---|
713 | </div> \n\
|
---|
714 | </div> \n\
|
---|
715 | </div> \n\
|
---|
716 | </div> \n\
|
---|
717 | </div>';
|
---|
718 | $('body').append(theme_switcher_html);
|
---|
719 | $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
|
---|
720 | var id = $(this).attr('id');
|
---|
721 | if (id === 'sticky-navigation') {
|
---|
722 | if ($(this).prop('checked')) {
|
---|
723 | $('.navigation').niceScroll().resize();
|
---|
724 | } else {
|
---|
725 | $('.navigation').niceScroll().remove();
|
---|
726 | }
|
---|
727 | if ($('body').hasClass('small-navigation')) {
|
---|
728 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
729 | if ($(this).find('> a').next('ul').length) {
|
---|
730 | // Dropdown add header title
|
---|
731 | $(this).find('.dropdown-divider').remove();
|
---|
732 | } else {
|
---|
733 | // Add tooltip
|
---|
734 | $(this).find('> a').tooltip('dispose');
|
---|
735 | }
|
---|
736 | });
|
---|
737 | $('body').removeClass('small-navigation');
|
---|
738 | $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
|
---|
739 | }
|
---|
740 | if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
|
---|
741 | $('body').removeClass('hidden-navigation');
|
---|
742 | $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
|
---|
743 | }
|
---|
744 | }
|
---|
745 | if (id === 'small-navigation') {
|
---|
746 | if ($(this).prop('checked')) {
|
---|
747 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
748 | if ($(this).find('> a').next('ul').length) {
|
---|
749 | // Dropdown add header title
|
---|
750 | $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
|
---|
751 | } else {
|
---|
752 | // Add tooltip
|
---|
753 | $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
|
---|
754 | $(this).find('> a').tooltip({
|
---|
755 | placement: "right"
|
---|
756 | });
|
---|
757 | }
|
---|
758 | });
|
---|
759 | } else {
|
---|
760 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
761 | if ($(this).find('> a').next('ul').length) {
|
---|
762 | // Dropdown add header title
|
---|
763 | $(this).find('.dropdown-divider').remove();
|
---|
764 | } else {
|
---|
765 | // Add tooltip
|
---|
766 | $(this).find('> a').tooltip('dispose');
|
---|
767 | }
|
---|
768 | });
|
---|
769 | }
|
---|
770 | if ($('body').hasClass('sticky-navigation')) {
|
---|
771 | $('body').removeClass('sticky-navigation');
|
---|
772 | $('.navigation').niceScroll().remove();
|
---|
773 | $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
|
---|
774 | }
|
---|
775 | if ($('body').hasClass('hidden-navigation')) {
|
---|
776 | $('body').removeClass('hidden-navigation');
|
---|
777 | $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
|
---|
778 | }
|
---|
779 | }
|
---|
780 | if (id === 'hidden-navigation') {
|
---|
781 | setTimeout(function () {
|
---|
782 | $('.navigation').niceScroll().resize();
|
---|
783 | $('.app-block .app-content .app-lists').niceScroll().resize();
|
---|
784 | $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
|
---|
785 | $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
|
---|
786 | }, 200);
|
---|
787 | if (!$(this).prop('checked')) {
|
---|
788 | $.removeOverlay();
|
---|
789 | $('.navigation').removeClass('open');
|
---|
790 | }
|
---|
791 | if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
|
---|
792 | if ($('body').hasClass('sticky-navigation')) {
|
---|
793 | $('body').removeClass('sticky-navigation');
|
---|
794 | $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
|
---|
795 | }
|
---|
796 | }
|
---|
797 | if ($('body').hasClass('small-navigation')) {
|
---|
798 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
799 | if ($(this).find('> a').next('ul').length) {
|
---|
800 | // Dropdown add header title
|
---|
801 | $(this).find('.dropdown-divider').remove();
|
---|
802 | } else {
|
---|
803 | // Add tooltip
|
---|
804 | $(this).find('> a').tooltip('dispose');
|
---|
805 | }
|
---|
806 | });
|
---|
807 | $('body').removeClass('small-navigation');
|
---|
808 | $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
|
---|
809 | }
|
---|
810 | }
|
---|
811 | if (id === 'dark') {
|
---|
812 | if ($('body').hasClass('semi-dark')) {
|
---|
813 | $('body').removeClass('semi-dark');
|
---|
814 | $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
|
---|
815 | }
|
---|
816 | }
|
---|
817 | if (id === 'semi-dark') {
|
---|
818 | if ($('body').hasClass('dark')) {
|
---|
819 | $('body').removeClass('dark');
|
---|
820 | $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
|
---|
821 | }
|
---|
822 | }
|
---|
823 | $('body').toggleClass(id);
|
---|
824 | });
|
---|
825 | $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
|
---|
826 | $('.theme-switcher').toggleClass('open');
|
---|
827 | }); */
|
---|
828 | })(jQuery);
|
---|
829 | /***/
|
---|
830 |
|
---|
831 | },
|
---|
832 |
|
---|
833 | /***/
|
---|
834 | 0: function _(module, exports, __nested_webpack_require_30733__) {
|
---|
835 | __nested_webpack_require_30733__(
|
---|
836 | /**/
|
---|
837 | "./resources/js/app.js");
|
---|
838 |
|
---|
839 | module.exports = __nested_webpack_require_30733__(
|
---|
840 | /**/
|
---|
841 | "./public/assets/sass/app.scss");
|
---|
842 | /***/
|
---|
843 | }
|
---|
844 | /******/
|
---|
845 |
|
---|
846 | });
|
---|
847 | })();
|
---|
848 |
|
---|
849 | // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
|
---|
850 | (() => {
|
---|
851 | /*!****************************************!*\
|
---|
852 | !*** ./resources/assets/js/app.min.js ***!
|
---|
853 | \****************************************/
|
---|
854 | 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); }
|
---|
855 |
|
---|
856 | /******/
|
---|
857 | (function (modules) {
|
---|
858 | // webpackBootstrap
|
---|
859 |
|
---|
860 | /******/
|
---|
861 | // The module cache
|
---|
862 |
|
---|
863 | /******/
|
---|
864 | var installedModules = {};
|
---|
865 | /******/
|
---|
866 |
|
---|
867 | /******/
|
---|
868 | // The require function
|
---|
869 |
|
---|
870 | /******/
|
---|
871 |
|
---|
872 | function __nested_webpack_require_572__(moduleId) {
|
---|
873 | /******/
|
---|
874 |
|
---|
875 | /******/
|
---|
876 | // Check if module is in cache
|
---|
877 |
|
---|
878 | /******/
|
---|
879 | if (installedModules[moduleId]) {
|
---|
880 | /******/
|
---|
881 | return installedModules[moduleId].exports;
|
---|
882 | /******/
|
---|
883 | }
|
---|
884 | /******/
|
---|
885 | // Create a new module (and put it into the cache)
|
---|
886 |
|
---|
887 | /******/
|
---|
888 |
|
---|
889 |
|
---|
890 | var module = installedModules[moduleId] = {
|
---|
891 | /******/
|
---|
892 | i: moduleId,
|
---|
893 |
|
---|
894 | /******/
|
---|
895 | l: false,
|
---|
896 |
|
---|
897 | /******/
|
---|
898 | exports: {}
|
---|
899 | /******/
|
---|
900 |
|
---|
901 | };
|
---|
902 | /******/
|
---|
903 |
|
---|
904 | /******/
|
---|
905 | // Execute the module function
|
---|
906 |
|
---|
907 | /******/
|
---|
908 |
|
---|
909 | modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_572__);
|
---|
910 | /******/
|
---|
911 |
|
---|
912 | /******/
|
---|
913 | // Flag the module as loaded
|
---|
914 |
|
---|
915 | /******/
|
---|
916 |
|
---|
917 | module.l = true;
|
---|
918 | /******/
|
---|
919 |
|
---|
920 | /******/
|
---|
921 | // Return the exports of the module
|
---|
922 |
|
---|
923 | /******/
|
---|
924 |
|
---|
925 | return module.exports;
|
---|
926 | /******/
|
---|
927 | }
|
---|
928 | /******/
|
---|
929 |
|
---|
930 | /******/
|
---|
931 |
|
---|
932 | /******/
|
---|
933 | // expose the modules object (__webpack_modules__)
|
---|
934 |
|
---|
935 | /******/
|
---|
936 |
|
---|
937 |
|
---|
938 | __nested_webpack_require_572__.m = modules;
|
---|
939 | /******/
|
---|
940 |
|
---|
941 | /******/
|
---|
942 | // expose the module cache
|
---|
943 |
|
---|
944 | /******/
|
---|
945 |
|
---|
946 | __nested_webpack_require_572__.c = installedModules;
|
---|
947 | /******/
|
---|
948 |
|
---|
949 | /******/
|
---|
950 | // define getter function for harmony exports
|
---|
951 |
|
---|
952 | /******/
|
---|
953 |
|
---|
954 | __nested_webpack_require_572__.d = function (exports, name, getter) {
|
---|
955 | /******/
|
---|
956 | if (!__nested_webpack_require_572__.o(exports, name)) {
|
---|
957 | /******/
|
---|
958 | Object.defineProperty(exports, name, {
|
---|
959 | enumerable: true,
|
---|
960 | get: getter
|
---|
961 | });
|
---|
962 | /******/
|
---|
963 | }
|
---|
964 | /******/
|
---|
965 |
|
---|
966 | };
|
---|
967 | /******/
|
---|
968 |
|
---|
969 | /******/
|
---|
970 | // define __esModule on exports
|
---|
971 |
|
---|
972 | /******/
|
---|
973 |
|
---|
974 |
|
---|
975 | __nested_webpack_require_572__.r = function (exports) {
|
---|
976 | /******/
|
---|
977 | if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
---|
978 | /******/
|
---|
979 | Object.defineProperty(exports, Symbol.toStringTag, {
|
---|
980 | value: 'Module'
|
---|
981 | });
|
---|
982 | /******/
|
---|
983 | }
|
---|
984 | /******/
|
---|
985 |
|
---|
986 |
|
---|
987 | Object.defineProperty(exports, '__esModule', {
|
---|
988 | value: true
|
---|
989 | });
|
---|
990 | /******/
|
---|
991 | };
|
---|
992 | /******/
|
---|
993 |
|
---|
994 | /******/
|
---|
995 | // create a fake namespace object
|
---|
996 |
|
---|
997 | /******/
|
---|
998 | // mode & 1: value is a module id, require it
|
---|
999 |
|
---|
1000 | /******/
|
---|
1001 | // mode & 2: merge all properties of value into the ns
|
---|
1002 |
|
---|
1003 | /******/
|
---|
1004 | // mode & 4: return value when already ns object
|
---|
1005 |
|
---|
1006 | /******/
|
---|
1007 | // mode & 8|1: behave like require
|
---|
1008 |
|
---|
1009 | /******/
|
---|
1010 |
|
---|
1011 |
|
---|
1012 | __nested_webpack_require_572__.t = function (value, mode) {
|
---|
1013 | /******/
|
---|
1014 | if (mode & 1) value = __nested_webpack_require_572__(value);
|
---|
1015 | /******/
|
---|
1016 |
|
---|
1017 | if (mode & 8) return value;
|
---|
1018 | /******/
|
---|
1019 |
|
---|
1020 | if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value;
|
---|
1021 | /******/
|
---|
1022 |
|
---|
1023 | var ns = Object.create(null);
|
---|
1024 | /******/
|
---|
1025 |
|
---|
1026 | __nested_webpack_require_572__.r(ns);
|
---|
1027 | /******/
|
---|
1028 |
|
---|
1029 |
|
---|
1030 | Object.defineProperty(ns, 'default', {
|
---|
1031 | enumerable: true,
|
---|
1032 | value: value
|
---|
1033 | });
|
---|
1034 | /******/
|
---|
1035 |
|
---|
1036 | if (mode & 2 && typeof value != 'string') for (var key in value) {
|
---|
1037 | __nested_webpack_require_572__.d(ns, key, function (key) {
|
---|
1038 | return value[key];
|
---|
1039 | }.bind(null, key));
|
---|
1040 | }
|
---|
1041 | /******/
|
---|
1042 |
|
---|
1043 | return ns;
|
---|
1044 | /******/
|
---|
1045 | };
|
---|
1046 | /******/
|
---|
1047 |
|
---|
1048 | /******/
|
---|
1049 | // getDefaultExport function for compatibility with non-harmony modules
|
---|
1050 |
|
---|
1051 | /******/
|
---|
1052 |
|
---|
1053 |
|
---|
1054 | __nested_webpack_require_572__.n = function (module) {
|
---|
1055 | /******/
|
---|
1056 | var getter = module && module.__esModule ?
|
---|
1057 | /******/
|
---|
1058 | function getDefault() {
|
---|
1059 | return module['default'];
|
---|
1060 | } :
|
---|
1061 | /******/
|
---|
1062 | function getModuleExports() {
|
---|
1063 | return module;
|
---|
1064 | };
|
---|
1065 | /******/
|
---|
1066 |
|
---|
1067 | __nested_webpack_require_572__.d(getter, 'a', getter);
|
---|
1068 | /******/
|
---|
1069 |
|
---|
1070 |
|
---|
1071 | return getter;
|
---|
1072 | /******/
|
---|
1073 | };
|
---|
1074 | /******/
|
---|
1075 |
|
---|
1076 | /******/
|
---|
1077 | // Object.prototype.hasOwnProperty.call
|
---|
1078 |
|
---|
1079 | /******/
|
---|
1080 |
|
---|
1081 |
|
---|
1082 | __nested_webpack_require_572__.o = function (object, property) {
|
---|
1083 | return Object.prototype.hasOwnProperty.call(object, property);
|
---|
1084 | };
|
---|
1085 | /******/
|
---|
1086 |
|
---|
1087 | /******/
|
---|
1088 | // __webpack_public_path__
|
---|
1089 |
|
---|
1090 | /******/
|
---|
1091 |
|
---|
1092 |
|
---|
1093 | __nested_webpack_require_572__.p = "/";
|
---|
1094 | /******/
|
---|
1095 |
|
---|
1096 | /******/
|
---|
1097 |
|
---|
1098 | /******/
|
---|
1099 | // Load entry module and return exports
|
---|
1100 |
|
---|
1101 | /******/
|
---|
1102 |
|
---|
1103 | return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0);
|
---|
1104 | /******/
|
---|
1105 | })({
|
---|
1106 | /***/
|
---|
1107 | "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin
|
---|
1108 |
|
---|
1109 | /***/
|
---|
1110 | },
|
---|
1111 |
|
---|
1112 | /***/
|
---|
1113 | "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) {
|
---|
1114 | "use strict";
|
---|
1115 |
|
---|
1116 | (function ($) {
|
---|
1117 | var wind_ = $(window),
|
---|
1118 | body_ = $('body');
|
---|
1119 | feather.replace({
|
---|
1120 | 'stroke-width': 1.5
|
---|
1121 | });
|
---|
1122 | $(document).on('click', '[data-toggle="fullscreen"]', function () {
|
---|
1123 | $(this).toggleClass('active-fullscreen');
|
---|
1124 |
|
---|
1125 | if (document.fullscreenEnabled) {
|
---|
1126 | if ($(this).hasClass("active-fullscreen")) {
|
---|
1127 | document.documentElement.requestFullscreen();
|
---|
1128 | } else {
|
---|
1129 | document.exitFullscreen();
|
---|
1130 | }
|
---|
1131 | } else {
|
---|
1132 | alert("Your browser does not support fullscreen.");
|
---|
1133 | }
|
---|
1134 |
|
---|
1135 | return false;
|
---|
1136 | });
|
---|
1137 | $(document).on('click', '.overlay', function () {
|
---|
1138 | $.removeOverlay();
|
---|
1139 |
|
---|
1140 | if (body_.hasClass('horizontal-navigation')) {
|
---|
1141 | $('.horizontal-navigation').removeClass('open');
|
---|
1142 | } else {
|
---|
1143 | $('.navigation').removeClass('open');
|
---|
1144 | }
|
---|
1145 |
|
---|
1146 | body_.removeClass('navigation-show');
|
---|
1147 | });
|
---|
1148 | $(document).on('click', '[data-sidebar-target]', function () {
|
---|
1149 | var target = $(this).data('sidebar-target');
|
---|
1150 | $('body').addClass('no-scroll');
|
---|
1151 | $('.sidebar-group').addClass('show');
|
---|
1152 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
1153 | $('.sidebar-group .sidebar' + target).addClass('show');
|
---|
1154 | return false;
|
---|
1155 | });
|
---|
1156 | $(document).on('click', '.sidebar-group', function (e) {
|
---|
1157 | if ($(e.target).is($('.sidebar-group'))) {
|
---|
1158 | $('.sidebar-group').removeClass('show');
|
---|
1159 | $('body').removeClass('no-scroll');
|
---|
1160 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
1161 | }
|
---|
1162 | }); // Active pages, automatically show on the menu
|
---|
1163 |
|
---|
1164 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
1165 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
|
---|
1166 | $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
|
---|
1167 | $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
1168 | /*------------- create/remove overlay -------------*/
|
---|
1169 |
|
---|
1170 | $.createOverlay = function () {
|
---|
1171 | if ($('.overlay').length < 1) {
|
---|
1172 | body_.addClass('no-scroll').append('<div class="overlay"></div>');
|
---|
1173 | $('.overlay').addClass('show');
|
---|
1174 | }
|
---|
1175 | };
|
---|
1176 |
|
---|
1177 | $.removeOverlay = function () {
|
---|
1178 | body_.removeClass('no-scroll');
|
---|
1179 | $('.overlay').remove();
|
---|
1180 | };
|
---|
1181 | /*------------- create/remove overlay -------------*/
|
---|
1182 |
|
---|
1183 |
|
---|
1184 | $('[data-backround-image]').each(function (e) {
|
---|
1185 | $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
|
---|
1186 | });
|
---|
1187 | /*------------- page loader -------------*/
|
---|
1188 |
|
---|
1189 | wind_.on('load', function () {
|
---|
1190 | $('.preloader').fadeOut(400, function () {
|
---|
1191 | setTimeout(function () {
|
---|
1192 | toastr.options = {
|
---|
1193 | timeOut: 2000,
|
---|
1194 | progressBar: true,
|
---|
1195 | showMethod: "slideDown",
|
---|
1196 | hideMethod: "slideUp",
|
---|
1197 | showDuration: 200,
|
---|
1198 | hideDuration: 200,
|
---|
1199 | positionClass: "toast-top-center"
|
---|
1200 | };
|
---|
1201 | $('.theme-switcher').removeClass('open');
|
---|
1202 | }, 500); // $('.theme-switcher').css('opacity', 1);
|
---|
1203 | });
|
---|
1204 | });
|
---|
1205 | /*------------- page loader -------------*/
|
---|
1206 |
|
---|
1207 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
1208 |
|
---|
1209 | wind_.on('load', function () {
|
---|
1210 | setTimeout(function () {
|
---|
1211 | $('.navigation .navigation-menu-body ul li a').each(function () {
|
---|
1212 | var $this = $(this);
|
---|
1213 |
|
---|
1214 | if ($this.next('ul').length) {
|
---|
1215 | $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
|
---|
1216 | }
|
---|
1217 | });
|
---|
1218 | $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
|
---|
1219 | $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
|
---|
1220 | var $this = $(this);
|
---|
1221 |
|
---|
1222 | if ($this.next('ul').length) {
|
---|
1223 | $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
|
---|
1224 | }
|
---|
1225 | });
|
---|
1226 | }, 200);
|
---|
1227 | });
|
---|
1228 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
1229 |
|
---|
1230 | $(document).on('click', '[data-action="navigation-toggler"]', function () {
|
---|
1231 | if (body_.hasClass('horizontal-navigation')) {
|
---|
1232 | $('.horizontal-navigation').toggleClass('open');
|
---|
1233 | } else {
|
---|
1234 | $('.navigation').toggleClass('open');
|
---|
1235 | }
|
---|
1236 |
|
---|
1237 | $.createOverlay();
|
---|
1238 | });
|
---|
1239 | $(document).on('click', '[data-nav-target]', function () {
|
---|
1240 | var $this = $(this),
|
---|
1241 | target = $this.data('nav-target');
|
---|
1242 |
|
---|
1243 | if (body_.hasClass('navigation-toggle-one')) {
|
---|
1244 | body_.addClass('navigation-show');
|
---|
1245 | }
|
---|
1246 |
|
---|
1247 | if (body_.hasClass('horizontal-navigation')) {
|
---|
1248 | $('.navigation .navigation-menu-body').show();
|
---|
1249 | }
|
---|
1250 |
|
---|
1251 | $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
|
---|
1252 | $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
|
---|
1253 | $('[data-nav-target]').removeClass('active');
|
---|
1254 | $this.addClass('active');
|
---|
1255 | $this.tooltip('hide');
|
---|
1256 | return false;
|
---|
1257 | });
|
---|
1258 | var c = $('.header .header-left .header-logo').clone();
|
---|
1259 | $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
|
---|
1260 | $(document).on('click', '.navigation-toggler a', function () {
|
---|
1261 | if (wind_.width() < 1200) {
|
---|
1262 | $.createOverlay();
|
---|
1263 | body_.addClass('navigation-show');
|
---|
1264 | } else {
|
---|
1265 | if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
1266 | body_.addClass('navigation-toggle-one');
|
---|
1267 | } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
1268 | body_.addClass('navigation-toggle-two');
|
---|
1269 | body_.removeClass('navigation-toggle-one');
|
---|
1270 | } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
|
---|
1271 | body_.removeClass('navigation-toggle-two');
|
---|
1272 | body_.removeClass('navigation-toggle-one');
|
---|
1273 | }
|
---|
1274 | }
|
---|
1275 |
|
---|
1276 | return false;
|
---|
1277 | });
|
---|
1278 | $(document).on('click', '.header-toggler a', function () {
|
---|
1279 | $('.header ul.navbar-nav').toggleClass('open');
|
---|
1280 | return false;
|
---|
1281 | });
|
---|
1282 | $(document).on('click', '*', function (e) {
|
---|
1283 | if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
|
---|
1284 | body_.removeClass('navigation-show');
|
---|
1285 | }
|
---|
1286 | });
|
---|
1287 | $(document).on('click', '*', function (e) {
|
---|
1288 | if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
|
---|
1289 | $('.header ul.navbar-nav').removeClass('open');
|
---|
1290 | }
|
---|
1291 | });
|
---|
1292 | /*------------- form validation -------------*/
|
---|
1293 |
|
---|
1294 | window.addEventListener('load', function () {
|
---|
1295 | // Fetch all the forms we want to apply custom Bootstrap validation styles to
|
---|
1296 | var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
|
---|
1297 |
|
---|
1298 | Array.prototype.filter.call(forms, function (form) {
|
---|
1299 | form.addEventListener('submit', function (event) {
|
---|
1300 | if (form.checkValidity() === false) {
|
---|
1301 | event.preventDefault();
|
---|
1302 | event.stopPropagation();
|
---|
1303 | }
|
---|
1304 |
|
---|
1305 | form.classList.add('was-validated');
|
---|
1306 | }, false);
|
---|
1307 | });
|
---|
1308 | }, false);
|
---|
1309 | /*------------- form validation -------------*/
|
---|
1310 |
|
---|
1311 | /*------------- responsive html table -------------*/
|
---|
1312 |
|
---|
1313 | var table_responsive_stack = $(".table-responsive-stack");
|
---|
1314 | table_responsive_stack.find("th").each(function (i) {
|
---|
1315 | $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
|
---|
1316 | $(".table-responsive-stack-thead").hide();
|
---|
1317 | });
|
---|
1318 | table_responsive_stack.each(function () {
|
---|
1319 | var thCount = $(this).find("th").length,
|
---|
1320 | rowGrow = 100 / thCount + "%";
|
---|
1321 | $(this).find("th, td").css("flex-basis", rowGrow);
|
---|
1322 | });
|
---|
1323 |
|
---|
1324 | function flexTable() {
|
---|
1325 | if (wind_.width() < 768) {
|
---|
1326 | $(".table-responsive-stack").each(function (i) {
|
---|
1327 | $(this).find(".table-responsive-stack-thead").show();
|
---|
1328 | $(this).find("thead").hide();
|
---|
1329 | }); // window is less than 768px
|
---|
1330 | } else {
|
---|
1331 | $(".table-responsive-stack").each(function (i) {
|
---|
1332 | $(this).find(".table-responsive-stack-thead").hide();
|
---|
1333 | $(this).find("thead").show();
|
---|
1334 | });
|
---|
1335 | }
|
---|
1336 | }
|
---|
1337 |
|
---|
1338 | flexTable();
|
---|
1339 |
|
---|
1340 | window.onresize = function (event) {
|
---|
1341 | flexTable();
|
---|
1342 | };
|
---|
1343 | /*------------- responsive html table -------------*/
|
---|
1344 |
|
---|
1345 | /*------------- header search -------------*/
|
---|
1346 |
|
---|
1347 |
|
---|
1348 | $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
|
---|
1349 | $('.header .header-body .header-search').show().find('.form-control').focus();
|
---|
1350 | return false;
|
---|
1351 | });
|
---|
1352 | $(document).on('click', '.close-header-search, .close-header-search svg', function () {
|
---|
1353 | $('.header .header-body .header-search').hide();
|
---|
1354 | return false;
|
---|
1355 | });
|
---|
1356 | $(document).on('click', '*', function (e) {
|
---|
1357 | if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
|
---|
1358 | $('.header .header-body .header-search').hide();
|
---|
1359 | }
|
---|
1360 | });
|
---|
1361 | /*------------- header search -------------*/
|
---|
1362 |
|
---|
1363 | /*------------- custom accordion -------------*/
|
---|
1364 |
|
---|
1365 | $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
|
---|
1366 | var $this = $(this);
|
---|
1367 | $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
|
---|
1368 | $this.parent('.accordion-row').toggleClass('open');
|
---|
1369 | return false;
|
---|
1370 | });
|
---|
1371 | /*------------- custom accordion -------------*/
|
---|
1372 |
|
---|
1373 | /*------------- responsive table dropdown -------------*/
|
---|
1374 |
|
---|
1375 | var dropdownMenu,
|
---|
1376 | table_responsive = $('.table-responsive');
|
---|
1377 | table_responsive.on('show.bs.dropdown', function (e) {
|
---|
1378 | dropdownMenu = $(e.target).find('.dropdown-menu');
|
---|
1379 | body_.append(dropdownMenu.detach());
|
---|
1380 | var eOffset = $(e.target).offset();
|
---|
1381 | dropdownMenu.css({
|
---|
1382 | 'display': 'block',
|
---|
1383 | 'top': eOffset.top + $(e.target).outerHeight(),
|
---|
1384 | 'left': eOffset.left,
|
---|
1385 | 'width': '184px',
|
---|
1386 | 'font-size': '14px'
|
---|
1387 | });
|
---|
1388 | dropdownMenu.addClass("mobPosDropdown");
|
---|
1389 | });
|
---|
1390 | table_responsive.on('hide.bs.dropdown', function (e) {
|
---|
1391 | $(e.target).append(dropdownMenu.detach());
|
---|
1392 | dropdownMenu.hide();
|
---|
1393 | });
|
---|
1394 | /*------------- responsive table dropdown -------------*/
|
---|
1395 |
|
---|
1396 | /*------------- chat -------------*/
|
---|
1397 |
|
---|
1398 | $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
|
---|
1399 | $('.chat-block .chat-content').addClass('chat-mobile-open');
|
---|
1400 | return false;
|
---|
1401 | });
|
---|
1402 | $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
|
---|
1403 | $('.chat-block .chat-content').removeClass('chat-mobile-open');
|
---|
1404 | return false;
|
---|
1405 | });
|
---|
1406 | /*------------- chat -------------*/
|
---|
1407 |
|
---|
1408 | /*------------- aside menu toggle -------------*/
|
---|
1409 |
|
---|
1410 | $(document).on('click', '.navigation ul li a', function () {
|
---|
1411 | var $this = $(this);
|
---|
1412 |
|
---|
1413 | if ($this.next('ul').length) {
|
---|
1414 | var sub_menu_arrow = $this.find('.sub-menu-arrow');
|
---|
1415 | sub_menu_arrow.toggleClass('rotate-in');
|
---|
1416 | $this.next('ul').toggle(200);
|
---|
1417 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
1418 | $this.next('ul').find('li ul').slideUp(200);
|
---|
1419 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
1420 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
1421 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
1422 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
1423 |
|
---|
1424 | if (sub_menu_arrow.hasClass('rotate-in')) {
|
---|
1425 | setTimeout(function () {
|
---|
1426 | sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
|
---|
1427 | }, 200);
|
---|
1428 | } else {
|
---|
1429 | sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
|
---|
1430 | }
|
---|
1431 |
|
---|
1432 | if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
|
---|
1433 | setTimeout(function (e) {
|
---|
1434 | $('.navigation .navigation-menu-body').getNiceScroll().resize();
|
---|
1435 | }, 300);
|
---|
1436 | }
|
---|
1437 |
|
---|
1438 | return false;
|
---|
1439 | }
|
---|
1440 | });
|
---|
1441 | $(document).on('click', '.horizontal-navigation ul li a', function () {
|
---|
1442 | var $this = $(this);
|
---|
1443 |
|
---|
1444 | if ($this.next('ul').length) {
|
---|
1445 | $this.next('ul').toggle(200);
|
---|
1446 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
1447 | $this.next('ul').find('li ul').slideUp(200);
|
---|
1448 | return false;
|
---|
1449 | }
|
---|
1450 | });
|
---|
1451 | /*------------- aside menu toggle -------------*/
|
---|
1452 |
|
---|
1453 | /*------------- other -------------*/
|
---|
1454 |
|
---|
1455 | $(document).on('click', '.dropdown-menu', function (e) {
|
---|
1456 | e.stopPropagation();
|
---|
1457 | });
|
---|
1458 | $('#exampleModal').on('show.bs.modal', function (event) {
|
---|
1459 | var button = $(event.relatedTarget),
|
---|
1460 | recipient = button.data('whatever'),
|
---|
1461 | modal = $(this);
|
---|
1462 | modal.find('.modal-title').text('New message to ' + recipient);
|
---|
1463 | modal.find('.modal-body input').val(recipient);
|
---|
1464 | });
|
---|
1465 | $('[data-toggle="tooltip"]').tooltip({
|
---|
1466 | container: 'body'
|
---|
1467 | });
|
---|
1468 | $('[data-toggle="popover"]').popover();
|
---|
1469 | $('.carousel').carousel();
|
---|
1470 |
|
---|
1471 | if (wind_.width() >= 992) {
|
---|
1472 | $('.card-scroll').niceScroll();
|
---|
1473 | $('.table-responsive').niceScroll();
|
---|
1474 | $('.sidebar-group .sidebar').niceScroll();
|
---|
1475 | $('.app-block .app-content .app-lists').niceScroll();
|
---|
1476 | $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
|
---|
1477 | $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
|
---|
1478 | var chat_messages = $('.chat-block .chat-content .messages');
|
---|
1479 |
|
---|
1480 | if (chat_messages.length) {
|
---|
1481 | chat_messages.niceScroll({
|
---|
1482 | horizrailenabled: false
|
---|
1483 | });
|
---|
1484 | chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
|
---|
1485 | }
|
---|
1486 | }
|
---|
1487 |
|
---|
1488 | if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
|
---|
1489 | $('.navigation .navigation-menu-body').niceScroll();
|
---|
1490 | }
|
---|
1491 |
|
---|
1492 | $('.dropdown-menu ul.list-group').niceScroll();
|
---|
1493 | /* Theme Switcher */
|
---|
1494 |
|
---|
1495 | /* var path = window.location.pathname;
|
---|
1496 | var page = path.split("/").pop();
|
---|
1497 | var theme_switcher_html = '<div class="theme-switcher open"> \n\
|
---|
1498 | <div class="theme-switcher-button"> \n\
|
---|
1499 | <i class="fa fa-cog"></i> \n\
|
---|
1500 | </div> \n\
|
---|
1501 | <div class="theme-switcher-panel"> \n\
|
---|
1502 | <div class="card"> \n\
|
---|
1503 | <div class="card-body"> \n\
|
---|
1504 | <h6 class="card-title">Theme Switcher</h6> \n\
|
---|
1505 | <div class="form-group mb-2"> \n\
|
---|
1506 | <div class="custom-control custom-switch"> \n\
|
---|
1507 | <input type="checkbox" class="custom-control-input" id="dark"> \n\
|
---|
1508 | <label class="custom-control-label" for="dark">Dark</label> \n\
|
---|
1509 | </div> \n\
|
---|
1510 | </div> \n\
|
---|
1511 | <div class="form-group mb-2"> \n\
|
---|
1512 | <div class="custom-control custom-switch"> \n\
|
---|
1513 | <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
|
---|
1514 | <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
|
---|
1515 | </div> \n\
|
---|
1516 | </div> \n\
|
---|
1517 | <div class="form-group mb-2"> \n\
|
---|
1518 | <div class="custom-control custom-switch"> \n\
|
---|
1519 | <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
|
---|
1520 | <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
|
---|
1521 | </div> \n\
|
---|
1522 | </div> \n\
|
---|
1523 | <div class="form-group mb-2"> \n\
|
---|
1524 | <div class="custom-control custom-switch"> \n\
|
---|
1525 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
|
---|
1526 | <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
|
---|
1527 | </div> \n\
|
---|
1528 | </div> \n\
|
---|
1529 | <div class="form-group mb-2"> \n\
|
---|
1530 | <div class="custom-control custom-switch"> \n\
|
---|
1531 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
|
---|
1532 | <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
|
---|
1533 | </div> \n\
|
---|
1534 | </div> \n\
|
---|
1535 | <div class="form-group mb-2"> \n\
|
---|
1536 | <div class="custom-control custom-switch"> \n\
|
---|
1537 | <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
|
---|
1538 | <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
|
---|
1539 | </div> \n\
|
---|
1540 | </div> \n\
|
---|
1541 | <div class="form-group mb-2"> \n\
|
---|
1542 | <div class="custom-control custom-switch"> \n\
|
---|
1543 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
|
---|
1544 | <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
|
---|
1545 | </div> \n\
|
---|
1546 | </div> \n\
|
---|
1547 | <div class="form-group mb-2"> \n\
|
---|
1548 | <div class="custom-control custom-switch"> \n\
|
---|
1549 | <input type="checkbox" class="custom-control-input" id="light-header"> \n\
|
---|
1550 | <label class="custom-control-label" for="light-header">Light header</label> \n\
|
---|
1551 | </div> \n\
|
---|
1552 | </div> \n\
|
---|
1553 | <div class="form-group mb-2"> \n\
|
---|
1554 | <div class="custom-control custom-switch"> \n\
|
---|
1555 | <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
|
---|
1556 | <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
|
---|
1557 | </div> \n\
|
---|
1558 | </div> \n\
|
---|
1559 | </div> \n\
|
---|
1560 | </div> \n\
|
---|
1561 | </div> \n\
|
---|
1562 | </div>';
|
---|
1563 | $('body').append(theme_switcher_html);
|
---|
1564 | $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
|
---|
1565 | var id = $(this).attr('id');
|
---|
1566 | if (id === 'sticky-navigation') {
|
---|
1567 | if ($(this).prop('checked')) {
|
---|
1568 | $('.navigation').niceScroll().resize();
|
---|
1569 | } else {
|
---|
1570 | $('.navigation').niceScroll().remove();
|
---|
1571 | }
|
---|
1572 | if ($('body').hasClass('small-navigation')) {
|
---|
1573 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
1574 | if ($(this).find('> a').next('ul').length) {
|
---|
1575 | // Dropdown add header title
|
---|
1576 | $(this).find('.dropdown-divider').remove();
|
---|
1577 | } else {
|
---|
1578 | // Add tooltip
|
---|
1579 | $(this).find('> a').tooltip('dispose');
|
---|
1580 | }
|
---|
1581 | });
|
---|
1582 | $('body').removeClass('small-navigation');
|
---|
1583 | $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
|
---|
1584 | }
|
---|
1585 | if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
|
---|
1586 | $('body').removeClass('hidden-navigation');
|
---|
1587 | $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
|
---|
1588 | }
|
---|
1589 | }
|
---|
1590 | if (id === 'small-navigation') {
|
---|
1591 | if ($(this).prop('checked')) {
|
---|
1592 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
1593 | if ($(this).find('> a').next('ul').length) {
|
---|
1594 | // Dropdown add header title
|
---|
1595 | $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
|
---|
1596 | } else {
|
---|
1597 | // Add tooltip
|
---|
1598 | $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
|
---|
1599 | $(this).find('> a').tooltip({
|
---|
1600 | placement: "right"
|
---|
1601 | });
|
---|
1602 | }
|
---|
1603 | });
|
---|
1604 | } else {
|
---|
1605 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
1606 | if ($(this).find('> a').next('ul').length) {
|
---|
1607 | // Dropdown add header title
|
---|
1608 | $(this).find('.dropdown-divider').remove();
|
---|
1609 | } else {
|
---|
1610 | // Add tooltip
|
---|
1611 | $(this).find('> a').tooltip('dispose');
|
---|
1612 | }
|
---|
1613 | });
|
---|
1614 | }
|
---|
1615 | if ($('body').hasClass('sticky-navigation')) {
|
---|
1616 | $('body').removeClass('sticky-navigation');
|
---|
1617 | $('.navigation').niceScroll().remove();
|
---|
1618 | $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
|
---|
1619 | }
|
---|
1620 | if ($('body').hasClass('hidden-navigation')) {
|
---|
1621 | $('body').removeClass('hidden-navigation');
|
---|
1622 | $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
|
---|
1623 | }
|
---|
1624 | }
|
---|
1625 | if (id === 'hidden-navigation') {
|
---|
1626 | setTimeout(function () {
|
---|
1627 | $('.navigation').niceScroll().resize();
|
---|
1628 | $('.app-block .app-content .app-lists').niceScroll().resize();
|
---|
1629 | $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
|
---|
1630 | $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
|
---|
1631 | }, 200);
|
---|
1632 | if (!$(this).prop('checked')) {
|
---|
1633 | $.removeOverlay();
|
---|
1634 | $('.navigation').removeClass('open');
|
---|
1635 | }
|
---|
1636 | if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
|
---|
1637 | if ($('body').hasClass('sticky-navigation')) {
|
---|
1638 | $('body').removeClass('sticky-navigation');
|
---|
1639 | $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
|
---|
1640 | }
|
---|
1641 | }
|
---|
1642 | if ($('body').hasClass('small-navigation')) {
|
---|
1643 | $('.navigation .navigation-menu-body > ul > li').each(function () {
|
---|
1644 | if ($(this).find('> a').next('ul').length) {
|
---|
1645 | // Dropdown add header title
|
---|
1646 | $(this).find('.dropdown-divider').remove();
|
---|
1647 | } else {
|
---|
1648 | // Add tooltip
|
---|
1649 | $(this).find('> a').tooltip('dispose');
|
---|
1650 | }
|
---|
1651 | });
|
---|
1652 | $('body').removeClass('small-navigation');
|
---|
1653 | $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
|
---|
1654 | }
|
---|
1655 | }
|
---|
1656 | if (id === 'dark') {
|
---|
1657 | if ($('body').hasClass('semi-dark')) {
|
---|
1658 | $('body').removeClass('semi-dark');
|
---|
1659 | $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
|
---|
1660 | }
|
---|
1661 | }
|
---|
1662 | if (id === 'semi-dark') {
|
---|
1663 | if ($('body').hasClass('dark')) {
|
---|
1664 | $('body').removeClass('dark');
|
---|
1665 | $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
|
---|
1666 | }
|
---|
1667 | }
|
---|
1668 | $('body').toggleClass(id);
|
---|
1669 | });
|
---|
1670 | $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
|
---|
1671 | $('.theme-switcher').toggleClass('open');
|
---|
1672 | }); */
|
---|
1673 | })(jQuery);
|
---|
1674 | /***/
|
---|
1675 |
|
---|
1676 | },
|
---|
1677 |
|
---|
1678 | /***/
|
---|
1679 | 0: function _(module, exports, __nested_webpack_require_30526__) {
|
---|
1680 | __nested_webpack_require_30526__(
|
---|
1681 | /**/
|
---|
1682 | "./resources/js/app.js");
|
---|
1683 |
|
---|
1684 | module.exports = __nested_webpack_require_30526__(
|
---|
1685 | /**/
|
---|
1686 | "./public/assets/sass/app.scss");
|
---|
1687 | /***/
|
---|
1688 | }
|
---|
1689 | /******/
|
---|
1690 |
|
---|
1691 | });
|
---|
1692 | })();
|
---|
1693 |
|
---|
1694 | // This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
---|
1695 | (() => {
|
---|
1696 | "use strict";
|
---|
1697 | /*!***************************************!*\
|
---|
1698 | !*** ./resources/assets/js/custom.js ***!
|
---|
1699 | \***************************************/
|
---|
1700 |
|
---|
1701 |
|
---|
1702 | (function ($) {
|
---|
1703 | $(document).on('click', '.layout-builder .layout-builder-toggle', function () {
|
---|
1704 | $('.layout-builder').toggleClass('show');
|
---|
1705 | });
|
---|
1706 | $(window).on('load', function () {
|
---|
1707 | setTimeout(function () {
|
---|
1708 | $('.layout-builder').removeClass('show');
|
---|
1709 | }, 500);
|
---|
1710 | });
|
---|
1711 | $('.body').append("\n <div class=\"layout-builder show\">\n <div class=\"layout-builder-toggle shw\">\n <i class=\"ti-settings\"></i>\n </div>\n <div class=\"layout-builder-toggle hdn\">\n <i class=\"ti-close\"></i>\n </div>\n <div class=\"layout-builder-body\">\n <h5>Customizer</h5>\n <div class=\"mb-3\">\n <p>Layout</p>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"horizontal-side-menu\" data-layout=\"horizontal-side-menu\">\n <label class=\"custom-control-label\" for=\"horizontal-side-menu\">Horizontal Menu</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"icon-side-menu\" data-layout=\"icon-side-menu\">\n <label class=\"custom-control-label\" for=\"icon-side-menu\">Icon Menu</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"hidden-side-menu\" data-layout=\"hidden-side-menu\">\n <label class=\"custom-control-label\" for=\"hidden-side-menu\">Hidden Menu</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"layout-container-1\" data-layout=\"layout-container icon-side-menu\">\n <label class=\"custom-control-label\" for=\"layout-container-1\">Container Layout 1</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"layout-container-2\" data-layout=\"layout-container horizontal-side-menu\">\n <label class=\"custom-control-label\" for=\"layout-container-2\">Container Layout 2</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"layout-container-3\" data-layout=\"layout-container hidden-side-menu\">\n <label class=\"custom-control-label\" for=\"layout-container-3\">Container Layout 3</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"dark-1\" data-layout=\"dark\">\n <label class=\"custom-control-label\" for=\"dark-1\">Dark Layout 1</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"dark-2\" data-layout=\"layout-container dark icon-side-menu\">\n <label class=\"custom-control-label\" for=\"dark-2\">Dark Layout 2</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"dark-3\" data-layout=\"layout-container dark horizontal-side-menu\">\n <label class=\"custom-control-label\" for=\"dark-3\">Dark Layout 3</label>\n </div>\n <div class=\"custom-control custom-radio\">\n <input type=\"radio\" class=\"custom-control-input\" name=\"layout\" id=\"dark-4\" data-layout=\"layout-container dark hidden-side-menu\">\n <label class=\"custom-control-label\" for=\"dark-4\">Dark Layout 4</label>\n </div>\n </div>\n <button id=\"btn-layout-builder-reset\" class=\"btn btn-danger btn-uppercase\">Reset</button>\n <div class=\"layout-alert mt-3\">\n <i class=\"fa fa-warning m-r-5 text-warning\"></i>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 </div>\n </div>\n </div>");
|
---|
1712 | var site_layout = localStorage.getItem('site_layout');
|
---|
1713 | $('body').addClass(site_layout);
|
---|
1714 | $('.layout-builder .layout-builder-body input[type="radio"][data-layout="' + $('body').attr('class') + '"]').prop('checked', true);
|
---|
1715 | $('.layout-builder .layout-builder-body input[type="radio"]').click(function () {
|
---|
1716 | var class_names = '';
|
---|
1717 | $('.layout-builder .layout-builder-body input[type="radio"]:checked').each(function () {
|
---|
1718 | class_names += ' ' + $(this).data('layout');
|
---|
1719 | });
|
---|
1720 | localStorage.setItem('site_layout', class_names);
|
---|
1721 | window.location.href = window.location.href.replace('#', '');
|
---|
1722 | });
|
---|
1723 | $(document).on('click', '#btn-layout-builder', function () {});
|
---|
1724 | $(document).on('click', '#btn-layout-builder-reset', function () {
|
---|
1725 | localStorage.removeItem('site_layout');
|
---|
1726 | localStorage.removeItem('site_layout_dark');
|
---|
1727 | window.location.href = window.location.href.replace('#', '');
|
---|
1728 | });
|
---|
1729 | $(window).on('load', function () {
|
---|
1730 | if ($('body').hasClass('horizontal-side-menu') && $(window).width() > 768) {
|
---|
1731 | if ($('body').hasClass('layout-container')) {
|
---|
1732 | $('.side-menu .side-menu-body').wrap('<div class="container"></div>');
|
---|
1733 | } else {
|
---|
1734 | $('.side-menu .side-menu-body').wrap('<div class="container"></div>');
|
---|
1735 | }
|
---|
1736 |
|
---|
1737 | setTimeout(function () {
|
---|
1738 | $('.side-menu .side-menu-body > ul').append('<li><a href="#"><span>Other</span></a><ul></ul></li>');
|
---|
1739 | }, 100);
|
---|
1740 | $('.side-menu .side-menu-body > ul > li').each(function () {
|
---|
1741 | var index = $(this).index(),
|
---|
1742 | $this = $(this);
|
---|
1743 |
|
---|
1744 | if (index > 7) {
|
---|
1745 | setTimeout(function () {
|
---|
1746 | $('.side-menu .side-menu-body > ul > li:last-child > ul').append($this.clone());
|
---|
1747 | $this.addClass('d-none');
|
---|
1748 | }, 100);
|
---|
1749 | }
|
---|
1750 | });
|
---|
1751 | }
|
---|
1752 | });
|
---|
1753 | $(document).on('click', '[data-attr="layout-builder-toggle"]', function () {
|
---|
1754 | $('.layout-builder').toggleClass('show');
|
---|
1755 | return false;
|
---|
1756 | });
|
---|
1757 | })(jQuery);
|
---|
1758 | })();
|
---|
1759 |
|
---|
1760 | // This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
---|
1761 | (() => {
|
---|
1762 | "use strict";
|
---|
1763 | /*!******************************************!*\
|
---|
1764 | !*** ./resources/assets/js/Toast.min.js ***!
|
---|
1765 | \******************************************/
|
---|
1766 |
|
---|
1767 |
|
---|
1768 | function Toast(t) {
|
---|
1769 | if (!t.message) throw new Error("Toast.js - You need to set a message to display");
|
---|
1770 | this.options = t, this.options.type = t.type || "default", this.toastContainerEl = document.querySelector(".toastjs-container"), this.toastEl = document.querySelector(".toastjs"), this._init();
|
---|
1771 | }
|
---|
1772 |
|
---|
1773 | Toast.prototype._createElements = function () {
|
---|
1774 | var t = this;
|
---|
1775 | return new Promise(function (e, o) {
|
---|
1776 | 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 () {
|
---|
1777 | return e();
|
---|
1778 | }, 500);
|
---|
1779 | });
|
---|
1780 | }, Toast.prototype._addEventListeners = function () {
|
---|
1781 | var t = this;
|
---|
1782 |
|
---|
1783 | if (document.querySelector(".toastjs-btn--close").addEventListener("click", function () {
|
---|
1784 | t._close();
|
---|
1785 | }), this.options.customButtons) {
|
---|
1786 | var e = Array.prototype.slice.call(document.querySelectorAll(".toastjs-btn--custom"));
|
---|
1787 | e.map(function (e, o) {
|
---|
1788 | e.addEventListener("click", function (e) {
|
---|
1789 | return t.options.customButtons[o].onClick(e);
|
---|
1790 | });
|
---|
1791 | });
|
---|
1792 | }
|
---|
1793 | }, Toast.prototype._close = function () {
|
---|
1794 | var t = this;
|
---|
1795 | return new Promise(function (e, o) {
|
---|
1796 | t.toastContainerEl.setAttribute("aria-hidden", !0), setTimeout(function () {
|
---|
1797 | t.toastEl.innerHTML = "", t.toastEl.classList.remove("default", "success", "warning", "danger"), t.focusedElBeforeOpen && t.focusedElBeforeOpen.focus(), e();
|
---|
1798 | }, 1e3);
|
---|
1799 | });
|
---|
1800 | }, Toast.prototype._open = function () {
|
---|
1801 | this.toastEl.classList.add(this.options.type), this.toastContainerEl.setAttribute("aria-hidden", !1);
|
---|
1802 | var t = "";
|
---|
1803 | this.options.customButtons && (t = this.options.customButtons.map(function (t, e) {
|
---|
1804 | return '<button type="button" class="toastjs-btn toastjs-btn--custom">' + t.text + "</button>";
|
---|
1805 | }), t = t.join("")), this.toastEl.innerHTML = "\n <p>" + this.options.message + '</p>\n <button type="button" class="toastjs-btn toastjs-btn--close">Close</button>\n ' + t + "\n ", this.focusedElBeforeOpen = document.activeElement, document.querySelector(".toastjs-btn--close").focus();
|
---|
1806 | }, Toast.prototype._init = function () {
|
---|
1807 | var t = this;
|
---|
1808 | Promise.resolve().then(function () {
|
---|
1809 | return t.toastContainerEl ? Promise.resolve() : t._createElements();
|
---|
1810 | }).then(function () {
|
---|
1811 | return "false" == t.toastContainerEl.getAttribute("aria-hidden") ? t._close() : Promise.resolve();
|
---|
1812 | }).then(function () {
|
---|
1813 | t._open(), t._addEventListeners();
|
---|
1814 | });
|
---|
1815 | };
|
---|
1816 | })();
|
---|
1817 |
|
---|
1818 | /******/ })()
|
---|
1819 | ; |
---|