Pleroma/priv/static/packs/flavours/glitch/admin.js

3 lines
417 KiB
JavaScript
Raw Normal View History

2020-05-20 07:55:14 +02:00
/*! For license information please see admin.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[49,0,87,90],{0:function(e,t,n){"use strict";var a;function r(e,t,n,r){a||(a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=r;else if(i>1){for(var l=new Array(i),f=0;f<i;f++)l[f]=arguments[f+3];t.children=l}if(t&&o)for(var s in o)void 0===t[s]&&(t[s]=o[s]);else t||(t=o||{});return{$$typeof:a,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}n.d(t,"a",(function(){return r}))},1:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return a}))},10:function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",(function(){return a}))},102:function(e,t,n){"use strict";n.r(t),n.d(t,"timeAgoString",(function(){return y})),n.d(t,"default",(function(){return w}));var a,r,o,i=n(0),l=n(2),f=(n(9),n(6),n(8)),s=n(1),u=n(10),c=n(3),d=n.n(c),p=n(7);var m=Object(p.f)({today:{id:"relative_time.today",defaultMessage:"today"},just_now:{id:"relative_time.just_now",defaultMessage:"now"},seconds:{id:"relative_time.seconds",defaultMessage:"{number}s"},minutes:{id:"relative_time.minutes",defaultMessage:"{number}m"},hours:{id:"relative_time.hours",defaultMessage:"{number}h"},days:{id:"relative_time.days",defaultMessage:"{number}d"},moments_remaining:{id:"time_remaining.moments",defaultMessage:"Moments remaining"},seconds_remaining:{id:"time_remaining.seconds",defaultMessage:"{number, plural, one {# second} other {# seconds}} left"},minutes_remaining:{id:"time_remaining.minutes",defaultMessage:"{number, plural, one {# minute} other {# minutes}} left"},hours_remaining:{id:"time_remaining.hours",defaultMessage:"{number, plural, one {# hour} other {# hours}} left"},days_remaining:{id:"time_remaining.days",defaultMessage:"{number, plural, one {# day} other {# days}} left"}}),h={hour12:!1,year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"},g={month:"short",day:"numeric"},b=864e5,y=function(e,t,n,a,r){void 0===r&&(r=!0);var o=n-t.getTime();return o<b&&!r?e.formatMessage(m.today):o<1e4?e.formatMessage(m.just_now):o<7*b?o<6e4?e.formatMessage(m.seconds,{number:Math.floor(o/1e3)}):o<36e5?e.formatMessage(m.minutes,{number:Math.floor(o/6e4)}):o<b?e.formatMessage(m.hours,{number:Math.floor(o/36e5)}):e.formatMessage(m.days,{number:Math.floor(o/b)}):t.getFullYear()===a?e.formatDate(t,g):e.formatDate(t,Object(u.default)({},g,{year:"numeric"}))},w=Object(p.g)((o=r=function(e){Object(f.a)(n,e);var t;t=n;function n(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t=e.call.apply(e,[this].concat(a))||this,Object(s.a)(Object(l.a)(t),"state",{now:t.props.intl.now()}),t}var a=n.prototype;return a.shouldComponentUpdate=function(e,t){return this.props.timestamp!==e.timestamp||this.props.intl.locale!==e.intl.locale||this.state.now!==t.now},a.componentWillReceiveProps=function(e){this.props.timestamp!==e.timestamp&&this.setState({now:this.props.intl.now()})},a.componentDidMount=function(){this._scheduleNextUpdate(this.props,this.state)},a.componentWillUpdate=function(e,t){this._scheduleNextUpdate(e,t)},a.componentWillUnmount=function(){clearTimeout(this._timer)},a._scheduleNextUpdate=function(e,t){var n=this;clearTimeout(this._timer);var a=e.timestamp,r=new Date(a).getTime()-t.now,o=function(e){switch(e){case"second":return 1e3;case"minute":return 6e4;case"hour":return 36e5;case"day":return b;default:return 2147483647}}(function(e){var t=Math.abs(e);return t<6e4?"second":t<36e5?"minute":t<b?"hour":"day"}(r)),i=Math.abs(r%o),l=r<0?Math.max(1e4,o-i):Math.max(1e4,i);this._timer=setTimeout((function(){n.setState({now:n.props.intl.now()})}),l)},a.render=function(){var e=this.props,t=e.timestamp,n=e.intl,a=e.year,r=e.futureDate,
2018-09-16 23:17:34 +02:00
//# sourceMappingURL=admin.js.map