{"version":3,"file":"viewer.min.js","sources":["viewer.js"],"sourcesContent":["var lsViewer = (function () {\n 'use strict';\n\n // CONFIGURATIONS APPLICATION\n\n var _config = {\n\n prefix: lsConfiguration.prefix, \n locale: lsConfiguration.locale, \n dateFormat: lsConfiguration.dateFormat, \n currencyCentSeparator: lsConfiguration.currencyCentSeparator, \n\n };\n\n // URLS\n\n var _url = {\n\n viewerUrls: {\n\n urlGetPageThumb: _config.prefix + '/Viewer/GetPageThumb',\n urlGetPageFile: _config.prefix + '/Viewer/GetPageFile',\n urlGetViewSummary: _config.prefix + '/Viewer/GetViewSummary',\n\n },\n\n language: {\n\n urlLanguage: _config.prefix + '/js/lang.',\n\n },\n\n };\n\n // NOTIFY\n\n var _notify = {\n\n success: function (title, message, fixed) {\n $.notify(\n {\n title: (title === undefined || title === null || title.length <= 0) ? '' : title,\n message: (message === undefined || message === null || message.length <= 0) ? '' : message\n }, {\n type: 'liquid-success',\n delay: (fixed === undefined || fixed === null || fixed === false) ? 5000 : 0\n });\n },\n\n alert: function (title, message, fixed) {\n $.notify(\n {\n title: (title === undefined || title === null || title.length <= 0) ? '' : title,\n message: (message === undefined || message === null || message.length <= 0) ? '' : message\n }, {\n type: 'liquid-alert',\n delay: (fixed === undefined || fixed === null || fixed === false) ? 5000 : 0\n });\n },\n\n danger: function (title, message, fixed) {\n $.notify(\n {\n title: (title === undefined || title === null || title.length <= 0) ? '' : title,\n message: (message === undefined || message === null || message.length <= 0) ? '' : message\n }, {\n type: 'liquid-danger',\n delay: (fixed === undefined || fixed === null || fixed === false) ? 5000 : 0\n });\n },\n\n closeAll: function () {\n $.notifyClose();\n }\n };\n\n // MODAL\n\n var _modal = {\n\n bootbox: {\n\n dialog: function (data) {\n bootbox.dialog({\n title: '' + data.title + '',\n message: data.htmlContent,\n buttons: data.buttons,\n className: data.className,\n classdialog: data.classdialog,\n height: data.height,\n overflow: data.overflow,\n onEscape: data.onEscape\n });\n },\n\n confirm: function (data) {\n\n bootbox.confirm({\n title: '' + data.title + '',\n message: data.message,\n buttons: data.buttons,\n callback: data.callback,\n className: data.className\n });\n\n },\n\n alert: function (title, message, className) {\n bootbox.alert({\n title: '' + title + '',\n message: message,\n className: className\n });\n },\n\n close: function (classbox) {\n if (classbox !== undefined) {\n $(classbox).modal('hide');\n }\n else {\n $('.bootbox.modal').modal('hide');\n }\n },\n\n showErrorOnModal: function (message) {\n $('.modal-error').html('Error: ' + message);\n $('.modal-error').show();\n },\n\n error: function (message) {\n var data = {\n title: \"Erro\",\n htmlContent: '