<?php
/**
 * Bundled BFB template: Full-Day Booking Wizard (2 Steps).
 *
 * @package Booking Calendar
 * @file ../includes/page-form-builder/assets/template-records/dates_form_wizard_2_steps.php
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$wpbc_full_day_booking_wizard_2_steps_structure_json = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_STRUCTURE'
[{\"page\":1,\"content\":[{\"type\":\"section\",\"data\":{\"id\":\"section-22-1773220565981\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"type\":\"steps_timeline\",\"usage_key\":\"steps_timeline\",\"steps_count\":2,\"active_step\":1,\"color\":\"#619d40\",\"label\":\"Steps_timeline\",\"cssclass_extra\":\"\",\"steps_scope_suffix\":1360,\"id\":\"steps-timeline-yuslc\",\"name\":\"steps-timeline-yuslc\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-11-1773137021920\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"[{},{\\\"gap\\\":\\\"25px\\\",\\\"aself\\\":\\\"stretch\\\"}]\",\"columns\":[{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"calendar\",\"type\":\"calendar\",\"usage_key\":\"calendar\",\"usagenumber\":1,\"resource_id\":1,\"months\":1,\"label\":\"Select Date\",\"min_width\":\"250px\",\"name\":\"calendar\",\"wpbc-cal-init\":1,\"wpbc-cal-loaded-rid\":1}}]},{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"select\",\"type\":\"select\",\"usage_key\":\"select\",\"label\":\"Adults\",\"name\":\"adults\",\"min_width\":\"240px\",\"html_id\":\"\",\"cssclass\":\"\",\"placeholder\":\"--- Select ---\",\"options\":[{\"label\":\"1\",\"value\":\"1\",\"selected\":false},{\"label\":\"2\",\"value\":\"2\",\"selected\":false},{\"label\":\"3\",\"value\":\"3\",\"selected\":false},{\"label\":\"4\",\"value\":\"4\",\"selected\":false}],\"help\":\"Select the number of adults.\",\"required\":1}},{\"type\":\"field\",\"data\":{\"type\":\"select\",\"usage_key\":\"select\",\"label\":\"Children\",\"min_width\":\"240px\",\"cssclass\":\"\",\"placeholder\":\"--- Select ---\",\"options\":[{\"label\":\"0\",\"value\":\"0\",\"selected\":false},{\"label\":\"1\",\"value\":\"1\",\"selected\":false},{\"label\":\"2\",\"value\":\"2\",\"selected\":false},{\"label\":\"3\",\"value\":\"3\",\"selected\":false}],\"help\":\"Select the number of children.\",\"id\":\"guests-number-5obnf\",\"name\":\"children\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-13-1773062424786\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"[{\\\"dir\\\":\\\"row\\\",\\\"wrap\\\":\\\"wrap\\\",\\\"jc\\\":\\\"flex-end\\\",\\\"ai\\\":\\\"flex-end\\\",\\\"gap\\\":\\\"10px\\\",\\\"aself\\\":\\\"flex-end\\\"}]\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"divider_horizontal-3\",\"type\":\"divider\",\"usage_key\":\"divider_horizontal\",\"orientation\":\"horizontal\",\"line_style\":\"solid\",\"thickness_px\":1,\"length\":\"100%\",\"align\":\"center\",\"color\":\"#e0e0e0\",\"label\":\"Divider_horizontal\",\"name\":\"divider_horizontal-3\",\"margin_top_px\":2,\"margin_bottom_px\":2,\"margin_left_px\":2,\"margin_right_px\":2,\"cssclass_extra\":\"\",\"html_id\":\"\"}},{\"type\":\"field\",\"data\":{\"id\":\"wizard_nav_next-3\",\"type\":\"wizard_nav\",\"usage_key\":\"wizard_nav_next\",\"direction\":\"next\",\"target_step\":2,\"label\":\"Next\",\"name\":\"wizard_nav_next-3\",\"cssclass_extra\":\"\",\"html_id\":\"\"}}]}]}}]},{\"page\":2,\"content\":[{\"type\":\"field\",\"data\":{\"type\":\"steps_timeline\",\"usage_key\":\"steps_timeline\",\"steps_count\":2,\"active_step\":2,\"color\":\"#619d40\",\"label\":\"Steps_timeline\",\"cssclass_extra\":\"\",\"steps_scope_suffix\":1360,\"id\":\"steps-timeline-sl4yc\",\"name\":\"steps-timeline-sl4yc\",\"html_id\":\"\"}},{\"type\":\"section\",\"data\":{\"id\":\"section-14-1773062762472\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-firstname\",\"type\":\"text\",\"usage_key\":\"text-firstname\",\"label\":\"First Name\",\"name\":\"firstname\",\"placeholder\":\"Example: \\\"John\\\"\",\"required\":1,\"help\":\"Enter your first name.\",\"cssclass\":\"firstname\",\"min_width\":\"8em\",\"html_id\":\"\"}}]},{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-secondname\",\"type\":\"text\",\"usage_key\":\"text-secondname\",\"label\":\"Last Name\",\"name\":\"secondname\",\"placeholder\":\"Example: \\\"Smith\\\"\",\"required\":1,\"help\":\"Enter your last name.\",\"cssclass\":\"secondname lastname\",\"min_width\":\"8em\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-16-1773062802362\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"email\",\"type\":\"email\",\"usage_key\":\"email\",\"label\":\"Email\",\"usagenumber\":1,\"name\":\"email\",\"html_id\":\"\",\"cssclass\":\"\",\"required\":true,\"help\":\"Enter your email address.\"}}]},{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text\",\"type\":\"text\",\"usage_key\":\"text\",\"label\":\"Phone\",\"name\":\"phone\",\"cssclass\":\"\",\"html_id\":\"\",\"placeholder\":\"(000)  999 - 10 - 20\",\"help\":\"Enter contact phone number\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-17-1773062914950\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"textarea\",\"type\":\"textarea\",\"usage_key\":\"textarea\",\"min_width\":\"260px\",\"label\":\"Details\",\"name\":\"details\",\"cssclass\":\"\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-21-1773063061362\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"accept_terms\",\"type\":\"accept_terms\",\"usage_key\":\"accept_terms\",\"label\":\"Accept Terms\",\"name\":\"accept_terms\",\"required\":1,\"links\":[{\"key\":\"terms\",\"text\":\"terms\",\"link_type\":\"url\",\"destination\":\"https://server.com/terms/\",\"target\":\"_blank\",\"cssclass\":\"\"},{\"key\":\"conditions\",\"text\":\"conditions\",\"link_type\":\"url\",\"destination\":\"https://server.com/conditions/\",\"target\":\"_blank\",\"cssclass\":\"\"}]}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-13-1773062424785\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"[{\\\"dir\\\":\\\"row\\\",\\\"wrap\\\":\\\"wrap\\\",\\\"jc\\\":\\\"flex-end\\\",\\\"ai\\\":\\\"flex-end\\\",\\\"gap\\\":\\\"10px\\\",\\\"aself\\\":\\\"flex-end\\\"}]\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"divider_horizontal-2\",\"type\":\"divider\",\"usage_key\":\"divider_horizontal\",\"orientation\":\"horizontal\",\"line_style\":\"solid\",\"thickness_px\":1,\"length\":\"100%\",\"align\":\"center\",\"color\":\"#e0e0e0\",\"label\":\"Divider_horizontal\",\"name\":\"divider_horizontal-2\",\"margin_top_px\":2,\"margin_bottom_px\":2,\"margin_left_px\":2,\"margin_right_px\":2,\"cssclass_extra\":\"\",\"html_id\":\"\"}},{\"type\":\"field\",\"data\":{\"id\":\"wizard_nav_next-2\",\"type\":\"wizard_nav\",\"usage_key\":\"wizard_nav_next\",\"direction\":\"back\",\"target_step\":1,\"label\":\"Back\",\"name\":\"wizard_nav_next-2\",\"cssclass_extra\":\"\",\"html_id\":\"\"}},{\"type\":\"field\",\"data\":{\"id\":\"submit\",\"type\":\"submit\",\"usage_key\":\"submit\",\"usagenumber\":1,\"label\":\"Send\",\"name\":\"submit\",\"cssclass\":\"wpbc_bfb__btn wpbc_bfb__btn--primary\",\"html_id\":\"\"}}]}]}}]}]
WPBC_BFB_TEMPLATE_STRUCTURE
	)
);

$wpbc_full_day_booking_wizard_2_steps_settings_json = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_SETTINGS'
{\"options\":{\"booking_form_theme\":\"\",\"booking_form_layout_width\":\"100%\",\"booking_type_of_day_selections\":\"\"},\"css_vars\":[],\"bfb_options\":{\"advanced_mode_source\":\"builder\"}}
WPBC_BFB_TEMPLATE_SETTINGS
	)
);

$wpbc_full_day_booking_wizard_2_steps_advanced_form = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_ADVANCED_FORM'
<div class=\"wpbc_bfb_form wpbc_wizard__border_container\">\n	<div class=\"wpbc_wizard_step wpbc__form__div wpbc_wizard_step1\">\n		<r>\n			<c style=\"flex-basis: 100%\">\n				<item>\n					[steps_timeline steps_count=\"2\" active_step=\"1\" color=\"#619d40\"]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 48.5%;--wpbc-col-min: 0px\">\n				<item>\n					<l>Select Date</l>\n					<br>[calendar]\n				</item>\n			</c>\n			<c style=\"flex-basis: 48.5%;--wpbc-bfb-col-gap: 25px;--wpbc-bfb-col-aself: stretch;--wpbc-col-min: 0px\">\n				<item>\n					<l>Adults</l>\n					<br>[selectbox* adults \"--- Select ---@@\" \"1\" \"2\" \"3\" \"4\"]\n					<div class=\"wpbc_field_description\">Select the number of adults.</div>\n				</item>\n				<item>\n					<l>Children</l>\n					<br>[selectbox children \"--- Select ---@@\" \"0\" \"1\" \"2\" \"3\"]\n					<div class=\"wpbc_field_description\">Select the number of children.</div>\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%;--wpbc-bfb-col-dir: row;--wpbc-bfb-col-wrap: wrap;--wpbc-bfb-col-jc: flex-end;--wpbc-bfb-col-ai: flex-end;--wpbc-bfb-col-gap: 10px;--wpbc-bfb-col-aself: flex-end;--wpbc-col-min: 0px\">\n				<item>\n					<div class=\"wpbc_bfb_divider_wrap\" data-bfb-type=\"divider\" data-orientation=\"horizontal\" style=\"margin:2px 2px 2px 2px\"><hr name=\"divider_horizontal-3\" class=\"wpbc_bfb_divider wpbc_bfb_divider--h\" style=\"border:none;height:0;border-top:1px solid #e0e0e0;width:100%;margin-left:auto;margin-right:auto\"></div>\n				</item>\n				<item>\n					<a class=\"wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2\">Next</a>\n				</item>\n			</c>\n		</r>\n	</div>\n	<div class=\"wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden\" style=\"display:none;clear:both\">\n		<r>\n			<c>\n				<item>\n					[steps_timeline steps_count=\"2\" active_step=\"2\" color=\"#619d40\"]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>First Name</l>\n					<br>[text* firstname class:firstname placeholder:\"Example: \'John\'\"]\n					<div class=\"wpbc_field_description\">Enter your first name.</div>\n				</item>\n			</c>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Last Name</l>\n					<br>[text* secondname class:secondname class:lastname placeholder:\"Example: \'Smith\'\"]\n					<div class=\"wpbc_field_description\">Enter your last name.</div>\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Email</l>\n					<br>[email* email]\n					<div class=\"wpbc_field_description\">Enter your email address.</div>\n				</item>\n			</c>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Phone</l>\n					<br>[text phone placeholder:\"(000)  999 - 10 - 20\"]\n					<div class=\"wpbc_field_description\">Enter contact phone number</div>\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%\">\n				<item>\n					<l>Details</l>\n					<br>[textarea details]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%\">\n				<item>\n					<p class=\"wpbc_row_inline wpdev-form-control-wrap \">\n\t\t\t\t\t<l class=\"wpbc_inline_checkbox\">[checkbox* accept_terms \"I accept\"] the <a href=\"https://server.com/terms/\" target=\"_blank\" rel=\"noopener noreferrer\">terms</a> and <a href=\"https://server.com/conditions/\" target=\"_blank\" rel=\"noopener noreferrer\">conditions</a></l>\n\t\t\t\t\t</p>\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%;--wpbc-bfb-col-dir: row;--wpbc-bfb-col-wrap: wrap;--wpbc-bfb-col-jc: flex-end;--wpbc-bfb-col-ai: flex-end;--wpbc-bfb-col-gap: 10px;--wpbc-bfb-col-aself: flex-end;--wpbc-col-min: 0px\">\n				<item>\n					<div class=\"wpbc_bfb_divider_wrap\" data-bfb-type=\"divider\" data-orientation=\"horizontal\" style=\"margin:2px 2px 2px 2px\"><hr name=\"divider_horizontal-2\" class=\"wpbc_bfb_divider wpbc_bfb_divider--h\" style=\"border:none;height:0;border-top:1px solid #e0e0e0;width:100%;margin-left:auto;margin-right:auto\"></div>\n				</item>\n				<item>\n					<a class=\"wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1\">Back</a>\n				</item>\n				<item>\n					<span class=\"wpbc_bfb__btn wpbc_bfb__btn--primary\" style=\"flex:1\">[submit \"Send\"]</span>\n				</item>\n			</c>\n		</r>\n	</div>\n</div>
WPBC_BFB_TEMPLATE_ADVANCED_FORM
	)
);

$wpbc_full_day_booking_wizard_2_steps_content_form = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_CONTENT_FORM'
<div class=\"standard-content-form\">\n	<b>Adults</b>: <f>[adults]</f><br>\n	<b>Children</b>: <f>[children]</f><br>\n	<b>First Name</b>: <f>[firstname]</f><br>\n	<b>Last Name</b>: <f>[secondname]</f><br>\n	<b>Email</b>: <f>[email]</f><br>\n	<b>Phone</b>: <f>[phone]</f><br>\n	<b>Details</b>: <f>[details]</f><br>\n	<b>Accept Terms</b>: <f>[accept_terms]</f><br>\n</div>
WPBC_BFB_TEMPLATE_CONTENT_FORM
	)
);

return array(
	'template_key' => 'dates_form_wizard_2_steps',
	'seed_version' => '10.15',
	'sync_mode'    => 'insert_only', // 'insert_only' = insert once if missing, never overwrite existing row. | 'upsert' = insert if missing, update existing row when seed_version increases.
	'record'       => array(
		'form_slug'           => 'dates_form_wizard_2_steps',
		'status'              => 'template',
		'scope'               => 'global',
		'version'             => 1,
		'booking_resource_id' => null,
		'owner_user_id'       => 0,
		'engine'              => 'bfb',
		'engine_version'      => '1.0',
		'structure_json'      => $wpbc_full_day_booking_wizard_2_steps_structure_json,
		'settings_json'       => $wpbc_full_day_booking_wizard_2_steps_settings_json,
		'advanced_form'       => $wpbc_full_day_booking_wizard_2_steps_advanced_form,
		'content_form'        => $wpbc_full_day_booking_wizard_2_steps_content_form,
		'is_default'          => 0,
		'title'               => 'Full-Day Booking Wizard (2 Steps)',
		'description'         => 'Two-step full-day booking form with date selection and guest details on the first step, followed by contact details on the second step, designed for full-days bookings.',
		'picture_url'         => 'dates_form_wizard_2_steps.png',
	),
);