{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/spend-rules-checkout",
	"version": "1.0.0",
	"title": "Rewards (Checkout)",
	"category": "woocommerce",
	"icon": "awards",
	"description": "Display and redeem available rewards during checkout",
	"keywords": [
		"loyalty",
		"rewards",
		"spend",
		"redeem",
		"checkout",
		"leat"
	],
	"parent": [
		"woocommerce/checkout-fields-block",
		"woocommerce/checkout-shipping-address-block",
		"woocommerce/checkout-shipping-method-block",
		"woocommerce/checkout-billing-address-block",
		"woocommerce/checkout-contact-information-block",
		"woocommerce/checkout-totals-block",
		"woocommerce/checkout-order-summary-totals-block"
	],
	"supports": {
		"html": false,
		"multiple": false,
		"color": {
			"background": true,
			"text": true,
			"link": false
		},
		"spacing": {
			"padding": true,
			"margin": true
		},
		"border": {
			"color": true,
			"radius": true,
			"width": true,
			"style": true
		},
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"fontWeight": true
		}
	},
	"attributes": {
		"lock": {
			"type": "object",
			"default": {
				"remove": false,
				"move": true
			}
		},
		"enabled": {
			"type": "boolean",
			"default": true
		},
		"showTabs": {
			"type": "boolean",
			"default": true
		},
		"defaultTab": {
			"type": "string",
			"default": "coupons"
		},
		"tabLabelCoupons": {
			"type": "string",
			"default": "My Coupons"
		},
		"tabLabelSpend": {
			"type": "string",
			"default": "Redeem Rewards"
		},
		"showCouponsToGuests": {
			"type": "boolean",
			"default": false
		},
		"couponsEmptyMessage": {
			"type": "string",
			"default": "No coupons available"
		},
		"buttonTextApply": {
			"type": "string",
			"default": "Apply"
		},
		"buttonTextRemove": {
			"type": "string",
			"default": "Remove"
		},
		"buttonTextDone": {
			"type": "string",
			"default": "Done"
		},
		"buttonTextJoining": {
			"type": "string",
			"default": "Joining..."
		},
		"messageCouponApplied": {
			"type": "string",
			"default": "Coupon applied!"
		},
		"messageCouponRemoved": {
			"type": "string",
			"default": "Coupon removed"
		},
		"messageRewardRedeemed": {
			"type": "string",
			"default": "Reward redeemed & applied!"
		},
		"messageCouponsGuest": {
			"type": "string",
			"default": "Sign in to see your coupons"
		},
		"columns": {
			"type": "number",
			"default": 1
		},
		"showRulesToNotEnrolled": {
			"type": "boolean",
			"default": true
		},
		"cardLabelLevel": {
			"type": "number",
			"default": 4
		},
		"buttonTextSignIn": {
			"type": "string",
			"default": "Sign In"
		},
		"buttonTextJoin": {
			"type": "string",
			"default": "Join Program"
		},
		"buttonTextRedeem": {
			"type": "string",
			"default": "Redeem"
		},
		"messageInsufficientCredits": {
			"type": "string",
			"default": "Insufficient credits"
		},
		"messageRedeemSuccess": {
			"type": "string",
			"default": "Coupon code: {{coupon}}"
		},
		"messageGuest": {
			"type": "string",
			"default": "Please sign in to see available rewards"
		},
		"messageNotEnrolled": {
			"type": "string",
			"default": "Join our program to unlock exclusive rewards"
		},
		"emptyStateMessage": {
			"type": "string",
			"default": "No rewards available at this time"
		},
		"emptyStateButtonTextGuest": {
			"type": "string",
			"default": "Sign In"
		},
		"emptyStateButtonTextNotEnrolled": {
			"type": "string",
			"default": "Join Program"
		},
		"progressMeterText": {
			"type": "string",
			"default": "You have {{current_balance}} {{credits_currency}} out of {{required_credits}}"
		},
		"imageHeight": {
			"type": "number",
			"default": 150
		},
		"imageFit": {
			"type": "string",
			"default": "cover"
		},
		"showCostBadge": {
			"type": "boolean",
			"default": true
		},
		"buttonTextColor": {
			"type": "string"
		},
		"buttonBackgroundColor": {
			"type": "string"
		},
		"costBadgeTextColor": {
			"type": "string"
		},
		"costBadgeBackgroundColor": {
			"type": "string"
		},
		"style": {
			"type": "object",
			"default": {
				"spacing": {
					"padding": {
						"top": "16px",
						"right": "16px",
						"bottom": "16px",
						"left": "16px"
					},
					"margin": {
						"top": "0px",
						"right": "0px",
						"bottom": "16px",
						"left": "0px"
					}
				},
				"border": {
					"radius": "4px",
					"width": "1px",
					"color": "#e0e0e0"
				}
			}
		}
	},
	"textdomain": "leat-crm",
	"editorScript": "leat-spend-rules-checkout",
	"viewScript": "leat-spend-rules-checkout-view",
	"style": "leat-spend-rules-checkout-view",
	"editorStyle": "leat-spend-rules-checkout"
}
