diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js')
-rw-r--r-- | plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js b/plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js index f36a43bb..5677cd3f 100644 --- a/plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js +++ b/plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js @@ -1,3 +1,3 @@ /* Do not modify this file directly. It is compiled from other files. */ /* globals plupload, pluploadL10n, error */ -window.wp=window.wp||{},function(e){var i={originalOptions:{},handleStandardResponse:function(e,i){return!_.isObject(e)||_.isUndefined(e.success)?error(pluploadL10n.default_error,null,i):e.success?e:error(e.data&&e.data.message,e.data,i)},handleRestApiResponse:function(e,i){if(1!==e.media.length)return error(pluploadL10n.default_error,null,i);var t=e.media[0],a=t.mime_type.split("/"),o={alt:"",author:t.author_ID||0,authorName:"",caption:"",compat:{item:"",meta:""},date:t.date||"",dateFormatted:t.date||"",description:t.description||"",editLink:"",filename:t.file||"",filesizeHumanReadable:"",filesizeInBytes:"",height:t.height,icon:t.icon||"",id:t.ID||"",link:t.URL||"",menuOrder:0,meta:!1,mime:t.mime_type||"",modified:0,name:"",nonces:{update:"",delete:"",edit:""},orientation:"",sizes:void 0,status:"",subtype:a[1]||"",title:t.title||"",type:a[0]||"",uploadedTo:1,uploadedToLink:"",uploadedToTitle:"",url:t.URL||"",width:t.width,success:"",videopress:{guid:t.videopress_guid||null,processing_done:t.videopress_processing_done||!1}};return e.data=o,e},resetToOriginalOptions:function(e){void 0!==i.originalOptions.url&&(e.setOption("url",i.originalOptions.url),delete i.originalOptions.url),void 0!==i.originalOptions.multipart_params&&(e.setOption("multipart_params",i.originalOptions.multipart_params),delete i.originalOptions.multipart_params),void 0!==i.originalOptions.file_data_name&&(e.setOption("file_data_name",i.originalOptions.file_data_name),delete i.originalOptions.file_data_name)}};if(void 0!==e.Uploader){var t=e.media;plupload.VIDEOPRESS_TOKEN_FAILURE="VP_TOKEN_FAILURE",plupload.addFileFilter("videopress_check_uploads",function(e,i,a){var o=this;"video"===i.type.split("/")[0]?t.ajax("videopress-get-upload-token",{async:!1,data:{filename:i.name}}).done(function(e){i.videopress=e,a(!0)}).fail(function(e){o.trigger("Error",{code:plupload.VIDEOPRESS_TOKEN_FAILURE,message:plupload.translate("Could not get the VideoPress token needed for uploading"),file:i,response:e}),a(!1)}):void 0!==i.size&&e&&i.size>e?(this.trigger("Error",{code:plupload.FILE_SIZE_ERROR,message:plupload.translate("File size error."),file:i}),a(!1)):a(!0)})}e.VideoPress=i}(window.wp);
\ No newline at end of file +window.wp=window.wp||{},function(e){var i={originalOptions:{},handleStandardResponse:function(e,i){return!_.isObject(e)||_.isUndefined(e.success)?error(pluploadL10n.default_error,null,i):e.success?e:error(e.data&&e.data.message,e.data,i)},handleRestApiResponse:function(e,i){if(1!==e.media.length)return error(pluploadL10n.default_error,null,i);var t=e.media[0],a=t.mime_type.split("/"),o={alt:"",author:t.author_ID||0,authorName:"",caption:"",compat:{item:"",meta:""},date:t.date||"",dateFormatted:t.date||"",description:t.description||"",editLink:"",filename:t.file||"",filesizeHumanReadable:"",filesizeInBytes:"",height:t.height,icon:t.icon||"",id:t.ID||"",link:t.URL||"",menuOrder:0,meta:!1,mime:t.mime_type||"",modified:0,name:"",nonces:{update:"",delete:"",edit:""},orientation:"",sizes:void 0,status:"",subtype:a[1]||"",title:t.title||"",type:a[0]||"",uploadedTo:1,uploadedToLink:"",uploadedToTitle:"",url:t.URL||"",width:t.width,success:"",videopress:{guid:t.videopress_guid||null,processing_done:t.videopress_processing_done||!1}};return e.data=o,e},resetToOriginalOptions:function(e){void 0!==i.originalOptions.url&&(e.setOption("url",i.originalOptions.url),delete i.originalOptions.url),void 0!==i.originalOptions.multipart_params&&(e.setOption("multipart_params",i.originalOptions.multipart_params),delete i.originalOptions.multipart_params),void 0!==i.originalOptions.file_data_name&&(e.setOption("file_data_name",i.originalOptions.file_data_name),delete i.originalOptions.file_data_name)}};if(void 0!==e.Uploader){var t=e.media;plupload.VIDEOPRESS_TOKEN_FAILURE="VP_TOKEN_FAILURE",plupload.addFileFilter("videopress_check_uploads",function(e,i,a){var o=i.type.split("/"),n=this;"video"===o[0]?t.ajax("videopress-get-upload-token",{async:!1,data:{filename:i.name}}).done(function(e){i.videopress=e,a(!0)}).fail(function(e){n.trigger("Error",{code:plupload.VIDEOPRESS_TOKEN_FAILURE,message:plupload.translate("Could not get the VideoPress token needed for uploading"),file:i,response:e}),a(!1)}):void 0!==i.size&&e&&i.size>e?(this.trigger("Error",{code:plupload.FILE_SIZE_ERROR,message:plupload.translate("File size error."),file:i}),a(!1)):a(!0)})}e.VideoPress=i}(window.wp);
\ No newline at end of file |