tribe.tickets=tribe.tickets||{},tribe.dialogs=tribe.dialogs||{},tribe.dialogs.events=tribe.dialogs.events||{},tribe.tickets.attendees={},function(e,t){const n=e(document);t.selectors={modalWrapper:".tribe-modal__wrapper--attendee-details",modalTitle:".tribe-modal__title",modalContent:".tribe-modal__content",hiddenElement:".tribe-common-a11y-hidden"},t.modalClose=function(n,i){const d=e(i).find(t.selectors.modalContent);t.unbindModalEvents(d)},t.bindModalClose=function(){e(tribe.dialogs.events).on("tribeDialogCloseAttendeeDetailsModal.tribeTickets",t.modalClose)},t.unbindModalEvents=function(e){e.off("afterAjaxSuccess.tribeTicketsAdmin",t.bindModalEvents),e.off()},t.modalOpen=function(n,i,d){const a=e(i),o=e(d.target).closest("button"),l=o.data("modal-title"),s=o.data("attendee-id")||null,c=o.data("event-id")||null,r=o.data("ticket-id")||null,b=o.data("provider")||null,m=o.data("attendee-name")||null,u=o.data("attendee-email")||null;l&&a.find(t.selectors.modalTitle).text(l);const k=a.find(t.selectors.modalContent),f={action:"tribe_tickets_admin_manager",request:"tec_tickets_attendee_details",attendeeId:s,eventId:c,ticketId:r,provider:b,attendeeName:m,attendeeEmail:u};tribe.tickets.admin.manager.request(f,k),k.on("afterAjaxSuccess.tribeTicketsAdmin",{container:k,requestData:f},t.bindModalEvents)},t.getContext=function(){return{}},t.bindModalOpen=function(){e(tribe.dialogs.events).on("tribeDialogShowAttendeeDetailsModal.tribeTickets",t.modalOpen)},t.ready=function(){t.bindModalOpen(),t.bindModalClose()},n.ready(t.ready)}(jQuery,tribe.tickets.attendees),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.admin=window.tec.tickets.admin||{},window.tec.tickets.admin.ticketsAttendees={};