@dkvz/img-lightbox 1.1.0 → 1.1.1
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/dist/example_preview.6877a52a.jpg +0 -0
- package/dist/index.html +45 -0
- package/dist/shadow.aa007e53.js +899 -0
- package/dist/shadow.aa007e53.js.map +1 -0
- package/dist/up_/up_/assets/example.jpg +0 -0
- package/package.json +1 -1
- package/src/shadow/img-lightbox.js +3 -1
- package/dist/img-lightbox.js +0 -204
- package/dist/img-lightbox.js.map +0 -1
- package/dist/img-lightbox.mjs +0 -193
- package/dist/img-lightbox.mjs.map +0 -1
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
// modules are defined as an array
|
|
2
|
+
// [ module function, map of requires ]
|
|
3
|
+
//
|
|
4
|
+
// map of requires is short require name -> numeric require
|
|
5
|
+
//
|
|
6
|
+
// anything defined in a previous bundle is accessed via the
|
|
7
|
+
// orig method which is the require for previous bundles
|
|
8
|
+
|
|
9
|
+
(function (
|
|
10
|
+
modules,
|
|
11
|
+
entry,
|
|
12
|
+
mainEntry,
|
|
13
|
+
parcelRequireName,
|
|
14
|
+
externals,
|
|
15
|
+
distDir,
|
|
16
|
+
publicUrl,
|
|
17
|
+
devServer
|
|
18
|
+
) {
|
|
19
|
+
/* eslint-disable no-undef */
|
|
20
|
+
var globalObject =
|
|
21
|
+
typeof globalThis !== 'undefined'
|
|
22
|
+
? globalThis
|
|
23
|
+
: typeof self !== 'undefined'
|
|
24
|
+
? self
|
|
25
|
+
: typeof window !== 'undefined'
|
|
26
|
+
? window
|
|
27
|
+
: typeof global !== 'undefined'
|
|
28
|
+
? global
|
|
29
|
+
: {};
|
|
30
|
+
/* eslint-enable no-undef */
|
|
31
|
+
|
|
32
|
+
// Save the require from previous bundle to this closure if any
|
|
33
|
+
var previousRequire =
|
|
34
|
+
typeof globalObject[parcelRequireName] === 'function' &&
|
|
35
|
+
globalObject[parcelRequireName];
|
|
36
|
+
|
|
37
|
+
var importMap = previousRequire.i || {};
|
|
38
|
+
var cache = previousRequire.cache || {};
|
|
39
|
+
// Do not use `require` to prevent Webpack from trying to bundle this call
|
|
40
|
+
var nodeRequire =
|
|
41
|
+
typeof module !== 'undefined' &&
|
|
42
|
+
typeof module.require === 'function' &&
|
|
43
|
+
module.require.bind(module);
|
|
44
|
+
|
|
45
|
+
function newRequire(name, jumped) {
|
|
46
|
+
if (!cache[name]) {
|
|
47
|
+
if (!modules[name]) {
|
|
48
|
+
if (externals[name]) {
|
|
49
|
+
return externals[name];
|
|
50
|
+
}
|
|
51
|
+
// if we cannot find the module within our internal map or
|
|
52
|
+
// cache jump to the current global require ie. the last bundle
|
|
53
|
+
// that was added to the page.
|
|
54
|
+
var currentRequire =
|
|
55
|
+
typeof globalObject[parcelRequireName] === 'function' &&
|
|
56
|
+
globalObject[parcelRequireName];
|
|
57
|
+
if (!jumped && currentRequire) {
|
|
58
|
+
return currentRequire(name, true);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// If there are other bundles on this page the require from the
|
|
62
|
+
// previous one is saved to 'previousRequire'. Repeat this as
|
|
63
|
+
// many times as there are bundles until the module is found or
|
|
64
|
+
// we exhaust the require chain.
|
|
65
|
+
if (previousRequire) {
|
|
66
|
+
return previousRequire(name, true);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Try the node require function if it exists.
|
|
70
|
+
if (nodeRequire && typeof name === 'string') {
|
|
71
|
+
return nodeRequire(name);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var err = new Error("Cannot find module '" + name + "'");
|
|
75
|
+
err.code = 'MODULE_NOT_FOUND';
|
|
76
|
+
throw err;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
localRequire.resolve = resolve;
|
|
80
|
+
localRequire.cache = {};
|
|
81
|
+
|
|
82
|
+
var module = (cache[name] = new newRequire.Module(name));
|
|
83
|
+
|
|
84
|
+
modules[name][0].call(
|
|
85
|
+
module.exports,
|
|
86
|
+
localRequire,
|
|
87
|
+
module,
|
|
88
|
+
module.exports,
|
|
89
|
+
globalObject
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return cache[name].exports;
|
|
94
|
+
|
|
95
|
+
function localRequire(x) {
|
|
96
|
+
var res = localRequire.resolve(x);
|
|
97
|
+
return res === false ? {} : newRequire(res);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function resolve(x) {
|
|
101
|
+
var id = modules[name][1][x];
|
|
102
|
+
return id != null ? id : x;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function Module(moduleName) {
|
|
107
|
+
this.id = moduleName;
|
|
108
|
+
this.bundle = newRequire;
|
|
109
|
+
this.require = nodeRequire;
|
|
110
|
+
this.exports = {};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
newRequire.isParcelRequire = true;
|
|
114
|
+
newRequire.Module = Module;
|
|
115
|
+
newRequire.modules = modules;
|
|
116
|
+
newRequire.cache = cache;
|
|
117
|
+
newRequire.parent = previousRequire;
|
|
118
|
+
newRequire.distDir = distDir;
|
|
119
|
+
newRequire.publicUrl = publicUrl;
|
|
120
|
+
newRequire.devServer = devServer;
|
|
121
|
+
newRequire.i = importMap;
|
|
122
|
+
newRequire.register = function (id, exports) {
|
|
123
|
+
modules[id] = [
|
|
124
|
+
function (require, module) {
|
|
125
|
+
module.exports = exports;
|
|
126
|
+
},
|
|
127
|
+
{},
|
|
128
|
+
];
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// Only insert newRequire.load when it is actually used.
|
|
132
|
+
// The code in this file is linted against ES5, so dynamic import is not allowed.
|
|
133
|
+
// INSERT_LOAD_HERE
|
|
134
|
+
|
|
135
|
+
Object.defineProperty(newRequire, 'root', {
|
|
136
|
+
get: function () {
|
|
137
|
+
return globalObject[parcelRequireName];
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
globalObject[parcelRequireName] = newRequire;
|
|
142
|
+
|
|
143
|
+
for (var i = 0; i < entry.length; i++) {
|
|
144
|
+
newRequire(entry[i]);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (mainEntry) {
|
|
148
|
+
// Expose entry point to Node, AMD or browser globals
|
|
149
|
+
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
|
150
|
+
var mainExports = newRequire(mainEntry);
|
|
151
|
+
|
|
152
|
+
// CommonJS
|
|
153
|
+
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
|
154
|
+
module.exports = mainExports;
|
|
155
|
+
|
|
156
|
+
// RequireJS
|
|
157
|
+
} else if (typeof define === 'function' && define.amd) {
|
|
158
|
+
define(function () {
|
|
159
|
+
return mainExports;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
})({"b5w0C":[function(require,module,exports,__globalThis) {
|
|
164
|
+
var global = arguments[3];
|
|
165
|
+
var HMR_HOST = null;
|
|
166
|
+
var HMR_PORT = null;
|
|
167
|
+
var HMR_SERVER_PORT = 1234;
|
|
168
|
+
var HMR_SECURE = false;
|
|
169
|
+
var HMR_ENV_HASH = "439701173a9199ea";
|
|
170
|
+
var HMR_USE_SSE = false;
|
|
171
|
+
module.bundle.HMR_BUNDLE_ID = "bcbe6553aa007e53";
|
|
172
|
+
"use strict";
|
|
173
|
+
/* global HMR_HOST, HMR_PORT, HMR_SERVER_PORT, HMR_ENV_HASH, HMR_SECURE, HMR_USE_SSE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
|
|
174
|
+
import type {
|
|
175
|
+
HMRAsset,
|
|
176
|
+
HMRMessage,
|
|
177
|
+
} from '@parcel/reporter-dev-server/src/HMRServer.js';
|
|
178
|
+
interface ParcelRequire {
|
|
179
|
+
(string): mixed;
|
|
180
|
+
cache: {|[string]: ParcelModule|};
|
|
181
|
+
hotData: {|[string]: mixed|};
|
|
182
|
+
Module: any;
|
|
183
|
+
parent: ?ParcelRequire;
|
|
184
|
+
isParcelRequire: true;
|
|
185
|
+
modules: {|[string]: [Function, {|[string]: string|}]|};
|
|
186
|
+
HMR_BUNDLE_ID: string;
|
|
187
|
+
root: ParcelRequire;
|
|
188
|
+
}
|
|
189
|
+
interface ParcelModule {
|
|
190
|
+
hot: {|
|
|
191
|
+
data: mixed,
|
|
192
|
+
accept(cb: (Function) => void): void,
|
|
193
|
+
dispose(cb: (mixed) => void): void,
|
|
194
|
+
// accept(deps: Array<string> | string, cb: (Function) => void): void,
|
|
195
|
+
// decline(): void,
|
|
196
|
+
_acceptCallbacks: Array<(Function) => void>,
|
|
197
|
+
_disposeCallbacks: Array<(mixed) => void>,
|
|
198
|
+
|};
|
|
199
|
+
}
|
|
200
|
+
interface ExtensionContext {
|
|
201
|
+
runtime: {|
|
|
202
|
+
reload(): void,
|
|
203
|
+
getURL(url: string): string;
|
|
204
|
+
getManifest(): {manifest_version: number, ...};
|
|
205
|
+
|};
|
|
206
|
+
}
|
|
207
|
+
declare var module: {bundle: ParcelRequire, ...};
|
|
208
|
+
declare var HMR_HOST: string;
|
|
209
|
+
declare var HMR_PORT: string;
|
|
210
|
+
declare var HMR_SERVER_PORT: string;
|
|
211
|
+
declare var HMR_ENV_HASH: string;
|
|
212
|
+
declare var HMR_SECURE: boolean;
|
|
213
|
+
declare var HMR_USE_SSE: boolean;
|
|
214
|
+
declare var chrome: ExtensionContext;
|
|
215
|
+
declare var browser: ExtensionContext;
|
|
216
|
+
declare var __parcel__import__: (string) => Promise<void>;
|
|
217
|
+
declare var __parcel__importScripts__: (string) => Promise<void>;
|
|
218
|
+
declare var globalThis: typeof self;
|
|
219
|
+
declare var ServiceWorkerGlobalScope: Object;
|
|
220
|
+
*/ var OVERLAY_ID = '__parcel__error__overlay__';
|
|
221
|
+
var OldModule = module.bundle.Module;
|
|
222
|
+
function Module(moduleName) {
|
|
223
|
+
OldModule.call(this, moduleName);
|
|
224
|
+
this.hot = {
|
|
225
|
+
data: module.bundle.hotData[moduleName],
|
|
226
|
+
_acceptCallbacks: [],
|
|
227
|
+
_disposeCallbacks: [],
|
|
228
|
+
accept: function(fn) {
|
|
229
|
+
this._acceptCallbacks.push(fn || function() {});
|
|
230
|
+
},
|
|
231
|
+
dispose: function(fn) {
|
|
232
|
+
this._disposeCallbacks.push(fn);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
module.bundle.hotData[moduleName] = undefined;
|
|
236
|
+
}
|
|
237
|
+
module.bundle.Module = Module;
|
|
238
|
+
module.bundle.hotData = {};
|
|
239
|
+
var checkedAssets /*: {|[string]: boolean|} */ , disposedAssets /*: {|[string]: boolean|} */ , assetsToDispose /*: Array<[ParcelRequire, string]> */ , assetsToAccept /*: Array<[ParcelRequire, string]> */ , bundleNotFound = false;
|
|
240
|
+
function getHostname() {
|
|
241
|
+
return HMR_HOST || (typeof location !== 'undefined' && location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');
|
|
242
|
+
}
|
|
243
|
+
function getPort() {
|
|
244
|
+
return HMR_PORT || (typeof location !== 'undefined' ? location.port : HMR_SERVER_PORT);
|
|
245
|
+
}
|
|
246
|
+
// eslint-disable-next-line no-redeclare
|
|
247
|
+
let WebSocket = globalThis.WebSocket;
|
|
248
|
+
if (!WebSocket && typeof module.bundle.root === 'function') try {
|
|
249
|
+
// eslint-disable-next-line no-global-assign
|
|
250
|
+
WebSocket = module.bundle.root('ws');
|
|
251
|
+
} catch {
|
|
252
|
+
// ignore.
|
|
253
|
+
}
|
|
254
|
+
var hostname = getHostname();
|
|
255
|
+
var port = getPort();
|
|
256
|
+
var protocol = HMR_SECURE || typeof location !== 'undefined' && location.protocol === 'https:' && ![
|
|
257
|
+
'localhost',
|
|
258
|
+
'127.0.0.1',
|
|
259
|
+
'0.0.0.0'
|
|
260
|
+
].includes(hostname) ? 'wss' : 'ws';
|
|
261
|
+
// eslint-disable-next-line no-redeclare
|
|
262
|
+
var parent = module.bundle.parent;
|
|
263
|
+
if (!parent || !parent.isParcelRequire) {
|
|
264
|
+
// Web extension context
|
|
265
|
+
var extCtx = typeof browser === 'undefined' ? typeof chrome === 'undefined' ? null : chrome : browser;
|
|
266
|
+
// Safari doesn't support sourceURL in error stacks.
|
|
267
|
+
// eval may also be disabled via CSP, so do a quick check.
|
|
268
|
+
var supportsSourceURL = false;
|
|
269
|
+
try {
|
|
270
|
+
(0, eval)('throw new Error("test"); //# sourceURL=test.js');
|
|
271
|
+
} catch (err) {
|
|
272
|
+
supportsSourceURL = err.stack.includes('test.js');
|
|
273
|
+
}
|
|
274
|
+
var ws;
|
|
275
|
+
if (HMR_USE_SSE) ws = new EventSource('/__parcel_hmr');
|
|
276
|
+
else try {
|
|
277
|
+
// If we're running in the dev server's node runner, listen for messages on the parent port.
|
|
278
|
+
let { workerData, parentPort } = module.bundle.root('node:worker_threads') /*: any*/ ;
|
|
279
|
+
if (workerData !== null && workerData !== void 0 && workerData.__parcel) {
|
|
280
|
+
parentPort.on('message', async (message)=>{
|
|
281
|
+
try {
|
|
282
|
+
await handleMessage(message);
|
|
283
|
+
parentPort.postMessage('updated');
|
|
284
|
+
} catch {
|
|
285
|
+
parentPort.postMessage('restart');
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
// After the bundle has finished running, notify the dev server that the HMR update is complete.
|
|
289
|
+
queueMicrotask(()=>parentPort.postMessage('ready'));
|
|
290
|
+
}
|
|
291
|
+
} catch {
|
|
292
|
+
if (typeof WebSocket !== 'undefined') try {
|
|
293
|
+
ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');
|
|
294
|
+
} catch (err) {
|
|
295
|
+
// Ignore cloudflare workers error.
|
|
296
|
+
if (err.message && !err.message.includes('Disallowed operation called within global scope')) console.error(err.message);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (ws) {
|
|
300
|
+
// $FlowFixMe
|
|
301
|
+
ws.onmessage = async function(event /*: {data: string, ...} */ ) {
|
|
302
|
+
var data /*: HMRMessage */ = JSON.parse(event.data);
|
|
303
|
+
await handleMessage(data);
|
|
304
|
+
};
|
|
305
|
+
if (ws instanceof WebSocket) {
|
|
306
|
+
ws.onerror = function(e) {
|
|
307
|
+
if (e.message) console.error(e.message);
|
|
308
|
+
};
|
|
309
|
+
ws.onclose = function() {
|
|
310
|
+
console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
async function handleMessage(data /*: HMRMessage */ ) {
|
|
316
|
+
checkedAssets = {} /*: {|[string]: boolean|} */ ;
|
|
317
|
+
disposedAssets = {} /*: {|[string]: boolean|} */ ;
|
|
318
|
+
assetsToAccept = [];
|
|
319
|
+
assetsToDispose = [];
|
|
320
|
+
bundleNotFound = false;
|
|
321
|
+
if (data.type === 'reload') fullReload();
|
|
322
|
+
else if (data.type === 'update') {
|
|
323
|
+
// Remove error overlay if there is one
|
|
324
|
+
if (typeof document !== 'undefined') removeErrorOverlay();
|
|
325
|
+
let assets = data.assets;
|
|
326
|
+
// Handle HMR Update
|
|
327
|
+
let handled = assets.every((asset)=>{
|
|
328
|
+
return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
|
|
329
|
+
});
|
|
330
|
+
// Dispatch a custom event in case a bundle was not found. This might mean
|
|
331
|
+
// an asset on the server changed and we should reload the page. This event
|
|
332
|
+
// gives the client an opportunity to refresh without losing state
|
|
333
|
+
// (e.g. via React Server Components). If e.preventDefault() is not called,
|
|
334
|
+
// we will trigger a full page reload.
|
|
335
|
+
if (handled && bundleNotFound && assets.some((a)=>a.envHash !== HMR_ENV_HASH) && typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') handled = !window.dispatchEvent(new CustomEvent('parcelhmrreload', {
|
|
336
|
+
cancelable: true
|
|
337
|
+
}));
|
|
338
|
+
if (handled) {
|
|
339
|
+
console.clear();
|
|
340
|
+
// Dispatch custom event so other runtimes (e.g React Refresh) are aware.
|
|
341
|
+
if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') window.dispatchEvent(new CustomEvent('parcelhmraccept'));
|
|
342
|
+
await hmrApplyUpdates(assets);
|
|
343
|
+
hmrDisposeQueue();
|
|
344
|
+
// Run accept callbacks. This will also re-execute other disposed assets in topological order.
|
|
345
|
+
let processedAssets = {};
|
|
346
|
+
for(let i = 0; i < assetsToAccept.length; i++){
|
|
347
|
+
let id = assetsToAccept[i][1];
|
|
348
|
+
if (!processedAssets[id]) {
|
|
349
|
+
hmrAccept(assetsToAccept[i][0], id);
|
|
350
|
+
processedAssets[id] = true;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
} else fullReload();
|
|
354
|
+
}
|
|
355
|
+
if (data.type === 'error') {
|
|
356
|
+
// Log parcel errors to console
|
|
357
|
+
for (let ansiDiagnostic of data.diagnostics.ansi){
|
|
358
|
+
let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
|
|
359
|
+
console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + '\n' + stack + '\n\n' + ansiDiagnostic.hints.join('\n'));
|
|
360
|
+
}
|
|
361
|
+
if (typeof document !== 'undefined') {
|
|
362
|
+
// Render the fancy html overlay
|
|
363
|
+
removeErrorOverlay();
|
|
364
|
+
var overlay = createErrorOverlay(data.diagnostics.html);
|
|
365
|
+
// $FlowFixMe
|
|
366
|
+
document.body.appendChild(overlay);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function removeErrorOverlay() {
|
|
371
|
+
var overlay = document.getElementById(OVERLAY_ID);
|
|
372
|
+
if (overlay) {
|
|
373
|
+
overlay.remove();
|
|
374
|
+
console.log("[parcel] \u2728 Error resolved");
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function createErrorOverlay(diagnostics) {
|
|
378
|
+
var overlay = document.createElement('div');
|
|
379
|
+
overlay.id = OVERLAY_ID;
|
|
380
|
+
let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
|
|
381
|
+
for (let diagnostic of diagnostics){
|
|
382
|
+
let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
|
|
383
|
+
return `${p}
|
|
384
|
+
<a href="${protocol === 'wss' ? 'https' : 'http'}://${hostname}:${port}/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
|
|
385
|
+
${frame.code}`;
|
|
386
|
+
}, '') : diagnostic.stack;
|
|
387
|
+
errorHTML += `
|
|
388
|
+
<div>
|
|
389
|
+
<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
|
|
390
|
+
\u{1F6A8} ${diagnostic.message}
|
|
391
|
+
</div>
|
|
392
|
+
<pre>${stack}</pre>
|
|
393
|
+
<div>
|
|
394
|
+
${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + '</div>').join('')}
|
|
395
|
+
</div>
|
|
396
|
+
${diagnostic.documentation ? `<div>\u{1F4DD} <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ''}
|
|
397
|
+
</div>
|
|
398
|
+
`;
|
|
399
|
+
}
|
|
400
|
+
errorHTML += '</div>';
|
|
401
|
+
overlay.innerHTML = errorHTML;
|
|
402
|
+
return overlay;
|
|
403
|
+
}
|
|
404
|
+
function fullReload() {
|
|
405
|
+
if (typeof location !== 'undefined' && 'reload' in location) location.reload();
|
|
406
|
+
else if (typeof extCtx !== 'undefined' && extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
|
|
407
|
+
else try {
|
|
408
|
+
let { workerData, parentPort } = module.bundle.root('node:worker_threads') /*: any*/ ;
|
|
409
|
+
if (workerData !== null && workerData !== void 0 && workerData.__parcel) parentPort.postMessage('restart');
|
|
410
|
+
} catch (err) {
|
|
411
|
+
console.error("[parcel] \u26A0\uFE0F An HMR update was not accepted. Please restart the process.");
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
|
|
415
|
+
var modules = bundle.modules;
|
|
416
|
+
if (!modules) return [];
|
|
417
|
+
var parents = [];
|
|
418
|
+
var k, d, dep;
|
|
419
|
+
for(k in modules)for(d in modules[k][1]){
|
|
420
|
+
dep = modules[k][1][d];
|
|
421
|
+
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
|
|
422
|
+
bundle,
|
|
423
|
+
k
|
|
424
|
+
]);
|
|
425
|
+
}
|
|
426
|
+
if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
|
|
427
|
+
return parents;
|
|
428
|
+
}
|
|
429
|
+
function updateLink(link) {
|
|
430
|
+
var href = link.getAttribute('href');
|
|
431
|
+
if (!href) return;
|
|
432
|
+
var newLink = link.cloneNode();
|
|
433
|
+
newLink.onload = function() {
|
|
434
|
+
if (link.parentNode !== null) // $FlowFixMe
|
|
435
|
+
link.parentNode.removeChild(link);
|
|
436
|
+
};
|
|
437
|
+
newLink.setAttribute('href', // $FlowFixMe
|
|
438
|
+
href.split('?')[0] + '?' + Date.now());
|
|
439
|
+
// $FlowFixMe
|
|
440
|
+
link.parentNode.insertBefore(newLink, link.nextSibling);
|
|
441
|
+
}
|
|
442
|
+
var cssTimeout = null;
|
|
443
|
+
function reloadCSS() {
|
|
444
|
+
if (cssTimeout || typeof document === 'undefined') return;
|
|
445
|
+
cssTimeout = setTimeout(function() {
|
|
446
|
+
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
|
447
|
+
for(var i = 0; i < links.length; i++){
|
|
448
|
+
// $FlowFixMe[incompatible-type]
|
|
449
|
+
var href /*: string */ = links[i].getAttribute('href');
|
|
450
|
+
var hostname = getHostname();
|
|
451
|
+
var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());
|
|
452
|
+
var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
|
|
453
|
+
if (!absolute) updateLink(links[i]);
|
|
454
|
+
}
|
|
455
|
+
cssTimeout = null;
|
|
456
|
+
}, 50);
|
|
457
|
+
}
|
|
458
|
+
function hmrDownload(asset) {
|
|
459
|
+
if (asset.type === 'js') {
|
|
460
|
+
if (typeof document !== 'undefined') {
|
|
461
|
+
let script = document.createElement('script');
|
|
462
|
+
script.src = asset.url + '?t=' + Date.now();
|
|
463
|
+
if (asset.outputFormat === 'esmodule') script.type = 'module';
|
|
464
|
+
return new Promise((resolve, reject)=>{
|
|
465
|
+
var _document$head;
|
|
466
|
+
script.onload = ()=>resolve(script);
|
|
467
|
+
script.onerror = reject;
|
|
468
|
+
(_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
|
|
469
|
+
});
|
|
470
|
+
} else if (typeof importScripts === 'function') {
|
|
471
|
+
// Worker scripts
|
|
472
|
+
if (asset.outputFormat === 'esmodule') return import(asset.url + '?t=' + Date.now());
|
|
473
|
+
else return new Promise((resolve, reject)=>{
|
|
474
|
+
try {
|
|
475
|
+
importScripts(asset.url + '?t=' + Date.now());
|
|
476
|
+
resolve();
|
|
477
|
+
} catch (err) {
|
|
478
|
+
reject(err);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
async function hmrApplyUpdates(assets) {
|
|
485
|
+
global.parcelHotUpdate = Object.create(null);
|
|
486
|
+
let scriptsToRemove;
|
|
487
|
+
try {
|
|
488
|
+
// If sourceURL comments aren't supported in eval, we need to load
|
|
489
|
+
// the update from the dev server over HTTP so that stack traces
|
|
490
|
+
// are correct in errors/logs. This is much slower than eval, so
|
|
491
|
+
// we only do it if needed (currently just Safari).
|
|
492
|
+
// https://bugs.webkit.org/show_bug.cgi?id=137297
|
|
493
|
+
// This path is also taken if a CSP disallows eval.
|
|
494
|
+
if (!supportsSourceURL) {
|
|
495
|
+
let promises = assets.map((asset)=>{
|
|
496
|
+
var _hmrDownload;
|
|
497
|
+
return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
|
|
498
|
+
// Web extension fix
|
|
499
|
+
if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3 && typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {
|
|
500
|
+
extCtx.runtime.reload();
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
throw err;
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
scriptsToRemove = await Promise.all(promises);
|
|
507
|
+
}
|
|
508
|
+
assets.forEach(function(asset) {
|
|
509
|
+
hmrApply(module.bundle.root, asset);
|
|
510
|
+
});
|
|
511
|
+
} finally{
|
|
512
|
+
delete global.parcelHotUpdate;
|
|
513
|
+
if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
|
|
514
|
+
if (script) {
|
|
515
|
+
var _document$head2;
|
|
516
|
+
(_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
function hmrApply(bundle /*: ParcelRequire */ , asset /*: HMRAsset */ ) {
|
|
522
|
+
var modules = bundle.modules;
|
|
523
|
+
if (!modules) return;
|
|
524
|
+
if (asset.type === 'css') reloadCSS();
|
|
525
|
+
else if (asset.type === 'js') {
|
|
526
|
+
let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
|
|
527
|
+
if (deps) {
|
|
528
|
+
if (modules[asset.id]) {
|
|
529
|
+
// Remove dependencies that are removed and will become orphaned.
|
|
530
|
+
// This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
|
|
531
|
+
let oldDeps = modules[asset.id][1];
|
|
532
|
+
for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
|
|
533
|
+
let id = oldDeps[dep];
|
|
534
|
+
let parents = getParents(module.bundle.root, id);
|
|
535
|
+
if (parents.length === 1) hmrDelete(module.bundle.root, id);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
|
|
539
|
+
// support for source maps is better with eval.
|
|
540
|
+
(0, eval)(asset.output);
|
|
541
|
+
// $FlowFixMe
|
|
542
|
+
let fn = global.parcelHotUpdate[asset.id];
|
|
543
|
+
modules[asset.id] = [
|
|
544
|
+
fn,
|
|
545
|
+
deps
|
|
546
|
+
];
|
|
547
|
+
}
|
|
548
|
+
// Always traverse to the parent bundle, even if we already replaced the asset in this bundle.
|
|
549
|
+
// This is required in case modules are duplicated. We need to ensure all instances have the updated code.
|
|
550
|
+
if (bundle.parent) hmrApply(bundle.parent, asset);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function hmrDelete(bundle, id) {
|
|
554
|
+
let modules = bundle.modules;
|
|
555
|
+
if (!modules) return;
|
|
556
|
+
if (modules[id]) {
|
|
557
|
+
// Collect dependencies that will become orphaned when this module is deleted.
|
|
558
|
+
let deps = modules[id][1];
|
|
559
|
+
let orphans = [];
|
|
560
|
+
for(let dep in deps){
|
|
561
|
+
let parents = getParents(module.bundle.root, deps[dep]);
|
|
562
|
+
if (parents.length === 1) orphans.push(deps[dep]);
|
|
563
|
+
}
|
|
564
|
+
// Delete the module. This must be done before deleting dependencies in case of circular dependencies.
|
|
565
|
+
delete modules[id];
|
|
566
|
+
delete bundle.cache[id];
|
|
567
|
+
// Now delete the orphans.
|
|
568
|
+
orphans.forEach((id)=>{
|
|
569
|
+
hmrDelete(module.bundle.root, id);
|
|
570
|
+
});
|
|
571
|
+
} else if (bundle.parent) hmrDelete(bundle.parent, id);
|
|
572
|
+
}
|
|
573
|
+
function hmrAcceptCheck(bundle /*: ParcelRequire */ , id /*: string */ , depsByBundle /*: ?{ [string]: { [string]: string } }*/ ) {
|
|
574
|
+
checkedAssets = {};
|
|
575
|
+
if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
|
|
576
|
+
// Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
|
|
577
|
+
let parents = getParents(module.bundle.root, id);
|
|
578
|
+
let accepted = false;
|
|
579
|
+
while(parents.length > 0){
|
|
580
|
+
let v = parents.shift();
|
|
581
|
+
let a = hmrAcceptCheckOne(v[0], v[1], null);
|
|
582
|
+
if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
|
|
583
|
+
accepted = true;
|
|
584
|
+
else if (a !== null) {
|
|
585
|
+
// Otherwise, queue the parents in the next level upward.
|
|
586
|
+
let p = getParents(module.bundle.root, v[1]);
|
|
587
|
+
if (p.length === 0) {
|
|
588
|
+
// If there are no parents, then we've reached an entry without accepting. Reload.
|
|
589
|
+
accepted = false;
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
parents.push(...p);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return accepted;
|
|
596
|
+
}
|
|
597
|
+
function hmrAcceptCheckOne(bundle /*: ParcelRequire */ , id /*: string */ , depsByBundle /*: ?{ [string]: { [string]: string } }*/ ) {
|
|
598
|
+
var modules = bundle.modules;
|
|
599
|
+
if (!modules) return;
|
|
600
|
+
if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
|
|
601
|
+
// If we reached the root bundle without finding where the asset should go,
|
|
602
|
+
// there's nothing to do. Mark as "accepted" so we don't reload the page.
|
|
603
|
+
if (!bundle.parent) {
|
|
604
|
+
bundleNotFound = true;
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
return hmrAcceptCheckOne(bundle.parent, id, depsByBundle);
|
|
608
|
+
}
|
|
609
|
+
if (checkedAssets[id]) return null;
|
|
610
|
+
checkedAssets[id] = true;
|
|
611
|
+
var cached = bundle.cache[id];
|
|
612
|
+
if (!cached) return true;
|
|
613
|
+
assetsToDispose.push([
|
|
614
|
+
bundle,
|
|
615
|
+
id
|
|
616
|
+
]);
|
|
617
|
+
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
|
|
618
|
+
assetsToAccept.push([
|
|
619
|
+
bundle,
|
|
620
|
+
id
|
|
621
|
+
]);
|
|
622
|
+
return true;
|
|
623
|
+
}
|
|
624
|
+
return false;
|
|
625
|
+
}
|
|
626
|
+
function hmrDisposeQueue() {
|
|
627
|
+
// Dispose all old assets.
|
|
628
|
+
for(let i = 0; i < assetsToDispose.length; i++){
|
|
629
|
+
let id = assetsToDispose[i][1];
|
|
630
|
+
if (!disposedAssets[id]) {
|
|
631
|
+
hmrDispose(assetsToDispose[i][0], id);
|
|
632
|
+
disposedAssets[id] = true;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
assetsToDispose = [];
|
|
636
|
+
}
|
|
637
|
+
function hmrDispose(bundle /*: ParcelRequire */ , id /*: string */ ) {
|
|
638
|
+
var cached = bundle.cache[id];
|
|
639
|
+
bundle.hotData[id] = {};
|
|
640
|
+
if (cached && cached.hot) cached.hot.data = bundle.hotData[id];
|
|
641
|
+
if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
|
|
642
|
+
cb(bundle.hotData[id]);
|
|
643
|
+
});
|
|
644
|
+
delete bundle.cache[id];
|
|
645
|
+
}
|
|
646
|
+
function hmrAccept(bundle /*: ParcelRequire */ , id /*: string */ ) {
|
|
647
|
+
// Execute the module.
|
|
648
|
+
bundle(id);
|
|
649
|
+
// Run the accept callbacks in the new version of the module.
|
|
650
|
+
var cached = bundle.cache[id];
|
|
651
|
+
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
|
|
652
|
+
let assetsToAlsoAccept = [];
|
|
653
|
+
cached.hot._acceptCallbacks.forEach(function(cb) {
|
|
654
|
+
let additionalAssets = cb(function() {
|
|
655
|
+
return getParents(module.bundle.root, id);
|
|
656
|
+
});
|
|
657
|
+
if (Array.isArray(additionalAssets) && additionalAssets.length) assetsToAlsoAccept.push(...additionalAssets);
|
|
658
|
+
});
|
|
659
|
+
if (assetsToAlsoAccept.length) {
|
|
660
|
+
let handled = assetsToAlsoAccept.every(function(a) {
|
|
661
|
+
return hmrAcceptCheck(a[0], a[1]);
|
|
662
|
+
});
|
|
663
|
+
if (!handled) return fullReload();
|
|
664
|
+
hmrDisposeQueue();
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
},{}],"c4SUz":[function(require,module,exports,__globalThis) {
|
|
670
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
671
|
+
var _imgLightbox = require("./img-lightbox");
|
|
672
|
+
var _imgLightboxDefault = parcelHelpers.interopDefault(_imgLightbox);
|
|
673
|
+
customElements.define('img-lightbox', (0, _imgLightboxDefault.default));
|
|
674
|
+
|
|
675
|
+
},{"./img-lightbox":"1Wxjk","@parcel/transformer-js/src/esmodule-helpers.js":"jnFvT"}],"1Wxjk":[function(require,module,exports,__globalThis) {
|
|
676
|
+
// const loaderSvgUrl = require('../../assets/hourglass.svg');
|
|
677
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
678
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
679
|
+
var _hourglassSvg = require("bundle-text:../../assets/hourglass.svg");
|
|
680
|
+
var _hourglassSvgDefault = parcelHelpers.interopDefault(_hourglassSvg);
|
|
681
|
+
class ImgLightbox extends HTMLElement {
|
|
682
|
+
constructor(){
|
|
683
|
+
super();
|
|
684
|
+
this.loading = false;
|
|
685
|
+
this.attachShadow({
|
|
686
|
+
mode: 'open'
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
connectedCallback() {
|
|
690
|
+
// Template is added to prototype below the
|
|
691
|
+
// class definition.
|
|
692
|
+
// It's from a template tag because it's
|
|
693
|
+
// supposed to be faster this way.
|
|
694
|
+
this.shadowRoot.appendChild(this.template.content.cloneNode(true));
|
|
695
|
+
// Get some element references from shadow DOM:
|
|
696
|
+
this.overlay = this.shadowRoot.querySelector('#overlay');
|
|
697
|
+
this.loadingOverlay = this.shadowRoot.querySelector('#loader');
|
|
698
|
+
// Add the loading SVG to that element:
|
|
699
|
+
this.loadingOverlay.innerHTML = (0, _hourglassSvgDefault.default);
|
|
700
|
+
// Component needs a tabIndex to be focusable.
|
|
701
|
+
this.tabIndex = 0;
|
|
702
|
+
// The slotted elements are actually not in
|
|
703
|
+
// the shadow DOM so we can get them like so:
|
|
704
|
+
const link = this.querySelector('a');
|
|
705
|
+
const img = this.querySelector('img');
|
|
706
|
+
if (link !== null) {
|
|
707
|
+
// Store the URL as the full image URL:
|
|
708
|
+
this.fullImage = link.getAttribute('href');
|
|
709
|
+
// Register a click event that has to
|
|
710
|
+
// prevent default:
|
|
711
|
+
//this._addListeners(link);
|
|
712
|
+
// Prevent ability to focus the link:
|
|
713
|
+
link.tabIndex = -1;
|
|
714
|
+
} else if (img !== null) this.fullImage = img.getAttribute('src');
|
|
715
|
+
this.fullImage && this._addListeners();
|
|
716
|
+
}
|
|
717
|
+
_addListeners() {
|
|
718
|
+
this.addEventListener('click', this.showLightbox.bind(this), true);
|
|
719
|
+
this.addEventListener('keydown', (e)=>{
|
|
720
|
+
// It's common to ignore anything with alt
|
|
721
|
+
// modifiers. I've copied this from Google
|
|
722
|
+
// people.
|
|
723
|
+
if (e.altKey) return;
|
|
724
|
+
// Catch enter and space:
|
|
725
|
+
switch(e.keyCode){
|
|
726
|
+
case 13:
|
|
727
|
+
case 32:
|
|
728
|
+
this.showLightbox(e);
|
|
729
|
+
default:
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
}, true);
|
|
733
|
+
}
|
|
734
|
+
showLightbox(e) {
|
|
735
|
+
// This is required so that the link element does not get
|
|
736
|
+
// followed:
|
|
737
|
+
e.preventDefault();
|
|
738
|
+
// Implement some kind of lock:
|
|
739
|
+
if (!this.loading) {
|
|
740
|
+
this.loading = true;
|
|
741
|
+
// Preload the full image.
|
|
742
|
+
// Show the spinner overlay:
|
|
743
|
+
this._showOverlay(this.loadingOverlay);
|
|
744
|
+
if (!this.img) {
|
|
745
|
+
this.img = document.createElement('img');
|
|
746
|
+
// For the moment we just do nothing on error with
|
|
747
|
+
// the link target.
|
|
748
|
+
this.img.addEventListener('error', ()=>{
|
|
749
|
+
this._hideOverlay(this.loadingOverlay);
|
|
750
|
+
this.loading = false;
|
|
751
|
+
});
|
|
752
|
+
// this.img.addEventListener('load', () => this.showImage());
|
|
753
|
+
this.img.src = this.fullImage;
|
|
754
|
+
this.img.tabIndex = 1;
|
|
755
|
+
// Prepare the events to close the overlay.
|
|
756
|
+
// I'm doing this here to light up what's
|
|
757
|
+
// happening in connectedCallback.
|
|
758
|
+
// I'm not doing a check for which key was
|
|
759
|
+
// called on purpose, but maybe I should do
|
|
760
|
+
// that alt key check?
|
|
761
|
+
[
|
|
762
|
+
'click',
|
|
763
|
+
'keydown'
|
|
764
|
+
].forEach((type)=>this.overlay.addEventListener(type, (e)=>this._hideOverlay(e.currentTarget)));
|
|
765
|
+
this.overlay.appendChild(this.img);
|
|
766
|
+
} else this.showImage();
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
showImage() {
|
|
770
|
+
this.img.style.transform = 'scale(0.1)';
|
|
771
|
+
// Hide the loading overlay:
|
|
772
|
+
this._hideOverlay(this.loadingOverlay);
|
|
773
|
+
this._showOverlay(this.overlay);
|
|
774
|
+
// Focus the overlay (requires it to have a tabIndex):
|
|
775
|
+
this.overlay.focus();
|
|
776
|
+
// Start the CSS transition:
|
|
777
|
+
this.img.style.transform = 'scale(1)';
|
|
778
|
+
// Don't forget to unlock the click event:
|
|
779
|
+
this.loading = false;
|
|
780
|
+
}
|
|
781
|
+
_showOverlay(overlay) {
|
|
782
|
+
overlay.style.display = 'flex';
|
|
783
|
+
}
|
|
784
|
+
_hideOverlay(overlay) {
|
|
785
|
+
overlay.style.display = '';
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
// I'm using a true template tag because the Chrome
|
|
789
|
+
// team says it's faster. The template tag has
|
|
790
|
+
// better browser support than web components anyway.
|
|
791
|
+
// The strange comment here is needed for syntax
|
|
792
|
+
// highlighting with a VS Code extension I'm using.
|
|
793
|
+
const tpl = document.createElement('template');
|
|
794
|
+
tpl.innerHTML = /*template*/ `
|
|
795
|
+
<style>
|
|
796
|
+
:host {
|
|
797
|
+
display: inline-block;
|
|
798
|
+
cursor: pointer;
|
|
799
|
+
position: relative;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
:host([hidden]) {
|
|
803
|
+
display: none;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
:host(:focus), :host(:active) {
|
|
807
|
+
outline: 2px solid #77b;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
#loader {
|
|
811
|
+
position: absolute;
|
|
812
|
+
z-index: 1;
|
|
813
|
+
top: 0;
|
|
814
|
+
left: 0;
|
|
815
|
+
width: 100%;
|
|
816
|
+
height: 100%;
|
|
817
|
+
background-color: rgba(0,0,0,.2);
|
|
818
|
+
display: none;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
#overlay {
|
|
824
|
+
position: fixed;
|
|
825
|
+
top: 0;
|
|
826
|
+
left: 0;
|
|
827
|
+
bottom: 0;
|
|
828
|
+
right: 0;
|
|
829
|
+
overflow: hidden;
|
|
830
|
+
z-index: 999;
|
|
831
|
+
background-color: rgba(0,0,0,.5);
|
|
832
|
+
display: none;
|
|
833
|
+
align-items: center;
|
|
834
|
+
justify-content: center;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
#loader svg {
|
|
838
|
+
height: auto;
|
|
839
|
+
max-height: 99%;
|
|
840
|
+
max-width: 50%;
|
|
841
|
+
opacity: 0.6;
|
|
842
|
+
animation: lightbox-loader 2s infinite;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
#overlay img {
|
|
846
|
+
max-width: 100%;
|
|
847
|
+
max-height: 100%;
|
|
848
|
+
transition: transform 0.8s;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
@keyframes lightbox-loader {
|
|
852
|
+
0% {transform: rotate(0deg);}
|
|
853
|
+
100% {transform: rotate(360deg);}
|
|
854
|
+
}
|
|
855
|
+
</style>
|
|
856
|
+
<slot></slot>
|
|
857
|
+
<div id="overlay" tabindex="0"></div>
|
|
858
|
+
<div id="loader">
|
|
859
|
+
</div>
|
|
860
|
+
`;
|
|
861
|
+
ImgLightbox.prototype.template = tpl;
|
|
862
|
+
exports.default = ImgLightbox;
|
|
863
|
+
|
|
864
|
+
},{"bundle-text:../../assets/hourglass.svg":"5jkAf","@parcel/transformer-js/src/esmodule-helpers.js":"jnFvT"}],"5jkAf":[function(require,module,exports,__globalThis) {
|
|
865
|
+
module.exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" enable-background=\"new 0 0 64 64\" version=\"1.1\" viewBox=\"0 0 64 64\" xml:space=\"preserve\"><metadata><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/><dc:title/></cc:Work></rdf:RDF></metadata>\n<g>\n\t\t<circle class=\"st0\" cx=\"32\" cy=\"32\" r=\"32\"/>\n\t</g><g class=\"st1\" opacity=\".2\">\n\t\t<path class=\"st2\" d=\"m46 50h-2v-4c0-4.5-3-7.4-3-7.4s-3-2.8-3.9-3.7 0-1.8 0-1.8 1.3-1.3 4.2-4c2.8-2.7 2.7-6.7 2.7-6.7v-5.1l-12-1-12 1v5.1s-0.1 3.9 2.7 6.7c2.8 2.7 4.2 4 4.2 4s0.9 0.9 0 1.8-3.9 3.7-3.9 3.7-3 2.8-3 7.4v4h-2c-1.1 0-2 0.9-2 2s0.9 2 2 2h28c1.1 0 2-0.9 2-2s-0.9-2-2-2z\" fill=\"#231f20\"/>\n\t</g>\n\t\t<path class=\"st3\" d=\"m41 36.6s-3-2.8-3.9-3.7 0-1.8 0-1.8 1.3-1.3 4.2-4c2.8-2.7 2.7-6.7 2.7-6.7v-5.1l-12-1-12 1v5.1s-0.1 3.9 2.7 6.7c2.8 2.7 4.2 4 4.2 4s0.9 0.9 0 1.8-3.9 3.7-3.9 3.7-3 2.8-3 7.4v5.1h24v-5.1c0-4.5-3-7.4-3-7.4z\" fill=\"#fff\"/>\n\t\n\t\t<path class=\"st4\" d=\"m31 43v-11c0-2.1-1-3.4-1.3-3.7l-4.2-4c-1.5-1.4-1.5-3.7-1.5-3.7h16s0 2.3-1.5 3.7l-4.2 4c-0.4 0.3-1.3 1.6-1.3 3.7v11z\"/>\n\t<g class=\"st5\" opacity=\".3\">\n\t\t<path class=\"st2\" d=\"m48 16c0 1.1-0.9 2-2 2h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2h28c1.1 0 2 0.9 2 2z\" fill=\"#231f20\"/>\n\t</g><g fill=\"#fff\">\n\t\t<path class=\"st6\" d=\"m48 14c0 1.1-0.9 2-2 2h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2h28c1.1 0 2 0.9 2 2z\" fill=\"#fff\"/>\n\t</g><g fill=\"#fff\">\n\t\t<path class=\"st6\" d=\"m48 50c0 1.1-0.9 2-2 2h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2h28c1.1 0 2 0.9 2 2z\" fill=\"#fff\"/>\n\t</g><g>\n\t\t<polygon class=\"st4\" points=\"23 48 23 48 32 40 41 48\"/>\n\t</g>\n\n</svg>";
|
|
866
|
+
|
|
867
|
+
},{}],"jnFvT":[function(require,module,exports,__globalThis) {
|
|
868
|
+
exports.interopDefault = function(a) {
|
|
869
|
+
return a && a.__esModule ? a : {
|
|
870
|
+
default: a
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
exports.defineInteropFlag = function(a) {
|
|
874
|
+
Object.defineProperty(a, '__esModule', {
|
|
875
|
+
value: true
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
exports.exportAll = function(source, dest) {
|
|
879
|
+
Object.keys(source).forEach(function(key) {
|
|
880
|
+
if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) return;
|
|
881
|
+
Object.defineProperty(dest, key, {
|
|
882
|
+
enumerable: true,
|
|
883
|
+
get: function() {
|
|
884
|
+
return source[key];
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
});
|
|
888
|
+
return dest;
|
|
889
|
+
};
|
|
890
|
+
exports.export = function(dest, destName, get) {
|
|
891
|
+
Object.defineProperty(dest, destName, {
|
|
892
|
+
enumerable: true,
|
|
893
|
+
get: get
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
},{}]},["b5w0C","c4SUz"], "c4SUz", "parcelRequire2960", {})
|
|
898
|
+
|
|
899
|
+
//# sourceMappingURL=shadow.aa007e53.js.map
|