{"version":3,"sources":["application.js"],"names":["$","filetypes","text","fileupload","maxFileSize","autoUpload","maxNumberOfFiles","undefined","limitConcurrentUploads","limitMultiFileUploads","acceptFileTypes","repaint","e","data","that","this","_adjustMaxNumberOfFiles","files","length","_renderDownload","appendTo","find","fadeIn","show","process","action","fileTypes","maxWidth","maxHeight","bind","ajusta","updateLista","reloadIframe","live","preventDefault","prop","href"],"mappings":"AAeAA,EAAE,WAGE,IAAIC,EAAY,oCAEY,OAAxBD,EAAE,YAAYE,SACdD,EAAY,oIAEY,SAAxBD,EAAE,YAAYE,SACdD,EAAY,aAGhBD,EAAE,eAAeG,WAAW,CACxBC,YAAa,UACbC,YAAY,EACZC,sBAAkBC,EAClBC,4BAAwBD,EACxBE,2BAAuBF,EACvBG,gBAAiBT,EACjBU,QAAS,SAAUC,EAAGC,GAClB,IAAIC,EAAOd,EAAEe,MAAMF,KAAK,cACxBC,EAAKE,yBAAyBH,EAAKI,MAAMC,QACzCJ,EAAKK,gBAAgBN,EAAKI,OACrBG,SAASpB,EAAEe,MAAMM,KAAK,WACtBC,OAAO,WAEZtB,EAAEe,MAAMQ,UAGZC,QAAS,CACL,CACIC,OAAQ,OACRC,UAAW,oCACXtB,YAAa,WAEjB,CACIqB,OAAQ,SACRE,SAAU,KACVC,UAAW,KAEf,CACIH,OAAQ,WAKpBzB,EAAE,eAAe6B,KAAK,iBAAkB,SAAUjB,EAAGC,GAEjDiB,QAAQ,KAKZ9B,EAAE,eAAe6B,KAAK,gBAAiB,SAAUjB,EAAGC,GAChDiB,OAAO,KAIX9B,EAAE,eAAe6B,KAAK,iBAAkB,SAAUjB,EAAGC,GACjDkB,gBAMJ/B,EAAE,eAAe6B,KAAK,iBAAkB,SAAUjB,EAAGC,GACjDiB,QAAQ,KAIZ9B,EAAE,eAAe6B,KAAK,oBAAqB,SAAUjB,EAAGC,GAAQmB,iBAchEhC,EAAE,8CAA8CiC,KAAK,QAAS,SAAUrB,GACpEA,EAAEsB,iBACFlC,EAAE,2CACGmC,KAAK,MAAOpB,KAAKqB,MACjBhB,SAAS","file":"application.js","sourcesContent":["/*\r\n * jQuery File Upload Plugin JS Example 5.0.2\r\n * https://github.com/blueimp/jQuery-File-Upload\r\n *\r\n * Copyright 2010, Sebastian Tschan\r\n * https://blueimp.net\r\n *\r\n * Licensed under the MIT license:\r\n * http://creativecommons.org/licenses/MIT/\r\n */\r\n\r\n/*jslint nomen: true */\r\n/*global $ */\r\n\r\n\r\n$(function () {\r\n //'use strict';\r\n\r\n var filetypes = /(\\.|\\/)(gif|jpe?g|png|svg|webp)$/i;\r\n\r\n if ($(\".tipo_hf\").text() == \"doc\")\r\n filetypes = /\\.(pdf)|(html)|(doc)|(docx)|(json)|(geojson)|(xls)|(xlsx)|(mp3)|(mp4)|(jpg)|(swf)|(fla)|(zip)|(tiff)|(tif)|(dwg)|(png)|(jpe?g)$/i;\r\n\r\n if ($(\".tipo_hf\").text() == \"video\")\r\n filetypes = /\\.(mp4)$/i;\r\n\r\n // Initialize the jQuery File Upload widget:\r\n $('#fileupload').fileupload({\r\n maxFileSize: 209715200*2,\r\n autoUpload: false,\r\n maxNumberOfFiles: undefined,\r\n limitConcurrentUploads: undefined,\r\n limitMultiFileUploads: undefined,\r\n acceptFileTypes: filetypes,\r\n repaint: function (e, data) {\r\n var that = $(this).data('fileupload');\r\n that._adjustMaxNumberOfFiles(-data.files.length);\r\n that._renderDownload(data.files)\r\n .appendTo($(this).find('.files'))\r\n .fadeIn(function () {\r\n // Fix for IE7 and lower:\r\n $(this).show();\r\n });\r\n },\r\n process: [\r\n {\r\n action: 'load',\r\n fileTypes: '/^image\\/(gif|jpeg|png|svg|webp)$/',\r\n maxFileSize: 209715200 // 50MB\r\n },\r\n {\r\n action: 'resize',\r\n maxWidth: 1440,\r\n maxHeight: 900\r\n },\r\n {\r\n action: 'save'\r\n }\r\n ]\r\n });\r\n \r\n $('#fileupload').bind('fileuploaddone', function (e, data) {\r\n //resetSize();\r\n ajusta(-1);\r\n\r\n // console.log(\"fileuploaddone\");\r\n });\r\n\r\n $('#fileupload').bind('fileuploadadd', function (e, data) {\r\n ajusta(1);\r\n //console.log(\"fileuploadadd\");\r\n });\r\n\r\n $('#fileupload').bind('fileuploadstop', function (e, data) {\r\n updateLista();\r\n \r\n // console.log(\"fileuploadstop\");\r\n // console.log(\"envio parou\");\r\n });\r\n\r\n $('#fileupload').bind('fileuploadfail', function (e, data) {\r\n ajusta(-1);\r\n //console.log(\"fileuploadfail\");\r\n });\r\n\r\n $('#fileupload').bind('fileuploaddestroy', function (e, data) { reloadIframe(); });\r\n\r\n // Load existing files:\r\n /* $.getJSON($('#fileupload form').prop('action'), function (files) {\r\n var fu = $('#fileupload').data('fileupload');\r\n fu._adjustMaxNumberOfFiles(-files.length);\r\n fu._renderDownload(files)\r\n .appendTo($('#fileupload .files'))\r\n .fadeIn(function () {\r\n // Fix for IE7 and lower:\r\n $(this).show();\r\n });\r\n });*/\r\n \r\n $('#fileupload .files a:not([target^=_blank])').live('click', function (e) {\r\n e.preventDefault();\r\n $('')\r\n .prop('src', this.href)\r\n .appendTo('body');\r\n });\r\n});\r\n"]}