(function(){"use strict";page.using={types:["Calendar"]};page.onLoad=function(){var t=this.url;var a=t.get("FilterSet");var r=t.get("DefaultFilterSet");var i=t.get("menuName");var d={model:{days:t.get("days"),range:t.get("range"),view:t.get("view"),fixedFilterNames:t.getArray("fixedFilterNames")},filterSet:a,defaultFilterSet:r,settingsRecordUid:t.getUid("settingsRecord")||t.getUid()||t.getUid("saved"),parent:page,menuName:i,isDefault:true};var n=t.getUid();if(n){d.onCreate=e.curry(n)}var u=$("#calendar").uniqueId("calendar",true);u8.widget("Calendar",u,d)};function e(e,t){var a=t.model.items;var r=a&&a.find(function(t){return t.uid&&u8.equalsRecordUid(t.uid,e)});if(r){t.model.setSelectedItems(r.id)}}})();