pleroma/priv/static/static/js/app.105d64a8fcdd6724ccde.js

2 lines
974 KiB
JavaScript
Raw Normal View History

!function(e){function t(t){for(var a,r,s=t[0],l=t[1],u=t[2],d=0,p=[];d<s.length;d++)r=s[d],o[r]&&p.push(o[r][0]),o[r]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(c&&c(t);p.length;)p.shift()();return n.push.apply(n,u||[]),i()}function i(){for(var e,t=0;t<n.length;t++){for(var i=n[t],a=!0,s=1;s<i.length;s++){var l=i[s];0!==o[l]&&(a=!1)}a&&(n.splice(t--,1),e=r(r.s=i[0]))}return e}var a={},o={0:0},n=[];function r(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,r),i.l=!0,i.exports}r.e=function(e){var t=[],i=o[e];if(0!==i)if(i)t.push(i[2]);else{var a=new Promise(function(t,a){i=o[e]=[t,a]});t.push(i[2]=a);var n,s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(e){return r.p+"static/js/"+({}[e]||e)+"."+{2:"73375b727cef616c59b4"}[e]+".js"}(e);var l=new Error;n=function(t){s.onerror=s.onload=null,clearTimeout(u);var i=o[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+n+")",l.type=a,l.request=n,i[1](l)}o[e]=void 0}};var u=setTimeout(function(){n({type:"timeout",target:s})},12e4);s.onerror=s.onload=n,document.head.appendChild(s)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;n.push([454,1]),i()}(Array(33).concat([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(i(32)),o=g(i(28)),n=g(i(29)),r=g(i(406)),s=g(i(15)),l=g(i(104)),u=g(i(8)),c=g(i(18)),d=g(i(4)),p=g(i(76)),f=g(i(407)),m=g(i(26)),_=g(i(103)),h=i(617);i(618);var v=i(619);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"},j=function(e){return"/api/v1/timelines/tag/"+e},z=function(e){return"/api/v1/accounts/"+e+"/mute"},S=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"},T=function(e){return"/api/v1/statuses/"+e+"/favourited_by"},A=function(e){return"/api/v1/statuses/"+e+"/reblogged_by"},I=function(e){return"/api/v1/statuses/"+e+"/pin"},O=function(e){return"/api/v1/statuses/"+e+"/unpin"},E=function(e){return"/api/v1/statuses/"+e+"/mute"},B=function(e){return"/api/v1/statuses/"+e+"/unmute"},M=window.fetch,L=function(e,t){var i=""+e;return(t=t||{}).credentials="same-origin",M(i,t)},R=function(e){var t=e.method,i=e.url,a=e.params,o=e.payload,n=e.credentials,r=e.headers,p=void 0===r?{}:r,f={method:t,headers:(0,d.default)({Accept:"application/json","Content-Type":"application/json"},p)};return a&&(i+="?"+(0,c.default)(a).map(function(e){var t=(0,u.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))),L(i,f).then(function(e){return n
//# sourceMappingURL=app.105d64a8fcdd6724ccde.js.map