/*! SearchBuilder 1.6.0 * ©SpryMedia Ltd - datatables.net/license/mit */ (function( factory ){ if ( typeof define === 'function' && define.amd ) { // AMD define( ['jquery', 'datatables.net'], function ( $ ) { return factory( $, window, document ); } ); } else if ( typeof exports === 'object' ) { // CommonJS var jq = require('jquery'); var cjsRequires = function (root, $) { if ( ! $.fn.dataTable ) { require('datatables.net')(root, $); } }; if (typeof window === 'undefined') { module.exports = function (root, $) { if ( ! root ) { // CommonJS environments without a window global must pass a // root. This will give an error otherwise root = window; } if ( ! $ ) { $ = jq( root ); } cjsRequires( root, $ ); return factory( $, root, root.document ); }; } else { cjsRequires( window, jq ); module.exports = factory( jq, window, window.document ); } } else { // Browser factory( jQuery, window, document ); } }(function( $, window, document, undefined ) { 'use strict'; var DataTable = $.fn.dataTable; (function () { 'use strict'; var $$3; var dataTable$3; function moment() { return window.moment; } function luxon() { return window.luxon; } /** * Sets the value of jQuery for use in the file * * @param jq the instance of jQuery to be set */ function setJQuery$2(jq) { $$3 = jq; dataTable$3 = jq.fn.dataTable; } /** * The Criteria class is used within SearchBuilder to represent a search criteria */ var Criteria = /** @class */ (function () { function Criteria(table, opts, topGroup, index, depth, serverData, liveSearch) { if (index === void 0) { index = 0; } if (depth === void 0) { depth = 1; } if (serverData === void 0) { serverData = undefined; } if (liveSearch === void 0) { liveSearch = false; } var _this = this; // Check that the required version of DataTables is included if (!dataTable$3 || !dataTable$3.versionCheck || !dataTable$3.versionCheck('1.10.0')) { throw new Error('SearchPane requires DataTables 1.10 or newer'); } this.classes = $$3.extend(true, {}, Criteria.classes); // Get options from user and any extra conditions/column types defined by plug-ins this.c = $$3.extend(true, {}, Criteria.defaults, $$3.fn.dataTable.ext.searchBuilder, opts); var i18n = this.c.i18n; this.s = { condition: undefined, conditions: {}, data: undefined, dataIdx: -1, dataPoints: [], dateFormat: false, depth: depth, dt: table, filled: false, index: index, liveSearch: liveSearch, origData: undefined, preventRedraw: false, serverData: serverData, topGroup: topGroup, type: '', value: [] }; this.dom = { buttons: $$3('
') .addClass(this.classes.buttonContainer), condition: $$3('') .addClass(this.classes.data) .addClass(this.classes.dropDown) .addClass(this.classes.italic), dataTitle: $$3('