<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <label>Candidate Availability</label>
    <protected>false</protected>
    <values>
        <field>b3s__JSON__c</field>
        <value xsi:type="xsd:string"><![CDATA[{
    "timezonePreference": "client",
    "defaultLanguage": "en-GB",
    "availableLanguages": ["en-GB", "en-US", "bg-BG", "gr-GR"],
    "firstDay": 1,
    "is24Hour": true,
    "canAddAvailability": true,
    "canSearchShifts": true,
    "showInvitations": true,
    "syncTimeout": 15,
    "schedulables": {
        "request": {
            "objectType": "b3s__Employee_Request__c",
            "startFieldPath": "b3s__Start__c",
            "endFieldPath": "b3s__End__c",
            "selectionClause": [
                "b3s__Contact__c = :contactUserId"
            ],
            "siteTimezoneFieldPath": "b3s__Contact__r.b3s__Timezone__c",
            "contactFieldPath": "b3s__Contact__c",
            "lookBackLimitDays": 31,
            "lookForwardLimitDays": 31,
            "typeFieldPath": "b3s__Type__c",
            "canEdit": null,
            "canDelete": true,
            "background": {
                "match": {
                    "field": "b3s__Type__c",
                    "equals": {
                        "Unavailable": {
                            "literal": "bg-[#fdf2f8] text-red-600 hover:bg-[%fce7f3]"
                        },
                        "Flexible Schedule": {
                            "literal": "bg-[#f3f4f6] hover:bg-[%e5e7eb]"
                        },
                        "Available": {
                            "literal": "bg-[#d9ffda] text-green-600 hover:bg-[%dbeafe]"
                        }
                    },
                    "otherwise": {
                        "literal": "bg-[#fdf2f8] text-red-600 hover:bg-[%fce7f3]"
                    }
                }
            },
            "decorations": [
                {
                    "name": "request-unavailable",
                    "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                                "field": "b3s__Type__c",
                                "operator": "equals",
                                "value": "Unavailable"
                            }
                        ]
                    },
                    "icon": {
                        "svg": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5' /><path d='M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47' /><path d='M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5' /><path d='M14 5.5a1.5 1.5 0 0 1 3 0v6.5' /></svg>"
                    },
                    "title": {
                        "literal": "Unavailable"
                    }
                },
                {
                    "name": "request-available",
                    "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                                "field": "b3s__Type__c",
                                "operator": "equals",
                                "value": "Available"
                            }
                        ]
                    },
                    "icon": {
                        "svg": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /><path d='M10 16.5l2 -3l2 3m-2 -3v-2l3 -1m-6 0l3 1' /><path d='M11.5 7.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='currentColor' /></svg>"
                    },
                    "title": {
                        "literal": "Available"
                    }
                }
            ],
            "recordFormFields": [
                {
                    "isSeparator": true,
                    "label": "Times"
                },
                {
                    "field": "b3s__Start__c:b3s__End__c",
                    "type": "field-time-range-selector",
                    "labelOverride": "Start/End Time",
                    "required": true,
                    "disabled": false,
                    "valueStart": ":contextStart",
                    "valueEnd": ":contextEnd",
                    "props": {
                        "hideDate": false
                    },
                    "enableRepeatPattern": true
                },
                {
                    "field": "b3s__Contact__c",
                    "type": "field-select",
                    "required": false,
                    "disabled": true,
                    "default": ":contactUserId",
                    "loader": "contacts",
                    "optionLabelField": "Name"
                },
                {
                    "field": "b3s__Type__c",
                    "type": "field-select",
                    "labelOverride": "Availability",
                    "default": "Available",
                    "optionsInPopout": true,
                    "required": true,
                    "disabled": false
                },
                {
                    "field": "b3s__Comments__c",
                    "type": "field-text",
                    "required": false,
                    "disabled": false
                }
            ],
            "title": [
                {
                    "label": "Times",
                    "fieldPath": "b3s__Start__c:b3s__End__c",
                    "formatter": "startEndWithDate",
                    "siteTimezoneFieldPath": "b3s__Contact__r.b3s__Timezone__c",
                    "hideIfNull": false
                },
                {
                    "label": "Comments",
                    "fieldPath": "b3s__Comments__c",
                    "hideIfNull": true
                }
            ]
        }
    }
}]]></value>
    </values>
    <values>
        <field>b3s__Loaders__c</field>
        <value xsi:type="xsd:string"><![CDATA[
[
    {
        "name": "contacts",
        "objectName": "Contact",
        "filterRecordsBy": [
            "Id =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "LastName",
            "FirstName",
            "Title",
            "Description",
            "MailingLatitude",
            "MailingLongitude",
            "MobilePhone",
            "Email",
            "CreatedDate"
        ]
    }
]
]]></value>
    </values>
    <values>
        <field>b3s__Type__c</field>
        <value xsi:type="xsd:string">Candidate Availability</value>
    </values>
</CustomMetadata>
