!function(e,t){"use strict";ElementsKit_Helper.registerWidget("elementskit-table.default",(function(i){var a=i.find(".ekit_table");if(0!==a.length){var n=a.data("settings"),r=t.isEditMode();r&&(n=t.config.elements.data[i.data("model-cid")].attributes);var l=a.data("settings"),o="text"===l.nav_style.trim()||"both"===l.nav_style.trim()?'<span class="ekit-tbl-pagi-nav ekit-tbl-pagi-prev">'+l.prev_text+"</span>":"",s="text"===l.nav_style.trim()||"both"===l.nav_style.trim()?'<span class="ekit-tbl-pagi-nav ekit-tbl-pagi-next">'+l.next_text+"</span>":"",d=i.find(".ekit-tbl-pagi-nav-prev-icon")[0]?i.find(".ekit-tbl-pagi-nav-prev-icon")[0].outerHTML:"",p=i.find(".ekit-tbl-pagi-nav-next-icon")[0]?i.find(".ekit-tbl-pagi-nav-next-icon")[0].outerHTML:"",g=i.find(".ekit-tbl-search-icon")[0]?i.find(".ekit-tbl-search-icon")[0].outerHTML:"";e(window).trigger("resize");var f=l.item_per_page?l.item_per_page:10,c={buttons:!0===l.button?["copy","excel","csv"]:[],bFilter:l.search,autoFill:!0,pageLength:f,lengthMenu:[[f,10,25,50,100,-1],[f,"10","25","50","100","All"]],fixedHeader:l.fixedHeader,responsive:l.responsive,paging:l.pagination,ordering:l.ordering,info:l.info,retrieve:!0,language:{search:`<span class="ekit-table-search-label">${g}</span>`,searchPlaceholder:n.search_placeholder,info:n.info_text,infoEmpty:n.info_text?n.info_text.replace(/_START_|_END_|_TOTAL_/gi,"0"):"",lengthMenu:n.entries_text,paginate:{next:s+p,previous:d+o}},order:[],columnDefs:[{targets:"_all",defaultContent:""}]};r&&(c.autoFill=!1,c.fixedHeader=!1,c.responsive=!1,c.buttons=[]),!1===l.entries&&(c.dom="Bfrtip");var b=function(){var t=a.find("table");if(!t.length)return;e.fn.DataTable.isDataTable(t)&&t.DataTable().destroy();const i=t.find("tbody tr:first td").length,n=t.find("thead tr");if(n.length){for(let e=n.children("th").length;e<i;e++)n.append("<th></th>")}t.DataTable(c)};if(r){var v=a.data("ekitTableInitTimeout");return v&&clearTimeout(v),void a.data("ekitTableInitTimeout",setTimeout(b,400))}b()}}))}(jQuery,window.elementorFrontend);