<?xml version="1.0" encoding="UTF-8"?>
<!-- MSTeams.link for Outlook. Install: Outlook > Get Add-ins > My add-ins > Add a custom add-in > From URL:
     https://msteams.link/outlook-addin/manifest.xml  (bump <Version> on every manifest change) -->
<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>678d8948-f3b0-4ebf-9f55-c413e92970ba</Id>
  <Version>1.1.0.0</Version>
  <ProviderName>BTLab</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="MSTeams.link - Teams Link Shortener">
    <Override Locale="fr-FR" Value="MSTeams.link - Raccourcisseur de liens Teams"/>
    <Override Locale="es-ES" Value="MSTeams.link - Acortador de enlaces de Teams"/>
    <Override Locale="pt-BR" Value="MSTeams.link - Encurtador de links do Teams"/>
  </DisplayName>
  <Description DefaultValue="Shorten Microsoft Teams meeting links in one click, right in your Outlook invites and emails. Free, no account needed.">
    <Override Locale="fr-FR" Value="Raccourcissez vos liens de réunion Microsoft Teams en un clic, directement dans vos invitations et emails Outlook. Gratuit, sans compte."/>
    <Override Locale="es-ES" Value="Acorta tus enlaces de reunión de Microsoft Teams en un clic, directamente en tus invitaciones y correos de Outlook. Gratis y sin cuenta."/>
    <Override Locale="pt-BR" Value="Encurte seus links de reunião do Microsoft Teams com um clique, direto nos seus convites e e-mails do Outlook. Grátis e sem conta."/>
  </Description>
  <IconUrl DefaultValue="https://msteams.link/outlook-addin/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://msteams.link/outlook-addin/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://msteams.link/en/contact"/>
  <AppDomains>
    <AppDomain>https://msteams.link</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <!-- Legacy fallback for clients without add-in commands: read-mode task pane. -->
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://msteams.link/outlook-addin/taskpane.html"/>
        <RequestedHeight>300</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>

          <!-- New email being written -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msteamslink.msgCompose.group">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="msteamslink.msgCompose.shorten">
                  <Label resid="Shorten.Label"/>
                  <Supertip>
                    <Title resid="Shorten.Label"/>
                    <Description resid="Shorten.Tooltip"/>
                  </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="ExecuteFunction">
                    <FunctionName>shortenTeamsLink</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="msteamslink.msgCompose.pane">
                  <Label resid="Pane.Label"/>
                  <Supertip>
                    <Title resid="Pane.Label"/>
                    <Description resid="Pane.Tooltip"/>
                  </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>

          <!-- Meeting being created / edited by the organizer -->
          <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msteamslink.apptCompose.group">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="msteamslink.apptCompose.shorten">
                  <Label resid="Shorten.Label"/>
                  <Supertip>
                    <Title resid="Shorten.Label"/>
                    <Description resid="Shorten.Tooltip"/>
                  </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="ExecuteFunction">
                    <FunctionName>shortenTeamsLink</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="msteamslink.apptCompose.pane">
                  <Label resid="Pane.Label"/>
                  <Supertip>
                    <Title resid="Pane.Label"/>
                    <Description resid="Pane.Tooltip"/>
                  </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>

          <!-- Email received: get a short link to share -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msteamslink.msgRead.group">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="msteamslink.msgRead.pane">
                  <Label resid="Read.Label"/>
                  <Supertip>
                    <Title resid="Read.Label"/>
                    <Description resid="Read.Tooltip"/>
                  </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>

          <!-- Meeting received as an attendee -->
          <ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msteamslink.apptRead.group">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="msteamslink.apptRead.pane">
                  <Label resid="Read.Label"/>
                  <Supertip>
                    <Title resid="Read.Label"/>
                    <Description resid="Read.Tooltip"/>
                  </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://msteams.link/outlook-addin/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://msteams.link/outlook-addin/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://msteams.link/outlook-addin/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://msteams.link/outlook-addin/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://msteams.link/outlook-addin/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="MSTeams.link"/>
        <bt:String id="Shorten.Label" DefaultValue="Shorten Teams link">
          <bt:Override Locale="fr-FR" Value="Raccourcir le lien Teams"/>
          <bt:Override Locale="es-ES" Value="Acortar enlace de Teams"/>
          <bt:Override Locale="pt-BR" Value="Encurtar link do Teams"/>
        </bt:String>
        <bt:String id="Pane.Label" DefaultValue="Short link options">
          <bt:Override Locale="fr-FR" Value="Options du lien court"/>
          <bt:Override Locale="es-ES" Value="Opciones del enlace corto"/>
          <bt:Override Locale="pt-BR" Value="Opções do link curto"/>
        </bt:String>
        <bt:String id="Read.Label" DefaultValue="Get short Teams link">
          <bt:Override Locale="fr-FR" Value="Lien Teams court"/>
          <bt:Override Locale="es-ES" Value="Enlace de Teams corto"/>
          <bt:Override Locale="pt-BR" Value="Link curto do Teams"/>
        </bt:String>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Shorten.Tooltip" DefaultValue="Replace the long Teams meeting link in this item with a short msteams.link link, formatting kept.">
          <bt:Override Locale="fr-FR" Value="Remplace le long lien de réunion Teams de cet élément par un lien court msteams.link, mise en forme conservée."/>
          <bt:Override Locale="es-ES" Value="Reemplaza el enlace largo de la reunión de Teams en este elemento por un enlace corto de msteams.link, sin perder el formato."/>
          <bt:Override Locale="pt-BR" Value="Substitui o link longo da reunião do Teams neste item por um link curto do msteams.link, mantendo a formatação."/>
        </bt:String>
        <bt:String id="Pane.Tooltip" DefaultValue="Open the MSTeams.link pane: shorten, copy, or paste another Teams link.">
          <bt:Override Locale="fr-FR" Value="Ouvre le volet MSTeams.link : raccourcir, copier, ou coller un autre lien Teams."/>
          <bt:Override Locale="es-ES" Value="Abre el panel de MSTeams.link: acortar, copiar o pegar otro enlace de Teams."/>
          <bt:Override Locale="pt-BR" Value="Abre o painel do MSTeams.link: encurtar, copiar ou colar outro link do Teams."/>
        </bt:String>
        <bt:String id="Read.Tooltip" DefaultValue="Get a short msteams.link link for the Teams meeting in this item, ready to share by SMS or chat.">
          <bt:Override Locale="fr-FR" Value="Obtenez un lien court msteams.link pour la réunion Teams de cet élément, prêt à partager par SMS ou messagerie."/>
          <bt:Override Locale="es-ES" Value="Obtén un enlace corto de msteams.link para la reunión de Teams de este elemento, listo para compartir por SMS o chat."/>
          <bt:Override Locale="pt-BR" Value="Obtenha um link curto do msteams.link para a reunião do Teams neste item, pronto para compartilhar por SMS ou chat."/>
        </bt:String>
      </bt:LongStrings>
    </Resources>

    <!-- Clients supporting VersionOverrides 1.1 use this block (same commands + launch event). -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <!-- Web / new Outlook / Mac run commands.html; classic Outlook on Windows runs launchevent.js -->
          <Runtimes>
            <Runtime resid="Commands.Url">
              <Override type="javascript" resid="JSRuntime.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
  
            <!-- New email being written -->
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msteamslink.msgCompose.group">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="msteamslink.msgCompose.shorten">
                    <Label resid="Shorten.Label"/>
                    <Supertip>
                      <Title resid="Shorten.Label"/>
                      <Description resid="Shorten.Tooltip"/>
                    </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="ExecuteFunction">
                      <FunctionName>shortenTeamsLink</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msteamslink.msgCompose.pane">
                    <Label resid="Pane.Label"/>
                    <Supertip>
                      <Title resid="Pane.Label"/>
                      <Description resid="Pane.Tooltip"/>
                    </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>
  
            <!-- Meeting being created / edited by the organizer -->
            <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msteamslink.apptCompose.group">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="msteamslink.apptCompose.shorten">
                    <Label resid="Shorten.Label"/>
                    <Supertip>
                      <Title resid="Shorten.Label"/>
                      <Description resid="Shorten.Tooltip"/>
                    </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="ExecuteFunction">
                      <FunctionName>shortenTeamsLink</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msteamslink.apptCompose.pane">
                    <Label resid="Pane.Label"/>
                    <Supertip>
                      <Title resid="Pane.Label"/>
                      <Description resid="Pane.Tooltip"/>
                    </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>
  
            <!-- Email received: get a short link to share -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msteamslink.msgRead.group">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="msteamslink.msgRead.pane">
                    <Label resid="Read.Label"/>
                    <Supertip>
                      <Title resid="Read.Label"/>
                      <Description resid="Read.Tooltip"/>
                    </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>
  
            <!-- Meeting received as an attendee -->
            <ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msteamslink.apptRead.group">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="msteamslink.apptRead.pane">
                    <Label resid="Read.Label"/>
                    <Supertip>
                      <Title resid="Read.Label"/>
                      <Description resid="Read.Tooltip"/>
                    </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>
          <!-- Smart Alerts: shorten the Teams link automatically when the organizer clicks Send -->
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnAppointmentSend" FunctionName="onAppointmentSendHandler" SendMode="SoftBlock"/>
              </LaunchEvents>
              <SourceLocation resid="Commands.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://msteams.link/outlook-addin/assets/icon-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://msteams.link/outlook-addin/assets/icon-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://msteams.link/outlook-addin/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://msteams.link/outlook-addin/commands.html"/>
          <bt:Url id="JSRuntime.Url" DefaultValue="https://msteams.link/outlook-addin/launchevent.js"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://msteams.link/outlook-addin/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Group.Label" DefaultValue="MSTeams.link"/>
          <bt:String id="Shorten.Label" DefaultValue="Shorten Teams link">
            <bt:Override Locale="fr-FR" Value="Raccourcir le lien Teams"/>
            <bt:Override Locale="es-ES" Value="Acortar enlace de Teams"/>
            <bt:Override Locale="pt-BR" Value="Encurtar link do Teams"/>
          </bt:String>
          <bt:String id="Pane.Label" DefaultValue="Short link options">
            <bt:Override Locale="fr-FR" Value="Options du lien court"/>
            <bt:Override Locale="es-ES" Value="Opciones del enlace corto"/>
            <bt:Override Locale="pt-BR" Value="Opções do link curto"/>
          </bt:String>
          <bt:String id="Read.Label" DefaultValue="Get short Teams link">
            <bt:Override Locale="fr-FR" Value="Lien Teams court"/>
            <bt:Override Locale="es-ES" Value="Enlace de Teams corto"/>
            <bt:Override Locale="pt-BR" Value="Link curto do Teams"/>
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Shorten.Tooltip" DefaultValue="Replace the long Teams meeting link in this item with a short msteams.link link, formatting kept.">
            <bt:Override Locale="fr-FR" Value="Remplace le long lien de réunion Teams de cet élément par un lien court msteams.link, mise en forme conservée."/>
            <bt:Override Locale="es-ES" Value="Reemplaza el enlace largo de la reunión de Teams en este elemento por un enlace corto de msteams.link, sin perder el formato."/>
            <bt:Override Locale="pt-BR" Value="Substitui o link longo da reunião do Teams neste item por um link curto do msteams.link, mantendo a formatação."/>
          </bt:String>
          <bt:String id="Pane.Tooltip" DefaultValue="Open the MSTeams.link pane: shorten, copy, or paste another Teams link.">
            <bt:Override Locale="fr-FR" Value="Ouvre le volet MSTeams.link : raccourcir, copier, ou coller un autre lien Teams."/>
            <bt:Override Locale="es-ES" Value="Abre el panel de MSTeams.link: acortar, copiar o pegar otro enlace de Teams."/>
            <bt:Override Locale="pt-BR" Value="Abre o painel do MSTeams.link: encurtar, copiar ou colar outro link do Teams."/>
          </bt:String>
          <bt:String id="Read.Tooltip" DefaultValue="Get a short msteams.link link for the Teams meeting in this item, ready to share by SMS or chat.">
            <bt:Override Locale="fr-FR" Value="Obtenez un lien court msteams.link pour la réunion Teams de cet élément, prêt à partager par SMS ou messagerie."/>
            <bt:Override Locale="es-ES" Value="Obtén un enlace corto de msteams.link para la reunión de Teams de este elemento, listo para compartir por SMS o chat."/>
            <bt:Override Locale="pt-BR" Value="Obtenha um link curto do msteams.link para a reunião do Teams neste item, pronto para compartilhar por SMS ou chat."/>
          </bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
