inovaagsi.mdscloud.com.br
Open in
urlscan Pro
179.190.22.57
Public Scan
URL:
https://inovaagsi.mdscloud.com.br/autorizanet/javax.faces.resource/fileupload/fileupload.js.jsf?ln=primefaces&v=13.0.10
Submission: On November 21 via api from US — Scanned from DE
Submission: On November 21 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):"object"===typeof exports?c(require("jquery")):c(window.jQuery)})(function(c){var f=0,a=c,b="parseJSON";"JSON"in window&&"parse"in JSON&&(a=JSON,b="parse");c.ajaxTransport("iframe",function(d){if(d.async){var e=d.initialIframeSrc||"javascript:false;",g,h,k;return{send:function(m,n){g=c('\x3cform style\x3d"display:none;"\x3e\x3c/form\x3e');g.attr("accept-charset",d.formAcceptCharset);k=/\?/.test(d.url)?"\x26":"?";"DELETE"===d.type? (d.url=d.url+k+"_method\x3dDELETE",d.type="POST"):"PUT"===d.type?(d.url=d.url+k+"_method\x3dPUT",d.type="POST"):"PATCH"===d.type&&(d.url=d.url+k+"_method\x3dPATCH",d.type="POST");f+=1;h=c('\x3ciframe src\x3d"'+e+'" name\x3d"iframe-transport-'+f+'"\x3e\x3c/iframe\x3e').on("load",function(){var p=Array.isArray(d.paramName)?d.paramName:[d.paramName];h.off("load").on("load",function(){try{var r=h.contents();if(!r.length||!r[0].firstChild)throw Error();}catch(l){r=void 0}n(200,"success",{iframe:r});c('\x3ciframe src\x3d"'+ e+'"\x3e\x3c/iframe\x3e').appendTo(g);window.setTimeout(function(){g.remove()},0)});g.prop("target",h.prop("name")).prop("action",d.url).prop("method",d.type);d.formData&&c.each(d.formData,function(r,l){c('\x3cinput type\x3d"hidden"/\x3e').prop("name",l.name).val(l.value).appendTo(g)});if(d.fileInput&&d.fileInput.length&&"POST"===d.type){var q=d.fileInput.clone();d.fileInput.after(function(r){return q[r]});d.paramName&&d.fileInput.each(function(r){c(this).prop("name",p[r]||d.paramName)});g.append(d.fileInput).prop("enctype", "multipart/form-data").prop("encoding","multipart/form-data");d.fileInput.removeAttr("form")}g.trigger("submit");q&&q.length&&d.fileInput.each(function(r,l){r=c(q[r]);c(l).prop("name",r.prop("name")).attr("form",r.attr("form"));r.replaceWith(l)})});g.append(h).appendTo(document.body)},abort:function(){h&&h.off("load").prop("src",e);g&&g.remove()}}}});c.ajaxSetup({converters:{"iframe text":function(d){return d&&c(d[0].body).text()},"iframe json":function(d){return d&&a[b](c(d[0].body).text())},"iframe html":function(d){return d&& c(d[0].body).html()},"iframe xml":function(d){return(d=d&&d[0])&&c.isXMLDoc(d)?d:c.parseXML(d.XMLDocument&&d.XMLDocument.xml||c(d.body).html())},"iframe script":function(d){return d&&c.globalEval(c(d[0].body).text())}}})}); (function(c){"function"===typeof define&&define.amd?define(["jquery","jquery-ui/ui/widget"],c):"object"===typeof exports?c(require("jquery"),require("./vendor/jquery.ui.widget")):c(window.jQuery)})(function(c){function f(a){var b="dragover"===a;return function(d){d.dataTransfer=d.originalEvent&&d.originalEvent.dataTransfer;var e=d.dataTransfer;e&&-1!==c.inArray("Files",e.types)&&!1!==this._trigger(a,c.Event(a,{delegatedEvent:d}))&&(d.preventDefault(),b&&(e.dropEffect="copy"))}}c.support.fileInput= !(RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||c('\x3cinput type\x3d"file"/\x3e').prop("disabled"));c.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader);c.support.xhrFormDataFileUpload=!!window.FormData;c.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);c.widget("blueimp.fileupload", {options:{dropZone:c(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,uniqueFilenames:void 0, messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(a,b){a=this.messages[a]||a.toString();b&&c.each(b,function(d,e){a=a.replace("{"+d+"}",e)});return a},formData:function(a){return a.serializeArray()},add:function(a,b){if(a.isDefaultPrevented())return!1;(b.autoUpload||!1!==b.autoUpload&&c(this).fileupload("option","autoUpload"))&&b.process().done(function(){b.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart", "forceIframeTransport"],_blobSlice:c.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime();this.bitrate=this.loaded=0;this.getBitrate=function(a,b,d){var e=a-this.timestamp;if(!this.bitrate||!d||e>d)this.bitrate=1E3/e*(b-this.loaded)*8,this.loaded=b,this.timestamp=a;return this.bitrate}},_isXHRUpload:function(a){return!a.forceIframeTransport&&(!a.multipart&&c.support.xhrFileUpload|| c.support.xhrFormDataFileUpload)},_getFormData:function(a){if("function"===c.type(a.formData))return a.formData(a.form);if(Array.isArray(a.formData))return a.formData;if("object"===c.type(a.formData)){var b=[];c.each(a.formData,function(d,e){b.push({name:d,value:e})});return b}return[]},_getTotal:function(a){var b=0;c.each(a,function(d,e){b+=e.size||1});return b},_initProgressObject:function(a){var b={loaded:0,total:0,bitrate:0};a._progress?c.extend(a._progress,b):a._progress=b},_initResponseObject:function(a){var b; if(a._response)for(b in a._response)Object.prototype.hasOwnProperty.call(a._response,b)&&delete a._response[b];else a._response={}},_onProgress:function(a,b){if(a.lengthComputable){var d=Date.now?Date.now():(new Date).getTime();if(!(b._time&&b.progressInterval&&d-b._time<b.progressInterval&&a.loaded!==a.total)){b._time=d;var e=Math.floor(a.loaded/a.total*(b.chunkSize||b._progress.total))+(b.uploadedBytes||0);this._progress.loaded+=e-b._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(d, this._progress.loaded,b.bitrateInterval);b._progress.loaded=b.loaded=e;b._progress.bitrate=b.bitrate=b._bitrateTimer.getBitrate(d,e,b.bitrateInterval);this._trigger("progress",c.Event("progress",{delegatedEvent:a}),b);this._trigger("progressall",c.Event("progressall",{delegatedEvent:a}),this._progress)}}},_initProgressListener:function(a){var b=this,d=a.xhr?a.xhr():c.ajaxSettings.xhr();d.upload&&(c(d.upload).on("progress",function(e){var g=e.originalEvent;e.lengthComputable=g.lengthComputable;e.loaded= g.loaded;e.total=g.total;b._onProgress(e,a)}),a.xhr=function(){return d})},_deinitProgressListener:function(a){a=a.xhr?a.xhr():c.ajaxSettings.xhr();a.upload&&c(a.upload).off("progress")},_isInstanceOf:function(a,b){return Object.prototype.toString.call(b)==="[object "+a+"]"},_getUniqueFilename:function(a,b){a=String(a);if(b[a])return a=a.replace(/(?: \(([\d]+)\))?(\.[^.]+)?$/,function(d,e,g){return" ("+(e?Number(e)+1:1)+")"+(g||"")}),this._getUniqueFilename(a,b);b[a]=!0;return a},_initXHRData:function(a){var b= this,d=a.files[0],e=a.multipart||!c.support.xhrFileUpload,g="array"===c.type(a.paramName)?a.paramName[0]:a.paramName;a.headers=c.extend({},a.headers);a.contentRange&&(a.headers["Content-Range"]=a.contentRange);e&&!a.blob&&this._isInstanceOf("File",d)||(a.headers["Content-Disposition"]='attachment; filename\x3d"'+encodeURI(d.uploadName||d.name)+'"');if(!e)a.contentType=d.type||"application/octet-stream",a.data=a.blob||d;else if(c.support.xhrFormDataFileUpload){if(a.postMessage){var h=this._getFormData(a); a.blob?h.push({name:g,value:a.blob}):c.each(a.files,function(k,m){h.push({name:"array"===c.type(a.paramName)&&a.paramName[k]||g,value:m})})}else b._isInstanceOf("FormData",a.formData)?h=a.formData:(h=new FormData,c.each(this._getFormData(a),function(k,m){h.append(m.name,m.value)})),a.blob?h.append(g,a.blob,d.uploadName||d.name):c.each(a.files,function(k,m){if(b._isInstanceOf("File",m)||b._isInstanceOf("Blob",m)){var n=m.uploadName||m.name;a.uniqueFilenames&&(n=b._getUniqueFilename(n,a.uniqueFilenames)); h.append("array"===c.type(a.paramName)&&a.paramName[k]||g,m,n)}});a.data=h}a.blob=null},_initIframeSettings:function(a){var b=c("\x3ca\x3e\x3c/a\x3e").prop("href",a.url).prop("host");a.dataType="iframe "+(a.dataType||"");a.formData=this._getFormData(a);a.redirect&&b&&b!==location.host&&a.formData.push({name:a.redirectParamName||"redirect",value:a.redirect})},_initDataSettings:function(a){this._isXHRUpload(a)?(this._chunkedUpload(a,!0)||(a.data||this._initXHRData(a),this._initProgressListener(a)), a.postMessage&&(a.dataType="postmessage "+(a.dataType||""))):this._initIframeSettings(a)},_getParamName:function(a){var b=c(a.fileInput),d=a.paramName;d?Array.isArray(d)||(d=[d]):(d=[],b.each(function(){var e=c(this),g=e.prop("name")||"files[]";for(e=(e.prop("files")||[1]).length;e;)d.push(g),--e}),d.length||(d=[b.prop("name")||"files[]"]));return d},_initFormSettings:function(a){a.form&&a.form.length||(a.form=c(a.fileInput.prop("form")),a.form.length||(a.form=c(this.options.fileInput.prop("form")))); a.paramName=this._getParamName(a);a.url||(a.url=a.form.prop("action")||location.href);a.type=(a.type||"string"===c.type(a.form.prop("method"))&&a.form.prop("method")||"").toUpperCase();"POST"!==a.type&&"PUT"!==a.type&&"PATCH"!==a.type&&(a.type="POST");a.formAcceptCharset||(a.formAcceptCharset=a.form.attr("accept-charset"))},_getAJAXSettings:function(a){a=c.extend({},this.options,a);this._initFormSettings(a);this._initDataSettings(a);return a},_getDeferredState:function(a){return a.state?a.state(): a.isResolved()?"resolved":a.isRejected()?"rejected":"pending"},_enhancePromise:function(a){a.success=a.done;a.error=a.fail;a.complete=a.always;return a},_getXHRPromise:function(a,b,d){var e=c.Deferred(),g=e.promise();b=b||this.options.context||g;!0===a?e.resolveWith(b,d):!1===a&&e.rejectWith(b,d);g.abort=e.promise;return this._enhancePromise(g)},_addConvenienceMethods:function(a,b){var d=this,e=function(g){return c.Deferred().resolveWith(d,g).promise()};b.process=function(g,h){if(g||h)b._processQueue= this._processQueue=(this._processQueue||e([this])).then(function(){return b.errorThrown?c.Deferred().rejectWith(d,[b]).promise():e(arguments)}).then(g,h);return this._processQueue||e([this])};b.submit=function(){"pending"!==this.state()&&(b.jqXHR=this.jqXHR=!1!==d._trigger("submit",c.Event("submit",{delegatedEvent:a}),this)&&d._onSend(a,this));return this.jqXHR||d._getXHRPromise()};b.abort=function(){if(this.jqXHR)return this.jqXHR.abort();this.errorThrown="abort";d._trigger("fail",null,this);return d._getXHRPromise(!1)}; b.state=function(){if(this.jqXHR)return d._getDeferredState(this.jqXHR);if(this._processQueue)return d._getDeferredState(this._processQueue)};b.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===d._getDeferredState(this._processQueue)};b.progress=function(){return this._progress};b.response=function(){return this._response}},_getUploadedBytes:function(a){return(a=(a=(a=a.getResponseHeader("Range"))&&a.split("-"))&&1<a.length&&parseInt(a[1],10))&&a+1},_chunkedUpload:function(a, b){a.uploadedBytes=a.uploadedBytes||0;var d=this,e=a.files[0],g=e.size,h=a.uploadedBytes,k=a.maxChunkSize||g,m=this._blobSlice,n=c.Deferred(),p=n.promise(),q;if(!(this._isXHRUpload(a)&&m&&(h||("function"===c.type(k)?k(a):k)<g))||a.data)return!1;if(b)return!0;if(h>=g)return e.error=a.i18n("uploadedBytes"),this._getXHRPromise(!1,a.context,[null,"error",e.error]);var r=function(){var l=c.extend({},a),v=l._progress.loaded;l.blob=m.call(e,h,h+("function"===c.type(k)?k(l):k),e.type);l.chunkSize=l.blob.size; l.contentRange="bytes "+h+"-"+(h+l.chunkSize-1)+"/"+g;d._trigger("chunkbeforesend",null,l);d._initXHRData(l);d._initProgressListener(l);q=(!1!==d._trigger("chunksend",null,l)&&c.ajax(l)||d._getXHRPromise(!1,l.context)).done(function(t,w,u){h=d._getUploadedBytes(u)||h+l.chunkSize;v+l.chunkSize-l._progress.loaded&&d._onProgress(c.Event("progress",{lengthComputable:!0,loaded:h-l.uploadedBytes,total:h-l.uploadedBytes}),l);a.uploadedBytes=l.uploadedBytes=h;l.result=t;l.textStatus=w;l.jqXHR=u;d._trigger("chunkdone", null,l);d._trigger("chunkalways",null,l);h<g?r():n.resolveWith(l.context,[t,w,u])}).fail(function(t,w,u){l.jqXHR=t;l.textStatus=w;l.errorThrown=u;d._trigger("chunkfail",null,l);d._trigger("chunkalways",null,l);n.rejectWith(l.context,[t,w,u])}).always(function(){d._deinitProgressListener(l)})};this._enhancePromise(p);p.abort=function(){return q.abort()};r();return p},_beforeSend:function(a,b){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded= this._progress.total=0,this._progress.bitrate=0);this._initResponseObject(b);this._initProgressObject(b);b._progress.loaded=b.loaded=b.uploadedBytes||0;b._progress.total=b.total=this._getTotal(b.files)||1;b._progress.bitrate=b.bitrate=0;this._active+=1;this._progress.loaded+=b.loaded;this._progress.total+=b.total},_onDone:function(a,b,d,e){var g=e._progress.total,h=e._response;e._progress.loaded<g&&this._onProgress(c.Event("progress",{lengthComputable:!0,loaded:g,total:g}),e);h.result=e.result=a; h.textStatus=e.textStatus=b;h.jqXHR=e.jqXHR=d;this._trigger("done",null,e)},_onFail:function(a,b,d,e){var g=e._response;e.recalculateProgress&&(this._progress.loaded-=e._progress.loaded,this._progress.total-=e._progress.total);g.jqXHR=e.jqXHR=a;g.textStatus=e.textStatus=b;g.errorThrown=e.errorThrown=d;this._trigger("fail",null,e)},_onAlways:function(a,b,d,e){this._trigger("always",null,e)},_onSend:function(a,b){b.submit||this._addConvenienceMethods(a,b);var d=this,e,g,h=d._getAJAXSettings(b),k=function(){d._sending+= 1;h._bitrateTimer=new d._BitrateTimer;return e=e||((g||!1===d._trigger("send",c.Event("send",{delegatedEvent:a}),h))&&d._getXHRPromise(!1,h.context,g)||d._chunkedUpload(h)||c.ajax(h)).done(function(n,p,q){d._onDone(n,p,q,h)}).fail(function(n,p,q){d._onFail(n,p,q,h)}).always(function(n,p,q){d._deinitProgressListener(h);d._onAlways(n,p,q,h);--d._sending;--d._active;if(h.limitConcurrentUploads&&h.limitConcurrentUploads>d._sending)for(n=d._slots.shift();n;){if("pending"===d._getDeferredState(n)){n.resolve(); break}n=d._slots.shift()}0===d._active&&d._trigger("stop")})};this._beforeSend(a,h);if(this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending){if(1<this.options.limitConcurrentUploads){var m=c.Deferred();this._slots.push(m);b=m.then(k)}else b=this._sequence=this._sequence.then(k,k);b.abort=function(){g=[void 0,"abort","abort"];return e?e.abort():(m&&m.rejectWith(h.context,g),k())};return this._enhancePromise(b)}return k()},_onAdd:function(a, b){var d=this,e=!0,g=c.extend({},this.options,b),h=b.files,k=h.length,m=g.limitMultiFileUploads,n=g.limitMultiFileUploadSize,p=g.limitMultiFileUploadSizeOverhead,q=0,r=this._getParamName(g),l=0;if(!k)return!1;n&&void 0===h[0].size&&(n=void 0);if((g.singleFileUploads||m||n)&&this._isXHRUpload(g))if(g.singleFileUploads||n||!m)if(!g.singleFileUploads&&n){var v=[];var t=[];for(g=0;g<k;g+=1)if(q+=h[g].size+p,g+1===k||q+h[g+1].size+p>n||m&&g+1-l>=m)v.push(h.slice(l,g+1)),q=r.slice(l,g+1),q.length||(q=r), t.push(q),l=g+1,q=0}else t=r;else for(v=[],t=[],g=0;g<k;g+=m)v.push(h.slice(g,g+m)),q=r.slice(g,g+m),q.length||(q=r),t.push(q);else v=[h],t=[r];b.originalFiles=h;c.each(v||h,function(w,u){var x=c.extend({},b);x.files=v?u:[u];x.paramName=t[w];d._initResponseObject(x);d._initProgressObject(x);d._addConvenienceMethods(a,x);return e=d._trigger("add",c.Event("add",{delegatedEvent:a}),x)});return e},_replaceFileInput:function(a){var b=a.fileInput,d=b.clone(!0),e=b.is(document.activeElement);a.fileInputClone= d;c("\x3cform\x3e\x3c/form\x3e").append(d)[0].reset();b.after(d).detach();e&&d.trigger("focus");c.cleanData(b.off("remove"));this.options.fileInput=this.options.fileInput.map(function(g,h){return h===b[0]?d[0]:h});b[0]===this.element[0]&&(this.element=d)},_handleFileTreeEntry:function(a,b){var d=this,e=c.Deferred(),g=[],h=function(p){p&&!p.entry&&(p.entry=a);e.resolve([p])},k=function(p){d._handleFileTreeEntries(p,b+a.name+"/").done(function(q){e.resolve(q)}).fail(h)},m=function(){n.readEntries(function(p){p.length? (g=g.concat(p),m()):k(g)},h)};b=b||"";if(a.isFile)a._file?(a._file.relativePath=b,e.resolve(a._file)):a.file(function(p){p.relativePath=b;e.resolve(p)},h);else if(a.isDirectory){var n=a.createReader();m()}else e.resolve([]);return e.promise()},_handleFileTreeEntries:function(a,b){var d=this;return c.when.apply(c,c.map(a,function(e){return d._handleFileTreeEntry(e,b)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(a){a=a||{};var b=a.items;return b&& b.length&&(b[0].webkitGetAsEntry||b[0].getAsEntry)?this._handleFileTreeEntries(c.map(b,function(d){var e;if(d.webkitGetAsEntry){if(e=d.webkitGetAsEntry())e._file=d.getAsFile();return e}return d.getAsEntry()})):c.Deferred().resolve(c.makeArray(a.files)).promise()},_getSingleFileInputFiles:function(a){a=c(a);var b=a.prop("webkitEntries")||a.prop("entries");if(b&&b.length)return this._handleFileTreeEntries(b);b=c.makeArray(a.prop("files"));if(b.length)void 0===b[0].name&&b[0].fileName&&c.each(b,function(d, e){e.name=e.fileName;e.size=e.fileSize});else{a=a.prop("value");if(!a)return c.Deferred().resolve([]).promise();b=[{name:a.replace(/^.*\\/,"")}]}return c.Deferred().resolve(b).promise()},_getFileInputFiles:function(a){return a instanceof c&&1!==a.length?c.when.apply(c,c.map(a,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(a)},_onChange:function(a){var b=this,d={fileInput:c(a.target),form:c(a.target.form)};this._getFileInputFiles(d.fileInput).always(function(e){d.files= e;b.options.replaceFileInput&&b._replaceFileInput(d);!1!==b._trigger("change",c.Event("change",{delegatedEvent:a}),d)&&b._onAdd(a,d)})},_onPaste:function(a){var b=a.originalEvent&&a.originalEvent.clipboardData&&a.originalEvent.clipboardData.items,d={files:[]};b&&b.length&&(c.each(b,function(e,g){(e=g.getAsFile&&g.getAsFile())&&d.files.push(e)}),!1!==this._trigger("paste",c.Event("paste",{delegatedEvent:a}),d)&&this._onAdd(a,d))},_onDrop:function(a){a.dataTransfer=a.originalEvent&&a.originalEvent.dataTransfer; var b=this,d=a.dataTransfer,e={};d&&d.files&&d.files.length&&(a.preventDefault(),this._getDroppedFiles(d).always(function(g){e.files=g;!1!==b._trigger("drop",c.Event("drop",{delegatedEvent:a}),e)&&b._onAdd(a,e)}))},_onDragOver:f("dragover"),_onDragEnter:f("dragenter"),_onDragLeave:f("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone, {paste:this._onPaste}));c.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(a,b){var d=-1!==c.inArray(a,this._specialOptions);d&&this._destroyEventHandlers();this._super(a,b);d&&(this._initSpecialOptions(),this._initEventHandlers())}, _initSpecialOptions:function(){var a=this.options;void 0===a.fileInput?a.fileInput=this.element.is('input[type\x3d"file"]')?this.element:this.element.find('input[type\x3d"file"]'):a.fileInput instanceof c||(a.fileInput=c(a.fileInput));a.dropZone instanceof c||(a.dropZone=c(a.dropZone));a.pasteZone instanceof c||(a.pasteZone=c(a.pasteZone))},_getRegExp:function(a){a=a.split("/");var b=a.pop();a.shift();return new RegExp(a.join("/"),b)},_isRegExpOption:function(a,b){return"url"!==a&&"string"===c.type(b)&& /^\/.*\/[igm]{0,3}$/.test(b)},_initDataAttributes:function(){var a=this,b=this.options,d=this.element.data();c.each(this.element[0].attributes,function(e,g){e=g.name.toLowerCase();/^data-/.test(e)&&(e=e.slice(5).replace(/-[a-z]/g,function(h){return h.charAt(1).toUpperCase()}),g=d[e],a._isRegExpOption(e,g)&&(g=a._getRegExp(g)),b[e]=g)})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(!0);this._sending=this._active=0;this._initProgressObject(this); this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(a){var b=this;a&&!this.options.disabled&&(a.fileInput&&!a.files?this._getFileInputFiles(a.fileInput).always(function(d){a.files=d;b._onAdd(null,a)}):(a.files=c.makeArray(a.files),this._onAdd(null,a)))},send:function(a){if(a&&!this.options.disabled){if(a.fileInput&&!a.files){var b=this,d=c.Deferred(),e=d.promise(),g,h;e.abort=function(){h=!0;if(g)return g.abort();d.reject(null, "abort","abort");return e};this._getFileInputFiles(a.fileInput).always(function(k){h||(k.length?(a.files=k,g=b._onSend(null,a),g.then(function(m,n,p){d.resolve(m,n,p)},function(m,n,p){d.reject(m,n,p)})):d.reject())});return this._enhancePromise(e)}a.files=c.makeArray(a.files);if(a.files.length)return this._onSend(null,a)}return this._getXHRPromise(!1,a&&a.context)}})}); PrimeFaces.widget.FileUpload=PrimeFaces.widget.BaseWidget.extend({IMAGE_TYPES:/(\.|\/)(gif|jpe?g|png)$/i,init:function(c){this._super(c);if(!this.cfg.disabled){this.ucfg={};this.form=this.jq.closest("form");this.buttonBar=this.jq.children(".ui-fileupload-buttonbar");this.dragoverCount=0;this.customDropZone=void 0!==this.cfg.dropZone?PrimeFaces.expressions.SearchExpressionFacade.resolveComponentsAsSelector(this.cfg.dropZone):null;this.dropZone=!1===this.cfg.dnd?null:this.customDropZone||this.jq;this.chooseButton= this.buttonBar.children(".ui-fileupload-choose");this.uploadButton=this.buttonBar.children(".ui-fileupload-upload");this.cancelButton=this.buttonBar.children(".ui-fileupload-cancel");this.content=this.jq.children(".ui-fileupload-content");this.filesTbody=this.content.find("\x3e div.ui-fileupload-files \x3e div");this.sizes=["Bytes","KB","MB","GB","TB"];this.files=[];this.fileAddIndex=0;this.cfg.invalidFileMessage=this.cfg.invalidFileMessage||"Invalid file type";this.cfg.invalidSizeMessage=this.cfg.invalidSizeMessage|| "Invalid file size";this.cfg.fileLimitMessage=this.cfg.fileLimitMessage||"Maximum number of files exceeded";this.cfg.messageTemplate=this.cfg.messageTemplate||"{name} {size}";this.cfg.previewWidth=this.cfg.previewWidth||80;this.cfg.maxRetries=this.cfg.maxRetries||30;this.cfg.retryTimeout=this.cfg.retryTimeout||1E3;this.cfg.global=!0===this.cfg.global||void 0===this.cfg.global?!0:!1;this.fileId=this.uploadedFileCount=0;this.renderMessages();this.bindEvents();var f=this;c=PrimeFaces.ajax.Request.extractParameterNamespace(this.form); this.ucfg={url:PrimeFaces.ajax.Utils.getPostUrl(this.form),portletForms:PrimeFaces.ajax.Utils.getPorletForms(this.form,c),paramName:this.id,dataType:"xml",dropZone:this.dropZone,sequentialUploads:this.cfg.sequentialUploads,maxChunkSize:this.cfg.maxChunkSize,maxRetries:this.cfg.maxRetries,retryTimeout:this.cfg.retryTimeout,source:f.id,formData:function(){return f.createPostData()},beforeSend:function(a,b){a.setRequestHeader("Faces-Request","partial/ajax");a.pfSettings=b;a.pfArgs={};f.cfg.global&&$(document).trigger("pfAjaxSend", [a,this])},start:function(a){f.cfg.onstart&&f.cfg.onstart.call(f)},add:function(a,b){f.chooseButton.removeClass("ui-state-hover ui-state-focus");0===f.fileAddIndex&&f.clearMessages();if(f.cfg.fileLimit&&f.uploadedFileCount+f.files.length+1>f.cfg.fileLimit)f.clearMessages(),f.showMessage({summary:f.cfg.fileLimitMessage});else{var d=b.files?b.files[0]:null;if(d){if(a=f.validate(d)){if(f.showMessage({summary:a,filename:d.name,filesize:d.size}),f.postSelectFile(b),f.cfg.onvalidationfailure)f.cfg.onvalidationfailure({summary:a, filename:d.name,filesize:d.size})}else f.cfg.onAdd?f.cfg.onAdd.call(f,d,function(e){d=e;b.files[0]=e;f.addFileToRow(d,b)}):f.addFileToRow(d,b);f.cfg.resumeContextPath&&0<f.cfg.maxChunkSize&&$.getJSON(f.cfg.resumeContextPath,{"X-File-Id":f.createXFileId(d)},function(e){b.uploadedBytes=e.uploadedBytes})}}},send:function(a,b){if(!window.FormData)for(a=0;a<b.files.length;a++){var d=b.files[a];d.row&&d.row.children(".ui-fileupload-progress").find("\x3e .ui-progressbar \x3e .ui-progressbar-value").addClass("ui-progressbar-value-legacy").css({width:"100%", display:"block"})}},fail:function(a,b){if("abort"===b.errorThrown)f.cfg.resumeContextPath&&0<f.cfg.maxChunkSize&&$.ajax({url:f.cfg.resumeContextPath+"?"+$.param({"X-File-Id":f.createXFileId(b.files[0])}),dataType:"json",type:"DELETE"}),f.cfg.oncancel&&f.cfg.oncancel.call(f);else{if(f.cfg.resumeContextPath&&0<f.cfg.maxChunkSize){void 0===b.context&&(b.context=$(this));var d=$(this).data("blueimp-fileupload")||$(this).data("fileupload"),e=b.context.data("retries")||0,g=function(){$.getJSON(f.cfg.resumeContextPath, {"X-File-Id":f.createXFileId(b.files[0])}).done(function(h){b.uploadedBytes=h.uploadedBytes;b.data=null;b.submit()}).fail(function(){d._trigger("fail",a,b)})};if("abort"!==b.errorThrown&&b.uploadedBytes<b.files[0].size&&e<d.options.maxRetries){e+=1;b.context.data("retries",e);window.setTimeout(g,e*d.options.retryTimeout);return}b.context.removeData("retries")}f.cfg.onerror&&f.cfg.onerror.call(f,b.jqXHR,b.textStatus,b.jqXHR.pfArgs)}},progress:function(a,b){if(window.FormData){a=parseInt(b.loaded/b.total* 100,10);for(var d=0;d<b.files.length;d++){var e=b.files[d];e.row&&(e=e.row.children(".ui-fileupload-progress").find("\x3e .ui-progressbar"),e.attr("aria-valuenow",a),e.find("\x3e .ui-progressbar-value").css({width:a+"%",display:"block"}))}}},done:function(a,b){f.uploadedFileCount+=b.files.length;f.removeFiles(b.files);PrimeFaces.ajax.Response.handle(b.result,b.textStatus,b.jqXHR,null);f.cfg.global&&$(document).trigger("pfAjaxSuccess")},always:function(a,b){f.cfg.global&&$(document).trigger("pfAjaxComplete"); f.cfg.oncomplete&&f.cfg.oncomplete.call(f,b.jqXHR.pfArgs,b)},chunkbeforesend:function(a,b){a=f.createPostData();a.push({name:"X-File-Id",value:f.createXFileId(b.files[0])});b.formData=a}};this.jq.fileupload(this.ucfg)}},destroy:function(){try{this.jq.fileupload("destroy")}catch(c){PrimeFaces.debug("Could not destroy FileUpload: "+c)}this._super()},addFileToRow:function(c,f){var a=this,b=$('\x3cdiv class\x3d"ui-fileupload-row"\x3e\x3c/div\x3e').append('\x3cdiv class\x3d"ui-fileupload-preview"\x3e\x3c/td\x3e').append('\x3cdiv class\x3d"ui-fileupload-filename"\x3e'+ PrimeFaces.escapeHTML(c.name)+"\x3c/div\x3e").append("\x3cdiv\x3e"+this.formatSize(c.size)+"\x3c/div\x3e").append('\x3cdiv class\x3d"ui-fileupload-progress"\x3e\x3c/div\x3e').append('\x3cdiv\x3e\x3cbutton class\x3d"ui-fileupload-cancel ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only"\x3e\x3cspan class\x3d"ui-button-icon-left ui-icon ui-icon ui-icon-close"\x3e\x3c/span\x3e\x3cspan class\x3d"ui-button-text"\x3eui-button\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e').appendTo(this.filesTbody); 1<this.filesTbody.children(".ui-fileupload-row").length&&$('\x3cdiv class\x3d"ui-widget-content"\x3e\x3c/div\x3e').prependTo(b);if(window.File&&window.FileReader&&a.IMAGE_TYPES.test(c.name)){var d=$("\x3ccanvas\x3e\x3c/canvas\x3e").appendTo(b.children("div.ui-fileupload-preview")),e=d.get(0).getContext("2d"),g=(window.URL||window.webkitURL).createObjectURL(c),h=new Image;h.onload=function(){var k=1;if(a.cfg.previewWidth>this.width)var m=this.width;else m=a.cfg.previewWidth,k=a.cfg.previewWidth/this.width; k=parseInt(this.height*k);d.attr({width:m,height:k});e.drawImage(h,0,0,m,k)};h.src=g}b.children("div.ui-fileupload-progress").append('\x3cdiv class\x3d"ui-progressbar ui-widget ui-widget-content ui-corner-all" role\x3d"progressbar" aria-valuemin\x3d"0" aria-valuemax\x3d"100" aria-valuenow\x3d"0"\x3e\x3cdiv class\x3d"ui-progressbar-value ui-widget-header ui-corner-left" style\x3d"display: none; width: 0%;"\x3e\x3c/div\x3e\x3c/div\x3e');c.row=b;c.row.data("fileId",this.fileId++);c.row.data("filedata", f);this.files.push(c);this.cfg.auto&&this.upload();this.postSelectFile(f)},postSelectFile:function(c){0<this.files.length&&(this.enableButton(this.uploadButton),this.enableButton(this.cancelButton));this.fileAddIndex++;this.fileAddIndex===c.originalFiles.length&&(this.fileAddIndex=0)},bindEvents:function(){var c=this;PrimeFaces.skinButton(this.buttonBar.children("button"));var f=!1;this.chooseButton.off("mouseover.fileupload mouseout.fileupload mouseup.fileupload focus.fileupload blur.fileupload mousedown.fileupload click.fileupload keydown.fileupload"); this.chooseButton.on("mouseover.fileupload",function(){var b=$(this);b.prop("disabled")||b.addClass("ui-state-hover")}).on("mouseout.fileupload",function(){$(this).removeClass("ui-state-active ui-state-hover")}).on("mouseup.fileupload",function(){$(this).removeClass("ui-state-active").addClass("ui-state-hover")}).on("focus.fileupload",function(){$(this).addClass("ui-state-focus")}).on("blur.fileupload",function(){$(this).removeClass("ui-state-focus");f=!1}).on("mousedown.fileupload",function(){var b= $(this);b.prop("disabled")||b.addClass("ui-state-active").removeClass("ui-state-hover")}).on("click.fileupload",function(b){c.show()}).on("keydown.fileupload",function(b){PrimeFaces.utils.isActionKey(b)&&(c.show(),$(this).trigger("blur"),b.preventDefault())});this.chooseButton.children("input").off("click.fileupload").on("click.fileupload",function(b){f?(f=!1,b.preventDefault(),b.stopPropagation()):f=!0});this.uploadButton.off("click.fileupload").on("click.fileupload",function(b){b.preventDefault(); if(c.cfg.onupload&&!1===c.cfg.onupload.call(c))return!1;c.disableButton(c.uploadButton);c.disableButton(c.cancelButton);c.upload()});this.cancelButton.off("click.fileupload").on("click.fileupload",function(b){c.clear();c.disableButton(c.uploadButton);c.disableButton(c.cancelButton);b.preventDefault()});this.clearMessageLink.off("click.fileupload").on("click.fileupload",function(b){c.messageContainer.fadeOut(function(){c.messageList.children().remove()});b.preventDefault()});this.rowActionSelector= this.jqId+" .ui-fileupload-files button";this.rowCancelActionSelector=this.jqId+" .ui-fileupload-files .ui-fileupload-cancel";this.clearMessagesSelector=this.jqId+" .ui-messages .ui-messages-close";var a=".fileupload"+this.id;$(document).off(a,this.rowCancelActionSelector).on("mouseover"+a,this.rowCancelActionSelector,null,function(b){$(this).addClass("ui-state-hover")}).on("mouseout"+a,this.rowCancelActionSelector,null,function(b){$(this).removeClass("ui-state-hover ui-state-active")}).on("mousedown"+ a,this.rowCancelActionSelector,null,function(b){$(this).addClass("ui-state-active").removeClass("ui-state-hover")}).on("mouseup"+a,this.rowCancelActionSelector,null,function(b){$(this).addClass("ui-state-hover").removeClass("ui-state-active")}).on("focus"+a,this.rowCancelActionSelector,null,function(b){$(this).addClass("ui-state-focus")}).on("blur"+a,this.rowCancelActionSelector,null,function(b){$(this).removeClass("ui-state-focus")}).on("click"+a,this.rowCancelActionSelector,null,function(b){var d= $(this).closest(".ui-fileupload-row"),e=$.grep(c.files,function(g){return g.row.data("fileId")===d.data("fileId")});e[0]&&(e[0].ajaxRequest&&e[0].ajaxRequest.abort(),c.removeFile(e[0]),0===c.files.length&&(c.disableButton(c.uploadButton),c.disableButton(c.cancelButton)));b.preventDefault()});this.addDestroyListener(function(){$(document).off(a)});if(this.dropZone)this.dropZone.off("dragover.fucdropzone dragenter.fucdropzone dragleave.fucdropzone drop.fucdropzone dragdrop.fucdropzone").on("dragover.fucdropzone", function(b){b.preventDefault()}).on("dragenter.fucdropzone",function(b){b.preventDefault();c.dragoverCount++;c.dropZone.addClass("ui-state-drag")}).on("dragleave.fucdropzone",function(b){c.dragoverCount--;0===c.dragoverCount&&c.dropZone.removeClass("ui-state-drag")}).on("drop.fucdropzone dragdrop.fucdropzone",function(b){c.dragoverCount=0;c.dropZone.removeClass("ui-state-drag")})},upload:function(){this.cfg.global&&$(document).trigger("pfAjaxStart");for(var c=0;c<this.files.length;c++)this.files[c].ajaxRequest= this.files[c].row.data("filedata"),this.files[c].ajaxRequest.submit()},createPostData:function(){var c=this.cfg.process?this.id+" "+PrimeFaces.expressions.SearchExpressionFacade.resolveComponents(this.cfg.process).join(" "):this.id,f=this.form.serializeArray(),a=PrimeFaces.ajax.Request.extractParameterNamespace(this.form);PrimeFaces.ajax.Request.addParam(f,PrimeFaces.PARTIAL_REQUEST_PARAM,!0,a);PrimeFaces.ajax.Request.addParam(f,PrimeFaces.PARTIAL_PROCESS_PARAM,c,a);PrimeFaces.ajax.Request.addParam(f, PrimeFaces.PARTIAL_SOURCE_PARAM,this.id,a);this.cfg.update&&(c=PrimeFaces.expressions.SearchExpressionFacade.resolveComponents(this.cfg.update).join(" "),PrimeFaces.ajax.Request.addParam(f,PrimeFaces.PARTIAL_UPDATE_PARAM,c,a));return f},createXFileId:function(c){return[c.name,c.lastModified,c.type,c.size].join()},formatSize:function(c){if(void 0===c)return"";if(0===c)return"N/A";var f=parseInt(Math.floor(Math.log(c)/Math.log(1024)));return 0===f?c+" "+this.sizes[f]:(c/Math.pow(1024,f)).toFixed(1)+ " "+this.sizes[f]},removeFiles:function(c){for(var f=0;f<c.length;f++)this.removeFile(c[f])},removeFile:function(c){this.files=$.grep(this.files,function(f){return f.row.data("fileId")===c.row.data("fileId")},!0);this.removeFileRow(c.row);c.row=null},removeFileRow:function(c){c&&(this.disableButton(c.find("\x3e div:last-child").children(".ui-fileupload-cancel")),c.fadeOut(function(){$(this).remove()}))},clear:function(){for(var c=0;c<this.files.length;c++)this.removeFileRow(this.files[c].row),this.files[c].row= null;this.clearMessages();this.files=[]},validate:function(c){return!this.cfg.allowTypes||this.cfg.allowTypes.test(c.type)||this.cfg.allowTypes.test(c.name)?this.cfg.maxFileSize&&c.size>this.cfg.maxFileSize?this.cfg.invalidSizeMessage:null:this.cfg.invalidFileMessage},renderMessages:function(){this.messageContainer=$('\x3cdiv class\x3d"ui-messages ui-widget ui-helper-hidden ui-fileupload-messages"\x3e\x3cdiv class\x3d"ui-messages-error ui-corner-all"\x3e\x3ca class\x3d"ui-messages-close" href\x3d"#"\x3e\x3cspan class\x3d"ui-icon ui-icon-close"\x3e\x3c/span\x3e\x3c/a\x3e\x3cspan class\x3d"ui-messages-error-icon"\x3e\x3c/span\x3e\x3cul\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e').prependTo(this.content); this.messageList=this.messageContainer.find("\x3e .ui-messages-error \x3e ul");this.clearMessageLink=this.messageContainer.find("\x3e .ui-messages-error \x3e a.ui-messages-close")},clearMessages:function(){this.messageContainer.hide();this.messageList.children().remove()},showMessage:function(c){var f=c.summary,a="";c.filename&&c.filesize&&(a=this.cfg.messageTemplate.replace("{name}",c.filename).replace("{size}",this.formatSize(c.filesize)));this.messageList.append('\x3cli\x3e\x3cspan class\x3d"ui-messages-error-summary"\x3e'+ PrimeFaces.escapeHTML(f)+'\x3c/span\x3e\x3cspan class\x3d"ui-messages-error-detail"\x3e'+PrimeFaces.escapeHTML(a)+"\x3c/span\x3e\x3c/li\x3e");this.messageContainer.show()},disableButton:function(c){c.prop("disabled",!0).attr("aria-disabled",!0).addClass("ui-state-disabled").removeClass("ui-state-hover ui-state-active ui-state-focus")},enableButton:function(c){c.prop("disabled",!1).attr("aria-disabled",!1).removeClass("ui-state-disabled")},show:function(){this.chooseButton.children("input").trigger("click")}}); PrimeFaces.widget.SimpleFileUpload=PrimeFaces.widget.BaseWidget.extend({init:function(c){this._super(c);if(!this.cfg.disabled)if(this.cfg.invalidFileMessage=this.cfg.invalidFileMessage||"Invalid file type",this.cfg.invalidSizeMessage=this.cfg.invalidSizeMessage||"Invalid file size",this.cfg.fileLimitMessage=this.cfg.fileLimitMessage||"Maximum number of files exceeded",this.cfg.messageTemplate=this.cfg.messageTemplate||"{name} {size}",this.cfg.global=!0===this.cfg.global||void 0===this.cfg.global? !0:!1,this.sizes=["Bytes","KB","MB","GB","TB"],this.maxFileSize=this.cfg.maxFileSize,this.form=this.jq.closest("form"),this.input=$(this.jqId),this.cfg.skinSimple)this.input=$(this.jqId+"_input"),this.button=this.jq.children(".ui-button"),this.display=this.jq.children(".ui-fileupload-filename"),this.input.prop("disabled")||this.bindEvents();else if(this.cfg.auto){var f=this;this.input.on("change.fileupload",function(){f.upload()})}},bindEvents:function(){var c=this;this.button.on("mouseover.fileupload", function(){var f=$(this);f.prop("disabled")||f.addClass("ui-state-hover")}).on("mouseout.fileupload",function(){$(this).removeClass("ui-state-active ui-state-hover")}).on("mousedown.fileupload",function(){var f=$(this);f.prop("disabled")||f.addClass("ui-state-active").removeClass("ui-state-hover")}).on("mouseup.fileupload",function(){$(this).removeClass("ui-state-active").addClass("ui-state-hover")});this.input.on("change.fileupload",function(){var f=c.input[0].files;if(f){var a;if(f.length>c.cfg.fileLimit){var b= c.cfg.fileLimitMessage;var d=a=null}for(var e=0;!b&&e<f.length;++e){var g=f[e],h=c.validate(g);h&&(b=h,a=g.name,d=g.size)}if(b){if(f="",a&&d&&(f+=": "+c.cfg.messageTemplate.replace("{name}",a).replace("{size}",c.formatSize(d))),c.display.text(b+f),c.input.val(""),f=c.input[0].files,c.cfg.onvalidationfailure)c.cfg.onvalidationfailure({summary:b,filename:a,filesize:d})}else 0<f.length?(b=c.cfg.messageTemplate.replace("{name}",f[0].name).replace("{size}",c.formatSize(f[0].size)),1<f.length&&(b=b+" + "+ (f.length-1)),c.display.text(b)):c.display.text("");c.cfg.auto&&0<f.length&&c.upload()}else c.input.val("")}).on("focus.fileupload",function(){c.button.addClass("ui-state-focus")}).on("blur.fileupload",function(){c.button.removeClass("ui-state-focus")})},validate:function(c){return!this.cfg.allowTypes||this.cfg.allowTypes.test(c.type)||this.cfg.allowTypes.test(c.name)?this.cfg.maxFileSize&&c.size>this.cfg.maxFileSize?this.cfg.invalidSizeMessage:null:this.cfg.invalidFileMessage},formatSize:function(c){if(void 0=== c)return"";if(0===c)return"N/A";var f=parseInt(Math.floor(Math.log(c)/Math.log(1024)));return 0===f?c+" "+this.sizes[f]:(c/Math.pow(1024,f)).toFixed(1)+" "+this.sizes[f]},show:function(){this.cfg.skinSimple?this.input.trigger("click"):this.jq.trigger("click")},clear:function(){this.input&&this.input.val("");this.display&&this.display.text("")},upload:function(){var c=this,f=this.input[0].files,a=PrimeFaces.ajax.Request.extractParameterNamespace(this.form),b=this.cfg.process?this.id+" "+PrimeFaces.expressions.SearchExpressionFacade.resolveComponents(this.cfg.process).join(" "): this.id,d=this.cfg.update?PrimeFaces.expressions.SearchExpressionFacade.resolveComponents(this.cfg.update).join(" "):null;b=PrimeFaces.ajax.Request.createFacesAjaxFormData(this.form,a,this.id,b,d);c.cfg.global&&$(document).trigger("pfAjaxStart");for(d=0;d<f.length;d++)b.append(this.input.attr("id"),f[d]);f={url:PrimeFaces.ajax.Utils.getPostUrl(this.form),portletForms:PrimeFaces.ajax.Utils.getPorletForms(this.form,a),type:"POST",cache:!1,dataType:"xml",data:b,processData:!1,contentType:!1,global:!1, beforeSend:function(e,g){e.setRequestHeader("Faces-Request","partial/ajax");e.pfSettings=g;e.pfArgs={};c.cfg.global&&$(document).trigger("pfAjaxSend",[e,this])}};f=$.ajax(f).fail(function(e,g,h){var k=e.getResponseHeader("Location");401===e.status&&k?(PrimeFaces.debug("Unauthorized status received. Redirecting to "+k),window.location=k):(c.cfg.onerror&&c.cfg.onerror.call(this,e,g,h),PrimeFaces.error("Request return with error:"+g+"."))}).done(function(e,g,h){PrimeFaces.debug("Response received successfully."); try{var k;c.cfg.onsuccess&&(k=c.cfg.onsuccess.call(this,e,g,h));if(k)return;PrimeFaces.ajax.Response.handle(e,g,h)}catch(m){PrimeFaces.error(m)}PrimeFaces.debug("DOM is updated.")}).always(function(e,g,h){c.cfg.oncomplete&&c.cfg.oncomplete.call(this,h,g,h.pfArgs,e);PrimeFaces.debug("Response completed.");c.clear();c.cfg.global&&$(document).trigger("pfAjaxComplete",[h,this])});PrimeFaces.ajax.Queue.addXHR(f)}});