<?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>f0d17905-2ba4-428b-ad48-cb6f17ee10d6</Id> -->
    <Id>e4d1050f-5cd7-4c98-9672-e51356dfa2fc</Id> 
    <Version>3.0.53.0</Version>
    <ProviderName>Techlink</ProviderName>

    <!-- 1. Cấu hình ngôn ngữ mặc định (Tiếng Anh) -->
    <DefaultLocale>en-US</DefaultLocale>

    <DisplayName DefaultValue="Mycel" />
    <Description DefaultValue="New functions new knowledge" />
    <IconUrl DefaultValue="https://addin.mycel.app/assets/icon-32.png" />
    <HighResolutionIconUrl DefaultValue="https://addin.mycel.app/assets/icon-64.png" />
    <SupportUrl DefaultValue="https://mycel.app/support_en.html">
        <Override Locale="vi-VN" Value="https://mycel.app/support_en.html"/>
        <Override Locale="vi" Value="https://mycel.app/support_en.html"/>
    </SupportUrl>   
    <AppDomains>
        <AppDomain>https://mycel.app</AppDomain>
        <AppDomain>https://addin.mycel.app</AppDomain>
        <AppDomain>https://api.toolhub.app</AppDomain>
    </AppDomains>
    <Hosts>
        <Host Name="Workbook" />
    </Hosts>
    <Requirements>
        <Sets DefaultMinVersion="1.1">
            <Set Name="CustomFunctionsRuntime"
                 MinVersion="1.1" />
        </Sets>
    </Requirements>
    <DefaultSettings>
        <SourceLocation DefaultValue="https://addin.mycel.app/taskpane.html" />
    </DefaultSettings>
    <Permissions>ReadWriteDocument</Permissions>
    <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" />
                        </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="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://addin.mycel.app/assets/icon-16.png" />
                <bt:Image id="Icon.32x32"
                          DefaultValue="https://addin.mycel.app/assets/icon-32.png" />
                <bt:Image id="Icon.80x80"
                          DefaultValue="https://addin.mycel.app/assets/icon-80.png" />
            </bt:Images>
            <bt:Urls>
                <bt:Url id="SupportUrl" DefaultValue="https://mycel.app/support_en.html?v=3.0.53" />
                <bt:Url id="PrivacyUrl" DefaultValue="https://mycel.app/policies_en.html?v=3.0.53" />                 
                <bt:Url id="Functions.Script.Url"
                        DefaultValue="https://addin.mycel.app/functions.js?v=3.0.53" />
                <bt:Url id="Functions.Metadata.Url" DefaultValue="https://addin.mycel.app/functions.json?v=3.0.53">
                  <bt:Override Locale="vi-VN" Value="https://addin.mycel.app/functions.vi.json"/>
                  <bt:Override Locale="vi" Value="https://addin.mycel.app/functions.vi.json"/>
                  <bt:Override Locale="ja-JP" Value="https://addin.mycel.app/functions.jp.json"/>
                  <bt:Override Locale="ja" Value="https://addin.mycel.app/functions.jp.json"/>
                  <bt:Override Locale="zh-CN" Value="https://addin.mycel.app/functions.cn.json"/>
                  <bt:Override Locale="zh" Value="https://addin.mycel.app/functions.cn.json"/>                                                
                </bt:Url>

                <bt:Url id="Functions.Page.Url"
                        DefaultValue="https://addin.mycel.app/functions.html?v=3.0.53" />
                <bt:Url id="GetStarted.LearnMoreUrl"
                        DefaultValue="https://mycel.app/help/index.html?v=3.0.53" />
                <bt:Url id="Commands.Url"
                        DefaultValue="https://addin.mycel.app/commands.html?v=3.0.53" />
                <bt:Url id="Taskpane.Url"
                        DefaultValue="https://addin.mycel.app/taskpane.html?v=3.0.53" />                       
            </bt:Urls>
            <bt:ShortStrings>
                <bt:String id="Functions.Namespace"  DefaultValue="MY" />
                <bt:String id="GetStarted.Title"     DefaultValue="Introduce new custom functions!">
                  <bt:Override Locale="vi-VN"   Value="Giới thiệu các hàm tính mới"/>
                  <bt:Override Locale="vi"      Value="Giới thiệu các hàm tính mới"/>
                  <bt:Override Locale="ja-JP"   Value="新しい計算関数の紹介"/>
                  <bt:Override Locale="ja"      Value="新しい計算関数の紹介"/>
                  <bt:Override Locale="zh-CN"   Value="新计算功能简介"/>
                  <bt:Override Locale="zh"      Value="新计算功能简介"/>                
                </bt:String>
                <bt:String id="CommandsGroup.Label"  DefaultValue="Commands Group"/>
                <bt:String id="TaskpaneButton.Label" DefaultValue="Mycel 3.0.53.0">
                  <bt:Override Locale="vi-VN"   Value="Mở thanh tác vụ"/>
                  <bt:Override Locale="vi"      Value="Mở thanh tác vụ"/>
                  <bt:Override Locale="ja-JP"   Value="作業ウィンドウを表示する"/>
                  <bt:Override Locale="ja"      Value="作業ウィンドウを表示する"/>
                  <bt:Override Locale="zh-CN"   Value="显示任务窗格"/>
                  <bt:Override Locale="zh"      Value="显示任务窗格"/>                    
                </bt:String>
            </bt:ShortStrings>
            <bt:LongStrings>
                <bt:String id="GetStarted.Description"  DefaultValue="Mycel loaded successfully. Go to the HOME tab and click the 'Show Task Pane' button to get started.">
                  <bt:Override Locale="vi-VN"   Value="Mycel đã được tải thành công. Hãy chuyển đến tab HOME và nhấp vào nút 'Show Task Pane' để bắt đầu."/>
                  <bt:Override Locale="vi"      Value="Mycel đã được tải thành công. Hãy chuyển đến tab HOME và nhấp vào nút 'Show Task Pane' để bắt đầu."/>
                  <bt:Override Locale="ja-JP"   Value="Mycelの読み込みに成功しました。「HOME」タブに移動し、「Show Task Pane」ボタンをクリックして開始してください。"/>
                  <bt:Override Locale="ja"      Value="Mycelの読み込みに成功しました。「HOME」タブに移動し、「Show Task Pane」ボタンをクリックして開始してください。"/>
                  <bt:Override Locale="zh-CN"   Value="Mycel 已成功加载。请前往“首页”选项卡，点击“显示任务窗格”按钮以开始使用"/>
                  <bt:Override Locale="zh"      Value="Mycel 已成功加载。请前往“首页”选项卡，点击“显示任务窗格”按钮以开始使用"/>                      
                </bt:String>
                <bt:String id="TaskpaneButton.Tooltip"  DefaultValue="Click to Show a Task Pane">
                  <bt:Override Locale="vi-VN"   Value="Bấm vào đây để mở thanh tác vụ"/>
                  <bt:Override Locale="vi"      Value="Bấm vào đây để mở thanh tác vụ"/>
                  <bt:Override Locale="ja-JP"   Value="クリックして作業ウィンドウを表示する"/>
                  <bt:Override Locale="ja"      Value="クリックして作業ウィンドウを表示する"/>
                  <bt:Override Locale="zh-CN"   Value="单击以显示任务窗格"/>
                  <bt:Override Locale="zh"      Value="单击以显示任务窗格"/>                         
                </bt:String>
            </bt:LongStrings>
        </Resources>
    </VersionOverrides>
</OfficeApp>