/*!
 * bootstrap-fileinput v5.5.0
 * http://plugins.krajee.com/file-input
 *
 * ET360 custom file upload theme that takes icons from global window variables instead of being hard-coded.
 *
 * Author: Kartik Visweswaran
 * Copyright: 2014 - 2024, 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' && typeof module.exports === 'object') {
        factory(require('jquery'));
    } else {
        factory(window.jQuery);
    }
}(function ($) {
    "use strict";

    $.fn.fileinputThemes.et360 = {
        fileActionSettings: {
            removeIcon: '<i class="' + window.globals.icons.remove + '"></i>',
            uploadIcon: '<i class="' + window.globals.icons.upload + '"></i>',
            uploadRetryIcon: '<i class="' + window.globals.icons.redo + '"></i>',
            downloadIcon: '<i class="' + window.globals.icons.download + '"></i>',
            rotateIcon: '<i class="' + window.globals.icons.rotate + '"></i>',
            zoomIcon: '<i class="' + window.globals.icons.zoom + '"></i>',
            dragIcon: '<i class="' + window.globals.icons.drag + '"></i>',
            indicatorNew: '<i class="' + window.globals.icons.add + ' text-warning"></i>',
            indicatorSuccess: '<i class="' + window.globals.icons.complete + ' text-success"></i>',
            indicatorError: '<i class="' + window.globals.icons.missingInput + ' text-danger"></i>',
            indicatorLoading: '<i class="' + window.globals.icons.loading + ' text-muted"></i>',
            indicatorPaused: '<i class="' + window.globals.icons.pause + ' text-info"></i>'
        },
        layoutTemplates: {
            fileIcon: '<i class="' + window.globals.icons.file + ' kv-caption-icon"></i> '
        },
        previewZoomButtonIcons: {
            prev: '<i class="' + window.globals.icons.navigationPrevious + ' fa-lg"></i>',
            next: '<i class="' + window.globals.icons.navigationNext + ' fa-lg"></i>',
            rotate: '<i class="' + window.globals.icons.rotate + '"></i>',
            toggleheader: '<i class="et-icon-fw ' + window.globals.icons.fileinputToggleHeader + '"></i>',
            fullscreen: '<i class="et-icon-fw ' + window.globals.icons.fullscreen + '"></i>',
            borderless: '<i class="et-icon-fw ' + window.globals.icons.borderless + '"></i>',
            close: '<i class="et-icon-fw ' + window.globals.icons.close + '"></i>'
        },
        previewFileIcon: '<i class="' + window.globals.icons.file + '"></i>',
        browseIcon: '<i class="' + window.globals.icons.browse + '"></i>',
        removeIcon: '<i class="' + window.globals.icons.remove + '"></i>',
        cancelIcon: '<i class="' + window.globals.icons.cancel + '"></i>',
        pauseIcon: '<i class="' + window.globals.icons.pause + '"></i>',
        uploadIcon: '<i class="' + window.globals.icons.upload + '"></i>',
        msgValidationErrorIcon: '<i class="' + window.globals.icons.missingInput + '"></i> '
    };
}));
