define(["jQuery","loading","datetime","dom","jqmpopup","emby-input","emby-button","emby-select"],function($,loading,datetime,dom){"use strict";function fillTimeOfDay(select){for(var options=[],i=0;i<864e5;i+=9e5)options.push({name:ScheduledTaskPage.getDisplayTime(1e4*i),value:1e4*i});select.innerHTML=options.map(function(o){return'"}).join("")}Array.prototype.remove=function(from,to){var rest=this.slice((to||from)+1||this.length);return this.length=from<0?this.length+from:from,this.push.apply(this,rest)};var ScheduledTaskPage={refreshScheduledTask:function(view){loading.show();var id=getParameterByName("id");ApiClient.getScheduledTask(id).then(function(task){ScheduledTaskPage.loadScheduledTask(view,task)})},loadScheduledTask:function(view,task){$(".taskName",view).html(task.Name),$("#pTaskDescription",view).html(task.Description),require(["listViewStyle"],function(){ScheduledTaskPage.loadTaskTriggers(view,task)}),loading.hide()},loadTaskTriggers:function(context,task){var html="";html+='