1const l = 2 'function' === typeof Object.defineProperties 3 ? Object.defineProperty 4 : function (t, i, e) { 5 t != Array.prototype && 6 t != Object.prototype && 7 (t[i] = e.value); 8 }, 9 n = 10 'undefined' !== typeof window && window === this 11 ? this 12 : 'undefined' !== typeof global && null != global 13 ? global 14 : this; 15function p() { 16 (p = function () {}), n.Symbol || (n.Symbol = q); 17} 18let r = 0; 19function q(t) { 20 return 'jscomp_symbol_' + (t || '') + r++; 21} 22for (var t = n, u = ['Object', 'assign'], v = 0; v < u.length - 1; v++) { 23 const x = u[v]; 24 x in t || (t[x] = {}), (t = t[x]); 25} 26const A = u[u.length - 1], 27 B = t[A], 28 C = 29 B || 30 function (t, i) { 31 for (let e = 1; e < arguments.length; e++) { 32 const n = arguments[e]; 33 if (n) 34 for (const o in n) 35 Object.prototype.hasOwnProperty.call(n, o) && 36 (t[o] = n[o]); 37 } 38 return t; 39 }; 40C != B && null != C && l(t, A, { configurable: !0, writable: !0, value: C }), 41 (function (t) { 42 function i(n) { 43 if (e[n]) return e[n].K; 44 const o = (e[n] = { la: n, ga: !1, K: {} }); 45 return t[n].call(o.K, o, o.K, i), (o.ga = !0), o.K; 46 } 47 var e = {}; 48 (i.m = t), 49 (i.f = e), 50 (i.a = function (t, e, n) { 51 i.b(t, e) || 52 Object.defineProperty(t, e, { enumerable: !0, get: n }); 53 }), 54 (i.r = function (t) { 55 p(), 56 p(), 57 'undefined' !== typeof Symbol && 58 Symbol.toStringTag && 59 (p(), 60 Object.defineProperty(t, Symbol.toStringTag, { 61 value: 'Module', 62 })), 63 Object.defineProperty(t, '__esModule', { value: !0 }); 64 }), 65 (i.l = function (t, e) { 66 if ((1 & e && (t = i(t)), 8 & e)) return t; 67 if (4 & e && 'object' === typeof t && t && t.da) return t; 68 const n = Object.create(null); 69 if ( 70 (i.r(n), 71 Object.defineProperty(n, 'default', { 72 enumerable: !0, 73 value: t, 74 }), 75 2 & e && 'string' !== typeof t) 76 ) 77 for (const o in t) 78 i.a( 79 n, 80 o, 81 function (i) { 82 return t[i]; 83 }.bind(null, o) 84 ); 85 return n; 86 }), 87 (i.g = function (t) { 88 const e = 89 t && t.da 90 ? function () { 91 return t.default; 92 } 93 : function () { 94 return t; 95 }; 96 return i.a(e, 'a', e), e; 97 }), 98 (i.b = function (t, i) { 99 return Object.prototype.hasOwnProperty.call(t, i); 100 }), 101 (i.h = ''), 102 i((i.u = 0)); 103 })([ 104 function (t, i, e) { 105 function n(t, i, e) { 106 (i = void 0 === i ? {} : i), 107 (e = void 0 === e ? {} : e), 108 (this.g = Object.assign({}, { ka: !0 }, i)), 109 (this.a = t), 110 (this.b = e), 111 (this.b._gallery = this), 112 (this.b._arrowNavigation = this.g.arrowNavigation), 113 this.h(); 114 } 115 function o(t, i) { 116 if ( 117 ((i = void 0 === i ? {} : i), 118 (this.j = this.j.bind(this)), 119 (this.open = this.open.bind(this)), 120 (this.close = this.close.bind(this)), 121 (this.g = this.g.bind(this)), 122 (this.h = !1), 123 (this.b = t), 124 !h(this.b)) 125 ) 126 throw new TypeError( 127 '`new Luminous` requires a DOM element as its first argument.' 128 ); 129 (t = document), 130 'getRootNode' in this.b && (t = this.b.getRootNode()), 131 (t = 132 i.appendToNode || (t === document ? document.body : t)), 133 (this.a = { 134 B: i.namespace || null, 135 v: i.sourceAttribute || 'href', 136 caption: i.caption || null, 137 $: i.openTrigger || 'click', 138 s: i.closeTrigger || 'click', 139 Z: i.closeWithEscape || !0, 140 Y: i.closeOnScroll || !1, 141 w: null == i.showCloseButton || i.showCloseButton, 142 ea: t, 143 X: i.appendToSelector || null, 144 ia: i.onOpen || null, 145 D: i.onClose || null, 146 A: i.includeImgixJSClass || !1, 147 fa: i.injectBaseStyles || !0, 148 i: i._gallery || null, 149 o: i._arrowNavigation || null, 150 }), 151 (i = document.body), 152 t && 'getRootNode' in t && (i = t.getRootNode()), 153 this.a.fa && 154 ((i && i !== document) || (i = document.head), 155 i.querySelector('.lum-base-styles') || 156 (((t = document.createElement('style')).type = 157 'text/css'), 158 t.classList.add('lum-base-styles'), 159 t.appendChild( 160 document.createTextNode( 161 '@keyframes lum-noop{0%{zoom:1}}.lum-lightbox{position:fixed;display:none;top:0;right:0;bottom:0;left:0}.lum-lightbox.lum-open{display:block}.lum-lightbox.lum-closing,.lum-lightbox.lum-opening{animation:lum-noop 1ms}.lum-lightbox-inner{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.lum-lightbox-loader{display:none}.lum-lightbox-inner img{max-width:100%;max-height:100%}.lum-lightbox-image-wrapper{vertical-align:middle;display:table-cell;text-align:center}' 162 ) 163 ), 164 i.insertBefore(t, i.firstChild))), 165 this.m(), 166 this.l(); 167 } 168 function s(t) { 169 (t = void 0 === t ? {} : t), 170 (this.g = this.g.bind(this)), 171 (this.I = this.I.bind(this)), 172 (this.J = this.J.bind(this)), 173 (this.L = this.L.bind(this)), 174 (this.u = this.u.bind(this)), 175 (this.N = this.N.bind(this)), 176 (this.M = this.M.bind(this)); 177 const i = t, 178 e = void 0 === i.B ? null : i.B, 179 n = void 0 === i.C ? l() : i.C, 180 o = void 0 === i.F ? l() : i.F, 181 s = void 0 === i.v ? l() : i.v; 182 if ( 183 ((this.a = { 184 B: e, 185 C: n, 186 F: o, 187 v: s, 188 caption: void 0 === i.caption ? null : i.caption, 189 A: void 0 !== i.A && i.A, 190 i: void 0 === i.i ? null : i.i, 191 o: void 0 === i.o ? null : i.o, 192 w: void 0 === i.w || i.w, 193 D: t.D, 194 s: void 0 === i.s ? 'click' : i.s, 195 }), 196 !h(this.a.C)) 197 ) 198 throw new TypeError( 199 '`new Lightbox` requires a DOM element passed as `parentEl`.' 200 ); 201 (this.h = this.a.F), 202 (this.R = this.b('open')), 203 (this.W = this.b('opening')), 204 (this.T = this.b('closing')), 205 (this.U = this.V = !1); 206 } 207 function h(t) { 208 return ( 209 !!(p && t instanceof ShadowRoot) || 210 (c 211 ? t instanceof HTMLElement 212 : t && 213 'object' === typeof t && 214 null !== t && 215 1 === t.nodeType && 216 'string' === typeof t.nodeName) 217 ); 218 } 219 function r(t, i) {
220 i.forEach(function (i) { 221 t.classList.add(i); 222 }); 223 } 224 function a(t, i) { 225 i.forEach(function (i) { 226 t.classList.remove(i); 227 }); 228 } 229 function l() { 230 throw Error('Missing parameter'); 231 } 232 e.r(i); 233 var c = 'object' === typeof HTMLElement, 234 p = 'undefined' !== typeof ShadowRoot, 235 u = 236 'undefined' !== typeof document && 237 'animation' in document.createElement('div').style; 238 (s.prototype.M = function (t) { 239 t && 240 'function' === typeof t.preventDefault && 241 t.preventDefault(), 242 (t = this.a.D) && 'function' === typeof t && t(); 243 }), 244 (s.prototype.aa = function () { 245 this.c.addEventListener(this.a.s, this.M), 246 this.G && this.G.addEventListener('click', this.M); 247 }), 248 (s.prototype.b = function (t) { 249 const i = ['lum-' + t], 250 e = this.a.B; 251 return e && i.push(e + '-' + t), i; 252 }), 253 (s.prototype.ba = function () { 254 (this.c = document.createElement('div')), 255 r(this.c, this.b('lightbox')), 256 (this.f = document.createElement('div')), 257 r(this.f, this.b('lightbox-inner')), 258 this.c.appendChild(this.f); 259 let t = document.createElement('div'); 260 r(t, this.b('lightbox-loader')), 261 this.f.appendChild(t), 262 (this.H = document.createElement('div')), 263 r(this.H, this.b('lightbox-image-wrapper')), 264 this.f.appendChild(this.H), 265 r( 266 (t = document.createElement('span')), 267 this.b('lightbox-position-helper') 268 ), 269 this.H.appendChild(t), 270 (this.m = document.createElement('img')), 271 r(this.m, this.b('img')), 272 t.appendChild(this.m), 273 (this.l = document.createElement('p')), 274 r(this.l, this.b('lightbox-caption')), 275 t.appendChild(this.l), 276 this.a.w && 277 ((this.G = document.createElement('div')), 278 r(this.G, this.b('close-button')), 279 this.c.appendChild(this.G)), 280 this.a.i && this.ca(), 281 this.a.C.appendChild(this.c), 282 this.P(), 283 this.O(), 284 this.a.A && this.m.classList.add('imgix-fluid'); 285 }), 286 (s.prototype.ca = function () { 287 this.S('previous', this.J), this.S('next', this.I); 288 }), 289 (s.prototype.S = function (t, i) { 290 const e = document.createElement('button'); 291 (this[t + 'Button'] = e), 292 (e.innerText = t), 293 r(e, this.b(t + '-button')), 294 r(e, this.b('gallery-button')), 295 this.f.appendChild(e), 296 e.addEventListener( 297 'click', 298 function (t) { 299 t.stopPropagation(), i(); 300 }, 301 !1 302 ); 303 }), 304 (s.prototype.g = function () { 305 const t = this.H.style; 306 (t.width = this.f.clientWidth + 'px'), 307 (t.maxWidth = this.f.clientWidth + 'px'), 308 (t.height = 309 this.f.clientHeight - this.l.clientHeight + 'px'), 310 (t.maxHeight = 311 this.f.clientHeight - this.l.clientHeight + 'px'); 312 }), 313 (s.prototype.O = function () { 314 let t = typeof this.a.caption, 315 i = ''; 316 'string' === t 317 ? (i = this.a.caption) 318 : 'function' === t && (i = this.a.caption(this.h)), 319 (this.l.innerHTML = i); 320 }), 321 (s.prototype.P = function () { 322 const t = this, 323 i = this.h.getAttribute(this.a.v); 324 if (!i) 325 throw Error( 326 'No image URL was found in the ' + 327 this.a.v + 328 ' attribute of the trigger.' 329 ); 330 const e = this.b('loading'); 331 this.V || r(this.c, e), 332 (this.m.onload = function () { 333 a(t.c, e), (t.V = !0); 334 }), 335 this.m.setAttribute('src', i); 336 }), 337 (s.prototype.N = function (t) { 338 37 == t.keyCode ? this.J() : 39 == t.keyCode && this.I(); 339 }), 340 (s.prototype.I = function () { 341 this.a.i && 342 ((this.h = this.a.i.ha(this.h)), 343 this.P(), 344 this.O(), 345 this.g()); 346 }), 347 (s.prototype.J = function () { 348 this.a.i && 349 ((this.h = this.a.i.ja(this.h)), 350 this.P(), 351 this.O(), 352 this.g()); 353 }), 354 (s.prototype.open = function () { 355 this.U || (this.ba(), this.aa(), (this.U = !0)), 356 (this.h = this.a.F), 357 this.P(), 358 this.O(), 359 r(this.c, this.R), 360 this.g(), 361 window.addEventListener('resize', this.g, !1), 362 this.a.o && 363 window.addEventListener('keydown', this.N, !1), 364 u && 365 (this.c.addEventListener( 366 'animationend', 367 this.L, 368 !1 369 ), 370 r(this.c, this.W)); 371 }), 372 (s.prototype.close = function () { 373 window.removeEventListener('resize', this.g, !1), 374 this.a.o && 375 window.removeEventListener('keydown', this.N, !1), 376 u 377 ? (this.c.addEventListener( 378 'animationend', 379 this.u, 380 !1 381 ), 382 r(this.c, this.T)) 383 : a(this.c, this.R); 384 }), 385 (s.prototype.L = function () { 386 this.c.removeEventListener('animationend', this.L, !1), 387 a(this.c, this.W); 388 }), 389 (s.prototype.u = function () { 390 this.c.removeEventListener('animationend', this.u, !1), 391 a(this.c, this.R), 392 a(this.c, this.T); 393 }), 394 (s.prototype.j = function () { 395 this.c && this.a.C.removeChild(this.c); 396 }),
397 (o.prototype.open = function (t) { 398 t && 399 'function' === typeof t.preventDefault && 400 t.preventDefault(), 401 this.f.open(), 402 this.a.Y && 403 window.addEventListener('scroll', this.close, !1), 404 (t = this.a.ia) && 'function' === typeof t && t(), 405 (this.h = !0); 406 }), 407 (o.prototype.close = function () { 408 this.a.Y && 409 window.removeEventListener('scroll', this.close, !1), 410 this.f.close(); 411 const t = this.a.D; 412 t && 'function' === typeof t && t(), (this.h = !1); 413 }), 414 (o.prototype.m = function () { 415 let t = this.a.ea; 416 this.a.X && (t = document.querySelector(this.a.X)), 417 (this.f = new s({ 418 B: this.a.B, 419 C: t, 420 F: this.b, 421 v: this.a.v, 422 caption: this.a.caption, 423 A: this.a.A, 424 w: this.a.w, 425 i: this.a.i, 426 o: this.a.o, 427 s: this.a.s, 428 D: this.close, 429 })); 430 }), 431 (o.prototype.l = function () { 432 this.b.addEventListener(this.a.$, this.open, !1), 433 this.a.Z && 434 window.addEventListener('keyup', this.g, !1); 435 }), 436 (o.prototype.u = function () { 437 this.b.removeEventListener(this.a.$, this.open, !1), 438 this.f.c && 439 this.f.c.removeEventListener( 440 this.a.s, 441 this.close, 442 !1 443 ), 444 this.a.Z && 445 window.removeEventListener('keyup', this.g, !1); 446 }), 447 (o.prototype.g = function (t) { 448 this.h && 27 === t.keyCode && this.close(); 449 }), 450 (o.prototype.j = function () { 451 this.u(), this.f.j(); 452 }), 453 (o.prototype.open = o.prototype.open),
454 (o.prototype.close = o.prototype.close), 455 (o.prototype.destroy = o.prototype.j), 456 (n.prototype.h = function () { 457 this.f = []; 458 for (let t = this.a.length, i = 0; i < t; i++) { 459 const e = new o(this.a[i], this.b); 460 this.f.push(e); 461 } 462 }), 463 (n.prototype.ha = function (t) { 464 return (t = Array.prototype.indexOf.call(this.a, t) + 1) >= 465 this.a.length 466 ? this.a[0] 467 : this.a[t]; 468 }), 469 (n.prototype.ja = function (t) { 470 return 0 > (t = Array.prototype.indexOf.call(this.a, t) - 1) 471 ? this.a[this.a.length - 1] 472 : this.a[t]; 473 }), 474 (n.prototype.j = function () { 475 this.f.forEach(function (t) { 476 return t.j(); 477 }); 478 }), 479 (n.prototype.destroy = n.prototype.j), 480 (window.LuminousGallery = n), 481 (window.Luminous = o); 482 }, 483 ]); 484//# sourceMappingURL=luminous.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.