graphdb-workbench 3.5.0-TR4 → 3.5.0-TR5

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 (179) hide show
  1. package/dist/{23654.28f7b5a1f2cbac46b505.bundle.js → 23654.2f4c56eca267fda60261.bundle.js} +2 -2
  2. package/dist/{23654.28f7b5a1f2cbac46b505.bundle.js.map → 23654.2f4c56eca267fda60261.bundle.js.map} +1 -1
  3. package/dist/43239.71707ff04a220130d250.bundle.js +2 -0
  4. package/dist/43239.71707ff04a220130d250.bundle.js.map +1 -0
  5. package/dist/{45501.b57c0da09b0c710a2ae4.bundle.js → 45501.9eb529ce40a22951f417.bundle.js} +2 -2
  6. package/dist/{45501.b57c0da09b0c710a2ae4.bundle.js.map → 45501.9eb529ce40a22951f417.bundle.js.map} +1 -1
  7. package/dist/54774.474357fa8720f682dad5.bundle.js +2 -0
  8. package/dist/54774.474357fa8720f682dad5.bundle.js.map +1 -0
  9. package/dist/{58328.b15114d6bec21972df60.bundle.js → 58328.ae47dca9b6fd21785b2d.bundle.js} +3 -3
  10. package/dist/{58328.b15114d6bec21972df60.bundle.js.map → 58328.ae47dca9b6fd21785b2d.bundle.js.map} +1 -1
  11. package/dist/{60447.675082fab71ca7e25db4.bundle.js → 60447.57a1b7f57a11d7eb7186.bundle.js} +2 -2
  12. package/dist/{60447.675082fab71ca7e25db4.bundle.js.map → 60447.57a1b7f57a11d7eb7186.bundle.js.map} +1 -1
  13. package/dist/{64709.ec1274a92bb4614c24c6.bundle.js → 64709.3c6ab6dd64342d260265.bundle.js} +2 -2
  14. package/dist/{64709.ec1274a92bb4614c24c6.bundle.js.map → 64709.3c6ab6dd64342d260265.bundle.js.map} +1 -1
  15. package/dist/{65677.2612e7602a65661c9b59.bundle.js → 65677.3601a1447e8c705ebe9d.bundle.js} +2 -2
  16. package/dist/{65677.2612e7602a65661c9b59.bundle.js.map → 65677.3601a1447e8c705ebe9d.bundle.js.map} +1 -1
  17. package/dist/{7257.44d40b3d795bb5b63224.bundle.js → 7257.a29aff1ae95e47e808e4.bundle.js} +2 -2
  18. package/dist/{7257.44d40b3d795bb5b63224.bundle.js.map → 7257.a29aff1ae95e47e808e4.bundle.js.map} +1 -1
  19. package/dist/{79146.2855e9b7348cd38dd4e0.bundle.js → 79146.69cc6c97fd6c137bd081.bundle.js} +2 -2
  20. package/dist/{79146.2855e9b7348cd38dd4e0.bundle.js.map → 79146.69cc6c97fd6c137bd081.bundle.js.map} +1 -1
  21. package/dist/80099.6e992ddb259c9c8dd389.bundle.js +2 -0
  22. package/dist/80099.6e992ddb259c9c8dd389.bundle.js.map +1 -0
  23. package/dist/{80933.0869da7c01768e58482e.bundle.js → 80933.11ccdbd4e85cb0b0da6e.bundle.js} +2 -2
  24. package/dist/{80933.0869da7c01768e58482e.bundle.js.map → 80933.11ccdbd4e85cb0b0da6e.bundle.js.map} +1 -1
  25. package/dist/{82917.ae9eeab518f795c561b9.bundle.js → 82917.0e44aebbb0f0b307a336.bundle.js} +2 -2
  26. package/dist/{82917.ae9eeab518f795c561b9.bundle.js.map → 82917.0e44aebbb0f0b307a336.bundle.js.map} +1 -1
  27. package/dist/{85064.b385fae12f19d1ccaeaa.bundle.js → 85064.86e04d3f61bf9f5c07fe.bundle.js} +2 -2
  28. package/dist/{85064.b385fae12f19d1ccaeaa.bundle.js.map → 85064.86e04d3f61bf9f5c07fe.bundle.js.map} +1 -1
  29. package/dist/{86099.fd59643685687c61ee48.bundle.js → 86099.bac9f4c14deeb019ec32.bundle.js} +2 -2
  30. package/dist/{86099.fd59643685687c61ee48.bundle.js.map → 86099.bac9f4c14deeb019ec32.bundle.js.map} +1 -1
  31. package/dist/96827.9c566428b7ccbd367b04.bundle.js +2 -0
  32. package/dist/96827.9c566428b7ccbd367b04.bundle.js.map +1 -0
  33. package/dist/assets/i18n/en.json +1 -2
  34. package/dist/assets/i18n/fr.json +1 -2
  35. package/dist/index.html +9 -9
  36. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  37. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  38. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  39. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  40. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  41. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  42. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +2 -2
  43. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  44. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  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/security/templates/user.html +2 -2
  55. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  56. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  57. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  58. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  59. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  60. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  61. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  62. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  63. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  64. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  65. package/dist/{legacyWorkbench.c431d63e6fe22b925efd.js → legacyWorkbench.4afca6618ece256d15c7.js} +3 -3
  66. package/dist/{legacyWorkbench.c431d63e6fe22b925efd.js.map → legacyWorkbench.4afca6618ece256d15c7.js.map} +1 -1
  67. package/dist/{main.c10b01e0b09d1bc233ba.js → main.aa40457f706547a8ab62.js} +3 -3
  68. package/dist/{main.c10b01e0b09d1bc233ba.js.map → main.aa40457f706547a8ab62.js.map} +1 -1
  69. package/dist/pages/aclmanagement.html +1 -1
  70. package/dist/pages/autocomplete.html +1 -1
  71. package/dist/pages/choose-repository-type.html +1 -1
  72. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  73. package/dist/pages/create-index.html +1 -1
  74. package/dist/pages/dependencies.html +1 -1
  75. package/dist/pages/domainRangeInfo.html +2 -2
  76. package/dist/pages/edit.html +1 -1
  77. package/dist/pages/explore.html +1 -1
  78. package/dist/pages/export.html +1 -1
  79. package/dist/pages/find.html +1 -1
  80. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  81. package/dist/pages/graphs-visualizations.html +7 -7
  82. package/dist/pages/guides.html +1 -1
  83. package/dist/pages/home.html +1 -1
  84. package/dist/pages/import.html +2 -2
  85. package/dist/pages/jdbc-create.html +1 -1
  86. package/dist/pages/jdbc.html +1 -1
  87. package/dist/pages/monitor/backup-and-restore.html +1 -1
  88. package/dist/pages/monitor/queries.html +1 -1
  89. package/dist/pages/monitor/resources.html +1 -1
  90. package/dist/pages/namespaces.html +2 -2
  91. package/dist/pages/plugins.html +1 -1
  92. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  93. package/dist/pages/rdfrank.html +2 -2
  94. package/dist/pages/repositories.html +1 -1
  95. package/dist/pages/repository.html +1 -1
  96. package/dist/pages/similarity-indexes.html +1 -1
  97. package/dist/pages/sparql-editor.html +1 -1
  98. package/dist/pages/sparql-template-create.html +1 -1
  99. package/dist/pages/sparql-templates.html +1 -1
  100. package/dist/pages/ux-test1.html +2 -2
  101. package/dist/pages/webapi.html +2 -2
  102. package/dist/res/swagger5/index.html +11 -11
  103. package/dist/shared-components/cjs/onto-deprecation-banner_5.cjs.entry.js +1 -1
  104. package/dist/shared-components/cjs/onto-dialog_2.cjs.entry.js +1 -1
  105. package/dist/shared-components/cjs/onto-dropdown.cjs.entry.js +1 -1
  106. package/dist/shared-components/cjs/onto-graph-explore-split-button.cjs.entry.js +1 -1
  107. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  108. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-permission-banner.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/onto-toastr.cjs.entry.js +1 -1
  112. package/dist/shared-components/cjs/onto-tooltip.cjs.entry.js +1 -1
  113. package/dist/shared-components/cjs/translate-label.cjs.entry.js +1 -1
  114. package/dist/shared-components/collection/components/onto-deprecation-banner/onto-deprecation-banner.css +1 -1
  115. package/dist/shared-components/collection/components/onto-deprecation-banner/onto-deprecation-banner.js +1 -1
  116. package/dist/shared-components/collection/components/onto-dropdown/onto-dropdown.js +1 -1
  117. package/dist/shared-components/collection/components/onto-footer/onto-footer.js +1 -1
  118. package/dist/shared-components/collection/components/onto-graph-explore-split-button/onto-graph-explore-split-button.js +1 -1
  119. package/dist/shared-components/collection/components/onto-header/onto-header.js +1 -1
  120. package/dist/shared-components/collection/components/onto-language-selector/onto-language-selector.js +1 -1
  121. package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
  122. package/dist/shared-components/collection/components/onto-license-alert/onto-license-alert.js +1 -1
  123. package/dist/shared-components/collection/components/onto-loader/onto-loader.js +1 -1
  124. package/dist/shared-components/collection/components/onto-operations-notification/onto-operations-notification.js +1 -1
  125. package/dist/shared-components/collection/components/onto-permission-banner/onto-permission-banner.js +1 -1
  126. package/dist/shared-components/collection/components/onto-rdf-search/onto-rdf-search.js +1 -1
  127. package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.js +1 -1
  128. package/dist/shared-components/collection/components/onto-search-icon/onto-search-icon.js +1 -1
  129. package/dist/shared-components/collection/components/onto-search-resource-input/onto-search-resource-input.js +1 -1
  130. package/dist/shared-components/collection/components/onto-toastr/onto-toastr.js +1 -1
  131. package/dist/shared-components/collection/components/onto-toggle-switch/onto-toggle-switch.js +1 -1
  132. package/dist/shared-components/collection/components/onto-tooltip/onto-tooltip.js +1 -1
  133. package/dist/shared-components/collection/components/onto-user-login/onto-user-login.js +1 -1
  134. package/dist/shared-components/collection/components/onto-user-menu/onto-user-menu.js +1 -1
  135. package/dist/shared-components/collection/components/translate-label/translate-label.js +1 -1
  136. package/dist/shared-components/esm/onto-deprecation-banner_5.entry.js +1 -1
  137. package/dist/shared-components/esm/onto-dialog_2.entry.js +1 -1
  138. package/dist/shared-components/esm/onto-dropdown.entry.js +1 -1
  139. package/dist/shared-components/esm/onto-graph-explore-split-button.entry.js +1 -1
  140. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  141. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  142. package/dist/shared-components/esm/onto-permission-banner.entry.js +1 -1
  143. package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
  144. package/dist/shared-components/esm/onto-toastr.entry.js +1 -1
  145. package/dist/shared-components/esm/onto-tooltip.entry.js +1 -1
  146. package/dist/shared-components/esm/translate-label.entry.js +1 -1
  147. package/dist/shared-components/shared-components/p-23d30101.entry.js +1 -0
  148. package/dist/shared-components/shared-components/{p-5a0c473d.entry.js → p-34ade607.entry.js} +1 -1
  149. package/dist/shared-components/shared-components/{p-20b1637d.entry.js → p-6541a02d.entry.js} +1 -1
  150. package/dist/shared-components/shared-components/{p-6ce0c1c9.entry.js → p-707656f3.entry.js} +1 -1
  151. package/dist/shared-components/shared-components/{p-fb9651cd.entry.js → p-7d074106.entry.js} +1 -1
  152. package/dist/shared-components/shared-components/p-86d0a2ee.entry.js +1 -0
  153. package/dist/shared-components/shared-components/p-8fb56abc.entry.js +1 -0
  154. package/dist/shared-components/shared-components/{p-ab06eb4f.entry.js → p-98e91ae6.entry.js} +1 -1
  155. package/dist/shared-components/shared-components/{p-eda1cb77.entry.js → p-9ba83beb.entry.js} +2 -2
  156. package/dist/shared-components/shared-components/p-9f2fb166.entry.js +1 -0
  157. package/dist/shared-components/shared-components/p-b46ea034.entry.js +1 -0
  158. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  159. package/dist/shared-components/types/components/onto-footer/onto-footer.d.ts +1 -0
  160. package/dist/shared-components/types/components/translate-label/translate-label.d.ts +2 -2
  161. package/dist/shared-components/types/components.d.ts +4 -4
  162. package/package.json +1 -1
  163. package/dist/43239.1cd1b4be623593e3de58.bundle.js +0 -2
  164. package/dist/43239.1cd1b4be623593e3de58.bundle.js.map +0 -1
  165. package/dist/54774.f5bbd2466f8584d019ff.bundle.js +0 -2
  166. package/dist/54774.f5bbd2466f8584d019ff.bundle.js.map +0 -1
  167. package/dist/80099.a881e961bc3214bf8e18.bundle.js +0 -2
  168. package/dist/80099.a881e961bc3214bf8e18.bundle.js.map +0 -1
  169. package/dist/96827.775ca12817b0a81b610a.bundle.js +0 -2
  170. package/dist/96827.775ca12817b0a81b610a.bundle.js.map +0 -1
  171. package/dist/shared-components/shared-components/p-114ea8c4.entry.js +0 -1
  172. package/dist/shared-components/shared-components/p-79ea666b.entry.js +0 -1
  173. package/dist/shared-components/shared-components/p-7aea3f88.entry.js +0 -1
  174. package/dist/shared-components/shared-components/p-a0b19580.entry.js +0 -1
  175. package/dist/shared-components/shared-components/p-cec2c15d.entry.js +0 -1
  176. /package/dist/{58328.b15114d6bec21972df60.bundle.js.LICENSE.txt → 58328.ae47dca9b6fd21785b2d.bundle.js.LICENSE.txt} +0 -0
  177. /package/dist/{legacyWorkbench.c431d63e6fe22b925efd.js.LICENSE.txt → legacyWorkbench.4afca6618ece256d15c7.js.LICENSE.txt} +0 -0
  178. /package/dist/{main.c10b01e0b09d1bc233ba.js.LICENSE.txt → main.aa40457f706547a8ab62.js.LICENSE.txt} +0 -0
  179. /package/dist/shared-components/shared-components/{p-eda1cb77.entry.js.LICENSE.txt → p-9ba83beb.entry.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- export const __webpack_esm_id__=23654;export const __webpack_esm_ids__=[23654];export const __webpack_esm_modules__={23654(o,t,e){e.r(t),e.d(t,{onto_tooltip:()=>i});var r=e(18072),a=e(12954);e(51494);const i=class{constructor(o){(0,r.r)(this,o),this.clearTooltipsForRemovedElements=o=>{for(const t of o)for(const o of Array.from(t.removedNodes))if(this.removeTooltipFromNode(o))return},this.removeTooltipFromNode=o=>{if(o instanceof HTMLElement){if(a.T.getTooltipInstance(o))return a.T.destroyTooltip(o),!0;o.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(o){const t=a.T.getTooltipTarget(o.target);t&&this.handleTooltipTargetShow(t);const e=a.T.getTooltip(o.target);e&&this.handleTooltipShow(e)}handleTooltipShow(o){const t=o.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(o){a.T.getOrCreateTooltipInstance(o).show()}onMouseout(o){const t=a.T.getTooltipTarget(o.target);t&&this.handleTooltipTargetHide(t,o.relatedTarget);const e=a.T.getTooltip(o.target);e&&this.handleTooltipHide(e,o.relatedTarget)}handleTooltipHide(o,t){const e=o.tooltipTarget;e&&(t&&o.contains(t)||this.handleTooltipTargetHide(e,t))}handleTooltipTargetHide(o,t){t&&(null==o?void 0:o.contains(t))||a.T.getTooltipInstance(o)&&a.T.destroyTooltip(o)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var o;null===(o=this.observer)||void 0===o||o.disconnect()}render(){return(0,r.h)(r.a,{key:"8a7d6376167dc251bb8add8116c91d074b2adaa6"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};i.style=':host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:"";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{overflow-wrap:anywhere;position:relative;z-index:1;padding:var(--gw-tooltip-padding)}'}};
2
- //# sourceMappingURL=23654.28f7b5a1f2cbac46b505.bundle.js.map
1
+ export const __webpack_esm_id__=23654;export const __webpack_esm_ids__=[23654];export const __webpack_esm_modules__={23654(o,t,e){e.r(t),e.d(t,{onto_tooltip:()=>i});var r=e(18072),a=e(12954);e(51494);const i=class{constructor(o){(0,r.r)(this,o),this.clearTooltipsForRemovedElements=o=>{for(const t of o)for(const o of Array.from(t.removedNodes))if(this.removeTooltipFromNode(o))return},this.removeTooltipFromNode=o=>{if(o instanceof HTMLElement){if(a.T.getTooltipInstance(o))return a.T.destroyTooltip(o),!0;o.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(o){const t=a.T.getTooltipTarget(o.target);t&&this.handleTooltipTargetShow(t);const e=a.T.getTooltip(o.target);e&&this.handleTooltipShow(e)}handleTooltipShow(o){const t=o.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(o){a.T.getOrCreateTooltipInstance(o).show()}onMouseout(o){const t=a.T.getTooltipTarget(o.target);t&&this.handleTooltipTargetHide(t,o.relatedTarget);const e=a.T.getTooltip(o.target);e&&this.handleTooltipHide(e,o.relatedTarget)}handleTooltipHide(o,t){const e=o.tooltipTarget;e&&(t&&o.contains(t)||this.handleTooltipTargetHide(e,t))}handleTooltipTargetHide(o,t){t&&(null==o?void 0:o.contains(t))||a.T.getTooltipInstance(o)&&a.T.destroyTooltip(o)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var o;null===(o=this.observer)||void 0===o||o.disconnect()}render(){return(0,r.h)(r.a,{key:"6ccc31b44f2c2f04492f26d313d012b66052445a"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};i.style=':host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:"";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{overflow-wrap:anywhere;position:relative;z-index:1;padding:var(--gw-tooltip-padding)}'}};
2
+ //# sourceMappingURL=23654.2f4c56eca267fda60261.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"23654.28f7b5a1f2cbac46b505.b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AAYC,mBAAmBY,IAEnDb,EAAAA,EAAYE,eAAeW,EAGvC,CACAQ,iBAAAA,GACI/B,KAAKgC,oBACT,CACAC,oBAAAA,GACI,IAAIC,EACqB,QAAxBA,EAAKlC,KAAKmC,gBAAkC,IAAZD,GAAyBA,EAAGE,YACjE,CACAC,MAAAA,GACI,OAAOC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEC,IAAK,4CAC1B,CAKAR,kBAAAA,GACIhC,KAAKmC,SAAW,IAAIM,iBAAiBzC,KAAKC,iCAC1CD,KAAKmC,SAASO,QAAQC,SAASC,KAAM,CAAEC,WAAW,EAAMC,SAAS,GACrE,GAEJlD,EAAYmD,MA1HW,gnC","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-tooltip.entry.js"],"sourcesContent":["import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\nimport { T as TooltipUtil } from './tooltip-util-HoM2klPV.js';\nimport './onto-tooltip-placement-D_J2-9CG.js';\n\nconst ontoTooltipCss = \":host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:\\\"\\\";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{overflow-wrap:anywhere;position:relative;z-index:1;padding:var(--gw-tooltip-padding)}\";\n\nconst OntoTooltip = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Clears tooltips associated with elements that have been removed from the DOM.\n *\n * @param records - An array of MutationRecord objects, each representing a change to the DOM tree.\n * The function iterates over these records to find and clear tooltips for removed nodes.\n */\n this.clearTooltipsForRemovedElements = (records) => {\n for (const record of records) {\n for (const node of Array.from(record.removedNodes)) {\n if (this.removeTooltipFromNode(node)) {\n // stop iterating if a tooltip is found and destroyed,\n // since we can't have more than one tooltip\n return;\n }\n }\n }\n };\n /**\n * Recursively removes tooltips from a given node and its children.\n *\n * This function checks if the given node is an HTMLElement and has an associated tooltip.\n * If a tooltip is found, it is destroyed. If not, the function then recursively checks all child nodes.\n *\n * @param node - The DOM node to check for tooltips.\n * @returns A boolean indicating whether a tooltip was found and destroyed (true) or not (false).\n */\n this.removeTooltipFromNode = (node) => {\n if (node instanceof HTMLElement) {\n const tooltipInstance = TooltipUtil.getTooltipInstance(node);\n if (tooltipInstance) {\n TooltipUtil.destroyTooltip(node);\n return true;\n }\n node.childNodes.forEach(this.removeTooltipFromNode);\n }\n return false;\n };\n }\n /**\n * Checks if the target of the 'mouseover' event has tooltip configuration.\n * If it does, creates a tooltip instance and displays it.\n *\n * @param event - The 'mouseover' event triggered on a document element.\n */\n onMouseover(event) {\n const target = TooltipUtil.getTooltipTarget(event.target);\n if (target) {\n this.handleTooltipTargetShow(target);\n }\n const tooltip = TooltipUtil.getTooltip(event.target);\n if (tooltip) {\n this.handleTooltipShow(tooltip);\n }\n }\n handleTooltipShow(tooltip) {\n const tooltipTarget = tooltip.tooltipTarget;\n if (!tooltipTarget) {\n return;\n }\n this.handleTooltipTargetShow(tooltipTarget);\n }\n handleTooltipTargetShow(tooltipTarget) {\n const tooltipInstance = TooltipUtil.getOrCreateTooltipInstance(tooltipTarget);\n tooltipInstance.show();\n }\n /**\n * Destroys the tooltip if it is present.\n *\n * @param event - The 'mouseout' event triggered on a document element.\n */\n onMouseout(event) {\n const target = TooltipUtil.getTooltipTarget(event.target);\n if (target) {\n this.handleTooltipTargetHide(target, event.relatedTarget);\n }\n const tooltip = TooltipUtil.getTooltip(event.target);\n if (tooltip) {\n this.handleTooltipHide(tooltip, event.relatedTarget);\n }\n }\n handleTooltipHide(tooltip, relatedTarget) {\n const tooltipTarget = tooltip.tooltipTarget;\n if (!tooltipTarget) {\n return;\n }\n if (!relatedTarget || !tooltip.contains(relatedTarget)) {\n this.handleTooltipTargetHide(tooltipTarget, relatedTarget);\n }\n }\n handleTooltipTargetHide(tooltipTarget, relatedTarget) {\n // Ensure the mouse is completely outside the target and its children\n if (!relatedTarget || !(tooltipTarget === null || tooltipTarget === void 0 ? void 0 : tooltipTarget.contains(relatedTarget))) {\n const tooltipInstance = TooltipUtil.getTooltipInstance(tooltipTarget);\n if (tooltipInstance) {\n TooltipUtil.destroyTooltip(tooltipTarget);\n }\n }\n }\n connectedCallback() {\n this.handleRemovedNodes();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n render() {\n return h(Host, { key: '8a7d6376167dc251bb8add8116c91d074b2adaa6' });\n }\n /**\n * Initializes a MutationObserver to monitor the document body for removed nodes.\n * When nodes are removed, it triggers the clearing of tooltips associated with those nodes.\n */\n handleRemovedNodes() {\n this.observer = new MutationObserver(this.clearTooltipsForRemovedElements);\n this.observer.observe(document.body, { childList: true, subtree: true });\n }\n};\nOntoTooltip.style = ontoTooltipCss;\n\nexport { OntoTooltip as onto_tooltip };\n"],"names":["OntoTooltip","constructor","hostRef","registerInstance","this","clearTooltipsForRemovedElements","records","record","node","Array","from","removedNodes","removeTooltipFromNode","HTMLElement","TooltipUtil","getTooltipInstance","destroyTooltip","childNodes","forEach","onMouseover","event","target","getTooltipTarget","handleTooltipTargetShow","tooltip","getTooltip","handleTooltipShow","tooltipTarget","getOrCreateTooltipInstance","show","onMouseout","handleTooltipTargetHide","relatedTarget","handleTooltipHide","contains","connectedCallback","handleRemovedNodes","disconnectedCallback","_a","observer","disconnect","render","h","Host","key","MutationObserver","observe","document","body","childList","subtree","style"],"sourceRoot":""}
1
+ {"version":3,"file":"23654.2f4c56eca267fda60261.bundle.js","mappings":"wMAIA,MAEMA,EAAc,MAChBC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBC,KAAMF,GAOvBE,KAAKC,gCAAmCC,IACpC,IAAK,MAAMC,KAAUD,EACjB,IAAK,MAAME,KAAQC,MAAMC,KAAKH,EAAOI,cACjC,GAAIP,KAAKQ,sBAAsBJ,GAG3B,QAchBJ,KAAKQ,sBAAyBJ,IAC1B,GAAIA,aAAgBK,YAAa,CAE7B,GADwBC,EAAAA,EAAYC,mBAAmBP,GAGnD,OADAM,EAAAA,EAAYE,eAAeR,IACpB,EAEXA,EAAKS,WAAWC,QAAQd,KAAKQ,sBACjC,CACA,OAAO,EAEf,CAOAO,WAAAA,CAAYC,GACR,MAAMC,EAASP,EAAAA,EAAYQ,iBAAiBF,EAAMC,QAC9CA,GACAjB,KAAKmB,wBAAwBF,GAEjC,MAAMG,EAAUV,EAAAA,EAAYW,WAAWL,EAAMC,QACzCG,GACApB,KAAKsB,kBAAkBF,EAE/B,CACAE,iBAAAA,CAAkBF,GACd,MAAMG,EAAgBH,EAAQG,cACzBA,GAGLvB,KAAKmB,wBAAwBI,EACjC,CACAJ,uBAAAA,CAAwBI,GACIb,EAAAA,EAAYc,2BAA2BD,GAC/CE,MACpB,CAMAC,UAAAA,CAAWV,GACP,MAAMC,EAASP,EAAAA,EAAYQ,iBAAiBF,EAAMC,QAC9CA,GACAjB,KAAK2B,wBAAwBV,EAAQD,EAAMY,eAE/C,MAAMR,EAAUV,EAAAA,EAAYW,WAAWL,EAAMC,QACzCG,GACApB,KAAK6B,kBAAkBT,EAASJ,EAAMY,cAE9C,CACAC,iBAAAA,CAAkBT,EAASQ,GACvB,MAAML,EAAgBH,EAAQG,cACzBA,IAGAK,GAAkBR,EAAQU,SAASF,IACpC5B,KAAK2B,wBAAwBJ,EAAeK,GAEpD,CACAD,uBAAAA,CAAwBJ,EAAeK,GAE9BA,IAAmBL,aAA0D,EAAIA,EAAcO,SAASF,KACjFlB,EAAAA,EAAYC,mBAAmBY,IAEnDb,EAAAA,EAAYE,eAAeW,EAGvC,CACAQ,iBAAAA,GACI/B,KAAKgC,oBACT,CACAC,oBAAAA,GACI,IAAIC,EACqB,QAAxBA,EAAKlC,KAAKmC,gBAAkC,IAAZD,GAAyBA,EAAGE,YACjE,CACAC,MAAAA,GACI,OAAOC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEC,IAAK,4CAC1B,CAKAR,kBAAAA,GACIhC,KAAKmC,SAAW,IAAIM,iBAAiBzC,KAAKC,iCAC1CD,KAAKmC,SAASO,QAAQC,SAASC,KAAM,CAAEC,WAAW,EAAMC,SAAS,GACrE,GAEJlD,EAAYmD,MA1HW,gnC","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-tooltip.entry.js"],"sourcesContent":["import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\nimport { T as TooltipUtil } from './tooltip-util-HoM2klPV.js';\nimport './onto-tooltip-placement-D_J2-9CG.js';\n\nconst ontoTooltipCss = \":host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:\\\"\\\";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{overflow-wrap:anywhere;position:relative;z-index:1;padding:var(--gw-tooltip-padding)}\";\n\nconst OntoTooltip = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Clears tooltips associated with elements that have been removed from the DOM.\n *\n * @param records - An array of MutationRecord objects, each representing a change to the DOM tree.\n * The function iterates over these records to find and clear tooltips for removed nodes.\n */\n this.clearTooltipsForRemovedElements = (records) => {\n for (const record of records) {\n for (const node of Array.from(record.removedNodes)) {\n if (this.removeTooltipFromNode(node)) {\n // stop iterating if a tooltip is found and destroyed,\n // since we can't have more than one tooltip\n return;\n }\n }\n }\n };\n /**\n * Recursively removes tooltips from a given node and its children.\n *\n * This function checks if the given node is an HTMLElement and has an associated tooltip.\n * If a tooltip is found, it is destroyed. If not, the function then recursively checks all child nodes.\n *\n * @param node - The DOM node to check for tooltips.\n * @returns A boolean indicating whether a tooltip was found and destroyed (true) or not (false).\n */\n this.removeTooltipFromNode = (node) => {\n if (node instanceof HTMLElement) {\n const tooltipInstance = TooltipUtil.getTooltipInstance(node);\n if (tooltipInstance) {\n TooltipUtil.destroyTooltip(node);\n return true;\n }\n node.childNodes.forEach(this.removeTooltipFromNode);\n }\n return false;\n };\n }\n /**\n * Checks if the target of the 'mouseover' event has tooltip configuration.\n * If it does, creates a tooltip instance and displays it.\n *\n * @param event - The 'mouseover' event triggered on a document element.\n */\n onMouseover(event) {\n const target = TooltipUtil.getTooltipTarget(event.target);\n if (target) {\n this.handleTooltipTargetShow(target);\n }\n const tooltip = TooltipUtil.getTooltip(event.target);\n if (tooltip) {\n this.handleTooltipShow(tooltip);\n }\n }\n handleTooltipShow(tooltip) {\n const tooltipTarget = tooltip.tooltipTarget;\n if (!tooltipTarget) {\n return;\n }\n this.handleTooltipTargetShow(tooltipTarget);\n }\n handleTooltipTargetShow(tooltipTarget) {\n const tooltipInstance = TooltipUtil.getOrCreateTooltipInstance(tooltipTarget);\n tooltipInstance.show();\n }\n /**\n * Destroys the tooltip if it is present.\n *\n * @param event - The 'mouseout' event triggered on a document element.\n */\n onMouseout(event) {\n const target = TooltipUtil.getTooltipTarget(event.target);\n if (target) {\n this.handleTooltipTargetHide(target, event.relatedTarget);\n }\n const tooltip = TooltipUtil.getTooltip(event.target);\n if (tooltip) {\n this.handleTooltipHide(tooltip, event.relatedTarget);\n }\n }\n handleTooltipHide(tooltip, relatedTarget) {\n const tooltipTarget = tooltip.tooltipTarget;\n if (!tooltipTarget) {\n return;\n }\n if (!relatedTarget || !tooltip.contains(relatedTarget)) {\n this.handleTooltipTargetHide(tooltipTarget, relatedTarget);\n }\n }\n handleTooltipTargetHide(tooltipTarget, relatedTarget) {\n // Ensure the mouse is completely outside the target and its children\n if (!relatedTarget || !(tooltipTarget === null || tooltipTarget === void 0 ? void 0 : tooltipTarget.contains(relatedTarget))) {\n const tooltipInstance = TooltipUtil.getTooltipInstance(tooltipTarget);\n if (tooltipInstance) {\n TooltipUtil.destroyTooltip(tooltipTarget);\n }\n }\n }\n connectedCallback() {\n this.handleRemovedNodes();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n render() {\n return h(Host, { key: '6ccc31b44f2c2f04492f26d313d012b66052445a' });\n }\n /**\n * Initializes a MutationObserver to monitor the document body for removed nodes.\n * When nodes are removed, it triggers the clearing of tooltips associated with those nodes.\n */\n handleRemovedNodes() {\n this.observer = new MutationObserver(this.clearTooltipsForRemovedElements);\n this.observer.observe(document.body, { childList: true, subtree: true });\n }\n};\nOntoTooltip.style = ontoTooltipCss;\n\nexport { OntoTooltip as onto_tooltip };\n"],"names":["OntoTooltip","constructor","hostRef","registerInstance","this","clearTooltipsForRemovedElements","records","record","node","Array","from","removedNodes","removeTooltipFromNode","HTMLElement","TooltipUtil","getTooltipInstance","destroyTooltip","childNodes","forEach","onMouseover","event","target","getTooltipTarget","handleTooltipTargetShow","tooltip","getTooltip","handleTooltipShow","tooltipTarget","getOrCreateTooltipInstance","show","onMouseout","handleTooltipTargetHide","relatedTarget","handleTooltipHide","contains","connectedCallback","handleRemovedNodes","disconnectedCallback","_a","observer","disconnect","render","h","Host","key","MutationObserver","observe","document","body","childList","subtree","style"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=43239;export const __webpack_esm_ids__=[43239];export const __webpack_esm_modules__={29229(e,t,i){function a(e,t=300){let i;return(...a)=>{clearTimeout(i),i=setTimeout(()=>e.apply(this,a),t)}}i.d(t,{d:()=>a})},43239(e,t,i){i.r(t),i.d(t,{onto_layout:()=>o});var a=i(18072),s=i(29229),n=i(57154),r=i(54096);const o=class{constructor(e){(0,a.r)(this,e),this.authenticationService=(0,n.service)(n.AuthenticationService),this.authorizationService=(0,n.service)(n.AuthorizationService),this.navigationContextService=(0,n.service)(n.NavigationContextService),this.authStorageService=(0,n.service)(n.AuthenticationStorageService),this.runtimeConfigurationContextService=(0,n.service)(n.RuntimeConfigurationContextService),this.eventService=(0,n.service)(n.EventService),this.applicationLifecycleContextService=(0,n.service)(n.ApplicationLifecycleContextService),this.userPreferencesService=(0,n.service)(n.UserPreferencesService),this.userPreferencesContextService=(0,n.service)(n.UserPreferencesContextService),this.fullJwtKey=`${n.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${n.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`,this.authEvents=[this.fullJwtKey,this.fullAuthenticatedKey],this.isLowResolution=!1,this.showHeader=this.isAuthenticatedFully(),this.showNavbar=!1,this.isEmbedded=!1,this.loading=!0,this.hideSolrDeprecationBanner=!1,this.subscriptions=new n.SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{(0,n.service)(n.LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=(0,s.d)(()=>this.windowResizeHandler(),50),n.WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidRender(){this.windowResizeHandler()}componentDidLoad(){this.updateShowSolrDeprecationBanner()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.subscribeToBeforeMountRouting(),this.loading=!1}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return(0,a.h)(a.a,{key:"537f76787f912cde68af6cb5b902b76a34d48d3e",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},(0,a.h)("div",{key:"a9e344f05e4862f54952ceb5fc508fa2f93171fb",class:"default-slot-wrapper"},(0,a.h)("slot",{key:"6b90a7bfb37fd49b905ba20f5c802faeef45e4e1",name:"default"})),!this.isEmbedded&&(0,a.h)("div",{key:"c93adb078e98811365e46b56b308da99d106e7dd",class:"wb-header"},!this.hideSolrDeprecationBanner&&(0,a.h)("onto-deprecation-banner",{key:"4e3bad5818918b4b03048234d4e991dfca7cbe01",class:"onto-deprecation-banner",onCloseBanner:this.onSolrDeprecationBannerClosedHandler()},(0,a.h)("span",{key:"ec2f08da5bfaee597f22f2e4e3613f4bc1754fd3",slot:"content"},(0,a.h)("translate-label",{key:"f08fb3a7214c59392593f3c7f8dcd88139774b19",labelKey:"deprecation-banner.solr.content"}))),(0,a.h)("header",{key:"7d6ec8141bedae1f11e04a58c299176e9f08f399"},this.showHeader&&(0,a.h)("onto-header",{key:"d4c8ef991aad7843782abfdf58c87e21569552ec"}))),!this.isEmbedded&&this.showNavbar&&(0,a.h)("nav",{key:"8eeded07cea3242140bc23f97d93f0623fccdc4a",class:"wb-navbar"},(0,a.h)("onto-navbar",{key:"cefe1d6a0cac0d39763aa0f20ebd43d3d905debd",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),(0,a.h)("slot",{key:"2c3dfbb9dcd6c408fdbfb911ae69e5c0720e1337",name:"main"},(0,a.h)("onto-loader",{key:"ba0ca75373977a0e5542bf1f8eeea0175dfcfa09",loading:this.loading,targetSelector:"main",size:96,messageText:r.T.translate("common.loading")})),!this.isEmbedded&&(0,a.h)("footer",{key:"bdfdc37c695169bf4e79ba573c6c05d614648f05",class:"wb-footer"},(0,a.h)("onto-footer",{key:"e0e227b6fe34133d0ae06163b4f9e4b5b00b5b37"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}onSolrDeprecationBannerClosedHandler(){return()=>{this.userPreferencesService.dismissSolrDeprecationBanner(),this.updateShowSolrDeprecationBanner()}}windowResizeHandler(){var e,t,i,a;this.isLowResolution=n.WindowService.getWindow().innerWidth<=768;const s=document.querySelector(".navbar-component");if(s){const n=document.querySelector(".cookie-consent-banner"),r=document.querySelector(".wb-header"),o=null!==(t=null===(e=null==r?void 0:r.getBoundingClientRect())||void 0===e?void 0:e.height)&&void 0!==t?t:0,h=null!==(a=null===(i=null==n?void 0:n.getBoundingClientRect())||void 0===i?void 0:i.height)&&void 0!==a?a:0;s.style.height=`calc(100% - ${o}px - ${h}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var t;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?(0,n.navigate)(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):(0,n.navigate)("login"),n.WindowService.getWindow().location.reload())}subscribeToSecurityChanges(){const e=(0,n.service)(n.SecurityContextService);this.subscriptions.add(e.onAuthenticatedUserChanged(e=>{this.authenticatedUser=e,this.updateVisibility()})),this.subscriptions.add(e.onSecurityConfigChanged(e=>{this.securityConfig=e,this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(n.EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(n.EventName.LOGOUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),(0,n.navigate)("login")}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var t;this.isEmbedded=null!==(t=null==e?void 0:e.isEmbedded)&&void 0!==t&&t}))}updateVisibility(){this.authenticationService.isSecurityEnabled()?(this.showHeader=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess(),this.showNavbar=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()):(this.showNavbar=!0,this.showHeader=!0)}isAuthenticatedFully(){return!this.authenticationService.isSecurityEnabled()||this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()}shouldShowMenu(e){return this.isAuthenticatedFully()&&this.authorizationService.hasRole(e)}assignNavbarRef(){return e=>{this.navbarRef=e,this.navbarRef&&(this.navbarRef.menuItems=n.WindowService.getPluginRegistry().get(n.MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,t,i;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var t;e.shouldShow=this.shouldShowMenu(e.role),(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.forEach(a)};null===(i=null===(t=this.navbarRef)||void 0===t?void 0:t.menuItems)||void 0===i||i.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(n.EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),setTimeout(()=>{this.loading=!1})}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting(e=>{e&&(this.loading=!0)}))}subscribeToUserPreferencesChange(){this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(()=>{this.updateShowSolrDeprecationBanner()}))}updateShowSolrDeprecationBanner(){this.hideSolrDeprecationBanner=this.userPreferencesService.isSolrDeprecationBannerDismissed()}get hostElement(){return(0,a.d)(this)}};o.style=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}'},54096(e,t,i){i.d(t,{L:()=>n,T:()=>o,s:()=>s});var a=i(57154);function s(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}class n{static get logger(){return a.Loggers.getLoggerInstance("SharedComponents")}}class r{constructor(){this.languageContextService=a.ServiceProvider.get(a.LanguageContextService),this.translationChangedObservers={},this.logger=n.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],i=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const a={parameters:t,callback:i};return this.translationChangedObservers[e].push(a),i(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(a);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let i=this.translateFromBundle(this.currentBundle,e);return i||(i=this.translateFromBundle(this.defaultBundle,e)),i?(i=this.applyParameters(i,t),s(i)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let i=e[t];return"string"!=typeof i&&(i=this.translateAsJsonObject(e,t)),i}translateAsJsonObject(e,t){if(!t)return;let i=t.split(".");return this.getTranslation(e,i)}getTranslation(e,t){if(!t||!e)return;const i=e[t.splice(0,1)[0]];return 0===t.length?i:"string"!=typeof i?t.length>0?this.getTranslation(i,t):i:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>r.replaceAll(e,t),e):e}static replaceAll(e,t){return t?e.split(`{{${t.key}}}`).join(t.value):e}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach(e=>{(this.translationChangedObservers[e]||[]).forEach(t=>t.callback(this.translate(e,t.parameters)))})}subscribeToBundleChange(){this.languageChangeSubscription=this.languageContextService.onLanguageBundleChanged(e=>{e&&(this.currentBundle=e,this.notifyTranslationsChanged())})}destroy(){this.languageChangeSubscription&&this.languageChangeSubscription()}}const o=new r}};
2
+ //# sourceMappingURL=43239.71707ff04a220130d250.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"43239.71707ff04a220130d250.bundle.js","mappings":"kIAAA,SAASA,EAASC,EAAMC,EAAO,KAC3B,IAAIC,EACJ,MAAO,IAAIC,KACPC,aAAaF,GACbA,EAAQG,WAAW,IAAML,EAAKM,MAAMC,KAAMJ,GAAOF,GAEzD,C,iHCDA,MASMO,EAAa,MAIfC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBJ,KAAMG,GAIvBH,KAAKK,uBAAwBC,EAAAA,EAAAA,SAAQC,EAAAA,uBACrCP,KAAKQ,sBAAuBF,EAAAA,EAAAA,SAAQG,EAAAA,sBACpCT,KAAKU,0BAA2BJ,EAAAA,EAAAA,SAAQK,EAAAA,0BACxCX,KAAKY,oBAAqBN,EAAAA,EAAAA,SAAQO,EAAAA,8BAClCb,KAAKc,oCAAqCR,EAAAA,EAAAA,SAAQS,EAAAA,oCAClDf,KAAKgB,cAAeV,EAAAA,EAAAA,SAAQW,EAAAA,cAC5BjB,KAAKkB,oCAAqCZ,EAAAA,EAAAA,SAAQa,EAAAA,oCAClDnB,KAAKoB,wBAAyBd,EAAAA,EAAAA,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+I,MAAM,KACrB,OAAO7L,KAAK8L,eAAeJ,EAAQE,EACvC,CASAE,cAAAA,CAAeC,EAAYH,GAEvB,IAAKA,IAASG,EACV,OAEJ,MAAMC,EAAoBD,EAAWH,EAAKT,OAAO,EAAG,GAAG,IACvD,OAAoB,IAAhBS,EAAKjD,OACEqD,EAEsB,iBAAtBA,EAEHJ,EAAKjD,OAAS,EACP3I,KAAK8L,eAAeE,EAAmBJ,GAE3CI,OALX,CAQJ,CACAR,eAAAA,CAAgBH,EAAaP,GACzB,OAAIA,EACOA,EAAWmB,OAElB,CAACZ,EAAaa,IAAcjC,EAAkCkC,WAAWd,EAAaa,GAAYb,GAE/FA,CACX,CACA,iBAAOc,CAAWd,EAAaa,GAC3B,OAAOA,EAAYb,EAAYQ,MAAM,KAAKK,EAAUpJ,SAASsJ,KAAKF,EAAUtC,OAASyB,CACzF,CACAgB,yBAAAA,GACIC,OAAOC,KAAKvM,KAAKqK,6BAA6BzB,QAAS4D,KACjCxM,KAAKqK,4BAA4BmC,IAAc,IACvD5D,QAASiC,GAAaA,EAASE,SAAS/K,KAAK+E,UAAUyH,EAAW3B,EAASC,eAE7F,CACAN,uBAAAA,GACIxK,KAAKyM,2BAA6BzM,KAAKkK,uBAAuBwC,wBAAyBhB,IAC/EA,IACA1L,KAAKuL,cAAgBG,EACrB1L,KAAKqM,8BAGjB,CACAM,OAAAA,GACQ3M,KAAKyM,4BACLzM,KAAKyM,4BAEb,EAEJ,MAAM3H,EAAqB,IAAImF,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/function-utils-D1ZpXQQS.js","webpack://root-config/./packages/shared-components/dist/esm/onto-layout.entry.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-CyWR_ReZ.js"],"sourcesContent":["function debounce(func, wait = 300) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => func.apply(this, args), wait);\n };\n}\n\nexport { debounce as d };\n","import { r as registerInstance, h, a as Host, d as getElement } from './index-BntG-4Sv.js';\nimport { d as debounce } from './function-utils-D1ZpXQQS.js';\nimport { service, AuthenticationService, AuthorizationService, NavigationContextService, AuthenticationStorageService, RuntimeConfigurationContextService, EventService, ApplicationLifecycleContextService, UserPreferencesService, UserPreferencesContextService, StorageKey, SubscriptionList, LocalStorageSubscriptionHandlerService, WindowService, navigate, SecurityContextService, EventName, MainMenuExtensionPoint } from '@ontotext/workbench-api';\nimport { T as TranslationService } from './translation.service-CyWR_ReZ.js';\n\nconst RESPONSIVE_BREAKPOINTS = {\n MD: 768};\n/**\n * The width of the window in pixels at which the navbar should collapse.\n */\nconst WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR = RESPONSIVE_BREAKPOINTS.MD;\n\nconst ontoLayoutCss = \":host{display:block;height:100%}.wb-layout{display:grid;grid-template:\\\"header header\\\" auto \\\"nav main\\\" 1fr \\\"nav footer\\\" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:\\\"main\\\";padding-top:1rem}.wb-layout.hide-navbar{grid-template:\\\"header\\\" auto \\\"main\\\" 1fr \\\"footer\\\" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}\";\n\nconst OntoLayout = class {\n // ========================\n // Lifecycle methods\n // ========================\n constructor(hostRef) {\n registerInstance(this, hostRef);\n // ========================\n // Services\n // ========================\n this.authenticationService = service(AuthenticationService);\n this.authorizationService = service(AuthorizationService);\n this.navigationContextService = service(NavigationContextService);\n this.authStorageService = service(AuthenticationStorageService);\n this.runtimeConfigurationContextService = service(RuntimeConfigurationContextService);\n this.eventService = service(EventService);\n this.applicationLifecycleContextService = service(ApplicationLifecycleContextService);\n this.userPreferencesService = service(UserPreferencesService);\n this.userPreferencesContextService = service(UserPreferencesContextService);\n this.fullJwtKey = `${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`;\n this.fullAuthenticatedKey = `${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`;\n this.authEvents = [this.fullJwtKey, this.fullAuthenticatedKey];\n this.isLowResolution = false;\n this.showHeader = this.isAuthenticatedFully();\n this.showNavbar = false;\n this.isEmbedded = false;\n this.loading = true;\n this.hideSolrDeprecationBanner = false;\n // ========================\n // Private\n // ========================\n /**\n * List of subscriptions to manage component lifecycle\n * */\n this.subscriptions = new SubscriptionList();\n this.isNavbarCollapsed = false;\n this.handleStorageChange = (event) => {\n const localStorageSubscriptionHandlerService = service(LocalStorageSubscriptionHandlerService);\n localStorageSubscriptionHandlerService.handleStorageChange(event);\n this.handleAuthChange(event.key);\n };\n this.windowResizeObserver = debounce(() => this.windowResizeHandler(), 50);\n WindowService.getWindow().addEventListener('storage', this.handleStorageChange);\n }\n componentDidRender() {\n this.windowResizeHandler();\n }\n componentDidLoad() {\n this.updateShowSolrDeprecationBanner();\n }\n connectedCallback() {\n this.subscribeToSecurityChanges();\n this.updateVisibility();\n this.subscribeToNavigationEnd();\n this.subscribeToRuntimeConfigurationChanges();\n this.subscribeToUserPreferencesChange();\n this.subscribeToBeforeMountRouting();\n this.loading = false;\n }\n /**\n * Lifecycle method called when the component is about to be removed from the DOM.\n * Unsubscribes from all subscriptions to prevent memory leaks.\n */\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n return (h(Host, { key: '537f76787f912cde68af6cb5b902b76a34d48d3e', class: {\n 'wb-layout': true,\n 'is-embedded': this.isEmbedded,\n 'hide-navbar': !this.showNavbar,\n 'loading': this.loading\n } }, h(\"div\", { key: 'a9e344f05e4862f54952ceb5fc508fa2f93171fb', class: \"default-slot-wrapper\" }, h(\"slot\", { key: '6b90a7bfb37fd49b905ba20f5c802faeef45e4e1', name: \"default\" })), !this.isEmbedded && h(\"div\", { key: 'c93adb078e98811365e46b56b308da99d106e7dd', class: \"wb-header\" }, !this.hideSolrDeprecationBanner &&\n h(\"onto-deprecation-banner\", { key: '4e3bad5818918b4b03048234d4e991dfca7cbe01', class: 'onto-deprecation-banner', onCloseBanner: this.onSolrDeprecationBannerClosedHandler() }, h(\"span\", { key: 'ec2f08da5bfaee597f22f2e4e3613f4bc1754fd3', slot: 'content' }, h(\"translate-label\", { key: 'f08fb3a7214c59392593f3c7f8dcd88139774b19', labelKey: 'deprecation-banner.solr.content' }))), h(\"header\", { key: '7d6ec8141bedae1f11e04a58c299176e9f08f399' }, this.showHeader && h(\"onto-header\", { key: 'd4c8ef991aad7843782abfdf58c87e21569552ec' }))), !this.isEmbedded && this.showNavbar &&\n h(\"nav\", { key: '8eeded07cea3242140bc23f97d93f0623fccdc4a', class: \"wb-navbar\" }, h(\"onto-navbar\", { key: 'cefe1d6a0cac0d39763aa0f20ebd43d3d905debd', ref: this.assignNavbarRef(), \"navbar-collapsed\": this.isLowResolution })), h(\"slot\", { key: '2c3dfbb9dcd6c408fdbfb911ae69e5c0720e1337', name: \"main\" }, h(\"onto-loader\", { key: 'ba0ca75373977a0e5542bf1f8eeea0175dfcfa09', loading: this.loading, targetSelector: 'main', size: 96, messageText: TranslationService.translate('common.loading') })), !this.isEmbedded &&\n h(\"footer\", { key: 'bdfdc37c695169bf4e79ba573c6c05d614648f05', class: \"wb-footer\" }, h(\"onto-footer\", { key: 'e0e227b6fe34133d0ae06163b4f9e4b5b00b5b37' }))));\n }\n // ========================\n // Event Listeners\n // ========================\n /**\n * Event listener for the navbar toggled event. The layout needs to respond properly when the navbar is toggled in\n * order to fit the content.\n * @param event\n */\n onNavbarToggled(event) {\n this.isNavbarCollapsed = event.detail.payload;\n if (this.isNavbarCollapsed) {\n this.hostElement.classList.add('expanded');\n }\n else {\n this.hostElement.classList.remove('expanded');\n }\n }\n /**\n * Event listener for window resize event. We need to handle this in order to allow the navbar to collapse when the\n * window is resized.\n */\n onResize() {\n this.windowResizeObserver();\n }\n onSolrDeprecationBannerClosedHandler() {\n return () => {\n this.userPreferencesService.dismissSolrDeprecationBanner();\n this.updateShowSolrDeprecationBanner();\n };\n }\n // ========================\n // Handlers\n // ========================\n windowResizeHandler() {\n var _a, _b, _c, _d;\n this.isLowResolution = WindowService.getWindow().innerWidth <= WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;\n const navbar = document.querySelector('.navbar-component');\n if (navbar) {\n const cookieBanner = document.querySelector('.cookie-consent-banner');\n const header = document.querySelector('.wb-header');\n const headerHeight = (_b = (_a = header === null || header === void 0 ? void 0 : header.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : 0;\n const bannerHeight = (_d = (_c = cookieBanner === null || cookieBanner === void 0 ? void 0 : cookieBanner.getBoundingClientRect()) === null || _c === void 0 ? void 0 : _c.height) !== null && _d !== void 0 ? _d : 0;\n navbar.style.height = `calc(100% - ${headerHeight}px - ${bannerHeight}px)`;\n }\n if (!this.isLowResolution && !this.isNavbarCollapsed) {\n this.hostElement.classList.remove('expanded');\n }\n else {\n this.hostElement.classList.add('expanded');\n }\n }\n handleAuthChange(changedKey) {\n var _a;\n if (!changedKey) {\n return;\n }\n if (this.authEvents.includes(changedKey)) {\n const authenticated = this.authStorageService.isAuthenticated();\n if (authenticated) {\n navigate((_a = this.navigationContextService.getPreviousRoute()) !== null && _a !== void 0 ? _a : './');\n }\n else {\n navigate('login');\n }\n WindowService.getWindow().location.reload();\n }\n }\n // ========================\n // Security & Permissions\n // ========================\n subscribeToSecurityChanges() {\n const securityContextService = service(SecurityContextService);\n this.subscriptions.add(securityContextService.onAuthenticatedUserChanged((authenticatedUser) => {\n this.authenticatedUser = authenticatedUser;\n this.updateVisibility();\n }));\n this.subscriptions.add(securityContextService.onSecurityConfigChanged((securityConfig) => {\n this.securityConfig = securityConfig;\n this.updateVisibility();\n }));\n this.subscriptions.add(this.eventService.subscribe(EventName.LOGIN, () => {\n this.setNavbarItemVisibility();\n this.updateVisibility();\n }));\n this.subscriptions.add(this.eventService.subscribe(EventName.LOGOUT, () => {\n this.setNavbarItemVisibility();\n this.updateVisibility();\n navigate('login');\n }));\n }\n subscribeToRuntimeConfigurationChanges() {\n this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged((config) => {\n var _a;\n this.isEmbedded = (_a = config === null || config === void 0 ? void 0 : config.isEmbedded) !== null && _a !== void 0 ? _a : false;\n }));\n }\n updateVisibility() {\n if (!this.authenticationService.isSecurityEnabled()) {\n this.showNavbar = true;\n this.showHeader = true;\n }\n else {\n this.showHeader = this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n this.showNavbar = this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n }\n }\n isAuthenticatedFully() {\n return !this.authenticationService.isSecurityEnabled() || this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n }\n shouldShowMenu(role) {\n return this.isAuthenticatedFully() && this.authorizationService.hasRole(role);\n }\n // ========================\n // Navbar logic\n // ========================\n assignNavbarRef() {\n return (navbar) => {\n this.navbarRef = navbar;\n if (!this.navbarRef) {\n return;\n }\n this.navbarRef.menuItems = WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME);\n this.setNavbarItemVisibility();\n };\n }\n setNavbarItemVisibility() {\n var _a, _b, _c;\n if (!((_a = this.navbarRef) === null || _a === void 0 ? void 0 : _a.menuItems)) {\n return;\n }\n // recursively check for children and set their shouldShow property\n const processItem = (item) => {\n var _a;\n item.shouldShow = this.shouldShowMenu(item.role);\n if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {\n item.children.forEach(processItem);\n }\n };\n (_c = (_b = this.navbarRef) === null || _b === void 0 ? void 0 : _b.menuItems) === null || _c === void 0 ? void 0 : _c.forEach(plugin => {\n plugin.items.forEach(processItem);\n });\n // Update the reference to trigger a re-render\n this.navbarRef.menuItems = [...this.navbarRef.menuItems];\n }\n subscribeToNavigationEnd() {\n this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END, (navigationEndPayload) => {\n this.navigationContextService.updatePreviousRoute(navigationEndPayload.oldUrl);\n // NAVIGATION_END appears to happen in the same tick as BeforeMountRouting, so the loader never gets shown\n setTimeout(() => {\n this.loading = false;\n });\n }));\n }\n subscribeToBeforeMountRouting() {\n this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting((payload) => {\n if (payload) {\n this.loading = true;\n }\n }));\n }\n subscribeToUserPreferencesChange() {\n this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(() => {\n this.updateShowSolrDeprecationBanner();\n }));\n }\n updateShowSolrDeprecationBanner() {\n this.hideSolrDeprecationBanner = this.userPreferencesService.isSolrDeprecationBannerDismissed();\n }\n get hostElement() { return getElement(this); }\n};\nOntoLayout.style = ontoLayoutCss;\n\nexport { OntoLayout as onto_layout };\n","import { Loggers, ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\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\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 { LoggerProvider as L, TranslationService as T, sanitizeHTML as s };\n"],"names":["debounce","func","wait","timer","args","clearTimeout","setTimeout","apply","this","OntoLayout","constructor","hostRef","registerInstance","authenticationService","service","AuthenticationService","authorizationService","AuthorizationService","navigationContextService","NavigationContextService","authStorageService","AuthenticationStorageService","runtimeConfigurationContextService","RuntimeConfigurationContextService","eventService","EventService","applicationLifecycleContextService","ApplicationLifecycleContextService","userPreferencesService","UserPreferencesService","userPreferencesContextService","UserPreferencesContextService","fullJwtKey","StorageKey","GLOBAL_NAMESPACE","NAMESPACE","jwtKey","fullAuthenticatedKey","authenticatedKey","authEvents","isLowResolution","showHeader","isAuthenticatedFully","showNavbar","isEmbedded","loading","hideSolrDeprecationBanner","subscriptions","SubscriptionList","isNavbarCollapsed","handleStorageChange","event","LocalStorageSubscriptionHandlerService","handleAuthChange","key","windowResizeObserver","windowResizeHandler","WindowService","getWindow","addEventListener","componentDidRender","componentDidLoad","updateShowSolrDeprecationBanner","connectedCallback","subscribeToSecurityChanges","updateVisibility","subscribeToNavigationEnd","subscribeToRuntimeConfigurationChanges","subscribeToUserPreferencesChange","subscribeToBeforeMountRouting","disconnectedCallback","unsubscribeAll","render","h","Host","class","name","onCloseBanner","onSolrDeprecationBannerClosedHandler","slot","labelKey","ref","assignNavbarRef","targetSelector","size","messageText","TranslationService","translate","onNavbarToggled","detail","payload","hostElement","classList","add","remove","onResize","dismissSolrDeprecationBanner","_a","_b","_c","_d","innerWidth","navbar","document","querySelector","cookieBanner","header","headerHeight","getBoundingClientRect","height","bannerHeight","style","changedKey","includes","isAuthenticated","navigate","getPreviousRoute","location","reload","securityContextService","SecurityContextService","onAuthenticatedUserChanged","authenticatedUser","onSecurityConfigChanged","securityConfig","subscribe","EventName","LOGIN","setNavbarItemVisibility","LOGOUT","onRuntimeConfigurationChanged","config","isSecurityEnabled","hasFreeAccess","shouldShowMenu","role","hasRole","navbarRef","menuItems","getPluginRegistry","get","MainMenuExtensionPoint","NAME","processItem","item","shouldShow","children","length","forEach","plugin","items","NAVIGATION_END","navigationEndPayload","updatePreviousRoute","oldUrl","onNavigationBeforeMountRouting","onUserPreferencesChanged","isSolrDeprecationBannerDismissed","getElement","sanitizeHTML","html","element","createElement","innerHTML","value","LoggerProvider","logger","Loggers","getLoggerInstance","TranslationServiceClassDefinition","languageContextService","ServiceProvider","LanguageContextService","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","onTranslate","messageLabelKey","translationParameter","translationCallback","observer","parameters","callback","push","index","indexOf","splice","translateInLocale","translation","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","reduce","parameter","replaceAll","join","notifyTranslationsChanged","Object","keys","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- export const __webpack_esm_id__=45501;export const __webpack_esm_ids__=[45501];export const __webpack_esm_modules__={45501(e,n,a){a.r(n),a.d(n,{onto_permission_banner:()=>s});var r=a(18072);const s=class{constructor(e){(0,r.r)(this,e)}render(){return(0,r.h)(r.a,{key:"972ae758704e671205aa1d60d5c44d96601fefb4",class:"permission-banner"},(0,r.h)("p",{key:"ee5b4cdddc56fd5377c18c942d12a70ee0f73089",class:"permission-banner-content onto-alert onto-alert-danger"},(0,r.h)("div",{key:"6a1264b06b80bdda725954ee44956a877f9a7b0f",class:"ri-alert-line"}),(0,r.h)("div",{key:"22958ffd21d92c76dcca37de349c19ed4227005b",class:"label-container"},(0,r.h)("translate-label",{key:"17c1eded2fc0a2e0ace2c7f3e811c00001561973",labelKey:"permission_banner.no_access_error"}),(0,r.h)("translate-label",{key:"067b591a34e50406a8033a9cffe29cc81d1b8226",labelKey:"permission_banner.change_menu_or_user_warning"}))))}};s.style=':host{display:block}.permission-banner{margin:0 1rem}.permission-banner-content{display:flex;align-items:center;margin:1rem;padding:0 2rem 3rem 2rem}.label-container{display:flex;flex-direction:column;margin-left:1rem}.icon-warning::before{font-family:"icomoon", sans-serif;content:"\\e920";display:block;font-size:1.5em;pointer-events:none}'}};
2
- //# sourceMappingURL=45501.b57c0da09b0c710a2ae4.bundle.js.map
1
+ export const __webpack_esm_id__=45501;export const __webpack_esm_ids__=[45501];export const __webpack_esm_modules__={45501(e,n,a){a.r(n),a.d(n,{onto_permission_banner:()=>s});var r=a(18072);const s=class{constructor(e){(0,r.r)(this,e)}render(){return(0,r.h)(r.a,{key:"af24a9fd0a4d122739646718c158cb5479722c3e",class:"permission-banner"},(0,r.h)("p",{key:"6e1ce2f61c6ff61818f8f56d3acd4ecf1ec40b40",class:"permission-banner-content onto-alert onto-alert-danger"},(0,r.h)("div",{key:"aa362d820d1a5cb3f28608f82a0424c12797e359",class:"ri-alert-line"}),(0,r.h)("div",{key:"da4f845f01c8170530eaf3e379bc07eec40459aa",class:"label-container"},(0,r.h)("translate-label",{key:"f579389f0d589b2fe6952e0fafc9f111e9625792",labelKey:"permission_banner.no_access_error"}),(0,r.h)("translate-label",{key:"ef5923e6167f1c0adb433880cf5e74166076a23e",labelKey:"permission_banner.change_menu_or_user_warning"}))))}};s.style=':host{display:block}.permission-banner{margin:0 1rem}.permission-banner-content{display:flex;align-items:center;margin:1rem;padding:0 2rem 3rem 2rem}.label-container{display:flex;flex-direction:column;margin-left:1rem}.icon-warning::before{font-family:"icomoon", sans-serif;content:"\\e920";display:block;font-size:1.5em;pointer-events:none}'}};
2
+ //# sourceMappingURL=45501.9eb529ce40a22951f417.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"45501.b57c0da09b0c710a2ae4.bundle.js","mappings":"8LAEA,MAEMA,EAAuB,MACzBC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBC,KAAMF,EAC3B,CACAG,MAAAA,GACI,OAAQC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEC,IAAK,2CAA4CC,MAAO,sBAAuBH,EAAAA,EAAAA,GAAE,IAAK,CAAEE,IAAK,2CAA4CC,MAAO,2DAA4DH,EAAAA,EAAAA,GAAE,MAAO,CAAEE,IAAK,2CAA4CC,MAAO,mBAAoBH,EAAAA,EAAAA,GAAE,MAAO,CAAEE,IAAK,2CAA4CC,MAAO,oBAAqBH,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,2CAA4CE,SAAU,uCAAwCJ,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,2CAA4CE,SAAU,oDAC7lB,GAEJV,EAAqBW,MAVW,uV","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-permission-banner.entry.js"],"sourcesContent":["import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\n\nconst ontoPermissionBannerCss = \":host{display:block}.permission-banner{margin:0 1rem}.permission-banner-content{display:flex;align-items:center;margin:1rem;padding:0 2rem 3rem 2rem}.label-container{display:flex;flex-direction:column;margin-left:1rem}.icon-warning::before{font-family:\\\"icomoon\\\", sans-serif;content:\\\"\\\\e920\\\";display:block;font-size:1.5em;pointer-events:none}\";\n\nconst OntoPermissionBanner = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, { key: '972ae758704e671205aa1d60d5c44d96601fefb4', class: \"permission-banner\" }, h(\"p\", { key: 'ee5b4cdddc56fd5377c18c942d12a70ee0f73089', class: \"permission-banner-content onto-alert onto-alert-danger\" }, h(\"div\", { key: '6a1264b06b80bdda725954ee44956a877f9a7b0f', class: \"ri-alert-line\" }), h(\"div\", { key: '22958ffd21d92c76dcca37de349c19ed4227005b', class: \"label-container\" }, h(\"translate-label\", { key: '17c1eded2fc0a2e0ace2c7f3e811c00001561973', labelKey: 'permission_banner.no_access_error' }), h(\"translate-label\", { key: '067b591a34e50406a8033a9cffe29cc81d1b8226', labelKey: 'permission_banner.change_menu_or_user_warning' })))));\n }\n};\nOntoPermissionBanner.style = ontoPermissionBannerCss;\n\nexport { OntoPermissionBanner as onto_permission_banner };\n"],"names":["OntoPermissionBanner","constructor","hostRef","registerInstance","this","render","h","Host","key","class","labelKey","style"],"sourceRoot":""}
1
+ {"version":3,"file":"45501.9eb529ce40a22951f417.bundle.js","mappings":"8LAEA,MAEMA,EAAuB,MACzBC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBC,KAAMF,EAC3B,CACAG,MAAAA,GACI,OAAQC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEC,IAAK,2CAA4CC,MAAO,sBAAuBH,EAAAA,EAAAA,GAAE,IAAK,CAAEE,IAAK,2CAA4CC,MAAO,2DAA4DH,EAAAA,EAAAA,GAAE,MAAO,CAAEE,IAAK,2CAA4CC,MAAO,mBAAoBH,EAAAA,EAAAA,GAAE,MAAO,CAAEE,IAAK,2CAA4CC,MAAO,oBAAqBH,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,2CAA4CE,SAAU,uCAAwCJ,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,2CAA4CE,SAAU,oDAC7lB,GAEJV,EAAqBW,MAVW,uV","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-permission-banner.entry.js"],"sourcesContent":["import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\n\nconst ontoPermissionBannerCss = \":host{display:block}.permission-banner{margin:0 1rem}.permission-banner-content{display:flex;align-items:center;margin:1rem;padding:0 2rem 3rem 2rem}.label-container{display:flex;flex-direction:column;margin-left:1rem}.icon-warning::before{font-family:\\\"icomoon\\\", sans-serif;content:\\\"\\\\e920\\\";display:block;font-size:1.5em;pointer-events:none}\";\n\nconst OntoPermissionBanner = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, { key: 'af24a9fd0a4d122739646718c158cb5479722c3e', class: \"permission-banner\" }, h(\"p\", { key: '6e1ce2f61c6ff61818f8f56d3acd4ecf1ec40b40', class: \"permission-banner-content onto-alert onto-alert-danger\" }, h(\"div\", { key: 'aa362d820d1a5cb3f28608f82a0424c12797e359', class: \"ri-alert-line\" }), h(\"div\", { key: 'da4f845f01c8170530eaf3e379bc07eec40459aa', class: \"label-container\" }, h(\"translate-label\", { key: 'f579389f0d589b2fe6952e0fafc9f111e9625792', labelKey: 'permission_banner.no_access_error' }), h(\"translate-label\", { key: 'ef5923e6167f1c0adb433880cf5e74166076a23e', labelKey: 'permission_banner.change_menu_or_user_warning' })))));\n }\n};\nOntoPermissionBanner.style = ontoPermissionBannerCss;\n\nexport { OntoPermissionBanner as onto_permission_banner };\n"],"names":["OntoPermissionBanner","constructor","hostRef","registerInstance","this","render","h","Host","key","class","labelKey","style"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=54774;export const __webpack_esm_ids__=[54774];export const __webpack_esm_modules__={48099(e,t,i){i.d(t,{D:()=>n});class n{constructor(){this._dropdownTooltipTrigger="manual"}get name(){return this._name}setName(e){return this._name=e,this}get nameLabelKey(){return this._nameLabelKey}setNameLabelKey(e){return this._nameLabelKey=e,this}get tooltip(){return this._tooltip}setTooltip(e){return this._tooltip=e,this}get tooltipLabelKey(){return this._tooltipLabelKey}setTooltipLabelKey(e){return this._tooltipLabelKey=e,this}get iconClass(){return this._iconClass}setIconClass(e){return this._iconClass=e,this}get iconImage(){return this._iconImage}setIconImage(e){return this._iconImage=e,this}get value(){return this._value}setValue(e){return this._value=e,this}get dropdownTooltipTrigger(){return this._dropdownTooltipTrigger}setDropdownTooltipTrigger(e){return this._dropdownTooltipTrigger=e,this}get cssClass(){return this._cssClass}setCssClass(e){return this._cssClass=e,this}get guideSelector(){return this._guideSelector}setGuideSelector(e){return this._guideSelector=e,this}}},76500(e,t,i){i.d(t,{H:()=>o});const n='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class o{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return o.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=n){const i=Array.from(e.querySelectorAll(t));if(i.length>0){const e=i.indexOf(document.activeElement),t=i[(e+1)%i.length];t&&t.focus()}}static focusPreviousElement(e,t=n){const i=Array.from(e.querySelectorAll(t));if(i.length>0){const e=i.indexOf(document.activeElement),t=i[(e-1+i.length)%i.length];t&&t.focus()}}static preventLeavingDialog(e,t){"Tab"===t.key&&(t.preventDefault(),t.shiftKey?o.focusPreviousElement(e):o.focusNextElement(e))}static focusElement(e){const t=document.querySelector(e);null==t||t.focus()}static scrollElementIntoView(e,t={block:"nearest"}){const i=document.querySelector(e);i&&i.scrollIntoView(t)}static waitForElement(e){return new Promise((t,i)=>{const n=new MutationObserver(()=>{try{const i=document.querySelector(e);i&&(n.disconnect(),t(i))}catch(e){n.disconnect(),i(e)}});n.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}},54774(e,t,i){i.r(t),i.d(t,{onto_deprecation_banner:()=>c,onto_footer:()=>h,onto_header:()=>g,onto_loader:()=>m,onto_navbar:()=>A});var n=i(18072),o=i(57154),s=i(54096),r=i(76500),a=i(48099),l=i(62394);const c=class{constructor(e){(0,n.r)(this,e),this.closeBanner=(0,n.c)(this,"closeBanner"),this.onClose=()=>{this.closeBanner.emit()}}render(){return(0,n.h)(n.a,{key:"86781f6417e0778a59ce08dde7be09a7a4302dc1"},(0,n.h)("div",{key:"4000306e941d5d22452f550e80ebdc7dccf44f29",class:"deprecation-banner"},(0,n.h)("div",{key:"94c019c2bc90ca5df3f96f005cdff7d31f0d599c",class:"banner-content"},(0,n.h)("div",{key:"295097fc9c5981a409c8be095f6fd9d09b2bb405",class:"banner-message"},(0,n.h)("slot",{key:"8153d3a79b453cc6bb777870a6776c973530f0dc",name:"content"}))),(0,n.h)("button",{key:"cecc3239a6601d0a22b6d1635b2c10ba0ce262ca",type:"button",class:"close-button","aria-label":"Close banner",onClick:this.onClose},(0,n.h)("i",{key:"9ddf4488b5a1bba60ce40795b708fd5d0aa0a84b",class:"ri-close-line"}))))}};c.style=":host{display:block}.deprecation-banner{display:flex;align-items:flex-start;gap:1rem;padding:0.3rem;background:#384252;color:#FFF}.deprecation-banner .banner-content{flex:1;text-align:center}.deprecation-banner .banner-content .banner-message{font-size:1rem}.deprecation-banner .close-button{border:none;outline:0;background:transparent;color:inherit;cursor:pointer}";const h=class{constructor(e){(0,n.r)(this,e),this.subscriptions=new o.SubscriptionList,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=(0,o.service)(o.ProductInfoContextService),this.securityContextService=(0,o.service)(o.SecurityContextService),this.licenseContextService=(0,o.service)(o.LicenseContextService),this.trackingService=(0,o.service)(o.TrackingService)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>{this.shouldShowCookieConsent=!1,o.WindowService.getWindow().dispatchEvent(new Event("resize"))})}render(){var e,t,i,o,s;return(0,n.h)(n.a,{key:"d78daf94ec9bf8578d4be26f7ced0040ca167147"},(0,n.h)("div",{key:"5660de5835f3ff252eeb456974cb747552e0d56c",class:"footer-component"},(0,n.h)("a",{key:"93d3c7957ede1fa09100e15ebe896de7c9965468",href:"http://graphdb.ontotext.com",target:"_blank",rel:"noopener noreferrer"},"GraphDB")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",(0,n.h)("a",{key:"b9dbc1be7fbb251d897920e56807333a0b9e50d3",href:"http://rdf4j.org",target:"_blank",rel:"noopener noreferrer"},"RDF4J")," ",null===(t=this.productInfo)||void 0===t?void 0:t.sesame," • Connectors ",null===(i=this.productInfo)||void 0===i?void 0:i.connectors," • Ontop ",null===(o=this.productInfo)||void 0===o?void 0:o.ontop," • Workbench ",null===(s=this.productInfo)||void 0===s?void 0:s.workbench," • © 2002–",this.currentYear," ",(0,n.h)("a",{key:"662d0f1301ad57b733c0fcb579fcac380c554258",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",(0,n.h)("translate-label",{key:"ac8f96b6824bb5bdf9159c407ed4aba4f97b58e3",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&(0,n.h)("onto-cookie-consent",{key:"8eadfa955053ba414e9c7231e6ddc0329dc68ad2"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToSecurityConfigChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToSecurityConfigChange(){this.subscriptions.add(this.securityContextService.onSecurityConfigChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.securityContextService.getSecurityConfig())return void(this.shouldShowCookieConsent=!1);if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),n=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,o=this.trackingService.getCookieConsent();o&&(this.shouldShowCookieConsent=!o.policyAccepted&&(n||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};h.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}";const d=({repository:e})=>(0,n.h)("div",{class:"repository-selector-dropdown-item"},(0,n.h)("i",{class:"item-icon icon-repo-"+e.type}),(0,n.h)("div",{class:"item-label"},(0,n.h)("div",{class:"repository-id"},e.id),(0,n.h)("div",{class:"repository-location"},e.location?e.location:"Local"))),u="menu.logo.link.title",g=class{constructor(e){(0,n.r)(this,e),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new o.FibonacciGenerator,this.monitoringService=o.ServiceProvider.get(o.MonitoringService),this.repositoryContextService=o.ServiceProvider.get(o.RepositoryContextService),this.repositoryLocationContextService=o.ServiceProvider.get(o.RepositoryLocationContextService),this.repositoryService=o.ServiceProvider.get(o.RepositoryService),this.securityContextService=o.ServiceProvider.get(o.SecurityContextService),this.toastrService=o.ServiceProvider.get(o.OntoToastrService),this.namespacesService=o.ServiceProvider.get(o.NamespacesService),this.namespaceContextService=o.ServiceProvider.get(o.NamespacesContextService),this.languageService=o.ServiceProvider.get(o.LanguageService),this.authService=o.ServiceProvider.get(o.AuthenticationService),this.authorizationService=o.ServiceProvider.get(o.AuthorizationService),this.eventService=o.ServiceProvider.get(o.EventService),this.configurationContextService=o.ServiceProvider.get(o.ConfigurationContextService),this.runtimeConfigurationContextService=o.ServiceProvider.get(o.RuntimeConfigurationContextService),this.logger=s.L.logger,this.shouldShowSearch=!0,this.isHomePage=(0,o.isHomePage)(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new o.SubscriptionList,this.skipUpdateActiveOperationsTimes=0,this.labels={[u]:s.T.translate(u)},this.canWriteRepo=e=>this.canWriteRepoInLocation(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(s.T.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,r.H.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:l.R.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.setupTotalRepositoryFormater(),this.setupExpansionRatioFormater(),this.subscribeToEvents(),this.currentRoute=(0,o.getCurrentRoute)(),this.startOperationPolling(),this.onTranslate(u)}render(){var e,t;return(0,n.h)(n.a,{key:"f9130c15e8ca47fe16ebc0d1339f5674e4830174"},(0,n.h)("div",{key:"7c5563100a6f5a00239d3349185d9c5c83ee6f63",class:"header-component"},(0,n.h)("div",{key:"5b80331224df4df9c6e5480e0ceb4a0807a372e0",class:"left-section brand"},(0,n.h)("a",{key:"e34c2a982d60f4b417447e16385a31e92c2b0184",class:"home-page",onClick:(0,o.navigateTo)("./")},(0,n.h)("img",{key:"0289f0c87e50b10336ac7d2ad60d864f83beb982",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[u]}))),(0,n.h)("div",{key:"db66cae8014aa38fd5c7ee3e0f01fdca4ab3b8d0",class:"right-section"},(0,n.h)("onto-search-icon",{key:"5ed7a7cf5d1b5b9c04f0cd13ff4611ec5b408cde",class:"rdf-search-button",onClick:this.showViewResourceMessage,"data-test":"onto-show-view-resource-message",style:{display:this.shouldShowSearch&&this.isHomePage?"block":"none"}}),(0,n.h)("onto-rdf-search",{key:"967c619c13988dcebd07ed958d611c6ce1ddead0","data-test":"onto-open-rdf-search-button",style:{display:this.shouldShowSearch&&!this.isHomePage?"block":"none"}}),(null===(e=this.activeOperations)||void 0===e?void 0:e.allRunningOperations.getItems().length)?(0,n.h)("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(t=this.license)||void 0===t?void 0:t.valid)?(0,n.h)("onto-license-alert",{license:this.license}):"",(0,n.h)("onto-repository-selector",{key:"36f2642a081cace5330d6b7459136bf4dbdd4997",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,totalTripletsFormatter:this.totalTripletsFormatter,expansionRatioFormatter:this.expansionRatioFormatter,canWriteRepo:this.canWriteRepo}),(0,n.h)("onto-language-selector",{key:"fef020df3cd9cca7849730fb85a9623f137d2086","dropdown-alignment":"right"}),this.showUserMenu&&this.user?(0,n.h)("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?(0,n.h)("onto-user-login",null):"")))}subscribeToEvents(){this.subscribeToSecurityContextChange(),this.subscribeToRepositoryListChanged(),this.subscribeToLicenseChange(),this.subscribeToRepositoryChange(),this.subscribeToActiveRepositoryLocationChange(),this.subscribeToActiveRepoLoadingChange(),this.subscribeToNavigationEnd(),this.subscribeToLanguageChanged(),this.subscribeToAuthenticatedUserChange(),this.subscribeToThemeModeChange()}subscribeToThemeModeChange(){this.subscriptions.add(this.runtimeConfigurationContextService.onThemeModeChanged(e=>{this.applicationLogoPath=this.configurationContextService.getApplicationLogoPath(e)}))}subscribeToRepositoryListChanged(){return this.repositoryContextService.onRepositoryListChanged(e=>{(null==e?void 0:e.getItems().length)?this.initOnRepositoryListChanged(e):this.resetOnMissingRepositories()})}subscribeToLicenseChange(){this.subscriptions.add(o.ServiceProvider.get(o.LicenseContextService).onLicenseChanged(e=>{this.license=e}))}subscribeToRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(e=>{this.currentRepository=this.repositoryContextService.findRepository(e),this.shouldShowSearch=this.shouldShowRdfSearch(),this.loadNamespaces(),this.updateRepositoryItems()}))}subscribeToSecurityContextChange(){this.subscriptions.add(this.securityContextService.onSecurityConfigChanged(e=>{this.securityConfig=e,setTimeout(()=>{this.updateVisibility()})}))}subscribeToAuthenticatedUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(e=>{this.user=e,this.updateRepositoryItems(),this.updateVisibility()}))}subscribeToActiveRepositoryLocationChange(){this.subscriptions.add(this.repositoryLocationContextService.onActiveLocationChanged(()=>{this.shouldShowSearch=this.shouldShowRdfSearch()}))}subscribeToActiveRepoLoadingChange(){this.subscriptions.add(this.repositoryLocationContextService.onIsLoadingChanged(e=>{this.isActiveLocationLoading=e,this.shouldShowSearch=this.shouldShowRdfSearch()}))}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(o.EventName.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=(0,o.isHomePage)(),this.currentRoute=(0,o.getCurrentRoute)(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(o.ServiceProvider.get(o.LanguageContextService).onSelectedLanguageChanged(e=>{this.setupTotalRepositoryFormater(e),this.setupExpansionRatioFormater(e)}))}onTranslate(e){this.subscriptions.add(s.T.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new o.RepositoryList,this.currentRepository=void 0}initOnRepositoryListChanged(e){this.repositoryList=e,this.updateRepositoryItems()}updateRepositoryItems(){this.repositoryItems=this.getRepositoriesDropdownItems()}getRepositoriesDropdownItems(){var e;if(!(null===(e=this.repositoryList)||void 0===e?void 0:e.getItems().length))return[];let t;return this.repositoryList.sortByLocationAndId(),t=this.currentRepository?this.repositoryList.filterByRepository([this.currentRepository]):this.repositoryList.getItems(),t.filter(e=>this.authorizationService.canReadRepo(e)||this.authorizationService.canReadGqlRepo(e)).map(e=>(new a.D).setName((0,n.h)(d,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}canWriteRepoInLocation(e){return this.authorizationService.canWriteRepo(e)}loadNamespaces(){this.currentRepository&&this.authorizationService.canReadRepo(this.currentRepository)&&this.namespacesService.getNamespaces(this.currentRepository.id).then(e=>this.namespaceContextService.updateNamespaces(e))}updateVisibility(){var e,t,i;const n=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,o=this.authService.isLoggedIn();let s=!1;try{s=this.authService.isAuthenticated()}catch(e){s=!1}const r=null===(i=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===i?void 0:i.enabled;this.showLoginButton=n&&r&&!o&&"login"!==this.currentRoute,this.showUserMenu=n&&s&&o,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=o.WindowService.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{o.ObjectUtil.deepEqual(this.activeOperations,e)||(this.activeOperations=e),this.fibonacciGenerator.reset(),this.skipUpdateActiveOperationsTimes=0}).catch(e=>{this.logger.error("Error fetching active operations",e),this.activeOperations=void 0,this.skipUpdateActiveOperationsTimes=this.fibonacciGenerator.next()}):this.activeOperations=void 0},this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL)}stopOperationPolling(){clearInterval(this.pollingInterval),this.activeOperations=void 0}shouldShowRdfSearch(){return!!this.currentRepository&&(!this.isActiveLocationLoading||"/repository"===(0,o.getPathName)())&&this.authorizationService.canReadRepo(this.currentRepository)}setupTotalRepositoryFormater(e){e||(e=this.languageService.getDefaultLanguage()),this.totalTripletsFormatter=new Intl.NumberFormat(e,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})}setupExpansionRatioFormater(e){e||(e=this.languageService.getDefaultLanguage()),this.expansionRatioFormatter=new Intl.NumberFormat(e,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2})}};g.style=":host{display:block}.header-component{display:flex;gap:0.25em;padding:0.3em 1em;font-size:1.1em;background-color:var(--gw-topnav-background)}.header-component .left-section{display:flex;align-items:center;justify-content:center;margin-right:auto}.header-component .right-section{display:flex;align-items:center;justify-content:center;gap:0.3em}.header-component .big-logo{width:180px;height:50px;cursor:pointer}";const m=class{constructor(e){(0,n.r)(this,e),this.size=100,this.loading=!1,this.messageText="",this.targetSelector="",this.ATTACHED_CLASS="onto-loader-attached",this.rawSvg=atob("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0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0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=".split(",")[1]),this.logger=s.L.logger}componentDidLoad(){this.attachToSelector()}render(){return(0,n.h)(n.a,{key:"688a22508c74f7d72f4122ad6b7d34dd4be6ce4e",class:{[this.ATTACHED_CLASS]:!!this.targetSelector,"onto-loader-active":this.loading}},(0,n.h)("div",{key:"46ec9a8f161dd62c22bab137086ebb3943a2aea7",class:"onto-loader","guide-selector":"onto-loader"},(0,n.h)("div",{key:"3eea0d3e2be7b587ca149753f0d5b7fccb6a15ac",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&(0,n.h)("div",{key:"0c93bfbbf12a57434ff22cc01d69e55e24fd8914",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}attachToSelector(){if(!this.targetSelector)return;const e=document.querySelector(this.targetSelector);if(!e)return this.logger.warn("You tried to attach the loader to an element that does not exist: ",this.targetSelector),void this.loader.classList.remove(this.ATTACHED_CLASS);e.appendChild(this.loader)}get loader(){return(0,n.d)(this)}};m.style=":host(.onto-loader-attached){position:fixed;top:0;left:0;width:100%;height:100%;display:none;align-items:center;justify-content:center}:host{display:none}:host .onto-loader{white-space:nowrap;width:fit-content}:host .onto-loader .loader-spinner{margin-left:auto;margin-right:auto}:host .onto-loader .loader-spinner circle{fill:var(--gw-loader-color)}:host .onto-loader .loader-message{text-align:center}:host(.onto-loader-active){display:flex;visibility:visible !important}";class p{constructor(e){this.type="navbarToggled",this.payload=e}}class I{constructor(e=[]){this._items=e}hasParent(e){return this._items.some(t=>e===t.label)}getModel(){const e=t=>{const i=t.children.map(e);return new b(Object.assign(Object.assign({},t),{children:i}))};return this._items.map(e)}addItem(e){this._items.push(e)}getSelectedRootItem(){return this._items.find(e=>e.selected)}isParentOpened(e){var t;return!!(null===(t=this.getParentItem(e))||void 0===t?void 0:t.open)}getTopLevelItem(e){return this._items.find(t=>t.label===e)}getParentItem(e){return this._items.find(t=>t.label===e.parent)}deselectAll(){this.walk(e=>{e.selected=!1})}closeAll(){this.walk(e=>{this.setOpen(e,!1)})}deselectItem(e){e.selected=!1}selectItem(e){e.label?e.selected=!0:this.selectItem(e.parentModel)}hasSelectedSubmenu(e){return!!e.children&&e.children.some(e=>this.hasSelection(e))}hasSelection(e){return!!e.selected||!!e.children&&e.children.some(e=>this.hasSelection(e))}closeOpened(){const e=this._items.find(e=>e.open);e&&(this.hasSelectedSubmenu(e)&&this.selectItem(e),this.setOpen(e,!1))}open(e){this.walk(e=>{this.setOpen(e,!1)}),this.openItemAndParent(e)}openItemAndParent(e){e.parentModel&&this.openItemAndParent(e.parentModel),this.setOpen(e,!0)}closeOtherParents(e){const t=e.parent;this.walk(e=>{e.label!==t&&this.setOpen(e,!1)})}setOpen(e,t){e.open=t}highlightSelected(){const e=this.getSelectedItem();(null==e?void 0:e.hasParent)&&this.selectItem(this.getParentItem(e))}unhighlightSelected(){const e=this.getSelectedRootItem();e&&e.children.length&&e.open&&this.deselectItem(e)}getSelectedItem(){let e=null;const t=i=>{if(i.selected)return e=i,!0;if(i.children)for(const e of i.children)if(t(e))return!0;return!1};return this._items.some(t),e}expandSelected(){const e=this.getSelectedItem();e&&(e.hasParent?this.open(this.getParentItem(e)):this.open(e))}initSelected(e){this.walk(t=>{var i;let n=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(n=this.getWildcardPath(e,t.href));const o=t.href.search(/[?]/);n===(-1===o?t.href:t.href.substring(0,o))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),n=t.split("/");if(i.length!==n.length)return e;const o=[];for(let t=0;t<n.length;t++)if("*"===n[t])o.push("*");else{if(n[t]!==i[t])return e;o.push(n[t])}return o.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(I.compare)}),this._items.sort(I.compare),this}static compare(e,t){return e.order-t.order}walk(e){this.walkRecursively(this.items,e)}walkRecursively(e,t){e.forEach(e=>{var i;t(e),(null===(i=e.children)||void 0===i?void 0:i.length)&&this.walkRecursively(e.children,t)})}get items(){return this._items}}class b{constructor(e){var t;this._selected=!1,this._open=!1,this._order=e.order,this._label=e.label,this._labelKey=e.labelKey,this._href=e.href,this._children=[...null!==(t=e.children)&&void 0!==t?t:[]],this._hasParent=e.hasParent,this._parent=e.parent,this._selected=e.selected,this._open=e.open,this._documentationHref=e.documentationHref,this._hrefFun=e.hrefFun,this._editions=e.editions,this._icon=e.icon,this._role=e.role,this._guideSelector=e.guideSelector,this._testSelector=e.testSelector,this._shouldShow=e.shouldShow,this._parentModel=e.parentModel}addChild(e){this.children.push(e),e.setParent(this)}addChildren(...e){e.forEach(e=>{this.addChild(e)})}hasSubmenus(){return"#"===this._href}get parent(){return this._parent}set parent(e){this._parent=e}get order(){return this._order}set order(e){this._order=e}get label(){return this._label}set label(e){this._label=e}get labelKey(){return this._labelKey}set labelKey(e){this._labelKey=e}get documentationHref(){return this._documentationHref}set documentationHref(e){this._documentationHref=e}get href(){return this._href}set href(e){this._href=e}get children(){return this._children}set children(e){this._children=e}get hasParent(){return this._hasParent}set hasParent(e){this._hasParent=e}get selected(){return this._selected}set selected(e){this._selected=e}get open(){return this._open}set open(e){this._open=e}get hrefFun(){return this._hrefFun}set hrefFun(e){this._hrefFun=e}get editions(){return this._editions}set editions(e){this._editions=e}get icon(){return this._icon}set icon(e){this._icon=e}get role(){return this._role}set role(e){this._role=e}get guideSelector(){return this._guideSelector}set guideSelector(e){this._guideSelector=e}get testSelector(){return this._testSelector}set testSelector(e){this._testSelector=e}get parentModel(){return this._parentModel}set parentModel(e){this._parentModel=e}get shouldShow(){return this._shouldShow}set shouldShow(e){this._shouldShow=e}setParent(e){this.parentModel=e,this.hasParent=!!e}}const v=s.L.logger;class C{static map(e,t,i,n){const o=new I;return C.setTopLevelMenuItems(e,o,t),C.setSubmenuItems(e,o,t),i&&C.addRepositoryIdToHrefAttributes(o,i,n),o.sorted()}static addRepositoryIdToHrefAttributes(e,t,i){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${i}=${t}`}):e.href=`${e.href}?${i}=${t}`})}static setTopLevelMenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?v.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,i,e.children))})})}static setSubmenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const n=t.getTopLevelItem(e.parent);null==n||n.addChildren(this.toMenuItemModel(e,n,i,e.children))})})}static toMenuItemModel(e,t,i,n=[]){let s;e.documentationHref&&(s=o.UriUtil.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const r=new b({label:e.label,labelKey:e.labelKey,href:s||e.href,documentationHref:e.documentationHref,hrefFun:e.hrefFun,order:e.order,role:e.role,editions:e.editions,icon:e.icon,guideSelector:e.guideSelector,hasParent:!!t,parentModel:t,parent:e.parent,selected:!1,shouldShow:e.shouldShow,testSelector:e.testSelector}),a=n.map(e=>this.toMenuItemModel(e,r,i,e.children));return r.addChildren(...a),r}}const y="menu.buttons.expand",S="menu.buttons.collapse",A=class{constructor(e){(0,n.r)(this,e),this.navbarToggled=(0,n.c)(this,"navbarToggled"),this.productInfoContextService=(0,o.service)(o.ProductInfoContextService),this.repositoryContextService=(0,o.service)(o.RepositoryContextService),this.subscriptions=new o.SubscriptionList,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[y]:s.T.translate(y),[S]:s.T.translate(S)},this.isCollapsedByUser=!1,this.isFirstRepositoryChange=!0,this.isCollapsed=!1}navbarCollapsedChange(e){this.isCollapsed=!e,this.isCollapsed&&!this.isCollapsedByUser?this.expandNavbar():this.collapseNavbar(),this.navbarToggled.emit(new p(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),i=C.map(e||[],this.productInfo,null==t?void 0:t.id,o.REPOSITORY_ID_PARAM);i.initSelected((0,o.getCurrentRoute)()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?(0,o.openInNewTab)(t.href):(0,o.navigate)(t.href)),t.children.length?t.open?(this.menuModel.closeAll(),this.menuModel.hasSelectedSubmenu(t)&&this.menuModel.selectItem(t)):(this.menuModel.closeOpened(),this.menuModel.open(t),this.menuModel.hasSelectedSubmenu(t)&&this.menuModel.deselectItem(t)):this.menuModel.closeOtherParents(t),this.isCollapsed&&this.menuModel.isParentOpened(t)&&this.menuModel.closeOpened(),this.refreshNavbar(),this.adjustAllSubmenus(this.hostElement)}subscribeToNavigationEnd(){this.subscriptions.add((0,o.service)(o.EventService).subscribe(o.EventName.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),(0,o.isHomePage)()||this.menuModel.initSelected((0,o.getCurrentRoute)()),this.refreshNavbar(),this.adjustAllSubmenus(this.hostElement))}toggleNavbar(){this.isCollapsed?(this.isCollapsedByUser=!1,this.menuModel.expandSelected(),this.menuModel.unhighlightSelected(),this.expandNavbar(),this.clearAllOpenedSubmenuStyles()):(this.isCollapsedByUser=!0,this.menuModel.highlightSelected(),this.menuModel.closeOpened(),this.collapseNavbar(),this.clearAllOpenedSubmenuStyles()),this.refreshNavbar(),this.adjustAllSubmenus(this.hostElement),this.navbarToggled.emit(new p(this.isCollapsed))}collapseNavbar(){this.hostElement.querySelector(".navbar-component").classList.add("collapsed"),this.isCollapsed=!0}expandNavbar(){this.isCollapsedByUser||(this.hostElement.querySelector(".navbar-component").classList.remove("collapsed"),this.isCollapsed=!1)}refreshNavbar(){var e;(null===(e=this.menuModel)||void 0===e?void 0:e.items)&&(this.menuModel=new I(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(s.T.onTranslate(e,[],t=>{this.labels[e]=t,this.onLanguageChanged()}))}toggleNavbarHandler(){return()=>this.toggleNavbar()}adjustSubmenuMaxHeight(e,t=this.SUBMENU_VERTICAL_MARGIN){if(!e||"function"!=typeof e.getBoundingClientRect)return;const i=e.closest(".menu-element");if(!i)return;const n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=window.innerHeight,r=o.top-t+o.height,a=s-o.bottom+o.height-t;let l,c=!1;a>=n.height?l=a:r>=n.height?(l=r,c=!0):a>r?(l=a,c=!1):(l=r,c=!0),c?(e.style.bottom="0",e.style.top="auto"):(e.style.top="0",e.style.bottom="auto"),e.style.maxHeight=`${Math.max(this.MIN_SUBMENU_HEIGHT,l)}px`,e.style.overflowY="auto"}adjustAllSubmenus(e,t=this.SUBMENU_VERTICAL_MARGIN){requestAnimationFrame(()=>{e&&"function"==typeof e.querySelectorAll&&this.getAllOpenedSubmenus(e).forEach(e=>this.adjustSubmenuMaxHeight(e,t))})}getAllOpenedSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component.collapsed .menu-element.open .sub-menu"))}getAllSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component .menu-element .sub-menu"))}clearAllOpenedSubmenuStyles(){this.getAllSubmenus(this.hostElement).forEach(e=>{e.style.maxHeight="",e.style.overflowY="",e.style.top="",e.style.bottom=""})}componentWillLoad(){this.init(this.menuItems)}connectedCallback(){this.subscribeToNavigationEnd(),this.subscribeToProductInfoChanges(),this.subscribeToRepositoryChange(),this.onTranslate(y),this.onTranslate(S),window.addEventListener("resize",this.resizeHandler)}disconnectedCallback(){this.subscriptions.unsubscribeAll(),window.removeEventListener("resize",this.resizeHandler)}handleSelectMenuItem(e){return t=>{this.select(t,e)}}render(){if(this.menuModel)return(0,n.h)(n.a,null,(0,n.h)("ul",{class:"navbar-component"},(0,n.h)("li",{class:"navbar-toggle"},(0,n.h)("a",{class:"toggle-menu no-underline",title:this.isCollapsed?this.labels[y]:this.labels[S],onClick:this.toggleNavbarHandler()},(0,n.h)("i",{class:"chevron "+(this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line")}))),this.menuModel.items.map(e=>(0,n.h)("li",{key:e.labelKey,class:{"menu-element":!0,open:e.open},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.children.length>0&&(0,n.h)(n.F,null,(0,n.h)("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},(0,n.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,n.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),!this.isCollapsed&&(0,n.h)("i",{class:"chevron ri-arrow-right-s-line "+(e.open?" open":"")})),(0,n.h)("ul",{class:"sub-menu"},(0,n.h)("li",{key:e.labelKey,class:"submenu-title"},(0,n.h)("translate-label",{labelKey:e.labelKey})),e.children.map(e=>(0,n.h)("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.documentationHref?(0,n.h)("a",{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"},(0,n.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,n.h)("span",{class:`text-muted ${e.icon}`})):(0,n.h)("a",{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},(0,n.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,n.h)("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&(0,n.h)("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},(0,n.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,n.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}))))))}subscribeToProductInfoChanges(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>this.productInfo=e))}subscribeToRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(()=>{this.isFirstRepositoryChange?this.isFirstRepositoryChange=!1:this.init(this.menuItems)}))}get hostElement(){return(0,n.d)(this)}static get watchers(){return{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}}};A.style=':host{display:block}.navbar-component{width:15rem;position:fixed;font-weight:400;z-index:1010;margin:0;padding:0;-moz-transition:width 0.2s ease-in;-o-transition:width 0.2s ease-in;-webkit-transition:width 0.2s ease-in;transition:width 0.2s ease-in;height:calc(100% - 60px);overflow-y:auto;overflow-x:hidden}@media screen and (max-height: 475px){.navbar-component.collapsed{position:absolute}}.navbar-component li{list-style:none;cursor:pointer}.navbar-component li a{text-decoration:none}.navbar-component li a.sub-menu-link:not([href=""]):not([tabindex]):hover{text-decoration:none !important}.navbar-component .sub-menu-item a.sub-menu-link:not([href]) translate-label.menu-item{padding-right:3.5px}.navbar-component a.sub-menu-link:not([href]):hover .menu-item,.navbar-component a.sub-menu-link[href=""]:hover .menu-item{text-decoration-line:underline !important}.navbar-component li .menu-element-root:hover,.navbar-component .sub-menu li:hover{text-decoration-line:none !important}.navbar-component li .menu-element-root:hover .menu-item-icon,.navbar-component .menu-element.open .menu-item-icon{transform:scale(1.1)}.navbar-component .menu-element.open .sub-menu .menu-item-icon{transform:scale(0.5)}.navbar-component .menu-element{position:relative}.navbar-component .menu-element-root{padding:0.8em;display:flex;align-items:center;line-height:2.5rem;position:relative;z-index:100;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.navbar-component .menu-item-icon{font-size:1.6rem;width:2.5rem;vertical-align:middle;text-align:center;transform:scale(0.9);display:inline-block;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;pointer-events:none}.navbar-component .menu-element-root .menu-item{pointer-events:none}.navbar-component .chevron{margin-left:auto;font-size:1rem;transition:all 0.2s ease-in;pointer-events:none;color:var(--gw-sidenav-menuitem-icon-second-color)}.navbar-component .chevron.open{transform:rotate(90deg)}.navbar-component :not(.brand) .menu-element-root{font-size:1.1rem}.navbar-component .brand a{display:block;position:relative;z-index:5}.navbar-component .sub-menu{position:relative;padding:0;z-index:110}.navbar-component .sub-menu li{display:none}.navbar-component .sub-menu li a{padding:0.5em 0.8em 0.5em 1.3em;display:block}.navbar-component .sub-menu li.active a{font-weight:500}.navbar-component .menu-element.open ul li{display:block}.navbar-component.collapsed{width:4.375rem;overflow:visible;height:auto}.navbar-component.collapsed .menu-element.open .sub-menu{position:absolute;top:0;left:4.375rem;width:15rem}.navbar-component.collapsed .menu-element .menu-item,.navbar-component.collapsed .menu-element .sub-menu li{display:none}.navbar-component.collapsed .menu-element.open .menu-item,.navbar-component.collapsed .menu-element.open .sub-menu li{display:block}.navbar-component.collapsed .menu-element.open .menu-element-root .menu-item{display:none}.navbar-component.collapsed .menu-element.open .sub-menu-item .sub-menu-link{background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element-root{overflow:visible}.navbar-component .menu-element.open ul li.submenu-title,.navbar-component .submenu-title{display:none}.navbar-component.collapsed .menu-element.open ul li.submenu-title{display:block;font-size:1.2em;font-weight:500;text-overflow:ellipsis;overflow:hidden;padding:0.5em 0.8rem 0.7em 0.8rem;background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element.open .sub-menu.align-bottom{bottom:0;top:auto}.navbar-component.collapsed .menu-element ul:before{display:none}.navbar-toggle{padding:0.3em 0}.toggle-menu{display:flex;flex-direction:column;align-items:flex-end;font-size:1em;line-height:1.5;padding:0 0.3em;z-index:101;cursor:pointer;background-color:var(--gw-sidenav-togglebutton-background);color:var(--gw-sidenav-togglebutton-color)}.toggle-menu:hover{color:var(--gw-sidenav-togglebutton-hover-color);background-color:var(--gw-sidenav-togglebutton-hover-background)}.toggle-menu [class^=icon-]{transition:all 0.2s ease-in;display:inline-block}.toggle-menu:hover [class^=icon-]{transform:scale(1.1)}.navbar-component{background-color:var(--gw-sidenav-background)}.navbar-component .menu-element .menu-element-root:not(.active){background-color:var(--gw-sidenav-menuitem-background);color:var(--gw-sidenav-menuitem-color)}.navbar-component .menu-element .menu-element-root .menu-item-icon,.navbar-component .menu-element .menu-element-root .menu-item{color:var(--gw-sidenav-menuitem-icon-color)}.navbar-component .menu-element .menu-element-root:hover,.navbar-component .menu-element .menu-element-root:hover .menu-item{background-color:var(--gw-sidenav-menuitem-hover-background);color:var(--gw-sidenav-menuitem-hover-color)}.navbar-component .menu-element .menu-element-root:hover .menu-item-icon{color:var(--gw-sidenav-menuitem-hover-icon-color)}.navbar-component .menu-element:not(.open):has(.menu-element-root.active){background-color:var(--gw-sidenav-menuitem-selected-background);color:var(--gw-sidenav-menuitem-selected-color);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .menu-element-root.active .menu-item,.navbar-component .menu-element .menu-element-root.active .menu-item-icon{color:var(--gw-sidenav-menuitem-selected-color)}.navbar-component .menu-element .menu-element-root.active .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element.open,.navbar-component .menu-element.open .menu-element-root{background-color:var(--gw-sidenav-menuitem-open-background);color:var(--gw-sidenav-menuitem-open-color)}.navbar-component .menu-element:has(.menu-element-root.active) .menu-item-icon,.navbar-component .menu-element:has(.menu-element-root.active) .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element .sub-menu-item .menu-item{color:var(--gw-sidenav-submenuitem-color);font-weight:400}.navbar-component .menu-element .sub-menu-item:hover .menu-item{color:var(--gw-sidenav-submenuitem-hover-color)}.navbar-component .menu-element .sub-menu-item.active{color:var(--gw-sidenav-submenuitem-selected-color);background-color:var(--gw-sidenav-submenuitem-selected-background);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .sub-menu-item.active .menu-item{color:var(--gw-sidenav-submenuitem-selected-color)}'},62394(e,t,i){var n;i.d(t,{R:()=>n}),function(e){e.SUGGESTION_SELECTED_EVENT="suggestion-selected-event",e.TABLE_VIEW="table",e.VISUAL_VIEW="visual",e.RDF_SEARCH_ICON_CLICKED="rdfSearchIconClicked"}(n||(n={}))},54096(e,t,i){i.d(t,{L:()=>s,T:()=>a,s:()=>o});var n=i(57154);function o(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}class s{static get logger(){return n.Loggers.getLoggerInstance("SharedComponents")}}class r{constructor(){this.languageContextService=n.ServiceProvider.get(n.LanguageContextService),this.translationChangedObservers={},this.logger=s.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],i=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const n={parameters:t,callback:i};return this.translationChangedObservers[e].push(n),i(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(n);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let i=this.translateFromBundle(this.currentBundle,e);return i||(i=this.translateFromBundle(this.defaultBundle,e)),i?(i=this.applyParameters(i,t),o(i)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let i=e[t];return"string"!=typeof i&&(i=this.translateAsJsonObject(e,t)),i}translateAsJsonObject(e,t){if(!t)return;let i=t.split(".");return this.getTranslation(e,i)}getTranslation(e,t){if(!t||!e)return;const i=e[t.splice(0,1)[0]];return 0===t.length?i:"string"!=typeof i?t.length>0?this.getTranslation(i,t):i:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>r.replaceAll(e,t),e):e}static replaceAll(e,t){return t?e.split(`{{${t.key}}}`).join(t.value):e}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach(e=>{(this.translationChangedObservers[e]||[]).forEach(t=>t.callback(this.translate(e,t.parameters)))})}subscribeToBundleChange(){this.languageChangeSubscription=this.languageContextService.onLanguageBundleChanged(e=>{e&&(this.currentBundle=e,this.notifyTranslationsChanged())})}destroy(){this.languageChangeSubscription&&this.languageChangeSubscription()}}const a=new r}};
2
+ //# sourceMappingURL=54774.474357fa8720f682dad5.bundle.js.map