/**
 * Vendor entry point for webpack.
 *
 * Import all third-party libraries here.
 * Webpack bundles them into assets/vendor/vendor.js + vendor.css.
 * The PHP code enqueues those files — zero CDN URLs anywhere.
 *
 * @package Relatedly
 */

// JS libraries
import Choices    from 'choices.js';
import tippy      from 'tippy.js';
import Swal       from 'sweetalert2';
import flatpickr  from 'flatpickr';
import Chart      from 'chart.js/auto';
import DataTable  from 'datatables.net';

// CSS libraries
import 'choices.js/public/assets/styles/choices.min.css';
import 'tippy.js/dist/tippy.css';
import 'sweetalert2/dist/sweetalert2.min.css';
import 'flatpickr/dist/flatpickr.min.css';
import 'datatables.net-dt/css/dataTables.dataTables.min.css';

// Expose to global scope so inline scripts and settings.js can access them.
window.Choices   = Choices;
window.tippy     = tippy;
window.Swal      = Swal;
window.flatpickr = flatpickr;
window.Chart     = Chart;
window.DataTable = DataTable;
