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

  <Id>1c7b92c5-2c4d-4b1e-9f3a-8e2d5f4c3a2b</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Excel AI Agent</ProviderName>
  <DefaultLocale>it-IT</DefaultLocale>
  <DisplayName DefaultValue="AI Agent for Excel" />
  <Description DefaultValue="Controlla Excel con linguaggio naturale tramite AI Agent" />
  <IconUrl DefaultValue="https://excel-six-plum.vercel.app/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://excel-six-plum.vercel.app/assets/icon-80.png" />
  <SupportUrl DefaultValue="https://excel-six-plum.vercel.app/support.html" />

  <AppDomains>
    <AppDomain>https://excel-six-plum.vercel.app</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="ExcelApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://excel-six-plum.vercel.app/src/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url" />
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup">
                <Label resid="CommandsGroup.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="TaskpaneButton">
                  <Label resid="TaskpaneButton.Label" />
                  <Supertip>
                    <Title resid="TaskpaneButton.Label" />
                    <Description resid="TaskpaneButton.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>ButtonId1</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://excel-six-plum.vercel.app/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://excel-six-plum.vercel.app/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://excel-six-plum.vercel.app/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
        <bt:Url id="Commands.Url" DefaultValue="https://excel-six-plum.vercel.app/src/commands.html" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://excel-six-plum.vercel.app/src/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="AI Agent per Excel pronto!" />
        <bt:String id="CommandsGroup.Label" DefaultValue="AI Agent" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="Apri AI Agent" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Il tuo AI Agent è stato caricato. Apri il pannello laterale per iniziare." />
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Apri il pannello AI Agent per controllare Excel in linguaggio naturale." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
