1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00
Files
seahub/media/assets/frontend/static/js/fileView.70c049d0.js

2 lines
3.4 MiB
JavaScript
Raw Normal View History

/*! For license information please see fileView.70c049d0.js.LICENSE.txt */
(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[1250],{97499:function(e,t,n){"use strict";var r=n(94449),i=n(35740),a=n(64062),o=n.n(a),s=n(28321),u=n(40326),l=window.app.config.lang,c=void 0===l?"en":l;r.A.use(i.A).use(o()).use(s.initReactI18next).init({lng:c,fallbackLng:"en",ns:["sdoc-editor","seafile-editor"],defaultNS:"sdoc-editor",whitelist:["en","zh-CN","fr","de","cs","es","es-AR","es-MX","ru"],backend:{loadPath:u.SG+"{{ ns }}/locales/{{ lng }}/{{ ns }}.json"},debug:!1,interpolation:{escapeValue:!1},load:"currentOnly",react:{wait:!0}}),t.A=r.A},50268:function(e,t,n){"use strict";var r=n(23029),i=n(92901),a=n(39874),o=n(85501),s=n(9950),u=n(13336),l=(n(37253),n(44414)),c=function(e){function t(){return(0,r.A)(this,t),(0,a.A)(this,t,arguments)}return(0,o.A)(t,e),(0,i.A)(t,[{key:"componentDidMount",value:function(){this.player=(0,u.A)(this.videoNode,this.props,(function(){}))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose()}},{key:"render",value:function(){var e=this;return(0,l.jsx)("div",{"data-vjs-player":!0,children:(0,l.jsx)("audio",{ref:function(t){return e.videoNode=t},className:"video-js vjs-has-started"})})}}])}(s.Component);t.A=c},3866:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r={CURRENT_LIBRARY_CHANGED:"current_library_changed",SEARCH_LIBRARY_CONTENT:"search_library_content",RESTORE_IMAGE:"restore_image",OPEN_MARKDOWN:"open_markdown"}},72249:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(23029),i=n(92901),a=function(){return(0,i.A)((function e(){(0,r.A)(this,e),this.subscribers={}}),[{key:"subscribe",value:function(e,t){this.subscribers[e]||(this.subscribers[e]=[]);var n=this.subscribers[e];return n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}},{key:"dispatch",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.subscribers[e];Array.isArray(i)&&i.forEach((function(e){return e.apply(void 0,n)}))}}])}(),o=new a;t.A=a},51164:function(e,t,n){"use strict";n.d(t,{xD:function(){return p.xD},iI:function(){return _},r3:function(){return p.r3},by:function(){return b},ll:function(){return p.ll}});var r=n(23029),i=n(92901),a=n(39874),o=n(85501),s=n(89379),u=n(80045),l=n(9950),c=n(91643),d=n(30615),f=n(29180),p=n(30730),h=n(44414),m=["innerProps"],g=function(e){var t=e.innerProps,n=(0,u.A)(e,m);return n.innerProps=(0,s.A)((0,s.A)({},t),{},{onMouseDown:function(e){e.nativeEvent.stopImmediatePropagation(),t.onMouseDown(e)}}),(0,h.jsx)(c.c.ClearIndicator,(0,s.A)({},n))},v=function(e){return(0,h.jsx)("div",{onClick:function(e){return e.nativeEvent.stopImmediatePropagation()},onMouseDown:function(e){return e.nativeEvent.stopImmediatePropagation()},children:(0,h.jsx)(c.c.MenuList,(0,s.A)((0,s.A)({},e),{},{children:e.children}))})},y=function(e){return(0,h.jsx)("div",{style:e.data.style,children:(0,h.jsx)(c.c.Option,(0,s.A)({},e))})},b=function(e){function t(){var e;(0,r.A)(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=(0,a.A)(this,t,[].concat(i))).getMenuPortalTarget=function(){return document.querySelector(e.props.menuPortalTarget)},e}return(0,o.A)(t,e),(0,i.A)(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.onChange,r=e.value,i=e.isSearchable,a=e.placeholder,o=e.isMulti,s=e.menuPosition,u=e.isClearable,l=e.noOptionsMessage,c=e.classNamePrefix,m=e.innerRef,b=e.isDisabled,E=e.form,_=e.className;return(0,h.jsx)(d.Ay,{value:r,isDisabled:b,ref:m,onChange:n,options:t,isMulti:o,className:_,classNamePrefix:c,styles:p.xD,components:{Option:y,MenuList:v,ClearIndicator:g},filterOption:(0,f.c)({matchFrom:"any",stringify:function(e){return"".concat(e.data.labelValue)}}),placeholder:a,isSearchable:i,isClearable:u,menuPosition:s||"fixed",menuShouldScrollIntoView:!0,menuPortalTarget:this.getMenuPortalTarget(),captureMenuScroll:!1,noOptionsMessage:l,form:E})}}])}(l.Component);b.defaultProps={options:[],value:{},isDisabled:!1,isSearchable:!1,isClearable:!1,placeholder:"",isMulti:!1,menuPortalTarget:".m