You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/public/js/account-import.js

2 lines
23 KiB
JavaScript

/*! For license information please see account-import.js.LICENSE.txt */
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[9139],{4134:(t,e,i)=>{"use strict";i.r(e);var n=i(63959),s={};for(const t in n)"default"!==t&&(s[t]=()=>n[t]);i.d(e,s)},5316:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(11887),s={};for(const t in n)"default"!==t&&(s[t]=()=>n[t]);i.d(e,s);const a=n.default},11887:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>d});var n=i(58285);function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function o(){var t,e,i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function a(i,n,s,a){var o=n&&n.prototype instanceof c?n:c,d=Object.create(o.prototype);return r(d,"_invoke",function(i,n,s){var a,o,r,c=0,d=s||[],u=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,i){return a=e,o=0,r=t,f.n=i,l}};function p(i,n){for(o=i,r=n,e=0;!u&&c&&!s&&e<d.length;e++){var s,a=d[e],p=f.p,m=a[2];i>3?(s=m===n)&&(r=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=p&&((s=i<2&&p<a[1])?(o=0,f.v=n,f.n=a[1]):p<m&&(s=i<3||a[0]>n||n>m)&&(a[4]=i,a[5]=n,f.n=m,o=0))}if(s||i>1)return l;throw u=!0,n}return function(s,d,m){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,m),o=d,r=m;(e=o<2?t:r)||!u;){a||(o?o<3?(o>1&&(f.n=-1),p(o,r)):f.n=r:f.v=r);try{if(c=2,a){if(o||(s="next"),e=a[s]){if(!(e=e.call(a,r)))throw TypeError("iterator result is not an object");if(!e.done)return e;r=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(r=TypeError("The iterator does not provide a '"+s+"' method"),o=1);a=t}else if((e=(u=f.n<0)?r:i.call(n,f))!==l)break}catch(e){a=t,o=1,r=e}finally{c=1}}return{value:e,done:u}}}(i,s,a),!0),d}var l={};function c(){}function d(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(r(e={},n,function(){return this}),e),p=u.prototype=c.prototype=Object.create(f);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return d.prototype=u,r(p,"constructor",u),r(u,"constructor",d),d.displayName="GeneratorFunction",r(u,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,n,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m}})()}function r(t,e,i,n){var s=Object.defineProperty;try{s({},"",{})}catch(t){s=0}r=function(t,e,i,n){function a(e,i){r(t,e,function(t){return this._invoke(e,i,t)})}e?s?s(t,e,{value:i,enumerable:!n,configurable:!n,writable:!n}):t[e]=i:(a("next",0),a("throw",1),a("return",2))},r(t,e,i,n)}function l(t,e,i,n,s,a,o){try{var r=t[a](o),l=r.value}catch(t){return void i(t)}r.done?e(l):Promise.resolve(l).then(n,s)}function c(t){return function(){var e=this,i=arguments;return new Promise(function(n,s){var a=t.apply(e,i);function o(t){l(a,n,s,o,r,"next",t)}function r(t){l(a,n,s,o,r,"throw",t)}o(void 0)})}}const d={data:function(){return{page:1,step:1,toggleLimit:300,config:{},showDisabledWarning:!1,showNotAllowedWarning:!1,invalidArchive:!1,loaded:!1,existing:[],zipName:void 0,zipFiles:[],postMeta:[],imageCache:[],includeArchives:!1,selectedMedia:[],selectedPostsCounter:0,detailsModalShow:!1,modalData:{},importedPosts:[],finishedCount:void 0,processingCount:void 0,showUploadLoader:!1,importButtonLoading:!1}},mounted:function(){this.fetchConfig()},methods:{fetchConfig:function(){var t=this;axios.get("/api/local/import/ig/config").then(function(e){t.config=e.data,0==e.data.enabled?(