<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  DarkPhish Report add-in — TEMPLATE.
  Do not edit the generated manifest.xml directly; edit branding/branding.json and run `npm run build:brand`.
  Tokens in {{double braces}} are replaced by scripts/build-branding.js.

  Add-in-only (XML) manifest using a STANDARD read-surface command button
  (ExtensionPoint xsi:type="MessageReadCommandSurface") whose Action is ShowTaskpane.
  Clicking the ribbon button opens our own branded task pane (taskpane.html) where the
  user confirms and submits the report. This is the simplest, most reliable pattern and
  renders on Outlook on the web, new + classic Windows, and Mac.
-->
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">

  <Id>f5455161-e3ad-415e-ba75-3b9411df93ec</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>DarkData</ProviderName>
  <DefaultLocale>es-ES</DefaultLocale>
  <DisplayName DefaultValue="Reportar Phishing"/>
  <Description DefaultValue="Reporta un correo sospechoso o de phishing al equipo de seguridad en un solo clic."/>
  <IconUrl DefaultValue="https://addin.darkphish.es/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://addin.darkphish.es/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://darkphish.es/support"/>

  <AppDomains>
    <AppDomain>https://addin.darkphish.es</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5"/>
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://addin.darkphish.es/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>

      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <!-- Standard read-surface ribbon button. Renders on web + new/classic Windows + Mac. -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="dpReportGroup">
                  <Label resid="group.Label"/>
                  <Control xsi:type="Button" id="dpReportButton">
                    <Label resid="reportButton.Label"/>
                    <Supertip>
                      <Title resid="reportButton.Label"/>
                      <Description resid="reportSupertip.Text"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Taskpane.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://addin.darkphish.es/assets/icon-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://addin.darkphish.es/assets/icon-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://addin.darkphish.es/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Taskpane.Url" DefaultValue="https://addin.darkphish.es/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="group.Label" DefaultValue="Seguridad"/>
          <bt:String id="reportButton.Label" DefaultValue="Reportar Phishing"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="reportSupertip.Text" DefaultValue="Reporta un mensaje sospechoso a tu equipo de seguridad."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
