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 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./p-BntG-4Sv.js";import{EventEmitter as t,ServiceProvider as n,ConfigurationContextService as o,LicenseContextService as i,ProductInfoContextService as a,RepositoryService as s,RepositoryContextService as r,mapAuthenticatedUserResponseToModel as l,SecurityContextService as u,AuthenticationStorageService as c,AuthenticationService as p,LanguageContextService as d,EventService as m,NavigationEnd as g,RepositoryLocationContextService as h,ConfirmCancelPayload as _,CONFIRM_CANCEL_EVENT as b,ToastMessage as f,CREATE_TOAST_EVENT as y,service as v,OntoToastrService as k,notify as x,AutocompleteContextService as C,NamespacesContextService as R,NamespaceMap as A,AuthorizationService as G,AuthStrategyResolver as w,SecurityConfig as S}from"@ontotext/workbench-api";var E={"menu.logo.link.title":"GraphDB logo","menu.buttons.expand":"Expand menu","menu.buttons.collapse":"Collapse menu",common:{import:"Import",button:{ok:"OK",close:"Close",cancel:"Cancel"},loading:"Loading...",label:{opens_in_new_window:"(opens in a new window)"}},layout:{skip_to_main_content:"Skip to main content"},"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:{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"}}}},"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:{label:"No valid license",no_license_set:"No license was set."},footer:{label:{all_rights_reserved:"All rights reserved."}},permission_banner:{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:{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:{user:{settings:"User settings"}},operations_notification:{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:{my_settings:"My settings",logout:"Logout",login:"Login"},rdf_search:{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:{"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:{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:{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"}}},I={"menu.logo.link.title":"Logo GraphDB","menu.buttons.expand":"Développer le menu","menu.buttons.collapse":"Réduire le menu",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"},"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:{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"}}}},"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:{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"}}};const P=class{constructor(n){e(this,n),this.bundles={en:E,fr:I},this.eventEmitter=new t,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return n.get(o).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return n.get(i).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return n.get(a).updateProductInfo(e),Promise.resolve()}loadRepositories(){return n.get(s).getRepositories().then(e=>{n.get(r).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?l(e):void 0;return n.get(u).updateAuthenticatedUser(t),n.get(c).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return n.get(u).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return n.get(p).login({username:e,password:t})}changeLanguage(e){return n.get(d).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return n.get(m).emit(new g(e,t)),Promise.resolve()}updateSelectedRepository(e){return n.get(r).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return n.get(h).updateIsLoading(e),Promise.resolve()}openConfirmCancel(e){return this.eventEmitter.emit({NAME:b,payload:new _(e,e=>{console.info("Dialog closed with action:",e)})}),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:y,payload:new f(e.type,e.message)}),Promise.resolve()}addNotification(e){return v(k),x(e),Promise.resolve()}setAutocomplete(e){return n.get(C).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return n.get(R).updateNamespaces(new A(e)),Promise.resolve()}onLanguageChanged(){n.get(d).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=n.get(c),o=n.get(u),a=n.get(G);t.clearAuthToken(),v(w).resolveStrategy(e).initialize().then(t=>{o.updateIsLoggedIn(t),t||(a.hasFreeAccess()?a.initializeFreeAccess():e.hasOverrideAuth()&&a.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new S(t)}};export{P as onto_test_context};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,a as e,d as o}from"./p-BntG-4Sv.js";import{d as a}from"./p-D1ZpXQQS.js";import{service as s,AuthenticationService as n,AuthorizationService as r,NavigationContextService as h,AuthenticationStorageService as d,RuntimeConfigurationContextService as l,EventService as c,StorageKey as b,SubscriptionList as u,LocalStorageSubscriptionHandlerService as f,WindowService as v,navigate as p,isLoginPage as g,navigateToLoginPage as m,SecurityContextService as y,EventName as w,MainMenuExtensionPoint as k,isSamePage as x}from"@ontotext/workbench-api";import{i as C,T}from"./p-DSYXTTde.js";import"./p-BIkLC5Zf.js";const $="main-content",z=class{constructor(e){t(this,e),this.authenticationService=s(n),this.authorizationService=s(r),this.navigationContextService=s(h),this.authStorageService=s(d),this.runtimeConfigurationContextService=s(l),this.eventService=s(c),this.fullJwtKey=`${b.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${b.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 u,this.isNavbarCollapsed=!1,this.shouldFocusMainContentAfterLoading=!1,this.isPageChanging=!1,this.onSkipLinkClick=e=>{e.preventDefault(),this.focusMainContent()},this.handleStorageChange=e=>{s(f).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=a(()=>this.windowResizeHandler(),50),v.getWindow().addEventListener("storage",this.handleStorageChange)}componentWillLoad(){this.keepMainContentInPlace()}componentDidRender(){this.windowResizeHandler(),this.shouldFocusMainContentAfterLoading&&!this.loading&&(this.shouldFocusMainContentAfterLoading=!1,C()&&this.focusMainContent())}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToNavigationStart(),this.subscribeToBeforeMountRouting()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return i(e,{key:"61bc37e7d303d7ff5025ea2dc7e9034867202bf2",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},!this.isEmbedded&&this.showNavbar&&i("a",{key:"307c9650b2407494a740255fe846f7d607b45b12",class:"skip-link",href:`#${$}`,onClick:this.onSkipLinkClick},i("translate-label",{key:"3cabccf06cffa60993ebd0947774f4e3c6a11df3",labelKey:"layout.skip_to_main_content"})),i("div",{key:"2786853430e7a3e5086c9c555a8e74fc8b6822d6",class:"default-slot-wrapper"},i("slot",{key:"39b0d45ecaf6d4bbe80c7806d5d2e9d13b4c2e00",name:"default"})),!this.isEmbedded&&i("div",{key:"14bdd3b3a3be3faa11ea6532f89729e5def7848c",class:"wb-header"},i("header",{key:"b6d56ddaebe5a757044a1c5bffb0721a9838fa62"},this.showHeader&&i("onto-header",{key:"d229449d4d5607bda1cfbc86cf6474e8e57d64f4"}))),!this.isEmbedded&&this.showNavbar&&i("nav",{key:"b5b13d651443c3613f40032b1653d2e4d430515c",class:"wb-navbar"},i("onto-navbar",{key:"57df7e78ad8d8c64fe4a7495e73b319776546a0b",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),i("slot",{key:"3d69c68e4c0038c856a45ed3f4d7ccc99dda0550",name:"main"},i("onto-loader",{key:"88c615663244c8f843d37427112947332cb7b3a4",loading:this.loading,targetSelector:"main",size:96,messageText:T.translate("common.loading")})),!this.isEmbedded&&i("footer",{key:"b1bd41cb90cfe56cf2c33360c4777b83fe470761",class:"wb-footer"},i("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($))||void 0===e||e.focus()}windowResizeHandler(){var e,t,i,a,s;this.isLowResolution=v.getWindow().innerWidth<=768;const o=document.querySelector(".navbar-component"),n=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",`${n}px`),o){const e=document.querySelector(".cookie-consent-banner"),t=null!==(s=null===(a=null==e?void 0:e.getBoundingClientRect())||void 0===a?void 0:a.height)&&void 0!==s?s:0;o.style.height=`calc(100% - ${n}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()?p(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):g()||m(),v.getWindow().location.reload())}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=s(y);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(w.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(w.LOGGED_OUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),m()}))}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=v.getPluginRegistry().get(k.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(w.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),this.focusMainContentOnPageChange(e),setTimeout(()=>{this.loading=!1})}))}focusMainContentOnPageChange({oldUrl:e,newUrl:t}){e&&!x(e,t)&&this.isFocusLostOrInMainContent()&&(this.loading?this.shouldFocusMainContentAfterLoading=!0:this.focusMainContent())}isFocusLostOrInMainContent(){var e;return C()||!!(null===(e=document.getElementById($))||void 0===e?void 0:e.contains(document.activeElement))}subscribeToNavigationStart(){this.subscriptions.add(this.eventService.subscribe(w.NAVIGATION_START,({oldUrl:e,newUrl:t})=>{this.isPageChanging=!e||!t||!x(e,t)}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.eventService.subscribe(w.BEFORE_MOUNT_ROUTING_EVENT,()=>{this.isPageChanging&&(this.loading=!0)}))}get hostElement(){return o(this)}};z.style=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout 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)}';export{z as onto_layout};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as i,a as t}from"./p-BntG-4Sv.js";import{service as e,LanguageContextService as r,LanguageService as s,SubscriptionList as n,RepositoryState as a}from"@ontotext/workbench-api";import{L as l}from"./p-BIkLC5Zf.js";const p=class{constructor(t){o(this,t),this.languageContextService=e(r),this.languageService=e(s),this.subscriptions=new n,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?i(t,null,i("div",{class:"repository-info-title","data-test":"repository-info-title"},this.renderHeading(e)),e.title&&i("div",{class:"repository-info-description","data-test":"repository-info-description"},e.title),i("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))):i(t,null)}renderPermission(){return this.permission?this.renderLabel(`permissions.${this.permission.toLowerCase()}`):"-"}renderHeading(e){let o,t="inactive";return e.state===a.RUNNING?(o="ri-checkbox-blank-circle-fill",t=""):o=e.state===a.INACTIVE?"ri-stop-large-fill":"ri-loop-left-fill",i("h6",{class:`title ${t}`},i("i",{class:o}),i("span",null,e.id))}renderStatements(e){return e.state!==a.RUNNING?this.renderInactiveRepositoryMessage():this.loading?i("div",{class:"repository-info-row repository-size-loading","data-test":"repository-info-loading"},i("onto-loader",{loading:!0,size:25})):this.renderSizeInfo(this.parseProperty(this.sizeInfo,"sizeInfo"))}renderSizeInfo(e){return!e||e.total<0?i("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 i("div",{class:"repository-info-row inactive-repo-message","data-test":"repository-info-inactive"},i("div",{class:"icon"},i("i",{class:"ri-information-2-line"})),i("div",{class:"message"},i("p",null,this.renderLabel("repository-size.repository_inactive"))))}renderRow(e,o,t){return i("div",{class:`repository-info-row ${e}`,"data-test":`repository-info-${e}`},i("div",{class:"label"},this.renderLabel(o),":"),i("div",{class:"value"},t))}renderLabel(e){const o=`repository-info.${e}`;return i("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})}parseProperty(e,o){try{return function(e){return"string"!=typeof e?null!=e?e:void 0:e?JSON.parse(e):void 0}(e)}catch(t){return void l.logger.error(`The "${o}" property of onto-repository-info is not a valid JSON: "${e}"`,t)}}};p.style="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{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{margin:0}";export{p as onto_repository_info};
|
|
@@ -1 +0,0 @@
|
|
|
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 $,navigate as F,isSameRepository as K}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},n)=>t("a",{href:e,target:"_blank",rel:"noopener noreferrer"},n,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,o,i,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===(o=this.productInfo)||void 0===o?void 0:o.sesame," • Connectors ",null===(i=this.productInfo)||void 0===i?void 0:i.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 n=this.securityContextService.getIsLoggedIn(),o=null!==(t=null===(e=this.securityContextService.getSecurityConfig())||void 0===e?void 0:e.isFreeAccessEnabled())&&void 0!==t&&t,i=this.trackingService.getCookieConsent();i&&(this.shouldShowCookieConsent=!i.policyAccepted&&(o||n))}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"},e.id),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,o;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===(o=this.license)||void 0===o?void 0:o.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 n;return this.repositoryList.sortByLocationAndId(),n=this.currentRepository?this.repositoryList.filterByRepository([this.currentRepository]):this.repositoryList.getItems(),n.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,n;const o=null===(e=this.securityConfig)||void 0===e?void 0:e.enabled,i=this.authService.isLoggedIn();let s=!1;try{s=this.authService.isAuthenticated()}catch(e){s=!1}const r=null===(n=null===(t=this.securityConfig)||void 0===t?void 0:t.freeAccess)||void 0===n?void 0:n.enabled;this.showLoginButton=o&&r&&!i&&"login"!==this.currentRoute,this.showUserMenu=o&&s&&i,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 n=t.children.map(e);return new J(Object.assign(Object.assign({},t),{children:n}))};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=n=>{if(n.selected)return e=n,!0;if(n.children)for(const e of n.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 n;let o=e;(null===(n=t.href)||void 0===n?void 0:n.includes("*"))&&(o=this.getWildcardPath(e,t.href));const i=t.href.search(/[?]/);o===(-1===i?t.href:t.href.substring(0,i))&&(t.hasParent&&this.open(t),this.selectItem(t))})}getWildcardPath(e,t){const n=e.split("/"),o=t.split("/");if(n.length!==o.length)return e;const i=[];for(let t=0;t<o.length;t++)if("*"===o[t])i.push("*");else{if(o[t]!==n[t])return e;i.push(o[t])}return i.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 n;t(e),(null===(n=e.children)||void 0===n?void 0:n.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,n,o){const i=new q;return Z.setTopLevelMenuItems(e,i,t),Z.setSubmenuItems(e,i,t),n&&Z.addRepositoryIdToHrefAttributes(i,n,o),i.sorted()}static addRepositoryIdToHrefAttributes(e,t,n){e.items.forEach(e=>{e.children&&e.children.length>0?e.children.filter(e=>!e.documentationHref).forEach(e=>{e.href=`${e.href}?${n}=${t}`}):e.href=`${e.href}?${n}=${t}`})}static setTopLevelMenuItems(e,t,n){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,n,e.children))})})}static setSubmenuItems(e,t,n){e.forEach(e=>{e.items.filter(e=>e.parent&&e.shouldShow).forEach(e=>{const o=t.getTopLevelItem(e.parent);null==o||o.addChildren(this.toMenuItemModel(e,o,n,e.children))})})}static toMenuItemModel(e,t,n,o=[]){let i;e.documentationHref&&(i=d.resolveDocumentationUrl(null==n?void 0:n.shortVersion,e.documentationHref));const s=new J({label:e.label,labelKey:e.labelKey,href:i||e.href,documentationHref:e.documentationHref,hrefFun:e.hrefFun,order:e.order,role:e.role,editions:e.editions,icon:e.icon,guideSelector:e.guideSelector,hasParent:!!t,parentModel:t,parent:e.parent,selected:!1,shouldShow:e.shouldShow,testSelector:e.testSelector}),r=o.map(e=>this.toMenuItemModel(e,s,n,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.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 n=Z.map(e||[],this.productInfo,null===(t=this.selectedRepository)||void 0===t?void 0:t.id,_);n.initSelected(R()),this.menuModel=n}select(e,t){e.preventDefault(),this.clearAllOpenedSubmenuStyles(),t.hasSubmenus()||(e.ctrlKey?$(t.href):F(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 n=e.closest(".menu-element");if(!n)return;const o=e.getBoundingClientRect(),i=n.getBoundingClientRect(),s=window.innerHeight,r=i.top-t+i.height,a=s-i.bottom+i.height-t;let l,c=!1;a>=o.height?l=a:r>=o.height?(l=r,c=!0):a>r?(l=a,c=!1):(l=r,c=!0),c?(e.style.bottom="0",e.style.top="auto"):(e.style.top="0",e.style.bottom="auto"),e.style.maxHeight=`${Math.max(this.MIN_SUBMENU_HEIGHT,l)}px`,e.style.overflowY="auto"}adjustAllSubmenus(e,t=this.SUBMENU_VERTICAL_MARGIN){requestAnimationFrame(()=>{e&&"function"==typeof e.querySelectorAll&&this.getAllOpenedSubmenus(e).forEach(e=>this.adjustSubmenuMaxHeight(e,t))})}getAllOpenedSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component.collapsed .menu-element.open .sub-menu"))}getAllSubmenus(e){return Array.from(e.querySelectorAll(".navbar-component .menu-element .sub-menu"))}clearAllOpenedSubmenuStyles(){this.getAllSubmenus(this.hostElement).forEach(e=>{e.style.maxHeight="",e.style.overflowY="",e.style.top="",e.style.bottom=""})}componentWillLoad(){this.init(this.menuItems)}connectedCallback(){this.subscribeToNavigationEnd(),this.subscribeToProductInfoChanges(),this.subscribeToRepositoryChange(),this.onTranslate(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",{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,n)=>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(n),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(n),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)},t("translate-label",{class:"menu-item",labelKey:e.labelKey}),e.icon&&t("span",{class:`text-muted ${e.icon}`})))))),0===e.children.length&&t("a",{class:{"menu-element-root":!0,active:e.selected},href:e.href,onClick:this.handleSelectMenuItem(e)},t("span",{class:`menu-item-icon ${e.icon}`,"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:K(e,this.selectedRepository)||this.init(this.menuItems)}))}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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackJsonpworkbench=self.webpackJsonpworkbench||[]).push([[216],{5216(e,t,i){i.d(t,{J:()=>ue});var o=i(5802),n=i(3702),s=i(7830),r=i(7705),c=i(6933),l=i(1020),p=i(5547);const a=["popover"];function h(e,t){if(1&e&&(p.j41(0,"div"),p.nrm(1,"p",5),p.k0s()),2&e){const e=p.XpG(2);p.R7$(),p.Y8G("innerHTML",e.helpInfo(),p.npT)}}function u(e,t){if(1&e&&(p.j41(0,"div")(1,"a",6),p.EFF(2),p.nI1(3,"transloco"),p.k0s(),p.nrm(4,"i",7),p.k0s()),2&e){const e=p.XpG(2);p.R7$(),p.Y8G("href",e.documentationLink(),p.B4B),p.R7$(),p.JRh(p.bMT(3,2,"components.page_info_tooltip.documentation_link"))}}function y(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",4),p.bIt("mouseenter",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.cancelHide())})("mouseleave",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.hide())})("focusin",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.cancelHide())})("focusout",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.hide())}),p.j41(1,"h4"),p.EFF(2),p.k0s(),p.nVh(3,h,2,1,"div"),p.nVh(4,u,5,4,"div"),p.k0s()}if(2&e){const e=p.XpG();p.R7$(2),p.JRh(e.title()),p.R7$(),p.vxM(e.helpInfo()?3:-1),p.R7$(),p.vxM(e.documentationLink()?4:-1)}}let d=(()=>{class e{constructor(){this.title=(0,r.hFB)(),this.helpInfo=(0,r.hFB)(),this.documentationLink=(0,r.hFB)(),this.popover=(0,r.ebz)("popover"),this.hideDelayMs=180,this.hideTimeout=null}show(e){this.cancelHide(),this.popover()?.show(e)}hide(){this.cancelHide(),this.hideTimeout=setTimeout(()=>{this.popover()?.hide()},this.hideDelayMs)}cancelHide(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}ngOnDestroy(){this.cancelHide()}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-info-tooltip"]],viewQuery:function(e,t){1&e&&p.wEZ(t.popover,a,5),2&e&&p.NyB()},inputs:{title:[1,"title"],helpInfo:[1,"helpInfo"],documentationLink:[1,"documentationLink"]},decls:5,vars:2,consts:[["popover",""],["content",""],["icon","ri-icon ri-information-2-line","styleClass","page-info-icon-button text-tertiary",1,"page-info-icon",3,"focus","mouseover","mouseleave","focusout","rounded","text"],["styleClass","page-info-tooltip"],[1,"help-info","body-sm-regular",3,"mouseenter","mouseleave","focusin","focusout"],[3,"innerHTML"],["target","_blank","rel","noopener",3,"href"],[1,"ri-external-link-line"]],template:function(e,t){1&e&&(p.j41(0,"p-button",2),p.bIt("focus",function(e){return t.show(e)})("mouseover",function(e){return t.show(e)})("mouseleave",function(){return t.hide()})("focusout",function(){return t.hide()}),p.k0s(),p.j41(1,"p-popover",3,0),p.DNE(3,y,5,3,"ng-template",null,1,p.C5r),p.k0s()),2&e&&p.Y8G("rounded",!0)("text",!0)},dependencies:[c.AM,l.$n,s.Kj],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] .page-info-icon[_ngcontent-%COMP%]{display:inline-flex} .page-info-icon-button .ri-icon{font-size:.6em} .page-info-tooltip{margin-top:0!important;max-width:400px} .page-info-tooltip:before, .page-info-tooltip:after{content:unset!important}"]})}}return e})();var g=i(2271),f=i(7154),v=i(467),m=i(9769),R=i(7914),b=i(1914),_=i(148),C=i(1208),P=i(7573),M=i(9417),O=i(2842);class w{constructor(){this.repositoryList=[],this.canManageRepositories=!1,this.filterQuery="",this.stateFilter=null,this.localOnly=!0,this.stateFilterOptions=[{label:"components.repository_picker_list.state_filter.all",value:null},{label:"components.repository_picker_list.state_filter.running",value:f.RepositoryState.RUNNING},{label:"components.repository_picker_list.state_filter.inactive",value:f.RepositoryState.INACTIVE}]}get filteredRepositoryList(){return this.repositoryList.filter(e=>this.matchesLocationFilter(e)).filter(e=>this.matchesSearchQuery(e)).filter(e=>this.matchesStateFilter(e)).sort((e,t)=>this.sortLocalRepositoriesFirst(e,t))}get repositoryCount(){const e=this.repositoryList.length;return this.hasFilteredOutRepositories?`${this.filteredRepositoryList.length}/${e}`:`${e}`}get hasFilteredOutRepositories(){return this.filteredRepositoryList.length!==this.repositoryList.length}matchesLocationFilter(e){return!this.localOnly||e.local}matchesSearchQuery(e){const t=this.filterQuery.trim().toLowerCase();return!t||e.id?.toLowerCase().includes(t)||e.title?.toLowerCase().includes(t)}matchesStateFilter(e){return null===this.stateFilter||e.state===this.stateFilter}sortLocalRepositoriesFirst(e,t){return e.local===t.local?e.id.localeCompare(t.id):e.local?-1:1}get showFilters(){return this.repositoryList.length>0}get canCreateRepository(){return this.canManageRepositories&&!!this.license?.valid}get showRepositoryList(){return this.repositoryList.length>0}}var k=i(8165),I=i(2162);const S=["repositoryInfoPopover"],x=e=>({repositoryCount:e}),F=(e,t)=>({filteredCount:e,totalCount:t}),L=e=>["type-icon","icon-lg",e],T=(e,t)=>({repositoryId:e,location:t}),j=(e,t)=>["repository-state",e,t];function V(e,t){if(1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e){const e=p.XpG(),t=p.r8f(1);p.SpI(" ",p.i5U(1,1,"components.page_restrictions.repository_count_filtered_accessible",p.l_i(4,F,t.length,e.vm().repositoryList.length))," ")}}function G(e,t){if(1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e){const e=p.XpG();p.SpI(" ",p.i5U(1,1,"components.page_restrictions.repository_count_accessible",p.eq3(4,x,e.vm().repositoryList.length))," ")}}function A(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-button",13),p.nI1(1,"transloco"),p.bIt("click",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.createRepository())}),p.k0s()}2&e&&p.Y8G("label",p.bMT(1,2,"components.repository_picker_list.create_repository_btn.label"))("icon","ri-add-circle-line")}function B(e,t){if(1&e){const e=p.RV6();p.SS7(0),p.nI1(1,"transloco"),p.j41(2,"p-iconfield",14)(3,"input",17),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onFilterQueryChange(t))}),p.k0s(),p.nrm(4,"p-inputicon",18),p.k0s()}if(2&e){const e=p.XpG(2),t=p.bMT(1,3,"components.repository_picker_list.filter_placeholder");p.R7$(3),p.Y8G("placeholder",t)("ngModel",e.vm().filterQuery),p.BMQ("aria-label",t)}}function $(e,t){1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e&&p.SpI(" ",p.bMT(1,1,t.$implicit.label)," ")}function N(e,t){1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e&&p.SpI(" ",p.bMT(1,1,t.$implicit.label)," ")}function E(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-select",19),p.nI1(1,"transloco"),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onStateFilterChange(t))}),p.DNE(2,$,2,3,"ng-template",null,0,p.C5r)(4,N,2,3,"ng-template",null,1,p.C5r),p.k0s()}if(2&e){const e=p.XpG(2);p.Y8G("ariaLabel",p.bMT(1,3,"components.repository_picker_list.state_filter_aria_label"))("options",e.vm().stateFilterOptions)("ngModel",e.vm().stateFilter)}}function X(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",16)(1,"p-checkbox",20),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onLocalOnlyChange(t))}),p.k0s(),p.j41(2,"label",21),p.EFF(3),p.nI1(4,"transloco"),p.k0s()()}if(2&e){const e=p.XpG(2);p.R7$(),p.Y8G("binary",!0)("ngModel",e.vm().localOnly),p.R7$(2),p.JRh(p.bMT(4,3,"components.page_restrictions.repository_filter_local_only"))}}function z(e,t){if(1&e&&(p.j41(0,"span",12),p.nVh(1,B,5,5,"p-iconfield",14),p.nVh(2,E,6,5,"p-select",15),p.nVh(3,X,5,5,"div",16),p.k0s()),2&e){const e=p.XpG();p.R7$(),p.vxM(e.showNameFilter()?1:-1),p.R7$(),p.vxM(e.showStateFilter()?2:-1),p.R7$(),p.vxM(e.showLocalOnlyFilter()?3:-1)}}function q(e,t){if(1&e&&(p.j41(0,"small",34),p.EFF(1),p.k0s()),2&e){p.XpG();const e=p.r8f(0);p.R7$(),p.SpI(" @ ",e," ")}}function H(e,t){if(1&e){const e=p.RV6();p.SS7(0),p.nI1(1,"transloco"),p.j41(2,"tr",24)(3,"td",25),p.SS7(4),p.nI1(5,"transloco"),p.nrm(6,"em",26),p.j41(7,"span",27),p.EFF(8),p.k0s()(),p.j41(9,"td",28),p.SS7(10),p.nI1(11,"transloco"),p.j41(12,"button",29),p.nI1(13,"transloco"),p.bIt("mouseenter",function(t){const i=o.eBV(e).$implicit,n=p.XpG(2);return o.Njj(n.scheduleShowRepositoryInfo(i,t.currentTarget))})("focus",function(t){const i=o.eBV(e).$implicit,n=p.XpG(2);return o.Njj(n.scheduleShowRepositoryInfo(i,t.currentTarget))})("mouseleave",function(){o.eBV(e);const t=p.XpG(2);return o.Njj(t.scheduleHideRepositoryInfo())})("blur",function(){o.eBV(e);const t=p.XpG(2);return o.Njj(t.scheduleHideRepositoryInfo())})("click",function(){const t=o.eBV(e).$implicit,i=p.XpG(2);return o.Njj(i.selectRepository(t))}),p.j41(14,"span",30),p.nrm(15,"em",31),p.j41(16,"span",32),p.EFF(17),p.k0s(),p.j41(18,"span",33),p.EFF(19),p.k0s(),p.nVh(20,q,2,1,"small",34),p.k0s(),p.j41(21,"span",35),p.EFF(22),p.k0s()()()()}if(2&e){const e=t.$implicit,i=t.rowIndex,o=p.XpG(2),n=p.bH3(e.location||p.bMT(1,12,"components.repository_picker_list.location_local_label")),s=p.bMT(5,15,"components.repository_picker_list.repository_type."+e.type);p.R7$(6),p.Y8G("ngClass",p.eq3(22,L,"icon-repo-"+e.type))("pTooltip",s),p.R7$(2),p.JRh(s);const r=p.bMT(11,17,"components.repository_picker_list.state_filter."+e.stateLowercase),c="repository-picker-repository-state-"+i,l=e.state===o.RepositoryState.RUNNING,a=e.state===o.RepositoryState.INACTIVE;p.R7$(4),p.BMQ("aria-label",p.i5U(13,19,"components.repository_picker_list.select_repository_aria_label",p.l_i(24,T,e.id,n)))("aria-describedby",c),p.R7$(3),p.Y8G("ngClass",p.l_i(27,j,l?"ri-circle-fill":"ri-circle-line",l||a?e.stateLowercase:"transitioning"))("pTooltip",r),p.R7$(),p.Y8G("id",c),p.R7$(),p.JRh(r),p.R7$(2),p.JRh(e.id),p.R7$(),p.vxM(o.vm().localOnly?-1:20),p.R7$(2),p.SpI(" ",e.title," ")}}function W(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",37),p.bIt("mouseenter",function(){o.eBV(e);const t=p.XpG(3);return o.Njj(t.clearRepositoryInfoTimeouts())})("mouseleave",function(){o.eBV(e);const t=p.XpG(3);return o.Njj(t.scheduleHideRepositoryInfo())}),p.nrm(1,"onto-repository-info",38),p.k0s()}if(2&e){p.XpG();const e=p.r8f(0);p.R7$(),p.Y8G("repository",e.repository)("permission",e.permission)("loading",e.loading)("sizeInfo",e.sizeInfo)}}function Y(e,t){if(1&e&&(p.SS7(0),p.nVh(1,W,2,4,"div",36)),2&e){const e=p.bH3(p.XpG(2).repositoryInfo());p.R7$(),p.vxM(e?1:-1)}}function Q(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-table",22),p.DNE(1,H,23,30,"ng-template",null,2,p.C5r),p.k0s(),p.j41(3,"p-popover",23,3),p.bIt("onShow",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.observeInfoPopoverPosition())})("onHide",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.stopObservingInfoPopoverPosition())}),p.DNE(5,Y,2,2,"ng-template",null,4,p.C5r),p.k0s()}if(2&e){p.XpG();const e=p.r8f(1);p.Y8G("value",e)("scrollable",!0),p.R7$(3),p.Y8G("focusOnShow",!1)}}let D=(()=>{class e{constructor(){this.repositoryContextService=(0,f.service)(f.RepositoryContextService),this.licenseContextService=(0,f.service)(f.LicenseContextService),this.authorizationService=(0,f.service)(f.AuthorizationService),this.repositoryService=(0,f.service)(f.RepositoryService),this.requireWriteAccess=(0,r.hFB)(!0),this.filterByTypes=(0,r.hFB)(void 0),this.filterByPermission=(0,r.hFB)(void 0),this.showNameFilter=(0,r.hFB)(!0),this.showStateFilter=(0,r.hFB)(!0),this.showLocalOnlyFilter=(0,r.hFB)(!0),this.subscriptions=new f.SubscriptionList,this.vm=(0,o.vPA)(new w),this.RepositoryState=f.RepositoryState,this.repositoryInfo=(0,o.vPA)(void 0),this.repositoryInfoPopover=(0,r.ebz)("repositoryInfoPopover"),this.repositionPopoverFrame=0}ngOnInit(){this.vm.update(e=>(e.repositoryList=this.getAllowedRepositories(),e.license=this.licenseContextService.getLicenseSnapshot(),e.canManageRepositories=this.authorizationService.isRepoManager(),e)),this.subscriptions.addAll([this.repositoryContextService.onRepositoryListChanged(()=>this.onRepositoryListChanged())])}ngOnDestroy(){this.subscriptions.unsubscribeAll(),this.clearRepositoryInfoTimeouts(),this.stopObservingInfoPopoverPosition()}createRepository(){const e=(0,f.getPathName)();(0,f.navigate)(`repository/create?previous=${e}`)}selectRepository(e){var t=this;return(0,v.A)(function*(){t.clearRepositoryInfoTimeouts(),t.repositoryInfoPopover()?.hide(),yield t.repositoryContextService.updateSelectedRepository(e.toRepositoryReference())})()}scheduleShowRepositoryInfo(e,t){this.clearRepositoryInfoTimeouts(),this.showRepositoryInfoTimeout=setTimeout(()=>this.showRepositoryInfo(e,t),300)}scheduleHideRepositoryInfo(){this.clearRepositoryInfoTimeouts(),this.hideRepositoryInfoTimeout=setTimeout(()=>this.repositoryInfoPopover()?.hide(),300)}clearRepositoryInfoTimeouts(){clearTimeout(this.showRepositoryInfoTimeout),clearTimeout(this.hideRepositoryInfoTimeout)}observeInfoPopoverPosition(){const e=this.repositoryInfoPopover(),t=e?.container?.querySelector(".repository-info-popover-content");!e||!t||(this.stopObservingInfoPopoverPosition(),this.popoverContentResizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this.repositionPopoverFrame),this.repositionPopoverFrame=requestAnimationFrame(()=>this.repositionPopover())}),this.popoverContentResizeObserver.observe(t))}stopObservingInfoPopoverPosition(){cancelAnimationFrame(this.repositionPopoverFrame),this.popoverContentResizeObserver?.disconnect(),this.popoverContentResizeObserver=void 0}onFilterQueryChange(e){this.vm.update(t=>(t.filterQuery=e,t))}onStateFilterChange(e){this.vm.update(t=>(t.stateFilter=e,t))}onLocalOnlyChange(e){this.vm.update(t=>(t.localOnly=e,t))}showRepositoryInfo(e,t){const i=this.repositoryInfoPopover();if(!i||i.overlayVisible&&this.repositoryInfo()?.repository===e)return;const o=this.authorizationService.getRepositoryPermission(e),n=e.state===f.RepositoryState.RUNNING;this.repositoryInfo.set({repository:e,permission:o,loading:n});const s=i.overlayVisible;i.show(null,t),s&&this.repositionPopover(),n&&this.repositoryService.getRepositorySizeInfo(e).then(t=>this.setLoadedSizeInfo(e,t)).catch(t=>{I.I.logger.error(`Failed to fetch the size of repository "${e.id}"`,t),this.setLoadedSizeInfo(e)})}setLoadedSizeInfo(e,t){this.repositoryInfo.update(i=>i?.repository===e?{...i,loading:!1,sizeInfo:t}:i)}repositionPopover(){const e=this.repositoryInfoPopover();e?.container?.classList.remove("p-popover-flipped"),e?.container?.removeAttribute("data-p-popover-flipped"),e?.align()}onRepositoryListChanged(){this.vm.update(e=>(e.repositoryList=this.getAllowedRepositories(),e))}getAllowedRepositories(){return this.repositoryService.getAccessibleRepositories(!0,this.requireWriteAccess()).filterByType(this.filterByTypes()).filter(this.createRepositoryPermissionFilter())}createRepositoryPermissionFilter(){const e=this.filterByPermission();return t=>!e||this.authorizationService.hasRepoPermission(e,t)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-repository-picker-list"]],viewQuery:function(e,t){1&e&&p.wEZ(t.repositoryInfoPopover,S,5),2&e&&p.NyB()},inputs:{requireWriteAccess:[1,"requireWriteAccess"],filterByTypes:[1,"filterByTypes"],filterByPermission:[1,"filterByPermission"],showNameFilter:[1,"showNameFilter"],showStateFilter:[1,"showStateFilter"],showLocalOnlyFilter:[1,"showLocalOnlyFilter"]},decls:14,vars:11,consts:[["selectedItem",""],["item",""],["body",""],["repositoryInfoPopover",""],["content",""],["data-test","repository-picker-list",1,"repository-picker-list"],[1,"header"],["aria-live","polite","aria-atomic","true",1,"repository-results-count"],["aria-hidden","true","data-test","repository-picker-results-count"],["data-test","repository-picker-results-count-accessible",1,"screen-reader-only"],["data-test","repository-picker-create-btn",1,"create-repository-btn",3,"label","icon"],[1,"toolbar"],[1,"filters"],["data-test","repository-picker-create-btn",1,"create-repository-btn",3,"click","label","icon"],[1,"filter-name"],["optionLabel","label","optionValue","value",1,"filter-state",3,"ariaLabel","options","ngModel"],[1,"filter-local-only"],["pInputText","","type","text",3,"ngModelChange","placeholder","ngModel"],[1,"ri-search-line"],["optionLabel","label","optionValue","value",1,"filter-state",3,"ngModelChange","ariaLabel","options","ngModel"],["inputId","localOnly",3,"ngModelChange","binary","ngModel"],["for","localOnly",1,"label-base-regular"],["scrollHeight","flex",1,"repository-list",3,"value","scrollable"],[3,"onShow","onHide","focusOnShow"],["data-test","repository-picker-row"],[1,"type-column"],["aria-hidden","true","data-test","repository-picker-repository-type","tooltipEvent","both","tooltipPosition","top",3,"ngClass","pTooltip"],["data-test","repository-picker-repository-type-label",1,"screen-reader-only"],[1,"name-column"],["type","button","data-test","repository-picker-select-btn",1,"repository-select",3,"mouseenter","focus","mouseleave","blur","click"],[1,"repository-header"],["aria-hidden","true","data-test","repository-picker-repository-state","tooltipEvent","both","tooltipPosition","top",3,"ngClass","pTooltip"],["data-test","repository-picker-repository-state-label",1,"screen-reader-only",3,"id"],["data-test","repository-picker-repository-id",1,"repository-id","label-base-bold"],["data-test","repository-picker-repository-location",1,"repository-location"],[1,"repository-description","body-sm-regular"],[1,"repository-info-popover-content"],[1,"repository-info-popover-content",3,"mouseenter","mouseleave"],[3,"repository","permission","loading","sizeInfo"]],template:function(e,t){1&e&&(p.j41(0,"div",5),p.SS7(1),p.j41(2,"div",6)(3,"h6",7)(4,"span",8),p.EFF(5),p.nI1(6,"transloco"),p.k0s(),p.j41(7,"span",9),p.nVh(8,V,2,7)(9,G,2,6),p.k0s()(),p.nVh(10,A,2,4,"p-button",10),p.k0s(),p.j41(11,"div",11),p.nVh(12,z,4,3,"span",12),p.k0s(),p.nVh(13,Q,7,3),p.k0s()),2&e&&(p.R7$(),p.bH3(t.vm().filteredRepositoryList),p.R7$(4),p.SpI(" ",p.i5U(6,6,"components.page_restrictions.repository_count",p.eq3(9,x,t.vm().repositoryCount))," "),p.R7$(3),p.vxM(t.vm().hasFilteredOutRepositories?8:9),p.R7$(2),p.vxM(t.vm().canCreateRepository?10:-1),p.R7$(2),p.vxM(t.vm().showFilters?12:-1),p.R7$(),p.vxM(t.vm().showRepositoryList?13:-1))},dependencies:[l.$n,m.YU,R.bG,R.XI,b.Sm,_.C8,C.md,P.l6,M.YN,M.me,M.BC,M.vS,O.m_,k.Sc,c.AM,s.Kj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.repository-picker-list[_ngcontent-%COMP%]{color:var(--gw-panel-color);display:flex;flex-direction:column;flex:1;min-height:0}.repository-picker-list[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.repository-picker-list[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:not(:has(.create-repository-btn)){margin-bottom:.5em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{display:flex;gap:1em;min-width:0;flex-wrap:wrap;padding-bottom:1em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%] .filter-local-only[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%] .filter-local-only[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%]{flex:1;min-height:200px}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--gw-datatable-row-hover-background)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .type-column[_ngcontent-%COMP%]{width:2.5rem;padding-right:0;vertical-align:top}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .type-column[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{font-size:1.2em;color:var(--gw-button-primary-link-hover-color)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%]{max-width:0;padding:0;vertical-align:top}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]{display:block;width:100%;padding:var(--gw-datatable-body-cell-padding);padding-left:.1em;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]:focus{outline:none}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;min-width:0}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state[_ngcontent-%COMP%]{flex-shrink:0;margin-right:.5em;font-size:.8em}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.running[_ngcontent-%COMP%]{color:var(--gw-button-success-background)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.inactive[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.transitioning[_ngcontent-%COMP%]{color:var(--gw-foreground-on-surface-subtle)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-id[_ngcontent-%COMP%]{flex:0 1 auto;min-width:0;font-weight:var(--gw-font-weight-600)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-description[_ngcontent-%COMP%]{display:block}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-id[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-description[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-location[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-location[_ngcontent-%COMP%]{flex:1;min-width:30%;margin-left:.5em}.repository-info-popover-content[_ngcontent-%COMP%]{box-sizing:content-box;max-width:30rem;min-width:22rem;margin:calc(-1 * var(--gw-popover-content-padding));padding:var(--gw-popover-content-padding)}"]})}}return e})();var J=i(2480),K=i(3049);const U="components.page_restrictions";let Z=(()=>{class e{constructor(){this.licenseContextService=(0,f.service)(f.LicenseContextService),this.securityContextService=(0,f.service)(f.SecurityContextService),this.authorizationService=(0,f.service)(f.AuthorizationService),this.repositoryService=(0,f.service)(f.RepositoryService),this.viewRestrictionService=(0,f.service)(f.ViewRestrictionService),this.translocoService=(0,o.WQX)(s.JO)}resolve(e){const t=e.selectedRepository?this.getSelectedRepositoryReasons(e,e.selectedRepository):[],i=this.isLicenseRestricted(e),o=this.hasAccessibleRepositories(e),n=[];i&&n.push({...this.warn("invalid_license"),actionLabelKey:`${U}.set_new_license`,actionLink:"/license"});const s=!o&&this.requiresWriteAccess(e);return s&&n.push(this.info("no_accessible_writable_repos")),t.length?n.push(...t):!s&&this.isRepositoryPickerRequired(e)&&n.push(this.getNoSelectedRepositoryReason(o)),n}isRepositoryPickerRequired(e){const t=e.selectedRepository;return t?!this.isRepositoryAllowed(e,t)||this.getSelectedRepositoryReasons(e,t).length>0:this.requiresSelectedRepository(e)}getNoSelectedRepositoryReason(e){const t=this.authorizationService.isRepoManager()&&this.isLicenseValid();return this.info(e?t?"no_active_repository_select_or_create_one":"no_active_repository_select_one":t?"no_accessible_repos_create_one":"no_accessible_repositories")}getSelectedRepositoryReasons(e,t){return this.isWriteRestricted(e,t)?[this.warn("no_write_permission",{repositoryId:t.id})]:this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_ONTOP)&&t.isOntop()?[this.warn("read_only_ontop",{repositoryId:t.id})]:this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_FEDEX)&&t.isFedx()?[this.warn("fedx_unsupported",{pageTitle:this.translocoService.translate(e.pageTitle)})]:[]}isWriteRestricted(e,t){const i=this.securityContextService.getSecurityConfig()?.isEnabled()??!1;return this.requiresWriteAccess(e)&&i&&!this.authorizationService.canWriteRepo(t)}isLicenseRestricted(e){return this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_LICENSE_INVALID)&&!this.isLicenseValid()}isLicenseValid(){return this.licenseContextService.getLicenseSnapshot()?.valid??!1}hasAccessibleRepositories(e){return this.repositoryService.getAccessibleRepositories(!0,this.requiresWriteAccess(e)).getItems().some(t=>this.isRepositoryAllowed(e,t))}isRepositoryAllowed(e,t){return this.viewRestrictionService.isRepositoryAllowed(t,e.viewRestriction)}requiresWriteAccess(e){return e.viewRestriction?.requiresWriteAccess()??!1}requiresSelectedRepository(e){return e.viewRestriction?.requiresSelectedRepository()??!1}isRestrictedBy(e,t){return e.viewRestriction?.isRestrictedBy(t)??!1}info(e){return{severity:"info",translationKey:`${U}.${e}`}}warn(e,t){return{severity:"warn",translationKey:`${U}.${e}`,translationParams:t}}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵprov=o.jDH({token:e,factory:e.ɵfac,providedIn:"root"})}}return e})();const ee=(e,t)=>t.translationKey;function te(e,t){if(1&e&&(p.j41(0,"a",4),p.EFF(1),p.nI1(2,"transloco"),p.k0s()),2&e){const e=p.XpG(2).$implicit;p.Y8G("href",e.actionLink,p.B4B),p.R7$(),p.JRh(p.bMT(2,2,e.actionLabelKey))}}function ie(e,t){if(1&e&&(p.j41(0,"a",5),p.EFF(1),p.nI1(2,"transloco"),p.k0s()),2&e){const e=p.XpG(2).$implicit;p.Y8G("routerLink",e.actionLink),p.R7$(),p.JRh(p.bMT(2,2,e.actionLabelKey))}}function oe(e,t){if(1&e&&p.nVh(0,te,3,4,"a",4)(1,ie,3,4,"a",5),2&e){const e=p.XpG().$implicit;p.vxM(e.isExternalAction?0:1)}}function ne(e,t){if(1&e&&(p.j41(0,"p-message",1)(1,"div"),p.nrm(2,"span",3),p.nI1(3,"transloco"),p.nVh(4,oe,2,1),p.k0s()()),2&e){const e=t.$implicit;p.Y8G("severity",e.severity),p.R7$(2),p.Y8G("innerHTML",p.i5U(3,3,e.translationKey,e.translationParams),p.npT),p.R7$(2),p.vxM(e.actionLabelKey&&e.actionLink?4:-1)}}function se(e,t){if(1&e&&p.nrm(0,"app-repository-picker-list",2),2&e){const e=p.XpG();p.Y8G("requireWriteAccess",e.requiresWriteAccess())("filterByTypes",e.allowedRepositoryTypes())("filterByPermission",e.requiredRepositoryPermission())("showStateFilter",!1)}}let re=(()=>{class e{static{this.FOOTER_SELECTOR=".wb-footer"}static{this.MAIN_CONTAINER_SELECTOR=".main-container"}static{this.BOTTOM_MARGIN_PX=16}constructor(){this.title=(0,r.hFB)(),this.restrictionResolverService=(0,o.WQX)(Z),this.repositoryContextService=(0,f.service)(f.RepositoryContextService),this.restrictionContextService=(0,f.service)(f.RestrictionContextService),this.elementRef=(0,o.WQX)(p.aKT),this.subscriptions=new f.SubscriptionList,this.selectedRepository=(0,o.vPA)(void 0),this.viewRestriction=(0,o.vPA)(void 0),this.restrictionContext=(0,g.EW)(()=>({selectedRepository:this.selectedRepository(),viewRestriction:this.viewRestriction(),pageTitle:this.title()??""})),this.isViewRestricted=(0,g.EW)(()=>this.restrictions().length>0||this.isRepositoryPickerShown()),this.availableHeight=(0,o.vPA)(void 0),this.restrictions=(0,g.EW)(()=>this.restrictionResolverService.resolve(this.restrictionContext())),this.isRepositoryPickerShown=(0,g.EW)(()=>this.restrictionResolverService.isRepositoryPickerRequired(this.restrictionContext())),this.requiresWriteAccess=(0,g.EW)(()=>this.viewRestriction()?.requiresWriteAccess()??!1),this.allowedRepositoryTypes=(0,g.EW)(()=>this.viewRestriction()?.allowedRepositoryTypes??[]),this.requiredRepositoryPermission=(0,g.EW)(()=>this.viewRestriction()?.requiredRepositoryPermission),(0,o.QZP)(()=>{this.updateAvailableHeight()})}ngOnInit(){this.subscriptions.addAll([this.repositoryContextService.onSelectedRepositoryChanged(e=>this.selectedRepository.set(e)),this.restrictionContextService.onViewRestrictionChanged(e=>this.viewRestriction.set(e))])}ngAfterViewInit(){this.resizeObserver=new ResizeObserver(()=>this.updateAvailableHeight()),this.resizeObserver.observe(document.body)}ngOnDestroy(){this.subscriptions.unsubscribeAll(),this.resizeObserver?.disconnect()}updateAvailableHeight(){if(!this.isViewRestricted())return void this.availableHeight.set(void 0);const t=this.elementRef.nativeElement.getBoundingClientRect().top,i=document.querySelector(e.FOOTER_SELECTOR)?.getBoundingClientRect().top??window.innerHeight,o=document.querySelector(e.MAIN_CONTAINER_SELECTOR),n=o&&parseFloat(getComputedStyle(o).paddingBottom)||0,s=Math.max(i-t-n-e.BOTTOM_MARGIN_PX,0);Math.abs(s-(this.availableHeight()??-1))>1&&this.availableHeight.set(s)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-restrictions"]],inputs:{title:[1,"title"]},decls:4,vars:3,consts:[["data-test","page-restrictions",1,"page-restrictions"],["data-test","page-restriction-message","icon","ri-alert-line",3,"severity"],[1,"repository-list",3,"requireWriteAccess","filterByTypes","filterByPermission","showStateFilter"],[3,"innerHTML"],["target","_blank","rel","noopener noreferrer",3,"href"],["data-test","restriction-internal-link",3,"routerLink"]],template:function(e,t){1&e&&(p.j41(0,"div",0),p.Z7z(1,ne,5,6,"p-message",1,ee),p.nVh(3,se,1,4,"app-repository-picker-list",2),p.k0s()),2&e&&(p.xc7("height",t.availableHeight(),"px"),p.R7$(),p.Dyx(t.restrictions()),p.R7$(2),p.vxM(t.isRepositoryPickerShown()?3:-1))},dependencies:[D,J.QB,K.Wk,s.Kj],styles:[".page-restrictions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em;margin-top:1em}.page-restrictions[_ngcontent-%COMP%]:empty{margin-top:0}"]})}}return e})();const ce=["*"];function le(e,t){if(1&e&&(p.nrm(0,"app-page-info-tooltip",4),p.nI1(1,"transloco"),p.nI1(2,"transloco")),2&e){const e=p.XpG(2);p.Y8G("title",p.bMT(1,3,e.title()))("helpInfo",p.bMT(2,5,e.helpInfo()))("documentationLink",e.documentationLink())}}function pe(e,t){if(1&e&&(p.j41(0,"h1",1)(1,"span",3),p.EFF(2),p.nI1(3,"transloco"),p.k0s(),p.nVh(4,le,3,7,"app-page-info-tooltip",4),p.k0s()),2&e){const e=p.XpG();p.R7$(2),p.JRh(p.bMT(3,2,e.title())),p.R7$(2),p.vxM(e.helpInfo()?4:-1)}}function ae(e,t){if(1&e&&p.nrm(0,"app-page-restrictions",2),2&e){const e=p.XpG();p.Y8G("title",e.title())}}function he(e,t){1&e&&p.SdG(0)}let ue=(()=>{class e{constructor(){this.activatedRoute=(0,o.WQX)(n.nX),this.restrictionContextService=(0,f.service)(f.RestrictionContextService),this.subscriptions=new f.SubscriptionList,this.embedded=(0,o.vPA)(!1),this.title=(0,o.vPA)(void 0),this.helpInfo=(0,o.vPA)(void 0),this.documentationLink=(0,o.vPA)(void 0),this.isViewRestricted=(0,o.vPA)(!1)}ngOnInit(){this.subscribeToIsViewRestrictedChanges(),this.getPageData(),this.activatedRoute.snapshot.queryParams.hasOwnProperty("embedded")&&this.embedded.set(!0)}ngOnDestroy(){this.subscriptions.unsubscribeAll()}getPageData(){const e=this.activatedRoute.snapshot.data;this.title.set(e.title),this.helpInfo.set(e.helpInfo),this.documentationLink.set(e.documentationLink)}subscribeToIsViewRestrictedChanges(){this.subscriptions.add(this.restrictionContextService.onIsViewRestrictedChanged(e=>this.isViewRestricted.set(e)))}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-layout"]],ngContentSelectors:ce,decls:4,vars:2,consts:[[1,"page-view"],[1,"title-container"],[3,"title"],[1,"page-title-label"],[3,"title","helpInfo","documentationLink"]],template:function(e,t){1&e&&(p.NAR(),p.j41(0,"div",0),p.nVh(1,pe,5,4,"h1",1),p.nVh(2,ae,1,1,"app-page-restrictions",2)(3,he,1,0),p.k0s()),2&e&&(p.R7$(),p.vxM(t.embedded()?-1:1),p.R7$(),p.vxM(t.isViewRestricted()?2:3))},dependencies:[d,re,s.Kj],styles:[".page-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%}.page-view[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{position:var(--page-title-position);margin-bottom:var(--page-title-margin-bottom);display:flex;align-items:center;gap:.5rem}.page-view[_ngcontent-%COMP%] app-page-restrictions[_ngcontent-%COMP%]{display:block;margin-top:calc(-1 * var(--page-title-margin-bottom, 0px))}"]})}}return e})()},2162(e,t,i){i.d(t,{I:()=>n});var o=i(7154);class n{static get logger(){return o.Loggers.getLoggerInstance("Workbench")}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackJsonpworkbench=self.webpackJsonpworkbench||[]).push([[472],{36(e,t,o){o.d(t,{SparqlEditorPageComponent:()=>ve});var r,a=o(467),n=o(5802),s=o(3702),i=o(2480),c=o(7830),l=o(5216),d=o(5547),p=o(7705),u=o(2271),g=o(2578),m=o(3152),b=((r=b||{}).UPDATE="update",r.QUERY="query",r),h=function(e){return e.SELECT="SELECT",e.CONSTRUCT="CONSTRUCT",e.ASK="ASK",e.DESCRIBE="DESCRIBE",e.INSERT="INSERT",e.DELETE="DELETE",e.LOAD="LOAD",e.CLEAR="CLEAR",e.CREATE="CREATE",e.DROP="DROP",e.COPY="COPY",e.MOVE="MOVE",e.ADD="ADD",e}(h||{});const y="savedQueryName";var v=o(7098),f=function(e){return e.DOWNLOAD_AS="downloadAs",e.NOTIFICATION_MESSAGE="notificationMessage",e.QUERY="query",e.COUNT_QUERY="countQuery",e.COUNT_QUERY_RESPONSE="countQueryResponse",e.REQUEST_ABORTED="requestAborted",e.QUERY_EXECUTED="queryExecuted",e.SAVE_QUERY_OPENED="saveQueryOpened",e}(f||{});class w{constructor(e){this.type=f.DOWNLOAD_AS,this.contentType=e.value,this.pluginName=e.pluginName,this.query=e.query,this.infer=e.infer,this.sameAs=e.sameAs}}class _{constructor(e){this.type=f.NOTIFICATION_MESSAGE,this.message=e.message,this.code=e.code,this.messageType=e.messageType}}class S{constructor(e){this.type=f.COUNT_QUERY,this.query=e.query,this.queryMode=e.queryMode,this.queryType=e.queryType,this.pageSize=e.pageSize,this.request=e.request}setPageSize(e){this.request._data.pageSize=e}setPageNumber(e){this.request._data.pageNumber=e}setCount(e){this.request._data.count=e}}class C{constructor(e){this.type=f.COUNT_QUERY_RESPONSE,this.response=e.response??{}}hasResponse(){return null!=this.response.body}getResponseBody(){return this.response.body??null}isResponseNumber(){return!!this.hasResponse()&&"number"==typeof this.response.body}isResponseArray(){return Array.isArray(this.response.body)}getBindings(){return this.isResponseObject(this.response.body)?this.response.body.results.bindings:null}hasBindingResponse(){return!!this.isResponseObject(this.response.body)&&this.response.body.results.bindings[0]}setTotalElements(){if(this.isResponseObject(this.response.body)){const e=this.resolveTotalElements();this.response.body.totalElements=null==e?void 0:String(e)}}isResponseObject(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}resolveTotalElements(){let e;if(this.isResponseNumber()&&(e=this.getResponseBody()),this.isResponseArray()){const t=this.getResponseBody();t["http://www.ontotext.com/"]&&(e=t["http://www.ontotext.com/"]["http://www.ontotext.com/"]?.[0]?.value)}if(this.hasBindingResponse()){const t=this.getResponseBody();if(t){const o=t.results.bindings[0],r=t.head.vars,a=Object.keys(o).find(e=>r.includes(e)&&!Number.isNaN(o[e].value));a&&(e=o[a].value)}}return e}}class E{constructor(e){this.type=f.QUERY,this.query=e.query,this.queryMode=e.queryMode,this.queryType=e.queryType,this.pageSize=e.pageSize,this.request=e.request}setPageSize(e){this.request._data.pageSize=e}getPageSize(){return this.request._data.pageSize?Number.parseInt(this.request._data.pageSize):void 0}setPageNumber(e){this.request._data.pageNumber=e}getPageNumber(){return this.request._data.pageNumber?Number.parseInt(this.request._data.pageNumber):void 0}setOffset(e){this.request._data.offset=e}setLimit(e){this.request._data.limit=e}}class x{constructor(e){this.type=f.QUERY_EXECUTED,this.duration=e.duration,this.tabId=e.tabId}}class k{constructor(e){this.type=f.SAVE_QUERY_OPENED,this.tab=e.tab}getTab(){return this.tab}}class T{constructor(e){this.type=f.REQUEST_ABORTED,this.request=e.request,this.queryMode=e.queryMode}getQueryTrackAlias(){if(this.request?.header)return this.request.header["X-GraphDB-Track-Alias"]}getRepository(){if(this.request){const e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}return null}}var R=o(7154),q=o(7594);class M{static getFilenameAndExtension(e){const t=e.lastIndexOf(".");return{filename:e.substring(0,t),extension:e.substring(t+1)}}static downloadAsFile(e,t,o){const r=document.createElement("a"),a=t.includes(";charset=")?`data:${t}`:`data:${t};charset=utf-8`;r.setAttribute("href",`${a},${encodeURIComponent(o)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),r.remove()}}var O=function(e){return e.EXTENDED_TABLE="extended_table",e.RAW_RESPONSE="response",e.EXTENDED_RESPONSE="extended_response",e.GOOGLE_CHARTS="charts",e.PIVOT_TABLE="pivot-table-plugin",e.TABLE="table",e.GEO="geo",e}(O||{});const A={table:O.EXTENDED_TABLE,rawResponse:O.EXTENDED_RESPONSE,geo:O.GEO,googleChart:O.GOOGLE_CHARTS,pivotTable:O.PIVOT_TABLE};var P=function(e){return e.TRIGGER_AUTOCOMPLETION="trigger_autocompletion",e.DELETE_CURRENT_LINE="delete_current_line",e.COMMENT_SELECTED_LINE="comment_selected_line",e.COPY_LINE_DOWN="copy_line_down",e.COPY_LINE_UP="copy_line_up",e.AUTO_FORMAT_SELECTED_LINE="auto_format_selected_line",e.INDENT_CURRENT_LINE_MORE="indent_current_line_more",e.INDENT_CURRENT_LINE_LESS="indent_current_line_less",e.EXECUTE_QUERY_OR_UPDATE="execute_query_or_update",e.EXECUTE_EXPLAIN_PLAN_FOR_QUERY="execute_explain_plan_for_query",e.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY="execute_chat_gpt_explain_plan_for_query",e.CREATE_TAB="create_tab",e.CREATE_SAVE_QUERY="create_save_query",e.SWITCH_NEXT_TAB="switch_next_tab",e.SWITCH_PREVIOUS_TAB="switch_previous_tab",e.CLOSES_ALL_TABS="closes_all_tabs",e.FULL_SCREEN="full_screen",e.ESC="esc",e}(P||{});const L="graphdb-workbench-sparql-editor",N="ls.tabs-state",D=`yagui__${L}`;let I=(()=>{class e{isMigrationNeeded(){const e=this.getPersistedData(D);let t=!1;return e&&(t=!(!e.val.migration||"completed"!==e.val.migration.status&&"rejected"!==e.val.migration.status)),!(!localStorage.getItem(N)||t)}migrateYasguiPersistence(e){const t=Object.freeze(this.getPersistedData(N)??[]);let o=this.getPersistedData(D);o??=this.buildDefaultSparqlViewData(),t.map(e=>({id:e.id,name:e.name,yasqe:{value:e.query,sameAs:e.sameAs,infer:e.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}})).forEach((t,r)=>{t.id="_"+this.generateTabId(),t.name=t.name||this.generateMigratedTabName(r,e),this.addTabId(o,t.id),this.addTab(o,t)}),o.val.active=o.val.tabs[0],this.setMigrationStatus(o,"completed"),this.persistJSONValue(D,o)}rejectMigration(){const e=this.getPersistedData(D);e&&(this.setMigrationStatus(e,"rejected"),this.persistJSONValue(D,e))}revertMigration(){const e=this.getPersistedData(D);e&&(this.removePersistedTabIds(e),this.removePersistedTabs(e),this.persistJSONValue(D,e))}buildDefaultSparqlViewData(){return{val:{active:null,tabs:[],tabConfig:{}}}}setMigrationStatus(e,t,o=null){e.val.migration={date:(new Date).toISOString(),status:t,error:o}}addTabId(e,t){e.val.tabs.push(t)}addTab(e,t){e.val.tabConfig[t.id]=t}getPersistedData(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}removePersistedTabIds(e){e.val.tabs=e.val.tabs.filter(e=>!e.startsWith("_"))}removePersistedTabs(e){for(const t in e.val.tabConfig)t.startsWith("_")&&delete e.val.tabConfig[t]}persistJSONValue(e,t){localStorage.setItem(e,JSON.stringify(t))}generateMigratedTabName(e,t){return`${t} ${e}`}generateTabId(){return Math.random().toString(36).substring(7)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵprov=n.jDH({token:e,factory:e.ɵfac,providedIn:"root"})}}return e})();var Q=o(2162),H=o(9417),U=o(2100),F=o(7573),Y=o(1914),j=o(2842);function V(e,t){if(1&e){const e=d.RV6();d.j41(0,"div",2)(1,"label",8),d.EFF(2),d.nI1(3,"transloco"),d.j41(4,"span",4),d.nI1(5,"transloco"),d.nrm(6,"em",5),d.k0s()(),d.j41(7,"div",6)(8,"input",9),d.nI1(9,"transloco"),d.mxI("ngModelChange",function(t){n.eBV(e);const o=d.XpG();return d.DH7(o.link,t)||(o.link=t),n.Njj(t)}),d.k0s()()()}if(2&e){const e=d.XpG();d.R7$(2),d.SpI(" ",d.bMT(3,4,"components.dialog.download_settings.frame.link")," "),d.R7$(2),d.Y8G("pTooltip",d.bMT(5,6,"components.dialog.download_settings.frame.info")),d.R7$(4),d.R50("ngModel",e.link),d.Y8G("placeholder",d.bMT(9,8,"components.dialog.download_settings.frame.uri_placeholder"))}}function z(e,t){if(1&e){const e=d.RV6();d.j41(0,"div",2)(1,"label",10),d.EFF(2),d.nI1(3,"transloco"),d.j41(4,"span",4),d.nI1(5,"transloco"),d.nrm(6,"em",5),d.k0s()(),d.j41(7,"div",6)(8,"input",11),d.nI1(9,"transloco"),d.mxI("ngModelChange",function(t){n.eBV(e);const o=d.XpG();return d.DH7(o.link,t)||(o.link=t),n.Njj(t)}),d.k0s()()()}if(2&e){const e=d.XpG();d.R7$(2),d.SpI(" ",d.bMT(3,4,"components.dialog.download_settings.context.link")," "),d.R7$(2),d.Y8G("pTooltip",d.bMT(5,6,"components.dialog.download_settings.context.info")),d.R7$(4),d.R50("ngModel",e.link),d.Y8G("placeholder",d.bMT(9,8,"components.dialog.download_settings.context.uri_placeholder"))}}var B=function(e){return e.FRAMED="framed",e.EXPANDED="expanded",e.FLATTENED="flattened",e.COMPACTED="compacted",e}(B||{});let G=(()=>{class e{constructor(){this.dialogRef=(0,n.WQX)(U.Pw),this.dialogConfig=(0,n.WQX)(U.sb),this.applicationSettingsStorageService=(0,R.service)(R.ApplicationSettingsStorageService),this.JSONLDModes={[B.FRAMED]:"http://www.w3.org/ns/json-ld#framed",[B.EXPANDED]:"http://www.w3.org/ns/json-ld#expanded",[B.FLATTENED]:"http://www.w3.org/ns/json-ld#flattened",[B.COMPACTED]:"http://www.w3.org/ns/json-ld#compacted"},this.JSONLDFramedModes=[B.FRAMED],this.JSONLDContextModes=[B.COMPACTED,B.FLATTENED],this.defaultMode=B.EXPANDED,this.JSONLDModeOptions=Object.keys(this.JSONLDModes).map(e=>({label:this.JSONLDModes[e],value:e})),this.currentMode=this.defaultMode,this.isFramedMode=(0,n.vPA)(!1),this.isContextMode=(0,n.vPA)(!1),this.dialogConfig.data={exportAction:this.exportJsonLD.bind(this),resetAction:this.reset.bind(this)}}ngOnInit(){const e=this.applicationSettingsStorageService.getJsonLDExportSettings();e?.formName&&this.isJSONLDMode(e.formName)&&(this.setJSONLDMode(e.formName),this.link=e.link)}exportJsonLD(){this.setJSONLDSettingsToLocalStorage(this.currentMode,this.link),this.dialogRef.close({formName:this.currentMode,formLink:this.JSONLDModes[this.currentMode],link:this.link})}reset(){this.setJSONLDMode(this.defaultMode),this.link=void 0,this.setJSONLDSettingsToLocalStorage(this.currentMode,this.link)}clearLinkInput(e){this.setJSONLDMode(e.value),this.link=void 0,this.setJSONLDSettingsToLocalStorage(this.currentMode,this.link)}setJSONLDMode(e){this.currentMode=e,this.isFramedMode.set(this.JSONLDFramedModes.includes(e)),this.isContextMode.set(this.JSONLDContextModes.includes(e))}isJSONLDMode(e){return Object.values(B).includes(e)}setJSONLDSettingsToLocalStorage(e,t){e&&this.applicationSettingsStorageService.setJsonLDExportSettings({formName:e,formLink:this.JSONLDModes[e],link:t})}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-download-settings-dialog"]],decls:13,vars:10,consts:[[1,"dialog-content"],[1,"export-settings-form"],[1,"form-row"],["for","jsonldMode",1,"label-base-regular"],["tooltipEvent","both","tooltipPosition","right",1,"info-icon",3,"pTooltip"],[1,"icon","ri-information-2-line"],[1,"field-input"],["inputId","jsonldMode","name","jsonldMode","styleClass","input","appendTo","body",3,"ngModelChange","onChange","ngModel","options"],["for","jsonldFrame",1,"label-base-regular"],["pInputText","","id","jsonldFrame","name","jsonldFrame","type","text",3,"ngModelChange","ngModel","placeholder"],["for","jsonldContext",1,"label-base-regular"],["pInputText","","id","jsonldContext","name","jsonldContext","type","text",3,"ngModelChange","ngModel","placeholder"]],template:function(e,t){1&e&&(d.j41(0,"div",0)(1,"form",1)(2,"div",2)(3,"label",3),d.EFF(4),d.nI1(5,"transloco"),d.j41(6,"span",4),d.nI1(7,"transloco"),d.nrm(8,"em",5),d.k0s()(),d.j41(9,"div",6)(10,"p-select",7),d.mxI("ngModelChange",function(e){return d.DH7(t.currentMode,e)||(t.currentMode=e),e}),d.bIt("onChange",function(e){return t.clearLinkInput(e)}),d.k0s()()(),d.nVh(11,V,10,10,"div",2),d.nVh(12,z,10,10,"div",2),d.k0s()()),2&e&&(d.R7$(4),d.SpI(" ",d.bMT(5,6,"components.dialog.download_settings.form.label")," "),d.R7$(2),d.Y8G("pTooltip",d.bMT(7,8,"components.dialog.download_settings.form.info")),d.R7$(4),d.R50("ngModel",t.currentMode),d.Y8G("options",t.JSONLDModeOptions),d.R7$(),d.vxM(t.isFramedMode()?11:-1),d.R7$(),d.vxM(t.isContextMode()?12:-1))},dependencies:[H.YN,H.qT,H.me,H.BC,H.cb,H.vS,H.cV,F.l6,Y.Sm,j.m_,c.Kj],styles:[".dialog-content[_ngcontent-%COMP%], .dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;gap:1rem}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:250px 1fr;gap:1rem;align-items:baseline}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{color:var(--gw-primary-base);font-size:1.4em;cursor:pointer}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{transition:all .15s ease-out}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]:hover .icon[_ngcontent-%COMP%]{transform:scale(1.2)}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:250px}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] .field-input input{width:100%}@media(width<=990px){.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}.dialog-content[_ngcontent-%COMP%] .export-settings-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}}"]})}}return e})();var X=o(4843),J=o(6354);let $=(()=>{class e{constructor(){this.dialogService=(0,n.WQX)(U.o3)}open(e,t){return(0,X._)(this.openDialogWithComponent(e,t))}openDialogWithComponent(e,t){return this.createDialogRef(e,t).onClose.pipe((0,J.T)(e=>e))}createDialogRef(e,t){const o={data:t.data,showHeader:!!t.header,header:t.header,width:t.width,height:t.height,closable:t.closable??!1,modal:t.modal??!0,styleClass:`onto-dialog ${t.modalClass??""}`,draggable:!1};t.footer&&(o.templates={footer:t.footer});const r=this.dialogService.open(e,o);return this.assertDialogIsDefined(r),r}assertDialogIsDefined(e){if(null==e)throw new Error("Dialog failed to open")}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵprov=n.jDH({token:e,factory:e.ɵfac,providedIn:"root"})}}return e})();var W=o(1020);let Z=(()=>{class e{constructor(){this.dialogRef=(0,n.WQX)(U.Pw),this.dialogConfig=(0,n.WQX)(U.sb)}exportJsonLD(){this.dialogConfig.data?.exportAction&&this.dialogConfig.data?.exportAction()}reset(){this.dialogConfig.data?.resetAction&&this.dialogConfig.data?.resetAction()}cancel(){this.dialogRef.close()}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-download-settings-dialog-footer"]],decls:7,vars:10,consts:[[1,"restore-defaults",3,"onClick","label","link"],[1,"spacer"],["severity","secondary",3,"onClick","label"],["id","exportJSONLD",3,"onClick","label"]],template:function(e,t){1&e&&(d.j41(0,"p-button",0),d.nI1(1,"transloco"),d.bIt("onClick",function(){return t.reset()}),d.k0s(),d.nrm(2,"div",1),d.j41(3,"p-button",2),d.nI1(4,"transloco"),d.bIt("onClick",function(){return t.cancel()}),d.k0s(),d.j41(5,"p-button",3),d.nI1(6,"transloco"),d.bIt("onClick",function(){return t.exportJsonLD()}),d.k0s()),2&e&&(d.Y8G("label",d.bMT(1,4,"components.dialog.download_settings.actions.restore_defaults"))("link",!0),d.R7$(3),d.Y8G("label",d.bMT(4,6,"components.dialog.download_settings.actions.cancel")),d.R7$(2),d.Y8G("label",d.bMT(6,8,"components.dialog.download_settings.actions.export")))},dependencies:[W.$n,c.Kj],styles:["[_nghost-%COMP%]{width:100%;display:flex;gap:.5rem}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex-grow:1}"]})}}return e})();(0,m.u)();let K=(()=>{class e{preventHashNavigation(e){e.target.closest('a[href="#"]')&&e.preventDefault()}constructor(){var e=this;this.elementRef=(0,n.WQX)(d.aKT),this.translocoService=(0,n.WQX)(c.JO),this.yasguiPersistenceMigrationService=(0,n.WQX)(I),this.dialogProviderService=(0,n.WQX)($),this.sparqlService=(0,R.service)(R.SparqlService),this.toastrService=(0,R.service)(R.OntoToastrService),this.rdf4jRepositoryService=(0,R.service)(R.Rdf4jRepositoryService),this.repositoryContextService=(0,R.service)(R.RepositoryContextService),this.authenticationStorageService=(0,R.service)(R.AuthenticationStorageService),this.languageContextService=(0,R.service)(R.LanguageContextService),this.languageService=(0,R.service)(R.LanguageService),this.autocompleteService=(0,R.service)(R.AutocompleteService),this.monitoringService=(0,R.service)(R.MonitoringService),this.themeService=(0,R.service)(R.ThemeService),this.runtimeConfigurationContextService=(0,R.service)(R.RuntimeConfigurationContextService),this.logger=Q.I.logger,this.yasguiConfig=(0,p.hFB)(),this.afterInit=(0,p.hFB)(),this.cssClass=(0,p.hFB)(""),this.config=(0,n.vPA)(void 0),this.language=(0,n.vPA)(this.languageContextService.getSelectedLanguage()),this.queryChanged=(0,p.CGW)(),this.savedQueryConfig={savedQueries:[],saveSuccess:!1},this.subscriptionList=new R.SubscriptionList,this.initialQueryValue=void 0,this.outputHandlers=(0,u.EW)(()=>{const e=this.yasguiConfig();return{[f.QUERY]:this.queryHandler,[f.COUNT_QUERY]:this.countQueryRequestHandler,[f.COUNT_QUERY_RESPONSE]:this.countQueryResponseHandler,[f.DOWNLOAD_AS]:this.downloadAsHandler.bind(this),[f.NOTIFICATION_MESSAGE]:this.notificationMessageHandler.bind(this),...e?.outputHandlers}}),this.downloadAsPluginNameToEventHandler=new Map([[O.EXTENDED_RESPONSE,this.downloadCurrentResults.bind(this)],[O.EXTENDED_TABLE,this.downloadThroughServer.bind(this)]]),this.queryHandler=e=>{const t=e.getPageNumber(),o=e.getPageSize();o&&t&&(e.setOffset((t-1)*(o-1)),e.setLimit(o)),e.setPageNumber(),e.setPageSize()},this.countQueryRequestHandler=e=>{e.setPageSize(),e.setPageNumber(),e.setCount(1)},this.notificationMessageHandler=e=>{const{messageType:t,message:o}=e;if(t&&o)switch(t){case"success":this.toastrService.success(o);break;case"error":this.toastrService.error(o);break;case"warning":this.toastrService.warning(o);break;case"info":this.toastrService.info(o)}},this.setInitialQueryState=(0,a.A)(function*(){const t=yield e.getOntotextYasguiComponent().getQuery();e.initialQueryValue=JSON.stringify(t)}),this.addDirtyCheckHandlers=()=>{const e=setInterval(()=>{const t=this.getOntotextYasguiElements();t.length>0&&(clearInterval(e),t.forEach(e=>{e.addEventListener("paste",this.delegatedPasteHandler),e.addEventListener("keyup",this.delegatedKeyupHandler)}))},100)},this.delegatedPasteHandler=e=>{e.target.closest(".CodeMirror")&&this.codeMirrorPasteHandler()},this.delegatedKeyupHandler=e=>{const t=e.target;"TEXTAREA"===t.tagName&&t.closest(".CodeMirror")&&this.codeMirrorKeyupHandler()},this.codeMirrorKeyupHandler=()=>{this.getOntotextYasguiComponent().getQuery().then(e=>{this.emitQueryChanged(JSON.stringify(e))})},this.emitQueryChanged=e=>{this.queryChanged.emit({query:e,dirty:this.initialQueryValue!==e})},this.codeMirrorPasteHandler=()=>{let e;const t=this.getOntotextYasguiComponent();t.getQuery().then(t=>(e=t,e)).then(e=>this.sparqlService.addKnownPrefixes(e)).then(o=>(e=o,t.setQuery(e))).then(()=>{this.emitQueryChanged(JSON.stringify(e))}).catch(e=>{const t=e instanceof Error?e.message:String(e);this.toastrService.error(t,{title:this.translocoService.translate("sparql_editor.errors.add_known_prefixes_failed")})})},this.getDefaultConfig=()=>({componentId:"yasgui-component",headers:this.getHeaders.bind(this),showEditorTabs:!0,showToolbar:!0,pageSize:1e3,maxPersistentResponseSize:5e5,showResultTabs:!0}),(0,n.QZP)(()=>{const e=this.yasguiConfig();e&&this.init(e)})}ngOnInit(){this.subscriptionList.addAll([this.runtimeConfigurationContextService.onThemeModeChanged(this.onThemeChanged.bind(this)),this.languageContextService.onSelectedLanguageChanged(this.onLanguageChange.bind(this),void 0,!0)])}ngOnDestroy(){this.autocompleteAbortController?.abort(),this.removeDirtyCheckHandlers(),this.subscriptionList.unsubscribeAll()}loadSavedQueries(){var e=this;return(0,a.A)(function*(){try{const t=yield e.sparqlService.getSavedQueries();e.savedQueryConfig={...e.savedQueryConfig,savedQueries:t.getItems()}}catch(t){e.toastrService.error(t instanceof Error?t.message:String(t),{title:e.translocoService.translate("sparql_editor.errors.saved_queries_load_failed")})}})()}createSavedQuery(e){const t=this.queryPayloadFromEvent(e);this.sparqlService.saveQuery(t).then(()=>this.queryCreatedHandler(t)).catch(e=>this.querySaveErrorHandler(e))}updateSavedQuery(e){const t=e,o=this.queryPayloadFromEvent(t);this.sparqlService.updateQuery(t.detail.originalQueryName,o).then(()=>this.queryUpdatedHandler(o)).catch(e=>this.querySaveErrorHandler(e))}deleteSavedQuery(e){const t=this.queryPayloadFromEvent(e);this.sparqlService.deleteQuery(t.name).then(()=>{this.toastrService.success(this.translocoService.translate("sparql_editor.success.query_was_deleted",{savedQueryName:t.name}))}).catch(e=>{this.toastrService.error(e instanceof Error?e.message:String(e),{title:this.translocoService.translate("sparql_editor.errors.query_delete_failed")})})}shareQuery(e){const t=this.queryPayloadFromEvent(e);this.savedQueryConfig={...this.savedQueryConfig,shareQueryLink:this.createShareQueryLink(t)}}shareSavedQuery(e){this.savedQueryConfig={...this.savedQueryConfig,shareQueryLink:this.createShareSavedQueryLink(e.detail.queryName,e.detail.owner)}}queryShareLinkCopied(){this.toastrService.success(this.translocoService.translate("sparql_editor.success.url_was_copied"))}saveQueryOpened(e){const t=this.toYasguiOutputModel(e);v.Y.highlightTabName(t.getTab())}output(e){const t=this.toYasguiOutputModel(e),o=this.outputHandlers();this.callOutputEventHandler(o,t.type,t)}callOutputEventHandler(e,t,o){const r=e[t];r&&r(o)}countQueryResponseHandler(e){e.setTotalElements()}downloadAsHandler(e){if(!e.pluginName)return;const t=this.downloadAsPluginNameToEventHandler.get(e.pluginName);t&&t(e)}onThemeChanged(){const e=this.getOntotextYasguiComponent(),t=this.themeService.getCodeEditorThemeName()||"default";e.setTheme(t).catch(e=>{this.logger.error(`Failed to apply the theme "${t}" to Sparql editor component.`,e)})}onLanguageChange(e){this.language.set(e??this.languageContextService.getDefaultLanguage())}removeDirtyCheckHandlers(){this.getOntotextYasguiElements().forEach(e=>{e.removeEventListener("paste",this.delegatedPasteHandler),e.removeEventListener("keyup",this.delegatedKeyupHandler)})}init(e){var t=this;return(0,a.A)(function*(){if(!e)return;const o=t.repositoryContextService.getSelectedRepository(),r=!!o?.isOntop(),a=yield t.getI18n(),n={isVirtualRepository:r,infer:r||e.infer,immutableInfer:r,sameAs:r||e.sameAs,immutableSameAs:r,yasqeAutocomplete:{LocalNamesAutocompleter:e=>(t.autocompleteAbortController?.abort(),t.autocompleteAbortController=new AbortController,t.autocompleteLocalNames(e,t.autocompleteAbortController.signal))},language:t.languageContextService.getSelectedLanguage(),i18n:a,getRepositoryStatementsCount:()=>t.getRepositoryStatementsCount(o.id),onQueryAborted:e=>t.onQueryAborted(e)};if(void 0===n.showQueryButton||n.showQueryButton){const e=n.keyboardShortcutConfiguration||{};e[P.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!0,e[P.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!0,n.keyboardShortcutConfiguration=e}else{const e=n.keyboardShortcutConfiguration||{};e[P.EXECUTE_QUERY_OR_UPDATE]=!1,e[P.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!1,e[P.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!1,e[P.CREATE_TAB]=!1,e[P.CREATE_SAVE_QUERY]=!1,e[P.SWITCH_NEXT_TAB]=!1,e[P.SWITCH_PREVIOUS_TAB]=!1,e[P.CLOSES_ALL_TABS]=!1,n.keyboardShortcutConfiguration=e}t.yasguiPersistenceMigrationService.isMigrationNeeded()&&t.yasguiPersistenceMigrationService.migrateYasguiPersistence(t.translocoService.translate("sparql_editor.yasgui.tabs.unnamed_tab_title")),n.themeName||(n.themeName=t.themeService.getCodeEditorThemeName());const s=R.ObjectUtil.mergeWithDefaults(e,t.getDefaultConfig()),i=R.ObjectUtil.mergeWithDefaults(n,s);t.config.set(i),t.addDirtyCheckHandlers(),t.setInitialQueryState().then(()=>{t.afterInit()?.()})})()}onQueryAborted(e){var t=this;return(0,a.A)(function*(){if(e){const o=e,r=o.url.substring(o.url.lastIndexOf("/")+1),a=o.header["X-GraphDB-Track-Alias"];yield t.monitoringService.deleteQuery(a,r)}})()}autocompleteLocalNames(e,t){var o=this;return(0,a.A)(function*(){return(e=>{const t={suggestions:[]};return t.suggestions=e?.suggestions.getItems().map(e=>({type:e.getType(),value:e.getValue(),description:e.getDescription()}))??[],t})(yield o.autocompleteService.search(e,t))})()}getRepositoryStatementsCount(e){var t=this;return(0,a.A)(function*(){try{return yield t.rdf4jRepositoryService.getRepositorySize(e)}catch(o){const r=o instanceof Error?o.message:String(o);throw t.toastrService.error(t.translocoService.translate("sparql_editor.errors.get_repo_size_error",{repo:e,error:r}),{title:t.translocoService.translate("common.errors.server_error")}),o}})()}getI18n(){var e=this;return(0,a.A)(function*(){const t=e.languageService.getSupportedLanguages(),o=yield Promise.allSettled(t.map(t=>e.languageService.getLanguage(t).then(e=>({lang:t,bundle:e})))),r={};for(const e of o)"fulfilled"===e.status&&(r[e.value.lang]=e.value.bundle);return r})()}getFileTimePrefix(){const e=this.translocoService.getActiveLang(),t=new Date;return`${t.toLocaleDateString(e)}_${t.toLocaleTimeString(e)}`}getOntotextYasguiElements(){return this.elementRef.nativeElement.querySelectorAll("ontotext-yasgui")}getOntotextYasguiComponent(){return new q.U(this.getOntotextYasguiElements()[0])}downloadCurrentResults(e){"application/sparql-results+json"===e.contentType?this.getOntotextYasguiComponent().getEmbeddedResultAsJson().then(t=>{const o=JSON.stringify(t,null,"\t");M.downloadAsFile(`${this.getFileTimePrefix()}_queryResults.json`,e.contentType,o)}):"text/csv"===e.contentType&&this.getOntotextYasguiComponent().getEmbeddedResultAsCSV().then(t=>{M.downloadAsFile(`${this.getFileTimePrefix()}_queryResults.csv`,e.contentType,t)})}downloadThroughServer(e){const t=e.query,o=e.infer,r=e.sameAs,a=e.contentType,n=this.authenticationStorageService.getAuthToken().getValue();"application/ld+json"===e.contentType||"application/x-ld+ndjson"===e.contentType?this.dialogProviderService.open(G,{header:(0,c.Tl)("components.dialog.download_settings.title."+("application/ld+json"===e.contentType?"json-ld":"ndjson-ld")),closable:!0,footer:Z,modalClass:"modal-content"}).then(e=>{e&&this.downloadAs(t,o,r,n,a+";profile="+e.formLink,e.link?`<${e.link}>; rel="http://www.w3.org/ns/json-ld#${"framed"===e.formName?"frame":"context"}"`:"")}):this.downloadAs(t,o,r,n,a,"")}downloadAs(e,t,o,r,a,n){const s={query:e,infer:t,sameAs:o,authToken:r},i=this.repositoryContextService.getSelectedRepository()?.id;this.rdf4jRepositoryService.downloadResultsAsFile(i,s,a,n).then(({data:e,filename:t})=>{(0,g.saveAs)(e,t)}).catch(e=>{const t=e.data;t instanceof Blob?t.text().then(t=>{this.toastrService.error(431===e.status?e.statusText:t,{title:this.translocoService.translate("common.errors.error")})}):this.toastrService.error(e.message??this.translocoService.translate("common.errors.error"),{title:this.translocoService.translate("common.errors.error")})})}querySavedHandler(e){this.toastrService.success(e),this.savedQueryConfig={...this.savedQueryConfig,saveSuccess:!0}}queryCreatedHandler(e){return this.querySavedHandler(this.translocoService.translate("sparql_editor.success.query_was_saved",{name:e.name}))}queryUpdatedHandler(e){return this.querySavedHandler(this.translocoService.translate("sparql_editor.success.query_was_updated",{name:e.name}))}querySaveErrorHandler(e){const t=this.translocoService.translate("sparql_editor.errors.query_save_failed");this.toastrService.error(String(e instanceof R.HttpErrorResponse?e.data:e),{title:t}),this.savedQueryConfig={...this.savedQueryConfig,saveSuccess:!1,errorMessage:[t]}}queryPayloadFromEvent(e){return{name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic}}createShareSavedQueryLink(e,t){const o=new URL(R.WindowService.getLocationHref());return o.searchParams.set(y,e),t&&o.searchParams.set("owner",t),o.toString()}createShareQueryLink(e){const t=new URL(R.WindowService.getLocationHref());return t.searchParams.set("name",e.name),t.searchParams.set("query",e.body),t.searchParams.set("infer",String(e.inference??!0)),t.searchParams.set("sameAs",String(e.sameAs??!0)),t.toString()}toYasguiOutputModel(e){switch(e.detail.TYPE){case f.DOWNLOAD_AS:return new w(e.detail.payload);case f.NOTIFICATION_MESSAGE:return new _(e.detail.payload);case f.COUNT_QUERY:return new S(e.detail.payload);case f.COUNT_QUERY_RESPONSE:return new C(e.detail.payload);case f.QUERY:return new E(e.detail.payload);case f.QUERY_EXECUTED:return new x(e.detail.payload);case f.SAVE_QUERY_OPENED:return new k(e.detail.payload);case f.REQUEST_ABORTED:return new T(e.detail.payload);default:throw new Error(`Unhandled yasgui event type: ${e.detail.TYPE}`)}}getHeaders(e){const t=e.getTab();if(!t)return;const o=t.getYasqe(),r={"Content-Type":"application/x-www-form-urlencoded","X-GraphDB-Local-Consistency":"updating","X-GraphDB-Catch":`${o.getPageSize()}; throw`,"X-GraphDB-Track-Alias":`yasgui-component-${performance.now()}-${Date.now()}`,"X-GraphDB-Repository-Location":this.repositoryContextService.getSelectedRepository()?.location||"","X-Requested-With":"XMLHttpRequest"},a=this.authenticationStorageService.getAuthToken().getValue();a&&(r.Authorization=a);const n=o.getQueryType();return r.Accept=b.UPDATE===o.getQueryMode()?"text/plain,*/*;q=0.9":h.CONSTRUCT===n||h.DESCRIBE===n?"application/x-graphdb-table-results+json, application/rdf+json;q=0.9, */*;q=0.8":"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8",r.Accept=R.RdfVersionUtil.withVersion(r.Accept),r}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-yasgui-component-facade"]],hostVars:2,hostBindings:function(e,t){1&e&&d.bIt("click",function(e){return t.preventHashNavigation(e)}),2&e&&d.HbH(t.cssClass())},inputs:{yasguiConfig:[1,"yasguiConfig"],afterInit:[1,"afterInit"],cssClass:[1,"cssClass"]},outputs:{queryChanged:"queryChanged"},decls:1,vars:5,consts:[[3,"loadSavedQueries","createSavedQuery","updateSavedQuery","deleteSavedQuery","shareQuery","shareSavedQuery","queryShareLinkCopied","saveQueryOpened","output","config","language","savedQueryConfig"]],template:function(e,t){1&e&&(d.rj2(0,"ontotext-yasgui",0),d.VwU("loadSavedQueries",function(){return t.loadSavedQueries()})("createSavedQuery",function(e){return t.createSavedQuery(e)})("updateSavedQuery",function(e){return t.updateSavedQuery(e)})("deleteSavedQuery",function(e){return t.deleteSavedQuery(e)})("shareQuery",function(e){return t.shareQuery(e)})("shareSavedQuery",function(e){return t.shareSavedQuery(e)})("queryShareLinkCopied",function(){return t.queryShareLinkCopied()})("saveQueryOpened",function(e){return t.saveQueryOpened(e)})("output",function(e){return t.output(e)}),d.eux()),2&e&&(d.HbH(t.cssClass()),d.Avn("config",t.config())("language",t.language())("savedQueryConfig",t.savedQueryConfig))},styles:[".cm-s-moxer.CodeMirror{background-color:#090a0f;color:#8e95b4;line-height:1.8}.cm-s-moxer .CodeMirror-gutters{background:#090a0f;color:#35394b;border:none}.cm-s-moxer .CodeMirror-guttermarker,.cm-s-moxer .CodeMirror-guttermarker-subtle,.cm-s-moxer .CodeMirror-linenumber{color:#35394b}.cm-s-moxer .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-moxer div.CodeMirror-selected{background:#80cbc433}.cm-s-moxer.CodeMirror-focused div.CodeMirror-selected{background:#212431}.cm-s-moxer .CodeMirror-line::selection,.cm-s-moxer .CodeMirror-line>span::selection,.cm-s-moxer .CodeMirror-line>span>span::selection{background:#212431}.cm-s-moxer .CodeMirror-line::-moz-selection,.cm-s-moxer .CodeMirror-line>span::-moz-selection,.cm-s-moxer .CodeMirror-line>span>span::-moz-selection{background:#212431}.cm-s-moxer .CodeMirror-activeline-background,.cm-s-moxer .CodeMirror-activeline-gutter .CodeMirror-linenumber{background:#21243180}.cm-s-moxer .cm-keyword,.cm-s-moxer .cm-operator{color:#d46c6c}.cm-s-moxer .cm-variable-2{color:#81c5da}.cm-s-moxer .cm-variable-3,.cm-s-moxer .cm-type{color:#f07178}.cm-s-moxer .cm-builtin{color:#ffcb6b}.cm-s-moxer .cm-atom{color:#a99be2}.cm-s-moxer .cm-number{color:#7ca4c0}.cm-s-moxer .cm-def{color:#f5dfa5}.cm-s-moxer .CodeMirror-line .cm-def~.cm-def{color:#81c5da}.cm-s-moxer .cm-string{color:#b2e4ae}.cm-s-moxer .cm-string-2{color:#f07178}.cm-s-moxer .cm-comment{color:#3f445a}.cm-s-moxer .cm-variable{color:#8e95b4}.cm-s-moxer .cm-tag{color:#ff5370}.cm-s-moxer .cm-meta{color:#ffcb6b}.cm-s-moxer .cm-attribute{color:#c792ea}.cm-s-moxer .cm-property{color:#81c5da}.cm-s-moxer .cm-qualifier,.cm-s-moxer .cm-variable-3,.cm-s-moxer .cm-type{color:#decb6b}.cm-s-moxer .cm-error{color:#fff;background-color:#ff5370}.cm-s-moxer .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}\n","app-yasgui-component-facade{font-size:1rem}app-yasgui-component-facade .hidden{display:none}app-yasgui-component-facade .run_query_confirmation{margin-bottom:20px}app-yasgui-component-facade .CodeMirror pre.CodeMirror-line,app-yasgui-component-facade .CodeMirror pre.CodeMirror-line-like{font-variant-ligatures:none;-webkit-font-variant-ligatures:none}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default){border-color:var(--gw-tabs-tab-active-border-color);background-color:#1c1c1c}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default) .CodeMirror-linenumber{color:var(--gw-neutral-300);background-color:#090a0f}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default) .cm-matchhighlight{background:none;outline:1px solid var(--gw-tertiary-600);border-radius:2px}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default) .yasqe_buttons .custom-button{background-color:#1c1c1c!important}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default) .notification{color:var(--gw-button-secondary-color)!important;background-color:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important}app-yasgui-component-facade .yasgui-host-element .yasgui .CodeMirror[class*=cm-s-]:not(.cm-s-default) .cm-comment{color:var(--gw-neutral-400)}app-yasgui-component-facade .yasgui .tabMenu .acceptWrapper .selector .selectorLabel{font-size:1rem}app-yasgui-component-facade .yasgui-toolbar{font-size:1rem}app-yasgui-component-facade .yasgui-toolbar .yasgui-btn{color:var(--gw-button-secondary-color)!important;background-color:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important;font-size:var(--gw-button-sm-label-typography-font-size);padding-left:8px;padding-right:8px}app-yasgui-component-facade .yasgui-toolbar .yasgui-btn:hover{color:var(--gw-button-secondary-hover-color)!important;background-color:var(--gw-button-secondary-hover-background)!important;border-color:var(--gw-button-secondary-hover-border-color)!important}app-yasgui-component-facade .yasgui-toolbar .yasgui-btn.btn-selected{color:var(--gw-button-primary-color)!important;background-color:var(--gw-button-primary-background)!important;border-color:var(--gw-button-primary-border-color)!important}app-yasgui-component-facade .yasgui-toolbar .yasgui-btn.btn-selected:hover{color:var(--gw-button-primary-hover-color)!important;background-color:var(--gw-button-primary-hover-background)!important;border-color:var(--gw-button-primary-hover-border-color)!important}app-yasgui-component-facade .yasgui-toolbar .btn-orientation{font-size:1.75rem;margin-left:1rem;color:var(--gw-button-secondary-color)!important;background-color:transparent!important}app-yasgui-component-facade .yasgui .tab .closeTab:hover,app-yasgui-component-facade .yasgui .addTab:hover{color:var(--gw-button-primary-link-hover-color)!important}app-yasgui-component-facade .yasgui .tab .closeTab .ri-close-line,app-yasgui-component-facade .yasgui .addTab .ri-add-circle-line{font-size:1.225em;font-weight:100}app-yasgui-component-facade .yasgui .tabsList .tab{padding:.46em!important;color:var(--gw-tabs-tab-color)!important;background-color:var(--gw-tabs-tab-background)!important;border-color:var(--gw-tabs-tab-border-color) var(--gw-tabs-tab-border-color) transparent!important;font-weight:var(--gw-button-label-font-weight)}app-yasgui-component-facade .yasgui .tabsList .tab.active{color:var(--gw-tabs-tab-active-color)!important;background-color:var(--gw-tabs-tab-active-background)!important;border-color:var(--gw-tabs-tab-active-border-color) var(--gw-tabs-tab-active-border-color) transparent!important}app-yasgui-component-facade .yasgui .tabsList .tab.active:hover{color:var(--gw-tabs-tab-active-color)!important;background-color:var(--gw-tabs-tab-active-background)!important;border-color:var(--gw-tabs-tab-active-border-color) var(--gw-tabs-tab-active-border-color) transparent!important}app-yasgui-component-facade .yasgui .tabsList .tab:hover{color:var(--gw-tabs-tab-hover-color)!important;background-color:var(--gw-tabs-tab-hover-background)!important;border-color:var(--gw-tabs-tab-hover-border-color) var(--gw-tabs-tab-hover-border-color) transparent!important}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .editable-text-field{color:var(--gw-form-field-color)!important;background-color:var(--gw-form-field-background)!important;border-color:var(--gw-form-field-border-color)!important}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .save-btn{color:var(--gw-button-primary-color)!important;background-color:var(--gw-button-primary-background)!important}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .save-btn:hover{color:var(--gw-button-primary-hover-color)!important;background-color:var(--gw-button-primary-hover-background)!important}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .cancel-btn{color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);border-color:var(--gw-button-secondary-border-color)}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .cancel-btn:hover{color:var(--gw-button-secondary-hover-color);background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-border-color)}app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .save-btn span,app-yasgui-component-facade .yasgui .tabsList .tab .editable-text-field-wrapper .cancel-btn span{font-weight:900}app-yasgui-component-facade .yasgui .tabsList .tab .closeTab{color:inherit!important}app-yasgui-component-facade .yasgui .tabsList .create-tab-tab{color:var(--gw-tabs-tab-active-color)!important;background-color:var(--gw-tabs-tab-active-background)!important;border-color:var(--gw-tabs-tab-active-border-color) var(--gw-tabs-tab-active-border-color) transparent!important}app-yasgui-component-facade .yasgui .tabsList .create-tab-tab .addTab{font-size:1rem;color:var(--gw-button-secondary-color)!important;background-color:var(--gw-tabs-tab-background);border-color:var(--gw-tabs-tab-border-color) var(--gw-tabs-tab-border-color) transparent}app-yasgui-component-facade ontotext-yasgui .dialog:not(.confirmation-dialog) .dialog-body{font-size:1rem!important}app-yasgui-component-facade .dialog .dialog-header{font-size:1rem}app-yasgui-component-facade .keyboard-shortcuts-dialog-wrapper{font-size:1rem}app-yasgui-component-facade .keyboard-shortcuts-dialog-wrapper .keyboard-shortcut-section-title,app-yasgui-component-facade .keyboard-shortcuts-dialog-wrapper .key{font-size:1rem}yasgui-tooltip{font-family:var(--main-font)}.yasgui-floating-tooltip,.yasgui-floating-tooltip-arrow,.ontotext-yasgui-tooltip .tooltip-box{background-color:var(--gw-tooltip-background);color:var(--gw-tooltip-color)}.ontotext-yasgui-tooltip .tooltip-arrow{color:var(--gw-tooltip-background)}.ontotext-yasgui-tooltip[data-placement^=top] .tooltip-arrow:before{border-top-color:var(--gw-tooltip-background)}.ontotext-yasgui-tooltip[data-placement^=left] .tooltip-arrow:before{border-left-color:var(--gw-tooltip-background)}.ontotext-yasgui-tooltip[data-placement^=right] .tooltip-arrow:before{border-right-color:var(--gw-tooltip-background)}.ontotext-yasgui-tooltip[data-placement^=bottom] .tooltip-arrow:before{border-bottom-color:var(--gw-tooltip-background)}app-yasgui-component-facade .CodeMirror-hints{font-size:1rem}.CodeMirror-hints,.CodeMirror-hints .CodeMirror-hint{font-family:inherit;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background)}.CodeMirror-hints b,.CodeMirror-hints .CodeMirror-hint b{color:var(--gw-autocomplete-dropdown-match-color);font-weight:bolder}.CodeMirror-hints{border:1px solid var(--gw-autocomplete-border-color);box-shadow:var(--gw-autocomplete-shadow-offset-x) var(--gw-autocomplete-shadow-offset-y) var(--gw-autocomplete-shadow-blur) var(--gw-autocomplete-shadow-spread) var(--gw-autocomplete-shadow-color)}.CodeMirror-hints .CodeMirror-hint-active{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.CodeMirror-hints .CodeMirror-hint:not(.CodeMirror-hint-active):hover{color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}.yasqe-autocomplete-hint{color:var(--gw-autocomplete-color)}.yasqe .resizeChip{background-color:var(--gw-button-secondary-background)!important;color:var(--gw-button-secondary-color)!important}app-yasgui-component-facade .yasqe .CodeMirror{font-family:var(--mono-font)!important}app-yasgui-component-facade .yasqe_queryButton,app-yasgui-component-facade .yasqe_querySplitWrapper .yasqe_querySplitToggle{color:var(--gw-button-primary-color)!important;background-color:var(--gw-button-primary-background)!important}app-yasgui-component-facade .yasqe_queryButton:hover,app-yasgui-component-facade .yasqe_querySplitWrapper .yasqe_querySplitToggle:hover{color:var(--gw-button-primary-hover-color)!important;background-color:var(--gw-button-primary-hover-background)!important}app-yasgui-component-facade .yasqe .yasqe_buttons{font-size:1rem;right:21px;background-color:var(--gw-editor-content-background)}app-yasgui-component-facade .yasqe .yasqe_buttons .yasqe_expandResultsButton.custom-button.disabled{opacity:var(--gw-button-disabled-opacity)}app-yasgui-component-facade .yasqe .yasqe_buttons .custom-button{color:var(--gw-primary-base)!important;background-color:var(--gw-editor-content-background)!important}app-yasgui-component-facade .yasqe .yasqe_buttons .custom-button:disabled:hover,app-yasgui-component-facade .yasqe .yasqe_buttons .custom-button:disabled:focus{color:#818a91!important}app-yasgui-component-facade .yasqe .yasqe_buttons .yasqe_queryButton{font-family:var(--main-font);font-weight:var(--gw-button-label-font-weight);height:38px!important}app-yasgui-component-facade .ontotext-run-dropdown-menu{background-color:var(--gw-tieredmenu-background)!important;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);border-radius:0}app-yasgui-component-facade .ontotext-run-dropdown-menu .ontotext-run-dropdown-menu-item{color:var(--gw-tieredmenu-color)!important}app-yasgui-component-facade .ontotext-run-dropdown-menu .ontotext-run-dropdown-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color)!important;background-color:var(--gw-tieredmenu-item-focus-background)!important}app-yasgui-component-facade .saved-queries-container{color:var(--gw-dialog-color)!important;background-color:var(--gw-dialog-background)!important;border-color: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)}app-yasgui-component-facade .saved-queries-container .arrow:before{border-left-color:var(--gw-dialog-border-color)}app-yasgui-component-facade .saved-queries-container .arrow:after{border-left-color:var(--gw-dialog-background)}app-yasgui-component-facade .saved-queries-container .saved-queries-popup{overflow-y:auto}app-yasgui-component-facade .saved-queries-container .saved-queries-popup .saved-query{padding:0}app-yasgui-component-facade .saved-queries-container .saved-queries-popup .saved-query a{color:var(--gw-secondary-base);font-size:1rem;font-weight:bolder}app-yasgui-component-facade .saved-queries-container .saved-queries-popup .saved-query-actions .saved-query-action{color:var(--gw-button-primary-link-color)!important;background-color:var(--gw-dialog-background)!important;font-size:1rem}app-yasgui-component-facade .tabPanel .yasqe .yasqe-footer-buttons{padding-top:15px}app-yasgui-component-facade .tabPanel .yasqe .yasqe-footer-buttons .abort-button{font-family:var(--main-font);font-weight:var(--gw-button-label-font-weight);height:38px;background-color:var(--gw-primary-base)!important}app-yasgui-component-facade .tabPanel .yasqe .yasqe-footer-buttons .abort-button:hover{background-color:var(--gw-primary-dark)!important}app-yasgui-component-facade .yasr .chart-download-as-button,app-yasgui-component-facade .yasr .pivot-table-download-as-button,app-yasgui-component-facade .yasr .ontotext-dropdown .ontotext-dropdown-button,app-yasgui-component-facade .yasr .yasr_downloadIcon{font-size:1rem}app-yasgui-component-facade .yasr-toolbar{align-items:stretch!important;padding-left:10px;font-size:1rem;line-height:1.25}app-yasgui-component-facade .yasr-toolbar .yasr-toolbar-element{height:38px}app-yasgui-component-facade .yasr-toolbar .chart-download-as-button,app-yasgui-component-facade .yasr-toolbar .pivot-table-download-as-button,app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-button{color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);border:1px solid var(--gw-button-secondary-border-color)}app-yasgui-component-facade .yasr-toolbar .chart-download-as-button:hover,app-yasgui-component-facade .yasr-toolbar .pivot-table-download-as-button:hover,app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-button:hover{color:var(--gw-button-secondary-hover-color);background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-border-color)}app-yasgui-component-facade .yasr-toolbar .chart-download-as-button-label,app-yasgui-component-facade .yasr-toolbar .pivot-table-download-as-button-label{font-family:var(--main-font)}app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-button{height:40px}app-yasgui-component-facade .yasr-toolbar .ontotext-download-as .ontotext-dropdown-button{height:38px}app-yasgui-component-facade .yasr-toolbar .ontotext-download-as .ontotext-dropdown-button .button-name{font-family:var(--main-font);font-weight:var(--gw-button-label-font-weight)}app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-menu .ontotext-dropdown-menu-item{padding:.5em 1.2em;font-size:1rem}app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-menu .ontotext-dropdown-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color)!important;background-color:var(--gw-tieredmenu-item-focus-background)!important}app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-menu .ontotext-dropdown-menu-item.open{border:1px solid var(--gw-tieredmenu-border-color)!important;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)}app-yasgui-component-facade .yasr-toolbar .ontotext-dropdown-menu .ontotext-dropdown-menu-item.open .ontotext-dropdown-menu-item{color:var(--gw-tieredmenu-item-color)!important;background-color:var(--gw-tieredmenu-background)!important}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header{background-color:var(--gw-info-lighter)!important}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup{background-color:var(--gw-panel-background)!important;overflow:unset}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup .yasr_btn{padding:.52em;margin-left:0;margin-right:.2rem;font-size:1rem;font-weight:var(--gw-button-label-font-weight);color:var(--gw-tabs-tab-color)!important;background-color:var(--gw-tabs-tab-background)!important;fill:var(--gw-tabs-tab-color)!important;border:1px solid;border-color:var(--gw-tabs-tab-border-color)!important;border-bottom:1px solid transparent!important}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup .yasr_btn.selected{color:var(--gw-tabs-tab-active-color)!important;background-color:var(--gw-tabs-tab-active-background)!important;border-color:var(--gw-tabs-tab-active-border-color) var(--gw-tabs-tab-active-border-color) transparent!important;border-bottom:none}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup .yasr_btn.selected:not(.disabled):hover{color:var(--gw-tabs-tab-hover-color)!important;background-color:var(--gw-tabs-tab-hover-background)!important;fill:var(--gw-tabs-tab-hover-color)!important;border-color:var(--gw-tabs-tab-hover-border-color) var(--gw-tabs-tab-hover-border-color) transparent!important;border-bottom-width:1px!important}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup .yasr_btn .yasr-fullscreen-button{background-color:var(--gw-button-tertiary-background);color:var(--gw-button-tertiary-color);padding-left:.73em;padding-right:.73em}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_btnGroup .yasr_btn .yasr-fullscreen-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color)}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_response_chip{background-color:unset!important;color:var(--gw-secondary-base)!important;font-size:1rem}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_response_chip .response-info-message{padding-left:10px}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_plugin_control label{color:var(--gw-secondary-base)!important;margin-bottom:0}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .yasr_plugin_control label .label{margin-right:5px}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .tableControls .tableFilter{background-color:var(--gw-form-field-background);color:var(--gw-form-field-color)}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr_header .chart-config-control #openChartConfigBtn{color:var(--gw-button-secondary-color)!important;background:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important}app-yasgui-component-facade .ontotext-yasgui .yasr .ontotext-pagination .page-selector{color:var(--gw-paginator-nav-button-color);background-color:var(--gw-paginator-nav-button-background)}app-yasgui-component-facade .ontotext-yasgui .yasr .ontotext-pagination .page-button.selected-page{color:var(--gw-paginator-nav-button-selected-color);background-color:var(--gw-paginator-nav-button-selected-background)}app-yasgui-component-facade .ontotext-yasgui .yasr .ontotext-pagination .page-button.selected-page:hover,app-yasgui-component-facade .ontotext-yasgui .yasr .ontotext-pagination .page-selector:hover{color:var(--gw-paginator-nav-button-hover-color);background-color:var(--gw-paginator-nav-button-hover-background)}app-yasgui-component-facade .ontotext-yasgui .yasr #explainPlanQuery{font-family:var(--mono-font);background-color:var(--gw-panel-background)}app-yasgui-component-facade .ontotext-yasgui .yasr .explain-plan-container{background-color:var(--gw-panel-background);border:1px solid var(--gw-dialog-border-color)}app-yasgui-component-facade .ontotext-yasgui .yasr .explain-plan-container .explainPlanQuery.cm-s-moxer .cm-comment{color:var(--gw-neutral-300)}app-yasgui-component-facade .ontotext-yasgui .yasr .yasr-header-replacement{color:inherit;font-size:1.25rem}app-yasgui-component-facade .ontotext-yasgui .yasr .explain-plan-copy-btn{font-weight:var(--gw-button-label-font-weight);color:var(--gw-button-secondary-color);background-color:var(--gw-shortcuts-editor-button-background);border-color:var(--gw-button-secondary-border-color);margin-right:1px;margin-top:1px}app-yasgui-component-facade .ontotext-yasgui .yasr .alert-box{padding-right:35px}app-yasgui-component-facade .ontotext-yasgui .yasr .alert-box .close-button{font-size:1.3125rem}app-yasgui-component-facade .ontotext-yasgui .yasr .loader-component svg circle{fill:var(--gw-loader-color)}app-yasgui-component-facade .yasr .yasr_results .overlay_content{background:unset}app-yasgui-component-facade .yasr .yasr_results .yasr_btn.overlay_btn{color:var(--gw-button-secondary-color)!important;background:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important}app-yasgui-component-facade .yasr .yasr_results a{color:var(--gw-link-idle-color)}app-yasgui-component-facade .yasr .yasr_results a:visited{color:var(--gw-link-visited-color)}app-yasgui-component-facade .yasr .yasr_results a:hover,app-yasgui-component-facade .yasr .yasr_results a:focus{color:var(--gw-link-hover-color)}app-yasgui-component-facade .yasr .yasr_results .CodeMirror{color:var(--gw-editor-content-color)!important;background-color:var(--gw-editor-content-background)!important}app-yasgui-component-facade .yasr .yasr_results .CodeMirror.overflow:before{background:unset}app-yasgui-component-facade .yasr .yasr_results .CodeMirror .CodeMirror-gutters{color:var(--gw-editor-content-color)!important;background-color:var(--gw-editor-content-background)!important}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin select{color:var(--gw-body-color);background-color:var(--gw-body-background)}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtUi .pvtTable .pvtAxisLabel,app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtUi .pvtTable .pvtTotalLabel{color:var(--gw-datatable-header-color);background-color:var(--gw-datatable-header-background);border-color:var(--gw-datatable-header-cell-border-color)}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtFilterBox{color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border-color:var(--gw-dialog-border-color)}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtFilterBox .pvtSearch{color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);border-color:var(--gw-form-field-border-color)}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin table.pvtTable,app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin table.pvtTable th,app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtFilterBox .pvtCheckContainer,app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .pvtFilterBox h4 span{font-size:1rem}app-yasgui-component-facade .yasr .yasr_results .pivot-table-plugin .yasr_fallback_info:not(:empty){border:1px solid var(--gw-message-info-border-color);color:var(--gw-message-info-color);background-color:var(--gw-message-info-background)}app-yasgui-component-facade .yasr table.pvtTable tbody tr td,app-yasgui-component-facade .yasr .pivot-table-plugin .pvtUi .pvtTable .pvtRowLabel{color:var(--gw-datatable-row-color);background-color:var(--gw-datatable-row-background)}app-yasgui-component-facade .yasr .error-response-plugin{background-color:var(--gw-error-lighter)!important}app-yasgui-component-facade .yasr .extended-boolean-plugin>*{font-size:3rem}app-yasgui-component-facade .yasr .extended-boolean-plugin .response-error{background-color:var(--gw-error-lighter)!important}app-yasgui-component-facade .yasr .extended-boolean-plugin .response-success{background-color:var(--gw-success-lighter)!important}app-yasgui-component-facade .yasr .google-visualization-table-table{font-size:1rem;color:var(--gw-datatable-row-color)!important;background:var(--gw-datatable-row-background)!important;border-color:var(--gw-datatable-border-color)!important}app-yasgui-component-facade .yasr .google-visualization-table-table .google-visualization-table-tr-head{color:var(--gw-datatable-header-color)!important;background-color:var(--gw-datatable-header-background)!important;border-color:var(--gw-datatable-header-cell-border-color)!important}app-yasgui-component-facade .yasr .google-visualization-table-table .google-visualization-table-tr-even{background-color:var(--gw-datatable-row-background)!important}app-yasgui-component-facade .yasr .google-visualization-table-table .google-visualization-table-tr-odd{background-color:var(--gw-datatable-row-striped-background)!important}app-yasgui-component-facade .yasr .google-visualization-table-table .google-visualization-table-td{border-color:var(--gw-datatable-border-color)!important}app-yasgui-component-facade .yasr .google-visualization-table-table .google-visualization-table-th{border-color:var(--gw-datatable-header-cell-border-color)!important}app-yasgui-component-facade .yasr .dataTables_wrapper{font-size:1rem}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable{border-collapse:collapse}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable th{font-weight:var(--gw-font-weight-600);color:var(--gw-datatable-header-color)!important;background-color:var(--gw-datatable-header-background)!important;border-color:var(--gw-datatable-header-cell-border-color)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_asc,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_desc{background-image:none!important;position:relative}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting:after,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_asc:after,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_desc:after{content:\"\";position:absolute;right:8px;top:50%;transform:translateY(-50%);width:.9em;height:.9em;background-color:var(--gw-datatable-sort-icon-color);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting:after{mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 9 12 3 6 9H18ZM18 15 12 21 6 15H18Z'%3E%3C/path%3E%3C/svg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 9 12 3 6 9H18ZM18 15 12 21 6 15H18Z'%3E%3C/path%3E%3C/svg%3E\")}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_asc:after{mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4.86885 11H2.6665L6 3H8L11.3334 11H9.13113L8.7213 10H5.27869L4.86885 11ZM6.09836 8H7.90163L7 5.8L6.09836 8ZM18.9999 16V3H16.9999V16H13.9999L17.9999 21L21.9999 16H18.9999ZM10.9999 13H2.99992V15H7.85414L2.99992 19V21H10.9999V19H6.14605L10.9999 15V13Z'%3E%3C/path%3E%3C/svg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4.86885 11H2.6665L6 3H8L11.3334 11H9.13113L8.7213 10H5.27869L4.86885 11ZM6.09836 8H7.90163L7 5.8L6.09836 8ZM18.9999 16V3H16.9999V16H13.9999L17.9999 21L21.9999 16H18.9999ZM10.9999 13H2.99992V15H7.85414L2.99992 19V21H10.9999V19H6.14605L10.9999 15V13Z'%3E%3C/path%3E%3C/svg%3E\")}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable thead .sorting_desc:after{mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4.86885 11H2.6665L6 3H8L11.3334 11H9.13113L8.7213 10H5.27869L4.86885 11ZM6.09836 8H7.90163L7 5.8L6.09836 8ZM21.9999 8L17.9999 3L13.9999 8H16.9999V21H18.9999V8H21.9999ZM10.9999 13H2.99992V15H7.85414L2.99992 19V21H10.9999V19H6.14605L10.9999 15V13Z'%3E%3C/path%3E%3C/svg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4.86885 11H2.6665L6 3H8L11.3334 11H9.13113L8.7213 10H5.27869L4.86885 11ZM6.09836 8H7.90163L7 5.8L6.09836 8ZM21.9999 8L17.9999 3L13.9999 8H16.9999V21H18.9999V8H21.9999ZM10.9999 13H2.99992V15H7.85414L2.99992 19V21H10.9999V19H6.14605L10.9999 15V13Z'%3E%3C/path%3E%3C/svg%3E\")}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable tbody tr{vertical-align:top;color:var(--gw-datatable-row-color)!important;background-color:var(--gw-datatable-row-background)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable tbody tr:hover{background-color:var(--gw-datatable-row-hover-background)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable tbody tr td{border-color:var(--gw-datatable-border-color)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable tbody tr.odd{background-color:var(--gw-datatable-row-striped-background)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable.withRowNumber tr.odd>td:first-child{background-color:var(--gw-datatable-row-striped-background)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable.withRowNumber tr.even>td:first-child{background-color:var(--gw-datatable-row-background)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .rowNumber{color:var(--gw-datatable-row-color)!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable a{font-size:1rem}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .nonUri{color:inherit!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .nonUri sup{color:inherit!important}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-open-link .triple-link,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-close-link .triple-link{color:var(--gw-link-idle-color)}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-open-link .triple-link:visited,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-close-link .triple-link:visited{color:var(--gw-link-visited-color)}app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-open-link .triple-link:hover,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-open-link .triple-link:focus,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-close-link .triple-link:hover,app-yasgui-component-facade .yasr .dataTables_wrapper .dataTable .triple-cell .triple-close-link .triple-link:focus{color:var(--gw-link-hover-color)}app-yasgui-component-facade .cancel-button:focus,app-yasgui-component-facade .cancel-button:hover{background-color:#d4d4d4!important;border-color:#d4d4d4!important}app-yasgui-component-facade .dialog .dialog-body,app-yasgui-component-facade .confirmation-dialog .dialog-body{font-size:1.25rem!important}app-yasgui-component-facade .dialog .cancel-button,app-yasgui-component-facade .confirmation-dialog .cancel-button{margin-right:3px;background-color:#ebebeb;border-color:#ebebeb}app-yasgui-component-facade .ok-button,app-yasgui-component-facade .primary-button,app-yasgui-component-facade .confirm-button{background-color:var(--gw-button-primary-background)!important;border-color:var(--gw-button-primary-border-color)!important;color:var(--gw-button-primary-color)!important}app-yasgui-component-facade .ok-button:focus,app-yasgui-component-facade .ok-button:hover,app-yasgui-component-facade .primary-button:focus,app-yasgui-component-facade .primary-button:hover,app-yasgui-component-facade .confirm-button:focus,app-yasgui-component-facade .confirm-button:hover{background-color:var(--gw-button-primary-hover-background)!important;border-color:var(--gw-button-primary-hover-border-color)!important;color:var(--gw-button-primary-hover-color)!important}app-yasgui-component-facade .confirmation-dialog .dialog-footer .confirm-button{background-color:var(--gw-button-primary-background)!important;border-color:var(--gw-button-primary-border-color)!important;color:var(--gw-button-primary-color)!important}app-yasgui-component-facade .confirmation-dialog .dialog-footer .confirm-button:focus,app-yasgui-component-facade .confirmation-dialog .dialog-footer .confirm-button:hover{background-color:var(--gw-button-primary-hover-background)!important;border-color:var(--gw-button-primary-hover-border-color)!important;color:var(--gw-button-primary-hover-color)!important}.dialog{color:var(--gw-dialog-color)!important;background-color:var(--gw-dialog-background)!important;border:1px solid var(--gw-panel-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);font-family:var(--gw-font-family-body)!important}.dialog .dialog-header{border-bottom-color:var(--gw-dialog-border-color)!important}.dialog .dialog-header .close-button{color:var(--gw-dialog-color)!important;background-color:var(--gw-dialog-background)!important}.dialog .form-field :is(input:not([type=checkbox]),select,textarea){color:var(--gw-form-field-color)!important;background-color:var(--gw-form-field-background)!important;border-color:var(--gw-form-field-border-color)!important}.dialog .form-field input[type=checkbox]:checked{background-color:var(--gw-primary-base);border-color:var(--gw-primary-base)}.dialog .form-field input[type=text]:focus,.dialog .form-field textarea:focus{border-color:var(--gw-form-field-focus-border-color)!important}.dialog .dialog-footer{border-top-color:var(--gw-dialog-border-color)!important}.dialog .dialog-footer .cancel-button{color:var(--gw-button-secondary-color)!important;background-color:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important}.dialog .dialog-footer .cancel-button:hover{color:var(--gw-button-secondary-hover-color)!important;background-color:var(--gw-button-secondary-hover-background)!important;border-color:var(--gw-button-secondary-hover-border-color)!important}.keyboard-shortcuts-dialog-button{font-weight:var(--gw-button-label-font-weight);color:var(--gw-button-secondary-color)!important;background-color:var(--gw-button-secondary-background)!important;border-color:var(--gw-button-secondary-border-color)!important}.keyboard-shortcuts-dialog-wrapper{height:20px;line-height:18px;font-size:90%}.keyboard-shortcuts-dialog-wrapper.resizeable-on{margin-top:-31px}.keyboard-shortcuts-dialog-wrapper .dialog .dialog-header .close-button{color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);border-color:var(--gw-button-secondary-border-color)}.keyboard-shortcuts-dialog-wrapper .dialog .dialog-header .close-button:hover{color:var(--gw-button-primary-link-hover-color)!important}.keyboard-shortcuts-dialog-wrapper .keyboard-shortcut-section-title{color:var(--gw-shortcuts-panel-heading-color)}.keyboard-shortcut-description-item{justify-content:flex-start!important}.keyboard-shortcuts-content kbd{color:var(--gw-tag-info-color)!important;background-color:var(--gw-tag-info-background)!important}.keyboard-shortcuts-content .keyboard-shortcut-description-item-description{color:var(--gw-message-info-color)!important}@media(max-width:1439px){app-yasgui-component-facade .yasgui-toolbar .yasgui-btn{font-size:.8571rem;height:24px!important}app-yasgui-component-facade .yasgui-toolbar .btn-orientation{font-size:1.71rem}app-yasgui-component-facade .yasqe .yasqe_buttons .yasqe_queryButton,app-yasgui-component-facade .tabPanel .yasqe .yasqe-footer-buttons .abort-button{height:33px!important}}@media(max-width:1200px){app-yasgui-component-facade .yasr .yasr_btnGroup .yasr_btn{padding:.73em}app-yasgui-component-facade .yasr .yasr_btnGroup .yasr_btn span{display:none}}@media(max-width:768px){.ontotext-dropdown .button-name{display:inline}.ontotext-dropdown .ontotext-dropdown-button:after{padding-left:10px!important}}\n"],encapsulation:2})}}return e})();var ee=function(e){return e.YASGUI="mode-yasgui",e.YASQE="mode-yasqe",e.YASR="mode-yasr",e}(ee||{}),te=function(e){return e.VERTICAL="orientation-vertical",e.HORIZONTAL="orientation-horizontal",e}(te||{}),oe=function(e){return e.POST="POST",e.GET="GET",e}(oe||{}),re=function(e){return e.WRITE="WRITE",e.READ="READ",e.PROTECTED="PROTECTED",e}(re||{});class ae{constructor(){this.render=ee.YASGUI,this.orientation=te.VERTICAL,this.showEditorTabs=!0,this.showResultTabs=!0,this.showFullscreenButton=!0,this.showResultInfo=!0,this.showToolbar=!0,this.showControlBar=!1,this.showQueryButton=!0,this.showQueryLoader=!0,this.endpoint="",this.language="en",this.i18n=void 0,this.method=oe.POST,this.headers=void 0,this.infer=void 0,this.immutableInfer=void 0,this.sameAs=void 0,this.immutableSameAs=void 0,this.clearState=!1,this.copyEndpointOnNewTab=!0,this.componentId=void 0,this.yasqeMode=re.WRITE,this.query=void 0,this.initialQuery=void 0,this.defaultTabNameLabelKey=void 0,this.yasqeActionButtons=void 0,this.createShareableLink=null,this.populateFromUrl=!1,this.prefixes=void 0,this.defaultPlugin=O.EXTENDED_TABLE,this.pluginOrder=void 0,this.pluginsConfigurations=void 0,this.pageSize=1e3,this.paginationOn=!0,this.downloadAsOn=!0,this.maxPersistentResponseSize=5e5,this.yasqeAutocomplete=void 0,this.isVirtualRepository=!1,this.beforeUpdateQuery=void 0,this.getRepositoryStatementsCount=void 0,this.onQueryAborted=void 0,this.yasrToolbarPlugins=void 0,this.getCellContent=void 0,this.sparqlResponse=void 0,this.outputHandlers=void 0,this.selectedPlugin=void 0,this.yasrFullscreen=!1,this.keyboardShortcutConfiguration=void 0,this.themeName=void 0}}var ne=function(e){return e.CREATE="create",e.REPAIR="repair",e.DROP="drop",e}(ne||{});class se{constructor(e,t,o,r=!0,a=!0){this.queryName=e,this.query=t,this.owner=o,this.isPublic=r,this.readonly=a}}var ie=o(6115);const ce=(e,t)=>({processed:e,estimated:t}),le=e=>({speed:e});function de(e,t){if(1&e&&(d.j41(0,"h4"),d.EFF(1),d.nI1(2,"transloco"),d.nI1(3,"transloco"),d.j41(4,"strong"),d.EFF(5),d.k0s(),d.EFF(6,"... "),d.k0s()),2&e){const e=d.XpG();d.R7$(),d.Lme(" ",d.bMT(2,3,e.buildStatus().repair?"sparql_editor.connector_progress.action.repairing":"sparql_editor.connector_progress.action.creating")," ",d.bMT(3,5,"sparql_editor.connector_progress.connector_label")," "),d.R7$(4),d.JRh(e.connectorProgressData.connectorName)}}let pe=(()=>{class e{constructor(){this.logger=Q.I.logger,this.connectorsService=(0,R.service)(R.ConnectorsService),this.repositoryStorageService=(0,R.service)(R.RepositoryStorageService),this.pollDelay=1e3,this.inline=!1,this.closed=new n.bkB,this.buildStatus=(0,n.vPA)(new R.ConnectorBuildStatus),this.eta=(0,n.vPA)("-")}ngOnInit(){this.pollInterval=setInterval(()=>this.pollStatus(),this.pollDelay)}ngOnDestroy(){clearInterval(this.pollInterval)}pollStatus(){const e=this.repositoryStorageService.getActiveRepositoryId();e&&this.connectorsService.getConnectorBuildStatus(this.connectorProgressData.iri,e).then(e=>{e&&(this.buildStatus.set(e),this.eta.set(R.DateUtil.formatDuration(e.etaSeconds)),e.isBuilt&&(clearInterval(this.pollInterval),this.closed.emit()))}).catch(e=>{this.logger.error("Error fetching connector build status:",e),clearInterval(this.pollInterval),this.closed.emit()})}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-connector-progress"]],inputs:{connectorProgressData:"connectorProgressData",inline:"inline"},outputs:{closed:"closed"},decls:30,vars:29,consts:[[3,"value"],[1,"connector-progress-stats"],[1,"connector-progress-row"]],template:function(e,t){1&e&&(d.j41(0,"div"),d.nVh(1,de,7,7,"h4"),d.nrm(2,"p-progressbar",0),d.j41(3,"dl",1)(4,"div",2)(5,"dt"),d.EFF(6),d.nI1(7,"transloco"),d.k0s(),d.j41(8,"dd"),d.EFF(9),d.k0s()(),d.j41(10,"div",2)(11,"dt"),d.EFF(12),d.nI1(13,"transloco"),d.k0s(),d.j41(14,"dd"),d.EFF(15),d.nI1(16,"transloco"),d.k0s()(),d.j41(17,"div",2)(18,"dt"),d.EFF(19),d.nI1(20,"transloco"),d.k0s(),d.j41(21,"dd"),d.EFF(22),d.k0s()(),d.j41(23,"div",2)(24,"dt"),d.EFF(25),d.nI1(26,"transloco"),d.k0s(),d.j41(27,"dd"),d.EFF(28),d.nI1(29,"transloco"),d.k0s()()()()),2&e&&(d.R7$(),d.vxM(t.inline?1:-1),d.R7$(),d.Y8G("value",t.buildStatus().percentDone),d.R7$(4),d.JRh(d.bMT(7,10,"sparql_editor.connector_progress.eta")),d.R7$(3),d.JRh(t.eta()),d.R7$(3),d.JRh(d.bMT(13,12,"sparql_editor.connector_progress.processed_entities")),d.R7$(3),d.SpI("",d.i5U(16,14,"sparql_editor.connector_progress.processed_entities_value",d.l_i(24,ce,t.buildStatus().processedEntities,t.buildStatus().estimatedEntities))," "),d.R7$(4),d.JRh(d.bMT(20,17,"sparql_editor.connector_progress.indexed_entities")),d.R7$(3),d.JRh(t.buildStatus().indexedEntities),d.R7$(3),d.JRh(d.bMT(26,19,"sparql_editor.connector_progress.speed")),d.R7$(3),d.JRh(d.i5U(29,21,"sparql_editor.connector_progress.speed_value",d.eq3(27,le,t.buildStatus().entitiesPerSecond))))},dependencies:[ie.z2,c.Kj],encapsulation:2})}}return e})(),ue=(()=>{class e{constructor(){this.dialogRef=(0,n.WQX)(U.Pw),this.dialogConfig=(0,n.WQX)(U.sb),this.data=this.dialogConfig.data}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-connector-progress-dialog"]],decls:1,vars:1,consts:[[3,"closed","connectorProgressData"]],template:function(e,t){1&e&&(d.j41(0,"app-connector-progress",0),d.bIt("closed",function(){return t.dialogRef.close()}),d.k0s()),2&e&&d.Y8G("connectorProgressData",t.data)},dependencies:[pe],encapsulation:2})}}return e})();class ge{constructor(e,t,o){this.actionName=e,this.iri=t,this.connectorName=o}}class me{constructor(){this.weight=3,this.color="var(--graphwise-blue-color)",this.opacity=.7,this.fillColor="var(--graphwise-blue-color)",this.fillOpacity=.2}}class be{constructor(){this.defaultGeoStyleOptions=new me}}var he=o(6728);function ye(e,t){if(1&e&&d.nrm(0,"app-yasgui-component-facade",1),2&e){const e=d.XpG();d.Y8G("yasguiConfig",e.yasguiConfig())}}let ve=(()=>{class e{constructor(){this.logger=Q.I.logger,this.router=(0,n.WQX)(s.Ix),this.activatedRoute=(0,n.WQX)(s.nX),this.translocoService=(0,n.WQX)(c.JO),this.dialogProviderService=(0,n.WQX)($),this.confirmationProviderService=(0,n.WQX)(he.M),this.rdfRepositoryService=(0,R.service)(R.Rdf4jRepositoryService),this.repositoryStorageService=(0,R.service)(R.RepositoryStorageService),this.repositoryContextService=(0,R.service)(R.RepositoryContextService),this.securityContextService=(0,R.service)(R.SecurityContextService),this.namespacesService=(0,R.service)(R.NamespacesService),this.sparqlService=(0,R.service)(R.SparqlService),this.connectorsService=(0,R.service)(R.ConnectorsService),this.ontoToastrService=(0,R.service)(R.OntoToastrService),this.sparqlStorageService=(0,R.service)(R.SparqlStorageService),this.parentWindowMessageService=(0,R.service)(R.ParentWindowMessageService),this.languageContextService=(0,R.service)(R.LanguageContextService),this.monitoringService=(0,R.service)(R.MonitoringService),this.eventService=(0,R.service)(R.EventService),this.graphConfigService=(0,R.service)(R.GraphConfigService),this.QUERY_EDITOR_ID="#query-editor",this.subscriptions=new R.SubscriptionList,this.isOntopRepo=this.repositoryContextService.isActiveRepoOntopType(),this.inferUserSetting=!1,this.sameAsUserSetting=!1,this.exploreVisualGraphYasrToolbarElementBuilder={createElement:e=>{const t=document.createElement("onto-graph-explore-split-button");return t.classList.add("explore-visual-graph"),t.fetchGraphConfigs=()=>this.graphConfigService.getGraphConfigs().then(e=>e.getItems()),t.label=this.translocoService.translate("sparql_editor.yasgui.yasr.yasr_header.toolbar.btn.visual_graph_btn.label"),t._exploreVisualGraphHandler=this.getExploreVisualGraphHandler(e),t.addEventListener("graphExplore",t._exploreVisualGraphHandler),t},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const o=t.yasqe.getQueryType();(h.CONSTRUCT===o||h.DESCRIBE===o)&&e.classList.remove("hidden")},getOrder:()=>2,destroy(e){e._exploreVisualGraphHandler&&e.removeEventListener("graphExplore",e._exploreVisualGraphHandler),e.remove()}},this.exploreGraphNavigatorYasrToolbarElementBuilder={createElement:e=>{const t=document.createElement("button");return t.type="button",t.classList.add("onto-btn","onto-btn-secondary","explore-graph-navigator"),t.textContent=this.translocoService.translate("sparql_editor.yasgui.yasr.yasr_header.toolbar.btn.graph_navigator_btn.label"),t.addEventListener("click",()=>this.navigateToGraphNavigator(e)),t},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const o=t.yasqe.getQueryType();(h.CONSTRUCT===o||h.DESCRIBE===o)&&e.classList.remove("hidden")},getOrder:()=>3,destroy(e){e.remove()}},this.tabIdToConnectorProgressModalMapping=new Map,this.internallyReloaded=!1,this.embedded=!1,this.isExternalClickHandlerOperationEnabled=!1,this.boundBeforeunloadHandler=()=>this.beforeunloadHandler(),this.yasguiConfig=(0,n.vPA)(void 0)}ngOnInit(){this.subscribeHandlers(),window.addEventListener("beforeunload",this.boundBeforeunloadHandler)}navigateToGraphsVisualizations(e,t){const o={query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()};t&&(o.config=t),this.router.navigate(["graphs-visualizations"],{queryParams:o})}navigateToGraphNavigator(e){this.router.navigate(["graph-navigator"],{queryParams:{query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()}})}getExploreVisualGraphHandler(e){return t=>{const o=t.detail;"create"===o.action?(0,R.openInNewTab)("graphs-visualizations"):"default"===o.action?this.navigateToGraphsVisualizations(e):o.graphConfig&&this.navigateToGraphsVisualizations(e,o.graphConfig.id)}}updateConfig(e){const t=new ae;t.componentId=L,t.endpoint=this.getEndpoint.bind(this),t.prefixes=this.prefixes?.namespaces,t.infer=this.isOntopRepo||this.inferUserSetting,t.sameAs=this.isOntopRepo||this.sameAsUserSetting,t.yasrToolbarPlugins=this.embedded?[]:[this.exploreVisualGraphYasrToolbarElementBuilder,this.exploreGraphNavigatorYasrToolbarElementBuilder],t.beforeUpdateQuery=(e,t)=>this.getBeforeUpdateQueryHandler(e,t),t.outputHandlers={[f.QUERY_EXECUTED]:e=>this.queryExecutedHandler(e),[f.REQUEST_ABORTED]:e=>this.requestAbortedHandler(e)},t.clearState=e,t.selectedPlugin=this.selectedPlugin,t.pluginsConfigurations={geo:this.getGeoPluginConfiguration()},this.embedded&&(t.yasrFullscreen=!0,t.downloadAsOn=!1),this.yasguiConfig.set(t)}initViewFromUrlParams(e=!1){const t=this.activatedRoute.snapshot.queryParams;if(t.hasOwnProperty("embedded")&&(this.embedded=!0),this.isExternalClickHandlerOperationEnabled=!!t.hasOwnProperty("yasguiOperation")&&"externalClickHandler"===t.yasguiOperation,t.hasOwnProperty("pluginName")){const e=t.pluginName;e&&(this.selectedPlugin=A[e])}this.updateConfig(e),t.hasOwnProperty(y)?this.initTabFromSavedQuery(t):t.hasOwnProperty("query")&&this.initTabFromSharedQuery(t)}initTabFromSavedQuery(e){const t=e[y],o="true"===e.execute;this.sparqlService.getSavedQuery(t,e.owner).then(e=>{const t=e.getFirstQuery();return this.openNewTab(t)}).then(()=>this.clearUrlParameters()).then(()=>this.autoExecuteQueryIfRequested(o)).catch(e=>{this.ontoToastrService.error(this.translocoService.translate("sparql_editor.errors.saved_query_load_failed",{savedQueryName:t,error:e instanceof Error?e.message:String(e)}))})}initTabFromSharedQuery(e){const t=e.name,o="true"===e.execute,r=new R.SavedQuery({queryName:t,query:e.query,owner:e.owner,isPublic:!0,readonly:!0});this.openNewTab(r).then(()=>this.clearUrlParameters()).then(()=>this.autoExecuteQueryIfRequested(o)).catch(e=>{this.ontoToastrService.error(this.translocoService.translate("sparql_editor.errors.shared_query_load_failed",{sharedQueryName:t,error:e instanceof Error?e.message:String(e)}))})}getGeoPluginConfiguration(){const e=new be;return this.embedded&&this.isExternalClickHandlerOperationEnabled&&(e.onFeatureClick=this.onFeatureClickHandler.bind(this)),e}onFeatureClickHandler(e){this.parentWindowMessageService.postMessage({type:"yasgui.click.feature",featurePayload:e},R.WindowService.getReferer())}openNewTab(e){var t=this;return(0,a.A)(function*(){const o=yield v.Y.getOntotextYasguiElementAsync(t.QUERY_EDITOR_ID),r=e&&(e=>new se(e.queryName,e.query,e.owner,e.isPublic,e.readonly))(e),a=yield o.openTab(r);return v.Y.highlightTabName(a)})()}clearUrlParameters(){this.internallyReloaded=!0;const e=this.activatedRoute.snapshot.queryParams[R.REPOSITORY_ID_PARAM],t=e?{repositoryId:e}:{};this.embedded&&(t.embedded=!0),this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:t,replaceUrl:!0})}autoExecuteQueryIfRequested(e){var t=this;return(0,a.A)(function*(){if(e){const e=yield v.Y.getOntotextYasguiElementAsync(t.QUERY_EDITOR_ID),o=yield t.getQueryMode(e);return t.confirmAndExecuteQuery(o)}})()}getQueryMode(e){return(0,a.A)(function*(){const t=yield e.getQueryMode();return{yasguiComponent:e,queryMode:t}})()}confirmAndExecuteQuery({yasguiComponent:e,queryMode:t}){return t!==b.UPDATE?e.query():new Promise(t=>{this.confirmationProviderService.confirm({message:this.translocoService.translate("sparql_editor.confirmation.on_auto_execute_query.message"),header:this.translocoService.translate("sparql_editor.confirmation.on_auto_execute_query.title"),acceptHandler:()=>{t(e.query())}})})}getEndpoint(e){const t=this.getYasqe(e);return t?this.resolveSparqlEndpoint(t.getQueryMode()):""}getYasqe(e){const t=e?.getTab();if(t)return t.getYasqe()}resolveSparqlEndpoint(e){const t=this.repositoryStorageService.getActiveRepositoryId();return t?e===b.UPDATE?this.rdfRepositoryService.getStatementsEndpoint(t):e===b.QUERY?this.rdfRepositoryService.getSparqlEndpoint(t):"":(this.logger.error("No active repository found in local storage."),"")}requestAbortedHandler(e){if(e&&b.UPDATE!==e.queryMode){const t=e.getRepository(),o=e.getQueryTrackAlias();t&&o&&this.monitoringService.deleteQuery(o,t).catch(e=>{this.logger.error(`Failed to delete query with track alias ${o} for repository ${t}:`,e)})}}queryExecutedHandler(e){const t=this.tabIdToConnectorProgressModalMapping.get(e.tabId);t&&(t.close(),this.tabIdToConnectorProgressModalMapping.delete(e.tabId))}getBeforeUpdateQueryHandler(e,t){var o=this;return(0,a.A)(function*(){try{const r=yield o.connectorsService.checkConnector(e);return o.showConnectorOperationProgressDialog(r,t)}catch(e){return void o.logger.error("Checking connector error: ",e)}})()}showConnectorOperationProgressDialog(e,t){if(e.command===ne.CREATE){const o=this.createConnectorProgressDialog(this.translocoService.translate("sparql_editor.connector_progress.action.creating"),e.iri,e.name);this.tabIdToConnectorProgressModalMapping.set(t,o)}else if(e.command===ne.REPAIR){const o=this.createConnectorProgressDialog(this.translocoService.translate("sparql_editor.connector_progress.action.repairing"),e.iri,e.name);this.tabIdToConnectorProgressModalMapping.set(t,o)}return e}createConnectorProgressDialog(e,t,o){const r=new ge(e,t,o);return this.dialogProviderService.createDialogRef(ue,{data:r,header:this.translocoService.translate("sparql_editor.connector_progress.title",{actionName:e,connectorName:o}),closable:!1})}setInferAndSameAs(e){this.inferUserSetting=e?.appSettings.DEFAULT_INFERENCE??!1,this.sameAsUserSetting=e?.appSettings.DEFAULT_SAMEAS??!1}getExitPageConfirmMessage(e,t){let o=`${e}.`;return o+=!t||t.queriesCount<1?"none_queries_":"queries_",o+=t.updatesCount&&0!==t.updatesCount?"updates":"non_updates",this.translocoService.translate(o,{queriesCount:t.queriesCount,updatesCount:t.updatesCount})}persistLastUsedRepository(e){this.sparqlStorageService.setLastUsedRepository(e)}beforeunloadHandler(){const e=v.Y.getOntotextYasguiElement(this.QUERY_EDITOR_ID);e&&e.abortAllRequests().then(()=>{})}init(e){const t=this.securityContextService.getAuthenticatedUser();this.namespacesService.getNamespaces(this.repositoryStorageService.getActiveRepositoryId()).then(o=>{this.prefixes=o,this.setInferAndSameAs(t),this.initViewFromUrlParams(e)}).catch(o=>{this.logger.error("Error fetching namespaces for the active repository: ",o),this.prefixes=new R.NamespaceMap({}),this.setInferAndSameAs(t),this.updateConfig(e),this.initViewFromUrlParams(e)})}subscribeHandlers(){this.subscriptions.addAll([this.repositoryContextService.onSelectedRepositoryChanged(e=>this.repositoryChangedHandler(e),()=>this.shouldAllowRepositoryChanged()),this.languageContextService.onSelectedLanguageChanged(()=>this.onLanguageChangeHandler(),()=>this.shouldAllowLanguageChanged(),!0),this.eventService.addCancellationHandler(R.EventName.NAVIGATION_START,()=>this.shouldCancelNavigationOnLocationChange()),this.eventService.addCancellationHandler(R.EventName.LOGOUT,()=>this.shouldCancelLogout())])}shouldAllowRepositoryChanged(){return this.confirmAndAbortRunningQueries("sparql_editor.confirmation.on_repository_change",!1)}repositoryChangedHandler(e){e&&(this.activeRepositoryReference=e,this.isOntopRepo=this.repositoryContextService.isActiveRepoOntopType(),this.sparqlStorageService.getLastUsedRepository()===this.activeRepositoryReference.id?this.init(!1):(this.init(!0),this.persistLastUsedRepository(this.activeRepositoryReference.id)))}shouldAllowLanguageChanged(){return this.confirmAndAbortRunningQueries("sparql_editor.confirmation.on_language_change",!1,!0)}onLanguageChangeHandler(){R.WindowService.reloadPage()}shouldCancelNavigationOnLocationChange(){return this.internallyReloaded?(this.internallyReloaded=!1,Promise.resolve(!1)):this.confirmAndAbortRunningQueries("sparql_editor.confirmation.on_page_leave",!0).then(e=>!e)}shouldCancelLogout(){return this.confirmAndAbortRunningQueries("sparql_editor.confirmation.on_logout",!0).then(e=>!e)}confirmAndAbortRunningQueries(e,t){var o=this;return(0,a.A)(function*(e,t,r=!1){const a=v.Y.getOntotextYasguiElement(o.QUERY_EDITOR_ID);if(!a)return!0;try{const t=yield a.getOngoingRequestsInfo(),n=yield o.confirmIfQueriesRunning(e,t,r);return n&&(yield a.abortAllRequests()),n}catch(e){return o.logger.error("Could not check or abort the running queries",e),t}}).apply(this,arguments)}confirmIfQueriesRunning(e,t,o=!1){return new Promise(r=>{o||t&&!(t.queriesCount<1&&t.updatesCount<1)?this.confirmationProviderService.confirm({header:this.translocoService.translate(`${e}.title`),message:this.getExitPageConfirmMessage(e,t),acceptHandler:()=>r(!0),rejectHandler:()=>{this.logger.info("The user kept the running queries"),r(!1)}}):r(!0)})}ngOnDestroy(){this.subscriptions.unsubscribeAll(),window.removeEventListener("beforeunload",this.boundBeforeunloadHandler)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=d.VBU({type:e,selectors:[["app-sparql-editor-page"]],decls:3,vars:1,consts:[[1,"sparql-editor-page"],["id","query-editor","guide-selector","sparql-editor",3,"yasguiConfig"]],template:function(e,t){1&e&&(d.j41(0,"app-page-layout",0)(1,"div"),d.nVh(2,ye,1,1,"app-yasgui-component-facade",1),d.k0s()()),2&e&&(d.R7$(2),d.vxM(t.yasguiConfig()&&t.activeRepositoryReference?2:-1))},dependencies:[i.uG,l.J,K],styles:["[_nghost-%COMP%]{--page-title-position: relative;--page-title-margin-bottom: -2.18rem }[page-errors][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.sparql-editor-page[_ngcontent-%COMP%] #sparql-query-update-title-label[_ngcontent-%COMP%]{z-index:1}.sparql-editor-page[_ngcontent-%COMP%] #sparql-query-update-title-label[_ngcontent-%COMP%] .btn-link[_ngcontent-%COMP%]{position:relative;z-index:100}@media(max-width:1200px){.sparql-editor-page[_ngcontent-%COMP%] #sparql-query-update-title-label[_ngcontent-%COMP%]{margin-bottom:0}}.sparql-editor-page[_ngcontent-%COMP%] div[core-errors][_ngcontent-%COMP%]{margin-top:calc(47px + .5em)}[_nghost-%COMP%] .sparql-editor-page #query-editor .yasgui-host-element{display:block}[_nghost-%COMP%] .sparql-editor-page #query-editor .yasgui-host-element .ontotext-yasgui{clear:both;padding-top:15px}[_nghost-%COMP%] .sparql-editor-page #query-editor .yasgui-host-element .yasgui-toolbar{display:inline;float:right;font-size:1rem;font-weight:400;position:relative;z-index:100}"]})}}return e})()},6785(e,t,o){const r={"./alert-box.entry.js":[770,[770]],"./confirmation-dialog_10.entry.js":[7110,[110]],"./copy-resource-link-button.entry.js":[6958,[958]],"./loader-component.entry.js":[6855,[855]],"./ontotext-download-as.entry.js":[8999,[999]],"./ontotext-dropdown.entry.js":[7271,[271]],"./ontotext-editable-text-field.entry.js":[7085,[85]],"./ontotext-explain-plan.entry.js":[6439,[439]],"./ontotext-pagination.entry.js":[7390,[390]],"./query-split-button.entry.js":[6058,[58]]};function a(e){try{if(!o.o(r,e))return Promise.resolve().then(()=>{const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}const t=r[e],a=t[0];return o.e(t[1][0]).then(()=>o(a))}a.keys=()=>Object.keys(r),a.id=6785,e.exports=a}}]);
|
|
File without changes
|
/package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt}
RENAMED
|
File without changes
|