PageSourceSearch

https://girder.hub.yt/static/built/plugins/authorized_upload/plugin.min.js

js hub.yt collected 2026-09-24 08:52:04 UTC 5,917 bytes, 1 lines download raw bytes

1var girder_plugin_authorized_upload=function(e){var t={};function o(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.i=function(e){return e},o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(5),o(o.s=21)}([function(e,t){e.exports=girder_lib},function(e,t,o){e.exports=o(0)(0)},function(e,t,o){e.exports=o(0)(1)},function(e,t,o){e.exports=o(0)(20)},function(e,t,o){e.exports=o(0)(7)},function(e,t,o){"use strict";o(6);var r=l(o(14)),i=o(4),n=o(18),a=l(o(11));function l(e){return e&&e.__esModule?e:{default:e}}(0,n.wrap)(r.default,"render",function(e){return e.call(this),"folder"===this.parentModel.resourceName&&this.parentModel.getAccessLevel()>=i.AccessType.WRITE&&this.$(".g-folder-actions-menu a.g-edit-folder").parent().after((0,a.default)({folder:this.parentModel})),this})},function(e,t,o){"use strict";var r=u(o(19)),i=u(o(17)),n=u(o(3)),a=o(4),l=u(o(7)),d=u(o(8));function u(e){return e&&e.__esModule?e:{default:e}}r.default.route("authorize_upload/:folderId","authorizeUpload",function(e){var t=new n.default({_id:e}).once("g:fetched",function(){i.default.trigger("g:navigateTo",l.default,{folder:t})});t.fetch()}),r.default.route("authorized_upload/:folderId/:token","authorizedUpload",function(e,t){i.default.trigger("g:navigateTo",d.default,{token:t,folderId:e},{layout:a.Layout.EMPTY})})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(o(2)),i=o(15),n=a(o(9));function a(e){return e&&e.__esModule?e:{default:e}}o(12);var l=r.default.extend({events:{"click .g-create-authorized-upload":function(){var e=this;(0,i.restRequest)({url:"authorized_upload",method:"POST",data:{folderId:this.folder.id,duration:this.$(".g-num-days").val()||30}}).done(function(t){e.$(".g-url-container").removeClass("hide"),e.$(".g-authorized-upload-url-target").val(t.url).select()})}},initialize:function(e){this.folder=e.folder,this.render()},render:function(){return this.$el.html((0,n.default)({folder:this.folder})),this}});t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(o(3)),i=d(o(2)),n=d(o(16)),a=o(20),l=d(o(10));function d(e){return e&&e.__esModule?e:{default:e}}o(13);var u=i.default.extend({initialize:function(e){var t=this;this.folder=new r.default({_id:e.folderId,name:""}),(0,a.setCurrentToken)(e.token),this.uploadWidget=new n.default({parent:this.folder,title:!1,multiFile:!1,modal:!1,parentView:this,otherParams:function(){return{authorizedUploadDescription:t.$("#g-authorized-upload-description").val(),authorizedUploadEmail:t.$("#g-authorized-upload-email").val()}}}).on("g:uploadFinished",function(){this.$(".g-upload-wrapper").addClass("hide"),this.$(".g-complete-wrapper").removeClass("hide")},this),this.render()},render:function(){return this.$el.html((0,l.default)()),this.uploadWidget.setElement(this.$(".g-upload-widget-container")).render(),this}});t.default=u},function(e,t,o){"use strict";var r=o(1);e.exports=function(e){var t,o="",i=e||{};return function(e){o=o+'<div class="g-body-title">Authorize upload into folder <a'+r.attr("href","#folder/"+e.id,!0,!0)+">"+r.escape(null==(t=e.name())?"":t)+'</a></div><p>This will generate a secure URL that can be used to upload a single file into this folder.\n</p><form><div class="form-group"><label>Number of days until URL expires (optional, defaults to lifetime of user sessions)</label><input class="g-num-days form-control"></div></form><btn class="g-create-authorized-upload btn btn-primary"><i class="icon-link"></i> Generate URL</btn><div class="g-url-container hide"><p>Your secure URL is below. Copy this value and send it to the user who will perform the\nupload. They do not need to register a user in order to perform the upload. This token\nwill allow the user to upload a single file to the destination folder.</p><p>You will be notified via email when the upload is complete.</p><input class="g-authorized-upload-url-target form-control" readonly></div>'}.call(this,"folder"in i?i.folder:"undefined"!=typeof folder?folder:void 0),o}},function(e,t,o){"use strict";o(1);e.exports=function(e){var t="";return t+='<div class="g-authorized-upload-page-wrapper"><div class="g-upload-wrapper"><p>You have been authorized to upload a file to this server. Please drag and drop your file\nhere, or click the button to select it using a file browser, and then click <b>Start Upload</b>.\n</p><p>You may also include your email address and a description of the data.\n</p><label for="g-authorized-upload-email">Your email address (optional)</label><input class="form-control" id="g-authorized-upload-email" placeholder="Enter email"><label for="g-authorized-upload-description">Description of data (optional)</label><input class="form-control" id="g-authorized-upload-description" placeholder="Enter description"><div class="g-upload-widget-container"></div></div><div class="g-complete-wrapper hide"><p>Thank you! Your file has been received.</p></div></div>'}},function(e,t,o){"use strict";var r=o(1);e.exports=function(e){var t="",o=e||{};return function(e){t=t+'<li role="presentation"><a class="g-authorize-upload-here"'+r.attr("href","#authorize_upload/"+e.id,!0,!0)+'><i class="icon-upload"></i>
1Authorize upload here</a></li>'}.call(this,"folder"in o?o.folder:"undefined"!=typeof folder?folder:void 0),t}},function(e,t){},function(e,t){},function(e,t,o){e.exports=o(0)(27)},function(e,t,o){e.exports=o(0)(4)},function(e,t,o){e.exports=o(0)(40)},function(e,t,o){e.exports=o(0)(5)},function(e,t,o){e.exports=o(0)(69)},function(e,t,o){e.exports=o(0)(8)},function(e,t,o){e.exports=o(0)(9)},function(e,t,o){e.exports=o}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.