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
package/dist/shared-components/shared-components/{p-9214bb16.entry.js → p-6fb5eec5.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,a as e,g as r}from"./p-CGqARDX4.js";import{D as s,R as n}from"./p-CapzAxJp.js";import{ServiceProvider as i,LanguageService as a,LanguageContextService as l,navigateTo as c,OperationStatus as d,OperationGroup as p,SubscriptionList as u,EventService as h,ResourceSearchStorageService as g,UriUtil as b,SearchButtonConfig as w,SearchButton as v,openInNewTab as f,service as m,RepositoryContextService as y,AutocompleteService as k,AutocompleteContextService as x,AutocompleteStorageService as _,OntoToastrService as C,NamespacesContextService as z,SuggestionType as $,SuggestionSelectedPayload as S,Suggestion as R,getCurrentRoute as T,navigate as D,AuthenticationService as A}from"@ontotext/workbench-api";import{D as B}from"./p-DghTf3pJ.js";import{O as I}from"./p-D_J2-9CG.js";import{T as K}from"./p-nljGIprK.js";import{H as j}from"./p-C8DO915D.js";const L=class{constructor(t){o(this,t),this.languageService=i.get(a),this.languageContextService=i.get(l),this.items=[],this.dropdownAlignment=B.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(t=>this.changeLanguage(t)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var o,r;return t(e,{key:"7d42fb1b7033270442f3565520c95f1f071024d6"},t("onto-dropdown",{key:"28f71d775d7194f79191e2d12ae3e84ffbdf610c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(o=this.currentLanguage)&&void 0!==o?o:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(r=this.dropdownAlignment)&&void 0!==r?r:B.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return t=>this.onSelectedLanguageChanged(t)}changeLanguage(t){let e=t;e||(e=this.languageService.getDefaultLanguage()),this.currentLanguage=e,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(t){this.languageContextService.updateSelectedLanguage(t.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(t=>{const e=this.currentLanguage===t?"ri-check-line":"";return(new s).setNameLabelKey(`language_selector.language.${t}.label`).setTooltipLabelKey(`language_selector.language.${t}.tooltip.`+(this.currentLanguage===t?"selected":"not_selected")).setIconClass(e).setCssClass(t).setValue(t)})}};L.style=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}";const E=class{constructor(t){o(this,t)}render(){var o;return t(e,{key:"8a1a9ad6ea4b4e336499d38588fdc373c2cd71a4","tooltip-content":null===(o=this.license)||void 0===o?void 0:o.message,"tooltip-placement":I.BOTTOM,"data-test":"onto-license-alert"},t("button",{key:"4584d26858a08aae7238260d1e8d994f3cf84199",class:"onto-license-alert onto-btn",onClick:c("license")},t("span",{key:"6bc7adea570d54f5af32885a8705bf4efa2cc430",class:"ri-alert-line"}),t("translate-label",{key:"86f42bc0a3bd42f5bb5678dd02fa5a66eb7fa1de",labelKey:"license_alert.label"})))}};E.style=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}";const V={[p.BACKUP]:"ri-archive-line",[p.QUERY]:"ri-arrow-left-right-line",[p.CLUSTER]:"ri-organization-chart",[p.IMPORT]:"icon-import"},H={[d.WARNING]:"status-warning",[d.INFORMATION]:"status-information",[d.CRITICAL]:"status-critical"},N={[d.WARNING]:"onto-btn-fade-warning",[d.CRITICAL]:"onto-btn-fade-danger"},O=class{constructor(t){o(this,t),this.isOpen=!1,this.toggleDropdown=t=>{t.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),t("section",{key:"f1d9e777583a1774818846fdeb5244d85518e0ca",class:"operations-statuses"},t("button",{key:"82ede64d5fcb045f1612f79c5a1bd402e9081491",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=N[this.activeOperations.status])&&void 0!==e?e:""}`,onClick:this.toggleDropdown},this.operationGroups.getItems().map(e=>t("section",{key:e.id,class:"operation-status-header"},t("i",{class:`operation-status-icon icon-1-33x ${V[e.group]} ${H[e.status]}`}),e.totalOperations?t("sup",{class:"running-operation-count"},e.totalOperations):"")),t("i",{key:"0f1c0118cafffcf59c7988efc6617a07e9e11088",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen&&t("ul",{key:"9a86f8e65e9fbfc9338c131e6a290b9ef95168bc",class:"operations-dropdown"},t("section",{key:"c03491fc69387608ead8aaf5faefeb4a159f79d5",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>t("li",{key:e.id},t("a",{class:`operation-status-content onto-btn no-underline ${H[e.status]}`,target:"_blank",onClick:c(e.href)},t("i",{class:V[e.group]}),t("span",{class:"operation-status-label"},t("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),t("span",{class:"operation-number"},e.count?t("span",{class:"operation-status-running-operation-count"},e.count):"")))))))}get el(){return r(this)}};O.style=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus{outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:600}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;-moz-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;-webkit-transition:all 150ms ease-out;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:600}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}";const F=class{constructor(t){o(this,t),this.subscriptions=new u,this.eventService=i.get(h),this.resourceSearchStorageService=i.get(g),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=b.RESOURCE_URL}handleClick(t){var e;this.isOpen&&((null===(e=this.rdfSearchRef)||void 0===e?void 0:e.contains(t.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.focusSearchInput()}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return t("section",{key:"ab853ae8835280311974ada17bd83593d084f2c4",ref:t=>this.rdfSearchRef=t,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},t("section",{key:"fde7d09d0d3a796c7b5313d706f5e3892975c8fd",class:"search-area "+(this.isOpen?"visible":"invisible")},t("i",{key:"0bd9a120019ff2efb4d906d6ba3c228b446a3831",onClick:this.setIsOpen(!1),"tooltip-content":K.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":I.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"ri-close-line close-btn"}),t("onto-search-resource-input",{key:"281a7105140989c1fc624827f1acb5e3e1f7e305",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":t("onto-search-icon",{onClick:this.setIsOpen(!0)}))}setIsOpen(t){return()=>{this.isOpen=t,this.isOpen&&this.loadSelectedViewFromStorage()}}createButtonConfig(){return new w({isRadio:!0,buttons:[this.createSearchButton(n.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=b.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(n.TABLE_VIEW)},!0),this.createSearchButton(n.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=b.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(n.VISUAL_VIEW)},!1)]})}createSearchButton(t,e,o,r){return new v({label:K.translate(e),id:t,callback:o,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(n.SUGGESTION_SELECTED_EVENT,t=>{if(t.getContext()===this.RDF_CONTEXT){const e=t.getSuggestion().getOverrideToVisual()?b.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;f(b.createAutocompleteRedirect(e,t.getSuggestion().getValue()))}}))}onKeyDown(){return t=>{"Escape"===t.key&&(this.isOpen=!1)}}focusSearchInput(){this.isOpen&&j.focusElement(`#${this.RDF_CONTEXT}`)}loadSelectedViewFromStorage(){const t=this.resourceSearchStorageService.getSelectedView();if(t){const e=this.buttonConfig.getButtons().find(e=>e.id===t);e&&(this.buttonConfig=this.buttonConfig.selectButton(e))}}};F.style=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:300;max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;-webkit-transition:top 0.3s ease-in, opacity 0.5s ease;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;font-size:1.5rem}.onto-rdf-search i{cursor:pointer;color:var(--gw-button-tertiary-icon-color);transition:all 0.15s ease-out}.onto-rdf-search i.ri-search-line,.onto-rdf-search i.close-btn{padding:0.5rem 0.8rem}.onto-rdf-search i:hover{transform:scale(1.2)}";const G=({repository:e,defaultToggleButtonName:o,location:r})=>{var s;return t("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&t("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",null!==(s=null==e?void 0:e.id)&&void 0!==s?s:o,r)},M=class{constructor(t){o(this,t),this.repositoryContextService=m(y),this.subscriptions=[]}onItemsChanged(t){this.dropdownItems=(null==t?void 0:t.length)?this.attachTooltipsToItems(this.items):[]}connectedCallback(){var t;this.subscriptions.push(...this.subscribeToTranslationChanged()),this.dropdownItems=(null===(t=this.items)||void 0===t?void 0:t.length)?this.attachTooltipsToItems(this.items):[]}disconnectedCallback(){this.subscriptions.forEach(t=>t())}render(){const o=t(G,{key:"eeaf798b50c245f6e3946e27d66522a478af8df5",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return t(e,{key:"285be46de66e76663616f0a686e04a93cff42e2e"},t("onto-dropdown",Object.assign({key:"cf65ea18aa3a96791bd2f810d20ef7c966bacf2f",class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:o,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:B.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",items:this.dropdownItems,"auto-close":!0})))}attachTooltipsToItems(t){return t?t.map(t=>t.setTooltip(this.createTooltipFunctionForRepository(t.value))):[]}tooltipAlignment(t){return t?I.LEFT:I.BOTTOM}onValueChanged(){return t=>this.onRepositoryChanged(t.detail)}createTooltipFunctionForRepository(t){return async()=>{if(!t)return"";const e=await this.repositorySizeInfoFetcher(t);return this.buildRepositoryTooltipHtml(t,e)}}buildRepositoryTooltipHtml(t,e){let o=`\n <div class="repository-tooltip-title">\n <span class="label">${K.translate("repository-selector.tooltip.repository")}</span>\n <span class="value">${t.id}</span>\n </div>\n <div class="repository-tooltip-content">\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.location")}:</div>\n <div class="value">${t.location?t.location:K.translate("repository-selector.tooltip.local")}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.type")}:</div>\n <div class="value">${K.translate("repository-selector.tooltip.types."+(t.type||"unknown"))}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.access")}:</div>\n <div class="value">${K.translate(this.canWriteRepo(t)?"repository-selector.tooltip.accesses.read_write":"repository-selector.tooltip.accesses.read")}</div>\n </div>`;return o+=this.buildRepositorySizeInfoHtml(e),o+="</div>",o}buildRepositorySizeInfoHtml(t){if(!t||t.total<0)return"";let e=`\n <div class="repository-tooltip-row total">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.total")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.total)}</div>\n </div>`;if(t.explicit>=0&&(e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.explicit")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.explicit)}</div>\n </div>`),t.inferred>=0&&(e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.inferred")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.inferred)}</div>\n </div>`),t.total>=0){let o="-";t.explicit>0&&(o=this.expansionRatioFormatter.format(t.total/t.explicit)),e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.expansion_ratio")}:</div>\n <div class="value">${o}</div>\n </div>`}return e}subscribeToTranslationChanged(){return[K.onTranslate("repository-selector.btn.toggle",[],t=>{this.defaultToggleButtonName=t}),K.onTranslate("repository-selector.btn.no_repositories",[],t=>{this.noRepositoriesButtonMessage=t})]}onRepositoryChanged(t){this.repositoryContextService.updateSelectedRepository(t)}getLocation(){var t;return(null===(t=this.currentRepository)||void 0===t?void 0:t.location)?`@${b.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var t;return(null===(t=this.items)||void 0===t?void 0:t.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:[{onItemsChanged:0}]}}};M.style=":host{display:block}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;display:inline-block;vertical-align:middle;text-align:left}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:0.75em}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{font-weight:300;font-size:0.75em;margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.tooltip-box[data-theme=light-border]{color:var(--gw-dialog-color) !important;background-color:var(--gw-dialog-background) !important;border:1px solid var(--gw-dialog-border-color) !important;box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color);max-width:350px;opacity:1 !important}.tooltip-box[data-theme=light-border] .tooltip-arrow::before{border:1px solid var(--gw-dialog-border-color);background-color:var(--gw-dialog-background)}.tooltip-box[data-theme=light-border] .tooltip-content{padding:0}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-title{font-size:1rem;font-weight:400;padding:8px 14px;background-color:var(--gw-dialog-background);border-bottom:var(--gw-dialog-border-color) 1px solid}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-title .value{overflow-wrap:break-word}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-content{background-color:var(--gw-dialog-background);padding:1.5rem 0.5rem;display:flex;flex-direction:column;gap:0.8em;font-weight:400;font-size:0.875rem}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row{display:flex;flex-direction:row;justify-content:space-between}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row.total{margin-top:1.2em}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row .value{margin-left:0.6em}";const U=class{constructor(t){o(this,t),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new u}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return t("i",{key:"36c552ab017abc9d3b76ca47ff3a8202f243f10d","tooltip-content":this.tooltipLabel,"tooltip-placement":I.BOTTOM,class:"onto-search-icon ri-search-line ri-lg"})}onTooltipChange(){this.subscriptions.add(K.onTranslate(this.tooltipKey,[],t=>this.tooltipLabel=t))}};U.style=".onto-search-icon{cursor:pointer;color:var(--gw-button-tertiary-icon-color);transition:all 0.15s ease-out}.onto-search-icon.ri-search-line{padding:0.5rem 0.8rem}.onto-search-icon:hover{transform:scale(1.2)}";const J=class{constructor(t){o(this,t),this.autocompleteService=i.get(k),this.autocompleteContextService=i.get(x),this.autocompleteStorageService=i.get(_),this.resourceSearchStorageService=i.get(g),this.toastrService=i.get(C),this.eventService=i.get(h),this.namespaceContextService=i.get(z),this.subscriptions=new u,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=t=>{const e=t.target;e.value?(this.setInputValue(e.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.onKeyDown=t=>{switch(t.key){case"Enter":this.onEnter(t);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(t);break;case"ArrowDown":this.onArrowDown(t)}}}onVisibilityChange(t){var e;t?null===(e=this.searchResult)||void 0===e||e.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,r;return t("section",{key:"07393acc0648ecd5859d053d6769ece464b9c664",class:"search-resources-input"},t("div",{key:"9c95b8ca64d8334472d14518845a8c16a9568335",class:"input-row"},t("span",{key:"0efbbe550fadf44dfab837e05ce8857c724d5da7",class:"input-wrapper"},t("input",{key:"c55ffa901d87dd7569c1e55b5fb7e6689855f6d1",value:this.inputValue,id:this.context,type:"text",autocomplete:"off",placeholder:`${K.translate("rdf_search.labels.search")}...`,ref:t=>this.inputRef=t,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(e=this.inputValue)||void 0===e?void 0:e.length)?t("i",{onClick:this.clearInput,"tooltip-content":K.translate("rdf_search.tooltips.clear"),"tooltip-placement":I.BOTTOM,class:"ri-close-line clear-input"}):""),null===(o=this.buttonConfig)||void 0===o?void 0:o.getButtons().getItems().map(e=>t("button",{key:e.label,onClick:this.handleButtonClick(e),class:e.selected?"selected":""},e.label))),t("span",{key:"94fa466d5f73e84247ac8efc45c12980f052a2b1",class:"hint"},K.translate("rdf_search.labels.hint")),t("section",{key:"b4d9379572bdfa66bc16b8218e86128a6807f399",class:"autocomplete-results-wrapper","data-test":"onto-autocomplete-results"},null===(r=this.searchResult)||void 0===r?void 0:r.suggestions.getItems().map(e=>t("p",{key:e.getId(),onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}handleButtonClick(t){return()=>this.buttonConfig=this.buttonConfig.selectButton(t)}loadAutocompleteResults(){var t;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(t=>{this.onResultsReceived(t)}):null===(t=this.searchResult)||void 0===t||t.clearSuggestions()}hoverSuggestion(t){return()=>this.searchResult=this.searchResult.hoverSuggestion(t)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(t=>{this.isAutocompleteEnabled=null!=t?t:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const t=K.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: 500">${t}</a>`,{onClick:c("autocomplete"),removeOnClick:!0})}}onSuggestionClick(t){return e=>{t.setOverrideToVisual(e.ctrlKey||e.metaKey),this.searchRdfResource(t)}}searchRdfResource(t){t.getType()===$.PREFIX?this.expandPrefix(t):(this.notifyRdfResourceSelected(t),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(t))}notifyRdfResourceSelected(t){var e;this.searchResult=null===(e=this.searchResult)||void 0===e?void 0:e.selectSuggestion(t),this.eventService.emit({NAME:n.SUGGESTION_SELECTED_EVENT,payload:new S(t,this.context)})}expandPrefix(t){this.setInputValue(this.namespaces.getByPrefix(t.getValue())),this.inputRef.focus()}setInputValue(t){this.inputValue=t,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(t=>{this.namespaces=t}))}onEnter(t){var e;let o=null===(e=this.searchResult)||void 0===e?void 0:e.getHoveredSuggestion();o||(o=new R({value:b.removeAngleBrackets(this.inputValue),type:$.URI})),o.setOverrideToVisual(t.ctrlKey||t.metaKey),this.validateAndSearch(o)}onArrowUp(t){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(t))}onArrowDown(t){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(t))}displaySuggestion(t){t.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(t){return t.getType()===$.PREFIX?this.namespaces.getByPrefix(t.getValue()):t.getValue()}scrollToSuggestionBySelector(t,e){j.waitForElement(t).then(()=>{j.scrollElementIntoView(t,e)})}validateAndSearch(t){if(!this.skipValidation){if(!t.getValue())return void this.toastrService.error(K.translate("rdf_search.toasts.empty_input"));if(!b.isValidUri(this.getSuggestionValue(t)))return void this.toastrService.error(K.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(t)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(t){const e=null==t?void 0:t.getByValue(this.resourceSearchStorageService.getLastSelectedValue());e&&this.preserveSearch?(t.hoverSuggestion(e),this.searchResult=t.selectSuggestion(e),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=t.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:[{onVisibilityChange:0}]}}};J.style=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row i.ri-close-line{position:absolute;right:10px;top:7px;z-index:10;font-size:1.6rem}.search-resources-input .input-row button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;transition:all 0.15s ease-out;user-select:none;border:1px solid transparent;padding:0.5rem 1rem;font-size:1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background)}.search-resources-input .input-row button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color)}.search-resources-input .input-row button:focus{outline:none}.search-resources-input .input-row button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;line-height:1.5;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}";const P=class{constructor(t){o(this,t)}navigateToLogin(){return t=>{t.preventDefault();const e=encodeURIComponent(T());D(`login?r=${encodeURIComponent(e)}`)}}render(){return t("section",{key:"56843d38290568346cfd746fd71958113436cd94",class:"onto-user-login"},t("button",{key:"3166bbb91655243194c992101ede66d6bd3ab4c7",onClick:this.navigateToLogin()},t("i",{key:"e562126298532327c4b5c0a59cf4223c2e466fe6",class:"ri-arrow-right-circle-line"}),t("translate-label",{key:"ecd6d795c44eac7c22291350cf7f297f00870ad6",class:"user-login-label",labelKey:"user_menu.login"})))}};P.style=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus{outline:none}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}";const q=class{constructor(t){o(this,t),this.authenticationService=m(A),this.logout=()=>{this.authenticationService.logout()},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=t=>{this.isOpen&&!this.hostElement.contains(t.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return t("section",{key:"12259fc1a98c0194a5bdd9846ff2e78715d4704c",class:"onto-user-menu"},t("div",{key:"b63d9259ebfe7856a1ece71e03cab280225e8757",class:"dropdown-toggle-wrapper",onClick:this.toggleDropdown},t("button",{key:"514abf4b023aecfec9ddf3b02e77368640b7d554",class:this.isOpen?"open":""},t("i",{key:"aefc12e677d20783f339d4c88afed959dc8435a4",class:"ri-user-line ri-lg"}),t("span",{key:"2cf215fc53e15b526a43c78026e4b9cfa499730e",class:"username"},this.user.username),t("i",{key:"4e514af450f4eb9817e024f993033c3094e17cfd",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen?t("section",{class:"onto-user-menu-dropdown"},t("translate-label",{onClick:c("settings"),labelKey:"user_menu.my_settings"}),this.authenticationService.isExternalUser()?"":t("translate-label",{onClick:this.logout,labelKey:"user_menu.logout"})):""))}get hostElement(){return r(this)}};q.style=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu button{display:flex;flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu button .ri-user-line,.onto-user-menu button .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu button:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button:focus{outline:none}.onto-user-menu button.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu button.open .ri-user-line,.onto-user-menu button.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu button.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu button.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button .username{padding:0 5px}.onto-user-menu button i{transition:0.15s ease-out}.onto-user-menu button i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;font-size:1rem;width:100%;color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-dropdown translate-label{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font-weight:400}.onto-user-menu .onto-user-menu-dropdown translate-label: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)}";export{L as onto_language_selector,E as onto_license_alert,O as onto_operations_notification,F as onto_rdf_search,M as onto_repository_selector,U as onto_search_icon,J as onto_search_resource_input,P as onto_user_login,q as onto_user_menu};
|
|
1
|
+
import{r as o,h as t,a as e,c as r}from"./p-EiAqSNMq.js";import{D as s,R as n}from"./p-CapzAxJp.js";import{ServiceProvider as i,LanguageService as a,LanguageContextService as l,navigateTo as c,OperationStatus as d,OperationGroup as p,SubscriptionList as u,EventService as h,ResourceSearchStorageService as g,UriUtil as b,SearchButtonConfig as w,SearchButton as v,openInNewTab as f,service as m,RepositoryContextService as y,AutocompleteService as k,AutocompleteContextService as x,AutocompleteStorageService as _,OntoToastrService as C,NamespacesContextService as z,SuggestionType as $,SuggestionSelectedPayload as S,Suggestion as T,getCurrentRoute as R,navigate as A,AuthenticationService as D}from"@ontotext/workbench-api";import{D as B}from"./p-DghTf3pJ.js";import{O as I}from"./p-D_J2-9CG.js";import{T as K}from"./p-nljGIprK.js";import{H as j}from"./p-C8DO915D.js";const L=class{constructor(t){o(this,t),this.languageService=i.get(a),this.languageContextService=i.get(l),this.items=[],this.dropdownAlignment=B.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(t=>this.changeLanguage(t)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var o,r;return t(e,{key:"7d42fb1b7033270442f3565520c95f1f071024d6"},t("onto-dropdown",{key:"28f71d775d7194f79191e2d12ae3e84ffbdf610c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(o=this.currentLanguage)&&void 0!==o?o:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(r=this.dropdownAlignment)&&void 0!==r?r:B.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return t=>this.onSelectedLanguageChanged(t)}changeLanguage(t){let e=t;e||(e=this.languageService.getDefaultLanguage()),this.currentLanguage=e,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(t){this.languageContextService.updateSelectedLanguage(t.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(t=>{const e=this.currentLanguage===t?"ri-check-line":"";return(new s).setNameLabelKey(`language_selector.language.${t}.label`).setTooltipLabelKey(`language_selector.language.${t}.tooltip.`+(this.currentLanguage===t?"selected":"not_selected")).setIconClass(e).setCssClass(t).setValue(t)})}};L.style=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}";const E=class{constructor(t){o(this,t)}render(){var o;return t(e,{key:"8a1a9ad6ea4b4e336499d38588fdc373c2cd71a4","tooltip-content":null===(o=this.license)||void 0===o?void 0:o.message,"tooltip-placement":I.BOTTOM,"data-test":"onto-license-alert"},t("button",{key:"4584d26858a08aae7238260d1e8d994f3cf84199",class:"onto-license-alert onto-btn",onClick:c("license")},t("span",{key:"6bc7adea570d54f5af32885a8705bf4efa2cc430",class:"ri-alert-line"}),t("translate-label",{key:"86f42bc0a3bd42f5bb5678dd02fa5a66eb7fa1de",labelKey:"license_alert.label"})))}};E.style=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}";const N={[p.BACKUP]:"ri-archive-line",[p.QUERY]:"ri-arrow-left-right-line",[p.CLUSTER]:"ri-organization-chart",[p.IMPORT]:"icon-import"},V={[d.WARNING]:"status-warning",[d.INFORMATION]:"status-information",[d.CRITICAL]:"status-critical"},H={[d.WARNING]:"onto-btn-fade-warning",[d.CRITICAL]:"onto-btn-fade-danger"},O=class{constructor(t){o(this,t),this.isOpen=!1,this.toggleDropdown=t=>{t.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),t("section",{key:"f1d9e777583a1774818846fdeb5244d85518e0ca",class:"operations-statuses"},t("button",{key:"82ede64d5fcb045f1612f79c5a1bd402e9081491",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=H[this.activeOperations.status])&&void 0!==e?e:""}`,onClick:this.toggleDropdown},this.operationGroups.getItems().map(e=>t("section",{key:e.id,class:"operation-status-header"},t("i",{class:`operation-status-icon icon-1-33x ${N[e.group]} ${V[e.status]}`}),e.totalOperations?t("sup",{class:"running-operation-count"},e.totalOperations):"")),t("i",{key:"0f1c0118cafffcf59c7988efc6617a07e9e11088",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen&&t("ul",{key:"9a86f8e65e9fbfc9338c131e6a290b9ef95168bc",class:"operations-dropdown"},t("section",{key:"c03491fc69387608ead8aaf5faefeb4a159f79d5",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>t("li",{key:e.id},t("a",{class:`operation-status-content onto-btn no-underline ${V[e.status]}`,target:"_blank",onClick:c(e.href)},t("i",{class:N[e.group]}),t("span",{class:"operation-status-label"},t("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),t("span",{class:"operation-number"},e.count?t("span",{class:"operation-status-running-operation-count"},e.count):"")))))))}get el(){return r(this)}};O.style=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus{outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:600}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;-moz-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;-webkit-transition:all 150ms ease-out;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:600}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}";const F=class{constructor(t){o(this,t),this.subscriptions=new u,this.eventService=i.get(h),this.resourceSearchStorageService=i.get(g),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=b.RESOURCE_URL}handleClick(t){var e;this.isOpen&&((null===(e=this.rdfSearchRef)||void 0===e?void 0:e.contains(t.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.focusSearchInput()}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return t("section",{key:"ab853ae8835280311974ada17bd83593d084f2c4",ref:t=>this.rdfSearchRef=t,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},t("section",{key:"fde7d09d0d3a796c7b5313d706f5e3892975c8fd",class:"search-area "+(this.isOpen?"visible":"invisible")},t("i",{key:"0bd9a120019ff2efb4d906d6ba3c228b446a3831",onClick:this.setIsOpen(!1),"tooltip-content":K.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":I.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"ri-close-line close-btn"}),t("onto-search-resource-input",{key:"281a7105140989c1fc624827f1acb5e3e1f7e305",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":t("onto-search-icon",{onClick:this.setIsOpen(!0)}))}setIsOpen(t){return()=>{this.isOpen=t,this.isOpen&&this.loadSelectedViewFromStorage()}}createButtonConfig(){return new w({isRadio:!0,buttons:[this.createSearchButton(n.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=b.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(n.TABLE_VIEW)},!0),this.createSearchButton(n.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=b.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(n.VISUAL_VIEW)},!1)]})}createSearchButton(t,e,o,r){return new v({label:K.translate(e),id:t,callback:o,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(n.SUGGESTION_SELECTED_EVENT,t=>{if(t.getContext()===this.RDF_CONTEXT){const e=t.getSuggestion().getOverrideToVisual()?b.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;f(b.createAutocompleteRedirect(e,t.getSuggestion().getValue()))}}))}onKeyDown(){return t=>{"Escape"===t.key&&(this.isOpen=!1)}}focusSearchInput(){this.isOpen&&j.focusElement(`#${this.RDF_CONTEXT}`)}loadSelectedViewFromStorage(){const t=this.resourceSearchStorageService.getSelectedView();if(t){const e=this.buttonConfig.getButtons().find(e=>e.id===t);e&&(this.buttonConfig=this.buttonConfig.selectButton(e))}}};F.style=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:300;max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;-webkit-transition:top 0.3s ease-in, opacity 0.5s ease;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;font-size:1.5rem}.onto-rdf-search i{cursor:pointer;color:var(--gw-button-tertiary-icon-color);transition:all 0.15s ease-out}.onto-rdf-search i.ri-search-line,.onto-rdf-search i.close-btn{padding:0.5rem 0.8rem}.onto-rdf-search i:hover{transform:scale(1.2)}";const M=({repository:e,defaultToggleButtonName:o,location:r})=>{var s;return t("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&t("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",null!==(s=null==e?void 0:e.id)&&void 0!==s?s:o,r)},U=class{constructor(t){o(this,t),this.repositoryContextService=m(y),this.subscriptions=[]}onItemsChanged(t){this.dropdownItems=(null==t?void 0:t.length)?this.attachTooltipsToItems(this.items):[]}connectedCallback(){var t;this.subscriptions.push(...this.subscribeToTranslationChanged()),this.dropdownItems=(null===(t=this.items)||void 0===t?void 0:t.length)?this.attachTooltipsToItems(this.items):[]}disconnectedCallback(){this.subscriptions.forEach(t=>t())}render(){const o=t(M,{key:"eeaf798b50c245f6e3946e27d66522a478af8df5",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return t(e,{key:"285be46de66e76663616f0a686e04a93cff42e2e"},t("onto-dropdown",Object.assign({key:"cf65ea18aa3a96791bd2f810d20ef7c966bacf2f",class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:o,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:B.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",items:this.dropdownItems,"auto-close":!0})))}attachTooltipsToItems(t){return t?t.map(t=>t.setTooltip(this.createTooltipFunctionForRepository(t.value))):[]}tooltipAlignment(t){return t?I.LEFT:I.BOTTOM}onValueChanged(){return t=>this.onRepositoryChanged(t.detail)}createTooltipFunctionForRepository(t){return async()=>{if(!t)return"";const e=await this.repositorySizeInfoFetcher(t);return this.buildRepositoryTooltipHtml(t,e)}}buildRepositoryTooltipHtml(t,e){let o=`\n <div class="repository-tooltip-title">\n <span class="label">${K.translate("repository-selector.tooltip.repository")}</span>\n <span class="value">${t.id}</span>\n </div>\n <div class="repository-tooltip-content">\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.location")}:</div>\n <div class="value">${t.location?t.location:K.translate("repository-selector.tooltip.local")}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.type")}:</div>\n <div class="value">${K.translate("repository-selector.tooltip.types."+(t.type||"unknown"))}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.access")}:</div>\n <div class="value">${K.translate(this.canWriteRepo(t)?"repository-selector.tooltip.accesses.read_write":"repository-selector.tooltip.accesses.read")}</div>\n </div>`;return o+=this.buildRepositorySizeInfoHtml(e),o+="</div>",o}buildRepositorySizeInfoHtml(t){if(!t||t.total<0)return"";let e=`\n <div class="repository-tooltip-row total">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.total")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.total)}</div>\n </div>`;if(t.explicit>=0&&(e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.explicit")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.explicit)}</div>\n </div>`),t.inferred>=0&&(e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.inferred")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(t.inferred)}</div>\n </div>`),t.total>=0){let o="-";t.explicit>0&&(o=this.expansionRatioFormatter.format(t.total/t.explicit)),e+=`\n <div class="repository-tooltip-row">\n <div class="label">${K.translate("repository-selector.tooltip.repository-size.expansion_ratio")}:</div>\n <div class="value">${o}</div>\n </div>`}return e}subscribeToTranslationChanged(){return[K.onTranslate("repository-selector.btn.toggle",[],t=>{this.defaultToggleButtonName=t}),K.onTranslate("repository-selector.btn.no_repositories",[],t=>{this.noRepositoriesButtonMessage=t})]}onRepositoryChanged(t){this.repositoryContextService.updateSelectedRepository(t)}getLocation(){var t;return(null===(t=this.currentRepository)||void 0===t?void 0:t.location)?`@${b.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var t;return(null===(t=this.items)||void 0===t?void 0:t.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};U.style=":host{display:block}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;display:inline-block;vertical-align:middle;text-align:left}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:0.75em}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{font-weight:300;font-size:0.75em;margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.tooltip-box[data-theme=light-border]{color:var(--gw-dialog-color) !important;background-color:var(--gw-dialog-background) !important;border:1px solid var(--gw-dialog-border-color) !important;box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color);max-width:350px;opacity:1 !important}.tooltip-box[data-theme=light-border] .tooltip-arrow::before{border:1px solid var(--gw-dialog-border-color);background-color:var(--gw-dialog-background)}.tooltip-box[data-theme=light-border] .tooltip-content{padding:0}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-title{font-size:1rem;font-weight:400;padding:8px 14px;background-color:var(--gw-dialog-background);border-bottom:var(--gw-dialog-border-color) 1px solid}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-title .value{overflow-wrap:break-word}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-content{background-color:var(--gw-dialog-background);padding:1.5rem 0.5rem;display:flex;flex-direction:column;gap:0.8em;font-weight:400;font-size:0.875rem}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row{display:flex;flex-direction:row;justify-content:space-between}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row.total{margin-top:1.2em}.tooltip-box[data-theme=light-border] .tooltip-content .repository-tooltip-row .value{margin-left:0.6em}";const G=class{constructor(t){o(this,t),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new u}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return t("i",{key:"36c552ab017abc9d3b76ca47ff3a8202f243f10d","tooltip-content":this.tooltipLabel,"tooltip-placement":I.BOTTOM,class:"onto-search-icon ri-search-line ri-lg"})}onTooltipChange(){this.subscriptions.add(K.onTranslate(this.tooltipKey,[],t=>this.tooltipLabel=t))}};G.style=".onto-search-icon{cursor:pointer;color:var(--gw-button-tertiary-icon-color);transition:all 0.15s ease-out}.onto-search-icon.ri-search-line{padding:0.5rem 0.8rem}.onto-search-icon:hover{transform:scale(1.2)}";const J=class{constructor(t){o(this,t),this.autocompleteService=i.get(k),this.autocompleteContextService=i.get(x),this.autocompleteStorageService=i.get(_),this.resourceSearchStorageService=i.get(g),this.toastrService=i.get(C),this.eventService=i.get(h),this.namespaceContextService=i.get(z),this.subscriptions=new u,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=t=>{const e=t.target;e.value?(this.setInputValue(e.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.onKeyDown=t=>{switch(t.key){case"Enter":this.onEnter(t);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(t);break;case"ArrowDown":this.onArrowDown(t)}}}onVisibilityChange(t){var e;t?null===(e=this.searchResult)||void 0===e||e.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,r;return t("section",{key:"07393acc0648ecd5859d053d6769ece464b9c664",class:"search-resources-input"},t("div",{key:"9c95b8ca64d8334472d14518845a8c16a9568335",class:"input-row"},t("span",{key:"0efbbe550fadf44dfab837e05ce8857c724d5da7",class:"input-wrapper"},t("input",{key:"c55ffa901d87dd7569c1e55b5fb7e6689855f6d1",value:this.inputValue,id:this.context,type:"text",autocomplete:"off",placeholder:`${K.translate("rdf_search.labels.search")}...`,ref:t=>this.inputRef=t,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(e=this.inputValue)||void 0===e?void 0:e.length)?t("i",{onClick:this.clearInput,"tooltip-content":K.translate("rdf_search.tooltips.clear"),"tooltip-placement":I.BOTTOM,class:"ri-close-line clear-input"}):""),null===(o=this.buttonConfig)||void 0===o?void 0:o.getButtons().getItems().map(e=>t("button",{key:e.label,onClick:this.handleButtonClick(e),class:e.selected?"selected":""},e.label))),t("span",{key:"94fa466d5f73e84247ac8efc45c12980f052a2b1",class:"hint"},K.translate("rdf_search.labels.hint")),t("section",{key:"b4d9379572bdfa66bc16b8218e86128a6807f399",class:"autocomplete-results-wrapper","data-test":"onto-autocomplete-results"},null===(r=this.searchResult)||void 0===r?void 0:r.suggestions.getItems().map(e=>t("p",{key:e.getId(),onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}handleButtonClick(t){return()=>this.buttonConfig=this.buttonConfig.selectButton(t)}loadAutocompleteResults(){var t;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(t=>{this.onResultsReceived(t)}):null===(t=this.searchResult)||void 0===t||t.clearSuggestions()}hoverSuggestion(t){return()=>this.searchResult=this.searchResult.hoverSuggestion(t)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(t=>{this.isAutocompleteEnabled=null!=t?t:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const t=K.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: 500">${t}</a>`,{onClick:c("autocomplete"),removeOnClick:!0})}}onSuggestionClick(t){return e=>{t.setOverrideToVisual(e.ctrlKey||e.metaKey),this.searchRdfResource(t)}}searchRdfResource(t){t.getType()===$.PREFIX?this.expandPrefix(t):(this.notifyRdfResourceSelected(t),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(t))}notifyRdfResourceSelected(t){var e;this.searchResult=null===(e=this.searchResult)||void 0===e?void 0:e.selectSuggestion(t),this.eventService.emit({NAME:n.SUGGESTION_SELECTED_EVENT,payload:new S(t,this.context)})}expandPrefix(t){this.setInputValue(this.namespaces.getByPrefix(t.getValue())),this.inputRef.focus()}setInputValue(t){this.inputValue=t,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(t=>{this.namespaces=t}))}onEnter(t){var e;let o=null===(e=this.searchResult)||void 0===e?void 0:e.getHoveredSuggestion();o||(o=new T({value:b.removeAngleBrackets(this.inputValue),type:$.URI})),o.setOverrideToVisual(t.ctrlKey||t.metaKey),this.validateAndSearch(o)}onArrowUp(t){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(t))}onArrowDown(t){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(t))}displaySuggestion(t){t.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(t){return t.getType()===$.PREFIX?this.namespaces.getByPrefix(t.getValue()):t.getValue()}scrollToSuggestionBySelector(t,e){j.waitForElement(t).then(()=>{j.scrollElementIntoView(t,e)})}validateAndSearch(t){if(!this.skipValidation){if(!t.getValue())return void this.toastrService.error(K.translate("rdf_search.toasts.empty_input"));if(!b.isValidUri(this.getSuggestionValue(t)))return void this.toastrService.error(K.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(t)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(t){const e=null==t?void 0:t.getByValue(this.resourceSearchStorageService.getLastSelectedValue());e&&this.preserveSearch?(t.hoverSuggestion(e),this.searchResult=t.selectSuggestion(e),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=t.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};J.style=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row i.ri-close-line{position:absolute;right:10px;top:7px;z-index:10;font-size:1.6rem}.search-resources-input .input-row button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;transition:all 0.15s ease-out;user-select:none;border:1px solid transparent;padding:0.5rem 1rem;font-size:1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background)}.search-resources-input .input-row button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color)}.search-resources-input .input-row button:focus{outline:none}.search-resources-input .input-row button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;line-height:1.5;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}";const q=class{constructor(t){o(this,t)}navigateToLogin(){return t=>{t.preventDefault();const e=encodeURIComponent(R());A(`login?r=${encodeURIComponent(e)}`)}}render(){return t("section",{key:"56843d38290568346cfd746fd71958113436cd94",class:"onto-user-login"},t("button",{key:"3166bbb91655243194c992101ede66d6bd3ab4c7",onClick:this.navigateToLogin()},t("i",{key:"e562126298532327c4b5c0a59cf4223c2e466fe6",class:"ri-arrow-right-circle-line"}),t("translate-label",{key:"ecd6d795c44eac7c22291350cf7f297f00870ad6",class:"user-login-label",labelKey:"user_menu.login"})))}};q.style=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus{outline:none}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}";const P=class{constructor(t){o(this,t),this.authenticationService=m(D),this.logout=()=>{this.authenticationService.logout()},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=t=>{this.isOpen&&!this.hostElement.contains(t.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return t("section",{key:"12259fc1a98c0194a5bdd9846ff2e78715d4704c",class:"onto-user-menu"},t("div",{key:"b63d9259ebfe7856a1ece71e03cab280225e8757",class:"dropdown-toggle-wrapper",onClick:this.toggleDropdown},t("button",{key:"514abf4b023aecfec9ddf3b02e77368640b7d554",class:this.isOpen?"open":""},t("i",{key:"aefc12e677d20783f339d4c88afed959dc8435a4",class:"ri-user-line ri-lg"}),t("span",{key:"2cf215fc53e15b526a43c78026e4b9cfa499730e",class:"username"},this.user.username),t("i",{key:"4e514af450f4eb9817e024f993033c3094e17cfd",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen?t("section",{class:"onto-user-menu-dropdown"},t("translate-label",{onClick:c("settings"),labelKey:"user_menu.my_settings"}),this.authenticationService.isExternalUser()?"":t("translate-label",{onClick:this.logout,labelKey:"user_menu.logout"})):""))}get hostElement(){return r(this)}};P.style=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu button{display:flex;flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu button .ri-user-line,.onto-user-menu button .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu button:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button:focus{outline:none}.onto-user-menu button.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu button.open .ri-user-line,.onto-user-menu button.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu button.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu button.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button .username{padding:0 5px}.onto-user-menu button i{transition:0.15s ease-out}.onto-user-menu button i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;font-size:1rem;width:100%;color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-dropdown translate-label{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font-weight:400}.onto-user-menu .onto-user-menu-dropdown translate-label: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)}";export{L as onto_language_selector,E as onto_license_alert,O as onto_operations_notification,F as onto_rdf_search,U as onto_repository_selector,G as onto_search_icon,J as onto_search_resource_input,q as onto_user_login,P as onto_user_menu};
|
package/dist/shared-components/shared-components/{p-c27fe716.entry.js → p-97930684.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,
|
|
1
|
+
import{r as o,d as t,h as n,c as r}from"./p-EiAqSNMq.js";import{L as i,T as e}from"./p-nljGIprK.js";import{D as d}from"./p-DghTf3pJ.js";import{T as s}from"./p-CpZ0MtJX.js";import{O as a}from"./p-D_J2-9CG.js";import"@ontotext/workbench-api";const c=class{constructor(n){o(this,n),this.valueChanged=t(this,"valueChanged"),this.logger=i.logger,this.GUIDE_SELECTOR_ATTR="guide-selector",this.open=!1,this.buttonTooltipContent="",this.iconClass="",this.tooltipPlacement=a.LEFT,this.dropdownAlignment=d.LEFT,this.autoClose=!1,this.toggleButtonClickHandler=()=>{s.destroyTooltip(this.dropdownButtonElement),this.buttonTooltipContent="",this.clearDropdownItemTooltips(),this.toggleComponent()}}keydownListener(o){"Escape"===o.key&&this.closeMenu()}mouseClickListener(o){this.autoClose&&!this.hostElement.contains(o.target)&&this.closeMenu()}componentDidUpdate(){this.dropdownButtonElement&&(this.buttonTooltipContent&&""!==this.buttonTooltipContent?s.updateTooltipContent(this.dropdownButtonElement,this.buttonTooltipContent):s.destroyTooltip(this.dropdownButtonElement))}render(){var o,t;const e=this.dropdownAlignment===d.RIGHT?"onto-dropdown-right-item-alignment":"onto-dropdown-left-item-alignment",r="function"==typeof this.tooltipPlacement?this.tooltipPlacement(this.open):this.tooltipPlacement;return n("div",{key:"36e8f37b8188fd8de748890b64e323346fd93d1d",class:"onto-dropdown "+(this.open?"open":"closed")},n("button",Object.assign({key:"079c4a67fc1e5d85d5cccb66c604308eaab6bcbc",class:"onto-dropdown-button",ref:o=>this.dropdownButtonElement=o},this.dropdownButtonGuideSelector?{[this.GUIDE_SELECTOR_ATTR]:this.dropdownButtonGuideSelector}:{},{"tooltip-placement":r,"tooltip-content":this.buttonTooltipContent},this.tooltipTheme?{"tooltip-theme":this.tooltipTheme}:{},{onMouseEnter:this.setDropdownButtonTooltip(),onClick:this.toggleButtonClickHandler}),this.iconClass?n("i",{class:"button-icon ri-lg "+this.iconClass}):"",n("span",{key:"3a258b3105ff250ea6565140db7d95096e33aaa3",class:"button-name"},null!==(o=this.dropdownButtonName)&&void 0!==o?o:this.translate(this.dropdownButtonNameLabelKey)),n("i",{key:"6efadb314fa809e7c7b49825699f4b5abd9b3bc0",class:"ri-arrow-down-s-line "+(this.open?"rotate-180":"")})),n("div",{key:"c6dd9f644a166347e5a34eb483520d82bc23270c",class:"onto-dropdown-menu "+e},null===(t=this.items)||void 0===t?void 0:t.map(o=>{var t;return n("button",Object.assign({class:"onto-dropdown-menu-item "+o.cssClass},o.guideSelector?{[this.GUIDE_SELECTOR_ATTR]:o.guideSelector}:{},{"tooltip-placement":a.LEFT},this.tooltipTheme?{"tooltip-theme":this.tooltipTheme}:{},{onMouseEnter:this.setDropdownItemTooltip(o),onClick:this.itemClickHandler(o.value)}),o.iconClass?n("span",{class:"onto-dropdown-option-icon "+o.iconClass}):"",n("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=>{s.destroyTooltip(o),o.setAttribute("tooltip-content","")})}itemClickHandler(o){return()=>this.onSelect(o)}translate(o){return o?e.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 r(this)}};c.style=":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}";export{c as onto_dropdown};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see p-EiAqSNMq.js.LICENSE.txt */
|
|
2
|
+
const t=()=>{};var e=Object.defineProperty,n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.HTMLElement||class{},d={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!1,m=[],y=[],b=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&d.o?g(w):d.raf(w))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{$(m),$(y),(v=m.length>0)&&d.raf(w)},g=t=>h().then(t),S=b(y,!0),j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>N,map:()=>E,ok:()=>k,unwrap:()=>C,unwrapErr:()=>x});var k=t=>({isOk:!0,isErr:!1,value:t}),N=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then(t=>k(t)):k(n)}if(t.isErr)return N(t.value);throw"should never get here"}var C=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value};function M(){const t=this.attachShadow({mode:"open"});if(p){const e=new CSSStyleSheet;e.replaceSync(""),t.adoptedStyleSheets.push(e)}}var R=t=>{const e=U(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&P(e,t.tagName).forEach(t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!T(t,F(t),!1).length)});let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&U(t,"childNodes").length&&R(t)}};function P(t,e,n){let o,s=0,r=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||F(o)===n)&&(r.push(o),void 0!==n))return r;r=[...r,...P(o.childNodes,e,n)]}return r}var T=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)F(s)!==e||!n&&s["s-sr"]||o.push(s);return o},A=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,F=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0,L=t=>{t&&!t.__parentNode&&(function(t,e){let n;_.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):D.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},_=["children","nextElementSibling","previousElementSibling"],D=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function U(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var W=(t,e,...n)=>{let o=null,s=null,r=null,l=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&i?c[c.length-1].i+=o:c.push(l?B(null,o):o),i=l)};if(a(n),e){e.key&&(s=e.key),e.name&&(r=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,z);const d=B(t,null);return d.u=e,c.length>0&&(d.h=c),d.p=s,d.v=r,d},B=(t,e)=>({o:0,m:t,i:e,$:null,h:null,u:null,p:null,v:null}),H={},z={forEach:(t,e)=>t.map(I).forEach(e),map:(t,e)=>t.map(I).map(e).map(V)},I=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.m,vtext:t.i}),V=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),W(t.vtag,e,...t.vchildren||[])}const e=B(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.v=t.vname,e},Y=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Y("::slotted"),Y(":host"),Y(":host-context");var q,G,J=(t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,K=t=>n(t).$hostElement$,Q=(t,e)=>{const n=K(t);return{emit:t=>X(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},X=(t,e,n)=>{const o=d.ce(e,n);return t.dispatchEvent(o),o},Z=new WeakMap,tt=t=>"sc-"+t.S,et=(t,e,n,o,s,r)=>{if(n===o)return;let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=ot(n);let r=ot(o);e.remove(...s.filter(t=>t&&!r.includes(t))),e.add(...r.filter(t=>t&&!s.includes(t)))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if(i||l&&null!==o)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,a=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(a?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!i||4&r||s)&&!l&&1===t.nodeType&&(o=!0===o?"":o,a?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const s=e.endsWith(lt);e=e.replace(st,""),n&&d.rel(t,e,n,s),o&&d.ael(t,e,o,s)}},nt=/\s/,ot=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(nt):[]),lt="Capture",st=RegExp(lt+"$"),it=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,s=t&&t.u||{},r=e.u||{};for(const t of rt(Object.keys(s)))t in r||et(o,t,s[t],void 0,n,e.o);for(const t of rt(Object.keys(r)))et(o,t,s[t],r[t],n,e.o)};function rt(t){return t.includes("ref")?[...t.filter(t=>"ref"!==t),"ref"]:t}var ct=!1,ut=!1,ft=!1,at=!1,dt=(t,e,n)=>{var o;const s=e.h[n];let r,l,i,c=0;if(ct||(ft=!0,"slot"===s.m&&(s.o|=s.h?2:1)),null!==s.i)r=s.$=f.document.createTextNode(s.i);else if(1&s.o)r=s.$=f.document.createTextNode(""),it(null,s,at);else{if(!f.document)throw 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(r=s.$=f.document.createElement(!ct&&2&s.o?"slot-fb":s.m),it(null,s,at),s.h)for(c=0;c<s.h.length;++c)l=dt(t,s,c),l&&r.appendChild(l)}return r["s-hn"]=G,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=q,r["s-sn"]=s.v||"",r["s-rf"]=null==(o=s.u)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.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 s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e})(s.childNodes)).forEach(t=>{o===F(t)&&n.push(t)}),e?n.filter(t=>1===t.nodeType):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(r),i=t&&t.h&&t.h[n],i&&i.m===s.m&&t.$&&ht(t.$)),r},ht=t=>{d.o|=1;const e=t.closest(G.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find(t=>t["s-cr"]),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(jt(e,t,null!=n?n:null),t["s-sh"]=void 0,ft=!0)}d.o&=-2},pt=(t,e)=>{d.o|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===G&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==G&&o["s-ol"]&&(jt(bt(o).parentNode,o,bt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ft=!0),e&&pt(o,e)}d.o&=-2},vt=(t,e,n,o,s,r)=>{let l,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===G&&(i=i.shadowRoot);s<=r;++s)o[s]&&(l=dt(null,n,s),l&&(o[s].$=l,jt(i,l,bt(e))))},mt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;St(e),t&&(ut=!0,t["s-ol"]?t["s-ol"].remove():pt(t,!0),t.remove())}}},yt=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.v===e.v:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),bt=t=>t&&t["s-ol"]||t,$t=(t,e,n=!1)=>{const o=e.$=t.$,s=t.h,r=e.h,l=e.i;let i;null===l?("slot"!==e.m||ct||t.v!==e.v&&(e.$["s-sn"]=e.v||"",ht(e.$.parentElement)),it(t,e,at),null!==s&&null!==r?((t,e,n,o,s=!1)=>{let r,l,i=0,c=0,a=0,d=0,u=e.length-1,h=e[0],f=e[u],p=o.length-1,m=o[0],v=o[p];for(;i<=u&&c<=p;)if(null==h)h=e[++i];else if(null==f)f=e[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(yt(h,m,s))$t(h,m,s),h=e[++i],m=o[++c];else if(yt(f,v,s))$t(f,v,s),f=e[--u],v=o[--p];else if(yt(h,v,s))"slot"!==h.m&&"slot"!==v.m||pt(h.$.parentNode,!1),$t(h,v,s),jt(t,h.$,f.$.nextSibling),h=e[++i],v=o[--p];else if(yt(f,m,s))"slot"!==h.m&&"slot"!==v.m||pt(f.$.parentNode,!1),$t(f,m,s),jt(t,f.$,h.$),f=e[--u],m=o[++c];else{for(a=-1,d=i;d<=u;++d)if(e[d]&&null!==e[d].p&&e[d].p===m.p){a=d;break}a>=0?(l=e[a],l.m!==m.m?r=dt(e&&e[c],n,a):($t(l,m,s),e[a]=void 0,r=l.$),m=o[++c]):(r=dt(e&&e[c],n,c),m=o[++c]),r&&jt(bt(h.$).parentNode,r,bt(h.$))}i>u?vt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&mt(e,i,u)})(o,s,e,r,n):null!==r?(null!==t.i&&(o.textContent=""),vt(o,null,e,r,0,r.length-1)):!n&&null!==s&&mt(s,0,s.length-1)):(i=o["s-cr"])?i.parentNode.textContent=l:t.i!==l&&(o.data=l)},wt=[],gt=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(A(e,s)){let n=wt.find(t=>t.j===e);ut=!0,e["s-sn"]=e["s-sn"]||s,n?(n.j["s-sh"]=t["s-hn"],n.O=t):(e["s-sh"]=t["s-hn"],wt.push({O:t,j:e})),e["s-sr"]&&wt.map(t=>{A(t.j,e["s-sn"])&&(n=wt.find(t=>t.j===e),n&&!t.O&&(t.O=n.O))})}else wt.some(t=>t.j===e)||wt.push({j:e})}1===t.nodeType&>(t)}},St=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(St)},jt=(t,e,n)=>{if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&L(e),t.insertBefore(e,n);const{slotNode:o}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=F(t)||"";return{slotNode:P(U(e,"childNodes"),e.tagName,o)[0],slotName:o}}(e);return o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Ot=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise(o=>t.k=()=>{e["s-p"].splice(n-1,1),o()}))}},kt=(t,e)=>{if(t.o|=16,!(4&t.o))return Ot(t,t.N),S(()=>Nt(t,e));t.o|=512},Nt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw 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 s;return e?(t.o|=256,t.C&&(t.C.map(([t,e])=>Tt(o,t,e,n)),t.C=void 0),s=Tt(o,"componentWillLoad",void 0,n)):s=Tt(o,"componentWillUpdate",void 0,n),s=Et(s,()=>Tt(o,"componentWillRender",void 0,n)),Et(s,()=>xt(t,o,e))},Et=(t,e)=>Ct(t)?t.then(e).catch(t=>{console.error(t),e()}):e(),Ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,xt=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.M,n=t.$hostElement$,o=e.o,s=((t,e)=>{var n;const o=tt(e),s=r.get(o);if(!f.document)return o;if(t=11===t.nodeType?t:f.document,s)if("string"==typeof s){let r,l=Z.get(t=t.head||t);if(l||Z.set(t,l=new Set),!l.has(o)){{r=f.document.createElement("style"),r.innerHTML=s;const o=null!=(n=d.R)?n:O(f.document);if(null!=o&&r.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(r,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(r)}else t.append(r);1&e.o&&t.insertBefore(r,null)}4&e.o&&(r.innerHTML+=c),l&&l.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t),Mt(t,e,s,n),l&&(l.map(t=>t()),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Rt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Mt=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,s,r,l,i;const c=t.$hostElement$,a=t.M,u=t.P||B(null,null),h=(t=>t&&t.m===H)(e)?e:W(null,null,e);if(G=c.tagName,n&&h.u)for(const t of Object.keys(h.u))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(h.u[t]=c[t]);if(h.m=null,h.o|=4,t.P=h,h.$=u.$=c.shadowRoot||c,ct=!(!(1&a.o)||128&a.o),q=c["s-cr"],ut=!1,$t(u,h,n),d.o|=1,ft){gt(h.$);for(const t of wt){const e=t.j;if(!e["s-ol"]&&f.document){const t=f.document.createTextNode("");t["s-nr"]=e,jt(e.parentNode,e["s-ol"]=t,e)}}for(const t of wt){const e=t.j,i=t.O;if(i){const t=i.parentNode;let n=i.nextSibling;if(n&&1===n.nodeType){let r=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;r;){let o=null!=(s=r["s-nr"])?s:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}r=r.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(jt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(r=e["s-ih"])&&r)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(l=e.hidden)&&l),e.hidden=!0)}}if(ut&&R(h.$),d.o&=-2,wt.length=0,2&a.o){const t=h.$.__childNodes||h.$.childNodes;for(const e of t)e["s-hn"]===G||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}q=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},Rt=t=>{const e=t.$hostElement$,n=t.t,o=t.N;Tt(n,"componentDidRender",void 0,e),64&t.o?Tt(n,"componentDidUpdate",void 0,e):(t.o|=64,At(e),Tt(n,"componentDidLoad",void 0,e),t.T(e),o||Pt()),t.A(e),t.k&&(t.k(),t.k=void 0),512&t.o&&g(()=>kt(t,!1)),t.o&=-517},Pt=()=>{g(()=>X(f,"appload",{detail:{namespace:"shared-components"}}))},Tt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},At=t=>t.classList.add("hydrated"),Ft=(t,e,o,r)=>{const l=n(t);if(!l)throw Error(`Couldn't find host element for "${r.S}" 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 i=l.$hostElement$,c=l.F.get(e),a=l.o,d=l.t;if(o=J(o,r.L[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(l.F.set(e,o),d)){if(r._&&128&a){const t=r._[e];t&&t.map(t=>{try{d[t](o,c,e)}catch(t){s(t,i)}})}if(2==(18&a)){if(d.componentShouldUpdate&&!1===d.componentShouldUpdate(o,c,e))return;kt(l,!1)}}},Lt=(t,e,o)=>{var s,r;const l=t.prototype;if(e.L||e._||t.watchers){t.watchers&&!e._&&(e._=t.watchers);const i=Object.entries(null!=(s=e.L)?s:{});if(i.map(([t,[s]])=>{if(31&s||2&o&&32&s){const{get:r,set:i}=Object.getOwnPropertyDescriptor(l,t)||{};r&&(e.L[t][0]|=2048),i&&(e.L[t][0]|=4096),(1&o||!r)&&Object.defineProperty(l,t,{get(){{if(!(2048&e.L[t][0]))return((t,e)=>n(this).F.get(e))(0,t);const o=n(this),s=o?o.t:l;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(r){const l=n(this);if(i){const n=32&s?this[t]:l.$hostElement$[t];return void 0===n&&l.F.get(t)?r=l.F.get(t):!l.F.get(t)&&n&&l.F.set(t,n),i.call(this,J(r,s)),void Ft(this,t,r=32&s?this[t]:l.$hostElement$[t],e)}{if(!(1&o&&4096&e.L[t][0]))return Ft(this,t,r,e),void(1&o&&!l.t&&l.D.then(()=>{4096&e.L[t][0]&&l.t[t]!==l.F.get(t)&&(l.t[t]=r)}));const n=()=>{const n=l.t[t];!l.F.get(t)&&n&&l.F.set(t,n),l.t[t]=J(r,s),Ft(this,t,l.t[t],e)};l.t?n():l.D.then(()=>n())}}})}else 1&o&&64&s&&Object.defineProperty(l,t,{value(...e){var o;const s=n(this);return null==(o=null==s?void 0:s.U)?void 0:o.then(()=>{var n;return null==(n=s.t)?void 0:n[t](...e)})}})}),1&o){const o=new Map;l.attributeChangedCallback=function(t,s,r){d.jmp(()=>{var i;const c=o.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(l.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),l=null==o?void 0:o.o;if(l&&!(8&l)&&128&l&&r!==s){const n=o.t,l=null==(i=e._)?void 0:i[t];null==l||l.forEach(e=>{null!=n[e]&&n[e].call(n,r,s,t)})}return}}const a=Object.getOwnPropertyDescriptor(l,c);(r=(null!==r||"boolean"!=typeof this[c])&&r)===this[c]||a.get&&!a.set||(this[c]=r)})},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e._)?r:{}),...i.filter(([t,e])=>15&e[0]).map(([t,e])=>{const n=e[1]||t;return o.set(n,t),n})]))}}return t},_t=(t,e)=>{Tt(t,"connectedCallback",void 0,e)},Dt=(t,e)=>{Tt(t,"disconnectedCallback",void 0,e||t)},Ut=(t,e={})=>{var o;if(!f.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],a=e.exclude||[],u=f.customElements,h=f.document.head,m=h.querySelector("meta[charset]"),v=f.document.createElement("style"),y=[];let g,b=!0;Object.assign(d,e),d.l=new URL(e.resourcesUrl||"./",f.document.baseURI).href;let w=!1;if(t.map(t=>{t[1].map(e=>{var o;const c={o:e[0],S:e[1],L:e[2],W:e[3]};4&c.o&&(w=!0),c.L=e[2],c.W=e[3],c._=null!=(o=e[4])?o:{};const h=c.S,m=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,M:e,F:new Map};n.U=new Promise(t=>n.A=t),n.D=new Promise(t=>n.T=t),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else M.call(t,c)}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Bt(this,t,c.W)),g&&(clearTimeout(g),g=null),b?y.push(this):d.jmp(()=>(t=>{if(!(1&d.o)){const e=n(t),o=e.M,l=()=>{};if(1&e.o)Bt(t,e,o.W),(null==e?void 0:e.t)?_t(e.t,t):(null==e?void 0:e.D)&&e.D.then(()=>_t(e.t,t));else{e.o|=1,12&o.o&&(t=>{if(!f.document)return;const e=t["s-cr"]=f.document.createComment("");e["s-cn"]=!0,jt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ot(e,e.N=n);break}}o.L&&Object.entries(o.L).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.B){const r=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.B;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then(t=>(i.set(o,t),t[n]),t=>{s(t,e.$hostElement$)})})(n,e);if(r&&"then"in r){const t=()=>{};o=await r,t()}else o=r;if(!o)throw Error(`Constructor for "${n.S}#${e.H}" was not found`);o.isProxied||(n._=o.watchers,Lt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,l(),_t(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then(()=>e.o|=128);if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=tt(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.N,c=()=>kt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this))}disconnectedCallback(){d.jmp(()=>(async t=>{if(!(1&d.o)){const e=n(t);e.I&&(e.I.map(t=>t()),e.I=void 0),(null==e?void 0:e.t)?Dt(e.t,t):(null==e?void 0:e.D)&&e.D.then(()=>Dt(e.t,t))}Z.has(t)&&Z.delete(t),t.shadowRoot&&Z.has(t.shadowRoot)&&Z.delete(t.shadowRoot)})(this)),d.raf(()=>{var t;const e=n(this),o=y.findIndex(t=>t===this);o>-1&&y.splice(o,1),(null==(t=null==e?void 0:e.P)?void 0:t.$)instanceof Node&&!e.P.$.isConnected&&delete e.P.$})}componentOnReady(){return n(this).D}};c.B=t[0],a.includes(h)||u.get(h)||(l.push(h),u.define(h,Lt(m,c,1)))})}),l.length>0&&(w&&(v.textContent+=c),v.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(o=d.R)?o:O(f.document);null!=t&&v.setAttribute("nonce",t),h.insertBefore(v,m?m.nextSibling:h.firstChild)}b=!1,y.length?y.map(t=>t.connectedCallback()):d.jmp(()=>g=setTimeout(Pt,30))},Wt=(t,e)=>e,Bt=(t,e,n)=>{n&&f.document&&n.map(([n,o,s])=>{const r=zt(f.document,t,n),l=Ht(e,s),i=It(n);d.ael(r,o,l,i),(e.I=e.I||[]).push(()=>d.rel(r,o,l,i))})},Ht=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.C=t.C||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},zt=(t,e,n)=>4&n?t:8&n?f:16&n?t.body:e,It=t=>({passive:!!(1&t),capture:!!(2&t)}),Vt=t=>d.R=t;export{Wt as F,a as H,H as a,Ut as b,K as c,Q as d,t as g,W as h,h as p,o as r,Vt as s};
|
package/dist/shared-components/shared-components/{p-b5d4081d.entry.js → p-a5a49d87.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,
|
|
1
|
+
import{r as e,d as a,h as o,a as c}from"./p-EiAqSNMq.js";import{L as t,T as i}from"./p-nljGIprK.js";import{service as l,SecurityContextService as d,SecurityService as b,TrackingService as s,DateUtil as n}from"@ontotext/workbench-api";import{d as f}from"./p-D1ZpXQQS.js";const y=class{constructor(o){e(this,o),this.consentGiven=a(this,"consentGiven"),this.showModal=!1,this.openModal=e=>{e.preventDefault(),this.showModal=!0},this.handleConsentClick=()=>{this.consentGiven.emit()}}onDialogClose(){this.showModal=!1}render(){return o(c,{key:"dba3fc373e9ad60ada7f86d11acbe1b1ed24a92d"},o("div",{key:"8f1dff5a6b271f721d2079ec44a14207eff38025",class:"cookie-consent-banner"},o("section",{key:"93d51c3f88e12ff6fc5a57506eab507eca5420cb",class:"cookie-consent-content"},o("span",{key:"72be975026e8717da4ab4d99d5560f96017d4436"},o("translate-label",{key:"b49c8182a2e94cffb22abb03dd4f2e6c9a7c6b5e",labelKey:"cookie.cookie_consent"}),o("a",{key:"79675cf4d9c026666093ff3205818f48b845083f",id:"cookie-policy-link",href:"#",onClick:this.openModal,class:"btn btn-link p-0"},o("translate-label",{key:"8c83694879ff4fb7cce5aa8f3363220767b54c13",labelKey:"cookie.cookie_policy_url_label"})),"."),o("button",{key:"dfa75c1bd990929564a7b3b61264e1978ea24c95",id:"accept-cookie-policy",class:"onto-btn onto-btn-primary",onClick:this.handleConsentClick},o("translate-label",{key:"7a36cad2b993c7aa29f4d64adcf8e359331bdb28",labelKey:"common.button.ok"})))),this.showModal&&o("onto-cookie-policy-dialog",{key:"1daa9af32d60159763f1ea052c1c87e6f4bfdb3e"}))}};var k;y.style=".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}",function(e){e.THIRD_PARTY="thirdParty",e.STATISTIC="statistic"}(k||(k={}));const r=class{constructor(o){e(this,o),this.closeDialog=a(this,"closeDialog"),this.logger=t.logger,this.securityContextService=l(d),this.securityService=l(b),this.trackingService=l(s),this.toggleChangedDebounced=f(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,a;const t={dialogTitle:i.translate("cookie.policy.title"),onClose:()=>this.closePolicyDialog(),modalClass:"cookie-policy-modal"};return o("onto-dialog",{key:"bdd402a836636e6c15811b3615703ea1eebd8d7c",config:t},o("div",{key:"1f1b4d80214907ae882b7322c48190f2152e12d9",slot:"body"},o("section",{key:"1b1a59be322de2736ca62ad373a51d18a1a06b79"},o("h4",{key:"dede6b4f005e6a661675479f5531ddad7a0235d4"},o("translate-label",{key:"ee1741896c0ff590ab9efbec9bf0a5025a30909f",labelKey:"cookie.policy.purpose_heading"})),o("p",{key:"e4a5b233c2809f901dd182f8d9aec0de27fc2099"},o("translate-label",{key:"631d8eb62fb92be49d0ded38b6aa1a280948ae19",labelKey:"cookie.policy.purpose_text"})),o("p",{key:"1254f3f2632b00bb296c00454a7df7d5b383ece5"},o("translate-label",{key:"5ceda3dada67081dbd17e1afa867a24a9016a564",labelKey:"cookie.policy.purpose_enterprise_text"}))),o("section",{key:"4796f96a4798348052387f6d379fcb2057c4b660"},o("h4",{key:"2ef14f483c1ff6fd1ecb891f7b9a6ed57b628805"},o("translate-label",{key:"09481c09192b35faa19b2006bdc3b21a9589cbdc",labelKey:"cookie.policy.privacy_commitment_heading"})),o("p",{key:"2cca9fe31f8f315c9ea123240bffc22f43bdfa77"},o("translate-label",{key:"4e8a55d364dffb76ea88c395967abd1681ceeec0",labelKey:"cookie.policy.privacy_commitment_text"})),o("ul",{key:"ceac17908898768e92263452faa0d05b654355aa"},o("li",{key:"c72361f5d3c17e068041f66e1986ba2152153f56"},o("translate-label",{key:"66a3534fd00d05e038c566c47c27a817e0840312",labelKey:"cookie.policy.privacy_commitment_1"})),o("li",{key:"f64a3900424c3df46fabaa81b710626445dd25b9"},o("translate-label",{key:"1e0e45ea0bba3f66f483217514006e685544f7ce",labelKey:"cookie.policy.privacy_commitment_2"})))),o("section",{key:"5046d6f2a87f421da264d8ca56e586c96806c8d2"},o("h4",{key:"f29934a5affad89f5f29bc18aaf4e0a7431a676c"},o("translate-label",{key:"88786391aa0c7dfee08e8a69c44cdc8f2fdf86ba",labelKey:"cookie.policy.cookies_heading"})),o("p",{key:"30445e55fede20a71babaac4656b2aa04bf95029"},o("translate-label",{key:"f0a85e21c58d6192b7173a2fdcdadb0cac500d51",labelKey:"cookie.policy.cookies_text"}))),o("section",{key:"6d63492ca8e98e66ee3dac34a9f2d4804598aae3"},o("h4",{key:"2acb72a66961b4a7669421631c567ae220c37340"},o("translate-label",{key:"150994d027db50124deb8382ff86defd4d9f73ca",labelKey:"cookie.policy.manage_cookies_heading"})),o("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:k.STATISTIC}),o("p",{key:"c58bd5346cbf64fc806476af9aca4114ffdf2f19"},o("translate-label",{key:"5494f13d7c4e5e9b8ad1dd2833d61dcf8abbaadb",labelKey:"cookie.policy.statistic_text"})),o("onto-toggle-switch",{key:"a126d4e367ac72f3afabf4cbcad60600c1674256",class:"third-party-cookies-toggle",checked:null===(a=this.cookieConsent)||void 0===a?void 0:a.thirdParty,labelKey:"cookie.policy.third_party_cookies",tooltipTranslationKey:"cookie.policy.third_party_tooltip",context:k.THIRD_PARTY}),o("p",{key:"98eaa1cd8bf32b975fbf6158151c23ecb75ae775"},o("translate-label",{key:"3e3480010862cba108e3b2a2ea132e2ec8f7d38f",labelKey:"cookie.policy.third_party_cookies_text"}))),o("p",{key:"2f229fbfb8e618771c96ff69022bdbe41ae073aa"},o("span",{key:"89601e4bda0080f30395f7ab7717ed2894003df4"},o("translate-label",{key:"7e1c004df16f9c96593bd08ed572f330980f9b1f",labelKey:"cookie.policy.change_cookies"}),o("i",{key:"0b63d510ac728e75687dbfb89baf199a7ff789ac"}," ",o("translate-label",{key:"84ca2e5206973463bb76e464c0de825778b5161c",labelKey:"menu.setup.label"})," > ",o("translate-label",{key:"8cd61ed1aa3b45d15845da57adba70c0136cc465",labelKey:"menu.my.settings.label"})," > ",o("translate-label",{key:"a540e7209ce07f18cade46ca26593c067f0e5967",labelKey:"security.user.settings"})," > ",o("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=n.now(),this.cookieConsent}setUserCookieConsent(e){this.user.appSettings||this.user.setAppSettings(),this.user.appSettings.COOKIE_CONSENT=e}};r.style="section h4{font-size:x-large;font-weight:bolder;margin-top:12px}";export{y as onto_cookie_consent,r as onto_cookie_policy_dialog};
|
package/dist/shared-components/shared-components/{p-74888633.entry.js → p-d134e207.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a as i,c as n,F as o,g as s}from"./p-CGqARDX4.js";import{SubscriptionList as a,service as r,ProductInfoContextService as l,SecurityContextService as h,LicenseContextService as c,TrackingService as m,FibonacciGenerator as g,ServiceProvider as d,MonitoringService as I,RepositoryContextService as u,RepositoryLocationContextService as b,RepositoryService as p,OntoToastrService as v,NamespacesService as A,NamespacesContextService as C,LanguageService as y,AuthenticationService as f,AuthorizationService as w,EventService as j,ConfigurationContextService as Z,RuntimeConfigurationContextService as k,isHomePage as D,getCurrentRoute as M,navigateTo as S,EventName as z,LanguageContextService as N,RepositoryList as x,WindowService as W,ObjectUtil as G,getPathName as T,UriUtil as O,REPOSITORY_ID_PARAM as P,openInNewTab as R,navigate as Y}from"@ontotext/workbench-api";import{L as V,T as L}from"./p-nljGIprK.js";import{H}from"./p-C8DO915D.js";import{R as U,D as X}from"./p-CapzAxJp.js";import{T as B}from"./p-CpZ0MtJX.js";import"./p-D_J2-9CG.js";const J=class{constructor(t){e(this,t),this.subscriptions=new a,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=r(l),this.securityContextService=r(h),this.licenseContextService=r(c),this.trackingService=r(m)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,o,n,s;return t(i,{key:"3f96199693937a11390b2c72f33548c5398217d0"},t("div",{key:"9a08d6c8fdc0030e8e4acb1e6a7f1869ceae9c76",class:"footer-component"},t("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," • ",t("a",{key:"cedb54fd1e5c8f44d3c2241606fba3786c2c6f08",href:"http://rdf4j.org",target:"_blank",rel:"noopener noreferrer"},"RDF4J")," ",null===(o=this.productInfo)||void 0===o?void 0:o.sesame," • Connectors ",null===(n=this.productInfo)||void 0===n?void 0:n.connectors," • Workbench ",null===(s=this.productInfo)||void 0===s?void 0:s.workbench," • © 2002–",this.currentYear," ",t("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",t("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&t("onto-cookie-consent",{key:"a7c7a7d8432a4848ddde8f9651380d4520059fd3"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),o=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,n=this.trackingService.getCookieConsent();n&&(this.shouldShowCookieConsent=!n.policyAccepted&&(o||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};J.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}";const F=({repository:e})=>t("div",{class:"repository-selector-dropdown-item"},t("i",{class:"item-icon icon-repo-"+e.type}),t("div",{class:"item-label"},t("div",{class:"repository-id"},e.id),t("div",{class:"repository-location"},e.location?e.location:"Local"))),E="menu.logo.link.title",K=class{constructor(t){e(this,t),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new g,this.monitoringService=d.get(I),this.repositoryContextService=d.get(u),this.repositoryLocationContextService=d.get(b),this.repositoryService=d.get(p),this.securityContextService=d.get(h),this.toastrService=d.get(v),this.namespacesService=d.get(A),this.namespaceContextService=d.get(C),this.languageService=d.get(y),this.authService=d.get(f),this.authorizationService=d.get(w),this.eventService=d.get(j),this.configurationContextService=d.get(Z),this.runtimeConfigurationContextService=d.get(k),this.logger=V.logger,this.shouldShowSearch=!0,this.isHomePage=D(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new a,this.skipUpdateActiveOperationsTimes=0,this.labels={[E]:L.translate(E)},this.canWriteRepo=e=>this.canWriteRepoInLocation(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(L.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,H.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:U.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.setupTotalRepositoryFormater(),this.setupExpansionRatioFormater(),this.subscribeToEvents(),this.currentRoute=M(),this.startOperationPolling(),this.onTranslate(E)}render(){var e,o;return t(i,{key:"1a0ea30540103e48f24febbb1b019da6ec16fb54"},t("div",{key:"70c90aa8e0c4eca71330a5623d3faebe3d08bb89",class:"header-component"},t("div",{key:"30782ae29482fd29245adb62141dd77dec07e20e",class:"left-section brand"},t("a",{key:"e7f7bff0928fd057806c9017dbe5ba61ec5767ee",class:"home-page",onClick:S("./")},t("img",{key:"1f1327dd2cd85fe3c6f7871f168205f4feefec2e",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[E]}))),t("div",{key:"e1cf9275d74d4216f795255e47b4f5243d794cf7",class:"right-section"},t("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"}}),t("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)?t("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(o=this.license)||void 0===o?void 0:o.valid)?t("onto-license-alert",{license:this.license}):"",t("onto-repository-selector",{key:"ca880c7c438c32db63317d3447ddf89740ed273c",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,totalTripletsFormatter:this.totalTripletsFormatter,expansionRatioFormatter:this.expansionRatioFormatter,canWriteRepo:this.canWriteRepo}),t("onto-language-selector",{key:"abc09868343581be4724d897fc5caa51cd7e3265","dropdown-alignment":"right"}),this.showUserMenu&&this.user?t("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?t("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(d.get(c).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(z.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=D(),this.currentRoute=M(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(d.get(N).onSelectedLanguageChanged(e=>{this.setupTotalRepositoryFormater(e),this.setupExpansionRatioFormater(e)}))}onTranslate(e){this.subscriptions.add(L.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new x,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 i;return this.repositoryList.sortByLocationAndId(),i=this.currentRepository?this.repositoryList.filterByRepository([this.currentRepository]):this.repositoryList.getItems(),i.filter(e=>this.authorizationService.canReadRepo(e)||this.authorizationService.canReadGqlRepo(e)).map(e=>(new X).setName(t(F,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}canWriteRepoInLocation(e){return!0}loadNamespaces(){this.currentRepository&&this.authorizationService.canReadRepo(this.currentRepository)&&this.namespacesService.getNamespaces(this.currentRepository.id).then(e=>this.namespaceContextService.updateNamespaces(e))}updateVisibility(){var e,t,i;const o=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,n=this.authService.isLoggedIn();let s=!1;try{s=this.authService.isAuthenticated()}catch(e){s=!1}const r=null===(i=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===i?void 0:i.enabled;this.showLoginButton=o&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=o&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=W.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{G.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"===T())&&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})}};K.style=":host{display:block}.header-component{display:flex;gap:0.25em;padding:0.3em 1em;font-size:1.1em;background-color:var(--gw-topnav-background)}.header-component .left-section{display:flex;align-items:center;justify-content:center;margin-right:auto}.header-component .right-section{display:flex;align-items:center;justify-content:center;gap:0.3em}.header-component .big-logo{width:180px;height:50px;cursor:pointer}";const Q=class{constructor(t){e(this,t),this.size=100,this.messageText="",this.rawSvg=atob("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgICAgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgICAgICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgICAgICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iCiAgICAgICAgdmlld0JveD0iMCAwIDUwIDUwIgogICAgICAgIGlkPSJzdmcyIgogICAgICAgIHZlcnNpb249IjEuMSIKICAgICAgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ4LjAgcjk2NTQiCiAgICAgICAgc29kaXBvZGk6ZG9jbmFtZT0ibmFtZXN2Zy5zdmciPgogICAgPGNpcmNsZSBjeD0iMjEuNSIgY3k9IjcuNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjBzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMzEiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjE1cyIgdmFsdWVzPSI0OyA4OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0IgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNyIgY3k9IjE1IiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuM3MiIHZhbHVlcz0iMjsgNDsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMiIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNDAuNSIgY3k9IjIzLjUiIHI9IjQuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjQ1cyIKICAgICAgICAgICAgICAgICB2YWx1ZXM9IjQuNTsgOTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjUiIGF0dHJpYnV0ZVR5cGU9IlhNTCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjM5IiBjeT0iMzMiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMC42cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNC41IiBjeT0iMzguNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuNzVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMjkiIGN5PSI0MiIgcj0iMiIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjlzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjIxLjUiIGN5PSI0Mi41IiByPSIyLjUiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS4wNXMiCiAgICAgICAgICAgICAgICAgdmFsdWVzPSIyLjU7IDU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41IiBhdHRyaWJ1dGVUeXBlPSJYTUwiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjM5IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMnMiIHZhbHVlcz0iNDsgODsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNyIgY3k9IjMyIiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMzVzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjUuNSIgY3k9IjI1LjUiIHI9IjIuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=".split(",")[1])}render(){return t(i,{key:"f0eb18975fbbde62c4b50add16b772672a1fbb5b"},t("div",{key:"c36d32d9d10e7fba7d9599a00046dbd78b846b78",class:"onto-loader","guide-selector":"onto-loader"},t("div",{key:"950cb6d4fe083c94a4a03c4564d19becc43597ee",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&t("div",{key:"2626f0e91e01349384cb0d963a39c6075972c4fd",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}};Q.style=":host{display:block}:host .onto-loader{white-space:nowrap;width:fit-content}:host .onto-loader .loader-spinner{margin-left:auto;margin-right:auto}:host .onto-loader .loader-spinner circle{fill:var(--gw-loader-color)}:host .onto-loader .loader-message{text-align:center}";class _{constructor(e){this.type="navbarToggled",this.payload=e}}class ${constructor(e=[]){this._items=e}hasParent(e){return this._items.some(t=>e===t.label)}getModel(){const e=t=>{const i=t.children.map(e);return new q(Object.assign(Object.assign({},t),{children:i}))};return this._items.map(e)}addItem(e){this._items.push(e)}getSelectedRootItem(){return this._items.find(e=>e.selected)}isParentOpened(e){var t;return!!(null===(t=this.getParentItem(e))||void 0===t?void 0:t.open)}getTopLevelItem(e){return this._items.find(t=>t.label===e)}getParentItem(e){return this._items.find(t=>t.label===e.parent)}deselectAll(){this.walk(e=>{e.selected=!1})}closeAll(){this.walk(e=>{this.setOpen(e,!1)})}deselectItem(e){e.selected=!1}selectItem(e){e.label?e.selected=!0:this.selectItem(e.parentModel)}hasSelectedSubmenu(e){return!!e.children&&e.children.some(e=>this.hasSelection(e))}hasSelection(e){return!!e.selected||!!e.children&&e.children.some(e=>this.hasSelection(e))}closeOpened(){const e=this._items.find(e=>e.open);e&&(this.hasSelectedSubmenu(e)&&this.selectItem(e),this.setOpen(e,!1))}open(e){this.walk(e=>{this.setOpen(e,!1)}),this.openItemAndParent(e)}openItemAndParent(e){e.parentModel&&this.openItemAndParent(e.parentModel),this.setOpen(e,!0)}closeOtherParents(e){const t=e.parent;this.walk(e=>{e.label!==t&&this.setOpen(e,!1)})}setOpen(e,t){e.open=t}highlightSelected(){const e=this.getSelectedItem();(null==e?void 0:e.hasParent)&&this.selectItem(this.getParentItem(e))}unhighlightSelected(){const e=this.getSelectedRootItem();e&&e.children.length&&e.open&&this.deselectItem(e)}getSelectedItem(){let e=null;const t=i=>{if(i.selected)return e=i,!0;if(i.children)for(const e of i.children)if(t(e))return!0;return!1};return this._items.some(t),e}expandSelected(){const e=this.getSelectedItem();e&&this.open(e.hasParent?this.getParentItem(e):e)}initSelected(e){this.walk(t=>{var i;let o=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(o=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);o===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),o=t.split("/");if(i.length!==o.length)return e;const n=[];for(let t=0;t<o.length;t++)if("*"===o[t])n.push("*");else{if(o[t]!==i[t])return e;n.push(o[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort($.compare)}),this._items.sort($.compare),this}static compare(e,t){return e.order-t.order}walk(e){this.walkRecursively(this.items,e)}walkRecursively(e,t){e.forEach(e=>{var i;t(e),(null===(i=e.children)||void 0===i?void 0:i.length)&&this.walkRecursively(e.children,t)})}get items(){return this._items}}class q{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 ee=V.logger;class te{static map(e,t,i,o){const n=new $;return te.setTopLevelMenuItems(e,n,t),te.setSubmenuItems(e,n,t),i&&te.addRepositoryIdToHrefAttributes(n,i,o),n.sorted()}static addRepositoryIdToHrefAttributes(e,t,i){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${i}=${t}`}):e.href=`${e.href}?${i}=${t}`})}static setTopLevelMenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?ee.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,i,e.children))})})}static setSubmenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const o=t.getTopLevelItem(e.parent);null==o||o.addChildren(this.toMenuItemModel(e,o,i,e.children))})})}static toMenuItemModel(e,t,i,o=[]){let n;e.documentationHref&&(n=O.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const s=new q({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=o.map(e=>this.toMenuItemModel(e,s,i,e.children));return s.addChildren(...r),s}}const ie="menu.buttons.expand",ne="menu.buttons.collapse",oe=class{constructor(t){e(this,t),this.navbarToggled=n(this,"navbarToggled"),this.productInfoContextService=r(l),this.repositoryContextService=r(u),this.subscriptions=new a,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[ie]:L.translate(ie),[ne]:L.translate(ne)},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 _(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),i=te.map(e||[],this.productInfo,null==t?void 0:t.id,P);i.initSelected(M()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?R(t.href):Y(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(d.get(j).subscribe(z.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),D()||this.menuModel.initSelected(M()),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 _(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 $(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(L.onTranslate(e,[],t=>{this.labels[e]=t,this.onLanguageChanged()}))}toggleNavbarHandler(){return()=>this.toggleNavbar()}adjustSubmenuMaxHeight(e,t=this.SUBMENU_VERTICAL_MARGIN){if(!e||"function"!=typeof e.getBoundingClientRect)return;const i=e.closest(".menu-element");if(!i)return;const o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=o.height?l=a:r>=o.height?(l=r,c=!0):a>r?(l=a,c=!1):(l=r,c=!0),c?(e.style.bottom="0",e.style.top="auto"):(e.style.top="0",e.style.bottom="auto"),e.style.maxHeight=`${Math.max(this.MIN_SUBMENU_HEIGHT,l)}px`,e.style.overflowY="auto"}adjustAllSubmenus(e,t=this.SUBMENU_VERTICAL_MARGIN){requestAnimationFrame(()=>{e&&"function"==typeof e.querySelectorAll&&this.getAllOpenedSubmenus(e).forEach(e=>this.adjustSubmenuMaxHeight(e,t))})}getAllOpenedSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component.collapsed .menu-element.open .sub-menu"))}getAllSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component .menu-element .sub-menu"))}clearAllOpenedSubmenuStyles(){this.getAllSubmenus(this.hostElement).forEach(e=>{e.style.maxHeight="",e.style.overflowY="",e.style.top="",e.style.bottom=""})}componentWillLoad(){this.init(this.menuItems)}connectedCallback(){this.subscribeToNavigationEnd(),this.subscribeToProductInfoChanges(),this.subscribeToRepositoryChange(),this.onTranslate(ie),this.onTranslate(ne),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 t(i,null,t("ul",{class:"navbar-component"},t("li",{class:"navbar-toggle"},t("a",{class:"toggle-menu no-underline",title:this.isCollapsed?this.labels[ie]:this.labels[ne],onClick:this.toggleNavbarHandler()},t("em",{class:this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line"}))),this.menuModel.items.map(e=>t("li",{key:e.labelKey,class:{"menu-element":!0,open:e.open},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.children.length>0&&t(o,null,t("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`})," ",t("translate-label",{class:"menu-item",labelKey:e.labelKey})),t("ul",{class:"sub-menu"},t("li",{key:e.labelKey,class:"submenu-title"},t("translate-label",{labelKey:e.labelKey})),e.children.map(e=>t("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},t("a",e.documentationHref?{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"}:{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},t("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&t("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&t("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`})," ",t("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 s(this)}static get watchers(){return{navbarCollapsed:[{navbarCollapsedChange:0}],menuItems:[{menuItemsChanged:0}]}}};oe.style=':host{display:block}.navbar-component{width:15rem;position:fixed;font-weight:400;z-index:1010;margin:0;padding:0;-moz-transition:width 0.2s ease-in;-o-transition:width 0.2s ease-in;-webkit-transition:width 0.2s ease-in;transition:width 0.2s ease-in;height:calc(100% - 60px);overflow-y:auto;overflow-x:hidden}@media screen and (max-height: 475px){.navbar-component.collapsed{position:absolute}}.navbar-component li{list-style:none;cursor:pointer}.navbar-component li a{text-decoration:none}.navbar-component li a.sub-menu-link:not([href=""]):not([tabindex]):hover{text-decoration:none !important}.navbar-component .sub-menu-item a.sub-menu-link:not([href]) translate-label.menu-item{padding-right:3.5px}.navbar-component a.sub-menu-link:not([href]):hover .menu-item,.navbar-component a.sub-menu-link[href=""]:hover .menu-item{text-decoration-line:underline !important}.navbar-component li .menu-element-root:hover,.navbar-component .sub-menu li:hover{text-decoration-line:none !important}.navbar-component li .menu-element-root:hover .menu-item-icon,.navbar-component .menu-element.open .menu-item-icon{transform:scale(1.1)}.navbar-component .menu-element.open .sub-menu .menu-item-icon{transform:scale(0.5)}.navbar-component .menu-element{position:relative}.navbar-component .menu-element-root{padding:0.8em 2.5em 0.8em 0.8em;display:block;line-height:2.5rem;position:relative;z-index:100;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.navbar-component .menu-item-icon{font-size:1.6rem;width:2.5rem;vertical-align:middle;text-align:center;transform:scale(0.9);display:inline-block;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;pointer-events:none}.navbar-component .menu-element-root .menu-item{pointer-events:none}.navbar-component :not(.brand) .menu-element-root{font-size:1.1rem}.navbar-component .brand a{display:block;position:relative;z-index:5}.navbar-component .sub-menu{position:relative;padding:0;z-index:110}.navbar-component .sub-menu li{display:none}.navbar-component .sub-menu li a{padding:0.5em 0.8em 0.5em 1.3em;display:block}.navbar-component .sub-menu li.active a{font-weight:500}.navbar-component .menu-element.open ul li{display:block}.navbar-component .menu-element ul:before{font-family:"icomoon", sans-serif !important;content:"\\e91b";display:block;font-size:1.5em;position:absolute;top:-3.3rem;right:1rem;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in;pointer-events:none}.navbar-component .menu-element.open ul:before,.rdf-list ul.open.datasource:before{transform:rotate(90deg)}.navbar-component.collapsed{width:4.375rem;overflow:visible;height:auto}.navbar-component.collapsed .menu-element.open .sub-menu{position:absolute;top:0;left:4.375rem;width:15rem}.navbar-component.collapsed .menu-element .menu-item,.navbar-component.collapsed .menu-element .sub-menu li{display:none}.navbar-component.collapsed .menu-element.open .menu-item,.navbar-component.collapsed .menu-element.open .sub-menu li{display:block}.navbar-component.collapsed .menu-element.open .menu-element-root .menu-item{display:none}.navbar-component.collapsed .menu-element.open .sub-menu-item .sub-menu-link{background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element-root{overflow:visible}.navbar-component .menu-element.open ul li.submenu-title,.navbar-component .submenu-title{display:none}.navbar-component.collapsed .menu-element.open ul li.submenu-title{display:block;font-size:1.2em;font-weight:500;text-overflow:ellipsis;overflow:hidden;padding:0.5em 0.8rem 0.7em 0.8rem;background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element.open .sub-menu.align-bottom{bottom:0;top:auto}.navbar-component.collapsed .menu-element ul:before{display:none}.navbar-toggle{padding:0.3em 0}.toggle-menu{display:flex;flex-direction:column;align-items:flex-end;font-size:0.8em;line-height:1.5;padding:0 0.3em;z-index:101;cursor:pointer;background-color:var(--gw-sidenav-togglebutton-background);color:var(--gw-sidenav-togglebutton-color)}.toggle-menu:hover{color:var(--gw-sidenav-togglebutton-hover-color);background-color:var(--gw-sidenav-togglebutton-hover-background)}.toggle-menu [class^=icon-]{transition:all 0.2s ease-in;display:inline-block}.toggle-menu:hover [class^=icon-]{transform:scale(1.1)}.navbar-component{background-color:var(--gw-sidenav-background)}.navbar-component .menu-element .menu-element-root:not(.active){background-color:var(--gw-sidenav-menuitem-background);color:var(--gw-sidenav-menuitem-color)}.navbar-component .menu-element .menu-element-root .menu-item-icon,.navbar-component .menu-element .menu-element-root .menu-item{color:var(--gw-sidenav-menuitem-icon-color)}.navbar-component .menu-element .menu-element-root:hover,.navbar-component .menu-element .menu-element-root:hover .menu-item{background-color:var(--gw-sidenav-menuitem-hover-background);color:var(--gw-sidenav-menuitem-hover-color)}.navbar-component .menu-element .menu-element-root:hover .menu-item-icon{color:var(--gw-sidenav-menuitem-hover-icon-color)}.navbar-component .menu-element:not(.open):has(.menu-element-root.active){background-color:var(--gw-sidenav-menuitem-selected-background);color:var(--gw-sidenav-menuitem-selected-color);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .menu-element-root.active .menu-item,.navbar-component .menu-element .menu-element-root.active .menu-item-icon{color:var(--gw-sidenav-menuitem-selected-color)}.navbar-component .menu-element .menu-element-root.active .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element.open,.navbar-component .menu-element.open .menu-element-root{background-color:var(--gw-sidenav-menuitem-open-background);color:var(--gw-sidenav-menuitem-open-color)}.navbar-component .menu-element:has(.menu-element-root.active) .menu-item-icon,.navbar-component .menu-element:has(.menu-element-root.active) .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element .sub-menu-item .menu-item{color:var(--gw-sidenav-submenuitem-color);font-weight:400}.navbar-component .menu-element .sub-menu-item:hover .menu-item{color:var(--gw-sidenav-submenuitem-hover-color)}.navbar-component .menu-element .sub-menu-item.active{color:var(--gw-sidenav-submenuitem-selected-color);background-color:var(--gw-sidenav-submenuitem-selected-background);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .sub-menu-item.active .menu-item{color:var(--gw-sidenav-submenuitem-selected-color)}';const se=class{constructor(t){e(this,t),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(B.getTooltipInstance(e))return B.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=B.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const i=B.getTooltip(e.target);i&&this.handleTooltipShow(i)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){B.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=B.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const i=B.getTooltip(e.target);i&&this.handleTooltipHide(i,e.relatedTarget)}handleTooltipHide(e,t){const i=e.tooltipTarget;i&&(t&&e.contains(t)||this.handleTooltipTargetHide(i,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||B.getTooltipInstance(e)&&B.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return t(i,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};se.style=':host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:"";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{position:relative;z-index:1;padding:var(--gw-tooltip-padding)}';export{J as onto_footer,K as onto_header,Q as onto_loader,oe as onto_navbar,se as onto_tooltip};
|
|
1
|
+
import{r as e,h as t,a as i,d as n,F as o,c as s}from"./p-EiAqSNMq.js";import{SubscriptionList as a,service as r,ProductInfoContextService as l,SecurityContextService as h,LicenseContextService as c,TrackingService as m,FibonacciGenerator as g,ServiceProvider as d,MonitoringService as I,RepositoryContextService as u,RepositoryLocationContextService as b,RepositoryService as p,OntoToastrService as v,NamespacesService as A,NamespacesContextService as C,LanguageService as y,AuthenticationService as f,AuthorizationService as w,EventService as j,ConfigurationContextService as Z,RuntimeConfigurationContextService as k,isHomePage as M,getCurrentRoute as D,navigateTo as S,EventName as N,LanguageContextService as z,RepositoryList as x,WindowService as W,ObjectUtil as T,getPathName as G,UriUtil as O,REPOSITORY_ID_PARAM as P,openInNewTab as Y,navigate as R}from"@ontotext/workbench-api";import{L as V,T as L}from"./p-nljGIprK.js";import{H}from"./p-C8DO915D.js";import{R as U,D as B}from"./p-CapzAxJp.js";import{T as X}from"./p-CpZ0MtJX.js";import"./p-D_J2-9CG.js";const J=class{constructor(t){e(this,t),this.subscriptions=new a,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=r(l),this.securityContextService=r(h),this.licenseContextService=r(c),this.trackingService=r(m)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>this.shouldShowCookieConsent=!1)}render(){var e,o,n,s;return t(i,{key:"3f96199693937a11390b2c72f33548c5398217d0"},t("div",{key:"9a08d6c8fdc0030e8e4acb1e6a7f1869ceae9c76",class:"footer-component"},t("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," • ",t("a",{key:"cedb54fd1e5c8f44d3c2241606fba3786c2c6f08",href:"http://rdf4j.org",target:"_blank",rel:"noopener noreferrer"},"RDF4J")," ",null===(o=this.productInfo)||void 0===o?void 0:o.sesame," • Connectors ",null===(n=this.productInfo)||void 0===n?void 0:n.connectors," • Workbench ",null===(s=this.productInfo)||void 0===s?void 0:s.workbench," • © 2002–",this.currentYear," ",t("a",{key:"d5b24d86dcf3feb2178795d2018e8b093f862ade",href:"http://ontotext.com",target:"_blank",rel:"noopener noreferrer"},"Ontotext AD"),". ",t("translate-label",{key:"4ac76d6de5e9999490eda3235ec204a82d1e456c",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&t("onto-cookie-consent",{key:"a7c7a7d8432a4848ddde8f9651380d4520059fd3"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),o=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,n=this.trackingService.getCookieConsent();n&&(this.shouldShowCookieConsent=!n.policyAccepted&&(o||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};J.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}";const F=({repository:e})=>t("div",{class:"repository-selector-dropdown-item"},t("i",{class:"item-icon icon-repo-"+e.type}),t("div",{class:"item-label"},t("div",{class:"repository-id"},e.id),t("div",{class:"repository-location"},e.location?e.location:"Local"))),E="menu.logo.link.title",K=class{constructor(t){e(this,t),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new g,this.monitoringService=d.get(I),this.repositoryContextService=d.get(u),this.repositoryLocationContextService=d.get(b),this.repositoryService=d.get(p),this.securityContextService=d.get(h),this.toastrService=d.get(v),this.namespacesService=d.get(A),this.namespaceContextService=d.get(C),this.languageService=d.get(y),this.authService=d.get(f),this.authorizationService=d.get(w),this.eventService=d.get(j),this.configurationContextService=d.get(Z),this.runtimeConfigurationContextService=d.get(k),this.logger=V.logger,this.shouldShowSearch=!0,this.isHomePage=M(),this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.repositoryItems=[],this.subscriptions=new a,this.skipUpdateActiveOperationsTimes=0,this.labels={[E]:L.translate(E)},this.canWriteRepo=e=>this.canWriteRepoInLocation(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(L.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,H.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:U.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.setupTotalRepositoryFormater(),this.setupExpansionRatioFormater(),this.subscribeToEvents(),this.currentRoute=D(),this.startOperationPolling(),this.onTranslate(E)}render(){var e,o;return t(i,{key:"1a0ea30540103e48f24febbb1b019da6ec16fb54"},t("div",{key:"70c90aa8e0c4eca71330a5623d3faebe3d08bb89",class:"header-component"},t("div",{key:"30782ae29482fd29245adb62141dd77dec07e20e",class:"left-section brand"},t("a",{key:"e7f7bff0928fd057806c9017dbe5ba61ec5767ee",class:"home-page",onClick:S("./")},t("img",{key:"1f1327dd2cd85fe3c6f7871f168205f4feefec2e",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[E]}))),t("div",{key:"e1cf9275d74d4216f795255e47b4f5243d794cf7",class:"right-section"},t("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"}}),t("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)?t("onto-operations-notification",{activeOperations:this.activeOperations}):"",this.license&&!(null===(o=this.license)||void 0===o?void 0:o.valid)?t("onto-license-alert",{license:this.license}):"",t("onto-repository-selector",{key:"ca880c7c438c32db63317d3447ddf89740ed273c",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,totalTripletsFormatter:this.totalTripletsFormatter,expansionRatioFormatter:this.expansionRatioFormatter,canWriteRepo:this.canWriteRepo}),t("onto-language-selector",{key:"abc09868343581be4724d897fc5caa51cd7e3265","dropdown-alignment":"right"}),this.showUserMenu&&this.user?t("onto-user-menu",{user:this.user,securityConfig:this.securityConfig}):"",this.showLoginButton?t("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(d.get(c).onLicenseChanged(e=>{this.license=e}))}subscribeToRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(e=>{this.currentRepository=this.repositoryContextService.findRepository(e),this.shouldShowSearch=this.shouldShowRdfSearch(),this.loadNamespaces(),this.updateRepositoryItems()}))}subscribeToSecurityContextChange(){this.subscriptions.add(this.securityContextService.onSecurityConfigChanged(e=>{this.securityConfig=e,setTimeout(()=>{this.updateVisibility()})}))}subscribeToAuthenticatedUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(e=>{this.user=e,this.updateRepositoryItems(),this.updateVisibility()}))}subscribeToActiveRepositoryLocationChange(){this.subscriptions.add(this.repositoryLocationContextService.onActiveLocationChanged(()=>{this.shouldShowSearch=this.shouldShowRdfSearch()}))}subscribeToActiveRepoLoadingChange(){this.subscriptions.add(this.repositoryLocationContextService.onIsLoadingChanged(e=>{this.isActiveLocationLoading=e,this.shouldShowSearch=this.shouldShowRdfSearch()}))}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(N.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=M(),this.currentRoute=D(),this.updateVisibility()}))}subscribeToLanguageChanged(){this.subscriptions.add(d.get(z).onSelectedLanguageChanged(e=>{this.setupTotalRepositoryFormater(e),this.setupExpansionRatioFormater(e)}))}onTranslate(e){this.subscriptions.add(L.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new x,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 i;return this.repositoryList.sortByLocationAndId(),i=this.currentRepository?this.repositoryList.filterByRepository([this.currentRepository]):this.repositoryList.getItems(),i.filter(e=>this.authorizationService.canReadRepo(e)||this.authorizationService.canReadGqlRepo(e)).map(e=>(new B).setName(t(F,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}canWriteRepoInLocation(e){return!0}loadNamespaces(){this.currentRepository&&this.authorizationService.canReadRepo(this.currentRepository)&&this.namespacesService.getNamespaces(this.currentRepository.id).then(e=>this.namespaceContextService.updateNamespaces(e))}updateVisibility(){var e,t,i;const o=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,n=this.authService.isLoggedIn();let s=!1;try{s=this.authService.isAuthenticated()}catch(e){s=!1}const r=null===(i=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===i?void 0:i.enabled;this.showLoginButton=o&&r&&!n&&"login"!==this.currentRoute,this.showUserMenu=o&&s&&n,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=W.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{T.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"===G())&&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})}};K.style=":host{display:block}.header-component{display:flex;gap:0.25em;padding:0.3em 1em;font-size:1.1em;background-color:var(--gw-topnav-background)}.header-component .left-section{display:flex;align-items:center;justify-content:center;margin-right:auto}.header-component .right-section{display:flex;align-items:center;justify-content:center;gap:0.3em}.header-component .big-logo{width:180px;height:50px;cursor:pointer}";const Q=class{constructor(t){e(this,t),this.size=100,this.messageText="",this.rawSvg=atob("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZGR0Ij4KPHN2ZwogICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICAgICAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgICAgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgICAgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgICAgICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgICAgICAgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iCiAgICAgICAgdmlld0JveD0iMCAwIDUwIDUwIgogICAgICAgIGlkPSJzdmcyIgogICAgICAgIHZlcnNpb249IjEuMSIKICAgICAgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ4LjAgcjk2NTQiCiAgICAgICAgc29kaXBvZGk6ZG9jbmFtZT0ibmFtZXN2Zy5zdmciPgogICAgPGNpcmNsZSBjeD0iMjEuNSIgY3k9IjcuNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjBzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMzEiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjE1cyIgdmFsdWVzPSI0OyA4OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0OyA0IgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNyIgY3k9IjE1IiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuM3MiIHZhbHVlcz0iMjsgNDsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMjsgMiIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNDAuNSIgY3k9IjIzLjUiIHI9IjQuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjQ1cyIKICAgICAgICAgICAgICAgICB2YWx1ZXM9IjQuNTsgOTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjU7IDQuNTsgNC41OyA0LjUiIGF0dHJpYnV0ZVR5cGU9IlhNTCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjM5IiBjeT0iMzMiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMC42cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIzNC41IiBjeT0iMzguNSIgcj0iMS41IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjAuNzVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMS41OyAzOyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNTsgMS41OyAxLjU7IDEuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMjkiIGN5PSI0MiIgcj0iMiIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIwLjlzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjIxLjUiIGN5PSI0Mi41IiByPSIyLjUiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS4wNXMiCiAgICAgICAgICAgICAgICAgdmFsdWVzPSIyLjU7IDU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41IiBhdHRyaWJ1dGVUeXBlPSJYTUwiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjM5IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMnMiIHZhbHVlcz0iNDsgODsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNDsgNCIKICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVUeXBlPSJYTUwiIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iNyIgY3k9IjMyIiByPSIyIiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuMzVzIiB2YWx1ZXM9IjI7IDQ7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDI7IDIiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjUuNSIgY3k9IjI1LjUiIHI9IjIuNSIgZmlsbD0iI2ZmMzkwMCI+CiAgICAgICAgPGFuaW1hdGUgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMnMiIGJlZ2luPSIxLjVzIgogICAgICAgICAgICAgICAgIHZhbHVlcz0iMi41OyA1OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNTsgMi41OyAyLjU7IDIuNSIgYXR0cmlidXRlVHlwZT0iWE1MIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZU5hbWU9InIiLz4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iOCIgY3k9IjE2IiByPSI0IiBmaWxsPSIjZmYzOTAwIj4KICAgICAgICA8YW5pbWF0ZSByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIycyIgYmVnaW49IjEuNjVzIiB2YWx1ZXM9IjQ7IDg7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQ7IDQiCiAgICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0iWE1MIiBhdHRyaWJ1dGVOYW1lPSJyIi8+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjE0IiBjeT0iMTAiIHI9IjMiIGZpbGw9IiNmZjM5MDAiPgogICAgICAgIDxhbmltYXRlIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjJzIiBiZWdpbj0iMS44cyIgdmFsdWVzPSIzOyA2OyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzOyAzIgogICAgICAgICAgICAgICAgIGF0dHJpYnV0ZVR5cGU9IlhNTCIgYXR0cmlidXRlTmFtZT0iciIvPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=".split(",")[1])}render(){return t(i,{key:"f0eb18975fbbde62c4b50add16b772672a1fbb5b"},t("div",{key:"c36d32d9d10e7fba7d9599a00046dbd78b846b78",class:"onto-loader","guide-selector":"onto-loader"},t("div",{key:"950cb6d4fe083c94a4a03c4564d19becc43597ee",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&t("div",{key:"2626f0e91e01349384cb0d963a39c6075972c4fd",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}};Q.style=":host{display:block}:host .onto-loader{white-space:nowrap;width:fit-content}:host .onto-loader .loader-spinner{margin-left:auto;margin-right:auto}:host .onto-loader .loader-spinner circle{fill:var(--gw-loader-color)}:host .onto-loader .loader-message{text-align:center}";class _{constructor(e){this.type="navbarToggled",this.payload=e}}class ${constructor(e=[]){this._items=e}hasParent(e){return this._items.some(t=>e===t.label)}getModel(){const e=t=>{const i=t.children.map(e);return new q(Object.assign(Object.assign({},t),{children:i}))};return this._items.map(e)}addItem(e){this._items.push(e)}getSelectedRootItem(){return this._items.find(e=>e.selected)}isParentOpened(e){var t;return!!(null===(t=this.getParentItem(e))||void 0===t?void 0:t.open)}getTopLevelItem(e){return this._items.find(t=>t.label===e)}getParentItem(e){return this._items.find(t=>t.label===e.parent)}deselectAll(){this.walk(e=>{e.selected=!1})}closeAll(){this.walk(e=>{this.setOpen(e,!1)})}deselectItem(e){e.selected=!1}selectItem(e){e.label?e.selected=!0:this.selectItem(e.parentModel)}hasSelectedSubmenu(e){return!!e.children&&e.children.some(e=>this.hasSelection(e))}hasSelection(e){return!!e.selected||!!e.children&&e.children.some(e=>this.hasSelection(e))}closeOpened(){const e=this._items.find(e=>e.open);e&&(this.hasSelectedSubmenu(e)&&this.selectItem(e),this.setOpen(e,!1))}open(e){this.walk(e=>{this.setOpen(e,!1)}),this.openItemAndParent(e)}openItemAndParent(e){e.parentModel&&this.openItemAndParent(e.parentModel),this.setOpen(e,!0)}closeOtherParents(e){const t=e.parent;this.walk(e=>{e.label!==t&&this.setOpen(e,!1)})}setOpen(e,t){e.open=t}highlightSelected(){const e=this.getSelectedItem();(null==e?void 0:e.hasParent)&&this.selectItem(this.getParentItem(e))}unhighlightSelected(){const e=this.getSelectedRootItem();e&&e.children.length&&e.open&&this.deselectItem(e)}getSelectedItem(){let e=null;const t=i=>{if(i.selected)return e=i,!0;if(i.children)for(const e of i.children)if(t(e))return!0;return!1};return this._items.some(t),e}expandSelected(){const e=this.getSelectedItem();e&&this.open(e.hasParent?this.getParentItem(e):e)}initSelected(e){this.walk(t=>{var i;let o=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(o=this.getWildcardPath(e,t.href));const n=t.href.search(/[?]/);o===(-1===n?t.href:t.href.substring(0,n))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),o=t.split("/");if(i.length!==o.length)return e;const n=[];for(let t=0;t<o.length;t++)if("*"===o[t])n.push("*");else{if(o[t]!==i[t])return e;n.push(o[t])}return n.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort($.compare)}),this._items.sort($.compare),this}static compare(e,t){return e.order-t.order}walk(e){this.walkRecursively(this.items,e)}walkRecursively(e,t){e.forEach(e=>{var i;t(e),(null===(i=e.children)||void 0===i?void 0:i.length)&&this.walkRecursively(e.children,t)})}get items(){return this._items}}class q{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 ee=V.logger;class te{static map(e,t,i,o){const n=new $;return te.setTopLevelMenuItems(e,n,t),te.setSubmenuItems(e,n,t),i&&te.addRepositoryIdToHrefAttributes(n,i,o),n.sorted()}static addRepositoryIdToHrefAttributes(e,t,i){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${i}=${t}`}):e.href=`${e.href}?${i}=${t}`})}static setTopLevelMenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?ee.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,i,e.children))})})}static setSubmenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const o=t.getTopLevelItem(e.parent);null==o||o.addChildren(this.toMenuItemModel(e,o,i,e.children))})})}static toMenuItemModel(e,t,i,o=[]){let n;e.documentationHref&&(n=O.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const s=new q({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=o.map(e=>this.toMenuItemModel(e,s,i,e.children));return s.addChildren(...r),s}}const ie="menu.buttons.expand",ne="menu.buttons.collapse",oe=class{constructor(t){e(this,t),this.navbarToggled=n(this,"navbarToggled"),this.productInfoContextService=r(l),this.repositoryContextService=r(u),this.subscriptions=new a,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.labels={[ie]:L.translate(ie),[ne]:L.translate(ne)},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 _(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){const t=this.repositoryContextService.getSelectedRepository(),i=te.map(e||[],this.productInfo,null==t?void 0:t.id,P);i.initSelected(D()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?Y(t.href):R(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(d.get(j).subscribe(N.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),M()||this.menuModel.initSelected(D()),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 _(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 $(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(L.onTranslate(e,[],t=>{this.labels[e]=t,this.onLanguageChanged()}))}toggleNavbarHandler(){return()=>this.toggleNavbar()}adjustSubmenuMaxHeight(e,t=this.SUBMENU_VERTICAL_MARGIN){if(!e||"function"!=typeof e.getBoundingClientRect)return;const i=e.closest(".menu-element");if(!i)return;const o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s=window.innerHeight,r=n.top-t+n.height,a=s-n.bottom+n.height-t;let l,c=!1;a>=o.height?l=a:r>=o.height?(l=r,c=!0):a>r?(l=a,c=!1):(l=r,c=!0),c?(e.style.bottom="0",e.style.top="auto"):(e.style.top="0",e.style.bottom="auto"),e.style.maxHeight=`${Math.max(this.MIN_SUBMENU_HEIGHT,l)}px`,e.style.overflowY="auto"}adjustAllSubmenus(e,t=this.SUBMENU_VERTICAL_MARGIN){requestAnimationFrame(()=>{e&&"function"==typeof e.querySelectorAll&&this.getAllOpenedSubmenus(e).forEach(e=>this.adjustSubmenuMaxHeight(e,t))})}getAllOpenedSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component.collapsed .menu-element.open .sub-menu"))}getAllSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component .menu-element .sub-menu"))}clearAllOpenedSubmenuStyles(){this.getAllSubmenus(this.hostElement).forEach(e=>{e.style.maxHeight="",e.style.overflowY="",e.style.top="",e.style.bottom=""})}componentWillLoad(){this.init(this.menuItems)}connectedCallback(){this.subscribeToNavigationEnd(),this.subscribeToProductInfoChanges(),this.subscribeToRepositoryChange(),this.onTranslate(ie),this.onTranslate(ne),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 t(i,null,t("ul",{class:"navbar-component"},t("li",{class:"navbar-toggle"},t("a",{class:"toggle-menu no-underline",title:this.isCollapsed?this.labels[ie]:this.labels[ne],onClick:this.toggleNavbarHandler()},t("em",{class:this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line"}))),this.menuModel.items.map(e=>t("li",{key:e.labelKey,class:{"menu-element":!0,open:e.open},"data-test":e.testSelector,"guide-selector":e.guideSelector},e.children.length>0&&t(o,null,t("div",{class:{"menu-element-root":!0,active:e.selected},onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`})," ",t("translate-label",{class:"menu-item",labelKey:e.labelKey})),t("ul",{class:"sub-menu"},t("li",{key:e.labelKey,class:"submenu-title"},t("translate-label",{labelKey:e.labelKey})),e.children.map(e=>t("li",{key:e.labelKey,class:{"sub-menu-item":!0,active:e.selected},"data-test":e.testSelector,"guide-selector":e.guideSelector},t("a",e.documentationHref?{class:"sub-menu-link external-link",href:e.href,target:"_blank",rel:"noopener noreferrer"}:{class:"sub-menu-link",href:e.href,onClick:this.handleSelectMenuItem(e)},t("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&t("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&t("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`})," ",t("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 s(this)}static get watchers(){return{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}}};oe.style=':host{display:block}.navbar-component{width:15rem;position:fixed;font-weight:400;z-index:1010;margin:0;padding:0;-moz-transition:width 0.2s ease-in;-o-transition:width 0.2s ease-in;-webkit-transition:width 0.2s ease-in;transition:width 0.2s ease-in;height:calc(100% - 60px);overflow-y:auto;overflow-x:hidden}@media screen and (max-height: 475px){.navbar-component.collapsed{position:absolute}}.navbar-component li{list-style:none;cursor:pointer}.navbar-component li a{text-decoration:none}.navbar-component li a.sub-menu-link:not([href=""]):not([tabindex]):hover{text-decoration:none !important}.navbar-component .sub-menu-item a.sub-menu-link:not([href]) translate-label.menu-item{padding-right:3.5px}.navbar-component a.sub-menu-link:not([href]):hover .menu-item,.navbar-component a.sub-menu-link[href=""]:hover .menu-item{text-decoration-line:underline !important}.navbar-component li .menu-element-root:hover,.navbar-component .sub-menu li:hover{text-decoration-line:none !important}.navbar-component li .menu-element-root:hover .menu-item-icon,.navbar-component .menu-element.open .menu-item-icon{transform:scale(1.1)}.navbar-component .menu-element.open .sub-menu .menu-item-icon{transform:scale(0.5)}.navbar-component .menu-element{position:relative}.navbar-component .menu-element-root{padding:0.8em 2.5em 0.8em 0.8em;display:block;line-height:2.5rem;position:relative;z-index:100;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.navbar-component .menu-item-icon{font-size:1.6rem;width:2.5rem;vertical-align:middle;text-align:center;transform:scale(0.9);display:inline-block;-moz-transition:all 0.18s ease-out;-o-transition:all 0.18s ease-out;-webkit-transition:all 0.18s ease-out;transition:all 0.18s ease-out;pointer-events:none}.navbar-component .menu-element-root .menu-item{pointer-events:none}.navbar-component :not(.brand) .menu-element-root{font-size:1.1rem}.navbar-component .brand a{display:block;position:relative;z-index:5}.navbar-component .sub-menu{position:relative;padding:0;z-index:110}.navbar-component .sub-menu li{display:none}.navbar-component .sub-menu li a{padding:0.5em 0.8em 0.5em 1.3em;display:block}.navbar-component .sub-menu li.active a{font-weight:500}.navbar-component .menu-element.open ul li{display:block}.navbar-component .menu-element ul:before{font-family:"icomoon", sans-serif !important;content:"\\e91b";display:block;font-size:1.5em;position:absolute;top:-3.3rem;right:1rem;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in;pointer-events:none}.navbar-component .menu-element.open ul:before,.rdf-list ul.open.datasource:before{transform:rotate(90deg)}.navbar-component.collapsed{width:4.375rem;overflow:visible;height:auto}.navbar-component.collapsed .menu-element.open .sub-menu{position:absolute;top:0;left:4.375rem;width:15rem}.navbar-component.collapsed .menu-element .menu-item,.navbar-component.collapsed .menu-element .sub-menu li{display:none}.navbar-component.collapsed .menu-element.open .menu-item,.navbar-component.collapsed .menu-element.open .sub-menu li{display:block}.navbar-component.collapsed .menu-element.open .menu-element-root .menu-item{display:none}.navbar-component.collapsed .menu-element.open .sub-menu-item .sub-menu-link{background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element-root{overflow:visible}.navbar-component .menu-element.open ul li.submenu-title,.navbar-component .submenu-title{display:none}.navbar-component.collapsed .menu-element.open ul li.submenu-title{display:block;font-size:1.2em;font-weight:500;text-overflow:ellipsis;overflow:hidden;padding:0.5em 0.8rem 0.7em 0.8rem;background-color:var(--gw-sidenav-submenuitem-open-background)}.navbar-component.collapsed .menu-element.open .sub-menu.align-bottom{bottom:0;top:auto}.navbar-component.collapsed .menu-element ul:before{display:none}.navbar-toggle{padding:0.3em 0}.toggle-menu{display:flex;flex-direction:column;align-items:flex-end;font-size:0.8em;line-height:1.5;padding:0 0.3em;z-index:101;cursor:pointer;background-color:var(--gw-sidenav-togglebutton-background);color:var(--gw-sidenav-togglebutton-color)}.toggle-menu:hover{color:var(--gw-sidenav-togglebutton-hover-color);background-color:var(--gw-sidenav-togglebutton-hover-background)}.toggle-menu [class^=icon-]{transition:all 0.2s ease-in;display:inline-block}.toggle-menu:hover [class^=icon-]{transform:scale(1.1)}.navbar-component{background-color:var(--gw-sidenav-background)}.navbar-component .menu-element .menu-element-root:not(.active){background-color:var(--gw-sidenav-menuitem-background);color:var(--gw-sidenav-menuitem-color)}.navbar-component .menu-element .menu-element-root .menu-item-icon,.navbar-component .menu-element .menu-element-root .menu-item{color:var(--gw-sidenav-menuitem-icon-color)}.navbar-component .menu-element .menu-element-root:hover,.navbar-component .menu-element .menu-element-root:hover .menu-item{background-color:var(--gw-sidenav-menuitem-hover-background);color:var(--gw-sidenav-menuitem-hover-color)}.navbar-component .menu-element .menu-element-root:hover .menu-item-icon{color:var(--gw-sidenav-menuitem-hover-icon-color)}.navbar-component .menu-element:not(.open):has(.menu-element-root.active){background-color:var(--gw-sidenav-menuitem-selected-background);color:var(--gw-sidenav-menuitem-selected-color);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .menu-element-root.active .menu-item,.navbar-component .menu-element .menu-element-root.active .menu-item-icon{color:var(--gw-sidenav-menuitem-selected-color)}.navbar-component .menu-element .menu-element-root.active .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element.open,.navbar-component .menu-element.open .menu-element-root{background-color:var(--gw-sidenav-menuitem-open-background);color:var(--gw-sidenav-menuitem-open-color)}.navbar-component .menu-element:has(.menu-element-root.active) .menu-item-icon,.navbar-component .menu-element:has(.menu-element-root.active) .menu-item{color:var(--gw-sidenav-menuitem-selected-icon-color)}.navbar-component .menu-element .sub-menu-item .menu-item{color:var(--gw-sidenav-submenuitem-color);font-weight:400}.navbar-component .menu-element .sub-menu-item:hover .menu-item{color:var(--gw-sidenav-submenuitem-hover-color)}.navbar-component .menu-element .sub-menu-item.active{color:var(--gw-sidenav-submenuitem-selected-color);background-color:var(--gw-sidenav-submenuitem-selected-background);border-right:0.25em solid var(--gw-border-color-primary)}.navbar-component .menu-element .sub-menu-item.active .menu-item{color:var(--gw-sidenav-submenuitem-selected-color)}';const se=class{constructor(t){e(this,t),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(X.getTooltipInstance(e))return X.destroyTooltip(e),!0;e.childNodes.forEach(this.removeTooltipFromNode)}return!1}}onMouseover(e){const t=X.getTooltipTarget(e.target);t&&this.handleTooltipTargetShow(t);const i=X.getTooltip(e.target);i&&this.handleTooltipShow(i)}handleTooltipShow(e){const t=e.tooltipTarget;t&&this.handleTooltipTargetShow(t)}handleTooltipTargetShow(e){X.getOrCreateTooltipInstance(e).show()}onMouseout(e){const t=X.getTooltipTarget(e.target);t&&this.handleTooltipTargetHide(t,e.relatedTarget);const i=X.getTooltip(e.target);i&&this.handleTooltipHide(i,e.relatedTarget)}handleTooltipHide(e,t){const i=e.tooltipTarget;i&&(t&&e.contains(t)||this.handleTooltipTargetHide(i,t))}handleTooltipTargetHide(e,t){t&&(null==e?void 0:e.contains(t))||X.getTooltipInstance(e)&&X.destroyTooltip(e)}connectedCallback(){this.handleRemovedNodes()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){return t(i,{key:"341f9ff6313750adc5b8583a8fa3e3ed8c2f98d9"})}handleRemovedNodes(){this.observer=new MutationObserver(this.clearTooltipsForRemovedElements),this.observer.observe(document.body,{childList:!0,subtree:!0})}};se.style=':host{display:block}.tooltip-box{width:max-content;font-size:0.875rem;font-weight:400;line-height:1.5;max-width:var(--gw-tooltip-max-width);pointer-events:auto;opacity:1 !important;color:var(--gw-tooltip-color) !important;background-color:var(--gw-tooltip-background) !important;border-radius:var(--gw-tooltip-border-radius) !important}.tooltip-box .tooltip-arrow{width:10px;height:10px}.tooltip-box .tooltip-arrow::before{content:"";position:absolute;width:10px;height:10px;background-color:var(--gw-tooltip-background);transform:rotate(45deg)}.tooltip-box .tooltip-arrow[data-placement=top]::before{border-bottom-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-arrow[data-placement=bottom]::before{border-top-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=right]::before{border-bottom-color:transparent;border-left-color:transparent}.tooltip-box .tooltip-arrow[data-placement=left]::before{border-top-color:transparent;border-right-color:transparent}.tooltip-box .tooltip-content{position:relative;z-index:1;padding:var(--gw-tooltip-padding)}';export{J as onto_footer,K as onto_header,Q as onto_loader,oe as onto_navbar,se as onto_tooltip};
|