<div class="wpgmza-feature-panel">

	<!-- Instructions -->
	<div class="wpgmza-feature-drawing-instructions wpgmza-feature-editing-instructions wpgmza-pro-feature wpgmza-card wpgmza-shadow wpgmza-instruction-card">
		<strong><?php _e("Creating heatmaps", "wp-google-maps"); ?></strong>
		<ul>
			<li>
				<?php _e('<strong>Click</strong> on the map to add points to your heatmap.', 'wp-google-maps'); ?>
			</li>
			<li>
				<?php _e('<strong>Click</strong> an existing heatmap point to remove points from the heatmap.', 'wp-google-maps'); ?>
			</li>
			<li>
				<?php _e('<strong>Drag</strong> points on the heatmap to re-position them.', 'wp-google-maps'); ?>
			</li>
			<li>
				<?php _e('<strong>Hold right mouse</strong> to draw points freehand', 'wp-google-maps'); ?>
			</li>
		</ul>
	</div>

	<div class="wpgmza-upsell wpgmza-card wpgmza-shadow">
		<?php
			echo sprintf(
				__(
					'Add dynamic heatmap data with the <a href="%s" target="_BLANK">Pro version</a>. <a href="%s" target="_BLANK">View a demo</a>',
					"wp-google-maps"
				),
				esc_attr("https://www.wpgmaps.com/demo/heatmaps-demo/?utm_source=plugin&utm_medium=link&utm_campaign=heatmap-v10"),
				esc_attr("https://www.wpgmaps.com/demo/heatmaps-demo/?utm_source=plugin&utm_medium=link&utm_campaign=heatmap_demo-v10")
			);
		?>
		<a target="_BLANK" class="wpgmza-upsell-button"
			href="<?php esc_attr_e(\WPGMZA\Plugin::getProLink("https://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&amp;utm_medium=link&amp;utm_campaign=heatmapeditor-btn-atlas-novus-v10" . wpgmzaGetUpsellLinkParams()));  ?>">
			<?php _e('Unlock Heatmaps', 'wp-google-maps'); ?> 
		</a>
	</div>

	<!-- Hidden reference fields-->
	<input data-ajax-name="id" type="hidden" value="-1"/>
	<input data-ajax-name="map_id" type="hidden" value="-1"/>
	
	<!-- Name -->
	<fieldset class="wpgmza-pro-feature">
		<legend><?php esc_html_e("Name", "wp-google-maps"); ?></legend>
		<input type="text" data-ajax-name="dataset_name"/>
	</fieldset>
	
	<!-- Style -->
	<fieldset class="wpgmza-pro-feature">
		<legend><?php esc_html_e("Gradient", "wp-google-maps"); ?></legend>
		
		<ul>
			<li>
				<label>
					<input name="gradient" type="radio" data-ajax-name="gradient" value='["rgba(0, 0, 255, 0)", "rgba(0, 255, 255, 1)", "rgba(0, 255, 0, 1)", "rgba(255, 255, 0, 1)", "rgba(255, 0, 0, 1)"]' checked="checked"/>
					<?php esc_html_e("Default", "wp-google-maps"); ?>
				</label>
			</li>
			<li>
				<label>
					<input name="gradient" type="radio" data-ajax-name="gradient" value='["rgba(0, 255, 255, 0)","rgba(0, 255, 255, 1)","rgba(0, 191, 255, 1)","rgba(0, 127, 255, 1)","rgba(0, 63, 255, 1)","rgba(0, 0, 255, 1)","rgba(0, 0, 223, 1)","rgba(0, 0, 191, 1)","rgba(0, 0, 159, 1)","rgba(0, 0, 127, 1)","rgba(63, 0, 91, 1)","rgba(127, 0, 63, 1)","rgba(191, 0, 31, 1)","rgba(255, 0, 0, 1)"]'/>
					<?php esc_html_e("Blue", "wp-google-maps"); ?>
				</label>
			</li>
		</ul>
	</fieldset>

	<!-- Opacity -->	
	<fieldset class="wpgmza-pro-feature">
		<legend><?php esc_html_e("Opacity", "wp-google-maps"); ?></legend>
		<input type="number" data-ajax-name="opacity" min="0" max="1" step="0.1" value="0.5"/>
	</fieldset>
	
	<!-- Hint -->
	<div class="hint">
		<?php esc_html_e('(0 - 1.0) example: 0.5 for 50%', 'wp-google-maps'); ?>
	</div>

	<!-- Radius -->
	<fieldset class="wpgmza-pro-feature">
		<legend><?php esc_html_e("Radius", "wp-google-maps"); ?></legend>
		<input type="number" data-ajax-name="radius" min="1" step="1" value="20"/>
	</fieldset>
	
	<!-- Hidden -->
	<input data-ajax-name="dataset" type="hidden"/>
	
	<!-- button -->
	<fieldset class="wpgmza-save-feature-container wpgmza-pro-feature-hide">
		<button 
			type="button" 
			class="wpgmza-button wpgmza-button-accent wpgmza-save-feature"
			data-add-caption="<?php esc_attr_e('Add Heatmap', 'wp-google-maps'); ?>"
			data-edit-caption="<?php esc_attr_e('Save Heatmap', 'wp-google-maps'); ?>">
		</button>
	</fieldset>
</div>