{
    "CalendarPopover": {
        "configuration": {
            "uibOptions": {
                "default": {
                    "existingBooking": {
                        "popover-append-to-body": true,
                        "popover-trigger": "'outsideClick'",
                        "popover-placement": {
                            "calendar": "auto left",
                            "list": "auto bottom"
                        },
                        "backdrop-opacity": 0
                    },
                    "newBooking": {
                        "popover-append-to-body": true,
                        "popover-placement": "auto left",
                        "popover-is-open": true,
                        "backdrop-opacity": 0
                    }
                },
                "values": "*bbc"
            },
            "canEditStatus": {
                "default": true,
                "values": [true, false]
            },
            "buttons": {
                "default": {
                    "emptySlot": [
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.CREATE_BOOKING_BTN_LABEL",
                            "action": "$ctrl.createBooking()"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.CREATE_BLOCK_BTN_LABEL",
                            "action": "$ctrl.createBlock()"
                        }
                    ],
                    "bookingSlot": [
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.VIEW_BOOKING_BTN_LABEL",
                            "sref": "bookings.edit({id: $ctrl.booking.id})"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.CANCEL_BOOKING_BTN_LABEL",
                            "action": "$ctrl.cancelBooking()"
                        }
                    ],
                    "eventSlot": [
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.ADD_ATTENDEES_BTN_LABEL",
                            "action": "$ctrl.createBooking()",
                            "hide": "!$ctrl.canAddAttendees"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.VIEW_ATTENDEES_BTN_LABEL",
                            "sref": "events.details.views.views({view: 'instances', sub_view: 'instance_attendees', id: $ctrl.slot.session_id, slot_id: $ctrl.slot.id})",
                            "hide": "$ctrl.bbAuthorisation.getUser().role === 'user'"
                        },
                        {
                            "style": "default",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.EDIT_EVENT_BTN_LABEL",
                            "sref": "events.details.views({view: 'overview', id: $ctrl.slot.session_id, slot_id: $ctrl.slot.id})"
                        }
                    ],
                    "blockSlot": [
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.EDIT_BLOCK_BTN_LABEL",
                            "action": "$ctrl.editBlock()"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.REMOVE_BLOCK_BTN_LABEL",
                            "action": "$ctrl.removeBlock()"
                        }
                    ],
                    "basketItemSlot": [
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.VIEW_BASKET",
                            "action": "$ctrl.viewBasket()"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.EDIT_ITEM",
                            "action": "$ctrl.editBasketItem()"
                        },
                        {
                            "style": "primary",
                            "translation": "ADMIN_DASHBOARD.CALENDAR_PAGE.POPOVER.DELETE_ITEM",
                            "action": "$ctrl.deleteBasketItem()"
                        }
                    ]              
                }
            },
            "values": "*bbc"
        }
    }
}
