"use strict";var KTDatatablesExtensionsKeytable={init:function(){var t;$("#kt_datatable_1").DataTable({responsive:!0,select:!0,columnDefs:[{targets:-1,title:"Actions",orderable:!1,render:function(t,a,l,e){return'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'}},{width:"75px",targets:8,render:function(t,a,l,e){var s={1:{title:"Pending",class:"label-light-primary"},2:{title:"Delivered",class:" label-light-danger"},3:{title:"Canceled",class:" label-light-primary"},4:{title:"Success",class:" label-light-success"},5:{title:"Info",class:" label-light-info"},6:{title:"Danger",class:" label-light-danger"},7:{title:"Warning",class:" label-light-warning"}};return void 0===s[t]?t:''+s[t].title+""}},{width:"75px",targets:9,render:function(t,a,l,e){var s={1:{title:"Online",state:"danger"},2:{title:"Retail",state:"primary"},3:{title:"Direct",state:"success"}};return void 0===s[t]?t:''+s[t].title+""}}]}),(t=$("#kt_datatable_2").DataTable({responsive:!0,select:{style:"multi",selector:"td:first-child .checkable"},headerCallback:function(t,a,l,e,s){t.getElementsByTagName("th")[0].innerHTML='\n '},columnDefs:[{targets:0,orderable:!1,render:function(t,a,l,e){return'\n '}},{targets:-1,title:"Actions",orderable:!1,render:function(t,a,l,e){return'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'}},{width:"75px",targets:8,render:function(t,a,l,e){var s={1:{title:"Pending",class:"label-light-primary"},2:{title:"Delivered",class:" label-light-danger"},3:{title:"Canceled",class:" label-light-primary"},4:{title:"Success",class:" label-light-success"},5:{title:"Info",class:" label-light-info"},6:{title:"Danger",class:" label-light-danger"},7:{title:"Warning",class:" label-light-warning"}};return void 0===s[t]?t:''+s[t].title+""}},{width:"75px",targets:9,render:function(t,a,l,e){var s={1:{title:"Online",state:"danger"},2:{title:"Retail",state:"primary"},3:{title:"Direct",state:"success"}};return void 0===s[t]?t:''+s[t].title+""}}]})).on("change",".group-checkable",function(){var a=$(this).closest("table").find("td:first-child .checkable"),l=$(this).is(":checked");$(a).each(function(){l?($(this).prop("checked",!0),t.rows($(this).closest("tr")).select()):($(this).prop("checked",!1),t.rows($(this).closest("tr")).deselect())})})}};jQuery(document).ready(function(){KTDatatablesExtensionsKeytable.init()});