{
    "AdminCalendar": {
        "pages": {
            "main": {
                "style": "profile",
                "layout": [
                    [
                        {
                            "type": "bb-tabs-panel",
                            "width": 12,
                            "panel_params": {
                                "hide_single": true,
                                "name": "calendar_main",
                                "tabs": [
                                    {
                                        "name": "ADMIN_DASHBOARD.CALENDAR_PAGE.TABS.STAFF",
                                        "path": ".views({sub_view: 'staff'})",
                                        "hide": "!$ctrl.company.$has('people')",
                                        "roles": [
                                            "user",
                                            "owner",
                                            "admin"
                                        ]
                                    },
                                    {
                                        "name": "ADMIN_DASHBOARD.CALENDAR_PAGE.TABS.RESOURCES",
                                        "path": ".views({sub_view: 'resources'})",
                                        "hide": "!$ctrl.company.$has('resources')",
                                        "roles": [
                                            "user",
                                            "owner",
                                            "admin"
                                        ]
                                    },
                                    {
                                        "name": "ADMIN_DASHBOARD.CALENDAR_PAGE.TABS.AGENDA",
                                        "path": ".views({sub_view: 'agenda'})",
                                        "roles": [
                                            "user",
                                            "owner",
                                            "admin"
                                        ]
                                    }
                                ]
                            }
                        }
                    ]
                ]
            },
            "personal": {
                "style": "tab",
                "layout": [
                    [
                        {
                            "type": "bb-tabs-panel",
                            "width": 12,
                            "panel_params": {
                                "hide_single": true,
                                "name": "calendar_personal",
                                "tabs": [
                                    {
                                        "name": "Location",
                                        "path": ".views({sub_view: 'location'})",
                                        "roles": [
                                            "user",
                                            "owner",
                                            "admin",
                                            "personal"
                                        ]
                                    },
                                    {
                                        "name": "Agenda",
                                        "path": ".views({sub_view: 'agenda'})",
                                        "roles": [
                                            "user",
                                            "owner",
                                            "admin",
                                            "personal"
                                        ]
                                    }
                                ]
                            }
                        }
                    ]
                ]
            },
            "staff": {
                "style": "tab",
                "layout": [
                    [
                        {
                            "type": "bb-calendar-panel",
                            "width": 12,
                            "panel_params": {
                                "type": "person",
                                "name": "personCalendar",
                                "slotDuration": 15
                            }
                        }
                    ]
                ]
            },
            "resources": {
                "style": "tab",
                "layout": [
                    [
                        {
                            "type": "bb-calendar-panel",
                            "width": 12,
                            "panel_params": {
                                "type": "resource",
                                "name": "resourceCalendar",
                                "slotDuration": 15
                            }
                        }
                    ]
                ]
            },
            "location": {
                "style": "tab",
                "layout": [
                    [
                        {
                            "type": "bb-calendar-panel",
                            "width": 12,
                            "panel_params": {
                                "type": "location",
                                "name": "locationCalendar",
                                "slotDuration": 15
                            }
                        }
                    ]
                ]
            },
            "agenda": {
                "style": "tab",
                "layout": [
                    [
                        {
                            "type": "bb-calendar-panel",
                            "width": 12,
                            "panel_params": {
                                "type": "agenda",
                                "name": "agendaCalendar",
                                "slotDuration": 15
                            }
                        }
                    ]
                ]
            },
            "roles": [
                "*",
                "owner",
                "admin",
                "user",
                "parent-owner",
                "parent-admin",
                "personal"
            ]
        },
        "view": {
            "calendarOrientation": "horizontal",
            "defaultView": "calendar",
            "defaultCalendarView": "timelineDay",
            "defaultListView": "listWeek",
            "showViewBookingButton": true,
            "timelineDayTitleFormat": "dddd, MMMM D YYYY",
            "dayTitleFormat": "dddd, MMMM D YYYY",
            "weekTitleFormat": "",
            "monthTitleFormat": "",
            "bookingsLabelAssembler": "{service_name} - {name}",
            "eventLabelAssembler": "{name}",
            "blockLabelAssembler": "Blocked",
            "externalLabelAssembler": "{title}",
            "nextAvailableLimit": 10,
            "slotLabelFormat": "LT",
            "minTime": "00:00",
            "maxTime": "23:59",
            "scrollTime": "08:00",
            "useExternalBookingsApi": false,
            "allowTimezoneSelect": true,
            "useGroupPicker": false,
            "limitUserGroup": "all"
        },
        "data": {
            "maximumSlots": 1000,
            "includeBookingDetails": true
        },
        "accessibility": {
            "listItemStartDateFormat": "MMMM Do YYYY, h:mm a",
            "listItemEndDateFormat": "MMMM Do YYYY, h:mm a"
        },
        "calendarDatepicker": {
            "format": "L"
        },
        "buttons": {
            "headerRight": [
                {
                    "component": {
                        "name": "bb-new-booking",
                        "props": {
                            "person": "$ctrl.currentPerson",
                            "date": "$ctrl.$calendarCtrl.calendar.currentDate"
                        }
                    },
                    "if": "!$ctrl.isEventsOnly"
                },
                {
                    "if": "$ctrl.$calendarCtrl.type === 'agenda'",
                    "style": "default",
                    "action": "$ctrl.printAgenda()",
                    "icon": "print",
                    "class": "btn-spaced",
                    "ariaLabel": "ADMIN_DASHBOARD.CALENDAR_PAGE.ACCESSIBILITY.PRINT_AGENDA_ARIA_LABEL"
                }
            ]
        }
    }
}
