<?xml version="1.0" encoding="UTF-8"?>
<!-- Template: the server fills in the domain, Id and version from .env.
     Download it from https://<your-domain>/manifest.xml rather than using this file directly. -->
<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"
           xsi:type="MailApp">
  <Id>{{env "ADDIN_ID"}}</Id>
  <Version>{{env "ADDIN_VERSION"}}</Version>
  <ProviderName>Heineken Beverages PACE</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="PACE Meeting" />
  <Description DefaultValue="Insert the PACE decision framework into an Outlook meeting." />
  <IconUrl DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-32.png?v={{env "ADDIN_VERSION"}}" />
  <HighResolutionIconUrl DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-80.png?v={{env "ADDIN_VERSION"}}" />
  <SupportUrl DefaultValue="https://{{env "PACE_DOMAIN"}}/" />
  <AppDomains>
    <AppDomain>https://{{env "PACE_DOMAIN"}}</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://{{env "PACE_DOMAIN"}}/taskpane.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
  </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">
      <Description resid="residDescription" />
      <Requirements>
        <bt:Sets DefaultMinVersion="1.10">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <Runtime resid="LaunchEvent.Url">
              <Override type="javascript" resid="LaunchEventJS.Url" />
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="LaunchEvent.Url" />
            <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="paceMeetingGroup">
                  <Label resid="paceMeetingGroup.Label" />
                  <Control xsi:type="Button" id="paceSettingsButton">
                    <Label resid="paceSettingsButton.Label" />
                    <Supertip>
                      <Title resid="paceSettingsButton.Label" />
                      <Description resid="paceSettingsItem.Tooltip" />
                    </Supertip>
                    <Icon>
                        <bt:Image size="16" resid="Icon.16x16" />
                        <bt:Image size="20" resid="Icon.20x20" />
                        <bt:Image size="24" resid="Icon.24x24" />
                        <bt:Image size="32" resid="Icon.32x32" />
                        <bt:Image size="40" resid="Icon.40x40" />
                        <bt:Image size="48" resid="Icon.48x48" />
                        <bt:Image size="64" resid="Icon.64x64" />
                        <bt:Image size="80" resid="Icon.80x80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Taskpane.Url" />
                    </Action>
                  </Control>
                  <Control xsi:type="Menu" id="paceMenu">
                    <Label resid="paceMenu.Label" />
                    <Supertip>
                      <Title resid="paceMenu.Label" />
                      <Description resid="paceMenu.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Insert.16x16" />
                      <bt:Image size="32" resid="Insert.32x32" />
                      <bt:Image size="80" resid="Insert.80x80" />
                    </Icon>
                    <Items>
                      <Item id="paceInsertItem">
                        <Label resid="paceInsertItem.Label" />
                        <Supertip>
                          <Title resid="paceInsertItem.Label" />
                          <Description resid="paceInsertItem.Tooltip" />
                        </Supertip>
                        <Icon>
                          <bt:Image size="16" resid="Insert.16x16" />
                          <bt:Image size="32" resid="Insert.32x32" />
                          <bt:Image size="80" resid="Insert.80x80" />
                        </Icon>
                        <Action xsi:type="ExecuteFunction">
                          <FunctionName>paceInsertCommand</FunctionName>
                        </Action>
                      </Item>
                      <Item id="paceRemoveItem">
                        <Label resid="paceRemoveItem.Label" />
                        <Supertip>
                          <Title resid="paceRemoveItem.Label" />
                          <Description resid="paceRemoveItem.Tooltip" />
                        </Supertip>
                        <Icon>
                          <bt:Image size="16" resid="Remove.16x16" />
                          <bt:Image size="32" resid="Remove.32x32" />
                          <bt:Image size="80" resid="Remove.80x80" />
                        </Icon>
                        <Action xsi:type="ExecuteFunction">
                          <FunctionName>paceRemoveCommand</FunctionName>
                        </Action>
                      </Item>
                    </Items>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewAppointmentOrganizer" FunctionName="onNewAppointmentHandler" />
                <LaunchEvent Type="OnAppointmentAttendeesChanged" FunctionName="onAppointmentChangedHandler" />
                <LaunchEvent Type="OnAppointmentTimeChanged" FunctionName="onAppointmentChangedHandler" />
              </LaunchEvents>
              <SourceLocation resid="LaunchEvent.Url" />
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-16.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.20x20" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-20.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.24x24" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-24.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.32x32" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-32.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.40x40" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-40.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.48x48" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-48.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.64x64" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-64.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Icon.80x80" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-icon-80.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Insert.16x16" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-insert-16.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Insert.32x32" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-insert-32.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Insert.80x80" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-insert-80.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Remove.16x16" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-remove-16.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Remove.32x32" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-remove-32.png?v={{env "ADDIN_VERSION"}}" />
          <bt:Image id="Remove.80x80" DefaultValue="https://{{env "PACE_DOMAIN"}}/pace-remove-80.png?v={{env "ADDIN_VERSION"}}" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Taskpane.Url" DefaultValue="https://{{env "PACE_DOMAIN"}}/taskpane.html" />
          <bt:Url id="LaunchEvent.Url" DefaultValue="https://{{env "PACE_DOMAIN"}}/launchevent.html" />
          <bt:Url id="LaunchEventJS.Url" DefaultValue="https://{{env "PACE_DOMAIN"}}/launchevent.js?v={{env "ADDIN_VERSION"}}" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="paceMeetingGroup.Label" DefaultValue="PACE" />
          <bt:String id="paceSettingsButton.Label" DefaultValue="PACE Meeting" />
          <bt:String id="paceMenu.Label" DefaultValue="Insert / Remove" />
          <bt:String id="paceInsertItem.Label" DefaultValue="Insert PACE" />
          <bt:String id="paceRemoveItem.Label" DefaultValue="Remove PACE" />
                  </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="residDescription" DefaultValue="Adds the PACE decision meeting template above the Teams meeting details." />
          <bt:String id="paceMenu.Tooltip" DefaultValue="Insert or remove the PACE decision meeting template." />
          <bt:String id="paceInsertItem.Tooltip" DefaultValue="Add the PACE decision meeting template to the top of this meeting." />
          <bt:String id="paceRemoveItem.Tooltip" DefaultValue="Remove the PACE template from this meeting." />
          <bt:String id="paceSettingsItem.Tooltip" DefaultValue="Open PACE Meeting: insert or remove PACE, turn auto-insert on or off, and see diagnostics." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
