<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(function($) {
	'use strict';

	// Cookie
	var BBCookie = function(name) {
		this.init(name);
	};

	BBCookie.prototype = {
		init: function(name) {
			this.name = name;
		},
		set: function(vars) {
			var data = this.getCookie();

			data = $.extend(true, data, vars);
			$.cookie(this.name, JSON.stringify(data), {
				expires: 365,
				path: '/',
			});
		},
		get: function(path) {
			var parts = path.split('/'),
				buffer = this.getCookie();

			$.each(parts, function(i, v) {
				if (buffer &amp;&amp; typeof buffer[v] !== 'undefined') {
					buffer = buffer[v];
				} else {
					buffer = undefined;
					return false;
				}
			});

			return buffer;
		},
		getCookie: function() {
			var cookie = $.cookie(this.name);
			try {
				cookie = $.parseJSON(cookie);
				return cookie;
			} catch (e) {}

			return {};
		},
	};

	var C2SCookie = new BBCookie('c2s_config');

	// Menu
	$(function() {
		var $menu = $('#menu-main-menu'),
			$ddAnchors = $menu.find('a.dropdown-toggle'),
			$ddLis = $ddAnchors.closest('li');

		$ddLis
			.filter(function() {
				return $(this).parent($menu).length;
			})
			.find('&gt; a')
			.click(function() {
				var href = $(this).prop('href');
				if (href) {
					window.location.href = href;
				}
			});

		$ddLis.each(function() {
			var $li = $(this);

			$li.closest('li').on({
				mouseenter: function() {
					var timer = $li.data('outTimer');
					if (timer) {
						clearTimeout(timer);
					}

					var thisLi = this;

					$ddLis
						.filter(function() {
							return !$(this).find(thisLi).length;
						})
						.removeClass('open');

					$li.addClass('open');
				},
				mouseleave: function() {
					$li.data(
						'outTimer',
						setTimeout(function() {
							$li.removeClass('open');
						}, 300)
					);
				},
			});
		});
	});

	// Ask expert sidebar
	$(function() {
		var $askAnExpert = $('#ask-an-expert'),
			hide = C2SCookie.get('hidePopups/askAnExpert');

		if (!hide) {
			setTimeout(function() {
				$askAnExpert.removeClass('collapsed');
			}, 2000);
		}

		$askAnExpert.find('.close-sidebar').click(function() {
			C2SCookie.set({
				hidePopups: {
					askAnExpert: true,
				},
			});
			$askAnExpert.toggleClass('collapsed');
		});
	});

	// Speech Bubbles
	$(function() {
		$('.speech-bubble').each(function() {
			var $bubble = $(this),
				$target = $($bubble.data('scroll-target')),
				bubbleId = $bubble.prop('id'),
				bubbleHideCookie = C2SCookie.get('hidePopups/' + bubbleId);

			if (bubbleHideCookie || !$target.length) {
				$bubble.remove();
			}

			$(window).on('scroll', function() {
				$bubble.toggleClass('visible', $target.visible(true));
			});

			$bubble.find('.close').click(function() {
				var data = {
					hidePopups: {},
				};
				data.hidePopups[bubbleId] = true;

				C2SCookie.set(data);
				$bubble.remove();
			});
		});

		$(window).trigger('scroll');
	});

	// Top Search Bar
	$(function() {
		var $topSearch = $('#top-search'),
			$topSearchBtn = $('#top-search-btn'),
			$topSearchCtrl = $topSearch.find('.form-control');

		$topSearchBtn.click(function() {
			$topSearch.toggleClass('expanded');

			if ($topSearch.hasClass('expanded')) {
				$topSearchCtrl.focus();
			}
		});

		$topSearchCtrl.on('blur', function() {
			if (!$(this).val()) {
				$topSearch.removeClass('expanded');
			}
		});
	});

	// HP Video
	$(function() {
		var $knowIn90 = $('#know-in-90'),
			$knowIn90iFrame = $('.know-in-90-iframe')
				.find('iframe')
				.addClass('clicked');
		$knowIn90.click(function() {
			var src = $knowIn90iFrame.prop('src');
			src += '?autoplay=true';

			$(this).addClass('clicked');
			$knowIn90iFrame.prop('src', src);
			setTimeout(function() {
				$knowIn90iFrame.removeClass('inactive');
			}, 200);
		});
	});

	// Sidebar Login Panel
	$(function() {
		$('.sidebar-login .login-btn').click(function() {
			$(this)
				.next('.login-form')
				.stop(true, false)
				.slideToggle(200);
		});
		$('.related-assets .login-btn').click(function() {
			$(this)
				.next('.login-form')
				.stop(true, false)
				.slideToggle(200);
		});
	});

	// List Reduce
	$(function() {
		$('.list-reduce').each(function() {
			var $list = $(this),
				$items = $list.find('&gt; li');

			if ($items.length &lt; 8) {
				return true;
			}

			var $select = $('&lt;select /&gt;', {
					class: 'form-control',
				}),
				$options = $items
					.map(function() {
						return (
							'&lt;option ' +
							($(this).hasClass('active') ? 'selected="selected"' : '') +
							' value="' +
							$(this)
								.find('&gt; a')
								.prop('href') +
							'"&gt;' +
							$(this).text() +
							'&lt;/option&gt;'
						);
					})
					.get();

			$list.hide();
			$list.after($select);
			$select
				.html(
					'&lt;option&gt;Select a ' + $list.prev('h4').text() + '&lt;/option&gt;' + $options.join('')
				)
				.on('change', function() {
					window.location = $(this).val();
				});
		});
	});

	// Curtain
	$(window).load(function() {
		$('#curtain').addClass('loaded');
	});

	//Masonry
	$(function() {
		if (typeof jQuery.fn.masonry !== 'undefined') {
			var masonries = ['.masonry'];

			$.each(masonries, function(name, selector) {
				var $mas = $(selector).masonry();
				$mas.imagesLoaded().progress(function() {
					$mas.masonry('layout');
				});
			});
		}
	});

	//Slick
	$.fn.bbInitSlick = function() {
		return this.each(function() {
			var $this = $(this);
			var config = $this.data('slick-config') || {};

			var options = $.extend(
				{
					infinite: true,
					slidesToShow: 1,
					slidesToScroll: 1,
					adaptiveHeight: true,
					lazyLoad: 'ondemand',
				},
				config
			);

			if ($this.hasClass('slick-initialized')) {
				$this.slick('unslick');
			}

			$this.slick(options);
		});
	};

	$(function() {
		$('.bb-slick-slider').bbInitSlick();
	});

	$(window).on('load', function() {
		$('.bb-slick-slider').bbInitSlick();
	});

	//Fancybox
	$(function() {
		$('#create-post, #company-posts, #update-company, #update-profile, #my-tickets').click(
			function(e) {
				e.preventDefault();
				var href = $(this).prop('href'),
					content = null;

				$.fancybox({
					padding: 0,
					width: 800,
					height: '80%',
					autoSize: false,
					href: href,
					type: 'iframe',
				});
			}
		);

		$('.fancybox').fancybox();
	});

	// Affix
	$(function() {
		$('.affix-me').each(function() {
			var $this = $(this),
				offsetTop = $this.offset().top,
				$row = $this.closest('.row');

			if ($row.height() &lt; $this.height() * 2) {
				return true;
			}

			$this.width(function(_, v) {
				return v;
			});

			$this.affix({
				offset: {
					top: offsetTop - 20,
					bottom: $('#colophon').outerHeight() + 240,
				},
			});
		});
	});

	// Affix Vacancy
	$(function() {
		$('.affix-me-vv').each(function() {
			var $this = $(this),
				offsetTop = $this.offset().top,
				$row = $this.closest('.row');

			if ($row.height() &lt; $this.height() * 2) {
				return true;
			}

			$this.width(function(_, v) {
				return v;
			});

			$this.affix({
				offset: {
					top: offsetTop - 20,
					bottom: $('#colophon').outerHeight() + 425,
				},
			});
		});
	});

	$(window).on('load', function() {
		var myLazyLoad = new LazyLoad({
			elements_selector: '.lazy',
			threshold: 0,
		});
	});

	if ($.fn.datepicker) {
		$(function() {
			$('.brace-datepicker').datepicker({
				dateFormat: 'dd/mm/yy',
			});
		});
	}

	$(function() {
		var $hint = $('&lt;p /&gt;', {
				class: 'buy-tickets-hint',
				text: 'Change the quantity of your desired ticket above in order to add to cart.',
			}).hide(),
			$buyTickets = $('#buy-tickets'),
			$qtys = $buyTickets.find('input.qty'),
			$footer = $buyTickets.find('td.woocommerce.add-to-cart'),
			$addToCart = $footer
				.find('.tribe-button')
				.addClass('btn btn-primary')
				.before($hint);

		var toggleAbility = function() {
			var totalQty = $qtys
				.map(function() {
					return parseInt($(this).val(), 10);
				})
				.get()
				.reduce(function(prev, current) {
					return prev + current;
				}, 0);

			if (totalQty &lt;= 0) {
				$addToCart.prop('disabled', true);
				$hint.show();
			} else {
				$addToCart.prop('disabled', false);
				$hint.hide();
			}
		};

		toggleAbility();
		$qtys.on('change', toggleAbility);
	});
})(jQuery);
</pre></body></html>