!function(i){const n={init(){const n=i(".dokan-printful-size-guide-preview-link");n&&n.on("click",this.openSizeGuidePopup)},openSizeGuidePopup(o){o.preventDefault();const e=wp.template("dokan-printful-product-size-guide"),t=i(".dokan-printful-size-guide-popup-wrapper");n.modal=t.iziModal({title:DokanPrintfulPopup.popup_title,headerColor:dokan.modal_header_color,overlayColor:"rgba(0, 0, 0, 0.8)",width:900,top:32,onOpening:function(i){i.startLoading()},onOpened:function(i){i.stopLoading(),n.initializeTabs()}}),n.modal.iziModal("setContent",e().trim()),n.modal.iziModal("open")},initializeTabs(){const n=i("#dokan-printful-size-guide-tabs"),o=i(".dokan-printful-size-table-wrapper"),e={active:"inches"===DokanPrintfulPopup.primary_measurement_unit?0:1};n.tabs(),o.tabs(e)}};n.init()}(jQuery);