{
  "name": "dnxte/spin-wheel",
  "title": "Spinning Wheel",
  "titles": "Spinning Wheels",
  "moduleIcon": "dnxte/spin-wheel",
  "category": "module",
  "childModuleName": "dnxte/spin-wheel-child",
  "childrenName": ["dnxte/spin-wheel-child"],
  "folder": "divi-essential",
  "attributes": {
    "module": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "meta": {
          "adminLabel": {
            "desktop": {
              "value": "Spinning Wheel"
            }
          }
        }
      },
      "styleProps": {
        "border": {
          "important": true
        },
        "spacing": {
          "important": true
        }
      }
    },
    "title": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__title",
      "tagName": "h3",
      "inlineEditor": "plainText",
      "elementType": "heading",
      "childrenSanitizer": "et_core_esc_previously",
      "styleProps": {
        "font": {
          "selectors": {
            "desktop": {
              "value": "{{selector}} .dnxte-spin-wheel__title, {{selector}} .dnxte-spin-wheel__result-title"
            }
          },
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        }
      }
    },
    "description": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__description",
      "tagName": "div",
      "inlineEditor": "richText",
      "childrenSanitizer": "et_core_esc_previously",
      "styleProps": {
        "bodyFont": {
          "selectors": {
            "desktop": {
              "value": "{{selector}} .dnxte-spin-wheel__description, {{selector}} .dnxte-spin-wheel__result-description"
            }
          }
        }
      }
    },
    "spin_button": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__button",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "SPIN"
          }
        }
      },
      "styleProps": {
        "font": {
          "selectors": {
            "desktop": {
              "value": "{{selector}} .dnxte-spin-wheel__button, {{selector}} .dnxte-spin-wheel__apply-btn, {{selector}} .dnxte-spin-wheel__try-again-btn"
            }
          },
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        }
      }
    },
    "wheel": {
      "type": "object",
      "default": {
        "decoration": {
          "size": {
            "desktop": {
              "value": "400px"
            }
          },
          "border_width": {
            "desktop": {
              "value": "8px"
            }
          },
          "border_color": {
            "desktop": {
              "value": "#333333"
            }
          }
        }
      }
    },
    "pointer": {
      "type": "object",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "triangle"
          }
        },
        "decoration": {
          "color": {
            "desktop": {
              "value": "#ff4136"
            }
          },
          "position": {
            "desktop": {
              "value": "top"
            }
          },
          "size": {
            "desktop": {
              "value": "40px"
            }
          }
        }
      }
    },
    "center_circle": {
      "type": "object",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "off"
          }
        },
        "decoration": {
          "size": {
            "desktop": {
              "value": "80px"
            }
          },
          "color": {
            "desktop": {
              "value": "#ffffff"
            }
          },
          "text": {
            "desktop": {
              "value": ""
            }
          }
        }
      }
    },
    "spin_settings": {
      "type": "object",
      "default": {
        "decoration": {
          "duration": {
            "desktop": {
              "value": "4000"
            }
          },
          "easing": {
            "desktop": {
              "value": "cubic-bezier(0.17, 0.67, 0.12, 0.99)"
            }
          }
        }
      }
    },
    "idle_animation": {
      "type": "object",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "none"
          }
        }
      }
    },
    "layout": {
      "type": "object",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "horizontal"
          }
        }
      }
    },
    "form_title": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__form-title",
      "tagName": "h2",
      "inlineEditor": "plainText",
      "elementType": "heading",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Spin & Win!"
          }
        }
      },
      "styleProps": {
        "font": {
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        }
      }
    },
    "form_description": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__form-description",
      "tagName": "div",
      "inlineEditor": "richText",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Enter your email for a chance to win!"
          }
        }
      },
      "styleProps": {
        "bodyFont": {
          "selectors": {
            "desktop": {
              "value": "{{selector}} .dnxte-spin-wheel__form-description"
            }
          }
        }
      }
    },
    "email_field": {
      "type": "object",
      "selector": "{{selector}} input.dnxte-spin-wheel__email-input",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Enter your email..."
          }
        }
      },
      "styleProps": {
        "font": {
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true,
                  "size": true
                }
              }
            }
          }
        },
        "background": {},
        "border": {},
        "spacing": {}
      }
    },
    "submit_button": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__submit-btn",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Spin Now"
          }
        }
      },
      "styleProps": {
        "font": {
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        },
        "background": {},
        "border": {},
        "spacing": {}
      }
    },
    "dismiss_link": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__dismiss",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "No, Thank you"
          }
        }
      },
      "styleProps": {
        "font": {
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        },
        "spacing": {}
      }
    },
    "result_title": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__result-title",
      "tagName": "h3",
      "elementType": "heading",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Congratulations!"
          }
        }
      }
    },
    "result_description": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__result-description",
      "tagName": "div",
      "childrenSanitizer": "et_core_esc_previously",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "You have won a special prize!"
          }
        }
      }
    },
    "coupon_box": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__coupon-box",
      "styleProps": {
        "font": {
          "important": {
            "font": {
              "desktop": {
                "value": {
                  "color": true
                }
              }
            }
          }
        }
      }
    },
    "apply_button": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__apply-btn",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "Apply Discount"
          }
        }
      }
    },
    "confetti": {
      "type": "object",
      "default": {
        "innerContent": {
          "desktop": {
            "value": "on"
          }
        }
      }
    },
    "email_settings": {
      "type": "object",
      "default": {
        "advanced": {
          "require_email": {
            "desktop": {
              "value": "on"
            }
          },
          "limit_spins": {
            "desktop": {
              "value": "on"
            }
          }
        }
      }
    },
    "content_panel": {
      "type": "object",
      "selector": "{{selector}} .dnxte-spin-wheel__panel",
      "styleProps": {
        "background": {},
        "border": {},
        "spacing": {}
      }
    }
  },
  "customCssFields": {
    "wheel": {
      "subName": "wheel",
      "selectorSuffix": " .dnxte-spin-wheel__wheel"
    },
    "spin_button": {
      "subName": "spin_button",
      "selectorSuffix": " .dnxte-spin-wheel__button"
    },
    "content_panel": {
      "subName": "content_panel",
      "selectorSuffix": " .dnxte-spin-wheel__panel"
    },
    "email_input": {
      "subName": "email_input",
      "selectorSuffix": " .dnxte-spin-wheel__email-input"
    },
    "submit_button": {
      "subName": "submit_button",
      "selectorSuffix": " .dnxte-spin-wheel__submit-btn"
    },
    "coupon_box": {
      "subName": "coupon_box",
      "selectorSuffix": " .dnxte-spin-wheel__coupon-box"
    },
    "apply_button": {
      "subName": "apply_button",
      "selectorSuffix": " .dnxte-spin-wheel__apply-btn"
    }
  }
}
