<?php
/**
 * Bundled BFB template: Technical Support Request Form.
 *
 * @package Booking Calendar
 * @file ../includes/page-form-builder/save-load/template-records/template-technical-support-form.php
 */

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

$wpbc_technical_support_form_structure_json = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_STRUCTURE'
[{\"page\":1,\"content\":[{\"type\":\"section\",\"data\":{\"id\":\"section-23-1773826346481\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"static_text\",\"type\":\"static_text\",\"usage_key\":\"static_text\",\"text\":\"Technical Support\",\"tag\":\"h3\",\"align\":\"left\",\"bold\":0,\"italic\":0,\"html_allowed\":0,\"nl2br\":1,\"label\":\"Static_text\",\"name\":\"static_text\",\"html_id\":\"\",\"cssclass_extra\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-24-1773826385631\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-iai\",\"type\":\"text\",\"usage_key\":\"text\",\"label\":\"Product or Service Name\",\"name\":\"product_or_service_name\",\"cssclass\":\"\",\"html_id\":\"\",\"required\":1}}]},{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-0ew\",\"type\":\"text\",\"usage_key\":\"text\",\"label\":\"Product or Service Version\",\"name\":\"product_or_service_version\",\"cssclass\":\"\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-25-1773826549577\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-qhp\",\"type\":\"text\",\"usage_key\":\"text\",\"label\":\"Platform or Operating System\",\"name\":\"platform_or_operating_system\",\"cssclass\":\"\",\"html_id\":\"\"}}]},{\"width\":\"48.5%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"text-09i\",\"type\":\"text\",\"usage_key\":\"text\",\"label\":\"Error Message (if applicable)\",\"name\":\"error_message\",\"cssclass\":\"\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-26-1773826640806\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"radio\",\"type\":\"radio\",\"usage_key\":\"radio\",\"label\":\"Priority Level\",\"name\":\"priority_level\",\"min_width\":\"240px\",\"html_id\":\"\",\"cssclass\":\"group_inline\",\"placeholder\":\"--- Select ---\",\"options\":[{\"label\":\"High\",\"value\":\"High\",\"selected\":false},{\"label\":\"Medium\",\"value\":\"Medium\",\"selected\":false},{\"label\":\"Low\",\"value\":\"Low\",\"selected\":false}],\"required\":1,\"layout_inline\":1}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-27-1773826694444\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"textarea-1g2\",\"type\":\"textarea\",\"usage_key\":\"textarea\",\"min_width\":\"260px\",\"label\":\"Description of the Issue\",\"name\":\"description_of_the_issue\",\"cssclass\":\"\",\"html_id\":\"\"}}]}]}},{\"type\":\"section\",\"data\":{\"id\":\"section-13-1773062424784\",\"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\",\"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\",\"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\",\"type\":\"wizard_nav\",\"usage_key\":\"wizard_nav_next\",\"direction\":\"next\",\"target_step\":2,\"label\":\"Next\",\"name\":\"wizard_nav_next\",\"cssclass_extra\":\"\",\"html_id\":\"\"}}]}]}}]},{\"page\":2,\"content\":[{\"type\":\"section\",\"data\":{\"id\":\"section-23-1773826346482\",\"label\":\"Section\",\"html_id\":\"\",\"cssclass\":\"\",\"col_styles\":\"\",\"columns\":[{\"width\":\"100%\",\"items\":[{\"type\":\"field\",\"data\":{\"id\":\"static_text-2\",\"type\":\"static_text\",\"usage_key\":\"static_text\",\"text\":\"User Details\",\"tag\":\"h3\",\"align\":\"left\",\"bold\":0,\"italic\":0,\"html_allowed\":0,\"nl2br\":1,\"label\":\"Static_text\",\"name\":\"static_text-2\",\"html_id\":\"\",\"cssclass_extra\":\"\"}}]}]}},{\"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\":\"\",\"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-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_technical_support_form_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_technical_support_form_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					<h3 class=\"wpbc_static_text\" style=\"text-align:left\">Technical Support</h3>\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Product or Service Name</l>\n					<br>[text* product_or_service_name]\n				</item>\n			</c>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Product or Service Version</l>\n					<br>[text product_or_service_version]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Platform or Operating System</l>\n					<br>[text platform_or_operating_system]\n				</item>\n			</c>\n			<c style=\"flex-basis: 48.5%\">\n				<item>\n					<l>Error Message (if applicable)</l>\n					<br>[text error_message]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%\">\n				<item>\n					<l>Priority Level</l>\n					<br>[radio* priority_level class:group_inline use_label_element \"High\" \"Medium\" \"Low\"]\n				</item>\n			</c>\n		</r>\n		<r>\n			<c style=\"flex-basis: 100%\">\n				<item>\n					<l>Description of the Issue</l>\n					<br>[textarea description_of_the_issue]\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\" 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 style=\"flex-basis: 100%\">\n				<item>\n					<h3 class=\"wpbc_static_text\" style=\"text-align:left\">User Details</h3>\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					<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_technical_support_form_content_form = trim(
	stripcslashes(
<<<'WPBC_BFB_TEMPLATE_CONTENT_FORM'
<div class=\"standard-content-form\">\n	<b>Product or Service Name</b>: <f>[product_or_service_name]</f><br>\n	<b>Product or Service Version</b>: <f>[product_or_service_version]</f><br>\n	<b>Platform or Operating System</b>: <f>[platform_or_operating_system]</f><br>\n	<b>Error Message (if applicable)</b>: <f>[error_message]</f><br>\n	<b>Priority Level</b>: <f>[priority_level]</f><br>\n	<b>Description of the Issue</b>: <f>[description_of_the_issue]</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>Accept Terms</b>: <f>[accept_terms]</f><br>\n</div>
WPBC_BFB_TEMPLATE_CONTENT_FORM
	)
);

return array(
	'template_key' => 'technical_support_form',
	'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'           => 'technical_support_form',
		'status'              => 'template',
		'scope'               => 'global',
		'version'             => 1,
		'booking_resource_id' => null,
		'owner_user_id'       => 0,
		'engine'              => 'bfb',
		'engine_version'      => '1.0',
		'structure_json'      => $wpbc_technical_support_form_structure_json,
		'settings_json'       => $wpbc_technical_support_form_settings_json,
		'advanced_form'       => $wpbc_technical_support_form_advanced_form,
		'content_form'        => $wpbc_technical_support_form_content_form,
		'is_default'          => 0,
		'title'               => 'Technical Support Request Form',
		'description'         => 'Two-step support request form for collecting product details, issue description, priority level, and customer contact form.',
		'picture_url'         => 'technical_support_form.png',
	),
);