window.addEventListener("load",(function(){$(".datetime-picker-ext").each((function(){var e=this.getAttribute("data-format");e=null==e||""==e?"DD/MM/YYYY HH:mm:ss":e.replace(/d/g,"DD").replace(/m/g,"MM").replace(/Y/g,"YYYY").replace(/H/g,"HH").replace(/h/g,"hh").replace(/i/g,"mm").replace(/s/g,"ss");var t=-1!==e.indexOf("HH:mm");if(this.value){var a=moment(this.value);a.isValid()&&(this.value=a.format(e))}this.setAttribute("placeholder",e),new Pikaday({field:this,format:e,showTime:t,showMinutes:!0,showSeconds:!1,use24hour:!0,incrementHourBy:1,incrementMinuteBy:1,incrementSecondBy:1,autoClose:!0,timeLabel:null})}))}));