{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "tripzzy/trip-price",
  "title": "Tripzzy Trip Price",
  "category": "tripzzy",
  "icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='#3EB368' d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/></svg>",
  "description": "Display the current trip price with regular price, discount badge, suffix, prefix and savings line. Note: Single trip block.",
  "keywords": [
    "tripzzy",
    "trip",
    "price"
  ],
  "textdomain": "default",
  "attributes": {
    "blockId": {
      "type": "string",
      "default": ""
    },
    "showRegularPrice": {
      "type": "boolean",
      "default": true
    },
    "showSaleBadge": {
      "type": "boolean",
      "default": true
    },
    "showPricePer": {
      "type": "boolean",
      "default": true
    },
    "showPricePrefix": {
      "type": "boolean",
      "default": false
    },
    "pricePrefixText": {
      "type": "string",
      "default": "From"
    },
    "showSavings": {
      "type": "boolean",
      "default": true
    },
    "savingsText": {
      "type": "string",
      "default": "You save %s with this offer"
    },
    "contentAlignment": {
      "type": "string",
      "default": "left"
    },
    "previewTripId": {
      "type": "number",
      "default": 0
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "anchor": true,
    "className": true,
    "spacing": {
      "padding": true,
      "margin": [
        "top",
        "bottom"
      ]
    }
  },
  "editorScript": "file:./index.js",
  "editorStyle": [
    "tripzzy-admin-block-editor"
  ],
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}