<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

return array(
	'name' => 'popup__smart_exit_offer',
	'title' => __( 'Smart Exit Offer', 'fooconvert' ),
	'description' => __( 'Smart exit offer themed overlay.', 'fooconvert' ),
	'thumbnail' => FOOCONVERT_ASSETS_URL . 'media/templates/template__smart_exit_offer.png',
	'picker' => array(
		'category' => 'lead-capture',
		'tags' => array( 'offer', 'exit-intent' ),
		'availability' => 'included',
		'preview' => array(
			'url' => FOOCONVERT_ASSETS_URL . 'media/templates/preview/preview-overlay-smart-exit-offer.webp',
			'width' => 740,
			'height' => 349,
		),
	),
	'attributes' => array(
		'template' => 'popup__smart_exit_offer',
		'settings' => array(
			'transitions' => true,
			'trigger' => array(
				'type' => 'exit-intent',
				'data' => 5,
				'once' => true
			),
			'closeAnchor' => 'claim'
		),
		'styles' => array(
			'dimensions' => array(
				'padding' => '24px'
			)
		),
        'closeButton' => array(
            'styles' => array(
                'color' => array(
					'background' => '#ffffff00',
					'icon' => '#a200ff'
				),
                'dimensions' => array(
                    'margin' => '15px',
                    'padding' => '0px'
                ),
                'border' => array(
                    'radius' => '50%'
                )
            )
        ),
		'content' => array(
			'styles' => array(
				'color' => array(
					'background' => '#7B1FBD',
					'text' => '#ffffff'
				),
				'background' => array(
					'backgroundImage' => array(
						'url' => FOOCONVERT_ASSETS_URL . 'media/template__flyout__purple_percent.jpg'
					),
					'backgroundSize' => 'cover'
				),
				'border' => array(
					'radius' => '30px',
					'shadow' => '6px 6px 9px #00000000',
					'color' => '#FFFFFF',
					'style' => 'solid',
					'width' => '5px'
				),
				'dimensions' => array(
					'gap' => '32px',
					'padding' => array(
						'top' => '48px',
						'right' => '32px',
						'bottom' => '48px',
						'left' => '32px'
					)
				),
				'width' => '720px'
			)
		),
		'variation' => ''
	),
	'innerBlocks' => array(
		array(
			'fc/overlay-container',
			array(),
			array(
				array(
					'fc/overlay-close-button',
					array(),
					array()
				),
				array(
					'fc/overlay-content',
					array(),
					array(
						array(
							'core/group',
							array(
								'tagName' => 'div',
								'layout' => array(
									'type' => 'flex',
									'orientation' => 'vertical',
									'justifyContent' => 'center'
								)
							),
							array(
								array(
									'core/group',
									array(
										'tagName' => 'div',
										'layout' => array(
											'type' => 'flex',
											'orientation' => 'vertical',
											'justifyContent' => 'center'
										)
									),
									array(
										array(
											'core/paragraph',
											array(
												'content' => __( 'HEY... Don’t Go Yet!', 'fooconvert' ),
												'dropCap' => false,
												'className' => 'fc-text-shadow-stroke',
												'style' => array(
													'elements' => array(
														'link' => array(
															'color' => array(
																'text' => '#f26522'
															)
														)
													),
													'color' => array(
														'text' => '#f26522'
													),
													'typography' => array(
														'fontSize' => '52px',
														'fontStyle' => 'normal',
														'fontWeight' => '800',
														'lineHeight' => '1'
													),
													'layout' => array(
														'selfStretch' => 'fit',
														'flexSize' => null
													)
												),
												'fontFamily' => 'montserrat',
												'align' => 'center'
											),
											array()
										),
										array(
											'core/paragraph',
											array(
												'align' => 'center',
												'content' => __( 'Take 10% Off Your First Order – Our Treat!', 'fooconvert' ),
												'dropCap' => false,
												'className' => 'fc-text-shadow',
												'style' => array(
													'typography' => array(
														'fontSize' => '30px',
														'fontStyle' => 'normal',
														'fontWeight' => '600',
														'lineHeight' => '1.1'
													),
													'color' => array(
														'text' => '#ffffff'
													)
												),
												'fontFamily' => 'montserrat'
											),
											array()
										)
									)
								),
								array(
									'fc/coupon',
									array(
										'uniqueId' => '9b3fb64b-3632-4f9f-b705-f55a5cd3dcac',
										'styles' => array(
											'typography' => array(
												'fontSize' => '1.125rem'
											),
											'background' => array()
										),
										'settings' => array(
											'textAlign' => 'center',
											'noLabel' => true,
											'closeOnCopy' => true
										),
										'code' => array(
											'settings' => array(
												'text' => 'SAVE10',
												'textAlign' => 'center'
											),
											'styles' => array(
												'border' => array(
													'radius' => '35px'
												),
												'typography' => array(
													'fontFamily' => array(
														'key' => 'fira-code',
														'name' => 'Fira Code',
														'style' => array(
															'fontFamily' => '"Fira Code", monospace'
														)
													)
												),
												'innerPadding' => array(
													'top' => '5px',
													'right' => '20px',
													'bottom' => '5px',
													'left' => '20px'
												),
												'dimensions' => array(
													'padding' => '5px'
												)
											)
										),
										'button' => array(
											'settings' => array(
												'icon' => array(
													'slug' => 'default__copy',
													'size' => '24px'
												),
												'layout' => 'text-icon',
												'text' => 'Claim Now!'
											),
											'styles' => array(
												'border' => array(
													'radius' => '35px'
												),
												'color' => array(
													'background' => '#f26522'
												),
												'typography' => array(
													'fontFamily' => array(
														'key' => 'montserrat',
														'name' => 'Montserrat',
														'style' => array(
															'fontFamily' => 'Montserrat'
														)
													),
													'fontSize' => '1.125rem',
													'fontStyle' => 'normal',
													'fontWeight' => 600
												)
											)
										)
									),
									array()
								),
								array(
									'core/paragraph',
									array(
                                        'content' => __( 'Only available while you’re still here...', 'fooconvert' ),
										'dropCap' => false,
										'fontSize' => 'small'
									),
									array()
								)
							)
						)
					)
				)
			)
		)
	),
	'scope' => array(
		'block'
	)
);
