graphdb-workbench 4.0.0-TR20 → 4.0.0-TR21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/28944.10ba3819ab642475c4cc.bundle.js +2 -0
- package/dist/28944.10ba3819ab642475c4cc.bundle.js.map +1 -0
- package/dist/43239.40282ca142f86c6dde15.bundle.js +2 -0
- package/dist/43239.40282ca142f86c6dde15.bundle.js.map +1 -0
- package/dist/44906.c4c659df4b02ccae9229.bundle.js +2 -0
- package/dist/44906.c4c659df4b02ccae9229.bundle.js.map +1 -0
- package/dist/{64709.3025889983ec8209d336.bundle.js → 64709.18515378d91873dbe224.bundle.js} +2 -2
- package/dist/{64709.3025889983ec8209d336.bundle.js.map → 64709.18515378d91873dbe224.bundle.js.map} +1 -1
- package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js → 65677.16009c5d1eabcad00aeb.bundle.js} +2 -2
- package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js.map → 65677.16009c5d1eabcad00aeb.bundle.js.map} +1 -1
- package/dist/{7257.1990b2e548feb7975f39.bundle.js → 7257.d60c8e9f046b1392ea1e.bundle.js} +2 -2
- package/dist/{7257.1990b2e548feb7975f39.bundle.js.map → 7257.d60c8e9f046b1392ea1e.bundle.js.map} +1 -1
- package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js +2 -0
- package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js.map +1 -0
- package/dist/{80933.3851df33b6cf8f94243c.bundle.js → 80933.32639a47f5bcab72f129.bundle.js} +2 -2
- package/dist/{80933.3851df33b6cf8f94243c.bundle.js.map → 80933.32639a47f5bcab72f129.bundle.js.map} +1 -1
- package/dist/{82917.c4d381f514d7ffa59784.bundle.js → 82917.a13bbac26dd299c57f0c.bundle.js} +2 -2
- package/dist/{82917.c4d381f514d7ffa59784.bundle.js.map → 82917.a13bbac26dd299c57f0c.bundle.js.map} +1 -1
- package/dist/{86099.dab1ff44dc71449a5aec.bundle.js → 86099.fe7fcec5f4ad92673a0b.bundle.js} +2 -2
- package/dist/{86099.dab1ff44dc71449a5aec.bundle.js.map → 86099.fe7fcec5f4ad92673a0b.bundle.js.map} +1 -1
- package/dist/96827.33e11fed0a796c76a367.bundle.js +2 -0
- package/dist/96827.33e11fed0a796c76a367.bundle.js.map +1 -0
- package/dist/assets/i18n/en.json +6 -2
- package/dist/assets/i18n/fr.json +6 -2
- package/dist/assets/i18n/language-config.json +1 -1
- package/dist/css/core-errors.css +1 -1
- package/dist/css/repositories.css +1 -1
- package/dist/css/repository-info-popover.css +1 -1
- package/dist/css/repository.create.css +1 -1
- package/dist/i18n/locale-en.json +9 -5
- package/dist/i18n/locale-fr.json +9 -5
- package/dist/index.html +9 -9
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
- 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 +7 -7
- 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/core-errors.html +4 -2
- 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/repositories/templates/manage-remote-location-dialog.template.html +0 -13
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/security/templates/users.html +1 -1
- package/dist/js/angular/templates/repositorySize.html +10 -6
- 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 +1 -1
- 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.d8ed4eb634c5be181feb.js +3 -0
- package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.map → legacyWorkbench.d8ed4eb634c5be181feb.js.map} +1 -1
- package/dist/{main.519bdd021ad27b8f7c2a.js → main.bb3c33c0be119ba8d7dd.js} +3 -3
- package/dist/main.bb3c33c0be119ba8d7dd.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 +2 -1
- package/dist/pages/cluster-management/clusterInfo.html +2 -2
- 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 +8 -4
- package/dist/pages/repository.html +6 -2
- 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/viewQuery.html +1 -1
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +11 -11
- package/dist/shared-components/cjs/loader.cjs.js +1 -1
- package/dist/shared-components/cjs/onto-footer_3.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-repository-info.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
- package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.css +1 -1
- package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.css +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/selector-item.js +1 -1
- package/dist/shared-components/esm/loader.js +1 -1
- package/dist/shared-components/esm/onto-footer_3.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-repository-info.entry.js +1 -1
- package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
- package/dist/shared-components/esm/shared-components.js +1 -1
- package/dist/shared-components/shared-components/p-0b5b6ae2.entry.js +1 -0
- package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js} +1 -1
- package/dist/shared-components/shared-components/p-6bb1e333.entry.js +1 -0
- package/dist/shared-components/shared-components/p-b3e34efa.entry.js +1 -0
- package/dist/shared-components/shared-components/p-e07c6668.entry.js +1 -0
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +12 -0
- package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +3 -0
- package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts +4 -0
- package/dist/shared-components/types/components/onto-repository-selector/selector-item.d.ts +1 -1
- package/dist/workbench/workbench/216.84774aeec22c9e0d.js +1 -0
- package/dist/workbench/workbench/{937.c2bb6617eb67b694.js → 272.720044b4ff7554f5.js} +1 -1
- package/dist/workbench/workbench/472.eb8524a286baa5e7.js +1 -0
- package/dist/workbench/workbench/workbenchApp.js +1 -1
- package/package.json +1 -1
- package/dist/28944.50f6cc0b531327c3210e.bundle.js +0 -2
- package/dist/28944.50f6cc0b531327c3210e.bundle.js.map +0 -1
- package/dist/43239.520a41f9703920195281.bundle.js +0 -2
- package/dist/43239.520a41f9703920195281.bundle.js.map +0 -1
- package/dist/44906.732540785071c9088916.bundle.js +0 -2
- package/dist/44906.732540785071c9088916.bundle.js.map +0 -1
- package/dist/7714.ccdf9a75e387a85cb980.bundle.js +0 -2
- package/dist/7714.ccdf9a75e387a85cb980.bundle.js.map +0 -1
- package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js +0 -2
- package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js.map +0 -1
- package/dist/legacyWorkbench.ec3c7f8dd4342d75e489.js +0 -3
- package/dist/main.519bdd021ad27b8f7c2a.js.map +0 -1
- package/dist/shared-components/shared-components/p-388d4524.entry.js +0 -1
- package/dist/shared-components/shared-components/p-78c03a43.entry.js +0 -1
- package/dist/shared-components/shared-components/p-8952636b.entry.js +0 -1
- package/dist/shared-components/shared-components/p-b6fa9b0a.entry.js +0 -1
- package/dist/workbench/workbench/216.1d0b714ace0ab8e4.js +0 -1
- package/dist/workbench/workbench/472.d4b7ec12b3627aee.js +0 -1
- /package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.LICENSE.txt → legacyWorkbench.d8ed4eb634c5be181feb.js.LICENSE.txt} +0 -0
- /package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{D as DropdownItem}from"./dropdown-item-WQYHXM0G.js";import{ServiceProvider,LanguageService,LanguageContextService,navigateTo,OperationStatus,OperationGroup,SubscriptionList,EventService,ResourceSearchStorageService,UriUtil,SearchButtonConfig,SearchButton,openInNewTab,service,RepositoryContextService,RepositoryState,getRepositoryIdWithLocation,AutocompleteService,AutocompleteContextService,AutocompleteStorageService,OntoToastrService,NamespacesContextService,SuggestionType,SuggestionSelectedPayload,Suggestion,navigateToLoginPage,AuthenticationService,navigate,Logout}from"@ontotext/workbench-api";import{D as DropdownItemAlignment}from"./dropdown-item-alignment-DghTf3pJ.js";import{O as OntoTooltipPlacement}from"./onto-tooltip-placement-D_J2-9CG.js";import{T as TranslationService,e as escapeHtml}from"./translation.service-BIRn4Afp.js";import{H as HtmlUtil}from"./html-util-BSmKhkm5.js";import{R as ResourceSearchConstants}from"./resource-search-constants-CNWCaedF.js";import{L as LoggerProvider}from"./logger-provider-BIkLC5Zf.js";const ontoLanguageSelectorCss=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}",OntoLanguageSelector=class{constructor(e){registerInstance(this,e),this.languageService=ServiceProvider.get(LanguageService),this.languageContextService=ServiceProvider.get(LanguageContextService),this.items=[],this.dropdownAlignment=DropdownItemAlignment.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(e=>this.changeLanguage(e)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var e,o;return h(Host,{key:"9984b524472fd68652a3fcbcf9eea97f8a223177"},h("onto-dropdown",{key:"428a5d4f65595214dbb2ed4bef9748ffed2d870c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(e=this.currentLanguage)&&void 0!==e?e:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(o=this.dropdownAlignment)&&void 0!==o?o:DropdownItemAlignment.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return e=>this.onSelectedLanguageChanged(e)}changeLanguage(e){let o=e;o||(o=this.languageService.getDefaultLanguage()),this.currentLanguage=o,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(e){this.languageContextService.updateSelectedLanguage(e.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(e=>{const o=this.currentLanguage===e?"ri-check-line":"";return(new DropdownItem).setNameLabelKey(`language_selector.language.${e}.label`).setTooltipLabelKey(`language_selector.language.${e}.tooltip.`+(this.currentLanguage===e?"selected":"not_selected")).setIconClass(o).setCssClass(e).setValue(e)})}};OntoLanguageSelector.style=ontoLanguageSelectorCss;const ontoLicenseAlertCss=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}",OntoLicenseAlert=class{constructor(e){registerInstance(this,e)}render(){var e;return h(Host,{key:"9bac74e245fc646cfd6b63d638ac11ffeb50754b","tooltip-content":null===(e=this.license)||void 0===e?void 0:e.message,"tooltip-placement":OntoTooltipPlacement.BOTTOM,"data-test":"onto-license-alert"},h("button",{key:"317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa",class:"onto-license-alert onto-btn",onClick:navigateTo("license")},h("span",{key:"dd60e1800d32e32bdbb88555f34b0bb55396914b",class:"ri-alert-line"}),h("translate-label",{key:"9f6886cf5803e3cbc8092c578152b3f8615c89cc",labelKey:"license_alert.label"})))}};OntoLicenseAlert.style=ontoLicenseAlertCss;const ontoOperationsNotificationCss=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}",operationGroupToIcon={[OperationGroup.BACKUP]:"ri-archive-line",[OperationGroup.QUERY]:"ri-arrow-left-right-line",[OperationGroup.CLUSTER]:"ri-organization-chart",[OperationGroup.IMPORT]:"icon-import"},operationStatusToWarningClass={[OperationStatus.WARNING]:"status-warning",[OperationStatus.INFORMATION]:"status-information",[OperationStatus.CRITICAL]:"status-critical"},operationStatusToFadeClass={[OperationStatus.WARNING]:"onto-btn-fade-warning",[OperationStatus.CRITICAL]:"onto-btn-fade-danger"},OntoOperationsNotification=class{constructor(e){registerInstance(this,e),this.isOpen=!1,this.DROPDOWN_ID="onto-operations-dropdown",this.toggleDropdown=e=>{e.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),h("section",{key:"13de6326145250d9f3459f5558e8c1791a3be35a",class:"operations-statuses"},h("button",{key:"de16a9fc8c01af9ad5a82b052c838f37e7e6713f",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=operationStatusToFadeClass[this.activeOperations.status])&&void 0!==e?e:""}`,ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},h("span",{key:"857f7317826c5285797374c1871104cd23bb5216",class:"screen-reader-only"},h("translate-label",{key:"6710d5a90dea211a7ae801cf63ae19c1032b584a",labelKey:"operations_notification.toggle_label"})),this.operationGroups.getItems().map(e=>h("section",{key:e.id,class:"operation-status-header"},h("i",{"aria-hidden":"true",class:`operation-status-icon icon-1-33x ${operationGroupToIcon[e.group]} ${operationStatusToWarningClass[e.status]}`}),e.totalOperations?h("sup",{class:"running-operation-count"},e.totalOperations):"")),h("i",{key:"3f98039d08623eccc3c03c20d7fd5c44b8f45fd4",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen&&h("div",{key:"622feb33220bc3d9f43525b38c16fb0c6eb9678c",class:"operations-dropdown",id:this.DROPDOWN_ID},h("ul",{key:"b9d6c474ef48b72292e9985637bf6d9b6d1356ab",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>h("li",{key:e.id},h("a",{class:`operation-status-content onto-btn no-underline ${operationStatusToWarningClass[e.status]}`,href:e.href,target:"_blank",rel:"noopener noreferrer"},h("i",{class:operationGroupToIcon[e.group],"aria-hidden":"true"}),h("span",{class:"operation-status-label"},h("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),h("span",{class:"operation-number"},e.count?h("span",{class:"operation-status-running-operation-count"},e.count):""),h("span",{class:"screen-reader-only"}," ",h("translate-label",{labelKey:"common.label.opens_in_new_window"}))))))))}onKeyDown(e){var o;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(o=this.toggleButton)||void 0===o||o.focus())}get el(){return getElement(this)}};OntoOperationsNotification.style=ontoOperationsNotificationCss;const ontoRdfSearchCss=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}",OntoRdfSearch=class{constructor(e){registerInstance(this,e),this.subscriptions=new SubscriptionList,this.eventService=ServiceProvider.get(EventService),this.resourceSearchStorageService=ServiceProvider.get(ResourceSearchStorageService),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=UriUtil.RESOURCE_URL,this.shouldMoveFocus=!1,this.closeAndFocusSearchIcon=()=>{this.isOpen&&(this.isOpen=!1,this.shouldMoveFocus=!0)}}handleClick(e){var o;this.isOpen&&((null===(o=this.rdfSearchRef)||void 0===o?void 0:o.contains(e.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.shouldMoveFocus&&(this.shouldMoveFocus=!1,this.moveFocus())}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return h("section",{key:"835735fbb93893e9c3240edabbcae5a465f1ca27",ref:e=>this.rdfSearchRef=e,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},h("section",{key:"fde50b68c1de8ed654af30b27d29ac9403a68f07",class:"search-area "+(this.isOpen?"visible":"invisible"),inert:!this.isOpen},h("button",{key:"4d1f1c2ceb2893177b04dd8b24e3c877da158000",type:"button",onClick:this.closeAndFocusSearchIcon,"aria-label":TranslationService.translate("rdf_search.tooltips.close_search_area"),"tooltip-content":TranslationService.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":OntoTooltipPlacement.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"close-btn"},h("i",{key:"4f6b19632fac056ea0d4632f5f62c7e70ed7aa29",class:"ri-close-line","aria-hidden":"true"})),h("onto-search-resource-input",{key:"204ff32df46482664896f8ac7d2ca9f1f55cd7fd",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":h("onto-search-icon",{ref:e=>this.searchIconRef=e,onClick:this.setIsOpen(!0)}))}setIsOpen(e){return()=>{this.isOpen=e,this.isOpen&&(this.shouldMoveFocus=!0,this.loadSelectedViewFromStorage())}}createButtonConfig(){return new SearchButtonConfig({isRadio:!0,buttons:[this.createSearchButton(ResourceSearchConstants.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=UriUtil.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.TABLE_VIEW)},!0),this.createSearchButton(ResourceSearchConstants.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=UriUtil.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.VISUAL_VIEW)},!1),this.createSearchButton(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW,"rdf_search.buttons.graph_navigator",()=>{this.redirectUrl=UriUtil.GRAPH_NAVIGATOR_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW)},!1)]})}createSearchButton(e,o,t,r){return new SearchButton({label:TranslationService.translate(o),id:e,callback:t,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,e=>{if(e.getContext()===this.RDF_CONTEXT){const o=e.getSuggestion().getOverrideToVisual()?UriUtil.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;openInNewTab(UriUtil.createAutocompleteRedirect(o,e.getSuggestion().getValue()))}}))}onKeyDown(){return e=>{"Escape"===e.key?this.closeAndFocusSearchIcon():"Tab"===e.key&&this.keepFocusInSearchArea(e)}}keepFocusInSearchArea(e){if(!this.isOpen)return;const o=Array.from(this.rdfSearchRef.querySelectorAll(".search-area button:not(:disabled), .search-area input:not(:disabled)")),t=o[0],r=o[o.length-1],n=e.shiftKey?r:t,s=e.shiftKey?t:r;document.activeElement===s&&(e.preventDefault(),n.focus())}moveFocus(){var e;this.isOpen?HtmlUtil.focusElement(`#${this.RDF_CONTEXT}`):null===(e=this.searchIconRef)||void 0===e||e.componentOnReady().then(e=>{var o;return null===(o=e.querySelector("button"))||void 0===o?void 0:o.focus()})}loadSelectedViewFromStorage(){const e=this.resourceSearchStorageService.getSelectedView();if(e){const o=this.buttonConfig.getButtons().find(o=>o.id===e);o&&(this.buttonConfig=this.buttonConfig.selectButton(o))}}};OntoRdfSearch.style=ontoRdfSearchCss;const RepositorySelection=({repository:e,defaultToggleButtonName:o,location:t})=>{var r;return h("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&h("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",h("span",{class:"repository-id"},null!==(r=null==e?void 0:e.id)&&void 0!==r?r:o,t))},ontoRepositorySelectorCss=":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}",OntoRepositorySelector=class{constructor(e){registerInstance(this,e),this.repositoryContextService=service(RepositoryContextService),this.subscriptions=[],this.repositorySizeInfoCache=new Map,this.repositorySizeInfoRequests=new Map,this.clearRepositorySizeInfo=()=>{this.repositorySizeInfoCache.clear(),this.repositorySizeInfoRequests.clear()}}onItemsChanged(e){(null==e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}connectedCallback(){var e;this.subscriptions.push(...this.subscribeToTranslationChanged(),this.subscribeToRepositoryListChanged()),(null===(e=this.items)||void 0===e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}disconnectedCallback(){this.subscriptions.forEach(e=>e())}render(){const e=h(RepositorySelection,{key:"c603f4a2de6beef60a38bfc297ec323810414850",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return h(Host,{key:"207c1e246f62dba2262616a6b6a9e637fb9f7166"},h("onto-dropdown",Object.assign({key:"ae203784eb20a87e3e4114c29dace0427df14960",ref:e=>this.dropdownElement=e,class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:e,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:DropdownItemAlignment.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",tooltipClass:"repository-selector-tooltip",items:this.dropdownItems,onMouseLeave:this.clearRepositorySizeInfo,"auto-close":!0})))}attachTooltipsToItems(e){return e?e.map(e=>e.setTooltip(this.createTooltipFunctionForRepository(e.value))):[]}tooltipAlignment(e){return e?OntoTooltipPlacement.LEFT:OntoTooltipPlacement.BOTTOM}onValueChanged(){return e=>this.onRepositoryChanged(e.detail)}createTooltipFunctionForRepository(e){return()=>{if(!e)return Promise.resolve("");if(e.state!==RepositoryState.RUNNING)return this.buildRepositoryTooltipHtml(e);const o=getRepositoryIdWithLocation(e),t=this.repositorySizeInfoCache.get(o);return t?this.buildRepositoryTooltipHtml(e,t):(this.repositorySizeInfoRequests.has(o)||this.fetchRepositorySizeInfo(e),this.buildRepositoryTooltipHtml(e,void 0,!0))}}fetchRepositorySizeInfo(e){const o=getRepositoryIdWithLocation(e),t=this.repositorySizeInfoFetcher(e);this.repositorySizeInfoRequests.set(o,t),t.then(e=>{this.repositorySizeInfoCache.set(o,e)}).catch(e=>{LoggerProvider.logger.error("Failed to fetch repository size.",e)}).finally(()=>{var e;this.repositorySizeInfoRequests.get(o)===t&&this.repositorySizeInfoRequests.delete(o),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}buildRepositoryTooltipHtml(e,o,t=!1){const r=[`repository="${escapeHtml(JSON.stringify(e))}"`,`permission="${escapeHtml(this.getRepositoryPermission(e))}"`];return t&&r.push('loading="true"'),o&&r.push(`size-info="${escapeHtml(JSON.stringify(o))}"`),Promise.resolve(`<onto-repository-info ${r.join(" ")}></onto-repository-info>`)}subscribeToRepositoryListChanged(){return this.repositoryContextService.onRepositoryListChanged(()=>{var e;this.clearRepositorySizeInfo(),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}subscribeToTranslationChanged(){return[TranslationService.onTranslate("repository-selector.btn.toggle",[],e=>{this.defaultToggleButtonName=e}),TranslationService.onTranslate("repository-selector.btn.no_repositories",[],e=>{this.noRepositoriesButtonMessage=e})]}onRepositoryChanged(e){this.repositoryContextService.updateSelectedRepository(e)}getLocation(){var e;return(null===(e=this.currentRepository)||void 0===e?void 0:e.location)?`@${UriUtil.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};OntoRepositorySelector.style=ontoRepositorySelectorCss;const ontoSearchIconCss=".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}",OntoSearchIcon=class{constructor(e){registerInstance(this,e),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h("button",{key:"7351e75e718af25b9be67add8a7722cdae66fffe",type:"button",class:"onto-search-icon","aria-label":this.tooltipLabel,"tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.BOTTOM},h("i",{key:"b81860bf830286b16a0d2b1b9d63d4af59a7fbbb",class:"ri-search-line ri-lg","aria-hidden":"true"}))}onTooltipChange(){this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey,[],e=>this.tooltipLabel=e))}};OntoSearchIcon.style=ontoSearchIconCss;const ontoSearchResourceInputCss=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}",OntoSearchResourceInput=class{constructor(e){registerInstance(this,e),this.autocompleteService=ServiceProvider.get(AutocompleteService),this.autocompleteContextService=ServiceProvider.get(AutocompleteContextService),this.autocompleteStorageService=ServiceProvider.get(AutocompleteStorageService),this.resourceSearchStorageService=ServiceProvider.get(ResourceSearchStorageService),this.toastrService=ServiceProvider.get(OntoToastrService),this.eventService=ServiceProvider.get(EventService),this.namespaceContextService=ServiceProvider.get(NamespacesContextService),this.repositoryContextService=ServiceProvider.get(RepositoryContextService),this.subscriptions=new SubscriptionList,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=e=>{const o=e.target;o.value?(this.setInputValue(o.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.clearInputAndFocus=()=>{this.clearInput(),this.inputRef.focus()},this.onKeyDown=e=>{switch(e.key){case"Enter":this.onEnter(e);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowDown":this.onArrowDown(e)}}}onVisibilityChange(e){var o;e?null===(o=this.searchResult)||void 0===o||o.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onRepositoryChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,t,r;const n=TranslationService.translate("rdf_search.labels.search"),s=`${this.context}-suggestions`,i=`${this.context}-hint`,a=null!==(o=null===(e=this.searchResult)||void 0===e?void 0:e.suggestions.getItems())&&void 0!==o?o:[],c=a.findIndex(e=>e.isHovered());return h("section",{key:"cda724e2a03c25a7186eff04130da0e38b77f7d8",class:"search-resources-input"},h("div",{key:"96bc8785ddecf838c7564d60d86e1ea224a466fe",class:"input-row"},h("span",{key:"9b6f94fb65209d461910ea79505336e6673d16df",class:"input-wrapper"},h("input",{key:"3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32",value:this.inputValue,id:this.context,type:"text",role:"combobox","aria-label":n,"aria-autocomplete":"list","aria-expanded":a.length?"true":"false","aria-controls":s,"aria-activedescendant":c>=0?this.getSuggestionId(c):void 0,"aria-describedby":i,autocomplete:"off",placeholder:`${n}...`,ref:e=>this.inputRef=e,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(t=this.inputValue)||void 0===t?void 0:t.length)?h("button",{type:"button",onClick:this.clearInputAndFocus,"aria-label":TranslationService.translate("rdf_search.tooltips.clear"),"tooltip-content":TranslationService.translate("rdf_search.tooltips.clear"),"tooltip-placement":OntoTooltipPlacement.BOTTOM,class:"clear-input"},h("i",{class:"ri-close-line","aria-hidden":"true"})):""),null===(r=this.buttonConfig)||void 0===r?void 0:r.getButtons().getItems().map(e=>h("button",{key:e.label,type:"button","aria-pressed":e.selected?"true":"false",onClick:this.handleButtonClick(e),class:"onto-btn "+(e.selected?"selected":"")},e.label))),h("span",{key:"ef80fe089557adfd223b07c3d732bf0d9a5367fe",class:"hint",id:i},TranslationService.translate("rdf_search.labels.hint")),h("div",{key:"1eaa7699192a2a4fd1469e03045a5af09a891600",class:"autocomplete-results-wrapper",id:s,role:"listbox",tabindex:-1,"aria-label":n,"data-test":"onto-autocomplete-results"},a.map((e,o)=>h("p",{key:e.getId(),id:this.getSuggestionId(o),role:"option","aria-selected":e.isHovered()?"true":"false",onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}getSuggestionId(e){return`${this.context}-suggestion-${e}`}handleButtonClick(e){return()=>this.buttonConfig=this.buttonConfig.selectButton(e)}loadAutocompleteResults(){var e;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(e=>{this.onResultsReceived(e)}):null===(e=this.searchResult)||void 0===e||e.clearSuggestions()}hoverSuggestion(e){return()=>this.searchResult=this.searchResult.hoverSuggestion(e)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(e=>{this.isAutocompleteEnabled=null!=e?e:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const e=TranslationService.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: var(--gw-label-base-medium-font-weight)">${e}</a>`,{onClick:navigateTo("autocomplete"),removeOnClick:!0})}}onSuggestionClick(e){return o=>{e.setOverrideToVisual(o.ctrlKey||o.metaKey),this.searchRdfResource(e)}}searchRdfResource(e){e.getType()===SuggestionType.PREFIX?this.expandPrefix(e):(this.notifyRdfResourceSelected(e),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(e))}notifyRdfResourceSelected(e){var o;this.searchResult=null===(o=this.searchResult)||void 0===o?void 0:o.selectSuggestion(e),this.eventService.emit({NAME:ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,payload:new SuggestionSelectedPayload(e,this.context)})}expandPrefix(e){this.setInputValue(this.namespaces.getByPrefix(e.getValue())),this.inputRef.focus()}setInputValue(e){this.inputValue=e,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(()=>{this.autocompleteWarningShown=!1}))}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(e=>{this.namespaces=e}))}onEnter(e){var o;let t=null===(o=this.searchResult)||void 0===o?void 0:o.getHoveredSuggestion();t||(t=new Suggestion({value:UriUtil.removeAngleBrackets(this.inputValue),type:SuggestionType.URI})),t.setOverrideToVisual(e.ctrlKey||e.metaKey),this.validateAndSearch(t)}onArrowUp(e){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(e))}onArrowDown(e){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(e))}displaySuggestion(e){e.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(e){return e.getType()===SuggestionType.PREFIX?this.namespaces.getByPrefix(e.getValue()):e.getValue()}scrollToSuggestionBySelector(e,o){HtmlUtil.waitForElement(e).then(()=>{HtmlUtil.scrollElementIntoView(e,o)})}validateAndSearch(e){if(!this.skipValidation){if(!e.getValue())return void this.toastrService.error(TranslationService.translate("rdf_search.toasts.empty_input"));if(!UriUtil.isValidUri(this.getSuggestionValue(e)))return void this.toastrService.error(TranslationService.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(e)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(e){const o=null==e?void 0:e.getByValue(this.resourceSearchStorageService.getLastSelectedValue());o&&this.preserveSearch?(e.hoverSuggestion(o),this.searchResult=e.selectSuggestion(o),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=e.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};OntoSearchResourceInput.style=ontoSearchResourceInputCss;const ontoUserLoginCss=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}",OntoUserLogin=class{constructor(e){registerInstance(this,e)}navigateToLogin(){return e=>{e.preventDefault(),navigateToLoginPage()}}render(){return h("section",{key:"0e775e390fe6d9733fbea06cc9b3137350be0a1a",class:"onto-user-login"},h("button",{key:"9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc",onClick:this.navigateToLogin()},h("i",{key:"c646277a5770c03535720d4117645da70a240fe8",class:"ri-arrow-right-circle-line"}),h("translate-label",{key:"a063b7d24946cbe3fbb6788beebcc0260d995e0b",class:"user-login-label label-base-regular",labelKey:"user_menu.login"})))}};OntoUserLogin.style=ontoUserLoginCss;const ontoUserMenuCss=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}",OntoUserMenu=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.eventService=service(EventService),this.DROPDOWN_ID="onto-user-menu-dropdown",this.openMySettings=e=>{e.preventDefault(),this.isOpen=!1,navigate("settings")},this.logout=()=>{this.isOpen=!1,this.eventService.emit(new Logout)},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return h("section",{key:"8359f0471e5bcda114532346c2cac8fa858e1779",class:"onto-user-menu"},h("div",{key:"69185865e40b622bd0e7081b98cafd07c309508f",class:"dropdown-toggle-wrapper"},h("button",{key:"4140088a554351f66ac40d9a5c04e10af1bff73b",class:"onto-user-menu-toggle label-base-regular "+(this.isOpen?"open":""),ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},h("i",{key:"bb463c88f7f365174c8ae45c091298883b046236",class:"ri-user-line ri-lg","aria-hidden":"true"}),h("span",{key:"415290f39545158b6eb4e3b9e29ac35647eda0a7",class:"username"},this.user.username),h("i",{key:"58bbdd73b5275b2f565a6bf6fb8408b884c459f5",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen?h("section",{class:"onto-user-menu-dropdown",id:this.DROPDOWN_ID},h("a",{class:"onto-user-menu-item label-base-regular",href:"settings",onClick:this.openMySettings},h("translate-label",{labelKey:"user_menu.my_settings"})),this.authenticationService.isExternalUser()?"":h("button",{class:"onto-user-menu-item label-base-regular",onClick:this.logout},h("translate-label",{labelKey:"user_menu.logout"}))):""))}onKeyDown(e){var o;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(o=this.toggleButton)||void 0===o||o.focus())}get hostElement(){return getElement(this)}};OntoUserMenu.style=ontoUserMenuCss;export{OntoLanguageSelector as onto_language_selector,OntoLicenseAlert as onto_license_alert,OntoOperationsNotification as onto_operations_notification,OntoRdfSearch as onto_rdf_search,OntoRepositorySelector as onto_repository_selector,OntoSearchIcon as onto_search_icon,OntoSearchResourceInput as onto_search_resource_input,OntoUserLogin as onto_user_login,OntoUserMenu as onto_user_menu};
|
|
1
|
+
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{D as DropdownItem}from"./dropdown-item-WQYHXM0G.js";import{ServiceProvider,LanguageService,LanguageContextService,navigateTo,OperationStatus,OperationGroup,SubscriptionList,EventService,ResourceSearchStorageService,UriUtil,SearchButtonConfig,SearchButton,openInNewTab,service,RepositoryContextService,RepositoryState,getRepositoryIdWithLocation,AutocompleteService,AutocompleteContextService,AutocompleteStorageService,OntoToastrService,NamespacesContextService,SuggestionType,SuggestionSelectedPayload,Suggestion,navigateToLoginPage,AuthenticationService,navigate,Logout}from"@ontotext/workbench-api";import{D as DropdownItemAlignment}from"./dropdown-item-alignment-DghTf3pJ.js";import{O as OntoTooltipPlacement}from"./onto-tooltip-placement-D_J2-9CG.js";import{T as TranslationService,e as escapeHtml}from"./translation.service-BIRn4Afp.js";import{H as HtmlUtil}from"./html-util-BSmKhkm5.js";import{R as ResourceSearchConstants}from"./resource-search-constants-CNWCaedF.js";import{L as LoggerProvider}from"./logger-provider-BIkLC5Zf.js";const ontoLanguageSelectorCss=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}",OntoLanguageSelector=class{constructor(e){registerInstance(this,e),this.languageService=ServiceProvider.get(LanguageService),this.languageContextService=ServiceProvider.get(LanguageContextService),this.items=[],this.dropdownAlignment=DropdownItemAlignment.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(e=>this.changeLanguage(e)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var e,o;return h(Host,{key:"9984b524472fd68652a3fcbcf9eea97f8a223177"},h("onto-dropdown",{key:"428a5d4f65595214dbb2ed4bef9748ffed2d870c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(e=this.currentLanguage)&&void 0!==e?e:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(o=this.dropdownAlignment)&&void 0!==o?o:DropdownItemAlignment.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return e=>this.onSelectedLanguageChanged(e)}changeLanguage(e){let o=e;o||(o=this.languageService.getDefaultLanguage()),this.currentLanguage=o,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(e){this.languageContextService.updateSelectedLanguage(e.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(e=>{const o=this.currentLanguage===e?"ri-check-line":"";return(new DropdownItem).setNameLabelKey(`language_selector.language.${e}.label`).setTooltipLabelKey(`language_selector.language.${e}.tooltip.`+(this.currentLanguage===e?"selected":"not_selected")).setIconClass(o).setCssClass(e).setValue(e)})}};OntoLanguageSelector.style=ontoLanguageSelectorCss;const ontoLicenseAlertCss=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}",OntoLicenseAlert=class{constructor(e){registerInstance(this,e)}render(){var e;return h(Host,{key:"9bac74e245fc646cfd6b63d638ac11ffeb50754b","tooltip-content":null===(e=this.license)||void 0===e?void 0:e.message,"tooltip-placement":OntoTooltipPlacement.BOTTOM,"data-test":"onto-license-alert"},h("button",{key:"317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa",class:"onto-license-alert onto-btn",onClick:navigateTo("license")},h("span",{key:"dd60e1800d32e32bdbb88555f34b0bb55396914b",class:"ri-alert-line"}),h("translate-label",{key:"9f6886cf5803e3cbc8092c578152b3f8615c89cc",labelKey:"license_alert.label"})))}};OntoLicenseAlert.style=ontoLicenseAlertCss;const ontoOperationsNotificationCss=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}",operationGroupToIcon={[OperationGroup.BACKUP]:"ri-archive-line",[OperationGroup.QUERY]:"ri-arrow-left-right-line",[OperationGroup.CLUSTER]:"ri-organization-chart",[OperationGroup.IMPORT]:"icon-import"},operationStatusToWarningClass={[OperationStatus.WARNING]:"status-warning",[OperationStatus.INFORMATION]:"status-information",[OperationStatus.CRITICAL]:"status-critical"},operationStatusToFadeClass={[OperationStatus.WARNING]:"onto-btn-fade-warning",[OperationStatus.CRITICAL]:"onto-btn-fade-danger"},OntoOperationsNotification=class{constructor(e){registerInstance(this,e),this.isOpen=!1,this.DROPDOWN_ID="onto-operations-dropdown",this.toggleDropdown=e=>{e.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),h("section",{key:"13de6326145250d9f3459f5558e8c1791a3be35a",class:"operations-statuses"},h("button",{key:"de16a9fc8c01af9ad5a82b052c838f37e7e6713f",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=operationStatusToFadeClass[this.activeOperations.status])&&void 0!==e?e:""}`,ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},h("span",{key:"857f7317826c5285797374c1871104cd23bb5216",class:"screen-reader-only"},h("translate-label",{key:"6710d5a90dea211a7ae801cf63ae19c1032b584a",labelKey:"operations_notification.toggle_label"})),this.operationGroups.getItems().map(e=>h("section",{key:e.id,class:"operation-status-header"},h("i",{"aria-hidden":"true",class:`operation-status-icon icon-1-33x ${operationGroupToIcon[e.group]} ${operationStatusToWarningClass[e.status]}`}),e.totalOperations?h("sup",{class:"running-operation-count"},e.totalOperations):"")),h("i",{key:"3f98039d08623eccc3c03c20d7fd5c44b8f45fd4",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen&&h("div",{key:"622feb33220bc3d9f43525b38c16fb0c6eb9678c",class:"operations-dropdown",id:this.DROPDOWN_ID},h("ul",{key:"b9d6c474ef48b72292e9985637bf6d9b6d1356ab",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>h("li",{key:e.id},h("a",{class:`operation-status-content onto-btn no-underline ${operationStatusToWarningClass[e.status]}`,href:e.href,target:"_blank",rel:"noopener noreferrer"},h("i",{class:operationGroupToIcon[e.group],"aria-hidden":"true"}),h("span",{class:"operation-status-label"},h("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),h("span",{class:"operation-number"},e.count?h("span",{class:"operation-status-running-operation-count"},e.count):""),h("span",{class:"screen-reader-only"}," ",h("translate-label",{labelKey:"common.label.opens_in_new_window"}))))))))}onKeyDown(e){var o;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(o=this.toggleButton)||void 0===o||o.focus())}get el(){return getElement(this)}};OntoOperationsNotification.style=ontoOperationsNotificationCss;const ontoRdfSearchCss=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}",OntoRdfSearch=class{constructor(e){registerInstance(this,e),this.subscriptions=new SubscriptionList,this.eventService=ServiceProvider.get(EventService),this.resourceSearchStorageService=ServiceProvider.get(ResourceSearchStorageService),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=UriUtil.RESOURCE_URL,this.shouldMoveFocus=!1,this.closeAndFocusSearchIcon=()=>{this.isOpen&&(this.isOpen=!1,this.shouldMoveFocus=!0)}}handleClick(e){var o;this.isOpen&&((null===(o=this.rdfSearchRef)||void 0===o?void 0:o.contains(e.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.shouldMoveFocus&&(this.shouldMoveFocus=!1,this.moveFocus())}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return h("section",{key:"835735fbb93893e9c3240edabbcae5a465f1ca27",ref:e=>this.rdfSearchRef=e,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},h("section",{key:"fde50b68c1de8ed654af30b27d29ac9403a68f07",class:"search-area "+(this.isOpen?"visible":"invisible"),inert:!this.isOpen},h("button",{key:"4d1f1c2ceb2893177b04dd8b24e3c877da158000",type:"button",onClick:this.closeAndFocusSearchIcon,"aria-label":TranslationService.translate("rdf_search.tooltips.close_search_area"),"tooltip-content":TranslationService.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":OntoTooltipPlacement.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"close-btn"},h("i",{key:"4f6b19632fac056ea0d4632f5f62c7e70ed7aa29",class:"ri-close-line","aria-hidden":"true"})),h("onto-search-resource-input",{key:"204ff32df46482664896f8ac7d2ca9f1f55cd7fd",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":h("onto-search-icon",{ref:e=>this.searchIconRef=e,onClick:this.setIsOpen(!0)}))}setIsOpen(e){return()=>{this.isOpen=e,this.isOpen&&(this.shouldMoveFocus=!0,this.loadSelectedViewFromStorage())}}createButtonConfig(){return new SearchButtonConfig({isRadio:!0,buttons:[this.createSearchButton(ResourceSearchConstants.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=UriUtil.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.TABLE_VIEW)},!0),this.createSearchButton(ResourceSearchConstants.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=UriUtil.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.VISUAL_VIEW)},!1),this.createSearchButton(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW,"rdf_search.buttons.graph_navigator",()=>{this.redirectUrl=UriUtil.GRAPH_NAVIGATOR_URL,this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.GRAPH_NAVIGATOR_VIEW)},!1)]})}createSearchButton(e,o,t,r){return new SearchButton({label:TranslationService.translate(o),id:e,callback:t,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,e=>{if(e.getContext()===this.RDF_CONTEXT){const o=e.getSuggestion().getOverrideToVisual()?UriUtil.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;openInNewTab(UriUtil.createAutocompleteRedirect(o,e.getSuggestion().getValue()))}}))}onKeyDown(){return e=>{"Escape"===e.key?this.closeAndFocusSearchIcon():"Tab"===e.key&&this.keepFocusInSearchArea(e)}}keepFocusInSearchArea(e){if(!this.isOpen)return;const o=Array.from(this.rdfSearchRef.querySelectorAll(".search-area button:not(:disabled), .search-area input:not(:disabled)")),t=o[0],r=o[o.length-1],n=e.shiftKey?r:t,s=e.shiftKey?t:r;document.activeElement===s&&(e.preventDefault(),n.focus())}moveFocus(){var e;this.isOpen?HtmlUtil.focusElement(`#${this.RDF_CONTEXT}`):null===(e=this.searchIconRef)||void 0===e||e.componentOnReady().then(e=>{var o;return null===(o=e.querySelector("button"))||void 0===o?void 0:o.focus()})}loadSelectedViewFromStorage(){const e=this.resourceSearchStorageService.getSelectedView();if(e){const o=this.buttonConfig.getButtons().find(o=>o.id===e);o&&(this.buttonConfig=this.buttonConfig.selectButton(o))}}};OntoRdfSearch.style=ontoRdfSearchCss;const RepositorySelection=({repository:e,defaultToggleButtonName:o,location:t})=>{var r;return h("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&h("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",h("span",{class:"repository-id"},null!==(r=null==e?void 0:e.id)&&void 0!==r?r:o,t))},ontoRepositorySelectorCss=":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id-row{display:flex;align-items:center;gap:0.4em;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .deprecated-tag{flex-shrink:0;padding:0.15em 0.4em;border-radius:0.25em;font-size:0.7em;line-height:1.2em;color:var(--gw-tag-warning-color);background-color:var(--gw-tag-warning-background)}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}",OntoRepositorySelector=class{constructor(e){registerInstance(this,e),this.repositoryContextService=service(RepositoryContextService),this.subscriptions=[],this.repositorySizeInfoCache=new Map,this.repositorySizeInfoRequests=new Map,this.clearRepositorySizeInfo=()=>{this.repositorySizeInfoCache.clear(),this.repositorySizeInfoRequests.clear()}}onItemsChanged(e){(null==e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}connectedCallback(){var e;this.subscriptions.push(...this.subscribeToTranslationChanged(),this.subscribeToRepositoryListChanged()),(null===(e=this.items)||void 0===e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}disconnectedCallback(){this.subscriptions.forEach(e=>e())}render(){const e=h(RepositorySelection,{key:"c603f4a2de6beef60a38bfc297ec323810414850",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return h(Host,{key:"207c1e246f62dba2262616a6b6a9e637fb9f7166"},h("onto-dropdown",Object.assign({key:"ae203784eb20a87e3e4114c29dace0427df14960",ref:e=>this.dropdownElement=e,class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:e,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:DropdownItemAlignment.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",tooltipClass:"repository-selector-tooltip",items:this.dropdownItems,onMouseLeave:this.clearRepositorySizeInfo,"auto-close":!0})))}attachTooltipsToItems(e){return e?e.map(e=>e.setTooltip(this.createTooltipFunctionForRepository(e.value))):[]}tooltipAlignment(e){return e?OntoTooltipPlacement.LEFT:OntoTooltipPlacement.BOTTOM}onValueChanged(){return e=>this.onRepositoryChanged(e.detail)}createTooltipFunctionForRepository(e){return()=>{if(!e)return Promise.resolve("");if(e.state!==RepositoryState.RUNNING)return this.buildRepositoryTooltipHtml(e);const o=getRepositoryIdWithLocation(e),t=this.repositorySizeInfoCache.get(o);return t?this.buildRepositoryTooltipHtml(e,t):(this.repositorySizeInfoRequests.has(o)||this.fetchRepositorySizeInfo(e),this.buildRepositoryTooltipHtml(e,void 0,!0))}}fetchRepositorySizeInfo(e){const o=getRepositoryIdWithLocation(e),t=this.repositorySizeInfoFetcher(e);this.repositorySizeInfoRequests.set(o,t),t.then(e=>{this.repositorySizeInfoCache.set(o,e)}).catch(e=>{LoggerProvider.logger.error("Failed to fetch repository size.",e)}).finally(()=>{var e;this.repositorySizeInfoRequests.get(o)===t&&this.repositorySizeInfoRequests.delete(o),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}buildRepositoryTooltipHtml(e,o,t=!1){const r=[`repository="${escapeHtml(JSON.stringify(e))}"`,`permission="${escapeHtml(this.getRepositoryPermission(e))}"`];return t&&r.push('loading="true"'),o&&r.push(`size-info="${escapeHtml(JSON.stringify(o))}"`),Promise.resolve(`<onto-repository-info ${r.join(" ")}></onto-repository-info>`)}subscribeToRepositoryListChanged(){return this.repositoryContextService.onRepositoryListChanged(()=>{var e;this.clearRepositorySizeInfo(),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}subscribeToTranslationChanged(){return[TranslationService.onTranslate("repository-selector.btn.toggle",[],e=>{this.defaultToggleButtonName=e}),TranslationService.onTranslate("repository-selector.btn.no_repositories",[],e=>{this.noRepositoriesButtonMessage=e})]}onRepositoryChanged(e){this.repositoryContextService.updateSelectedRepository(e)}getLocation(){var e;return(null===(e=this.currentRepository)||void 0===e?void 0:e.location)?`@${UriUtil.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};OntoRepositorySelector.style=ontoRepositorySelectorCss;const ontoSearchIconCss=".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}",OntoSearchIcon=class{constructor(e){registerInstance(this,e),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h("button",{key:"7351e75e718af25b9be67add8a7722cdae66fffe",type:"button",class:"onto-search-icon","aria-label":this.tooltipLabel,"tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.BOTTOM},h("i",{key:"b81860bf830286b16a0d2b1b9d63d4af59a7fbbb",class:"ri-search-line ri-lg","aria-hidden":"true"}))}onTooltipChange(){this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey,[],e=>this.tooltipLabel=e))}};OntoSearchIcon.style=ontoSearchIconCss;const ontoSearchResourceInputCss=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}",OntoSearchResourceInput=class{constructor(e){registerInstance(this,e),this.autocompleteService=ServiceProvider.get(AutocompleteService),this.autocompleteContextService=ServiceProvider.get(AutocompleteContextService),this.autocompleteStorageService=ServiceProvider.get(AutocompleteStorageService),this.resourceSearchStorageService=ServiceProvider.get(ResourceSearchStorageService),this.toastrService=ServiceProvider.get(OntoToastrService),this.eventService=ServiceProvider.get(EventService),this.namespaceContextService=ServiceProvider.get(NamespacesContextService),this.repositoryContextService=ServiceProvider.get(RepositoryContextService),this.subscriptions=new SubscriptionList,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=e=>{const o=e.target;o.value?(this.setInputValue(o.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.clearInputAndFocus=()=>{this.clearInput(),this.inputRef.focus()},this.onKeyDown=e=>{switch(e.key){case"Enter":this.onEnter(e);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowDown":this.onArrowDown(e)}}}onVisibilityChange(e){var o;e?null===(o=this.searchResult)||void 0===o||o.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onRepositoryChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,t,r;const n=TranslationService.translate("rdf_search.labels.search"),s=`${this.context}-suggestions`,i=`${this.context}-hint`,a=null!==(o=null===(e=this.searchResult)||void 0===e?void 0:e.suggestions.getItems())&&void 0!==o?o:[],c=a.findIndex(e=>e.isHovered());return h("section",{key:"cda724e2a03c25a7186eff04130da0e38b77f7d8",class:"search-resources-input"},h("div",{key:"96bc8785ddecf838c7564d60d86e1ea224a466fe",class:"input-row"},h("span",{key:"9b6f94fb65209d461910ea79505336e6673d16df",class:"input-wrapper"},h("input",{key:"3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32",value:this.inputValue,id:this.context,type:"text",role:"combobox","aria-label":n,"aria-autocomplete":"list","aria-expanded":a.length?"true":"false","aria-controls":s,"aria-activedescendant":c>=0?this.getSuggestionId(c):void 0,"aria-describedby":i,autocomplete:"off",placeholder:`${n}...`,ref:e=>this.inputRef=e,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(t=this.inputValue)||void 0===t?void 0:t.length)?h("button",{type:"button",onClick:this.clearInputAndFocus,"aria-label":TranslationService.translate("rdf_search.tooltips.clear"),"tooltip-content":TranslationService.translate("rdf_search.tooltips.clear"),"tooltip-placement":OntoTooltipPlacement.BOTTOM,class:"clear-input"},h("i",{class:"ri-close-line","aria-hidden":"true"})):""),null===(r=this.buttonConfig)||void 0===r?void 0:r.getButtons().getItems().map(e=>h("button",{key:e.label,type:"button","aria-pressed":e.selected?"true":"false",onClick:this.handleButtonClick(e),class:"onto-btn "+(e.selected?"selected":"")},e.label))),h("span",{key:"ef80fe089557adfd223b07c3d732bf0d9a5367fe",class:"hint",id:i},TranslationService.translate("rdf_search.labels.hint")),h("div",{key:"1eaa7699192a2a4fd1469e03045a5af09a891600",class:"autocomplete-results-wrapper",id:s,role:"listbox",tabindex:-1,"aria-label":n,"data-test":"onto-autocomplete-results"},a.map((e,o)=>h("p",{key:e.getId(),id:this.getSuggestionId(o),role:"option","aria-selected":e.isHovered()?"true":"false",onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}getSuggestionId(e){return`${this.context}-suggestion-${e}`}handleButtonClick(e){return()=>this.buttonConfig=this.buttonConfig.selectButton(e)}loadAutocompleteResults(){var e;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(e=>{this.onResultsReceived(e)}):null===(e=this.searchResult)||void 0===e||e.clearSuggestions()}hoverSuggestion(e){return()=>this.searchResult=this.searchResult.hoverSuggestion(e)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(e=>{this.isAutocompleteEnabled=null!=e?e:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const e=TranslationService.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: var(--gw-label-base-medium-font-weight)">${e}</a>`,{onClick:navigateTo("autocomplete"),removeOnClick:!0})}}onSuggestionClick(e){return o=>{e.setOverrideToVisual(o.ctrlKey||o.metaKey),this.searchRdfResource(e)}}searchRdfResource(e){e.getType()===SuggestionType.PREFIX?this.expandPrefix(e):(this.notifyRdfResourceSelected(e),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(e))}notifyRdfResourceSelected(e){var o;this.searchResult=null===(o=this.searchResult)||void 0===o?void 0:o.selectSuggestion(e),this.eventService.emit({NAME:ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,payload:new SuggestionSelectedPayload(e,this.context)})}expandPrefix(e){this.setInputValue(this.namespaces.getByPrefix(e.getValue())),this.inputRef.focus()}setInputValue(e){this.inputValue=e,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(()=>{this.autocompleteWarningShown=!1}))}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(e=>{this.namespaces=e}))}onEnter(e){var o;let t=null===(o=this.searchResult)||void 0===o?void 0:o.getHoveredSuggestion();t||(t=new Suggestion({value:UriUtil.removeAngleBrackets(this.inputValue),type:SuggestionType.URI})),t.setOverrideToVisual(e.ctrlKey||e.metaKey),this.validateAndSearch(t)}onArrowUp(e){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(e))}onArrowDown(e){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(e))}displaySuggestion(e){e.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(e){return e.getType()===SuggestionType.PREFIX?this.namespaces.getByPrefix(e.getValue()):e.getValue()}scrollToSuggestionBySelector(e,o){HtmlUtil.waitForElement(e).then(()=>{HtmlUtil.scrollElementIntoView(e,o)})}validateAndSearch(e){if(!this.skipValidation){if(!e.getValue())return void this.toastrService.error(TranslationService.translate("rdf_search.toasts.empty_input"));if(!UriUtil.isValidUri(this.getSuggestionValue(e)))return void this.toastrService.error(TranslationService.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(e)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(e){const o=null==e?void 0:e.getByValue(this.resourceSearchStorageService.getLastSelectedValue());o&&this.preserveSearch?(e.hoverSuggestion(o),this.searchResult=e.selectSuggestion(o),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=e.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};OntoSearchResourceInput.style=ontoSearchResourceInputCss;const ontoUserLoginCss=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}",OntoUserLogin=class{constructor(e){registerInstance(this,e)}navigateToLogin(){return e=>{e.preventDefault(),navigateToLoginPage()}}render(){return h("section",{key:"0e775e390fe6d9733fbea06cc9b3137350be0a1a",class:"onto-user-login"},h("button",{key:"9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc",onClick:this.navigateToLogin()},h("i",{key:"c646277a5770c03535720d4117645da70a240fe8",class:"ri-arrow-right-circle-line"}),h("translate-label",{key:"a063b7d24946cbe3fbb6788beebcc0260d995e0b",class:"user-login-label label-base-regular",labelKey:"user_menu.login"})))}};OntoUserLogin.style=ontoUserLoginCss;const ontoUserMenuCss=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}",OntoUserMenu=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.eventService=service(EventService),this.DROPDOWN_ID="onto-user-menu-dropdown",this.openMySettings=e=>{e.preventDefault(),this.isOpen=!1,navigate("settings")},this.logout=()=>{this.isOpen=!1,this.eventService.emit(new Logout)},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return h("section",{key:"8359f0471e5bcda114532346c2cac8fa858e1779",class:"onto-user-menu"},h("div",{key:"69185865e40b622bd0e7081b98cafd07c309508f",class:"dropdown-toggle-wrapper"},h("button",{key:"4140088a554351f66ac40d9a5c04e10af1bff73b",class:"onto-user-menu-toggle label-base-regular "+(this.isOpen?"open":""),ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},h("i",{key:"bb463c88f7f365174c8ae45c091298883b046236",class:"ri-user-line ri-lg","aria-hidden":"true"}),h("span",{key:"415290f39545158b6eb4e3b9e29ac35647eda0a7",class:"username"},this.user.username),h("i",{key:"58bbdd73b5275b2f565a6bf6fb8408b884c459f5",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen?h("section",{class:"onto-user-menu-dropdown",id:this.DROPDOWN_ID},h("a",{class:"onto-user-menu-item label-base-regular",href:"settings",onClick:this.openMySettings},h("translate-label",{labelKey:"user_menu.my_settings"})),this.authenticationService.isExternalUser()?"":h("button",{class:"onto-user-menu-item label-base-regular",onClick:this.logout},h("translate-label",{labelKey:"user_menu.logout"}))):""))}onKeyDown(e){var o;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(o=this.toggleButton)||void 0===o||o.focus())}get hostElement(){return getElement(this)}};OntoUserMenu.style=ontoUserMenuCss;export{OntoLanguageSelector as onto_language_selector,OntoLicenseAlert as onto_license_alert,OntoOperationsNotification as onto_operations_notification,OntoRdfSearch as onto_rdf_search,OntoRepositorySelector as onto_repository_selector,OntoSearchIcon as onto_search_icon,OntoSearchResourceInput as onto_search_resource_input,OntoUserLogin as onto_user_login,OntoUserMenu as onto_user_menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{d as debounce}from"./function-utils-D1ZpXQQS.js";import{service,AuthenticationService,AuthorizationService,NavigationContextService,AuthenticationStorageService,RuntimeConfigurationContextService,EventService,StorageKey,SubscriptionList,LocalStorageSubscriptionHandlerService,WindowService,navigate,isLoginPage,navigateToLoginPage,SecurityContextService,EventName,MainMenuExtensionPoint,isSamePage}from"@ontotext/workbench-api";import{i as isFocusLost,T as TranslationService}from"./translation.service-BIRn4Afp.js";import"./logger-provider-BIkLC5Zf.js";const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout main:focus{outline:none}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}.wb-layout .skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wb-layout .skip-link:focus{position:fixed;top:0.5rem;left:0.5rem;z-index:1000;display:inline-flex;align-items:center;gap:var(--gw-button-gap);padding:var(--gw-button-padding-y) var(--gw-button-padding-x);border:1px solid var(--gw-button-secondary-border-color);border-radius:var(--gw-button-border-radius);background:var(--gw-background-elevated);color:var(--gw-button-secondary-color);font-family:var(--gw-button-label-typography-font-family);font-size:var(--gw-button-label-typography-font-size);font-weight:var(--gw-button-label-typography-font-weight);line-height:var(--gw-button-label-typography-line-height);text-decoration:none;white-space:nowrap;outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-secondary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.wb-layout .skip-link:focus:hover{border-color:var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.wb-layout .skip-link:focus:active{border-color:var(--gw-button-secondary-active-border-color);color:var(--gw-button-secondary-active-color)}',MAIN_CONTENT_ID="main-content",OntoLayout=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`,this.authEvents=[this.fullJwtKey,this.fullAuthenticatedKey],this.isLowResolution=!1,this.showHeader=this.isAuthenticatedFully(),this.showNavbar=!1,this.isEmbedded=!1,this.loading=!0,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.shouldFocusMainContentAfterLoading=!1,this.isPageChanging=!1,this.onSkipLinkClick=e=>{e.preventDefault(),this.focusMainContent()},this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentWillLoad(){this.keepMainContentInPlace()}componentDidRender(){this.windowResizeHandler(),this.shouldFocusMainContentAfterLoading&&!this.loading&&(this.shouldFocusMainContentAfterLoading=!1,isFocusLost()&&this.focusMainContent())}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToNavigationStart(),this.subscribeToBeforeMountRouting()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h(Host,{key:"61bc37e7d303d7ff5025ea2dc7e9034867202bf2",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},!this.isEmbedded&&this.showNavbar&&h("a",{key:"307c9650b2407494a740255fe846f7d607b45b12",class:"skip-link",href:"#main-content",onClick:this.onSkipLinkClick},h("translate-label",{key:"3cabccf06cffa60993ebd0947774f4e3c6a11df3",labelKey:"layout.skip_to_main_content"})),h("div",{key:"2786853430e7a3e5086c9c555a8e74fc8b6822d6",class:"default-slot-wrapper"},h("slot",{key:"39b0d45ecaf6d4bbe80c7806d5d2e9d13b4c2e00",name:"default"})),!this.isEmbedded&&h("div",{key:"14bdd3b3a3be3faa11ea6532f89729e5def7848c",class:"wb-header"},h("header",{key:"b6d56ddaebe5a757044a1c5bffb0721a9838fa62"},this.showHeader&&h("onto-header",{key:"d229449d4d5607bda1cfbc86cf6474e8e57d64f4"}))),!this.isEmbedded&&this.showNavbar&&h("nav",{key:"b5b13d651443c3613f40032b1653d2e4d430515c",class:"wb-navbar"},h("onto-navbar",{key:"57df7e78ad8d8c64fe4a7495e73b319776546a0b",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),h("slot",{key:"3d69c68e4c0038c856a45ed3f4d7ccc99dda0550",name:"main"},h("onto-loader",{key:"88c615663244c8f843d37427112947332cb7b3a4",loading:this.loading,targetSelector:"main",size:96,messageText:TranslationService.translate("common.loading")})),!this.isEmbedded&&h("footer",{key:"b1bd41cb90cfe56cf2c33360c4777b83fe470761",class:"wb-footer"},h("onto-footer",{key:"a3f271bb984f00c6f7de13559d5860183965b061"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}focusMainContent(){var e;null===(e=document.getElementById("main-content"))||void 0===e||e.focus()}windowResizeHandler(){var e,t,i,n,a;this.isLowResolution=WindowService.getWindow().innerWidth<=WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;const o=document.querySelector(".navbar-component"),s=null!==(i=null===(t=null===(e=document.querySelector(".wb-header"))||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==i?i:0;if(document.documentElement.style.setProperty("--wb-header-height",`${s}px`),o){const e=document.querySelector(".cookie-consent-banner"),t=null!==(a=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.height)&&void 0!==a?a:0;o.style.height=`calc(100% - ${s}px - ${t}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var t;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?navigate(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):isLoginPage()||navigateToLoginPage(),WindowService.getWindow().location.reload())}keepMainContentInPlace(){const e=this.hostElement,t=e.insertBefore.bind(e);e.insertBefore=(i,n)=>i.parentNode===e&&"MAIN"===i.nodeName&&n===e.firstChild?i:t(i,n)}subscribeToSecurityChanges(){const e=service(SecurityContextService);this.subscriptions.add(e.onAuthenticatedUserChanged(e=>{this.authenticatedUser=e,this.updateVisibility()})),this.subscriptions.add(e.onSecurityConfigChanged(e=>{this.securityConfig=e,this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGGED_OUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),navigateToLoginPage()}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var t;this.isEmbedded=null!==(t=null==e?void 0:e.isEmbedded)&&void 0!==t&&t}))}updateVisibility(){this.authenticationService.isSecurityEnabled()?(this.showHeader=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess(),this.showNavbar=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()):(this.showNavbar=!0,this.showHeader=!0)}isAuthenticatedFully(){return!this.authenticationService.isSecurityEnabled()||this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()}shouldShowMenu(e){return this.isAuthenticatedFully()&&this.authorizationService.hasRole(e)}assignNavbarRef(){return e=>{this.navbarRef=e,this.navbarRef&&(this.navbarRef.menuItems=WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,t,i;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const n=e=>{var t;e.shouldShow=this.shouldShowMenu(e.role),(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.forEach(n)};null===(i=null===(t=this.navbarRef)||void 0===t?void 0:t.menuItems)||void 0===i||i.forEach(e=>{e.items.forEach(n)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),this.focusMainContentOnPageChange(e),setTimeout(()=>{this.loading=!1})}))}focusMainContentOnPageChange({oldUrl:e,newUrl:t}){e&&!isSamePage(e,t)&&this.isFocusLostOrInMainContent()&&(this.loading?this.shouldFocusMainContentAfterLoading=!0:this.focusMainContent())}isFocusLostOrInMainContent(){var e;return isFocusLost()||!!(null===(e=document.getElementById("main-content"))||void 0===e?void 0:e.contains(document.activeElement))}subscribeToNavigationStart(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_START,({oldUrl:e,newUrl:t})=>{this.isPageChanging=!e||!t||!isSamePage(e,t)}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.eventService.subscribe(EventName.BEFORE_MOUNT_ROUTING_EVENT,()=>{this.isPageChanging&&(this.loading=!0)}))}get hostElement(){return getElement(this)}};OntoLayout.style=ontoLayoutCss;export{OntoLayout as onto_layout};
|
|
1
|
+
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{d as debounce}from"./function-utils-D1ZpXQQS.js";import{service,AuthenticationService,AuthorizationService,NavigationContextService,AuthenticationStorageService,RuntimeConfigurationContextService,EventService,StorageKey,SubscriptionList,LocalStorageSubscriptionHandlerService,WindowService,navigate,isLoginPage,navigateToLoginPage,SecurityContextService,EventName,MainMenuExtensionPoint,isSamePage}from"@ontotext/workbench-api";import{i as isFocusLost,T as TranslationService}from"./translation.service-BIRn4Afp.js";import"./logger-provider-BIkLC5Zf.js";const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout main:focus{outline:none}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}.wb-layout .skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wb-layout .skip-link:focus{position:fixed;top:0.5rem;left:0.5rem;z-index:1000;display:inline-flex;align-items:center;gap:var(--gw-button-gap);padding:var(--gw-button-padding-y) var(--gw-button-padding-x);border:1px solid var(--gw-button-secondary-border-color);border-radius:var(--gw-button-border-radius);background:var(--gw-background-elevated);color:var(--gw-button-secondary-color);font-family:var(--gw-button-label-typography-font-family);font-size:var(--gw-button-label-typography-font-size);font-weight:var(--gw-button-label-typography-font-weight);line-height:var(--gw-button-label-typography-line-height);text-decoration:none;white-space:nowrap;outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-secondary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.wb-layout .skip-link:focus:hover{border-color:var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.wb-layout .skip-link:focus:active{border-color:var(--gw-button-secondary-active-border-color);color:var(--gw-button-secondary-active-color)}',MAIN_CONTENT_ID="main-content",NAVBAR_ID="navbar",POINTER_TYPES={MOUSE:"mouse",TOUCH:"touch",PEN:"pen"},OntoLayout=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`,this.authEvents=[this.fullJwtKey,this.fullAuthenticatedKey],this.isLowResolution=!1,this.showHeader=this.isAuthenticatedFully(),this.showNavbar=!1,this.isEmbedded=!1,this.loading=!0,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.shouldFocusMainContentAfterLoading=!1,this.isPageChanging=!1,this.onSkipLinkClick=e=>{e.preventDefault(),this.focusMainContent()},this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentWillLoad(){this.keepMainContentInPlace()}componentDidRender(){this.windowResizeHandler(),this.shouldFocusMainContentAfterLoading&&!this.loading&&(this.shouldFocusMainContentAfterLoading=!1,(isFocusLost()||this.isFocusInNavbar())&&this.focusMainContent())}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToNavigationStart(),this.subscribeToBeforeMountRouting()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h(Host,{key:"bdb13f92f36588bd7ea67feceb2df255014da255",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},!this.isEmbedded&&this.showNavbar&&h("a",{key:"c76719cf5fb4dfc65ce5eb92e9aa75b7bca2068a",class:"skip-link",href:"#main-content",onClick:this.onSkipLinkClick},h("translate-label",{key:"dd3dfd8c3a82007cee2cf4ff03bd923b49f0225e",labelKey:"layout.skip_to_main_content"})),h("div",{key:"f4a90630a2f762e7b03f8fbeecd991d3990b32b0",class:"default-slot-wrapper"},h("slot",{key:"fe7ca0c8794a81b85f66d015fa9c5fdf1c67d27a",name:"default"})),!this.isEmbedded&&h("div",{key:"d1d579d28668c3dffc0c187a28ebbf40f857a824",class:"wb-header"},h("header",{key:"0700d1fa731b502aed810bd63a4ae1e505299d99"},this.showHeader&&h("onto-header",{key:"9d50ab554081aa0ce30454c1749c78be81997174"}))),!this.isEmbedded&&this.showNavbar&&h("nav",{key:"b8c745300cdf78facb1c984dcd023789e2b19c15",class:"wb-navbar"},h("onto-navbar",{key:"2c872289f14768b2159306e3a943e88fe7e48ecd",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),h("slot",{key:"5b3efc9ccb0ed9d4cb5825b10592f3df3c3803d3",name:"main"},h("onto-loader",{key:"0a38c1de408e1c8065be08592d3c370a5c2ea6f8",loading:this.loading,targetSelector:"main",size:96,messageText:TranslationService.translate("common.loading")})),!this.isEmbedded&&h("footer",{key:"e3fa8d17cab67ed926e354d8f85387fa83a769ff",class:"wb-footer"},h("onto-footer",{key:"c379534622f1c3efa665c5fb298cf203f72710d4"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}handleDocumentKeydown(e){if("Tab"===e.key&&e.shiftKey){const t=document.querySelector('[data-backward-focus-target="true"]');t&&(e.preventDefault(),this.focusBackwardTargetInNav(t))}}handleGlobalFocus(e){const t=document.querySelector('[data-backward-focus-target="true"]');t&&"main-content"!==e.target.getAttribute("id")&&delete t.dataset.backwardFocusTarget}focusMainContent(){var e;null===(e=document.getElementById("main-content"))||void 0===e||e.focus()}windowResizeHandler(){var e,t,i,a,n;this.isLowResolution=WindowService.getWindow().innerWidth<=WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;const o=document.querySelector(".navbar-component"),s=null!==(i=null===(t=null===(e=document.querySelector(".wb-header"))||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==i?i:0;if(document.documentElement.style.setProperty("--wb-header-height",`${s}px`),o){const e=document.querySelector(".cookie-consent-banner"),t=null!==(n=null===(a=null==e?void 0:e.getBoundingClientRect())||void 0===a?void 0:a.height)&&void 0!==n?n:0;o.style.height=`calc(100% - ${s}px - ${t}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var t;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?navigate(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):isLoginPage()||navigateToLoginPage(),WindowService.getWindow().location.reload())}focusBackwardTargetInNav(e){var t,i;if(null==e?void 0:e.classList.contains("sub-menu-link")){const a=null===(i=null===(t=e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.previousElementSibling;"false"===(null==a?void 0:a.getAttribute("aria-expanded"))&&a.click()}setTimeout(()=>{e.focus(),delete e.dataset.backwardFocusTarget},10)}keepMainContentInPlace(){const e=this.hostElement,t=e.insertBefore.bind(e);e.insertBefore=(i,a)=>i.parentNode===e&&"MAIN"===i.nodeName&&a===e.firstChild?i:t(i,a)}subscribeToSecurityChanges(){const e=service(SecurityContextService);this.subscriptions.add(e.onAuthenticatedUserChanged(e=>{this.authenticatedUser=e,this.updateVisibility()})),this.subscriptions.add(e.onSecurityConfigChanged(e=>{this.securityConfig=e,this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGGED_OUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),navigateToLoginPage()}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var t;this.isEmbedded=null!==(t=null==e?void 0:e.isEmbedded)&&void 0!==t&&t}))}updateVisibility(){this.authenticationService.isSecurityEnabled()?(this.showHeader=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess(),this.showNavbar=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()):(this.showNavbar=!0,this.showHeader=!0)}isAuthenticatedFully(){return!this.authenticationService.isSecurityEnabled()||this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()}shouldShowMenu(e){return this.isAuthenticatedFully()&&this.authorizationService.hasRole(e)}assignNavbarRef(){return e=>{this.navbarRef=e,this.navbarRef&&(this.navbarRef.menuItems=WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,t,i;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var t;e.shouldShow=this.shouldShowMenu(e.role),(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.forEach(a)};null===(i=null===(t=this.navbarRef)||void 0===t?void 0:t.menuItems)||void 0===i||i.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),this.focusMainContentOnPageChange(e),setTimeout(()=>{this.loading=!1})}))}focusMainContentOnPageChange({oldUrl:e,newUrl:t}){!e||isSamePage(e,t)||!this.isFocusInNavbar()&&!this.isFocusLostOrInMainContent()||this.isFocusInNavbar()&&this.isPointerNavigation()||(this.loading?this.shouldFocusMainContentAfterLoading=!0:this.focusMainContent())}isFocusLostOrInMainContent(){var e;return isFocusLost()||!!(null===(e=document.getElementById("main-content"))||void 0===e?void 0:e.contains(document.activeElement))}isFocusInNavbar(){var e;return!!(null===(e=document.getElementById("navbar"))||void 0===e?void 0:e.contains(document.activeElement))}isPointerNavigation(){var e,t;const i=null===(e=document.activeElement)||void 0===e?void 0:e.dataset.pointerType;return null===(t=document.activeElement)||void 0===t||delete t.dataset.pointerType,i===POINTER_TYPES.MOUSE||i===POINTER_TYPES.TOUCH||i===POINTER_TYPES.PEN}subscribeToNavigationStart(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_START,({oldUrl:e,newUrl:t})=>{this.isPageChanging=!e||!t||!isSamePage(e,t);const i=document.querySelector('[data-backward-focus-target="true"]');this.isPageChanging&&"page"===(null==i?void 0:i.dataset.ariaCurrent)&&delete i.dataset.backwardFocusTarget}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.eventService.subscribe(EventName.BEFORE_MOUNT_ROUTING_EVENT,()=>{this.isPageChanging&&(this.loading=!0)}))}get hostElement(){return getElement(this)}};OntoLayout.style=ontoLayoutCss;export{OntoLayout as onto_layout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host}from"./index-BntG-4Sv.js";import{service,LanguageContextService,LanguageService,SubscriptionList,RepositoryState}from"@ontotext/workbench-api";import{L as LoggerProvider}from"./logger-provider-BIkLC5Zf.js";function parseJsonIfString(
|
|
1
|
+
import{r as registerInstance,h,a as Host}from"./index-BntG-4Sv.js";import{service,LanguageContextService,LanguageService,SubscriptionList,ProductInfoContextService,RepositoryType,RepositoryState,UriUtil}from"@ontotext/workbench-api";import{L as LoggerProvider}from"./logger-provider-BIkLC5Zf.js";function parseJsonIfString(e){return"string"!=typeof e?null!=e?e:void 0:e?JSON.parse(e):void 0}const ontoRepositoryInfoCss="onto-repository-info{display:block;padding:0.5rem 0}onto-repository-info .repository-info-title{font-size:1rem;margin-bottom:0.375em}onto-repository-info .repository-info-title .title{display:flex;align-items:baseline;font-weight:600;color:var(--gw-foreground-on-surface-default)}onto-repository-info .repository-info-title .title.inactive{color:var(--gw-foreground-on-surface-subtle)}onto-repository-info .repository-info-title .title span{overflow-wrap:anywhere}onto-repository-info .repository-info-title .title i{flex-shrink:0;font-size:inherit;margin-right:0.8em}onto-repository-info .repository-info-title .title i::before{font-size:0.9em}onto-repository-info .repository-info-title .title .ri-stop-large-fill{color:var(--gw-foreground-on-surface-disabled)}onto-repository-info .repository-info-title .title .ri-checkbox-blank-circle-fill{color:var(--gw-success-base)}onto-repository-info .repository-info-description{margin-bottom:0.375em;font-size:0.8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}onto-repository-info .repository-info-content{border-top:1px solid var(--gw-dialog-border-color);padding-top:0.5em;display:flex;flex-direction:column;gap:0.2em;font-weight:400;font-size:0.875rem}onto-repository-info .repository-info-row{display:flex;justify-content:space-between}onto-repository-info .repository-info-row.total{margin-top:1.2em}onto-repository-info .repository-info-row .value{margin-left:0.6em;font-weight:500}onto-repository-info .repository-info-row.repository-size-loading{justify-content:center;align-items:center}onto-repository-info .repository-info-row.inactive-repo-message,onto-repository-info .repository-info-row.deprecation-message{font-size:1.15em;background-color:var(--gw-message-help-background);color:var(--gw-message-help-color);justify-content:flex-start;margin-top:0.75rem;padding:0.25rem 0.5rem;gap:0.57em;border:1px solid var(--gw-message-help-border-color)}onto-repository-info .repository-info-row.inactive-repo-message p,onto-repository-info .repository-info-row.deprecation-message p{margin:0}onto-repository-info .repository-info-row.deprecation-message{background-color:var(--gw-message-warning-background);color:var(--gw-message-warning-color);border-color:var(--gw-message-warning-border-color)}",TRANSLATION_PREFIX="repository-info",FEDX_MIGRATION_DOCUMENTATION_PAGE="sparql-federation.html",OntoRepositoryInfo=class{constructor(e){registerInstance(this,e),this.languageContextService=service(LanguageContextService),this.languageService=service(LanguageService),this.subscriptions=new SubscriptionList,this.productInfoContextService=service(ProductInfoContextService),this.fedxMigrationDocumentationUrl=this.resolveFedxMigrationDocumentationUrl(),this.loading=!1}connectedCallback(){this.setupFormatters(),this.subscriptions.add(this.languageContextService.onSelectedLanguageChanged(e=>{this.setupFormatters(e)}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){const e=this.parseProperty(this.repository,"repository");return e?h(Host,null,h("div",{class:"repository-info-title","data-test":"repository-info-title"},this.renderHeading(e)),e.title&&h("div",{class:"repository-info-description","data-test":"repository-info-description"},e.title),h("div",{class:"repository-info-content"},this.renderRow("location","location",e.location?e.location:this.renderLabel("local")),this.renderRow("type","type",this.renderLabel(`types.${e.type||"unknown"}`)),this.renderRow("permissions","permissions_label",this.renderPermission()),this.renderStatements(e),e.type===RepositoryType.FEDX&&this.renderFedxDeprecationMessage())):h(Host,null)}renderPermission(){return this.permission?this.renderLabel(`permissions.${this.permission.toLowerCase()}`):"-"}renderHeading(e){let o,t="inactive";return e.state===RepositoryState.RUNNING?(o="ri-checkbox-blank-circle-fill",t=""):o=e.state===RepositoryState.INACTIVE?"ri-stop-large-fill":"ri-loop-left-fill",h("h6",{class:`title ${t}`},h("i",{class:o}),h("span",null,e.id))}renderStatements(e){return e.state!==RepositoryState.RUNNING?this.renderInactiveRepositoryMessage():this.loading?h("div",{class:"repository-info-row repository-size-loading","data-test":"repository-info-loading"},h("onto-loader",{loading:!0,size:25})):this.renderSizeInfo(this.parseProperty(this.sizeInfo,"sizeInfo"))}renderSizeInfo(e){return!e||e.total<0?h("div",{"data-test":"repository-info-not-available"},this.renderLabel("repository-size.repository-info-not-available")):[this.renderRow("total","repository-size.total",this.totalStatementsFormatter.format(e.total)),e.explicit>=0&&this.renderRow("explicit","repository-size.explicit",this.totalStatementsFormatter.format(e.explicit)),e.inferred>=0&&this.renderRow("inferred","repository-size.inferred",this.totalStatementsFormatter.format(e.inferred)),e.explicit>=0&&this.renderRow("expansion-ratio","repository-size.expansion_ratio",this.formatExpansionRatio(e))]}renderInactiveRepositoryMessage(){return h("div",{class:"repository-info-row inactive-repo-message","data-test":"repository-info-inactive"},h("div",{class:"icon"},h("i",{class:"ri-information-2-line"})),h("div",{class:"message"},h("p",null,this.renderLabel("repository-size.repository_inactive"))))}renderFedxDeprecationMessage(){return h("div",{class:"repository-info-row deprecation-message","data-test":"repository-info-deprecation"},h("div",{class:"icon"},h("i",{class:"ri-alert-line"})),h("div",{class:"message"},h("p",null,this.renderLabel("fedx_deprecated")," ",h("a",{href:this.fedxMigrationDocumentationUrl,target:"_blank",rel:"noopener noreferrer","data-test":"repository-info-fedx-migration-link"},this.renderLabel("fedx_learn_more")))))}renderRow(e,o,t){return h("div",{class:`repository-info-row ${e}`,"data-test":`repository-info-${e}`},h("div",{class:"label"},this.renderLabel(o),":"),h("div",{class:"value"},t))}renderLabel(e){const o=`repository-info.${e}`;return h("translate-label",{key:o,labelKey:o})}formatExpansionRatio(e){return e.explicit>0?this.expansionRatioFormatter.format(e.total/e.explicit):"-"}setupFormatters(e){const o=e||this.languageService.getDefaultLanguage();this.totalStatementsFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}),this.expansionRatioFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2})}resolveFedxMigrationDocumentationUrl(){var e;return UriUtil.resolveDocumentationUrl(null===(e=this.productInfoContextService.getProductInfo())||void 0===e?void 0:e.shortVersion,"sparql-federation.html")}parseProperty(e,o){try{return parseJsonIfString(e)}catch(t){return void LoggerProvider.logger.error(`The "${o}" property of onto-repository-info is not a valid JSON: "${e}"`,t)}}};OntoRepositoryInfo.style=ontoRepositoryInfoCss;export{OntoRepositoryInfo as onto_repository_info};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance}from"./index-BntG-4Sv.js";import{EventEmitter,ServiceProvider,ConfigurationContextService,LicenseContextService,ProductInfoContextService,RepositoryService,RepositoryContextService,mapAuthenticatedUserResponseToModel,SecurityContextService,AuthenticationStorageService,AuthenticationService,LanguageContextService,EventService,NavigationEnd,RepositoryLocationContextService,ConfirmCancelPayload,CONFIRM_CANCEL_EVENT,ToastMessage,CREATE_TOAST_EVENT,service,OntoToastrService,notify,AutocompleteContextService,NamespacesContextService,NamespaceMap,AuthorizationService,AuthStrategyResolver,SecurityConfig}from"@ontotext/workbench-api";const common$1={import:"Import",button:{ok:"OK",close:"Close",cancel:"Cancel"},loading:"Loading...",label:{opens_in_new_window:"(opens in a new window)"}},layout$1={skip_to_main_content:"Skip to main content"},language_selector$1={toggle_menu:{label:"Select language",tooltip:"Current language: English"},language:{en:{label:"en · English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr · Français",tooltip:{selected:"Current language",not_selected:"Changer la langue en Français"}}}},license_alert$1={label:"No valid license",no_license_set:"No license was set."},footer$1={label:{all_rights_reserved:"All rights reserved."}},permission_banner$1={no_access_error:"You have no permission to access this functionality with your current credentials.",change_menu_or_user_warning:"Please choose another menu item or login as a different user."},cookie$1={cookie_consent:"We may use cookies to help us improve GraphDB and develop better features. No personal or sensitive information is collected. By clicking “OK” you consent to our ",cookie_policy_url_label:"Cookie Policy",policy:{title:"Cookies Policy",purpose_heading:"Purpose",purpose_text:"This Cookies Policy explains the data Ontotext collects and uses when you use our GraphDB product, specifically the Free Edition.",purpose_enterprise_text:"Note that if you upgrade to the commercial GraphDB Enterprise Edition, no cookies will be stored on your device, regardless of settings.",privacy_commitment_heading:"Ontotext privacy commitment",privacy_commitment_text:"We are committed to not collecting any personal data or information when you use GraphDB Free. Additionally:",privacy_commitment_1:"We will not sell or rent the technical information we collect to others.",privacy_commitment_2:"We strive to maximize the protection of all technical data collected.",cookies_heading:"Cookies",cookies_text:"When you use GraphDB Free Edition, Ontotext will store cookies on your device to collect anonymous information about how you interact with the product. This technical data helps us improve and refine our software. Importantly, we cannot link this information to you personally or to any identifiable data. These cookies are solely intended to help us understand user interactions and identify potential issues within GraphDB.",manage_cookies_heading:"Manage cookies",statistic_cookies:"GraphDB analytics cookies",statistic_tooltip:"Toggle GraphDB analytics cookies",statistic_text:"These cookies help us understand how users interact with different aspects of GraphDB by collecting and reporting information anonymously. This data allows us to improve the overall product experience and develop features based on how GraphDB is used, without collecting any personal information.",third_party_cookies:"Third-party cookies",third_party_tooltip:"Toggle Third-party cookies",third_party_cookies_text:"We use Google Analytics 4 (GA4) cookies to help us recognize unique users and sessions, track interactions, and collect data such as page views, session duration, and engagement. These cookies are managed by Google, meaning we do not control their operation. IP anonymization is enabled by default in GA4, so it cannot store IP addresses or track users personally. No data is shared between GA4 and other Google products, and processing occurs globally, primarily in the USA, without breaching GDPR, as no personal data is collected.",change_cookies:"You can change your cookie preferences at any time in",change_cookies_location4:"Cookie policy"}},security$1={user:{settings:"User settings"}},operations_notification$1={toggle_label:"Running operations",links:{queries:"Running queries",updates:"Running updates",imports:"Running imports",CREATE_BACKUP_IN_PROGRESS:"Creating backup",RESTORE_BACKUP_IN_PROGRESS:"Restoring backup",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Creating cloud backup",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restoring cloud backup",IN_SYNC:"In sync",RECOVERING:"Recovering",OUT_OF_SYNC:"Out of sync",UNAVAILABLE_NODES:"Unavailable nodes"}},user_menu$1={my_settings:"My settings",logout:"Logout",login:"Login"},rdf_search$1={labels:{search:"Search RDF resources",hint:'Hint: "abC" matches "abC*", "ab c*" and "ab-c*"'},buttons:{table:"Table",visual:"VizGraph",graph_navigator:"Graph navigator"},tooltips:{close_search_area:"Close search",clear:"Clear"},toasts:{use_view_resource:"<b>Search RDF resources</b></br>Use <b>View resource</b> on this page",autocomplete_is_off:"Autocomplete is OFF<br>Go to Setup -> Autocomplete",empty_input:"Please fill the input field!",invalid_uri:"Invalid IRI"}},guides$1={"confirm-cancel-modal":{title:"Exit the guide?",subtitle:"Are you sure you want to exit the guide?<br><br>You can start it anytime from <b>Help > Interactive Guides</b>","exit-button":"Exit","dont-show-again":"Don't start automatically"}},openid$1={errors:{title:"OpenID Authentication Failed",unknown_flow:"Unknown auth flow: {{authFlow}}",invalid_pkce_state:"Invalid PKCE state",cannot_retrieve_token:"Cannot retrieve token after login: {{error}}",cannot_refresh_token:"Could not refresh OpenID token: {{error}}",user_no_access:"User has no access to GraphDB"}},graph_explore_split_button$1={buttons:{explore_visual_graph:{tooltip:"Visualize using the default VizGraph configuration"},explore_visual_graph_dropdown:{tooltip:"Select config",hint:"Hint: {{hint}}"}},messages:{missing_graph_configuration:"No advanced graph configuration.",create_graph_configuration:"Create one",create_graph_configuration_link:"here"}};var en={"menu.logo.link.title":"GraphDB logo","menu.buttons.expand":"Expand menu","menu.buttons.collapse":"Collapse menu",common:common$1,layout:layout$1,"menu.rdf.label":"RDF","menu.explore.label":"Explore","menu.graphs.overview.label":"Graphs overview","menu.class.relationships.label":"Class relationships","menu.class.hierarchy.label":"Class hierarchy","menu.similarity.label":"Similarity","menu.sparql.label":"SPARQL","menu.monitor.label":"Monitor","menu.queries.and.updates.label":"Queries and Updates","menu.backup_and_restore.label":"Backup and Restore","menu.enableFtsIndex.label":"Enable full-text search (FTS) index","menu.ftsIndexes.label":"FTS indexes to build (comma delimited)","menu.ftsStringLiteralsIndex.label":"FTS index for xsd:string literals","menu.ftsIrisIndex.label":"FTS index for full-text indexing of IRIs","menu.ftsDefaultAnalyzer.label":"Analyzer for the default index","menu.resources.label":"System","menu.setup.label":"Setup","menu.lab.label":"Lab","menu.ttyg.label":"Talk to Your Graph","menu.repositories.label":"Repositories","menu.aclmanagement.label":"ACL Management","menu.users.and.access.label":"Users and Access","menu.my.settings.label":"My Settings","menu.cluster.label":"Cluster","menu.connectors.label":"Connectors","menu.namespaces.label":"Namespaces","menu.autocomplete.label":"Autocomplete","menu.jdbc.label":"JDBC","menu.sparql.template.label":"SPARQL Templates","menu.license.label":"License","menu.help.label":"Help","menu.system.information.label":"System information","menu.rest.api.label":"REST API","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutorials","menu.support.label":"Support","menu.guides.label":"Interactive guides","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Endpoint Management","menu.graphql-playground.label":"GraphQL Playground","menu.graph-navigator.label":"Graph navigator","visual.graph.label":"Visual graph","view.rdf.rank.title":"RDF Rank",language_selector:language_selector$1,"repository-selector":{btn:{toggle:"Choose repository",no_repositories:"No accessible repositories"}},"repository-info":{location:"Location",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"System",ontop:"Ontop",fedx:"FedX",unknown:"Unknown"},permissions_label:"Permissions",permissions:{none:"None",read:"Read",write:"Read/Write",maintain:"Read/Write/Maintain",graphql_read:"Read (GraphQL only)",graphql_write:"Read/Write (GraphQL only)"},"repository-size":{total:"Total statements",explicit:"Explicit",inferred:"Inferred",expansion_ratio:"Expansion ratio (total/explicit)",repository_inactive:"Activate the repository to view statement information","repository-info-not-available":"Size info not available."}},license_alert:license_alert$1,footer:footer$1,permission_banner:permission_banner$1,cookie:cookie$1,security:security$1,operations_notification:operations_notification$1,user_menu:user_menu$1,rdf_search:rdf_search$1,guides:guides$1,openid:openid$1,graph_explore_split_button:graph_explore_split_button$1};const common={import:"Importer",button:{ok:"D'accord",close:"Fermer",cancel:"Annuler"},loading:"Chargement...",label:{opens_in_new_window:"(s’ouvre dans une nouvelle fenêtre)"}},layout={skip_to_main_content:"Aller au contenu principal"},language_selector={toggle_menu:{label:"Sélectionner la langue",tooltip:"Langue actuelle : Français"},language:{en:{label:"en · Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr · Français",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Français"}}}},license_alert={label:"Aucune licence valide",no_license_set:"Aucune licence n'a été définie."},footer={label:{all_rights_reserved:"Tous droits réservés."}},permission_banner={no_access_error:"Vous n'avez pas la permission d'accéder à cette fonctionnalité avec vos informations d'identification actuelles.",change_menu_or_user_warning:"Veuillez choisir un autre élément du menu ou vous connecter comme un autre utilisateur."},cookie={cookie_consent:"Nous pouvons utiliser des cookies pour nous aider à améliorer GraphDB et développer de meilleures fonctionnalités. Aucune information personnelle ou sensible n'est collectée. En cliquant sur « D'accord », vous consentez à notre ",cookie_policy_url_label:"politique de cookies",policy:{title:"Politique de cookies",purpose_heading:"Objectif",purpose_text:"Cette politique de cookies explique les données qu'Ontotext collecte et utilise lorsque vous utilisez notre produit GraphDB, en particulier l'édition Free.",purpose_enterprise_text:"Veuillez noter que si vous passez à l'édition commerciale GraphDB Enterprise, aucun cookie ne sera stocké sur votre appareil, quel que soit le paramètre.",privacy_commitment_heading:"Engagement de confidentialité d'Ontotext",privacy_commitment_text:"Nous nous engageons à ne collecter aucune donnée personnelle ou information lorsque vous utilisez GraphDB Free. De plus :",privacy_commitment_1:"Nous ne vendrons ni ne louerons à d'autres les informations techniques que nous collectons.",privacy_commitment_2:"Nous nous efforçons de maximiser la protection de toutes les données techniques collectées.",cookies_heading:"Cookies",cookies_text:"Lorsque vous utilisez l'édition GraphDB Free, Ontotext stockera des cookies sur votre appareil pour collecter des informations anonymes sur la façon dont vous interagissez avec le produit. Ces données techniques nous aident à améliorer et affiner notre produit. Il est important de noter que nous ne pouvons pas relier ces informations à vous personnellement ni à aucune donnée identifiable. Ces cookies ont uniquement pour but de nous aider à comprendre les interactions des utilisateurs et à identifier les éventuels problèmes dans GraphDB.",manage_cookies_heading:"Gérer les cookies",statistic_cookies:"Cookies d'analyse GraphDB",statistic_tooltip:"Activer/désactiver les cookies d'analyse GraphDB",statistic_text:"Ces cookies nous aident à comprendre comment les utilisateurs interagissent avec différents aspects de GraphDB en collectant et en rapportant des informations de manière anonyme. Ces données nous permettent d'améliorer l'expérience globale du produit et de développer des fonctionnalités en fonction de l'utilisation de GraphDB, sans collecter d'informations personnelles.",third_party_cookies:"Cookies tiers",third_party_tooltip:"Activer/désactiver les cookies tiers",third_party_cookies_text:"Nous utilisons les cookies Google Analytics 4 (GA4) pour nous aider à reconnaître les utilisateurs et sessions uniques, à suivre les interactions et à collecter des données telles que les pages consultées, la durée des sessions et l'engagement. Ces cookies sont gérés par Google, ce qui signifie que nous n'avons pas de contrôle sur leur fonctionnement. L'anonymisation IP est activée par défaut dans GA4, de sorte qu'il ne peut ni stocker les adresses IP ni suivre les utilisateurs personnellement. Aucune donnée n'est partagée entre GA4 et d'autres produits Google, et le traitement s'effectue à l'échelle mondiale, principalement aux États-Unis, sans enfreindre le RGPD, car aucune donnée personnelle n'est collectée.",change_cookies:"Vous pouvez modifier vos préférences de cookies à tout moment dans",change_cookies_location4:"Politique de cookies"}},security={user:{settings:"Paramètres de l'utilisateur"}},operations_notification={toggle_label:"Opérations en cours",links:{queries:"Exécution de requêtes",updates:"Exécution de mises à jour",imports:"Exécution d'importations",CREATE_BACKUP_IN_PROGRESS:"Création de sauvegarde en cours",RESTORE_BACKUP_IN_PROGRESS:"Restauration de sauvegarde en cours",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Création de sauvegarde cloud en cours",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restauration de sauvegarde cloud en cours",IN_SYNC:"Synchronisé",RECOVERING:"Récupération en cours",OUT_OF_SYNC:"Désynchronisé",UNAVAILABLE_NODES:"Nœuds indisponibles"}},user_menu={my_settings:"Mes paramètres",logout:"Déconnexion",login:"Se connecter"},rdf_search={labels:{search:"Rechercher des ressources RDF",hint:'Indice : "abC" correspond à "abC*", "ab c*" et "ab-c*".'},buttons:{table:"Tableau",visual:"VizGraph",graph_navigator:"Navigateur de graphe"},tooltips:{close_search_area:"Fermer la recherche",clear:"Clair"},toasts:{use_view_resource:"<b>Rechercher des ressources RDF</b></br>Utilisez <b>Voir la ressource</b> sur cette page",autocomplete_is_off:"L'autocomplétion est désactivée<br>Aller à Configuration -> Autocomplétion",empty_input:"S'il vous plaît remplir le champ de saisie!",invalid_uri:"IRI non valide"}},guides={"confirm-cancel-modal":{title:"Quitter le guide?",subtitle:"Êtes-vous sûr de vouloir quitter le guide ?<br><br>Vous pouvez le lancer à tout moment à partir de <b>Aide > Guides interactifs</b>.","exit-button":"Sortie","dont-show-again":"Ne pas démarrer automatiquement"}},openid={errors:{title:"Échec de l'authentification OpenID",unknown_flow:"Flux d'authentification inconnu: {{authFlow}}",invalid_pkce_state:"État PKCE invalide",cannot_retrieve_token:"Impossible de récupérer le jeton après la connexion: {{error}}",cannot_refresh_token:"Impossible de rafraîchir le jeton OpenID: {{error}}",user_no_access:"L'utilisateur n'a pas accès à GraphDB"}},graph_explore_split_button={buttons:{explore_visual_graph:{tooltip:"Visualiser avec la configuration VizGraph par défaut"},explore_visual_graph_dropdown:{tooltip:"Sélectionner la configuration",hint:"Indice : {{hint}}"}},messages:{missing_graph_configuration:"Aucune configuration avancée du graphe.",create_graph_configuration:"En créer une",create_graph_configuration_link:"ici"}};var fr={"menu.logo.link.title":"Logo GraphDB","menu.buttons.expand":"Développer le menu","menu.buttons.collapse":"Réduire le menu",common,layout,"menu.rdf.label":"RDF","menu.explore.label":"Explorez","menu.graphs.overview.label":"Aperçu des graphes","menu.class.relationships.label":"Relations entre les classes","menu.class.hierarchy.label":"Hiérarchie des classes","menu.similarity.label":"Similarité","menu.sparql.label":"SPARQL","menu.monitor.label":"Surveiller","menu.queries.and.updates.label":"Requêtes et mises à jour","menu.backup_and_restore.label":"Sauvegarde et Restauration","menu.enableFtsIndex.label":"Activer l'index de recherche plein texte","menu.ftsIndexes.label":"Index de recherche en texte intégral à construire (délimités par des virgules)","menu.ftsStringLiteralsIndex.label":"Index de recherche en texte intégral pour les littéraux xsd:string","menu.ftsIrisIndex.label":"Index de recherche en texte intégral pour l'indexation en texte intégral des IRI","menu.ftsDefaultAnalyzer.label":"Analyseur pour l'index par défaut","menu.resources.label":"Système","menu.setup.label":"Configurer","menu.lab.label":"Laboratoire","menu.ttyg.label":"Parlez à votre graphe","menu.repositories.label":"Dépôts","menu.aclmanagement.label":"Gestion ACL","menu.users.and.access.label":"Utilisateurs et accès","menu.my.settings.label":"Mes paramètres","menu.cluster.label":"Cluster","menu.connectors.label":"Connecteurs","menu.namespaces.label":"Espaces de noms","menu.autocomplete.label":"Autocomplétion","menu.jdbc.label":"JDBC","menu.sparql.template.label":"Modèles SPARQL","menu.license.label":"Licence","menu.help.label":"Aide","menu.system.information.label":"Informations sur le système","menu.rest.api.label":"API REST","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutoriels","menu.support.label":"Support","menu.guides.label":"Guides interactifs","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Gestion des points de terminaison","menu.graphql-playground.label":"GraphQL Playground","menu.graph-navigator.label":"Navigateur de graphe","visual.graph.label":"Graphique visuel","view.rdf.rank.title":"Rang RDF",language_selector,"repository-selector":{btn:{toggle:"Choisissez le dépôt",no_repositories:"Aucun dépôt accessible"}},"repository-info":{location:"L'emplacement",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"Système",ontop:"Ontop",fedx:"FedX",unknown:"Inconnu"},permissions_label:"Permissions",permissions:{none:"Aucune",read:"Lecture",write:"Lecture/Écriture",maintain:"Lecture/Écriture/Maintenance",graphql_read:"Lecture (GraphQL uniquement)",graphql_write:"Lecture/Écriture (GraphQL uniquement)"},"repository-size":{total:"Total des déclarations",explicit:"Explicite",inferred:"Déduit",expansion_ratio:"Taux d'expansion (total/explicite)",repository_inactive:"Activez le dépôt pour consulter les informations du relevé.","repository-info-not-available":"Info de taille non disponible."}},license_alert,footer,permission_banner,cookie,security,operations_notification,user_menu,rdf_search,guides,openid,graph_explore_split_button};const OntoTestContext=class{constructor(e){registerInstance(this,e),this.bundles={en,fr},this.eventEmitter=new EventEmitter,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return ServiceProvider.get(ConfigurationContextService).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return ServiceProvider.get(LicenseContextService).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return ServiceProvider.get(ProductInfoContextService).updateProductInfo(e),Promise.resolve()}loadRepositories(){return ServiceProvider.get(RepositoryService).getRepositories().then(e=>{ServiceProvider.get(RepositoryContextService).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?mapAuthenticatedUserResponseToModel(e):void 0;return ServiceProvider.get(SecurityContextService).updateAuthenticatedUser(t),ServiceProvider.get(AuthenticationStorageService).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return ServiceProvider.get(SecurityContextService).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return ServiceProvider.get(AuthenticationService).login({username:e,password:t})}changeLanguage(e){return ServiceProvider.get(LanguageContextService).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return ServiceProvider.get(EventService).emit(new NavigationEnd(e,t)),Promise.resolve()}updateSelectedRepository(e){return ServiceProvider.get(RepositoryContextService).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return ServiceProvider.get(RepositoryLocationContextService).updateIsLoading(e),Promise.resolve()}openConfirmCancel(e){return this.eventEmitter.emit({NAME:CONFIRM_CANCEL_EVENT,payload:new ConfirmCancelPayload(e,e=>{console.info("Dialog closed with action:",e)})}),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:CREATE_TOAST_EVENT,payload:new ToastMessage(e.type,e.message)}),Promise.resolve()}addNotification(e){return service(OntoToastrService),notify(e),Promise.resolve()}setAutocomplete(e){return ServiceProvider.get(AutocompleteContextService).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return ServiceProvider.get(NamespacesContextService).updateNamespaces(new NamespaceMap(e)),Promise.resolve()}onLanguageChanged(){ServiceProvider.get(LanguageContextService).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=ServiceProvider.get(AuthenticationStorageService),o=ServiceProvider.get(SecurityContextService),n=ServiceProvider.get(AuthorizationService);t.clearAuthToken(),service(AuthStrategyResolver).resolveStrategy(e).initialize().then(t=>{o.updateIsLoggedIn(t),t||(n.hasFreeAccess()?n.initializeFreeAccess():e.hasOverrideAuth()&&n.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new SecurityConfig(t)}};export{OntoTestContext as onto_test_context};
|
|
1
|
+
import{r as registerInstance}from"./index-BntG-4Sv.js";import{EventEmitter,ServiceProvider,ConfigurationContextService,LicenseContextService,ProductInfoContextService,RepositoryService,RepositoryContextService,mapAuthenticatedUserResponseToModel,SecurityContextService,AuthenticationStorageService,AuthenticationService,LanguageContextService,EventService,NavigationEnd,RepositoryLocationContextService,ConfirmCancelPayload,CONFIRM_CANCEL_EVENT,ToastMessage,CREATE_TOAST_EVENT,service,OntoToastrService,notify,AutocompleteContextService,NamespacesContextService,NamespaceMap,AuthorizationService,AuthStrategyResolver,SecurityConfig}from"@ontotext/workbench-api";const common$1={import:"Import",button:{ok:"OK",close:"Close",cancel:"Cancel"},loading:"Loading...",label:{opens_in_new_window:"(opens in a new window)"}},layout$1={skip_to_main_content:"Skip to main content"},language_selector$1={toggle_menu:{label:"Select language",tooltip:"Current language: English"},language:{en:{label:"en · English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr · Français",tooltip:{selected:"Current language",not_selected:"Changer la langue en Français"}}}},license_alert$1={label:"No valid license",no_license_set:"No license was set."},footer$1={label:{all_rights_reserved:"All rights reserved."}},permission_banner$1={no_access_error:"You have no permission to access this functionality with your current credentials.",change_menu_or_user_warning:"Please choose another menu item or login as a different user."},cookie$1={cookie_consent:"We may use cookies to help us improve GraphDB and develop better features. No personal or sensitive information is collected. By clicking “OK” you consent to our ",cookie_policy_url_label:"Cookie Policy",policy:{title:"Cookies Policy",purpose_heading:"Purpose",purpose_text:"This Cookies Policy explains the data Ontotext collects and uses when you use our GraphDB product, specifically the Free Edition.",purpose_enterprise_text:"Note that if you upgrade to the commercial GraphDB Enterprise Edition, no cookies will be stored on your device, regardless of settings.",privacy_commitment_heading:"Ontotext privacy commitment",privacy_commitment_text:"We are committed to not collecting any personal data or information when you use GraphDB Free. Additionally:",privacy_commitment_1:"We will not sell or rent the technical information we collect to others.",privacy_commitment_2:"We strive to maximize the protection of all technical data collected.",cookies_heading:"Cookies",cookies_text:"When you use GraphDB Free Edition, Ontotext will store cookies on your device to collect anonymous information about how you interact with the product. This technical data helps us improve and refine our software. Importantly, we cannot link this information to you personally or to any identifiable data. These cookies are solely intended to help us understand user interactions and identify potential issues within GraphDB.",manage_cookies_heading:"Manage cookies",statistic_cookies:"GraphDB analytics cookies",statistic_tooltip:"Toggle GraphDB analytics cookies",statistic_text:"These cookies help us understand how users interact with different aspects of GraphDB by collecting and reporting information anonymously. This data allows us to improve the overall product experience and develop features based on how GraphDB is used, without collecting any personal information.",third_party_cookies:"Third-party cookies",third_party_tooltip:"Toggle Third-party cookies",third_party_cookies_text:"We use Google Analytics 4 (GA4) cookies to help us recognize unique users and sessions, track interactions, and collect data such as page views, session duration, and engagement. These cookies are managed by Google, meaning we do not control their operation. IP anonymization is enabled by default in GA4, so it cannot store IP addresses or track users personally. No data is shared between GA4 and other Google products, and processing occurs globally, primarily in the USA, without breaching GDPR, as no personal data is collected.",change_cookies:"You can change your cookie preferences at any time in",change_cookies_location4:"Cookie policy"}},security$1={user:{settings:"User settings"}},operations_notification$1={toggle_label:"Running operations",links:{queries:"Running queries",updates:"Running updates",imports:"Running imports",CREATE_BACKUP_IN_PROGRESS:"Creating backup",RESTORE_BACKUP_IN_PROGRESS:"Restoring backup",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Creating cloud backup",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restoring cloud backup",IN_SYNC:"In sync",RECOVERING:"Recovering",OUT_OF_SYNC:"Out of sync",UNAVAILABLE_NODES:"Unavailable nodes"}},user_menu$1={my_settings:"My settings",logout:"Logout",login:"Login"},rdf_search$1={labels:{search:"Search RDF resources",hint:'Hint: "abC" matches "abC*", "ab c*" and "ab-c*"'},buttons:{table:"Table",visual:"VizGraph",graph_navigator:"Graph navigator"},tooltips:{close_search_area:"Close search",clear:"Clear"},toasts:{use_view_resource:"<b>Search RDF resources</b></br>Use <b>View resource</b> on this page",autocomplete_is_off:"Autocomplete is OFF<br>Go to Setup -> Autocomplete",empty_input:"Please fill the input field!",invalid_uri:"Invalid IRI"}},guides$1={"confirm-cancel-modal":{title:"Exit the guide?",subtitle:"Are you sure you want to exit the guide?<br><br>You can start it anytime from <b>Help > Interactive Guides</b>","exit-button":"Exit","dont-show-again":"Don't start automatically"}},openid$1={errors:{title:"OpenID Authentication Failed",unknown_flow:"Unknown auth flow: {{authFlow}}",invalid_pkce_state:"Invalid PKCE state",cannot_retrieve_token:"Cannot retrieve token after login: {{error}}",cannot_refresh_token:"Could not refresh OpenID token: {{error}}",user_no_access:"User has no access to GraphDB"}},graph_explore_split_button$1={buttons:{explore_visual_graph:{tooltip:"Visualize using the default VizGraph configuration"},explore_visual_graph_dropdown:{tooltip:"Select config",hint:"Hint: {{hint}}"}},messages:{missing_graph_configuration:"No advanced graph configuration.",create_graph_configuration:"Create one",create_graph_configuration_link:"here"}};var en={"menu.logo.link.title":"GraphDB logo","menu.buttons.expand":"Expand menu","menu.buttons.collapse":"Collapse menu",common:common$1,layout:layout$1,"menu.rdf.label":"RDF","menu.explore.label":"Explore","menu.graphs.overview.label":"Graphs overview","menu.class.relationships.label":"Class relationships","menu.class.hierarchy.label":"Class hierarchy","menu.similarity.label":"Similarity","menu.sparql.label":"SPARQL","menu.monitor.label":"Monitor","menu.queries.and.updates.label":"Queries and Updates","menu.backup_and_restore.label":"Backup and Restore","menu.enableFtsIndex.label":"Enable full-text search (FTS) index","menu.ftsIndexes.label":"FTS indexes to build (comma delimited)","menu.ftsStringLiteralsIndex.label":"FTS index for xsd:string literals","menu.ftsIrisIndex.label":"FTS index for full-text indexing of IRIs","menu.ftsDefaultAnalyzer.label":"Analyzer for the default index","menu.resources.label":"System","menu.setup.label":"Setup","menu.lab.label":"Lab","menu.ttyg.label":"Talk to Your Graph","menu.repositories.label":"Repositories","menu.aclmanagement.label":"ACL Management","menu.users.and.access.label":"Users and Access","menu.my.settings.label":"My Settings","menu.cluster.label":"Cluster","menu.connectors.label":"Connectors","menu.namespaces.label":"Namespaces","menu.autocomplete.label":"Autocomplete","menu.jdbc.label":"JDBC","menu.sparql.template.label":"SPARQL Templates","menu.license.label":"License","menu.help.label":"Help","menu.system.information.label":"System information","menu.rest.api.label":"REST API","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutorials","menu.support.label":"Support","menu.guides.label":"Interactive guides","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Endpoint Management","menu.graphql-playground.label":"GraphQL Playground","menu.graph-navigator.label":"Graph navigator","visual.graph.label":"Visual graph","view.rdf.rank.title":"RDF Rank",language_selector:language_selector$1,"repository-selector":{btn:{toggle:"Choose repository",no_repositories:"No accessible repositories"},deprecated:"Deprecated"},"repository-info":{location:"Location",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"System",ontop:"Ontop",fedx:"FedX",unknown:"Unknown"},permissions_label:"Permissions",permissions:{none:"None",read:"Read",write:"Read/Write",maintain:"Read/Write/Maintain",graphql_read:"Read (GraphQL only)",graphql_write:"Read/Write (GraphQL only)"},"repository-size":{total:"Total statements",explicit:"Explicit",inferred:"Inferred",expansion_ratio:"Expansion ratio (total/explicit)",repository_inactive:"Activate the repository to view statement information","repository-info-not-available":"Size info not available."},fedx_deprecated:"FedX repositories are deprecated: Will be removed in GraphDB 13. Migrate to SPARQL 1.1 federation.",fedx_learn_more:"Learn more"},license_alert:license_alert$1,footer:footer$1,permission_banner:permission_banner$1,cookie:cookie$1,security:security$1,operations_notification:operations_notification$1,user_menu:user_menu$1,rdf_search:rdf_search$1,guides:guides$1,openid:openid$1,graph_explore_split_button:graph_explore_split_button$1};const common={import:"Importer",button:{ok:"D'accord",close:"Fermer",cancel:"Annuler"},loading:"Chargement...",label:{opens_in_new_window:"(s’ouvre dans une nouvelle fenêtre)"}},layout={skip_to_main_content:"Aller au contenu principal"},language_selector={toggle_menu:{label:"Sélectionner la langue",tooltip:"Langue actuelle : Français"},language:{en:{label:"en · Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr · Français",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Français"}}}},license_alert={label:"Aucune licence valide",no_license_set:"Aucune licence n'a été définie."},footer={label:{all_rights_reserved:"Tous droits réservés."}},permission_banner={no_access_error:"Vous n'avez pas la permission d'accéder à cette fonctionnalité avec vos informations d'identification actuelles.",change_menu_or_user_warning:"Veuillez choisir un autre élément du menu ou vous connecter comme un autre utilisateur."},cookie={cookie_consent:"Nous pouvons utiliser des cookies pour nous aider à améliorer GraphDB et développer de meilleures fonctionnalités. Aucune information personnelle ou sensible n'est collectée. En cliquant sur « D'accord », vous consentez à notre ",cookie_policy_url_label:"politique de cookies",policy:{title:"Politique de cookies",purpose_heading:"Objectif",purpose_text:"Cette politique de cookies explique les données qu'Ontotext collecte et utilise lorsque vous utilisez notre produit GraphDB, en particulier l'édition Free.",purpose_enterprise_text:"Veuillez noter que si vous passez à l'édition commerciale GraphDB Enterprise, aucun cookie ne sera stocké sur votre appareil, quel que soit le paramètre.",privacy_commitment_heading:"Engagement de confidentialité d'Ontotext",privacy_commitment_text:"Nous nous engageons à ne collecter aucune donnée personnelle ou information lorsque vous utilisez GraphDB Free. De plus :",privacy_commitment_1:"Nous ne vendrons ni ne louerons à d'autres les informations techniques que nous collectons.",privacy_commitment_2:"Nous nous efforçons de maximiser la protection de toutes les données techniques collectées.",cookies_heading:"Cookies",cookies_text:"Lorsque vous utilisez l'édition GraphDB Free, Ontotext stockera des cookies sur votre appareil pour collecter des informations anonymes sur la façon dont vous interagissez avec le produit. Ces données techniques nous aident à améliorer et affiner notre produit. Il est important de noter que nous ne pouvons pas relier ces informations à vous personnellement ni à aucune donnée identifiable. Ces cookies ont uniquement pour but de nous aider à comprendre les interactions des utilisateurs et à identifier les éventuels problèmes dans GraphDB.",manage_cookies_heading:"Gérer les cookies",statistic_cookies:"Cookies d'analyse GraphDB",statistic_tooltip:"Activer/désactiver les cookies d'analyse GraphDB",statistic_text:"Ces cookies nous aident à comprendre comment les utilisateurs interagissent avec différents aspects de GraphDB en collectant et en rapportant des informations de manière anonyme. Ces données nous permettent d'améliorer l'expérience globale du produit et de développer des fonctionnalités en fonction de l'utilisation de GraphDB, sans collecter d'informations personnelles.",third_party_cookies:"Cookies tiers",third_party_tooltip:"Activer/désactiver les cookies tiers",third_party_cookies_text:"Nous utilisons les cookies Google Analytics 4 (GA4) pour nous aider à reconnaître les utilisateurs et sessions uniques, à suivre les interactions et à collecter des données telles que les pages consultées, la durée des sessions et l'engagement. Ces cookies sont gérés par Google, ce qui signifie que nous n'avons pas de contrôle sur leur fonctionnement. L'anonymisation IP est activée par défaut dans GA4, de sorte qu'il ne peut ni stocker les adresses IP ni suivre les utilisateurs personnellement. Aucune donnée n'est partagée entre GA4 et d'autres produits Google, et le traitement s'effectue à l'échelle mondiale, principalement aux États-Unis, sans enfreindre le RGPD, car aucune donnée personnelle n'est collectée.",change_cookies:"Vous pouvez modifier vos préférences de cookies à tout moment dans",change_cookies_location4:"Politique de cookies"}},security={user:{settings:"Paramètres de l'utilisateur"}},operations_notification={toggle_label:"Opérations en cours",links:{queries:"Exécution de requêtes",updates:"Exécution de mises à jour",imports:"Exécution d'importations",CREATE_BACKUP_IN_PROGRESS:"Création de sauvegarde en cours",RESTORE_BACKUP_IN_PROGRESS:"Restauration de sauvegarde en cours",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Création de sauvegarde cloud en cours",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restauration de sauvegarde cloud en cours",IN_SYNC:"Synchronisé",RECOVERING:"Récupération en cours",OUT_OF_SYNC:"Désynchronisé",UNAVAILABLE_NODES:"Nœuds indisponibles"}},user_menu={my_settings:"Mes paramètres",logout:"Déconnexion",login:"Se connecter"},rdf_search={labels:{search:"Rechercher des ressources RDF",hint:'Indice : "abC" correspond à "abC*", "ab c*" et "ab-c*".'},buttons:{table:"Tableau",visual:"VizGraph",graph_navigator:"Navigateur de graphe"},tooltips:{close_search_area:"Fermer la recherche",clear:"Clair"},toasts:{use_view_resource:"<b>Rechercher des ressources RDF</b></br>Utilisez <b>Voir la ressource</b> sur cette page",autocomplete_is_off:"L'autocomplétion est désactivée<br>Aller à Configuration -> Autocomplétion",empty_input:"S'il vous plaît remplir le champ de saisie!",invalid_uri:"IRI non valide"}},guides={"confirm-cancel-modal":{title:"Quitter le guide?",subtitle:"Êtes-vous sûr de vouloir quitter le guide ?<br><br>Vous pouvez le lancer à tout moment à partir de <b>Aide > Guides interactifs</b>.","exit-button":"Sortie","dont-show-again":"Ne pas démarrer automatiquement"}},openid={errors:{title:"Échec de l'authentification OpenID",unknown_flow:"Flux d'authentification inconnu: {{authFlow}}",invalid_pkce_state:"État PKCE invalide",cannot_retrieve_token:"Impossible de récupérer le jeton après la connexion: {{error}}",cannot_refresh_token:"Impossible de rafraîchir le jeton OpenID: {{error}}",user_no_access:"L'utilisateur n'a pas accès à GraphDB"}},graph_explore_split_button={buttons:{explore_visual_graph:{tooltip:"Visualiser avec la configuration VizGraph par défaut"},explore_visual_graph_dropdown:{tooltip:"Sélectionner la configuration",hint:"Indice : {{hint}}"}},messages:{missing_graph_configuration:"Aucune configuration avancée du graphe.",create_graph_configuration:"En créer une",create_graph_configuration_link:"ici"}};var fr={"menu.logo.link.title":"Logo GraphDB","menu.buttons.expand":"Développer le menu","menu.buttons.collapse":"Réduire le menu",common,layout,"menu.rdf.label":"RDF","menu.explore.label":"Explorez","menu.graphs.overview.label":"Aperçu des graphes","menu.class.relationships.label":"Relations entre les classes","menu.class.hierarchy.label":"Hiérarchie des classes","menu.similarity.label":"Similarité","menu.sparql.label":"SPARQL","menu.monitor.label":"Surveiller","menu.queries.and.updates.label":"Requêtes et mises à jour","menu.backup_and_restore.label":"Sauvegarde et Restauration","menu.enableFtsIndex.label":"Activer l'index de recherche plein texte","menu.ftsIndexes.label":"Index de recherche en texte intégral à construire (délimités par des virgules)","menu.ftsStringLiteralsIndex.label":"Index de recherche en texte intégral pour les littéraux xsd:string","menu.ftsIrisIndex.label":"Index de recherche en texte intégral pour l'indexation en texte intégral des IRI","menu.ftsDefaultAnalyzer.label":"Analyseur pour l'index par défaut","menu.resources.label":"Système","menu.setup.label":"Configurer","menu.lab.label":"Laboratoire","menu.ttyg.label":"Parlez à votre graphe","menu.repositories.label":"Dépôts","menu.aclmanagement.label":"Gestion ACL","menu.users.and.access.label":"Utilisateurs et accès","menu.my.settings.label":"Mes paramètres","menu.cluster.label":"Cluster","menu.connectors.label":"Connecteurs","menu.namespaces.label":"Espaces de noms","menu.autocomplete.label":"Autocomplétion","menu.jdbc.label":"JDBC","menu.sparql.template.label":"Modèles SPARQL","menu.license.label":"Licence","menu.help.label":"Aide","menu.system.information.label":"Informations sur le système","menu.rest.api.label":"API REST","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutoriels","menu.support.label":"Support","menu.guides.label":"Guides interactifs","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Gestion des points de terminaison","menu.graphql-playground.label":"GraphQL Playground","menu.graph-navigator.label":"Navigateur de graphe","visual.graph.label":"Graphique visuel","view.rdf.rank.title":"Rang RDF",language_selector,"repository-selector":{btn:{toggle:"Choisissez le dépôt",no_repositories:"Aucun dépôt accessible"},deprecated:"Obsolète"},"repository-info":{location:"L'emplacement",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"Système",ontop:"Ontop",fedx:"FedX",unknown:"Inconnu"},permissions_label:"Permissions",permissions:{none:"Aucune",read:"Lecture",write:"Lecture/Écriture",maintain:"Lecture/Écriture/Maintenance",graphql_read:"Lecture (GraphQL uniquement)",graphql_write:"Lecture/Écriture (GraphQL uniquement)"},"repository-size":{total:"Total des déclarations",explicit:"Explicite",inferred:"Déduit",expansion_ratio:"Taux d'expansion (total/explicite)",repository_inactive:"Activez le dépôt pour consulter les informations du relevé.","repository-info-not-available":"Info de taille non disponible."},fedx_deprecated:"Les dépôts FedX sont obsolètes : ils seront supprimés dans GraphDB 13. Migrez vers la fédération SPARQL 1.1.",fedx_learn_more:"En savoir plus"},license_alert,footer,permission_banner,cookie,security,operations_notification,user_menu,rdf_search,guides,openid,graph_explore_split_button};const OntoTestContext=class{constructor(e){registerInstance(this,e),this.bundles={en,fr},this.eventEmitter=new EventEmitter,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return ServiceProvider.get(ConfigurationContextService).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return ServiceProvider.get(LicenseContextService).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return ServiceProvider.get(ProductInfoContextService).updateProductInfo(e),Promise.resolve()}loadRepositories(){return ServiceProvider.get(RepositoryService).getRepositories().then(e=>{ServiceProvider.get(RepositoryContextService).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?mapAuthenticatedUserResponseToModel(e):void 0;return ServiceProvider.get(SecurityContextService).updateAuthenticatedUser(t),ServiceProvider.get(AuthenticationStorageService).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return ServiceProvider.get(SecurityContextService).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return ServiceProvider.get(AuthenticationService).login({username:e,password:t})}changeLanguage(e){return ServiceProvider.get(LanguageContextService).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return ServiceProvider.get(EventService).emit(new NavigationEnd(e,t)),Promise.resolve()}updateSelectedRepository(e){return ServiceProvider.get(RepositoryContextService).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return ServiceProvider.get(RepositoryLocationContextService).updateIsLoading(e),Promise.resolve()}openConfirmCancel(e){return this.eventEmitter.emit({NAME:CONFIRM_CANCEL_EVENT,payload:new ConfirmCancelPayload(e,e=>{console.info("Dialog closed with action:",e)})}),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:CREATE_TOAST_EVENT,payload:new ToastMessage(e.type,e.message)}),Promise.resolve()}addNotification(e){return service(OntoToastrService),notify(e),Promise.resolve()}setAutocomplete(e){return ServiceProvider.get(AutocompleteContextService).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return ServiceProvider.get(NamespacesContextService).updateNamespaces(new NamespaceMap(e)),Promise.resolve()}onLanguageChanged(){ServiceProvider.get(LanguageContextService).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=ServiceProvider.get(AuthenticationStorageService),o=ServiceProvider.get(SecurityContextService),n=ServiceProvider.get(AuthorizationService);t.clearAuthToken(),service(AuthStrategyResolver).resolveStrategy(e).initialize().then(t=>{o.updateIsLoggedIn(t),t||(n.hasFreeAccess()?n.initializeFreeAccess():e.hasOverrideAuth()&&n.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new SecurityConfig(t)}};export{OntoTestContext as onto_test_context};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,H,g as globalScripts,b as bootstrapLazy}from"./index-BntG-4Sv.js";export{s as setNonce}from"./index-BntG-4Sv.js";var patchBrowser=()=>{patchCloneNodeFix(H.prototype);const o=import.meta.url,e={};return""!==o&&(e.resourcesUrl=new URL(".",o).href),promiseResolve(e)},patchCloneNodeFix=o=>{const e=o.cloneNode;o.cloneNode=function(o){if("TEMPLATE"===this.nodeName)return e.call(this,o);const t=e.call(this,!1),n=this.childNodes;if(o)for(let o=0;o<n.length;o++)2!==n[o].nodeType&&t.appendChild(n[o].cloneNode(!0));return t}};patchBrowser().then(async o=>(await globalScripts(),bootstrapLazy([["onto-layout",[[4,"onto-layout",{authenticatedUser:[32],authToken:[32],securityConfig:[32],isLowResolution:[32],showHeader:[32],showNavbar:[32],isEmbedded:[32],loading:[32]},[[0,"navbarToggled","onNavbarToggled"],[9,"resize","onResize"]]]]],["onto-confirm-cancel-dialog",[[0,"onto-confirm-cancel-dialog",{isOpen:[32],hasDontShowAgain:[32]},[[16,"confirm-cancel-event","onConfirmCancelEvent"]]]]],["onto-graph-explore-split-button",[[0,"onto-graph-explore-split-button",{label:[1],disabled:[4],fetchGraphConfigs:[16,"fetch-graph-configs"],items:[32],isDropdownOpen:[32]}]]],["onto-repository-info",[[0,"onto-repository-info",{repository:[1],permission:[1],loading:[4],sizeInfo:[1,"size-info"],totalStatementsFormatter:[32],expansionRatioFormatter:[32]}]]],["onto-permission-banner",[[0,"onto-permission-banner"]]],["onto-deprecation-banner",[[4,"onto-deprecation-banner"]]],["onto-test-context",[[0,"onto-test-context",{initConfigurationContext:[64],updateLicense:[64],updateProductInfo:[64],loadRepositories:[64],setAuthenticatedUser:[64],setSecurityConfig:[64],login:[64],changeLanguage:[64],emitNavigateEndEvent:[64],updateSelectedRepository:[64],updateIsLoadingActiveRepositoryLocation:[64],openConfirmCancel:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["onto-toastr",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["onto-tooltip",[[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]],["onto-loader",[[1,"onto-loader",{size:[2],loading:[4],messageText:[1,"message-text"],targetSelector:[1,"target-selector"]}]]],["translate-label",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16,"translation-parameters"],translatedLabel:[32]}]]],["onto-dialog_2",[[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}],[4,"onto-dialog",{config:[16]}]]],["onto-cookie-consent_2",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["onto-dropdown",[[0,"onto-dropdown",{dropdownButtonName:[1,"dropdown-button-name"],dropdownButtonNameLabelKey:[1,"dropdown-button-name-label-key"],dropdownButtonGuideSelector:[1,"dropdown-button-guide-selector"],dropdownButtonTooltip:[1,"dropdown-button-tooltip"],dropdownButtonTooltipLabelKey:[1,"dropdown-button-tooltip-label-key"],iconClass:[1,"icon-class"],iconImage:[1,"icon-image"],items:[16],tooltipTheme:[1,"tooltip-theme"],itemTooltipTheme:[1,"item-tooltip-theme"],tooltipClass:[1,"tooltip-class"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],disabled:[4],open:[32],buttonTooltipContent:[32],refreshButtonTooltip:[64]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]],{dropdownButtonTooltip:["onTooltipSourceChanged"],items:["onTooltipSourceChanged"]}]]],["onto-language-selector_9",[[0,"onto-rdf-search",{isOpen:[32],buttonConfig:[32]},[[8,"click","handleClick"]]],[0,"onto-language-selector",{dropdownAlignment:[1,"dropdown-alignment"],currentLanguage:[32]}],[0,"onto-license-alert",{license:[16]}],[0,"onto-operations-notification",{activeOperations:[16,"active-operations"],isOpen:[32]},[[8,"click","handleOutsideClick"],[0,"keydown","onKeyDown"]]],[0,"onto-repository-selector",{currentRepository:[16,"current-repository"],items:[16],repositorySizeInfoFetcher:[16,"repository-size-info-fetcher"],getRepositoryPermission:[16,"get-repository-permission"],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32],dropdownItems:[32]},null,{items:["onItemsChanged"]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16,"security-config"],isOpen:[32]},[[0,"keydown","onKeyDown"]]],[0,"onto-search-icon",{tooltipLabel:[32]}],[0,"onto-search-resource-input",{context:[1],skipValidation:[4,"skip-validation"],preserveSearch:[4,"preserve-search"],isHidden:[4,"is-hidden"],buttonConfig:[16,"button-config"],inputValue:[32],searchResult:[32],isAutocompleteEnabled:[32]},null,{isHidden:["onVisibilityChange"]}]]],["onto-footer_3",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],repositoryItems:[32],currentRoute:[32],currentRepository:[32],securityConfig:[32],user:[32],showUserMenu:[32],showLoginButton:[32],applicationLogoPath:[32]}],[0,"onto-footer",{productInfo:[32],shouldShowCookieConsent:[32]},[[0,"consentGiven","handleConsentGiven"]]],[0,"onto-navbar",{navbarCollapsed:[4,"navbar-collapsed"],menuItems:[16,"menu-items"],menuModel:[32],isCollapsed:[32]},[[0,"keydown","onKeyDown"],[0,"focusout","onFocusOut"]],{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}]]]],o)));
|
|
1
|
+
import{p as promiseResolve,H,g as globalScripts,b as bootstrapLazy}from"./index-BntG-4Sv.js";export{s as setNonce}from"./index-BntG-4Sv.js";var patchBrowser=()=>{patchCloneNodeFix(H.prototype);const o=import.meta.url,e={};return""!==o&&(e.resourcesUrl=new URL(".",o).href),promiseResolve(e)},patchCloneNodeFix=o=>{const e=o.cloneNode;o.cloneNode=function(o){if("TEMPLATE"===this.nodeName)return e.call(this,o);const t=e.call(this,!1),n=this.childNodes;if(o)for(let o=0;o<n.length;o++)2!==n[o].nodeType&&t.appendChild(n[o].cloneNode(!0));return t}};patchBrowser().then(async o=>(await globalScripts(),bootstrapLazy([["onto-layout",[[4,"onto-layout",{authenticatedUser:[32],authToken:[32],securityConfig:[32],isLowResolution:[32],showHeader:[32],showNavbar:[32],isEmbedded:[32],loading:[32]},[[0,"navbarToggled","onNavbarToggled"],[9,"resize","onResize"],[4,"keydown","handleDocumentKeydown"],[4,"focusin","handleGlobalFocus"]]]]],["onto-confirm-cancel-dialog",[[0,"onto-confirm-cancel-dialog",{isOpen:[32],hasDontShowAgain:[32]},[[16,"confirm-cancel-event","onConfirmCancelEvent"]]]]],["onto-graph-explore-split-button",[[0,"onto-graph-explore-split-button",{label:[1],disabled:[4],fetchGraphConfigs:[16,"fetch-graph-configs"],items:[32],isDropdownOpen:[32]}]]],["onto-repository-info",[[0,"onto-repository-info",{repository:[1],permission:[1],loading:[4],sizeInfo:[1,"size-info"],totalStatementsFormatter:[32],expansionRatioFormatter:[32]}]]],["onto-permission-banner",[[0,"onto-permission-banner"]]],["onto-deprecation-banner",[[4,"onto-deprecation-banner"]]],["onto-test-context",[[0,"onto-test-context",{initConfigurationContext:[64],updateLicense:[64],updateProductInfo:[64],loadRepositories:[64],setAuthenticatedUser:[64],setSecurityConfig:[64],login:[64],changeLanguage:[64],emitNavigateEndEvent:[64],updateSelectedRepository:[64],updateIsLoadingActiveRepositoryLocation:[64],openConfirmCancel:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["onto-toastr",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["onto-tooltip",[[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]],["onto-loader",[[1,"onto-loader",{size:[2],loading:[4],messageText:[1,"message-text"],targetSelector:[1,"target-selector"]}]]],["translate-label",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16,"translation-parameters"],translatedLabel:[32]}]]],["onto-dialog_2",[[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}],[4,"onto-dialog",{config:[16]}]]],["onto-cookie-consent_2",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["onto-dropdown",[[0,"onto-dropdown",{dropdownButtonName:[1,"dropdown-button-name"],dropdownButtonNameLabelKey:[1,"dropdown-button-name-label-key"],dropdownButtonGuideSelector:[1,"dropdown-button-guide-selector"],dropdownButtonTooltip:[1,"dropdown-button-tooltip"],dropdownButtonTooltipLabelKey:[1,"dropdown-button-tooltip-label-key"],iconClass:[1,"icon-class"],iconImage:[1,"icon-image"],items:[16],tooltipTheme:[1,"tooltip-theme"],itemTooltipTheme:[1,"item-tooltip-theme"],tooltipClass:[1,"tooltip-class"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],disabled:[4],open:[32],buttonTooltipContent:[32],refreshButtonTooltip:[64]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]],{dropdownButtonTooltip:["onTooltipSourceChanged"],items:["onTooltipSourceChanged"]}]]],["onto-language-selector_9",[[0,"onto-rdf-search",{isOpen:[32],buttonConfig:[32]},[[8,"click","handleClick"]]],[0,"onto-language-selector",{dropdownAlignment:[1,"dropdown-alignment"],currentLanguage:[32]}],[0,"onto-license-alert",{license:[16]}],[0,"onto-operations-notification",{activeOperations:[16,"active-operations"],isOpen:[32]},[[8,"click","handleOutsideClick"],[0,"keydown","onKeyDown"]]],[0,"onto-repository-selector",{currentRepository:[16,"current-repository"],items:[16],repositorySizeInfoFetcher:[16,"repository-size-info-fetcher"],getRepositoryPermission:[16,"get-repository-permission"],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32],dropdownItems:[32]},null,{items:["onItemsChanged"]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16,"security-config"],isOpen:[32]},[[0,"keydown","onKeyDown"]]],[0,"onto-search-icon",{tooltipLabel:[32]}],[0,"onto-search-resource-input",{context:[1],skipValidation:[4,"skip-validation"],preserveSearch:[4,"preserve-search"],isHidden:[4,"is-hidden"],buttonConfig:[16,"button-config"],inputValue:[32],searchResult:[32],isAutocompleteEnabled:[32]},null,{isHidden:["onVisibilityChange"]}]]],["onto-footer_3",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],repositoryItems:[32],currentRoute:[32],currentRepository:[32],securityConfig:[32],user:[32],showUserMenu:[32],showLoginButton:[32],applicationLogoPath:[32]}],[0,"onto-footer",{productInfo:[32],shouldShowCookieConsent:[32]},[[0,"consentGiven","handleConsentGiven"]]],[0,"onto-navbar",{navbarCollapsed:[4,"navbar-collapsed"],menuItems:[16,"menu-items"],menuModel:[32],isCollapsed:[32]},[[0,"keydown","onKeyDown"],[0,"focusout","onFocusOut"]],{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}]]]],o)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,a as n,c as i,F as s,d as o}from"./p-BntG-4Sv.js";import{SubscriptionList as r,service as a,ProductInfoContextService as l,SecurityContextService as h,LicenseContextService as c,TrackingService as m,WindowService as u,UriUtil as d,FibonacciGenerator as b,ServiceProvider as p,MonitoringService as v,RepositoryContextService as g,RepositoryLocationContextService as f,RepositoryService as y,OntoToastrService as w,NamespacesService as k,NamespacesContextService as x,AuthenticationService as C,AuthorizationService as S,EventService as T,ConfigurationContextService as I,RuntimeConfigurationContextService as A,isHomePage as O,getCurrentRoute as R,navigateTo as z,EventName as P,RepositoryList as j,ObjectUtil as L,getPathName as M,REPOSITORY_ID_PARAM as _,openInNewTab as K,navigate as $,isSameRepository as F}from"@ontotext/workbench-api";import{T as N}from"./p-DSYXTTde.js";import{H as D}from"./p-BSmKhkm5.js";import{D as E}from"./p-WQYHXM0G.js";import{R as H}from"./p-CNWCaedF.js";import{L as B}from"./p-BIkLC5Zf.js";const W=({href:e},i)=>t("a",{href:e,target:"_blank",rel:"noopener noreferrer"},i,t("i",{class:"ri-external-link-line","aria-hidden":"true"}),t("span",{class:"screen-reader-only"}," ",t("translate-label",{labelKey:"common.label.opens_in_new_window"}))),G=class{constructor(t){e(this,t),this.subscriptions=new r,this.currentYear=(new Date).getFullYear(),this.productInfoContextService=a(l),this.securityContextService=a(h),this.licenseContextService=a(c),this.trackingService=a(m)}handleConsentGiven(){this.trackingService.acceptCookiePolicy().then(()=>{this.shouldShowCookieConsent=!1,u.getWindow().dispatchEvent(new Event("resize"))})}render(){var e,i,o,s,r;return t(n,{key:"0e0753e877da0865a50df63ba0b4260c2bf34c08"},t("div",{key:"15e0ef9d4e0f867151a60cacfb07a01c19a4ff94",class:"footer-component"},t(W,{key:"78edb364ac12e922fa7ff49e19ec74a4ae8f0737",href:d.PRODUCT_URL},"GraphDB")," ",null===(e=this.productInfo)||void 0===e?void 0:e.productVersion," • ",t(W,{key:"a1bfce07951c4bb72b0e94d30e04bbc4713a21ac",href:"https://rdf4j.org"},"RDF4J")," ",null===(i=this.productInfo)||void 0===i?void 0:i.sesame," • Connectors ",null===(o=this.productInfo)||void 0===o?void 0:o.connectors," • Ontop ",null===(s=this.productInfo)||void 0===s?void 0:s.ontop," • Workbench ",null===(r=this.productInfo)||void 0===r?void 0:r.workbench," • © 2002–",this.currentYear," ",t(W,{key:"b4289cc4a767bf121bd82ed2c84cded751252eb1",href:"https://ontotext.com"},"Ontotext AD"),". ",t("translate-label",{key:"8b8d09c067d67ada23056bf755b14c7e8ca5d829",labelKey:"footer.label.all_rights_reserved"})),this.shouldShowCookieConsent&&t("onto-cookie-consent",{key:"61cc836b580466fba94fc4d08ba730713c2f56be"}))}connectedCallback(){this.subscribeToProductInfoChange(),this.subscribeToSecurityConfigChange(),this.subscribeToUserChange(),this.subscribeToLicenseChange(),this.subscribeToUserLoginStatusChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}subscribeToProductInfoChange(){this.subscriptions.add(this.productInfoContextService.onProductInfoChanged(e=>{this.productInfo=e}))}subscribeToSecurityConfigChange(){this.subscriptions.add(this.securityContextService.onSecurityConfigChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserChange(){this.subscriptions.add(this.securityContextService.onAuthenticatedUserChanged(()=>{this.setCookieConsentVisibility()}))}subscribeToUserLoginStatusChange(){this.subscriptions.add(this.securityContextService.onUserLoginStatusChanged(()=>{this.setCookieConsentVisibility()}))}setCookieConsentVisibility(){var e,t;if(!this.securityContextService.getSecurityConfig())return void(this.shouldShowCookieConsent=!1);if(!this.trackingService.isTrackingAllowed())return void(this.shouldShowCookieConsent=!1);const i=this.securityContextService.getIsLoggedIn(),n=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,o=this.trackingService.getCookieConsent();o&&(this.shouldShowCookieConsent=!o.policyAccepted&&(n||i))}subscribeToLicenseChange(){this.subscriptions.add(this.licenseContextService.onLicenseChanged(()=>{this.setCookieConsentVisibility()}))}};G.style=":host{display:block}.footer-component{padding-left:var(--main-content-rl-padding);height:1.875rem}.footer-component .ri-external-link-line{margin-left:0.15em;font-size:0.85em}";const U=({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-row"},t("div",{class:"repository-id"},e.id),e.isFedx()&&t("span",{class:"deprecated-tag","data-test":"repository-selector-fedx-deprecated-tag"},t("translate-label",{labelKey:"repository-selector.deprecated"}))),t("div",{class:"repository-location body-xs-light"},e.location?e.location:"Local"))),V="menu.logo.link.title",X=class{constructor(t){e(this,t),this.UPDATE_ACTIVE_OPERATION_TIME_INTERVAL=2e3,this.fibonacciGenerator=new b,this.monitoringService=p.get(v),this.repositoryContextService=p.get(g),this.repositoryLocationContextService=p.get(f),this.repositoryService=p.get(y),this.securityContextService=p.get(h),this.toastrService=p.get(w),this.namespacesService=p.get(k),this.namespaceContextService=p.get(x),this.authService=p.get(C),this.authorizationService=p.get(S),this.eventService=p.get(T),this.configurationContextService=p.get(I),this.runtimeConfigurationContextService=p.get(A),this.logger=B.logger,this.shouldShowSearch=!0,this.isHomePage=O(),this.repositoryItems=[],this.showUserMenu=!1,this.showLoginButton=!1,this.isActiveLocationLoading=!1,this.subscriptions=new r,this.skipUpdateActiveOperationsTimes=0,this.labels={[V]:N.translate(V)},this.getRepositoryPermission=e=>this.authorizationService.getRepositoryPermission(e),this.repositorySizeInfoFetcher=e=>this.repositoryService.getRepositorySizeInfo(e),this.showViewResourceMessage=e=>{e.stopPropagation(),this.toastrService.info(N.translate("rdf_search.toasts.use_view_resource")),this.shouldShowSearch=!1,D.focusElement("#search-resource-input-home input"),this.eventService.emit({NAME:H.RDF_SEARCH_ICON_CLICKED})}}disconnectedCallback(){this.subscriptions.unsubscribeAll(),this.stopOperationPolling()}connectedCallback(){this.currentRepository=this.repositoryContextService.getSelectedRepository(),this.subscribeToEvents(),this.currentRoute=R(),this.startOperationPolling(),this.onTranslate(V)}render(){var e,i;return t(n,{key:"7f8499f3441a97b72078e484ce42910f53e81da7"},t("div",{key:"b722160222e2964c54707314109e2534a29b518a",class:"header-component"},t("div",{key:"7d2cd4ca1c93108e51fad0abe5749a0703fde680",class:"left-section brand"},t("a",{key:"b2a4e8e25f8157397b0fe2180db64a95a5ea30e4",class:"home-page",href:"./",onClick:z("./")},t("img",{key:"cdf61a093b8e6f948a74cfabe85b47446a965130",src:this.applicationLogoPath,class:"big-logo",alt:this.labels[V]}))),t("div",{key:"31f1022005aeda1a0e897901d6beadca912d8090",class:"right-section"},t("onto-search-icon",{key:"0dab93a246a50c8f1086f01d151a4924b7c690cf",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:"b7abc4cd5bc85ea5de7f6bd927af0ca06f8beba1","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===(i=this.license)||void 0===i?void 0:i.valid)?t("onto-license-alert",{license:this.license}):"",t("onto-repository-selector",{key:"b4a098a2a5596f18d11841964cad04ce4e2dbcec",currentRepository:this.currentRepository,items:this.repositoryItems,repositorySizeInfoFetcher:this.repositorySizeInfoFetcher,getRepositoryPermission:this.getRepositoryPermission}),t("onto-language-selector",{key:"6faefa1750b6d9c9213ae46f851f3cf1a64fb2a1","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.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(p.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(P.NAVIGATION_END,()=>{this.shouldShowSearch=this.shouldShowRdfSearch(),this.isHomePage=O(),this.currentRoute=R(),this.updateVisibility()}))}onTranslate(e){this.subscriptions.add(N.onTranslate(e,[],t=>{this.labels[e]=t}))}resetOnMissingRepositories(){this.repositoryItems=[],this.repositoryList=new j,this.currentRepository=void 0}initOnRepositoryListChanged(e){var t;this.repositoryList=e,this.currentRepository&&(this.currentRepository=null!==(t=e.findRepository(this.currentRepository.id,this.currentRepository.location))&&void 0!==t?t:this.currentRepository),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 E).setName(t(U,{repository:e})).setValue(e).setGuideSelector(`repository-id-${e.id}`))}loadNamespaces(){this.currentRepository&&this.authorizationService.canReadRepo(this.currentRepository)&&this.namespacesService.getNamespaces(this.currentRepository.id).then(e=>this.namespaceContextService.updateNamespaces(e))}updateVisibility(){var e,t,i;const n=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,o=this.authService.isLoggedIn();let s=!1;try{s=this.authService.isAuthenticated()}catch(e){s=!1}const r=null===(i=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===i?void 0:i.enabled;this.showLoginButton=n&&r&&!o&&"login"!==this.currentRoute,this.showUserMenu=n&&s&&o,this.shouldShowSearch=this.shouldShowRdfSearch()}startOperationPolling(){clearInterval(this.pollingInterval),this.pollingInterval=u.getWindow().setInterval(()=>{this.authService.isAuthenticated()?this.skipUpdateActiveOperationsTimes>0?this.skipUpdateActiveOperationsTimes--:this.currentRepository&&this.monitoringService.getOperations(this.currentRepository.id).then(e=>{L.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"===M())&&this.authorizationService.canReadRepo(this.currentRepository)}};X.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}";class Y{constructor(e){this.type="navbarToggled",this.payload=e}}class q{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 J(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 n=e;(null===(i=t.href)||void 0===i?void 0:i.includes("*"))&&(n=this.getWildcardPath(e,t.href));const o=t.href.search(/[?]/);n===(-1===o?t.href:t.href.substring(0,o))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const i=e.split("/"),n=t.split("/");if(i.length!==n.length)return e;const o=[];for(let t=0;t<n.length;t++)if("*"===n[t])o.push("*");else{if(n[t]!==i[t])return e;o.push(n[t])}return o.join("/")}sorted(){return this._items.filter(e=>e.children).forEach(e=>{e.children.sort(q.compare)}),this._items.sort(q.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 J{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 Q=B.logger;class Z{static map(e,t,i,n){const o=new q;return Z.setTopLevelMenuItems(e,o,t),Z.setSubmenuItems(e,o,t),i&&Z.addRepositoryIdToHrefAttributes(o,i,n),o.sorted()}static addRepositoryIdToHrefAttributes(e,t,i){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${i}=${t}`}):e.href=`${e.href}?${i}=${t}`})}static setTopLevelMenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>!e.parent&&e.shouldShow).forEach(e=>{t.hasParent(e.label)?Q.warn("Doubled parent definition: ",e):t.addItem(this.toMenuItemModel(e,void 0,i,e.children))})})}static setSubmenuItems(e,t,i){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const n=t.getTopLevelItem(e.parent);null==n||n.addChildren(this.toMenuItemModel(e,n,i,e.children))})})}static toMenuItemModel(e,t,i,n=[]){let o;e.documentationHref&&(o=d.resolveDocumentationUrl(null==i?void 0:i.shortVersion,e.documentationHref));const s=new J({label:e.label,labelKey:e.labelKey,href:o||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=n.map(e=>this.toMenuItemModel(e,s,i,e.children));return s.addChildren(...r),s}}const ee="menu.buttons.expand",te="menu.buttons.collapse",ne=class{constructor(t){e(this,t),this.navbarToggled=i(this,"navbarToggled"),this.productInfoContextService=a(l),this.repositoryContextService=a(g),this.subscriptions=new r,this.resizeHandler=()=>this.adjustAllSubmenus(this.hostElement),this.SUBMENU_VERTICAL_MARGIN=8,this.MIN_SUBMENU_HEIGHT=100,this.ARIA_CURRENT_PAGE="page",this.POINTER_TYPE_KEYBOARD="keyboard",this.labels={[ee]:N.translate(ee),[te]:N.translate(te)},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 Y(this.isCollapsed))}menuItemsChanged(e){this.init(e)}init(e){var t;this.selectedRepository=this.repositoryContextService.getSelectedRepository();const i=Z.map(e||[],this.productInfo,null===(t=this.selectedRepository)||void 0===t?void 0:t.id,_);i.initSelected(R()),this.menuModel=i}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?K(t.href):(this.setAttributes(e),$(t.href))),t.children.length?t.open?this.closeSubmenusAndRestoreSelection(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)}closeSubmenusAndRestoreSelection(e){this.menuModel.closeAll(),this.menuModel.hasSelectedSubmenu(e)&&this.menuModel.selectItem(e)}subscribeToNavigationEnd(){this.subscriptions.add(a(T).subscribe(P.NAVIGATION_END,()=>{this.selectItemByUrl()}))}selectItemByUrl(){this.menuModel&&(this.menuModel.deselectAll(),this.menuModel.closeAll(),O()||this.menuModel.initSelected(R()),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 Y(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 q(this.menuModel.items))}onLanguageChanged(){this.refreshNavbar()}onTranslate(e){this.subscriptions.add(N.onTranslate(e,[],t=>{this.labels[e]=t,this.onLanguageChanged()}))}toggleNavbarHandler(){return()=>this.toggleNavbar()}adjustSubmenuMaxHeight(e,t=this.SUBMENU_VERTICAL_MARGIN){if(!e||"function"!=typeof e.getBoundingClientRect)return;const i=e.closest(".menu-element");if(!i)return;const n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=window.innerHeight,r=o.top-t+o.height,a=s-o.bottom+o.height-t;let l,c=!1;a>=n.height?l=a:r>=n.height?(l=r,c=!0):a>r?(l=a,c=!1):(l=r,c=!0),c?(e.style.bottom="0",e.style.top="auto"):(e.style.top="0",e.style.bottom="auto"),e.style.maxHeight=`${Math.max(this.MIN_SUBMENU_HEIGHT,l)}px`,e.style.overflowY="auto"}adjustAllSubmenus(e,t=this.SUBMENU_VERTICAL_MARGIN){requestAnimationFrame(()=>{e&&"function"==typeof e.querySelectorAll&&this.getAllOpenedSubmenus(e).forEach(e=>this.adjustSubmenuMaxHeight(e,t))})}getAllOpenedSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component.collapsed .menu-element.open .sub-menu"))}getAllSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component .menu-element .sub-menu"))}clearAllOpenedSubmenuStyles(){this.getAllSubmenus(this.hostElement).forEach(e=>{e.style.maxHeight="",e.style.overflowY="",e.style.top="",e.style.bottom=""})}componentWillLoad(){this.init(this.menuItems)}connectedCallback(){this.subscribeToNavigationEnd(),this.subscribeToProductInfoChanges(),this.subscribeToRepositoryChange(),this.onTranslate(ee),this.onTranslate(te),window.addEventListener("resize",this.resizeHandler)}disconnectedCallback(){this.subscriptions.unsubscribeAll(),window.removeEventListener("resize",this.resizeHandler)}onKeyDown(e){const t=this.getOpenedFlyout();"Escape"===e.key&&(null==t?void 0:t.contains(e.target))&&(e.preventDefault(),e.stopPropagation(),t.querySelector(".menu-element-root").focus(),this.closeOpenedFlyout())}onFocusOut(e){const t=this.getOpenedFlyout();(null==t?void 0:t.contains(e.target))&&!t.contains(e.relatedTarget)&&this.closeOpenedFlyout()}getOpenedFlyout(){return this.isCollapsed?this.hostElement.querySelector("li.menu-element.open"):null}closeOpenedFlyout(){const e=this.menuModel.items.find(e=>e.open);this.clearAllOpenedSubmenuStyles(),this.closeSubmenusAndRestoreSelection(e),this.refreshNavbar()}toAriaBoolean(e){return e?"true":"false"}getSubmenuId(e){return`navbar-submenu-${e}`}handleSelectMenuItem(e){return t=>{this.select(t,e)}}render(){if(this.menuModel)return t(n,null,t("ul",{id:"navbar",class:"navbar-component"},t("li",{class:"navbar-toggle"},t("button",{type:"button",class:"toggle-menu",title:this.isCollapsed?this.labels[ee]:this.labels[te],onClick:this.toggleNavbarHandler()},t("i",{class:"chevron "+(this.isCollapsed?"ri-arrow-right-s-line":"ri-arrow-left-s-line"),"aria-hidden":"true"}))),this.menuModel.items.map((e,i)=>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(s,null,t("button",{type:"button",class:{"menu-element-root":!0,active:e.selected},"aria-expanded":this.toAriaBoolean(!!e.open),"aria-controls":this.getSubmenuId(i),onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`,"aria-hidden":"true"})," ",t("translate-label",{class:"menu-item",labelKey:e.labelKey}),!this.isCollapsed&&t("i",{class:"chevron ri-arrow-right-s-line "+(e.open?" open":""),"aria-hidden":"true"})),t("ul",{class:"sub-menu",id:this.getSubmenuId(i),hidden:!e.open},t("li",{key:e.labelKey,class:"submenu-title label-lg-medium"},t("translate-label",{labelKey:e.labelKey})),e.children.map(e=>t("li",{key:e.labelKey,class:{"sub-menu-item":!0,"label-base-regular":!e.selected,"active label-base-medium":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),"aria-current":e.selected?this.ARIA_CURRENT_PAGE:void 0},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),"aria-current":e.selected?this.ARIA_CURRENT_PAGE:void 0},t("span",{class:`menu-item-icon ${e.icon}`,"aria-hidden":"true"})," ",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(e=>{this.isFirstRepositoryChange?this.isFirstRepositoryChange=!1:F(e,this.selectedRepository)||this.init(this.menuItems)}))}setAttributes(e){const t=e.currentTarget;t.getAttribute("aria-current")||(-1===e.pointerId?(t.dataset.pointerType=this.POINTER_TYPE_KEYBOARD,t.dataset.backwardFocusTarget="true"):t.dataset.pointerType=e.pointerType)}get hostElement(){return o(this)}static get watchers(){return{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}}};ne.style=':host{display:block}.navbar-component{background-color:var(--gw-sidenav-background);width:15rem;position:fixed;z-index:1010;margin:0;padding:0;transition:width 0.2s ease-in;height:calc(100% - 60px);overflow:hidden auto}@media screen and (height <= 475px){.navbar-component.collapsed{position:absolute}}.navbar-component li{list-style:none;cursor:pointer}.navbar-component li a{text-decoration:none}.navbar-component .menu-element{position:relative}.navbar-component .menu-element-root{padding:0.8em;display:flex;align-items:center;line-height:2.5rem;position:relative;z-index:100;transition:all 0.18s ease-out, outline 0s, outline-offset 0s;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.navbar-component button.menu-element-root{width:100%;border:0;background:transparent;font:inherit;color:inherit;text-align:left}.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;transition:all 0.18s ease-out;pointer-events:none}.navbar-component .menu-element-root .menu-item{pointer-events:none}.navbar-component .chevron{margin-left:auto;font-size:1rem;transition:all 0.2s ease-in;pointer-events:none;color:var(--gw-sidenav-menuitem-icon-second-color)}.navbar-component .chevron.open{transform:rotate(90deg)}.navbar-component :not(.brand) .menu-element-root{font-size:1.1rem}.navbar-component .brand a{display:block;position:relative;z-index:5}.navbar-component .sub-menu{position:relative;padding:0;z-index:110}.navbar-component .sub-menu li{display:none}.navbar-component .sub-menu li:hover{text-decoration-line:none !important}.navbar-component .sub-menu li a{padding:0.5em 0.8em 0.5em 1.3em;display:block}.navbar-component .menu-element.open ul li{display:block}.navbar-component.collapsed{width:4.375rem;overflow:visible;height:auto}.navbar-component.collapsed .menu-element.open .sub-menu{position:absolute;top:0;left:4.375rem;width:15rem}.navbar-component.collapsed .menu-element.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 li .menu-element-root:hover{text-decoration-line:none !important}.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;text-overflow:ellipsis;overflow:hidden;padding:0.5em 0.8rem 0.7em;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{width:100%;min-height:24px;border:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;font-size:1em;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 .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.open .menu-item-icon,.navbar-component li .menu-element-root:hover .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 .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)}.sub-menu-item.label-base-medium,.sub-menu-item.label-base-regular{line-height:1.5}.navbar-component .menu-element .sub-menu .sub-menu-item .menu-item{color:var(--gw-sidenav-submenuitem-color)}.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)}.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 li.menu-element .menu-element-root .menu-item{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.navbar-component li a.sub-menu-link:not([href=""],[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:var(--gw-link-text-decoration) !important}.navbar-component .navbar-toggle .toggle-menu:focus-visible,.navbar-component .menu-element .menu-element-root:focus-visible,.navbar-component .menu-element .sub-menu .sub-menu-item .sub-menu-link:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.navbar-component .navbar-toggle .toggle-menu:focus:not(:focus-visible),.navbar-component .menu-element .menu-element-root:focus:not(:focus-visible){outline:none}';export{G as onto_footer,X as onto_header,ne as onto_navbar};
|