@conduction/nextcloud-vue 2.56.0-beta.70 → 2.56.0-beta.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  2. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +67 -1
  3. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  4. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  5. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +55 -6
  6. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  7. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  8. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +40 -1
  9. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  10. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  11. package/dist/esm/components/CnStorePage/CnStorePage.vue.js +1 -1
  12. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js +3 -3
  13. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js.map +1 -1
  14. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js +5 -5
  15. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue.js +1 -1
  17. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js +6 -6
  18. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js.map +1 -1
  19. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js +1 -1
  20. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js.map +1 -1
  21. package/dist/esm/l10n/en.json.js +59 -59
  22. package/dist/esm/l10n/nl.json.js +59 -59
  23. package/dist/esm/library-style.js +1 -1
  24. package/dist/esm/nextcloud-vue.css +55 -55
  25. package/dist/esm/utils/parentCrumb.js +86 -0
  26. package/dist/esm/utils/parentCrumb.js.map +1 -0
  27. package/dist/nextcloud-vue.cjs.js +813 -576
  28. package/dist/nextcloud-vue.cjs.js.map +2 -2
  29. package/dist/nextcloud-vue.css +55 -55
  30. package/l10n/en.json +59 -59
  31. package/l10n/nl.json +59 -59
  32. package/package.json +1 -1
  33. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +67 -1
  34. package/src/components/CnDetailPage/CnDetailPage.vue +55 -6
  35. package/src/components/CnIndexPage/CnIndexPage.vue +40 -1
  36. package/src/components/CnStorePage/CnStorePage.vue +8 -8
  37. package/src/components/CnStorePage/CnStorePublishDialog.vue +7 -7
  38. package/src/utils/parentCrumb.js +83 -0
@@ -3,7 +3,7 @@ export { DEFAULT_STORE_KINDS } from './CnStorePage.vue2.js';
3
3
  import { render } from './CnStorePage.vue3.js';
4
4
 
5
5
  script.render = render;
6
- script.__scopeId = "data-v-4a663d17";
6
+ script.__scopeId = "data-v-45414193";
7
7
  const __sfc_main = script;
8
8
 
9
9
  export { __sfc_main as default };
@@ -256,7 +256,7 @@ var script = {
256
256
  * @return {string} The heading to render.
257
257
  */
258
258
  resolvedTitle() {
259
- return this.title || this.page?.title || t('nextcloud-vue', 'Store')
259
+ return this.title || this.page?.title || t('nextcloud-vue', 'Marketplace')
260
260
  },
261
261
 
262
262
  /**
@@ -555,7 +555,7 @@ var script = {
555
555
  notConfiguredMessage() {
556
556
  const base = t(
557
557
  'nextcloud-vue',
558
- 'No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',
558
+ 'No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',
559
559
  );
560
560
 
561
561
  return this.builtIn.length > 0
@@ -569,7 +569,7 @@ var script = {
569
569
  * @return {string} The unreachable note.
570
570
  */
571
571
  unreachableMessage() {
572
- const base = t('nextcloud-vue', 'The store registry did not answer.');
572
+ const base = t('nextcloud-vue', 'The marketplace registry did not answer.');
573
573
 
574
574
  return this.builtIn.length > 0
575
575
  ? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`
@@ -1 +1 @@
1
- {"version":3,"file":"CnStorePage.vue2.js","sources":["../../../../src/components/CnStorePage/CnStorePage.vue"],"sourcesContent":["<!--\n SPDX-FileCopyrightText: 2026 Conduction B.V. <info@conduction.nl>\n SPDX-License-Identifier: EUPL-1.2\n\n CnStorePage — browse a remote OpenRegister registry for shareable content,\n and install an item into this instance.\n\n The `store` page type (ADR-080, ADR-114 Decision 4). Promoted out of dossiq's\n app-local StoreGallery, which was the fleet's only implementation and was\n about to be copied fifteen times (ADR-012).\n\n WHAT IS APP-SPECIFIC, AND WHAT IS NOT.\n --------------------------------------\n Everything on this page is generic except three things, and all three arrive\n as props rather than being written into the component:\n\n `app` the app id, which is the only thing in the request URL\n `builtIn` the items this app ships itself, for the no-registry case\n `description` the lead paragraph, because a store of case types and a\n store of connector adapters are not selling the same thing\n\n DISCOVERY IS NOT IMPLEMENTED HERE, ON PURPOSE.\n ----------------------------------------------\n This calls `/apps/<app>/api/store/items`, which is a thin action over\n OpenRegister's `GenericStoreService` (ADR-080 Decision 2). The SSRF guard,\n the redirect refusal, the timeouts and the registry token all stay\n server-side in the engine, and no leaf app ever builds a registry URL.\n\n Install is deliberately NOT generalised (ADR-080 Decision 3): cloning an\n application template, enabling a connector adapter and instantiating an agent\n template are different operations with different authorization. Each app owns\n `POST /api/store/items/{slug}/install`; this component only calls it and\n renders what it reports.\n\n WHO SEES INSTALL AND PUBLISH IS THE APP'S ANSWER, NOT THIS PAGE'S.\n -----------------------------------------------------------------\n `canInstall` and `canPublish` carry a boolean the app resolved (learniq reads\n its ADR-023 action matrix). `null`, the default, falls back to administrators\n only, which is what every store page did before the props existed. Publish\n appears only when the app also names a `publishRoute`: publishing is the\n app's own surface, like install. Both props hide a button and nothing more;\n the app's endpoints enforce the same rule.\n\n A LOCAL-ONLY CARD GRID IS NOT A STORE (ADR-080 Decision 4). With no registry\n configured the engine answers `not_configured` WITHOUT a network call, and\n this page then renders `builtIn`. That fallback is the only reason a surface\n may carry the word Store at all.\n-->\n<template>\n\t<div class=\"cn-store-page\" :class=\"{ 'cn-store-page--board': isBoardLook }\" data-testid=\"store-page\">\n\t\t<!-- Board look (board PqStore): the page header, buildiq and Publish. -->\n\t\t<CnPageHeader\n\t\t\tv-if=\"isBoardLook\"\n\t\t\t:title=\"resolvedTitle\"\n\t\t\t:description=\"boardDescription\">\n\t\t\t<template #extra>\n\t\t\t\t<div class=\"cn-store-page__header-actions\">\n\t\t\t\t\t<CnBuildiqEditButton />\n\t\t\t\t\t<NcButton\n\t\t\t\t\t\tv-if=\"showPublish\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\tdata-testid=\"store-publish\"\n\t\t\t\t\t\t:to=\"publishable ? undefined : publishTarget\"\n\t\t\t\t\t\t@click=\"onPublishClick\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Upload :size=\"18\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Publish') }}\n\t\t\t\t\t</NcButton>\n\t\t\t\t</div>\n\t\t\t</template>\n\t\t</CnPageHeader>\n\t\t<div v-else class=\"cn-store-page__header\">\n\t\t\t<div class=\"cn-store-page__heading\">\n\t\t\t\t<h2 class=\"cn-store-page__title\" :lang=\"langOf(resolvedTitle)\">\n\t\t\t\t\t{{ shown(resolvedTitle) }}\n\t\t\t\t</h2>\n\t\t\t\t<NcButton\n\t\t\t\t\tv-if=\"showPublish\"\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tdata-testid=\"store-publish\"\n\t\t\t\t\t:to=\"publishable ? undefined : publishTarget\"\n\t\t\t\t\t@click=\"onPublishClick\">\n\t\t\t\t\t{{ t('nextcloud-vue', 'Publish') }}\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t\t<p v-if=\"resolvedDescription\" class=\"cn-store-page__intro\" :lang=\"langOf(resolvedDescription)\">\n\t\t\t\t{{ shown(resolvedDescription) }}\n\t\t\t</p>\n\t\t</div>\n\n\t\t<div v-if=\"isBoardLook\" class=\"cn-store-page__lens-row\">\n\t\t\t<div\n\t\t\t\tclass=\"cn-store-page__lenses\"\n\t\t\t\trole=\"group\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Show')\">\n\t\t\t\t<button\n\t\t\t\t\tv-for=\"option in lensOptions\"\n\t\t\t\t\t:key=\"option.value\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"cn-store-page__lens\"\n\t\t\t\t\t:class=\"{ 'cn-store-page__lens--active': option.value === lens }\"\n\t\t\t\t\t:aria-pressed=\"option.value === lens ? 'true' : 'false'\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\t:data-testid=\"`store-lens-${option.value}`\"\n\t\t\t\t\t@click=\"lens = option.value\">\n\t\t\t\t\t{{ option.label }}\n\t\t\t\t\t<span class=\"cn-store-page__lens-count\">{{ option.count }}</span>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class=\"cn-store-page__lens-search\" role=\"search\">\n\t\t\t\t<Magnify :size=\"18\" class=\"cn-store-page__lens-search-icon\" />\n\t\t\t\t<input\n\t\t\t\t\tv-model=\"query\"\n\t\t\t\t\ttype=\"search\"\n\t\t\t\t\tclass=\"cn-store-page__lens-search-input\"\n\t\t\t\t\t:placeholder=\"t('nextcloud-vue', 'Search the store')\"\n\t\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Search the store')\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\tdata-testid=\"store-search\"\n\t\t\t\t\t@input=\"onSearchInput\">\n\t\t\t</div>\n\t\t</div>\n\t\t<div v-else class=\"cn-store-page__controls\">\n\t\t\t<NcTextField\n\t\t\t\tv-model=\"query\"\n\t\t\t\t:label=\"t('nextcloud-vue', 'Search the store')\"\n\t\t\t\t:disabled=\"offline\"\n\t\t\t\tdata-testid=\"store-search\"\n\t\t\t\t@update:modelValue=\"onSearchInput\" />\n\n\t\t\t<div\n\t\t\t\tclass=\"cn-store-page__kinds\"\n\t\t\t\trole=\"group\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Filter by kind')\">\n\t\t\t\t<NcButton\n\t\t\t\t\tv-for=\"option in kindOptions\"\n\t\t\t\t\t:key=\"option.value\"\n\t\t\t\t\t:variant=\"option.value === kind ? 'primary' : 'secondary'\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\t:data-testid=\"`store-kind-${option.value || 'all'}`\"\n\t\t\t\t\t@click=\"selectKind(option.value)\">\n\t\t\t\t\t{{ option.label }}\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div :class=\"{ 'cn-store-page__layout': isBoardLook }\">\n\t\t\t<div class=\"cn-store-page__main\">\n\t\t\t\t<NcLoadingIcon v-if=\"loading\" :size=\"44\" class=\"cn-store-page__loading\" />\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-else-if=\"offline\"\n\t\t\t\t\ttype=\"info\"\n\t\t\t\t\tdata-testid=\"store-not-configured\">\n\t\t\t\t\t{{ notConfiguredMessage }}\n\t\t\t\t</NcNoteCard>\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-else-if=\"unreachable\"\n\t\t\t\t\ttype=\"warning\"\n\t\t\t\t\tdata-testid=\"store-unreachable\">\n\t\t\t\t\t{{ unreachableMessage }}\n\t\t\t\t</NcNoteCard>\n\n\t\t\t\t<NcEmptyContent\n\t\t\t\t\tv-else-if=\"visibleCards.length === 0\"\n\t\t\t\t\t:name=\"t('nextcloud-vue', 'Nothing matches that search')\"\n\t\t\t\t\t:description=\"\n\t\t\t\t\t\tt('nextcloud-vue', 'Try a different term, or clear the kind filter.')\n\t\t\t\t\t\" />\n\n\t\t\t\t<ul\n\t\t\t\t\tv-if=\"!loading && visibleCards.length > 0\"\n\t\t\t\t\tclass=\"cn-store-page__grid\"\n\t\t\t\t\t:style=\"gridStyle\"\n\t\t\t\t\tdata-testid=\"store-results\">\n\t\t\t\t\t<li\n\t\t\t\t\t\tv-for=\"card in visibleCards\"\n\t\t\t\t\t\t:key=\"card.slug\"\n\t\t\t\t\t\tclass=\"cn-store-page__card\"\n\t\t\t\t\t\t:class=\"{ 'cn-store-page__card--board': isBoardLook }\">\n\t\t\t\t\t\t<!--\n\t\t\t\t\tBoard look: an icon chip, the title, \"<kind> · <publisher>\" and a\n\t\t\t\t\tstate pill, then the description, then a footer with the version\n\t\t\t\t\tand one named action. The same card without the look is the\n\t\t\t\t\tplain one below.\n\t\t\t\t-->\n\t\t\t\t\t\t<template v-if=\"isBoardLook\">\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-head\">\n\t\t\t\t\t\t\t\t<span class=\"cn-store-page__card-chip\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t<CnIcon v-if=\"card.icon\" :name=\"card.icon\" :size=\"22\" />\n\t\t\t\t\t\t\t\t\t<PackageVariantClosed v-else :size=\"22\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class=\"cn-store-page__card-heading\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"cn-store-page__card-title\">\n\t\t\t\t\t\t\t\t\t\t{{ card.title || card.slug }}\n\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t<p v-if=\"cardKindLine(card)\" class=\"cn-store-page__card-kind\" data-testid=\"store-card-kind\">\n\t\t\t\t\t\t\t\t\t\t{{ cardKindLine(card) }}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-state\"\n\t\t\t\t\t\t\t\t\t\t:class=\"`cn-store-page__card-state--${cardState(card) || 'available'}`\"\n\t\t\t\t\t\t\t\t\t\tdata-testid=\"store-card-state\">\n\t\t\t\t\t\t\t\t\t\t{{ cardStateLabel(card) }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\">\n\t\t\t\t\t\t\t\t{{ card.description }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-footer\" data-testid=\"store-card-footer\">\n\t\t\t\t\t\t\t\t<span v-if=\"card.version\" class=\"cn-store-page__card-version\">\n\t\t\t\t\t\t\t\t\t{{ cardVersion(card) }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<NcButton\n\t\t\t\t\t\t\t\t\tv-if=\"cardAction(card)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-action\"\n\t\t\t\t\t\t\t\t\t:class=\"{ 'cn-store-page__card-action--soft': cardAction(card).id !== 'open' }\"\n\t\t\t\t\t\t\t\t\tdata-testid=\"store-card-action\"\n\t\t\t\t\t\t\t\t\t:href=\"cardAction(card).href\"\n\t\t\t\t\t\t\t\t\t:disabled=\"installing === card.slug\"\n\t\t\t\t\t\t\t\t\t:aria-label=\"`${cardAction(card).label} ${card.title || card.slug}`\"\n\t\t\t\t\t\t\t\t\t@click=\"onCardAction(card, cardAction(card))\">\n\t\t\t\t\t\t\t\t\t{{ cardAction(card).label }}\n\t\t\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t<template v-else>\n\t\t\t\t\t\t\t<h3 class=\"cn-store-page__card-title\">\n\t\t\t\t\t\t\t\t{{ card.title || card.slug }}\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<p v-if=\"card.typeName || card.kind\" class=\"cn-store-page__card-kind\">\n\t\t\t\t\t\t\t\t{{ card.typeName || kindLabel(card.kind) }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\">\n\t\t\t\t\t\t\t\t{{ card.description }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-footer\">\n\t\t\t\t\t\t\t\t<span v-if=\"card.publisher\" class=\"cn-store-page__card-publisher\">\n\t\t\t\t\t\t\t\t\t{{ card.publisher }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span v-if=\"card.version\" class=\"cn-store-page__card-version\">\n\t\t\t\t\t\t\t\t\t{{ card.version }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<NcButton\n\t\t\t\t\t\t\t\t\tv-if=\"showInstall\"\n\t\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\t\tdata-testid=\"store-install\"\n\t\t\t\t\t\t\t\t\t:disabled=\"installing === card.slug\"\n\t\t\t\t\t\t\t\t\t@click=\"install(card)\">\n\t\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\t\tinstalling === card.slug\n\t\t\t\t\t\t\t\t\t\t\t? t('nextcloud-vue', 'Installing…')\n\t\t\t\t\t\t\t\t\t\t\t: t('nextcloud-vue', 'Install')\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\n\t\t\t\t<div\n\t\t\t\t\tv-if=\"!loading && visibleBuiltIn.length > 0\"\n\t\t\t\t\tclass=\"cn-store-page__builtin\">\n\t\t\t\t\t<h3 class=\"cn-store-page__builtin-title\">\n\t\t\t\t\t\t{{ builtInHeading }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<ul class=\"cn-store-page__grid\" :style=\"gridStyle\" data-testid=\"store-builtin\">\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tv-for=\"item in visibleBuiltIn\"\n\t\t\t\t\t\t\t:key=\"item.slug\"\n\t\t\t\t\t\t\tclass=\"cn-store-page__card\">\n\t\t\t\t\t\t\t<h4 class=\"cn-store-page__card-title\" :lang=\"langOf(item.title)\">\n\t\t\t\t\t\t\t\t{{ shown(item.title) || item.slug }}\n\t\t\t\t\t\t\t</h4>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\" :lang=\"langOf(item.description)\">\n\t\t\t\t\t\t\t\t{{ shown(item.description) }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-if=\"report\"\n\t\t\t\t\t:type=\"report.type\"\n\t\t\t\t\tdata-testid=\"store-install-report\">\n\t\t\t\t\t{{ report.message }}\n\t\t\t\t</NcNoteCard>\n\t\t\t</div>\n\t\t\t<!-- Board look: what is installed, the update check, what ships with the app. -->\n\t\t\t<aside v-if=\"isBoardLook && !loading && !offline && !unreachable\" class=\"cn-store-page__aside\">\n\t\t\t\t<section class=\"cn-store-page__side-card\" data-testid=\"store-installed\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Installed from this store') }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p v-if=\"installedCards.length === 0\" class=\"cn-store-page__side-note\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Nothing from this store is installed yet.') }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<ul v-else class=\"cn-store-page__installed\">\n\t\t\t\t\t\t<li v-for=\"card in installedCards\" :key=\"card.slug\">\n\t\t\t\t\t\t\t<span class=\"cn-store-page__installed-title\">{{ card.title || card.slug }}</span>\n\t\t\t\t\t\t\t<span class=\"cn-store-page__installed-version\">{{ card.installedVersion || card.version }}</span>\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tv-if=\"card.updateAvailable === true\"\n\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-state cn-store-page__card-state--update\"\n\t\t\t\t\t\t\t\tdata-testid=\"store-installed-update\">\n\t\t\t\t\t\t\t\t{{ t('nextcloud-vue', 'Update') }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</section>\n\t\t\t\t<section class=\"cn-store-page__side-card\" data-testid=\"store-updates\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Updates') }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p v-if=\"checkedLabel\" class=\"cn-store-page__side-meta\">\n\t\t\t\t\t\t<ClockOutline :size=\"16\" />\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Last checked {when}', { when: checkedLabel }) }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"cn-store-page__side-note\" data-testid=\"store-updates-count\">\n\t\t\t\t\t\t{{ updateCount === 0\n\t\t\t\t\t\t\t? t('nextcloud-vue', 'Everything is up to date.')\n\t\t\t\t\t\t\t: n('nextcloud-vue', '%n update is ready. An update keeps your own changes.', '%n updates are ready. An update keeps your own changes.', updateCount) }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<NcButton\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\twide\n\t\t\t\t\t\t:disabled=\"loading\"\n\t\t\t\t\t\tdata-testid=\"store-check-now\"\n\t\t\t\t\t\t@click=\"search\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Refresh :size=\"18\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Check now') }}\n\t\t\t\t\t</NcButton>\n\t\t\t\t</section>\n\t\t\t\t<section v-if=\"includedLine\" class=\"cn-store-page__side-card\" data-testid=\"store-included\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ builtInHeading }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p class=\"cn-store-page__side-text\">\n\t\t\t\t\t\t{{ includedLine }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"cn-store-page__side-note\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Only administrators install. An administrator connects the registry under Administration settings.') }}\n\t\t\t\t\t</p>\n\t\t\t\t</section>\n\t\t\t</aside>\n\t\t</div>\n\t\t<CnStorePublishDialog\n\t\t\tv-if=\"publishOpen\"\n\t\t\t:app=\"resolvedApp\"\n\t\t\t:kinds=\"effectiveKinds\"\n\t\t\t:kindLabel=\"kindLabel\"\n\t\t\t@close=\"publishOpen = false\"\n\t\t\t@published=\"onPublished\" />\n\t</div>\n</template>\n\n<script>\nimport { getCurrentUser } from '@nextcloud/auth'\nimport { showError, showSuccess } from '@nextcloud/dialogs'\nimport { n, t } from '@nextcloud/l10n'\nimport { generateUrl } from '@nextcloud/router'\nimport {\n\tNcButton,\n\tNcEmptyContent,\n\tNcLoadingIcon,\n\tNcNoteCard,\n\tNcTextField,\n} from '@nextcloud/vue'\nimport ClockOutline from 'vue-material-design-icons/ClockOutline.vue'\nimport Magnify from 'vue-material-design-icons/Magnify.vue'\nimport PackageVariantClosed from 'vue-material-design-icons/PackageVariantClosed.vue'\nimport Refresh from 'vue-material-design-icons/Refresh.vue'\nimport Upload from 'vue-material-design-icons/Upload.vue'\nimport CnBuildiqEditButton from '../CnBuildiqEditButton/CnBuildiqEditButton.vue'\nimport CnPageHeader from '../CnPageHeader/CnPageHeader.vue'\nimport CnStorePublishDialog from './CnStorePublishDialog.vue'\nimport { normalizeLook } from '../../composables/useLook.js'\nimport { labelLang } from '../../utils/manifestTranslate.js'\nimport { CnIcon } from '../CnIcon/index.js'\n\n/**\n * The kind vocabulary from ADR-080 Decision 5. A `kind` names what installing\n * an item DOES, which is what lets one registry serve several apps from one\n * schema. An app whose items are a different shape passes its own `kinds`.\n */\nexport const DEFAULT_STORE_KINDS = [\n\t'app-template',\n\t'adapter',\n\t'source-template',\n\t'configuration-template',\n\t'agent-template',\n]\n\nexport default {\n\tname: 'CnStorePage',\n\n\tcomponents: {\n\t\tClockOutline,\n\t\tCnBuildiqEditButton,\n\t\tCnIcon,\n\t\tCnPageHeader,\n\t\tCnStorePublishDialog,\n\t\tMagnify,\n\t\tPackageVariantClosed,\n\t\tRefresh,\n\t\tUpload,\n\t\tNcButton,\n\t\tNcEmptyContent,\n\t\tNcLoadingIcon,\n\t\tNcNoteCard,\n\t\tNcTextField,\n\t},\n\n\tinject: {\n\t\t/** The label lookup from CnAppRoot, so manifest labels show in the user's language. */\n\t\tcnTranslate: { default: null },\n\t\t/** The look CnAppRoot provides; `board` draws the catalogue cards of the screens. */\n\t\tcnLook: { default: 'nextcloud' },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The manifest page.\n\t\t *\n\t\t * ⚠️ CnPageRenderer does NOT pass this. `resolvedProps()` returns\n\t\t * `{ ...topLevel, ...normalizedConfig, ...params }` and has no `page`\n\t\t * key, so a dispatched `type: \"store\"` page arrives with the flattened\n\t\t * props below and this default `{}`. Reading `page.config` here would\n\t\t * render an empty store forever, which is exactly what happened to\n\t\t * CnReportsPage before #897. Kept only so a host rendering this\n\t\t * component directly can still hand it a whole page; the flattened\n\t\t * props win.\n\t\t *\n\t\t * @type {object}\n\t\t */\n\t\tpage: {\n\t\t\ttype: Object,\n\t\t\tdefault: () => ({}),\n\t\t},\n\n\t\t/**\n\t\t * The app id. The ONLY app-specific value in the request URL, and the\n\t\t * reason this component is shared rather than copied.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Page title, flattened out of `config` or lifted from the page.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The lead paragraph. A store of case types and a store of connector\n\t\t * adapters are not offering the same thing, so the app says what its\n\t\t * store is for.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Kind quick-filters. Defaults to the ADR-080 Decision 5 vocabulary.\n\t\t *\n\t\t * @type {Array<string>}\n\t\t */\n\t\tkinds: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => DEFAULT_STORE_KINDS,\n\t\t},\n\n\t\t/**\n\t\t * The items this app ships itself, rendered when the engine reports\n\t\t * `not_configured` or the registry does not answer.\n\t\t *\n\t\t * ADR-080 Decision 4 makes this the price of the word Store: a surface\n\t\t * that goes blank without a registry was never a store, and a surface\n\t\t * that only ever shows these is a Templates page.\n\t\t *\n\t\t * @type {Array<{slug: string, title: string, description: string}>}\n\t\t */\n\t\tbuiltIn: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Whether the signed-in user sees Install, as the app resolved it\n\t\t * (learniq: its ADR-023 matrix). `true` shows it on every remote\n\t\t * card, `false` hides it from everyone, administrators included.\n\t\t * `null` (the default) keeps the rule from before this prop:\n\t\t * administrators only. Presentation only: the app's install endpoint\n\t\t * must enforce the same rule.\n\t\t *\n\t\t * @type {boolean|null}\n\t\t */\n\t\tcanInstall: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Whether the signed-in user sees Publish, as the app resolved it.\n\t\t * `null` (the default) falls back to administrators only. Publish\n\t\t * renders only when `publishRoute` is set as well. Presentation\n\t\t * only: the app's publish endpoint must enforce the same rule.\n\t\t *\n\t\t * @type {boolean|null}\n\t\t */\n\t\tcanPublish: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Where Publish takes the user: a route name (string) or a route\n\t\t * location (object). Publishing is the app's own surface, so this\n\t\t * page never sends anything to a registry itself. Empty means no\n\t\t * Publish button, whatever `canPublish` says, so an app that never\n\t\t * sets it renders what it rendered before.\n\t\t *\n\t\t * @type {string|object}\n\t\t */\n\t\tpublishRoute: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Extra lens chips under the board look, one per item kind:\n\t\t * `[{ kind: 'connector', label: 'Connectors' }]` (board PqStore). The\n\t\t * label goes through the app's translate.\n\t\t */\n\t\tkindLenses: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * The app accepts a publish at `/api/store/publish` (and lists what may\n\t\t * be published at `/api/store/publishable`): Publish opens the publish\n\t\t * dialog instead of following `publishRoute`.\n\t\t */\n\t\tpublishable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tloading: true,\n\t\t\toutcome: null,\n\t\t\tcards: [],\n\t\t\tquery: '',\n\t\t\tkind: '',\n\t\t\tinstalling: null,\n\t\t\treport: null,\n\t\t\tsearchTimer: null,\n\t\t\t// The kinds the ENGINE served, from the app's `store` manifest\n\t\t\t// block. Null until the first response, so \"not asked yet\" stays\n\t\t\t// distinguishable from \"the app declares none\".\n\t\t\tservedKinds: null,\n\t\t\t// The built-in items the ENGINE served, from the app's `store`\n\t\t\t// manifest block. Null until the first response, so \"not asked\n\t\t\t// yet\" stays distinguishable from \"the app declares none\".\n\t\t\tservedBuiltIn: null,\n\t\t\t// The board look's lens: all, installed, updates or an item kind.\n\t\t\tlens: 'all',\n\t\t\tpublishOpen: false,\n\t\t\t// When the registry last answered (`checkedAt` from the engine).\n\t\t\tcheckedAt: '',\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * Whether the cards are drawn as the board look's catalogue cards.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tisBoardLook() {\n\t\t\treturn normalizeLook(this.cnLook) === 'board'\n\t\t},\n\n\t\t/**\n\t\t * The board track for the cards: `minmax(var(--cn-card-grid-min,\n\t\t * 260px), 1fr)` and `var(--cn-card-grid-gap, 16px)`. Empty without\n\t\t * the look.\n\t\t *\n\t\t * @spec openspec/changes/screens-card-parity/specs/card-board-look/spec.md#requirement-the-card-grid-takes-the-board-track\n\t\t * @return {object}\n\t\t */\n\t\tgridStyle() {\n\t\t\tif (!this.isBoardLook) {\n\t\t\t\treturn {}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tgridTemplateColumns: 'repeat(auto-fill, minmax(var(--cn-card-grid-min, 260px), 1fr))',\n\t\t\t\tgap: 'var(--cn-card-grid-gap, 16px)',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The page title, preferring the flattened prop over the page object.\n\t\t *\n\t\t * @return {string} The heading to render.\n\t\t */\n\t\tresolvedTitle() {\n\t\t\treturn this.title || this.page?.title || t('nextcloud-vue', 'Store')\n\t\t},\n\n\t\t/**\n\t\t * The lead paragraph, preferring the flattened prop.\n\t\t *\n\t\t * @return {string} The intro copy, or an empty string.\n\t\t */\n\t\tresolvedDescription() {\n\t\t\treturn this.description || this.page?.config?.description || ''\n\t\t},\n\n\t\t/**\n\t\t * The app id, preferring the flattened prop.\n\t\t *\n\t\t * @return {string} The app id used to address the store endpoints.\n\t\t */\n\t\tresolvedApp() {\n\t\t\treturn this.app || this.page?.config?.app || ''\n\t\t},\n\n\t\t/**\n\t\t * No registry configured. The engine reported this WITHOUT making a\n\t\t * network call, which is the ADR-080 Decision 4 fallback.\n\t\t *\n\t\t * @return {boolean} True when no registry is connected.\n\t\t */\n\t\toffline() {\n\t\t\treturn this.outcome === 'not_configured'\n\t\t},\n\n\t\t/**\n\t\t * The registry is configured but did not answer usefully.\n\t\t *\n\t\t * @return {boolean} True when the registry errored.\n\t\t */\n\t\tunreachable() {\n\t\t\treturn (\n\t\t\t\tthis.outcome === 'store_unreachable'\n\t\t\t\t|| this.outcome === 'store_invalid_response'\n\t\t\t)\n\t\t},\n\n\t\t/**\n\t\t * Whether the current user is an administrator: the fallback for both\n\t\t * actions when the app did not say.\n\t\t *\n\t\t * @return {boolean} True when the current user is an administrator.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-1-the-consuming-app-decides-who-sees-install\n\t\t */\n\t\tisAdmin() {\n\t\t\treturn getCurrentUser()?.isAdmin === true\n\t\t},\n\n\t\t/**\n\t\t * Whether Install shows. The app's answer wins; without one only an\n\t\t * administrator installs, because what an install writes is the shape\n\t\t * of the work every handler then operates against. The server\n\t\t * enforces this too; hiding the button keeps a user from discovering\n\t\t * a refusal as a 403.\n\t\t *\n\t\t * @return {boolean} True when the Install buttons render.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-1-the-consuming-app-decides-who-sees-install\n\t\t */\n\t\tshowInstall() {\n\t\t\tif (typeof this.canInstall === 'boolean') {\n\t\t\t\treturn this.canInstall\n\t\t\t}\n\n\t\t\treturn this.isAdmin\n\t\t},\n\n\t\t/**\n\t\t * Where Publish navigates, or null when the app named no destination.\n\t\t * A string is a route NAME, the way manifest menu entries name routes.\n\t\t *\n\t\t * @return {object|null} A vue-router location, or null.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-2-the-consuming-app-decides-who-sees-publish-and-where-it-leads\n\t\t */\n\t\tpublishTarget() {\n\t\t\tif (typeof this.publishRoute === 'string') {\n\t\t\t\treturn this.publishRoute === '' ? null : { name: this.publishRoute }\n\t\t\t}\n\n\t\t\tif (this.publishRoute !== null && typeof this.publishRoute === 'object') {\n\t\t\t\treturn this.publishRoute\n\t\t\t}\n\n\t\t\treturn null\n\t\t},\n\n\t\t/**\n\t\t * Whether Publish shows: a destination is named AND the app allows it\n\t\t * (or, without an answer, the user is an administrator). No\n\t\t * destination means no button, because a button that goes nowhere\n\t\t * is worse than none.\n\t\t *\n\t\t * @return {boolean} True when the Publish button renders.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-2-the-consuming-app-decides-who-sees-publish-and-where-it-leads\n\t\t */\n\t\tshowPublish() {\n\t\t\tif (this.publishTarget === null && this.publishable !== true) {\n\t\t\t\treturn false\n\t\t\t}\n\n\t\t\tif (typeof this.canPublish === 'boolean') {\n\t\t\t\treturn this.canPublish\n\t\t\t}\n\n\t\t\treturn this.isAdmin\n\t\t},\n\n\t\t/**\n\t\t * The kind quick-filters, with an \"all\" entry first.\n\t\t *\n\t\t * @return {Array<{value: string, label: string}>} The filter options.\n\t\t */\n\t\tkindOptions() {\n\t\t\treturn [\n\t\t\t\t{ value: '', label: t('nextcloud-vue', 'All kinds') },\n\t\t\t\t...this.effectiveKinds.map((value) => ({ value, label: this.kindLabel(value) })),\n\t\t\t]\n\t\t},\n\n\t\t/**\n\t\t * The kinds to offer, preferring what the ENGINE served.\n\t\t *\n\t\t * An app declares its kinds in the `store` block of its manifest, next\n\t\t * to the schema allowlist, and the engine returns them with the cards.\n\t\t * That is the single place an app says what its store sells; the\n\t\t * `kinds` PROP remains for a host rendering this component directly and\n\t\t * as the pre-response value, and DEFAULT_STORE_KINDS is the floor.\n\t\t *\n\t\t * A served EMPTY list means the app declared none, which is not the\n\t\t * same as not having asked yet — hence `servedKinds` starts null.\n\t\t *\n\t\t * @return {Array<string>} The kind filter values.\n\t\t */\n\t\teffectiveKinds() {\n\t\t\tif (Array.isArray(this.servedKinds) && this.servedKinds.length > 0) {\n\t\t\t\treturn this.servedKinds\n\t\t\t}\n\n\t\t\treturn this.kinds\n\t\t},\n\n\t\t/**\n\t\t * The app's own items, shown whenever the remote list is not carrying\n\t\t * the page. Not a network call, and not a Store on their own.\n\t\t *\n\t\t * 🔴 AN EMPTY ANSWER IS STILL AN EMPTY PAGE. This used to hide the\n\t\t * built-ins whenever the engine answered at all, checking only\n\t\t * `not_configured` and the error outcomes. A federated store that\n\t\t * answers `ok` with zero cards — a configured registry that has\n\t\t * published nothing yet — then rendered a heading, a search box and\n\t\t * nothing else, while the app shipped four items it could have shown.\n\t\t * Measured on decidiq, whose store returns `ok` with 0 cards and 4\n\t\t * built-ins declared.\n\t\t *\n\t\t * ADR-080 Decision 4 is explicit that a surface which goes blank was\n\t\t * never a store, so the test is what the reader can SEE, not which\n\t\t * outcome the engine reported.\n\t\t *\n\t\t * @return {Array<object>} The built-in items to render.\n\t\t */\n\t\tvisibleBuiltIn() {\n\t\t\tif (this.offline === false && this.unreachable === false && this.cards.length > 0) {\n\t\t\t\treturn []\n\t\t\t}\n\n\t\t\treturn this.effectiveBuiltIn\n\t\t},\n\n\t\t/**\n\t\t * The app's own items, preferring what the ENGINE served over the page\n\t\t * config.\n\t\t *\n\t\t * An app declares these ONCE, in its `store` manifest block beside the\n\t\t * allowlist, which is where the schema documents them. The `builtIn`\n\t\t * PROP is a second place to write the same list, and an app that\n\t\t * declared them only in the manifest used to render nothing: the\n\t\t * engine parsed them and never sent them.\n\t\t *\n\t\t * Mirrors `effectiveKinds` exactly, for the same reason.\n\t\t *\n\t\t * @return {Array<object>} The items to render.\n\t\t */\n\t\teffectiveBuiltIn() {\n\t\t\tif (Array.isArray(this.servedBuiltIn) && this.servedBuiltIn.length > 0) {\n\t\t\t\treturn this.servedBuiltIn\n\t\t\t}\n\n\t\t\treturn this.builtIn\n\t\t},\n\n\t\t/**\n\t\t * Heading above the app's own items.\n\t\t *\n\t\t * @return {string} The built-in section heading.\n\t\t */\n\t\t/**\n\t\t * The cards the chosen lens shows (board look); every card otherwise.\n\t\t *\n\t\t * @return {Array<object>}\n\t\t */\n\t\tvisibleCards() {\n\t\t\tif (!this.isBoardLook || this.lens === 'all') {\n\t\t\t\treturn this.cards\n\t\t\t}\n\t\t\tif (this.lens === 'installed') {\n\t\t\t\treturn this.installedCards\n\t\t\t}\n\t\t\tif (this.lens === 'updates') {\n\t\t\t\treturn this.cards.filter((card) => card.updateAvailable === true)\n\t\t\t}\n\t\t\treturn this.cards.filter((card) => card.kind === this.lens)\n\t\t},\n\n\t\tinstalledCards() {\n\t\t\treturn this.cards.filter((card) => card.installed === true)\n\t\t},\n\n\t\tupdateCount() {\n\t\t\treturn this.cards.filter((card) => card.updateAvailable === true).length\n\t\t},\n\n\t\t/**\n\t\t * The lens chips with their counts.\n\t\t *\n\t\t * @return {Array<{value: string, label: string, count: number}>}\n\t\t */\n\t\tlensOptions() {\n\t\t\treturn [\n\t\t\t\t{ value: 'all', label: t('nextcloud-vue', 'All items'), count: this.cards.length },\n\t\t\t\t{ value: 'installed', label: t('nextcloud-vue', 'Installed'), count: this.installedCards.length },\n\t\t\t\t{ value: 'updates', label: t('nextcloud-vue', 'Updates available'), count: this.updateCount },\n\t\t\t\t...this.kindLenses.map((entry) => ({\n\t\t\t\t\tvalue: entry.kind,\n\t\t\t\t\tlabel: this.shown(entry.label),\n\t\t\t\t\tcount: this.cards.filter((card) => card.kind === entry.kind).length,\n\t\t\t\t})),\n\t\t\t]\n\t\t},\n\n\t\t/**\n\t\t * The description, with `{count}` filled by the number of items the\n\t\t * registry holds.\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tboardDescription() {\n\t\t\treturn this.shown(this.resolvedDescription).replace('{count}', String(this.cards.length))\n\t\t},\n\n\t\tcheckedLabel() {\n\t\t\tif (!this.checkedAt) {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst date = new Date(this.checkedAt)\n\t\t\treturn isNaN(date.getTime()) ? '' : date.toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' })\n\t\t},\n\n\t\t/**\n\t\t * \"A, B and C ship with {app}. They show here when no registry is\n\t\t * connected.\", or '' when the app ships nothing.\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tincludedLine() {\n\t\t\tconst titles = this.effectiveBuiltIn.map((item) => this.shown(item.title) || item.slug).filter(Boolean)\n\t\t\tif (titles.length === 0) {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst list = titles.length === 1\n\t\t\t\t? titles[0]\n\t\t\t\t: t('nextcloud-vue', '{list} and {last}', { list: titles.slice(0, -1).join(', '), last: titles[titles.length - 1] })\n\t\t\treturn t('nextcloud-vue', '{items} ship with the app. They show here when no registry is connected.', { items: list })\n\t\t},\n\n\t\tbuiltInHeading() {\n\t\t\treturn this.resolvedApp\n\t\t\t\t? t('nextcloud-vue', 'Included with {app}', { app: this.resolvedApp })\n\t\t\t\t: t('nextcloud-vue', 'Included with this app')\n\t\t},\n\n\t\t/**\n\t\t * The no-registry message, which names the built-in fallback only when\n\t\t * there is one. Promising templates below when the list is empty is\n\t\t * how an empty page reads as a broken one.\n\t\t *\n\t\t * @return {string} The not-configured note.\n\t\t */\n\t\tnotConfiguredMessage() {\n\t\t\tconst base = t(\n\t\t\t\t'nextcloud-vue',\n\t\t\t\t'No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',\n\t\t\t)\n\n\t\t\treturn this.builtIn.length > 0\n\t\t\t\t? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`\n\t\t\t\t: base\n\t\t},\n\n\t\t/**\n\t\t * The registry-error message, on the same rule as above.\n\t\t *\n\t\t * @return {string} The unreachable note.\n\t\t */\n\t\tunreachableMessage() {\n\t\t\tconst base = t('nextcloud-vue', 'The store registry did not answer.')\n\n\t\t\treturn this.builtIn.length > 0\n\t\t\t\t? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`\n\t\t\t\t: base\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.search()\n\t},\n\n\t/**\n\t * Cancel a pending debounced search.\n\t *\n\t * @return {void}\n\t */\n\tbeforeUnmount() {\n\t\tif (this.searchTimer !== null) {\n\t\t\tclearTimeout(this.searchTimer)\n\t\t}\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * The \"<kind> · <publisher>\" line of a catalogue card.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {string} The line, or ''.\n\t\t */\n\t\t/**\n\t\t * The footer version: the installed one and the newer one when an\n\t\t * update is out, else the registry's.\n\t\t *\n\t\t * @param {object} card The store item.\n\t\t * @return {string}\n\t\t */\n\t\tcardVersion(card) {\n\t\t\tif (card.updateAvailable === true && card.installedVersion) {\n\t\t\t\treturn t('nextcloud-vue', 'Version {version}, {latest} is out', { version: card.installedVersion, latest: card.version })\n\t\t\t}\n\t\t\treturn t('nextcloud-vue', 'Version {version}', { version: card.version })\n\t\t},\n\n\t\tn,\n\n\t\tonPublishClick() {\n\t\t\tif (this.publishable) {\n\t\t\t\tthis.publishOpen = true\n\t\t\t}\n\t\t},\n\n\t\tonPublished() {\n\t\t\tthis.publishOpen = false\n\t\t\tthis.search()\n\t\t},\n\n\t\tcardKindLine(card) {\n\t\t\treturn [card.typeName || this.kindLabel(card.kind), card.publisher].filter((part) => typeof part === 'string' && part !== '').join(' · ')\n\t\t},\n\n\t\t/**\n\t\t * The state a catalogue card shows as a pill: `update` when the item\n\t\t * says an update is available, `installed` when it says it is\n\t\t * installed, none otherwise.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {('installed'|'update'|'')} The state.\n\t\t */\n\t\tcardState(card) {\n\t\t\tif (card.updateAvailable === true) {\n\t\t\t\treturn 'update'\n\t\t\t}\n\t\t\treturn card.installed === true ? 'installed' : ''\n\t\t},\n\n\t\t/**\n\t\t * The words on a catalogue card's state pill: Update, Installed, or\n\t\t * Available for an item that is not installed.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {string} The label.\n\t\t * @spec openspec/changes/store-page-board-as-drawn/specs/store-page/spec.md#requirement-a-board-look-store-card-shows-its-state-and-its-action-as-drawn\n\t\t */\n\t\tcardStateLabel(card) {\n\t\t\tconst state = this.cardState(card)\n\t\t\tif (state === 'update') {\n\t\t\t\treturn t('nextcloud-vue', 'Update')\n\t\t\t}\n\t\t\treturn state === 'installed' ? t('nextcloud-vue', 'Installed') : t('nextcloud-vue', 'Available')\n\t\t},\n\n\t\t/**\n\t\t * The one action in a catalogue card's footer: Update for an item with\n\t\t * an update, Open for an installed one that says where it opens\n\t\t * (`openUrl`), Install for one that is not installed. Nothing when the\n\t\t * viewer may not install and there is nowhere to open.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {?{id: string, label: string, href?: string}} The action, or null.\n\t\t */\n\t\tcardAction(card) {\n\t\t\tconst state = this.cardState(card)\n\t\t\tif (state === 'update') {\n\t\t\t\treturn this.showInstall ? { id: 'update', label: t('nextcloud-vue', 'Update') } : null\n\t\t\t}\n\t\t\tif (state === 'installed') {\n\t\t\t\treturn typeof card.openUrl === 'string' && card.openUrl !== '' ? { id: 'open', label: t('nextcloud-vue', 'Open'), href: card.openUrl } : null\n\t\t\t}\n\t\t\treturn this.showInstall ? { id: 'install', label: t('nextcloud-vue', 'Install') } : null\n\t\t},\n\n\t\t/**\n\t\t * The footer action was clicked: install and update run the install\n\t\t * endpoint; Open is a link and has nothing to run.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @param {{id: string}} action The action.\n\t\t * @return {void}\n\t\t */\n\t\tonCardAction(card, action) {\n\t\t\tif (action.id === 'install' || action.id === 'update') {\n\t\t\t\tthis.install(card)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The label of a kind: the library's own for the five kinds of the\n\t\t * default vocabulary (\"App template\" for `app-template`), else the kind\n\t\t * through the app's translate, so an app with kinds of its own names\n\t\t * them in its catalogue. Never the raw id of a known kind.\n\t\t *\n\t\t * @spec openspec/changes/screens-store-page-translations/specs/store-page/spec.md#requirement-the-store-page-reads-in-the-users-language\n\t\t * @param {string} kind The kind id.\n\t\t * @return {string} The label.\n\t\t */\n\t\tkindLabel(kind) {\n\t\t\tconst known = {\n\t\t\t\t'app-template': t('nextcloud-vue', 'App template'),\n\t\t\t\tadapter: t('nextcloud-vue', 'Adapter'),\n\t\t\t\t'source-template': t('nextcloud-vue', 'Source template'),\n\t\t\t\t'configuration-template': t('nextcloud-vue', 'Configuration template'),\n\t\t\t\t'agent-template': t('nextcloud-vue', 'Agent template'),\n\t\t\t}\n\t\t\tif (typeof kind !== 'string' || kind === '') {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst translated = this.shown(kind)\n\t\t\t// The app's own word for a kind wins over the library's.\n\t\t\treturn translated !== kind ? translated : (Object.hasOwn(known, kind) ? known[kind] : kind)\n\t\t},\n\n\t\t/**\n\t\t * A manifest label through the injected lookup, or as written. The\n\t\t * built-in items' titles and descriptions read through it too.\n\t\t *\n\t\t * @spec openspec/changes/cell-config-growth/specs/cell-config-growth/spec.md#requirement-the-stores-own-items-read-in-the-users-language\n\t\t * @param {string} text The label as written.\n\t\t * @return {string} The label in the user's language.\n\t\t */\n\t\tshown(text) {\n\t\t\treturn typeof this.cnTranslate === 'function' && typeof text === 'string' && text !== '' ? this.cnTranslate(text) : text\n\t\t},\n\n\t\t/**\n\t\t * The `lang` of a label that fell back to its written text in another language.\n\t\t *\n\t\t * @param {string} text The label as written.\n\t\t * @return {string|undefined} The source language, or undefined.\n\t\t */\n\t\tlangOf(text) {\n\t\t\treturn labelLang(this.cnTranslate, text) || undefined\n\t\t},\n\n\t\tt,\n\n\t\t/**\n\t\t * Debounce the search so typing does not fire one remote request per\n\t\t * keystroke against somebody else's registry.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tonSearchInput() {\n\t\t\tif (this.searchTimer !== null) {\n\t\t\t\tclearTimeout(this.searchTimer)\n\t\t\t}\n\n\t\t\tthis.searchTimer = setTimeout(() => {\n\t\t\t\tthis.search()\n\t\t\t}, 400)\n\t\t},\n\n\t\t/**\n\t\t * Select a kind filter and re-search.\n\t\t *\n\t\t * @param {string} value The kind, or an empty string for all kinds.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tselectKind(value) {\n\t\t\tthis.kind = value\n\t\t\tthis.search()\n\t\t},\n\n\t\t/**\n\t\t * Fetch the current page of store cards.\n\t\t *\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync search() {\n\t\t\t// An unconfigured `app` cannot address any endpoint. Reporting\n\t\t\t// not_configured is the honest outcome and costs no request; the\n\t\t\t// alternative is a fetch to /apps//api/... which 404s and reads to\n\t\t\t// the user as a registry that is down.\n\t\t\tif (this.resolvedApp === '') {\n\t\t\t\tthis.outcome = 'not_configured'\n\t\t\t\tthis.cards = []\n\t\t\t\tthis.loading = false\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.loading = true\n\t\t\ttry {\n\t\t\t\tconst params = new URLSearchParams()\n\t\t\t\tif (this.query) {\n\t\t\t\t\tparams.set('q', this.query)\n\t\t\t\t}\n\t\t\t\tif (this.kind) {\n\t\t\t\t\tparams.set('kind', this.kind)\n\t\t\t\t}\n\n\t\t\t\tconst suffix = params.toString() ? `?${params.toString()}` : ''\n\t\t\t\tconst response = await fetch(\n\t\t\t\t\tgenerateUrl(`/apps/${this.resolvedApp}/api/store/items${suffix}`),\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: { requesttoken: window.OC?.requestToken },\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t\tconst body = await response.json()\n\n\t\t\t\tthis.outcome = body.outcome ?? 'store_invalid_response'\n\t\t\t\tthis.cards = Array.isArray(body.cards) ? body.cards : []\n\t\t\t\t// Present on every arm the engine answers, including\n\t\t\t\t// not_configured and store_unreachable, so the filters survive\n\t\t\t\t// a registry that is down.\n\t\t\t\tthis.servedKinds = Array.isArray(body.kinds) ? body.kinds : null\n\t\t\t\t// Same contract as `kinds`: present on every arm the engine\n\t\t\t\t// answers, so an app's own items survive a registry that is\n\t\t\t\t// down — which is exactly when they are all there is to show.\n\t\t\t\tthis.servedBuiltIn = Array.isArray(body.builtIn) ? body.builtIn : null\n\t\t\t\tthis.checkedAt = typeof body.checkedAt === 'string' ? body.checkedAt : ''\n\t\t\t} catch {\n\t\t\t\tthis.outcome = 'store_unreachable'\n\t\t\t\tthis.cards = []\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Install one item, and report per component.\n\t\t *\n\t\t * A partial install is a real outcome rather than a failure: an item\n\t\t * carrying both configuration and records installs the configuration\n\t\t * and names the records it refused.\n\t\t *\n\t\t * @param {{slug: string, title: string}} card The card to install.\n\t\t *\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync install(card) {\n\t\t\tthis.installing = card.slug\n\t\t\tthis.report = null\n\n\t\t\ttry {\n\t\t\t\tconst response = await fetch(\n\t\t\t\t\tgenerateUrl(`/apps/${this.resolvedApp}/api/store/items/${encodeURIComponent(card.slug)}/install`),\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t\t\t\trequesttoken: window.OC?.requestToken,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t\tconst body = await response.json()\n\n\t\t\t\tif (response.ok !== true) {\n\t\t\t\t\tshowError(body.message\n\t\t\t\t\t\t?? t('nextcloud-vue', 'The item could not be installed.'))\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst refused = (body.components ?? []).filter((c) => c.status !== 'installed')\n\t\t\t\tif (refused.length === 0) {\n\t\t\t\t\tshowSuccess(t('nextcloud-vue', 'Installed.'))\n\t\t\t\t\tthis.report = null\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tthis.report = {\n\t\t\t\t\ttype: body.success === true ? 'info' : 'warning',\n\t\t\t\t\tmessage: t(\n\t\t\t\t\t\t'nextcloud-vue',\n\t\t\t\t\t\t'Some parts were not installed: {schemas}',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tschemas: refused.map((c) => c.schema).join(', '),\n\t\t\t\t\t\t},\n\t\t\t\t\t),\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\tshowError(t('nextcloud-vue', 'The item could not be installed.'))\n\t\t\t} finally {\n\t\t\t\tthis.installing = null\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-store-page {\n\tpadding: 16px;\n\tmax-width: 1200px;\n}\n\n/* Clear the Nextcloud navigation toggle button (44px wide, absolutely\n positioned at the left edge of .app-content) plus 12px breathing room, as\n CnPageHeader does. Only the header shifts; the body keeps the full width. */\n.cn-store-page__header {\n\tpadding-inline-start: 56px;\n}\n\n.cn-store-page__heading {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 12px;\n\tmargin: 0 0 4px;\n}\n\n.cn-store-page__title {\n\tmargin: 0;\n}\n\n.cn-store-page__intro {\n\tcolor: var(--color-text-maxcontrast);\n\tmargin: 0 0 16px;\n}\n\n.cn-store-page__controls {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 12px;\n\talign-items: flex-end;\n\tmargin-bottom: 16px;\n}\n\n.cn-store-page__kinds {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 8px;\n}\n\n.cn-store-page__loading {\n\tmargin: 32px auto;\n}\n\n.cn-store-page__grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n\tgap: 16px;\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 16px 0 0;\n}\n\n.cn-store-page__card {\n\tborder: 1px solid var(--color-border);\n\tborder-radius: var(--border-radius-large);\n\tbackground-color: var(--color-main-background);\n\tpadding: 16px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n}\n\n.cn-store-page__card-title {\n\tmargin: 0;\n\tfont-size: 1rem;\n}\n\n.cn-store-page__card-kind {\n\tmargin: 0;\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n}\n\n.cn-store-page__card-description {\n\tmargin: 0;\n\tflex: 1;\n}\n\n.cn-store-page__card-footer {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 8px;\n}\n\n.cn-store-page__card-version {\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n}\n\n/* Who published a configuration set matters more than its version does, since\n installing one applies somebody else's schemas and flows to this instance. */\n.cn-store-page__card-publisher {\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n\tmargin-inline-end: auto;\n}\n\n.cn-store-page__builtin-title {\n\tmargin: 24px 0 0;\n}\n</style>\n"],"names":["CnBuildiqEditButton","CnIcon","CnPageHeader","CnStorePublishDialog"],"mappings":";;;;;;;;;;;;;;;;;AAkYA;AACC;;;;AAIU,MAAE,sBAAsB;AAClC,CAAA,cAAc;AACd,CAAA,SAAS;AACT,CAAA,iBAAiB;CACjB,wBAAwB;AACxB,CAAA,gBAAgB;AACjB,EAAA;;AAEA,aAAe;AACd,CAAA,IAAI,EAAE,aAAa;;CAEnB,UAAU,EAAE;EACX,YAAY;AACZ,uBAAAA,UAAmB;AACnB,UAAAC,YAAM;gBACNC,YAAY;AACZ,wBAAAC,YAAoB;AACpB,EAAA,OAAO;AACP,EAAA,oBAAoB;AACpB,EAAA,OAAO;AACP,EAAA,MAAM;AACN,EAAA,QAAQ;AACR,EAAA,cAAc;EACd,aAAa;EACb,UAAU;EACV,WAAW;EACX;;AAED,CAAA,MAAM,EAAE;AACP;EACA,WAAW,EAAE,EAAE,OAAO,EAAE,IAAG,EAAG;AAC9B;EACA,MAAM,EAAE,EAAE,OAAO,EAAE,WAAU,EAAG;EAChC;;AAED,CAAA,KAAK,EAAE;AACN;AACC;AACA;;;;;;;;AAQA;AACA;;;EAGD,IAAI,EAAE;GACL,IAAI,EAAE,MAAM;AACZ,GAAA,OAAO,EAAE,OAAO,EAAE,CAAC;GACnB;;AAED;;AAEC;AACA;;;EAGD,GAAG,EAAE;GACJ,IAAI,EAAE,MAAM;GACZ,OAAO,EAAE,EAAE;GACX;;AAED;;AAEC;;;AAGD,EAAA,KAAK,EAAE;GACN,IAAI,EAAE,MAAM;GACZ,OAAO,EAAE,EAAE;GACX;;AAED;;;;AAIC;;;EAGD,WAAW,EAAE;GACZ,IAAI,EAAE,MAAM;GACZ,OAAO,EAAE,EAAE;GACX;;AAED;;AAEC;AACA;;AAED,EAAA,KAAK,EAAE;GACN,IAAI,EAAE,KAAK;A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AI,OAAO,CAAC,MAAK,KAAM,CAAC,EAAE;AACzB,KAAA,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,YAAY,CAAC,EAAA;AAC5C,KAAA,IAAI,CAAC,MAAK,GAAI,KAAG;KACjB,MAAK;AACN,KAAA;;IAEA,IAAI,CAAC,MAAK,GAAI;AACb,KAAA,IAAI,EAAE,IAAI,CAAC,OAAM,KAAM,IAAK,GAAE,MAAK,GAAI,SAAS;AAChD,KAAA,OAAO,EAAE,CAAC;AACT,MAAA,eAAe;AACf,MAAA,0CAA0C;AAC1C,MAAA;AACC,OAAA,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;OAChD;MACD;AACF,MAAA;AACD,IAAA,CAAE,MAAM;IACP,SAAS,CAAC,CAAC,CAAC,eAAe,EAAE,kCAAkC,CAAC,EAAA;AACjE,IAAA,SAAU;AACT,IAAA,IAAI,CAAC,aAAa,KAAG;AACtB,IAAA;GACA;EACD;AACF;;;;"}
1
+ {"version":3,"file":"CnStorePage.vue2.js","sources":["../../../../src/components/CnStorePage/CnStorePage.vue"],"sourcesContent":["<!--\n SPDX-FileCopyrightText: 2026 Conduction B.V. <info@conduction.nl>\n SPDX-License-Identifier: EUPL-1.2\n\n CnStorePage — browse a remote OpenRegister registry for shareable content,\n and install an item into this instance.\n\n The `store` page type (ADR-080, ADR-114 Decision 4). Promoted out of dossiq's\n app-local StoreGallery, which was the fleet's only implementation and was\n about to be copied fifteen times (ADR-012).\n\n WHAT IS APP-SPECIFIC, AND WHAT IS NOT.\n --------------------------------------\n Everything on this page is generic except three things, and all three arrive\n as props rather than being written into the component:\n\n `app` the app id, which is the only thing in the request URL\n `builtIn` the items this app ships itself, for the no-registry case\n `description` the lead paragraph, because a store of case types and a\n store of connector adapters are not selling the same thing\n\n DISCOVERY IS NOT IMPLEMENTED HERE, ON PURPOSE.\n ----------------------------------------------\n This calls `/apps/<app>/api/store/items`, which is a thin action over\n OpenRegister's `GenericStoreService` (ADR-080 Decision 2). The SSRF guard,\n the redirect refusal, the timeouts and the registry token all stay\n server-side in the engine, and no leaf app ever builds a registry URL.\n\n Install is deliberately NOT generalised (ADR-080 Decision 3): cloning an\n application template, enabling a connector adapter and instantiating an agent\n template are different operations with different authorization. Each app owns\n `POST /api/store/items/{slug}/install`; this component only calls it and\n renders what it reports.\n\n WHO SEES INSTALL AND PUBLISH IS THE APP'S ANSWER, NOT THIS PAGE'S.\n -----------------------------------------------------------------\n `canInstall` and `canPublish` carry a boolean the app resolved (learniq reads\n its ADR-023 action matrix). `null`, the default, falls back to administrators\n only, which is what every store page did before the props existed. Publish\n appears only when the app also names a `publishRoute`: publishing is the\n app's own surface, like install. Both props hide a button and nothing more;\n the app's endpoints enforce the same rule.\n\n A LOCAL-ONLY CARD GRID IS NOT A STORE (ADR-080 Decision 4). With no registry\n configured the engine answers `not_configured` WITHOUT a network call, and\n this page then renders `builtIn`. That fallback is the only reason a surface\n may carry the word Store at all.\n-->\n<template>\n\t<div class=\"cn-store-page\" :class=\"{ 'cn-store-page--board': isBoardLook }\" data-testid=\"store-page\">\n\t\t<!-- Board look (board PqStore): the page header, buildiq and Publish. -->\n\t\t<CnPageHeader\n\t\t\tv-if=\"isBoardLook\"\n\t\t\t:title=\"resolvedTitle\"\n\t\t\t:description=\"boardDescription\">\n\t\t\t<template #extra>\n\t\t\t\t<div class=\"cn-store-page__header-actions\">\n\t\t\t\t\t<CnBuildiqEditButton />\n\t\t\t\t\t<NcButton\n\t\t\t\t\t\tv-if=\"showPublish\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\tdata-testid=\"store-publish\"\n\t\t\t\t\t\t:to=\"publishable ? undefined : publishTarget\"\n\t\t\t\t\t\t@click=\"onPublishClick\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Upload :size=\"18\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Publish') }}\n\t\t\t\t\t</NcButton>\n\t\t\t\t</div>\n\t\t\t</template>\n\t\t</CnPageHeader>\n\t\t<div v-else class=\"cn-store-page__header\">\n\t\t\t<div class=\"cn-store-page__heading\">\n\t\t\t\t<h2 class=\"cn-store-page__title\" :lang=\"langOf(resolvedTitle)\">\n\t\t\t\t\t{{ shown(resolvedTitle) }}\n\t\t\t\t</h2>\n\t\t\t\t<NcButton\n\t\t\t\t\tv-if=\"showPublish\"\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\tdata-testid=\"store-publish\"\n\t\t\t\t\t:to=\"publishable ? undefined : publishTarget\"\n\t\t\t\t\t@click=\"onPublishClick\">\n\t\t\t\t\t{{ t('nextcloud-vue', 'Publish') }}\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t\t<p v-if=\"resolvedDescription\" class=\"cn-store-page__intro\" :lang=\"langOf(resolvedDescription)\">\n\t\t\t\t{{ shown(resolvedDescription) }}\n\t\t\t</p>\n\t\t</div>\n\n\t\t<div v-if=\"isBoardLook\" class=\"cn-store-page__lens-row\">\n\t\t\t<div\n\t\t\t\tclass=\"cn-store-page__lenses\"\n\t\t\t\trole=\"group\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Show')\">\n\t\t\t\t<button\n\t\t\t\t\tv-for=\"option in lensOptions\"\n\t\t\t\t\t:key=\"option.value\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"cn-store-page__lens\"\n\t\t\t\t\t:class=\"{ 'cn-store-page__lens--active': option.value === lens }\"\n\t\t\t\t\t:aria-pressed=\"option.value === lens ? 'true' : 'false'\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\t:data-testid=\"`store-lens-${option.value}`\"\n\t\t\t\t\t@click=\"lens = option.value\">\n\t\t\t\t\t{{ option.label }}\n\t\t\t\t\t<span class=\"cn-store-page__lens-count\">{{ option.count }}</span>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class=\"cn-store-page__lens-search\" role=\"search\">\n\t\t\t\t<Magnify :size=\"18\" class=\"cn-store-page__lens-search-icon\" />\n\t\t\t\t<input\n\t\t\t\t\tv-model=\"query\"\n\t\t\t\t\ttype=\"search\"\n\t\t\t\t\tclass=\"cn-store-page__lens-search-input\"\n\t\t\t\t\t:placeholder=\"t('nextcloud-vue', 'Search the marketplace')\"\n\t\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Search the marketplace')\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\tdata-testid=\"store-search\"\n\t\t\t\t\t@input=\"onSearchInput\">\n\t\t\t</div>\n\t\t</div>\n\t\t<div v-else class=\"cn-store-page__controls\">\n\t\t\t<NcTextField\n\t\t\t\tv-model=\"query\"\n\t\t\t\t:label=\"t('nextcloud-vue', 'Search the marketplace')\"\n\t\t\t\t:disabled=\"offline\"\n\t\t\t\tdata-testid=\"store-search\"\n\t\t\t\t@update:modelValue=\"onSearchInput\" />\n\n\t\t\t<div\n\t\t\t\tclass=\"cn-store-page__kinds\"\n\t\t\t\trole=\"group\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Filter by kind')\">\n\t\t\t\t<NcButton\n\t\t\t\t\tv-for=\"option in kindOptions\"\n\t\t\t\t\t:key=\"option.value\"\n\t\t\t\t\t:variant=\"option.value === kind ? 'primary' : 'secondary'\"\n\t\t\t\t\t:disabled=\"offline\"\n\t\t\t\t\t:data-testid=\"`store-kind-${option.value || 'all'}`\"\n\t\t\t\t\t@click=\"selectKind(option.value)\">\n\t\t\t\t\t{{ option.label }}\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div :class=\"{ 'cn-store-page__layout': isBoardLook }\">\n\t\t\t<div class=\"cn-store-page__main\">\n\t\t\t\t<NcLoadingIcon v-if=\"loading\" :size=\"44\" class=\"cn-store-page__loading\" />\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-else-if=\"offline\"\n\t\t\t\t\ttype=\"info\"\n\t\t\t\t\tdata-testid=\"store-not-configured\">\n\t\t\t\t\t{{ notConfiguredMessage }}\n\t\t\t\t</NcNoteCard>\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-else-if=\"unreachable\"\n\t\t\t\t\ttype=\"warning\"\n\t\t\t\t\tdata-testid=\"store-unreachable\">\n\t\t\t\t\t{{ unreachableMessage }}\n\t\t\t\t</NcNoteCard>\n\n\t\t\t\t<NcEmptyContent\n\t\t\t\t\tv-else-if=\"visibleCards.length === 0\"\n\t\t\t\t\t:name=\"t('nextcloud-vue', 'Nothing matches that search')\"\n\t\t\t\t\t:description=\"\n\t\t\t\t\t\tt('nextcloud-vue', 'Try a different term, or clear the kind filter.')\n\t\t\t\t\t\" />\n\n\t\t\t\t<ul\n\t\t\t\t\tv-if=\"!loading && visibleCards.length > 0\"\n\t\t\t\t\tclass=\"cn-store-page__grid\"\n\t\t\t\t\t:style=\"gridStyle\"\n\t\t\t\t\tdata-testid=\"store-results\">\n\t\t\t\t\t<li\n\t\t\t\t\t\tv-for=\"card in visibleCards\"\n\t\t\t\t\t\t:key=\"card.slug\"\n\t\t\t\t\t\tclass=\"cn-store-page__card\"\n\t\t\t\t\t\t:class=\"{ 'cn-store-page__card--board': isBoardLook }\">\n\t\t\t\t\t\t<!--\n\t\t\t\t\tBoard look: an icon chip, the title, \"<kind> · <publisher>\" and a\n\t\t\t\t\tstate pill, then the description, then a footer with the version\n\t\t\t\t\tand one named action. The same card without the look is the\n\t\t\t\t\tplain one below.\n\t\t\t\t-->\n\t\t\t\t\t\t<template v-if=\"isBoardLook\">\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-head\">\n\t\t\t\t\t\t\t\t<span class=\"cn-store-page__card-chip\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t<CnIcon v-if=\"card.icon\" :name=\"card.icon\" :size=\"22\" />\n\t\t\t\t\t\t\t\t\t<PackageVariantClosed v-else :size=\"22\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class=\"cn-store-page__card-heading\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"cn-store-page__card-title\">\n\t\t\t\t\t\t\t\t\t\t{{ card.title || card.slug }}\n\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t<p v-if=\"cardKindLine(card)\" class=\"cn-store-page__card-kind\" data-testid=\"store-card-kind\">\n\t\t\t\t\t\t\t\t\t\t{{ cardKindLine(card) }}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-state\"\n\t\t\t\t\t\t\t\t\t\t:class=\"`cn-store-page__card-state--${cardState(card) || 'available'}`\"\n\t\t\t\t\t\t\t\t\t\tdata-testid=\"store-card-state\">\n\t\t\t\t\t\t\t\t\t\t{{ cardStateLabel(card) }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\">\n\t\t\t\t\t\t\t\t{{ card.description }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-footer\" data-testid=\"store-card-footer\">\n\t\t\t\t\t\t\t\t<span v-if=\"card.version\" class=\"cn-store-page__card-version\">\n\t\t\t\t\t\t\t\t\t{{ cardVersion(card) }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<NcButton\n\t\t\t\t\t\t\t\t\tv-if=\"cardAction(card)\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-action\"\n\t\t\t\t\t\t\t\t\t:class=\"{ 'cn-store-page__card-action--soft': cardAction(card).id !== 'open' }\"\n\t\t\t\t\t\t\t\t\tdata-testid=\"store-card-action\"\n\t\t\t\t\t\t\t\t\t:href=\"cardAction(card).href\"\n\t\t\t\t\t\t\t\t\t:disabled=\"installing === card.slug\"\n\t\t\t\t\t\t\t\t\t:aria-label=\"`${cardAction(card).label} ${card.title || card.slug}`\"\n\t\t\t\t\t\t\t\t\t@click=\"onCardAction(card, cardAction(card))\">\n\t\t\t\t\t\t\t\t\t{{ cardAction(card).label }}\n\t\t\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t<template v-else>\n\t\t\t\t\t\t\t<h3 class=\"cn-store-page__card-title\">\n\t\t\t\t\t\t\t\t{{ card.title || card.slug }}\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<p v-if=\"card.typeName || card.kind\" class=\"cn-store-page__card-kind\">\n\t\t\t\t\t\t\t\t{{ card.typeName || kindLabel(card.kind) }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\">\n\t\t\t\t\t\t\t\t{{ card.description }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"cn-store-page__card-footer\">\n\t\t\t\t\t\t\t\t<span v-if=\"card.publisher\" class=\"cn-store-page__card-publisher\">\n\t\t\t\t\t\t\t\t\t{{ card.publisher }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span v-if=\"card.version\" class=\"cn-store-page__card-version\">\n\t\t\t\t\t\t\t\t\t{{ card.version }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<NcButton\n\t\t\t\t\t\t\t\t\tv-if=\"showInstall\"\n\t\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\t\tdata-testid=\"store-install\"\n\t\t\t\t\t\t\t\t\t:disabled=\"installing === card.slug\"\n\t\t\t\t\t\t\t\t\t@click=\"install(card)\">\n\t\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\t\tinstalling === card.slug\n\t\t\t\t\t\t\t\t\t\t\t? t('nextcloud-vue', 'Installing…')\n\t\t\t\t\t\t\t\t\t\t\t: t('nextcloud-vue', 'Install')\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\n\t\t\t\t<div\n\t\t\t\t\tv-if=\"!loading && visibleBuiltIn.length > 0\"\n\t\t\t\t\tclass=\"cn-store-page__builtin\">\n\t\t\t\t\t<h3 class=\"cn-store-page__builtin-title\">\n\t\t\t\t\t\t{{ builtInHeading }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<ul class=\"cn-store-page__grid\" :style=\"gridStyle\" data-testid=\"store-builtin\">\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tv-for=\"item in visibleBuiltIn\"\n\t\t\t\t\t\t\t:key=\"item.slug\"\n\t\t\t\t\t\t\tclass=\"cn-store-page__card\">\n\t\t\t\t\t\t\t<h4 class=\"cn-store-page__card-title\" :lang=\"langOf(item.title)\">\n\t\t\t\t\t\t\t\t{{ shown(item.title) || item.slug }}\n\t\t\t\t\t\t\t</h4>\n\t\t\t\t\t\t\t<p class=\"cn-store-page__card-description\" :lang=\"langOf(item.description)\">\n\t\t\t\t\t\t\t\t{{ shown(item.description) }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\n\t\t\t\t<NcNoteCard\n\t\t\t\t\tv-if=\"report\"\n\t\t\t\t\t:type=\"report.type\"\n\t\t\t\t\tdata-testid=\"store-install-report\">\n\t\t\t\t\t{{ report.message }}\n\t\t\t\t</NcNoteCard>\n\t\t\t</div>\n\t\t\t<!-- Board look: what is installed, the update check, what ships with the app. -->\n\t\t\t<aside v-if=\"isBoardLook && !loading && !offline && !unreachable\" class=\"cn-store-page__aside\">\n\t\t\t\t<section class=\"cn-store-page__side-card\" data-testid=\"store-installed\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Installed from this marketplace') }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p v-if=\"installedCards.length === 0\" class=\"cn-store-page__side-note\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Nothing from this marketplace is installed yet.') }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<ul v-else class=\"cn-store-page__installed\">\n\t\t\t\t\t\t<li v-for=\"card in installedCards\" :key=\"card.slug\">\n\t\t\t\t\t\t\t<span class=\"cn-store-page__installed-title\">{{ card.title || card.slug }}</span>\n\t\t\t\t\t\t\t<span class=\"cn-store-page__installed-version\">{{ card.installedVersion || card.version }}</span>\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tv-if=\"card.updateAvailable === true\"\n\t\t\t\t\t\t\t\tclass=\"cn-store-page__card-state cn-store-page__card-state--update\"\n\t\t\t\t\t\t\t\tdata-testid=\"store-installed-update\">\n\t\t\t\t\t\t\t\t{{ t('nextcloud-vue', 'Update') }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</section>\n\t\t\t\t<section class=\"cn-store-page__side-card\" data-testid=\"store-updates\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Updates') }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p v-if=\"checkedLabel\" class=\"cn-store-page__side-meta\">\n\t\t\t\t\t\t<ClockOutline :size=\"16\" />\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Last checked {when}', { when: checkedLabel }) }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"cn-store-page__side-note\" data-testid=\"store-updates-count\">\n\t\t\t\t\t\t{{ updateCount === 0\n\t\t\t\t\t\t\t? t('nextcloud-vue', 'Everything is up to date.')\n\t\t\t\t\t\t\t: n('nextcloud-vue', '%n update is ready. An update keeps your own changes.', '%n updates are ready. An update keeps your own changes.', updateCount) }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<NcButton\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\twide\n\t\t\t\t\t\t:disabled=\"loading\"\n\t\t\t\t\t\tdata-testid=\"store-check-now\"\n\t\t\t\t\t\t@click=\"search\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Refresh :size=\"18\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Check now') }}\n\t\t\t\t\t</NcButton>\n\t\t\t\t</section>\n\t\t\t\t<section v-if=\"includedLine\" class=\"cn-store-page__side-card\" data-testid=\"store-included\">\n\t\t\t\t\t<h2 class=\"cn-store-page__side-title\">\n\t\t\t\t\t\t{{ builtInHeading }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p class=\"cn-store-page__side-text\">\n\t\t\t\t\t\t{{ includedLine }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"cn-store-page__side-note\">\n\t\t\t\t\t\t{{ t('nextcloud-vue', 'Only administrators install. An administrator connects the registry under Administration settings.') }}\n\t\t\t\t\t</p>\n\t\t\t\t</section>\n\t\t\t</aside>\n\t\t</div>\n\t\t<CnStorePublishDialog\n\t\t\tv-if=\"publishOpen\"\n\t\t\t:app=\"resolvedApp\"\n\t\t\t:kinds=\"effectiveKinds\"\n\t\t\t:kindLabel=\"kindLabel\"\n\t\t\t@close=\"publishOpen = false\"\n\t\t\t@published=\"onPublished\" />\n\t</div>\n</template>\n\n<script>\nimport { getCurrentUser } from '@nextcloud/auth'\nimport { showError, showSuccess } from '@nextcloud/dialogs'\nimport { n, t } from '@nextcloud/l10n'\nimport { generateUrl } from '@nextcloud/router'\nimport {\n\tNcButton,\n\tNcEmptyContent,\n\tNcLoadingIcon,\n\tNcNoteCard,\n\tNcTextField,\n} from '@nextcloud/vue'\nimport ClockOutline from 'vue-material-design-icons/ClockOutline.vue'\nimport Magnify from 'vue-material-design-icons/Magnify.vue'\nimport PackageVariantClosed from 'vue-material-design-icons/PackageVariantClosed.vue'\nimport Refresh from 'vue-material-design-icons/Refresh.vue'\nimport Upload from 'vue-material-design-icons/Upload.vue'\nimport CnBuildiqEditButton from '../CnBuildiqEditButton/CnBuildiqEditButton.vue'\nimport CnPageHeader from '../CnPageHeader/CnPageHeader.vue'\nimport CnStorePublishDialog from './CnStorePublishDialog.vue'\nimport { normalizeLook } from '../../composables/useLook.js'\nimport { labelLang } from '../../utils/manifestTranslate.js'\nimport { CnIcon } from '../CnIcon/index.js'\n\n/**\n * The kind vocabulary from ADR-080 Decision 5. A `kind` names what installing\n * an item DOES, which is what lets one registry serve several apps from one\n * schema. An app whose items are a different shape passes its own `kinds`.\n */\nexport const DEFAULT_STORE_KINDS = [\n\t'app-template',\n\t'adapter',\n\t'source-template',\n\t'configuration-template',\n\t'agent-template',\n]\n\nexport default {\n\tname: 'CnStorePage',\n\n\tcomponents: {\n\t\tClockOutline,\n\t\tCnBuildiqEditButton,\n\t\tCnIcon,\n\t\tCnPageHeader,\n\t\tCnStorePublishDialog,\n\t\tMagnify,\n\t\tPackageVariantClosed,\n\t\tRefresh,\n\t\tUpload,\n\t\tNcButton,\n\t\tNcEmptyContent,\n\t\tNcLoadingIcon,\n\t\tNcNoteCard,\n\t\tNcTextField,\n\t},\n\n\tinject: {\n\t\t/** The label lookup from CnAppRoot, so manifest labels show in the user's language. */\n\t\tcnTranslate: { default: null },\n\t\t/** The look CnAppRoot provides; `board` draws the catalogue cards of the screens. */\n\t\tcnLook: { default: 'nextcloud' },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The manifest page.\n\t\t *\n\t\t * ⚠️ CnPageRenderer does NOT pass this. `resolvedProps()` returns\n\t\t * `{ ...topLevel, ...normalizedConfig, ...params }` and has no `page`\n\t\t * key, so a dispatched `type: \"store\"` page arrives with the flattened\n\t\t * props below and this default `{}`. Reading `page.config` here would\n\t\t * render an empty store forever, which is exactly what happened to\n\t\t * CnReportsPage before #897. Kept only so a host rendering this\n\t\t * component directly can still hand it a whole page; the flattened\n\t\t * props win.\n\t\t *\n\t\t * @type {object}\n\t\t */\n\t\tpage: {\n\t\t\ttype: Object,\n\t\t\tdefault: () => ({}),\n\t\t},\n\n\t\t/**\n\t\t * The app id. The ONLY app-specific value in the request URL, and the\n\t\t * reason this component is shared rather than copied.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Page title, flattened out of `config` or lifted from the page.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The lead paragraph. A store of case types and a store of connector\n\t\t * adapters are not offering the same thing, so the app says what its\n\t\t * store is for.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Kind quick-filters. Defaults to the ADR-080 Decision 5 vocabulary.\n\t\t *\n\t\t * @type {Array<string>}\n\t\t */\n\t\tkinds: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => DEFAULT_STORE_KINDS,\n\t\t},\n\n\t\t/**\n\t\t * The items this app ships itself, rendered when the engine reports\n\t\t * `not_configured` or the registry does not answer.\n\t\t *\n\t\t * ADR-080 Decision 4 makes this the price of the word Store: a surface\n\t\t * that goes blank without a registry was never a store, and a surface\n\t\t * that only ever shows these is a Templates page.\n\t\t *\n\t\t * @type {Array<{slug: string, title: string, description: string}>}\n\t\t */\n\t\tbuiltIn: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Whether the signed-in user sees Install, as the app resolved it\n\t\t * (learniq: its ADR-023 matrix). `true` shows it on every remote\n\t\t * card, `false` hides it from everyone, administrators included.\n\t\t * `null` (the default) keeps the rule from before this prop:\n\t\t * administrators only. Presentation only: the app's install endpoint\n\t\t * must enforce the same rule.\n\t\t *\n\t\t * @type {boolean|null}\n\t\t */\n\t\tcanInstall: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Whether the signed-in user sees Publish, as the app resolved it.\n\t\t * `null` (the default) falls back to administrators only. Publish\n\t\t * renders only when `publishRoute` is set as well. Presentation\n\t\t * only: the app's publish endpoint must enforce the same rule.\n\t\t *\n\t\t * @type {boolean|null}\n\t\t */\n\t\tcanPublish: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Where Publish takes the user: a route name (string) or a route\n\t\t * location (object). Publishing is the app's own surface, so this\n\t\t * page never sends anything to a registry itself. Empty means no\n\t\t * Publish button, whatever `canPublish` says, so an app that never\n\t\t * sets it renders what it rendered before.\n\t\t *\n\t\t * @type {string|object}\n\t\t */\n\t\tpublishRoute: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Extra lens chips under the board look, one per item kind:\n\t\t * `[{ kind: 'connector', label: 'Connectors' }]` (board PqStore). The\n\t\t * label goes through the app's translate.\n\t\t */\n\t\tkindLenses: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * The app accepts a publish at `/api/store/publish` (and lists what may\n\t\t * be published at `/api/store/publishable`): Publish opens the publish\n\t\t * dialog instead of following `publishRoute`.\n\t\t */\n\t\tpublishable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tloading: true,\n\t\t\toutcome: null,\n\t\t\tcards: [],\n\t\t\tquery: '',\n\t\t\tkind: '',\n\t\t\tinstalling: null,\n\t\t\treport: null,\n\t\t\tsearchTimer: null,\n\t\t\t// The kinds the ENGINE served, from the app's `store` manifest\n\t\t\t// block. Null until the first response, so \"not asked yet\" stays\n\t\t\t// distinguishable from \"the app declares none\".\n\t\t\tservedKinds: null,\n\t\t\t// The built-in items the ENGINE served, from the app's `store`\n\t\t\t// manifest block. Null until the first response, so \"not asked\n\t\t\t// yet\" stays distinguishable from \"the app declares none\".\n\t\t\tservedBuiltIn: null,\n\t\t\t// The board look's lens: all, installed, updates or an item kind.\n\t\t\tlens: 'all',\n\t\t\tpublishOpen: false,\n\t\t\t// When the registry last answered (`checkedAt` from the engine).\n\t\t\tcheckedAt: '',\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * Whether the cards are drawn as the board look's catalogue cards.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tisBoardLook() {\n\t\t\treturn normalizeLook(this.cnLook) === 'board'\n\t\t},\n\n\t\t/**\n\t\t * The board track for the cards: `minmax(var(--cn-card-grid-min,\n\t\t * 260px), 1fr)` and `var(--cn-card-grid-gap, 16px)`. Empty without\n\t\t * the look.\n\t\t *\n\t\t * @spec openspec/changes/screens-card-parity/specs/card-board-look/spec.md#requirement-the-card-grid-takes-the-board-track\n\t\t * @return {object}\n\t\t */\n\t\tgridStyle() {\n\t\t\tif (!this.isBoardLook) {\n\t\t\t\treturn {}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tgridTemplateColumns: 'repeat(auto-fill, minmax(var(--cn-card-grid-min, 260px), 1fr))',\n\t\t\t\tgap: 'var(--cn-card-grid-gap, 16px)',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The page title, preferring the flattened prop over the page object.\n\t\t *\n\t\t * @return {string} The heading to render.\n\t\t */\n\t\tresolvedTitle() {\n\t\t\treturn this.title || this.page?.title || t('nextcloud-vue', 'Marketplace')\n\t\t},\n\n\t\t/**\n\t\t * The lead paragraph, preferring the flattened prop.\n\t\t *\n\t\t * @return {string} The intro copy, or an empty string.\n\t\t */\n\t\tresolvedDescription() {\n\t\t\treturn this.description || this.page?.config?.description || ''\n\t\t},\n\n\t\t/**\n\t\t * The app id, preferring the flattened prop.\n\t\t *\n\t\t * @return {string} The app id used to address the store endpoints.\n\t\t */\n\t\tresolvedApp() {\n\t\t\treturn this.app || this.page?.config?.app || ''\n\t\t},\n\n\t\t/**\n\t\t * No registry configured. The engine reported this WITHOUT making a\n\t\t * network call, which is the ADR-080 Decision 4 fallback.\n\t\t *\n\t\t * @return {boolean} True when no registry is connected.\n\t\t */\n\t\toffline() {\n\t\t\treturn this.outcome === 'not_configured'\n\t\t},\n\n\t\t/**\n\t\t * The registry is configured but did not answer usefully.\n\t\t *\n\t\t * @return {boolean} True when the registry errored.\n\t\t */\n\t\tunreachable() {\n\t\t\treturn (\n\t\t\t\tthis.outcome === 'store_unreachable'\n\t\t\t\t|| this.outcome === 'store_invalid_response'\n\t\t\t)\n\t\t},\n\n\t\t/**\n\t\t * Whether the current user is an administrator: the fallback for both\n\t\t * actions when the app did not say.\n\t\t *\n\t\t * @return {boolean} True when the current user is an administrator.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-1-the-consuming-app-decides-who-sees-install\n\t\t */\n\t\tisAdmin() {\n\t\t\treturn getCurrentUser()?.isAdmin === true\n\t\t},\n\n\t\t/**\n\t\t * Whether Install shows. The app's answer wins; without one only an\n\t\t * administrator installs, because what an install writes is the shape\n\t\t * of the work every handler then operates against. The server\n\t\t * enforces this too; hiding the button keeps a user from discovering\n\t\t * a refusal as a 403.\n\t\t *\n\t\t * @return {boolean} True when the Install buttons render.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-1-the-consuming-app-decides-who-sees-install\n\t\t */\n\t\tshowInstall() {\n\t\t\tif (typeof this.canInstall === 'boolean') {\n\t\t\t\treturn this.canInstall\n\t\t\t}\n\n\t\t\treturn this.isAdmin\n\t\t},\n\n\t\t/**\n\t\t * Where Publish navigates, or null when the app named no destination.\n\t\t * A string is a route NAME, the way manifest menu entries name routes.\n\t\t *\n\t\t * @return {object|null} A vue-router location, or null.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-2-the-consuming-app-decides-who-sees-publish-and-where-it-leads\n\t\t */\n\t\tpublishTarget() {\n\t\t\tif (typeof this.publishRoute === 'string') {\n\t\t\t\treturn this.publishRoute === '' ? null : { name: this.publishRoute }\n\t\t\t}\n\n\t\t\tif (this.publishRoute !== null && typeof this.publishRoute === 'object') {\n\t\t\t\treturn this.publishRoute\n\t\t\t}\n\n\t\t\treturn null\n\t\t},\n\n\t\t/**\n\t\t * Whether Publish shows: a destination is named AND the app allows it\n\t\t * (or, without an answer, the user is an administrator). No\n\t\t * destination means no button, because a button that goes nowhere\n\t\t * is worse than none.\n\t\t *\n\t\t * @return {boolean} True when the Publish button renders.\n\t\t *\n\t\t * @spec openspec/changes/store-page-action-visibility/specs/store-page/spec.md#requirement-req-stp-2-the-consuming-app-decides-who-sees-publish-and-where-it-leads\n\t\t */\n\t\tshowPublish() {\n\t\t\tif (this.publishTarget === null && this.publishable !== true) {\n\t\t\t\treturn false\n\t\t\t}\n\n\t\t\tif (typeof this.canPublish === 'boolean') {\n\t\t\t\treturn this.canPublish\n\t\t\t}\n\n\t\t\treturn this.isAdmin\n\t\t},\n\n\t\t/**\n\t\t * The kind quick-filters, with an \"all\" entry first.\n\t\t *\n\t\t * @return {Array<{value: string, label: string}>} The filter options.\n\t\t */\n\t\tkindOptions() {\n\t\t\treturn [\n\t\t\t\t{ value: '', label: t('nextcloud-vue', 'All kinds') },\n\t\t\t\t...this.effectiveKinds.map((value) => ({ value, label: this.kindLabel(value) })),\n\t\t\t]\n\t\t},\n\n\t\t/**\n\t\t * The kinds to offer, preferring what the ENGINE served.\n\t\t *\n\t\t * An app declares its kinds in the `store` block of its manifest, next\n\t\t * to the schema allowlist, and the engine returns them with the cards.\n\t\t * That is the single place an app says what its store sells; the\n\t\t * `kinds` PROP remains for a host rendering this component directly and\n\t\t * as the pre-response value, and DEFAULT_STORE_KINDS is the floor.\n\t\t *\n\t\t * A served EMPTY list means the app declared none, which is not the\n\t\t * same as not having asked yet — hence `servedKinds` starts null.\n\t\t *\n\t\t * @return {Array<string>} The kind filter values.\n\t\t */\n\t\teffectiveKinds() {\n\t\t\tif (Array.isArray(this.servedKinds) && this.servedKinds.length > 0) {\n\t\t\t\treturn this.servedKinds\n\t\t\t}\n\n\t\t\treturn this.kinds\n\t\t},\n\n\t\t/**\n\t\t * The app's own items, shown whenever the remote list is not carrying\n\t\t * the page. Not a network call, and not a Store on their own.\n\t\t *\n\t\t * 🔴 AN EMPTY ANSWER IS STILL AN EMPTY PAGE. This used to hide the\n\t\t * built-ins whenever the engine answered at all, checking only\n\t\t * `not_configured` and the error outcomes. A federated store that\n\t\t * answers `ok` with zero cards — a configured registry that has\n\t\t * published nothing yet — then rendered a heading, a search box and\n\t\t * nothing else, while the app shipped four items it could have shown.\n\t\t * Measured on decidiq, whose store returns `ok` with 0 cards and 4\n\t\t * built-ins declared.\n\t\t *\n\t\t * ADR-080 Decision 4 is explicit that a surface which goes blank was\n\t\t * never a store, so the test is what the reader can SEE, not which\n\t\t * outcome the engine reported.\n\t\t *\n\t\t * @return {Array<object>} The built-in items to render.\n\t\t */\n\t\tvisibleBuiltIn() {\n\t\t\tif (this.offline === false && this.unreachable === false && this.cards.length > 0) {\n\t\t\t\treturn []\n\t\t\t}\n\n\t\t\treturn this.effectiveBuiltIn\n\t\t},\n\n\t\t/**\n\t\t * The app's own items, preferring what the ENGINE served over the page\n\t\t * config.\n\t\t *\n\t\t * An app declares these ONCE, in its `store` manifest block beside the\n\t\t * allowlist, which is where the schema documents them. The `builtIn`\n\t\t * PROP is a second place to write the same list, and an app that\n\t\t * declared them only in the manifest used to render nothing: the\n\t\t * engine parsed them and never sent them.\n\t\t *\n\t\t * Mirrors `effectiveKinds` exactly, for the same reason.\n\t\t *\n\t\t * @return {Array<object>} The items to render.\n\t\t */\n\t\teffectiveBuiltIn() {\n\t\t\tif (Array.isArray(this.servedBuiltIn) && this.servedBuiltIn.length > 0) {\n\t\t\t\treturn this.servedBuiltIn\n\t\t\t}\n\n\t\t\treturn this.builtIn\n\t\t},\n\n\t\t/**\n\t\t * Heading above the app's own items.\n\t\t *\n\t\t * @return {string} The built-in section heading.\n\t\t */\n\t\t/**\n\t\t * The cards the chosen lens shows (board look); every card otherwise.\n\t\t *\n\t\t * @return {Array<object>}\n\t\t */\n\t\tvisibleCards() {\n\t\t\tif (!this.isBoardLook || this.lens === 'all') {\n\t\t\t\treturn this.cards\n\t\t\t}\n\t\t\tif (this.lens === 'installed') {\n\t\t\t\treturn this.installedCards\n\t\t\t}\n\t\t\tif (this.lens === 'updates') {\n\t\t\t\treturn this.cards.filter((card) => card.updateAvailable === true)\n\t\t\t}\n\t\t\treturn this.cards.filter((card) => card.kind === this.lens)\n\t\t},\n\n\t\tinstalledCards() {\n\t\t\treturn this.cards.filter((card) => card.installed === true)\n\t\t},\n\n\t\tupdateCount() {\n\t\t\treturn this.cards.filter((card) => card.updateAvailable === true).length\n\t\t},\n\n\t\t/**\n\t\t * The lens chips with their counts.\n\t\t *\n\t\t * @return {Array<{value: string, label: string, count: number}>}\n\t\t */\n\t\tlensOptions() {\n\t\t\treturn [\n\t\t\t\t{ value: 'all', label: t('nextcloud-vue', 'All items'), count: this.cards.length },\n\t\t\t\t{ value: 'installed', label: t('nextcloud-vue', 'Installed'), count: this.installedCards.length },\n\t\t\t\t{ value: 'updates', label: t('nextcloud-vue', 'Updates available'), count: this.updateCount },\n\t\t\t\t...this.kindLenses.map((entry) => ({\n\t\t\t\t\tvalue: entry.kind,\n\t\t\t\t\tlabel: this.shown(entry.label),\n\t\t\t\t\tcount: this.cards.filter((card) => card.kind === entry.kind).length,\n\t\t\t\t})),\n\t\t\t]\n\t\t},\n\n\t\t/**\n\t\t * The description, with `{count}` filled by the number of items the\n\t\t * registry holds.\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tboardDescription() {\n\t\t\treturn this.shown(this.resolvedDescription).replace('{count}', String(this.cards.length))\n\t\t},\n\n\t\tcheckedLabel() {\n\t\t\tif (!this.checkedAt) {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst date = new Date(this.checkedAt)\n\t\t\treturn isNaN(date.getTime()) ? '' : date.toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' })\n\t\t},\n\n\t\t/**\n\t\t * \"A, B and C ship with {app}. They show here when no registry is\n\t\t * connected.\", or '' when the app ships nothing.\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tincludedLine() {\n\t\t\tconst titles = this.effectiveBuiltIn.map((item) => this.shown(item.title) || item.slug).filter(Boolean)\n\t\t\tif (titles.length === 0) {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst list = titles.length === 1\n\t\t\t\t? titles[0]\n\t\t\t\t: t('nextcloud-vue', '{list} and {last}', { list: titles.slice(0, -1).join(', '), last: titles[titles.length - 1] })\n\t\t\treturn t('nextcloud-vue', '{items} ship with the app. They show here when no registry is connected.', { items: list })\n\t\t},\n\n\t\tbuiltInHeading() {\n\t\t\treturn this.resolvedApp\n\t\t\t\t? t('nextcloud-vue', 'Included with {app}', { app: this.resolvedApp })\n\t\t\t\t: t('nextcloud-vue', 'Included with this app')\n\t\t},\n\n\t\t/**\n\t\t * The no-registry message, which names the built-in fallback only when\n\t\t * there is one. Promising templates below when the list is empty is\n\t\t * how an empty page reads as a broken one.\n\t\t *\n\t\t * @return {string} The not-configured note.\n\t\t */\n\t\tnotConfiguredMessage() {\n\t\t\tconst base = t(\n\t\t\t\t'nextcloud-vue',\n\t\t\t\t'No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',\n\t\t\t)\n\n\t\t\treturn this.builtIn.length > 0\n\t\t\t\t? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`\n\t\t\t\t: base\n\t\t},\n\n\t\t/**\n\t\t * The registry-error message, on the same rule as above.\n\t\t *\n\t\t * @return {string} The unreachable note.\n\t\t */\n\t\tunreachableMessage() {\n\t\t\tconst base = t('nextcloud-vue', 'The marketplace registry did not answer.')\n\n\t\t\treturn this.builtIn.length > 0\n\t\t\t\t? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`\n\t\t\t\t: base\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.search()\n\t},\n\n\t/**\n\t * Cancel a pending debounced search.\n\t *\n\t * @return {void}\n\t */\n\tbeforeUnmount() {\n\t\tif (this.searchTimer !== null) {\n\t\t\tclearTimeout(this.searchTimer)\n\t\t}\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * The \"<kind> · <publisher>\" line of a catalogue card.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {string} The line, or ''.\n\t\t */\n\t\t/**\n\t\t * The footer version: the installed one and the newer one when an\n\t\t * update is out, else the registry's.\n\t\t *\n\t\t * @param {object} card The store item.\n\t\t * @return {string}\n\t\t */\n\t\tcardVersion(card) {\n\t\t\tif (card.updateAvailable === true && card.installedVersion) {\n\t\t\t\treturn t('nextcloud-vue', 'Version {version}, {latest} is out', { version: card.installedVersion, latest: card.version })\n\t\t\t}\n\t\t\treturn t('nextcloud-vue', 'Version {version}', { version: card.version })\n\t\t},\n\n\t\tn,\n\n\t\tonPublishClick() {\n\t\t\tif (this.publishable) {\n\t\t\t\tthis.publishOpen = true\n\t\t\t}\n\t\t},\n\n\t\tonPublished() {\n\t\t\tthis.publishOpen = false\n\t\t\tthis.search()\n\t\t},\n\n\t\tcardKindLine(card) {\n\t\t\treturn [card.typeName || this.kindLabel(card.kind), card.publisher].filter((part) => typeof part === 'string' && part !== '').join(' · ')\n\t\t},\n\n\t\t/**\n\t\t * The state a catalogue card shows as a pill: `update` when the item\n\t\t * says an update is available, `installed` when it says it is\n\t\t * installed, none otherwise.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {('installed'|'update'|'')} The state.\n\t\t */\n\t\tcardState(card) {\n\t\t\tif (card.updateAvailable === true) {\n\t\t\t\treturn 'update'\n\t\t\t}\n\t\t\treturn card.installed === true ? 'installed' : ''\n\t\t},\n\n\t\t/**\n\t\t * The words on a catalogue card's state pill: Update, Installed, or\n\t\t * Available for an item that is not installed.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {string} The label.\n\t\t * @spec openspec/changes/store-page-board-as-drawn/specs/store-page/spec.md#requirement-a-board-look-store-card-shows-its-state-and-its-action-as-drawn\n\t\t */\n\t\tcardStateLabel(card) {\n\t\t\tconst state = this.cardState(card)\n\t\t\tif (state === 'update') {\n\t\t\t\treturn t('nextcloud-vue', 'Update')\n\t\t\t}\n\t\t\treturn state === 'installed' ? t('nextcloud-vue', 'Installed') : t('nextcloud-vue', 'Available')\n\t\t},\n\n\t\t/**\n\t\t * The one action in a catalogue card's footer: Update for an item with\n\t\t * an update, Open for an installed one that says where it opens\n\t\t * (`openUrl`), Install for one that is not installed. Nothing when the\n\t\t * viewer may not install and there is nowhere to open.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @return {?{id: string, label: string, href?: string}} The action, or null.\n\t\t */\n\t\tcardAction(card) {\n\t\t\tconst state = this.cardState(card)\n\t\t\tif (state === 'update') {\n\t\t\t\treturn this.showInstall ? { id: 'update', label: t('nextcloud-vue', 'Update') } : null\n\t\t\t}\n\t\t\tif (state === 'installed') {\n\t\t\t\treturn typeof card.openUrl === 'string' && card.openUrl !== '' ? { id: 'open', label: t('nextcloud-vue', 'Open'), href: card.openUrl } : null\n\t\t\t}\n\t\t\treturn this.showInstall ? { id: 'install', label: t('nextcloud-vue', 'Install') } : null\n\t\t},\n\n\t\t/**\n\t\t * The footer action was clicked: install and update run the install\n\t\t * endpoint; Open is a link and has nothing to run.\n\t\t *\n\t\t * @param {object} card The card.\n\t\t * @param {{id: string}} action The action.\n\t\t * @return {void}\n\t\t */\n\t\tonCardAction(card, action) {\n\t\t\tif (action.id === 'install' || action.id === 'update') {\n\t\t\t\tthis.install(card)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The label of a kind: the library's own for the five kinds of the\n\t\t * default vocabulary (\"App template\" for `app-template`), else the kind\n\t\t * through the app's translate, so an app with kinds of its own names\n\t\t * them in its catalogue. Never the raw id of a known kind.\n\t\t *\n\t\t * @spec openspec/changes/screens-store-page-translations/specs/store-page/spec.md#requirement-the-store-page-reads-in-the-users-language\n\t\t * @param {string} kind The kind id.\n\t\t * @return {string} The label.\n\t\t */\n\t\tkindLabel(kind) {\n\t\t\tconst known = {\n\t\t\t\t'app-template': t('nextcloud-vue', 'App template'),\n\t\t\t\tadapter: t('nextcloud-vue', 'Adapter'),\n\t\t\t\t'source-template': t('nextcloud-vue', 'Source template'),\n\t\t\t\t'configuration-template': t('nextcloud-vue', 'Configuration template'),\n\t\t\t\t'agent-template': t('nextcloud-vue', 'Agent template'),\n\t\t\t}\n\t\t\tif (typeof kind !== 'string' || kind === '') {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tconst translated = this.shown(kind)\n\t\t\t// The app's own word for a kind wins over the library's.\n\t\t\treturn translated !== kind ? translated : (Object.hasOwn(known, kind) ? known[kind] : kind)\n\t\t},\n\n\t\t/**\n\t\t * A manifest label through the injected lookup, or as written. The\n\t\t * built-in items' titles and descriptions read through it too.\n\t\t *\n\t\t * @spec openspec/changes/cell-config-growth/specs/cell-config-growth/spec.md#requirement-the-stores-own-items-read-in-the-users-language\n\t\t * @param {string} text The label as written.\n\t\t * @return {string} The label in the user's language.\n\t\t */\n\t\tshown(text) {\n\t\t\treturn typeof this.cnTranslate === 'function' && typeof text === 'string' && text !== '' ? this.cnTranslate(text) : text\n\t\t},\n\n\t\t/**\n\t\t * The `lang` of a label that fell back to its written text in another language.\n\t\t *\n\t\t * @param {string} text The label as written.\n\t\t * @return {string|undefined} The source language, or undefined.\n\t\t */\n\t\tlangOf(text) {\n\t\t\treturn labelLang(this.cnTranslate, text) || undefined\n\t\t},\n\n\t\tt,\n\n\t\t/**\n\t\t * Debounce the search so typing does not fire one remote request per\n\t\t * keystroke against somebody else's registry.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tonSearchInput() {\n\t\t\tif (this.searchTimer !== null) {\n\t\t\t\tclearTimeout(this.searchTimer)\n\t\t\t}\n\n\t\t\tthis.searchTimer = setTimeout(() => {\n\t\t\t\tthis.search()\n\t\t\t}, 400)\n\t\t},\n\n\t\t/**\n\t\t * Select a kind filter and re-search.\n\t\t *\n\t\t * @param {string} value The kind, or an empty string for all kinds.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tselectKind(value) {\n\t\t\tthis.kind = value\n\t\t\tthis.search()\n\t\t},\n\n\t\t/**\n\t\t * Fetch the current page of store cards.\n\t\t *\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync search() {\n\t\t\t// An unconfigured `app` cannot address any endpoint. Reporting\n\t\t\t// not_configured is the honest outcome and costs no request; the\n\t\t\t// alternative is a fetch to /apps//api/... which 404s and reads to\n\t\t\t// the user as a registry that is down.\n\t\t\tif (this.resolvedApp === '') {\n\t\t\t\tthis.outcome = 'not_configured'\n\t\t\t\tthis.cards = []\n\t\t\t\tthis.loading = false\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.loading = true\n\t\t\ttry {\n\t\t\t\tconst params = new URLSearchParams()\n\t\t\t\tif (this.query) {\n\t\t\t\t\tparams.set('q', this.query)\n\t\t\t\t}\n\t\t\t\tif (this.kind) {\n\t\t\t\t\tparams.set('kind', this.kind)\n\t\t\t\t}\n\n\t\t\t\tconst suffix = params.toString() ? `?${params.toString()}` : ''\n\t\t\t\tconst response = await fetch(\n\t\t\t\t\tgenerateUrl(`/apps/${this.resolvedApp}/api/store/items${suffix}`),\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: { requesttoken: window.OC?.requestToken },\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t\tconst body = await response.json()\n\n\t\t\t\tthis.outcome = body.outcome ?? 'store_invalid_response'\n\t\t\t\tthis.cards = Array.isArray(body.cards) ? body.cards : []\n\t\t\t\t// Present on every arm the engine answers, including\n\t\t\t\t// not_configured and store_unreachable, so the filters survive\n\t\t\t\t// a registry that is down.\n\t\t\t\tthis.servedKinds = Array.isArray(body.kinds) ? body.kinds : null\n\t\t\t\t// Same contract as `kinds`: present on every arm the engine\n\t\t\t\t// answers, so an app's own items survive a registry that is\n\t\t\t\t// down — which is exactly when they are all there is to show.\n\t\t\t\tthis.servedBuiltIn = Array.isArray(body.builtIn) ? body.builtIn : null\n\t\t\t\tthis.checkedAt = typeof body.checkedAt === 'string' ? body.checkedAt : ''\n\t\t\t} catch {\n\t\t\t\tthis.outcome = 'store_unreachable'\n\t\t\t\tthis.cards = []\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Install one item, and report per component.\n\t\t *\n\t\t * A partial install is a real outcome rather than a failure: an item\n\t\t * carrying both configuration and records installs the configuration\n\t\t * and names the records it refused.\n\t\t *\n\t\t * @param {{slug: string, title: string}} card The card to install.\n\t\t *\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync install(card) {\n\t\t\tthis.installing = card.slug\n\t\t\tthis.report = null\n\n\t\t\ttry {\n\t\t\t\tconst response = await fetch(\n\t\t\t\t\tgenerateUrl(`/apps/${this.resolvedApp}/api/store/items/${encodeURIComponent(card.slug)}/install`),\n\t\t\t\t\t{\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t\t\t\trequesttoken: window.OC?.requestToken,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t\tconst body = await response.json()\n\n\t\t\t\tif (response.ok !== true) {\n\t\t\t\t\tshowError(body.message\n\t\t\t\t\t\t?? t('nextcloud-vue', 'The item could not be installed.'))\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tconst refused = (body.components ?? []).filter((c) => c.status !== 'installed')\n\t\t\t\tif (refused.length === 0) {\n\t\t\t\t\tshowSuccess(t('nextcloud-vue', 'Installed.'))\n\t\t\t\t\tthis.report = null\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tthis.report = {\n\t\t\t\t\ttype: body.success === true ? 'info' : 'warning',\n\t\t\t\t\tmessage: t(\n\t\t\t\t\t\t'nextcloud-vue',\n\t\t\t\t\t\t'Some parts were not installed: {schemas}',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tschemas: refused.map((c) => c.schema).join(', '),\n\t\t\t\t\t\t},\n\t\t\t\t\t),\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\tshowError(t('nextcloud-vue', 'The item could not be installed.'))\n\t\t\t} finally {\n\t\t\t\tthis.installing = null\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-store-page {\n\tpadding: 16px;\n\tmax-width: 1200px;\n}\n\n/* Clear the Nextcloud navigation toggle button (44px wide, absolutely\n positioned at the left edge of .app-content) plus 12px breathing room, as\n CnPageHeader does. Only the header shifts; the body keeps the full width. */\n.cn-store-page__header {\n\tpadding-inline-start: 56px;\n}\n\n.cn-store-page__heading {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 12px;\n\tmargin: 0 0 4px;\n}\n\n.cn-store-page__title {\n\tmargin: 0;\n}\n\n.cn-store-page__intro {\n\tcolor: var(--color-text-maxcontrast);\n\tmargin: 0 0 16px;\n}\n\n.cn-store-page__controls {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 12px;\n\talign-items: flex-end;\n\tmargin-bottom: 16px;\n}\n\n.cn-store-page__kinds {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 8px;\n}\n\n.cn-store-page__loading {\n\tmargin: 32px auto;\n}\n\n.cn-store-page__grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n\tgap: 16px;\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 16px 0 0;\n}\n\n.cn-store-page__card {\n\tborder: 1px solid var(--color-border);\n\tborder-radius: var(--border-radius-large);\n\tbackground-color: var(--color-main-background);\n\tpadding: 16px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n}\n\n.cn-store-page__card-title {\n\tmargin: 0;\n\tfont-size: 1rem;\n}\n\n.cn-store-page__card-kind {\n\tmargin: 0;\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n}\n\n.cn-store-page__card-description {\n\tmargin: 0;\n\tflex: 1;\n}\n\n.cn-store-page__card-footer {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 8px;\n}\n\n.cn-store-page__card-version {\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n}\n\n/* Who published a configuration set matters more than its version does, since\n installing one applies somebody else's schemas and flows to this instance. */\n.cn-store-page__card-publisher {\n\tcolor: var(--color-text-maxcontrast);\n\tfont-size: 0.85rem;\n\tmargin-inline-end: auto;\n}\n\n.cn-store-page__builtin-title {\n\tmargin: 24px 0 0;\n}\n</style>\n"],"names":["CnBuildiqEditButton","CnIcon","CnPageHeader","CnStorePublishDialog"],"mappings":";;;;;;;;;;;;;;;;;AAkYA;AACC;;;;AAIU,MAAE,sBAAsB;AAClC,CAAA,cAAc;AACd,CAAA,SAAS;AACT,CAAA,iBAAiB;CACjB,wBAAwB;AACxB,CAAA,gBAAgB;AACjB,EAAA;;AAEA,aAAe;AACd,CAAA,IAAI,EAAE,aAAa;;CAEnB,UAAU,EAAE;EACX,YAAY;AACZ,uBAAAA,UAAmB;AACnB,UAAAC,YAAM;gBACNC,YAAY;AACZ,wBAAAC,YAAoB;AACpB,EAAA,OAAO;AACP,EAAA,oBAAoB;AACpB,EAAA,OAAO;AACP,EAAA,MAAM;AACN,EAAA,QAAQ;AACR,EAAA,cAAc;EACd,aAAa;EACb,UAAU;EACV,WAAW;EACX;;AAED,CAAA,MAAM,EAAE;AACP;EACA,WAAW,EAAE,EAAE,OAAO,EAAE,I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EACD;AACF;;;;"}
@@ -225,8 +225,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
225
225
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.query) = $event)),
226
226
  type: "search",
227
227
  class: "cn-store-page__lens-search-input",
228
- placeholder: $options.t('nextcloud-vue', 'Search the store'),
229
- "aria-label": $options.t('nextcloud-vue', 'Search the store'),
228
+ placeholder: $options.t('nextcloud-vue', 'Search the marketplace'),
229
+ "aria-label": $options.t('nextcloud-vue', 'Search the marketplace'),
230
230
  disabled: $options.offline,
231
231
  "data-testid": "store-search",
232
232
  onInput: _cache[1] || (_cache[1] = (...args) => ($options.onSearchInput && $options.onSearchInput(...args)))
@@ -242,7 +242,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
242
242
  _cache[2] || (_cache[2] = $event => (($data.query) = $event)),
243
243
  $options.onSearchInput
244
244
  ],
245
- label: $options.t('nextcloud-vue', 'Search the store'),
245
+ label: $options.t('nextcloud-vue', 'Search the marketplace'),
246
246
  disabled: $options.offline,
247
247
  "data-testid": "store-search"
248
248
  }, null, 8 /* PROPS */, ["modelValue", "label", "disabled", "onUpdate:modelValue"]),
@@ -447,9 +447,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
447
447
  ($options.isBoardLook && !$data.loading && !$options.offline && !$options.unreachable)
448
448
  ? (openBlock(), createElementBlock("aside", _hoisted_33, [
449
449
  createElementVNode("section", _hoisted_34, [
450
- createElementVNode("h2", _hoisted_35, toDisplayString($options.t('nextcloud-vue', 'Installed from this store')), 1 /* TEXT */),
450
+ createElementVNode("h2", _hoisted_35, toDisplayString($options.t('nextcloud-vue', 'Installed from this marketplace')), 1 /* TEXT */),
451
451
  ($options.installedCards.length === 0)
452
- ? (openBlock(), createElementBlock("p", _hoisted_36, toDisplayString($options.t('nextcloud-vue', 'Nothing from this store is installed yet.')), 1 /* TEXT */))
452
+ ? (openBlock(), createElementBlock("p", _hoisted_36, toDisplayString($options.t('nextcloud-vue', 'Nothing from this marketplace is installed yet.')), 1 /* TEXT */))
453
453
  : (openBlock(), createElementBlock("ul", _hoisted_37, [
454
454
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.installedCards, (card) => {
455
455
  return (openBlock(), createElementBlock("li", {