/* Cached on Sat, 27 Apr 2024 13:08:55 */ LightBox = (function($) { function LightBox(options) { this.options = options || {}; var defaultOptions = this.__proto__.options; for (var prop in defaultOptions) if (defaultOptions.hasOwnProperty(prop)) { if (!this.options.hasOwnProperty(prop)) { this.options[prop] = defaultOptions[prop]; } } } LightBox.prototype.id = null; LightBox.prototype.options = { theme: '', title: '', content: '', footerContent: '', width: '300px', removeOnClose: false }; LightBox.prototype.show = function() { var _this = this; if (this.id != null) { var box = $('[data-lightbox-id=' + this.id + ']').fadeIn(150); if (!!box.length) { return box; } } this.id = (new Date).getSeconds().toString() + ($('[data-lightbox-id]').length + 1).toString(); var wrapper = $('
') .append( $('
') .text(this.options.title) .prepend($('').text(window.intl.close + ' [x]')) ) .append( $('
').append(this.options.content) ) .width(this.options.width); if (this.options.footerContent) { wrapper.append($('