<?php

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


$parcel_machine_selected = false;
$selected                = '';

?>
<tr class="alsendo-connect-checkout-locker-point">
	<th class="alsendo-connect-checkout-locker-point-label">
		<?php esc_html__( 'Select point', 'alsendo-connect' ); ?>
	</th>
	<td class="alsendo-connect-checkout-locker-point-select">
		<?php if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX ) { ?>
			<input type="button"
					class="alsendo_geowidget_show_map_classic_checkout alsendo-hidden"
					name="geowidget_show_map"
					id="alsendo_geowidget_show_map_classic_checkout"
					value="<?php echo esc_html__( 'Select point', 'alsendo-connect' ); ?>"
					data-value="<?php echo esc_html__( 'Select point', 'alsendo-connect' ); ?>"
			>
			<div id="selected-parcel-machine" class="apaczka-hidden">
				<div><span class="font-height-600">
				<?php echo esc_html__( 'Selected Parcel Locker:', 'alsendo-connect' ); ?>
				</span></div>
				<span class="italic" id="selected-parcel-machine-id"></span>
				<span class="italic" id="selected-parcel-machine-desc"></span>
			</div>
			<input type="hidden" id="apm_access_point_id" name="apm_access_point_id"/>
			<input type="hidden" id="apm_supplier" name="apm_supplier"/>
			<input type="hidden" id="apm_name" name="apm_name"/>
			<input type="hidden" id="apm_foreign_access_point_id" name="apm_foreign_access_point_id"/>
			<input type="hidden" id="apm_street" name="apm_street"/>
			<input type="hidden" id="apm_city" name="apm_city"/>
			<input type="hidden" id="apm_postal_code" name="apm_postal_code"/>
			<input type="hidden" id="apm_country_code" name="apm_country_code"/>
			<input type="hidden" id="alsendo_connect_checkout" name="alsendo_connect_checkout" value="<?php echo esc_attr( wp_create_nonce( 'alsendo_connect_nonce_param' ) ); ?>"/>
		<?php } ?>
	</td>
</tr>
