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

  <!-- Current account-bound Word pseudonymisation manifest. Other Office hosts and
       internal modules retain their original source in manifest.xml and
       outlook-manifest.xml; they are not part of this verified candidate. -->

  <Id>b8e1c4a0-7d92-4f3e-9a5b-0c1d2e3f4a5b</Id>
  <Version>1.2.0.0</Version>
  <ProviderName>Progressify ApS</ProviderName>
  <DefaultLocale>da-DK</DefaultLocale>

  <DisplayName DefaultValue="komplai for Word">
    <Override Locale="en-US" Value="komplai for Word"/>
  </DisplayName>
  <Description DefaultValue="Sager, Chat og Redact i Word med din komplai-konto.">
    <Override Locale="en-US" Value="Cases, Chat and Redact in Word with your komplai account."/>
  </Description>

  <IconUrl DefaultValue="https://word.komplai.dk/assets/icons/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://word.komplai.dk/assets/icons/icon-128.png"/>
  <SupportUrl DefaultValue="https://komplai.dk/support"/>

  <AppDomains>
    <AppDomain>https://hub.komplai.dk</AppDomain>
    <AppDomain>https://hub.test.komplai.dk</AppDomain>
    <AppDomain>https://hub.komplai.dk</AppDomain>
    <AppDomain>https://word.komplai.dk</AppDomain>
    <AppDomain>https://api.localhost</AppDomain>
    <!-- The account dialog starts on the taskpane's exact app origin.
         Identity and API origins belong to the existing account integration. -->
    <AppDomain>https://auth.test.komplai.dk</AppDomain>
    <AppDomain>https://auth.komplai.dk</AppDomain>
    <!-- Account API ingress: scoped regex/NER scans and self-revocation. -->
    <AppDomain>https://api.test.komplai.dk</AppDomain>
    <AppDomain>https://api.komplai.dk</AppDomain>
  </AppDomains>

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

  <!--
    Word-only account pseudonymisation. The taskpane checks WordApi 1.6,
    DialogApi 1.1 and DialogOrigin 1.1 before offering account connection and
    shows an unsupported-client notice when those APIs are unavailable.
    Other Office hosts and internal tools retain separate legacy manifests.
  -->

  <DefaultSettings>
    <SourceLocation DefaultValue="https://hub.komplai.dk/office/word"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <!-- One shared runtime: the ribbon's buttons run in the taskpane's own
             page (office/word-ribbon.ts), so a button can open the panel at
             the right place or start an action in it (docs/WORD.md). -->
        <Runtimes>
          <Runtime resid="Taskpane.Url" lifetime="long"/>
        </Runtimes>
        <DesktopFormFactor>
          <FunctionFile resid="Taskpane.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="komplai.prod.tab">
              <Group id="komplai.prod.compliance.group">
                <Label resid="Group.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="komplai.prod.scan.button">
                  <Label resid="ScanButton.Label"/>
                  <Supertip>
                    <Title resid="ScanButton.Title"/>
                    <Description resid="ScanButton.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>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
              <Group id="komplai.prod.case.group">
                <Label resid="Case.Group"/>
                <Icon>
                    <bt:Image size="16" resid="Icon.open.16"/>
                    <bt:Image size="32" resid="Icon.open.32"/>
                    <bt:Image size="80" resid="Icon.open.80"/>
                  </Icon>
                <Control xsi:type="Button" id="komplai.prod.cases.button">
                  <Label resid="Cases.Label"/>
                  <Supertip>
                    <Title resid="Cases.Label"/>
                    <Description resid="Cases.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.open.16"/>
                    <bt:Image size="32" resid="Icon.open.32"/>
                    <bt:Image size="80" resid="Icon.open.80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>komplaiOpenCases</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="komplai.prod.save.button">
                  <Label resid="Save.Label"/>
                  <Supertip>
                    <Title resid="Save.Label"/>
                    <Description resid="Save.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.save.16"/>
                    <bt:Image size="32" resid="Icon.save.32"/>
                    <bt:Image size="80" resid="Icon.save.80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>komplaiSaveToCase</FunctionName>
                  </Action>
                </Control>
              </Group>
              <Group id="komplai.prod.ai.group">
                <Label resid="Ai.Group"/>
                <Icon>
                    <bt:Image size="16" resid="Icon.ai.16"/>
                    <bt:Image size="32" resid="Icon.ai.32"/>
                    <bt:Image size="80" resid="Icon.ai.80"/>
                  </Icon>
                <Control xsi:type="Button" id="komplai.prod.chat.button">
                  <Label resid="Chat.Label"/>
                  <Supertip>
                    <Title resid="Chat.Label"/>
                    <Description resid="Chat.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.chat.16"/>
                    <bt:Image size="32" resid="Icon.chat.32"/>
                    <bt:Image size="80" resid="Icon.chat.80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>komplaiOpenChat</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Menu" id="komplai.prod.actions.menu">
                  <Label resid="Actions.Label"/>
                  <Supertip>
                    <Title resid="Actions.Label"/>
                    <Description resid="Actions.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.ai.16"/>
                    <bt:Image size="32" resid="Icon.ai.32"/>
                    <bt:Image size="80" resid="Icon.ai.80"/>
                  </Icon>
                  <Items>
                    <Item id="komplai.prod.summarise.item">
                      <Label resid="Summarise.Label"/>
                      <Supertip>
                        <Title resid="Summarise.Label"/>
                        <Description resid="Summarise.Tooltip"/>
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="Icon.summarise.16"/>
                        <bt:Image size="32" resid="Icon.summarise.32"/>
                        <bt:Image size="80" resid="Icon.summarise.80"/>
                      </Icon>
                      <Action xsi:type="ExecuteFunction">
                        <FunctionName>komplaiSummarise</FunctionName>
                      </Action>
                    </Item>
                    <Item id="komplai.prod.explain.item">
                      <Label resid="Explain.Label"/>
                      <Supertip>
                        <Title resid="Explain.Label"/>
                        <Description resid="Explain.Tooltip"/>
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="Icon.explain.16"/>
                        <bt:Image size="32" resid="Icon.explain.32"/>
                        <bt:Image size="80" resid="Icon.explain.80"/>
                      </Icon>
                      <Action xsi:type="ExecuteFunction">
                        <FunctionName>komplaiExplain</FunctionName>
                      </Action>
                    </Item>
                    <Item id="komplai.prod.rewrite.item">
                      <Label resid="Rewrite.Label"/>
                      <Supertip>
                        <Title resid="Rewrite.Label"/>
                        <Description resid="Rewrite.Tooltip"/>
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="Icon.rewrite.16"/>
                        <bt:Image size="32" resid="Icon.rewrite.32"/>
                        <bt:Image size="80" resid="Icon.rewrite.80"/>
                      </Icon>
                      <Action xsi:type="ExecuteFunction">
                        <FunctionName>komplaiRewrite</FunctionName>
                      </Action>
                    </Item>
                  </Items>
                </Control>
              </Group>
              <Group id="komplai.prod.redact.group">
                <Label resid="Redact.Group"/>
                <Icon>
                    <bt:Image size="16" resid="Icon.redact.16"/>
                    <bt:Image size="32" resid="Icon.redact.32"/>
                    <bt:Image size="80" resid="Icon.redact.80"/>
                  </Icon>
                <Control xsi:type="Button" id="komplai.prod.redact.button">
                  <Label resid="RedactOpen.Label"/>
                  <Supertip>
                    <Title resid="RedactOpen.Label"/>
                    <Description resid="RedactOpen.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.redact.16"/>
                    <bt:Image size="32" resid="Icon.redact.32"/>
                    <bt:Image size="80" resid="Icon.redact.80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>komplaiOpenRedact</FunctionName>
                  </Action>
                </Control>
              </Group>
              <Group id="komplai.prod.settings.group">
                <Label resid="Settings.Group"/>
                <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>
                <Control xsi:type="Button" id="komplai.prod.settings.button">
                  <Label resid="SettingsOpen.Label"/>
                  <Supertip>
                    <Title resid="SettingsOpen.Label"/>
                    <Description resid="SettingsOpen.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="ExecuteFunction">
                    <FunctionName>komplaiOpenSettings</FunctionName>
                  </Action>
                </Control>
              </Group>
              <Label resid="Tab.Label"/>
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://word.komplai.dk/assets/icons/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://word.komplai.dk/assets/icons/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://word.komplai.dk/assets/icons/icon-80.png"/>
        <bt:Image id="Icon.open.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/open-16.png"/>
        <bt:Image id="Icon.open.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/open-32.png"/>
        <bt:Image id="Icon.open.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/open-80.png"/>
        <bt:Image id="Icon.save.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/save-16.png"/>
        <bt:Image id="Icon.save.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/save-32.png"/>
        <bt:Image id="Icon.save.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/save-80.png"/>
        <bt:Image id="Icon.chat.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/chat-16.png"/>
        <bt:Image id="Icon.chat.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/chat-32.png"/>
        <bt:Image id="Icon.chat.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/chat-80.png"/>
        <bt:Image id="Icon.ai.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/ai-16.png"/>
        <bt:Image id="Icon.ai.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/ai-32.png"/>
        <bt:Image id="Icon.ai.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/ai-80.png"/>
        <bt:Image id="Icon.summarise.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/summarise-16.png"/>
        <bt:Image id="Icon.summarise.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/summarise-32.png"/>
        <bt:Image id="Icon.summarise.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/summarise-80.png"/>
        <bt:Image id="Icon.explain.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/explain-16.png"/>
        <bt:Image id="Icon.explain.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/explain-32.png"/>
        <bt:Image id="Icon.explain.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/explain-80.png"/>
        <bt:Image id="Icon.rewrite.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/rewrite-16.png"/>
        <bt:Image id="Icon.rewrite.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/rewrite-32.png"/>
        <bt:Image id="Icon.rewrite.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/rewrite-80.png"/>
        <bt:Image id="Icon.redact.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/redact-16.png"/>
        <bt:Image id="Icon.redact.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/redact-32.png"/>
        <bt:Image id="Icon.redact.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/redact-80.png"/>
        <bt:Image id="Icon.settings.16" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/settings-16.png"/>
        <bt:Image id="Icon.settings.32" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/settings-32.png"/>
        <bt:Image id="Icon.settings.80" DefaultValue="https://word.komplai.dk/assets/icons/ribbon/settings-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://hub.komplai.dk/office/word"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Tab.Label" DefaultValue="komplai">
          <bt:Override Locale="en-US" Value="komplai"/>
        </bt:String>
        <bt:String id="Group.Label" DefaultValue="komplai">
          <bt:Override Locale="en-US" Value="komplai"/>
        </bt:String>
        <bt:String id="Case.Group" DefaultValue="Sag">
          <bt:Override Locale="en-US" Value="Case"/>
        </bt:String>
        <bt:String id="Ai.Group" DefaultValue="AI">
          <bt:Override Locale="en-US" Value="AI"/>
        </bt:String>
        <bt:String id="Redact.Group" DefaultValue="Redact">
          <bt:Override Locale="en-US" Value="Redact"/>
        </bt:String>
        <bt:String id="Settings.Group" DefaultValue="Indstillinger">
          <bt:Override Locale="en-US" Value="Settings"/>
        </bt:String>
        <bt:String id="ScanButton.Label" DefaultValue="Åbn komplai">
          <bt:Override Locale="en-US" Value="Open komplai"/>
        </bt:String>
        <bt:String id="ScanButton.Title" DefaultValue="komplai i Word">
          <bt:Override Locale="en-US" Value="komplai in Word"/>
        </bt:String>
        <bt:String id="Cases.Label" DefaultValue="Åbn fra sag">
          <bt:Override Locale="en-US" Value="Open from case"/>
        </bt:String>
        <bt:String id="Save.Label" DefaultValue="Gem i sagen">
          <bt:Override Locale="en-US" Value="Save to case"/>
        </bt:String>
        <bt:String id="Chat.Label" DefaultValue="Chat">
          <bt:Override Locale="en-US" Value="Chat"/>
        </bt:String>
        <bt:String id="Actions.Label" DefaultValue="AI-handlinger">
          <bt:Override Locale="en-US" Value="AI actions"/>
        </bt:String>
        <bt:String id="Summarise.Label" DefaultValue="Opsummér dokumentet">
          <bt:Override Locale="en-US" Value="Summarise the document"/>
        </bt:String>
        <bt:String id="Explain.Label" DefaultValue="Forklar markeringen">
          <bt:Override Locale="en-US" Value="Explain the selection"/>
        </bt:String>
        <bt:String id="Rewrite.Label" DefaultValue="Omskriv markeringen">
          <bt:Override Locale="en-US" Value="Rewrite the selection"/>
        </bt:String>
        <bt:String id="RedactOpen.Label" DefaultValue="Redact">
          <bt:Override Locale="en-US" Value="Redact"/>
        </bt:String>
        <bt:String id="SettingsOpen.Label" DefaultValue="Indstillinger">
          <bt:Override Locale="en-US" Value="Settings"/>
        </bt:String>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="ScanButton.Tooltip" DefaultValue="Åbn dokumenter fra dine sager, chat om dokumentet, og pseudonymisér det med organisationens Redact.">
          <bt:Override Locale="en-US" Value="Open documents from your cases, chat about the document, and pseudonymise it with your organisation's Redact."/>
        </bt:String>
        <bt:String id="Cases.Tooltip" DefaultValue="Vælg en sag eller et dokumentrum, og åbn et Word-dokument derfra.">
          <bt:Override Locale="en-US" Value="Choose a case or document room and open a Word document from it."/>
        </bt:String>
        <bt:String id="Save.Tooltip" DefaultValue="Gem dokumentet i sagen som en ny version.">
          <bt:Override Locale="en-US" Value="Save the document to its case as a new version."/>
        </bt:String>
        <bt:String id="Chat.Tooltip" DefaultValue="Chat om det åbne dokument med komplai Chat. Samtalen gemmes i Chat i komplai.">
          <bt:Override Locale="en-US" Value="Chat about the open document with komplai Chat. The conversation is saved in Chat in komplai."/>
        </bt:String>
        <bt:String id="Actions.Tooltip" DefaultValue="Få AI til at opsummere dokumentet eller forklare eller omskrive markeringen.">
          <bt:Override Locale="en-US" Value="Have AI summarise the document, or explain or rewrite the selection."/>
        </bt:String>
        <bt:String id="Summarise.Tooltip" DefaultValue="Formål, hovedpunkter og eventuelle frister eller forpligtelser.">
          <bt:Override Locale="en-US" Value="Purpose, main points and any deadlines or obligations."/>
        </bt:String>
        <bt:String id="Explain.Tooltip" DefaultValue="Forklarer den markerede tekst i et klart sprog.">
          <bt:Override Locale="en-US" Value="Explains the selected text in plain language."/>
        </bt:String>
        <bt:String id="Rewrite.Tooltip" DefaultValue="Foreslår en klarere tekst, som du kan sætte ind som en sporet ændring.">
          <bt:Override Locale="en-US" Value="Suggests clearer text that you can insert as a tracked change."/>
        </bt:String>
        <bt:String id="RedactOpen.Tooltip" DefaultValue="Find personoplysninger i dokumentet, og pseudonymisér dem med organisationens Redact.">
          <bt:Override Locale="en-US" Value="Find personal data in the document and pseudonymise it with your organisation's Redact."/>
        </bt:String>
        <bt:String id="SettingsOpen.Tooltip" DefaultValue="Se din forbindelse til komplai, skift tema, eller afbryd forbindelsen.">
          <bt:Override Locale="en-US" Value="See your connection to komplai, change theme, or disconnect."/>
        </bt:String>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
