!function(e){var r={};function t(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)t.d(o,a,function(r){return e[r]}.bind(null,a));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="/",t(t.s=11)}({11:function(e,r,t){e.exports=t("B8yV")},B8yV:function(e,r){var t=$("#developers-report-date-picker"),o=moment();$(window).on("load",(function(){loadDevelopersWorkReport(o.format("YYYY-MM-D  H:mm:ss"))})),t.on("apply.daterangepicker",(function(e,r){var t=r.startDate.format("YYYY-MM-D  H:mm:ss");loadDevelopersWorkReport(t)})),window.cb=function(e){t.find("span").html(e.format("MMM D, YYYY"))},cb(o),t.daterangepicker({startDate:o,opens:"left",maxDate:moment(),autoUpdateInput:!1,singleDatePicker:!0},cb),window.loadDevelopersWorkReport=function(e){$.ajax({type:"GET",url:userDeveloperReportUrl,dataType:"json",data:{start_date:e},cache:!1}).done(prepareDeveloperWorkReport)},window.prepareDeveloperWorkReport=function(e){$("#developers-daily-work-report-container").html("");var r=e.data;if(0===r.totalRecords)return $("#developers-daily-work-report-container").empty(),$("#developers-daily-work-report-container").append('<div align="center" class="no-record">No Records Found</div>'),!0;$("#developers-daily-work-report-container").html(""),$("#developers-daily-work-report-container").append('<canvas id="developers-daily-work-report"></canvas>');var t=document.getElementById("developers-daily-work-report").getContext("2d");t.canvas.style.height="500px",t.canvas.style.width="100%";new Chart(t,{type:"bar",data:{labels:r.data.labels,datasets:[{label:r.label,data:r.data.data,backgroundColor:r.data.backgroundColor,borderColor:r.data.borderColor,borderWidth:1}]},options:{tooltips:{mode:"index",callbacks:{label:function(r,t){var o=t.datasets[r.datasetIndex].label||"";return o&&(o+=": "),o+(e=convertToTimeFormat(r.yLabel))}}},scales:{yAxes:[{scaleLabel:{display:!0,labelString:"Hours"}}]},legend:{display:!1}}})},window.convertToTimeFormat=function(e){var r=e.toString().split("."),t=parseInt(r[0]),o=Math.floor(60*e)-Math.floor(60*t);return 0===t?o+"min":o>0?t+"hr "+o+"min":t+"hr"}}});