configs/walls/Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit.6073f9b75579a01d0bdf.js

2 lines
78 KiB
JavaScript
Raw Normal View History

2019-03-12 18:36:46 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit"],{"./src/lib/prettyPrintNumber/index.ts":function(e,t,i){"use strict";i.d(t,"a",function(){return o}),i.d(t,"b",function(){return h});const o=e=>{const t=e.split(".");return[t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")].concat(t.slice(1)).join(".")},s=1e3,r=100*s,n=10*r,a=100*n,l=10*a,c=100*l,d=51;function h(e,t){return t?o(e.toString()):e>=c-d?`${Math.floor(e/n)}b`:e>=l-d&&e<c-d?`${(e/l).toFixed(1)}b`:e>=a-d&&e<l-d?`${Math.floor(e/n)}m`:e>=n-d&&e<a-d?`${(e/n).toFixed(1)}m`:e>=r-d&&e<n-d?`${Math.floor(e/s)}k`:e>=s&&e<r-d?`${(e/s).toFixed(1)}k`:String(e)}},"./src/lib/timeAgo/index.ts":function(e,t,i){"use strict";i.d(t,"b",function(){return c}),i.d(t,"a",function(){return d});var o=i("./src/app/strings/index.ts"),s=i("./src/lib/constants/index.ts");const r={[s.kb]:s.Wb,[s.N]:s.kb,[s.y]:s.N,[s.lb]:s.y,[s.Dc]:s.lb},n={[s.Wb]:"time.seconds",[s.kb]:"time.minutes",[s.N]:"time.hours",[s.y]:"time.days",[s.lb]:"time.months",[s.Dc]:"time.years"},a={[s.Wb]:"time.ago.seconds",[s.kb]:"time.ago.minutes",[s.N]:"time.ago.hours",[s.y]:"time.ago.days",[s.lb]:"time.ago.months",[s.Dc]:"time.ago.years"},l={[s.Wb]:"time.short.seconds",[s.kb]:"time.short.minutes",[s.N]:"time.short.hours",[s.y]:"time.short.days",[s.lb]:"time.short.months",[s.Dc]:"time.short.years"};function c(e,t,i,c){const d=Date.now(),h="number"==typeof t?t:new Date(t).valueOf(),u=Math.abs(d-1e3*h);if(u<s.kb)return Object(o.a)(e,"time.justNow");const p=i?n:a;for(const n of[s.N,s.y,s.lb,s.Dc])if(u<n){const t=Math.floor(u/r[n]);return c?`${t}${Object(o.a)(e,l[r[n]])}`:Object(o.d)(e,p[r[n]],t)}const f=Math.floor(u/s.Dc);return c?`${f}${Object(o.a)(e,l[s.Dc])}`:Object(o.d)(e,p[s.Dc],f)}function d(e){const t=Date.now(),i="number"==typeof e?e:new Date(e).valueOf(),o=Math.abs(t-1e3*i);return Math.floor(o/s.y)}},"./src/reddit/components/HTML5StreamPlayer/SeekBar/seekbar.css":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/SettingControl/settingcontrol.less":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/VolumeControl/volumecontrol.css":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/index.tsx":function(e,t,i){"use strict";var o=i("./node_modules/bowser/src/bowser.js"),s=i.n(o),r=i("./node_modules/crypto-js/sha256.js"),n=i.n(r),a=i("./node_modules/lodash/debounce.js"),l=i.n(a),c=i("./node_modules/react/index.js"),d=i.n(c),h=i("./node_modules/react-redux/es/index.js"),u=i("./node_modules/reselect/lib/index.js"),p=i("./src/reddit/helpers/overlay/index.ts"),f=i("./src/lib/classNames/index.ts"),m=i("./src/lib/domUtils/index.ts");const v=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"},g=()=>"Android"===v()||"iOS"===v();var y=i("./src/lib/loadWithRetries/index.ts"),b=i("./src/reddit/actions/media.ts"),w=i("./src/reddit/actions/preferences.ts"),S=i("./src/reddit/actions/video.ts"),x=i("./src/reddit/components/Media/LoadingIcon/index.tsx"),P=i("./src/reddit/components/PlayButton/index.tsx"),C=i("./src/reddit/components/TrackingHelper/index.tsx"),k=i("./src/reddit/constants/video.ts"),M=i("./src/reddit/contexts/InsideOverlay.tsx"),T=i("./src/reddit/selectors/telemetry.ts");const F=(e,t,i)=>o=>({source:"videoplayer",action:t,noun:i,post:T.post(o,e),media:T.media(o,e),profile:T.profile(o),subreddit:T.subreddit(o),actionInfo:T.mediaActionInfo(o,e)}),I=(e,t,i,o,s,r,n)=>a=>({source:"videoplayer",action:"download",noun:"fragment",post:T.post(a,e),profile:T.profile(a),subreddit:T.subreddit(a),actionInfo:T.mediaActionInfo(a,e),media:Object.assign({},T.media(a,e,r),{cdnName:i,cdnRegion:o,destinationRegion:s,url:t,size:n})}),B=e=>t=>({source:"videoplayer",action:"underrun",noun:"playback",post:T.post(t,e),profile:T.profile(t),subreddit:T.subreddit(t),actionInfo:T.mediaActionInfo(t,e),media:T.media(t,e)}),V=(e,t,i)=>o=>Object.assign({},F(e,t,i)(o),{timer:T.videoPlayerFirstFrameTimer(o,e),media:Object.assign({},T.media(o,e),T.v
//# sourceMappingURL=Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit.6073f9b75579a01d0bdf.js.map