var currentDate = $(this).val();
let selectedDate = dayjs(currentDate, get_dateformat_str(dateformat_pref).toUpperCase());
let selectedDate = dayjs(currentDate);
let pickupSlots = [];
let available_count = 0;
let branchcode = $("#pickup-branch").val();
let policy = policies[branchcode];
-