{
  "name": "dina/alert",
  "d4Shortcode": "dina_alert",
  "title": "Alert",
  "titles": "Alerts",
  "moduleIcon": "dina/alert",
  "moduleClassName": "dina_alert",
  "moduleOrderClassName": "dina_alert",
  "category": "module",
  "folder": "divinationkit",
  "childrenName": [],
  "attributes": {
    "module": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "meta": {
          "adminLabel": {
            "desktop": {
              "value": "Alert"
            }
          }
        },
        "advanced": {
          "type": {
            "desktop": {
              "value": "info"
            }
          },
          "useIcon": {
            "desktop": {
              "value": "on"
            }
          },
          "dismissible": {
            "desktop": {
              "value": "off"
            }
          },
          "style": {
            "desktop": {
              "value": "soft"
            }
          }
        }
      },
      "settings": {
        "meta": {
          "adminLabel": {}
        },
        "advanced": {
          "type": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentMain",
              "attrName": "module.advanced.type",
              "label": "Type",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/select",
                "props": {
                  "options": {
                    "info": {
                      "label": "Info"
                    },
                    "success": {
                      "label": "Success"
                    },
                    "warning": {
                      "label": "Warning"
                    },
                    "error": {
                      "label": "Error"
                    }
                  }
                }
              }
            }
          },
          "useIcon": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentIcon",
              "attrName": "module.advanced.useIcon",
              "label": "Show Icon",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/toggle"
              }
            }
          },
          "dismissible": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentClose",
              "attrName": "module.advanced.dismissible",
              "label": "Show Close Button",
              "description": "Lets visitors close the alert. It shows again when the page is reloaded.",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/toggle"
              }
            }
          },
          "style": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designAlert",
              "attrName": "module.advanced.style",
              "label": "Style",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/select",
                "props": {
                  "options": {
                    "soft": {
                      "label": "Soft"
                    },
                    "solid": {
                      "label": "Solid"
                    },
                    "outline": {
                      "label": "Outline"
                    }
                  }
                }
              }
            }
          },
          "accent": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designAlert",
              "attrName": "module.advanced.accent",
              "label": "Accent Color",
              "description": "Replaces the color of the alert type: the bar, the icon and the Solid background.",
              "priority": 20,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": true
              },
              "component": {
                "type": "field",
                "name": "divi/color-picker",
                "props": {
                  "isAlpha": true
                }
              }
            }
          },
          "htmlAttributes": {}
        },
        "decoration": {
          "animation": {},
          "attributes": {},
          "background": {},
          "border": {},
          "boxShadow": {},
          "conditions": {},
          "disabledOn": {},
          "filters": {},
          "interactions": {},
          "layout": {},
          "overflow": {},
          "order": {},
          "position": {},
          "scroll": {},
          "sizing": {},
          "spacing": {},
          "sticky": {},
          "transform": {},
          "transition": {},
          "zIndex": {}
        }
      }
    },
    "title": {
      "type": "object",
      "selector": "{{selector}} .dina_alert-title",
      "elementType": "heading",
      "tagName": "h4",
      "attributes": {
        "class": "dina_alert-title"
      },
      "inlineEditor": "plainText",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "decoration": {
          "font": {
            "font": {
              "desktop": {
                "value": {
                  "headingLevel": "h4"
                }
              }
            }
          }
        }
      },
      "settings": {
        "decoration": {
          "font": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designTitle",
              "priority": 10,
              "render": true,
              "component": {
                "type": "group",
                "name": "divi/font",
                "props": {
                  "grouped": false,
                  "fieldLabel": "Title",
                  "fields": {
                    "headingLevel": {
                      "render": true
                    }
                  }
                }
              }
            }
          }
        },
        "innerContent": {
          "groupType": "group-item",
          "item": {
            "groupSlug": "contentMain",
            "attrName": "title.innerContent",
            "label": "Title",
            "priority": 20,
            "render": true,
            "features": {
              "sticky": false,
              "responsive": false,
              "hover": false,
              "dynamicContent": {
                "type": "text"
              }
            },
            "component": {
              "type": "field",
              "name": "divi/text"
            }
          }
        }
      }
    },
    "text": {
      "type": "object",
      "selector": "{{selector}} .dina_alert-text",
      "tagName": "div",
      "attributes": {
        "class": "dina_alert-text"
      },
      "inlineEditor": "richText",
      "childrenSanitizer": "et_core_esc_previously",
      "settings": {
        "decoration": {
          "font": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designText",
              "priority": 10,
              "render": true,
              "component": {
                "type": "group",
                "name": "divi/font",
                "props": {
                  "grouped": false,
                  "fieldLabel": "Text",
                  "fields": {
                    "headingLevel": {
                      "render": false
                    }
                  }
                }
              }
            }
          }
        },
        "innerContent": {
          "groupType": "group-item",
          "item": {
            "groupSlug": "contentMain",
            "attrName": "text.innerContent",
            "label": "Body",
            "priority": 30,
            "render": true,
            "features": {
              "sticky": false,
              "responsive": false,
              "hover": false,
              "dynamicContent": {
                "type": "text"
              }
            },
            "component": {
              "type": "field",
              "name": "divi/richtext"
            }
          }
        }
      }
    },
    "icon": {
      "type": "object",
      "selector": "{{selector}} .dina_alert-icon i.dina_icon",
      "settings": {
        "innerContent": {
          "groupType": "group-item",
          "item": {
            "groupSlug": "contentIcon",
            "attrName": "icon.innerContent",
            "label": "Icon",
            "description": "Leave empty (or reset) to use the icon of the alert type.",
            "priority": 20,
            "render": true,
            "features": {
              "sticky": false,
              "responsive": false,
              "hover": false
            },
            "component": {
              "type": "field",
              "name": "divi/icon-picker"
            }
          }
        },
        "advanced": {
          "color": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designIcon",
              "attrName": "icon.advanced.color",
              "label": "Icon Color",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": true
              },
              "component": {
                "type": "field",
                "name": "divi/color-picker",
                "props": {
                  "isAlpha": true
                }
              }
            }
          },
          "size": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designIcon",
              "attrName": "icon.advanced.size",
              "label": "Icon Size",
              "priority": 20,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/range",
                "props": {
                  "min": 0,
                  "max": 100,
                  "step": 1,
                  "allowedUnits": [
                    "px",
                    "em",
                    "rem"
                  ],
                  "defaultUnit": "px"
                }
              }
            }
          }
        }
      },
      "default": {
        "advanced": {
          "size": {
            "desktop": {
              "value": "24px"
            }
          }
        }
      }
    },
    "closeButton": {
      "type": "object",
      "selector": "{{selector}} .dina_alert-close",
      "settings": {
        "advanced": {
          "color": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designClose",
              "attrName": "closeButton.advanced.color",
              "label": "Close Button Color",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": true
              },
              "component": {
                "type": "field",
                "name": "divi/color-picker",
                "props": {
                  "isAlpha": true
                }
              }
            }
          },
          "size": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designClose",
              "attrName": "closeButton.advanced.size",
              "label": "Close Button Size",
              "priority": 20,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/range",
                "props": {
                  "min": 0,
                  "max": 60,
                  "step": 1,
                  "allowedUnits": [
                    "px",
                    "em",
                    "rem"
                  ],
                  "defaultUnit": "px"
                }
              }
            }
          }
        }
      },
      "default": {
        "advanced": {
          "size": {
            "desktop": {
              "value": "18px"
            }
          }
        }
      }
    }
  },
  "customCssFields": {
    "icon": {
      "subName": "icon",
      "label": "Icon",
      "selectorSuffix": " .dina_alert-icon"
    },
    "title": {
      "subName": "title",
      "label": "Title",
      "selectorSuffix": " .dina_alert-title"
    },
    "text": {
      "subName": "text",
      "label": "Text",
      "selectorSuffix": " .dina_alert-text"
    },
    "close": {
      "subName": "close",
      "label": "Close Button",
      "selectorSuffix": " .dina_alert-close"
    }
  },
  "settings": {
    "content": "auto",
    "design": "auto",
    "advanced": "auto",
    "groups": {
      "contentMain": {
        "panel": "content",
        "priority": 10,
        "groupName": "contentMain",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Content"
          }
        }
      },
      "contentIcon": {
        "panel": "content",
        "priority": 20,
        "groupName": "contentIcon",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Icon"
          }
        }
      },
      "contentClose": {
        "panel": "content",
        "priority": 30,
        "groupName": "contentClose",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Close Button"
          }
        }
      },
      "designAlert": {
        "panel": "design",
        "priority": 40,
        "groupName": "designAlert",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Alert"
          }
        }
      },
      "designIcon": {
        "panel": "design",
        "priority": 50,
        "groupName": "designIcon",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Icon"
          }
        }
      },
      "designTitle": {
        "panel": "design",
        "priority": 60,
        "groupName": "designTitle",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Title",
            "clipboardCategory": "style",
            "presetGroup": "divi/font"
          }
        }
      },
      "designText": {
        "panel": "design",
        "priority": 70,
        "groupName": "designText",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Text",
            "clipboardCategory": "style",
            "presetGroup": "divi/font"
          }
        }
      },
      "designClose": {
        "panel": "design",
        "priority": 80,
        "groupName": "designClose",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Close Button"
          }
        }
      }
    }
  }
}
