/*! * bootstrap-fileinput v5.1.3 * 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'; if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else { if (typeof module === 'object' && module.exports) { //noinspection NpmUsedModulesInstalled module.exports = factory(require('jquery')); } else { 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 $h = { FRAMES: '.kv-preview-thumb', SORT_CSS: 'file-sortable', INIT_FLAG: 'init-', OBJECT_PARAMS: '\n' + '\n' + '\n' + '\n' + '\n' + '\n', DEFAULT_PREVIEW: '