2024-11-21 11:23:10 -08:00
|
|
|
(()=>{var t,e={571:(t,e,n)=>{window._=n(543),n(139),jQuery.fn.uitooltip=jQuery.fn.tooltip,n(43)},671:(t,e,n)=>{n(571),lineOptions={legend:{position:"bottom"},scales:{yAxes:[{ticks:{fontColor:"rgba(0,0,0,0.5)",fontStyle:"bold",beginAtZero:!0,maxTicksLimit:5,padding:20},gridLines:{drawTicks:!1,display:!1}}],xAxes:[{gridLines:{zeroLineColor:"transparent"},ticks:{padding:20,fontColor:"rgba(0,0,0,0.5)",fontStyle:"bold"}}]}},pieOptions={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:1,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,responsive:!0,maintainAspectRatio:!1,legendTemplate:"<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><i class='fas fa-circle-o' style='color: <%=segments[i].fillColor%>'></i><%if(segments[i].label){%><%=segments[i].label%><%}%> foo</li><%}%></ul>",tooltipTemplate:"<%=value %> <%=label%> "};var r=$('meta[name="baseUrl"]').attr("content");$((function(){var t=$("table");function e(t){t instanceof jQuery||(t=$(t));var e=t.data("select2");return searchElement=e.dropdown.$search||e.$container.find(".select2-search__field"),searchElement.val()}function n(t){if(t.loading)return $('<i class="fas fa-spinner fa-spin" aria-hidden="true"></i> Loading...');var e=$("<div class='clearfix'>"),n=$("<div class='pull-left' style='padding-right: 10px;'>");if(t.image){var r=$("<div style='width: 30px;'>"),i=$("<img src='' style='max-height: 20px; max-width: 30px;' alt=''>");i.attr("src",t.image),r.append(i)}else r=$("<div style='height: 20px; width: 30px;'></div>");n.append(r),e.append(n);var o=$("<div>");o.text(t.text),e.append(o);e.get(0).outerHTML,function(t){if(t.loading)return'<i class="fas fa-spinner fa-spin" aria-hidden="true"></i> Loading...';var e='<div class="clearfix">';e+='<div class="pull-left" style="padding-right: 10px;">',t.image?e+="<div style='width: 30px;'><img src='"+t.image+"' style='max-height: 20px; max-width: 30px;' alt='"+t.text+"'></div>":e+='<div style="height: 20px; width: 30px;"></div>',e+="</div><div>"+t.text+"</div>"}(t);return e}t.on("click",".restore-asset",(function(t){var e=$(this),n=$("#restoreConfirmModal"),r=e.attr("href"),i=e.attr("data-content"),o=e.attr("data-title");return $("#confirmModalLabel").text(o),n.find(".modal-body").text(i),$("#restoreForm").attr("action",r),n.modal({show:!0}),!1})),t.on("click",".delete-asset",(function(t){var e=$(this),n=$("#dataConfirmModal"),r=e.attr("href"),i=e.attr("data-content"),o=e.attr("data-title");return $("#myModalLabel").text(o),n.find(".modal-body").text(i),$("#deleteForm").attr("action",r),n.modal({show:!0}),!1})),$(".slideout-menu-toggle").on("click",(function(t){t.preventDefault();var e=$(".slideout-menu"),n=$(".slideout-menu").width();e.toggleClass("open"),e.hasClass("open")?(e.show(),e.animate({right:"0px"})):(e.animate({right:-n},"-350px"),e.fadeOut())})),$('select.select2:not(".select2-hidden-accessible")').each((function(t,e){$(e).select2()})),$(".js-data-ajax").each((function(t,e){var i=$(e),o=i.data("endpoint");i.data("select");i.select2({placeholder:"",allowClear:!0,language:$('meta[name="language"]').attr("content"),dir:$('meta[name="language-direction"]').attr("content"),ajax:{url:r+"api/v1/"+o+"/selectlist",dataType:"json",delay:250,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},data:function(t){var e={search:t.term,page:t.page||1,assetStatusType:i.data("asset-status-type")};return e},cache:!0},templateResult:n})})),$(".select2-hidden-accessible").on("select2:selecting",(function(t){var n=t.params.args.data,r=!1,i=$(this),o=e(i);t.params.args.originalEvent&&(r="mouseup"==t.params.args.originalEvent.type),r||(o.toLowerCase()&&n.text.toLowerCase().indexOf(o)<0?(t.preventDefault(),i.select2("close")):o.toLowerCase()&&n.text.toLowerCase().indexOf(o)>-1&&(t.params.args.noForceAjax=!0))})),$(".select2-hidden-accessible").on("select2:closing",(function(t){var n=$(this),i=e(n),o=!1,a=!1;if(t.params.args.originalSelect2Event&&(o=t.params.args.originalSe
|