<?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" xsi:type="TaskPaneApp">
  <Id>159f5864-214b-43bb-a905-9a42928e1d47</Id>
  <Version>2.0.10.07</Version>
  <ProviderName>anuboXBRL</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="anuboXBRL"/>
  <Description DefaultValue="Key technology for Digital Finance and Sustainability"/>
  <IconUrl DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anuboXBRL-Site-Icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anuboXBRL-Site-Icon-64.png"/>
  <SupportUrl DefaultValue="https://anubo.com/support"/>
  <!-- Replace with placeholder that will be dynamically generated -->
    <AppDomains>
    <AppDomain>https://azan92.anubo.eu</AppDomain>
    <AppDomain>https://prod.azan82.anubo.com</AppDomain>
    <AppDomain>https://docs.anubo.com</AppDomain>
    <AppDomain>https://anubo.com</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>
  <Requirements>
    <Sets>      
      <Set Name="ExcelApi"               MinVersion="1.1"/>
      <Set Name="AddinCommands"          MinVersion="1.1"/>
      <Set Name="SharedRuntime"          MinVersion="1.1"/>
      <Set Name="CustomFunctionsRuntime" MinVersion="1.1"/>
      <Set Name="DialogApi"              MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://prod.azan82.anubo.com/app/v1/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <!--The general VersionOverrides docs call out that v1.1 support is Mail-only; task pane add-ins (Excel/Word/PowerPoint) use Taskpane 1.0.-->
  <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>
        <AllFormFactors>          

          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="Functions.Script.Url"/>
            </Script>
            <Page>
              <!-- <SourceLocation resid="Functions.Page.Url"/> -->
              <!-- In shared runtime, Custom Functions load via the same page as the task pane -->
              <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"/>

          <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>
                <!-- New ribbon buttons mapped to existing handlers -->
                <Control xsi:type="Button" id="FormatCellsButton">
                  <Label resid="FormatCells.Label"/>
                  <Supertip>
                    <Title resid="FormatCells.Label"/>
                    <Description resid="FormatCells.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="FormatIcon.16x16"/>
                    <bt:Image size="32" resid="FormatIcon.32x32"/>
                    <bt:Image size="80" resid="FormatIcon.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>handleFormatSelection</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="UserGuideButton">
                  <Label resid="UserGuide.Label"/>
                  <Supertip>
                    <Title resid="UserGuide.Label"/>
                    <Description resid="UserGuide.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="UserGuideIcon.16x16"/>
                    <bt:Image size="32" resid="UserGuideIcon.32x32"/>
                    <bt:Image size="80" resid="UserGuideIcon.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>openUserGuide</FunctionName>
                  </Action>
                </Control>

                
              </Group>
              
              
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anuboXBRL-Site-Icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anuboXBRL-Site-Icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anuboXBRL-Site-Icon-80.png"/>
        <!-- New button icons -->
        <bt:Image id="FormatIcon.16x16" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-format-wand_16.png"/>
        <bt:Image id="FormatIcon.32x32" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-format-wand_32.png"/>
        <bt:Image id="FormatIcon.80x80" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-format-wand_80.png"/>
        <bt:Image id="UserGuideIcon.16x16" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-user-guide_16.png"/>
        <bt:Image id="UserGuideIcon.32x32" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-user-guide_32.png"/>
        <bt:Image id="UserGuideIcon.80x80" DefaultValue="https://prod.azan82.anubo.com/app/v1/assets/anubo-user-guide_80.png"/>           
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Functions.Script.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/functions.js"/>
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/functions.json"/>
        <bt:Url id="Functions.Page.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/functions.html"/>
        <bt:Url id="Commands.Script.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/commands.js"/>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/taskpane.html"/>
        <bt:Url id="LoginDialog.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/auth/auth-dialog.html"/>
        <bt:Url id="Runtime.Script.Url" DefaultValue="https://prod.azan82.anubo.com/app/v1/taskpane.js"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="ANUBO"/>
        <bt:String id="GetStarted.Title" DefaultValue="Welcome to anuboXBRL!"/>
        <bt:String id="CommandsGroup.Label" DefaultValue="XBRL Tools"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="anuboXBRL"/>
        <!-- New button labels -->
        <bt:String id="FormatCells.Label" DefaultValue="Format Cells"/>
        <bt:String id="UserGuide.Label" DefaultValue="User Guide"/>
        <bt:String id="ChangeMenu.Label" DefaultValue="Change"/>
        <bt:String id="ChangeCompany.Label" DefaultValue="Change Company"/>
        <bt:String id="ChangeDate.Label" DefaultValue="Change Closing Date"/>
        <bt:String id="InsertGroup.Label" DefaultValue="Insert"/>
        <bt:String id="InsertDec.Label" DefaultValue="Insert_Dec"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="The anuboXBRL add-in has loaded successfully."/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open the anuboXBRL task pane"/>
        <!-- New button tooltips -->
        <bt:String id="FormatCells.Tooltip" DefaultValue="Format selected cells with XBRL styling"/>
        <bt:String id="UserGuide.Tooltip" DefaultValue="Open the anuboXBRL Add in User Guide"/>
        <bt:String id="ChangeMenu.Tooltip" DefaultValue="Change company or date in selected cells"/>
        <bt:String id="ChangeCompany.Tooltip" DefaultValue="Change company abbreviation in selected cells"/>
        <bt:String id="ChangeDate.Tooltip" DefaultValue="Change dataset end date in selected cells"/>
        <bt:String id="InsertDec.Tooltip" DefaultValue="Generate the ANUBO.XBRLDEC(...) formula from the selected ANUBO.XBRLVALUE(...) and copy it for pasting elsewhere."/>
      </bt:LongStrings>
    </Resources>
    <WebApplicationInfo>
      <Id>8a7768a1-3f70-4c0c-b063-1d5245c89077</Id>
      <Resource>api://prod.azan82.anubo.com/8a7768a1-3f70-4c0c-b063-1d5245c89077</Resource>     
      <Scopes>
        <Scope>email</Scope>
        <Scope>openid</Scope>
        <Scope>profile</Scope>
        <Scope>offline_access</Scope>
        <Scope>User.Read</Scope>
        <Scope>Files.Read.All</Scope>        
      </Scopes>
   </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>