graphdb-workbench 4.0.0-TR20 → 4.0.0-TR21

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 (161) hide show
  1. package/dist/28944.10ba3819ab642475c4cc.bundle.js +2 -0
  2. package/dist/28944.10ba3819ab642475c4cc.bundle.js.map +1 -0
  3. package/dist/43239.40282ca142f86c6dde15.bundle.js +2 -0
  4. package/dist/43239.40282ca142f86c6dde15.bundle.js.map +1 -0
  5. package/dist/44906.c4c659df4b02ccae9229.bundle.js +2 -0
  6. package/dist/44906.c4c659df4b02ccae9229.bundle.js.map +1 -0
  7. package/dist/{64709.3025889983ec8209d336.bundle.js → 64709.18515378d91873dbe224.bundle.js} +2 -2
  8. package/dist/{64709.3025889983ec8209d336.bundle.js.map → 64709.18515378d91873dbe224.bundle.js.map} +1 -1
  9. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js → 65677.16009c5d1eabcad00aeb.bundle.js} +2 -2
  10. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js.map → 65677.16009c5d1eabcad00aeb.bundle.js.map} +1 -1
  11. package/dist/{7257.1990b2e548feb7975f39.bundle.js → 7257.d60c8e9f046b1392ea1e.bundle.js} +2 -2
  12. package/dist/{7257.1990b2e548feb7975f39.bundle.js.map → 7257.d60c8e9f046b1392ea1e.bundle.js.map} +1 -1
  13. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js +2 -0
  14. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js.map +1 -0
  15. package/dist/{80933.3851df33b6cf8f94243c.bundle.js → 80933.32639a47f5bcab72f129.bundle.js} +2 -2
  16. package/dist/{80933.3851df33b6cf8f94243c.bundle.js.map → 80933.32639a47f5bcab72f129.bundle.js.map} +1 -1
  17. package/dist/{82917.c4d381f514d7ffa59784.bundle.js → 82917.a13bbac26dd299c57f0c.bundle.js} +2 -2
  18. package/dist/{82917.c4d381f514d7ffa59784.bundle.js.map → 82917.a13bbac26dd299c57f0c.bundle.js.map} +1 -1
  19. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js → 86099.fe7fcec5f4ad92673a0b.bundle.js} +2 -2
  20. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js.map → 86099.fe7fcec5f4ad92673a0b.bundle.js.map} +1 -1
  21. package/dist/96827.33e11fed0a796c76a367.bundle.js +2 -0
  22. package/dist/96827.33e11fed0a796c76a367.bundle.js.map +1 -0
  23. package/dist/assets/i18n/en.json +6 -2
  24. package/dist/assets/i18n/fr.json +6 -2
  25. package/dist/assets/i18n/language-config.json +1 -1
  26. package/dist/css/core-errors.css +1 -1
  27. package/dist/css/repositories.css +1 -1
  28. package/dist/css/repository-info-popover.css +1 -1
  29. package/dist/css/repository.create.css +1 -1
  30. package/dist/i18n/locale-en.json +9 -5
  31. package/dist/i18n/locale-fr.json +9 -5
  32. package/dist/index.html +9 -9
  33. package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
  34. package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
  35. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  36. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  37. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  38. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  39. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  40. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  41. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
  42. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  43. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  44. package/dist/js/angular/core/templates/core-errors.html +4 -2
  45. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  46. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  47. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  48. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  49. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  50. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  51. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  52. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  53. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  54. package/dist/js/angular/repositories/templates/manage-remote-location-dialog.template.html +0 -13
  55. package/dist/js/angular/security/templates/user.html +2 -2
  56. package/dist/js/angular/security/templates/users.html +1 -1
  57. package/dist/js/angular/templates/repositorySize.html +10 -6
  58. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  59. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  60. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  61. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  62. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  63. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  64. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  65. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  66. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  67. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  68. package/dist/legacyWorkbench.d8ed4eb634c5be181feb.js +3 -0
  69. package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.map → legacyWorkbench.d8ed4eb634c5be181feb.js.map} +1 -1
  70. package/dist/{main.519bdd021ad27b8f7c2a.js → main.bb3c33c0be119ba8d7dd.js} +3 -3
  71. package/dist/main.bb3c33c0be119ba8d7dd.js.map +1 -0
  72. package/dist/pages/aclmanagement.html +1 -1
  73. package/dist/pages/autocomplete.html +1 -1
  74. package/dist/pages/choose-repository-type.html +2 -1
  75. package/dist/pages/cluster-management/clusterInfo.html +2 -2
  76. package/dist/pages/create-index.html +1 -1
  77. package/dist/pages/dependencies.html +1 -1
  78. package/dist/pages/domainRangeInfo.html +2 -2
  79. package/dist/pages/edit.html +1 -1
  80. package/dist/pages/explore.html +1 -1
  81. package/dist/pages/export.html +1 -1
  82. package/dist/pages/find.html +1 -1
  83. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  84. package/dist/pages/graphs-visualizations.html +7 -7
  85. package/dist/pages/guides.html +1 -1
  86. package/dist/pages/home.html +1 -1
  87. package/dist/pages/import.html +2 -2
  88. package/dist/pages/jdbc-create.html +1 -1
  89. package/dist/pages/jdbc.html +1 -1
  90. package/dist/pages/monitor/backup-and-restore.html +1 -1
  91. package/dist/pages/monitor/queries.html +1 -1
  92. package/dist/pages/monitor/resources.html +1 -1
  93. package/dist/pages/namespaces.html +2 -2
  94. package/dist/pages/plugins.html +1 -1
  95. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  96. package/dist/pages/rdfrank.html +2 -2
  97. package/dist/pages/repositories.html +8 -4
  98. package/dist/pages/repository.html +6 -2
  99. package/dist/pages/similarity-indexes.html +1 -1
  100. package/dist/pages/sparql-editor.html +1 -1
  101. package/dist/pages/sparql-template-create.html +1 -1
  102. package/dist/pages/sparql-templates.html +1 -1
  103. package/dist/pages/ux-test1.html +2 -2
  104. package/dist/pages/viewQuery.html +1 -1
  105. package/dist/pages/webapi.html +2 -2
  106. package/dist/res/swagger5/index.html +11 -11
  107. package/dist/shared-components/cjs/loader.cjs.js +1 -1
  108. package/dist/shared-components/cjs/onto-footer_3.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/onto-repository-info.cjs.entry.js +1 -1
  112. package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
  113. package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
  114. package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
  115. package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
  116. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.css +1 -1
  117. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.js +1 -1
  118. package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.css +1 -1
  119. package/dist/shared-components/collection/components/onto-repository-selector/selector-item.js +1 -1
  120. package/dist/shared-components/esm/loader.js +1 -1
  121. package/dist/shared-components/esm/onto-footer_3.entry.js +1 -1
  122. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  123. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  124. package/dist/shared-components/esm/onto-repository-info.entry.js +1 -1
  125. package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
  126. package/dist/shared-components/esm/shared-components.js +1 -1
  127. package/dist/shared-components/shared-components/p-0b5b6ae2.entry.js +1 -0
  128. package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js} +1 -1
  129. package/dist/shared-components/shared-components/p-6bb1e333.entry.js +1 -0
  130. package/dist/shared-components/shared-components/p-b3e34efa.entry.js +1 -0
  131. package/dist/shared-components/shared-components/p-e07c6668.entry.js +1 -0
  132. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  133. package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +12 -0
  134. package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +3 -0
  135. package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts +4 -0
  136. package/dist/shared-components/types/components/onto-repository-selector/selector-item.d.ts +1 -1
  137. package/dist/workbench/workbench/216.84774aeec22c9e0d.js +1 -0
  138. package/dist/workbench/workbench/{937.c2bb6617eb67b694.js → 272.720044b4ff7554f5.js} +1 -1
  139. package/dist/workbench/workbench/472.eb8524a286baa5e7.js +1 -0
  140. package/dist/workbench/workbench/workbenchApp.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/28944.50f6cc0b531327c3210e.bundle.js +0 -2
  143. package/dist/28944.50f6cc0b531327c3210e.bundle.js.map +0 -1
  144. package/dist/43239.520a41f9703920195281.bundle.js +0 -2
  145. package/dist/43239.520a41f9703920195281.bundle.js.map +0 -1
  146. package/dist/44906.732540785071c9088916.bundle.js +0 -2
  147. package/dist/44906.732540785071c9088916.bundle.js.map +0 -1
  148. package/dist/7714.ccdf9a75e387a85cb980.bundle.js +0 -2
  149. package/dist/7714.ccdf9a75e387a85cb980.bundle.js.map +0 -1
  150. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js +0 -2
  151. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js.map +0 -1
  152. package/dist/legacyWorkbench.ec3c7f8dd4342d75e489.js +0 -3
  153. package/dist/main.519bdd021ad27b8f7c2a.js.map +0 -1
  154. package/dist/shared-components/shared-components/p-388d4524.entry.js +0 -1
  155. package/dist/shared-components/shared-components/p-78c03a43.entry.js +0 -1
  156. package/dist/shared-components/shared-components/p-8952636b.entry.js +0 -1
  157. package/dist/shared-components/shared-components/p-b6fa9b0a.entry.js +0 -1
  158. package/dist/workbench/workbench/216.1d0b714ace0ab8e4.js +0 -1
  159. package/dist/workbench/workbench/472.d4b7ec12b3627aee.js +0 -1
  160. /package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.LICENSE.txt → legacyWorkbench.d8ed4eb634c5be181feb.js.LICENSE.txt} +0 -0
  161. /package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"7257.1990b2e548feb7975f39.bundle.js","mappings":"iJAGA,MAAMA,EACFC,WAAAA,GAIIC,KAAKC,wBAA0B,QACnC,CACA,QAAIC,GACA,OAAOF,KAAKG,KAChB,CACAC,OAAAA,CAAQC,GA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,iBAAhBuQ,IACPA,EAAcxU,KAAKmd,sBAAsBD,EAAQjZ,IAE9CuQ,CACX,CAUA2I,qBAAAA,CAAsBD,EAAQjZ,GAC1B,IAAKA,EACD,OAEJ,IAAImZ,EAAOnZ,EAAIoZ,MAAM,KACrB,OAAOrd,KAAKsd,eAAeJ,EAAQE,EACvC,CASAE,cAAAA,CAAeC,EAAYH,GAEvB,IAAKA,IAASG,EACV,OAEJ,MAAMC,EAAoBD,EAAWH,EAAKR,OAAO,EAAG,GAAG,IACvD,OAAoB,IAAhBQ,EAAKra,OACEya,EAEsB,iBAAtBA,EAEHJ,EAAKra,OAAS,EACP/C,KAAKsd,eAAeE,EAAmBJ,GAE3CI,OALX,CAQJ,CACAR,eAAAA,CAAgBxI,EAAamI,GACzB,OAAIA,EACOA,EAAWc,OAElB,CAACjJ,EAAakJ,IAAcvB,EAAkCwB,WAAWnJ,EAAakJ,GAAYlJ,GAE/FA,CACX,CACA,iBAAOmJ,CAAWnJ,EAAakJ,GAC3B,OAAOA,EAAYlJ,EAAY6I,MAAM,KAAKK,EAAUzZ,SAAS0P,KAAK+J,EAAUrd,OAASmU,CACzF,CACAoJ,yBAAAA,GACIrM,OAAOsM,KAAK7d,KAAKoc,6BAA6BnL,QAAS6M,KACjC9d,KAAKoc,4BAA4B0B,IAAc,IACvD7M,QAASjM,GAAaA,EAASgJ,SAAShO,KAAK8M,UAAUgR,EAAW9Y,EAAS2X,eAE7F,CACAJ,uBAAAA,GACIvc,KAAK+d,2BAA6B/d,KAAKmG,uBAAuB6X,wBAAyBd,IAC/EA,IACAld,KAAK+c,cAAgBG,EACrBld,KAAK4d,8BAGjB,CACAK,OAAAA,GACQje,KAAK+d,4BACL/d,KAAK+d,4BAEb,EAEJ,MAAMlR,EAAqB,IAAIsP,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-WQYHXM0G.js","webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-alignment-DghTf3pJ.js","webpack://root-config/./packages/shared-components/dist/esm/html-util-BSmKhkm5.js","webpack://root-config/./packages/shared-components/dist/esm/logger-provider-BIkLC5Zf.js","webpack://root-config/./packages/shared-components/dist/esm/onto-language-selector_9.entry.js","webpack://root-config/./packages/shared-components/dist/esm/onto-tooltip-placement-D_J2-9CG.js","webpack://root-config/./packages/shared-components/dist/esm/resource-search-constants-CNWCaedF.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-BIRn4Afp.js"],"sourcesContent":["/**\n * Model that holds a dropdown item configuration.\n */\nclass DropdownItem {\n constructor() {\n /**\n * Specifies the events that trigger the dropdown item tooltip to appear. Multiple event names should be separated by spaces.\n */\n this._dropdownTooltipTrigger = 'manual';\n }\n get name() {\n return this._name;\n }\n setName(value) {\n this._name = value;\n return this;\n }\n get nameLabelKey() {\n return this._nameLabelKey;\n }\n setNameLabelKey(value) {\n this._nameLabelKey = value;\n return this;\n }\n get tooltip() {\n return this._tooltip;\n }\n setTooltip(value) {\n this._tooltip = value;\n return this;\n }\n get tooltipLabelKey() {\n return this._tooltipLabelKey;\n }\n setTooltipLabelKey(value) {\n this._tooltipLabelKey = value;\n return this;\n }\n get iconClass() {\n return this._iconClass;\n }\n setIconClass(value) {\n this._iconClass = value;\n return this;\n }\n get iconImage() {\n return this._iconImage;\n }\n setIconImage(value) {\n this._iconImage = value;\n return this;\n }\n get value() {\n return this._value;\n }\n setValue(value) {\n this._value = value;\n return this;\n }\n get dropdownTooltipTrigger() {\n return this._dropdownTooltipTrigger;\n }\n setDropdownTooltipTrigger(value) {\n this._dropdownTooltipTrigger = value;\n return this;\n }\n get cssClass() {\n return this._cssClass;\n }\n setCssClass(value) {\n this._cssClass = value;\n return this;\n }\n get guideSelector() {\n return this._guideSelector;\n }\n setGuideSelector(value) {\n this._guideSelector = value;\n return this;\n }\n}\n\nexport { DropdownItem as D };\n","var DropdownItemAlignment;\n(function (DropdownItemAlignment) {\n DropdownItemAlignment[\"RIGHT\"] = \"right\";\n DropdownItemAlignment[\"LEFT\"] = \"left\";\n})(DropdownItemAlignment || (DropdownItemAlignment = {}));\n\nexport { DropdownItemAlignment as D };\n","const INTERACTIVE_ELEMENTS_SELECTOR = 'button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nclass HtmlUtil {\n /**\n * Setter for the document body overflow property.\n *\n * @param newOverflow - the new overflow value.\n *\n * @return the old overflow value.\n */\n static setDocumentBodyOverflow(newOverflow) {\n const oldOverflow = document.body.style.overflow;\n document.body.style.overflow = newOverflow;\n return oldOverflow;\n }\n /**\n * Hides the document body overflow.\n *\n * @return the value of overflow before set it to hidden.\n */\n static hideDocumentBodyOverflow() {\n return HtmlUtil.setDocumentBodyOverflow('hidden');\n }\n /**\n * Focuses the next element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusNextElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = HtmlUtil.getFocusableElements(parentElement, activeElementSelector);\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const nextIndex = (currentIndex + 1) % focusableElements.length;\n const nextActiveElement = focusableElements[nextIndex];\n if (nextActiveElement) {\n nextActiveElement.focus();\n }\n }\n }\n /**\n * Focuses the previous element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusPreviousElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = HtmlUtil.getFocusableElements(parentElement, activeElementSelector);\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const previousIndex = (currentIndex - 1 + focusableElements.length) % focusableElements.length;\n const previousActiveElement = focusableElements[previousIndex];\n if (previousActiveElement) {\n previousActiveElement.focus();\n }\n }\n }\n /**\n * Returns the elements matching the selector that can take the focus: rendered and not disabled.\n * Elements hidden with CSS (e.g. the native input inside a toggle switch) are skipped, because focusing them does\n * nothing and would keep the focus where it is.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n *\n * @return the focusable elements, in document order.\n */\n static getFocusableElements(parentElement, activeElementSelector) {\n return Array.from(parentElement.querySelectorAll(activeElementSelector))\n .filter((element) => !element.hasAttribute('disabled') && element.getClientRects().length > 0);\n }\n static preventLeavingDialog(hostElement, ev) {\n if (ev.key === 'Tab') {\n ev.preventDefault();\n if (ev.shiftKey) {\n HtmlUtil.focusPreviousElement(hostElement);\n }\n else {\n HtmlUtil.focusNextElement(hostElement);\n }\n }\n }\n /**\n * Focuses an element in the document based on the provided CSS selector.\n *\n * @param selector - A CSS selector string used to identify the element to focus.\n * This should be a valid CSS selector that uniquely identifies the target element.\n */\n static focusElement(selector) {\n const element = document.querySelector(selector);\n element === null || element === void 0 ? void 0 : element.focus();\n }\n /**\n * Scrolls an element into the visible area of its scrollable container.\n *\n * @param elementSelector - A CSS selector string used to identify the element to scroll into view.\n * This should be a valid CSS selector that uniquely identifies the target element.\n * @param options the scroll into view options.\n */\n static scrollElementIntoView(elementSelector, options = { block: 'nearest' }) {\n const element = document.querySelector(elementSelector);\n if (!element) {\n return;\n }\n element.scrollIntoView(options);\n }\n /**\n * Waits for an element to appear in the DOM by observing DOM mutations.\n * This function creates a MutationObserver that watches for changes in the document body\n * and resolves with the element once it becomes available.\n *\n * @param selector - A CSS selector string used to identify the element to wait for.\n * This should be a valid CSS selector that uniquely identifies the target element.\n *\n * @returns A Promise that resolves with the found HTMLElement when it appears in the DOM,\n * or rejects if an error occurs during the observation process.\n */\n static waitForElement(selector) {\n return new Promise((resolve, reject) => {\n const observer = new MutationObserver(() => {\n try {\n const element = document.querySelector(selector);\n if (element) {\n observer.disconnect();\n resolve(element);\n }\n }\n catch (error) {\n observer.disconnect();\n reject(error);\n }\n });\n observer.observe(document.body, { subtree: true, childList: true, attributes: true });\n });\n }\n}\n\nexport { HtmlUtil as H };\n","import { Loggers } from '@ontotext/workbench-api';\n\nconst MODULE_NAME = 'SharedComponents';\n/**\n * Logger for the Shared Components module.\n */\nclass LoggerProvider {\n /**\n * Gets the logger instance for the Shared Components module.\n *\n * @returns LoggerService instance for the Shared Components module\n */\n static get logger() {\n return Loggers.getLoggerInstance(MODULE_NAME);\n }\n}\n\nexport { LoggerProvider as L };\n","import { r as registerInstance, h, a as Host, d as getElement } from './index-BntG-4Sv.js';\nimport { D as DropdownItem } from './dropdown-item-WQYHXM0G.js';\nimport { ServiceProvider, LanguageService, LanguageContextService, navigateTo, OperationStatus, OperationGroup, SubscriptionList, EventService, ResourceSearchStorageService, UriUtil, SearchButtonConfig, SearchButton, openInNewTab, service, RepositoryContextService, RepositoryState, getRepositoryIdWithLocation, AutocompleteService, AutocompleteContextService, AutocompleteStorageService, OntoToastrService, NamespacesContextService, SuggestionType, SuggestionSelectedPayload, Suggestion, navigateToLoginPage, AuthenticationService, navigate, Logout } from '@ontotext/workbench-api';\nimport { D as DropdownItemAlignment } from './dropdown-item-alignment-DghTf3pJ.js';\nimport { O as OntoTooltipPlacement } from './onto-tooltip-placement-D_J2-9CG.js';\nimport { T as TranslationService, e as escapeHtml } from './translation.service-BIRn4Afp.js';\nimport { H as HtmlUtil } from './html-util-BSmKhkm5.js';\nimport { R as ResourceSearchConstants } from './resource-search-constants-CNWCaedF.js';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\nconst ontoLanguageSelectorCss = \":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}\";\n\nconst OntoLanguageSelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.languageService = ServiceProvider.get(LanguageService);\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.items = [];\n /**\n * Specifies the dropdown items' alignment. If not provided, the items and the dropdown button will be aligned to the left.\n *\n */\n this.dropdownAlignment = DropdownItemAlignment.LEFT;\n }\n connectedCallback() {\n this.onLanguageChangeSubscription = this.languageContextService.onSelectedLanguageChanged((newLanguage) => this.changeLanguage(newLanguage));\n this.items = this.getLanguageDropdownOptions();\n }\n disconnectedCallback() {\n if (this.onLanguageChangeSubscription) {\n this.onLanguageChangeSubscription();\n }\n }\n render() {\n var _a, _b;\n return (h(Host, { key: '9984b524472fd68652a3fcbcf9eea97f8a223177' }, h(\"onto-dropdown\", { key: '428a5d4f65595214dbb2ed4bef9748ffed2d870c', class: 'onto-language-selector', onValueChanged: this.valueChangeHandler(), dropdownButtonNameLabelKey: !this.currentLanguage ? 'language_selector.toggle_menu.label' : undefined, dropdownButtonName: (_a = this.currentLanguage) !== null && _a !== void 0 ? _a : undefined, dropdownButtonTooltipLabelKey: this.currentLanguage ? 'language_selector.toggle_menu.tooltip' : 'language_selector.toggle_menu.label', dropdownAlignment: (_b = this.dropdownAlignment) !== null && _b !== void 0 ? _b : DropdownItemAlignment.RIGHT, iconClass: 'ri-translate-2', items: this.items, \"auto-close\": true })));\n }\n valueChangeHandler() {\n return (newLanguage) => this.onSelectedLanguageChanged(newLanguage);\n }\n changeLanguage(newLanguage) {\n let selectedLanguage = newLanguage;\n if (!selectedLanguage) {\n selectedLanguage = this.languageService.getDefaultLanguage();\n }\n this.currentLanguage = selectedLanguage;\n this.items = this.getLanguageDropdownOptions();\n }\n onSelectedLanguageChanged(newLanguageEvent) {\n this.languageContextService.updateSelectedLanguage(newLanguageEvent.detail);\n }\n getLanguageDropdownOptions() {\n return this.languageService.getSupportedLanguages().map((locale) => {\n const iconClass = this.currentLanguage === locale ? 'ri-check-line' : '';\n return new DropdownItem()\n .setNameLabelKey(`language_selector.language.${locale}.label`)\n .setTooltipLabelKey(`language_selector.language.${locale}.tooltip.` + (this.currentLanguage === locale ? 'selected' : 'not_selected'))\n .setIconClass(iconClass)\n .setCssClass(locale)\n .setValue(locale);\n });\n }\n};\nOntoLanguageSelector.style = ontoLanguageSelectorCss;\n\nconst ontoLicenseAlertCss = \":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}\";\n\nconst OntoLicenseAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n var _a;\n return (h(Host, { key: '9bac74e245fc646cfd6b63d638ac11ffeb50754b', \"tooltip-content\": (_a = this.license) === null || _a === void 0 ? void 0 : _a.message, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-license-alert' }, h(\"button\", { key: '317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa', class: \"onto-license-alert onto-btn\", onClick: navigateTo('license') }, h(\"span\", { key: 'dd60e1800d32e32bdbb88555f34b0bb55396914b', class: \"ri-alert-line\" }), h(\"translate-label\", { key: '9f6886cf5803e3cbc8092c578152b3f8615c89cc', labelKey: 'license_alert.label' }))));\n }\n};\nOntoLicenseAlert.style = ontoLicenseAlertCss;\n\nconst ontoOperationsNotificationCss = \".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}\";\n\nconst operationGroupToIcon = {\n [OperationGroup.BACKUP]: 'ri-archive-line',\n [OperationGroup.QUERY]: 'ri-arrow-left-right-line',\n [OperationGroup.CLUSTER]: 'ri-organization-chart',\n [OperationGroup.IMPORT]: 'icon-import'\n};\nconst operationStatusToWarningClass = {\n [OperationStatus.WARNING]: 'status-warning',\n [OperationStatus.INFORMATION]: 'status-information',\n [OperationStatus.CRITICAL]: 'status-critical'\n};\nconst operationStatusToFadeClass = {\n [OperationStatus.WARNING]: 'onto-btn-fade-warning',\n [OperationStatus.CRITICAL]: 'onto-btn-fade-danger'\n};\nconst OntoOperationsNotification = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** Whether the dropdown menu is open or closed */\n this.isOpen = false;\n this.DROPDOWN_ID = 'onto-operations-dropdown';\n this.toggleDropdown = (event) => {\n event.stopPropagation();\n this.isOpen = !this.isOpen;\n };\n }\n handleOutsideClick() {\n if (this.isOpen) {\n this.isOpen = false;\n }\n }\n render() {\n var _a;\n this.operationGroups = this.activeOperations.toOperationGroupSummaryList();\n return (h(\"section\", { key: '13de6326145250d9f3459f5558e8c1791a3be35a', class: \"operations-statuses\" }, h(\"button\", { key: 'de16a9fc8c01af9ad5a82b052c838f37e7e6713f', class: `operations-statuses-dropdown-toggle ${this.isOpen ? 'open' : 'closed'} ${(_a = operationStatusToFadeClass[this.activeOperations.status]) !== null && _a !== void 0 ? _a : ''}`, ref: (el) => this.toggleButton = el, \"aria-expanded\": this.isOpen ? 'true' : 'false', \"aria-controls\": this.DROPDOWN_ID, onClick: this.toggleDropdown }, h(\"span\", { key: '857f7317826c5285797374c1871104cd23bb5216', class: \"screen-reader-only\" }, h(\"translate-label\", { key: '6710d5a90dea211a7ae801cf63ae19c1032b584a', labelKey: 'operations_notification.toggle_label' })), this.operationGroups.getItems().map((groupSummary) => (h(\"section\", { key: groupSummary.id, class: \"operation-status-header\" }, h(\"i\", { \"aria-hidden\": \"true\", class: `operation-status-icon icon-1-33x ${operationGroupToIcon[groupSummary.group]} ${operationStatusToWarningClass[groupSummary.status]}` }), groupSummary.totalOperations\n ? h(\"sup\", { class: \"running-operation-count\" }, groupSummary.totalOperations)\n : ''))), h(\"i\", { key: '3f98039d08623eccc3c03c20d7fd5c44b8f45fd4', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}`, \"aria-hidden\": \"true\" })), this.isOpen &&\n h(\"div\", { key: '622feb33220bc3d9f43525b38c16fb0c6eb9678c', class: \"operations-dropdown\", id: this.DROPDOWN_ID }, h(\"ul\", { key: 'b9d6c474ef48b72292e9985637bf6d9b6d1356ab', class: \"operations-statuses-content\" }, this.activeOperations.allRunningOperations.getItems().map((operation) => (h(\"li\", { key: operation.id }, h(\"a\", { class: `operation-status-content onto-btn no-underline ${operationStatusToWarningClass[operation.status]}`, href: operation.href, target: \"_blank\", rel: \"noopener noreferrer\" }, h(\"i\", { class: operationGroupToIcon[operation.group], \"aria-hidden\": \"true\" }), h(\"span\", { class: \"operation-status-label\" }, h(\"translate-label\", { labelKey: `operations_notification.links.${operation.labelKey}` })), h(\"span\", { class: \"operation-number\" }, operation.count\n ? h(\"span\", { class: \"operation-status-running-operation-count\" }, operation.count)\n : ''), h(\"span\", { class: \"screen-reader-only\" }, \" \", h(\"translate-label\", { labelKey: 'common.label.opens_in_new_window' }))))))))));\n }\n /**\n * Closes the dropdown on Escape and returns the focus to the toggle button.\n */\n onKeyDown(event) {\n var _a;\n if (event.key === 'Escape' && this.isOpen) {\n this.isOpen = false;\n (_a = this.toggleButton) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n get el() { return getElement(this); }\n};\nOntoOperationsNotification.style = ontoOperationsNotificationCss;\n\nconst ontoRdfSearchCss = \".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}\";\n\nconst OntoRdfSearch = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.subscriptions = new SubscriptionList();\n this.eventService = ServiceProvider.get(EventService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.RDF_CONTEXT = 'rdfSearchContext';\n this.isOpen = false;\n this.redirectUrl = UriUtil.RESOURCE_URL;\n /**\n * Set when the search area is opened, or closed with the close button or Escape. The focus moves after the next\n * render, because the search area becomes focusable and the search icon is rendered only then.\n */\n this.shouldMoveFocus = false;\n /**\n * Closes the search area and returns the focus to the search icon, which opened it.\n */\n this.closeAndFocusSearchIcon = () => {\n if (!this.isOpen) {\n return;\n }\n this.isOpen = false;\n this.shouldMoveFocus = true;\n };\n }\n /**\n * Handles click events on the window.\n * Closes the search area if it's open and the click is outside the search area.\n * @param event - The MouseEvent object.\n */\n handleClick(event) {\n var _a;\n if (!this.isOpen) {\n return;\n }\n if (!((_a = this.rdfSearchRef) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {\n this.isOpen = false;\n }\n }\n connectedCallback() {\n this.onSuggestionSelected();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n componentDidRender() {\n if (this.shouldMoveFocus) {\n this.shouldMoveFocus = false;\n this.moveFocus();\n }\n }\n componentDidLoad() {\n this.buttonConfig = this.createButtonConfig();\n }\n render() {\n return (h(\"section\", { key: '835735fbb93893e9c3240edabbcae5a465f1ca27', ref: (ref) => this.rdfSearchRef = ref, class: \"onto-rdf-search\", onKeyDown: this.onKeyDown(), \"data-test\": 'onto-rdf-search-component' }, h(\"section\", { key: 'fde50b68c1de8ed654af30b27d29ac9403a68f07', class: `search-area ${this.isOpen ? 'visible' : 'invisible'}`, inert: !this.isOpen }, h(\"button\", { key: '4d1f1c2ceb2893177b04dd8b24e3c877da158000', type: \"button\", onClick: this.closeAndFocusSearchIcon, \"aria-label\": TranslationService.translate('rdf_search.tooltips.close_search_area'), \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.close_search_area'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-rdf-resource-search-close-btn', class: \"close-btn\" }, h(\"i\", { key: '4f6b19632fac056ea0d4632f5f62c7e70ed7aa29', class: \"ri-close-line\", \"aria-hidden\": \"true\" })), h(\"onto-search-resource-input\", { key: '204ff32df46482664896f8ac7d2ca9f1f55cd7fd', buttonConfig: this.buttonConfig, preserveSearch: true, isHidden: !this.isOpen, \"data-test\": 'onto-rdf-resource-search-input', context: this.RDF_CONTEXT })), !this.isOpen ? h(\"onto-search-icon\", { ref: (ref) => this.searchIconRef = ref, onClick: this.setIsOpen(true) }) : ''));\n }\n /**\n * Creates a function to set the open state of the search area.\n * @param isOpen - Boolean indicating whether the search area should be open.\n */\n setIsOpen(isOpen) {\n return () => {\n this.isOpen = isOpen;\n if (this.isOpen) {\n this.shouldMoveFocus = true;\n this.loadSelectedViewFromStorage();\n }\n };\n }\n /**\n * Creates the configuration for search buttons.\n * @returns A SearchButtonConfig object with radio buttons for table and visual search.\n */\n createButtonConfig() {\n return new SearchButtonConfig({\n isRadio: true,\n buttons: [\n this.createSearchButton(ResourceSearchConstants.TABLE_VIEW, 'rdf_search.buttons.table', () => {\n this.redirectUrl = UriUtil.RESOURCE_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.TABLE_VIEW);\n }, true),\n this.createSearchButton(ResourceSearchConstants.VISUAL_VIEW, 'rdf_search.buttons.visual', () => {\n this.redirectUrl = UriUtil.GRAPHS_VISUALIZATIONS_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.VISUAL_VIEW);\n }, false),\n this.createSearchButton(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW, 'rdf_search.buttons.graph_navigator', () => {\n this.redirectUrl = UriUtil.GRAPH_NAVIGATOR_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW);\n }, false),\n ]\n });\n }\n /**\n * Creates a search button with the given parameters.\n * @param id - The id for the button.\n * @param labelKey - The key for the button's label translation.\n * @param callback - The function to be called when the button is clicked.\n * @param selected - Boolean indicating whether the button should be initially selected.\n * @returns A SearchButton object.\n */\n createSearchButton(id, labelKey, callback, selected) {\n return new SearchButton({\n label: TranslationService.translate(labelKey),\n id,\n callback,\n selected\n });\n }\n onSuggestionSelected() {\n this.subscriptions.add(this.eventService.subscribe(ResourceSearchConstants.SUGGESTION_SELECTED_EVENT, (payload) => {\n if (payload.getContext() === this.RDF_CONTEXT) {\n const redirectUrl = payload.getSuggestion().getOverrideToVisual()\n ? UriUtil.GRAPHS_VISUALIZATIONS_URL\n : this.redirectUrl;\n openInNewTab(UriUtil.createAutocompleteRedirect(redirectUrl, payload.getSuggestion().getValue()));\n }\n }));\n }\n onKeyDown() {\n return (event) => {\n if (event.key === 'Escape') {\n this.closeAndFocusSearchIcon();\n }\n else if (event.key === 'Tab') {\n this.keepFocusInSearchArea(event);\n }\n };\n }\n /**\n * Moves the focus from the last element of the open search area to the first one with Tab, and back with Shift+Tab.\n * The search area floats over the page, so the focus would otherwise go to the elements it covers.\n * It is closed with the close button, Escape or a click outside it.\n */\n keepFocusInSearchArea(event) {\n if (!this.isOpen) {\n return;\n }\n const focusableElements = Array.from(this.rdfSearchRef.querySelectorAll('.search-area button:not(:disabled), .search-area input:not(:disabled)'));\n const first = focusableElements[0];\n const last = focusableElements[focusableElements.length - 1];\n const target = event.shiftKey ? last : first;\n const edge = event.shiftKey ? first : last;\n if (document.activeElement === edge) {\n event.preventDefault();\n target.focus();\n }\n }\n /**\n * Focuses the search input, when the search area is open, or the search icon, which opened it, when it is closed.\n * The search icon is a new element after the search area is closed, so it waits for the icon to render its button.\n */\n moveFocus() {\n var _a;\n if (this.isOpen) {\n HtmlUtil.focusElement(`#${this.RDF_CONTEXT}`);\n }\n else {\n void ((_a = this.searchIconRef) === null || _a === void 0 ? void 0 : _a.componentOnReady().then((searchIcon) => { var _a; return (_a = searchIcon.querySelector('button')) === null || _a === void 0 ? void 0 : _a.focus(); }));\n }\n }\n loadSelectedViewFromStorage() {\n const selectedView = this.resourceSearchStorageService.getSelectedView();\n if (selectedView) {\n const selectedButton = this.buttonConfig.getButtons().find((button) => button.id === selectedView);\n if (selectedButton) {\n this.buttonConfig = this.buttonConfig.selectButton(selectedButton);\n }\n }\n }\n};\nOntoRdfSearch.style = ontoRdfSearchCss;\n\n/**\n *\n * A StencilJS component that renders a repository selection. The element displays the repository's icon and ID\n * if a repository is selected; otherwise, it shows a translated toggle button name. The component dynamically\n * updates the name when the translation changes.\n *\n * @example\n * <RepositorySelection repository={repository}></>\n *\n */\nconst RepositorySelection = ({ repository, defaultToggleButtonName, location }) => {\n var _a;\n const className = repository ? 'repository-selection active-repository' : 'repository-selection no-selected-repository';\n return (h(\"div\", { class: className, \"data-test\": 'repository-selection' },\n repository && h(\"i\", { class: 'button-icon icon-1-5x icon-repo-' + repository.type }),\n \"\\u00A0\",\n h(\"span\", { class: 'repository-id' }, (_a = repository === null || repository === void 0 ? void 0 : repository.id) !== null && _a !== void 0 ? _a : defaultToggleButtonName,\n location)));\n};\n\nconst ontoRepositorySelectorCss = \":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}\";\n\nconst OntoRepositorySelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.repositoryContextService = service(RepositoryContextService);\n this.subscriptions = [];\n // Both maps are keyed by the repository id with its location, because repositories in different locations can have\n // the same id.\n this.repositorySizeInfoCache = new Map();\n this.repositorySizeInfoRequests = new Map();\n this.clearRepositorySizeInfo = () => {\n this.repositorySizeInfoCache.clear();\n this.repositorySizeInfoRequests.clear();\n };\n }\n /**\n * Re-applies tooltip functions to all dropdown items when the items prop changes.\n */\n onItemsChanged(newItems) {\n if (!(newItems === null || newItems === void 0 ? void 0 : newItems.length)) {\n this.dropdownItems = [];\n return;\n }\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n connectedCallback() {\n var _a;\n this.subscriptions.push(...this.subscribeToTranslationChanged(), this.subscribeToRepositoryListChanged());\n // Manually apply tooltip functions to each item on first mount.\n if ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) {\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n else {\n this.dropdownItems = [];\n }\n }\n /**\n * Cleans up the subscriptions when the component is removed from the DOM to avoid memory leaks.\n * This method unsubscribes from both the repository change and selected repository change events.\n */\n disconnectedCallback() {\n this.subscriptions.forEach((subscription) => subscription());\n }\n render() {\n const repositorySelection = h(RepositorySelection, { key: 'c603f4a2de6beef60a38bfc297ec323810414850', repository: this.currentRepository, defaultToggleButtonName: this.getButtonLabel(), location: this.getLocation() });\n return (h(Host, { key: '207c1e246f62dba2262616a6b6a9e637fb9f7166' }, h(\"onto-dropdown\", Object.assign({ key: 'ae203784eb20a87e3e4114c29dace0427df14960', ref: (elementRef) => this.dropdownElement = elementRef, class: \"onto-repository-selector\", \"data-test\": 'onto-repository-selector', onValueChanged: this.onValueChanged(), dropdownButtonName: repositorySelection, dropdownButtonTooltip: this.createTooltipFunctionForRepository(this.currentRepository) }, (this.currentRepository ? { 'dropdownButtonGuideSelector': `repository-id-${this.currentRepository.id}` } : {}), { dropdownAlignment: DropdownItemAlignment.RIGHT, tooltipPlacement: this.tooltipAlignment, tooltipTheme: \"light-border\", tooltipClass: \"repository-selector-tooltip\", items: this.dropdownItems, onMouseLeave: this.clearRepositorySizeInfo, \"auto-close\": true }))));\n }\n attachTooltipsToItems(items) {\n if (!items) {\n return [];\n }\n return items.map((item) => item.setTooltip(this.createTooltipFunctionForRepository(item.value)));\n }\n tooltipAlignment(isOpen) {\n if (isOpen) {\n return OntoTooltipPlacement.LEFT;\n }\n return OntoTooltipPlacement.BOTTOM;\n }\n onValueChanged() {\n return (valueChangeEvent) => this.onRepositoryChanged(valueChangeEvent.detail);\n }\n /**\n * Returns an async function that generates HTML tooltip content for the given repository.\n */\n createTooltipFunctionForRepository(repository) {\n return () => {\n if (!repository) {\n return Promise.resolve('');\n }\n if (repository.state !== RepositoryState.RUNNING) {\n return this.buildRepositoryTooltipHtml(repository);\n }\n const repositoryKey = getRepositoryIdWithLocation(repository);\n const repositorySizeInfo = this.repositorySizeInfoCache.get(repositoryKey);\n if (repositorySizeInfo) {\n return this.buildRepositoryTooltipHtml(repository, repositorySizeInfo);\n }\n if (!this.repositorySizeInfoRequests.has(repositoryKey)) {\n this.fetchRepositorySizeInfo(repository);\n }\n return this.buildRepositoryTooltipHtml(repository, undefined, true);\n };\n }\n fetchRepositorySizeInfo(repository) {\n const repositoryKey = getRepositoryIdWithLocation(repository);\n const repositorySizeInfoRequest = this.repositorySizeInfoFetcher(repository);\n this.repositorySizeInfoRequests.set(repositoryKey, repositorySizeInfoRequest);\n repositorySizeInfoRequest.then((repositorySizeInfo) => {\n this.repositorySizeInfoCache.set(repositoryKey, repositorySizeInfo);\n }).catch((err) => {\n LoggerProvider.logger.error('Failed to fetch repository size.', err);\n }).finally(() => {\n var _a;\n // The map may have been emptied in the meantime and may hold a newer request for the same repository.\n if (this.repositorySizeInfoRequests.get(repositoryKey) === repositorySizeInfoRequest) {\n this.repositorySizeInfoRequests.delete(repositoryKey);\n }\n void ((_a = this.dropdownElement) === null || _a === void 0 ? void 0 : _a.refreshButtonTooltip());\n });\n }\n /**\n * Builds the HTML string used as tooltip content for a repository. The content is rendered by the\n * <code>onto-repository-info</code> component, which gets its data as escaped JSON attributes.\n */\n buildRepositoryTooltipHtml(repository, repositorySizeInfo, isLoadingRepositorySize = false) {\n const attributes = [\n `repository=\"${escapeHtml(JSON.stringify(repository))}\"`,\n `permission=\"${escapeHtml(this.getRepositoryPermission(repository))}\"`\n ];\n if (isLoadingRepositorySize) {\n attributes.push('loading=\"true\"');\n }\n if (repositorySizeInfo) {\n attributes.push(`size-info=\"${escapeHtml(JSON.stringify(repositorySizeInfo))}\"`);\n }\n return Promise.resolve(`<onto-repository-info ${attributes.join(' ')}></onto-repository-info>`);\n }\n /**\n * Forces an immediate button tooltip refresh when the repository list changes.\n */\n subscribeToRepositoryListChanged() {\n return this.repositoryContextService.onRepositoryListChanged(() => {\n var _a;\n this.clearRepositorySizeInfo();\n void ((_a = this.dropdownElement) === null || _a === void 0 ? void 0 : _a.refreshButtonTooltip());\n });\n }\n subscribeToTranslationChanged() {\n return [\n TranslationService.onTranslate('repository-selector.btn.toggle', [], (toggleButtonName) => {\n this.defaultToggleButtonName = toggleButtonName;\n }),\n TranslationService.onTranslate('repository-selector.btn.no_repositories', [], (noRepositoriesButtonMessage) => {\n this.noRepositoriesButtonMessage = noRepositoriesButtonMessage;\n })\n ];\n }\n onRepositoryChanged(selectedRepository) {\n this.repositoryContextService.updateSelectedRepository(selectedRepository);\n }\n getLocation() {\n var _a;\n if (!((_a = this.currentRepository) === null || _a === void 0 ? void 0 : _a.location)) {\n return '';\n }\n return `@${UriUtil.shortenIri(this.currentRepository.location)}`;\n }\n getButtonLabel() {\n var _a;\n return ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length)\n ? this.defaultToggleButtonName\n : this.noRepositoriesButtonMessage;\n }\n static get watchers() { return {\n \"items\": [\"onItemsChanged\"]\n }; }\n};\nOntoRepositorySelector.style = ontoRepositorySelectorCss;\n\nconst ontoSearchIconCss = \".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}\";\n\nconst OntoSearchIcon = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.tooltipKey = 'rdf_search.labels.search';\n this.subscriptions = new SubscriptionList();\n }\n // ========================\n // Lifecycle methods\n // ========================\n connectedCallback() {\n this.onTooltipChange();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n // The click handler is set on the host by the parent component; the click of the button bubbles to it.\n return (h(\"button\", { key: '7351e75e718af25b9be67add8a7722cdae66fffe', type: \"button\", class: \"onto-search-icon\", \"aria-label\": this.tooltipLabel, \"tooltip-content\": this.tooltipLabel, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM }, h(\"i\", { key: 'b81860bf830286b16a0d2b1b9d63d4af59a7fbbb', class: \"ri-search-line ri-lg\", \"aria-hidden\": \"true\" })));\n }\n onTooltipChange() {\n this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey, [], (translation) => this.tooltipLabel = translation));\n }\n};\nOntoSearchIcon.style = ontoSearchIconCss;\n\nconst ontoSearchResourceInputCss = \".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}\";\n\nconst OntoSearchResourceInput = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.autocompleteService = ServiceProvider.get(AutocompleteService);\n this.autocompleteContextService = ServiceProvider.get(AutocompleteContextService);\n this.autocompleteStorageService = ServiceProvider.get(AutocompleteStorageService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.toastrService = ServiceProvider.get(OntoToastrService);\n this.eventService = ServiceProvider.get(EventService);\n this.namespaceContextService = ServiceProvider.get(NamespacesContextService);\n this.repositoryContextService = ServiceProvider.get(RepositoryContextService);\n this.subscriptions = new SubscriptionList();\n this.autocompleteWarningShown = false;\n /** Whether the rdf resource pre-search validation should be skipped. */\n this.skipValidation = false;\n /**\n * Whether the search component is currently hidden. Can be shown/hidden in the RDF search\n */\n this.isHidden = false;\n /**\n * Whether the autocomplete setting is enabled.\n */\n this.isAutocompleteEnabled = false;\n /**\n * Updates the local inputValue with the html input element's value.'\n */\n this.handleInput = (event) => {\n const target = event.target;\n if (!target.value) {\n this.clearInput();\n return;\n }\n this.setInputValue(target.value);\n this.checkForAutocomplete();\n };\n /**\n * Clears the search input field.\n */\n this.clearInput = () => {\n this.setInputValue('');\n if (this.preserveSearch) {\n this.resourceSearchStorageService.clearStoredSearch();\n }\n };\n /**\n * Clears the search input field and returns the focus to it, because the clear button disappears.\n */\n this.clearInputAndFocus = () => {\n this.clearInput();\n this.inputRef.focus();\n };\n this.onKeyDown = (event) => {\n switch (event.key) {\n case 'Enter':\n this.onEnter(event);\n break;\n case 'Escape':\n this.onEscape();\n break;\n case 'ArrowUp':\n this.onArrowUp(event);\n break;\n case 'ArrowDown':\n this.onArrowDown(event);\n break;\n }\n };\n }\n onVisibilityChange(isHidden) {\n var _a;\n if (isHidden) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n }\n else {\n this.setInputValue(this.resourceSearchStorageService.getInputValue());\n }\n }\n connectedCallback() {\n this.onAutocompleteEnabledChange();\n this.onRepositoryChange();\n this.onNamespaceChange();\n this.loadInputFromStorage();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n var _a, _b, _c, _d;\n const searchLabel = TranslationService.translate('rdf_search.labels.search');\n const listboxId = `${this.context}-suggestions`;\n const hintId = `${this.context}-hint`;\n const suggestions = (_b = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.suggestions.getItems()) !== null && _b !== void 0 ? _b : [];\n const hoveredIndex = suggestions.findIndex((suggestion) => suggestion.isHovered());\n return (h(\"section\", { key: 'cda724e2a03c25a7186eff04130da0e38b77f7d8', class: \"search-resources-input\" }, h(\"div\", { key: '96bc8785ddecf838c7564d60d86e1ea224a466fe', class: \"input-row\" }, h(\"span\", { key: '9b6f94fb65209d461910ea79505336e6673d16df', class: \"input-wrapper\" }, h(\"input\", { key: '3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32', value: this.inputValue, id: this.context, type: \"text\", role: \"combobox\", \"aria-label\": searchLabel, \"aria-autocomplete\": \"list\", \"aria-expanded\": suggestions.length ? 'true' : 'false', \"aria-controls\": listboxId, \"aria-activedescendant\": hoveredIndex >= 0 ? this.getSuggestionId(hoveredIndex) : undefined, \"aria-describedby\": hintId, autocomplete: \"off\", placeholder: `${searchLabel}...`, ref: (ref) => this.inputRef = ref, onKeyDown: this.onKeyDown, \"data-test\": this.context, onInput: this.handleInput }), ((_c = this.inputValue) === null || _c === void 0 ? void 0 : _c.length) ?\n h(\"button\", { type: \"button\", onClick: this.clearInputAndFocus, \"aria-label\": TranslationService.translate('rdf_search.tooltips.clear'), \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.clear'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, class: \"clear-input\" }, h(\"i\", { class: \"ri-close-line\", \"aria-hidden\": \"true\" })) : ''), (_d = this.buttonConfig) === null || _d === void 0 ? void 0 :\n _d.getButtons().getItems().map((button) => (h(\"button\", { key: button.label, type: \"button\", \"aria-pressed\": button.selected ? 'true' : 'false', onClick: this.handleButtonClick(button), class: `onto-btn ${button.selected ? 'selected' : ''}` }, button.label)))), h(\"span\", { key: 'ef80fe089557adfd223b07c3d732bf0d9a5367fe', class: \"hint\", id: hintId }, TranslationService.translate('rdf_search.labels.hint')), h(\"div\", { key: '1eaa7699192a2a4fd1469e03045a5af09a891600', class: \"autocomplete-results-wrapper\", id: listboxId, role: \"listbox\", tabindex: -1, \"aria-label\": searchLabel, \"data-test\": 'onto-autocomplete-results' }, suggestions.map((suggestion, index) => (h(\"p\", { key: suggestion.getId(), id: this.getSuggestionId(index), role: \"option\", \"aria-selected\": suggestion.isHovered() ? 'true' : 'false', onClick: this.onSuggestionClick(suggestion), \"data-test\": 'onto-autocomplete-suggestion', onMouseMove: this.hoverSuggestion(suggestion), class: `${suggestion.isHovered() ? 'hovered' : ''} ${suggestion.isSelected() ? 'selected' : ''}`, innerHTML: suggestion.getDescription() }))))));\n }\n getSuggestionId(index) {\n return `${this.context}-suggestion-${index}`;\n }\n /**\n * Handles the click event for a search button.\n * If the button configuration is set to radio mode and the clicked button is not selected,\n * it deselects all other buttons and selects the clicked one.\n * @param {SearchButton} button - The button that was clicked.\n */\n handleButtonClick(button) {\n return () => this.buttonConfig = this.buttonConfig.selectButton(button);\n }\n loadAutocompleteResults() {\n var _a;\n if (!this.inputValue) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n return;\n }\n if (this.isAutocompleteEnabled) {\n this.autocompleteService.search(this.inputValue)\n .then((searchResult) => {\n this.onResultsReceived(searchResult);\n });\n }\n }\n hoverSuggestion(suggestion) {\n return () => this.searchResult = this.searchResult.hoverSuggestion(suggestion);\n }\n onAutocompleteEnabledChange() {\n this.isAutocompleteEnabled = this.autocompleteStorageService.isEnabled();\n this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged((enabled) => {\n this.isAutocompleteEnabled = enabled !== null && enabled !== void 0 ? enabled : this.isAutocompleteEnabled;\n }));\n }\n checkForAutocomplete() {\n if (this.inputValue.length > 0 && !this.isAutocompleteEnabled && !this.autocompleteWarningShown) {\n this.autocompleteWarningShown = true;\n const message = TranslationService.translate('rdf_search.toasts.autocomplete_is_off');\n this.toastrService.warning(`<a class=\"no-underline\" style=\"font-weight: var(--gw-label-base-medium-font-weight)\">${message}</a>`, {\n onClick: navigateTo('autocomplete'),\n removeOnClick: true\n });\n }\n }\n onSuggestionClick(suggestion) {\n return (event) => {\n suggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.searchRdfResource(suggestion);\n };\n }\n searchRdfResource(suggestion) {\n if (suggestion.getType() === SuggestionType.PREFIX) {\n this.expandPrefix(suggestion);\n }\n else {\n this.notifyRdfResourceSelected(suggestion);\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setLastSelected(suggestion);\n }\n }\n }\n notifyRdfResourceSelected(suggestion) {\n var _a;\n this.searchResult = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.selectSuggestion(suggestion);\n void this.eventService.emit({\n NAME: ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,\n payload: new SuggestionSelectedPayload(suggestion, this.context)\n });\n }\n expandPrefix(suggestion) {\n this.setInputValue(this.namespaces.getByPrefix(suggestion.getValue()));\n this.inputRef.focus();\n }\n setInputValue(value) {\n this.inputValue = value;\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setInputValue(this.inputValue);\n }\n this.loadAutocompleteResults();\n }\n onRepositoryChange() {\n this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(() => {\n this.autocompleteWarningShown = false;\n }));\n }\n onNamespaceChange() {\n this.subscriptions.add(this.namespaceContextService.onNamespacesChanged((namespaces) => {\n this.namespaces = namespaces;\n }));\n }\n onEnter(event) {\n var _a;\n let selectedSuggestion = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.getHoveredSuggestion();\n if (!selectedSuggestion) {\n selectedSuggestion = new Suggestion({\n value: UriUtil.removeAngleBrackets(this.inputValue),\n type: SuggestionType.URI\n });\n }\n selectedSuggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.validateAndSearch(selectedSuggestion);\n }\n onArrowUp(event) {\n if (!this.searchResult) {\n return;\n }\n this.searchResult = this.searchResult.hoverPreviousSuggestion();\n this.displaySuggestion(event);\n }\n onArrowDown(event) {\n if (!this.searchResult) {\n return;\n }\n this.searchResult = this.searchResult.hoverNextSuggestion();\n this.displaySuggestion(event);\n }\n displaySuggestion(event) {\n event.preventDefault();\n // Update the input directly, because the value should only be displayed,\n // without triggering a new search and altering the autocomplete results\n this.inputRef.value = this.searchResult.getHoveredSuggestion().getValue();\n this.scrollToSuggestionBySelector('p.hovered');\n }\n getSuggestionValue(suggestion) {\n return suggestion.getType() === SuggestionType.PREFIX\n ? this.namespaces.getByPrefix(suggestion.getValue())\n : suggestion.getValue();\n }\n scrollToSuggestionBySelector(selector, options) {\n HtmlUtil.waitForElement(selector)\n .then(() => {\n HtmlUtil.scrollElementIntoView(selector, options);\n });\n }\n validateAndSearch(suggestion) {\n if (!this.skipValidation) {\n if (!suggestion.getValue()) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.empty_input'));\n return;\n }\n if (!UriUtil.isValidUri(this.getSuggestionValue(suggestion))) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.invalid_uri'));\n return;\n }\n }\n this.searchRdfResource(suggestion);\n }\n onEscape() {\n if (this.preserveSearch) {\n return;\n }\n this.clearInput();\n }\n loadInputFromStorage() {\n if (!this.preserveSearch) {\n return;\n }\n this.inputValue = this.resourceSearchStorageService.getInputValue() || '';\n }\n onResultsReceived(searchResult) {\n const lastSelected = searchResult === null || searchResult === void 0 ? void 0 : searchResult.getByValue(this.resourceSearchStorageService.getLastSelectedValue());\n if (lastSelected && this.preserveSearch) {\n // No need to reassign twice in the same thread tick. One will trigger the re-render\n searchResult.hoverSuggestion(lastSelected);\n this.searchResult = searchResult.selectSuggestion(lastSelected);\n this.scrollToSuggestionBySelector('p.hovered.selected', { block: 'start' });\n }\n else {\n this.searchResult = searchResult.hoverFirstSuggestion();\n this.scrollToSuggestionBySelector('p.hovered', { block: 'start' });\n }\n }\n static get watchers() { return {\n \"isHidden\": [\"onVisibilityChange\"]\n }; }\n};\nOntoSearchResourceInput.style = ontoSearchResourceInputCss;\n\nconst ontoUserLoginCss = \".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}\";\n\nconst OntoUserLogin = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n navigateToLogin() {\n return (event) => {\n event.preventDefault();\n navigateToLoginPage();\n };\n }\n render() {\n return (h(\"section\", { key: '0e775e390fe6d9733fbea06cc9b3137350be0a1a', class: \"onto-user-login\" }, h(\"button\", { key: '9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc', onClick: this.navigateToLogin() }, h(\"i\", { key: 'c646277a5770c03535720d4117645da70a240fe8', class: \"ri-arrow-right-circle-line\" }), h(\"translate-label\", { key: 'a063b7d24946cbe3fbb6788beebcc0260d995e0b', class: \"user-login-label label-base-regular\", labelKey: \"user_menu.login\" }))));\n }\n};\nOntoUserLogin.style = ontoUserLoginCss;\n\nconst ontoUserMenuCss = \".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}\";\n\nconst OntoUserMenu = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.authenticationService = service(AuthenticationService);\n this.eventService = service(EventService);\n this.DROPDOWN_ID = 'onto-user-menu-dropdown';\n /**\n * Navigates to the settings page and closes the dropdown.\n */\n this.openMySettings = (event) => {\n event.preventDefault();\n this.isOpen = false;\n navigate('settings');\n };\n /**\n * Log out the current user.\n */\n this.logout = () => {\n this.isOpen = false;\n void this.eventService.emit(new Logout());\n };\n /**\n * Toggles the dropdown menu's open state.\n *\n * @returns A function that toggles the `isOpen` state between true and false.\n */\n this.toggleDropdown = () => {\n this.isOpen = !this.isOpen;\n };\n /**\n * Closes the dropdown if the user clicks outside the component.\n */\n this.handleOutsideClick = (event) => {\n if (this.isOpen && !this.hostElement.contains(event.target)) {\n this.isOpen = false;\n }\n };\n }\n connectedCallback() {\n document.addEventListener('click', this.handleOutsideClick);\n }\n disconnectedCallback() {\n document.removeEventListener('click', this.handleOutsideClick);\n }\n render() {\n return (h(\"section\", { key: '8359f0471e5bcda114532346c2cac8fa858e1779', class: 'onto-user-menu' }, h(\"div\", { key: '69185865e40b622bd0e7081b98cafd07c309508f', class: 'dropdown-toggle-wrapper' }, h(\"button\", { key: '4140088a554351f66ac40d9a5c04e10af1bff73b', class: `onto-user-menu-toggle label-base-regular ${this.isOpen ? 'open' : ''}`, ref: (el) => this.toggleButton = el, \"aria-expanded\": this.isOpen ? 'true' : 'false', \"aria-controls\": this.DROPDOWN_ID, onClick: this.toggleDropdown }, h(\"i\", { key: 'bb463c88f7f365174c8ae45c091298883b046236', class: 'ri-user-line ri-lg', \"aria-hidden\": 'true' }), h(\"span\", { key: '415290f39545158b6eb4e3b9e29ac35647eda0a7', class: 'username' }, this.user.username), h(\"i\", { key: '58bbdd73b5275b2f565a6bf6fb8408b884c459f5', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}`, \"aria-hidden\": 'true' })), this.isOpen ?\n h(\"section\", { class: 'onto-user-menu-dropdown', id: this.DROPDOWN_ID }, h(\"a\", { class: 'onto-user-menu-item label-base-regular', href: 'settings', onClick: this.openMySettings }, h(\"translate-label\", { labelKey: 'user_menu.my_settings' })), !this.authenticationService.isExternalUser() ?\n h(\"button\", { class: 'onto-user-menu-item label-base-regular', onClick: this.logout }, h(\"translate-label\", { labelKey: 'user_menu.logout' })) : '') : '')));\n }\n /**\n * Closes the dropdown on Escape and returns the focus to the toggle button.\n */\n onKeyDown(event) {\n var _a;\n if (event.key === 'Escape' && this.isOpen) {\n this.isOpen = false;\n (_a = this.toggleButton) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n get hostElement() { return getElement(this); }\n};\nOntoUserMenu.style = ontoUserMenuCss;\n\nexport { OntoLanguageSelector as onto_language_selector, OntoLicenseAlert as onto_license_alert, OntoOperationsNotification as onto_operations_notification, OntoRdfSearch as onto_rdf_search, OntoRepositorySelector as onto_repository_selector, OntoSearchIcon as onto_search_icon, OntoSearchResourceInput as onto_search_resource_input, OntoUserLogin as onto_user_login, OntoUserMenu as onto_user_menu };\n","var OntoTooltipPlacement;\n(function (OntoTooltipPlacement) {\n OntoTooltipPlacement[\"LEFT\"] = \"left\";\n OntoTooltipPlacement[\"RIGHT\"] = \"right\";\n OntoTooltipPlacement[\"TOP\"] = \"top\";\n OntoTooltipPlacement[\"BOTTOM\"] = \"bottom\";\n OntoTooltipPlacement[\"AUTO\"] = \"auto\";\n})(OntoTooltipPlacement || (OntoTooltipPlacement = {}));\n\nexport { OntoTooltipPlacement as O };\n","var ResourceSearchConstants;\n(function (ResourceSearchConstants) {\n ResourceSearchConstants[\"SUGGESTION_SELECTED_EVENT\"] = \"suggestion-selected-event\";\n ResourceSearchConstants[\"TABLE_VIEW\"] = \"table\";\n ResourceSearchConstants[\"VISUAL_VIEW\"] = \"visual\";\n ResourceSearchConstants[\"GRAPH_NAVIGATOR_VIEW\"] = \"graph-navigator\";\n ResourceSearchConstants[\"RDF_SEARCH_ICON_CLICKED\"] = \"rdfSearchIconClicked\";\n})(ResourceSearchConstants || (ResourceSearchConstants = {}));\n\nexport { ResourceSearchConstants as R };\n","import { ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\n/**\n * Escapes the characters that have a special meaning in HTML, so that the text can be written into an HTML string,\n * as content or as an attribute value.\n *\n * @param text The text to escape.\n * @returns The escaped text, or an empty string if no text is provided.\n */\nfunction escapeHtml(text) {\n if (!text) {\n return '';\n }\n return text\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&#039;');\n}\n/**\n * Checks whether the focus is lost to the body.\n *\n * @returns True if the focus is lost to the body, false otherwise.\n */\nfunction isFocusLost() {\n const activeElement = document.activeElement;\n return !activeElement || activeElement === document.body;\n}\n\n/**\n * Service responsible for translation operations in the component.\n */\nclass TranslationServiceClassDefinition {\n constructor() {\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.translationChangedObservers = {};\n this.logger = LoggerProvider.logger;\n // log with background color\n this.defaultBundle = this.languageContextService.getDefaultBundle();\n this.subscribeToBundleChange();\n }\n /**\n * Translates the <code>messageLabelKey</code> with <code>translationParameter</code> and call <code>translationCallback</code> with translation of current language.\n * The <code>translationCallback</code> is called upon subscription and whenever the selected language is changed.\n *\n * @param messageLabelKey - The label key for the translation.\n * @param translationParameter - Parameters, if needed, for translation.\n * @param translationCallback - A function to be called when translating the `messageLabelKey`.\n * @returns A function that, when called, unsubscribes the provided callback from further translation updates.\n */\n onTranslate(messageLabelKey, translationParameter = [], translationCallback = () => { }) {\n this.translationChangedObservers[messageLabelKey] = this.translationChangedObservers[messageLabelKey] || [];\n const observer = { parameters: translationParameter, callback: translationCallback };\n this.translationChangedObservers[messageLabelKey].push(observer);\n translationCallback(this.translate(messageLabelKey, translationParameter));\n return () => {\n const index = this.translationChangedObservers[messageLabelKey].indexOf(observer);\n if (index !== -1) {\n this.translationChangedObservers[messageLabelKey].splice(index, 1);\n }\n };\n }\n /**\n * Translates the provided key using the currently selected language by applying the parameters if\n * provided.\n * @param key The key for the label which needs to be translated.\n * @param parameters Optional parameters which to be applied during the translation.\n */\n translate(key, parameters) {\n return this.translateInLocale(key, parameters);\n }\n /**\n * Translates a given key into the specified locale. If parameters are provided,\n * they will be applied to the translation.\n *\n * @param key - The translation key, which can be dot-separated for nested translations.\n * @param parameters - Optional parameters to be substituted into the translation string.\n * @returns The translated string with parameters applied if available, or the key itself if not found.\n */\n translateInLocale(key, parameters) {\n // Attempt to retrieve the translation from the specified locale's bundle.\n let translation = this.translateFromBundle(this.currentBundle, key);\n // If not found, fall back to the default language bundle.\n if (!translation) {\n translation = this.translateFromBundle(this.defaultBundle, key);\n }\n // If translation was found, apply any parameters provided and return the result.\n if (translation) {\n translation = this.applyParameters(translation, parameters);\n return sanitizeHTML(translation);\n }\n this.logger.warn(`Missing translation for key: [${key}]`);\n return key;\n }\n /**\n * Retrieves a translation from a specified translation bundle using the given key.\n * If the key represents a nested JSON path, it attempts to resolve the key as such.\n *\n * @param bundle - The translation bundle for the specified locale.\n * @param key - The key to translate, which may be a simple key or dot-separated for nested keys.\n * @returns The translation string if found, or `undefined` if not available.\n */\n translateFromBundle(bundle, key) {\n if (!bundle) {\n return undefined;\n }\n // Try to retrieve the translation directly if it is defined as a whole string,\n // for instance as \"some_function.btn.label\".\n let translation = bundle[key];\n // If not found, attempt to retrieve the translation if it is defined as a JSON object.\n if (typeof translation !== 'string') {\n translation = this.translateAsJsonObject(bundle, key);\n }\n return translation;\n }\n /**\n * Resolves a nested translation key by treating it as a path in a JSON object.\n * For example, if the key is \"some.key.path\", this method will navigate through\n * the JSON object structure to retrieve the value at that path.\n *\n * @param bundle - The translation bundle containing nested keys.\n * @param key - The dot-separated key representing the path to the translation.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n translateAsJsonObject(bundle, key) {\n if (!key) {\n return;\n }\n let path = key.split('.');\n return this.getTranslation(bundle, path);\n }\n /**\n * Recursively navigates through a JSON object based on a path array to retrieve\n * a translation string. Each element in the path array represents a nested key.\n *\n * @param jsonObject - The current JSON object or nested object being searched.\n * @param path - An array representing the path to the translation, where each element is a key.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n getTranslation(jsonObject, path) {\n // Stop the recursion if path or reach the inner element\n if (!path || !jsonObject) {\n return undefined;\n }\n const jsonOrTranslation = jsonObject[path.splice(0, 1)[0]];\n if (path.length === 0) {\n return jsonOrTranslation;\n }\n if (typeof jsonOrTranslation !== 'string') {\n // continue if the inner element is not reached.\n if (path.length > 0) {\n return this.getTranslation(jsonOrTranslation, path);\n }\n return jsonOrTranslation;\n }\n return undefined;\n }\n applyParameters(translation, parameters) {\n if (parameters) {\n return parameters.reduce(\n // replace all occurrence of parameter key with parameter value.\n (translation, parameter) => TranslationServiceClassDefinition.replaceAll(translation, parameter), translation);\n }\n return translation;\n }\n static replaceAll(translation, parameter) {\n return parameter ? translation.split(`{{${parameter.key}}}`).join(parameter.value) : translation;\n }\n notifyTranslationsChanged() {\n Object.keys(this.translationChangedObservers).forEach((eventName) => {\n const observers = this.translationChangedObservers[eventName] || [];\n observers.forEach((observer) => observer.callback(this.translate(eventName, observer.parameters)));\n });\n }\n subscribeToBundleChange() {\n this.languageChangeSubscription = this.languageContextService.onLanguageBundleChanged((bundle) => {\n if (bundle) {\n this.currentBundle = bundle;\n this.notifyTranslationsChanged();\n }\n });\n }\n destroy() {\n if (this.languageChangeSubscription) {\n this.languageChangeSubscription();\n }\n }\n}\nconst TranslationService = new TranslationServiceClassDefinition();\n\nexport { TranslationService as T, escapeHtml as e, isFocusLost as i, sanitizeHTML as s };\n"],"names":["DropdownItem","constructor","this","_dropdownTooltipTrigger","name","_name","setName","value","nameLabelKey","_nameLabelKey","setNameLabelKey","tooltip","_tooltip","setTooltip","tooltipLabelKey","_tooltipLabelKey","setTooltipLabelKey","iconClass","_iconClass","setIconClass","iconImage","_iconImage","setIconImage","_value","setValue","dropdownTooltipTrigger","setDropdownTooltipTrigger","cssClass","_cssClass","setCssClass","guideSelector","_guideSelector","setGuideSelector","DropdownItemAlignment","INTERACTIVE_ELEMENTS_SELECTOR","HtmlUtil","setDocumentBodyOverflow","newOverflow","oldOverflow","document","body","style","overflow","hideDocumentBodyOverflow","focusNextElement","parentElement","activeElementSelector","focusableElements","getFocusableElements","length","currentIndex","indexOf","activeElement","nextActiveElement","focus","focusPreviousElement","previousActiveElement","Array","from","querySelectorAll","filter","element","hasAttribute","getClientRects","preventLeavingDialog","hostElement","ev","key","preventDefault","shiftKey","focusElement","selector","querySelector","scrollElementIntoView","elementSelector","options","block","scrollIntoView","waitForElement","Promise","resolve","reject","observer","MutationObserver","disconnect","error","observe","subtree","childList","attributes","LoggerProvider","logger","Loggers","getLoggerInstance","OntoLanguageSelector","hostRef","registerInstance","languageService","ServiceProvider","get","LanguageService","languageContextService","LanguageContextService","items","dropdownAlignment","LEFT","connectedCallback","onLanguageChangeSubscription","onSelectedLanguageChanged","newLanguage","changeLanguage","getLanguageDropdownOptions","disconnectedCallback","render","_a","_b","h","Host","class","onValueChanged","valueChangeHandler","dropdownButtonNameLabelKey","currentLanguage","undefined","dropdownButtonName","dropdownButtonTooltipLabelKey","RIGHT","selectedLanguage","getDefaultLanguage","newLanguageEvent","updateSelectedLanguage","detail","getSupportedLanguages","map","locale","OntoLicenseAlert","license","message","OntoTooltipPlacement","BOTTOM","onClick","navigateTo","labelKey","operationGroupToIcon","OperationGroup","BACKUP","QUERY","CLUSTER","IMPORT","operationStatusToWarningClass","OperationStatus","WARNING","INFORMATION","CRITICAL","operationStatusToFadeClass","OntoOperationsNotification","isOpen","DROPDOWN_ID","toggleDropdown","event","stopPropagation","handleOutsideClick","operationGroups","activeOperations","toOperationGroupSummaryList","status","ref","el","toggleButton","getItems","groupSummary","id","group","totalOperations","allRunningOperations","operation","href","target","rel","count","onKeyDown","getElement","OntoRdfSearch","subscriptions","SubscriptionList","eventService","EventService","resourceSearchStorageService","ResourceSearchStorageService","RDF_CONTEXT","redirectUrl","UriUtil","RESOURCE_URL","shouldMoveFocus","closeAndFocusSearchIcon","handleClick","rdfSearchRef","contains","onSuggestionSelected","unsubscribeAll","componentDidRender","moveFocus","componentDidLoad","buttonConfig","createButtonConfig","inert","type","TranslationService","translate","preserveSearch","isHidden","context","searchIconRef","setIsOpen","loadSelectedViewFromStorage","SearchButtonConfig","isRadio","buttons","createSearchButton","ResourceSearchConstants","TABLE_VIEW","setSelectedView","VISUAL_VIEW","GRAPHS_VISUALIZATIONS_URL","GRAPH_NAVIGATOR_VIEW","GRAPH_NAVIGATOR_URL","callback","selected","SearchButton","label","add","subscribe","SUGGESTION_SELECTED_EVENT","payload","getContext","getSuggestion","getOverrideToVisual","openInNewTab","createAutocompleteRedirect","getValue","keepFocusInSearchArea","first","last","edge","componentOnReady","then","searchIcon","selectedView","getSelectedView","selectedButton","getButtons","find","button","selectButton","RepositorySelection","repository","defaultToggleButtonName","location","className","OntoRepositorySelector","repositoryContextService","service","RepositoryContextService","repositorySizeInfoCache","Map","repositorySizeInfoRequests","clearRepositorySizeInfo","clear","onItemsChanged","newItems","dropdownItems","attachTooltipsToItems","push","subscribeToTranslationChanged","subscribeToRepositoryListChanged","forEach","subscription","repositorySelection","currentRepository","getButtonLabel","getLocation","Object","assign","elementRef","dropdownElement","dropdownButtonTooltip","createTooltipFunctionForRepository","tooltipPlacement","tooltipAlignment","tooltipTheme","tooltipClass","onMouseLeave","item","valueChangeEvent","onRepositoryChanged","state","RepositoryState","RUNNING","buildRepositoryTooltipHtml","repositoryKey","getRepositoryIdWithLocation","repositorySizeInfo","has","fetchRepositorySizeInfo","repositorySizeInfoRequest","repositorySizeInfoFetcher","set","catch","err","finally","delete","refreshButtonTooltip","isLoadingRepositorySize","escapeHtml","JSON","stringify","getRepositoryPermission","join","onRepositoryListChanged","onTranslate","toggleButtonName","noRepositoriesButtonMessage","selectedRepository","updateSelectedRepository","shortenIri","watchers","OntoSearchIcon","tooltipKey","onTooltipChange","tooltipLabel","translation","OntoSearchResourceInput","autocompleteService","AutocompleteService","autocompleteContextService","AutocompleteContextService","autocompleteStorageService","AutocompleteStorageService","toastrService","OntoToastrService","namespaceContextService","NamespacesContextService","autocompleteWarningShown","skipValidation","isAutocompleteEnabled","handleInput","setInputValue","checkForAutocomplete","clearInput","clearStoredSearch","clearInputAndFocus","inputRef","onEnter","onEscape","onArrowUp","onArrowDown","onVisibilityChange","searchResult","clearSuggestions","getInputValue","onAutocompleteEnabledChange","onRepositoryChange","onNamespaceChange","loadInputFromStorage","_c","_d","searchLabel","listboxId","hintId","suggestions","hoveredIndex","findIndex","suggestion","isHovered","inputValue","role","getSuggestionId","autocomplete","placeholder","onInput","handleButtonClick","tabindex","index","getId","onSuggestionClick","onMouseMove","hoverSuggestion","isSelected","innerHTML","getDescription","loadAutocompleteResults","search","onResultsReceived","isEnabled","onAutocompleteEnabledChanged","enabled","warning","removeOnClick","setOverrideToVisual","ctrlKey","metaKey","searchRdfResource","getType","SuggestionType","PREFIX","expandPrefix","notifyRdfResourceSelected","setLastSelected","selectSuggestion","emit","NAME","SuggestionSelectedPayload","namespaces","getByPrefix","onSelectedRepositoryChanged","onNamespacesChanged","selectedSuggestion","getHoveredSuggestion","Suggestion","removeAngleBrackets","URI","validateAndSearch","hoverPreviousSuggestion","displaySuggestion","hoverNextSuggestion","scrollToSuggestionBySelector","getSuggestionValue","isValidUri","lastSelected","getByValue","getLastSelectedValue","hoverFirstSuggestion","OntoUserLogin","navigateToLogin","navigateToLoginPage","OntoUserMenu","authenticationService","AuthenticationService","openMySettings","navigate","logout","Logout","addEventListener","removeEventListener","user","username","isExternalUser","sanitizeHTML","html","createElement","text","replace","isFocusLost","TranslationServiceClassDefinition","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","messageLabelKey","translationParameter","translationCallback","parameters","splice","translateInLocale","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","reduce","parameter","replaceAll","notifyTranslationsChanged","keys","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"sourceRoot":""}
1
+ {"version":3,"file":"7257.d60c8e9f046b1392ea1e.b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,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-WQYHXM0G.js","webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-alignment-DghTf3pJ.js","webpack://root-config/./packages/shared-components/dist/esm/html-util-BSmKhkm5.js","webpack://root-config/./packages/shared-components/dist/esm/logger-provider-BIkLC5Zf.js","webpack://root-config/./packages/shared-components/dist/esm/onto-language-selector_9.entry.js","webpack://root-config/./packages/shared-components/dist/esm/onto-tooltip-placement-D_J2-9CG.js","webpack://root-config/./packages/shared-components/dist/esm/resource-search-constants-CNWCaedF.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-BIRn4Afp.js"],"sourcesContent":["/**\n * Model that holds a dropdown item configuration.\n */\nclass DropdownItem {\n constructor() {\n /**\n * Specifies the events that trigger the dropdown item tooltip to appear. Multiple event names should be separated by spaces.\n */\n this._dropdownTooltipTrigger = 'manual';\n }\n get name() {\n return this._name;\n }\n setName(value) {\n this._name = value;\n return this;\n }\n get nameLabelKey() {\n return this._nameLabelKey;\n }\n setNameLabelKey(value) {\n this._nameLabelKey = value;\n return this;\n }\n get tooltip() {\n return this._tooltip;\n }\n setTooltip(value) {\n this._tooltip = value;\n return this;\n }\n get tooltipLabelKey() {\n return this._tooltipLabelKey;\n }\n setTooltipLabelKey(value) {\n this._tooltipLabelKey = value;\n return this;\n }\n get iconClass() {\n return this._iconClass;\n }\n setIconClass(value) {\n this._iconClass = value;\n return this;\n }\n get iconImage() {\n return this._iconImage;\n }\n setIconImage(value) {\n this._iconImage = value;\n return this;\n }\n get value() {\n return this._value;\n }\n setValue(value) {\n this._value = value;\n return this;\n }\n get dropdownTooltipTrigger() {\n return this._dropdownTooltipTrigger;\n }\n setDropdownTooltipTrigger(value) {\n this._dropdownTooltipTrigger = value;\n return this;\n }\n get cssClass() {\n return this._cssClass;\n }\n setCssClass(value) {\n this._cssClass = value;\n return this;\n }\n get guideSelector() {\n return this._guideSelector;\n }\n setGuideSelector(value) {\n this._guideSelector = value;\n return this;\n }\n}\n\nexport { DropdownItem as D };\n","var DropdownItemAlignment;\n(function (DropdownItemAlignment) {\n DropdownItemAlignment[\"RIGHT\"] = \"right\";\n DropdownItemAlignment[\"LEFT\"] = \"left\";\n})(DropdownItemAlignment || (DropdownItemAlignment = {}));\n\nexport { DropdownItemAlignment as D };\n","const INTERACTIVE_ELEMENTS_SELECTOR = 'button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nclass HtmlUtil {\n /**\n * Setter for the document body overflow property.\n *\n * @param newOverflow - the new overflow value.\n *\n * @return the old overflow value.\n */\n static setDocumentBodyOverflow(newOverflow) {\n const oldOverflow = document.body.style.overflow;\n document.body.style.overflow = newOverflow;\n return oldOverflow;\n }\n /**\n * Hides the document body overflow.\n *\n * @return the value of overflow before set it to hidden.\n */\n static hideDocumentBodyOverflow() {\n return HtmlUtil.setDocumentBodyOverflow('hidden');\n }\n /**\n * Focuses the next element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusNextElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = HtmlUtil.getFocusableElements(parentElement, activeElementSelector);\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const nextIndex = (currentIndex + 1) % focusableElements.length;\n const nextActiveElement = focusableElements[nextIndex];\n if (nextActiveElement) {\n nextActiveElement.focus();\n }\n }\n }\n /**\n * Focuses the previous element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusPreviousElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = HtmlUtil.getFocusableElements(parentElement, activeElementSelector);\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const previousIndex = (currentIndex - 1 + focusableElements.length) % focusableElements.length;\n const previousActiveElement = focusableElements[previousIndex];\n if (previousActiveElement) {\n previousActiveElement.focus();\n }\n }\n }\n /**\n * Returns the elements matching the selector that can take the focus: rendered and not disabled.\n * Elements hidden with CSS (e.g. the native input inside a toggle switch) are skipped, because focusing them does\n * nothing and would keep the focus where it is.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n *\n * @return the focusable elements, in document order.\n */\n static getFocusableElements(parentElement, activeElementSelector) {\n return Array.from(parentElement.querySelectorAll(activeElementSelector))\n .filter((element) => !element.hasAttribute('disabled') && element.getClientRects().length > 0);\n }\n static preventLeavingDialog(hostElement, ev) {\n if (ev.key === 'Tab') {\n ev.preventDefault();\n if (ev.shiftKey) {\n HtmlUtil.focusPreviousElement(hostElement);\n }\n else {\n HtmlUtil.focusNextElement(hostElement);\n }\n }\n }\n /**\n * Focuses an element in the document based on the provided CSS selector.\n *\n * @param selector - A CSS selector string used to identify the element to focus.\n * This should be a valid CSS selector that uniquely identifies the target element.\n */\n static focusElement(selector) {\n const element = document.querySelector(selector);\n element === null || element === void 0 ? void 0 : element.focus();\n }\n /**\n * Scrolls an element into the visible area of its scrollable container.\n *\n * @param elementSelector - A CSS selector string used to identify the element to scroll into view.\n * This should be a valid CSS selector that uniquely identifies the target element.\n * @param options the scroll into view options.\n */\n static scrollElementIntoView(elementSelector, options = { block: 'nearest' }) {\n const element = document.querySelector(elementSelector);\n if (!element) {\n return;\n }\n element.scrollIntoView(options);\n }\n /**\n * Waits for an element to appear in the DOM by observing DOM mutations.\n * This function creates a MutationObserver that watches for changes in the document body\n * and resolves with the element once it becomes available.\n *\n * @param selector - A CSS selector string used to identify the element to wait for.\n * This should be a valid CSS selector that uniquely identifies the target element.\n *\n * @returns A Promise that resolves with the found HTMLElement when it appears in the DOM,\n * or rejects if an error occurs during the observation process.\n */\n static waitForElement(selector) {\n return new Promise((resolve, reject) => {\n const observer = new MutationObserver(() => {\n try {\n const element = document.querySelector(selector);\n if (element) {\n observer.disconnect();\n resolve(element);\n }\n }\n catch (error) {\n observer.disconnect();\n reject(error);\n }\n });\n observer.observe(document.body, { subtree: true, childList: true, attributes: true });\n });\n }\n}\n\nexport { HtmlUtil as H };\n","import { Loggers } from '@ontotext/workbench-api';\n\nconst MODULE_NAME = 'SharedComponents';\n/**\n * Logger for the Shared Components module.\n */\nclass LoggerProvider {\n /**\n * Gets the logger instance for the Shared Components module.\n *\n * @returns LoggerService instance for the Shared Components module\n */\n static get logger() {\n return Loggers.getLoggerInstance(MODULE_NAME);\n }\n}\n\nexport { LoggerProvider as L };\n","import { r as registerInstance, h, a as Host, d as getElement } from './index-BntG-4Sv.js';\nimport { D as DropdownItem } from './dropdown-item-WQYHXM0G.js';\nimport { ServiceProvider, LanguageService, LanguageContextService, navigateTo, OperationStatus, OperationGroup, SubscriptionList, EventService, ResourceSearchStorageService, UriUtil, SearchButtonConfig, SearchButton, openInNewTab, service, RepositoryContextService, RepositoryState, getRepositoryIdWithLocation, AutocompleteService, AutocompleteContextService, AutocompleteStorageService, OntoToastrService, NamespacesContextService, SuggestionType, SuggestionSelectedPayload, Suggestion, navigateToLoginPage, AuthenticationService, navigate, Logout } from '@ontotext/workbench-api';\nimport { D as DropdownItemAlignment } from './dropdown-item-alignment-DghTf3pJ.js';\nimport { O as OntoTooltipPlacement } from './onto-tooltip-placement-D_J2-9CG.js';\nimport { T as TranslationService, e as escapeHtml } from './translation.service-BIRn4Afp.js';\nimport { H as HtmlUtil } from './html-util-BSmKhkm5.js';\nimport { R as ResourceSearchConstants } from './resource-search-constants-CNWCaedF.js';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\nconst ontoLanguageSelectorCss = \":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}\";\n\nconst OntoLanguageSelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.languageService = ServiceProvider.get(LanguageService);\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.items = [];\n /**\n * Specifies the dropdown items' alignment. If not provided, the items and the dropdown button will be aligned to the left.\n *\n */\n this.dropdownAlignment = DropdownItemAlignment.LEFT;\n }\n connectedCallback() {\n this.onLanguageChangeSubscription = this.languageContextService.onSelectedLanguageChanged((newLanguage) => this.changeLanguage(newLanguage));\n this.items = this.getLanguageDropdownOptions();\n }\n disconnectedCallback() {\n if (this.onLanguageChangeSubscription) {\n this.onLanguageChangeSubscription();\n }\n }\n render() {\n var _a, _b;\n return (h(Host, { key: '9984b524472fd68652a3fcbcf9eea97f8a223177' }, h(\"onto-dropdown\", { key: '428a5d4f65595214dbb2ed4bef9748ffed2d870c', class: 'onto-language-selector', onValueChanged: this.valueChangeHandler(), dropdownButtonNameLabelKey: !this.currentLanguage ? 'language_selector.toggle_menu.label' : undefined, dropdownButtonName: (_a = this.currentLanguage) !== null && _a !== void 0 ? _a : undefined, dropdownButtonTooltipLabelKey: this.currentLanguage ? 'language_selector.toggle_menu.tooltip' : 'language_selector.toggle_menu.label', dropdownAlignment: (_b = this.dropdownAlignment) !== null && _b !== void 0 ? _b : DropdownItemAlignment.RIGHT, iconClass: 'ri-translate-2', items: this.items, \"auto-close\": true })));\n }\n valueChangeHandler() {\n return (newLanguage) => this.onSelectedLanguageChanged(newLanguage);\n }\n changeLanguage(newLanguage) {\n let selectedLanguage = newLanguage;\n if (!selectedLanguage) {\n selectedLanguage = this.languageService.getDefaultLanguage();\n }\n this.currentLanguage = selectedLanguage;\n this.items = this.getLanguageDropdownOptions();\n }\n onSelectedLanguageChanged(newLanguageEvent) {\n this.languageContextService.updateSelectedLanguage(newLanguageEvent.detail);\n }\n getLanguageDropdownOptions() {\n return this.languageService.getSupportedLanguages().map((locale) => {\n const iconClass = this.currentLanguage === locale ? 'ri-check-line' : '';\n return new DropdownItem()\n .setNameLabelKey(`language_selector.language.${locale}.label`)\n .setTooltipLabelKey(`language_selector.language.${locale}.tooltip.` + (this.currentLanguage === locale ? 'selected' : 'not_selected'))\n .setIconClass(iconClass)\n .setCssClass(locale)\n .setValue(locale);\n });\n }\n};\nOntoLanguageSelector.style = ontoLanguageSelectorCss;\n\nconst ontoLicenseAlertCss = \":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}\";\n\nconst OntoLicenseAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n var _a;\n return (h(Host, { key: '9bac74e245fc646cfd6b63d638ac11ffeb50754b', \"tooltip-content\": (_a = this.license) === null || _a === void 0 ? void 0 : _a.message, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-license-alert' }, h(\"button\", { key: '317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa', class: \"onto-license-alert onto-btn\", onClick: navigateTo('license') }, h(\"span\", { key: 'dd60e1800d32e32bdbb88555f34b0bb55396914b', class: \"ri-alert-line\" }), h(\"translate-label\", { key: '9f6886cf5803e3cbc8092c578152b3f8615c89cc', labelKey: 'license_alert.label' }))));\n }\n};\nOntoLicenseAlert.style = ontoLicenseAlertCss;\n\nconst ontoOperationsNotificationCss = \".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}\";\n\nconst operationGroupToIcon = {\n [OperationGroup.BACKUP]: 'ri-archive-line',\n [OperationGroup.QUERY]: 'ri-arrow-left-right-line',\n [OperationGroup.CLUSTER]: 'ri-organization-chart',\n [OperationGroup.IMPORT]: 'icon-import'\n};\nconst operationStatusToWarningClass = {\n [OperationStatus.WARNING]: 'status-warning',\n [OperationStatus.INFORMATION]: 'status-information',\n [OperationStatus.CRITICAL]: 'status-critical'\n};\nconst operationStatusToFadeClass = {\n [OperationStatus.WARNING]: 'onto-btn-fade-warning',\n [OperationStatus.CRITICAL]: 'onto-btn-fade-danger'\n};\nconst OntoOperationsNotification = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** Whether the dropdown menu is open or closed */\n this.isOpen = false;\n this.DROPDOWN_ID = 'onto-operations-dropdown';\n this.toggleDropdown = (event) => {\n event.stopPropagation();\n this.isOpen = !this.isOpen;\n };\n }\n handleOutsideClick() {\n if (this.isOpen) {\n this.isOpen = false;\n }\n }\n render() {\n var _a;\n this.operationGroups = this.activeOperations.toOperationGroupSummaryList();\n return (h(\"section\", { key: '13de6326145250d9f3459f5558e8c1791a3be35a', class: \"operations-statuses\" }, h(\"button\", { key: 'de16a9fc8c01af9ad5a82b052c838f37e7e6713f', class: `operations-statuses-dropdown-toggle ${this.isOpen ? 'open' : 'closed'} ${(_a = operationStatusToFadeClass[this.activeOperations.status]) !== null && _a !== void 0 ? _a : ''}`, ref: (el) => this.toggleButton = el, \"aria-expanded\": this.isOpen ? 'true' : 'false', \"aria-controls\": this.DROPDOWN_ID, onClick: this.toggleDropdown }, h(\"span\", { key: '857f7317826c5285797374c1871104cd23bb5216', class: \"screen-reader-only\" }, h(\"translate-label\", { key: '6710d5a90dea211a7ae801cf63ae19c1032b584a', labelKey: 'operations_notification.toggle_label' })), this.operationGroups.getItems().map((groupSummary) => (h(\"section\", { key: groupSummary.id, class: \"operation-status-header\" }, h(\"i\", { \"aria-hidden\": \"true\", class: `operation-status-icon icon-1-33x ${operationGroupToIcon[groupSummary.group]} ${operationStatusToWarningClass[groupSummary.status]}` }), groupSummary.totalOperations\n ? h(\"sup\", { class: \"running-operation-count\" }, groupSummary.totalOperations)\n : ''))), h(\"i\", { key: '3f98039d08623eccc3c03c20d7fd5c44b8f45fd4', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}`, \"aria-hidden\": \"true\" })), this.isOpen &&\n h(\"div\", { key: '622feb33220bc3d9f43525b38c16fb0c6eb9678c', class: \"operations-dropdown\", id: this.DROPDOWN_ID }, h(\"ul\", { key: 'b9d6c474ef48b72292e9985637bf6d9b6d1356ab', class: \"operations-statuses-content\" }, this.activeOperations.allRunningOperations.getItems().map((operation) => (h(\"li\", { key: operation.id }, h(\"a\", { class: `operation-status-content onto-btn no-underline ${operationStatusToWarningClass[operation.status]}`, href: operation.href, target: \"_blank\", rel: \"noopener noreferrer\" }, h(\"i\", { class: operationGroupToIcon[operation.group], \"aria-hidden\": \"true\" }), h(\"span\", { class: \"operation-status-label\" }, h(\"translate-label\", { labelKey: `operations_notification.links.${operation.labelKey}` })), h(\"span\", { class: \"operation-number\" }, operation.count\n ? h(\"span\", { class: \"operation-status-running-operation-count\" }, operation.count)\n : ''), h(\"span\", { class: \"screen-reader-only\" }, \" \", h(\"translate-label\", { labelKey: 'common.label.opens_in_new_window' }))))))))));\n }\n /**\n * Closes the dropdown on Escape and returns the focus to the toggle button.\n */\n onKeyDown(event) {\n var _a;\n if (event.key === 'Escape' && this.isOpen) {\n this.isOpen = false;\n (_a = this.toggleButton) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n get el() { return getElement(this); }\n};\nOntoOperationsNotification.style = ontoOperationsNotificationCss;\n\nconst ontoRdfSearchCss = \".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}\";\n\nconst OntoRdfSearch = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.subscriptions = new SubscriptionList();\n this.eventService = ServiceProvider.get(EventService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.RDF_CONTEXT = 'rdfSearchContext';\n this.isOpen = false;\n this.redirectUrl = UriUtil.RESOURCE_URL;\n /**\n * Set when the search area is opened, or closed with the close button or Escape. The focus moves after the next\n * render, because the search area becomes focusable and the search icon is rendered only then.\n */\n this.shouldMoveFocus = false;\n /**\n * Closes the search area and returns the focus to the search icon, which opened it.\n */\n this.closeAndFocusSearchIcon = () => {\n if (!this.isOpen) {\n return;\n }\n this.isOpen = false;\n this.shouldMoveFocus = true;\n };\n }\n /**\n * Handles click events on the window.\n * Closes the search area if it's open and the click is outside the search area.\n * @param event - The MouseEvent object.\n */\n handleClick(event) {\n var _a;\n if (!this.isOpen) {\n return;\n }\n if (!((_a = this.rdfSearchRef) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {\n this.isOpen = false;\n }\n }\n connectedCallback() {\n this.onSuggestionSelected();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n componentDidRender() {\n if (this.shouldMoveFocus) {\n this.shouldMoveFocus = false;\n this.moveFocus();\n }\n }\n componentDidLoad() {\n this.buttonConfig = this.createButtonConfig();\n }\n render() {\n return (h(\"section\", { key: '835735fbb93893e9c3240edabbcae5a465f1ca27', ref: (ref) => this.rdfSearchRef = ref, class: \"onto-rdf-search\", onKeyDown: this.onKeyDown(), \"data-test\": 'onto-rdf-search-component' }, h(\"section\", { key: 'fde50b68c1de8ed654af30b27d29ac9403a68f07', class: `search-area ${this.isOpen ? 'visible' : 'invisible'}`, inert: !this.isOpen }, h(\"button\", { key: '4d1f1c2ceb2893177b04dd8b24e3c877da158000', type: \"button\", onClick: this.closeAndFocusSearchIcon, \"aria-label\": TranslationService.translate('rdf_search.tooltips.close_search_area'), \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.close_search_area'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-rdf-resource-search-close-btn', class: \"close-btn\" }, h(\"i\", { key: '4f6b19632fac056ea0d4632f5f62c7e70ed7aa29', class: \"ri-close-line\", \"aria-hidden\": \"true\" })), h(\"onto-search-resource-input\", { key: '204ff32df46482664896f8ac7d2ca9f1f55cd7fd', buttonConfig: this.buttonConfig, preserveSearch: true, isHidden: !this.isOpen, \"data-test\": 'onto-rdf-resource-search-input', context: this.RDF_CONTEXT })), !this.isOpen ? h(\"onto-search-icon\", { ref: (ref) => this.searchIconRef = ref, onClick: this.setIsOpen(true) }) : ''));\n }\n /**\n * Creates a function to set the open state of the search area.\n * @param isOpen - Boolean indicating whether the search area should be open.\n */\n setIsOpen(isOpen) {\n return () => {\n this.isOpen = isOpen;\n if (this.isOpen) {\n this.shouldMoveFocus = true;\n this.loadSelectedViewFromStorage();\n }\n };\n }\n /**\n * Creates the configuration for search buttons.\n * @returns A SearchButtonConfig object with radio buttons for table and visual search.\n */\n createButtonConfig() {\n return new SearchButtonConfig({\n isRadio: true,\n buttons: [\n this.createSearchButton(ResourceSearchConstants.TABLE_VIEW, 'rdf_search.buttons.table', () => {\n this.redirectUrl = UriUtil.RESOURCE_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.TABLE_VIEW);\n }, true),\n this.createSearchButton(ResourceSearchConstants.VISUAL_VIEW, 'rdf_search.buttons.visual', () => {\n this.redirectUrl = UriUtil.GRAPHS_VISUALIZATIONS_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.VISUAL_VIEW);\n }, false),\n this.createSearchButton(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW, 'rdf_search.buttons.graph_navigator', () => {\n this.redirectUrl = UriUtil.GRAPH_NAVIGATOR_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW);\n }, false),\n ]\n });\n }\n /**\n * Creates a search button with the given parameters.\n * @param id - The id for the button.\n * @param labelKey - The key for the button's label translation.\n * @param callback - The function to be called when the button is clicked.\n * @param selected - Boolean indicating whether the button should be initially selected.\n * @returns A SearchButton object.\n */\n createSearchButton(id, labelKey, callback, selected) {\n return new SearchButton({\n label: TranslationService.translate(labelKey),\n id,\n callback,\n selected\n });\n }\n onSuggestionSelected() {\n this.subscriptions.add(this.eventService.subscribe(ResourceSearchConstants.SUGGESTION_SELECTED_EVENT, (payload) => {\n if (payload.getContext() === this.RDF_CONTEXT) {\n const redirectUrl = payload.getSuggestion().getOverrideToVisual()\n ? UriUtil.GRAPHS_VISUALIZATIONS_URL\n : this.redirectUrl;\n openInNewTab(UriUtil.createAutocompleteRedirect(redirectUrl, payload.getSuggestion().getValue()));\n }\n }));\n }\n onKeyDown() {\n return (event) => {\n if (event.key === 'Escape') {\n this.closeAndFocusSearchIcon();\n }\n else if (event.key === 'Tab') {\n this.keepFocusInSearchArea(event);\n }\n };\n }\n /**\n * Moves the focus from the last element of the open search area to the first one with Tab, and back with Shift+Tab.\n * The search area floats over the page, so the focus would otherwise go to the elements it covers.\n * It is closed with the close button, Escape or a click outside it.\n */\n keepFocusInSearchArea(event) {\n if (!this.isOpen) {\n return;\n }\n const focusableElements = Array.from(this.rdfSearchRef.querySelectorAll('.search-area button:not(:disabled), .search-area input:not(:disabled)'));\n const first = focusableElements[0];\n const last = focusableElements[focusableElements.length - 1];\n const target = event.shiftKey ? last : first;\n const edge = event.shiftKey ? first : last;\n if (document.activeElement === edge) {\n event.preventDefault();\n target.focus();\n }\n }\n /**\n * Focuses the search input, when the search area is open, or the search icon, which opened it, when it is closed.\n * The search icon is a new element after the search area is closed, so it waits for the icon to render its button.\n */\n moveFocus() {\n var _a;\n if (this.isOpen) {\n HtmlUtil.focusElement(`#${this.RDF_CONTEXT}`);\n }\n else {\n void ((_a = this.searchIconRef) === null || _a === void 0 ? void 0 : _a.componentOnReady().then((searchIcon) => { var _a; return (_a = searchIcon.querySelector('button')) === null || _a === void 0 ? void 0 : _a.focus(); }));\n }\n }\n loadSelectedViewFromStorage() {\n const selectedView = this.resourceSearchStorageService.getSelectedView();\n if (selectedView) {\n const selectedButton = this.buttonConfig.getButtons().find((button) => button.id === selectedView);\n if (selectedButton) {\n this.buttonConfig = this.buttonConfig.selectButton(selectedButton);\n }\n }\n }\n};\nOntoRdfSearch.style = ontoRdfSearchCss;\n\n/**\n *\n * A StencilJS component that renders a repository selection. The element displays the repository's icon and ID\n * if a repository is selected; otherwise, it shows a translated toggle button name. The component dynamically\n * updates the name when the translation changes.\n *\n * @example\n * <RepositorySelection repository={repository}></>\n *\n */\nconst RepositorySelection = ({ repository, defaultToggleButtonName, location }) => {\n var _a;\n const className = repository ? 'repository-selection active-repository' : 'repository-selection no-selected-repository';\n return (h(\"div\", { class: className, \"data-test\": 'repository-selection' },\n repository && h(\"i\", { class: 'button-icon icon-1-5x icon-repo-' + repository.type }),\n \"\\u00A0\",\n h(\"span\", { class: 'repository-id' }, (_a = repository === null || repository === void 0 ? void 0 : repository.id) !== null && _a !== void 0 ? _a : defaultToggleButtonName,\n location)));\n};\n\nconst ontoRepositorySelectorCss = \":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id-row{display:flex;align-items:center;gap:0.4em;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .deprecated-tag{flex-shrink:0;padding:0.15em 0.4em;border-radius:0.25em;font-size:0.7em;line-height:1.2em;color:var(--gw-tag-warning-color);background-color:var(--gw-tag-warning-background)}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}\";\n\nconst OntoRepositorySelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.repositoryContextService = service(RepositoryContextService);\n this.subscriptions = [];\n // Both maps are keyed by the repository id with its location, because repositories in different locations can have\n // the same id.\n this.repositorySizeInfoCache = new Map();\n this.repositorySizeInfoRequests = new Map();\n this.clearRepositorySizeInfo = () => {\n this.repositorySizeInfoCache.clear();\n this.repositorySizeInfoRequests.clear();\n };\n }\n /**\n * Re-applies tooltip functions to all dropdown items when the items prop changes.\n */\n onItemsChanged(newItems) {\n if (!(newItems === null || newItems === void 0 ? void 0 : newItems.length)) {\n this.dropdownItems = [];\n return;\n }\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n connectedCallback() {\n var _a;\n this.subscriptions.push(...this.subscribeToTranslationChanged(), this.subscribeToRepositoryListChanged());\n // Manually apply tooltip functions to each item on first mount.\n if ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) {\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n else {\n this.dropdownItems = [];\n }\n }\n /**\n * Cleans up the subscriptions when the component is removed from the DOM to avoid memory leaks.\n * This method unsubscribes from both the repository change and selected repository change events.\n */\n disconnectedCallback() {\n this.subscriptions.forEach((subscription) => subscription());\n }\n render() {\n const repositorySelection = h(RepositorySelection, { key: 'c603f4a2de6beef60a38bfc297ec323810414850', repository: this.currentRepository, defaultToggleButtonName: this.getButtonLabel(), location: this.getLocation() });\n return (h(Host, { key: '207c1e246f62dba2262616a6b6a9e637fb9f7166' }, h(\"onto-dropdown\", Object.assign({ key: 'ae203784eb20a87e3e4114c29dace0427df14960', ref: (elementRef) => this.dropdownElement = elementRef, class: \"onto-repository-selector\", \"data-test\": 'onto-repository-selector', onValueChanged: this.onValueChanged(), dropdownButtonName: repositorySelection, dropdownButtonTooltip: this.createTooltipFunctionForRepository(this.currentRepository) }, (this.currentRepository ? { 'dropdownButtonGuideSelector': `repository-id-${this.currentRepository.id}` } : {}), { dropdownAlignment: DropdownItemAlignment.RIGHT, tooltipPlacement: this.tooltipAlignment, tooltipTheme: \"light-border\", tooltipClass: \"repository-selector-tooltip\", items: this.dropdownItems, onMouseLeave: this.clearRepositorySizeInfo, \"auto-close\": true }))));\n }\n attachTooltipsToItems(items) {\n if (!items) {\n return [];\n }\n return items.map((item) => item.setTooltip(this.createTooltipFunctionForRepository(item.value)));\n }\n tooltipAlignment(isOpen) {\n if (isOpen) {\n return OntoTooltipPlacement.LEFT;\n }\n return OntoTooltipPlacement.BOTTOM;\n }\n onValueChanged() {\n return (valueChangeEvent) => this.onRepositoryChanged(valueChangeEvent.detail);\n }\n /**\n * Returns an async function that generates HTML tooltip content for the given repository.\n */\n createTooltipFunctionForRepository(repository) {\n return () => {\n if (!repository) {\n return Promise.resolve('');\n }\n if (repository.state !== RepositoryState.RUNNING) {\n return this.buildRepositoryTooltipHtml(repository);\n }\n const repositoryKey = getRepositoryIdWithLocation(repository);\n const repositorySizeInfo = this.repositorySizeInfoCache.get(repositoryKey);\n if (repositorySizeInfo) {\n return this.buildRepositoryTooltipHtml(repository, repositorySizeInfo);\n }\n if (!this.repositorySizeInfoRequests.has(repositoryKey)) {\n this.fetchRepositorySizeInfo(repository);\n }\n return this.buildRepositoryTooltipHtml(repository, undefined, true);\n };\n }\n fetchRepositorySizeInfo(repository) {\n const repositoryKey = getRepositoryIdWithLocation(repository);\n const repositorySizeInfoRequest = this.repositorySizeInfoFetcher(repository);\n this.repositorySizeInfoRequests.set(repositoryKey, repositorySizeInfoRequest);\n repositorySizeInfoRequest.then((repositorySizeInfo) => {\n this.repositorySizeInfoCache.set(repositoryKey, repositorySizeInfo);\n }).catch((err) => {\n LoggerProvider.logger.error('Failed to fetch repository size.', err);\n }).finally(() => {\n var _a;\n // The map may have been emptied in the meantime and may hold a newer request for the same repository.\n if (this.repositorySizeInfoRequests.get(repositoryKey) === repositorySizeInfoRequest) {\n this.repositorySizeInfoRequests.delete(repositoryKey);\n }\n void ((_a = this.dropdownElement) === null || _a === void 0 ? void 0 : _a.refreshButtonTooltip());\n });\n }\n /**\n * Builds the HTML string used as tooltip content for a repository. The content is rendered by the\n * <code>onto-repository-info</code> component, which gets its data as escaped JSON attributes.\n */\n buildRepositoryTooltipHtml(repository, repositorySizeInfo, isLoadingRepositorySize = false) {\n const attributes = [\n `repository=\"${escapeHtml(JSON.stringify(repository))}\"`,\n `permission=\"${escapeHtml(this.getRepositoryPermission(repository))}\"`\n ];\n if (isLoadingRepositorySize) {\n attributes.push('loading=\"true\"');\n }\n if (repositorySizeInfo) {\n attributes.push(`size-info=\"${escapeHtml(JSON.stringify(repositorySizeInfo))}\"`);\n }\n return Promise.resolve(`<onto-repository-info ${attributes.join(' ')}></onto-repository-info>`);\n }\n /**\n * Forces an immediate button tooltip refresh when the repository list changes.\n */\n subscribeToRepositoryListChanged() {\n return this.repositoryContextService.onRepositoryListChanged(() => {\n var _a;\n this.clearRepositorySizeInfo();\n void ((_a = this.dropdownElement) === null || _a === void 0 ? void 0 : _a.refreshButtonTooltip());\n });\n }\n subscribeToTranslationChanged() {\n return [\n TranslationService.onTranslate('repository-selector.btn.toggle', [], (toggleButtonName) => {\n this.defaultToggleButtonName = toggleButtonName;\n }),\n TranslationService.onTranslate('repository-selector.btn.no_repositories', [], (noRepositoriesButtonMessage) => {\n this.noRepositoriesButtonMessage = noRepositoriesButtonMessage;\n })\n ];\n }\n onRepositoryChanged(selectedRepository) {\n this.repositoryContextService.updateSelectedRepository(selectedRepository);\n }\n getLocation() {\n var _a;\n if (!((_a = this.currentRepository) === null || _a === void 0 ? void 0 : _a.location)) {\n return '';\n }\n return `@${UriUtil.shortenIri(this.currentRepository.location)}`;\n }\n getButtonLabel() {\n var _a;\n return ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length)\n ? this.defaultToggleButtonName\n : this.noRepositoriesButtonMessage;\n }\n static get watchers() { return {\n \"items\": [\"onItemsChanged\"]\n }; }\n};\nOntoRepositorySelector.style = ontoRepositorySelectorCss;\n\nconst ontoSearchIconCss = \".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}\";\n\nconst OntoSearchIcon = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.tooltipKey = 'rdf_search.labels.search';\n this.subscriptions = new SubscriptionList();\n }\n // ========================\n // Lifecycle methods\n // ========================\n connectedCallback() {\n this.onTooltipChange();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n // The click handler is set on the host by the parent component; the click of the button bubbles to it.\n return (h(\"button\", { key: '7351e75e718af25b9be67add8a7722cdae66fffe', type: \"button\", class: \"onto-search-icon\", \"aria-label\": this.tooltipLabel, \"tooltip-content\": this.tooltipLabel, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM }, h(\"i\", { key: 'b81860bf830286b16a0d2b1b9d63d4af59a7fbbb', class: \"ri-search-line ri-lg\", \"aria-hidden\": \"true\" })));\n }\n onTooltipChange() {\n this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey, [], (translation) => this.tooltipLabel = translation));\n }\n};\nOntoSearchIcon.style = ontoSearchIconCss;\n\nconst ontoSearchResourceInputCss = \".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}\";\n\nconst OntoSearchResourceInput = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.autocompleteService = ServiceProvider.get(AutocompleteService);\n this.autocompleteContextService = ServiceProvider.get(AutocompleteContextService);\n this.autocompleteStorageService = ServiceProvider.get(AutocompleteStorageService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.toastrService = ServiceProvider.get(OntoToastrService);\n this.eventService = ServiceProvider.get(EventService);\n this.namespaceContextService = ServiceProvider.get(NamespacesContextService);\n this.repositoryContextService = ServiceProvider.get(RepositoryContextService);\n this.subscriptions = new SubscriptionList();\n this.autocompleteWarningShown = false;\n /** Whether the rdf resource pre-search validation should be skipped. */\n this.skipValidation = false;\n /**\n * Whether the search component is currently hidden. Can be shown/hidden in the RDF search\n */\n this.isHidden = false;\n /**\n * Whether the autocomplete setting is enabled.\n */\n this.isAutocompleteEnabled = false;\n /**\n * Updates the local inputValue with the html input element's value.'\n */\n this.handleInput = (event) => {\n const target = event.target;\n if (!target.value) {\n this.clearInput();\n return;\n }\n this.setInputValue(target.value);\n this.checkForAutocomplete();\n };\n /**\n * Clears the search input field.\n */\n this.clearInput = () => {\n this.setInputValue('');\n if (this.preserveSearch) {\n this.resourceSearchStorageService.clearStoredSearch();\n }\n };\n /**\n * Clears the search input field and returns the focus to it, because the clear button disappears.\n */\n this.clearInputAndFocus = () => {\n this.clearInput();\n this.inputRef.focus();\n };\n this.onKeyDown = (event) => {\n switch (event.key) {\n case 'Enter':\n this.onEnter(event);\n break;\n case 'Escape':\n this.onEscape();\n break;\n case 'ArrowUp':\n this.onArrowUp(event);\n break;\n case 'ArrowDown':\n this.onArrowDown(event);\n break;\n }\n };\n }\n onVisibilityChange(isHidden) {\n var _a;\n if (isHidden) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n }\n else {\n this.setInputValue(this.resourceSearchStorageService.getInputValue());\n }\n }\n connectedCallback() {\n this.onAutocompleteEnabledChange();\n this.onRepositoryChange();\n this.onNamespaceChange();\n this.loadInputFromStorage();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n var _a, _b, _c, _d;\n const searchLabel = TranslationService.translate('rdf_search.labels.search');\n const listboxId = `${this.context}-suggestions`;\n const hintId = `${this.context}-hint`;\n const suggestions = (_b = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.suggestions.getItems()) !== null && _b !== void 0 ? _b : [];\n const hoveredIndex = suggestions.findIndex((suggestion) => suggestion.isHovered());\n return (h(\"section\", { key: 'cda724e2a03c25a7186eff04130da0e38b77f7d8', class: \"search-resources-input\" }, h(\"div\", { key: '96bc8785ddecf838c7564d60d86e1ea224a466fe', class: \"input-row\" }, h(\"span\", { key: '9b6f94fb65209d461910ea79505336e6673d16df', class: \"input-wrapper\" }, h(\"input\", { key: '3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32', value: this.inputValue, id: this.context, type: \"text\", role: \"combobox\", \"aria-label\": searchLabel, \"aria-autocomplete\": \"list\", \"aria-expanded\": suggestions.length ? 'true' : 'false', \"aria-controls\": listboxId, \"aria-activedescendant\": hoveredIndex >= 0 ? this.getSuggestionId(hoveredIndex) : undefined, \"aria-describedby\": hintId, autocomplete: \"off\", placeholder: `${searchLabel}...`, ref: (ref) => this.inputRef = ref, onKeyDown: this.onKeyDown, \"data-test\": this.context, onInput: this.handleInput }), ((_c = this.inputValue) === null || _c === void 0 ? void 0 : _c.length) ?\n h(\"button\", { type: \"button\", onClick: this.clearInputAndFocus, \"aria-label\": TranslationService.translate('rdf_search.tooltips.clear'), \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.clear'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, class: \"clear-input\" }, h(\"i\", { class: \"ri-close-line\", \"aria-hidden\": \"true\" })) : ''), (_d = this.buttonConfig) === null || _d === void 0 ? void 0 :\n _d.getButtons().getItems().map((button) => (h(\"button\", { key: button.label, type: \"button\", \"aria-pressed\": button.selected ? 'true' : 'false', onClick: this.handleButtonClick(button), class: `onto-btn ${button.selected ? 'selected' : ''}` }, button.label)))), h(\"span\", { key: 'ef80fe089557adfd223b07c3d732bf0d9a5367fe', class: \"hint\", id: hintId }, TranslationService.translate('rdf_search.labels.hint')), h(\"div\", { key: '1eaa7699192a2a4fd1469e03045a5af09a891600', class: \"autocomplete-results-wrapper\", id: listboxId, role: \"listbox\", tabindex: -1, \"aria-label\": searchLabel, \"data-test\": 'onto-autocomplete-results' }, suggestions.map((suggestion, index) => (h(\"p\", { key: suggestion.getId(), id: this.getSuggestionId(index), role: \"option\", \"aria-selected\": suggestion.isHovered() ? 'true' : 'false', onClick: this.onSuggestionClick(suggestion), \"data-test\": 'onto-autocomplete-suggestion', onMouseMove: this.hoverSuggestion(suggestion), class: `${suggestion.isHovered() ? 'hovered' : ''} ${suggestion.isSelected() ? 'selected' : ''}`, innerHTML: suggestion.getDescription() }))))));\n }\n getSuggestionId(index) {\n return `${this.context}-suggestion-${index}`;\n }\n /**\n * Handles the click event for a search button.\n * If the button configuration is set to radio mode and the clicked button is not selected,\n * it deselects all other buttons and selects the clicked one.\n * @param {SearchButton} button - The button that was clicked.\n */\n handleButtonClick(button) {\n return () => this.buttonConfig = this.buttonConfig.selectButton(button);\n }\n loadAutocompleteResults() {\n var _a;\n if (!this.inputValue) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n return;\n }\n if (this.isAutocompleteEnabled) {\n this.autocompleteService.search(this.inputValue)\n .then((searchResult) => {\n this.onResultsReceived(searchResult);\n });\n }\n }\n hoverSuggestion(suggestion) {\n return () => this.searchResult = this.searchResult.hoverSuggestion(suggestion);\n }\n onAutocompleteEnabledChange() {\n this.isAutocompleteEnabled = this.autocompleteStorageService.isEnabled();\n this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged((enabled) => {\n this.isAutocompleteEnabled = enabled !== null && enabled !== void 0 ? enabled : this.isAutocompleteEnabled;\n }));\n }\n checkForAutocomplete() {\n if (this.inputValue.length > 0 && !this.isAutocompleteEnabled && !this.autocompleteWarningShown) {\n this.autocompleteWarningShown = true;\n const message = TranslationService.translate('rdf_search.toasts.autocomplete_is_off');\n this.toastrService.warning(`<a class=\"no-underline\" style=\"font-weight: var(--gw-label-base-medium-font-weight)\">${message}</a>`, {\n onClick: navigateTo('autocomplete'),\n removeOnClick: true\n });\n }\n }\n onSuggestionClick(suggestion) {\n return (event) => {\n suggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.searchRdfResource(suggestion);\n };\n }\n searchRdfResource(suggestion) {\n if (suggestion.getType() === SuggestionType.PREFIX) {\n this.expandPrefix(suggestion);\n }\n else {\n this.notifyRdfResourceSelected(suggestion);\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setLastSelected(suggestion);\n }\n }\n }\n notifyRdfResourceSelected(suggestion) {\n var _a;\n this.searchResult = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.selectSuggestion(suggestion);\n void this.eventService.emit({\n NAME: ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,\n payload: new SuggestionSelectedPayload(suggestion, this.context)\n });\n }\n expandPrefix(suggestion) {\n this.setInputValue(this.namespaces.getByPrefix(suggestion.getValue()));\n this.inputRef.focus();\n }\n setInputValue(value) {\n this.inputValue = value;\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setInputValue(this.inputValue);\n }\n this.loadAutocompleteResults();\n }\n onRepositoryChange() {\n this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(() => {\n this.autocompleteWarningShown = false;\n }));\n }\n onNamespaceChange() {\n this.subscriptions.add(this.namespaceContextService.onNamespacesChanged((namespaces) => {\n this.namespaces = namespaces;\n }));\n }\n onEnter(event) {\n var _a;\n let selectedSuggestion = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.getHoveredSuggestion();\n if (!selectedSuggestion) {\n selectedSuggestion = new Suggestion({\n value: UriUtil.removeAngleBrackets(this.inputValue),\n type: SuggestionType.URI\n });\n }\n selectedSuggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.validateAndSearch(selectedSuggestion);\n }\n onArrowUp(event) {\n if (!this.searchResult) {\n return;\n }\n this.searchResult = this.searchResult.hoverPreviousSuggestion();\n this.displaySuggestion(event);\n }\n onArrowDown(event) {\n if (!this.searchResult) {\n return;\n }\n this.searchResult = this.searchResult.hoverNextSuggestion();\n this.displaySuggestion(event);\n }\n displaySuggestion(event) {\n event.preventDefault();\n // Update the input directly, because the value should only be displayed,\n // without triggering a new search and altering the autocomplete results\n this.inputRef.value = this.searchResult.getHoveredSuggestion().getValue();\n this.scrollToSuggestionBySelector('p.hovered');\n }\n getSuggestionValue(suggestion) {\n return suggestion.getType() === SuggestionType.PREFIX\n ? this.namespaces.getByPrefix(suggestion.getValue())\n : suggestion.getValue();\n }\n scrollToSuggestionBySelector(selector, options) {\n HtmlUtil.waitForElement(selector)\n .then(() => {\n HtmlUtil.scrollElementIntoView(selector, options);\n });\n }\n validateAndSearch(suggestion) {\n if (!this.skipValidation) {\n if (!suggestion.getValue()) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.empty_input'));\n return;\n }\n if (!UriUtil.isValidUri(this.getSuggestionValue(suggestion))) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.invalid_uri'));\n return;\n }\n }\n this.searchRdfResource(suggestion);\n }\n onEscape() {\n if (this.preserveSearch) {\n return;\n }\n this.clearInput();\n }\n loadInputFromStorage() {\n if (!this.preserveSearch) {\n return;\n }\n this.inputValue = this.resourceSearchStorageService.getInputValue() || '';\n }\n onResultsReceived(searchResult) {\n const lastSelected = searchResult === null || searchResult === void 0 ? void 0 : searchResult.getByValue(this.resourceSearchStorageService.getLastSelectedValue());\n if (lastSelected && this.preserveSearch) {\n // No need to reassign twice in the same thread tick. One will trigger the re-render\n searchResult.hoverSuggestion(lastSelected);\n this.searchResult = searchResult.selectSuggestion(lastSelected);\n this.scrollToSuggestionBySelector('p.hovered.selected', { block: 'start' });\n }\n else {\n this.searchResult = searchResult.hoverFirstSuggestion();\n this.scrollToSuggestionBySelector('p.hovered', { block: 'start' });\n }\n }\n static get watchers() { return {\n \"isHidden\": [\"onVisibilityChange\"]\n }; }\n};\nOntoSearchResourceInput.style = ontoSearchResourceInputCss;\n\nconst ontoUserLoginCss = \".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}\";\n\nconst OntoUserLogin = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n navigateToLogin() {\n return (event) => {\n event.preventDefault();\n navigateToLoginPage();\n };\n }\n render() {\n return (h(\"section\", { key: '0e775e390fe6d9733fbea06cc9b3137350be0a1a', class: \"onto-user-login\" }, h(\"button\", { key: '9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc', onClick: this.navigateToLogin() }, h(\"i\", { key: 'c646277a5770c03535720d4117645da70a240fe8', class: \"ri-arrow-right-circle-line\" }), h(\"translate-label\", { key: 'a063b7d24946cbe3fbb6788beebcc0260d995e0b', class: \"user-login-label label-base-regular\", labelKey: \"user_menu.login\" }))));\n }\n};\nOntoUserLogin.style = ontoUserLoginCss;\n\nconst ontoUserMenuCss = \".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}\";\n\nconst OntoUserMenu = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.authenticationService = service(AuthenticationService);\n this.eventService = service(EventService);\n this.DROPDOWN_ID = 'onto-user-menu-dropdown';\n /**\n * Navigates to the settings page and closes the dropdown.\n */\n this.openMySettings = (event) => {\n event.preventDefault();\n this.isOpen = false;\n navigate('settings');\n };\n /**\n * Log out the current user.\n */\n this.logout = () => {\n this.isOpen = false;\n void this.eventService.emit(new Logout());\n };\n /**\n * Toggles the dropdown menu's open state.\n *\n * @returns A function that toggles the `isOpen` state between true and false.\n */\n this.toggleDropdown = () => {\n this.isOpen = !this.isOpen;\n };\n /**\n * Closes the dropdown if the user clicks outside the component.\n */\n this.handleOutsideClick = (event) => {\n if (this.isOpen && !this.hostElement.contains(event.target)) {\n this.isOpen = false;\n }\n };\n }\n connectedCallback() {\n document.addEventListener('click', this.handleOutsideClick);\n }\n disconnectedCallback() {\n document.removeEventListener('click', this.handleOutsideClick);\n }\n render() {\n return (h(\"section\", { key: '8359f0471e5bcda114532346c2cac8fa858e1779', class: 'onto-user-menu' }, h(\"div\", { key: '69185865e40b622bd0e7081b98cafd07c309508f', class: 'dropdown-toggle-wrapper' }, h(\"button\", { key: '4140088a554351f66ac40d9a5c04e10af1bff73b', class: `onto-user-menu-toggle label-base-regular ${this.isOpen ? 'open' : ''}`, ref: (el) => this.toggleButton = el, \"aria-expanded\": this.isOpen ? 'true' : 'false', \"aria-controls\": this.DROPDOWN_ID, onClick: this.toggleDropdown }, h(\"i\", { key: 'bb463c88f7f365174c8ae45c091298883b046236', class: 'ri-user-line ri-lg', \"aria-hidden\": 'true' }), h(\"span\", { key: '415290f39545158b6eb4e3b9e29ac35647eda0a7', class: 'username' }, this.user.username), h(\"i\", { key: '58bbdd73b5275b2f565a6bf6fb8408b884c459f5', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}`, \"aria-hidden\": 'true' })), this.isOpen ?\n h(\"section\", { class: 'onto-user-menu-dropdown', id: this.DROPDOWN_ID }, h(\"a\", { class: 'onto-user-menu-item label-base-regular', href: 'settings', onClick: this.openMySettings }, h(\"translate-label\", { labelKey: 'user_menu.my_settings' })), !this.authenticationService.isExternalUser() ?\n h(\"button\", { class: 'onto-user-menu-item label-base-regular', onClick: this.logout }, h(\"translate-label\", { labelKey: 'user_menu.logout' })) : '') : '')));\n }\n /**\n * Closes the dropdown on Escape and returns the focus to the toggle button.\n */\n onKeyDown(event) {\n var _a;\n if (event.key === 'Escape' && this.isOpen) {\n this.isOpen = false;\n (_a = this.toggleButton) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }\n get hostElement() { return getElement(this); }\n};\nOntoUserMenu.style = ontoUserMenuCss;\n\nexport { OntoLanguageSelector as onto_language_selector, OntoLicenseAlert as onto_license_alert, OntoOperationsNotification as onto_operations_notification, OntoRdfSearch as onto_rdf_search, OntoRepositorySelector as onto_repository_selector, OntoSearchIcon as onto_search_icon, OntoSearchResourceInput as onto_search_resource_input, OntoUserLogin as onto_user_login, OntoUserMenu as onto_user_menu };\n","var OntoTooltipPlacement;\n(function (OntoTooltipPlacement) {\n OntoTooltipPlacement[\"LEFT\"] = \"left\";\n OntoTooltipPlacement[\"RIGHT\"] = \"right\";\n OntoTooltipPlacement[\"TOP\"] = \"top\";\n OntoTooltipPlacement[\"BOTTOM\"] = \"bottom\";\n OntoTooltipPlacement[\"AUTO\"] = \"auto\";\n})(OntoTooltipPlacement || (OntoTooltipPlacement = {}));\n\nexport { OntoTooltipPlacement as O };\n","var ResourceSearchConstants;\n(function (ResourceSearchConstants) {\n ResourceSearchConstants[\"SUGGESTION_SELECTED_EVENT\"] = \"suggestion-selected-event\";\n ResourceSearchConstants[\"TABLE_VIEW\"] = \"table\";\n ResourceSearchConstants[\"VISUAL_VIEW\"] = \"visual\";\n ResourceSearchConstants[\"GRAPH_NAVIGATOR_VIEW\"] = \"graph-navigator\";\n ResourceSearchConstants[\"RDF_SEARCH_ICON_CLICKED\"] = \"rdfSearchIconClicked\";\n})(ResourceSearchConstants || (ResourceSearchConstants = {}));\n\nexport { ResourceSearchConstants as R };\n","import { ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\n/**\n * Escapes the characters that have a special meaning in HTML, so that the text can be written into an HTML string,\n * as content or as an attribute value.\n *\n * @param text The text to escape.\n * @returns The escaped text, or an empty string if no text is provided.\n */\nfunction escapeHtml(text) {\n if (!text) {\n return '';\n }\n return text\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&#039;');\n}\n/**\n * Checks whether the focus is lost to the body.\n *\n * @returns True if the focus is lost to the body, false otherwise.\n */\nfunction isFocusLost() {\n const activeElement = document.activeElement;\n return !activeElement || activeElement === document.body;\n}\n\n/**\n * Service responsible for translation operations in the component.\n */\nclass TranslationServiceClassDefinition {\n constructor() {\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.translationChangedObservers = {};\n this.logger = LoggerProvider.logger;\n // log with background color\n this.defaultBundle = this.languageContextService.getDefaultBundle();\n this.subscribeToBundleChange();\n }\n /**\n * Translates the <code>messageLabelKey</code> with <code>translationParameter</code> and call <code>translationCallback</code> with translation of current language.\n * The <code>translationCallback</code> is called upon subscription and whenever the selected language is changed.\n *\n * @param messageLabelKey - The label key for the translation.\n * @param translationParameter - Parameters, if needed, for translation.\n * @param translationCallback - A function to be called when translating the `messageLabelKey`.\n * @returns A function that, when called, unsubscribes the provided callback from further translation updates.\n */\n onTranslate(messageLabelKey, translationParameter = [], translationCallback = () => { }) {\n this.translationChangedObservers[messageLabelKey] = this.translationChangedObservers[messageLabelKey] || [];\n const observer = { parameters: translationParameter, callback: translationCallback };\n this.translationChangedObservers[messageLabelKey].push(observer);\n translationCallback(this.translate(messageLabelKey, translationParameter));\n return () => {\n const index = this.translationChangedObservers[messageLabelKey].indexOf(observer);\n if (index !== -1) {\n this.translationChangedObservers[messageLabelKey].splice(index, 1);\n }\n };\n }\n /**\n * Translates the provided key using the currently selected language by applying the parameters if\n * provided.\n * @param key The key for the label which needs to be translated.\n * @param parameters Optional parameters which to be applied during the translation.\n */\n translate(key, parameters) {\n return this.translateInLocale(key, parameters);\n }\n /**\n * Translates a given key into the specified locale. If parameters are provided,\n * they will be applied to the translation.\n *\n * @param key - The translation key, which can be dot-separated for nested translations.\n * @param parameters - Optional parameters to be substituted into the translation string.\n * @returns The translated string with parameters applied if available, or the key itself if not found.\n */\n translateInLocale(key, parameters) {\n // Attempt to retrieve the translation from the specified locale's bundle.\n let translation = this.translateFromBundle(this.currentBundle, key);\n // If not found, fall back to the default language bundle.\n if (!translation) {\n translation = this.translateFromBundle(this.defaultBundle, key);\n }\n // If translation was found, apply any parameters provided and return the result.\n if (translation) {\n translation = this.applyParameters(translation, parameters);\n return sanitizeHTML(translation);\n }\n this.logger.warn(`Missing translation for key: [${key}]`);\n return key;\n }\n /**\n * Retrieves a translation from a specified translation bundle using the given key.\n * If the key represents a nested JSON path, it attempts to resolve the key as such.\n *\n * @param bundle - The translation bundle for the specified locale.\n * @param key - The key to translate, which may be a simple key or dot-separated for nested keys.\n * @returns The translation string if found, or `undefined` if not available.\n */\n translateFromBundle(bundle, key) {\n if (!bundle) {\n return undefined;\n }\n // Try to retrieve the translation directly if it is defined as a whole string,\n // for instance as \"some_function.btn.label\".\n let translation = bundle[key];\n // If not found, attempt to retrieve the translation if it is defined as a JSON object.\n if (typeof translation !== 'string') {\n translation = this.translateAsJsonObject(bundle, key);\n }\n return translation;\n }\n /**\n * Resolves a nested translation key by treating it as a path in a JSON object.\n * For example, if the key is \"some.key.path\", this method will navigate through\n * the JSON object structure to retrieve the value at that path.\n *\n * @param bundle - The translation bundle containing nested keys.\n * @param key - The dot-separated key representing the path to the translation.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n translateAsJsonObject(bundle, key) {\n if (!key) {\n return;\n }\n let path = key.split('.');\n return this.getTranslation(bundle, path);\n }\n /**\n * Recursively navigates through a JSON object based on a path array to retrieve\n * a translation string. Each element in the path array represents a nested key.\n *\n * @param jsonObject - The current JSON object or nested object being searched.\n * @param path - An array representing the path to the translation, where each element is a key.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n getTranslation(jsonObject, path) {\n // Stop the recursion if path or reach the inner element\n if (!path || !jsonObject) {\n return undefined;\n }\n const jsonOrTranslation = jsonObject[path.splice(0, 1)[0]];\n if (path.length === 0) {\n return jsonOrTranslation;\n }\n if (typeof jsonOrTranslation !== 'string') {\n // continue if the inner element is not reached.\n if (path.length > 0) {\n return this.getTranslation(jsonOrTranslation, path);\n }\n return jsonOrTranslation;\n }\n return undefined;\n }\n applyParameters(translation, parameters) {\n if (parameters) {\n return parameters.reduce(\n // replace all occurrence of parameter key with parameter value.\n (translation, parameter) => TranslationServiceClassDefinition.replaceAll(translation, parameter), translation);\n }\n return translation;\n }\n static replaceAll(translation, parameter) {\n return parameter ? translation.split(`{{${parameter.key}}}`).join(parameter.value) : translation;\n }\n notifyTranslationsChanged() {\n Object.keys(this.translationChangedObservers).forEach((eventName) => {\n const observers = this.translationChangedObservers[eventName] || [];\n observers.forEach((observer) => observer.callback(this.translate(eventName, observer.parameters)));\n });\n }\n subscribeToBundleChange() {\n this.languageChangeSubscription = this.languageContextService.onLanguageBundleChanged((bundle) => {\n if (bundle) {\n this.currentBundle = bundle;\n this.notifyTranslationsChanged();\n }\n });\n }\n destroy() {\n if (this.languageChangeSubscription) {\n this.languageChangeSubscription();\n }\n }\n}\nconst TranslationService = new TranslationServiceClassDefinition();\n\nexport { TranslationService as T, escapeHtml as e, isFocusLost as i, sanitizeHTML as s };\n"],"names":["DropdownItem","constructor","this","_dropdownTooltipTrigger","name","_name","setName","value","nameLabelKey","_nameLabelKey","setNameLabelKey","tooltip","_tooltip","setTooltip","tooltipLabelKey","_tooltipLabelKey","setTooltipLabelKey","iconClass","_iconClass","setIconClass","iconImage","_iconImage","setIconImage","_value","setValue","dropdownTooltipTrigger","setDropdownTooltipTrigger","cssClass","_cssClass","setCssClass","guideSelector","_guideSelector","setGuideSelector","DropdownItemAlignment","INTERACTIVE_ELEMENTS_SELECTOR","HtmlUtil","setDocumentBodyOverflow","newOverflow","oldOverflow","document","body","style","overflow","hideDocumentBodyOverflow","focusNextElement","parentElement","activeElementSelector","focusableElements","getFocusableElements","length","currentIndex","indexOf","activeElement","nextActiveElement","focus","focusPreviousElement","previousActiveElement","Array","from","querySelectorAll","filter","element","hasAttribute","getClientRects","preventLeavingDialog","hostElement","ev","key","preventDefault","shiftKey","focusElement","selector","querySelector","scrollElementIntoView","elementSelector","options","block","scrollIntoView","waitForElement","Promise","resolve","reject","observer","MutationObserver","disconnect","error","observe","subtree","childList","attributes","LoggerProvider","logger","Loggers","getLoggerInstance","OntoLanguageSelector","hostRef","registerInstance","languageService","ServiceProvider","get","LanguageService","languageContextService","LanguageContextService","items","dropdownAlignment","LEFT","connectedCallback","onLanguageChangeSubscription","onSelectedLanguageChanged","newLanguage","changeLanguage","getLanguageDropdownOptions","disconnectedCallback","render","_a","_b","h","Host","class","onValueChanged","valueChangeHandler","dropdownButtonNameLabelKey","currentLanguage","undefined","dropdownButtonName","dropdownButtonTooltipLabelKey","RIGHT","selectedLanguage","getDefaultLanguage","newLanguageEvent","updateSelectedLanguage","detail","getSupportedLanguages","map","locale","OntoLicenseAlert","license","message","OntoTooltipPlacement","BOTTOM","onClick","navigateTo","labelKey","operationGroupToIcon","OperationGroup","BACKUP","QUERY","CLUSTER","IMPORT","operationStatusToWarningClass","OperationStatus","WARNING","INFORMATION","CRITICAL","operationStatusToFadeClass","OntoOperationsNotification","isOpen","DROPDOWN_ID","toggleDropdown","event","stopPropagation","handleOutsideClick","operationGroups","activeOperations","toOperationGroupSummaryList","status","ref","el","toggleButton","getItems","groupSummary","id","group","totalOperations","allRunningOperations","operation","href","target","rel","count","onKeyDown","getElement","OntoRdfSearch","subscriptions","SubscriptionList","eventService","EventService","resourceSearchStorageService","ResourceSearchStorageService","RDF_CONTEXT","redirectUrl","UriUtil","RESOURCE_URL","shouldMoveFocus","closeAndFocusSearchIcon","handleClick","rdfSearchRef","contains","onSuggestionSelected","unsubscribeAll","componentDidRender","moveFocus","componentDidLoad","buttonConfig","createButtonConfig","inert","type","TranslationService","translate","preserveSearch","isHidden","context","searchIconRef","setIsOpen","loadSelectedViewFromStorage","SearchButtonConfig","isRadio","buttons","createSearchButton","ResourceSearchConstants","TABLE_VIEW","setSelectedView","VISUAL_VIEW","GRAPHS_VISUALIZATIONS_URL","GRAPH_NAVIGATOR_VIEW","GRAPH_NAVIGATOR_URL","callback","selected","SearchButton","label","add","subscribe","SUGGESTION_SELECTED_EVENT","payload","getContext","getSuggestion","getOverrideToVisual","openInNewTab","createAutocompleteRedirect","getValue","keepFocusInSearchArea","first","last","edge","componentOnReady","then","searchIcon","selectedView","getSelectedView","selectedButton","getButtons","find","button","selectButton","RepositorySelection","repository","defaultToggleButtonName","location","className","OntoRepositorySelector","repositoryContextService","service","RepositoryContextService","repositorySizeInfoCache","Map","repositorySizeInfoRequests","clearRepositorySizeInfo","clear","onItemsChanged","newItems","dropdownItems","attachTooltipsToItems","push","subscribeToTranslationChanged","subscribeToRepositoryListChanged","forEach","subscription","repositorySelection","currentRepository","getButtonLabel","getLocation","Object","assign","elementRef","dropdownElement","dropdownButtonTooltip","createTooltipFunctionForRepository","tooltipPlacement","tooltipAlignment","tooltipTheme","tooltipClass","onMouseLeave","item","valueChangeEvent","onRepositoryChanged","state","RepositoryState","RUNNING","buildRepositoryTooltipHtml","repositoryKey","getRepositoryIdWithLocation","repositorySizeInfo","has","fetchRepositorySizeInfo","repositorySizeInfoRequest","repositorySizeInfoFetcher","set","catch","err","finally","delete","refreshButtonTooltip","isLoadingRepositorySize","escapeHtml","JSON","stringify","getRepositoryPermission","join","onRepositoryListChanged","onTranslate","toggleButtonName","noRepositoriesButtonMessage","selectedRepository","updateSelectedRepository","shortenIri","watchers","OntoSearchIcon","tooltipKey","onTooltipChange","tooltipLabel","translation","OntoSearchResourceInput","autocompleteService","AutocompleteService","autocompleteContextService","AutocompleteContextService","autocompleteStorageService","AutocompleteStorageService","toastrService","OntoToastrService","namespaceContextService","NamespacesContextService","autocompleteWarningShown","skipValidation","isAutocompleteEnabled","handleInput","setInputValue","checkForAutocomplete","clearInput","clearStoredSearch","clearInputAndFocus","inputRef","onEnter","onEscape","onArrowUp","onArrowDown","onVisibilityChange","searchResult","clearSuggestions","getInputValue","onAutocompleteEnabledChange","onRepositoryChange","onNamespaceChange","loadInputFromStorage","_c","_d","searchLabel","listboxId","hintId","suggestions","hoveredIndex","findIndex","suggestion","isHovered","inputValue","role","getSuggestionId","autocomplete","placeholder","onInput","handleButtonClick","tabindex","index","getId","onSuggestionClick","onMouseMove","hoverSuggestion","isSelected","innerHTML","getDescription","loadAutocompleteResults","search","onResultsReceived","isEnabled","onAutocompleteEnabledChanged","enabled","warning","removeOnClick","setOverrideToVisual","ctrlKey","metaKey","searchRdfResource","getType","SuggestionType","PREFIX","expandPrefix","notifyRdfResourceSelected","setLastSelected","selectSuggestion","emit","NAME","SuggestionSelectedPayload","namespaces","getByPrefix","onSelectedRepositoryChanged","onNamespacesChanged","selectedSuggestion","getHoveredSuggestion","Suggestion","removeAngleBrackets","URI","validateAndSearch","hoverPreviousSuggestion","displaySuggestion","hoverNextSuggestion","scrollToSuggestionBySelector","getSuggestionValue","isValidUri","lastSelected","getByValue","getLastSelectedValue","hoverFirstSuggestion","OntoUserLogin","navigateToLogin","navigateToLoginPage","OntoUserMenu","authenticationService","AuthenticationService","openMySettings","navigate","logout","Logout","addEventListener","removeEventListener","user","username","isExternalUser","sanitizeHTML","html","createElement","text","replace","isFocusLost","TranslationServiceClassDefinition","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","messageLabelKey","translationParameter","translationCallback","parameters","splice","translateInLocale","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","reduce","parameter","replaceAll","notifyTranslationsChanged","keys","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"sourceRoot":""}