{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "folioblocks/carousel-gallery-block",
  "version": "1.1.0",
  "title": "Carousel Gallery",
  "category": "folioblocks",
  "allowedBlocks": [
    "folioblocks/pb-image-block"
  ],
  "icon": "<svg viewBox=\"0 0 1247.24 1247.24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-hidden=\"true\"><g data-name=\"Layer 1\" id=\"Layer_1\"><rect x=\"-161.50317\" y=\"-161.50317\" fill=\"none\" height=\"1570.00635\" width=\"1570.00635\"/><path d=\"m1100.38953,146.61058l0,680.99025l-953.77895,0l0,-680.99025l953.12477,0m25.51257,-46.44603l-1003.49579,0c-11.77504,0 -21.58759,9.81255 -21.58759,21.58759l0,730.70709c0,11.77509 9.81255,21.58765 21.58759,21.58765l1002.84161,0c11.77478,0 21.58752,-9.81256 21.58752,-21.58765l0,-730.70709c0,-11.77504 -9.81274,-21.58759 -21.58752,-21.58759z\"/><g id=\"Layer_2\"><path d=\"m1003.57239,921.80115c-7.19592,0 -14.39172,3.27094 -18.97083,8.50427c-3.27106,4.57922 -4.57916,10.46674 -3.92517,17.00842c0.65411,6.54163 3.92517,11.77496 8.50427,15.04584l96.16272,71.3045l-96.16272,71.30469c-4.5791,3.27075 -7.19592,8.50378 -8.50427,15.04553c-0.65399,6.54175 0,12.42944 3.92517,17.00867c3.92493,5.88745 10.46667,9.1582 18.31653,9.1582c4.57935,0 9.15845,-1.96265 13.73779,-4.5791l121.67529,-90.27539s9.15845,-9.81262 9.15845,-18.31689s-3.271,-14.3916 -9.15845,-18.31665l-121.02124,-89.62115c-3.92505,-2.61676 -8.50415,-3.92505 -13.0835,-3.92505z\"/><path d=\"m243.42764,921.80115c-4.57922,0 -9.15839,1.30835 -13.08334,3.92517l-121.67554,90.27527s-9.15837,9.8125 -9.15837,18.31689s3.27084,14.3916 9.15837,18.31653l121.67554,90.27551c4.57913,1.9624 8.50412,4.5791 13.08334,4.5791c8.50421,0 15.70001,-6.54187 18.31671,-9.15845c3.27084,-4.57935 4.57919,-10.46667 3.92502,-17.00806c-0.65417,-6.54175 -3.92502,-11.77539 -8.50418,-15.04614l-96.16289,-71.30444l96.16289,-71.30444c9.15836,-7.19592 11.77505,-22.89594 4.57916,-32.05438c-3.92502,-5.88739 -11.77499,-8.50421 -18.97092,-8.50421z\"/><polygon id=\"play_button\" points=\"560,910 710,1023 560,1136\"/></g></g></svg>",
  "description": "Displays images in a horizontal, swipeable carousel with optional autoplay.",
  "example": {
    "attributes": {
      "preview": true
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "color": {
      "background": true,
      "gradients": true,
      "text": false
    },
    "listView": true,
    "spacing": {
      "margin": true,
      "padding": true
    },
    "customClassName": false,
    "anchor": false,
    "ariaLabel": true,
    "html": false
  },
  "attributes": {
    "preview": {
      "type": "boolean",
      "default": false
    },
    "resolution": {
      "type": "string",
      "default": "large"
    },
    "verticalOnMobile": {
      "type": "boolean",
      "default": false
    },
    "carouselHeight": {
      "type": "number",
      "default": 300
    },
    "borderWidth": {
      "type": "number",
      "default": 0
    },
    "borderRadius": {
      "type": "number",
      "default": 0
    },
    "borderColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "dropShadow": {
      "type": "boolean",
      "default": false
    },
    "lightbox": {
      "type": "boolean",
      "default": false
    },
    "lightboxCaption": {
      "type": "boolean",
      "default": false
    },
    "lightboxContent": {
      "type": "string",
      "enum": [
        "none",
        "title",
        "caption",
        "product",
        "exif"
      ],
      "default": ""
    },
    "hideUnknownExifFields": {
      "type": "boolean",
      "default": false
    },
    "onHoverTitle": {
      "type": "boolean",
      "default": false
    },
    "onHoverStyle": {
      "type": "string",
      "enum": [
        "fade-overlay",
        "gradient-bottom",
        "chip",
        "blur-overlay",
        "color-overlay"
      ],
      "default": "blur-overlay"
    },
    "overlayBgColor": {
      "type": "string",
      "default": "#f9f9f9"
    },
    "overlayTextColor": {
      "type": "string",
      "default": "#000000"
    },
    "chipOverlayBgColor": {
      "type": "string",
      "default": "#f9f9f9"
    },
    "chipOverlayTextColor": {
      "type": "string",
      "default": "#000000"
    },
    "randomizeOrder": {
      "type": "boolean",
      "default": false
    },
    "disableRightClick": {
      "type": "boolean",
      "default": false
    },
    "lazyLoad": {
      "type": "boolean",
      "default": false
    },
    "enableFilter": {
      "type": "boolean",
      "default": false
    },
    "filterCategories": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "filtersInput": {
      "type": "string",
      "default": ""
    },
    "filterAlign": {
      "type": "string",
      "default": "center"
    },
    "filterTextColor": {
      "type": "string",
      "default": "#000000"
    },
    "filterBgColor": {
      "type": "string",
      "default": "transparent"
    },
    "filterFontFamily": {
      "type": "string",
      "default": ""
    },
    "filterFontSize": {
      "type": "number",
      "default": 14
    },
    "filterFontWeight": {
      "type": "string",
      "default": ""
    },
    "filterFontStyle": {
      "type": "string",
      "enum": [
        "normal",
        "italic"
      ],
      "default": "normal"
    },
    "filterLineHeight": {
      "type": "number",
      "default": 1.2
    },
    "filterLetterSpacing": {
      "type": "number",
      "default": 0
    },
    "filterTextDecoration": {
      "type": "string",
      "enum": [
        "none",
        "underline",
        "line-through"
      ],
      "default": "none"
    },
    "filterTextTransform": {
      "type": "string",
      "enum": [
        "none",
        "uppercase",
        "lowercase",
        "capitalize"
      ],
      "default": "none"
    },
    "activeFilterTextColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "activeFilterBgColor": {
      "type": "string",
      "default": "#000000"
    },
    "activeFilter": {
      "type": "string",
      "default": "all"
    },
    "enableDownload": {
      "type": "boolean",
      "default": false
    },
    "downloadOnHover": {
      "type": "boolean",
      "default": true
    },
    "downloadIconColor": {
      "type": "string",
      "default": "#000000"
    },
    "downloadIconBgColor": {
      "type": "string",
      "default": "#f9f9f9"
    },
    "hasWooCommerce": {
      "type": "boolean",
      "default": false
    },
    "enableWooCommerce": {
      "type": "boolean",
      "default": false
    },
    "wooCartIconDisplay": {
      "type": "string",
      "enum": [
        "hover",
        "always"
      ],
      "default": "hover"
    },
    "cartIconColor": {
      "type": "string",
      "default": "#000000"
    },
    "cartIconBgColor": {
      "type": "string",
      "default": "#f9f9f9"
    },
    "wooDefaultLinkAction": {
      "type": "string",
      "enum": [
        "product",
        "add_to_cart"
      ],
      "default": "add_to_cart"
    },
    "wooLightboxInfoType": {
      "type": "string",
      "enum": [
        "caption",
        "product",
        "exif"
      ],
      "default": "caption"
    },
    "wooProductPriceOnHover": {
      "type": "boolean",
      "default": true
    },
    "imageClickAction": {
      "type": "string",
      "enum": [
        "none",
        "lightbox",
        "download",
        "woocommerce",
        "media_file",
        "custom_url",
        "page_post"
      ],
      "default": ""
    },
    "inCarousel": {
      "type": "boolean",
      "default": true
    },
    "showControls": {
      "type": "boolean",
      "default": false
    },
    "autoplay": {
      "type": "boolean",
      "default": false
    },
    "loopSlides": {
      "type": "boolean",
      "default": false
    },
    "controlsAlignment": {
      "type": "string",
      "default": "center"
    },
    "controlsBackgroundColor": {
      "type": "string",
      "default": "rgba(0, 0, 0, 0.5)"
    },
    "controlsIconColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "images": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "src": {
            "type": "string"
          },
          "alt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "sizes": {
            "type": "object"
          },
          "width": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "filterCategory": {
            "type": "string"
          },
          "filterCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "linkIconColor": {
      "type": "string",
      "default": "#000000"
    },
    "linkIconBgColor": {
      "type": "string",
      "default": "#f9f9f9"
    },
    "imageClickTarget": {
      "type": "string",
      "enum": [
        "icon",
        "thumbnail"
      ],
      "default": "icon"
    },
    "linkIconDisplay": {
      "type": "string",
      "enum": [
        "hover",
        "always"
      ],
      "default": "hover"
    },
    "overlayContent": {
      "type": "string",
      "enum": [
        "title",
        "caption",
        "product",
        "exif"
      ],
      "default": "title"
    }
  },
  "providesContext": {
    "folioBlocks/resolution": "resolution",
    "folioBlocks/borderColor": "borderColor",
    "folioBlocks/borderWidth": "borderWidth",
    "folioBlocks/borderRadius": "borderRadius",
    "folioBlocks/dropShadow": "dropShadow",
    "folioBlocks/lightbox": "lightbox",
    "folioBlocks/lightboxCaption": "lightboxCaption",
    "folioBlocks/lightboxContent": "lightboxContent",
    "folioBlocks/hideUnknownExifFields": "hideUnknownExifFields",
    "folioBlocks/onHoverTitle": "onHoverTitle",
    "folioBlocks/onHoverStyle": "onHoverStyle",
    "folioBlocks/overlayBgColor": "overlayBgColor",
    "folioBlocks/overlayTextColor": "overlayTextColor",
    "folioBlocks/chipOverlayBgColor": "chipOverlayBgColor",
    "folioBlocks/chipOverlayTextColor": "chipOverlayTextColor",
    "folioBlocks/enableFilter": "enableFilter",
    "folioBlocks/filterCategories": "filterCategories",
    "folioBlocks/activeFilter": "activeFilter",
    "folioBlocks/enableDownload": "enableDownload",
    "folioBlocks/downloadOnHover": "downloadOnHover",
    "folioBlocks/downloadIconColor": "downloadIconColor",
    "folioBlocks/downloadIconBgColor": "downloadIconBgColor",
    "folioBlocks/cartIconColor": "cartIconColor",
    "folioBlocks/cartIconBgColor": "cartIconBgColor",
    "folioBlocks/hasWooCommerce": "hasWooCommerce",
    "folioBlocks/enableWooCommerce": "enableWooCommerce",
    "folioBlocks/wooCartIconDisplay": "wooCartIconDisplay",
    "folioBlocks/wooDefaultLinkAction": "wooDefaultLinkAction",
    "folioBlocks/wooLightboxInfoType": "wooLightboxInfoType",
    "folioBlocks/wooProductPriceOnHover": "wooProductPriceOnHover",
    "folioBlocks/imageClickAction": "imageClickAction",
    "folioBlocks/carouselHeight": "carouselHeight",
    "folioBlocks/inCarousel": "inCarousel",
    "folioBlocks/lazyLoad": "lazyLoad",
    "folioBlocks/linkIconColor": "linkIconColor",
    "folioBlocks/linkIconBgColor": "linkIconBgColor",
    "folioBlocks/imageClickTarget": "imageClickTarget",
    "folioBlocks/linkIconDisplay": "linkIconDisplay",
    "folioBlocks/overlayContent": "overlayContent"
  },
  "textdomain": "folioblocks",
  "editorScript": [
    "file:./index.js",
    "file:./premium.js"
  ],
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php",
  "viewScript": [
    "file:./view.js",
    "file:./premium-view.js"
  ]
}