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 +1 @@
|
|
|
1
|
-
import{h}from"@stencil/core";import{AuthenticationService,navigateTo,service}from"../../../../../api/dist/ontotext-workbench-api";export class OntoUserMenu{constructor(){this.authenticationService=service(AuthenticationService),this.logout=()=>{this.authenticationService.logout()},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return h("section",{key:"12259fc1a98c0194a5bdd9846ff2e78715d4704c",class:"onto-user-menu"},h("div",{key:"b63d9259ebfe7856a1ece71e03cab280225e8757",class:"dropdown-toggle-wrapper",onClick:this.toggleDropdown},h("button",{key:"514abf4b023aecfec9ddf3b02e77368640b7d554",class:this.isOpen?"open":""},h("i",{key:"aefc12e677d20783f339d4c88afed959dc8435a4",class:"ri-user-line ri-lg"}),h("span",{key:"2cf215fc53e15b526a43c78026e4b9cfa499730e",class:"username"},this.user.username),h("i",{key:"4e514af450f4eb9817e024f993033c3094e17cfd",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen?h("section",{class:"onto-user-menu-dropdown"},h("translate-label",{onClick:navigateTo("settings"),labelKey:"user_menu.my_settings"}),this.authenticationService.isExternalUser()?"":h("translate-label",{onClick:this.logout,labelKey:"user_menu.logout"})):""))}static get is(){return"onto-user-menu"}static get originalStyleUrls(){return{$:["onto-user-menu.scss"]}}static get styleUrls(){return{$:["onto-user-menu.css"]}}static get properties(){return{user:{type:"unknown",mutable:!1,complexType:{original:"AuthenticatedUser",resolved:"AuthenticatedUser",references:{AuthenticatedUser:{location:"import",path:"@ontotext/workbench-api",id:"../api/dist/ontotext-workbench-api.d.ts::AuthenticatedUser"
|
|
1
|
+
import{h}from"@stencil/core";import{AuthenticationService,navigateTo,service}from"../../../../../api/dist/ontotext-workbench-api";export class OntoUserMenu{constructor(){this.authenticationService=service(AuthenticationService),this.logout=()=>{this.authenticationService.logout()},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return h("section",{key:"12259fc1a98c0194a5bdd9846ff2e78715d4704c",class:"onto-user-menu"},h("div",{key:"b63d9259ebfe7856a1ece71e03cab280225e8757",class:"dropdown-toggle-wrapper",onClick:this.toggleDropdown},h("button",{key:"514abf4b023aecfec9ddf3b02e77368640b7d554",class:this.isOpen?"open":""},h("i",{key:"aefc12e677d20783f339d4c88afed959dc8435a4",class:"ri-user-line ri-lg"}),h("span",{key:"2cf215fc53e15b526a43c78026e4b9cfa499730e",class:"username"},this.user.username),h("i",{key:"4e514af450f4eb9817e024f993033c3094e17cfd",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen?h("section",{class:"onto-user-menu-dropdown"},h("translate-label",{onClick:navigateTo("settings"),labelKey:"user_menu.my_settings"}),this.authenticationService.isExternalUser()?"":h("translate-label",{onClick:this.logout,labelKey:"user_menu.logout"})):""))}static get is(){return"onto-user-menu"}static get originalStyleUrls(){return{$:["onto-user-menu.scss"]}}static get styleUrls(){return{$:["onto-user-menu.css"]}}static get properties(){return{user:{type:"unknown",attribute:"user",mutable:!1,complexType:{original:"AuthenticatedUser",resolved:"AuthenticatedUser",references:{AuthenticatedUser:{location:"import",path:"@ontotext/workbench-api",id:"../api/dist/ontotext-workbench-api.d.ts::AuthenticatedUser"}}},required:!1,optional:!1,docs:{tags:[],text:"Currently authenticated user"},getter:!1,setter:!1},securityConfig:{type:"unknown",attribute:"security-config",mutable:!1,complexType:{original:"SecurityConfig",resolved:"SecurityConfig",references:{SecurityConfig:{location:"import",path:"@ontotext/workbench-api",id:"../api/dist/ontotext-workbench-api.d.ts::SecurityConfig"}}},required:!1,optional:!1,docs:{tags:[],text:"Current security config"},getter:!1,setter:!1}}}static get states(){return{isOpen:{}}}static get elementRef(){return"hostElement"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Host,h}from"@stencil/core";import{TranslationService}from"../../services/translation.service";export class TranslateLabel{constructor(){this.unsubscribeTranslationChanged=null,this.translationParameters=[]}connectedCallback(){this.unsubscribeTranslationChanged=TranslationService.onTranslate(this.labelKey,this.translationParameters,
|
|
1
|
+
import{Host,h}from"@stencil/core";import{TranslationService}from"../../services/translation.service";export class TranslateLabel{constructor(){this.unsubscribeTranslationChanged=null,this.translationParameters=[]}connectedCallback(){this.unsubscribeTranslationChanged=TranslationService.onTranslate(this.labelKey,this.translationParameters,t=>this.translatedLabel=t)}disconnectedCallback(){this.unsubscribeTranslationChanged&&(this.unsubscribeTranslationChanged(),this.unsubscribeTranslationChanged=null)}render(){return h(Host,{key:"6f43411609ffbb55a072585c7c1bdd149422b066"},this.translatedLabel)}static get is(){return"translate-label"}static get originalStyleUrls(){return{$:["translate-label.scss"]}}static get styleUrls(){return{$:["translate-label.css"]}}static get properties(){return{labelKey:{type:"string",attribute:"label-key",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Represents a label key."},getter:!1,setter:!1,reflect:!1},translationParameters:{type:"unknown",attribute:"translation-parameters",mutable:!1,complexType:{original:"TranslationParameter[]",resolved:"TranslationParameter[]",references:{TranslationParameter:{location:"import",path:"@ontotext/workbench-api",id:"../api/dist/ontotext-workbench-api.d.ts::TranslationParameter"}}},required:!1,optional:!1,docs:{tags:[],text:"Represents an array of translation parameters."},getter:!1,setter:!1,defaultValue:"[]"}}}static get states(){return{translatedLabel:{}}}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index-EiAqSNMq.js.LICENSE.txt */
|
|
2
|
+
const NAMESPACE="shared-components",BUILD={experimentalSlotFixes:!0,hydratedSelectorName:"hydrated",lazyLoad:!0,slotRelocation:!0,updatable:!0},globalScripts=()=>{},globalStyles="";var __defProp=Object.defineProperty,__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},getHostRef=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},registerInstance=(e,t)=>{e.__stencil__getHostRef=()=>t,t.$lazyInstance$=e},registerHost=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[];const s=n;return e.__stencil__getHostRef=()=>s,s},isMemberInElement=(e,t)=>t in e,consoleError=(e,t)=>(0,console.error)(e,t),cmpModules=new Map,loadModule=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(!o)return;const l=cmpModules.get(o);return l?l[s]:import(`./${o}.entry.js`).then(e=>(cmpModules.set(o,e),e[s]),e=>{consoleError(e,t.$hostElement$)})},styles=new Map,HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win="undefined"!=typeof window?window:{},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},supportsListenerOptions=(()=>{var e;let t=!1;try{null==(e=win.document)||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(e){}return t})(),promiseResolve=e=>Promise.resolve(e),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(e,t)=>n=>{e.push(n),queuePending||(queuePending=!0,t&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){consoleError(e)}e.length=0},flush=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=e=>promiseResolve().then(e),writeTask=queueTask(queueDomWrites,!0),isComplexType=e=>"object"==(e=typeof e)||"function"===e;function queryNonceMetaTagContent(e){var t,n,s;return null!=(s=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}var escapeRegExpSpecialCharacters=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),result_exports={};__export(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap,unwrapErr:()=>unwrapErr});var ok=e=>({isOk:!0,isErr:!1,value:e}),err=e=>({isOk:!1,isErr:!0,value:e});function map(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(e=>ok(e)):ok(n)}if(e.isErr){const t=e.value;return err(t)}throw"should never get here"}var unwrap=e=>{if(e.isOk)return e.value;throw e.value},unwrapErr=e=>{if(e.isErr)return e.value;throw e.value};function createShadowRoot(e){const t=this.attachShadow({mode:"open"});if(supportsConstructableStylesheets){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var updateFallbackSlotVisibility=e=>{const t=internalCall(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&"SLOT-FB"!==e.tagName&&getHostSlotNodes(t,e.tagName).forEach(e=>{1===e.nodeType&&"SLOT-FB"===e.tagName&&(getSlotChildSiblings(e,getSlotName(e),!1).length?e.hidden=!0:e.hidden=!1)});let n=0;for(n=0;n<t.length;n++){const e=t[n];1===e.nodeType&&internalCall(e,"childNodes").length&&updateFallbackSlotVisibility(e)}},getSlottedChildNodes=e=>{const t=[];for(let n=0;n<e.length;n++){const s=e[n]["s-nr"]||void 0;s&&s.isConnected&&t.push(s)}return t};function getHostSlotNodes(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(void 0===n||getSlotName(s)===n)&&(l.push(s),void 0!==n))return l;l=[...l,...getHostSlotNodes(s.childNodes,t,n)]}return l}var getSlotChildSiblings=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)getSlotName(o)!==t||!n&&o["s-sr"]||s.push(o);return s},isNodeLocatedInSlot=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,getSlotName=e=>"string"==typeof e["s-sn"]?e["s-sn"]:1===e.nodeType&&e.getAttribute("slot")||void 0;function patchSlotNode(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[],s=this["s-sn"];(null==e?void 0:e.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:getSlottedChildNodes(o.childNodes)).forEach(e=>{s===getSlotName(e)&&n.push(e)}),t?n.filter(e=>1===e.nodeType):n}.bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function dispatchSlotChangeEvent(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function findSlotFromSlottedNode(e,t){var n;if(!(t=t||(null==(n=e["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=e["s-sn"]=getSlotName(e)||"";return{slotNode:getHostSlotNodes(internalCall(t,"childNodes"),t.tagName,s)[0],slotName:s}}var patchParentNode=e=>{e&&!e.__parentNode&&(patchHostOriginalAccessor("parentNode",e),Object.defineProperty(e,"parentNode",{get:function(){var e;return(null==(e=this["s-ol"])?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}}))},validElementPatches=["children","nextElementSibling","previousElementSibling"],validNodesPatches=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function patchHostOriginalAccessor(e,t){let n;validElementPatches.includes(e)?n=Object.getOwnPropertyDescriptor(Element.prototype,e):validNodesPatches.includes(e)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,e)),n||(n=Object.getOwnPropertyDescriptor(t,e)),n&&Object.defineProperty(t,"__"+e,n)}function internalCall(e,t){if("__"+t in e){const n=e["__"+t];return"function"!=typeof n?n:n.bind(e)}return"function"!=typeof e[t]?e[t]:e[t].bind(e)}var createTime=(e,t="")=>()=>{},uniqueTime=(e,t)=>()=>{},h=(e,t,...n)=>{let s=null,o=null,l=null,r=!1,a=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)s=t[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof e&&!isComplexType(s))&&(s=String(s)),r&&a?i[i.length-1].$text$+=s:i.push(r?newVNode(null,s):s),a=r)};if(c(n),t){t.key&&(o=t.key),t.name&&(l=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,vdomFnUtils);const $=newVNode(e,null);return $.$attrs$=t,i.length>0&&($.$children$=i),$.$key$=o,$.$name$=l,$},newVNode=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=e=>e&&e.$tag$===Host,vdomFnUtils={forEach:(e,t)=>e.map(convertToPublic).forEach(t),map:(e,t)=>e.map(convertToPublic).map(t).map(convertToPrivate)},convertToPublic=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),convertToPrivate=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=newVNode(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},createSupportsRuleRe=e=>{const t=escapeRegExpSpecialCharacters(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};createSupportsRuleRe("::slotted"),createSupportsRuleRe(":host"),createSupportsRuleRe(":host-context");var contentRef,hostTagName,parsePropertyValue=(e,t,n)=>null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?String(e):e,getElement=e=>getHostRef(e).$hostElement$,createEvent=(e,t,n)=>{const s=getElement(e);return{emit:e=>emitEvent(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},emitEvent=(e,t,n)=>{const s=plt.ce(t,n);return e.dispatchEvent(s),s},rootAppliedStyles=new WeakMap,registerStyle=(e,t,n)=>{let s=styles.get(e);supportsConstructableStylesheets&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,styles.set(e,s)},addStyle=(e,t,n)=>{var s;const o=getScopeId(t),l=styles.get(o);if(!win.document)return o;if(e=11===e.nodeType?e:win.document,l)if("string"==typeof l){e=e.head||e;let n,r=rootAppliedStyles.get(e);if(r||rootAppliedStyles.set(e,r=new Set),!r.has(o)){{n=win.document.createElement("style"),n.innerHTML=l;const o=null!=(s=plt.$nonce$)?s:queryNonceMetaTagContent(win.document);if(null!=o&&n.setAttribute("nonce",o),!(1&t.$flags$))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),s=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(n,(null==s?void 0:s.parentNode)===e?s:null)}else if("host"in e)if(supportsConstructableStylesheets){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(n)}else e.append(n);1&t.$flags$&&e.insertBefore(n,null)}4&t.$flags$&&(n.innerHTML+=SLOT_FB_CSS),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o},attachStyles=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,o=createTime("attachStyles",t.$tagName$),l=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&s&&(n["s-sc"]=l,n.classList.add(l+"-h")),o()},getScopeId=(e,t)=>"sc-"+e.$tagName$,setAccessor=(e,t,n,s,o,l,r)=>{if(n===s)return;let a=isMemberInElement(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=parseClassList(n);let l=parseClassList(s);t.remove(...o.filter(e=>e&&!l.includes(e))),t.add(...l.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)n&&s[t]===n[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&s(e);else if(a||"o"!==t[0]||"n"!==t[1]){const r=isComplexType(s);if(a||r&&null!==s)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const o=null==s?"":s;"list"===t?a=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}let c=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(t=i,c=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(XLINK_NS,t):e.removeAttribute(t)):(!a||4&l||o)&&!r&&1===e.nodeType&&(s=!0===s?"":s,c?e.setAttributeNS(XLINK_NS,t,s):e.setAttribute(t,s))}else if(t="-"===t[2]?t.slice(3):isMemberInElement(win,i)?i.slice(2):i[2]+t.slice(3),n||s){const o=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,""),n&&plt.rel(e,t,n,o),s&&plt.ael(e,t,s,o)}},parseClassListRegex=/\s/,parseClassList=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(parseClassListRegex):[]),CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(e,t,n,s)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||{},r=t.$attrs$||{};for(const e of sortedAttrNames(Object.keys(l)))e in r||setAccessor(o,e,l[e],void 0,n,t.$flags$);for(const e of sortedAttrNames(Object.keys(r)))setAccessor(o,e,l[e],r[e],n,t.$flags$)};function sortedAttrNames(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(e,t,n)=>{var s;const o=t.$children$[n];let l,r,a,i=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===o.$tag$&&(o.$flags$|=o.$children$?2:1)),null!==o.$text$)l=o.$elm$=win.document.createTextNode(o.$text$);else if(1&o.$flags$)l=o.$elm$=win.document.createTextNode(""),updateElement(null,o,isSvgMode);else{if(!win.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.$elm$=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&2&o.$flags$?"slot-fb":o.$tag$),updateElement(null,o,isSvgMode),o.$children$)for(i=0;i<o.$children$.length;++i)r=createElm(e,o,i),r&&l.appendChild(r)}return l["s-hn"]=hostTagName,3&o.$flags$&&(l["s-sr"]=!0,l["s-cr"]=contentRef,l["s-sn"]=o.$name$||"",l["s-rf"]=null==(s=o.$attrs$)?void 0:s.ref,patchSlotNode(l),a=e&&e.$children$&&e.$children$[n],a&&a.$tag$===o.$tag$&&e.$elm$&&relocateToHostRoot(e.$elm$)),l},relocateToHostRoot=e=>{plt.$flags$|=1;const t=e.closest(hostTagName.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find(e=>e["s-cr"]),s=Array.from(e.__childNodes||e.childNodes);for(const e of n?s.reverse():s)null!=e["s-sh"]&&(insertBefore(t,e,null!=n?n:null),e["s-sh"]=void 0,checkSlotRelocate=!0)}plt.$flags$&=-2},putBackInOriginalLocation=(e,t)=>{plt.$flags$|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===hostTagName&&n.push(t)}for(let e=n.length-1;e>=0;e--){const s=n[e];s["s-hn"]!==hostTagName&&s["s-ol"]&&(insertBefore(referenceNode(s).parentNode,s,referenceNode(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,checkSlotRelocate=!0),t&&putBackInOriginalLocation(s,t)}plt.$flags$&=-2},addVnodes=(e,t,n,s,o,l)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===hostTagName&&(a=a.shadowRoot);o<=l;++o)s[o]&&(r=createElm(null,n,o),r&&(s[o].$elm$=r,insertBefore(a,r,referenceNode(t))))},removeVnodes=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.$elm$;nullifyVNodeRefs(t),e&&(checkSlotFallbackVisibility=!0,e["s-ol"]?e["s-ol"].remove():putBackInOriginalLocation(e,!0),e.remove())}}},updateChildren=(e,t,n,s,o=!1)=>{let l,r,a=0,i=0,c=0,$=0,d=t.length-1,u=t[0],p=t[d],m=s.length-1,h=s[0],f=s[m];for(;a<=d&&i<=m;)if(null==u)u=t[++a];else if(null==p)p=t[--d];else if(null==h)h=s[++i];else if(null==f)f=s[--m];else if(isSameVnode(u,h,o))patch(u,h,o),u=t[++a],h=s[++i];else if(isSameVnode(p,f,o))patch(p,f,o),p=t[--d],f=s[--m];else if(isSameVnode(u,f,o))"slot"!==u.$tag$&&"slot"!==f.$tag$||putBackInOriginalLocation(u.$elm$.parentNode,!1),patch(u,f,o),insertBefore(e,u.$elm$,p.$elm$.nextSibling),u=t[++a],f=s[--m];else if(isSameVnode(p,h,o))"slot"!==u.$tag$&&"slot"!==f.$tag$||putBackInOriginalLocation(p.$elm$.parentNode,!1),patch(p,h,o),insertBefore(e,p.$elm$,u.$elm$),p=t[--d],h=s[++i];else{for(c=-1,$=a;$<=d;++$)if(t[$]&&null!==t[$].$key$&&t[$].$key$===h.$key$){c=$;break}c>=0?(r=t[c],r.$tag$!==h.$tag$?l=createElm(t&&t[i],n,c):(patch(r,h,o),t[c]=void 0,l=r.$elm$),h=s[++i]):(l=createElm(t&&t[i],n,i),h=s[++i]),l&&insertBefore(referenceNode(u.$elm$).parentNode,l,referenceNode(u.$elm$))}a>d?addVnodes(e,null==s[m+1]?null:s[m+1].$elm$,n,s,i,m):i>m&&removeVnodes(t,a,d)},isSameVnode=(e,t,n=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:n?(n&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$),referenceNode=e=>e&&e["s-ol"]||e,patch=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,r=t.$tag$,a=t.$text$;let i;null===a?("slot"!==r||useNativeShadowDom||e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",relocateToHostRoot(t.$elm$.parentElement)),updateElement(e,t,isSvgMode),null!==o&&null!==l?updateChildren(s,o,t,l,n):null!==l?(null!==e.$text$&&(s.textContent=""),addVnodes(s,null,t,l,0,l.length-1)):!n&&BUILD.updatable&&null!==o&&removeVnodes(o,0,o.length-1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.$text$!==a&&(s.data=a)},relocateNodes=[],markSlotContentForRelocation=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const e of o){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const o=e["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===e["s-hn"]||t["s-sh"]&&t["s-sh"]===e["s-hn"]))if(isNodeLocatedInSlot(t,o)){let n=relocateNodes.find(e=>e.$nodeToRelocate$===t);checkSlotFallbackVisibility=!0,t["s-sn"]=t["s-sn"]||o,n?(n.$nodeToRelocate$["s-sh"]=e["s-hn"],n.$slotRefNode$=e):(t["s-sh"]=e["s-hn"],relocateNodes.push({$slotRefNode$:e,$nodeToRelocate$:t})),t["s-sr"]&&relocateNodes.map(e=>{isNodeLocatedInSlot(e.$nodeToRelocate$,t["s-sn"])&&(n=relocateNodes.find(e=>e.$nodeToRelocate$===t),n&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$))})}else relocateNodes.some(e=>e.$nodeToRelocate$===t)||relocateNodes.push({$nodeToRelocate$:t})}1===e.nodeType&&markSlotContentForRelocation(e)}},nullifyVNodeRefs=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(nullifyVNodeRefs)},insertBefore=(e,t,n)=>{if("string"==typeof t["s-sn"]){11!==e.getRootNode().nodeType&&patchParentNode(t),e.insertBefore(t,n);const{slotNode:s}=findSlotFromSlottedNode(t);return s&&dispatchSlotChangeEvent(s),t}return e.__insertBefore?e.__insertBefore(t,n):null==e?void 0:e.insertBefore(t,n)},renderVdom=(e,t,n=!1)=>{var s,o,l,r,a;const i=e.$hostElement$,c=e.$cmpMeta$,$=e.$vnode$||newVNode(null,null),d=isHost(t)?t:h(null,null,t);if(hostTagName=i.tagName,n&&d.$attrs$)for(const e of Object.keys(d.$attrs$))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(d.$attrs$[e]=i[e]);if(d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=$.$elm$=i.shadowRoot||i,useNativeShadowDom=!(!(1&c.$flags$)||128&c.$flags$),contentRef=i["s-cr"],checkSlotFallbackVisibility=!1,patch($,d,n),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(d.$elm$);for(const e of relocateNodes){const t=e.$nodeToRelocate$;if(!t["s-ol"]&&win.document){const e=win.document.createTextNode("");e["s-nr"]=t,insertBefore(t.parentNode,t["s-ol"]=e,t)}}for(const e of relocateNodes){const t=e.$nodeToRelocate$,a=e.$slotRefNode$;if(a){const e=a.parentNode;let n=a.nextSibling;if(n&&1===n.nodeType){let l=null==(s=t["s-ol"])?void 0:s.previousSibling;for(;l;){let s=null!=(o=l["s-nr"])?o:null;if(s&&s["s-sn"]===t["s-sn"]&&e===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===t||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){n=s;break}}l=l.previousSibling}}const r=t.__parentNode||t.parentNode,i=t.__nextSibling||t.nextSibling;(!n&&e!==r||i!==n)&&t!==n&&(insertBefore(e,t,n),1===t.nodeType&&"SLOT-FB"!==t.tagName&&(t.hidden=null!=(l=t["s-ih"])&&l)),t&&"function"==typeof a["s-rf"]&&a["s-rf"](a)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(r=t.hidden)&&r),t.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(d.$elm$),plt.$flags$&=-2,relocateNodes.length=0,2&c.$flags$){const e=d.$elm$.__childNodes||d.$elm$.childNodes;for(const t of e)t["s-hn"]===hostTagName||t["s-sh"]||(n&&null==t["s-ih"]&&(t["s-ih"]=null!=(a=t.hidden)&&a),t.hidden=!0)}contentRef=void 0},attachToAncestor=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const n=t["s-p"].push(new Promise(s=>e.$onRenderResolve$=()=>{t["s-p"].splice(n-1,1),s()}))}},scheduleUpdate=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return attachToAncestor(e,e.$ancestorComponent$),writeTask(()=>dispatchHooks(e,t));e.$flags$|=512},dispatchHooks=(e,t)=>{const n=e.$hostElement$,s=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$),o=e.$lazyInstance$;if(!o)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>safeCall(o,e,t,n)),e.$queuedListeners$=void 0),l=safeCall(o,"componentWillLoad",void 0,n)):l=safeCall(o,"componentWillUpdate",void 0,n),l=enqueue(l,()=>safeCall(o,"componentWillRender",void 0,n)),s(),enqueue(l,()=>updateComponent(e,o,t))},enqueue=(e,t)=>isPromisey(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),isPromisey=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,updateComponent=async(e,t,n)=>{var s;const o=e.$hostElement$,l=createTime("update",e.$cmpMeta$.$tagName$),r=o["s-rc"];n&&attachStyles(e);const a=createTime("render",e.$cmpMeta$.$tagName$);callRender(e,t,o,n),r&&(r.map(e=>e()),o["s-rc"]=void 0),a(),l();{const t=null!=(s=o["s-p"])?s:[],n=()=>postUpdateComponent(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},callRender=(e,t,n,s)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,renderVdom(e,t,s)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=createTime("postUpdate",t),o=e.$lazyInstance$,l=e.$ancestorComponent$;safeCall(o,"componentDidRender",void 0,n),64&e.$flags$?(safeCall(o,"componentDidUpdate",void 0,n),s()):(e.$flags$|=64,addHydratedFlag(n),safeCall(o,"componentDidLoad",void 0,n),s(),e.$onReadyResolve$(n),l||appDidLoad()),e.$onInstanceResolve$(n),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick(()=>scheduleUpdate(e,!1)),e.$flags$&=-517},appDidLoad=e=>{nextTick(()=>emitEvent(win,"appload",{detail:{namespace:NAMESPACE}}))},safeCall=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(e){consoleError(e,s)}},addHydratedFlag=e=>{var t;return e.classList.add(null!=(t=BUILD.hydratedSelectorName)?t:"hydrated")},getValue=(e,t)=>getHostRef(e).$instanceValues$.get(t),setValue=(e,t,n,s)=>{const o=getHostRef(e);if(!o)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const l=o.$hostElement$,r=o.$instanceValues$.get(t),a=o.$flags$,i=o.$lazyInstance$;n=parsePropertyValue(n,s.$members$[t][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if((!(8&a)||void 0===r)&&n!==r&&!c&&(o.$instanceValues$.set(t,n),i)){if(s.$watchers$&&128&a){const e=s.$watchers$[t];e&&e.map(e=>{try{i[e](n,r,t)}catch(e){consoleError(e,l)}})}if(2==(18&a)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;scheduleUpdate(o,!1)}}},proxyComponent=(e,t,n)=>{var s,o;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const r=Object.entries(null!=(s=t.$members$)?s:{});if(r.map(([e,[s]])=>{if(31&s||2&n&&32&s){const{get:o,set:r}=Object.getOwnPropertyDescriptor(l,e)||{};o&&(t.$members$[e][0]|=2048),r&&(t.$members$[e][0]|=4096),(1&n||!o)&&Object.defineProperty(l,e,{get(){{if(!(2048&t.$members$[e][0]))return getValue(this,e);const n=getHostRef(this),s=n?n.$lazyInstance$:l;if(!s)return;return s[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,e,{set(o){const l=getHostRef(this);if(r){const n=32&s?this[e]:l.$hostElement$[e];return void 0===n&&l.$instanceValues$.get(e)?o=l.$instanceValues$.get(e):!l.$instanceValues$.get(e)&&n&&l.$instanceValues$.set(e,n),r.apply(this,[parsePropertyValue(o,s)]),o=32&s?this[e]:l.$hostElement$[e],void setValue(this,e,o,t)}{if(!(1&n&&4096&t.$members$[e][0]))return setValue(this,e,o,t),void(1&n&&!l.$lazyInstance$&&l.$onReadyPromise$.then(()=>{4096&t.$members$[e][0]&&l.$lazyInstance$[e]!==l.$instanceValues$.get(e)&&(l.$lazyInstance$[e]=o)}));const r=()=>{const n=l.$lazyInstance$[e];!l.$instanceValues$.get(e)&&n&&l.$instanceValues$.set(e,n),l.$lazyInstance$[e]=parsePropertyValue(o,s),setValue(this,e,l.$lazyInstance$[e],t)};l.$lazyInstance$?r():l.$onReadyPromise$.then(()=>r())}}})}else 1&n&&64&s&&Object.defineProperty(l,e,{value(...t){var n;const s=getHostRef(this);return null==(n=null==s?void 0:s.$onInstancePromise$)?void 0:n.then(()=>{var n;return null==(n=s.$lazyInstance$)?void 0:n[e](...t)})}})}),1&n){const n=new Map;l.attributeChangedCallback=function(e,s,o){plt.jmp(()=>{var r;const a=n.get(e);if(this.hasOwnProperty(a)&&BUILD.lazyLoad)o=this[a],delete this[a];else{if(l.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==o)return;if(null==a){const n=getHostRef(this),l=null==n?void 0:n.$flags$;if(l&&!(8&l)&&128&l&&o!==s){const l=n.$lazyInstance$,a=null==(r=t.$watchers$)?void 0:r[e];null==a||a.forEach(t=>{null!=l[t]&&l[t].call(l,o,s,e)})}return}}const i=Object.getOwnPropertyDescriptor(l,a);(o=(null!==o||"boolean"!=typeof this[a])&&o)===this[a]||i.get&&!i.set||(this[a]=o)})},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.$watchers$)?o:{}),...r.filter(([e,t])=>15&t[0]).map(([e,t])=>{const s=t[1]||e;return n.set(s,e),s})]))}}return e},initializeComponent=async(e,t,n,s)=>{let o;if(!(32&t.$flags$)){if(t.$flags$|=32,n.$lazyBundleId$){const s=loadModule(n,t);if(s&&"then"in s){const e=uniqueTime();o=await s,e()}else o=s;if(!o)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);o.isProxied||(n.$watchers$=o.watchers,proxyComponent(o,n,2),o.isProxied=!0);const l=createTime("createInstance",n.$tagName$);t.$flags$|=8;try{new o(t)}catch(t){consoleError(t,e)}t.$flags$&=-9,t.$flags$|=128,l(),fireConnectedCallback(t.$lazyInstance$,e)}else{o=e.constructor;const n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=getScopeId(n);if(!styles.has(t)){const s=createTime("registerStyles",n.$tagName$);registerStyle(t,e,!!(1&n.$flags$)),s()}}}const l=t.$ancestorComponent$,r=()=>scheduleUpdate(t,!0);l&&l["s-rc"]?l["s-rc"].push(r):r()},fireConnectedCallback=(e,t)=>{safeCall(e,"connectedCallback",void 0,t)},connectedCallback=e=>{if(!(1&plt.$flags$)){const t=getHostRef(e),n=t.$cmpMeta$,s=createTime("connectedCallback",n.$tagName$);if(1&t.$flags$)addHostEventListeners(e,t,n.$listeners$),(null==t?void 0:t.$lazyInstance$)?fireConnectedCallback(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>fireConnectedCallback(t.$lazyInstance$,e));else{t.$flags$|=1,12&n.$flags$&&setContentReference(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){attachToAncestor(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),initializeComponent(e,t,n)}s()}},setContentReference=e=>{if(!win.document)return;const t=e["s-cr"]=win.document.createComment("");t["s-cn"]=!0,insertBefore(e,t,e.firstChild)},disconnectInstance=(e,t)=>{safeCall(e,"disconnectedCallback",void 0,t||e)},disconnectedCallback=async e=>{if(!(1&plt.$flags$)){const t=getHostRef(e);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),(null==t?void 0:t.$lazyInstance$)?disconnectInstance(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>disconnectInstance(t.$lazyInstance$,e))}rootAppliedStyles.has(e)&&rootAppliedStyles.delete(e),e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)&&rootAppliedStyles.delete(e.shadowRoot)},bootstrapLazy=(e,t={})=>{var n;if(!win.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=createTime(),o=[],l=t.exclude||[],r=win.customElements,a=win.document.head,i=a.querySelector("meta[charset]"),c=win.document.createElement("style"),$=[];let d,u=!0;Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",win.document.baseURI).href;let p=!1;if(e.map(e=>{e[1].map(t=>{var n;const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};4&s.$flags$&&(p=!0),s.$members$=t[2],s.$listeners$=t[3],s.$watchers$=null!=(n=t[4])?n:{};const a=s.$tagName$,i=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,registerHost(e=this,s),1&s.$flags$)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${s.$tagName$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else createShadowRoot.call(e,s)}connectedCallback(){const e=getHostRef(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,addHostEventListeners(this,e,s.$listeners$)),d&&(clearTimeout(d),d=null),u?$.push(this):plt.jmp(()=>connectedCallback(this))}disconnectedCallback(){plt.jmp(()=>disconnectedCallback(this)),plt.raf(()=>{var e;const t=getHostRef(this),n=$.findIndex(e=>e===this);n>-1&&$.splice(n,1),(null==(e=null==t?void 0:t.$vnode$)?void 0:e.$elm$)instanceof Node&&!t.$vnode$.$elm$.isConnected&&delete t.$vnode$.$elm$})}componentOnReady(){return getHostRef(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],l.includes(a)||r.get(a)||(o.push(a),r.define(a,proxyComponent(i,s,1)))})}),o.length>0&&(p&&(c.textContent+=SLOT_FB_CSS),c.textContent+=o.sort()+HYDRATED_CSS,c.innerHTML.length)){c.setAttribute("data-styles","");const e=null!=(n=plt.$nonce$)?n:queryNonceMetaTagContent(win.document);null!=e&&c.setAttribute("nonce",e),a.insertBefore(c,i?i.nextSibling:a.firstChild)}u=!1,$.length?$.map(e=>e.connectedCallback()):plt.jmp(()=>d=setTimeout(appDidLoad,30)),s()},Fragment=(e,t)=>t,addHostEventListeners=(e,t,n,s)=>{n&&win.document&&n.map(([n,s,o])=>{const l=getHostListenerTarget(win.document,e,n),r=hostListenerProxy(t,o),a=hostListenerOpts(n);plt.ael(l,s,r,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>plt.rel(l,s,r,a))})},hostListenerProxy=(e,t)=>n=>{var s;try{256&e.$flags$?null==(s=e.$lazyInstance$)||s[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(t){consoleError(t,e.$hostElement$)}},getHostListenerTarget=(e,t,n)=>4&n?e:8&n?win:16&n?e.body:t,hostListenerOpts=e=>supportsListenerOptions?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),setNonce=e=>plt.$nonce$=e;export{Fragment as F,H,Host as a,bootstrapLazy as b,getElement as c,createEvent as d,globalScripts as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-
|
|
1
|
+
import{g as globalScripts,b as bootstrapLazy}from"./index-EiAqSNMq.js";export{s as setNonce}from"./index-EiAqSNMq.js";const defineCustomElements=async(o,e)=>{if("undefined"!=typeof window)return await globalScripts(),bootstrapLazy([["onto-layout",[[4,"onto-layout",{authenticatedUser:[32],authToken:[32],securityConfig:[32],isLowResolution:[32],showHeader:[32],showNavbar:[32],isEmbedded:[32],loading:[32]},[[0,"navbarToggled","onNavbarToggled"],[9,"resize","onResize"]]]]],["onto-permission-banner",[[0,"onto-permission-banner"]]],["onto-test-context",[[0,"onto-test-context",{initConfigurationContext:[64],updateLicense:[64],updateProductInfo:[64],loadRepositories:[64],setAuthenticatedUser:[64],setSecurityConfig:[64],login:[64],changeLanguage:[64],emitNavigateEndEvent:[64],updateSelectedRepository:[64],updateIsLoadingActiveRepositoryLocation:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["onto-toastr",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["onto-dropdown",[[0,"onto-dropdown",{dropdownButtonName:[1,"dropdown-button-name"],dropdownButtonNameLabelKey:[1,"dropdown-button-name-label-key"],dropdownButtonGuideSelector:[1,"dropdown-button-guide-selector"],dropdownButtonTooltip:[1,"dropdown-button-tooltip"],dropdownButtonTooltipLabelKey:[1,"dropdown-button-tooltip-label-key"],iconClass:[1,"icon-class"],items:[16],tooltipTheme:[1,"tooltip-theme"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],open:[32],buttonTooltipContent:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]],["translate-label",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16,"translation-parameters"],translatedLabel:[32]}]]],["onto-dialog_2",[[4,"onto-dialog",{config:[16]}],[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}]]],["onto-cookie-consent_2",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["onto-language-selector_9",[[0,"onto-rdf-search",{isOpen:[32],buttonConfig:[32]},[[8,"click","handleClick"]]],[0,"onto-language-selector",{dropdownAlignment:[1,"dropdown-alignment"],currentLanguage:[32]}],[0,"onto-license-alert",{license:[16]}],[0,"onto-operations-notification",{activeOperations:[16,"active-operations"],isOpen:[32]},[[8,"click","handleOutsideClick"]]],[0,"onto-repository-selector",{currentRepository:[16,"current-repository"],items:[16],repositorySizeInfoFetcher:[16,"repository-size-info-fetcher"],totalTripletsFormatter:[16,"total-triplets-formatter"],expansionRatioFormatter:[16,"expansion-ratio-formatter"],canWriteRepo:[16,"can-write-repo"],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32]},null,{items:["onItemsChanged"]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16,"security-config"],isOpen:[32]}],[0,"onto-search-icon",{tooltipLabel:[32]}],[0,"onto-search-resource-input",{context:[1],skipValidation:[4,"skip-validation"],preserveSearch:[4,"preserve-search"],isHidden:[4,"is-hidden"],buttonConfig:[16,"button-config"],inputValue:[32],searchResult:[32],isAutocompleteEnabled:[32]},null,{isHidden:["onVisibilityChange"]}]]],["onto-footer_5",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],currentRoute:[32],currentRepository:[32],securityConfig:[32],user:[32],showUserMenu:[32],showLoginButton:[32],applicationLogoPath:[32]}],[0,"onto-footer",{productInfo:[32],shouldShowCookieConsent:[32]},[[0,"consentGiven","handleConsentGiven"]]],[0,"onto-navbar",{navbarCollapsed:[4,"navbar-collapsed"],menuItems:[16,"menu-items"],menuModel:[32],isCollapsed:[32]},null,{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}],[1,"onto-loader",{size:[2],messageText:[1,"message-text"]}],[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]]],e)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,a as Host}from"./index-EiAqSNMq.js";import{L as LoggerProvider,T as TranslationService}from"./translation.service-nljGIprK.js";import{service,SecurityContextService,SecurityService,TrackingService,DateUtil}from"@ontotext/workbench-api";import{d as debounce}from"./function-utils-D1ZpXQQS.js";const ontoCookieConsentCss=".cookie-consent-banner{position:fixed;bottom:0;left:0;right:0;background-color:var(--gw-dialog-background);box-shadow:0 -2px 10px rgba(0, 0, 0, 0.1);padding:20px;z-index:1050;width:100%}.cookie-consent-banner .cookie-consent-content{display:flex;justify-content:center;align-items:center}.cookie-consent-banner .cookie-consent-content button{margin-left:12px}.cookie-policy-modal{padding:24px 40px;overflow-y:auto}.cookie-policy-modal .modal-dialog{width:60% !important;max-width:60% !important}.cookie-policy-modal .title{font-size:xx-large;font-weight:bolder}.cookie-policy-modal .heading{font-size:x-large;font-weight:bolder;margin-top:12px}.cookie-policy-modal .subheading{font-size:large;font-weight:bolder;margin-top:8px}.cookie-policy-modal .text{font-size:math}",OntoCookieConsent=class{constructor(e){registerInstance(this,e),this.consentGiven=createEvent(this,"consentGiven"),this.showModal=!1,this.openModal=e=>{e.preventDefault(),this.showModal=!0},this.handleConsentClick=()=>{this.consentGiven.emit()}}onDialogClose(){this.showModal=!1}render(){return h(Host,{key:"dba3fc373e9ad60ada7f86d11acbe1b1ed24a92d"},h("div",{key:"8f1dff5a6b271f721d2079ec44a14207eff38025",class:"cookie-consent-banner"},h("section",{key:"93d51c3f88e12ff6fc5a57506eab507eca5420cb",class:"cookie-consent-content"},h("span",{key:"72be975026e8717da4ab4d99d5560f96017d4436"},h("translate-label",{key:"b49c8182a2e94cffb22abb03dd4f2e6c9a7c6b5e",labelKey:"cookie.cookie_consent"}),h("a",{key:"79675cf4d9c026666093ff3205818f48b845083f",id:"cookie-policy-link",href:"#",onClick:this.openModal,class:"btn btn-link p-0"},h("translate-label",{key:"8c83694879ff4fb7cce5aa8f3363220767b54c13",labelKey:"cookie.cookie_policy_url_label"})),"."),h("button",{key:"dfa75c1bd990929564a7b3b61264e1978ea24c95",id:"accept-cookie-policy",class:"onto-btn onto-btn-primary",onClick:this.handleConsentClick},h("translate-label",{key:"7a36cad2b993c7aa29f4d64adcf8e359331bdb28",labelKey:"common.button.ok"})))),this.showModal&&h("onto-cookie-policy-dialog",{key:"1daa9af32d60159763f1ea052c1c87e6f4bfdb3e"}))}};OntoCookieConsent.style=ontoCookieConsentCss;const ontoCookiePolicyDialogCss="section h4{font-size:x-large;font-weight:bolder;margin-top:12px}";var CookieType;!function(e){e.THIRD_PARTY="thirdParty",e.STATISTIC="statistic"}(CookieType||(CookieType={}));const OntoCookiePolicyDialog=class{constructor(e){registerInstance(this,e),this.closeDialog=createEvent(this,"closeDialog"),this.logger=LoggerProvider.logger,this.securityContextService=service(SecurityContextService),this.securityService=service(SecurityService),this.trackingService=service(TrackingService),this.toggleChangedDebounced=debounce(e=>this.toggleChanged(e),300)}toggleChangeHandler(e){this.toggleChangedDebounced(e)}toggleChanged(e){this.setUserCookieConsent(this.updateCookieConsent(e.detail)),this.securityService.updateAuthenticatedUser(this.user.toUser()).then(()=>this.securityContextService.updateAuthenticatedUser(this.user)).catch(this.logger.error).finally(()=>this.trackingService.applyTrackingConsent())}connectedCallback(){this.user=this.securityContextService.getAuthenticatedUser(),this.cookieConsent=this.trackingService.getCookieConsent()}render(){var e,o;const a={dialogTitle:TranslationService.translate("cookie.policy.title"),onClose:()=>this.closePolicyDialog(),modalClass:"cookie-policy-modal"};return h("onto-dialog",{key:"bdd402a836636e6c15811b3615703ea1eebd8d7c",config:a},h("div",{key:"1f1b4d80214907ae882b7322c48190f2152e12d9",slot:"body"},h("section",{key:"1b1a59be322de2736ca62ad373a51d18a1a06b79"},h("h4",{key:"dede6b4f005e6a661675479f5531ddad7a0235d4"},h("translate-label",{key:"ee1741896c0ff590ab9efbec9bf0a5025a30909f",labelKey:"cookie.policy.purpose_heading"})),h("p",{key:"e4a5b233c2809f901dd182f8d9aec0de27fc2099"},h("translate-label",{key:"631d8eb62fb92be49d0ded38b6aa1a280948ae19",labelKey:"cookie.policy.purpose_text"})),h("p",{key:"1254f3f2632b00bb296c00454a7df7d5b383ece5"},h("translate-label",{key:"5ceda3dada67081dbd17e1afa867a24a9016a564",labelKey:"cookie.policy.purpose_enterprise_text"}))),h("section",{key:"4796f96a4798348052387f6d379fcb2057c4b660"},h("h4",{key:"2ef14f483c1ff6fd1ecb891f7b9a6ed57b628805"},h("translate-label",{key:"09481c09192b35faa19b2006bdc3b21a9589cbdc",labelKey:"cookie.policy.privacy_commitment_heading"})),h("p",{key:"2cca9fe31f8f315c9ea123240bffc22f43bdfa77"},h("translate-label",{key:"4e8a55d364dffb76ea88c395967abd1681ceeec0",labelKey:"cookie.policy.privacy_commitment_text"})),h("ul",{key:"ceac17908898768e92263452faa0d05b654355aa"},h("li",{key:"c72361f5d3c17e068041f66e1986ba2152153f56"},h("translate-label",{key:"66a3534fd00d05e038c566c47c27a817e0840312",labelKey:"cookie.policy.privacy_commitment_1"})),h("li",{key:"f64a3900424c3df46fabaa81b710626445dd25b9"},h("translate-label",{key:"1e0e45ea0bba3f66f483217514006e685544f7ce",labelKey:"cookie.policy.privacy_commitment_2"})))),h("section",{key:"5046d6f2a87f421da264d8ca56e586c96806c8d2"},h("h4",{key:"f29934a5affad89f5f29bc18aaf4e0a7431a676c"},h("translate-label",{key:"88786391aa0c7dfee08e8a69c44cdc8f2fdf86ba",labelKey:"cookie.policy.cookies_heading"})),h("p",{key:"30445e55fede20a71babaac4656b2aa04bf95029"},h("translate-label",{key:"f0a85e21c58d6192b7173a2fdcdadb0cac500d51",labelKey:"cookie.policy.cookies_text"}))),h("section",{key:"6d63492ca8e98e66ee3dac34a9f2d4804598aae3"},h("h4",{key:"2acb72a66961b4a7669421631c567ae220c37340"},h("translate-label",{key:"150994d027db50124deb8382ff86defd4d9f73ca",labelKey:"cookie.policy.manage_cookies_heading"})),h("onto-toggle-switch",{key:"abe22d435107f38ff392ece9b1e93436b18d8865",class:"statistic-cookies-toggle",checked:null===(e=this.cookieConsent)||void 0===e?void 0:e.statistic,labelKey:"cookie.policy.statistic_cookies",tooltipTranslationKey:"cookie.policy.statistic_tooltip",context:CookieType.STATISTIC}),h("p",{key:"c58bd5346cbf64fc806476af9aca4114ffdf2f19"},h("translate-label",{key:"5494f13d7c4e5e9b8ad1dd2833d61dcf8abbaadb",labelKey:"cookie.policy.statistic_text"})),h("onto-toggle-switch",{key:"a126d4e367ac72f3afabf4cbcad60600c1674256",class:"third-party-cookies-toggle",checked:null===(o=this.cookieConsent)||void 0===o?void 0:o.thirdParty,labelKey:"cookie.policy.third_party_cookies",tooltipTranslationKey:"cookie.policy.third_party_tooltip",context:CookieType.THIRD_PARTY}),h("p",{key:"98eaa1cd8bf32b975fbf6158151c23ecb75ae775"},h("translate-label",{key:"3e3480010862cba108e3b2a2ea132e2ec8f7d38f",labelKey:"cookie.policy.third_party_cookies_text"}))),h("p",{key:"2f229fbfb8e618771c96ff69022bdbe41ae073aa"},h("span",{key:"89601e4bda0080f30395f7ab7717ed2894003df4"},h("translate-label",{key:"7e1c004df16f9c96593bd08ed572f330980f9b1f",labelKey:"cookie.policy.change_cookies"}),h("i",{key:"0b63d510ac728e75687dbfb89baf199a7ff789ac"}," ",h("translate-label",{key:"84ca2e5206973463bb76e464c0de825778b5161c",labelKey:"menu.setup.label"})," > ",h("translate-label",{key:"8cd61ed1aa3b45d15845da57adba70c0136cc465",labelKey:"menu.my.settings.label"})," > ",h("translate-label",{key:"a540e7209ce07f18cade46ca26593c067f0e5967",labelKey:"security.user.settings"})," > ",h("translate-label",{key:"122e0f07061903adb8e68ac632766cdce0544140",labelKey:"cookie.policy.change_cookies_location4"})," ")))))}closePolicyDialog(){this.closeDialog.emit()}updateCookieConsent(e){return this.cookieConsent[e.context]=e.checked,this.cookieConsent.updatedAt=DateUtil.now(),this.cookieConsent}setUserCookieConsent(e){this.user.appSettings||this.user.setAppSettings(),this.user.appSettings.COOKIE_CONSENT=e}};OntoCookiePolicyDialog.style=ontoCookiePolicyDialogCss;export{OntoCookieConsent as onto_cookie_consent,OntoCookiePolicyDialog as onto_cookie_policy_dialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,
|
|
1
|
+
import{r as registerInstance,h,a as Host,c as getElement,d as createEvent}from"./index-EiAqSNMq.js";import{H as HtmlUtil}from"./html-util-C8DO915D.js";import{T as TranslationService}from"./translation.service-nljGIprK.js";import{O as OntoTooltipPlacement}from"./onto-tooltip-placement-D_J2-9CG.js";import"@ontotext/workbench-api";const ontoDialogCss=".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}",OntoDialog=class{constructor(e){registerInstance(this,e),this.handleClose=e=>{this.config.onClose(e)}}componentDidLoad(){this.documentOverflow=HtmlUtil.hideDocumentBodyOverflow(),this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.closeButton.focus()}disconnectedCallback(){this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this)),HtmlUtil.setDocumentBodyOverflow(this.documentOverflow)}render(){return h(Host,{key:"eeffeaac1aa5b80b89d0d176d89dc44291fd0cbb",tabindex:"-1"},h("div",{key:"2ba8415fa038ad2666cc0b340a3ceba6f0919bc6",class:`dialog-overlay ${this.config.modalClass?this.config.modalClass:""}`},h("dialog",{key:"39b9fc94944e12e8dcae98a65e74593dc173b336",class:"dialog"},h("header",{key:"183327aad084ff6fd619d204a537871cace84684",class:"dialog-header"},h("h3",{key:"ae4c514e0f75e46d5787d284154392de808100ca",class:"dialog-title"},this.config.dialogTitle)),h("main",{key:"dc991f0ef3baa22f42f683528a4ca67ab8d5e7f4",class:"dialog-body"},h("slot",{key:"ddc1c5176d976f5a518fed1d2faa138d0bc5082a",name:"body"})),h("footer",{key:"b3cb9449b54583a7b5489b7d56fa084e456b4d75",class:"dialog-footer"},h("slot",{key:"b3bc85bdfe12da62019be2e542737e5b6f7db4f6",name:"footer"}),h("button",{key:"8b4ae467782cf8ba05f06a11850c5681a056b50a",class:"onto-btn onto-btn-primary close-btn",onClick:this.handleClose,ref:e=>this.closeButton=e},h("translate-label",{key:"7cba2bef0bdd569c25ec0df321345ec1cc2d9f74",labelKey:"common.button.close"}))))))}preventLeavingDialog(e){HtmlUtil.preventLeavingDialog(this.hostElement,e)}get hostElement(){return getElement(this)}};OntoDialog.style=ontoDialogCss;class ObjectUtil{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 o=0;o<e.length;o++)if(!ObjectUtil.deepEqual(e[o],t[o]))return!1;return!0}if(!Array.isArray(e)&&!Array.isArray(t)){const o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(const i of o)if(!(i in t)||!ObjectUtil.deepEqual(e[i],t[i]))return!1;return!0}return!1}return!1}static deepCopy(e){if("object"!=typeof e||null==e||"function"==typeof e)return e;if(ObjectUtil.hasCopyMethod(e))return e.copy();const t=ObjectUtil.copyBuiltInType(e);return null!==t?t:ObjectUtil.copyPlainObject(e)}static copyBuiltInType(e){return Array.isArray(e)?e.map(e=>ObjectUtil.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])=>[ObjectUtil.deepCopy(e),ObjectUtil.deepCopy(t)])):e instanceof Set?new Set(Array.from(e.values()).map(e=>ObjectUtil.deepCopy(e))):null}static copyPlainObject(e){const t=Object.create(Object.getPrototypeOf(e));for(const o of Object.keys(e))t[o]=ObjectUtil.deepCopy(e[o]);return t}static hasCopyMethod(e){return"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"copy")&&"function"==typeof e.copy}}ObjectUtil.isNullOrUndefined=e=>null==e;class Model{copy(){return ObjectUtil.deepCopy(this)}}class ModelList extends Model{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 SubscriptionList extends ModelList{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 ontoToggleSwitchCss='.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)}',OntoToggleSwitch=class{constructor(e){registerInstance(this,e),this.toggleChanged=createEvent(this,"toggleChanged"),this.subscriptions=new SubscriptionList,this.checked=!1,this.toggle=()=>{this.checked=!this.checked,this.toggleChanged.emit({checked:this.checked,context:this.context})}}subscribeToLanguageChange(){this.tooltipTranslationKey&&this.subscriptions.add(TranslationService.onTranslate(this.tooltipTranslationKey,[],e=>{this.tooltipLabel=e}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}connectedCallback(){this.subscribeToLanguageChange()}render(){return h("section",{key:"3afb9d800ec06e6cac57d65eab4059bc7db42535"},this.labelKey&&h("label",{key:"90ae5f881975462da986f65fdce7b0548d9afa2d"},h("strong",{key:"ce8ca2e649681a874585835b35554dd9920f0aef"},h("translate-label",{key:"601a0371d31081ce5a84b824ddb43536c3e87405",labelKey:this.labelKey})," ")),h("button",{key:"90ea147e6e350461cdd74ccacf2dfe86cf875925",class:"toggle-switch",onClick:this.toggle,"tooltip-append-to":"parent","tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.TOP},h("input",{key:"e7ae6a6c71a0fe9decebb559ed601998b6ee8bac",type:"checkbox",checked:this.checked}),h("label",{key:"02d328613d9e7c675e6531a1777ae7cf9a2d16b1"})))}};OntoToggleSwitch.style=ontoToggleSwitchCss;export{OntoDialog as onto_dialog,OntoToggleSwitch as onto_toggle_switch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,c as getElement}from"./index-EiAqSNMq.js";import{L as LoggerProvider,T as TranslationService}from"./translation.service-nljGIprK.js";import{D as DropdownItemAlignment}from"./dropdown-item-alignment-DghTf3pJ.js";import{T as TooltipUtil}from"./tooltip-util-CzsgdbCC.js";import{O as OntoTooltipPlacement}from"./onto-tooltip-placement-D_J2-9CG.js";import"@ontotext/workbench-api";const ontoDropdownCss=":host{display:block}.onto-dropdown{position:relative;width:fit-content}.onto-dropdown.closed .onto-dropdown-menu{display:none}.onto-dropdown.open .onto-dropdown-button{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background);border-color:var(--gw-button-primary-border-color)}.onto-dropdown.open .onto-dropdown-button .button-icon{color:var(--gw-button-primary-icon-color)}.onto-dropdown.open .onto-dropdown-button:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-dropdown .onto-dropdown-button{display:flex;flex-direction:row;gap:0.3em;align-items:center;font-size:1rem;font-weight:400;padding:0.4em 1rem;line-height:1.5;outline:none;background-color:var(--gw-button-secondary-background);border:1px solid var(--gw-button-secondary-border-color);color:var(--gw-button-secondary-color);transition:all 0.15s ease-out}.onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-secondary-icon-color)}.onto-dropdown .onto-dropdown-button .ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background);border:1px solid var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.onto-dropdown .onto-dropdown-menu{position:absolute;margin:0;padding:0;z-index:1000;overflow-y:auto;max-height:340px;min-width:100%}.onto-dropdown .onto-dropdown-menu-item{display:block;text-decoration:none;font-size:1rem;font-weight:400;padding:0.5em 1.2em;color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background);text-align:end;white-space:nowrap;border:none;outline:none;width:100%}.onto-dropdown .onto-dropdown-menu-item:hover{cursor:pointer;color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-dropdown .onto-dropdown-menu-item:hover .item-icon{transform:scale(1.2)}.onto-dropdown .onto-dropdown-button:hover{cursor:pointer}.onto-dropdown .onto-dropdown-button:hover .button-icon{transform:scale(1.2)}.onto-dropdown .onto-dropdown-option-icon{margin-right:0.2em}.onto-dropdown .onto-dropdown-right-item-alignment{right:0;left:auto}",OntoDropdown=class{constructor(o){registerInstance(this,o),this.valueChanged=createEvent(this,"valueChanged"),this.logger=LoggerProvider.logger,this.GUIDE_SELECTOR_ATTR="guide-selector",this.open=!1,this.buttonTooltipContent="",this.iconClass="",this.tooltipPlacement=OntoTooltipPlacement.LEFT,this.dropdownAlignment=DropdownItemAlignment.LEFT,this.autoClose=!1,this.toggleButtonClickHandler=()=>{TooltipUtil.destroyTooltip(this.dropdownButtonElement),this.buttonTooltipContent="",this.clearDropdownItemTooltips(),this.toggleComponent()}}keydownListener(o){"Escape"===o.key&&this.closeMenu()}mouseClickListener(o){const t=o.target;this.autoClose&&!this.hostElement.contains(t)&&this.closeMenu()}componentDidUpdate(){this.dropdownButtonElement&&(this.buttonTooltipContent&&""!==this.buttonTooltipContent?TooltipUtil.updateTooltipContent(this.dropdownButtonElement,this.buttonTooltipContent):TooltipUtil.destroyTooltip(this.dropdownButtonElement))}render(){var o,t;const n=this.dropdownAlignment===DropdownItemAlignment.RIGHT?"onto-dropdown-right-item-alignment":"onto-dropdown-left-item-alignment",e="function"==typeof this.tooltipPlacement?this.tooltipPlacement(this.open):this.tooltipPlacement;return h("div",{key:"36e8f37b8188fd8de748890b64e323346fd93d1d",class:"onto-dropdown "+(this.open?"open":"closed")},h("button",Object.assign({key:"079c4a67fc1e5d85d5cccb66c604308eaab6bcbc",class:"onto-dropdown-button",ref:o=>this.dropdownButtonElement=o},this.dropdownButtonGuideSelector?{[this.GUIDE_SELECTOR_ATTR]:this.dropdownButtonGuideSelector}:{},{"tooltip-placement":e,"tooltip-content":this.buttonTooltipContent},this.tooltipTheme?{"tooltip-theme":this.tooltipTheme}:{},{onMouseEnter:this.setDropdownButtonTooltip(),onClick:this.toggleButtonClickHandler}),this.iconClass?h("i",{class:"button-icon ri-lg "+this.iconClass}):"",h("span",{key:"3a258b3105ff250ea6565140db7d95096e33aaa3",class:"button-name"},null!==(o=this.dropdownButtonName)&&void 0!==o?o:this.translate(this.dropdownButtonNameLabelKey)),h("i",{key:"6efadb314fa809e7c7b49825699f4b5abd9b3bc0",class:"ri-arrow-down-s-line "+(this.open?"rotate-180":"")})),h("div",{key:"c6dd9f644a166347e5a34eb483520d82bc23270c",class:"onto-dropdown-menu "+n},null===(t=this.items)||void 0===t?void 0:t.map(o=>{var t;return h("button",Object.assign({class:"onto-dropdown-menu-item "+o.cssClass},o.guideSelector?{[this.GUIDE_SELECTOR_ATTR]:o.guideSelector}:{},{"tooltip-placement":OntoTooltipPlacement.LEFT},this.tooltipTheme?{"tooltip-theme":this.tooltipTheme}:{},{onMouseEnter:this.setDropdownItemTooltip(o),onClick:this.itemClickHandler(o.value)}),o.iconClass?h("span",{class:"onto-dropdown-option-icon "+o.iconClass}):"",h("span",null,null!==(t=o.name)&&void 0!==t?t:this.translate(o.nameLabelKey)))})))}setDropdownButtonTooltip(){return async()=>{var o;let t;t="function"==typeof this.dropdownButtonTooltip?await this.getTooltipContent(this.dropdownButtonTooltip):null!==(o=this.dropdownButtonTooltip)&&void 0!==o?o:this.translate(this.dropdownButtonTooltipLabelKey),this.buttonTooltipContent=t}}setDropdownItemTooltip(o){return async t=>{var n;const e=t.currentTarget;if("function"==typeof o.tooltip){let t=await this.getTooltipContent(o.tooltip);e.setAttribute("tooltip-content",t)}else e.setAttribute("tooltip-content",null!==(n=o.tooltip)&&void 0!==n?n:this.translate(o.tooltipLabelKey))}}clearDropdownItemTooltips(){this.hostElement.querySelectorAll(".onto-dropdown-menu-item").forEach(o=>{TooltipUtil.destroyTooltip(o),o.setAttribute("tooltip-content","")})}itemClickHandler(o){return()=>this.onSelect(o)}translate(o){return o?TranslationService.translate(o):""}onSelect(o){this.open=!1,this.valueChanged.emit(o)}toggleComponent(){this.open=!this.open}closeMenu(){this.open=!1}async getTooltipContent(o){let t="";try{t=await o()}catch(o){this.logger.error(o)}return t}get hostElement(){return getElement(this)}};OntoDropdown.style=ontoDropdownCss;export{OntoDropdown as onto_dropdown};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,c as createEvent,F as Fragment,g as getElement}from"./index-CGqARDX4.js";import{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";import{L as LoggerProvider,T as TranslationService}from"./translation.service-nljGIprK.js";import{H as HtmlUtil}from"./html-util-C8DO915D.js";import{R as ResourceSearchConstants,D as DropdownItem}from"./resource-search-constants-CapzAxJp.js";import{T as TooltipUtil}from"./tooltip-util-CzsgdbCC.js";import"./onto-tooltip-placement-D_J2-9CG.js";const ontoFooterCss=()=>":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}",OntoFooter=class{constructor(e){registerInstance(this,e),this.subscriptions=new SubscriptionList,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=service(ProductInfoContextService),this.securityContextService=service(SecurityContextService),this.licenseContextService=service(LicenseContextService),this.trackingService=service(TrackingService)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,t,o,i;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")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",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===(o=this.productInfo)||void 0===o?void 0:o.connectors," • Workbench ",null===(i=this.productInfo)||void 0===i?void 0:i.workbench," • © 2002–",this.currentYear," ",h("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",h("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&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 o=this.securityContextService.getIsLoggedIn(),i=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&&(i||o))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};OntoFooter.style=ontoFooterCss();const SelectorItemButton=({repository:e})=>h("div",{class:"repository-selector-dropdown-item"},h("i",{class:"item-icon icon-repo-"+e.type}),h("div",{class:"item-label"},h("div",{class:"repository-id"},e.id),h("div",{class:"repository-location"},e.location?e.location:"Local"))),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}",labelKeys$1={LOGO_LINK:"menu.logo.link.title"},OntoHeader=class{constructor(e){registerInstance(this,e),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new FibonacciGenerator,this.monitoringService=ServiceProvider.get(MonitoringService),this.repositoryContextService=ServiceProvider.get(RepositoryContextService),this.repositoryLocationContextService=ServiceProvider.get(RepositoryLocationContextService),this.repositoryService=ServiceProvider.get(RepositoryService),this.securityContextService=ServiceProvider.get(SecurityContextService),this.toastrService=ServiceProvider.get(OntoToastrService),this.namespacesService=ServiceProvider.get(NamespacesService),this.namespaceContextService=ServiceProvider.get(NamespacesContextService),this.languageService=ServiceProvider.get(LanguageService),this.authService=ServiceProvider.get(AuthenticationService),this.authorizationService=ServiceProvider.get(AuthorizationService),this.eventService=ServiceProvider.get(EventService),this.configurationContextService=ServiceProvider.get(ConfigurationContextService),this.runtimeConfigurationContextService=ServiceProvider.get(RuntimeConfigurationContextService),this.logger=LoggerProvider.logger,this.shouldShowSearch=!0,this.isHomePage=isHomePage(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new SubscriptionList,this.skipUpdateActiveOperationsTimes=0,this.labels={[labelKeys$1.LOGO_LINK]:TranslationService.translate(labelKeys$1.LOGO_LINK)},this.canWriteRepo=e=>this.canWriteRepoInLocation(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(TranslationService.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,HtmlUtil.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:ResourceSearchConstants.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.setupTotalRepositoryFormater(),this.setupExpansionRatioFormater(),this.subscribeToEvents(),this.currentRoute=getCurrentRoute(),this.startOperationPolling(),this.onTranslate(labelKeys$1.LOGO_LINK)}render(){var e,t;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"}}),(null===(e=this.activeOperations)||void 0===e?void 0:e.allRunningOperations.getItems().length)?h("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(t=this.license)||void 0===t?void 0:t.valid)?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?h("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?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(ServiceProvider.get(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(EventName.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=isHomePage(),this.currentRoute=getCurrentRoute(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(ServiceProvider.get(LanguageContextService).onSelectedLanguageChanged(e=>{this.setupTotalRepositoryFormater(e),this.setupExpansionRatioFormater(e)}))}onTranslate(e){this.subscriptions.add(TranslationService.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new 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 DropdownItem).setName(h(SelectorItemButton,{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,o;const i=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===(o=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===o?void 0:o.enabled;this.showLoginButton=i&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=i&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=WindowService.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{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"===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})}};OntoHeader.style=ontoHeaderCss();const ontoLoaderSvg="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgICAgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgICAgICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgICAgICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iCiAgICAgICAgdmlld0JveD0iMCAwIDUwIDUwIgogICAgICAgIGlkPSJzdmcyIgogICAgICAgIHZlcnNpb249IjEuMSIKICAgICAgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ4LjAgcjk2NTQiCiAgICAgICAgc29kaXBvZGk6ZG9jbmFtZT0ibmFtZXN2Zy5zdmciPgogICAgPGNpcmNsZSBjeD0iMjEuNSIgY3k9IjcuNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjBzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMzEiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjE1cyIgdmFsdWVzPSI0OyA4OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0IgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNyIgY3k9IjE1IiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuM3MiIHZhbHVlcz0iMjsgNDsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMiIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNDAuNSIgY3k9IjIzLjUiIHI9IjQuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjQ1cyIKICAgICAgICAgICAgICAgICB2YWx1ZXM9IjQuNTsgOTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjUiIGF0dHJpYnV0ZVR5cGU9IlhNTCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjM5IiBjeT0iMzMiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMC42cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNC41IiBjeT0iMzguNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuNzVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMjkiIGN5PSI0MiIgcj0iMiIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjlzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjIxLjUiIGN5PSI0Mi41IiByPSIyLjUiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS4wNXMiCiAgICAgICAgICAgICAgICAgdmFsdWVzPSIyLjU7IDU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41IiBhdHRyaWJ1dGVUeXBlPSJYTUwiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjM5IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMnMiIHZhbHVlcz0iNDsgODsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNyIgY3k9IjMyIiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMzVzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjUuNSIgY3k9IjI1LjUiIHI9IjIuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=",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}",OntoLoader=class{constructor(e){registerInstance(this,e),this.size=100,this.messageText="",this.rawSvg=atob(ontoLoaderSvg.split(",")[1])}render(){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)))}};OntoLoader.style=ontoLoaderCss();class NavbarToggledEvent{constructor(e){this.type="navbarToggled",this.payload=e}}class NavbarModel{constructor(e=[]){this._items=e}hasParent(e){return this._items.some(t=>e===t.label)}getModel(){const e=t=>{const o=t.children.map(e);return new NavbarItemModel(Object.assign(Object.assign({},t),{children:o}))};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=o=>{if(o.selected)return e=o,!0;if(o.children)for(const e of o.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 o;let i=e;(null===(o=t.href)||void 0===o?void 0:o.includes("*"))&&(i=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);i===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const o=e.split("/"),i=t.split("/");if(o.length!==i.length)return e;const n=[];for(let t=0;t<i.length;t++)if("*"===i[t])n.push("*");else{if(i[t]!==o[t])return e;n.push(i[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(NavbarModel.compare)}),this._items.sort(NavbarModel.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 o;t(e),(null===(o=e.children)||void 0===o?void 0:o.length)&&this.walkRecursively(e.children,t)})}get items(){return this._items}}class NavbarItemModel{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 logger=LoggerProvider.logger;class NavbarService{static map(e,t,o,i){const n=new NavbarModel;return NavbarService.setTopLevelMenuItems(e,n,t),NavbarService.setSubmenuItems(e,n,t),o&&NavbarService.addRepositoryIdToHrefAttributes(n,o,i),n.sorted()}static addRepositoryIdToHrefAttributes(e,t,o){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${o}=${t}`}):e.href=`${e.href}?${o}=${t}`})}static setTopLevelMenuItems(e,t,o){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?logger.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,o,e.children))})})}static setSubmenuItems(e,t,o){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const i=t.getTopLevelItem(e.parent);null==i||i.addChildren(this.toMenuItemModel(e,i,o,e.children))})})}static toMenuItemModel(e,t,o,i=[]){let n;e.documentationHref&&(n=UriUtil.resolveDocumentationUrl(null==o?void 0:o.shortVersion,e.documentationHref));const s=new NavbarItemModel({label:e.label,labelKey:e.labelKey,href:n||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}),r=i.map(e=>this.toMenuItemModel(e,s,o,e.children));return s.addChildren(...r),s}}const 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)}',labelKeys={EXPAND:"menu.buttons.expand",COLLAPSE:"menu.buttons.collapse"},OntoNavbar=class{constructor(e){registerInstance(this,e),this.navbarToggled=createEvent(this,"navbarToggled"),this.productInfoContextService=service(ProductInfoContextService),this.repositoryContextService=service(RepositoryContextService),this.subscriptions=new SubscriptionList,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[labelKeys.EXPAND]:TranslationService.translate(labelKeys.EXPAND),[labelKeys.COLLAPSE]:TranslationService.translate(labelKeys.COLLAPSE)},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 NavbarToggledEvent(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),o=NavbarService.map(e||[],this.productInfo,null==t?void 0:t.id,REPOSITORY_ID_PARAM);o.initSelected(getCurrentRoute()),this.menuModel=o}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?openInNewTab(t.href):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(ServiceProvider.get(EventService).subscribe(EventName.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),isHomePage()||this.menuModel.initSelected(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 NavbarToggledEvent(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 NavbarModel(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(TranslationService.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 o=e.closest(".menu-element");if(!o)return;const i=e.getBoundingClientRect(),n=o.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=i.height?l=a:r>=i.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(labelKeys.EXPAND),this.onTranslate(labelKeys.COLLAPSE),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 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(e=>h("li",{key:e.labelKey,class:{"menu-element":!0,open:e.open},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.children.length>0&&h(Fragment,null,h("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},h("span",{class:`menu-item-icon ${e.icon}`})," ",h("translate-label",{class:"menu-item",labelKey:e.labelKey})),h("ul",{class:"sub-menu"},h("li",{key:e.labelKey,class:"submenu-title"},h("translate-label",{labelKey:e.labelKey})),e.children.map(e=>h("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.documentationHref?h("a",{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"},h("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&h("span",{class:`text-muted ${e.icon}`})):h("a",{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},h("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&h("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&h("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},h("span",{class:`menu-item-icon ${e.icon}`})," ",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 getElement(this)}static get watchers(){return{navbarCollapsed:[{navbarCollapsedChange:0}],menuItems:[{menuItemsChanged:0}]}}};OntoNavbar.style=ontoNavbarCss();const 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)}',OntoTooltip=class{constructor(e){registerInstance(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(TooltipUtil.getTooltipInstance(e))return TooltipUtil.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=TooltipUtil.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const o=TooltipUtil.getTooltip(e.target);o&&this.handleTooltipShow(o)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){TooltipUtil.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=TooltipUtil.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const o=TooltipUtil.getTooltip(e.target);o&&this.handleTooltipHide(o,e.relatedTarget)}handleTooltipHide(e,t){const o=e.tooltipTarget;o&&(t&&e.contains(t)||this.handleTooltipTargetHide(o,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||TooltipUtil.getTooltipInstance(e)&&TooltipUtil.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return h(Host,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};OntoTooltip.style=ontoTooltipCss();export{OntoFooter as onto_footer,OntoHeader as onto_header,OntoLoader as onto_loader,OntoNavbar as onto_navbar,OntoTooltip as onto_tooltip};
|
|
1
|
+
import{r as registerInstance,h,a as Host,d as createEvent,F as Fragment,c as getElement}from"./index-EiAqSNMq.js";import{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";import{L as LoggerProvider,T as TranslationService}from"./translation.service-nljGIprK.js";import{H as HtmlUtil}from"./html-util-C8DO915D.js";import{R as ResourceSearchConstants,D as DropdownItem}from"./resource-search-constants-CapzAxJp.js";import{T as TooltipUtil}from"./tooltip-util-CzsgdbCC.js";import"./onto-tooltip-placement-D_J2-9CG.js";const ontoFooterCss=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}",OntoFooter=class{constructor(e){registerInstance(this,e),this.subscriptions=new SubscriptionList,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=service(ProductInfoContextService),this.securityContextService=service(SecurityContextService),this.licenseContextService=service(LicenseContextService),this.trackingService=service(TrackingService)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,t,o,i;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")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",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===(o=this.productInfo)||void 0===o?void 0:o.connectors," • Workbench ",null===(i=this.productInfo)||void 0===i?void 0:i.workbench," • © 2002–",this.currentYear," ",h("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",h("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&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 o=this.securityContextService.getIsLoggedIn(),i=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&&(i||o))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};OntoFooter.style=ontoFooterCss;const SelectorItemButton=({repository:e})=>h("div",{class:"repository-selector-dropdown-item"},h("i",{class:"item-icon icon-repo-"+e.type}),h("div",{class:"item-label"},h("div",{class:"repository-id"},e.id),h("div",{class:"repository-location"},e.location?e.location:"Local"))),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}",labelKeys$1={LOGO_LINK:"menu.logo.link.title"},OntoHeader=class{constructor(e){registerInstance(this,e),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new FibonacciGenerator,this.monitoringService=ServiceProvider.get(MonitoringService),this.repositoryContextService=ServiceProvider.get(RepositoryContextService),this.repositoryLocationContextService=ServiceProvider.get(RepositoryLocationContextService),this.repositoryService=ServiceProvider.get(RepositoryService),this.securityContextService=ServiceProvider.get(SecurityContextService),this.toastrService=ServiceProvider.get(OntoToastrService),this.namespacesService=ServiceProvider.get(NamespacesService),this.namespaceContextService=ServiceProvider.get(NamespacesContextService),this.languageService=ServiceProvider.get(LanguageService),this.authService=ServiceProvider.get(AuthenticationService),this.authorizationService=ServiceProvider.get(AuthorizationService),this.eventService=ServiceProvider.get(EventService),this.configurationContextService=ServiceProvider.get(ConfigurationContextService),this.runtimeConfigurationContextService=ServiceProvider.get(RuntimeConfigurationContextService),this.logger=LoggerProvider.logger,this.shouldShowSearch=!0,this.isHomePage=isHomePage(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new SubscriptionList,this.skipUpdateActiveOperationsTimes=0,this.labels={[labelKeys$1.LOGO_LINK]:TranslationService.translate(labelKeys$1.LOGO_LINK)},this.canWriteRepo=e=>this.canWriteRepoInLocation(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(TranslationService.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,HtmlUtil.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:ResourceSearchConstants.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.setupTotalRepositoryFormater(),this.setupExpansionRatioFormater(),this.subscribeToEvents(),this.currentRoute=getCurrentRoute(),this.startOperationPolling(),this.onTranslate(labelKeys$1.LOGO_LINK)}render(){var e,t;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"}}),(null===(e=this.activeOperations)||void 0===e?void 0:e.allRunningOperations.getItems().length)?h("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(t=this.license)||void 0===t?void 0:t.valid)?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?h("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?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(ServiceProvider.get(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(EventName.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=isHomePage(),this.currentRoute=getCurrentRoute(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(ServiceProvider.get(LanguageContextService).onSelectedLanguageChanged(e=>{this.setupTotalRepositoryFormater(e),this.setupExpansionRatioFormater(e)}))}onTranslate(e){this.subscriptions.add(TranslationService.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new 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 DropdownItem).setName(h(SelectorItemButton,{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,o;const i=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===(o=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===o?void 0:o.enabled;this.showLoginButton=i&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=i&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=WindowService.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{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"===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})}};OntoHeader.style=ontoHeaderCss;const ontoLoaderSvg="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgICAgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgICAgICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgICAgICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iCiAgICAgICAgdmlld0JveD0iMCAwIDUwIDUwIgogICAgICAgIGlkPSJzdmcyIgogICAgICAgIHZlcnNpb249IjEuMSIKICAgICAgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ4LjAgcjk2NTQiCiAgICAgICAgc29kaXBvZGk6ZG9jbmFtZT0ibmFtZXN2Zy5zdmciPgogICAgPGNpcmNsZSBjeD0iMjEuNSIgY3k9IjcuNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjBzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMzEiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjE1cyIgdmFsdWVzPSI0OyA4OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0IgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNyIgY3k9IjE1IiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuM3MiIHZhbHVlcz0iMjsgNDsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMiIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNDAuNSIgY3k9IjIzLjUiIHI9IjQuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjQ1cyIKICAgICAgICAgICAgICAgICB2YWx1ZXM9IjQuNTsgOTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjUiIGF0dHJpYnV0ZVR5cGU9IlhNTCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjM5IiBjeT0iMzMiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMC42cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNC41IiBjeT0iMzguNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuNzVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMjkiIGN5PSI0MiIgcj0iMiIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjlzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjIxLjUiIGN5PSI0Mi41IiByPSIyLjUiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS4wNXMiCiAgICAgICAgICAgICAgICAgdmFsdWVzPSIyLjU7IDU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41IiBhdHRyaWJ1dGVUeXBlPSJYTUwiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjM5IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMnMiIHZhbHVlcz0iNDsgODsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNyIgY3k9IjMyIiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMzVzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjUuNSIgY3k9IjI1LjUiIHI9IjIuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=",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}",OntoLoader=class{constructor(e){registerInstance(this,e),this.size=100,this.messageText="",this.rawSvg=atob(ontoLoaderSvg.split(",")[1])}render(){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)))}};OntoLoader.style=ontoLoaderCss;class NavbarToggledEvent{constructor(e){this.type="navbarToggled",this.payload=e}}class NavbarModel{constructor(e=[]){this._items=e}hasParent(e){return this._items.some(t=>e===t.label)}getModel(){const e=t=>{const o=t.children.map(e);return new NavbarItemModel(Object.assign(Object.assign({},t),{children:o}))};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=o=>{if(o.selected)return e=o,!0;if(o.children)for(const e of o.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 o;let i=e;(null===(o=t.href)||void 0===o?void 0:o.includes("*"))&&(i=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);i===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const o=e.split("/"),i=t.split("/");if(o.length!==i.length)return e;const n=[];for(let t=0;t<i.length;t++)if("*"===i[t])n.push("*");else{if(i[t]!==o[t])return e;n.push(i[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(NavbarModel.compare)}),this._items.sort(NavbarModel.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 o;t(e),(null===(o=e.children)||void 0===o?void 0:o.length)&&this.walkRecursively(e.children,t)})}get items(){return this._items}}class NavbarItemModel{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 logger=LoggerProvider.logger;class NavbarService{static map(e,t,o,i){const n=new NavbarModel;return NavbarService.setTopLevelMenuItems(e,n,t),NavbarService.setSubmenuItems(e,n,t),o&&NavbarService.addRepositoryIdToHrefAttributes(n,o,i),n.sorted()}static addRepositoryIdToHrefAttributes(e,t,o){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${o}=${t}`}):e.href=`${e.href}?${o}=${t}`})}static setTopLevelMenuItems(e,t,o){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?logger.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,o,e.children))})})}static setSubmenuItems(e,t,o){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const i=t.getTopLevelItem(e.parent);null==i||i.addChildren(this.toMenuItemModel(e,i,o,e.children))})})}static toMenuItemModel(e,t,o,i=[]){let n;e.documentationHref&&(n=UriUtil.resolveDocumentationUrl(null==o?void 0:o.shortVersion,e.documentationHref));const s=new NavbarItemModel({label:e.label,labelKey:e.labelKey,href:n||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}),r=i.map(e=>this.toMenuItemModel(e,s,o,e.children));return s.addChildren(...r),s}}const 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)}',labelKeys={EXPAND:"menu.buttons.expand",COLLAPSE:"menu.buttons.collapse"},OntoNavbar=class{constructor(e){registerInstance(this,e),this.navbarToggled=createEvent(this,"navbarToggled"),this.productInfoContextService=service(ProductInfoContextService),this.repositoryContextService=service(RepositoryContextService),this.subscriptions=new SubscriptionList,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[labelKeys.EXPAND]:TranslationService.translate(labelKeys.EXPAND),[labelKeys.COLLAPSE]:TranslationService.translate(labelKeys.COLLAPSE)},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 NavbarToggledEvent(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),o=NavbarService.map(e||[],this.productInfo,null==t?void 0:t.id,REPOSITORY_ID_PARAM);o.initSelected(getCurrentRoute()),this.menuModel=o}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?openInNewTab(t.href):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(ServiceProvider.get(EventService).subscribe(EventName.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),isHomePage()||this.menuModel.initSelected(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 NavbarToggledEvent(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 NavbarModel(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(TranslationService.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 o=e.closest(".menu-element");if(!o)return;const i=e.getBoundingClientRect(),n=o.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=i.height?l=a:r>=i.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(labelKeys.EXPAND),this.onTranslate(labelKeys.COLLAPSE),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 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(e=>h("li",{key:e.labelKey,class:{"menu-element":!0,open:e.open},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.children.length>0&&h(Fragment,null,h("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},h("span",{class:`menu-item-icon ${e.icon}`})," ",h("translate-label",{class:"menu-item",labelKey:e.labelKey})),h("ul",{class:"sub-menu"},h("li",{key:e.labelKey,class:"submenu-title"},h("translate-label",{labelKey:e.labelKey})),e.children.map(e=>h("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.documentationHref?h("a",{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"},h("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&h("span",{class:`text-muted ${e.icon}`})):h("a",{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},h("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&h("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&h("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},h("span",{class:`menu-item-icon ${e.icon}`})," ",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 getElement(this)}static get watchers(){return{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}}};OntoNavbar.style=ontoNavbarCss;const 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)}',OntoTooltip=class{constructor(e){registerInstance(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(TooltipUtil.getTooltipInstance(e))return TooltipUtil.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=TooltipUtil.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const o=TooltipUtil.getTooltip(e.target);o&&this.handleTooltipShow(o)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){TooltipUtil.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=TooltipUtil.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const o=TooltipUtil.getTooltip(e.target);o&&this.handleTooltipHide(o,e.relatedTarget)}handleTooltipHide(e,t){const o=e.tooltipTarget;o&&(t&&e.contains(t)||this.handleTooltipTargetHide(o,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||TooltipUtil.getTooltipInstance(e)&&TooltipUtil.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return h(Host,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};OntoTooltip.style=ontoTooltipCss;export{OntoFooter as onto_footer,OntoHeader as onto_header,OntoLoader as onto_loader,OntoNavbar as onto_navbar,OntoTooltip as onto_tooltip};
|