/*! * bootstrap-fileinput v5.0.9 * http://plugins.krajee.com/file-input * * Author: Kartik Visweswaran * Copyright: 2014 - 2020, Kartik Visweswaran, Krajee.com * * Licensed under the BSD-3-Clause * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md */ (function (factory) { 'use strict'; //noinspection JSUnresolvedVariable if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. //noinspection JSUnresolvedFunction define(['jquery'], factory); } else { // noinspection JSUnresolvedVariable if (typeof module === 'object' && module.exports) { // Node/CommonJS // noinspection JSUnresolvedVariable,JSUnresolvedFunction,NpmUsedModulesInstalled module.exports = factory(require('jquery')); } else { // Browser globals factory(window.jQuery); } } }(function ($) { 'use strict'; $.fn.fileinputLocales = {}; $.fn.fileinputThemes = {}; String.prototype.setTokens = function (replacePairs) { var str = this.toString(), key, re; for (key in replacePairs) { if (replacePairs.hasOwnProperty(key)) { re = new RegExp('\{' + key + '\}', 'g'); str = str.replace(re, replacePairs[key]); } } return str; }; if (!Array.prototype.flatMap) { // polyfill flatMap Array.prototype.flatMap = function (lambda) { return [].concat(this.map(lambda)); }; } var $h, FileInput; // fileinput helper object for all global variables and internal helper methods //noinspection JSUnresolvedVariable $h = { FRAMES: '.kv-preview-thumb', SORT_CSS: 'file-sortable', INIT_FLAG: 'init-', OBJECT_PARAMS: '\n' + '\n' + '\n' + '\n' + '\n' + '\n', DEFAULT_PREVIEW: '