{
  "name": "wpmf/pdf-embed-divi5",
  "d4Shortcode": "wpmf_pdf_embed",
  "title": "WPMF PDF Embed",
  "titles": "WPMF PDF Embeds",
  "moduleClassName": "wpmf_pdf_embed",
  "moduleOrderClassName": "wpmf_pdf_embed",
  "category": "module",
  "attributes": {
    "module": {
      "type": "object",
      "selector": "{{selector}}",
      "default": {
        "meta": {
          "adminLabel": {
            "desktop": {
              "value": "WPMF PDF Embed"
            }
          }
        },
        "innerContent": {
          "desktop": {
            "value": {
              "url": "",
              "embed": "on",
              "target": "self",
              "width": "100%",
              "height": "800"
            }
          }
        }
      },
      "settings": {
        "meta": {
          "adminLabel": {}
        },
        "advanced": {
          "htmlAttributes": {}
        },
        "decoration": {
          "background": {},
          "sizing": {},
          "spacing": {},
          "border": {},
          "boxShadow": {},
          "overflow": {},
          "disabledOn": {},
          "transition": {},
          "position": {},
          "zIndex": {}
        },
        "innerContent": {
          "groupType": "group-items",
          "items": {
            "url": {
              "groupSlug": "pdfSettings",
              "attrName": "module.innerContent",
              "subName": "url",
              "priority": 10,
              "render": true,
              "label": "PDF File",
              "description": "Choose a PDF file from the Media Library.",
              "features": { "sticky": false, "responsive": false, "hover": false, "dynamicContent": false },
              "component": {
                "type": "field",
                "name": "divi/upload",
                "props": {
                  "dataType": "application/pdf",
                  "uploadButtonText": "Choose PDF File"
                }
              }
            },
            "embed": {
              "groupSlug": "pdfSettings",
              "attrName": "module.innerContent",
              "subName": "embed",
              "priority": 20,
              "render": true,
              "label": "Embed PDF",
              "description": "Embed the PDF inline or show a download link.",
              "features": { "sticky": false, "responsive": false, "hover": false, "dynamicContent": false },
              "component": {
                "name": "divi/select",
                "type": "field",
                "props": {
                  "options": {
                    "on":  { "label": "On (Embed)" },
                    "off": { "label": "Off (Link)" }
                  }
                }
              }
            },
            "target": {
              "groupSlug": "pdfSettings",
              "attrName": "module.innerContent",
              "subName": "target",
              "priority": 30,
              "render": true,
              "label": "Link Target",
              "features": { "sticky": false, "responsive": false, "hover": false, "dynamicContent": false },
              "component": {
                "name": "divi/select",
                "type": "field",
                "props": {
                  "options": {
                    "_blank": { "label": "New Window" },
                    "self":   { "label": "Same Window" }
                  }
                }
              }
            },
            "width": {
              "groupSlug": "pdfSettings",
              "attrName": "module.innerContent",
              "subName": "width",
              "priority": 40,
              "render": true,
              "label": "Width",
              "description": "Width of the PDF embed (e.g. 100% or 800px).",
              "features": { "sticky": false, "responsive": false, "hover": false, "dynamicContent": false },
              "component": { "name": "divi/text", "type": "field" }
            },
            "height": {
              "groupSlug": "pdfSettings",
              "attrName": "module.innerContent",
              "subName": "height",
              "priority": 50,
              "render": true,
              "label": "Height (px)",
              "description": "Height of the PDF embed in pixels.",
              "features": { "sticky": false, "responsive": false, "hover": false, "dynamicContent": false },
              "component": { "name": "divi/range", "type": "field", "props": { "min": 100, "max": 2000, "defaultUnit": "" } }
            }
          }
        }
      }
    }
  },
  "customCssFields": {},
  "settings": {
    "content": "auto",
    "design": "auto",
    "advanced": "auto",
    "groups": {
      "pdfSettings": {
        "panel": "content",
        "priority": 10,
        "groupName": "pdfSettings",
        "multiElements": true,
        "component": { "name": "divi/composite", "props": { "groupLabel": "PDF Settings" } }
      }
    }
  }
}
