<?xml version="1.0" encoding="UTF-8"?>
<!--
  beskæftigelse.dk for PowerPoint — production manifest.

  The manifest is the add-in's identity: PowerPoint keys an installation on
  <Id>, and the URLs below are what a kommune's machine loads for years after
  the deck was saved. Four rules follow from that:

    1. Every URL uses the punycode serving origin. The shorter SEO origin
       redirects there, and an add-in URL that redirects across origins breaks
       both AppDomains and the pane's own fetches. See docs/addin/dev-loop.md
       section 4.
    2. NO <Requirements>. A requirement set named here makes the add-in
       INVISIBLE on any host that does not offer it — not greyed out, not
       listed under "My Add-ins" at all. Volume-licensed perpetual Office stops
       at PowerPointApi 1.5 and iPad at 1.1, and this add-in still has real
       value on both, so capability is decided at runtime with
       `isSetSupported` (src/app/pptx-addin/_lib/capability.ts) and the pane
       says out loud what this host can do. See
       docs/addin/pptx/companion-brief.md section 4.
    3. <TaskpaneId> uses Microsoft's reserved autoopen value
       (`Office.AutoShowTaskpaneWithDocument`). Changing it or the matching
       constant in `_lib/autoopen.ts` orphans every deck already marked to
       reopen the pane.
    4. The icons are the committed PNGs in public/addin/ (masters in
       addin/icons/, regenerate with `npm run addin:icons`). A missing or
       unreadable icon renders as a black square in every kommune's ribbon.
       IconUrl is 32x32 and HighResolutionIconUrl 64x64 per Microsoft's
       manifest reference; the ribbon states are 16 / 32 / 80.

  This add-in has no custom functions: they are an Excel feature and there is
  no cell on a slide to call one from. So no CustomFunctions extension point,
  no shared runtime, and no functions bundle — the pane is an ordinary browser
  context and its session lives under its own storage key.

  A local variant with localhost URLs and its own <Id> is generated by
  `npm run addin:manifest:dev` (never committed — PowerPoint would see two
  add-ins fighting over the same identity). Validate with
  `npm run addin:validate`, which covers both manifests.
-->
<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>c7760d7d-8d97-467e-8ff6-14f61bcf28cc</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>beskaeftigelse.dk</ProviderName>
  <DefaultLocale>da-DK</DefaultLocale>
  <DisplayName DefaultValue="beskæftigelse.dk til PowerPoint"/>
  <Description DefaultValue="Indsæt færdige dias med officielle beskæftigelsestal i din præsentation, med kilde og periode på hvert dias. Kilde: Jobindsats.dk / STAR."/>
  <IconUrl DefaultValue="https://www.xn--beskftigelse-9cb.dk/addin/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://www.xn--beskftigelse-9cb.dk/addin/icon-64.png"/>
  <SupportUrl DefaultValue="https://www.xn--beskftigelse-9cb.dk/om"/>

  <AppDomains>
    <AppDomain>https://www.xn--beskftigelse-9cb.dk</AppDomain>
  </AppDomains>

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://www.xn--beskftigelse-9cb.dk/pptx-addin"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Presentation">

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="BeskPptxGroup">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>
                <Control xsi:type="Button" id="BeskPptxTaskpaneButton">
                  <Label resid="Taskpane.Label"/>
                  <Supertip>
                    <Title resid="Taskpane.Label"/>
                    <Description resid="Taskpane.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>

      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://www.xn--beskftigelse-9cb.dk/addin/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://www.xn--beskftigelse-9cb.dk/addin/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://www.xn--beskftigelse-9cb.dk/addin/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://www.xn--beskftigelse-9cb.dk/pptx-addin"/>
        <!--
          Post-install "learn more" for someone who has not logged in yet, so
          it points at the public install guide rather than a login-gated app.
        -->
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://www.xn--beskftigelse-9cb.dk/vaerktoejer/regneark/powerpoint"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="beskæftigelse.dk"/>
        <bt:String id="Taskpane.Label" DefaultValue="Åbn sidepanel"/>
        <bt:String id="GetStarted.Title" DefaultValue="beskæftigelse.dk er klar"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Taskpane.Tooltip" DefaultValue="Log ind, find en måling og indsæt færdige dias med officielle tal i præsentationen."/>
        <bt:String id="GetStarted.Description" DefaultValue="Åbn sidepanelet for at logge ind og indsætte dias med officielle beskæftigelsestal."/>
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>
</OfficeApp>
