(()=>{var t=t||{};!function(t,e){"use strict";const s=t(document);e.init=function(t){e.event_listeners()},e.selectors=[".tribe-tickets__item__details__summary--more",".tribe-tickets__item__details__summary--less"],e.event_listeners=function(){s.on("keyup",e.selectors,(function(t){13===t.keyCode&&e.toggle_open(t.target)})),s.on("click",e.selectors,(function(t){e.toggle_open(t.target)}))},e.toggle_open=function(e){if(!e)return;const s=t(e);if(!s.hasClass("tribe-tickets__item__details__summary--more")&&!s.hasClass("tribe-tickets__item__details__summary--less"))return;const i=s.closest(".tribe-tickets__item__details__summary"),n=t("#"+s.attr("aria-controls"));if(!n||!i)return;event.preventDefault();const _=!i.hasClass("tribe__details--open");i.toggleClass("tribe__details--open",_),n.toggleClass("tribe__details--open",_)},t((function(){const t=document.querySelectorAll(".tribe-tickets__item__details__summary");t.length&&e.init(t)}))}(jQuery,t),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.ticketDetails={}})();