$((function(){"use strict";function e(e){if(!e.id)return e.text;var t=$('<span class="status-indicator tickets">'+e.text+"</span>"),s=t.text().split(" ").join("").toLowerCase();return"open"===s?t.addClass("open"):"closed"===s?t.addClass("closed"):"pending"===s?t.addClass("pending"):"resolved"===s?t.addClass("resolved"):t.addClass("empty"),t}function t(e){return e.id?$('<span><img src="https://laravel8.spruko.com/noa/assets/images/users/'+e.element.value.toLowerCase()+'.jpg" class="rounded-circle avatar-sm ms-1" /> '+e.text+"</span>"):e.text}$(".select2-show-search").select2({minimumResultsForSearch:"",width:"100%"}),$("#bootstrapDatePicker3").datepicker({autoclose:!0,format:"dd-mm-yyyy",todayHighlight:!0}).datepicker("update","11-01-2021"),$(".ticket-status-search").select2({templateResult:e,templateSelection:e,escapeMarkup:function(e){return e}}),$(".select2-client-search").select2({templateResult:t,templateSelection:t,escapeMarkup:function(e){return e}})}));