tribe.tickets=tribe.tickets||{},tribe.tickets.commerce=tribe.tickets.commerce||{},tribe.tickets.commerce.notice=tribe.tickets.commerce.notice||{},function(e,t){"use strict";t.selectors={hiddenElement:".tribe-common-a11y-hidden",item:".tribe-tickets__commerce-checkout-notice",content:".tribe-tickets__commerce-checkout-notice-content",title:".tribe-tickets-notice__title",container:'[data-js="tec-tickets-commerce-notice"]'},t.show=e=>{if(!e.length)return;const c=e.parents(t.selectors.container).eq(0);e.trigger("beforeShowNotice.tecTicketsCommerce",[c]),e.show(),e.trigger("aftershowNotice.tecTicketsCommerce",[c])},t.hide=e=>{if(!e.length)return;const c=e.parents(t.selectors.container).eq(0);e.trigger("beforeHideNotice.tecTicketsCommerce",[c]),e.hide(),e.trigger("afterHideNotice.tecTicketsCommerce",[c])},t.populate=(e,c,i)=>{const o=e.find(t.selectors.content),r=e.find(t.selectors.title);if(!e.length||!o.length||!r.length)return;const n=e.parents(t.selectors.container).eq(0);c=void 0!==c?c:n.data("noticeDefaultTitle"),i=void 0!==i?i:n.data("noticeDefaultContent"),e.trigger("beforePopulateNotice.tecTicketsCommerce",[n]),c instanceof jQuery?r.empty().append(c):r.text(c),i instanceof jQuery?o.empty().append(i):o.text(i),e.trigger("afterPopulateNotice.tecTicketsCommerce",[n])}}(jQuery,tribe.tickets.commerce.notice),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.commerce=window.tec.tickets.commerce||{},window.tec.tickets.commerce.notice={};