/*! © SpryMedia Ltd, Alireza Mohammadi Doost - datatables.net/license */ import $ from"jquery";import DataTable from"datatables.net";DataTable.render.numberTo=function(a="fa"){let n=null;const i=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],l=["0","1","2","3","4","5","6","7","8","9"],o=["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"];return function(e,r,t){if("display"!==r)return e;if(!e&&"fa"===a)return"مقدار ورودی صحیح نمی‌باشد.";if(!e)return"numbers is empty.";switch(a){case"fa":n=e.toString().replace(/\d/g,e=>i[e]);break;case"en":n=e.toString().replace(/\d/g,e=>l[e]);break;case"ar":n=e.toString().replace(/\d/g,e=>o[e])}return n}};export default DataTable;