{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "cthf-blocks/business-hours",
  "title": "Business Hours",
  "description": "Displays your business hours in a clear, concise format to show when you're available.",
  "category": "rootblox-footer",
  "supports": {
    "html": false,
    "color": {
      "background": true,
      "gradients": true,
      "text": true
    },
    "spacing": {
      "padding": true,
      "margin": [
        "top",
        "bottom"
      ],
      "__experimentalDefaultControls": {
        "padding": true
      }
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    }
  },
  "attributes": {
    "cover": {
      "type": "string",
      "default": ""
    },
    "clientId": {
      "type": "string",
      "default": ""
    },
    "timeFormat": {
      "type": "boolean",
      "default": true
    },
    "scheduling": {
      "type": "object",
      "default": {
        "type": "default",
        "startingDay": "monday",
        "abbr": true,
        "customAbbr": false,
        "abbrLength": 3
      }
    },
    "weekdays": {
      "type": "array",
      "default": [
        {
          "key": "monday",
          "opened": true,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "tuesday",
          "opened": true,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "wednesday",
          "opened": true,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "thursday",
          "opened": true,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "friday",
          "opened": true,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "saturday",
          "opened": false,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        },
        {
          "key": "sunday",
          "opened": false,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "12",
            "minutes": "00"
          }
        }
      ]
    },
    "groupedWeekdays": {
      "type": "array",
      "default": [
        {
          "opened": true,
          "start": "monday",
          "end": "friday",
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "00",
            "minutes": "00"
          }
        },
        {
          "start": "saturday",
          "end": "sunday",
          "opened": false,
          "alwaysOpen": false,
          "alwaysOpenLabel": "Open 24 Hours",
          "openTime": {
            "hours": "00",
            "minutes": "00"
          },
          "closeTime": {
            "hours": "00",
            "minutes": "00"
          }
        }
      ]
    },
    "timeSeparator": {
      "type": "string",
      "default": "—"
    },
    "groupSeparator": {
      "type": "string",
      "default": "to"
    },
    "notification": {
      "type": "object",
      "default": {
        "enabled": true,
        "open": "We're open!",
        "close": "We're closed for the day!",
        "addTimer": false,
        "timeDiff": {
          "hours": "00",
          "minutes": "30"
        },
        "nearingClose": "We're closing soon!",
        "nearingOpen": "We're opening soon!",
        "timerLabel": {
          "h": "h",
          "m": "m",
          "s": "s"
        },
        "padding": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "margin": {
          "top": "26px",
          "bottom": ""
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "",
        "font": {
          "size": "16px",
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "timerTypography": {
          "font": {
            "size": "15px",
            "weight": "500",
            "family": ""
          },
          "letterCase": "capitalize",
          "decoration": "none",
          "lineHeight": "",
          "letterSpacing": ""
        },
        "color": {
          "text": "",
          "timer": "",
          "bg": ""
        }
      }
    },
    "timezone": {
      "type": "object",
      "default": {
        "enableNotice": true,
        "message": "Different timezone detected!",
        "enableTime": true,
        "gap": "6px",
        "padding": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "margin": {
          "top": "26px",
          "bottom": ""
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "",
        "font": {
          "size": "15px",
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "labelTypography": {
          "font": {
            "size": "",
            "weight": "",
            "family": ""
          },
          "letterCase": "none",
          "decoration": "none",
          "lineHeight": "",
          "letterSpacing": ""
        },
        "color": {
          "text": "",
          "label": "",
          "bg": ""
        }
      }
    },
    "itemStyles": {
      "type": "object",
      "default": {
        "gap": "6px",
        "alignItems": "end",
        "padding": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "",
        "font": {
          "size": "",
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "labelTypography": {
          "font": {
            "size": "16px",
            "weight": "500",
            "family": ""
          },
          "letterCase": "none",
          "decoration": "none",
          "lineHeight": "",
          "letterSpacing": ""
        },
        "color": {
          "text": "",
          "label": "",
          "bg": ""
        }
      }
    }
  },
  "editorScript": [
    "file:./index.js",
    "file:../index.js"
  ],
  "editorStyle": [
    "file:./index.css"
  ],
  "style": [
    "file:./style-index.css"
  ],
  "viewStyle": "rootblox--dynamic-block-styles",
  "script": [
    "rootblox--global-vars"
  ],
  "viewScript": [
    "rootblox--business-hours--frontend-script",
    "rootblox--luxon"
  ],
  "render": "file:./render.php"
}