(()=>{"use strict";function e(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" /> '+e.text+"</span>"):e.text}$((function(){$("#ps-datepicker").datepicker({autoclose:!0,format:"dd-mm-yyyy",todayHighlight:!0}).datepicker("update",new Date),$("#pe-datepicker").datepicker({autoclose:!0,format:"dd-mm-yyyy",todayHighlight:!0}).datepicker("update","")})),$(".select2").select2({minimumResultsForSearch:1/0,width:"100%"}),$(".select2-show-search").select2({minimumResultsForSearch:"",width:"100%"}),$(".select2-client-search").select2({templateResult:e,templateSelection:e,escapeMarkup:function(e){return e}}),$((function(e){$("#summernote").summernote()})),$((function(e){$("#summernote2").summernote()}));var t,c,n,o,s,a,r=document.querySelector(".end-date-checkbox-container"),d=document.querySelector(".end-date-checkbox"),i=document.querySelector(".end-date-container");t=d,c=i,r.addEventListener("click",(function(){1==t.checked?c.classList.add("d-none"):c.classList.remove("d-none")})),n=document.querySelector(".other-details"),o=document.querySelector(".other-details-main"),s=document.querySelector(".up-arrow"),a=document.querySelector(".down-arrow"),n.addEventListener("click",(function(){o.classList.contains("d-none")?(o.classList.remove("d-none"),s.classList.remove("d-none"),a.classList.add("d-none")):(o.classList.add("d-none"),s.classList.add("d-none"),a.classList.remove("d-none"))})),s.classList.add("d-none");var l=document.querySelector(".client-checkbox");!function(e,t,c){e.addEventListener("click",(function(){1==t.checked?c.classList.remove("d-none"):c.classList.add("d-none")}))}(document.querySelector(".client-checkbox-container"),l,document.querySelector(".notifications-container"))})();