<?xml version="1.0" encoding="UTF-8"?>
<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>22cb0b25-c2d7-5687-90e7-ec594331a8c6</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>ZAG AI</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="ZAG for Excel">
    <Override Locale="ja-JP" Value="ZAG for Excel" />
  </DisplayName>
  <Description DefaultValue="Fills retailer product-registration templates from catalogs and spec sheets (PDF, Excel, images), with a traceable source for every cell.">
    <Override Locale="ja-JP" Value="カタログ・仕様書（PDF/Excel/画像）から、小売各社の商品登録フォーマットへ根拠付きで自動記入する Excel アドイン。" />
  </Description>
  <IconUrl DefaultValue="https://zag-ai.com/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://zag-ai.com/assets/icon-64.png" />
  <SupportUrl DefaultValue="https://excel.withzag.com/support/" />

  <!-- OAuth dialogs for cloud drive sources (docs/ONEDRIVE-SOURCES-SPEC.md §5.4)
       may navigate to the identity provider inside an Office dialog. -->
  <AppDomains>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
  </AppDomains>

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://zag-ai.com/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>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="PiGroup">
                <Label resid="GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon16" />
                  <bt:Image size="32" resid="Icon32" />
                  <bt:Image size="80" resid="Icon80" />
                </Icon>
                <Control xsi:type="Button" id="OpenPiButton">
                  <Label resid="ButtonLabel" />
                  <Supertip>
                    <Title resid="ButtonLabel" />
                    <Description resid="ButtonDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon16" />
                    <bt:Image size="32" resid="Icon32" />
                    <bt:Image size="80" resid="Icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>PiTaskPane</TaskpaneId>
                    <SourceLocation resid="TaskpaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon16" DefaultValue="https://zag-ai.com/assets/icon-16.png" />
        <bt:Image id="Icon32" DefaultValue="https://zag-ai.com/assets/icon-32.png" />
        <bt:Image id="Icon80" DefaultValue="https://zag-ai.com/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="TaskpaneUrl" DefaultValue="https://zag-ai.com/src/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="ZAG" />
        <bt:String id="ButtonLabel" DefaultValue="Open ZAG">
          <bt:Override Locale="ja-JP" Value="ZAG を開く" />
        </bt:String>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="ButtonDesc" DefaultValue="Open the ZAG task pane">
          <bt:Override Locale="ja-JP" Value="ZAG の作業ウィンドウを開きます" />
        </bt:String>
      </bt:LongStrings>
    </Resources>
    <WebApplicationInfo>
      <Id>b9df699c-0e54-476d-b046-0537f4b22f1c</Id>
      <Resource>api://zag-ai.com/b9df699c-0e54-476d-b046-0537f4b22f1c</Resource>
      <Scopes>
        <Scope>openid</Scope>
        <Scope>profile</Scope>
        <Scope>email</Scope>
      </Scopes>
    </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>
