!function(e){"use strict";var a=function(e,a){var n=e.find(".usk-wc-products-table"),t=n.data("settings"),i=n.find("> table"),o=n.find(".usk-wc-quantity .quantity input");if(n.length)if("yes"!=t.hideHeader){if("default"!=t.orderColumn&&a(".usk-wc-product").find(".usk-"+t.orderColumn).length>0&&"yes"!=t.hideHeader){var d=a(".usk-wc-product .usk-"+t.orderColumn);d=a(d).index(this),a(i).DataTable({cache:!1,paging:t.paging,info:t.info,bLengthChange:t.bLengthChange,searching:t.searching,ordering:t.ordering,pageLength:t.pageLength,order:[[d,t.orderColumnQry]]})}else a(i).DataTable({cache:!1,order:[],paging:t.paging,info:t.info,bLengthChange:t.bLengthChange,searching:t.searching,ordering:t.ordering,pageLength:t.pageLength});jQuery(o).on("change",function(){var e=jQuery(this).val();jQuery(this).closest("tr").find(".usk-wc-add-to-cart a").attr("data-quantity",e)})}else a(i).DataTable({cache:!1,order:[],paging:t.paging,info:t.info,bLengthChange:t.bLengthChange,searching:t.searching,ordering:t.ordering,pageLength:t.pageLength,drawCallback:function(e){a(i).find("thead").remove()}})},n=function(a,n){var t=e(a).data("id");e.ajax({type:"POST",dataType:"json",url:ultimate_store_kit_ajax_config.ajaxurl,data:{action:"ultimate_store_kit_wc_product_quick_view_content",product_id:t,security:n.find("#usk-product-table-modal-sc").val()},success:function(a){e("#usk-table-modal-response").html(a.data)}})},t=function(e,a){a("body").append('<div class="modal micromodal-slide" id="usk-table-modal" aria-hidden="false"><div class="modal__overlay" tabindex="-1" data-custom-close=""><div id="usk-table-modal-response" class="modal__container" role="dialog" aria-modal="true" aria-labelledby="modal-btn-title"></div></div></div>'),MicroModal.init({openTrigger:"data-micromodal-trigger",closeTrigger:"data-micromodal-close",disableScroll:!0,disableFocus:!1,awaitOpenAnimation:!1,awaitCloseAnimation:!1,debugMode:!0}),e.on("click",".usk-shoping-icon-quickview",function(a){a.preventDefault(),n(this,e)})};jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/usk-product-table.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/usk-product-table.default",t)})}(jQuery,window.elementorFrontend);