{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/earn-rules-list",
	"title": "Earn Rules List",
	"category": "leat",
	"icon": "star-filled",
	"description": "Display available ways to earn loyalty points",
	"keywords": ["loyalty", "earn", "rewards"],
	"textdomain": "leat-crm",
	"attributes": {
		"columns": {
			"type": "number",
			"default": 2
		},
		"showClaimedRules": {
			"type": "boolean",
			"default": true,
			"description": "Show claimed rules with a 'Claimed' badge. Set to false to hide claimed social rules entirely."
		},
		"showToGuests": {
			"type": "boolean",
			"default": true
		},
		"showRulesToNotEnrolled": {
			"type": "boolean",
			"default": true,
			"description": "Show earn rules grid with Join Program buttons to logged-in users who haven't enrolled yet"
		},
		"cardLabelLevel": {
			"type": "number",
			"default": 4
		},
		"buttonTextJoin": {
			"type": "string",
			"default": "Join Program"
		},
		"buttonTextSignIn": {
			"type": "string",
			"default": "Sign In to Claim"
		},
		"buttonTextClaim": {
			"type": "string",
			"default": "Claim"
		},
		"buttonTextClaimed": {
			"type": "string",
			"default": "Completed"
		},
		"buttonTextAutomatic": {
			"type": "string",
			"default": "Automatic"
		},
		"buttonTextBirthday": {
			"type": "string",
			"default": "Add your birthday"
		},
		"buttonTextSubscribe": {
			"type": "string",
			"default": "Subscribe"
		},
		"emptyStateText": {
			"type": "string",
			"default": "No earning opportunities available at this time."
		},
		"badgeTextColor": {
			"type": "string"
		},
		"badgeBackgroundColor": {
			"type": "string"
		},
		"badgeStyle": {
			"type": "object"
		},
		"buttonBackground": {
			"type": "string"
		},
		"buttonText": {
			"type": "string"
		},
		"buttonBackgroundHover": {
			"type": "string"
		},
		"buttonTextHover": {
			"type": "string"
		},
		"buttonStyle": {
			"type": "object"
		},
		"buttonTextColor": {
			"type": "string",
			"description": "Button text color"
		},
		"buttonBackgroundColor": {
			"type": "string",
			"description": "Button background color"
		}
	},
	"supports": {
		"anchor": true,
		"html": false,
		"align": ["wide", "full"],
		"color": {
			"text": true,
			"background": true,
			"link": false
		},
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"fontFamily": true,
			"fontWeight": true,
			"fontStyle": true,
			"textTransform": true,
			"textDecoration": true,
			"letterSpacing": true
		},
		"spacing": {
			"margin": true,
			"padding": true
		}
	},
	"selectors": {
		"root": ".wp-block-leat-earn-rules-list"
	},
	"editorScript": "leat-earn-rules-list",
	"style": "leat-frontend-init",
	"editorStyle": "leat-earn-rules-list"
}
