';
return [
'id' => uniqid(),
'type' => self::$type,
'name' => __( 'Shipping Address', 'woocommerce' ),
'icon' => self::$icon,
'group' => 'woocommerce',
'available' => true,
'position' => 160,
'data' => [
'container_group_definition' => [
'component' => 'GroupDefinition',
'title' => __( 'Container settings', 'yaymail' ),
'description' => __( 'Handle container layout settings', 'yaymail' ),
],
'padding' => [
'value_path' => 'padding',
'component' => 'Spacing',
'title' => __( 'Padding', 'yaymail' ),
'default_value' => isset( $attributes['padding'] ) ? $attributes['padding'] : [
'top' => '15',
'right' => '50',
'bottom' => '15',
'left' => '50',
],
'type' => 'style',
],
'background_color' => [
'value_path' => 'background_color',
'component' => 'Color',
'title' => __( 'Background color', 'yaymail' ),
'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff',
'type' => 'style',
],
'content_breaker' => [
'component' => 'LineBreaker',
],
'content_group_definition' => [
'component' => 'GroupDefinition',
'title' => __( 'Content settings', 'yaymail' ),
'description' => __( 'Handle content settings', 'yaymail' ),
],
'layout_type' => [
'value_path' => 'layout_type',
'component' => 'Selector',
'title' => __( 'Layout type', 'yaymail' ),
'default_value' => isset( $attributes['layout_type'] ) ? $attributes['layout_type'] : $layout_type,
'options' => [
[
'label' => __( 'Legacy', 'yaymail' ),
'value' => 'legacy',
],
[
'label' => __( 'Modern', 'yaymail' ),
'value' => 'modern',
],
],
'type' => 'content',
],
'title_color' => [
'value_path' => 'title_color',
'component' => 'Color',
'title' => __( 'Title color', 'yaymail' ),
'default_value' => isset( $attributes['title_color'] ) ? $attributes['title_color'] : YAYMAIL_COLOR_WC_DEFAULT,
'type' => 'style',
],
'text_color' => [
'value_path' => 'text_color',
'component' => 'Color',
'title' => __( 'Text color', 'yaymail' ),
'default_value' => isset( $attributes['text_color'] ) ? $attributes['text_color'] : YAYMAIL_COLOR_TEXT_DEFAULT,
'type' => 'style',
],
'border_color' => [
'value_path' => 'border_color',
'component' => 'Color',
'title' => __( 'Table border color', 'yaymail' ),
'default_value' => isset( $attributes['border_color'] ) ? $attributes['border_color'] : YAYMAIL_COLOR_BORDER_DEFAULT,
'type' => 'style',
],
'font_family' => [
'value_path' => 'font_family',
'component' => 'FontFamilySelector',
'title' => __( 'Font family', 'yaymail' ),
'default_value' => isset( $attributes['font_family'] ) ? $attributes['font_family'] : YAYMAIL_DEFAULT_FAMILY,
'type' => 'style',
],
'title' => [
'value_path' => 'title',
'component' => 'RichTextEditor',
'title' => __( 'Shipping title', 'yaymail' ),
'default_value' => isset( $attributes['title'] ) ? $attributes['title'] : ( '' . __( 'Shipping Address', 'woocommerce' ) . '' ),
'type' => 'content',
],
'shipping_content_font_size' => ElementsHelper::get_dimension(
$attributes,
[
'value_path' => 'shipping_content_font_size',
'title' => __( 'Shipping content font size', 'yaymail' ),
'default_value' => '14',
'min' => 8,
'max' => 25,
'unit' => 'px',
'type' => 'style',
]
),
'shipping_content_alignment' => ElementsHelper::get_align(
$attributes,
[
'value_path' => 'shipping_content_alignment',
'title' => __( 'Shipping content alignment', 'yaymail' ),
'default_value' => 'left',
]
),
'shipping_content_text_format' => ElementsHelper::get_text_format_toggles(
$attributes,
[
'value_path' => 'shipping_content_text_format',
'title' => __( 'Shipping address text formatting', 'yaymail' ),
]
),
'rich_text' => [
'value_path' => 'rich_text',
'component' => '',
'title' => __( 'Content', 'yaymail' ),
'default_value' => '[yaymail_shipping_address]',
'type' => 'content',
],
],
];
}
}