<?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">

  <!-- Basic Identity -->
  <Id>eef2d088-44f6-465d-8f35-0ee4d221d254</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Rivvr</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Rivvr (Staging)"/>
  <Description DefaultValue="Pull Rivvr data directly into Excel"/>
  <IconUrl DefaultValue="https://excel.staging.rivvr.io/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://excel.staging.rivvr.io/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://rivvr.io/support"/>

  <AppDomains>
    <AppDomain>https://rivvr.io</AppDomain>
    <AppDomain>https://platform.rivvr.io</AppDomain>
    <AppDomain>https://staging.rivvr.io</AppDomain>
    <AppDomain>https://pro-mackerel-89.accounts.dev</AppDomain>
    <AppDomain>https://excel.staging.rivvr.io</AppDomain>
  </AppDomains>

  <!-- Office 365 Support -->
  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>

  <!-- Requirements - Excel Online + Desktop -->
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="SharedRuntime" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <!-- Task Pane -->
  <DefaultSettings>
    <SourceLocation DefaultValue="https://excel.staging.rivvr.io/taskpane.html"/>
  </DefaultSettings>

  <!-- Permissions -->
  <Permissions>ReadWriteDocument</Permissions>

  <!-- Version Overrides for Ribbon -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <Runtimes>
          <Runtime resid="Taskpane.Url" lifetime="long"/>
        </Runtimes>

        <!-- Custom Functions -->
        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="Functions.Script.Url"/>
            </Script>
            <Page>
              <SourceLocation resid="Taskpane.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="Taskpane.Url"/>

          <!-- Rivvr Custom Tab -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="RivvrTab">
              <!-- Group 1: Access -->
              <Group id="AccessGroup">
                <Label resid="AccessGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>

                <!-- Sign In/Out Button -->
                <Control xsi:type="Button" id="SignInButton">
                  <Label resid="SignIn.Label"/>
                  <Supertip>
                    <Title resid="SignIn.Label"/>
                    <Description resid="SignIn.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Login.16"/>
                    <bt:Image size="32" resid="Icon.Login.32"/>
                    <bt:Image size="80" resid="Icon.Login.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Account.Url"/>
                  </Action>
                </Control>
              </Group>

              <!-- Group 2: Data -->
              <Group id="DataGroup">
                <Label resid="DataGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>

                <!-- Formulas Button -->
                <Control xsi:type="Button" id="FormulasButton">
                  <Label resid="Formulas.Label"/>
                  <Supertip>
                    <Title resid="Formulas.Label"/>
                    <Description resid="Formulas.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Formulas.16"/>
                    <bt:Image size="32" resid="Icon.Formulas.32"/>
                    <bt:Image size="80" resid="Icon.Formulas.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Formulas.Url"/>
                  </Action>
                </Control>

                <!-- Report Selection Button -->
                <Control xsi:type="Button" id="ReportSelectionButton">
                  <Label resid="ReportSelection.Label"/>
                  <Supertip>
                    <Title resid="ReportSelection.Label"/>
                    <Description resid="ReportSelection.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Report.16"/>
                    <bt:Image size="32" resid="Icon.Report.32"/>
                    <bt:Image size="80" resid="Icon.Report.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Reports.Url"/>
                  </Action>
                </Control>

              </Group>

              <!-- Group 3: Help -->
              <Group id="HelpGroup">
                <Label resid="HelpGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>

                <!-- Add-In Help Button -->
                <Control xsi:type="Button" id="HelpButton">
                  <Label resid="Help.Label"/>
                  <Supertip>
                    <Title resid="Help.Label"/>
                    <Description resid="Help.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Help.16"/>
                    <bt:Image size="32" resid="Icon.Help.32"/>
                    <bt:Image size="80" resid="Icon.Help.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Help.Url"/>
                  </Action>
                </Control>

                <!-- Information Button -->
                <Control xsi:type="Button" id="InfoButton">
                  <Label resid="Info.Label"/>
                  <Supertip>
                    <Title resid="Info.Label"/>
                    <Description resid="Info.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Info.16"/>
                    <bt:Image size="32" resid="Icon.Info.32"/>
                    <bt:Image size="80" resid="Icon.Info.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Info.Url"/>
                  </Action>
                </Control>
              </Group>

              <!-- Group 4: Other -->
              <Group id="OtherGroup">
                <Label resid="OtherGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>

                <!-- Send Feedback Button -->
                <Control xsi:type="Button" id="FeedbackButton">
                  <Label resid="Feedback.Label"/>
                  <Supertip>
                    <Title resid="Feedback.Label"/>
                    <Description resid="Feedback.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Feedback.16"/>
                    <bt:Image size="32" resid="Icon.Feedback.32"/>
                    <bt:Image size="80" resid="Icon.Feedback.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Feedback.Url"/>
                  </Action>
                </Control>

                <!-- Settings Button -->
                <Control xsi:type="Button" id="SettingsButton">
                  <Label resid="Settings.Label"/>
                  <Supertip>
                    <Title resid="Settings.Label"/>
                    <Description resid="Settings.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Settings.16"/>
                    <bt:Image size="32" resid="Icon.Settings.32"/>
                    <bt:Image size="80" resid="Icon.Settings.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>RivvrTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Settings.Url"/>
                  </Action>
                </Control>
              </Group>

              <Label resid="RivvrTab.Label"/>
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <!-- Resources -->
    <Resources>
      <bt:Images>
        <!-- Default Icons -->
        <bt:Image id="Icon.16x16" DefaultValue="https://excel.staging.rivvr.io/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://excel.staging.rivvr.io/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://excel.staging.rivvr.io/assets/icon-80.png"/>
        <!-- Login Icons -->
        <bt:Image id="Icon.Login.16" DefaultValue="https://excel.staging.rivvr.io/assets/login-16.png"/>
        <bt:Image id="Icon.Login.32" DefaultValue="https://excel.staging.rivvr.io/assets/login-32.png"/>
        <bt:Image id="Icon.Login.80" DefaultValue="https://excel.staging.rivvr.io/assets/login-80.png"/>
        <!-- Formulas Icons -->
        <bt:Image id="Icon.Formulas.16" DefaultValue="https://excel.staging.rivvr.io/assets/formulas-16.png"/>
        <bt:Image id="Icon.Formulas.32" DefaultValue="https://excel.staging.rivvr.io/assets/formulas-32.png"/>
        <bt:Image id="Icon.Formulas.80" DefaultValue="https://excel.staging.rivvr.io/assets/formulas-80.png"/>
        <!-- Report Icons -->
        <bt:Image id="Icon.Report.16" DefaultValue="https://excel.staging.rivvr.io/assets/report-16.png"/>
        <bt:Image id="Icon.Report.32" DefaultValue="https://excel.staging.rivvr.io/assets/report-32.png"/>
        <bt:Image id="Icon.Report.80" DefaultValue="https://excel.staging.rivvr.io/assets/report-80.png"/>
        <!-- Help Icons -->
        <bt:Image id="Icon.Help.16" DefaultValue="https://excel.staging.rivvr.io/assets/help-16.png"/>
        <bt:Image id="Icon.Help.32" DefaultValue="https://excel.staging.rivvr.io/assets/help-32.png"/>
        <bt:Image id="Icon.Help.80" DefaultValue="https://excel.staging.rivvr.io/assets/help-80.png"/>
        <!-- Info Icons -->
        <bt:Image id="Icon.Info.16" DefaultValue="https://excel.staging.rivvr.io/assets/info-16.png"/>
        <bt:Image id="Icon.Info.32" DefaultValue="https://excel.staging.rivvr.io/assets/info-32.png"/>
        <bt:Image id="Icon.Info.80" DefaultValue="https://excel.staging.rivvr.io/assets/info-80.png"/>
        <!-- Feedback Icons -->
        <bt:Image id="Icon.Feedback.16" DefaultValue="https://excel.staging.rivvr.io/assets/feedback-16.png"/>
        <bt:Image id="Icon.Feedback.32" DefaultValue="https://excel.staging.rivvr.io/assets/feedback-32.png"/>
        <bt:Image id="Icon.Feedback.80" DefaultValue="https://excel.staging.rivvr.io/assets/feedback-80.png"/>
        <!-- Settings Icons -->
        <bt:Image id="Icon.Settings.16" DefaultValue="https://excel.staging.rivvr.io/assets/settings-16.png"/>
        <bt:Image id="Icon.Settings.32" DefaultValue="https://excel.staging.rivvr.io/assets/settings-32.png"/>
        <bt:Image id="Icon.Settings.80" DefaultValue="https://excel.staging.rivvr.io/assets/settings-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Functions.Script.Url" DefaultValue="https://excel.staging.rivvr.io/functions.js"/>
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://excel.staging.rivvr.io/functions.json"/>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://rivvr.io/excel-add-in"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html"/>
        <bt:Url id="Taskpane.Account.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=account"/>
        <bt:Url id="Taskpane.Formulas.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=formulas"/>
        <bt:Url id="Taskpane.Reports.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=reports"/>
        <bt:Url id="Taskpane.Help.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=help"/>
        <bt:Url id="Taskpane.Info.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=info"/>
        <bt:Url id="Taskpane.Feedback.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=feedback"/>
        <bt:Url id="Taskpane.Settings.Url" DefaultValue="https://excel.staging.rivvr.io/taskpane.html?view=settings"/>
        <bt:Url id="Commands.Url" DefaultValue="https://excel.staging.rivvr.io/commands.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="RIVVR"/>
        <bt:String id="RivvrTab.Label" DefaultValue="Rivvr"/>
        <bt:String id="AccessGroup.Label" DefaultValue="Access"/>
        <bt:String id="DataGroup.Label" DefaultValue="Data"/>
        <bt:String id="HelpGroup.Label" DefaultValue="Help"/>
        <bt:String id="OtherGroup.Label" DefaultValue="Other"/>
        <bt:String id="SignIn.Label" DefaultValue="Sign In"/>
        <bt:String id="Formulas.Label" DefaultValue="Formulas"/>
        <bt:String id="ReportSelection.Label" DefaultValue="Report Selection"/>
        <bt:String id="Refresh.Label" DefaultValue="Refresh Data"/>
        <bt:String id="Help.Label" DefaultValue="Add-In Help"/>
        <bt:String id="Info.Label" DefaultValue="Information"/>
        <bt:String id="Feedback.Label" DefaultValue="Send Feedback"/>
        <bt:String id="Settings.Label" DefaultValue="Settings"/>
        <bt:String id="GetStarted.Title" DefaultValue="Welcome to Rivvr for Excel"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="SignIn.Tooltip" DefaultValue="Sign in to your Rivvr account or sign out"/>
        <bt:String id="Formulas.Tooltip" DefaultValue="Browse and insert Rivvr formulas"/>
        <bt:String id="ReportSelection.Tooltip" DefaultValue="Select and generate Rivvr reports"/>
        <bt:String id="Refresh.Tooltip" DefaultValue="Refresh all Rivvr data in the workbook"/>
        <bt:String id="Help.Tooltip" DefaultValue="Get help with the Rivvr Excel Add-in"/>
        <bt:String id="Info.Tooltip" DefaultValue="View add-in information and version"/>
        <bt:String id="Feedback.Tooltip" DefaultValue="Send feedback about the Rivvr Excel Add-in"/>
        <bt:String id="Settings.Tooltip" DefaultValue="Configure add-in settings"/>
        <bt:String id="GetStarted.Description" DefaultValue="Rivvr for Excel is ready! Click the Rivvr tab to sign in and start pulling your data."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
