<?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>Account</label>
    <protected>false</protected>
    <values>
        <field>b3s__JSON__c</field>
        <value xsi:type="xsd:string"><![CDATA[
{
    "notifications": true,
    "timezonePreference":"user",
    "firstDay":1,
    "is24Hour":true,
    "disablePooling":false,
    "disableEventSaveRefresh":false,
    "slotMinWidth": 200,
    "schedulables":{
        "placement":{
            "objectType":"b3s__Working_Pattern__c",
            "contactFieldPath":"b3s__Contact__c",
            "contactRecordReference":"b3s__Contact__r",
            "startFieldPath":"b3s__Start__c",
            "endFieldPath":"b3s__End__c",
            "lookBackExtendDays":1,
            "lookForwardExtendDays":1,
            "siteTimezoneFieldPath":"b3s__Contact__r.b3s__Timezone__c",
            "selectionClause":[
                "b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId"
            ],
            "isFieldPathDateType":true,
            "dateFilterMode":"overlap",
            "additionalFields":[
                "b3s__Job__r.Name",
                "b3s__Contact__r.Name"
            ],
            "title":[
                {
                    "label":"Job",
                    "fieldPath":"b3s__Job__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Start Date",
                    "fieldPath":"b3s__Start__c",
                    "formatter":"date",
                    "hideIfNull":true
                }
            ],
            "eventTooltipFields":[
                {
                    "label":"Worker",
                    "fieldPath":"b3s__Contact__r.Name",
                    "hideIfNull":false
                },
                {
                    "label":"Job",
                    "fieldPath":"b3s__Job__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Start Date",
                    "fieldPath":"b3s__Start__c",
                    "formatter":"date",
                    "hideIfNull":false
                },
                {
                    "label":"End Date",
                    "fieldPath":"b3s__End__c",
                    "formatter":"date",
                    "hideIfNull":false
                }
            ]
        },
        "break":{
            "objectType":"b3s__Break__c"
        },
        "task":{
            "objectType":"b3s__Shift_Task__c"
        },
        "invitation":{
            "objectType":"b3s__Invitation__c",
            "contactFieldPath":"b3s__Contact__c",
            "contactRecordReference":"b3s__Contact__r",
            "siteTimezoneFieldPath":"b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c",
            "shiftFieldPath":"b3s__Shift__c",
            "statusFieldPath":"b3s__Status__c",
            "contactsLoader":"contacts",
            "allowSelectingThreshold":50,
            "allowBookingThreshold":0,
            "quickActions": [
                {
                    "label": "Accept",
                    "icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-up'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z' /> <path d='M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z' /> </svg>",
                    "successMessage": "Shift accepted",
                    "errorMessage": "Failed to accept shift. Error: {0}",
                    "confirmationMessage": "Are you sure?",
                    "visibleIf": {
                        "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                            "field": "b3s__Status__c",
                            "operator": "notequals",
                            "value": "Accepted"
                            }
                        ]
                        }
                    },
                    "updateFields": [
                        {
                        "field": "b3s__Status__c",
                        "value": "Accepted"
                        }
                    ]
                },
                {
                    "label": "Reject",
                    "icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-down'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 21.008a3 3 0 0 0 2.995 -2.823l.005 -.177v-4h2a3 3 0 0 0 2.98 -2.65l.015 -.173l.005 -.177l-.02 -.196l-1.006 -5.032c-.381 -1.625 -1.502 -2.796 -2.81 -2.78l-.164 .008h-8a1 1 0 0 0 -.993 .884l-.007 .116l.001 9.536a1 1 0 0 0 .5 .866a2.998 2.998 0 0 1 1.492 2.396l.007 .202v1a3 3 0 0 0 3 3z' /> <path d='M5 14.008a1 1 0 0 0 .993 -.883l.007 -.117v-9a1 1 0 0 0 -.883 -.993l-.117 -.007h-1a2 2 0 0 0 -1.995 1.852l-.005 .15v7a2 2 0 0 0 1.85 1.994l.15 .005h1z' /> </svg>",
                    "successMessage": "Shift rejected",
                    "errorMessage": "Failed to reject shift. Error: {0}",
                    "visibleIf": {
                        "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                            "field": "b3s__Status__c",
                            "operator": "notequals",
                            "value": "Rejected"
                            }
                        ]
                        }
                    },
                    "updateFields": [
                        {
                        "field": "b3s__Status__c",
                        "value": "Rejected"
                        }
                    ]
                }
            ],
            "contactTitle":[
                {
                    "label":"",
                    "fieldPath":"Name",
                    "targetRecordIdPath":"Id",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Title",
                    "fieldPath":"Title",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Email",
                    "fieldPath":"Email",
                    "formatter":"string",
                    "hideIfNull":false
                }
            ],
            "invitationTitle":[
                {
                    "label":"",
                    "fieldPath":"Name",
                    "targetRecordIdPath":"Id",
                    "formatter":"string",
                    "hideIfNull":false
                },
                {
                    "label":"Status",
                    "fieldPath":"b3s__Status__c",
                    "formatter":"string",
                    "hideIfNull":false
                },
                {
                    "label":"Contact",
                    "fieldPath":"b3s__Contact__r.Name",
                    "targetRecordIdPath":"b3s__Contact__c",
                    "formatter":"string",
                    "hideIfNull":false
                },
                {
                    "label":"Shift",
                    "fieldPath":"b3s__Shift__r.Name",
                    "targetRecordIdPath":"b3s__Shift__c",
                    "formatter":"string",
                    "hideIfNull":false
                },
                {
                    "label":"Seen",
                    "fieldPath":"b3s__Seen_Timestamp__c",
                    "formatter":"dateTime",
                    "hideIfNull":false
                },
                {
                    "label":"Created",
                    "fieldPath":"CreatedDate",
                    "formatter":"dateTime",
                    "hideIfNull":false
                }
            ],
            "shiftTitle":[
                {
                    "label":"",
                    "fieldPath":"Name",
                    "targetRecordIdPath":"Id",
                    "formatter":"string",
                    "hideIfNull":false
                },
                {
                    "label":"Start",
                    "fieldPath":"b3s__Absolute_Start_Time__c",
                    "formatter":"time",
                    "hideIfNull":false
                },
                {
                    "label":"End",
                    "fieldPath":"b3s__Absolute_En_Time__c",
                    "formatter":"time",
                    "hideIfNull":false
                },
                {
                    "label":"Status",
                    "fieldPath":"b3s__Status__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Job",
                    "fieldPath":"b3s__Work_Job__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Site",
                    "fieldPath":"b3s__Work_Site__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "contactFilters":[
                {
                    "label":"Contact",
                    "type":"reference",
                    "value":{
                        "labelField":"Name",
                        "valueField":"Id"
                    }
                }
            ],
            "shiftFilters":[
                {
                    "label":"Status",
                    "type":"select",
                    "value":{
                        "valueField":"b3s__Status__c",
                        "options":[
                            {
                                "label":"New",
                                "value":"New"
                            },
                            {
                                "label":"Confirmed",
                                "value":"Confirmed"
                            },
                            {
                                "label":"Cancelled",
                                "value":"Cancelled"
                            }
                        ]
                    }
                }
            ],
            "canAssign":{
                "condition":{
                    "allOrSome":"some",
                    "selectors":[
                        {
                            "field":"b3s__Status__c",
                            "operator":"equals",
                            "value":"New"
                        }
                    ]
                }
            },
            "canSelect":{
                "condition":{
                    "allOrSome":"some",
                    "selectors":[
                        {
                            "field":"b3s__Status__c",
                            "operator":"equals",
                            "value":"New"
                        }
                    ]
                }
            },
            "canCancelInvite":null,
            "canAssignInvite":null
        },
        "request":{
            "objectType":"b3s__Employee_Request__c",
            "startFieldPath":"b3s__Start__c",
            "absoluteStartFieldPath":"b3s__Start__c",
            "siteTimezoneFieldPath":"b3s__Contact__r.b3s__Timezone__c",
            "endFieldPath":"b3s__End__c",
            "lookBackExtendDays":1,
            "lookForwardExtendDays":1,
            "selectionClause":[
                "b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE Id != null AND (b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId))"
            ],
            "contactFieldPath":"b3s__Contact__c",
            "contactRecordPath":"b3s__Contact__r",
            "contactFirstNameFieldPath":"b3s__Contact__r.FirstName",
            "contactLastNameFieldPath":"b3s__Contact__r.LastName",
            "contactsLoader":"contacts",
            "recordStatusFieldPath":"b3s__Type__c",
            "additionalFields":[
                
            ],
            "contextMenu":{
                "recordNavigate":[
                    {
                        "label":"View Request",
                        "fieldPath":"Id"
                    }
                ]
            },
            "eventTooltipFields":[
                {
                    "label":"Worker",
                    "fieldPath":"b3s__Contact__r.Name",
                    "hideIfNull":false
                },
                {
                    "label":"Type",
                    "fieldPath":"b3s__Type__c",
                    "hideIfNull":false
                }
            ],
            "recordFormFieldsSettings":{
                "columns":"grid-cols-2"
            },
            "recordFormFields":[
                {
                    "field":"b3s__Start__c:b3s__End__c",
                    "type":"field-time-range-selector",
                    "labelOverride":"Times",
                    "required":true,
                    "disabled":false,
                    "props":{
                        "hideDate":false
                    },
                    "enableRepeatPattern":true
                },
                {
                    "isEmptyBlock":true
                },
                {
                    "isSeparator":true,
                    "label":"Details",
                    "columns":"col-span-2"
                },
                {
                    "field":"b3s__Type__c",
                    "type":"field-select",
                    "required":true,
                    "disabled":false
                },
                {
                    "field":"b3s__Contact__c",
                    "type":"field-select",
                    "required":true,
                    "disabled":false,
                    "loader":"contacts",
                    "optionLabelField":"Name"
                },
                {
                    "field":"b3s__Comments__c",
                    "type":"field-text-area",
                    "columns":"col-span-2",
                    "required":false,
                    "disabled":false
                }
            ],
            "recordHistoryData":[
                {
                    "dateFieldPath":"CreatedDate",
                    "label":"Created",
                    "isComplete":{
                        "selector":{
                            "field":"CreatedDate",
                            "operator":"isnull",
                            "value":false
                        }
                    }
                },
                {
                    "dateFieldPath":"LastModifiedDate",
                    "label":"Modified",
                    "isComplete":{
                        "selector":{
                            "field":"LastModifiedDate",
                            "operator":"isnull",
                            "value":false
                        }
                    }
                }
            ],
            "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":""
                    }
                }
            },
            "decorations":[
                {
                    "name":"not-available",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Type__c",
                                "operator":"equals",
                                "value":"Unavailable"
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg'  class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='currentColor'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-user-off'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M8.18 8.189a4.01 4.01 0 0 0 2.616 2.627m3.507 -.545a4 4 0 1 0 -5.59 -5.552' /><path d='M6 21v-2a4 4 0 0 1 4 -4h4c.412 0 .81 .062 1.183 .178m2.633 2.618c.12 .38 .184 .785 .184 1.204v2' /><path d='M3 3l18 18' /></svg>"
                    },
                    "title":{
                        "literal":"Unavailable"
                    }
                },
                {
                    "name":"available",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Type__c",
                                "operator":"equals",
                                "value":"Available"
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg' class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='currentColor'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-user-check'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0' /><path d='M6 21v-2a4 4 0 0 1 4 -4h4' /><path d='M15 19l2 2l4 -4' /></svg>"
                    },
                    "title":{
                        "literal":"Available"
                    }
                }
            ]
        },
        "shift":{
            "objectType":"b3s__Shift__c",
            "timeEntryMode":"rateBasis",
            "rateBasis":{"field":"b3s__Rate_Basis__c","loader":"rateBasisTemplates","jobField":"b3s__Work_Job__c","accountField":["b3s__Work_Job__r.b3s__Account__c","b3s__Work_Site__r.b3s__Account__c"],"jobLoader":"jobs"},
            "startFieldPath":"b3s__Scheduled_Start_Time__c",
            "endFieldPath":"b3s__Scheduled_End_Time__c",
            "actualStartFieldPath":"b3s__Actual_Start_Time__c",
            "actualEndFieldPath":"b3s__Actual_End_Time__c",
            "absoluteStartFieldPath":"b3s__Absolute_Start_Time__c",
            "absoluteEndFieldPath":"b3s__Absolute_End_Time__c",
            "siteTimezoneFieldPath":"b3s__Work_Site__r.b3s__Timezone__c",
            "demandParentFieldPath":"b3s__Shift_Demand__c",
            "demandRequiredStaffFieldPath":"b3s__Required_Staff__c",
            "demandAssignedCountFieldPath":"b3s__Assigned_Shift_Count__c",
            "shiftInvitesCountFieldPath": "b3s__Invitations__c",
            "dayStats": {
                "unassignedIf": {
                    "condition": {
                        "allOrSome": "some",
                        "selectors": [
                            { "field": "b3s__Status__c", "operator": "in", "value": ["Requested Swap", "Cancelled"] }
                        ]
                    }
                },
                "items": [
                    { "label": "Status", "fieldPath": "b3s__Status__c", "aggregate": "countBy" },
                    {
                        "label": "Broadcasting",
                        "aggregate": "count",
                        "condition": {
                            "allOrSome": "all",
                            "selectors": [
                                { "field": "b3s__Invitations__c", "operator": "greaterthan", "value": 0 },
                                { "field": "b3s__Contact__c", "operator": "isnull", "value": true }
                            ]
                        }
                    }
                ]
            },
            "templateRetentionFields":[
                {"field":"b3s__Scheduled_Start_Time__c","useContextDate":true},
                {"field":"b3s__Scheduled_End_Time__c","useContextDate":true},
                {"field":"b3s__Required_Staff__c","default":"1","showIf":{"condition":{"allOrSome":"all","selectors":[{"field":"b3s__Contact__c","operator":"isnull","value":true}]}}},
                {"field":"b3s__Work_Job__c"},
                {"field":"b3s__Work_Site__c"},
                {"field":"b3s__Work_Site_Location__c"},
                {"field":"b3s__Status__c"},
                {"field":"b3s__Comments__c"},
                {"field":"b3s__Internal_Comments__c"}
            ],
            "lookBackExtendDays":1,
            "lookForwardExtendDays":1,
            "selectionClause":[
                "b3s__Work_Job__r.b3s__Account__c =:contextId OR b3s__Work_Site__r.b3s__Account__c =:contextId",
                "b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE Id != null AND (b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId))"
            ],
            "quickActions": [
                {
                    "label": "Confirm",
                    "icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-up'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z' /> <path d='M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z' /> </svg>",
                    "successMessage": "Shift confirmed",
                    "errorMessage": "Failed to confirm shift. Error: {0}",
                    "confirmationMessage": "Are you sure?",
                    "visibleIf": {
                        "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                            "field": "b3s__Status__c",
                            "operator": "notequals",
                            "value": "Confirmed"
                            }
                        ]
                        }
                    },
                    "updateFields": [
                        {
                        "field": "b3s__Status__c",
                        "value": "Confirmed"
                        }
                    ]
                },
                {
                    "label": "Cancel",
                    "icon": "<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' class='icon icon-tabler icons-tabler-outline icon-tabler-cancel'> <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='M18.364 5.636l-12.728 12.728' /> </svg>",
                    "successMessage": "Shift cancelled",
                    "errorMessage": "Failed to cancel shift. Error: {0}",
                    "visibleIf": {
                        "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                            "field": "b3s__Status__c",
                            "operator": "notequals",
                            "value": "Cancelled"
                            }
                        ]
                        }
                    },
                    "updateFields": [
                        {
                        "field": "b3s__Status__c",
                        "value": "Cancelled"
                        }
                    ]
                },
                {
                    "label": "Request shift swap",
                    "icon": "<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' class='icon icon-tabler icons-tabler-outline icon-tabler-replace-user'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M21 11v-3c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-6m0 0l3 3m-3 -3l3 -3' /> <path d='M3 13.013v3c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586h6m0 0l-3 -3m3 3l-3 3' /> <path d='M16 16.502c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586c.53 0 1.039 -.211 1.414 -.586c.375 -.375 .586 -.884 .586 -1.414c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M4 4.502c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586c.53 0 1.039 -.211 1.414 -.586c.375 -.375 .586 -.884 .586 -1.414c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M21 21.499c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-2c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M9 9.499c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-2c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> </svg>",
                    "successMessage": "Shift swap requested",
                    "errorMessage": "Failed to request shift swap. Error: {0}",
                    "visibleIf": {
                        "condition": {
                        "allOrSome": "all",
                        "selectors": [
                            {
                            "field": "b3s__Status__c",
                            "operator": "notequals",
                            "value": "Requested Swap"
                            }
                        ]
                        }
                    },
                    "updateFields": [
                        {
                        "field": "b3s__Status__c",
                        "value": "Requested Swap"
                        }
                    ]
                }
            ],
            "shiftBulkViewTitle":[
                {
                    "label":"Job",
                    "fieldPath":"b3s__Work_Job__r.Name",
                    "hideIfNull":false
                },
                {
                    "label":"Site",
                    "fieldPath":"b3s__Work_Site__r.Name",
                    "hideIfNull":false
                }
            ],
            "additionalFields":[
                {
                    "field":"b3s__Check_In_Required__c"
                },
                {
                    "field":"b3s__Check_In_Time__c"
                },
                {
                    "field":"b3s__Check_In_Distance__c"
                },
                {
                    "field":"b3s__Clock_In_Distance__c"
                },
                {
                    "field":"b3s__Clock_Out_Distance__c"
                },
                {
                    "field":"Name"
                },
                {
                    "field":"b3s__Work_Job__r.b3s__Account__c"
                },
                {
                    "field":"b3s__Work_Site__r.b3s__Account__c"
                },
                {
                    "field":"b3s__Work_Job__r.b3s__Job_Group__c"
                },
                {
                    "field":"b3s__Work_Job__r.b3s__Job_Group__r.Name"
                },
                {
                    "field":"b3s__Work_Site__r.b3s__Location__Latitude__s"
                },
                {
                    "field":"b3s__Work_Site__r.b3s__Location__Longitude__s"
                },
                {
                    "field": "b3s__Total_Pay__c",
                    "readOnly": true
                },
                {
                    "field": "b3s__Total_Bill__c",
                    "readOnly": true
                },
                {
                    "field": "b3s__Currency__c",
                    "readOnly": true
                }
            ],
            "contactFieldPath":"b3s__Contact__c",
            "contactRecordPath":"b3s__Contact__r",
            "contactFirstNameFieldPath":"b3s__Contact__r.FirstName",
            "contactLastNameFieldPath":"b3s__Contact__r.LastName",
            "contactsLoader":"contacts",
            "matchingLoaders":[
                "contacts",
                "certificates",
                "certRequirements",
                "suitability",
                "sites",
                "workerContracts",
                "rateCards",
                "rateCardItems"
            ],
            "cancelledFieldPath":"b3s__Cancelled_Timestamp__c",
            "contextMenu":{
                "recordNavigate":[
                    {
                        "label":"View Working Pattern",
                        "fieldPath":"b3s__Working_Pattern__c"
                    },
                    {
                        "label":"View Shift",
                        "fieldPath":"Id"
                    }
                ],
                "canCut":{
                    "condition":{
                        "allOrSome": "all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                },
                "canCopy":{
                    "condition":{
                        "allOrSome": "all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                },
                "canCancel":{
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Actual_Start_Time__c",
                                "operator":"isnull",
                                "value":true
                            }
                        ]
                    }
                },
                "canEdit":{
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                },
                "canClone":{
                    "condition":{
                        "allOrSome":"some",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                },
                "canDelete":{
                    "condition":{
                        "allOrSome":"some",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                },
                "canMatch":{
                    "condition":{
                        "allOrSome":"some",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"notequals",
                                "value":"Cancelled"
                            }
                        ]
                    }
                }
            },
            "eventTooltipFields":[
                {
                    "label":"Scheduled Times",
                    "fieldPath":"b3s__Scheduled_Start_Time__c:b3s__Scheduled_End_Time__c",
                    "formatter":"startEnd",
                    "siteTimezoneFieldPath":"b3s__Work_Site__r.b3s__Timezone__c",
                    "hideIfNull":false
                },
                {
                    "label":"Worker",
                    "fieldPath":"b3s__Contact__r.Name",
                    "hideIfNull":false
                },
                {
                    "label":"Job",
                    "fieldPath":"b3s__Work_Job__r.Name",
                    "hideIfNull":false
                },
                {
                    "label":"Site",
                    "fieldPath":"b3s__Work_Site__r.Name",
                    "hideIfNull":true
                },
                {
                    "label":"Comments",
                    "fieldPath":"b3s__Comments__c",
                    "hideIfNull":false
                },
                {
                    "label":"Status",
                    "fieldPath":"b3s__Status__c",
                    "hideIfNull":true
                },
                {
                    "label":"Cancellation Reason",
                    "fieldPath":"b3s__Cancellation_Reason__c",
                    "hideIfNull":true
                },
                {
                    "label":"Breaks",
                    "type":"break",
                    "childObjectName":"b3s__Break__c",
                    "childField":"b3s__Shift__c",
                    "parentFieldPath":"Id",
                    "title":[
                        {
                            "label":"Break Times",
                            "fieldPath":"b3s__Start__c:b3s__End__c",
                            "formatter":"startEnd",
                            "siteTimezoneFieldPath":"b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c",
                            "hideIfNull":false
                        }
                    ]
                },
                {
                    "label":"Tasks",
                    "type":"task",
                    "childObjectName":"b3s__Shift_Task__c",
                    "childField":"b3s__Shift__c",
                    "parentFieldPath":"Id",
                    "title":[
                        {
                            "label":"Task Times",
                            "fieldPath":"b3s__Start__c:b3s__End__c",
                            "formatter":"startEnd",
                            "siteTimezoneFieldPath":"b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c",
                            "hideIfNull":false
                        },
                        {
                            "label":"Job",
                            "fieldPath":"b3s__Work_Job__r.Name",
                            "formatter":"string",
                            "hideIfNull":true
                        },
                        {
                            "label":"Site",
                            "fieldPath":"b3s__Work_Site__r.Name",
                            "formatter":"string",
                            "hideIfNull":true
                        }
                    ]
                }
            ],
            "eventAlerts":{
                "objectName":"b3s__Event_Alert_V2__c",
                "countFieldPath":"b3s__Event_Penalties__c",
                "startField":"b3s__Shift__r.b3s__Absolute_Start_Time__c",
                "shiftReferenceField":"b3s__Shift__c",
                "categoryField":"b3s__Category__c",
                "detailsField":"b3s__Details__c",
                "severityField":"b3s__Severity__c",
                "pointsField":"b3s__Points__c",
                "manualAlertField":"b3s__Manually_Created__c",
                "blockingField":"b3s__Is_Blocking__c"
            },
            "complianceRestrictions":{
                "blockingCountFieldPath":"b3s__Blocking_Alerts__c",
                "lockWhileChecking":["edit","cancel","delete","quickActions"],
                "fields":[
                    { "field":"b3s__Status__c", "values":["Confirmed"] },
                    { "field":"b3s__Work_Job__c" },
                    { "field":"b3s__Work_Site__c" },
                    { "field":"b3s__Rate_Group__c" }
                ]
            },
            "isCancelled":{
                "condition":{
                    "allOrSome":"some",
                    "selectors":[
                        {
                            "field":"b3s__Status__c",
                            "operator":"equals",
                            "value":"Cancelled"
                        },
                        {
                            "field":"b3s__Cancelled_Timestamp__c",
                            "operator":"isnull",
                            "value":false
                        }
                    ]
                }
            },
            "isReadOnly":{
                "condition":{
                    "allOrSome":"some",
                    "selectors":[
                        {
                            "field":"b3s__Status__c",
                            "operator":"equals",
                            "value":"Cancelled"
                        },
                        {
                            "field":"b3s__Cancelled_Timestamp__c",
                            "operator":"isnull",
                            "value":false
                        }
                    ]
                }
            },
            "recordFormFieldsSettings":{
                "columns":"grid-cols-2"
            },
            "recordFormFields":[
                {
                    "field":"b3s__Rate_Basis__c",
                    "labelOverride":"Rate Basis",
                    "type":"field-select",
                    "default":"Hourly",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "required":false,
                    "disabled":false,
                    "columns":"col-span-2",
                    "templateLoader":"rateBasisTemplates",
                    "templateJobField":"b3s__Work_Job__c",
                    "templateAccountField":["b3s__Work_Job__r.b3s__Account__c","b3s__Work_Site__r.b3s__Account__c"],
                    "templateJobLoader":"jobs"
                },
                {
                    "field":"b3s__Scheduled_Start_Time__c:b3s__Scheduled_End_Time__c",
                    "props":{
                        "hideDate":true
                    },
                    "labelOverride":"Scheduled Times",
                    "type":"field-time-range-selector",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "required":true,
                    "disabled":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Shift_Demand__c",
                                    "operator":"isnull",
                                    "value":false
                                },
                                {
                                    "field":"b3s__Rate_Basis__c",
                                    "operator":"equals",
                                    "value":"Full Day"
                                },
                                {
                                    "field":"b3s__Rate_Basis__c",
                                    "operator":"equals",
                                    "value":"Half Day"
                                }
                            ]
                        }
                    },
                    "enableRepeatPattern":true,
                    "rateBasis":{"field":"b3s__Rate_Basis__c","loader":"rateBasisTemplates","jobField":"b3s__Work_Job__c","accountField":["b3s__Work_Job__r.b3s__Account__c","b3s__Work_Site__r.b3s__Account__c"],"jobLoader":"jobs"}
                },
                {
                    "field":"b3s__Actual_Start_Time__c:b3s__Actual_End_Time__c",
                    "props":{
                        "hideDate":false,
                        "hideAllDayToggle":false,
                        "halfOpenInterval":true
                    },
                    "labelOverride":"Actual Times",
                    "type":"field-time-range-selector",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "required":false,
                    "disabled":false
                },
                {
                    "isSeparator":true,
                    "label":"Demand",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "showIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Contact__c",
                                    "operator":"isnull",
                                    "value":true
                                }
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Required_Staff__c",
                    "type":"field-number-input",
                    "props":{
                        "helptext":""
                    },
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":true
                    },
                    "required":false,
                    "showIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Contact__c",
                                    "operator":"isnull",
                                    "value":true
                                }
                            ]
                        }
                    },
                    "default":"1"
                },
                {
                    "field":"b3s__Contact__c",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"contacts",
                    "optionLabelField":"Name"
                },
                {
                    "isSeparator":true,
                    "label":"Job",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":false
                    }
                },
                {
                    "field":"b3s__Work_Job__c",
                    "labelOverride":"Job",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":true
                    },
                    "required":true,
                    "disabled":false,
                    "default":":contextId",
                    "optionsInPopout":true,
                    "loader":"jobs",
                    "optionLabelField":"Name"
                },
                {
                    "field":"b3s__Rate_Group__c",
                    "labelOverride":"Rate Group",
                    "type":"field-select",
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"rateGroups",
                    "optionLabelField":"Name",
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Work_Job__c",
                                    "operator":"isnull",
                                    "value":false
                                },
                                {
                                    "field":"b3s__Work_Job__c",
                                    "operator":"equals",
                                    "targetField":"b3s__Work_Job__c"
                                }
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Working_Pattern__c",
                    "labelOverride":"Working Pattern",
                    "type":"field-select",
                    "showIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Contact__c",
                                    "operator":"isnull",
                                    "value":false
                                }
                            ]
                        }
                    },
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "required":false,
                    "disabled":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Contact__c",
                                    "operator":"isnull",
                                    "value":true
                                }
                            ]
                        }
                    },
                    "optionsInPopout":true,
                    "loader":"workingPatterns",
                    "optionLabelField":"Name",
                    "optionExtendedDetails":[
                        {
                            "label":"Contact",
                            "targetField":"b3s__Contact__r.Name"
                        },
                        {
                            "label":"Job",
                            "targetField":"b3s__Job__r.Name"
                        }
                    ],
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Contact__c",
                                    "operator":"equals",
                                    "targetField":"b3s__Contact__c"
                                },
                                {
                                    "field":"b3s__Work_Job__c",
                                    "operator":"equals",
                                    "targetField":"b3s__Job__c"
                                }
                            ]
                        }
                    }
                },
                {
                    "isSeparator":true,
                    "label":"Location",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    }
                },
                {
                    "field":"b3s__Work_Site__c",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"sites",
                    "optionLabelField":"Name",
                    "createAction":{
                        "objectName":"b3s__Site__c",
                        "fields":[
                            "Name",
                            "b3s__Account__c",
                            "b3s__Street__c",
                            "b3s__City__c",
                            "b3s__Country__c",
                            "b3s__Timezone__c"
                        ],
                        "disabledFields":[
                            
                        ],
                        "requiredFields":[
                            "Name",
                            "b3s__City__c"
                        ],
                        "loader":"sites"
                    },
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Work_Job__c",
                                    "fieldLoader":"jobs",
                                    "fieldLoaderField":"b3s__Account__c",
                                    "operator":"equals",
                                    "targetField":"b3s__Account__c"
                                }
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Work_Site_Location__c",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"locations",
                    "optionLabelField":"Name",
                    "showIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Work_Site__c",
                                    "operator":"isnull",
                                    "value":false
                                }
                            ]
                        }
                    },
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"all",
                            "selectors":[
                                {
                                    "field":"b3s__Work_Site__c",
                                    "operator":"equals",
                                    "targetField":"b3s__Site__c"
                                }
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Reason_Code__c",
                    "labelOverride":"Reason Code",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"reasonCodes",
                    "optionLabelField":"Name",
                    "optionValueField":"Name",
                    "optionExtendedDetails":[
                        {"label":"Description","targetField":"b3s__Description__c"}
                    ],
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {"field":"b3s__Work_Job__c","operator":"isnull","value":true},
                                {"field":"b3s__Work_Job__c","fieldLoader":"jobs","fieldLoaderField":"b3s__Account__c","operator":"equals","targetField":"b3s__Account__c"},
                                {"operator":"equals","targetField":"b3s__Account__c"}
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Cost_Center__c",
                    "labelOverride":"Cost Code",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":false,
                    "disabled":false,
                    "optionsInPopout":true,
                    "loader":"costCodes",
                    "optionLabelField":"b3s__Code__c",
                    "optionExtendedDetails":[
                        {"label":"Description","targetField":"b3s__Description__c"}
                    ],
                    "showOptionIf":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {"field":"b3s__Work_Job__c","operator":"isnull","value":true},
                                {"field":"b3s__Work_Job__c","fieldLoader":"jobs","fieldLoaderField":"b3s__Account__c","operator":"equals","targetField":"b3s__Account__c"}
                            ]
                        }
                    }
                },
                {
                    "isSeparator":true,
                    "label":"Shift Status",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":false
                    }
                },
                {
                    "field":"b3s__Status__c",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":false,
                    "disabled":false
                },
                {
                    "field":"b3s__Cancellation_Reason__c",
                    "type":"field-select",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":true
                    },
                    "required":true,
                    "disabled":false,
                    "showIf":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Status__c",
                                    "operator":"equals",
                                    "value":"Cancelled"
                                }
                            ]
                        }
                    }
                },
                {
                    "field":"b3s__Comments__c",
                    "type":"field-text-area",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":true,
                        "blukCreateView":false
                    },
                    "required":false,
                    "disabled":false
                },
                {
                    "isSeparator":true,
                    "label":"Approval",
                    "columns":"col-span-2",
                    "translationKey":"relatedSection",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    }
                },
                {
                    "field":"b3s__Internal_Comments__c",
                    "label":"Manager Signature",
                    "type":"field-signature",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "props":{
                        "outputFormat":"base64",
                        "disableTypedSignature":false,
                        "placeholder":"Sign here"
                    },
                    "required":false,
                    "disabled":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Status__c",
                                    "operator":"notequals",
                                    "value":"New"
                                }
                            ]
                        }
                    }
                },
                {
                    "isSeparator":true,
                    "label":"Related",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    }
                },
                {
                    "labelOverride":"Shift Tasks",
                    "type":"task",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "childObjectName":"b3s__Shift_Task__c",
                    "parentFieldPath":"Id",
                    "childField":"b3s__Shift__c",
                    "canEdit":true,
                    "canDelete":true,
                    "canCreate":true,
                    "title":[
                        {
                            "label":"Times",
                            "fieldPath":"b3s__Start__c:b3s__End__c",
                            "formatter":"startEnd",
                            "hideIfNull":true,
                            "siteTimezoneFieldPath":"b3s__Work_Site__r.b3s__Timezone__c"
                        },
                        {
                            "label":"Job",
                            "fieldPath":"b3s__Work_Job__r.Name",
                            "formatter":"string",
                            "hideIfNull":true
                        },
                        {
                            "label":"Site",
                            "fieldPath":"b3s__Work_Site__r.Name",
                            "formatter":"string",
                            "hideIfNull":true
                        }
                    ],
                    "recordFormFields":[
                        {
                            "formField":"b3s__Start__c:b3s__End__c",
                            "labelOverride":"Task Times",
                            "type":"field-time-range-selector",
                            "required":true,
                            "disabled":false,
                            "props":{
                                "hideDate":true,
                                "hideAllDayToggle":true
                            },
                            "siteTimezoneFieldPath":"b3s__Work_Site__r.b3s__Timezone__c"
                        },
                        {
                            "formField":"b3s__Work_Site__c",
                            "type":"field-select",
                            "loader":"sites",
                            "optionLabelField":"Name",
                            "required":false,
                            "disabled":false
                        },
                        {
                            "formField":"b3s__Work_Job__c",
                            "type":"field-select",
                            "loader":"jobs",
                            "optionLabelField":"Name",
                            "required":false,
                            "disabled":false
                        }
                    ]
                },
                {
                    "labelOverride":"Breaks",
                    "type":"break",
                    "columns":"col-span-2",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "childObjectName":"b3s__Break__c",
                    "parentFieldPath":"Id",
                    "childField":"b3s__Shift__c",
                    "canEdit":true,
                    "canDelete":true,
                    "canCreate":true,
                    "title":[
                        {
                            "label":"Break Times",
                            "fieldPath":"b3s__Start__c:b3s__End__c",
                            "formatter":"startEnd",
                            "hideIfNull":true,
                            "siteTimezoneFieldPath":"b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c"
                        },
                        {
                            "label":"Comments",
                            "fieldPath":"b3s__Comments__c",
                            "formatter":"string",
                            "hideIfNull":true
                        }
                    ],
                    "recordFormFields":[
                        {
                            "formField":"b3s__Start__c:b3s__End__c",
                            "labelOverride":"Break Times",
                            "type":"field-time-range-selector",
                            "required":true,
                            "disabled":false,
                            "props":{
                                "hideDate":true,
                                "hideAllDayToggle":true
                            },
                            "siteTimezoneFieldPath":"b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c"
                        },
                        {
                            "formField":"b3s__Is_Auto_Created__c",
                            "labelOverride":"Is Auto Created?",
                            "type":"field-checkbox",
                            "required":false,
                            "disabled":false
                        },
                        {
                            "formField":"b3s__Comments__c",
                            "labelOverride":"Comments",
                            "type":"field-text-area",
                            "required":false,
                            "disabled":false,
                            "showIf":{
                                "condition":{
                                    "allOrSome":"some",
                                    "selectors":[
                                        {
                                            "field":"b3s__Is_Auto_Created__c",
                                            "operator":"equals",
                                            "value":true
                                        }
                                    ]
                                }
                            }
                        }
                    ]
                },
                {
                    "label":"Shift Files",
                    "columns":"col-span-2",
                    "translationKey":"record_files",
                    "type":"record-files-manager",
                    "views":{
                        "shiftView":true,
                        "bulkEditView":false,
                        "blukCreateView":false
                    },
                    "canDelete":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Status__c",
                                    "operator":"equals",
                                    "value":"New"
                                }
                            ]
                        }
                    },
                    "canCreate":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Status__c",
                                    "operator":"equals",
                                    "value":"New"
                                }
                            ]
                        }
                    }
                }
            ],
            "cancelFormFields":[
                {
                    "field":"b3s__Status__c",
                    "type":"field-select",
                    "required":true,
                    "disabled":false,
                    "default":"Cancelled",
                    "options":[
                        {
                            "label":"Cancelled",
                            "value":"Cancelled"
                        },
                        {
                            "label":"New",
                            "value":"New"
                        }
                    ]
                },
                {
                    "field":"b3s__Cancellation_Reason__c",
                    "type":"field-select",
                    "required":true,
                    "disabled":false,
                    "showIf":{
                        "condition":{
                            "allOrSome":"some",
                            "selectors":[
                                {
                                    "field":"b3s__Status__c",
                                    "operator":"equals",
                                    "value":"Cancelled"
                                }
                            ]
                        }
                    }
                }
            ],
            "reassignEventFieldsFlush":[
                {
                    "field":"b3s__Actual_Start_Time__c",
                    "value":null
                },
                {
                    "field":"b3s__Actual_End_Time__c",
                    "value":null
                },
                {
                    "field":"b3s__Cancelled_Timestamp__c",
                    "value":null
                },
                {
                    "field":"b3s__Status__c",
                    "value":"New"
                }
            ],
            "cloneEventFieldsFlush":[
                {
                    "field":"b3s__Actual_Start_Time__c",
                    "value":null
                },
                {
                    "field":"b3s__Actual_End_Time__c",
                    "value":null
                },
                {
                    "field":"b3s__Cancelled_Timestamp__c",
                    "value":null
                },
                {
                    "field":"b3s__Status__c",
                    "value":"New"
                }
            ],
            "demandAssignFieldsFlush":[
                {
                    "field":"b3s__Required_Staff__c",
                    "value":1
                }
            ],
            "demandUpdateFieldsSync":[
                "b3s__Site__c",
                "b3s__Work_Site__r",
                "b3s__Work_Job__c",
                "b3s__Work_Job__r",
                "b3s__Status__c",
                "b3s__Scheduled_Start_Time__c",
                "b3s__Scheduled_End_Time__c"
            ],
            "moveRestrictions":[
                {
                    "type":"warning",
                    "message":"Cannot move a cancelled shift",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"Cancelled"
                            },
                            {
                                "field":"b3s__Shift_Demand__c",
                                "operator":"isnull",
                                "value":true
                            }
                        ]
                    }
                }
            ],
            "cancelRestrictions":[
                
            ],
            "editRestrictions":[
                {
                    "type":"warning",
                    "message":"This shift cannot be edited as it is cancelled",
                    "condition":{
                        "allOrSome":"some",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"Cancelled"
                            },
                            {
                                "field":"b3s__Cancelled_Timestamp__c",
                                "operator":"isnull",
                                "value":false
                            }
                        ]
                    }
                }
            ],
            "cloneRestrictions":[
                
            ],
            "deleteRestrictions":[
                {
                    "type":"warning",
                    "message":"This shift cannot be deleted as it is cancelled",
                    "condition":{
                        "allOrSome":"some",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"Cancelled"
                            },
                            {
                                "field":"b3s__Cancelled_Timestamp__c",
                                "operator":"isnull",
                                "value":false
                            }
                        ]
                    }
                }
            ],
            "decorations":[
                {
                    "name":"shift-is-vms",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__VMS__c",
                                "operator":"equals",
                                "value":true
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<span class='badge badge-xs badge-info'>VMS</span>"
                    },
                    "title":{
                        "literal":"VMS shift"
                    }
                },
                {
                    "name":"shift-is-new",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"New"
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg'  class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='currentColor'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-tilt-shift'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M8.56 3.69a9 9 0 0 0 -2.92 1.95' /><path d='M3.69 8.56a9 9 0 0 0 -.69 3.44' /><path d='M3.69 15.44a9 9 0 0 0 1.95 2.92' /><path d='M8.56 20.31a9 9 0 0 0 3.44 .69' /><path d='M15.44 20.31a9 9 0 0 0 2.92 -1.95' /><path d='M20.31 15.44a9 9 0 0 0 .69 -3.44' /><path d='M20.31 8.56a9 9 0 0 0 -1.95 -2.92' /><path d='M15.44 3.69a9 9 0 0 0 -3.44 -.69' /><path d='M12 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0' /></svg>"
                    },
                    "title":{
                        "literal":"Shift New"
                    }
                },
                {
                    "name":"shift-is-confirmed",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"Confirmed"
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg'  class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='currentColor'  class='icon icon-tabler icons-tabler-filled icon-tabler-tilt-shift'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M8.178 2.766a1 1 0 1 1 .764 1.848a8 8 0 0 0 -2.595 1.733a1 1 0 1 1 -1.414 -1.414a10 10 0 0 1 3.245 -2.167' /><path d='M2.767 8.176a1 1 0 1 1 1.846 .768a8 8 0 0 0 -.613 3.058a1 1 0 0 1 -2 -.004a10 10 0 0 1 .767 -3.822' /><path d='M3.308 14.516a1 1 0 0 1 1.306 .542a8 8 0 0 0 1.733 2.595a1 1 0 1 1 -1.414 1.414a10 10 0 0 1 -2.167 -3.245a1 1 0 0 1 .542 -1.306' /><path d='M7.637 19.926a1 1 0 0 1 1.307 -.54a8 8 0 0 0 3.058 .614a1 1 0 0 1 -.004 2a10 10 0 0 1 -3.822 -.767a1 1 0 0 1 -.54 -1.307' /><path d='M17.653 17.653a1 1 0 1 1 1.414 1.414a10 10 0 0 1 -3.245 2.167a1 1 0 1 1 -.764 -1.848a8 8 0 0 0 2.595 -1.733' /><path d='M21.002 11a1 1 0 0 1 .998 1.002a10 10 0 0 1 -.767 3.822a1 1 0 1 1 -1.846 -.768a8 8 0 0 0 .613 -3.058a1 1 0 0 1 1.002 -.998' /><path d='M17.653 4.933a1 1 0 0 1 1.414 0a10 10 0 0 1 2.167 3.245a1 1 0 1 1 -1.848 .764a8 8 0 0 0 -1.733 -2.595a1 1 0 0 1 0 -1.414' /><path d='M12.002 2a10 10 0 0 1 3.822 .767a1 1 0 1 1 -.768 1.846a8 8 0 0 0 -3.058 -.613a1 1 0 0 1 .004 -2' /><path d='M12 9a3 3 0 1 1 -3 3l.005 -.176a3 3 0 0 1 2.995 -2.824' /></svg>"
                    },
                    "title":{
                        "literal":"Shift Confirmed"
                    }
                },
                {
                    "name":"shift-clocked-in",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Actual_Start_Time__c",
                                "operator":"isnull",
                                "value":false
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg' class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='currentColor'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-clock-play'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M12 7v5l2 2' /><path d='M17 22l5 -3l-5 -3z' /><path d='M13.017 20.943a9 9 0 1 1 7.831 -7.292' /></svg>"
                    },
                    "title":{
                        "literal":"Shift Started"
                    }
                },
                {
                    "name":"shift-clocked-out",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Actual_End_Time__c",
                                "operator":"isnull",
                                "value":false
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg' class='h-4 w-4'  width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='currentColor'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-clock-stop'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M21 12a9 9 0 1 0 -9 9' /><path d='M12 7v5l1 1' /><path d='M16 16h6v6h-6z' /></svg>"
                    },
                    "title":{
                        "literal":"Shift Ended"
                    }
                },
                {
                    "name":"client-approval-status",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Client_Approval_Timestamp__c",
                                "operator":"isnull",
                                "value":false
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg'  class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='green'  stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-signature'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M3 17c3.333 -3.333 5 -6 5 -8c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 4.877 2.5 6c1.5 2 2.5 2.5 3.5 1l2 -3c.333 2.667 1.333 4 3 4c.53 0 2.639 -2 3 -2c.517 0 1.517 .667 3 2' /></svg>"
                    },
                    "title":{
                        "literal":"Approved"
                    }
                },
                {
                    "name":"cancelled-status",
                    "condition":{
                        "allOrSome":"all",
                        "selectors":[
                            {
                                "field":"b3s__Status__c",
                                "operator":"equals",
                                "value":"Cancelled"
                            }
                        ]
                    },
                    "icon":{
                        "svg":"<svg  xmlns='http://www.w3.org/2000/svg'  class='h-4 w-4' width='24'  height='24'  viewBox='0 0 24 24'  fill='none'  stroke='red' stroke-width='2'  stroke-linecap='round'  stroke-linejoin='round'  class='icon icon-tabler icons-tabler-outline icon-tabler-cancel'><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='M18.364 5.636l-12.728 12.728' /></svg>"
                    },
                    "title":{
                        "literal":"Cancelled"
                    }
                }
            ],
            "topBorder":{
                "match":{
                    "field":"b3s__Status__c",
                    "equals":{
                        "New":{
                            "literal":"border-t-amber-600 border-t-4 border-t-solid"
                        },
                        "Cancelled":{
                            "literal":"border-t-red-500 border-t-4 border-t-solid"
                        },
                        "Confirmed":{
                            "literal":"border-t-green-500 border-t-4 border-t-solid"
                        }
                    },
                    "otherwise":{
                        "literal":""
                    }
                }
            }
        }
    },
    "views":[
        {
            "type":"Worker",
            "name":"byWorker",
            "object":"Contact",
            "icon":"<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'  class='icon icon-tabler icons-tabler-outline icon-tabler-users'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0' /><path d='M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2' /><path d='M16 3.13a4 4 0 0 1 0 7.75' /><path d='M21 21v-2a4 4 0 0 0 -3 -3.85' /></svg>",
            "active":true,
            "config":{
                "type":"resourceTimelineWeek",
                "slotDuration":{
                    "days":1
                },
                "duration":{
                    "weeks":2
                },
                "eventMaxStack":5
            },
            "increment":{
                "next":{
                    "days":14
                },
                "prev":{
                    "days":-14
                }
            },
            "shiftTitle":[
                {
                    "label":"Job",
                    "fieldPath":"b3s__Work_Job__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Site",
                    "fieldPath":"b3s__Work_Site__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Location",
                    "fieldPath":"b3s__Work_Site_Location__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"Status",
                    "fieldPath":"b3s__Status__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label": "Pay",
                    "fieldPath": "b3s__Total_Pay__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                },
                {
                    "label": "Bill",
                    "fieldPath": "b3s__Total_Bill__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                }
            ],
            "requestTitle":[
                {
                    "match":{
                        "field":"b3s__Type__c"
                    }
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "placementTitle":[
                {
                    "match":{
                        "field":"b3s__Job__r.Name"
                    }
                }
            ],
            "resources":{
                "static":[
                    {
                        "id":"*",
                        "fieldPath":"b3s__Contact__c",
                        "recordPath":"b3s__Contact__r",
                        "title":"Unassigned",
                        "sort":"a",
                        "type":"unassigned-shifts"
                    }
                ],
                "dynamic":[
                    {
                        "loader":"contacts",
                        "fieldPath":"b3s__Contact__c",
                        "recordPath":"b3s__Contact__r",
                        "fieldsFlush":[
                            
                        ],
                        "resourceId":{
                            "match":[
                                {
                                    "field":"b3s__Contact__c"
                                },
                                {
                                    "field":"b3s__Contact__c"
                                }
                            ]
                        },
                        "title":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "sort":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "additionalFields":[
                            {
                                "label":"Description",
                                "fieldPath":"Description",
                                "formatter":"string",
                                "hideIfNull":false
                            },
                            {
                                "label":"Mobile phone",
                                "match":{
                                    "field":"MobilePhone"
                                }
                            },
                            {
                                "label":"Email",
                                "match":{
                                    "field":"Email"
                                }
                            },
                            {
                                "label":"Created date",
                                "match":{
                                    "field":"CreatedDate",
                                    "formatter":"dateTime"
                                }
                            }
                        ]
                    }
                ]
            }
        },
        {
            "label":"Job",
            "name":"byJob",
            "icon":"<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'  class='icon icon-tabler icons-tabler-outline icon-tabler-briefcase-2'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9z' /><path d='M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2' /></svg>",
            "active":false,
            "config":{
                "type":"resourceTimelineWeek",
                "slotDuration":{
                    "days":1
                },
                "duration":{
                    "weeks":2
                },
                "eventMaxStack":5
            },
            "increment":{
                "next":{
                    "days":14
                },
                "prev":{
                    "days":-14
                }
            },
            "shiftTitle":[
                {
                    "label":"Contact",
                    "fieldPath":"b3s__Contact__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Work_Site__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Work_Site_Location__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Status__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label": "Pay",
                    "fieldPath": "b3s__Total_Pay__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                },
                {
                    "label": "Bill",
                    "fieldPath": "b3s__Total_Bill__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                }
            ],
            "requestTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Type__c"
                    }
                },
                {
                    "label":"Comments",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "placementTitle":[
                {
                    "match":{
                        "field":"b3s__Job__r.Name"
                    }
                }
            ],
            "resources":{
                "static":[
                    {
                        "id":"*",
                        "fieldPath":"b3s__Work_Job__c",
                        "recordPath":"b3s__Work_Job__r",
                        "title":"Unassigned",
                        "sort":"a",
                        "type":"unassigned-shifts"
                    }
                ],
                "dynamic":[
                    {
                        "hideAvatar":true,
                        "loader":"jobs",
                        "fieldPath":"b3s__Work_Job__c",
                        "recordPath":"b3s__Work_Job__r",
                        "fieldsFlush":[
                            
                        ],
                        "resourceId":{
                            "match":{
                                "field":"b3s__Work_Job__c"
                            }
                        },
                        "title":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "sort":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "additionalFields":[
                            {
                                "label":"Job type",
                                "match":{
                                    "field":"b3s__Job_Group__r.Name"
                                }
                            },
                            {
                                "label":"Account name",
                                "match":{
                                    "field":"b3s__Account__c.Name"
                                }
                            },
                            {
                                "label":"Created date",
                                "match":{
                                    "field":"CreatedDate",
                                    "formatter":"dateTime"
                                }
                            }
                        ]
                    }
                ]
            }
        },
        {
            "label":"Site",
            "name":"bySite",
            "icon":"<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'  class='icon icon-tabler icons-tabler-outline icon-tabler-building-factory-2'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M3 21h18' /><path d='M5 21v-12l5 4v-4l5 4h4' /><path d='M19 21v-8l-1.436 -9.574a.5 .5 0 0 0 -.495 -.426h-1.145a.5 .5 0 0 0 -.494 .418l-1.43 8.582' /><path d='M9 17h1' /><path d='M14 17h1' /></svg>",
            "active":false,
            "config":{
                "type":"resourceTimelineWeek",
                "slotDuration":{
                    "days":1
                },
                "duration":{
                    "weeks":2
                },
                "eventMaxStack":5
            },
            "increment":{
                "next":{
                    "days":14
                },
                "prev":{
                    "days":-14
                }
            },
            "shiftTitle":[
                {
                    "label":"Contact",
                    "fieldPath":"b3s__Contact__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Work_Site_Location__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Work_Job__r.Name",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Status__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label":"",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                },
                {
                    "label": "Pay",
                    "fieldPath": "b3s__Total_Pay__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                },
                {
                    "label": "Bill",
                    "fieldPath": "b3s__Total_Bill__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                }
            ],
            "requestTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Type__c"
                    }
                },
                {
                    "label":"Comments",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "placementTitle":[
                {
                    "match":{
                        "field":"b3s__Job__r.Name"
                    }
                }
            ],
            "resources":{
                "static":[
                    {
                        "id":"*",
                        "fieldPath":"b3s__Work_Site__c",
                        "recordPath":"b3s__Work_Site__r",
                        "title":"Unassigned",
                        "sort":"a",
                        "type":"unassigned-shifts"
                    }
                ],
                "dynamic":[
                    {
                        "hideAvatar":true,
                        "loader":"sites",
                        "fieldPath":"b3s__Work_Site__c",
                        "recordPath":"b3s__Work_Site__r",
                        "fieldsFlush":[
                            
                        ],
                        "resourceId":{
                            "match":{
                                "field":"b3s__Work_Site__c"
                            }
                        },
                        "title":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "sort":{
                            "match":{
                                "field":"Name"
                            }
                        },
                        "additionalFields":[
                            {
                                "label":"Timezone",
                                "fieldPath":"b3s__Timezone__c",
                                "formatter":"string",
                                "hideIfNull":true
                            }
                        ]
                    }
                ]
            }
        },
        {
            "type":"Month",
            "name":"byMonth",
            "icon":"<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'  class='icon icon-tabler icons-tabler-outline icon-tabler-calendar-month'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z' /><path d='M16 3v4' /><path d='M8 3v4' /><path d='M4 11h16' /><path d='M7 14h.013' /><path d='M10.01 14h.005' /><path d='M13.01 14h.005' /><path d='M16.015 14h.005' /><path d='M13.015 17h.005' /><path d='M7.01 17h.005' /><path d='M10.01 17h.005' /></svg>",
            "active":false,
            "increment":{
                "next":{
                    "months":1
                },
                "prev":{
                    "months":-1
                }
            },
            "config":{
                "type":"dayGridMonth"
            },
            "shiftTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Work_Job__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Work_Site__r.Name"
                    }
                },
                {
                    "label": "Pay",
                    "fieldPath": "b3s__Total_Pay__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                },
                {
                    "label": "Bill",
                    "fieldPath": "b3s__Total_Bill__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                }
            ],
            "requestTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Type__c"
                    }
                },
                {
                    "label":"Comments",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "placementTitle":[
                {
                    "match":{
                        "field":"b3s__Job__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__End__c"
                    }
                }
            ]
        },
        {
            "type":"List View",
            "name":"byList",
            "icon":"<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'  class='icon icon-tabler icons-tabler-outline icon-tabler-list-details'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M13 5h8' /><path d='M13 9h5' /><path d='M13 15h8' /><path d='M13 19h5' /><path d='M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z' /><path d='M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z' /></svg>",
            "active":false,
            "increment":{
                "next":{
                    "days":1
                },
                "prev":{
                    "days":-1
                }
            },
            "config":{
                "type":"listDay",
                "slotDuration":{
                    "days":1
                },
                "duration":{
                    "days":1
                }
            },
            "shiftTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Work_Job__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Work_Site__r.Name"
                    }
                },
                {
                    "label": "Pay",
                    "fieldPath": "b3s__Total_Pay__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                },
                {
                    "label": "Bill",
                    "fieldPath": "b3s__Total_Bill__c",
                    "formatter": "currency",
                    "currencyFieldPath": "b3s__Currency__c",
                    "hideIfNull": true
                }
            ],
            "requestTitle":[
                {
                    "match":{
                        "field":"b3s__Contact__r.Name"
                    }
                },
                {
                    "match":{
                        "field":"b3s__Type__c"
                    }
                },
                {
                    "label":"Comments",
                    "fieldPath":"b3s__Comments__c",
                    "formatter":"string",
                    "hideIfNull":true
                }
            ],
            "placementTitle":[
                {
                    "match":{
                        "field":"b3s__Job__r.Name"
                    }
                }
            ]
        }
    ],
    "resourceAreaWidth":"20%",
    "slotLabelFormat":[
        {
            "weekday":"short",
            "day":"numeric",
            "month":"short"
        }
    ],
    "timeZone":"local",
    "listDaySideFormat":{
        "weekday":"long",
        "day":"numeric",
        "month":"long",
        "year":"numeric"
    },
    "height":"100vh",
    "dayMaxEventRows":4
}
        ]]></value>
    </values>
    <values>
        <field>b3s__Loaders__c</field>
        <value xsi:type="xsd:string"><![CDATA[
[
    {
        "name": "certRequirements",
        "objectName": "b3s__Certificate_Requirement__c",
        "filterRecordsBy": [
            "Id != null"
        ],
        "groupRecordsBy": "b3s__Contact__c",
        "fieldToLoad": [
            "Name",
            "b3s__Priority__c",
            "b3s__Max_Award__c",
            "b3s__Max_Penalty__c",
            "b3s__Account__c",
            "b3s__Cost_Center__c",
            "b3s__Job__c",
            "b3s__Ticket_Type__c",
            "b3s__Job_Group__c",
            "b3s__Ticket_Type__r.Name",
            "b3s__Work_Site__c",
            "b3s__Work_Site_Location__c"
        ]
    },
    {
        "name": "certificates",
        "objectName": "b3s__Ticket__c",
        "filterRecordsBy": [
            "b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE Id != null AND (b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId))"
        ],
        "groupRecordsBy": "b3s__Contact__c",
        "fieldToLoad": [
            "Name",
            "b3s__Contact__c",
            "b3s__Ticket_Type__c",
            "b3s__Ticket_Type__r.Name",
            "b3s__Valid_From__c",
            "b3s__Valid_Until__c"
        ]
    },
    {
        "name": "contacts",
        "objectName": "Contact",
        "filterRecordsBy": [
            "Id IN (SELECT b3s__Contact__c FROM b3s__Shift__c WHERE Id != null AND (b3s__Work_Job__r.b3s__Account__c =:contextId OR b3s__Work_Site__r.b3s__Account__c =:contextId))",
            "Id IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE Id != null AND (b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId))"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "LastName",
            "FirstName",
            "Title",
            "Description",
            "MailingLatitude",
            "MailingLongitude",
            "MobilePhone",
            "Email",
            "CreatedDate"
        ]
    },
    {
        "name": "rateBasisTemplates",
        "objectName": "b3s__Rate_Basis_Template__c",
        "filterRecordsBy": [
            "b3s__Active__c = true"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Id",
            "Name",
            "b3s__Rate_Basis__c",
            "b3s__Start_Time__c",
            "b3s__End_Time__c",
            "b3s__Lock_Times__c",
            "b3s__Job__c",
            "b3s__Account__c",
            "b3s__Sort_Order__c"
        ]
    },
    {
        "name": "jobs",
        "objectName": "b3s__Job__c",
        "filterRecordsBy": [
            "b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Account__c",
            "b3s__Job_Group__c",
            "b3s__Job_Group__r.Name"
        ]
    },
    {
        "name": "locations",
        "objectName": "b3s__Site_Location__c",
        "filterRecordsBy": [
            "b3s__Site__r.b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Site__c"
        ]
    },
    {
        "name": "rateCardItems",
        "objectName": "b3s__Rate_Card_Item__c",
        "filterRecordsBy": [
            "Id != null"
        ],
        "groupRecordsBy": "b3s__Rate_Card__c",
        "fieldToLoad": [
            "b3s__Rate_Card__c",
            "b3s__Rate_Type__c",
            "b3s__Pay_Rate__c",
            "b3s__Multiplier__c",
            "b3s__Priority__c",
            "b3s__Behavior__c",
            "b3s__Band_Start__c",
            "b3s__Band_End__c",
            "b3s__Days_Of_Week__c"
        ]
    },
    {
        "name": "rateCards",
        "objectName": "b3s__Rate_Card__c",
        "filterRecordsBy": [
            "b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE Id != null AND (b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId))",
            "b3s__Account__c =:contextId OR b3s__Work_Job__r.b3s__Account__c =:contextId OR b3s__Work_Site__r.b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "b3s__Contact__c",
        "fieldToLoad": [
            "Name",
            "b3s__Contact__c",
            "b3s__Account__c",
            "b3s__Work_Job__c",
            "b3s__Work_Site__c",
            "b3s__Currency__c",
            "b3s__Valid_From__c",
            "b3s__Valid_To__c",
            "b3s__Status__c",
            "CreatedDate"
        ]
    },
    {
        "name": "sites",
        "objectName": "b3s__Site__c",
        "filterRecordsBy": [
            "b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Account__c",
            "b3s__City__c",
            "b3s__Country__c",
            "b3s__Location__c",
            "b3s__Postal_Code__c",
            "b3s__Province_State__c",
            "b3s__Site_Instructions__c",
            "b3s__Street__c",
            "b3s__Timezone__c"
        ]
    },
    {
        "name": "suitability",
        "objectName": "b3s__Suitability__c",
        "filterRecordsBy": [
            "b3s__Account__c =:contextId OR b3s__Cost_Center__r.b3s__Account__c =:contextId OR b3s__Job__r.b3s__Account__c =:contextId OR b3s__Work_Site__c =:contextId OR b3s__Work_Location__r.b3s__Site__r.b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "b3s__Contact__c",
        "fieldToLoad": [
            "Name",
            "b3s__Account__c",
            "b3s__Contact__c",
            "b3s__Cost_Center__c",
            "b3s__Job__c",
            "b3s__Job_Group__c",
            "b3s__Max_Award__c",
            "b3s__Max_Penalty__c",
            "b3s__Rating__c",
            "b3s__Work_Site__c",
            "b3s__Work_Location__c"
        ]
    },
    {
        "name": "workingPatterns",
        "objectName": "b3s__Working_Pattern__c",
        "filterRecordsBy": [
            "b3s__Job__r.b3s__Account__c =:contextId OR b3s__Site__r.b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Contact__c",
            "b3s__Contact__r.Name",
            "b3s__Job__c",
            "b3s__Job__r.Name",
            "b3s__Start__c",
            "b3s__End__c"
        ]
    },
    {
        "name": "rateGroups",
        "objectName": "b3s__Rate_Group__c",
        "filterRecordsBy": [
            "b3s__Work_Job__r.b3s__Account__c =:contextId"
        ],
        "fieldToLoad": [
            "Id",
            "Name",
            "b3s__Work_Job__c"
        ]
    },
    {
        "name": "reasonCodes",
        "objectName": "b3s__Booking_Code__c",
        "filterRecordsBy": [
            "b3s__Active__c = true AND b3s__Type__c = 'Reason' AND (b3s__Account__c = null OR b3s__Account__c =:contextId)"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Description__c",
            "b3s__Account__c",
            "b3s__Sort_Order__c"
        ]
    },
    {
        "name": "costCodes",
        "objectName": "b3s__Cost_Center__c",
        "filterRecordsBy": [
            "b3s__Active__c = true AND b3s__Account__c =:contextId"
        ],
        "groupRecordsBy": "Id",
        "fieldToLoad": [
            "Name",
            "b3s__Code__c",
            "b3s__Description__c",
            "b3s__Account__c"
        ]
    }
]
]]></value>
    </values>
    <values>
        <field>b3s__Object_Name__c</field>
        <value xsi:type="xsd:string">Account</value>
    </values>
</CustomMetadata>
