graphdb-workbench 3.3.2 → 3.3.3-RC1
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.
- package/dist/{10759.b2e1d643d681ebd9c124.bundle.js → 10759.57059f90014058a86952.bundle.js} +2 -2
- package/dist/10759.57059f90014058a86952.bundle.js.map +1 -0
- package/dist/{13231.d7107e7549453805e13a.bundle.js → 13231.8bbbe30c10e6c0dfdba3.bundle.js} +2 -2
- package/dist/13231.8bbbe30c10e6c0dfdba3.bundle.js.map +1 -0
- package/dist/{18961.01ff5fcc0f4b9f99236e.bundle.js → 18961.732c0c355509452ac6da.bundle.js} +2 -2
- package/dist/18961.732c0c355509452ac6da.bundle.js.map +1 -0
- package/dist/{20694.4becb7771236462dcc5a.bundle.js → 20694.03b5abf23347ae0bad65.bundle.js} +2 -2
- package/dist/{20694.4becb7771236462dcc5a.bundle.js.map → 20694.03b5abf23347ae0bad65.bundle.js.map} +1 -1
- package/dist/21015.6db2b66597f78d4b83cc.bundle.js +2 -0
- package/dist/21015.6db2b66597f78d4b83cc.bundle.js.map +1 -0
- package/dist/2975.c5ebc3e3ad52df3ab907.bundle.js +2 -0
- package/dist/2975.c5ebc3e3ad52df3ab907.bundle.js.map +1 -0
- package/dist/38644.8585127c40697ea58e00.bundle.js +2 -0
- package/dist/38644.8585127c40697ea58e00.bundle.js.map +1 -0
- package/dist/39518.0acc5eb68f38cc6b62a5.bundle.js +2 -0
- package/dist/{39518.4d72b74fffba395c6b2a.bundle.js.map → 39518.0acc5eb68f38cc6b62a5.bundle.js.map} +1 -1
- package/dist/{39874.710e94f211579215f997.bundle.js → 39874.17dde6245fc4cc91bb58.bundle.js} +2 -2
- package/dist/39874.17dde6245fc4cc91bb58.bundle.js.map +1 -0
- package/dist/{45758.1212136a37dd4f7528f8.bundle.js → 45758.b9ce5fe0ed6c8c4fc141.bundle.js} +2 -2
- package/dist/45758.b9ce5fe0ed6c8c4fc141.bundle.js.map +1 -0
- package/dist/{60560.6ba1b091a34af6c00770.bundle.js → 60560.62ed0cb0b3d07fecbf28.bundle.js} +2 -2
- package/dist/60560.62ed0cb0b3d07fecbf28.bundle.js.map +1 -0
- package/dist/{60730.35493812d428872eddb6.bundle.js → 60730.a9fc5342637039776562.bundle.js} +2 -2
- package/dist/60730.a9fc5342637039776562.bundle.js.map +1 -0
- package/dist/{64118.b06aebc9f8d7e822244f.bundle.js → 64118.177457589341de779668.bundle.js} +2 -2
- package/dist/64118.177457589341de779668.bundle.js.map +1 -0
- package/dist/67888.0f7d008c6f62683e2c62.bundle.js +2 -0
- package/dist/67888.0f7d008c6f62683e2c62.bundle.js.map +1 -0
- package/dist/71099.ba1073458b96d9789756.bundle.js +2 -0
- package/dist/71099.ba1073458b96d9789756.bundle.js.map +1 -0
- package/dist/75881.148ce498d06784abfd6c.bundle.js +2 -0
- package/dist/75881.148ce498d06784abfd6c.bundle.js.map +1 -0
- package/dist/78070.d54ede951a08e1c8689d.bundle.js +2 -0
- package/dist/78070.d54ede951a08e1c8689d.bundle.js.map +1 -0
- package/dist/{7815.2aec5ebbcd434f5582ff.bundle.js → 7815.89cc59b6625e84913351.bundle.js} +2 -2
- package/dist/7815.89cc59b6625e84913351.bundle.js.map +1 -0
- package/dist/{78681.9e1d4e064e9e1fb5fb21.bundle.js → 78681.6c8614aad7e5465be505.bundle.js} +2 -2
- package/dist/78681.6c8614aad7e5465be505.bundle.js.map +1 -0
- package/dist/{82206.229877d7931849236456.bundle.js → 82206.473f6d4f79e12f6a9da6.bundle.js} +2 -2
- package/dist/82206.473f6d4f79e12f6a9da6.bundle.js.map +1 -0
- package/dist/{82926.ce1d6bf65b09288a2b10.bundle.js → 82926.7d300bdaae879f385185.bundle.js} +2 -2
- package/dist/{82926.ce1d6bf65b09288a2b10.bundle.js.map → 82926.7d300bdaae879f385185.bundle.js.map} +1 -1
- package/dist/{94229.47dbdba202106c61dff1.bundle.js → 94229.5a853fae006f6ef633af.bundle.js} +2 -2
- package/dist/94229.5a853fae006f6ef633af.bundle.js.map +1 -0
- package/dist/95953.1350a9dc14b22372b4e2.bundle.js +2 -0
- package/dist/95953.1350a9dc14b22372b4e2.bundle.js.map +1 -0
- package/dist/98268.a1bd17e40ede031a0a00.bundle.js +2 -0
- package/dist/98268.a1bd17e40ede031a0a00.bundle.js.map +1 -0
- package/dist/99448.147164e93b1ab3a87d36.bundle.js +2 -0
- package/dist/99448.147164e93b1ab3a87d36.bundle.js.map +1 -0
- package/dist/index.html +9 -9
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +2 -2
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +3 -2
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
- package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/legacyWorkbench.f1ed8e359786e8adeab2.js +3 -0
- package/dist/{legacyWorkbench.40eba9e09196e1483221.js.map → legacyWorkbench.f1ed8e359786e8adeab2.js.map} +1 -1
- package/dist/main.a67c284710a8b9a98ca2.js +3 -0
- package/dist/main.a67c284710a8b9a98ca2.js.map +1 -0
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/home.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/jdbc.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/sparql-templates.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +4 -3
- package/dist/res/swagger5/index.html +11 -11
- package/dist/res/swagger5/swagger-initializer.js +1 -1
- package/dist/shared-components/cjs/index-CTK5NoJt.js +2 -0
- package/dist/shared-components/cjs/loader.cjs.js +1 -1
- package/dist/shared-components/cjs/onto-cookie-consent_2.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-dialog_2.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-dropdown.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-footer_5.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-permission-banner.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-toastr.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
- package/dist/shared-components/cjs/translate-label.cjs.entry.js +1 -1
- package/dist/shared-components/collection/collection-manifest.json +2 -2
- package/dist/shared-components/collection/components/dialogs/onto-dialog.js +1 -1
- package/dist/shared-components/collection/components/onto-dropdown/onto-dropdown.js +1 -1
- package/dist/shared-components/collection/components/onto-language-selector/onto-language-selector.js +1 -1
- package/dist/shared-components/collection/components/onto-license-alert/onto-license-alert.js +1 -1
- package/dist/shared-components/collection/components/onto-loader/onto-loader.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
- package/dist/shared-components/collection/components/onto-operations-notification/onto-operations-notification.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.js +1 -1
- package/dist/shared-components/collection/components/onto-search-resource-input/onto-search-resource-input.js +1 -1
- package/dist/shared-components/collection/components/onto-test-context/onto-test-context.js +1 -1
- package/dist/shared-components/collection/components/onto-toggle-switch/onto-toggle-switch.js +1 -1
- package/dist/shared-components/collection/components/onto-user-menu/onto-user-menu.js +1 -1
- package/dist/shared-components/collection/components/translate-label/translate-label.js +1 -1
- package/dist/shared-components/esm/index-EiAqSNMq.js +2 -0
- package/dist/shared-components/esm/loader.js +1 -1
- package/dist/shared-components/esm/onto-cookie-consent_2.entry.js +1 -1
- package/dist/shared-components/esm/onto-dialog_2.entry.js +1 -1
- package/dist/shared-components/esm/onto-dropdown.entry.js +1 -1
- package/dist/shared-components/esm/onto-footer_5.entry.js +1 -1
- package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
- package/dist/shared-components/esm/onto-layout.entry.js +1 -1
- package/dist/shared-components/esm/onto-permission-banner.entry.js +1 -1
- package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
- package/dist/shared-components/esm/onto-toastr.entry.js +1 -1
- package/dist/shared-components/esm/shared-components.js +1 -1
- package/dist/shared-components/esm/translate-label.entry.js +1 -1
- package/dist/shared-components/shared-components/{p-6d34b2cb.entry.js → p-1103d100.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-9b2c6e80.entry.js → p-2e2bb175.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-b754971e.entry.js → p-50735428.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-7e47d850.entry.js → p-59707503.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-598d33d7.entry.js → p-6a37f808.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-9214bb16.entry.js → p-6fb5eec5.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-c27fe716.entry.js → p-97930684.entry.js} +1 -1
- package/dist/shared-components/shared-components/p-EiAqSNMq.js +2 -0
- package/dist/shared-components/shared-components/{p-b5d4081d.entry.js → p-a5a49d87.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-74888633.entry.js → p-d134e207.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-5886e663.entry.js → p-ec2f4ea5.entry.js} +1 -1
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/stencil-public-runtime.d.ts +10 -147
- package/package.json +1 -1
- package/dist/10759.b2e1d643d681ebd9c124.bundle.js.map +0 -1
- package/dist/13231.d7107e7549453805e13a.bundle.js.map +0 -1
- package/dist/18961.01ff5fcc0f4b9f99236e.bundle.js.map +0 -1
- package/dist/21015.ea34b563b4149ad0975e.bundle.js +0 -2
- package/dist/21015.ea34b563b4149ad0975e.bundle.js.map +0 -1
- package/dist/2975.8be1a79816fd811be223.bundle.js +0 -2
- package/dist/2975.8be1a79816fd811be223.bundle.js.map +0 -1
- package/dist/38644.0e8652c647a0f341abd7.bundle.js +0 -2
- package/dist/38644.0e8652c647a0f341abd7.bundle.js.map +0 -1
- package/dist/39518.4d72b74fffba395c6b2a.bundle.js +0 -2
- package/dist/39874.710e94f211579215f997.bundle.js.map +0 -1
- package/dist/45758.1212136a37dd4f7528f8.bundle.js.map +0 -1
- package/dist/60560.6ba1b091a34af6c00770.bundle.js.map +0 -1
- package/dist/60730.35493812d428872eddb6.bundle.js.map +0 -1
- package/dist/64118.b06aebc9f8d7e822244f.bundle.js.map +0 -1
- package/dist/67888.41803878170b6c7a5ca5.bundle.js +0 -2
- package/dist/67888.41803878170b6c7a5ca5.bundle.js.map +0 -1
- package/dist/71099.ca7720893604e9d908d6.bundle.js +0 -2
- package/dist/71099.ca7720893604e9d908d6.bundle.js.map +0 -1
- package/dist/75881.54dc716f79b6fe29232a.bundle.js +0 -2
- package/dist/75881.54dc716f79b6fe29232a.bundle.js.map +0 -1
- package/dist/78070.13538271878de6a98862.bundle.js +0 -2
- package/dist/78070.13538271878de6a98862.bundle.js.map +0 -1
- package/dist/7815.2aec5ebbcd434f5582ff.bundle.js.map +0 -1
- package/dist/78681.9e1d4e064e9e1fb5fb21.bundle.js.map +0 -1
- package/dist/82206.229877d7931849236456.bundle.js.map +0 -1
- package/dist/94229.47dbdba202106c61dff1.bundle.js.map +0 -1
- package/dist/95953.ec1b9d5e568d43ec3dcf.bundle.js +0 -2
- package/dist/95953.ec1b9d5e568d43ec3dcf.bundle.js.map +0 -1
- package/dist/98268.86ff371dde616b4e2a76.bundle.js +0 -2
- package/dist/98268.86ff371dde616b4e2a76.bundle.js.map +0 -1
- package/dist/99448.2a87f387a8062617d893.bundle.js +0 -2
- package/dist/99448.2a87f387a8062617d893.bundle.js.map +0 -1
- package/dist/legacyWorkbench.40eba9e09196e1483221.js +0 -3
- package/dist/main.14f083264cd64618d96a.js +0 -3
- package/dist/main.14f083264cd64618d96a.js.map +0 -1
- package/dist/shared-components/cjs/app-globals-V2Kpy_OQ.js +0 -1
- package/dist/shared-components/cjs/index-L_ZmIeD5.js +0 -2
- package/dist/shared-components/esm/app-globals-DQuL1Twl.js +0 -1
- package/dist/shared-components/esm/index-CGqARDX4.js +0 -2
- package/dist/shared-components/shared-components/p-CGqARDX4.js +0 -2
- package/dist/shared-components/shared-components/p-DQuL1Twl.js +0 -1
- /package/dist/{legacyWorkbench.40eba9e09196e1483221.js.LICENSE.txt → legacyWorkbench.f1ed8e359786e8adeab2.js.LICENSE.txt} +0 -0
- /package/dist/{main.14f083264cd64618d96a.js.LICENSE.txt → main.a67c284710a8b9a98ca2.js.LICENSE.txt} +0 -0
- /package/dist/shared-components/cjs/{index-L_ZmIeD5.js.LICENSE.txt → index-CTK5NoJt.js.LICENSE.txt} +0 -0
- /package/dist/shared-components/esm/{index-CGqARDX4.js.LICENSE.txt → index-EiAqSNMq.js.LICENSE.txt} +0 -0
- /package/dist/shared-components/shared-components/{p-CGqARDX4.js.LICENSE.txt → p-EiAqSNMq.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_esm_id__=7815;export const __webpack_esm_ids__=[7815];export const __webpack_esm_modules__={7815(e,t,i){i.r(t),i.d(t,{onto_footer:()=>c,onto_header:()=>u,onto_loader:()=>g,onto_navbar:()=>A,onto_tooltip:()=>S});var o=i(55508),n=i(57154),s=i(79939),r=i(81491),a=i(87050),l=i(84987);i(44123);const c=class{constructor(e){(0,o.r)(this,e),this.subscriptions=new n.SubscriptionList,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=(0,n.service)(n.ProductInfoContextService),this.securityContextService=(0,n.service)(n.SecurityContextService),this.licenseContextService=(0,n.service)(n.LicenseContextService),this.trackingService=(0,n.service)(n.TrackingService)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,t,i,n;return(0,o.h)(o.a,{key:"3f96199693937a11390b2c72f33548c5398217d0"},(0,o.h)("div",{key:"9a08d6c8fdc0030e8e4acb1e6a7f1869ceae9c76",class:"footer-component"},(0,o.h)("a",{key:"34a0bf88e8a9ecb75c381816cfd97f0f39103a4f",href:"http://graphdb.ontotext.com",target:"_blank",rel:"noopener noreferrer"},"GraphDB")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",(0,o.h)("a",{key:"cedb54fd1e5c8f44d3c2241606fba3786c2c6f08",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," • Workbench ",null===(n=this.productInfo)||void 0===n?void 0:n.workbench," • © 2002–",this.currentYear," ",(0,o.h)("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",(0,o.h)("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&(0,o.h)("onto-cookie-consent",{key:"a7c7a7d8432a4848ddde8f9651380d4520059fd3"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),o=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,n=this.trackingService.getCookieConsent();n&&(this.shouldShowCookieConsent=!n.policyAccepted&&(o||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};c.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}";const h=({repository:e})=>(0,o.h)("div",{class:"repository-selector-dropdown-item"},(0,o.h)("i",{class:"item-icon icon-repo-"+e.type}),(0,o.h)("div",{class:"item-label"},(0,o.h)("div",{class:"repository-id"},e.id),(0,o.h)("div",{class:"repository-location"},e.location?e.location:"Local"))),d="menu.logo.link.title",u=class{constructor(e){(0,o.r)(this,e),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new n.FibonacciGenerator,this.monitoringService=n.ServiceProvider.get(n.MonitoringService),this.repositoryContextService=n.ServiceProvider.get(n.RepositoryContextService),this.repositoryLocationContextService=n.ServiceProvider.get(n.RepositoryLocationContextService),this.repositoryService=n.ServiceProvider.get(n.RepositoryService),this.securityContextService=n.ServiceProvider.get(n.SecurityContextService),this.toastrService=n.ServiceProvider.get(n.OntoToastrService),this.namespacesService=n.ServiceProvider.get(n.NamespacesService),this.namespaceContextService=n.ServiceProvider.get(n.NamespacesContextService),this.languageService=n.ServiceProvider.get(n.LanguageService),this.authService=n.ServiceProvider.get(n.AuthenticationService),this.authorizationService=n.ServiceProvider.get(n.AuthorizationService),this.eventService=n.ServiceProvider.get(n.EventService),this.configurationContextService=n.ServiceProvider.get(n.ConfigurationContextService),this.runtimeConfigurationContextService=n.ServiceProvider.get(n.RuntimeConfigurationContextService),this.logger=s.L.logger,this.shouldShowSearch=!0,this.isHomePage=(0,n.isHomePage)(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new n.SubscriptionList,this.skipUpdateActiveOperationsTimes=0,this.labels={[d]:s.T.translate(d)},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:a.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,n.getCurrentRoute)(),this.startOperationPolling(),this.onTranslate(d)}render(){var e,t;return(0,o.h)(o.a,{key:"1a0ea30540103e48f24febbb1b019da6ec16fb54"},(0,o.h)("div",{key:"70c90aa8e0c4eca71330a5623d3faebe3d08bb89",class:"header-component"},(0,o.h)("div",{key:"30782ae29482fd29245adb62141dd77dec07e20e",class:"left-section brand"},(0,o.h)("a",{key:"e7f7bff0928fd057806c9017dbe5ba61ec5767ee",class:"home-page",onClick:(0,n.navigateTo)("./")},(0,o.h)("img",{key:"1f1327dd2cd85fe3c6f7871f168205f4feefec2e",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[d]}))),(0,o.h)("div",{key:"e1cf9275d74d4216f795255e47b4f5243d794cf7",class:"right-section"},(0,o.h)("onto-search-icon",{key:"3fa41c9db75a0e1ccb386d2f9a824fe27e8fa19c",class:"rdf-search-button",onClick:this.showViewResourceMessage,"data-test":"onto-show-view-resource-message",style:{display:this.shouldShowSearch&&this.isHomePage?"block":"none"}}),(0,o.h)("onto-rdf-search",{key:"70c901d032cd529ee87ce797b55d29ad65565ec3","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,o.h)("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(t=this.license)||void 0===t?void 0:t.valid)?(0,o.h)("onto-license-alert",{license:this.license}):"",(0,o.h)("onto-repository-selector",{key:"ca880c7c438c32db63317d3447ddf89740ed273c",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,totalTripletsFormatter:this.totalTripletsFormatter,expansionRatioFormatter:this.expansionRatioFormatter,canWriteRepo:this.canWriteRepo}),(0,o.h)("onto-language-selector",{key:"abc09868343581be4724d897fc5caa51cd7e3265","dropdown-alignment":"right"}),this.showUserMenu&&this.user?(0,o.h)("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?(0,o.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(n.ServiceProvider.get(n.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(n.EventName.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=(0,n.isHomePage)(),this.currentRoute=(0,n.getCurrentRoute)(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(n.ServiceProvider.get(n.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 n.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,o.h)(h,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}canWriteRepoInLocation(e){return!0}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 o=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,n=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=o&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=o&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=n.WindowService.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{n.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,n.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})}};u.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 g=class{constructor(e){(0,o.r)(this,e),this.size=100,this.messageText="",this.rawSvg=atob("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcm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ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=".split(",")[1])}render(){return(0,o.h)(o.a,{key:"f0eb18975fbbde62c4b50add16b772672a1fbb5b"},(0,o.h)("div",{key:"c36d32d9d10e7fba7d9599a00046dbd78b846b78",class:"onto-loader","guide-selector":"onto-loader"},(0,o.h)("div",{key:"950cb6d4fe083c94a4a03c4564d19becc43597ee",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&(0,o.h)("div",{key:"2626f0e91e01349384cb0d963a39c6075972c4fd",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}};g.style=":host{display:block}: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}";class m{constructor(e){this.type="navbarToggled",this.payload=e}}class p{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 I(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 o=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(o=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);o===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),o=t.split("/");if(i.length!==o.length)return e;const n=[];for(let t=0;t<o.length;t++)if("*"===o[t])n.push("*");else{if(o[t]!==i[t])return e;n.push(o[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(p.compare)}),this._items.sort(p.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 I{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 b=s.L.logger;class v{static map(e,t,i,o){const n=new p;return v.setTopLevelMenuItems(e,n,t),v.setSubmenuItems(e,n,t),i&&v.addRepositoryIdToHrefAttributes(n,i,o),n.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)?b.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 o=t.getTopLevelItem(e.parent);null==o||o.addChildren(this.toMenuItemModel(e,o,i,e.children))})})}static toMenuItemModel(e,t,i,o=[]){let s;e.documentationHref&&(s=n.UriUtil.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const r=new I({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=o.map(e=>this.toMenuItemModel(e,r,i,e.children));return r.addChildren(...a),r}}const C="menu.buttons.expand",y="menu.buttons.collapse",A=class{constructor(e){(0,o.r)(this,e),this.navbarToggled=(0,o.c)(this,"navbarToggled"),this.productInfoContextService=(0,n.service)(n.ProductInfoContextService),this.repositoryContextService=(0,n.service)(n.RepositoryContextService),this.subscriptions=new n.SubscriptionList,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[C]:s.T.translate(C),[y]:s.T.translate(y)},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 m(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),i=v.map(e||[],this.productInfo,null==t?void 0:t.id,n.REPOSITORY_ID_PARAM);i.initSelected((0,n.getCurrentRoute)()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?(0,n.openInNewTab)(t.href):(0,n.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(n.ServiceProvider.get(n.EventService).subscribe(n.EventName.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),(0,n.isHomePage)()||this.menuModel.initSelected((0,n.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 m(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 p(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 o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=o.height?l=a:r>=o.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(C),this.onTranslate(y),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,o.h)(o.a,null,(0,o.h)("ul",{class:"navbar-component"},(0,o.h)("li",{class:"navbar-toggle"},(0,o.h)("a",{class:"toggle-menu no-underline",title:this.isCollapsed?this.labels[C]:this.labels[y],onClick:this.toggleNavbarHandler()},(0,o.h)("em",{class:this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line"}))),this.menuModel.items.map(e=>(0,o.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,o.h)(o.F,null,(0,o.h)("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},(0,o.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey})),(0,o.h)("ul",{class:"sub-menu"},(0,o.h)("li",{key:e.labelKey,class:"submenu-title"},(0,o.h)("translate-label",{labelKey:e.labelKey})),e.children.map(e=>(0,o.h)("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.documentationHref?(0,o.h)("a",{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"},(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,o.h)("span",{class:`text-muted ${e.icon}`})):(0,o.h)("a",{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,o.h)("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&(0,o.h)("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},(0,o.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,o.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,o.g)(this)}static get watchers(){return{navbarCollapsed:[{navbarCollapsedChange:0}],menuItems:[{menuItemsChanged:0}]}}};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 2.5em 0.8em 0.8em;display:block;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 :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 .menu-element ul:before{font-family:"icomoon", sans-serif !important;content:"\\e91b";display:block;font-size:1.5em;position:absolute;top:-3.3rem;right:1rem;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in;pointer-events:none}.navbar-component .menu-element.open ul:before,.rdf-list ul.open.datasource:before{transform:rotate(90deg)}.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:0.8em;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)}';const S=class{constructor(e){(0,o.r)(this,e),this.clearTooltipsForRemovedElements=e=>{for(const t of e)for(const e of Array.from(t.removedNodes))if(this.removeTooltipFromNode(e))return},this.removeTooltipFromNode=e=>{if(e instanceof HTMLElement){if(l.T.getTooltipInstance(e))return l.T.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=l.T.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const i=l.T.getTooltip(e.target);i&&this.handleTooltipShow(i)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){l.T.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=l.T.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const i=l.T.getTooltip(e.target);i&&this.handleTooltipHide(i,e.relatedTarget)}handleTooltipHide(e,t){const i=e.tooltipTarget;i&&(t&&e.contains(t)||this.handleTooltipTargetHide(i,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||l.T.getTooltipInstance(e)&&l.T.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return(0,o.h)(o.a,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};S.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{position:relative;z-index:1;padding:var(--gw-tooltip-padding)}'},81491(e,t,i){i.d(t,{H:()=>n});const o='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class n{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return n.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=o){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=o){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?n.focusPreviousElement(e):n.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 o=new MutationObserver(()=>{try{const i=document.querySelector(e);i&&(o.disconnect(),t(i))}catch(e){o.disconnect(),i(e)}});o.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}},87050(e,t,i){i.d(t,{D:()=>o,R:()=>n});class o{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 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}}var 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={}))}};
|
|
2
|
-
//# sourceMappingURL=7815.
|
|
1
|
+
export const __webpack_esm_id__=7815;export const __webpack_esm_ids__=[7815];export const __webpack_esm_modules__={7815(e,t,i){i.r(t),i.d(t,{onto_footer:()=>c,onto_header:()=>u,onto_loader:()=>g,onto_navbar:()=>A,onto_tooltip:()=>S});var o=i(76133),n=i(57154),s=i(79939),r=i(81491),a=i(87050),l=i(84987);i(44123);const c=class{constructor(e){(0,o.r)(this,e),this.subscriptions=new n.SubscriptionList,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=(0,n.service)(n.ProductInfoContextService),this.securityContextService=(0,n.service)(n.SecurityContextService),this.licenseContextService=(0,n.service)(n.LicenseContextService),this.trackingService=(0,n.service)(n.TrackingService)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,t,i,n;return(0,o.h)(o.a,{key:"3f96199693937a11390b2c72f33548c5398217d0"},(0,o.h)("div",{key:"9a08d6c8fdc0030e8e4acb1e6a7f1869ceae9c76",class:"footer-component"},(0,o.h)("a",{key:"34a0bf88e8a9ecb75c381816cfd97f0f39103a4f",href:"http://graphdb.ontotext.com",target:"_blank",rel:"noopener noreferrer"},"GraphDB")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",(0,o.h)("a",{key:"cedb54fd1e5c8f44d3c2241606fba3786c2c6f08",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," • Workbench ",null===(n=this.productInfo)||void 0===n?void 0:n.workbench," • © 2002–",this.currentYear," ",(0,o.h)("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",(0,o.h)("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&(0,o.h)("onto-cookie-consent",{key:"a7c7a7d8432a4848ddde8f9651380d4520059fd3"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),o=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,n=this.trackingService.getCookieConsent();n&&(this.shouldShowCookieConsent=!n.policyAccepted&&(o||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};c.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}";const h=({repository:e})=>(0,o.h)("div",{class:"repository-selector-dropdown-item"},(0,o.h)("i",{class:"item-icon icon-repo-"+e.type}),(0,o.h)("div",{class:"item-label"},(0,o.h)("div",{class:"repository-id"},e.id),(0,o.h)("div",{class:"repository-location"},e.location?e.location:"Local"))),d="menu.logo.link.title",u=class{constructor(e){(0,o.r)(this,e),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new n.FibonacciGenerator,this.monitoringService=n.ServiceProvider.get(n.MonitoringService),this.repositoryContextService=n.ServiceProvider.get(n.RepositoryContextService),this.repositoryLocationContextService=n.ServiceProvider.get(n.RepositoryLocationContextService),this.repositoryService=n.ServiceProvider.get(n.RepositoryService),this.securityContextService=n.ServiceProvider.get(n.SecurityContextService),this.toastrService=n.ServiceProvider.get(n.OntoToastrService),this.namespacesService=n.ServiceProvider.get(n.NamespacesService),this.namespaceContextService=n.ServiceProvider.get(n.NamespacesContextService),this.languageService=n.ServiceProvider.get(n.LanguageService),this.authService=n.ServiceProvider.get(n.AuthenticationService),this.authorizationService=n.ServiceProvider.get(n.AuthorizationService),this.eventService=n.ServiceProvider.get(n.EventService),this.configurationContextService=n.ServiceProvider.get(n.ConfigurationContextService),this.runtimeConfigurationContextService=n.ServiceProvider.get(n.RuntimeConfigurationContextService),this.logger=s.L.logger,this.shouldShowSearch=!0,this.isHomePage=(0,n.isHomePage)(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new n.SubscriptionList,this.skipUpdateActiveOperationsTimes=0,this.labels={[d]:s.T.translate(d)},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:a.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,n.getCurrentRoute)(),this.startOperationPolling(),this.onTranslate(d)}render(){var e,t;return(0,o.h)(o.a,{key:"1a0ea30540103e48f24febbb1b019da6ec16fb54"},(0,o.h)("div",{key:"70c90aa8e0c4eca71330a5623d3faebe3d08bb89",class:"header-component"},(0,o.h)("div",{key:"30782ae29482fd29245adb62141dd77dec07e20e",class:"left-section brand"},(0,o.h)("a",{key:"e7f7bff0928fd057806c9017dbe5ba61ec5767ee",class:"home-page",onClick:(0,n.navigateTo)("./")},(0,o.h)("img",{key:"1f1327dd2cd85fe3c6f7871f168205f4feefec2e",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[d]}))),(0,o.h)("div",{key:"e1cf9275d74d4216f795255e47b4f5243d794cf7",class:"right-section"},(0,o.h)("onto-search-icon",{key:"3fa41c9db75a0e1ccb386d2f9a824fe27e8fa19c",class:"rdf-search-button",onClick:this.showViewResourceMessage,"data-test":"onto-show-view-resource-message",style:{display:this.shouldShowSearch&&this.isHomePage?"block":"none"}}),(0,o.h)("onto-rdf-search",{key:"70c901d032cd529ee87ce797b55d29ad65565ec3","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,o.h)("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(t=this.license)||void 0===t?void 0:t.valid)?(0,o.h)("onto-license-alert",{license:this.license}):"",(0,o.h)("onto-repository-selector",{key:"ca880c7c438c32db63317d3447ddf89740ed273c",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,totalTripletsFormatter:this.totalTripletsFormatter,expansionRatioFormatter:this.expansionRatioFormatter,canWriteRepo:this.canWriteRepo}),(0,o.h)("onto-language-selector",{key:"abc09868343581be4724d897fc5caa51cd7e3265","dropdown-alignment":"right"}),this.showUserMenu&&this.user?(0,o.h)("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?(0,o.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(n.ServiceProvider.get(n.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(n.EventName.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=(0,n.isHomePage)(),this.currentRoute=(0,n.getCurrentRoute)(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(n.ServiceProvider.get(n.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 n.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,o.h)(h,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}canWriteRepoInLocation(e){return!0}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 o=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,n=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=o&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=o&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=n.WindowService.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{n.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,n.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})}};u.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 g=class{constructor(e){(0,o.r)(this,e),this.size=100,this.messageText="",this.rawSvg=atob("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgICAgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgICAgICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgICAgICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iCiAgICAgICAgdmlld0JveD0iMCAwIDUwIDUwIgogICAgICAgIGlkPSJzdmcyIgogICAgICAgIHZlcnNpb249IjEuMSIKICAgICAgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ4LjAgcjk2NTQiCiAgICAgICAgc29kaXBvZGk6ZG9jbmFtZT0ibmFtZXN2Zy5zdmciPgogICAgPGNpcmNsZSBjeD0iMjEu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vc3ZnPgo=".split(",")[1])}render(){return(0,o.h)(o.a,{key:"f0eb18975fbbde62c4b50add16b772672a1fbb5b"},(0,o.h)("div",{key:"c36d32d9d10e7fba7d9599a00046dbd78b846b78",class:"onto-loader","guide-selector":"onto-loader"},(0,o.h)("div",{key:"950cb6d4fe083c94a4a03c4564d19becc43597ee",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&(0,o.h)("div",{key:"2626f0e91e01349384cb0d963a39c6075972c4fd",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}};g.style=":host{display:block}: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}";class m{constructor(e){this.type="navbarToggled",this.payload=e}}class p{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 I(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 o=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(o=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);o===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),o=t.split("/");if(i.length!==o.length)return e;const n=[];for(let t=0;t<o.length;t++)if("*"===o[t])n.push("*");else{if(o[t]!==i[t])return e;n.push(o[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(p.compare)}),this._items.sort(p.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 I{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 b=s.L.logger;class v{static map(e,t,i,o){const n=new p;return v.setTopLevelMenuItems(e,n,t),v.setSubmenuItems(e,n,t),i&&v.addRepositoryIdToHrefAttributes(n,i,o),n.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)?b.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 o=t.getTopLevelItem(e.parent);null==o||o.addChildren(this.toMenuItemModel(e,o,i,e.children))})})}static toMenuItemModel(e,t,i,o=[]){let s;e.documentationHref&&(s=n.UriUtil.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const r=new I({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=o.map(e=>this.toMenuItemModel(e,r,i,e.children));return r.addChildren(...a),r}}const C="menu.buttons.expand",y="menu.buttons.collapse",A=class{constructor(e){(0,o.r)(this,e),this.navbarToggled=(0,o.d)(this,"navbarToggled"),this.productInfoContextService=(0,n.service)(n.ProductInfoContextService),this.repositoryContextService=(0,n.service)(n.RepositoryContextService),this.subscriptions=new n.SubscriptionList,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[C]:s.T.translate(C),[y]:s.T.translate(y)},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 m(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),i=v.map(e||[],this.productInfo,null==t?void 0:t.id,n.REPOSITORY_ID_PARAM);i.initSelected((0,n.getCurrentRoute)()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?(0,n.openInNewTab)(t.href):(0,n.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(n.ServiceProvider.get(n.EventService).subscribe(n.EventName.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),(0,n.isHomePage)()||this.menuModel.initSelected((0,n.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 m(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 p(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 o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=o.height?l=a:r>=o.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(C),this.onTranslate(y),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,o.h)(o.a,null,(0,o.h)("ul",{class:"navbar-component"},(0,o.h)("li",{class:"navbar-toggle"},(0,o.h)("a",{class:"toggle-menu no-underline",title:this.isCollapsed?this.labels[C]:this.labels[y],onClick:this.toggleNavbarHandler()},(0,o.h)("em",{class:this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line"}))),this.menuModel.items.map(e=>(0,o.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,o.h)(o.F,null,(0,o.h)("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},(0,o.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey})),(0,o.h)("ul",{class:"sub-menu"},(0,o.h)("li",{key:e.labelKey,class:"submenu-title"},(0,o.h)("translate-label",{labelKey:e.labelKey})),e.children.map(e=>(0,o.h)("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.documentationHref?(0,o.h)("a",{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"},(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,o.h)("span",{class:`text-muted ${e.icon}`})):(0,o.h)("a",{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},(0,o.h)("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&(0,o.h)("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&(0,o.h)("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},(0,o.h)("span",{class:`menu-item-icon ${e.icon}`})," ",(0,o.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,o.c)(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 2.5em 0.8em 0.8em;display:block;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 :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 .menu-element ul:before{font-family:"icomoon", sans-serif !important;content:"\\e91b";display:block;font-size:1.5em;position:absolute;top:-3.3rem;right:1rem;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in;pointer-events:none}.navbar-component .menu-element.open ul:before,.rdf-list ul.open.datasource:before{transform:rotate(90deg)}.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:0.8em;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)}';const S=class{constructor(e){(0,o.r)(this,e),this.clearTooltipsForRemovedElements=e=>{for(const t of e)for(const e of Array.from(t.removedNodes))if(this.removeTooltipFromNode(e))return},this.removeTooltipFromNode=e=>{if(e instanceof HTMLElement){if(l.T.getTooltipInstance(e))return l.T.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=l.T.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const i=l.T.getTooltip(e.target);i&&this.handleTooltipShow(i)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){l.T.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=l.T.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const i=l.T.getTooltip(e.target);i&&this.handleTooltipHide(i,e.relatedTarget)}handleTooltipHide(e,t){const i=e.tooltipTarget;i&&(t&&e.contains(t)||this.handleTooltipTargetHide(i,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||l.T.getTooltipInstance(e)&&l.T.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return(0,o.h)(o.a,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};S.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{position:relative;z-index:1;padding:var(--gw-tooltip-padding)}'},81491(e,t,i){i.d(t,{H:()=>n});const o='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class n{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return n.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=o){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=o){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?n.focusPreviousElement(e):n.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 o=new MutationObserver(()=>{try{const i=document.querySelector(e);i&&(o.disconnect(),t(i))}catch(e){o.disconnect(),i(e)}});o.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}},87050(e,t,i){i.d(t,{D:()=>o,R:()=>n});class o{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 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}}var n;!function(e){e.SUGGESTION_SELECTED_EVENT="suggestion-selected-event",e.TABLE_VIEW="table",e.VISUAL_VIEW="visual",e.RDF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,GACPA,EAAmD,0BAAI,4BACvDA,EAAoC,WAAI,QACxCA,EAAqC,YAAI,SACzCA,EAAiD,wBAAI,sBACxD,CALD,CAKGA,IAA4BA,EAA0B,CAAC,G","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-footer_5.entry.js","webpack://root-config/./packages/shared-components/dist/esm/html-util-C8DO915D.js","webpack://root-config/./packages/shared-components/dist/esm/resource-search-constants-CapzAxJp.js"],"sourcesContent":["import { r as registerInstance, h, a as Host, d as createEvent, F as Fragment, c as getElement } from './index-EiAqSNMq.js';\nimport { SubscriptionList, service, ProductInfoContextService, SecurityContextService, LicenseContextService, TrackingService, FibonacciGenerator, ServiceProvider, MonitoringService, RepositoryContextService, RepositoryLocationContextService, RepositoryService, OntoToastrService, NamespacesService, NamespacesContextService, LanguageService, AuthenticationService, AuthorizationService, EventService, ConfigurationContextService, RuntimeConfigurationContextService, isHomePage, getCurrentRoute, navigateTo, EventName, LanguageContextService, RepositoryList, WindowService, ObjectUtil, getPathName, UriUtil, REPOSITORY_ID_PARAM, openInNewTab, navigate } from '@ontotext/workbench-api';\nimport { L as LoggerProvider, T as TranslationService } from './translation.service-nljGIprK.js';\nimport { H as HtmlUtil } from './html-util-C8DO915D.js';\nimport { R as ResourceSearchConstants, D as DropdownItem } from './resource-search-constants-CapzAxJp.js';\nimport { T as TooltipUtil } from './tooltip-util-CzsgdbCC.js';\nimport './onto-tooltip-placement-D_J2-9CG.js';\n\nconst ontoFooterCss = \":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}\";\n\nconst OntoFooter = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** List of subscriptions to manage component lifecycle */\n this.subscriptions = new SubscriptionList();\n /** Current year for copyright display */\n this.currentYear = new Date().getFullYear();\n this.productInfoContextService = service(ProductInfoContextService);\n this.securityContextService = service(SecurityContextService);\n this.licenseContextService = service(LicenseContextService);\n this.trackingService = service(TrackingService);\n }\n handleConsentGiven() {\n this.trackingService.acceptCookiePolicy()\n .then(() => this.shouldShowCookieConsent = false);\n }\n render() {\n var _a, _b, _c, _d;\n return (h(Host, { key: '3f96199693937a11390b2c72f33548c5398217d0' }, h(\"div\", { key: '9a08d6c8fdc0030e8e4acb1e6a7f1869ceae9c76', class: \"footer-component\" }, h(\"a\", { key: '34a0bf88e8a9ecb75c381816cfd97f0f39103a4f', href: \"http://graphdb.ontotext.com\", target: \"_blank\", rel: \"noopener noreferrer\" }, \"GraphDB\"), \"\\u00A0\", (_a = this.productInfo) === null || _a === void 0 ? void 0 :\n _a.productVersion, \" \\u2022\\u00A0\", h(\"a\", { key: 'cedb54fd1e5c8f44d3c2241606fba3786c2c6f08', href: \"http://rdf4j.org\", target: \"_blank\", rel: \"noopener noreferrer\" }, \"RDF4J\"), \"\\u00A0\", (_b = this.productInfo) === null || _b === void 0 ? void 0 :\n _b.sesame, \" \\u2022 Connectors \", (_c = this.productInfo) === null || _c === void 0 ? void 0 :\n _c.connectors, \" \\u2022 Workbench \", (_d = this.productInfo) === null || _d === void 0 ? void 0 :\n _d.workbench, \" \\u2022 \\u00A9 2002\\u2013\", this.currentYear, \"\\u00A0\", h(\"a\", { key: 'd5b24d86dcf3feb2178795d2018e8b093f862ade', href: \"http://ontotext.com\", target: \"_blank\", rel: \"noopener noreferrer\" }, \"Ontotext AD\"), \".\\u00A0\", h(\"translate-label\", { key: '4ac76d6de5e9999490eda3235ec204a82d1e456c', labelKey: 'footer.label.all_rights_reserved' })), this.shouldShowCookieConsent && h(\"onto-cookie-consent\", { key: 'a7c7a7d8432a4848ddde8f9651380d4520059fd3' })));\n }\n // ========================\n // Lifecycle methods\n // ========================\n connectedCallback() {\n this.subscribeToProductInfoChange();\n this.subscribeToUserChange();\n this.subscribeToLicenseChange();\n this.subscribeToUserLoginStatusChange();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n subscribeToProductInfoChange() {\n this.subscriptions.add(this.productInfoContextService.onProductInfoChanged((productInfo) => {\n this.productInfo = productInfo;\n }));\n }\n subscribeToUserChange() {\n // TODO: move to cookieService, when the authenticatedUser is available synchronously\n this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(() => {\n this.setCookieConsentVisibility();\n }));\n }\n subscribeToUserLoginStatusChange() {\n this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(() => {\n this.setCookieConsentVisibility();\n }));\n }\n /**\n * Determines whether the cookie consent banner should be shown based on the user's authentication status, license\n * type, and cookie consent status.\n * The banner is shown if the user has not accepted the cookie policy and either has free access or is logged in,\n * provided that tracking is allowed by the license. Otherwise, the banner is hidden.\n */\n setCookieConsentVisibility() {\n var _a, _b;\n if (!this.trackingService.isTrackingAllowed()) {\n this.shouldShowCookieConsent = false;\n return;\n }\n const isLoggedIn = this.securityContextService.getIsLoggedIn();\n const isFreeAccessEnabled = (_b = (_a = this.securityContextService.getSecurityConfig()) === null || _a === void 0 ? void 0 : _a.isFreeAccessEnabled()) !== null && _b !== void 0 ? _b : false;\n const cookieConsent = this.trackingService.getCookieConsent();\n if (cookieConsent) {\n this.shouldShowCookieConsent = !cookieConsent.policyAccepted && (isFreeAccessEnabled || isLoggedIn);\n }\n }\n subscribeToLicenseChange() {\n this.subscriptions.add(this.licenseContextService.onLicenseChanged(() => {\n this.setCookieConsentVisibility();\n }));\n }\n};\nOntoFooter.style = ontoFooterCss;\n\n/**\n *\n * A StencilJS functional component that renders a repository item in the repository selector dropdown. It displays the repository's\n * icon, ID, and location. If no location is specified, it shows \"Local\" as the default. This component also allows for\n * dynamic rendering of repository details as part of a list of selectable items.\n *\n * @example\n * <SelectorItemButton repository={repository}></>\n *\n */\nconst SelectorItemButton = ({ repository }) => {\n return (h(\"div\", { class: \"repository-selector-dropdown-item\" },\n h(\"i\", { class: 'item-icon icon-repo-' + repository.type }),\n h(\"div\", { class: \"item-label\" },\n h(\"div\", { class: \"repository-id\" }, repository.id),\n h(\"div\", { class: \"repository-location\" }, repository.location ? repository.location : 'Local'))));\n};\n\nconst ontoHeaderCss = \":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}\";\n\nconst labelKeys$1 = {\n LOGO_LINK: 'menu.logo.link.title'\n};\nconst OntoHeader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n // ========================\n // Services\n // ========================\n this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL = 2000;\n this.fibonacciGenerator = new FibonacciGenerator();\n this.monitoringService = ServiceProvider.get(MonitoringService);\n this.repositoryContextService = ServiceProvider.get(RepositoryContextService);\n this.repositoryLocationContextService = ServiceProvider.get(RepositoryLocationContextService);\n this.repositoryService = ServiceProvider.get(RepositoryService);\n this.securityContextService = ServiceProvider.get(SecurityContextService);\n this.toastrService = ServiceProvider.get(OntoToastrService);\n this.namespacesService = ServiceProvider.get(NamespacesService);\n this.namespaceContextService = ServiceProvider.get(NamespacesContextService);\n this.languageService = ServiceProvider.get(LanguageService);\n this.authService = ServiceProvider.get(AuthenticationService);\n this.authorizationService = ServiceProvider.get(AuthorizationService);\n this.eventService = ServiceProvider.get(EventService);\n this.configurationContextService = ServiceProvider.get(ConfigurationContextService);\n this.runtimeConfigurationContextService = ServiceProvider.get(RuntimeConfigurationContextService);\n this.logger = LoggerProvider.logger;\n /** Whether the search component should appear */\n this.shouldShowSearch = true;\n this.isHomePage = isHomePage();\n this.showUserMenu = false;\n this.showLoginButton = false;\n // ========================\n // Private\n // ========================\n this.isActiveLocationLoading = false;\n this.repositoryItems = [];\n /** Array of subscription cleanup functions */\n this.subscriptions = new SubscriptionList();\n this.skipUpdateActiveOperationsTimes = 0;\n this.labels = {\n [labelKeys$1.LOGO_LINK]: TranslationService.translate(labelKeys$1.LOGO_LINK)\n };\n this.canWriteRepo = (repo) => {\n return this.canWriteRepoInLocation(repo);\n };\n this.repositorySizeInfoFetcher = (repo) => {\n return this.repositoryService.getRepositorySizeInfo(repo);\n };\n this.showViewResourceMessage = (event) => {\n event.stopPropagation();\n this.toastrService.info(TranslationService.translate('rdf_search.toasts.use_view_resource'));\n this.shouldShowSearch = false;\n HtmlUtil.focusElement('#search-resource-input-home input');\n this.eventService.emit({ NAME: ResourceSearchConstants.RDF_SEARCH_ICON_CLICKED });\n };\n }\n // ========================\n // Lifecycle methods\n // ========================\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n this.stopOperationPolling();\n }\n connectedCallback() {\n this.currentRepository = this.repositoryContextService.getSelectedRepository();\n this.setupTotalRepositoryFormater();\n this.setupExpansionRatioFormater();\n this.subscribeToEvents();\n this.currentRoute = getCurrentRoute();\n this.startOperationPolling();\n this.onTranslate(labelKeys$1.LOGO_LINK);\n }\n render() {\n var _a, _b;\n return (h(Host, { key: '1a0ea30540103e48f24febbb1b019da6ec16fb54' }, h(\"div\", { key: '70c90aa8e0c4eca71330a5623d3faebe3d08bb89', class: \"header-component\" }, h(\"div\", { key: '30782ae29482fd29245adb62141dd77dec07e20e', class: \"left-section brand\" }, h(\"a\", { key: 'e7f7bff0928fd057806c9017dbe5ba61ec5767ee', class: \"home-page\", onClick: navigateTo('./') }, h(\"img\", { key: '1f1327dd2cd85fe3c6f7871f168205f4feefec2e', src: this.applicationLogoPath, class: \"big-logo\", alt: this.labels[labelKeys$1.LOGO_LINK] }))), h(\"div\", { key: 'e1cf9275d74d4216f795255e47b4f5243d794cf7', class: \"right-section\" }, h(\"onto-search-icon\", { key: '3fa41c9db75a0e1ccb386d2f9a824fe27e8fa19c', class: \"rdf-search-button\", onClick: this.showViewResourceMessage, \"data-test\": \"onto-show-view-resource-message\", style: { display: this.shouldShowSearch && this.isHomePage ? 'block' : 'none' } }), h(\"onto-rdf-search\", { key: '70c901d032cd529ee87ce797b55d29ad65565ec3', \"data-test\": \"onto-open-rdf-search-button\", style: { display: this.shouldShowSearch && !this.isHomePage ? 'block' : 'none' } }), ((_a = this.activeOperations) === null || _a === void 0 ? void 0 : _a.allRunningOperations.getItems().length)\n ? h(\"onto-operations-notification\", { activeOperations: this.activeOperations })\n : '', this.license && !((_b = this.license) === null || _b === void 0 ? void 0 : _b.valid) ?\n h(\"onto-license-alert\", { license: this.license }) : '', h(\"onto-repository-selector\", { key: 'ca880c7c438c32db63317d3447ddf89740ed273c', currentRepository: this.currentRepository, items: this.repositoryItems, repositorySizeInfoFetcher: this.repositorySizeInfoFetcher, totalTripletsFormatter: this.totalTripletsFormatter, expansionRatioFormatter: this.expansionRatioFormatter, canWriteRepo: this.canWriteRepo }), h(\"onto-language-selector\", { key: 'abc09868343581be4724d897fc5caa51cd7e3265', \"dropdown-alignment\": \"right\" }), this.showUserMenu && this.user ?\n h(\"onto-user-menu\", { user: this.user, securityConfig: this.securityConfig }) : '', this.showLoginButton ? h(\"onto-user-login\", null) : ''))));\n }\n // ========================\n // Subscriptions\n // ========================\n subscribeToEvents() {\n this.subscribeToSecurityContextChange();\n this.subscribeToRepositoryListChanged();\n this.subscribeToLicenseChange();\n this.subscribeToRepositoryChange();\n this.subscribeToActiveRepositoryLocationChange();\n this.subscribeToActiveRepoLoadingChange();\n this.subscribeToNavigationEnd();\n this.subscribeToLanguageChanged();\n this.subscribeToAuthenticatedUserChange();\n this.subscribeToThemeModeChange();\n }\n subscribeToThemeModeChange() {\n this.subscriptions.add(this.runtimeConfigurationContextService.onThemeModeChanged((themeMode) => {\n this.applicationLogoPath = this.configurationContextService.getApplicationLogoPath(themeMode);\n }));\n }\n subscribeToRepositoryListChanged() {\n return this.repositoryContextService.onRepositoryListChanged((repositories) => {\n if (!(repositories === null || repositories === void 0 ? void 0 : repositories.getItems().length)) {\n this.resetOnMissingRepositories();\n }\n else {\n this.initOnRepositoryListChanged(repositories);\n }\n });\n }\n subscribeToLicenseChange() {\n this.subscriptions.add(ServiceProvider.get(LicenseContextService)\n .onLicenseChanged((license) => {\n this.license = license;\n }));\n }\n subscribeToRepositoryChange() {\n this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged((repositoryReference) => {\n // The observer can receive a reference (having id and location), so we need to find the full repository object.\n this.currentRepository = this.repositoryContextService.findRepository(repositoryReference);\n this.shouldShowSearch = this.shouldShowRdfSearch();\n this.loadNamespaces();\n this.updateRepositoryItems();\n }));\n }\n subscribeToSecurityContextChange() {\n this.subscriptions.add(this.securityContextService.onSecurityConfigChanged((config) => {\n this.securityConfig = config;\n setTimeout(() => {\n this.updateVisibility();\n });\n }));\n }\n subscribeToAuthenticatedUserChange() {\n this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged((user) => {\n this.user = user;\n this.updateRepositoryItems();\n this.updateVisibility();\n }));\n }\n subscribeToActiveRepositoryLocationChange() {\n this.subscriptions.add(this.repositoryLocationContextService.onActiveLocationChanged(() => {\n this.shouldShowSearch = this.shouldShowRdfSearch();\n }));\n }\n subscribeToActiveRepoLoadingChange() {\n this.subscriptions.add(this.repositoryLocationContextService.onIsLoadingChanged((isLoading) => {\n this.isActiveLocationLoading = isLoading;\n this.shouldShowSearch = this.shouldShowRdfSearch();\n }));\n }\n subscribeToNavigationEnd() {\n this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END, () => {\n this.shouldShowSearch = this.shouldShowRdfSearch();\n this.isHomePage = isHomePage();\n this.currentRoute = getCurrentRoute();\n this.updateVisibility();\n }));\n }\n subscribeToLanguageChanged() {\n this.subscriptions.add(ServiceProvider.get(LanguageContextService)\n .onSelectedLanguageChanged((language) => {\n this.setupTotalRepositoryFormater(language);\n this.setupExpansionRatioFormater(language);\n }));\n }\n onTranslate(key) {\n this.subscriptions.add(TranslationService.onTranslate(key, [], (translation) => {\n this.labels[key] = translation;\n }));\n }\n // ========================\n // Repository Logic\n // ========================\n resetOnMissingRepositories() {\n this.repositoryItems = [];\n this.repositoryList = new RepositoryList();\n this.currentRepository = undefined;\n }\n initOnRepositoryListChanged(repositories) {\n this.repositoryList = repositories;\n this.updateRepositoryItems();\n }\n updateRepositoryItems() {\n this.repositoryItems = this.getRepositoriesDropdownItems();\n }\n getRepositoriesDropdownItems() {\n var _a;\n if (!((_a = this.repositoryList) === null || _a === void 0 ? void 0 : _a.getItems().length)) {\n return [];\n }\n this.repositoryList.sortByLocationAndId();\n let repositories;\n if (this.currentRepository) {\n repositories = this.repositoryList.filterByRepository([this.currentRepository]);\n }\n else {\n repositories = this.repositoryList.getItems();\n }\n return repositories\n .filter((repository) => this.authorizationService.canReadRepo(repository) || this.authorizationService.canReadGqlRepo(repository))\n .map((repository) => {\n return new DropdownItem()\n .setName(h(SelectorItemButton, { repository: repository }))\n .setValue(repository)\n .setGuideSelector(`repository-id-${repository.id}`);\n });\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n canWriteRepoInLocation(_repository) {\n // TODO: implement the condition when GDB-10442 is ready\n return true;\n }\n loadNamespaces() {\n if (!this.currentRepository || !this.authorizationService.canReadRepo(this.currentRepository)) {\n return;\n }\n // TODO: check why loaction not used maybe it is added in autorization interceptor\n this.namespacesService.getNamespaces(this.currentRepository.id)\n .then((namespaces) => this.namespaceContextService.updateNamespaces(namespaces));\n }\n updateVisibility() {\n var _a, _b, _c;\n const isSecurityEnabled = (_a = this.securityConfig) === null || _a === void 0 ? void 0 : _a.enabled;\n const isLoggedIn = this.authService.isLoggedIn();\n let isAuthenticated = false;\n try {\n isAuthenticated = this.authService.isAuthenticated();\n }\n catch (_d) {\n isAuthenticated = false;\n }\n const isFreeAccessEnabled = (_c = (_b = this.securityConfig) === null || _b === void 0 ? void 0 : _b.freeAccess) === null || _c === void 0 ? void 0 : _c.enabled;\n this.showLoginButton = isSecurityEnabled && isFreeAccessEnabled && !isLoggedIn && this.currentRoute !== 'login';\n this.showUserMenu = isSecurityEnabled && isAuthenticated && isLoggedIn;\n this.shouldShowSearch = this.shouldShowRdfSearch();\n }\n // ========================\n // Monitoring and pooling\n // ========================\n startOperationPolling() {\n clearInterval(this.pollingInterval);\n this.pollingInterval = WindowService.getWindow().setInterval(() => {\n if (!this.authService.isAuthenticated()) {\n this.activeOperations = undefined;\n return;\n }\n if (this.skipUpdateActiveOperationsTimes > 0) {\n // Requested to skip this run, the number of skips is a Fibonacci sequence when errors are consecutive.\n this.skipUpdateActiveOperationsTimes--;\n return;\n }\n if (!this.currentRepository) {\n return;\n }\n this.monitoringService\n .getOperations(this.currentRepository.id)\n .then((operations) => {\n if (!ObjectUtil.deepEqual(this.activeOperations, operations)) {\n this.activeOperations = operations;\n }\n this.fibonacciGenerator.reset();\n this.skipUpdateActiveOperationsTimes = 0;\n })\n .catch((error) => {\n this.logger.error('Error fetching active operations', error);\n this.activeOperations = undefined;\n this.skipUpdateActiveOperationsTimes = this.fibonacciGenerator.next();\n });\n }, this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL);\n }\n stopOperationPolling() {\n clearInterval(this.pollingInterval);\n this.activeOperations = undefined;\n }\n // ========================\n // Render logic\n // ========================\n shouldShowRdfSearch() {\n return !!this.currentRepository &&\n (!this.isActiveLocationLoading || getPathName() === '/repository') &&\n this.authorizationService.canReadRepo(this.currentRepository);\n }\n // ========================\n // Language, formatting\n // ========================\n setupTotalRepositoryFormater(language) {\n if (!language) {\n language = this.languageService.getDefaultLanguage();\n }\n this.totalTripletsFormatter = new Intl.NumberFormat(language, {\n style: 'decimal',\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n }\n setupExpansionRatioFormater(language) {\n if (!language) {\n language = this.languageService.getDefaultLanguage();\n }\n this.expansionRatioFormatter = new Intl.NumberFormat(language, {\n style: 'decimal',\n minimumFractionDigits: 2,\n maximumFractionDigits: 2\n });\n }\n};\nOntoHeader.style = ontoHeaderCss;\n\nconst ontoLoaderSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3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ICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=';\n\nconst ontoLoaderCss = \":host{display:block}: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}\";\n\nconst OntoLoader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Size of the loader in pixels (width and height).\n */\n this.size = 100;\n /**\n * Optional message text to display below the loader.\n */\n this.messageText = '';\n this.rawSvg = atob(ontoLoaderSvg.split(',')[1]);\n }\n render() {\n return (h(Host, { key: 'f0eb18975fbbde62c4b50add16b772672a1fbb5b' }, h(\"div\", { key: 'c36d32d9d10e7fba7d9599a00046dbd78b846b78', class: \"onto-loader\", \"guide-selector\": \"onto-loader\" }, h(\"div\", { key: '950cb6d4fe083c94a4a03c4564d19becc43597ee', class: \"loader-spinner\", style: { 'width': this.size + 'px', 'height': this.size + 'px' }, innerHTML: this.rawSvg }), this.messageText && h(\"div\", { key: '2626f0e91e01349384cb0d963a39c6075972c4fd', class: \"loader-message\", style: { 'font-size': (this.size / 4) + 'px' } }, this.messageText))));\n }\n};\nOntoLoader.style = ontoLoaderCss;\n\n/**\n * Event fired when the navbar is toggled by the user.\n */\nclass NavbarToggledEvent {\n /**\n * Constructs the event.\n * @param isOpened - Whether the navbar is opened.\n */\n constructor(isOpened) {\n this.type = 'navbarToggled';\n this.payload = isOpened;\n }\n}\n\n/**\n * The UI model for the navbar component.\n */\nclass NavbarModel {\n /**\n * Creates a new instance of the navbar model.\n * @param items The model items. If no items are provided, the model will be empty by default.\n */\n constructor(items = []) {\n this._items = items;\n }\n hasParent(parentLabel) {\n return this._items.some((parentItem) => parentLabel === parentItem.label);\n }\n /**\n * Clones the model. This method is useful when the model needs to be modified without affecting the original model.\n * @return The cloned model.\n */\n getModel() {\n const cloneItem = (item) => {\n const clonedChildren = item.children.map(cloneItem);\n return new NavbarItemModel(Object.assign(Object.assign({}, item), { children: clonedChildren }));\n };\n return this._items.map(cloneItem);\n }\n /**\n * Adds a new top level item to the model. The sub menu items should be added separately as children before calling\n * this method.\n * @param item The item to be added.\n */\n addItem(item) {\n this._items.push(item);\n }\n /**\n * Returns the selected root item.\n * @return The selected root item or null if no item is selected.\n */\n getSelectedRootItem() {\n return this._items.find((item) => item.selected);\n }\n /**\n * Checks if the parent of the provided item is opened.\n * @param item The menu item for which the parent needs to be checked.\n * @return True if the parent is opened, false otherwise. If the item has no parent, the method returns false.\n */\n isParentOpened(item) {\n var _a;\n return !!((_a = this.getParentItem(item)) === null || _a === void 0 ? void 0 : _a.open);\n }\n /**\n * Returns the top level menu item with the given label.\n * @param parent The label of the top level menu item. Each menu item has a label which identifies it in the model.\n * The label comes from the main menu plugin definition and should be unique for each menu item.\n * @return The top level menu item or undefined if no item is found.\n */\n getTopLevelItem(parent) {\n return this._items.find((item) => item.label === parent);\n }\n /**\n * Returns the top level menu item with the same label as the parent property of the provided item.\n * @param item The menu item for which the parent is needed.\n * @return The parent menu item or undefined if no parent is found.\n */\n getParentItem(item) {\n return this._items.find((i) => i.label === item.parent);\n }\n /**\n * Deselects all menu items.\n */\n deselectAll() {\n this.walk((item) => {\n item.selected = false;\n });\n }\n /**\n * Closes all opened top level menu items.\n */\n closeAll() {\n this.walk((item) => {\n this.setOpen(item, false);\n });\n }\n /**\n * Deselects a top level menu item. When a menu item is selected it is highlighted in the UI.\n * @param item The top level menu item to be deselected.\n */\n deselectItem(item) {\n item.selected = false;\n }\n /**\n * Selects a top level menu item. When a menu item is selected it is highlighted in the UI.\n * @param item The top level menu item to be selected.\n */\n selectItem(item) {\n if (item.label) {\n item.selected = true;\n }\n else {\n this.selectItem(item.parentModel);\n }\n }\n /**\n * Checks if a top level menu item has a selected submenu.\n * @param item The top level menu item to be checked.\n * @return True if the top level menu item has a selected submenu, false otherwise.\n */\n hasSelectedSubmenu(item) {\n if (!item.children) {\n return false;\n }\n return item.children.some(child => this.hasSelection(child));\n }\n /**\n * Recursively checks if any submenu (child or nested) is selected.\n * @param {NavbarItemModel} item - The submenu item to check.\n * @return {boolean} True if selected, or if any descendant is selected.\n */\n hasSelection(item) {\n if (item.selected) {\n return true;\n }\n if (item.children) {\n return item.children.some(child => this.hasSelection(child));\n }\n return false;\n }\n /**\n * Marks an opened top level menu item as closed. If the item has a selected submenu, then the top level menu item\n * is marked as selected to indicate that the submenu is active.\n */\n closeOpened() {\n const opened = this._items.find((item) => item.open);\n if (opened) {\n if (this.hasSelectedSubmenu(opened)) {\n this.selectItem(opened);\n }\n this.setOpen(opened, false);\n }\n }\n /**\n * Opens a top level menu item and closes all other top level menu items.\n * @param item The top level menu item to be opened.\n */\n open(item) {\n this.walk((item) => {\n this.setOpen(item, false);\n });\n this.openItemAndParent(item);\n }\n openItemAndParent(item) {\n if (item.parentModel) {\n this.openItemAndParent(item.parentModel);\n }\n this.setOpen(item, true);\n }\n /**\n * Closes all top level menu items except the one that is the parent of the current item.\n * @param currentItem The current menu item.\n */\n closeOtherParents(currentItem) {\n const parent = currentItem.parent;\n this.walk((item) => {\n if (item.label !== parent) {\n this.setOpen(item, false);\n }\n });\n }\n /**\n * Sets the open state of a menu item.\n * @param item The menu item to be updated.\n * @param open The open state to be set.\n */\n setOpen(item, open) {\n item.open = open;\n }\n /**\n * Highlights the selected menu item by selecting its parent if it has one.\n * This is useful when the navbar is collapsed. This operation is the opposite of the unhighlightSelected method.\n */\n highlightSelected() {\n const selectedItem = this.getSelectedItem();\n if (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.hasParent) {\n this.selectItem(this.getParentItem(selectedItem));\n }\n }\n /**\n * Unhighlights the selected opened menu item if it has a submenu. This is useful when the navbar is going to be expanded.\n * This operation is the opposite of the highlightSelected method.\n */\n unhighlightSelected() {\n const selectedRootItem = this.getSelectedRootItem();\n if (selectedRootItem && selectedRootItem.children.length && selectedRootItem.open) {\n this.deselectItem(selectedRootItem);\n }\n }\n /**\n * Finds out the selected menu item. It can be a top level menu item or a submenu item.\n * @return The selected menu item or null if no item is selected.\n */\n getSelectedItem() {\n let selectedItem = null;\n const findSelected = (item) => {\n if (item.selected) {\n selectedItem = item;\n return true;\n }\n if (item.children) {\n for (const child of item.children) {\n if (findSelected(child)) {\n return true;\n }\n }\n }\n return false;\n };\n this._items.some(findSelected);\n return selectedItem;\n }\n expandSelected() {\n const selectedItem = this.getSelectedItem();\n if (selectedItem) {\n if (selectedItem.hasParent) {\n this.open(this.getParentItem(selectedItem));\n }\n else {\n this.open(selectedItem);\n }\n }\n }\n /**\n * Finds out the menu item by its href property and marks it as selected if it is a top level menu. If the menu item\n * is a sub menu, it marks its parent as opened and the sub menu item as selected.\n * @param selectedMenu The href of the menu item to be selected.\n */\n initSelected(selectedMenu) {\n this.walk((item) => {\n var _a;\n let path = selectedMenu;\n if ((_a = item.href) === null || _a === void 0 ? void 0 : _a.includes('*')) {\n path = this.getWildcardPath(selectedMenu, item.href);\n }\n // Remove query parameters from href before comparison because we have added them dynamically earlier.\n const separatorIndex = item.href.search(/[?]/);\n // If no separator is found, use the full length of the href.\n const cleanHref = separatorIndex === -1 ? item.href : item.href.substring(0, separatorIndex);\n if (path === cleanHref) {\n if (item.hasParent) {\n this.open(item);\n }\n this.selectItem(item);\n }\n });\n }\n /**\n * Compares a given path against a href pattern that may contain wildcards.\n * This function is used to match menu item hrefs that include wildcard segments.\n *\n * @param path - The actual path to compare against the href pattern.\n * @param href - The href pattern that may contain wildcards ('*').\n * @returns A string representing the matched path. If the path matches the href pattern,\n * it returns a version of the href where wildcards are preserved. If there's no match,\n * it returns the original path unchanged.\n */\n getWildcardPath(path, href) {\n const pathParts = path.split('/');\n const hrefParts = href.split('/');\n if (pathParts.length !== hrefParts.length) {\n return path; // Path and href have different number of segments, no match\n }\n const resultParts = [];\n for (let i = 0; i < hrefParts.length; i++) {\n if (hrefParts[i] === '*') {\n resultParts.push('*');\n }\n else if (hrefParts[i] !== pathParts[i]) {\n return path; // Mismatch in non-wildcard segment\n }\n else {\n resultParts.push(hrefParts[i]);\n }\n }\n return resultParts.join('/');\n }\n /**\n * Sorts the menu items by their order property.\n * @return {this} The sorted model.\n */\n sorted() {\n this._items\n .filter((item) => item.children)\n .forEach((item) => {\n item.children.sort(NavbarModel.compare);\n });\n this._items.sort(NavbarModel.compare);\n return this;\n }\n static compare(a, b) {\n return a.order - b.order;\n }\n /**\n * Walks recursively through the model and executes the provided callback for each item.\n * @param callback The callback to be executed for each item.\n */\n walk(callback) {\n this.walkRecursively(this.items, callback);\n }\n /**\n * Recursively walks through a list of navbar items and applies the callback.\n * @param items The items to walk through.\n * @param callback The callback to execute on each item.\n */\n walkRecursively(items, callback) {\n items.forEach((item) => {\n var _a;\n callback(item);\n if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {\n this.walkRecursively(item.children, callback);\n }\n });\n }\n get items() {\n return this._items;\n }\n}\n/**\n * The model for a single menu item.\n */\nclass NavbarItemModel {\n constructor(data) {\n var _a;\n this._selected = false;\n this._open = false;\n this._order = data.order;\n this._label = data.label;\n this._labelKey = data.labelKey;\n this._href = data.href;\n this._children = [...(_a = data.children) !== null && _a !== void 0 ? _a : []];\n this._hasParent = data.hasParent;\n this._parent = data.parent;\n this._selected = data.selected;\n this._open = data.open;\n this._documentationHref = data.documentationHref;\n this._hrefFun = data.hrefFun;\n this._editions = data.editions;\n this._icon = data.icon;\n this._role = data.role;\n this._guideSelector = data.guideSelector;\n this._testSelector = data.testSelector;\n this._shouldShow = data.shouldShow;\n this._parentModel = data.parentModel;\n }\n addChild(child) {\n this.children.push(child);\n child.setParent(this);\n }\n addChildren(...children) {\n children.forEach((child) => {\n this.addChild(child);\n });\n }\n /**\n * Determines whether the current menu item has submenus.\n * In this context, items with a href value of '#' are treated as parent items\n * and are expected to have submenus. This behavior is due to the fact that\n * all top-level items are registered with href set to '#' when added to the PluginRegistry.\n *\n * @returns {boolean} True if the item is a parent (has submenus), otherwise false.\n */\n hasSubmenus() {\n return this._href === '#';\n }\n get parent() {\n return this._parent;\n }\n set parent(value) {\n this._parent = value;\n }\n get order() {\n return this._order;\n }\n set order(value) {\n this._order = value;\n }\n get label() {\n return this._label;\n }\n set label(value) {\n this._label = value;\n }\n get labelKey() {\n return this._labelKey;\n }\n set labelKey(value) {\n this._labelKey = value;\n }\n get documentationHref() {\n return this._documentationHref;\n }\n set documentationHref(value) {\n this._documentationHref = value;\n }\n get href() {\n return this._href;\n }\n set href(value) {\n this._href = value;\n }\n get children() {\n return this._children;\n }\n set children(value) {\n this._children = value;\n }\n get hasParent() {\n return this._hasParent;\n }\n set hasParent(value) {\n this._hasParent = value;\n }\n get selected() {\n return this._selected;\n }\n set selected(value) {\n this._selected = value;\n }\n get open() {\n return this._open;\n }\n set open(value) {\n this._open = value;\n }\n get hrefFun() {\n return this._hrefFun;\n }\n set hrefFun(value) {\n this._hrefFun = value;\n }\n get editions() {\n return this._editions;\n }\n set editions(value) {\n this._editions = value;\n }\n get icon() {\n return this._icon;\n }\n set icon(value) {\n this._icon = value;\n }\n get role() {\n return this._role;\n }\n set role(value) {\n this._role = value;\n }\n get guideSelector() {\n return this._guideSelector;\n }\n set guideSelector(value) {\n this._guideSelector = value;\n }\n get testSelector() {\n return this._testSelector;\n }\n set testSelector(value) {\n this._testSelector = value;\n }\n get parentModel() {\n return this._parentModel;\n }\n set parentModel(value) {\n this._parentModel = value;\n }\n get shouldShow() {\n return this._shouldShow;\n }\n set shouldShow(value) {\n this._shouldShow = value;\n }\n setParent(parent) {\n this.parentModel = parent;\n this.hasParent = !!parent;\n }\n}\n\nconst logger = LoggerProvider.logger;\nclass NavbarService {\n /**\n * Maps external menu plugins to navbar model.\n * @param navbarPlugins Plugin definitions for the main menu.\n * @param productInfo The product info.\n * @param currentRepositoryId The current repository id.\n * @param repositoryIdParamName The name of the repository id query parameter.\n * @returns The navbar model.\n */\n static map(navbarPlugins, productInfo, currentRepositoryId, repositoryIdParamName) {\n const navbarModel = new NavbarModel();\n NavbarService.setTopLevelMenuItems(navbarPlugins, navbarModel, productInfo);\n NavbarService.setSubmenuItems(navbarPlugins, navbarModel, productInfo);\n if (currentRepositoryId) {\n NavbarService.addRepositoryIdToHrefAttributes(navbarModel, currentRepositoryId, repositoryIdParamName);\n }\n return navbarModel.sorted();\n }\n /**\n * Adds the current repositoryId as a query parameter to href attribute of each menu item which does not have children\n * or documentationHref (external link).\n * @param navbarModel The navbar model.\n * @param currentRepositoryId The current repository id.\n * @param repositoryIdParamName The name of the repository id query parameter.\n */\n static addRepositoryIdToHrefAttributes(navbarModel, currentRepositoryId, repositoryIdParamName) {\n navbarModel.items.forEach((item) => {\n const hasChildren = item.children && item.children.length > 0;\n if (!hasChildren) {\n item.href = `${item.href}?${repositoryIdParamName}=${currentRepositoryId}`;\n }\n else {\n item.children\n // External links don't need repositoryId param\n .filter((childItem) => !childItem.documentationHref)\n .forEach((childItem) => {\n childItem.href = `${childItem.href}?${repositoryIdParamName}=${currentRepositoryId}`;\n });\n }\n });\n }\n static setTopLevelMenuItems(navbarPlugins, navbarModel, productInfo) {\n navbarPlugins.forEach((menuPlugin) => {\n menuPlugin.items\n .filter((item) => !item.parent && item.shouldShow)\n .forEach((item) => {\n if (navbarModel.hasParent(item.label)) {\n logger.warn('Doubled parent definition: ', item);\n }\n else {\n navbarModel.addItem(this.toMenuItemModel(item, undefined, productInfo, item.children));\n }\n });\n });\n }\n static setSubmenuItems(navbarPlugins, navbarModel, productInfo) {\n navbarPlugins.forEach((menuPlugin) => {\n menuPlugin.items\n .filter((item) => item.parent && item.shouldShow)\n .forEach((item) => {\n const topLevelItem = navbarModel.getTopLevelItem(item.parent);\n // Some submenu items in the external menu model have children which is unusual.\n // I'm not sure if and where these children are used. For now, I'm ignoring them.\n topLevelItem === null || topLevelItem === void 0 ? void 0 : topLevelItem.addChildren(this.toMenuItemModel(item, topLevelItem, productInfo, item.children));\n });\n });\n }\n static toMenuItemModel(item, parent, productInfo, children = []) {\n let externalLink;\n if (item.documentationHref) {\n externalLink = UriUtil.resolveDocumentationUrl(productInfo === null || productInfo === void 0 ? void 0 : productInfo.shortVersion, item.documentationHref);\n }\n const itemModel = new NavbarItemModel({\n label: item.label,\n labelKey: item.labelKey,\n href: externalLink || item.href,\n documentationHref: item.documentationHref,\n hrefFun: item.hrefFun,\n order: item.order,\n role: item.role,\n editions: item.editions,\n icon: item.icon,\n guideSelector: item.guideSelector,\n hasParent: !!parent,\n parentModel: parent,\n parent: item.parent,\n selected: false,\n shouldShow: item.shouldShow,\n testSelector: item.testSelector,\n });\n const childrenModels = children.map((childrenItem) => this.toMenuItemModel(childrenItem, itemModel, productInfo, childrenItem.children));\n itemModel.addChildren(...childrenModels);\n return itemModel;\n }\n ;\n}\n\nconst ontoNavbarCss = \":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 2.5em 0.8em 0.8em;display:block;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 :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 .menu-element ul:before{font-family:\\\"icomoon\\\", sans-serif !important;content:\\\"\\\\e91b\\\";display:block;font-size:1.5em;position:absolute;top:-3.3rem;right:1rem;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in;pointer-events:none}.navbar-component .menu-element.open ul:before,.rdf-list ul.open.datasource:before{transform:rotate(90deg)}.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:0.8em;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)}\";\n\nconst labelKeys = {\n EXPAND: 'menu.buttons.expand',\n COLLAPSE: 'menu.buttons.collapse',\n};\nconst OntoNavbar = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.navbarToggled = createEvent(this, \"navbarToggled\");\n this.productInfoContextService = service(ProductInfoContextService);\n this.repositoryContextService = service(RepositoryContextService);\n this.subscriptions = new SubscriptionList();\n this.resizeHandler = () => this.adjustAllSubmenus(this.hostElement);\n this.SUBMENU_VERTICAL_MARGIN = 8;\n this.MIN_SUBMENU_HEIGHT = 100;\n this.labels = {\n [labelKeys.EXPAND]: TranslationService.translate(labelKeys.EXPAND),\n [labelKeys.COLLAPSE]: TranslationService.translate(labelKeys.COLLAPSE),\n };\n /**\n * Flag indicating whether the navbar is collapsed in result of toggle action initiated by the user. This is needed\n * in cases where the browser window is resized which is an operation that should not override the user's choice\n * regarding the navbar collapsed state, e.g. if the user has manually collapsed the navbar and then resizes the\n * window, the navbar should remain collapsed.\n */\n this.isCollapsedByUser = false;\n this.isFirstRepositoryChange = true;\n /**\n * Controls the expanded/collapsed state of the navbar.\n */\n this.isCollapsed = false;\n }\n navbarCollapsedChange(collapsed) {\n this.isCollapsed = !collapsed;\n if (this.isCollapsed && !this.isCollapsedByUser) {\n this.expandNavbar();\n }\n else {\n this.collapseNavbar();\n }\n this.navbarToggled.emit(new NavbarToggledEvent(this.isCollapsed));\n }\n menuItemsChanged(menuItems) {\n this.init(menuItems);\n }\n init(menuItems) {\n const selectedRepository = this.repositoryContextService.getSelectedRepository();\n const internalModel = NavbarService.map(menuItems || [], this.productInfo, selectedRepository === null || selectedRepository === void 0 ? void 0 : selectedRepository.id, REPOSITORY_ID_PARAM);\n internalModel.initSelected(getCurrentRoute());\n this.menuModel = internalModel;\n }\n select(event, menuItem) {\n event.preventDefault();\n this.clearAllOpenedSubmenuStyles();\n // Skip navigation when the selected item is a parent menu because it has no associated navigation.\n if (!menuItem.hasSubmenus()) {\n if (event.ctrlKey) {\n openInNewTab(menuItem.href);\n }\n else {\n navigate(menuItem.href);\n }\n }\n if (menuItem.children.length) {\n if (!menuItem.open) {\n this.menuModel.closeOpened();\n this.menuModel.open(menuItem);\n if (this.menuModel.hasSelectedSubmenu(menuItem)) {\n this.menuModel.deselectItem(menuItem);\n }\n }\n else {\n this.menuModel.closeAll();\n if (this.menuModel.hasSelectedSubmenu(menuItem)) {\n this.menuModel.selectItem(menuItem);\n }\n }\n }\n else {\n this.menuModel.closeOtherParents(menuItem);\n }\n // When the navbar is collapsed then find if the selected item has active children and mark the item as selected\n // to allow it to be highlighted in the collapsed state.\n if (this.isCollapsed && this.menuModel.isParentOpened(menuItem)) {\n this.menuModel.closeOpened();\n }\n this.refreshNavbar();\n this.adjustAllSubmenus(this.hostElement);\n }\n subscribeToNavigationEnd() {\n this.subscriptions.add(ServiceProvider.get(EventService).subscribe(EventName.NAVIGATION_END, () => {\n this.selectItemByUrl();\n }));\n }\n selectItemByUrl() {\n if (!this.menuModel) {\n return;\n }\n this.menuModel.deselectAll();\n this.menuModel.closeAll();\n if (!isHomePage()) {\n this.menuModel.initSelected(getCurrentRoute());\n }\n this.refreshNavbar();\n this.adjustAllSubmenus(this.hostElement);\n }\n toggleNavbar() {\n if (!this.isCollapsed) {\n this.isCollapsedByUser = true;\n this.menuModel.highlightSelected();\n this.menuModel.closeOpened();\n this.collapseNavbar();\n this.clearAllOpenedSubmenuStyles();\n }\n else {\n this.isCollapsedByUser = false;\n this.menuModel.expandSelected();\n this.menuModel.unhighlightSelected();\n this.expandNavbar();\n this.clearAllOpenedSubmenuStyles();\n }\n this.refreshNavbar();\n this.adjustAllSubmenus(this.hostElement);\n this.navbarToggled.emit(new NavbarToggledEvent(this.isCollapsed));\n }\n collapseNavbar() {\n this.hostElement.querySelector('.navbar-component').classList.add('collapsed');\n this.isCollapsed = true;\n }\n expandNavbar() {\n if (!this.isCollapsedByUser) {\n this.hostElement.querySelector('.navbar-component').classList.remove('collapsed');\n this.isCollapsed = false;\n }\n }\n refreshNavbar() {\n var _a;\n if (!((_a = this.menuModel) === null || _a === void 0 ? void 0 : _a.items)) {\n return;\n }\n this.menuModel = new NavbarModel(this.menuModel.items);\n }\n onLanguageChanged() {\n this.refreshNavbar();\n }\n onTranslate(key) {\n this.subscriptions.add(TranslationService.onTranslate(key, [], (translation) => {\n this.labels[key] = translation;\n this.onLanguageChanged();\n }));\n }\n toggleNavbarHandler() {\n return () => this.toggleNavbar();\n }\n /**\n * Adjust the max height of a submenu to ensure it fits within the viewport.\n * The submenu will be positioned either below or above its parent menu item based on available space.\n * @param sub The submenu element to adjust.\n * @param margin Margin in pixels to apply when calculating available space. This ensures some space between the\n * submenu and the viewport edge.\n */\n adjustSubmenuMaxHeight(sub, margin = this.SUBMENU_VERTICAL_MARGIN) {\n if (!sub || typeof sub.getBoundingClientRect !== 'function') {\n return;\n }\n const parentElement = sub.closest('.menu-element');\n if (!parentElement) {\n return;\n }\n const subRect = sub.getBoundingClientRect();\n const parentRect = parentElement.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n // Calculate available space above and below the parent menu item\n const spaceAbove = parentRect.top - margin + parentRect.height;\n const spaceBelow = viewportHeight - parentRect.bottom + parentRect.height - margin;\n // Determine optimal positioning and max height\n let maxHeight;\n let shouldAlignBottom = false;\n if (spaceBelow >= subRect.height) {\n // Enough space below - align to top of parent\n maxHeight = spaceBelow;\n }\n else if (spaceAbove >= subRect.height) {\n // Not enough space below but enough above - align to bottom of parent\n maxHeight = spaceAbove;\n shouldAlignBottom = true;\n }\n else {\n // Not enough space in either direction - use larger space and make scrollable\n if (spaceBelow > spaceAbove) {\n maxHeight = spaceBelow;\n shouldAlignBottom = false;\n }\n else {\n maxHeight = spaceAbove;\n shouldAlignBottom = true;\n }\n }\n // Apply positioning\n if (shouldAlignBottom) {\n sub.style.bottom = '0';\n sub.style.top = 'auto';\n }\n else {\n sub.style.top = '0';\n sub.style.bottom = 'auto';\n }\n sub.style.maxHeight = `${Math.max(this.MIN_SUBMENU_HEIGHT, maxHeight)}px`;\n sub.style.overflowY = 'auto';\n }\n /**\n * Adjust all submenus that are currently open.\n * @param host The host element containing the navbar.\n * @param margin Margin in pixels to apply when calculating available space. This ensures some space between the\n * submenu and the viewport edge.\n */\n adjustAllSubmenus(host, margin = this.SUBMENU_VERTICAL_MARGIN) {\n // run after paint so DOM is in final state\n requestAnimationFrame(() => {\n if (!host || typeof host.querySelectorAll !== 'function') {\n return;\n }\n this.getAllOpenedSubmenus(host).forEach((s) => this.adjustSubmenuMaxHeight(s, margin));\n });\n }\n getAllOpenedSubmenus(host) {\n return Array.from(host.querySelectorAll('.navbar-component.collapsed .menu-element.open .sub-menu'));\n }\n getAllSubmenus(host) {\n return Array.from(host.querySelectorAll('.navbar-component .menu-element .sub-menu'));\n }\n clearAllOpenedSubmenuStyles() {\n this.getAllSubmenus(this.hostElement).forEach((s) => {\n s.style.maxHeight = '';\n s.style.overflowY = '';\n s.style.top = '';\n s.style.bottom = '';\n });\n }\n // ========================\n // Lifecycle methods\n // ========================\n componentWillLoad() {\n this.init(this.menuItems);\n }\n connectedCallback() {\n this.subscribeToNavigationEnd();\n this.subscribeToProductInfoChanges();\n this.subscribeToRepositoryChange();\n // subscribe to language change events for each label\n this.onTranslate(labelKeys.EXPAND);\n this.onTranslate(labelKeys.COLLAPSE);\n window.addEventListener('resize', this.resizeHandler);\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n window.removeEventListener('resize', this.resizeHandler);\n }\n handleSelectMenuItem(item) {\n return (event) => {\n this.select(event, item);\n };\n }\n render() {\n if (!this.menuModel) {\n return;\n }\n return (h(Host, null, h(\"ul\", { class: \"navbar-component\" }, h(\"li\", { class: \"navbar-toggle\" }, h(\"a\", { class: \"toggle-menu no-underline\", title: this.isCollapsed ? this.labels[labelKeys.EXPAND] : this.labels[labelKeys.COLLAPSE], onClick: this.toggleNavbarHandler() }, h(\"em\", { class: this.isCollapsed ? 'ri-arrow-right-s-line' : 'ri-arrow-left-s-line' }))), this.menuModel.items.map((item) => (h(\"li\", { key: item.labelKey, class: { 'menu-element': true, 'open': item.open }, \"data-test\": item.testSelector, \"guide-selector\": item.guideSelector }, item.children.length > 0 &&\n h(Fragment, null, h(\"div\", { class: { 'menu-element-root': true, 'active': item.selected }, onClick: this.handleSelectMenuItem(item) }, h(\"span\", { class: `menu-item-icon ${item.icon}` }), \"\\u00A0\", h(\"translate-label\", { class: \"menu-item\", labelKey: item.labelKey })), h(\"ul\", { class: \"sub-menu\" }, h(\"li\", { key: item.labelKey, class: \"submenu-title\" }, h(\"translate-label\", { labelKey: item.labelKey })), item.children.map((submenu) => (h(\"li\", { key: submenu.labelKey, class: { 'sub-menu-item': true, 'active': submenu.selected }, \"data-test\": submenu.testSelector, \"guide-selector\": submenu.guideSelector }, submenu.documentationHref ?\n h(\"a\", { class: \"sub-menu-link external-link\", href: submenu.href, target: \"_blank\", rel: \"noopener noreferrer\" }, h(\"translate-label\", { class: \"menu-item\", labelKey: submenu.labelKey }), submenu.icon &&\n h(\"span\", { class: `text-muted ${submenu.icon}` }))\n :\n h(\"a\", { class: \"sub-menu-link\", href: submenu.href, onClick: this.handleSelectMenuItem(submenu) }, h(\"translate-label\", { class: \"menu-item\", labelKey: submenu.labelKey }), submenu.icon &&\n h(\"span\", { class: `text-muted ${submenu.icon}` }))))))), item.children.length === 0 &&\n h(\"a\", { class: { 'menu-element-root': true, 'active': item.selected }, href: item.href, onClick: this.handleSelectMenuItem(item) }, h(\"span\", { class: `menu-item-icon ${item.icon}` }), \"\\u00A0\", h(\"translate-label\", { class: \"menu-item\", labelKey: item.labelKey }))))))));\n }\n subscribeToProductInfoChanges() {\n this.subscriptions.add(this.productInfoContextService.onProductInfoChanged((productInfo) => this.productInfo = productInfo));\n }\n subscribeToRepositoryChange() {\n this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(() => {\n if (this.isFirstRepositoryChange) {\n this.isFirstRepositoryChange = false;\n return;\n }\n this.init(this.menuItems);\n }));\n }\n get hostElement() { return getElement(this); }\n static get watchers() { return {\n \"navbarCollapsed\": [\"navbarCollapsedChange\"],\n \"menuItems\": [\"menuItemsChanged\"]\n }; }\n};\nOntoNavbar.style = ontoNavbarCss;\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{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: '341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9' });\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 { OntoFooter as onto_footer, OntoHeader as onto_header, OntoLoader as onto_loader, OntoNavbar as onto_navbar, OntoTooltip as onto_tooltip };\n","const INTERACTIVE_ELEMENTS_SELECTOR = 'button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nclass HtmlUtil {\n /**\n * Setter for the document body overflow property.\n *\n * @param newOverflow - the new overflow value.\n *\n * @return the old overflow value.\n */\n static setDocumentBodyOverflow(newOverflow) {\n const oldOverflow = document.body.style.overflow;\n document.body.style.overflow = newOverflow;\n return oldOverflow;\n }\n /**\n * Hides the document body overflow.\n *\n * @return the value of overflow before set it to hidden.\n */\n static hideDocumentBodyOverflow() {\n return HtmlUtil.setDocumentBodyOverflow('hidden');\n }\n /**\n * Focuses the next element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusNextElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = Array.from(parentElement.querySelectorAll(activeElementSelector));\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const nextIndex = (currentIndex + 1) % focusableElements.length;\n const nextActiveElement = focusableElements[nextIndex];\n if (nextActiveElement) {\n nextActiveElement.focus();\n }\n }\n }\n /**\n * Focuses the previous element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusPreviousElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = Array.from(parentElement.querySelectorAll(activeElementSelector));\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const previousIndex = (currentIndex - 1 + focusableElements.length) % focusableElements.length;\n const previousActiveElement = focusableElements[previousIndex];\n if (previousActiveElement) {\n previousActiveElement.focus();\n }\n }\n }\n static preventLeavingDialog(hostElement, ev) {\n if (ev.key === 'Tab') {\n ev.preventDefault();\n if (ev.shiftKey) {\n HtmlUtil.focusPreviousElement(hostElement);\n }\n else {\n HtmlUtil.focusNextElement(hostElement);\n }\n }\n }\n /**\n * Focuses an element in the document based on the provided CSS selector.\n *\n * @param selector - A CSS selector string used to identify the element to focus.\n * This should be a valid CSS selector that uniquely identifies the target element.\n */\n static focusElement(selector) {\n const element = document.querySelector(selector);\n element === null || element === void 0 ? void 0 : element.focus();\n }\n /**\n * Scrolls an element into the visible area of its scrollable container.\n *\n * @param elementSelector - A CSS selector string used to identify the element to scroll into view.\n * This should be a valid CSS selector that uniquely identifies the target element.\n * @param options the scroll into view options.\n */\n static scrollElementIntoView(elementSelector, options = { block: 'nearest' }) {\n const element = document.querySelector(elementSelector);\n if (!element) {\n return;\n }\n element.scrollIntoView(options);\n }\n /**\n * Waits for an element to appear in the DOM by observing DOM mutations.\n * This function creates a MutationObserver that watches for changes in the document body\n * and resolves with the element once it becomes available.\n *\n * @param selector - A CSS selector string used to identify the element to wait for.\n * This should be a valid CSS selector that uniquely identifies the target element.\n *\n * @returns A Promise that resolves with the found HTMLElement when it appears in the DOM,\n * or rejects if an error occurs during the observation process.\n */\n static waitForElement(selector) {\n return new Promise((resolve, reject) => {\n const observer = new MutationObserver(() => {\n try {\n const element = document.querySelector(selector);\n if (element) {\n observer.disconnect();\n resolve(element);\n }\n }\n catch (error) {\n observer.disconnect();\n reject(error);\n }\n });\n observer.observe(document.body, { subtree: true, childList: true, attributes: true });\n });\n }\n}\n\nexport { HtmlUtil as H };\n","/**\n * Model that holds a dropdown item configuration.\n */\nclass DropdownItem {\n constructor() {\n /**\n * Specifies the events that trigger the dropdown item tooltip to appear. Multiple event names should be separated by spaces.\n */\n this._dropdownTooltipTrigger = 'manual';\n }\n get name() {\n return this._name;\n }\n setName(value) {\n this._name = value;\n return this;\n }\n get nameLabelKey() {\n return this._nameLabelKey;\n }\n setNameLabelKey(value) {\n this._nameLabelKey = value;\n return this;\n }\n get tooltip() {\n return this._tooltip;\n }\n setTooltip(value) {\n this._tooltip = value;\n return this;\n }\n get tooltipLabelKey() {\n return this._tooltipLabelKey;\n }\n setTooltipLabelKey(value) {\n this._tooltipLabelKey = value;\n return this;\n }\n get iconClass() {\n return this._iconClass;\n }\n setIconClass(value) {\n this._iconClass = value;\n return this;\n }\n get value() {\n return this._value;\n }\n setValue(value) {\n this._value = value;\n return this;\n }\n get dropdownTooltipTrigger() {\n return this._dropdownTooltipTrigger;\n }\n setDropdownTooltipTrigger(value) {\n this._dropdownTooltipTrigger = value;\n return this;\n }\n get cssClass() {\n return this._cssClass;\n }\n setCssClass(value) {\n this._cssClass = value;\n return this;\n }\n get guideSelector() {\n return this._guideSelector;\n }\n setGuideSelector(value) {\n this._guideSelector = value;\n return this;\n }\n}\n\nvar ResourceSearchConstants;\n(function (ResourceSearchConstants) {\n ResourceSearchConstants[\"SUGGESTION_SELECTED_EVENT\"] = \"suggestion-selected-event\";\n ResourceSearchConstants[\"TABLE_VIEW\"] = \"table\";\n ResourceSearchConstants[\"VISUAL_VIEW\"] = \"visual\";\n ResourceSearchConstants[\"RDF_SEARCH_ICON_CLICKED\"] = \"rdfSearchIconClicked\";\n})(ResourceSearchConstants || (ResourceSearchConstants = {}));\n\nexport { DropdownItem as D, ResourceSearchConstants as R };\n"],"names":["OntoFooter","constructor","hostRef","registerInstance","this","subscriptions","SubscriptionList","currentYear","Date","getFullYear","productInfoContextService","service","ProductInfoContextService","securityContextService","SecurityContextService","licenseContextService","LicenseContextService","trackingService","TrackingService","handleConsentGiven","acceptCookiePolicy","then","shouldShowCookieConsent","render","_a","_b","_c","_d","h","Host","key","class","href","target","rel","productInfo","productVersion","sesame","connectors","workbench","labelKey","connectedCallback","subscribeToProductInfoChange","subscribeToUserChange","subscribeToLicenseChange","subscribeToUserLoginStatusChange","disconnectedCallback","unsubscribeAll","add","onProductInfoChanged","onAuthenticatedUserChanged","setCookieConsentVisibility","onUserLoginStatusChanged","isTrackingAllowed","isLoggedIn","getIsLoggedIn","isFreeAccessEnabled","getSecurityConfig","cookieConsent","getCookieConsent","policyAccepted","onLicenseChanged","style","SelectorItemButton","repository","type","id","location","labelKeys$1","OntoHeader","UPDATE_ACTIVE_OPERATION_TIME_INTERVAL","fibonacciGenerator","FibonacciGenerator","monitoringService","ServiceProvider","get","MonitoringService","repositoryContextService","RepositoryContextService","repositoryLocationContextService","RepositoryLocationContextService","repositoryService","RepositoryService","toastrService","OntoToastrService","namespacesService","NamespacesService","namespaceContextService","NamespacesContextService","languageService","LanguageService","authService","AuthenticationService","authorizationService","AuthorizationService","eventService","EventService","configurationContextService","ConfigurationContextService","runtimeConfigurationContextService","RuntimeConfigurationContextService","logger","LoggerProvider","shouldShowSearch","isHomePage","showUserMenu","showLoginButton","isActiveLocationLoading","repositoryItems","skipUpdateActiveOperationsTimes","labels","TranslationService","translate","canWriteRepo","repo","canWriteRepoInLocation","repositorySizeInfoFetcher","getRepositorySizeInfo","showViewResourceMessage","event","stopPropagation","info","HtmlUtil","focusElement","emit","NAME","ResourceSearchConstants","RDF_SEARCH_ICON_CLICKED","stopOperationPolling","currentRepository","getSelectedRepository","setupTotalRepositoryFormater","setupExpansionRatioFormater","subscribeToEvents","currentRoute","getCurrentRoute","startOperationPolling","onTranslate","onClick","navigateTo","src","applicationLogoPath","alt","display","activeOperations","allRunningOperations","getItems","length","license","valid","items","totalTripletsFormatter","expansionRatioFormatter","user","securityConfig","subscribeToSecurityContextChange","subscribeToRepositoryListChanged","subscribeToRepositoryChange","subscribeToActiveRepositoryLocationChange","subscribeToActiveRepoLoadingChange","subscribeToNavigationEnd","subscribeToLanguageChanged","subscribeToAuthenticatedUserChange","subscribeToThemeModeChange","onThemeModeChanged","themeMode","getApplicationLogoPath","onRepositoryListChanged","repositories","initOnRepositoryListChanged","resetOnMissingRepositories","onSelectedRepositoryChanged","repositoryReference","findRepository","shouldShowRdfSearch","loadNamespaces","updateRepositoryItems","onSecurityConfigChanged","config","setTimeout","updateVisibility","onActiveLocationChanged","onIsLoadingChanged","isLoading","subscribe","EventName","NAVIGATION_END","LanguageContextService","onSelectedLanguageChanged","language","translation","repositoryList","RepositoryList","undefined","getRepositoriesDropdownItems","sortByLocationAndId","filterByRepository","filter","canReadRepo","canReadGqlRepo","map","DropdownItem","setName","setValue","setGuideSelector","_repository","getNamespaces","namespaces","updateNamespaces","isSecurityEnabled","enabled","isAuthenticated","freeAccess","clearInterval","pollingInterval","WindowService","getWindow","setInterval","getOperations","operations","ObjectUtil","deepEqual","reset","catch","error","next","getPathName","getDefaultLanguage","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","OntoLoader","size","messageText","rawSvg","atob","split","innerHTML","NavbarToggledEvent","isOpened","payload","NavbarModel","_items","hasParent","parentLabel","some","parentItem","label","getModel","cloneItem","item","clonedChildren","children","NavbarItemModel","Object","assign","addItem","push","getSelectedRootItem","find","selected","isParentOpened","getParentItem","open","getTopLevelItem","parent","i","deselectAll","walk","closeAll","setOpen","deselectItem","selectItem","parentModel","hasSelectedSubmenu","child","hasSelection","closeOpened","opened","openItemAndParent","closeOtherParents","currentItem","highlightSelected","selectedItem","getSelectedItem","unhighlightSelected","selectedRootItem","findSelected","expandSelected","initSelected","selectedMenu","path","includes","getWildcardPath","separatorIndex","search","substring","pathParts","hrefParts","resultParts","join","sorted","forEach","sort","compare","a","b","order","callback","walkRecursively","data","_selected","_open","_order","_label","_labelKey","_href","_children","_hasParent","_parent","_documentationHref","documentationHref","_hrefFun","hrefFun","_editions","editions","_icon","icon","_role","role","_guideSelector","guideSelector","_testSelector","testSelector","_shouldShow","shouldShow","_parentModel","addChild","setParent","addChildren","hasSubmenus","value","NavbarService","navbarPlugins","currentRepositoryId","repositoryIdParamName","navbarModel","setTopLevelMenuItems","setSubmenuItems","addRepositoryIdToHrefAttributes","childItem","menuPlugin","warn","toMenuItemModel","topLevelItem","externalLink","UriUtil","resolveDocumentationUrl","shortVersion","itemModel","childrenModels","childrenItem","labelKeys","OntoNavbar","navbarToggled","createEvent","resizeHandler","adjustAllSubmenus","hostElement","SUBMENU_VERTICAL_MARGIN","MIN_SUBMENU_HEIGHT","isCollapsedByUser","isFirstRepositoryChange","isCollapsed","navbarCollapsedChange","collapsed","expandNavbar","collapseNavbar","menuItemsChanged","menuItems","init","selectedRepository","internalModel","REPOSITORY_ID_PARAM","menuModel","select","menuItem","preventDefault","clearAllOpenedSubmenuStyles","ctrlKey","openInNewTab","navigate","refreshNavbar","selectItemByUrl","toggleNavbar","querySelector","classList","remove","onLanguageChanged","toggleNavbarHandler","adjustSubmenuMaxHeight","sub","margin","getBoundingClientRect","parentElement","closest","subRect","parentRect","viewportHeight","window","innerHeight","spaceAbove","top","height","spaceBelow","bottom","maxHeight","shouldAlignBottom","Math","max","overflowY","host","requestAnimationFrame","querySelectorAll","getAllOpenedSubmenus","s","Array","from","getAllSubmenus","componentWillLoad","subscribeToProductInfoChanges","addEventListener","removeEventListener","handleSelectMenuItem","title","Fragment","submenu","getElement","watchers","OntoTooltip","clearTooltipsForRemovedElements","records","record","node","removedNodes","removeTooltipFromNode","HTMLElement","TooltipUtil","getTooltipInstance","destroyTooltip","childNodes","onMouseover","getTooltipTarget","handleTooltipTargetShow","tooltip","getTooltip","handleTooltipShow","tooltipTarget","getOrCreateTooltipInstance","show","onMouseout","handleTooltipTargetHide","relatedTarget","handleTooltipHide","contains","handleRemovedNodes","observer","disconnect","MutationObserver","observe","document","body","childList","subtree","INTERACTIVE_ELEMENTS_SELECTOR","setDocumentBodyOverflow","newOverflow","oldOverflow","overflow","hideDocumentBodyOverflow","focusNextElement","activeElementSelector","focusableElements","currentIndex","indexOf","activeElement","nextActiveElement","focus","focusPreviousElement","previousActiveElement","preventLeavingDialog","ev","shiftKey","selector","element","scrollElementIntoView","elementSelector","options","block","scrollIntoView","waitForElement","Promise","resolve","reject","attributes","_dropdownTooltipTrigger","name","_name","nameLabelKey","_nameLabelKey","setNameLabelKey","_tooltip","setTooltip","tooltipLabelKey","_tooltipLabelKey","setTooltipLabelKey","iconClass","_iconClass","setIconClass","_value","dropdownTooltipTrigger","setDropdownTooltipTrigger","cssClass","_cssClass","setCssClass"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_esm_id__=78681;export const __webpack_esm_ids__=[78681];export const __webpack_esm_modules__={44123(e,t,n){var o;n.d(t,{O:()=>o}),function(e){e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e.AUTO="auto"}(o||(o={}))},78681(e,t,n){n.r(t),n.d(t,{onto_dialog:()=>r,onto_toggle_switch:()=>g});var o=n(55508),s=n(81491),a=n(79939),i=n(44123);n(57154);const r=class{constructor(e){(0,o.r)(this,e),this.handleClose=e=>{this.config.onClose(e)}}componentDidLoad(){this.documentOverflow=s.H.hideDocumentBodyOverflow(),this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.closeButton.focus()}disconnectedCallback(){this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this)),s.H.setDocumentBodyOverflow(this.documentOverflow)}render(){return(0,o.h)(o.a,{key:"eeffeaac1aa5b80b89d0d176d89dc44291fd0cbb",tabindex:"-1"},(0,o.h)("div",{key:"2ba8415fa038ad2666cc0b340a3ceba6f0919bc6",class:`dialog-overlay ${this.config.modalClass?this.config.modalClass:""}`},(0,o.h)("dialog",{key:"39b9fc94944e12e8dcae98a65e74593dc173b336",class:"dialog"},(0,o.h)("header",{key:"183327aad084ff6fd619d204a537871cace84684",class:"dialog-header"},(0,o.h)("h3",{key:"ae4c514e0f75e46d5787d284154392de808100ca",class:"dialog-title"},this.config.dialogTitle)),(0,o.h)("main",{key:"dc991f0ef3baa22f42f683528a4ca67ab8d5e7f4",class:"dialog-body"},(0,o.h)("slot",{key:"ddc1c5176d976f5a518fed1d2faa138d0bc5082a",name:"body"})),(0,o.h)("footer",{key:"b3cb9449b54583a7b5489b7d56fa084e456b4d75",class:"dialog-footer"},(0,o.h)("slot",{key:"b3bc85bdfe12da62019be2e542737e5b6f7db4f6",name:"footer"}),(0,o.h)("button",{key:"8b4ae467782cf8ba05f06a11850c5681a056b50a",class:"onto-btn onto-btn-primary close-btn",onClick:this.handleClose,ref:e=>this.closeButton=e},(0,o.h)("translate-label",{key:"7cba2bef0bdd569c25ec0df321345ec1cc2d9f74",labelKey:"common.button.close"}))))))}preventLeavingDialog(e){s.H.preventLeavingDialog(this.hostElement,e)}get hostElement(){return(0,o.g)(this)}};r.style=".dialog-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:9998;margin-left:-10px;background-color:rgba(0, 0, 0, 0.5);font-family:var(--main-font), sans-serif;font-weight:var(--main-font-weight);color:var(--gw-secondary-base, var(--base-text-color))}.dialog{z-index:1001;max-width:60vw;max-height:90vh;font-family:inherit;font-weight:inherit;display:flex;flex-direction:column;position:relative;justify-content:space-between;border:none;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);box-shadow:0 5px 15px rgba(0, 0, 0, 0.5)}.dialog .dialog-header{display:flex;justify-content:space-between;padding:15px;font-size:20px}.dialog .dialog-header .dialog-title{margin:0.5rem 0;font-weight:400}.dialog .dialog-body{padding:0 15px 15px;overflow:auto}.dialog .dialog-footer{display:flex;justify-content:flex-end;padding:15px}";class l{static deepEqual(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if("object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!l.deepEqual(e[n],t[n]))return!1;return!0}if(!Array.isArray(e)&&!Array.isArray(t)){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const o of n)if(!(o in t)||!l.deepEqual(e[o],t[o]))return!1;return!0}return!1}return!1}static deepCopy(e){if("object"!=typeof e||null==e||"function"==typeof e)return e;if(l.hasCopyMethod(e))return e.copy();const t=l.copyBuiltInType(e);return null!==t?t:l.copyPlainObject(e)}static copyBuiltInType(e){return Array.isArray(e)?e.map(e=>l.deepCopy(e)):e instanceof Date?new Date(e.getTime()):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Map?new Map(Array.from(e.entries()).map(([e,t])=>[l.deepCopy(e),l.deepCopy(t)])):e instanceof Set?new Set(Array.from(e.values()).map(e=>l.deepCopy(e))):null}static copyPlainObject(e){const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=l.deepCopy(e[n]);return t}static hasCopyMethod(e){return"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"copy")&&"function"==typeof e.copy}}l.isNullOrUndefined=e=>null==e;class c{copy(){return l.deepCopy(this)}}class d extends c{constructor(e=[]){super(),this.items=e}size(){return this.items.length}getItems(){return this.items}getFirstItem(){return this.items[0]}sort(e){this.items.sort(e)}filter(e){return this.items.filter(e)}find(e){return this.items.find(e)}isEmpty(){return 0===this.items.length}addToStart(e){this.items.unshift(e)}addItems(e){this.items.push(...e)}remove(e){const t=this.items.indexOf(e);-1!==t&&this.items.splice(t,1)}}class h extends d{constructor(e){super(e)}add(e){this.items.push(e)}addAll(e){this.items.push(...e)}unsubscribeAll(){this.items.forEach(e=>e()),this.items=[]}}const g=class{constructor(e){(0,o.r)(this,e),this.toggleChanged=(0,o.c)(this,"toggleChanged"),this.subscriptions=new h,this.checked=!1,this.toggle=()=>{this.checked=!this.checked,this.toggleChanged.emit({checked:this.checked,context:this.context})}}subscribeToLanguageChange(){this.tooltipTranslationKey&&this.subscriptions.add(a.T.onTranslate(this.tooltipTranslationKey,[],e=>{this.tooltipLabel=e}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}connectedCallback(){this.subscribeToLanguageChange()}render(){return(0,o.h)("section",{key:"3afb9d800ec06e6cac57d65eab4059bc7db42535"},this.labelKey&&(0,o.h)("label",{key:"90ae5f881975462da986f65fdce7b0548d9afa2d"},(0,o.h)("strong",{key:"ce8ca2e649681a874585835b35554dd9920f0aef"},(0,o.h)("translate-label",{key:"601a0371d31081ce5a84b824ddb43536c3e87405",labelKey:this.labelKey})," ")),(0,o.h)("button",{key:"90ea147e6e350461cdd74ccacf2dfe86cf875925",class:"toggle-switch",onClick:this.toggle,"tooltip-append-to":"parent","tooltip-content":this.tooltipLabel,"tooltip-placement":i.O.TOP},(0,o.h)("input",{key:"e7ae6a6c71a0fe9decebb559ed601998b6ee8bac",type:"checkbox",checked:this.checked}),(0,o.h)("label",{key:"02d328613d9e7c675e6531a1777ae7cf9a2d16b1"})))}};g.style='.toggle-switch{all:unset;clear:both;margin:0 5px;width:36px}.toggle-switch:focus{outline:none;box-shadow:none}.toggle-switch:focus-visible{outline:none;box-shadow:none}.toggle-switch input:empty{display:none}.toggle-switch input:empty~label{position:relative;cursor:pointer;user-select:none;margin:0.05em 0.6em -0.05em 0;vertical-align:text-bottom}.toggle-switch input:empty~label:before{display:block;content:" ";width:2.2em;height:1.25em;background-color:var(--gw-toggleswitch-background);border-radius:10em;transition:all 100ms ease-in}.toggle-switch input:empty~label:after{position:absolute;display:block;top:0.08em;left:0.1em;content:" ";width:0.9em;height:0.9em;background-color:var(--gw-toggleswitch-handle-background);border:1px solid var(--gw-toggleswitch-background);border-radius:50%;transition:all 100ms ease-in}.toggle-switch input:checked~label:before{background-color:var(--gw-toggleswitch-checked-background)}.toggle-switch input:checked~label:after{left:1em;background-color:var(--gw-toggleswitch-handle-checked-background);border:1px solid var(--gw-toggleswitch-checked-background)}'},79939(e,t,n){n.d(t,{L:()=>a,T:()=>r,s:()=>s});var o=n(57154);function s(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}class a{static get logger(){return o.Loggers.getLoggerInstance("SharedComponents")}}class i{constructor(){this.languageContextService=o.ServiceProvider.get(o.LanguageContextService),this.translationChangedObservers={},this.logger=a.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],n=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const o={parameters:t,callback:n};return this.translationChangedObservers[e].push(o),n(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(o);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let n=this.translateFromBundle(this.currentBundle,e);return n||(n=this.translateFromBundle(this.defaultBundle,e)),n?(n=this.applyParameters(n,t),s(n)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let n=e[t];return"string"!=typeof n&&(n=this.translateAsJsonObject(e,t)),n}translateAsJsonObject(e,t){let n=t.split(".");return this.getTranslation(e,n)}getTranslation(e,t){if(!t||!e)return;const n=e[t.splice(0,1)[0]];return 0===t.length?n:"string"!=typeof n?t.length>0?this.getTranslation(n,t):n:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>i.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 r=new i},81491(e,t,n){n.d(t,{H:()=>s});const o='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class s{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return s.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=o){const n=Array.from(e.querySelectorAll(t));if(n.length>0){const e=n.indexOf(document.activeElement),t=n[(e+1)%n.length];t&&t.focus()}}static focusPreviousElement(e,t=o){const n=Array.from(e.querySelectorAll(t));if(n.length>0){const e=n.indexOf(document.activeElement),t=n[(e-1+n.length)%n.length];t&&t.focus()}}static preventLeavingDialog(e,t){"Tab"===t.key&&(t.preventDefault(),t.shiftKey?s.focusPreviousElement(e):s.focusNextElement(e))}static focusElement(e){const t=document.querySelector(e);null==t||t.focus()}static scrollElementIntoView(e,t={block:"nearest"}){const n=document.querySelector(e);n&&n.scrollIntoView(t)}static waitForElement(e){return new Promise((t,n)=>{const o=new MutationObserver(()=>{try{const n=document.querySelector(e);n&&(o.disconnect(),t(n))}catch(e){o.disconnect(),n(e)}});o.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}}};
|
|
2
|
-
//# sourceMappingURL=78681.
|
|
1
|
+
export const __webpack_esm_id__=78681;export const __webpack_esm_ids__=[78681];export const __webpack_esm_modules__={44123(e,t,n){var o;n.d(t,{O:()=>o}),function(e){e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e.AUTO="auto"}(o||(o={}))},78681(e,t,n){n.r(t),n.d(t,{onto_dialog:()=>r,onto_toggle_switch:()=>g});var o=n(76133),s=n(81491),a=n(79939),i=n(44123);n(57154);const r=class{constructor(e){(0,o.r)(this,e),this.handleClose=e=>{this.config.onClose(e)}}componentDidLoad(){this.documentOverflow=s.H.hideDocumentBodyOverflow(),this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.closeButton.focus()}disconnectedCallback(){this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this)),s.H.setDocumentBodyOverflow(this.documentOverflow)}render(){return(0,o.h)(o.a,{key:"eeffeaac1aa5b80b89d0d176d89dc44291fd0cbb",tabindex:"-1"},(0,o.h)("div",{key:"2ba8415fa038ad2666cc0b340a3ceba6f0919bc6",class:`dialog-overlay ${this.config.modalClass?this.config.modalClass:""}`},(0,o.h)("dialog",{key:"39b9fc94944e12e8dcae98a65e74593dc173b336",class:"dialog"},(0,o.h)("header",{key:"183327aad084ff6fd619d204a537871cace84684",class:"dialog-header"},(0,o.h)("h3",{key:"ae4c514e0f75e46d5787d284154392de808100ca",class:"dialog-title"},this.config.dialogTitle)),(0,o.h)("main",{key:"dc991f0ef3baa22f42f683528a4ca67ab8d5e7f4",class:"dialog-body"},(0,o.h)("slot",{key:"ddc1c5176d976f5a518fed1d2faa138d0bc5082a",name:"body"})),(0,o.h)("footer",{key:"b3cb9449b54583a7b5489b7d56fa084e456b4d75",class:"dialog-footer"},(0,o.h)("slot",{key:"b3bc85bdfe12da62019be2e542737e5b6f7db4f6",name:"footer"}),(0,o.h)("button",{key:"8b4ae467782cf8ba05f06a11850c5681a056b50a",class:"onto-btn onto-btn-primary close-btn",onClick:this.handleClose,ref:e=>this.closeButton=e},(0,o.h)("translate-label",{key:"7cba2bef0bdd569c25ec0df321345ec1cc2d9f74",labelKey:"common.button.close"}))))))}preventLeavingDialog(e){s.H.preventLeavingDialog(this.hostElement,e)}get hostElement(){return(0,o.c)(this)}};r.style=".dialog-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:9998;margin-left:-10px;background-color:rgba(0, 0, 0, 0.5);font-family:var(--main-font), sans-serif;font-weight:var(--main-font-weight);color:var(--gw-secondary-base, var(--base-text-color))}.dialog{z-index:1001;max-width:60vw;max-height:90vh;font-family:inherit;font-weight:inherit;display:flex;flex-direction:column;position:relative;justify-content:space-between;border:none;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);box-shadow:0 5px 15px rgba(0, 0, 0, 0.5)}.dialog .dialog-header{display:flex;justify-content:space-between;padding:15px;font-size:20px}.dialog .dialog-header .dialog-title{margin:0.5rem 0;font-weight:400}.dialog .dialog-body{padding:0 15px 15px;overflow:auto}.dialog .dialog-footer{display:flex;justify-content:flex-end;padding:15px}";class l{static deepEqual(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if("object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!l.deepEqual(e[n],t[n]))return!1;return!0}if(!Array.isArray(e)&&!Array.isArray(t)){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const o of n)if(!(o in t)||!l.deepEqual(e[o],t[o]))return!1;return!0}return!1}return!1}static deepCopy(e){if("object"!=typeof e||null==e||"function"==typeof e)return e;if(l.hasCopyMethod(e))return e.copy();const t=l.copyBuiltInType(e);return null!==t?t:l.copyPlainObject(e)}static copyBuiltInType(e){return Array.isArray(e)?e.map(e=>l.deepCopy(e)):e instanceof Date?new Date(e.getTime()):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Map?new Map(Array.from(e.entries()).map(([e,t])=>[l.deepCopy(e),l.deepCopy(t)])):e instanceof Set?new Set(Array.from(e.values()).map(e=>l.deepCopy(e))):null}static copyPlainObject(e){const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=l.deepCopy(e[n]);return t}static hasCopyMethod(e){return"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"copy")&&"function"==typeof e.copy}}l.isNullOrUndefined=e=>null==e;class c{copy(){return l.deepCopy(this)}}class d extends c{constructor(e=[]){super(),this.items=e}size(){return this.items.length}getItems(){return this.items}getFirstItem(){return this.items[0]}sort(e){this.items.sort(e)}filter(e){return this.items.filter(e)}find(e){return this.items.find(e)}isEmpty(){return 0===this.items.length}addToStart(e){this.items.unshift(e)}addItems(e){this.items.push(...e)}remove(e){const t=this.items.indexOf(e);-1!==t&&this.items.splice(t,1)}}class h extends d{constructor(e){super(e)}add(e){this.items.push(e)}addAll(e){this.items.push(...e)}unsubscribeAll(){this.items.forEach(e=>e()),this.items=[]}}const g=class{constructor(e){(0,o.r)(this,e),this.toggleChanged=(0,o.d)(this,"toggleChanged"),this.subscriptions=new h,this.checked=!1,this.toggle=()=>{this.checked=!this.checked,this.toggleChanged.emit({checked:this.checked,context:this.context})}}subscribeToLanguageChange(){this.tooltipTranslationKey&&this.subscriptions.add(a.T.onTranslate(this.tooltipTranslationKey,[],e=>{this.tooltipLabel=e}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}connectedCallback(){this.subscribeToLanguageChange()}render(){return(0,o.h)("section",{key:"3afb9d800ec06e6cac57d65eab4059bc7db42535"},this.labelKey&&(0,o.h)("label",{key:"90ae5f881975462da986f65fdce7b0548d9afa2d"},(0,o.h)("strong",{key:"ce8ca2e649681a874585835b35554dd9920f0aef"},(0,o.h)("translate-label",{key:"601a0371d31081ce5a84b824ddb43536c3e87405",labelKey:this.labelKey})," ")),(0,o.h)("button",{key:"90ea147e6e350461cdd74ccacf2dfe86cf875925",class:"toggle-switch",onClick:this.toggle,"tooltip-append-to":"parent","tooltip-content":this.tooltipLabel,"tooltip-placement":i.O.TOP},(0,o.h)("input",{key:"e7ae6a6c71a0fe9decebb559ed601998b6ee8bac",type:"checkbox",checked:this.checked}),(0,o.h)("label",{key:"02d328613d9e7c675e6531a1777ae7cf9a2d16b1"})))}};g.style='.toggle-switch{all:unset;clear:both;margin:0 5px;width:36px}.toggle-switch:focus{outline:none;box-shadow:none}.toggle-switch:focus-visible{outline:none;box-shadow:none}.toggle-switch input:empty{display:none}.toggle-switch input:empty~label{position:relative;cursor:pointer;user-select:none;margin:0.05em 0.6em -0.05em 0;vertical-align:text-bottom}.toggle-switch input:empty~label:before{display:block;content:" ";width:2.2em;height:1.25em;background-color:var(--gw-toggleswitch-background);border-radius:10em;transition:all 100ms ease-in}.toggle-switch input:empty~label:after{position:absolute;display:block;top:0.08em;left:0.1em;content:" ";width:0.9em;height:0.9em;background-color:var(--gw-toggleswitch-handle-background);border:1px solid var(--gw-toggleswitch-background);border-radius:50%;transition:all 100ms ease-in}.toggle-switch input:checked~label:before{background-color:var(--gw-toggleswitch-checked-background)}.toggle-switch input:checked~label:after{left:1em;background-color:var(--gw-toggleswitch-handle-checked-background);border:1px solid var(--gw-toggleswitch-checked-background)}'},79939(e,t,n){n.d(t,{L:()=>a,T:()=>r,s:()=>s});var o=n(57154);function s(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}class a{static get logger(){return o.Loggers.getLoggerInstance("SharedComponents")}}class i{constructor(){this.languageContextService=o.ServiceProvider.get(o.LanguageContextService),this.translationChangedObservers={},this.logger=a.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],n=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const o={parameters:t,callback:n};return this.translationChangedObservers[e].push(o),n(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(o);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let n=this.translateFromBundle(this.currentBundle,e);return n||(n=this.translateFromBundle(this.defaultBundle,e)),n?(n=this.applyParameters(n,t),s(n)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let n=e[t];return"string"!=typeof n&&(n=this.translateAsJsonObject(e,t)),n}translateAsJsonObject(e,t){let n=t.split(".");return this.getTranslation(e,n)}getTranslation(e,t){if(!t||!e)return;const n=e[t.splice(0,1)[0]];return 0===t.length?n:"string"!=typeof n?t.length>0?this.getTranslation(n,t):n:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>i.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 r=new i},81491(e,t,n){n.d(t,{H:()=>s});const o='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class s{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return s.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=o){const n=Array.from(e.querySelectorAll(t));if(n.length>0){const e=n.indexOf(document.activeElement),t=n[(e+1)%n.length];t&&t.focus()}}static focusPreviousElement(e,t=o){const n=Array.from(e.querySelectorAll(t));if(n.length>0){const e=n.indexOf(document.activeElement),t=n[(e-1+n.length)%n.length];t&&t.focus()}}static preventLeavingDialog(e,t){"Tab"===t.key&&(t.preventDefault(),t.shiftKey?s.focusPreviousElement(e):s.focusNextElement(e))}static focusElement(e){const t=document.querySelector(e);null==t||t.focus()}static scrollElementIntoView(e,t={block:"nearest"}){const n=document.querySelector(e);n&&n.scrollIntoView(t)}static waitForElement(e){return new Promise((t,n)=>{const o=new MutationObserver(()=>{try{const n=document.querySelector(e);n&&(o.disconnect(),t(n))}catch(e){o.disconnect(),n(e)}});o.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}}};
|
|
2
|
+
//# sourceMappingURL=78681.6c8614aad7e5465be505.bundle.js.map
|