{
	"$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json",
	"apiVersion": 3,
	"name": "jet-forms/phone-field",
	"category": "jet-form-builder-fields",
	"keywords": [
		"jetformbuilder",
		"field",
		"phone",
		"international",
		"telephone"
	],
	"textdomain": "jet-form-builder",
	"supports": {
		"customClassName": false,
		"html": false,
		"jetFBSanitizeValue": true
	},
	"title": "Phone Field",
	"icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58 42H60C62.2091 42 64 40.2091 64 38V18C64 15.7909 62.2091 14 60 14H4C1.79086 14 0 15.7909 0 18V38C0 40.2091 1.79086 42 4 42H28C28 50.2843 34.7157 57 43 57C51.2843 57 58 50.2843 58 42ZM60 16H4C2.89543 16 2 16.8954 2 18V38C2 39.1046 2.89543 40 4 40H28.1322C29.11 32.6613 35.3938 27 43 27C50.6062 27 56.89 32.6613 57.8678 40H60C61.1046 40 62 39.1046 62 38V18C62 16.8954 61.1046 16 60 16ZM43 55C50.1797 55 56 49.1797 56 42C56 34.8203 50.1797 29 43 29C35.8203 29 30 34.8203 30 42C30 49.1797 35.8203 55 43 55Z\" fill=\"currentColor\"/><path d=\"M50.2504 37.4994C50.251 36.6437 49.9406 35.8165 49.3773 35.1723C48.8569 34.5771 48.1523 34.1779 47.3793 34.0307L45.5453 38.1293L47.392 40.3256L47.4594 40.4164C47.626 40.6679 47.7247 40.9582 47.7455 41.2592C47.7663 41.5601 47.7089 41.8612 47.5785 42.1332L47.5756 42.14C46.7005 43.9314 44.8951 45.7135 43.1039 46.5775L43.098 46.5805C42.8244 46.7104 42.5212 46.7663 42.2191 46.7436C41.9172 46.7207 41.6263 46.62 41.3754 46.4506C41.3448 46.4299 41.3156 46.4071 41.2875 46.3832L39.1254 44.5443L35.0307 46.3793C35.1779 47.1523 35.5771 47.8569 36.1723 48.3773C36.8165 48.9406 37.6437 49.251 38.4994 49.2504C41.6156 49.2503 44.6055 48.0124 46.809 45.809C49.0124 43.6055 50.2503 40.6156 50.2504 37.4994ZM52.2455 37.8412C52.1581 41.3643 50.7211 44.725 48.223 47.223C45.7249 49.7211 42.3643 51.1581 38.8412 51.2455L38.5004 51.2504C37.16 51.2513 35.8649 50.7646 34.8559 49.8822C33.8468 48.9998 33.1918 47.7812 33.0141 46.4525C33.0134 46.4477 33.0137 46.4427 33.0131 46.4379C32.9685 46.0625 33.0465 45.6831 33.2357 45.3559L33.3109 45.2357C33.4947 44.9701 33.7491 44.7599 34.0463 44.6293L38.4682 42.6488L38.4818 42.642C38.6823 42.5558 38.8968 42.5087 39.1137 42.5014L39.3314 42.5072L39.5463 42.5404C39.6877 42.5713 39.8249 42.6193 39.9545 42.684L40.142 42.7934L40.2367 42.8637L42.3891 44.6957C43.6819 44.0212 45.0171 42.701 45.6967 41.4174L43.8578 39.2299C43.8322 39.1994 43.8083 39.1675 43.7865 39.1342C43.6285 38.8928 43.5324 38.6159 43.5072 38.3285C43.4821 38.0412 43.5284 37.7519 43.642 37.4867L43.6478 37.4721L45.6293 33.0473C45.7789 32.7065 46.0334 32.4222 46.3559 32.2357L46.4809 32.1693C46.7778 32.0283 47.1095 31.9741 47.4379 32.0131C47.4427 32.0137 47.4477 32.0134 47.4525 32.0141C48.7812 32.1919 49.9998 32.8468 50.8822 33.8559C51.7646 34.8649 52.2513 36.16 52.2504 37.5004L52.2455 37.8412Z\" fill=\"currentColor\"/></svg>",
	"attributes": {
		"label": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"name": {
			"type": "string",
			"default": "field_name"
		},
		"desc": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"default": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich-no-preset": true
			}
		},
		"value": {
			"type": "object",
			"default": {
				"groups": []
			}
		},
		"required": {
			"type": "boolean",
			"default": false
		},
		"visibility": {
			"type": "string",
			"default": ""
		},
		"class_name": {
			"type": "string",
			"default": ""
		},
		"className": {
			"type": "string",
			"default": ""
		},
		"default_country": {
			"type": "string",
			"default": "auto"
		},
		"preferred_countries": {
			"type": "string",
			"default": ""
		},
		"only_countries": {
			"type": "string",
			"default": ""
		},
		"exclude_countries": {
			"type": "string",
			"default": ""
		},
		"separate_dial_code" : {
			"type": "boolean",
			"default": false
		},
		"save_format": {
			"type": "string",
			"default": "e164",
			"enum": ["e164", "national", "international"]
		},
		"ipinfo_token": {
			"type": "string",
			"default": ""
		},
		"use_global": {
			"type": "boolean",
			"default": false
		},
		"isPreview": {
			"type": "boolean",
			"default": false
		},
		"validation_message_required": {
			"type": "string",
			"default": "Required field is empty"
		},
		"validation_message_invalid": {
			"type": "string",
			"default": "Please enter a valid phone number"
		}
	},
	"usesContext": [
		"jet-forms/repeater-field--name",
		"jet-forms/repeater-row--default",
		"jet-forms/repeater-row--current-index"
	],
	"viewScript": "jet-fb-blocks-v2-phone-field",
	"viewStyle": "jet-fb-blocks-v2-phone-field"
}
