(()=>{"use strict";var t,o,r=function(t){var o=t.find("td:not(.product-data, .product-name, .product-subtotal) "),r=t.find("td :is(.product-attributes-wrapper, .subtotal-action-button-wrapper)"),e=t.find(".woocommerce-cart-form__cart-item");o.hide(),r.hide(),e.removeClass("active-row")},e=function(t,o,r){var e=t(o.currentTarget),n=r===o.currentTarget;e.is(".product-data, .product-name, .product-subtotal")&&(e.parent().find("td:not(.product-data, .product-name, .product-subtotal)").stop(!0,!0).slideToggle().end().find("td:is(.product-data, .product-name, .product-subtotal) :is(.rtsb-product-image.show-on-mobile, .product-thumbnail.show-image-on-mobile, .product-attributes-wrapper, .subtotal-action-button-wrapper)").slideToggle().end().toggleClass("active-row"),n&&!e.hasClass("active-row")&&e.parent().removeClass("active-row").find("td:not(.product-data, .product-name, .product-subtotal)").stop(!0,!0).slideUp().end().find("td:is(.product-data, .product-name, .product-subtotal) :is(.rtsb-product-image.show-on-mobile, .product-thumbnail.show-image-on-mobile, .product-attributes-wrapper, .subtotal-action-button-wrapper )").slideUp(),r=n?null:o.currentTarget)},n=function(t){t.off("click","td"),t.find("td").show().end().find("td :is(.product-attributes-wrapper, .subtotal-action-button-wrapper )").show()};t=jQuery,window.RTSB&&window.RTSB._initialized&&(null===(o=window.RTSB.modules.register("cartTable",function(){var o=(window.RTSB||{}).helpers;return{name:"cartTable",version:"1.0.0",init:function(){return this.handleResponsive(),this},refresh:function(){this.handleResponsive()},handleResponsive:function(){o.rAF(function(){return function(t){var o=t(".rtsb-cart-table:not(.rtsb-table-horizontal-scroll-on-mobile)");!o.length>0||(window.rtsbDeviceCheck(767)?(o.off("click","td"),r(o),o.on("click","td",function(o){e(t,o,null)})):n(o))}(t)})}}}))||void 0===o||o.init())})();