This repository has been archived on 2020-02-06. You can view files and clone it, but cannot push or open issues/pull-requests.
pleroma/priv/static/static/js/app.8098503330c7dd14a415.js

2 lines
939 KiB
JavaScript
Raw Normal View History

2019-09-06 04:31:44 -04:00
!function(e){function t(t){for(var a,s,r=t[0],l=t[1],c=t[2],d=0,p=[];d<r.length;d++)s=r[d],o[s]&&p.push(o[s][0]),o[s]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(u&&u(t);p.length;)p.shift()();return n.push.apply(n,c||[]),i()}function i(){for(var e,t=0;t<n.length;t++){for(var i=n[t],a=!0,r=1;r<i.length;r++){var l=i[r];0!==o[l]&&(a=!1)}a&&(n.splice(t--,1),e=s(s.s=i[0]))}return e}var a={},o={0:0},n=[];function s(t){if(a[t])return a[t].exports;var i=a[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.m=e,s.c=a,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(i,a,function(t){return e[t]}.bind(null,a));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],l=r.push.bind(r);r.push=t,r=r.slice();for(var c=0;c<r.length;c++)t(r[c]);var u=l;n.push([439,1]),i()}(Array(30).concat([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(i(38)),o=g(i(31)),n=g(i(32)),s=g(i(388)),r=g(i(14)),l=g(i(100)),c=g(i(12)),u=g(i(24)),d=g(i(7)),p=g(i(72)),f=g(i(389)),m=g(i(25)),_=g(i(99)),h=i(595);i(596);var v=i(597);function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e,t){return"/api/pleroma/admin/users/"+e+"/permission_group/"+t},w=function(e){return"/api/v1/statuses/"+e+"/favourite"},k=function(e){return"/api/v1/statuses/"+e+"/unfavourite"},y=function(e){return"/api/v1/statuses/"+e+"/reblog"},x=function(e){return"/api/v1/statuses/"+e+"/unreblog"},C=function(e){return"/api/v1/accounts/"+e+"/statuses"},S=function(e){return"/api/v1/timelines/tag/"+e},z=function(e){return"/api/v1/accounts/"+e+"/mute"},j=function(e){return"/api/v1/accounts/"+e+"/unmute"},P=function(e){return"/api/v1/pleroma/accounts/"+e+"/subscribe"},$=function(e){return"/api/v1/pleroma/accounts/"+e+"/unsubscribe"},A=function(e){return"/api/v1/statuses/"+e+"/favourited_by"},T=function(e){return"/api/v1/statuses/"+e+"/reblogged_by"},L=function(e){return"/api/v1/statuses/"+e+"/pin"},I=function(e){return"/api/v1/statuses/"+e+"/unpin"},O=function(e){return"/api/v1/statuses/"+e+"/mute"},M=function(e){return"/api/v1/statuses/"+e+"/unmute"},B=window.fetch,E=function(e,t){var i=""+e;return(t=t||{}).credentials="same-origin",B(i,t)},R=function(e){var t=e.method,i=e.url,a=e.params,o=e.payload,n=e.credentials,s=e.headers,p=void 0===s?{}:s,f={method:t,headers:(0,d.default)({Accept:"application/json","Content-Type":"application/json"},p)};return a&&(i+="?"+(0,u.default)(a).map(function(e){var t=(0,c.default)(e,2),i=t[0],a=t[1];return encodeURIComponent(i)+"="+encodeURIComponent(a)}).join("&")),o&&(f.body=(0,l.default)(o)),n&&(f.headers=(0,d.default)({},f.headers,F(n))),E(i,f).then(function(e){return new r.default(function(t,a){return e.json().then(function(o){return e.ok?t(o):a(new v.StatusCodeError(e.status,o,{url:i,options:f},e))})})})},F=function(e){return e?{Authorization:"Bearer "+e}:{}},N=function(e){var t=e.id,i=e.maxId,a=e.sinceId,o=e.limit,n=void 0===o?20:o,s=e.credentials,r=function(e){return"/api/v1/accounts/"+e+"/following"}(t),l=[i&&"max_id="+i,a&&"since_id="+a,n&&"limit="+n].filter(function(e){return e}).join("&");return E(r+=l?"?"+l:"",{headers:F(s)}).then(function(e){return e.json()}).then(function(e){return e.map(h.parseUser)})},U={verifyCredentials:function(e){return E("/api/v1/accounts/verify_credentials",{headers:F(e)}).then(function(e){return e.ok?e.json():{error:e}}).then(function(e){return e.error?e:(0,h.parseUser)(e)})},fetchTimeline:functio
//# sourceMappingURL=app.8098503330c7dd14a415.js.map