"use strict";jQuery(function(t){var i=wp.i18n,n=i.__;i._x,i._n,i._nx;function r(t){window.open(t,"_blank")}t(".wms__orders_listing__tracking-number > .wms_download_label").off("click").on("click",function(){var i=t(this).attr("data-link");void 0!==i&&""!==i&&(location.href=i)}),t(".wms__orders_listing__tracking-number > .wms_print_label").off("click").on("click",function(){var i=t(this).attr("data-link");t(this).closest(".wms__orders_listing__tracking-number").attr("data-tracking-number");switch(t(this).attr("data-format")){case"PDF":r(i)}}),t(".wms__orders_listing__tracking-number > .wms_delete_label").off("click").on("click",function(){var i=t(this).attr("data-link"),r=t(this).closest(".wms__orders_listing__tracking-number").attr("data-tracking-number"),s="inward"==t(this).closest(".wms__orders_listing__tracking-number").attr("data-label-type")?n("Voulez-vous confirmer la suppression de l'étiquette ?","wc-multishipping"):sprintf(n("Voulez-vous confirmer la suppression de l'étiquette %s ? Les étiquettes de retours seront également supprimées.","wc-multishipping"),"\n");void 0!==i&&""!==i&&window.confirm(r+" : "+s)&&(location.href=i)}),window.wms_print_PDF=r});