<?xml version="1.0" encoding="UTF-8"?>
<!--
  PLANTILLA DE MANIFEST POR CLIENTE
  ==================================
  Para cada cliente nuevo:
  1. Copiar este archivo como manifest-CLIXXX.xml
  2. Reemplazar las 3 ocurrencias de CLI001 por el ID del cliente nuevo
  3. Generar un nuevo GUID para <Id> (usar https://guidgenerator.com)
  4. Crear el archivo clients/CLIXXX.json en pluging.ithakasoft.com
  5. Entregar el manifest al IT del cliente para que lo suba a M365 o Exchange
-->
<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="MessageReadTaskPaneApp">

  <!-- GUID unico por cliente — generar uno nuevo para cada cliente -->
  <Id>C3D5E7F9-A1B3-4C5D-8E6F-2A4B6C8D0E2F</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Ithakasoft</ProviderName>
  <DefaultLocale>es-ES</DefaultLocale>

  <DisplayName DefaultValue="Ithaka - Guardar Correo"/>
  <Description DefaultValue="Guarda el correo seleccionado en el expediente correspondiente de Ithaka SGA."/>

  <IconUrl DefaultValue="https://pluging.ithakasoft.com/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://pluging.ithakasoft.com/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://pluging.ithakasoft.com/"/>

  <Requirements>
    <Sets DefaultMinVersion="1.8">
      <Set Name="Mailbox"/>
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://pluging.ithakasoft.com/taskpane.html?client=CLI001"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

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

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

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

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="ithaka.CLI001.group1">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="ithaka.CLI001.btnGuardar">
                  <Label resid="btnLabel"/>
                  <Supertip>
                    <Title resid="btnLabel"/>
                    <Description resid="btnDesc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16"/>
                    <bt:Image size="32" resid="icon32"/>
                    <bt:Image size="80" resid="icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ithaka-CLI001-taskpane</TaskpaneId>
                    <SourceLocation resid="taskpaneUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://pluging.ithakasoft.com/assets/icon-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://pluging.ithakasoft.com/assets/icon-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://pluging.ithakasoft.com/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskpaneUrl" DefaultValue="https://pluging.ithakasoft.com/taskpane.html?client=CLI001"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Ithaka SGA"/>
        <bt:String id="btnLabel"   DefaultValue="Guardar en expediente"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="btnDesc" DefaultValue="Guarda este correo en un expediente de Ithaka SGA."/>
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>

</OfficeApp>
