<?php

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

class Safelayout_iconlist_elementor_control extends \Elementor\Base_Data_Control {

	public function get_type(): string {
		return 'Safelayout_iconlist_control';
	}

	public function get_default_value(): string {
		return '<ul class="safelayout-ei-icon-list-block" style="flex-direction: column;align-items:flex-start;--sl-ei-icon-list-icon-gap:5px;--sl-ei-icon-list-line-gap:0px;--sl-ei-icon-list-icon-vertical-align:center;--sl-ei-icon-list-icon-direction:row;"><li class="safelayout-ei-list-item-block safelayout-ei-icon-block" style="margin:0px;padding:0px;font-size:16px;"><span style="height:32px;width:32px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs><linearGradient id="bgFillGrad1f2adeea-56de-3e3b-0192-ab599f114a8a" x1="0.5" y1="1" x2="0.5" y2="0"><stop stop-color="#0130FF" offset="0"></stop><stop stop-color="#3CB4FF" offset="1"></stop></linearGradient></defs><g><rect x="4" y="4" width="88" height="88" rx="44" fill="url(#bgFillGrad1f2adeea-56de-3e3b-0192-ab599f114a8a)" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height:calc(110% - 10px);width:calc(110% - 10px);"><defs></defs><symbol viewBox="0 0 24 24" id="path1f2adeea-56de-3e3b-0192-ab599f114a8a"><path vector-effect="non-scaling-stroke" fill="#00f" stroke="#000" stroke-width="0" d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></symbol><use href="#path1f2adeea-56de-3e3b-0192-ab599f114a8a"></use></svg></span><span class="sl-ei-list-item-content" style="text-align:left;"><div>List item ...</div></span></li><li class="safelayout-ei-list-item-block safelayout-ei-icon-block" style="margin:0px;padding:0px;font-size:16px;"><span style="height:32px;width:32px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs><linearGradient id="bgFillGrad0598cc87-1162-787b-bbf7-94d0bb795041" x1="0.5" y1="1" x2="0.5" y2="0"><stop stop-color="#0130FF" offset="0"></stop><stop stop-color="#3CB4FF" offset="1"></stop></linearGradient></defs><g><rect x="4" y="4" width="88" height="88" rx="44" fill="url(#bgFillGrad0598cc87-1162-787b-bbf7-94d0bb795041)" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height:calc(110% - 10px);width:calc(110% - 10px);"><defs></defs><symbol viewBox="0 0 24 24" id="path0598cc87-1162-787b-bbf7-94d0bb795041"><path vector-effect="non-scaling-stroke" fill="#00f" stroke="#000" stroke-width="0" d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></symbol><use href="#path0598cc87-1162-787b-bbf7-94d0bb795041"></use></svg></span><span class="sl-ei-list-item-content" style="text-align:left;"><div>List item ...</div></span></li></ul>attsafelayoutatt%7B%22elementStyle%22%3A%22%22%2C%22hasBg%22%3Atrue%2C%22bgShape%22%3A%22rect%22%2C%22bgShapeVal%22%3A%22%22%2C%22size%22%3A%2232px%22%2C%22color%22%3A%22%2300f%22%2C%22strokeColor%22%3A%22%23000%22%2C%22strokeWidth%22%3A0%2C%22hasShadow%22%3Afalse%2C%22shadow%22%3A%22drop-shadow(2px%202px%201px%20%23000)%22%2C%22svgFilter%22%3A%22none%22%2C%22bgColor%22%3A%22linear-gradient(0deg%2C%230130FF%200%25%2C%233CB4FF%20100%25)%22%2C%22bgStrokeColor%22%3A%22%23000%22%2C%22bgStrokeWidth%22%3A0%2C%22hasBgShadow%22%3Afalse%2C%22bgShadow%22%3A%22drop-shadow(0px%203px%202px%20%23000)%22%2C%22hasBaseShadow%22%3Afalse%2C%22baseShadowWidth%22%3A70%2C%22baseShadowHeight%22%3A12%2C%22baseShadowTop%22%3A96%2C%22padding%22%3A4%2C%22bgRadius%22%3A50%2C%22effect%22%3A%22No%20Effect%22%2C%22slbbAnim%22%3A%22No%20Animation%22%2C%22label%22%3A%22%22%2C%22title%22%3A%22%22%2C%22slbbFont%22%3A%22Default%22%2C%22slbbFontSize%22%3A%2216px%22%2C%22slbbIconGap%22%3A5%2C%22slbbListGap%22%3A0%2C%22slbbJust%22%3A%22left%22%2C%22slbbOrient%22%3A%22column%22%2C%22slbbVerAlign%22%3A%22center%22%2C%22slbbFlDirection%22%3A%22row%22%2C%22blockMargin%22%3A%7B%7D%2C%22blockPadding%22%3A%7B%7D%2C%22className%22%3A%22%22%2C%22slbbListItems%22%3A%5B%7B%22blockId%22%3A%221f2adeea-56de-3e3b-0192-ab599f114a8a%22%2C%22rotate%22%3A0%2C%22flipHorizontal%22%3Afalse%2C%22flipVertical%22%3Afalse%2C%22rotateBg%22%3A0%2C%22name%22%3A%22000_check%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M16.7%207.1l-6.3%208.5-3.3-2.5-.9%201.2%204.5%203.4L17.9%208z%22%7D%5D%2C%22customSVG%22%3A%22%22%2C%22hasBg%22%3Atrue%2C%22bgShape%22%3A%22rect%22%2C%22bgShapeVal%22%3A%22%22%2C%22size%22%3A%2232px%22%2C%22color%22%3A%5B%22%2300f%22%5D%2C%22strokeColor%22%3A%5B%22%23000%22%5D%2C%22strokeWidth%22%3A%5B0%5D%2C%22hasShadow%22%3Afalse%2C%22shadow%22%3A%22drop-shadow(2px%202px%201px%20%23000)%22%2C%22svgFilter%22%3A%22none%22%2C%22bgColor%22%3A%22linear-gradient(0deg%2C%230130FF%200%25%2C%233CB4FF%20100%25)%22%2C%22bgStrokeColor%22%3A%22%23000%22%2C%22bgStrokeWidth%22%3A0%2C%22hasBgShadow%22%3Afalse%2C%22bgShadow%22%3A%22drop-shadow(0px%203px%202px%20%23000)%22%2C%22hasBaseShadow%22%3Afalse%2C%22baseShadowWidth%22%3A70%2C%22baseShadowHeight%22%3A12%2C%22baseShadowTop%22%3A96%2C%22padding%22%3A4%2C%22bgRadius%22%3A50%2C%22effect%22%3A%22No%20Effect%22%2C%22slbbAnim%22%3A%22No%20Animation%22%2C%22label%22%3A%22%22%2C%22title%22%3A%22%22%2C%22linkUrl%22%3A%22%22%2C%22linkRel%22%3A%22%22%2C%22linkTarget%22%3A%22%22%2C%22slbbIndent%22%3A0%2C%22content%22%3A%22List%20item%20...%22%2C%22sllbbAlign%22%3A%22left%22%2C%22slbbUppercase%22%3Afalse%2C%22slbbFont%22%3A%22Default%22%2C%22slbbFontSize%22%3A%2216px%22%2C%22slbbHasSubText%22%3Afalse%2C%22slbbSubText%22%3A%22More%20Text%22%2C%22slbbSubTextFont%22%3A%22Default%22%2C%22slbbSubTextAlign%22%3A%22left%22%2C%22slbbSubTextUppercase%22%3Afalse%2C%22slbbSubTextBold%22%3Afalse%2C%22slbbSubTextItalic%22%3Afalse%2C%22slbbSubTextFontSize%22%3A%2213px%22%2C%22slbbSubTextTop%22%3A0%2C%22slbbHasSubTextColor%22%3Afalse%2C%22slbbSubTextColor%22%3A%22%2300f%22%2C%22slbbSubTextClasses%22%3A%22%22%2C%22slbbBold%22%3Afalse%2C%22slbbItalic%22%3Afalse%2C%22className%22%3A%22%22%7D%2C%7B%22blockId%22%3A%220598cc87-1162-787b-bbf7-94d0bb795041%22%2C%22rotate%22%3A0%2C%22flipHorizontal%22%3Afalse%2C%22flipVertical%22%3Afalse%2C%22rotateBg%22%3A0%2C%22name%22%3A%22000_check%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M16.7%207.1l-6.3%208.5-3.3-2.5-.9%201.2%204.5%203.4L17.9%208z%22%7D%5D%2C%22customSVG%22%3A%22%22%2C%22hasBg%22%3Atrue%2C%22bgShape%22%3A%22rect%22%2C%22bgShapeVal%22%3A%22%22%2C%22size%22%3A%2232px%22%2C%22color%22%3A%5B%22%2300f%22%5D%2C%22strokeColor%22%3A%5B%22%23000%22%5D%2C%22strokeWidth%22%3A%5B0%5D%2C%22hasShadow%22%3Afalse%2C%22shadow%22%3A%22drop-shadow(2px%202px%201px%20%23000)%22%2C%22svgFilter%22%3A%22none%22%2C%22bgColor%22%3A%22linear-gradient(0deg%2C%230130FF%200%25%2C%233CB4FF%20100%25)%22%2C%22bgStrokeColor%22%3A%22%23000%22%2C%22bgStrokeWidth%22%3A0%2C%22hasBgShadow%22%3Afalse%2C%22bgShadow%22%3A%22drop-shadow(0px%203px%202px%20%23000)%22%2C%22hasBaseShadow%22%3Afalse%2C%22baseShadowWidth%22%3A70%2C%22baseShadowHeight%22%3A12%2C%22baseShadowTop%22%3A96%2C%22padding%22%3A4%2C%22bgRadius%22%3A50%2C%22effect%22%3A%22No%20Effect%22%2C%22slbbAnim%22%3A%22No%20Animation%22%2C%22label%22%3A%22%22%2C%22title%22%3A%22%22%2C%22linkUrl%22%3A%22%22%2C%22linkRel%22%3A%22%22%2C%22linkTarget%22%3A%22%22%2C%22slbbIndent%22%3A0%2C%22content%22%3A%22List%20item%20...%22%2C%22sllbbAlign%22%3A%22left%22%2C%22slbbUppercase%22%3Afalse%2C%22slbbFont%22%3A%22Default%22%2C%22slbbFontSize%22%3A%2216px%22%2C%22slbbHasSubText%22%3Afalse%2C%22slbbSubText%22%3A%22More%20Text%22%2C%22slbbSubTextFont%22%3A%22Default%22%2C%22slbbSubTextAlign%22%3A%22left%22%2C%22slbbSubTextUppercase%22%3Afalse%2C%22slbbSubTextBold%22%3Afalse%2C%22slbbSubTextItalic%22%3Afalse%2C%22slbbSubTextFontSize%22%3A%2213px%22%2C%22slbbSubTextTop%22%3A0%2C%22slbbHasSubTextColor%22%3Afalse%2C%22slbbSubTextColor%22%3A%22%2300f%22%2C%22slbbSubTextClasses%22%3A%22%22%2C%22slbbBold%22%3Afalse%2C%22slbbItalic%22%3Afalse%2C%22className%22%3A%22%22%7D%5D%7D';
	}

	public function enqueue(): void {
		wp_register_script(
			'safelayout-iconlist-elementor-control',
			SAFELAYOUT_ICONS_URL . 'elementor/safelayout_iconlist.js',
			array(),
			SAFELAYOUT_ICONS_VERSION,
			array(
				'in_footer' => false,
			)
		);
		wp_enqueue_script( 'safelayout-iconlist-elementor-control' );
	}

	public function content_template(): void {
		?>
			<div id="sl-ei-iconlist-elementor-body"></div>
			<input type="hidden" id="sl-ei-iconlist-elementor-value" data-setting="{{ data.name }}" />
		<?php
	}

}