[24a616f] | 1 | /******/ (() => { // webpackBootstrap
|
---|
| 2 | var __webpack_exports__ = {};
|
---|
| 3 | /*!****************************************!*\
|
---|
| 4 | !*** ./resources/assets/js/app.min.js ***!
|
---|
| 5 | \****************************************/
|
---|
| 6 | 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); }
|
---|
| 7 |
|
---|
[194a359] | 8 | /******/
|
---|
[24a616f] | 9 | (function (modules) {
|
---|
| 10 | // webpackBootstrap
|
---|
| 11 |
|
---|
| 12 | /******/
|
---|
| 13 | // The module cache
|
---|
| 14 |
|
---|
| 15 | /******/
|
---|
| 16 | var installedModules = {};
|
---|
| 17 | /******/
|
---|
| 18 |
|
---|
| 19 | /******/
|
---|
| 20 | // The require function
|
---|
| 21 |
|
---|
| 22 | /******/
|
---|
| 23 |
|
---|
| 24 | function __nested_webpack_require_572__(moduleId) {
|
---|
| 25 | /******/
|
---|
| 26 |
|
---|
| 27 | /******/
|
---|
| 28 | // Check if module is in cache
|
---|
| 29 |
|
---|
| 30 | /******/
|
---|
| 31 | if (installedModules[moduleId]) {
|
---|
| 32 | /******/
|
---|
| 33 | return installedModules[moduleId].exports;
|
---|
| 34 | /******/
|
---|
[194a359] | 35 | }
|
---|
[24a616f] | 36 | /******/
|
---|
| 37 | // Create a new module (and put it into the cache)
|
---|
| 38 |
|
---|
| 39 | /******/
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | var module = installedModules[moduleId] = {
|
---|
| 43 | /******/
|
---|
| 44 | i: moduleId,
|
---|
[194a359] | 45 |
|
---|
[24a616f] | 46 | /******/
|
---|
| 47 | l: false,
|
---|
[194a359] | 48 |
|
---|
[24a616f] | 49 | /******/
|
---|
| 50 | exports: {}
|
---|
| 51 | /******/
|
---|
| 52 |
|
---|
| 53 | };
|
---|
| 54 | /******/
|
---|
| 55 |
|
---|
| 56 | /******/
|
---|
| 57 | // Execute the module function
|
---|
| 58 |
|
---|
| 59 | /******/
|
---|
| 60 |
|
---|
| 61 | modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_572__);
|
---|
| 62 | /******/
|
---|
| 63 |
|
---|
| 64 | /******/
|
---|
| 65 | // Flag the module as loaded
|
---|
| 66 |
|
---|
| 67 | /******/
|
---|
| 68 |
|
---|
| 69 | module.l = true;
|
---|
| 70 | /******/
|
---|
| 71 |
|
---|
| 72 | /******/
|
---|
| 73 | // Return the exports of the module
|
---|
| 74 |
|
---|
| 75 | /******/
|
---|
| 76 |
|
---|
| 77 | return module.exports;
|
---|
| 78 | /******/
|
---|
| 79 | }
|
---|
| 80 | /******/
|
---|
| 81 |
|
---|
| 82 | /******/
|
---|
| 83 |
|
---|
| 84 | /******/
|
---|
| 85 | // expose the modules object (__webpack_modules__)
|
---|
| 86 |
|
---|
| 87 | /******/
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | __nested_webpack_require_572__.m = modules;
|
---|
| 91 | /******/
|
---|
| 92 |
|
---|
| 93 | /******/
|
---|
| 94 | // expose the module cache
|
---|
| 95 |
|
---|
| 96 | /******/
|
---|
| 97 |
|
---|
| 98 | __nested_webpack_require_572__.c = installedModules;
|
---|
| 99 | /******/
|
---|
| 100 |
|
---|
| 101 | /******/
|
---|
| 102 | // define getter function for harmony exports
|
---|
| 103 |
|
---|
| 104 | /******/
|
---|
| 105 |
|
---|
| 106 | __nested_webpack_require_572__.d = function (exports, name, getter) {
|
---|
| 107 | /******/
|
---|
| 108 | if (!__nested_webpack_require_572__.o(exports, name)) {
|
---|
| 109 | /******/
|
---|
| 110 | Object.defineProperty(exports, name, {
|
---|
| 111 | enumerable: true,
|
---|
| 112 | get: getter
|
---|
| 113 | });
|
---|
| 114 | /******/
|
---|
[194a359] | 115 | }
|
---|
[24a616f] | 116 | /******/
|
---|
| 117 |
|
---|
| 118 | };
|
---|
| 119 | /******/
|
---|
| 120 |
|
---|
| 121 | /******/
|
---|
| 122 | // define __esModule on exports
|
---|
[194a359] | 123 |
|
---|
[24a616f] | 124 | /******/
|
---|
| 125 |
|
---|
| 126 |
|
---|
| 127 | __nested_webpack_require_572__.r = function (exports) {
|
---|
| 128 | /******/
|
---|
| 129 | if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
---|
| 130 | /******/
|
---|
| 131 | Object.defineProperty(exports, Symbol.toStringTag, {
|
---|
| 132 | value: 'Module'
|
---|
| 133 | });
|
---|
| 134 | /******/
|
---|
[194a359] | 135 | }
|
---|
[24a616f] | 136 | /******/
|
---|
| 137 |
|
---|
| 138 |
|
---|
| 139 | Object.defineProperty(exports, '__esModule', {
|
---|
| 140 | value: true
|
---|
| 141 | });
|
---|
| 142 | /******/
|
---|
| 143 | };
|
---|
| 144 | /******/
|
---|
| 145 |
|
---|
| 146 | /******/
|
---|
| 147 | // create a fake namespace object
|
---|
| 148 |
|
---|
| 149 | /******/
|
---|
| 150 | // mode & 1: value is a module id, require it
|
---|
| 151 |
|
---|
| 152 | /******/
|
---|
| 153 | // mode & 2: merge all properties of value into the ns
|
---|
| 154 |
|
---|
| 155 | /******/
|
---|
| 156 | // mode & 4: return value when already ns object
|
---|
| 157 |
|
---|
| 158 | /******/
|
---|
| 159 | // mode & 8|1: behave like require
|
---|
| 160 |
|
---|
| 161 | /******/
|
---|
| 162 |
|
---|
| 163 |
|
---|
| 164 | __nested_webpack_require_572__.t = function (value, mode) {
|
---|
| 165 | /******/
|
---|
| 166 | if (mode & 1) value = __nested_webpack_require_572__(value);
|
---|
| 167 | /******/
|
---|
| 168 |
|
---|
| 169 | if (mode & 8) return value;
|
---|
| 170 | /******/
|
---|
| 171 |
|
---|
| 172 | if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value;
|
---|
| 173 | /******/
|
---|
| 174 |
|
---|
| 175 | var ns = Object.create(null);
|
---|
| 176 | /******/
|
---|
| 177 |
|
---|
| 178 | __nested_webpack_require_572__.r(ns);
|
---|
| 179 | /******/
|
---|
| 180 |
|
---|
| 181 |
|
---|
| 182 | Object.defineProperty(ns, 'default', {
|
---|
| 183 | enumerable: true,
|
---|
| 184 | value: value
|
---|
| 185 | });
|
---|
| 186 | /******/
|
---|
| 187 |
|
---|
| 188 | if (mode & 2 && typeof value != 'string') for (var key in value) {
|
---|
| 189 | __nested_webpack_require_572__.d(ns, key, function (key) {
|
---|
| 190 | return value[key];
|
---|
| 191 | }.bind(null, key));
|
---|
[194a359] | 192 | }
|
---|
[24a616f] | 193 | /******/
|
---|
| 194 |
|
---|
| 195 | return ns;
|
---|
| 196 | /******/
|
---|
| 197 | };
|
---|
| 198 | /******/
|
---|
| 199 |
|
---|
| 200 | /******/
|
---|
| 201 | // getDefaultExport function for compatibility with non-harmony modules
|
---|
| 202 |
|
---|
| 203 | /******/
|
---|
| 204 |
|
---|
| 205 |
|
---|
| 206 | __nested_webpack_require_572__.n = function (module) {
|
---|
| 207 | /******/
|
---|
| 208 | var getter = module && module.__esModule ?
|
---|
| 209 | /******/
|
---|
| 210 | function getDefault() {
|
---|
| 211 | return module['default'];
|
---|
| 212 | } :
|
---|
| 213 | /******/
|
---|
| 214 | function getModuleExports() {
|
---|
| 215 | return module;
|
---|
| 216 | };
|
---|
| 217 | /******/
|
---|
| 218 |
|
---|
| 219 | __nested_webpack_require_572__.d(getter, 'a', getter);
|
---|
| 220 | /******/
|
---|
| 221 |
|
---|
| 222 |
|
---|
| 223 | return getter;
|
---|
| 224 | /******/
|
---|
[194a359] | 225 | };
|
---|
[24a616f] | 226 | /******/
|
---|
| 227 |
|
---|
| 228 | /******/
|
---|
| 229 | // Object.prototype.hasOwnProperty.call
|
---|
[194a359] | 230 |
|
---|
[24a616f] | 231 | /******/
|
---|
| 232 |
|
---|
| 233 |
|
---|
| 234 | __nested_webpack_require_572__.o = function (object, property) {
|
---|
| 235 | return Object.prototype.hasOwnProperty.call(object, property);
|
---|
[194a359] | 236 | };
|
---|
[24a616f] | 237 | /******/
|
---|
[194a359] | 238 |
|
---|
[24a616f] | 239 | /******/
|
---|
| 240 | // __webpack_public_path__
|
---|
[194a359] | 241 |
|
---|
[24a616f] | 242 | /******/
|
---|
[194a359] | 243 |
|
---|
[24a616f] | 244 |
|
---|
| 245 | __nested_webpack_require_572__.p = "/";
|
---|
| 246 | /******/
|
---|
| 247 |
|
---|
| 248 | /******/
|
---|
| 249 |
|
---|
| 250 | /******/
|
---|
| 251 | // Load entry module and return exports
|
---|
| 252 |
|
---|
| 253 | /******/
|
---|
| 254 |
|
---|
| 255 | return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0);
|
---|
| 256 | /******/
|
---|
| 257 | })({
|
---|
| 258 | /***/
|
---|
| 259 | "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin
|
---|
| 260 |
|
---|
| 261 | /***/
|
---|
| 262 | },
|
---|
| 263 |
|
---|
| 264 | /***/
|
---|
| 265 | "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) {
|
---|
| 266 | "use strict";
|
---|
| 267 |
|
---|
| 268 | (function ($) {
|
---|
| 269 | var wind_ = $(window),
|
---|
| 270 | body_ = $('body');
|
---|
| 271 | feather.replace({
|
---|
| 272 | 'stroke-width': 1.5
|
---|
[194a359] | 273 | });
|
---|
[24a616f] | 274 | $(document).on('click', '[data-toggle="fullscreen"]', function () {
|
---|
| 275 | $(this).toggleClass('active-fullscreen');
|
---|
[194a359] | 276 |
|
---|
[24a616f] | 277 | if (document.fullscreenEnabled) {
|
---|
| 278 | if ($(this).hasClass("active-fullscreen")) {
|
---|
| 279 | document.documentElement.requestFullscreen();
|
---|
| 280 | } else {
|
---|
| 281 | document.exitFullscreen();
|
---|
| 282 | }
|
---|
| 283 | } else {
|
---|
| 284 | alert("Your browser does not support fullscreen.");
|
---|
[194a359] | 285 | }
|
---|
[24a616f] | 286 |
|
---|
| 287 | return false;
|
---|
[194a359] | 288 | });
|
---|
[24a616f] | 289 | $(document).on('click', '.overlay', function () {
|
---|
| 290 | $.removeOverlay();
|
---|
[194a359] | 291 |
|
---|
[24a616f] | 292 | if (body_.hasClass('horizontal-navigation')) {
|
---|
| 293 | $('.horizontal-navigation').removeClass('open');
|
---|
| 294 | } else {
|
---|
| 295 | $('.navigation').removeClass('open');
|
---|
| 296 | }
|
---|
[194a359] | 297 |
|
---|
[24a616f] | 298 | body_.removeClass('navigation-show');
|
---|
| 299 | });
|
---|
| 300 | $(document).on('click', '[data-sidebar-target]', function () {
|
---|
| 301 | var target = $(this).data('sidebar-target');
|
---|
| 302 | $('body').addClass('no-scroll');
|
---|
| 303 | $('.sidebar-group').addClass('show');
|
---|
| 304 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
| 305 | $('.sidebar-group .sidebar' + target).addClass('show');
|
---|
| 306 | return false;
|
---|
| 307 | });
|
---|
| 308 | $(document).on('click', '.sidebar-group', function (e) {
|
---|
| 309 | if ($(e.target).is($('.sidebar-group'))) {
|
---|
| 310 | $('.sidebar-group').removeClass('show');
|
---|
| 311 | $('body').removeClass('no-scroll');
|
---|
| 312 | $('.sidebar-group .sidebar').removeClass('show');
|
---|
| 313 | }
|
---|
| 314 | }); // Active pages, automatically show on the menu
|
---|
| 315 |
|
---|
| 316 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
| 317 | $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
|
---|
| 318 | $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
|
---|
| 319 | $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
|
---|
| 320 | /*------------- create/remove overlay -------------*/
|
---|
| 321 |
|
---|
| 322 | $.createOverlay = function () {
|
---|
| 323 | if ($('.overlay').length < 1) {
|
---|
| 324 | body_.addClass('no-scroll').append('<div class="overlay"></div>');
|
---|
| 325 | $('.overlay').addClass('show');
|
---|
| 326 | }
|
---|
| 327 | };
|
---|
[194a359] | 328 |
|
---|
[24a616f] | 329 | $.removeOverlay = function () {
|
---|
| 330 | body_.removeClass('no-scroll');
|
---|
| 331 | $('.overlay').remove();
|
---|
| 332 | };
|
---|
| 333 | /*------------- create/remove overlay -------------*/
|
---|
[194a359] | 334 |
|
---|
| 335 |
|
---|
[24a616f] | 336 | $('[data-backround-image]').each(function (e) {
|
---|
| 337 | $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
|
---|
| 338 | });
|
---|
| 339 | /*------------- page loader -------------*/
|
---|
[194a359] | 340 |
|
---|
[24a616f] | 341 | wind_.on('load', function () {
|
---|
| 342 | $('.preloader').fadeOut(400, function () {
|
---|
| 343 | setTimeout(function () {
|
---|
| 344 | toastr.options = {
|
---|
| 345 | timeOut: 2000,
|
---|
| 346 | progressBar: true,
|
---|
| 347 | showMethod: "slideDown",
|
---|
| 348 | hideMethod: "slideUp",
|
---|
| 349 | showDuration: 200,
|
---|
| 350 | hideDuration: 200,
|
---|
| 351 | positionClass: "toast-top-center"
|
---|
| 352 | }; //toastr.success('Welcome');
|
---|
| 353 |
|
---|
| 354 | $('.theme-switcher').removeClass('open');
|
---|
| 355 | }, 500); // $('.theme-switcher').css('opacity', 1);
|
---|
| 356 | });
|
---|
[194a359] | 357 | });
|
---|
[24a616f] | 358 | /*------------- page loader -------------*/
|
---|
[194a359] | 359 |
|
---|
[24a616f] | 360 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
[194a359] | 361 |
|
---|
[24a616f] | 362 | wind_.on('load', function () {
|
---|
[194a359] | 363 | setTimeout(function () {
|
---|
[24a616f] | 364 | $('.navigation .navigation-menu-body ul li a').each(function () {
|
---|
| 365 | var $this = $(this);
|
---|
| 366 |
|
---|
| 367 | if ($this.next('ul').length) {
|
---|
| 368 | $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
|
---|
| 369 | }
|
---|
| 370 | });
|
---|
| 371 | $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
|
---|
| 372 | $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
|
---|
| 373 | var $this = $(this);
|
---|
| 374 |
|
---|
| 375 | if ($this.next('ul').length) {
|
---|
| 376 | $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
|
---|
| 377 | }
|
---|
| 378 | });
|
---|
[194a359] | 379 | }, 200);
|
---|
[24a616f] | 380 | });
|
---|
| 381 | /*------------- side menu (sub menü arrow) -------------*/
|
---|
[194a359] | 382 |
|
---|
[24a616f] | 383 | $(document).on('click', '[data-action="navigation-toggler"]', function () {
|
---|
| 384 | if (body_.hasClass('horizontal-navigation')) {
|
---|
| 385 | $('.horizontal-navigation').toggleClass('open');
|
---|
| 386 | } else {
|
---|
| 387 | $('.navigation').toggleClass('open');
|
---|
| 388 | }
|
---|
[194a359] | 389 |
|
---|
[24a616f] | 390 | $.createOverlay();
|
---|
[194a359] | 391 | });
|
---|
[24a616f] | 392 | $(document).on('click', '[data-nav-target]', function () {
|
---|
| 393 | var $this = $(this),
|
---|
| 394 | target = $this.data('nav-target');
|
---|
[194a359] | 395 |
|
---|
[24a616f] | 396 | if (body_.hasClass('navigation-toggle-one')) {
|
---|
| 397 | body_.addClass('navigation-show');
|
---|
| 398 | }
|
---|
[194a359] | 399 |
|
---|
[24a616f] | 400 | if (body_.hasClass('horizontal-navigation')) {
|
---|
| 401 | $('.navigation .navigation-menu-body').show();
|
---|
| 402 | }
|
---|
| 403 |
|
---|
| 404 | $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
|
---|
| 405 | $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
|
---|
| 406 | $('[data-nav-target]').removeClass('active');
|
---|
| 407 | $this.addClass('active');
|
---|
| 408 | $this.tooltip('hide');
|
---|
| 409 | return false;
|
---|
| 410 | });
|
---|
| 411 | var c = $('.header .header-left .header-logo').clone();
|
---|
| 412 | $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
|
---|
| 413 | $(document).on('click', '.navigation-toggler a', function () {
|
---|
| 414 | if (wind_.width() < 1200) {
|
---|
| 415 | $.createOverlay();
|
---|
| 416 | body_.addClass('navigation-show');
|
---|
| 417 | } else {
|
---|
| 418 | if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
| 419 | body_.addClass('navigation-toggle-one');
|
---|
| 420 | } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
|
---|
| 421 | body_.addClass('navigation-toggle-two');
|
---|
| 422 | body_.removeClass('navigation-toggle-one');
|
---|
| 423 | } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
|
---|
| 424 | body_.removeClass('navigation-toggle-two');
|
---|
| 425 | body_.removeClass('navigation-toggle-one');
|
---|
[194a359] | 426 | }
|
---|
[24a616f] | 427 | }
|
---|
| 428 |
|
---|
| 429 | return false;
|
---|
| 430 | });
|
---|
| 431 | $(document).on('click', '.header-toggler a', function () {
|
---|
| 432 | $('.header ul.navbar-nav').toggleClass('open');
|
---|
| 433 | return false;
|
---|
| 434 | });
|
---|
| 435 | $(document).on('click', '*', function (e) {
|
---|
| 436 | if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
|
---|
| 437 | body_.removeClass('navigation-show');
|
---|
| 438 | }
|
---|
| 439 | });
|
---|
| 440 | $(document).on('click', '*', function (e) {
|
---|
| 441 | if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
|
---|
| 442 | $('.header ul.navbar-nav').removeClass('open');
|
---|
| 443 | }
|
---|
| 444 | });
|
---|
| 445 | /*------------- form validation -------------*/
|
---|
| 446 |
|
---|
| 447 | window.addEventListener('load', function () {
|
---|
| 448 | // Fetch all the forms we want to apply custom Bootstrap validation styles to
|
---|
| 449 | var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
|
---|
| 450 |
|
---|
| 451 | Array.prototype.filter.call(forms, function (form) {
|
---|
| 452 | form.addEventListener('submit', function (event) {
|
---|
| 453 | if (form.checkValidity() === false) {
|
---|
| 454 | event.preventDefault();
|
---|
| 455 | event.stopPropagation();
|
---|
| 456 | }
|
---|
| 457 |
|
---|
| 458 | form.classList.add('was-validated');
|
---|
| 459 | }, false);
|
---|
| 460 | });
|
---|
| 461 | }, false);
|
---|
| 462 | /*------------- form validation -------------*/
|
---|
| 463 |
|
---|
| 464 | /*------------- responsive html table -------------*/
|
---|
| 465 |
|
---|
| 466 | var table_responsive_stack = $(".table-responsive-stack");
|
---|
| 467 | table_responsive_stack.find("th").each(function (i) {
|
---|
| 468 | $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
|
---|
| 469 | $(".table-responsive-stack-thead").hide();
|
---|
| 470 | });
|
---|
| 471 | table_responsive_stack.each(function () {
|
---|
| 472 | var thCount = $(this).find("th").length,
|
---|
| 473 | rowGrow = 100 / thCount + "%";
|
---|
| 474 | $(this).find("th, td").css("flex-basis", rowGrow);
|
---|
| 475 | });
|
---|
| 476 |
|
---|
| 477 | function flexTable() {
|
---|
| 478 | if (wind_.width() < 768) {
|
---|
| 479 | $(".table-responsive-stack").each(function (i) {
|
---|
| 480 | $(this).find(".table-responsive-stack-thead").show();
|
---|
| 481 | $(this).find("thead").hide();
|
---|
| 482 | }); // window is less than 768px
|
---|
| 483 | } else {
|
---|
| 484 | $(".table-responsive-stack").each(function (i) {
|
---|
| 485 | $(this).find(".table-responsive-stack-thead").hide();
|
---|
| 486 | $(this).find("thead").show();
|
---|
| 487 | });
|
---|
| 488 | }
|
---|
[194a359] | 489 | }
|
---|
[24a616f] | 490 |
|
---|
| 491 | flexTable();
|
---|
| 492 |
|
---|
| 493 | window.onresize = function (event) {
|
---|
| 494 | flexTable();
|
---|
| 495 | };
|
---|
| 496 | /*------------- responsive html table -------------*/
|
---|
| 497 |
|
---|
| 498 | /*------------- header search -------------*/
|
---|
| 499 |
|
---|
| 500 |
|
---|
| 501 | $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
|
---|
| 502 | $('.header .header-body .header-search').show().find('.form-control').focus();
|
---|
| 503 | return false;
|
---|
| 504 | });
|
---|
| 505 | $(document).on('click', '.close-header-search, .close-header-search svg', function () {
|
---|
| 506 | $('.header .header-body .header-search').hide();
|
---|
| 507 | return false;
|
---|
| 508 | });
|
---|
| 509 | $(document).on('click', '*', function (e) {
|
---|
| 510 | if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
|
---|
| 511 | $('.header .header-body .header-search').hide();
|
---|
| 512 | }
|
---|
| 513 | });
|
---|
| 514 | /*------------- header search -------------*/
|
---|
| 515 |
|
---|
| 516 | /*------------- custom accordion -------------*/
|
---|
| 517 |
|
---|
| 518 | $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
|
---|
| 519 | var $this = $(this);
|
---|
| 520 | $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
|
---|
| 521 | $this.parent('.accordion-row').toggleClass('open');
|
---|
| 522 | return false;
|
---|
| 523 | });
|
---|
| 524 | /*------------- custom accordion -------------*/
|
---|
| 525 |
|
---|
| 526 | /*------------- responsive table dropdown -------------*/
|
---|
| 527 |
|
---|
| 528 | var dropdownMenu,
|
---|
| 529 | table_responsive = $('.table-responsive');
|
---|
| 530 | table_responsive.on('show.bs.dropdown', function (e) {
|
---|
| 531 | dropdownMenu = $(e.target).find('.dropdown-menu');
|
---|
| 532 | body_.append(dropdownMenu.detach());
|
---|
| 533 | var eOffset = $(e.target).offset();
|
---|
| 534 | dropdownMenu.css({
|
---|
| 535 | 'display': 'block',
|
---|
| 536 | 'top': eOffset.top + $(e.target).outerHeight(),
|
---|
| 537 | 'left': eOffset.left,
|
---|
| 538 | 'width': '184px',
|
---|
| 539 | 'font-size': '14px'
|
---|
| 540 | });
|
---|
| 541 | dropdownMenu.addClass("mobPosDropdown");
|
---|
| 542 | });
|
---|
| 543 | table_responsive.on('hide.bs.dropdown', function (e) {
|
---|
| 544 | $(e.target).append(dropdownMenu.detach());
|
---|
| 545 | dropdownMenu.hide();
|
---|
| 546 | });
|
---|
| 547 | /*------------- responsive table dropdown -------------*/
|
---|
| 548 |
|
---|
| 549 | /*------------- chat -------------*/
|
---|
| 550 |
|
---|
| 551 | $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
|
---|
| 552 | $('.chat-block .chat-content').addClass('chat-mobile-open');
|
---|
| 553 | return false;
|
---|
| 554 | });
|
---|
| 555 | $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
|
---|
| 556 | $('.chat-block .chat-content').removeClass('chat-mobile-open');
|
---|
| 557 | return false;
|
---|
| 558 | });
|
---|
| 559 | /*------------- chat -------------*/
|
---|
| 560 |
|
---|
| 561 | /*------------- aside menu toggle -------------*/
|
---|
| 562 |
|
---|
| 563 | $(document).on('click', '.navigation ul li a', function () {
|
---|
| 564 | var $this = $(this);
|
---|
| 565 |
|
---|
| 566 | if ($this.next('ul').length) {
|
---|
| 567 | var sub_menu_arrow = $this.find('.sub-menu-arrow');
|
---|
| 568 | sub_menu_arrow.toggleClass('rotate-in');
|
---|
| 569 | $this.next('ul').toggle(200);
|
---|
| 570 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
| 571 | $this.next('ul').find('li ul').slideUp(200);
|
---|
| 572 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
| 573 | $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
| 574 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
|
---|
| 575 | $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
|
---|
| 576 |
|
---|
| 577 | if (sub_menu_arrow.hasClass('rotate-in')) {
|
---|
| 578 | setTimeout(function () {
|
---|
| 579 | sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
|
---|
| 580 | }, 200);
|
---|
[194a359] | 581 | } else {
|
---|
[24a616f] | 582 | sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
|
---|
[194a359] | 583 | }
|
---|
[24a616f] | 584 |
|
---|
| 585 | if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
|
---|
| 586 | setTimeout(function (e) {
|
---|
| 587 | $('.navigation .navigation-menu-body').getNiceScroll().resize();
|
---|
| 588 | }, 300);
|
---|
[194a359] | 589 | }
|
---|
[24a616f] | 590 |
|
---|
| 591 | return false;
|
---|
| 592 | }
|
---|
| 593 | });
|
---|
| 594 | $(document).on('click', '.horizontal-navigation ul li a', function () {
|
---|
| 595 | var $this = $(this);
|
---|
| 596 |
|
---|
| 597 | if ($this.next('ul').length) {
|
---|
| 598 | $this.next('ul').toggle(200);
|
---|
| 599 | $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
|
---|
| 600 | $this.next('ul').find('li ul').slideUp(200);
|
---|
| 601 | return false;
|
---|
| 602 | }
|
---|
| 603 | });
|
---|
| 604 | /*------------- aside menu toggle -------------*/
|
---|
| 605 |
|
---|
| 606 | /*------------- other -------------*/
|
---|
| 607 |
|
---|
| 608 | $(document).on('click', '.dropdown-menu', function (e) {
|
---|
| 609 | e.stopPropagation();
|
---|
| 610 | });
|
---|
| 611 | $('#exampleModal').on('show.bs.modal', function (event) {
|
---|
| 612 | var button = $(event.relatedTarget),
|
---|
| 613 | recipient = button.data('whatever'),
|
---|
| 614 | modal = $(this);
|
---|
| 615 | modal.find('.modal-title').text('New message to ' + recipient);
|
---|
| 616 | modal.find('.modal-body input').val(recipient);
|
---|
| 617 | });
|
---|
| 618 | $('[data-toggle="tooltip"]').tooltip({
|
---|
| 619 | container: 'body'
|
---|
| 620 | });
|
---|
| 621 | $('[data-toggle="popover"]').popover();
|
---|
| 622 | $('.carousel').carousel();
|
---|
| 623 |
|
---|
| 624 | if (wind_.width() >= 992) {
|
---|
| 625 | $('.card-scroll').niceScroll();
|
---|
| 626 | $('.table-responsive').niceScroll();
|
---|
| 627 | $('.sidebar-group .sidebar').niceScroll();
|
---|
| 628 | $('.app-block .app-content .app-lists').niceScroll();
|
---|
| 629 | $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
|
---|
| 630 | $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
|
---|
| 631 | var chat_messages = $('.chat-block .chat-content .messages');
|
---|
| 632 |
|
---|
| 633 | if (chat_messages.length) {
|
---|
| 634 | chat_messages.niceScroll({
|
---|
| 635 | horizrailenabled: false
|
---|
| 636 | });
|
---|
| 637 | chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
|
---|
| 638 | }
|
---|
[194a359] | 639 | }
|
---|
| 640 |
|
---|
[24a616f] | 641 | if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
|
---|
| 642 | $('.navigation .navigation-menu-body').niceScroll();
|
---|
| 643 | }
|
---|
[194a359] | 644 |
|
---|
[24a616f] | 645 | $('.dropdown-menu ul.list-group').niceScroll();
|
---|
| 646 | })(jQuery);
|
---|
| 647 | /***/
|
---|
[194a359] | 648 |
|
---|
[24a616f] | 649 | },
|
---|
[194a359] | 650 |
|
---|
[24a616f] | 651 | /***/
|
---|
| 652 | 0: function _(module, exports, __nested_webpack_require_20110__) {
|
---|
| 653 | __nested_webpack_require_20110__(
|
---|
| 654 | /*! C:\wamp64\www\themeforest\nago\resources\js\app.js */
|
---|
| 655 | "./resources/js/app.js");
|
---|
[194a359] | 656 |
|
---|
[24a616f] | 657 | module.exports = __nested_webpack_require_20110__(
|
---|
| 658 | /*! C:\wamp64\www\themeforest\nago\public\assets\sass\app.scss */
|
---|
| 659 | "./public/assets/sass/app.scss");
|
---|
| 660 | /***/
|
---|
| 661 | }
|
---|
| 662 | /******/
|
---|
[194a359] | 663 |
|
---|
[24a616f] | 664 | });
|
---|
| 665 | /******/ })()
|
---|
| 666 | ; |
---|