@micromag/viewer-build 0.2.383 → 0.2.388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +41 -41
- package/build/index.html +1 -1
- package/build/static/css/{main.8d32c59f.chunk.css → main.7f2f5b5a.chunk.css} +2 -2
- package/build/static/css/{main.8d32c59f.chunk.css.map → main.7f2f5b5a.chunk.css.map} +1 -1
- package/build/static/js/0.b8a162a9.chunk.js +2 -0
- package/build/static/js/0.b8a162a9.chunk.js.map +1 -0
- package/build/static/js/1.c7a69c3d.chunk.js +2 -0
- package/build/static/js/1.c7a69c3d.chunk.js.map +1 -0
- package/build/static/js/10.11cb5892.chunk.js +2 -0
- package/build/static/js/10.11cb5892.chunk.js.map +1 -0
- package/build/static/js/11.9b03ae00.chunk.js +2 -0
- package/build/static/js/11.9b03ae00.chunk.js.map +1 -0
- package/build/static/js/12.07f6dfbf.chunk.js +2 -0
- package/build/static/js/12.07f6dfbf.chunk.js.map +1 -0
- package/build/static/js/13.af8da627.chunk.js +2 -0
- package/build/static/js/13.af8da627.chunk.js.map +1 -0
- package/build/static/js/{14.c979eb43.chunk.js → 14.e42f0789.chunk.js} +2 -2
- package/build/static/js/{14.c979eb43.chunk.js.map → 14.e42f0789.chunk.js.map} +1 -1
- package/build/static/js/{15.31f10001.chunk.js → 15.15c6ee58.chunk.js} +2 -2
- package/build/static/js/{15.31f10001.chunk.js.map → 15.15c6ee58.chunk.js.map} +1 -1
- package/build/static/js/{16.fc5c2b07.chunk.js → 16.d2386b37.chunk.js} +2 -2
- package/build/static/js/{16.fc5c2b07.chunk.js.map → 16.d2386b37.chunk.js.map} +1 -1
- package/build/static/js/{2.c4cf9c8a.chunk.js → 2.89735343.chunk.js} +2 -2
- package/build/static/js/2.89735343.chunk.js.map +1 -0
- package/build/static/js/5.36556929.chunk.js +3 -0
- package/build/static/js/{5.489576ba.chunk.js.LICENSE.txt → 5.36556929.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/5.36556929.chunk.js.map +1 -0
- package/build/static/js/6.9d7e4dda.chunk.js +2 -0
- package/build/static/js/6.9d7e4dda.chunk.js.map +1 -0
- package/build/static/js/7.1cc6c06d.chunk.js +2 -0
- package/build/static/js/7.1cc6c06d.chunk.js.map +1 -0
- package/build/static/js/8.7d772a7e.chunk.js +2 -0
- package/build/static/js/8.7d772a7e.chunk.js.map +1 -0
- package/build/static/js/9.2b1ae3f1.chunk.js +2 -0
- package/build/static/js/9.2b1ae3f1.chunk.js.map +1 -0
- package/build/static/js/main.8d6e3097.chunk.js +2 -0
- package/build/static/js/main.8d6e3097.chunk.js.map +1 -0
- package/build/static/js/runtime-main.82def290.js +2 -0
- package/build/static/js/{runtime-main.db3c76f2.js.map → runtime-main.82def290.js.map} +1 -1
- package/package.json +7 -7
- package/build/static/js/0.ae1e2b23.chunk.js +0 -2
- package/build/static/js/0.ae1e2b23.chunk.js.map +0 -1
- package/build/static/js/1.dc635ac3.chunk.js +0 -2
- package/build/static/js/1.dc635ac3.chunk.js.map +0 -1
- package/build/static/js/10.c4c543ba.chunk.js +0 -2
- package/build/static/js/10.c4c543ba.chunk.js.map +0 -1
- package/build/static/js/11.926ced06.chunk.js +0 -2
- package/build/static/js/11.926ced06.chunk.js.map +0 -1
- package/build/static/js/12.08deb037.chunk.js +0 -2
- package/build/static/js/12.08deb037.chunk.js.map +0 -1
- package/build/static/js/13.3fbd8798.chunk.js +0 -2
- package/build/static/js/13.3fbd8798.chunk.js.map +0 -1
- package/build/static/js/2.c4cf9c8a.chunk.js.map +0 -1
- package/build/static/js/5.489576ba.chunk.js +0 -3
- package/build/static/js/5.489576ba.chunk.js.map +0 -1
- package/build/static/js/6.4ed08336.chunk.js +0 -2
- package/build/static/js/6.4ed08336.chunk.js.map +0 -1
- package/build/static/js/7.30c6cad9.chunk.js +0 -2
- package/build/static/js/7.30c6cad9.chunk.js.map +0 -1
- package/build/static/js/8.959d6a7c.chunk.js +0 -2
- package/build/static/js/8.959d6a7c.chunk.js.map +0 -1
- package/build/static/js/9.13a28a70.chunk.js +0 -2
- package/build/static/js/9.13a28a70.chunk.js.map +0 -1
- package/build/static/js/main.c6a7bbb2.chunk.js +0 -2
- package/build/static/js/main.c6a7bbb2.chunk.js.map +0 -1
- package/build/static/js/runtime-main.db3c76f2.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@uppy/companion-client/lib/index.js","../../../node_modules/@uppy/companion-client/lib/RequestClient.js","../../../node_modules/@uppy/utils/lib/NetworkError.js","../../../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/get.js","../../../node_modules/@uppy/utils/lib/fetchWithNetworkError.js","../../../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/superPropBase.js","../../../node_modules/@uppy/companion-client/lib/AuthError.js","../../../node_modules/@uppy/companion-client/lib/Provider.js","../../../node_modules/@uppy/companion-client/lib/tokenStorage.js","../../../node_modules/@uppy/companion-client/lib/SearchProvider.js","../../../node_modules/@uppy/companion-client/lib/Socket.js","../../../node_modules/@uppy/utils/lib/emitSocketProgress.js","../../../node_modules/@uppy/utils/lib/getSocketHost.js","../../../node_modules/@uppy/utils/lib/settle.js","../../../node_modules/@uppy/utils/lib/EventTracker.js","../../../node_modules/@uppy/utils/lib/isNetworkError.js","../../../node_modules/@uppy/utils/lib/RateLimitedQueue.js"],"names":["RequestClient","require","Provider","SearchProvider","Socket","module","exports","_class","_getPostResponseFunc","_getUrl","_errorHandler","_temp","_classPrivateFieldLooseBase","receiver","privateKey","Object","prototype","hasOwnProperty","call","TypeError","id","_classPrivateFieldLooseKey","name","fetchWithNetworkError","AuthError","handleJSONResponse","res","status","jsonPromise","json","errMsg","statusText","errData","message","requestId","Error","_getUrl2","url","test","this","hostname","_errorHandler2","method","path","err","_err","isAuthError","error","cause","Promise","reject","uppy","opts","defineProperty","value","writable","skip","response","onReceiveResponse","bind","allowedHeaders","preflightDone","companion","getState","host","companionUrl","replace","userHeaders","companionHeaders","resolve","defaultHeaders","headers","has","get","setState","slice","fetch","then","split","map","headerName","trim","toLowerCase","log","all","preflight","keys","forEach","header","includes","skipPostResponse","preflightAndHeaders","credentials","companionCookiesRule","data","body","JSON","stringify","VERSION","Accept","NetworkError","xhr","isNetworkError","request","superPropBase","_get","target","property","Reflect","base","desc","getOwnPropertyDescriptor","getPrototypeOf","object","tokenStorage","provider","s","charAt","toUpperCase","join","pluginId","tokenKey","companionKeysParams","preAuthToken","getAuthToken","token","authHeaders","btoa","params","plugin","getPlugin","authenticated","getPluginState","setPluginState","storage","setItem","getItem","queries","uppyPreAuthToken","URLSearchParams","post","directory","removeItem","defaultOpts","type","files","serverUrl","serverPattern","companionAllowedHosts","pattern","Array","isArray","RegExp","URL","origin","key","localStorage","text","encodeURIComponent","_queued","_emitter","_isOpen","_socket","_handleMessage","ee","e","parse","emit","action","payload","console","autoOpen","open","WebSocket","onopen","length","first","shift","send","onclose","onmessage","_classPrivateFieldLoo","close","push","handler","on","once","Symbol","throttle","uploader","progressData","file","progress","bytesUploaded","bytesTotal","leading","trailing","exec","socketProtocol","promises","resolutions","rejections","resolved","rejected","promise","successful","failed","_events","emitter","event","fn","splice","off","readyState","createCancelError","_activeRequests","_queuedHandlers","_call","_queueNext","_next","_queue","_dequeue","RateLimitedQueue","limit","_dequeue2","_queue2","_next2","_queueNext2","_call2","Infinity","queueOptions","args","queuedRequest","outerPromise","run","cancelError","innerPromise","result","done","abort","cancelActive","queueMicrotask","next","options","priority","index","findIndex","other","indexOf","internalRateLimitedQueue"],"mappings":"wIAKA,IAAMA,EAAgBC,EAAQ,KAExBC,EAAWD,EAAQ,KAEnBE,EAAiBF,EAAQ,KAEzBG,EAASH,EAAQ,KAEvBI,EAAOC,QAAU,CACfN,gBACAE,WACAC,iBACAC,W,qCCfEG,EAAQC,EAAsBC,EAASC,EAAeC,E,yDAE1D,SAASC,EAA4BC,EAAUC,GAAc,IAAKC,OAAOC,UAAUC,eAAeC,KAA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E3M,EAA4B,EAAM8M,GAAYA,QAKpD,SAASS,IAAc,WAIrBc,gBAAe,kBAAMrO,EAA4B,EAAM+M,GAAOA,QAGhE,SAASO,IACP,KAAItN,EAA4B2B,KAAMgL,GAAiBA,IAAoBhL,KAAKwL,QAIG,IAA/EnN,EAA4B2B,KAAMiL,GAAiBA,GAAiBzC,OAAxE,CAOA,IAAMmE,EAAOtO,EAA4B2B,KAAMiL,GAAiBA,GAAiBvC,QAE3EO,EAAU5K,EAA4B2B,KAAMkL,GAAOA,GAAOyB,EAAKhC,IAErEgC,EAAKH,MAAQvD,EAAQuD,MACrBG,EAAKJ,KAAOtD,EAAQsD,MAGtB,SAASb,EAAQf,GAAkB,WAAdiC,EAAc,uDAAJ,GACvB3D,EAAU,CACd0B,KACAkC,SAAUD,EAAQC,UAAY,EAC9BL,MAAO,WACLnO,EAA4B,EAAMiN,GAAUA,GAAUrC,IAExDsD,KAAM,WACJ,MAAM,IAAI3M,MAAM,gEAIdkN,EAAQzO,EAA4B2B,KAAMiL,GAAiBA,GAAiB8B,WAAU,SAAAC,GAC1F,OAAO/D,EAAQ4D,SAAWG,EAAMH,YASlC,OANe,IAAXC,EACFzO,EAA4B2B,KAAMiL,GAAiBA,GAAiBjC,KAAKC,GAEzE5K,EAA4B2B,KAAMiL,GAAiBA,GAAiBL,OAAOkC,EAAO,EAAG7D,GAGhFA,EAGT,SAASwC,EAAUxC,GACjB,IAAM6D,EAAQzO,EAA4B2B,KAAMiL,GAAiBA,GAAiBgC,QAAQhE,IAE3E,IAAX6D,GACFzO,EAA4B2B,KAAMiL,GAAiBA,GAAiBL,OAAOkC,EAAO,GAItFhP,EAAOC,QAAU,CACfwN,mBACA2B,yBAA0B9D,OAAO","file":"static/js/1.dc635ac3.chunk.js","sourcesContent":["'use strict';\n/**\n * Manages communications with Companion\n */\n\nconst RequestClient = require('./RequestClient');\n\nconst Provider = require('./Provider');\n\nconst SearchProvider = require('./SearchProvider');\n\nconst Socket = require('./Socket');\n\nmodule.exports = {\n RequestClient,\n Provider,\n SearchProvider,\n Socket\n};","'use strict';\n\nvar _class, _getPostResponseFunc, _getUrl, _errorHandler, _temp;\n\nfunction _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n\nvar id = 0;\n\nfunction _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n\nconst fetchWithNetworkError = require('@uppy/utils/lib/fetchWithNetworkError');\n\nconst AuthError = require('./AuthError'); // Remove the trailing slash so we can always safely append /xyz.\n\n\nfunction stripSlash(url) {\n return url.replace(/\\/$/, '');\n}\n\nasync function handleJSONResponse(res) {\n if (res.status === 401) {\n throw new AuthError();\n }\n\n const jsonPromise = res.json();\n\n if (res.status < 200 || res.status > 300) {\n let errMsg = `Failed request with status: ${res.status}. ${res.statusText}`;\n\n try {\n const errData = await jsonPromise;\n errMsg = errData.message ? `${errMsg} message: ${errData.message}` : errMsg;\n errMsg = errData.requestId ? `${errMsg} request-Id: ${errData.requestId}` : errMsg;\n } finally {\n // eslint-disable-next-line no-unsafe-finally\n throw new Error(errMsg);\n }\n }\n\n return jsonPromise;\n}\n\nmodule.exports = (_temp = (_getPostResponseFunc = /*#__PURE__*/_classPrivateFieldLooseKey(\"getPostResponseFunc\"), _getUrl = /*#__PURE__*/_classPrivateFieldLooseKey(\"getUrl\"), _errorHandler = /*#__PURE__*/_classPrivateFieldLooseKey(\"errorHandler\"), _class = class RequestClient {\n // eslint-disable-next-line global-require\n constructor(uppy, opts) {\n Object.defineProperty(this, _errorHandler, {\n value: _errorHandler2\n });\n Object.defineProperty(this, _getUrl, {\n value: _getUrl2\n });\n Object.defineProperty(this, _getPostResponseFunc, {\n writable: true,\n value: skip => response => skip ? response : this.onReceiveResponse(response)\n });\n this.uppy = uppy;\n this.opts = opts;\n this.onReceiveResponse = this.onReceiveResponse.bind(this);\n this.allowedHeaders = ['accept', 'content-type', 'uppy-auth-token'];\n this.preflightDone = false;\n }\n\n get hostname() {\n const {\n companion\n } = this.uppy.getState();\n const host = this.opts.companionUrl;\n return stripSlash(companion && companion[host] ? companion[host] : host);\n }\n\n headers() {\n const userHeaders = this.opts.companionHeaders || {};\n return Promise.resolve({ ...RequestClient.defaultHeaders,\n ...userHeaders\n });\n }\n\n onReceiveResponse(response) {\n const state = this.uppy.getState();\n const companion = state.companion || {};\n const host = this.opts.companionUrl;\n const {\n headers\n } = response; // Store the self-identified domain name for the Companion instance we just hit.\n\n if (headers.has('i-am') && headers.get('i-am') !== companion[host]) {\n this.uppy.setState({\n companion: { ...companion,\n [host]: headers.get('i-am')\n }\n });\n }\n\n return response;\n }\n\n preflight(path) {\n if (this.preflightDone) {\n return Promise.resolve(this.allowedHeaders.slice());\n }\n\n return fetch(_classPrivateFieldLooseBase(this, _getUrl)[_getUrl](path), {\n method: 'OPTIONS'\n }).then(response => {\n if (response.headers.has('access-control-allow-headers')) {\n this.allowedHeaders = response.headers.get('access-control-allow-headers').split(',').map(headerName => headerName.trim().toLowerCase());\n }\n\n this.preflightDone = true;\n return this.allowedHeaders.slice();\n }).catch(err => {\n this.uppy.log(`[CompanionClient] unable to make preflight request ${err}`, 'warning');\n this.preflightDone = true;\n return this.allowedHeaders.slice();\n });\n }\n\n preflightAndHeaders(path) {\n return Promise.all([this.preflight(path), this.headers()]).then(([allowedHeaders, headers]) => {\n // filter to keep only allowed Headers\n Object.keys(headers).forEach(header => {\n if (!allowedHeaders.includes(header.toLowerCase())) {\n this.uppy.log(`[CompanionClient] excluding disallowed header ${header}`);\n delete headers[header]; // eslint-disable-line no-param-reassign\n }\n });\n return headers;\n });\n }\n\n get(path, skipPostResponse) {\n const method = 'get';\n return this.preflightAndHeaders(path).then(headers => fetchWithNetworkError(_classPrivateFieldLooseBase(this, _getUrl)[_getUrl](path), {\n method,\n headers,\n credentials: this.opts.companionCookiesRule || 'same-origin'\n })).then(_classPrivateFieldLooseBase(this, _getPostResponseFunc)[_getPostResponseFunc](skipPostResponse)).then(handleJSONResponse).catch(_classPrivateFieldLooseBase(this, _errorHandler)[_errorHandler](method, path));\n }\n\n post(path, data, skipPostResponse) {\n const method = 'post';\n return this.preflightAndHeaders(path).then(headers => fetchWithNetworkError(_classPrivateFieldLooseBase(this, _getUrl)[_getUrl](path), {\n method,\n headers,\n credentials: this.opts.companionCookiesRule || 'same-origin',\n body: JSON.stringify(data)\n })).then(_classPrivateFieldLooseBase(this, _getPostResponseFunc)[_getPostResponseFunc](skipPostResponse)).then(handleJSONResponse).catch(_classPrivateFieldLooseBase(this, _errorHandler)[_errorHandler](method, path));\n }\n\n delete(path, data, skipPostResponse) {\n const method = 'delete';\n return this.preflightAndHeaders(path).then(headers => fetchWithNetworkError(`${this.hostname}/${path}`, {\n method,\n headers,\n credentials: this.opts.companionCookiesRule || 'same-origin',\n body: data ? JSON.stringify(data) : null\n })).then(_classPrivateFieldLooseBase(this, _getPostResponseFunc)[_getPostResponseFunc](skipPostResponse)).then(handleJSONResponse).catch(_classPrivateFieldLooseBase(this, _errorHandler)[_errorHandler](method, path));\n }\n\n}), _class.VERSION = \"2.0.3\", _class.defaultHeaders = {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n 'Uppy-Versions': `@uppy/companion-client=${_class.VERSION}`\n}, _temp);\n\nfunction _getUrl2(url) {\n if (/^(https?:|)\\/\\//.test(url)) {\n return url;\n }\n\n return `${this.hostname}/${url}`;\n}\n\nfunction _errorHandler2(method, path) {\n return err => {\n var _err;\n\n if (!((_err = err) != null && _err.isAuthError)) {\n const error = new Error(`Could not ${method} ${_classPrivateFieldLooseBase(this, _getUrl)[_getUrl](path)}`);\n error.cause = err;\n err = error; // eslint-disable-line no-param-reassign\n }\n\n return Promise.reject(err);\n };\n}","\"use strict\";\n\nclass NetworkError extends Error {\n constructor(error, xhr = null) {\n super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`);\n this.cause = error;\n this.isNetworkError = true;\n this.request = xhr;\n }\n\n}\n\nmodule.exports = NetworkError;","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","\"use strict\";\n\nconst NetworkError = require('./NetworkError');\n/**\n * Wrapper around window.fetch that throws a NetworkError when appropriate\n */\n\n\nmodule.exports = function fetchWithNetworkError(...options) {\n return fetch(...options).catch(err => {\n if (err.name === 'AbortError') {\n throw err;\n } else {\n throw new NetworkError(err);\n }\n });\n};","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","'use strict';\n\nclass AuthError extends Error {\n constructor() {\n super('Authorization required');\n this.name = 'AuthError';\n this.isAuthError = true;\n }\n\n}\n\nmodule.exports = AuthError;","'use strict';\n\nconst RequestClient = require('./RequestClient');\n\nconst tokenStorage = require('./tokenStorage');\n\nconst getName = id => {\n return id.split('-').map(s => s.charAt(0).toUpperCase() + s.slice(1)).join(' ');\n};\n\nmodule.exports = class Provider extends RequestClient {\n constructor(uppy, opts) {\n super(uppy, opts);\n this.provider = opts.provider;\n this.id = this.provider;\n this.name = this.opts.name || getName(this.id);\n this.pluginId = this.opts.pluginId;\n this.tokenKey = `companion-${this.pluginId}-auth-token`;\n this.companionKeysParams = this.opts.companionKeysParams;\n this.preAuthToken = null;\n }\n\n headers() {\n return Promise.all([super.headers(), this.getAuthToken()]).then(([headers, token]) => {\n const authHeaders = {};\n\n if (token) {\n authHeaders['uppy-auth-token'] = token;\n }\n\n if (this.companionKeysParams) {\n authHeaders['uppy-credentials-params'] = btoa(JSON.stringify({\n params: this.companionKeysParams\n }));\n }\n\n return { ...headers,\n ...authHeaders\n };\n });\n }\n\n onReceiveResponse(response) {\n response = super.onReceiveResponse(response);\n const plugin = this.uppy.getPlugin(this.pluginId);\n const oldAuthenticated = plugin.getPluginState().authenticated;\n const authenticated = oldAuthenticated ? response.status !== 401 : response.status < 400;\n plugin.setPluginState({\n authenticated\n });\n return response;\n }\n\n setAuthToken(token) {\n return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey, token);\n }\n\n getAuthToken() {\n return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey);\n }\n\n authUrl(queries = {}) {\n if (this.preAuthToken) {\n queries.uppyPreAuthToken = this.preAuthToken;\n }\n\n return `${this.hostname}/${this.id}/connect?${new URLSearchParams(queries)}`;\n }\n\n fileUrl(id) {\n return `${this.hostname}/${this.id}/get/${id}`;\n }\n\n fetchPreAuthToken() {\n if (!this.companionKeysParams) {\n return Promise.resolve();\n }\n\n return this.post(`${this.id}/preauth/`, {\n params: this.companionKeysParams\n }).then(res => {\n this.preAuthToken = res.token;\n }).catch(err => {\n this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${err}`, 'warning');\n });\n }\n\n list(directory) {\n return this.get(`${this.id}/list/${directory || ''}`);\n }\n\n logout() {\n return this.get(`${this.id}/logout`).then(response => Promise.all([response, this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(([response]) => response);\n }\n\n static initPlugin(plugin, opts, defaultOpts) {\n plugin.type = 'acquirer';\n plugin.files = [];\n\n if (defaultOpts) {\n plugin.opts = { ...defaultOpts,\n ...opts\n };\n }\n\n if (opts.serverUrl || opts.serverPattern) {\n throw new Error('`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`');\n }\n\n if (opts.companionAllowedHosts) {\n const pattern = opts.companionAllowedHosts; // validate companionAllowedHosts param\n\n if (typeof pattern !== 'string' && !Array.isArray(pattern) && !(pattern instanceof RegExp)) {\n throw new TypeError(`${plugin.id}: the option \"companionAllowedHosts\" must be one of string, Array, RegExp`);\n }\n\n plugin.opts.companionAllowedHosts = pattern;\n } else if (/^(?!https?:\\/\\/).*$/i.test(opts.companionUrl)) {\n // does not start with https://\n plugin.opts.companionAllowedHosts = `https://${opts.companionUrl.replace(/^\\/\\//, '')}`;\n } else {\n plugin.opts.companionAllowedHosts = new URL(opts.companionUrl).origin;\n }\n\n plugin.storage = plugin.opts.storage || tokenStorage;\n }\n\n};","'use strict';\n/**\n * This module serves as an Async wrapper for LocalStorage\n */\n\nmodule.exports.setItem = (key, value) => {\n return new Promise(resolve => {\n localStorage.setItem(key, value);\n resolve();\n });\n};\n\nmodule.exports.getItem = key => {\n return Promise.resolve(localStorage.getItem(key));\n};\n\nmodule.exports.removeItem = key => {\n return new Promise(resolve => {\n localStorage.removeItem(key);\n resolve();\n });\n};","'use strict';\n\nconst RequestClient = require('./RequestClient');\n\nconst getName = id => {\n return id.split('-').map(s => s.charAt(0).toUpperCase() + s.slice(1)).join(' ');\n};\n\nmodule.exports = class SearchProvider extends RequestClient {\n constructor(uppy, opts) {\n super(uppy, opts);\n this.provider = opts.provider;\n this.id = this.provider;\n this.name = this.opts.name || getName(this.id);\n this.pluginId = this.opts.pluginId;\n }\n\n fileUrl(id) {\n return `${this.hostname}/search/${this.id}/get/${id}`;\n }\n\n search(text, queries) {\n queries = queries ? `&${queries}` : '';\n return this.get(`search/${this.id}/list?q=${encodeURIComponent(text)}${queries}`);\n }\n\n};","\"use strict\";\n\nvar _queued, _emitter, _isOpen, _socket, _handleMessage;\n\nlet _Symbol$for, _Symbol$for2;\n\nfunction _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n\nvar id = 0;\n\nfunction _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n\nconst ee = require('namespace-emitter');\n\nmodule.exports = (_queued = /*#__PURE__*/_classPrivateFieldLooseKey(\"queued\"), _emitter = /*#__PURE__*/_classPrivateFieldLooseKey(\"emitter\"), _isOpen = /*#__PURE__*/_classPrivateFieldLooseKey(\"isOpen\"), _socket = /*#__PURE__*/_classPrivateFieldLooseKey(\"socket\"), _handleMessage = /*#__PURE__*/_classPrivateFieldLooseKey(\"handleMessage\"), _Symbol$for = Symbol.for('uppy test: getSocket'), _Symbol$for2 = Symbol.for('uppy test: getQueued'), class UppySocket {\n constructor(opts) {\n Object.defineProperty(this, _queued, {\n writable: true,\n value: []\n });\n Object.defineProperty(this, _emitter, {\n writable: true,\n value: ee()\n });\n Object.defineProperty(this, _isOpen, {\n writable: true,\n value: false\n });\n Object.defineProperty(this, _socket, {\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, _handleMessage, {\n writable: true,\n value: e => {\n try {\n const message = JSON.parse(e.data);\n this.emit(message.action, message.payload);\n } catch (err) {\n // TODO: use a more robust error handler.\n console.log(err); // eslint-disable-line no-console\n }\n }\n });\n this.opts = opts;\n\n if (!opts || opts.autoOpen !== false) {\n this.open();\n }\n }\n\n get isOpen() {\n return _classPrivateFieldLooseBase(this, _isOpen)[_isOpen];\n }\n\n [_Symbol$for]() {\n return _classPrivateFieldLooseBase(this, _socket)[_socket];\n }\n\n [_Symbol$for2]() {\n return _classPrivateFieldLooseBase(this, _queued)[_queued];\n }\n\n open() {\n _classPrivateFieldLooseBase(this, _socket)[_socket] = new WebSocket(this.opts.target);\n\n _classPrivateFieldLooseBase(this, _socket)[_socket].onopen = () => {\n _classPrivateFieldLooseBase(this, _isOpen)[_isOpen] = true;\n\n while (_classPrivateFieldLooseBase(this, _queued)[_queued].length > 0 && _classPrivateFieldLooseBase(this, _isOpen)[_isOpen]) {\n const first = _classPrivateFieldLooseBase(this, _queued)[_queued].shift();\n\n this.send(first.action, first.payload);\n }\n };\n\n _classPrivateFieldLooseBase(this, _socket)[_socket].onclose = () => {\n _classPrivateFieldLooseBase(this, _isOpen)[_isOpen] = false;\n };\n\n _classPrivateFieldLooseBase(this, _socket)[_socket].onmessage = _classPrivateFieldLooseBase(this, _handleMessage)[_handleMessage];\n }\n\n close() {\n var _classPrivateFieldLoo;\n\n (_classPrivateFieldLoo = _classPrivateFieldLooseBase(this, _socket)[_socket]) == null ? void 0 : _classPrivateFieldLoo.close();\n }\n\n send(action, payload) {\n // attach uuid\n if (!_classPrivateFieldLooseBase(this, _isOpen)[_isOpen]) {\n _classPrivateFieldLooseBase(this, _queued)[_queued].push({\n action,\n payload\n });\n\n return;\n }\n\n _classPrivateFieldLooseBase(this, _socket)[_socket].send(JSON.stringify({\n action,\n payload\n }));\n }\n\n on(action, handler) {\n _classPrivateFieldLooseBase(this, _emitter)[_emitter].on(action, handler);\n }\n\n emit(action, payload) {\n _classPrivateFieldLooseBase(this, _emitter)[_emitter].emit(action, payload);\n }\n\n once(action, handler) {\n _classPrivateFieldLooseBase(this, _emitter)[_emitter].once(action, handler);\n }\n\n});","\"use strict\";\n\nconst throttle = require('lodash.throttle');\n\nfunction emitSocketProgress(uploader, progressData, file) {\n const {\n progress,\n bytesUploaded,\n bytesTotal\n } = progressData;\n\n if (progress) {\n uploader.uppy.log(`Upload progress: ${progress}`);\n uploader.uppy.emit('upload-progress', file, {\n uploader,\n bytesUploaded,\n bytesTotal\n });\n }\n}\n\nmodule.exports = throttle(emitSocketProgress, 300, {\n leading: true,\n trailing: true\n});","\"use strict\";\n\nmodule.exports = function getSocketHost(url) {\n // get the host domain\n const regex = /^(?:https?:\\/\\/|\\/\\/)?(?:[^@\\n]+@)?(?:www\\.)?([^\\n]+)/i;\n const host = regex.exec(url)[1];\n const socketProtocol = /^http:\\/\\//i.test(url) ? 'ws' : 'wss';\n return `${socketProtocol}://${host}`;\n};","\"use strict\";\n\nmodule.exports = function settle(promises) {\n const resolutions = [];\n const rejections = [];\n\n function resolved(value) {\n resolutions.push(value);\n }\n\n function rejected(error) {\n rejections.push(error);\n }\n\n const wait = Promise.all(promises.map(promise => promise.then(resolved, rejected)));\n return wait.then(() => {\n return {\n successful: resolutions,\n failed: rejections\n };\n });\n};","\"use strict\";\n\nvar _emitter, _events;\n\nfunction _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n\nvar id = 0;\n\nfunction _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n\n/**\n * Create a wrapper around an event emitter with a `remove` method to remove\n * all events that were added using the wrapped emitter.\n */\nmodule.exports = (_emitter = /*#__PURE__*/_classPrivateFieldLooseKey(\"emitter\"), _events = /*#__PURE__*/_classPrivateFieldLooseKey(\"events\"), class EventTracker {\n constructor(emitter) {\n Object.defineProperty(this, _emitter, {\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, _events, {\n writable: true,\n value: []\n });\n _classPrivateFieldLooseBase(this, _emitter)[_emitter] = emitter;\n }\n\n on(event, fn) {\n _classPrivateFieldLooseBase(this, _events)[_events].push([event, fn]);\n\n return _classPrivateFieldLooseBase(this, _emitter)[_emitter].on(event, fn);\n }\n\n remove() {\n for (const [event, fn] of _classPrivateFieldLooseBase(this, _events)[_events].splice(0)) {\n _classPrivateFieldLooseBase(this, _emitter)[_emitter].off(event, fn);\n }\n }\n\n});","\"use strict\";\n\nfunction isNetworkError(xhr) {\n if (!xhr) {\n return false;\n }\n\n return xhr.readyState !== 0 && xhr.readyState !== 4 || xhr.status === 0;\n}\n\nmodule.exports = isNetworkError;","\"use strict\";\n\nfunction _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n\nvar id = 0;\n\nfunction _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n\nfunction createCancelError() {\n return new Error('Cancelled');\n}\n\nvar _activeRequests = /*#__PURE__*/_classPrivateFieldLooseKey(\"activeRequests\");\n\nvar _queuedHandlers = /*#__PURE__*/_classPrivateFieldLooseKey(\"queuedHandlers\");\n\nvar _call = /*#__PURE__*/_classPrivateFieldLooseKey(\"call\");\n\nvar _queueNext = /*#__PURE__*/_classPrivateFieldLooseKey(\"queueNext\");\n\nvar _next = /*#__PURE__*/_classPrivateFieldLooseKey(\"next\");\n\nvar _queue = /*#__PURE__*/_classPrivateFieldLooseKey(\"queue\");\n\nvar _dequeue = /*#__PURE__*/_classPrivateFieldLooseKey(\"dequeue\");\n\nclass RateLimitedQueue {\n constructor(limit) {\n Object.defineProperty(this, _dequeue, {\n value: _dequeue2\n });\n Object.defineProperty(this, _queue, {\n value: _queue2\n });\n Object.defineProperty(this, _next, {\n value: _next2\n });\n Object.defineProperty(this, _queueNext, {\n value: _queueNext2\n });\n Object.defineProperty(this, _call, {\n value: _call2\n });\n Object.defineProperty(this, _activeRequests, {\n writable: true,\n value: 0\n });\n Object.defineProperty(this, _queuedHandlers, {\n writable: true,\n value: []\n });\n\n if (typeof limit !== 'number' || limit === 0) {\n this.limit = Infinity;\n } else {\n this.limit = limit;\n }\n }\n\n run(fn, queueOptions) {\n if (_classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] < this.limit) {\n return _classPrivateFieldLooseBase(this, _call)[_call](fn);\n }\n\n return _classPrivateFieldLooseBase(this, _queue)[_queue](fn, queueOptions);\n }\n\n wrapPromiseFunction(fn, queueOptions) {\n return (...args) => {\n let queuedRequest;\n const outerPromise = new Promise((resolve, reject) => {\n queuedRequest = this.run(() => {\n let cancelError;\n let innerPromise;\n\n try {\n innerPromise = Promise.resolve(fn(...args));\n } catch (err) {\n innerPromise = Promise.reject(err);\n }\n\n innerPromise.then(result => {\n if (cancelError) {\n reject(cancelError);\n } else {\n queuedRequest.done();\n resolve(result);\n }\n }, err => {\n if (cancelError) {\n reject(cancelError);\n } else {\n queuedRequest.done();\n reject(err);\n }\n });\n return () => {\n cancelError = createCancelError();\n };\n }, queueOptions);\n });\n\n outerPromise.abort = () => {\n queuedRequest.abort();\n };\n\n return outerPromise;\n };\n }\n\n}\n\nfunction _call2(fn) {\n _classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] += 1;\n let done = false;\n let cancelActive;\n\n try {\n cancelActive = fn();\n } catch (err) {\n _classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] -= 1;\n throw err;\n }\n\n return {\n abort: () => {\n if (done) return;\n done = true;\n _classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] -= 1;\n cancelActive();\n\n _classPrivateFieldLooseBase(this, _queueNext)[_queueNext]();\n },\n done: () => {\n if (done) return;\n done = true;\n _classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] -= 1;\n\n _classPrivateFieldLooseBase(this, _queueNext)[_queueNext]();\n }\n };\n}\n\nfunction _queueNext2() {\n // Do it soon but not immediately, this allows clearing out the entire queue synchronously\n // one by one without continuously _advancing_ it (and starting new tasks before immediately\n // aborting them)\n queueMicrotask(() => _classPrivateFieldLooseBase(this, _next)[_next]());\n}\n\nfunction _next2() {\n if (_classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] >= this.limit) {\n return;\n }\n\n if (_classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].length === 0) {\n return;\n } // Dispatch the next request, and update the abort/done handlers\n // so that cancelling it does the Right Thing (and doesn't just try\n // to dequeue an already-running request).\n\n\n const next = _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].shift();\n\n const handler = _classPrivateFieldLooseBase(this, _call)[_call](next.fn);\n\n next.abort = handler.abort;\n next.done = handler.done;\n}\n\nfunction _queue2(fn, options = {}) {\n const handler = {\n fn,\n priority: options.priority || 0,\n abort: () => {\n _classPrivateFieldLooseBase(this, _dequeue)[_dequeue](handler);\n },\n done: () => {\n throw new Error('Cannot mark a queued request as done: this indicates a bug');\n }\n };\n\n const index = _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].findIndex(other => {\n return handler.priority > other.priority;\n });\n\n if (index === -1) {\n _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].push(handler);\n } else {\n _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].splice(index, 0, handler);\n }\n\n return handler;\n}\n\nfunction _dequeue2(handler) {\n const index = _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].indexOf(handler);\n\n if (index !== -1) {\n _classPrivateFieldLooseBase(this, _queuedHandlers)[_queuedHandlers].splice(index, 1);\n }\n}\n\nmodule.exports = {\n RateLimitedQueue,\n internalRateLimitedQueue: Symbol('__queue')\n};"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@micromag/viewer-build"]=this["webpackJsonp@micromag/viewer-build"]||[]).push([[10],{538:function(i,e,n){"use strict";var o,r,t=n(19),s=n(20),l=n(56),a=n(24),u=n(25),p=n(53).UIPlugin,d=n(450).Provider,c=n(460).ProviderViews,h=n(17).h;i.exports=(r=o=function(i){a(n,i);var e=u(n);function n(i,o){var r;return t(this,n),(r=e.call(this,i,o)).id=r.opts.id||"Dropbox",d.initPlugin(l(r),o),r.title=r.opts.title||"Dropbox",r.icon=function(){return h("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},h("g",{fill:"none",fillRule:"evenodd"},h("rect",{className:"uppy-ProviderIconBg",fill:"#0D2481",width:"32",height:"32",rx:"16"}),h("path",{d:"M11 8l5 3.185-5 3.186-5-3.186L11 8zm10 0l5 3.185-5 3.186-5-3.186L21 8zM6 17.556l5-3.185 5 3.185-5 3.186-5-3.186zm15-3.185l5 3.185-5 3.186-5-3.186 5-3.185zm-10 7.432l5-3.185 5 3.185-5 3.186-5-3.186z",fill:"#FFF",fillRule:"nonzero"})))},r.provider=new d(i,{companionUrl:r.opts.companionUrl,companionHeaders:r.opts.companionHeaders,companionKeysParams:r.opts.companionKeysParams,companionCookiesRule:r.opts.companionCookiesRule,provider:"dropbox",pluginId:r.id}),r.defaultLocale={strings:{pluginNameDropbox:"Dropbox"}},r.i18nInit(),r.title=r.i18n("pluginNameDropbox"),r.onFirstRender=r.onFirstRender.bind(l(r)),r.render=r.render.bind(l(r)),r}return s(n,[{key:"install",value:function(){this.view=new c(this,{provider:this.provider});var i=this.opts.target;i&&this.mount(i,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])}},{key:"render",value:function(i){return this.view.render(i)}}]),n}(p),o.VERSION="2.0.4",r)}}]);
|
|
2
|
-
//# sourceMappingURL=10.c4c543ba.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@uppy/dropbox/lib/index.js"],"names":["_class","_temp","UIPlugin","require","Provider","ProviderViews","h","module","exports","uppy","opts","id","initPlugin","title","icon","focusable","width","height","viewBox","fill","fillRule","className","rx","d","provider","companionUrl","companionHeaders","companionKeysParams","companionCookiesRule","pluginId","defaultLocale","strings","pluginNameDropbox","i18nInit","i18n","onFirstRender","bind","render","this","view","target","mount","tearDown","unmount","Promise","all","fetchPreAuthToken","getFolder","state","VERSION"],"mappings":"6IAEIA,EAAQC,E,wCAGVC,EACEC,EAAQ,IADVD,SAIAE,EACED,EAAQ,KADVC,SAIAC,EACEF,EAAQ,KADVE,cAIAC,EACEH,EAAQ,IADVG,EAGFC,EAAOC,SAAWP,EAAQD,EAAM,8BAC9B,WAAYS,EAAMC,GAAM,wBACtB,cAAMD,EAAMC,IACPC,GAAK,EAAKD,KAAKC,IAAM,UAC1BP,EAASQ,WAAT,KAA0BF,GAC1B,EAAKG,MAAQ,EAAKH,KAAKG,OAAS,UAEhC,EAAKC,KAAO,kBAAMR,EAAE,MAAO,CACzB,cAAe,OACfS,UAAW,QACXC,MAAO,KACPC,OAAQ,KACRC,QAAS,aACRZ,EAAE,IAAK,CACRa,KAAM,OACNC,SAAU,WACTd,EAAE,OAAQ,CACXe,UAAW,sBACXF,KAAM,UACNH,MAAO,KACPC,OAAQ,KACRK,GAAI,OACFhB,EAAE,OAAQ,CACZiB,EAAG,wMACHJ,KAAM,OACNC,SAAU,eAGZ,EAAKI,SAAW,IAAIpB,EAASK,EAAM,CACjCgB,aAAc,EAAKf,KAAKe,aACxBC,iBAAkB,EAAKhB,KAAKgB,iBAC5BC,oBAAqB,EAAKjB,KAAKiB,oBAC/BC,qBAAsB,EAAKlB,KAAKkB,qBAChCJ,SAAU,UACVK,SAAU,EAAKlB,KAEjB,EAAKmB,cAAgB,CACnBC,QAAS,CACPC,kBAAmB,YAGvB,EAAKC,WACL,EAAKpB,MAAQ,EAAKqB,KAAK,qBACvB,EAAKC,cAAgB,EAAKA,cAAcC,KAAnB,MACrB,EAAKC,OAAS,EAAKA,OAAOD,KAAZ,MA3CQ,EADM,iCA+C9B,WACEE,KAAKC,KAAO,IAAIlC,EAAciC,KAAM,CAClCd,SAAUc,KAAKd,WAEjB,IACEgB,EACEF,KAAK5B,KADP8B,OAGEA,GACFF,KAAKG,MAAMD,EAAQF,QAxDO,uBA4D9B,WACEA,KAAKC,KAAKG,WACVJ,KAAKK,YA9DuB,2BAiE9B,WACE,OAAOC,QAAQC,IAAI,CAACP,KAAKd,SAASsB,oBAAqBR,KAAKC,KAAKQ,gBAlErC,oBAqE9B,SAAOC,GACL,OAAOV,KAAKC,KAAKF,OAAOW,OAtEI,GAAyB9C,GAyEtDF,EAAOiD,QAAU,QAAShD","file":"static/js/10.c4c543ba.chunk.js","sourcesContent":["\"use strict\";\n\nvar _class, _temp;\n\nconst {\n UIPlugin\n} = require('@uppy/core');\n\nconst {\n Provider\n} = require('@uppy/companion-client');\n\nconst {\n ProviderViews\n} = require('@uppy/provider-views');\n\nconst {\n h\n} = require('preact');\n\nmodule.exports = (_temp = _class = class Dropbox extends UIPlugin {\n constructor(uppy, opts) {\n super(uppy, opts);\n this.id = this.opts.id || 'Dropbox';\n Provider.initPlugin(this, opts);\n this.title = this.opts.title || 'Dropbox';\n\n this.icon = () => h(\"svg\", {\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\"\n }, h(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, h(\"rect\", {\n className: \"uppy-ProviderIconBg\",\n fill: \"#0D2481\",\n width: \"32\",\n height: \"32\",\n rx: \"16\"\n }), h(\"path\", {\n d: \"M11 8l5 3.185-5 3.186-5-3.186L11 8zm10 0l5 3.185-5 3.186-5-3.186L21 8zM6 17.556l5-3.185 5 3.185-5 3.186-5-3.186zm15-3.185l5 3.185-5 3.186-5-3.186 5-3.185zm-10 7.432l5-3.185 5 3.185-5 3.186-5-3.186z\",\n fill: \"#FFF\",\n fillRule: \"nonzero\"\n })));\n\n this.provider = new Provider(uppy, {\n companionUrl: this.opts.companionUrl,\n companionHeaders: this.opts.companionHeaders,\n companionKeysParams: this.opts.companionKeysParams,\n companionCookiesRule: this.opts.companionCookiesRule,\n provider: 'dropbox',\n pluginId: this.id\n });\n this.defaultLocale = {\n strings: {\n pluginNameDropbox: 'Dropbox'\n }\n };\n this.i18nInit();\n this.title = this.i18n('pluginNameDropbox');\n this.onFirstRender = this.onFirstRender.bind(this);\n this.render = this.render.bind(this);\n }\n\n install() {\n this.view = new ProviderViews(this, {\n provider: this.provider\n });\n const {\n target\n } = this.opts;\n\n if (target) {\n this.mount(target, this);\n }\n }\n\n uninstall() {\n this.view.tearDown();\n this.unmount();\n }\n\n onFirstRender() {\n return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]);\n }\n\n render(state) {\n return this.view.render(state);\n }\n\n}, _class.VERSION = \"2.0.4\", _temp);"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@micromag/viewer-build"]=this["webpackJsonp@micromag/viewer-build"]||[]).push([[11],{536:function(e,i,n){"use strict";var o,t,r=n(19),s=n(20),l=n(56),a=n(24),u=n(25),c=n(53).UIPlugin,h=n(450).Provider,d=n(460).ProviderViews,p=n(17).h;e.exports=(t=o=function(e){a(n,e);var i=u(n);function n(e,o){var t;return r(this,n),(t=i.call(this,e,o)).id=t.opts.id||"Facebook",h.initPlugin(l(t),o),t.title=t.opts.title||"Facebook",t.icon=function(){return p("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},p("g",{fill:"none",fillRule:"evenodd"},p("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#3C5A99"}),p("path",{d:"M17.842 26v-8.667h2.653l.398-3.377h-3.051v-2.157c0-.978.248-1.644 1.527-1.644H21V7.132A19.914 19.914 0 0 0 18.623 7c-2.352 0-3.963 1.574-3.963 4.465v2.49H12v3.378h2.66V26h3.182z",fill:"#FFF",fillRule:"nonzero"})))},t.provider=new h(e,{companionUrl:t.opts.companionUrl,companionHeaders:t.opts.companionHeaders,companionKeysParams:t.opts.companionKeysParams,companionCookiesRule:t.opts.companionCookiesRule,provider:"facebook",pluginId:t.id}),t.defaultLocale={strings:{pluginNameFacebook:"Facebook"}},t.i18nInit(),t.title=t.i18n("pluginNameFacebook"),t.onFirstRender=t.onFirstRender.bind(l(t)),t.render=t.render.bind(l(t)),t}return s(n,[{key:"install",value:function(){this.view=new d(this,{provider:this.provider});var e=this.opts.target;e&&this.mount(e,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])}},{key:"render",value:function(e){var i={};return this.getPluginState().files.length&&!this.getPluginState().folders.length&&(i.viewType="grid",i.showFilter=!1,i.showTitles=!1),this.view.render(e,i)}}]),n}(c),o.VERSION="2.0.4",t)}}]);
|
|
2
|
-
//# sourceMappingURL=11.926ced06.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@uppy/facebook/lib/index.js"],"names":["_class","_temp","UIPlugin","require","Provider","ProviderViews","h","module","exports","uppy","opts","id","initPlugin","title","icon","focusable","width","height","viewBox","fill","fillRule","className","rx","d","provider","companionUrl","companionHeaders","companionKeysParams","companionCookiesRule","pluginId","defaultLocale","strings","pluginNameFacebook","i18nInit","i18n","onFirstRender","bind","render","this","view","target","mount","tearDown","unmount","Promise","all","fetchPreAuthToken","getFolder","state","viewOptions","getPluginState","files","length","folders","viewType","showFilter","showTitles","VERSION"],"mappings":"6IAEIA,EAAQC,E,wCAGVC,EACEC,EAAQ,IADVD,SAIAE,EACED,EAAQ,KADVC,SAIAC,EACEF,EAAQ,KADVE,cAIAC,EACEH,EAAQ,IADVG,EAGFC,EAAOC,SAAWP,EAAQD,EAAM,8BAC9B,WAAYS,EAAMC,GAAM,wBACtB,cAAMD,EAAMC,IACPC,GAAK,EAAKD,KAAKC,IAAM,WAC1BP,EAASQ,WAAT,KAA0BF,GAC1B,EAAKG,MAAQ,EAAKH,KAAKG,OAAS,WAEhC,EAAKC,KAAO,kBAAMR,EAAE,MAAO,CACzB,cAAe,OACfS,UAAW,QACXC,MAAO,KACPC,OAAQ,KACRC,QAAS,aACRZ,EAAE,IAAK,CACRa,KAAM,OACNC,SAAU,WACTd,EAAE,OAAQ,CACXe,UAAW,sBACXL,MAAO,KACPC,OAAQ,KACRK,GAAI,KACJH,KAAM,YACJb,EAAE,OAAQ,CACZiB,EAAG,oLACHJ,KAAM,OACNC,SAAU,eAGZ,EAAKI,SAAW,IAAIpB,EAASK,EAAM,CACjCgB,aAAc,EAAKf,KAAKe,aACxBC,iBAAkB,EAAKhB,KAAKgB,iBAC5BC,oBAAqB,EAAKjB,KAAKiB,oBAC/BC,qBAAsB,EAAKlB,KAAKkB,qBAChCJ,SAAU,WACVK,SAAU,EAAKlB,KAEjB,EAAKmB,cAAgB,CACnBC,QAAS,CACPC,mBAAoB,aAGxB,EAAKC,WACL,EAAKpB,MAAQ,EAAKqB,KAAK,sBACvB,EAAKC,cAAgB,EAAKA,cAAcC,KAAnB,MACrB,EAAKC,OAAS,EAAKA,OAAOD,KAAZ,MA3CQ,EADM,iCA+C9B,WACEE,KAAKC,KAAO,IAAIlC,EAAciC,KAAM,CAClCd,SAAUc,KAAKd,WAEjB,IACEgB,EACEF,KAAK5B,KADP8B,OAGEA,GACFF,KAAKG,MAAMD,EAAQF,QAxDO,uBA4D9B,WACEA,KAAKC,KAAKG,WACVJ,KAAKK,YA9DuB,2BAiE9B,WACE,OAAOC,QAAQC,IAAI,CAACP,KAAKd,SAASsB,oBAAqBR,KAAKC,KAAKQ,gBAlErC,oBAqE9B,SAAOC,GACL,IAAMC,EAAc,GAQpB,OANIX,KAAKY,iBAAiBC,MAAMC,SAAWd,KAAKY,iBAAiBG,QAAQD,SACvEH,EAAYK,SAAW,OACvBL,EAAYM,YAAa,EACzBN,EAAYO,YAAa,GAGpBlB,KAAKC,KAAKF,OAAOW,EAAOC,OA9EH,GAA0B/C,GAiFvDF,EAAOyD,QAAU,QAASxD","file":"static/js/11.926ced06.chunk.js","sourcesContent":["\"use strict\";\n\nvar _class, _temp;\n\nconst {\n UIPlugin\n} = require('@uppy/core');\n\nconst {\n Provider\n} = require('@uppy/companion-client');\n\nconst {\n ProviderViews\n} = require('@uppy/provider-views');\n\nconst {\n h\n} = require('preact');\n\nmodule.exports = (_temp = _class = class Facebook extends UIPlugin {\n constructor(uppy, opts) {\n super(uppy, opts);\n this.id = this.opts.id || 'Facebook';\n Provider.initPlugin(this, opts);\n this.title = this.opts.title || 'Facebook';\n\n this.icon = () => h(\"svg\", {\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\"\n }, h(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, h(\"rect\", {\n className: \"uppy-ProviderIconBg\",\n width: \"32\",\n height: \"32\",\n rx: \"16\",\n fill: \"#3C5A99\"\n }), h(\"path\", {\n d: \"M17.842 26v-8.667h2.653l.398-3.377h-3.051v-2.157c0-.978.248-1.644 1.527-1.644H21V7.132A19.914 19.914 0 0 0 18.623 7c-2.352 0-3.963 1.574-3.963 4.465v2.49H12v3.378h2.66V26h3.182z\",\n fill: \"#FFF\",\n fillRule: \"nonzero\"\n })));\n\n this.provider = new Provider(uppy, {\n companionUrl: this.opts.companionUrl,\n companionHeaders: this.opts.companionHeaders,\n companionKeysParams: this.opts.companionKeysParams,\n companionCookiesRule: this.opts.companionCookiesRule,\n provider: 'facebook',\n pluginId: this.id\n });\n this.defaultLocale = {\n strings: {\n pluginNameFacebook: 'Facebook'\n }\n };\n this.i18nInit();\n this.title = this.i18n('pluginNameFacebook');\n this.onFirstRender = this.onFirstRender.bind(this);\n this.render = this.render.bind(this);\n }\n\n install() {\n this.view = new ProviderViews(this, {\n provider: this.provider\n });\n const {\n target\n } = this.opts;\n\n if (target) {\n this.mount(target, this);\n }\n }\n\n uninstall() {\n this.view.tearDown();\n this.unmount();\n }\n\n onFirstRender() {\n return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]);\n }\n\n render(state) {\n const viewOptions = {};\n\n if (this.getPluginState().files.length && !this.getPluginState().folders.length) {\n viewOptions.viewType = 'grid';\n viewOptions.showFilter = false;\n viewOptions.showTitles = false;\n }\n\n return this.view.render(state, viewOptions);\n }\n\n}, _class.VERSION = \"2.0.4\", _temp);"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@micromag/viewer-build"]=this["webpackJsonp@micromag/viewer-build"]||[]).push([[12],{537:function(e,i,n){"use strict";var r,t,o=n(19),s=n(20),a=n(56),c=n(24),l=n(25),u=n(53).UIPlugin,d=n(450).Provider,p=n(460).ProviderViews,h=n(17).h;e.exports=(t=r=function(e){c(n,e);var i=l(n);function n(e,r){var t;return o(this,n),(t=i.call(this,e,r)).id=t.opts.id||"Instagram",d.initPlugin(a(t),r),t.icon=function(){return h("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},h("g",{fill:"none",fillRule:"evenodd"},h("rect",{className:"uppy-ProviderIconBg",fill:"#E1306C",width:"32",height:"32",rx:"16"}),h("path",{d:"M16 8.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.67.31.392.144.745.374 1.036.673.299.29.529.644.673 1.035.123.317.27.794.31 1.671.043.95.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671a2.98 2.98 0 0 1-1.708 1.708c-.317.123-.794.27-1.671.31-.95.043-1.234.053-3.637.053s-2.688-.01-3.637-.053c-.877-.04-1.354-.187-1.671-.31a2.788 2.788 0 0 1-1.035-.673 2.788 2.788 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.67.144-.392.374-.745.673-1.036.29-.299.644-.529 1.035-.673.317-.123.794-.27 1.671-.31.95-.043 1.234-.052 3.637-.052zM16 7c-2.444 0-2.75.01-3.71.054-.959.044-1.613.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.813.993-1.039 1.594-.222.572-.374 1.226-.418 2.184C7.01 13.25 7 13.556 7 16s.01 2.75.054 3.71c.044.959.196 1.613.419 2.185.226.6.58 1.145 1.038 1.594.45.458.993.813 1.594 1.038.572.223 1.227.375 2.184.419.96.044 1.267.054 3.711.054s2.75-.01 3.71-.054c.959-.044 1.613-.196 2.185-.419a4.602 4.602 0 0 0 2.632-2.632c.223-.572.375-1.226.419-2.184.044-.96.054-1.267.054-3.711s-.01-2.75-.054-3.71c-.044-.959-.196-1.613-.419-2.185A4.412 4.412 0 0 0 23.49 8.51a4.412 4.412 0 0 0-1.594-1.039c-.572-.222-1.226-.374-2.184-.418C18.75 7.01 18.444 7 16 7zm0 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.421a2.921 2.921 0 1 1 0-5.842 2.921 2.921 0 0 1 0 5.842zm4.875-6.671a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25z",fill:"#FFF"})))},t.defaultLocale={strings:{pluginNameInstagram:"Instagram"}},t.i18nInit(),t.title=t.i18n("pluginNameInstagram"),t.provider=new d(e,{companionUrl:t.opts.companionUrl,companionHeaders:t.opts.companionHeaders,companionKeysParams:t.opts.companionKeysParams,companionCookiesRule:t.opts.companionCookiesRule,provider:"instagram",pluginId:t.id}),t.onFirstRender=t.onFirstRender.bind(a(t)),t.render=t.render.bind(a(t)),t}return s(n,[{key:"install",value:function(){this.view=new p(this,{provider:this.provider,viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1});var e=this.opts.target;e&&this.mount(e,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("recent")])}},{key:"render",value:function(e){return this.view.render(e)}}]),n}(u),r.VERSION="2.0.4",t)}}]);
|
|
2
|
-
//# sourceMappingURL=12.08deb037.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@uppy/instagram/lib/index.js"],"names":["_class","_temp","UIPlugin","require","Provider","ProviderViews","h","module","exports","uppy","opts","id","initPlugin","icon","focusable","width","height","viewBox","fill","fillRule","className","rx","d","defaultLocale","strings","pluginNameInstagram","i18nInit","title","i18n","provider","companionUrl","companionHeaders","companionKeysParams","companionCookiesRule","pluginId","onFirstRender","bind","render","this","view","viewType","showTitles","showFilter","showBreadcrumbs","target","mount","tearDown","unmount","Promise","all","fetchPreAuthToken","getFolder","state","VERSION"],"mappings":"6IAEIA,EAAQC,E,wCAGVC,EACEC,EAAQ,IADVD,SAIAE,EACED,EAAQ,KADVC,SAIAC,EACEF,EAAQ,KADVE,cAIAC,EACEH,EAAQ,IADVG,EAGFC,EAAOC,SAAWP,E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qD,QAAU,QAASpD","file":"static/js/12.08deb037.chunk.js","sourcesContent":["\"use strict\";\n\nvar _class, _temp;\n\nconst {\n UIPlugin\n} = require('@uppy/core');\n\nconst {\n Provider\n} = require('@uppy/companion-client');\n\nconst {\n ProviderViews\n} = require('@uppy/provider-views');\n\nconst {\n h\n} = require('preact');\n\nmodule.exports = (_temp = _class = class Instagram extends UIPlugin {\n constructor(uppy, opts) {\n super(uppy, opts);\n this.id = this.opts.id || 'Instagram';\n Provider.initPlugin(this, opts);\n\n this.icon = () => h(\"svg\", {\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\"\n }, h(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, h(\"rect\", {\n className: \"uppy-ProviderIconBg\",\n fill: \"#E1306C\",\n width: \"32\",\n height: \"32\",\n rx: \"16\"\n }), h(\"path\", {\n d: \"M16 8.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.67.31.392.144.745.374 1.036.673.299.29.529.644.673 1.035.123.317.27.794.31 1.671.043.95.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671a2.98 2.98 0 0 1-1.708 1.708c-.317.123-.794.27-1.671.31-.95.043-1.234.053-3.637.053s-2.688-.01-3.637-.053c-.877-.04-1.354-.187-1.671-.31a2.788 2.788 0 0 1-1.035-.673 2.788 2.788 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.67.144-.392.374-.745.673-1.036.29-.299.644-.529 1.035-.673.317-.123.794-.27 1.671-.31.95-.043 1.234-.052 3.637-.052zM16 7c-2.444 0-2.75.01-3.71.054-.959.044-1.613.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.813.993-1.039 1.594-.222.572-.374 1.226-.418 2.184C7.01 13.25 7 13.556 7 16s.01 2.75.054 3.71c.044.959.196 1.613.419 2.185.226.6.58 1.145 1.038 1.594.45.458.993.813 1.594 1.038.572.223 1.227.375 2.184.419.96.044 1.267.054 3.711.054s2.75-.01 3.71-.054c.959-.044 1.613-.196 2.185-.419a4.602 4.602 0 0 0 2.632-2.632c.223-.572.375-1.226.419-2.184.044-.96.054-1.267.054-3.711s-.01-2.75-.054-3.71c-.044-.959-.196-1.613-.419-2.185A4.412 4.412 0 0 0 23.49 8.51a4.412 4.412 0 0 0-1.594-1.039c-.572-.222-1.226-.374-2.184-.418C18.75 7.01 18.444 7 16 7zm0 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.421a2.921 2.921 0 1 1 0-5.842 2.921 2.921 0 0 1 0 5.842zm4.875-6.671a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25z\",\n fill: \"#FFF\"\n })));\n\n this.defaultLocale = {\n strings: {\n pluginNameInstagram: 'Instagram'\n }\n };\n this.i18nInit();\n this.title = this.i18n('pluginNameInstagram');\n this.provider = new Provider(uppy, {\n companionUrl: this.opts.companionUrl,\n companionHeaders: this.opts.companionHeaders,\n companionKeysParams: this.opts.companionKeysParams,\n companionCookiesRule: this.opts.companionCookiesRule,\n provider: 'instagram',\n pluginId: this.id\n });\n this.onFirstRender = this.onFirstRender.bind(this);\n this.render = this.render.bind(this);\n }\n\n install() {\n this.view = new ProviderViews(this, {\n provider: this.provider,\n viewType: 'grid',\n showTitles: false,\n showFilter: false,\n showBreadcrumbs: false\n });\n const {\n target\n } = this.opts;\n\n if (target) {\n this.mount(target, this);\n }\n }\n\n uninstall() {\n this.view.tearDown();\n this.unmount();\n }\n\n onFirstRender() {\n return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder('recent')]);\n }\n\n render(state) {\n return this.view.render(state);\n }\n\n}, _class.VERSION = \"2.0.4\", _temp);"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@micromag/viewer-build"]=this["webpackJsonp@micromag/viewer-build"]||[]).push([[13],{532:function(e,o,r){"use strict";var i={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},addingMoreFiles:"Adding more files",addMore:"Add more",addMoreFiles:"Add more files",allFilesFromFolderNamed:"All files from folder %{name}",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",allowAccessTitle:"Please allow access to your camera",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)",aspectRatioSquare:"Crop square",authAborted:"Authentication aborted",authenticateWith:"Connect to %{pluginName}",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",back:"Back",backToSearch:"Back to Search",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",cancel:"Cancel",cancelUpload:"Cancel upload",chooseFiles:"Choose files",closeModal:"Close Modal",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",complete:"Complete",connectedToInternet:"Connected to the Internet",copyLink:"Copy link",copyLinkToClipboardFallback:"Copy the URL below",copyLinkToClipboardSuccess:"Link copied to clipboard",creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",dashboardTitle:"File Uploader",dashboardWindowTitle:"File Uploader Window (Press escape to close)",dataUploadedOfTotal:"%{complete} of %{total}",discardRecordedFile:"Discard recorded file",done:"Done",dropHereOr:"Drop files here or %{browse}",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",editFile:"Edit file",editFileWithFilename:"Edit file %{file}",editing:"Editing %{file}",emptyFolderAdded:"No files were added from empty folder",encoding:"Encoding...",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file",enterTextToSearch:"Enter text to search for images",enterUrlToImport:"Enter URL to import a file",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",failedToUpload:"Failed to upload %{file}",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},filter:"Filter",finishEditingFile:"Finish editing file",flipHorizontal:"Flip horizontal",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},folderAlreadyAdded:'The folder "%{folder}" was already added',generatingThumbnails:"Generating thumbnails...",import:"Import",importFiles:"Import files from:",importFrom:"Import from %{name}",inferiorSize:"This file is smaller than the allowed size of %{size}",loading:"Loading...",logOut:"Log out",micDisabled:"Microphone access denied by user",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",myDevice:"My Device",noCameraDescription:"In order to take pictures or record video, please connect a camera device",noCameraTitle:"Camera Not Available",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",noFilesFound:"You have no files or folders here",noInternetConnection:"No Internet connection",noMoreFilesAllowed:"Cannot add more files",openFolderNamed:"Open folder %{name}",pause:"Pause",paused:"Paused",pauseUpload:"Pause upload",pluginNameBox:"Box",pluginNameCamera:"Camera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recording:"Recording",recordingLength:"Recording length %{recording_length}",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recoveredAllFiles:"We restored all files. You can now resume the upload.",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},removeFile:"Remove file %{file}",reSelect:"Re-select",resetFilter:"Reset filter",resume:"Resume",resumeUpload:"Resume upload",retry:"Retry",retryUpload:"Retry upload",revert:"Revert",rotate:"Rotate",save:"Save",saveChanges:"Save changes",searchImages:"Search for images",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},sessionRestored:"Session restored",signInWithGoogle:"Sign in with Google",smile:"Smile!",startCapturing:"Begin screen capturing",startRecording:"Begin video recording",stopCapturing:"Stop screen capturing",stopRecording:"Stop video recording",streamActive:"Stream active",streamPassive:"Stream passive",submitRecordedFile:"Submit recorded file",takePicture:"Take a picture",timedOut:"Upload stalled for %{seconds} seconds, aborting.",upload:"Upload",uploadComplete:"Upload complete",uploadFailed:"Upload failed",uploading:"Uploading",uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},uploadPaused:"Upload paused",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},zoomIn:"Zoom in",zoomOut:"Zoom out"},pluralize:function(e){return 1===e?0:1}};"undefined"!==typeof window&&"undefined"!==typeof window.Uppy&&(window.Uppy.locales.en_US=i),e.exports=i}}]);
|
|
2
|
-
//# sourceMappingURL=13.3fbd8798.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@uppy/locales/lib/en_US.js"],"names":["en_US","addBulkFilesFailed","addingMoreFiles","addMore","addMoreFiles","allFilesFromFolderNamed","allowAccessDescription","allowAccessTitle","aspectRatioLandscape","aspectRatioPortrait","aspectRatioSquare","authAborted","authenticateWith","authenticateWithTitle","back","backToSearch","browse","browseFiles","browseFolders","cancel","cancelUpload","chooseFiles","closeModal","companionError","companionUnauthorizeHint","complete","connectedToInternet","copyLink","copyLinkToClipboardFallback","copyLinkToClipboardSuccess","creatingAssembly","creatingAssemblyFailed","dashboardTitle","dashboardWindowTitle","dataUploadedOfTotal","discardRecordedFile","done","dropHereOr","dropHint","dropPasteBoth","dropPasteFiles","dropPasteFolders","dropPasteImportBoth","dropPasteImportFiles","dropPasteImportFolders","editFile","editFileWithFilename","editing","emptyFolderAdded","encoding","enterCorrectUrl","enterTextToSearch","enterUrlToImport","exceedsSize","failedToFetch","failedToUpload","filesUploadedOfTotal","filter","finishEditingFile","flipHorizontal","folderAdded","folderAlreadyAdded","generatingThumbnails","import","importFiles","importFrom","inferiorSize","loading","logOut","micDisabled","missingRequiredMetaField","missingRequiredMetaFieldOnFile","myDevice","noCameraDescription","noCameraTitle","noDuplicates","noFilesFound","noInternetConnection","noMoreFilesAllowed","openFolderNamed","pause","paused","pauseUpload","pluginNameBox","pluginNameCamera","pluginNameDropbox","pluginNameFacebook","pluginNameGoogleDrive","pluginNameInstagram","pluginNameOneDrive","pluginNameZoom","poweredBy","processingXFiles","recording","recordingLength","recordingStoppedMaxSize","recoveredAllFiles","recoveredXFiles","removeFile","reSelect","resetFilter","resume","resumeUpload","retry","retryUpload","revert","rotate","save","saveChanges","searchImages","selectX","sessionRestored","signInWithGoogle","smile","startCapturing","startRecording","stopCapturing","stopRecording","streamActive","streamPassive","submitRecordedFile","takePicture","timedOut","upload","uploadComplete","uploadFailed","uploading","uploadingXFiles","uploadPaused","uploadXFiles","uploadXNewFiles","xFilesSelected","xMoreFilesAdded","xTimeLeft","youCanOnlyUploadFileTypes","youCanOnlyUploadX","youHaveToAtLeastSelectX","zoomIn","zoomOut","count","window","Uppy","locales","module","exports"],"mappings":"yIAEA,IAAMA,EAAQ,CACdA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I,MAAQA,GAG9B+I,EAAOC,QAAUhJ","file":"static/js/13.3fbd8798.chunk.js","sourcesContent":["\"use strict\";\n\nconst en_US = {};\nen_US.strings = {\n addBulkFilesFailed: {\n '0': 'Failed to add %{smart_count} file due to an internal error',\n '1': 'Failed to add %{smart_count} files due to internal errors'\n },\n addingMoreFiles: 'Adding more files',\n addMore: 'Add more',\n addMoreFiles: 'Add more files',\n allFilesFromFolderNamed: 'All files from folder %{name}',\n allowAccessDescription: 'In order to take pictures or record video with your camera, please allow camera access for this site.',\n allowAccessTitle: 'Please allow access to your camera',\n aspectRatioLandscape: 'Crop landscape (16:9)',\n aspectRatioPortrait: 'Crop portrait (9:16)',\n aspectRatioSquare: 'Crop square',\n authAborted: 'Authentication aborted',\n authenticateWith: 'Connect to %{pluginName}',\n authenticateWithTitle: 'Please authenticate with %{pluginName} to select files',\n back: 'Back',\n backToSearch: 'Back to Search',\n browse: 'browse',\n browseFiles: 'browse files',\n browseFolders: 'browse folders',\n cancel: 'Cancel',\n cancelUpload: 'Cancel upload',\n chooseFiles: 'Choose files',\n closeModal: 'Close Modal',\n companionError: 'Connection with Companion failed',\n companionUnauthorizeHint: 'To unauthorize to your %{provider} account, please go to %{url}',\n complete: 'Complete',\n connectedToInternet: 'Connected to the Internet',\n copyLink: 'Copy link',\n copyLinkToClipboardFallback: 'Copy the URL below',\n copyLinkToClipboardSuccess: 'Link copied to clipboard',\n creatingAssembly: 'Preparing upload...',\n creatingAssemblyFailed: 'Transloadit: Could not create Assembly',\n dashboardTitle: 'File Uploader',\n dashboardWindowTitle: 'File Uploader Window (Press escape to close)',\n dataUploadedOfTotal: '%{complete} of %{total}',\n discardRecordedFile: 'Discard recorded file',\n done: 'Done',\n dropHereOr: 'Drop files here or %{browse}',\n dropHint: 'Drop your files here',\n dropPasteBoth: 'Drop files here, %{browseFiles} or %{browseFolders}',\n dropPasteFiles: 'Drop files here or %{browseFiles}',\n dropPasteFolders: 'Drop files here or %{browseFolders}',\n dropPasteImportBoth: 'Drop files here, %{browseFiles}, %{browseFolders} or import from:',\n dropPasteImportFiles: 'Drop files here, %{browseFiles} or import from:',\n dropPasteImportFolders: 'Drop files here, %{browseFolders} or import from:',\n editFile: 'Edit file',\n editFileWithFilename: 'Edit file %{file}',\n editing: 'Editing %{file}',\n emptyFolderAdded: 'No files were added from empty folder',\n encoding: 'Encoding...',\n enterCorrectUrl: 'Incorrect URL: Please make sure you are entering a direct link to a file',\n enterTextToSearch: 'Enter text to search for images',\n enterUrlToImport: 'Enter URL to import a file',\n exceedsSize: '%{file} exceeds maximum allowed size of %{size}',\n failedToFetch: 'Companion failed to fetch this URL, please make sure it’s correct',\n failedToUpload: 'Failed to upload %{file}',\n filesUploadedOfTotal: {\n '0': '%{complete} of %{smart_count} file uploaded',\n '1': '%{complete} of %{smart_count} files uploaded'\n },\n filter: 'Filter',\n finishEditingFile: 'Finish editing file',\n flipHorizontal: 'Flip horizontal',\n folderAdded: {\n '0': 'Added %{smart_count} file from %{folder}',\n '1': 'Added %{smart_count} files from %{folder}'\n },\n folderAlreadyAdded: 'The folder \"%{folder}\" was already added',\n generatingThumbnails: 'Generating thumbnails...',\n import: 'Import',\n importFiles: 'Import files from:',\n importFrom: 'Import from %{name}',\n inferiorSize: 'This file is smaller than the allowed size of %{size}',\n loading: 'Loading...',\n logOut: 'Log out',\n micDisabled: 'Microphone access denied by user',\n missingRequiredMetaField: 'Missing required meta fields',\n missingRequiredMetaFieldOnFile: 'Missing required meta fields in %{fileName}',\n myDevice: 'My Device',\n noCameraDescription: 'In order to take pictures or record video, please connect a camera device',\n noCameraTitle: 'Camera Not Available',\n noDuplicates: 'Cannot add the duplicate file \\'%{fileName}\\', it already exists',\n noFilesFound: 'You have no files or folders here',\n noInternetConnection: 'No Internet connection',\n noMoreFilesAllowed: 'Cannot add more files',\n openFolderNamed: 'Open folder %{name}',\n pause: 'Pause',\n paused: 'Paused',\n pauseUpload: 'Pause upload',\n pluginNameBox: 'Box',\n pluginNameCamera: 'Camera',\n pluginNameDropbox: 'Dropbox',\n pluginNameFacebook: 'Facebook',\n pluginNameGoogleDrive: 'Google Drive',\n pluginNameInstagram: 'Instagram',\n pluginNameOneDrive: 'OneDrive',\n pluginNameZoom: 'Zoom',\n poweredBy: 'Powered by %{uppy}',\n processingXFiles: {\n '0': 'Processing %{smart_count} file',\n '1': 'Processing %{smart_count} files'\n },\n recording: 'Recording',\n recordingLength: 'Recording length %{recording_length}',\n recordingStoppedMaxSize: 'Recording stopped because the file size is about to exceed the limit',\n recoveredAllFiles: 'We restored all files. You can now resume the upload.',\n recoveredXFiles: {\n '0': 'We could not fully recover 1 file. Please re-select it and resume the upload.',\n '1': 'We could not fully recover %{smart_count} files. Please re-select them and resume the upload.'\n },\n removeFile: 'Remove file %{file}',\n reSelect: 'Re-select',\n resetFilter: 'Reset filter',\n resume: 'Resume',\n resumeUpload: 'Resume upload',\n retry: 'Retry',\n retryUpload: 'Retry upload',\n revert: 'Revert',\n rotate: 'Rotate',\n save: 'Save',\n saveChanges: 'Save changes',\n searchImages: 'Search for images',\n selectX: {\n '0': 'Select %{smart_count}',\n '1': 'Select %{smart_count}'\n },\n sessionRestored: 'Session restored',\n signInWithGoogle: 'Sign in with Google',\n smile: 'Smile!',\n startCapturing: 'Begin screen capturing',\n startRecording: 'Begin video recording',\n stopCapturing: 'Stop screen capturing',\n stopRecording: 'Stop video recording',\n streamActive: 'Stream active',\n streamPassive: 'Stream passive',\n submitRecordedFile: 'Submit recorded file',\n takePicture: 'Take a picture',\n timedOut: 'Upload stalled for %{seconds} seconds, aborting.',\n upload: 'Upload',\n uploadComplete: 'Upload complete',\n uploadFailed: 'Upload failed',\n uploading: 'Uploading',\n uploadingXFiles: {\n '0': 'Uploading %{smart_count} file',\n '1': 'Uploading %{smart_count} files'\n },\n uploadPaused: 'Upload paused',\n uploadXFiles: {\n '0': 'Upload %{smart_count} file',\n '1': 'Upload %{smart_count} files'\n },\n uploadXNewFiles: {\n '0': 'Upload +%{smart_count} file',\n '1': 'Upload +%{smart_count} files'\n },\n xFilesSelected: {\n '0': '%{smart_count} file selected',\n '1': '%{smart_count} files selected'\n },\n xMoreFilesAdded: {\n '0': '%{smart_count} more file added',\n '1': '%{smart_count} more files added'\n },\n xTimeLeft: '%{time} left',\n youCanOnlyUploadFileTypes: 'You can only upload: %{types}',\n youCanOnlyUploadX: {\n '0': 'You can only upload %{smart_count} file',\n '1': 'You can only upload %{smart_count} files'\n },\n youHaveToAtLeastSelectX: {\n '0': 'You have to select at least %{smart_count} file',\n '1': 'You have to select at least %{smart_count} files'\n },\n zoomIn: 'Zoom in',\n zoomOut: 'Zoom out'\n};\n\nen_US.pluralize = function pluralize(count) {\n if (count === 1) {\n return 0;\n }\n\n return 1;\n};\n\nif (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {\n window.Uppy.locales.en_US = en_US;\n}\n\nmodule.exports = en_US;"],"sourceRoot":""}
|