/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(1);
module.exports = __webpack_require__(21);
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
/* Global Application Controls */
//require('./controls/variables');
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(4);
__webpack_require__(5);
__webpack_require__(6);
__webpack_require__(7);
__webpack_require__(8);
__webpack_require__(9);
//require('./controls/gmaps');
__webpack_require__(10);
__webpack_require__(11);
__webpack_require__(12);
//require('./controls/modals');
__webpack_require__(13);
__webpack_require__(14);
__webpack_require__(15);
__webpack_require__(16);
__webpack_require__(17);
__webpack_require__(18);
__webpack_require__(19);
__webpack_require__(20);
/***/ }),
/* 2 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
//$('.corprate-nav,.site-nav').hide();
//$('.mobile-site-nav').show();
$('.corporate-nav').attr('min-height', '60px !important');
}
logscripts.push('Mobile');
});
})(jQuery);
/***/ }),
/* 3 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$('.mobile-hidden').hide();
$('.mobile-font-resize').each(function () {
var mobilefontsize = $(this).data('fontsize');
$(this).css('font-size', mobilefontsize);
});
$('.mobile-resize').each(function () {
var mobilewidth = $(this).data('resizewidth');
var mobileheight = $(this).data('resizeheight');
$(this).css('width', mobilewidth);
$(this).css('height', mobileheight);
});
$('.mobile-line-height').each(function () {
var mobilelineheight = $(this).data('lineheight');
$(this).css('line-height', mobilelineheight);
});
}
logscripts.push('Mobile Resizing');
});
})(jQuery);
/***/ }),
/* 4 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
var body = $('body');
var corpratenav = $('.corprate-nav');
var sitenav = $('.site-nav');
var alert_block = body.find('.alert-block');
if (alert_block.data('active') == true) {
body.attr('style', 'padding-top: 12rem !important');
corpratenav.attr('style', 'top: 64px !important; border-bottom: 2px #eee solid !important');
sitenav.attr('style', 'top: 103px !important');
alert_block.attr('style', 'padding-top: 2.5rem !important');
}
logscripts.push('Alert System');
});
})(jQuery);
/***/ }),
/* 5 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
$(document).ajaxStart(function () {
$('.ajax-loader').toggle();
$('.ajax-window-overlay').toggle();
}).ajaxStop(function () {
$('.ajax-loader').toggle();
$('.ajax-window-overlay').toggle();
});
logscripts.push('AJAX Loader');
});
})(jQuery);
/***/ }),
/* 6 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
$(window).on('beforeunload', function () {
$('.reload-loader').toggle();
$('.reload-window-overlay').toggle();
$(window).on('load', function () {
$('.reload-loader').toggle();
$('.reload-window-overlay').toggle();
});
});
logscripts.push('Page Loader');
});
})(jQuery);
/***/ }),
/* 7 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
$('.modal-image').on('click', function (e) {
e.preventDefault();
var image = $(this).data('img');
var text = $(this).data('text');
$('#modal-image-block').css('display', 'block');
$('#modal-image-block .modal-content').attr('src', image);
$('#modal-image-block #caption').text(text);
$('#modal-image-block, #modal-image-block .close').on('click', function (e) {
$('#modal-image-block').css('display', 'none');
});
});
logscripts.push('Modal Image');
});
})(jQuery);
/***/ }),
/* 8 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
/* var cookieget = Cookies.get('nationalnail-popup');
if (cookieget != 'true') {
$('#popupModal').modal('show')
$('#popupModal').on('hidden.bs.modal', function (e) {
Cookies.set('nationalnail-popup', 'true', { expires: 7 });
})
}
console.log(cookieget)
//Cookies.remove('nationalnail-popup'); */
logscripts.push('Popup System');
});
})(jQuery);
/***/ }),
/* 9 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
var print_btn = $('.print-btn');
print_btn.on('click', function () {
var print_class = $(this).data('print');
var print_class_html = $(print_class).html();
new_window = window.open();
new_window.document.write(print_class_html);
new_window.print();
new_window.close();
});
});
})(jQuery);
/***/ }),
/* 10 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
var s3_file = $('.s3file');
s3_file.on('click', function (e) {
e.preventDefault();
var action = $(this).data('action');
var file = $(this).data('file');
if (action == 'open') {
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: '/s3files/open',
type: 'POST',
dataType: 'json',
data: {
file: file
},
success: function success(response) {
//console.log(response);
if (response.success == 'false') {
alert(response.message);
} else if (response.success == 'true') {
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
window.location.href = response.url;
} else {
window.open(response.url, '_blank');
}
}
}
});
}
});
logscripts.push('S3 FileSystem');
});
})(jQuery);
/***/ }),
/* 11 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
$("input[type='tel']").each(function () {
$(this).on("change keyup paste", function (e) {
var output,
$this = $(this),
input = $this.val();
if (e.keyCode != 8) {
input = input.replace(/[^0-9]/g, '');
var area = input.substr(0, 3);
var pre = input.substr(3, 3);
var tel = input.substr(6, 4);
if (area.length < 3) {
output = "(" + area;
} else if (area.length == 3 && pre.length < 3) {
output = "(" + area + ")" + " " + pre;
} else if (area.length == 3 && pre.length == 3) {
output = "(" + area + ")" + " " + pre + "-" + tel;
}
$this.val(output);
}
});
});
logscripts.push('Inputs -> Tel Format');
$('.date-today').each(function () {
Date.prototype.toDateInputValue = function () {
var local = new Date(this);
local.setMinutes(this.getMinutes() - this.getTimezoneOffset());
return local.toJSON().slice(0, 10);
};
$(this).val(new Date().toDateInputValue());
});
logscripts.push('Inputs -> HTML5 Date Input Type - Set Todays Date');
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
//Disable Tool Tip
} else {
$("input[type='password']").each(function () {
if ($(this).attr('id') == 'password') {
$(this).attr('data-toggle', 'tooltip');
$(this).attr('data-placement', 'right');
$(this).attr('data-html', 'true');
$(this).attr('title', "Minumum 8 characters
Uppercase characters(A–Z)
Lowercase characters(a–z)
Numeric characters(0–9)
Non-alphanumeric
(!, $, #, or %)");
}
$(this).on('focus', function (e) {
if ($(this).attr('id') == 'password') {
$('#password').tooltip('show');
}
});
});
logscripts.push('Inputs -> Add/Show Tooltip Info For PWD Field');
}
$("input[type='password']").each(function () {
if ($(this).attr('id') == 'password') {
$(this).after('Caps Lock On');
} else if ($(this).attr('id') == 'password-confirm') {
$(this).after('Caps Lock On');
}
});
logscripts.push('Inputs -> Add HTML After PWD Field');
$("input[type='password']").each(function () {
$(this).on('keydown', function (e) {
var capsCheck = e.originalEvent.getModifierState("CapsLock");
if (capsCheck == true) {
$(this).css('border', '1px solid red');
$('.password-caps-lock-notifier').show();
} else {
$(this).css('border', '1px solid #ced4da');
$('.password-caps-lock-notifier').hide();
}
});
});
logscripts.push('Inputs -> Check Caps Lock On PWD Field');
$('.toggle-password-view').each(function () {
$(this).on('click', function () {
$(this).toggleClass('fa-eye fa-eye-slash');
var input = $($(this).attr('toggle'));
if (input.attr('type') == 'password') {
input.attr('type', 'text');
} else {
input.attr('type', 'password');
}
});
});
logscripts.push('Inputs -> Show Password Option');
});
})(jQuery);
/***/ }),
/* 12 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
$('body').on('change', '#file', function (e) {
$(this).each(function () {
$(this).closest('.custom-file').find('.custom-file-label').html($(this).val().split('\\').pop());
});
});
logscripts.push('Upload Script');
});
})(jQuery);
/***/ }),
/* 13 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
var feedback = $('.feedback');
var main_class = $('body').find('main').attr('class');
feedback.find('a').on('click', function (e) {
e.preventDefault();
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: '/feedback/submit',
type: 'POST',
dataType: 'json',
data: {
class: main_class,
response: $(this).data('value')
},
success: function success(response) {
if (response.success == 'false') {
feedback.hide().html('Sorry something went wrong!').fadeIn('slow');
} else if (response.success == 'true') {
feedback.hide().html('Thank you for your feedback!').fadeIn('slow');
}
}
});
});
logscripts.push('Feedback System');
});
})(jQuery);
/***/ }),
/* 14 */
/***/ (function(module, exports) {
(function ($) {
$(function () {
var account_home_form = $('#account-home-form');
var account_pwd_update_form = $('#account-settings-pwd-update-form');
var account_settings_delete_form = $('#account-settings-delete-form');
account_home_form.on('submit', function (e) {
e.preventDefault();
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: '/account/homeupdate',
type: 'POST',
datatType: 'json',
data: $(this).serialize(),
success: function success(response) {
console.log(response);
if (response.success == 'false') {
account_home_form.find('.response').html('