{
  "name": "dina/rating",
  "d4Shortcode": "dina_rating",
  "title": "Rating",
  "titles": "Ratings",
  "moduleIcon": "dina/rating",
  "moduleClassName": "dina_rating",
  "moduleOrderClassName": "dina_rating",
  "category": "module",
  "folder": "divinationkit",
  "childrenName": [],
  "attributes": {
    "module": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "meta": {
          "adminLabel": {
            "desktop": {
              "value": "Rating"
            }
          }
        },
        "advanced": {
          "ratingStyle": {
            "desktop": {
              "value": "both"
            }
          },
          "ratingScale": {
            "desktop": {
              "value": "5"
            }
          },
          "rating": {
            "desktop": {
              "value": "5"
            }
          },
          "useTitle": {
            "desktop": {
              "value": "on"
            }
          },
          "titlePosition": {
            "desktop": {
              "value": "after"
            }
          },
          "ratingAlignment": {
            "desktop": {
              "value": "left"
            }
          },
          "starColor": {
            "desktop": {
              "value": "#a5a5a5"
            }
          },
          "fillStarColor": {
            "desktop": {
              "value": "#ffb600"
            }
          },
          "starSize": {
            "desktop": {
              "value": "30px"
            }
          }
        }
      },
      "styleProps": {
        "spacing": {
          "important": true
        }
      },
      "settings": {
        "meta": {
          "adminLabel": {}
        },
        "advanced": {
          "ratingStyle": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentRating",
              "attrName": "module.advanced.ratingStyle",
              "label": "Rating Style",
              "description": "Here you can choose different kind of styles.",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/select",
                "props": {
                  "options": {
                    "only_star": {
                      "label": "Only Stars"
                    },
                    "only_number": {
                      "label": "Only Number"
                    },
                    "both": {
                      "label": "Both Stars and Number"
                    }
                  }
                }
              }
            }
          },
          "ratingScale": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentRating",
              "attrName": "module.advanced.ratingScale",
              "label": "Rating Scale",
              "priority": 20,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/range",
                "props": {
                  "min": 0,
                  "max": 10,
                  "step": 1,
                  "allowedUnits": [],
                  "defaultUnit": ""
                }
              }
            }
          },
          "rating": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentRating",
              "attrName": "module.advanced.rating",
              "label": "Rating",
              "priority": 30,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/range",
                "props": {
                  "min": 0,
                  "max": 10,
                  "step": 0.1,
                  "allowedUnits": [],
                  "defaultUnit": ""
                }
              }
            }
          },
          "useTitle": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentRating",
              "attrName": "module.advanced.useTitle",
              "label": "Use Title",
              "description": "Here you can choose whether rating title will be display or not.",
              "priority": 40,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/toggle"
              }
            }
          },
          "titlePosition": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "contentRating",
              "attrName": "module.advanced.titlePosition",
              "label": "Title Position",
              "description": "Show the title before or after the rating.",
              "priority": 60,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": false,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/select",
                "props": {
                  "options": {
                    "before": {
                      "label": "Before Rating"
                    },
                    "after": {
                      "label": "After Rating"
                    }
                  }
                }
              }
            }
          },
          "ratingAlignment": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designAlignment",
              "attrName": "module.advanced.ratingAlignment",
              "label": "Rating Alignment",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/select",
                "props": {
                  "options": {
                    "left": {
                      "label": "Left"
                    },
                    "center": {
                      "label": "Center"
                    },
                    "right": {
                      "label": "Right"
                    }
                  }
                }
              }
            }
          },
          "starColor": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designStars",
              "attrName": "module.advanced.starColor",
              "label": "Star Color",
              "description": "Here you can change star color.",
              "priority": 10,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": true
              },
              "component": {
                "type": "field",
                "name": "divi/color-picker",
                "props": {
                  "isAlpha": true
                }
              }
            }
          },
          "fillStarColor": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designStars",
              "attrName": "module.advanced.fillStarColor",
              "label": "Active Star Color",
              "description": "Here you can change filled/active star color.",
              "priority": 20,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": true
              },
              "component": {
                "type": "field",
                "name": "divi/color-picker",
                "props": {
                  "isAlpha": true
                }
              }
            }
          },
          "starSize": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designStars",
              "attrName": "module.advanced.starSize",
              "label": "Star Size",
              "priority": 30,
              "render": true,
              "features": {
                "sticky": false,
                "responsive": true,
                "hover": false
              },
              "component": {
                "type": "field",
                "name": "divi/range",
                "props": {
                  "min": 0,
                  "max": 1000,
                  "step": 1,
                  "allowedUnits": [
                    "px",
                    "em",
                    "rem"
                  ],
                  "defaultUnit": "px"
                }
              }
            }
          },
          "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_rating-title",
      "elementType": "heading",
      "tagName": "h5",
      "attributes": {
        "class": "dina_rating-title"
      },
      "inlineEditor": "plainText",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "decoration": {
          "font": {
            "font": {
              "desktop": {
                "value": {
                  "headingLevel": "h5"
                }
              }
            }
          }
        }
      },
      "settings": {
        "decoration": {
          "font": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designTitle",
              "priority": 10,
              "render": true,
              "component": {
                "type": "group",
                "name": "divi/font",
                "props": {
                  "grouped": false,
                  "fieldLabel": "Rating Title",
                  "fields": {
                    "headingLevel": {
                      "render": true
                    }
                  }
                }
              }
            }
          }
        },
        "innerContent": {
          "groupType": "group-item",
          "item": {
            "groupSlug": "contentRating",
            "attrName": "title.innerContent",
            "label": "Rating Title",
            "description": "Define rating title.",
            "priority": 50,
            "render": true,
            "features": {
              "sticky": false,
              "responsive": false,
              "hover": false,
              "dynamicContent": {
                "type": "text"
              }
            },
            "component": {
              "type": "field",
              "name": "divi/text"
            }
          }
        }
      }
    },
    "number": {
      "type": "object",
      "selector": "{{selector}} .dina_rating-number",
      "settings": {
        "decoration": {
          "font": {
            "groupType": "group-item",
            "item": {
              "groupSlug": "designNumber",
              "priority": 10,
              "render": true,
              "component": {
                "type": "group",
                "name": "divi/font",
                "props": {
                  "grouped": false,
                  "fieldLabel": "Rating Number",
                  "fields": {
                    "headingLevel": {
                      "render": false
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "customCssFields": {},
  "settings": {
    "content": "auto",
    "design": "auto",
    "advanced": "auto",
    "groups": {
      "contentRating": {
        "panel": "content",
        "priority": 10,
        "groupName": "contentRating",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Content"
          }
        }
      },
      "designAlignment": {
        "panel": "design",
        "priority": 20,
        "groupName": "designAlignment",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Alignment"
          }
        }
      },
      "designStars": {
        "panel": "design",
        "priority": 30,
        "groupName": "designStars",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Stars"
          }
        }
      },
      "designNumber": {
        "panel": "design",
        "priority": 40,
        "groupName": "designNumber",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Rating Number",
            "clipboardCategory": "style",
            "presetGroup": "divi/font"
          }
        }
      },
      "designTitle": {
        "panel": "design",
        "priority": 50,
        "groupName": "designTitle",
        "component": {
          "name": "divi/composite",
          "props": {
            "groupLabel": "Rating Title",
            "clipboardCategory": "style",
            "presetGroup": "divi/font"
          }
        }
      }
    }
  }
}
