<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <!-- Stable add-in identifier. Do NOT regenerate; changing it
       creates a new add-in and forces every user to re-install. -->
  <Id>b6d9e7a4-3f8c-4d2a-9e1b-5a7c8d6f4e2a</Id>
  <Version>2.0.0.0</Version>
  <ProviderName>Spitzer Data</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Spitzer Data" />
  <Description DefaultValue="Live M&amp;A risk metrics in Excel. Use =CTFN.DATA(ticker, param) for spreads, odds, prices, timing -- straight from spitzerdata.com." />
  <IconUrl DefaultValue="https://spitzerdata.com/static/ctfn-logo.png" />
  <HighResolutionIconUrl DefaultValue="https://spitzerdata.com/static/ctfn-logo.png" />
  <SupportUrl DefaultValue="https://spitzerdata.com/" />

  <AppDomains>
    <AppDomain>https://spitzerdata.com</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="CustomFunctionsRuntime" MinVersion="1.4" />
      <Set Name="SharedRuntime" MinVersion="1.1" />
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://spitzerdata.com/static/addin/taskpane.html" />
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <!-- Shared runtime so the taskpane (which stores the bearer
             token) and the custom functions (which read it) share
             a single localStorage instance. -->
        <Runtimes>
          <Runtime resid="Runtime.Url" lifetime="long" />
        </Runtimes>

        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="Functions.Script.Url" />
            </Script>
            <Page>
              <SourceLocation resid="Functions.Page.Url" />
            </Page>
            <Metadata>
              <SourceLocation resid="Functions.Metadata.Url" />
            </Metadata>
            <Namespace resid="Functions.Namespace" />
          </ExtensionPoint>
        </AllFormFactors>

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>
          <FunctionFile resid="Runtime.Url" />
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CTFNDataGroup">
                <Label resid="Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="OpenTaskpaneButton">
                  <Label resid="Taskpane.Label" />
                  <Supertip>
                    <Title resid="Taskpane.Label" />
                    <Description resid="Taskpane.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">
                    <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Runtime.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://spitzerdata.com/static/ctfn-logo.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://spitzerdata.com/static/ctfn-logo.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://spitzerdata.com/static/ctfn-logo.png" />
      </bt:Images>

      <bt:Urls>
        <bt:Url id="Runtime.Url" DefaultValue="https://spitzerdata.com/static/addin/taskpane.html" />
        <bt:Url id="Functions.Page.Url" DefaultValue="https://spitzerdata.com/static/addin/functions.html" />
        <bt:Url id="Functions.Script.Url" DefaultValue="https://spitzerdata.com/static/addin/functions.js" />
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://spitzerdata.com/static/addin/functions.json" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://spitzerdata.com/" />
      </bt:Urls>

      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="CTFN" />
        <bt:String id="Group.Label" DefaultValue="Spitzer Data" />
        <bt:String id="Taskpane.Label" DefaultValue="Spitzer Data" />
        <bt:String id="GetStarted.Title" DefaultValue="Spitzer Data is ready." />
      </bt:ShortStrings>

      <bt:LongStrings>
        <bt:String id="Taskpane.Tooltip" DefaultValue="Sign in and query =CTFN.DATA() / =CTFN.SEARCH() across the M&amp;A deal universe." />
        <bt:String id="GetStarted.Description" DefaultValue="Click the Spitzer Data button on the Home tab to sign in. Then use =CTFN.DATA(ticker, param) in any cell." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
