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.
Files changed (161) hide show
  1. package/dist/28944.10ba3819ab642475c4cc.bundle.js +2 -0
  2. package/dist/28944.10ba3819ab642475c4cc.bundle.js.map +1 -0
  3. package/dist/43239.40282ca142f86c6dde15.bundle.js +2 -0
  4. package/dist/43239.40282ca142f86c6dde15.bundle.js.map +1 -0
  5. package/dist/44906.c4c659df4b02ccae9229.bundle.js +2 -0
  6. package/dist/44906.c4c659df4b02ccae9229.bundle.js.map +1 -0
  7. package/dist/{64709.3025889983ec8209d336.bundle.js → 64709.18515378d91873dbe224.bundle.js} +2 -2
  8. package/dist/{64709.3025889983ec8209d336.bundle.js.map → 64709.18515378d91873dbe224.bundle.js.map} +1 -1
  9. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js → 65677.16009c5d1eabcad00aeb.bundle.js} +2 -2
  10. package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js.map → 65677.16009c5d1eabcad00aeb.bundle.js.map} +1 -1
  11. package/dist/{7257.1990b2e548feb7975f39.bundle.js → 7257.d60c8e9f046b1392ea1e.bundle.js} +2 -2
  12. package/dist/{7257.1990b2e548feb7975f39.bundle.js.map → 7257.d60c8e9f046b1392ea1e.bundle.js.map} +1 -1
  13. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js +2 -0
  14. package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js.map +1 -0
  15. package/dist/{80933.3851df33b6cf8f94243c.bundle.js → 80933.32639a47f5bcab72f129.bundle.js} +2 -2
  16. package/dist/{80933.3851df33b6cf8f94243c.bundle.js.map → 80933.32639a47f5bcab72f129.bundle.js.map} +1 -1
  17. package/dist/{82917.c4d381f514d7ffa59784.bundle.js → 82917.a13bbac26dd299c57f0c.bundle.js} +2 -2
  18. package/dist/{82917.c4d381f514d7ffa59784.bundle.js.map → 82917.a13bbac26dd299c57f0c.bundle.js.map} +1 -1
  19. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js → 86099.fe7fcec5f4ad92673a0b.bundle.js} +2 -2
  20. package/dist/{86099.dab1ff44dc71449a5aec.bundle.js.map → 86099.fe7fcec5f4ad92673a0b.bundle.js.map} +1 -1
  21. package/dist/96827.33e11fed0a796c76a367.bundle.js +2 -0
  22. package/dist/96827.33e11fed0a796c76a367.bundle.js.map +1 -0
  23. package/dist/assets/i18n/en.json +6 -2
  24. package/dist/assets/i18n/fr.json +6 -2
  25. package/dist/assets/i18n/language-config.json +1 -1
  26. package/dist/css/core-errors.css +1 -1
  27. package/dist/css/repositories.css +1 -1
  28. package/dist/css/repository-info-popover.css +1 -1
  29. package/dist/css/repository.create.css +1 -1
  30. package/dist/i18n/locale-en.json +9 -5
  31. package/dist/i18n/locale-fr.json +9 -5
  32. package/dist/index.html +9 -9
  33. package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
  34. package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
  35. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  36. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  37. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  38. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  39. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  40. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  41. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
  42. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  43. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  44. package/dist/js/angular/core/templates/core-errors.html +4 -2
  45. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  46. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  47. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  48. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  49. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  50. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  51. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  52. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  53. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  54. package/dist/js/angular/repositories/templates/manage-remote-location-dialog.template.html +0 -13
  55. package/dist/js/angular/security/templates/user.html +2 -2
  56. package/dist/js/angular/security/templates/users.html +1 -1
  57. package/dist/js/angular/templates/repositorySize.html +10 -6
  58. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  59. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  60. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  61. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  62. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  63. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  64. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  65. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  66. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  67. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  68. package/dist/legacyWorkbench.d8ed4eb634c5be181feb.js +3 -0
  69. package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.map → legacyWorkbench.d8ed4eb634c5be181feb.js.map} +1 -1
  70. package/dist/{main.519bdd021ad27b8f7c2a.js → main.bb3c33c0be119ba8d7dd.js} +3 -3
  71. package/dist/main.bb3c33c0be119ba8d7dd.js.map +1 -0
  72. package/dist/pages/aclmanagement.html +1 -1
  73. package/dist/pages/autocomplete.html +1 -1
  74. package/dist/pages/choose-repository-type.html +2 -1
  75. package/dist/pages/cluster-management/clusterInfo.html +2 -2
  76. package/dist/pages/create-index.html +1 -1
  77. package/dist/pages/dependencies.html +1 -1
  78. package/dist/pages/domainRangeInfo.html +2 -2
  79. package/dist/pages/edit.html +1 -1
  80. package/dist/pages/explore.html +1 -1
  81. package/dist/pages/export.html +1 -1
  82. package/dist/pages/find.html +1 -1
  83. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  84. package/dist/pages/graphs-visualizations.html +7 -7
  85. package/dist/pages/guides.html +1 -1
  86. package/dist/pages/home.html +1 -1
  87. package/dist/pages/import.html +2 -2
  88. package/dist/pages/jdbc-create.html +1 -1
  89. package/dist/pages/jdbc.html +1 -1
  90. package/dist/pages/monitor/backup-and-restore.html +1 -1
  91. package/dist/pages/monitor/queries.html +1 -1
  92. package/dist/pages/monitor/resources.html +1 -1
  93. package/dist/pages/namespaces.html +2 -2
  94. package/dist/pages/plugins.html +1 -1
  95. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  96. package/dist/pages/rdfrank.html +2 -2
  97. package/dist/pages/repositories.html +8 -4
  98. package/dist/pages/repository.html +6 -2
  99. package/dist/pages/similarity-indexes.html +1 -1
  100. package/dist/pages/sparql-editor.html +1 -1
  101. package/dist/pages/sparql-template-create.html +1 -1
  102. package/dist/pages/sparql-templates.html +1 -1
  103. package/dist/pages/ux-test1.html +2 -2
  104. package/dist/pages/viewQuery.html +1 -1
  105. package/dist/pages/webapi.html +2 -2
  106. package/dist/res/swagger5/index.html +11 -11
  107. package/dist/shared-components/cjs/loader.cjs.js +1 -1
  108. package/dist/shared-components/cjs/onto-footer_3.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/onto-repository-info.cjs.entry.js +1 -1
  112. package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
  113. package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
  114. package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
  115. package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
  116. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.css +1 -1
  117. package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.js +1 -1
  118. package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.css +1 -1
  119. package/dist/shared-components/collection/components/onto-repository-selector/selector-item.js +1 -1
  120. package/dist/shared-components/esm/loader.js +1 -1
  121. package/dist/shared-components/esm/onto-footer_3.entry.js +1 -1
  122. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  123. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  124. package/dist/shared-components/esm/onto-repository-info.entry.js +1 -1
  125. package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
  126. package/dist/shared-components/esm/shared-components.js +1 -1
  127. package/dist/shared-components/shared-components/p-0b5b6ae2.entry.js +1 -0
  128. package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js} +1 -1
  129. package/dist/shared-components/shared-components/p-6bb1e333.entry.js +1 -0
  130. package/dist/shared-components/shared-components/p-b3e34efa.entry.js +1 -0
  131. package/dist/shared-components/shared-components/p-e07c6668.entry.js +1 -0
  132. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  133. package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +12 -0
  134. package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +3 -0
  135. package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts +4 -0
  136. package/dist/shared-components/types/components/onto-repository-selector/selector-item.d.ts +1 -1
  137. package/dist/workbench/workbench/216.84774aeec22c9e0d.js +1 -0
  138. package/dist/workbench/workbench/{937.c2bb6617eb67b694.js → 272.720044b4ff7554f5.js} +1 -1
  139. package/dist/workbench/workbench/472.eb8524a286baa5e7.js +1 -0
  140. package/dist/workbench/workbench/workbenchApp.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/28944.50f6cc0b531327c3210e.bundle.js +0 -2
  143. package/dist/28944.50f6cc0b531327c3210e.bundle.js.map +0 -1
  144. package/dist/43239.520a41f9703920195281.bundle.js +0 -2
  145. package/dist/43239.520a41f9703920195281.bundle.js.map +0 -1
  146. package/dist/44906.732540785071c9088916.bundle.js +0 -2
  147. package/dist/44906.732540785071c9088916.bundle.js.map +0 -1
  148. package/dist/7714.ccdf9a75e387a85cb980.bundle.js +0 -2
  149. package/dist/7714.ccdf9a75e387a85cb980.bundle.js.map +0 -1
  150. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js +0 -2
  151. package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js.map +0 -1
  152. package/dist/legacyWorkbench.ec3c7f8dd4342d75e489.js +0 -3
  153. package/dist/main.519bdd021ad27b8f7c2a.js.map +0 -1
  154. package/dist/shared-components/shared-components/p-388d4524.entry.js +0 -1
  155. package/dist/shared-components/shared-components/p-78c03a43.entry.js +0 -1
  156. package/dist/shared-components/shared-components/p-8952636b.entry.js +0 -1
  157. package/dist/shared-components/shared-components/p-b6fa9b0a.entry.js +0 -1
  158. package/dist/workbench/workbench/216.1d0b714ace0ab8e4.js +0 -1
  159. package/dist/workbench/workbench/472.d4b7ec12b3627aee.js +0 -1
  160. /package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.LICENSE.txt → legacyWorkbench.d8ed4eb634c5be181feb.js.LICENSE.txt} +0 -0
  161. /package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=44906;export const __webpack_esm_ids__=[44906,62062,67262,81417,83196];export const __webpack_esm_modules__={67262(e,o,t){var r=t(81417);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",function(){return{restrict:"A",require:"ngModel",link:function(e,o,t,n){n.$validators.validUrl=function(e,o){if(n.$isEmpty(o))return"false"!==t.allowEmpty;if(!r.r.isValidUrl(o))return!1;if(t.exclude&&!r.r.doesNotContain(o,t.exclude))return!1;if(t.excludeProtocol){const e=t.excludeProtocol.split(",");if(!r.r.doesNotUseProtocol(o,e))return!1}return!0}}}})},44906(e,o,t){t.d(o,{W:()=>c});var r=t(83196),n=t(41767),i=(t(62062),t(62831)),a=t(57154);const s=1e4,c=function(e){let o=e.lastIndexOf("/");-1===o&&(o=e.lastIndexOf("\\"));let t=e;return-1!==o&&(t=t.substring(o+1)),t},l=function(e){e&&Object.keys(e).forEach(o=>{const t=e[o];if(t&&"string"==typeof t.value){const r=parseFloat(e[o].value);!isNaN(r)&&d[o]&&(e[o].value=Number.isInteger(r)?parseInt(t.value,10):r,t.isNumber=!0)}})},p=function(){const e=document.getElementById("shaclOptions");if(e){const o=e.getAttribute("aria-expanded");if(o&&"true"===o)return"ri-arrow-down-s-line"}return"ri-arrow-right-s-line"},d={queryLimitResults:"invalid.query.limit",queryTimeout:"invalid.query.timeout",validationResultsLimitTotal:"invalid.validation.results.limit.total",validationResultsLimitPerConstraint:"invalid.validation.results.limit.per.constraint",joinWorkerThreads:"invalid.join.worker.threads",leftJoinWorkerThreads:"invalid.left.join.worker.threads",unionWorkerThreads:"invalid.union.worker.threads",boundJoinBlockSize:"invalid.bound.join.block.size",entityIndexSize:"invalid.entity.index.size"},u=function(e,o){if(!e)return"";const t=Object.keys(e).find(o=>{const t=e[o];let n=r.nj;return"queryTimeout"!==o&&"queryLimitResults"!==o||(n=r.MU),t.isNumber&&!n.test(t.value)});return t&&d[t]?o.instant(d[t]):""},f=function(e){return e.getLocations().then(e=>e.filter(e=>e.isGraphDBLocation()&&!e.errorMsg&&!e.degradedReason))};function m(e,o,t,s,c,l,p,d,u,f,m){const y=(0,a.service)(a.GuidesService),g=(0,a.service)(a.AuthorizationService);e.RemoteLocationType=i.Il,e.loader=!0,e.locations=[],e.isLocationInactive=function(o){return!o.active||!e.hasActiveLocation()};const v=m.defer();function h(){return c.getLocations(v).then(o=>(e.locations=o,o)).finally(()=>e.loader=!1)}e.getLocalLocation=(o,t)=>{const r=e.locations.filter(e=>{let r=!0;return t&&(r=e.locationType===t),r&&e.local===o});return e.isRepoManager()?r:r.filter(o=>e.getRepositoriesFromLocation(o.uri)?.length>0)},e.hasAnyRemoteLocation=(o,t)=>t.some(t=>e.getLocalLocation(o,t).length>0),e.hasActiveLocation=function(){return c.hasActiveLocation()},e.getActiveLocation=function(){return c.getActiveLocation()},e.getLocationError=function(){return c.getLocationError()},e.getDegradedReason=function(){return c.getDegradedReason()},e.getRepositories=function(){return c.getRepositories()},e.isRepoActive=function(e){return c.isRepoActive(e)},e.deleteLocation=function(o){l.openSimpleModal({title:f.instant("location.confirm.detach"),message:f.instant("location.confirm.detach.warning",{uri:o}),warning:!0}).result.then(function(){e.loader=!0,c.deleteLocation(o).finally(()=>h())})},e.addLocationHttp=function(o){e.loader=!0,p.addLocation(o).success(function(){c.init()}).error(function(e){const o=getError(e);s.error(o,f.instant("common.error"))}).finally(()=>h())},e.addLocation=()=>{e.openRemoteLocationDialog()},e.editLocation=o=>{void 0===o.locationType&&(o.locationType=i.Il.GRAPH_DB),e.openRemoteLocationDialog(o)},e.openRemoteLocationDialog=o=>{t.open({templateUrl:"js/angular/repositories/templates/manage-remote-location-dialog.template.html",windowClass:"addLocationDialog",controller:"ManageRemoteLocationDialogController",resolve:{data:()=>({remoteLocation:o})}}).result.then(t=>{o?e.editLocationHttp(t):e.addLocationHttp(t)})},e.editLocationHttp=function(o){e.loader=!0,p.editLocation(o).success(function(){c.init()}).error(function(e){const o=getError(e);s.error(o,f.instant("common.error"))}).finally(()=>h())},e.setRepository=function(e){c.setRepository(e)},e.deleteRepository=function(o){l.openSimpleModal({title:f.instant("common.confirm.delete"),message:(0,n.Gz)(f.instant("delete.repo.warning.msg",{repositoryId:o.id})),warning:!0}).result.then(function(){e.loader=!0,c.deleteRepository(o).finally(()=>{h(),e.loader=!1}),function(e){const o=`dependencies-selectedGraph-${e.id}`,t=`classHierarchy-selectedGraph-${e.id}`;angular.forEach(d.keys(),function(e){(e.startsWith(t)||e.startsWith(o))&&d.remove(e)})}(o)})},e.restartRepository=function(o){l.openSimpleModal({title:f.instant("confirm.restart.repo"),message:(0,n.Gz)(f.instant("confirm.restart.repo.warning.msg",{repositoryId:o.id})),warning:!0}).result.then(function(){e.loader=!0,c.restartRepository(o).finally(()=>h())})},e.toggleDefaultRepository=function(o){e.getDefaultRepository()===o?c.setDefaultRepository(null):c.setDefaultRepository(o)},e.getDefaultRepository=function(){return c.getDefaultRepository()},e.getRepositoryDownloadLink=function(e){let o=`rest/repositories/${e.id}${e.type===r.VH.ontop?"/download-zip":"/download-ttl"}?location=${e.location}`;const t=(0,a.service)(a.AuthenticationStorageService).getAuthToken().getValue();return t&&(o=`${o}&authToken=${encodeURIComponent(t)}`),o},e.copyToClipboard=function(e){l.openCopyToClipboardModal(e)},e.fromFile=function(){t.open({templateUrl:"js/angular/templates/modal/upload-repository-config.html",controller:"UploadRepositoryConfigCtrl"}).result.then(function(){c.init()})},e.openActiveLocationSettings=function(){t.open({templateUrl:"js/angular/settings/modal/location-settings.html",controller:"ActiveLocationSettingsCtrl"})},h();const R=u(function(){y.isActive()&&!o.guidePaused||(c.initQuick(),h())},5e3);e.$on("$destroy",function(){u.cancel(R),v&&v.resolve()}),e.getRepositoriesFromLocation=function(o){const t=c.getRepositoriesFromLocation(o)||[];return e.isRepoManager()?t:t.filter(e=>g.canReadRepo(e)||g.canReadGqlRepo(e))},e.isRepoManager=()=>g.isRepoManager(),e.canMaintainRepo=e=>g.canMaintainRepo(e)}function y(e,o,t,r,n){e.upload=function(o){o&&o.length&&(e.uploadFile=o[0])},e.ok=function(){e.uploadFile&&(e.uploadFileLoader=!0,t.upload({url:"rest/repositories",method:"POST",data:{config:e.uploadFile}}).success(function(){e.uploadFileLoader=!1,o.close()}).error(function(o){const t=getError(o);r.error(t,n.instant("common.error")),e.uploadFileLoader=!1}))},e.cancel=function(){o.dismiss("cancel")}}function g(e,o){e.repositoryTypes=r.VH,e.chooseRepositoryType=function(e){o.path(`${o.path()}/${e}`)}}function v(e,o,t,n,i,c,d,m,y,g,v){const h=(0,a.service)(a.BroadcastService);function R(e){switch(e){case r.VH.graphdbRepo:o.pageTitle=g.instant("view.create.repo.title",{repoType:"GraphDB"});break;case r.VH.ontop:o.pageTitle=g.instant("view.create.repo.title",{repoType:"Ontop Virtual SPARQL"});break;case r.VH.fedx:o.pageTitle=g.instant("view.create.repo.title",{repoType:"FedX Virtual SPARQL"})}}var I;o.rulesets=r.Ds.slice(),o.repositoryTypes=r.VH,o.params=m,o.repositoryType=m.repositoryType,o.enable=!0,o.entityIndexSizeMin=s,o.documentationUrlForStorageEncryption=a.UriUtil.resolveDocumentationUrl(v.shortVersion,"creating-a-repository.html#using-workbench"),o.encryptInput={hovered:!1},o.loader=!0,o.pageTitle=g.instant("view.create.repo.title"),o.repositoryInfo={id:"",params:{},title:"",type:"",location:""},f(n).then(e=>{o.locations=e}),o.changedLocation=function(){o.$broadcast("changedLocation")},o.getConfig=function(e){y.getRepositoryConfiguration(e).then(function(e){const t=e.data;var r;o.repositoryInfo.params=t.params,o.repositoryInfo.type=t.type,l(o.repositoryInfo.params),(r=o.repositoryInfo.params)&&r.member&&(r.member.value=[]),o.loader=!1,c(function(){angular.element(document).find("#id").focus()},50)}).catch(function(e){const r=getError(e);t.error(r,g.instant("common.error")),o.loader=!1})},o.repositoryType&&(function(e){return o.isEnterprise()&&e===r.VH.graphdbRepo}(I=o.repositoryType)||function(e){return!o.isFreeEdition()&&!o.isEnterprise()&&e===r.VH.graphdbRepo}(I)||function(e){return o.isFreeEdition()&&e===r.VH.graphdbRepo}(I)||function(e){return e===r.VH.ontop}(I)||function(e){return e===r.VH.fedx}(I))?(o.repositoryInfo.type=o.repositoryType,o.getConfig(o.repositoryType),R(o.repositoryType)):i.path("/repository/create"),o.hasActiveLocation=function(){return n.hasActiveLocation()},o.activeLocation=function(){return n.getActiveLocation()};let L=!1;o.uploadRuleset=function(e){e&&e.length&&(o.uploadFile=e[0],o.uploadFileLoader=!0,d.upload({url:"rest/repositories/ruleset/upload",data:{ruleset:o.uploadFile,location:o.repositoryInfo.location}}).progress(function(e){}).success(function(e){if(e.success){L=!1;const t=o.uploadFile.name,r={id:e.fileLocation,name:"Custom: "+t};o.rulesetPie?o.rulesets[0]=r:o.rulesets.unshift(r),o.rulesetPie=e.fileLocation,o.rulesetPieFile=t,o.repositoryInfo.params.ruleset.value=o.rulesetPie}else t.error(e.errorMessage),L=!0,o.uploadFile="";o.uploadFileLoader=!1}).error(function(e){const r=getError(e);t.error(r,g.instant("common.error")),o.uploadFile="",o.uploadFileLoader=!1,L=!0}))},o.noMembersError=function(){t.error(g.instant("fedx.create.repo.no.members.warning"))},o.goBackToPreviousLocation=function(){const e=i.search().previous;if(e){i.search("previous",null);const o="string"==typeof e&&"/"===e.charAt(0)?e:"/"+e;i.url(o)}else i.path("/repository")},o.createRepoHttp=function(){o.loader=!0,y.createRepository(o.repositoryInfo).then(function(){return t.success(g.instant("created.repo.success.msg",{repoId:o.repositoryInfo.id})),n.init()}).then(()=>{o.goBackToPreviousLocation(),h.sendMessage(new a.BroadcastMessage(a.MessageType.REPOSITORIES_UPDATED))}).catch(function(e){const o=getError(e.data);t.error(o,g.instant("common.error"))}).finally(()=>{o.loader=!1})},o.createRepo=function(){if(!o.repositoryInfo.id)return void t.error(g.instant("empty.repoid.warning"));o.isInvalidRepoName=!r.vH.test(o.repositoryInfo.id),o.isInvalidEntityIndexSizeMin=o.repositoryInfo.params.entityIndexSize?.value<s;const e=u(o.repositoryInfo.params,g);L?t.error(g.instant("invalid.ruleset.file.error")):o.isInvalidRepoName?t.error(g.instant("wrong.repo.name.error")):"fedx"===o.repositoryType&&0===o.repositoryInfo.params.member.value.length?o.noMembersError():e?t.error(e):o.isInvalidEntityIndexSizeMin?t.error(g.instant("repo.error.entityIndex.min")):o.createRepoHttp()},o.rulesetWarning=function(){const e=o.repositoryInfo.params;return void 0===e||void 0===e.ruleset||void 0===e.disableSameAs?"":0===e.ruleset.value.indexOf("owl")&&"true"===e.disableSameAs.value?g.instant("repoTooltips.rulesetWarnings.needsSameAs"):0===e.ruleset.value.indexOf("rdfs")&&"false"===e.disableSameAs.value?g.instant("repoTooltips.rulesetWarnings.doesntNeedSameAs"):e.ruleset.value===o.rulesetPie?g.instant("repoTooltips.rulesetWarnings.customRuleset"):""},o.getShaclOptionsClass=function(){return p()},o.autofocusId="autofocus";const $=e.$on("$translateChangeSuccess",()=>{R(o.repositoryType)});o.$on("$destroy",()=>{$()})}function h(e,o,t,r,n,i,a,s){e.dialogTitle=a||i.instant("update.file.content.header"),r&&t.getRepositoryFileContent(r,s).success(function(o){e.fileContent=o}).error(function(e){const o=getError(e);n.error(o,i.instant("common.error"))}),e.ok=function(){o.close({content:e.fileContent,fileLocation:r})},e.cancel=function(){o.dismiss("cancel")}}function R(e,o,t,i,d,m,y,g,v,h){const R=(0,a.service)(a.AuthorizationService),I=(0,a.service)(a.BroadcastService);o.rulesets=r.Ds.slice(),o.repositoryTypes=r.VH,o.entityIndexSizeMin=s,o.editRepoPage=!0,o.canEditRepoId=!1,o.canRenameRepo=!1,o.isRepoInCluster=!0,o.params=t,o.loader=!0,o.repositoryInfo={},o.repositoryInfo.id=o.params.repositoryId,o.repositoryInfo.location=o.params.location,o.repositoryInfo.restartRequested=!1,o.repositoryType="",o.saveRepoId=o.params.repositoryId,o.pageTitle=v.instant("view.edit.repo.title",{repositoryId:o.params.repositoryId}),o.hasActiveLocation=function(){return d.hasActiveLocation()},o.$watch(o.hasActiveLocation,function(){if(o.hasActiveLocation){let e;f(d).then(e=>(o.locations=e,g.getRepository(o.repositoryInfo))).then(t=>(e=t,h.monitorActiveOperations(o.repositoryInfo.id))).then(e=>{o.isRepoInCluster=e.hasClusterOperation()}).catch(t=>e?Promise.resolve():(o.repositoryInfo=void 0,Promise.reject(t))).then(()=>{(e=>{const t=e.data;if(o.canRenameRepo=R.isAdminOrRepoManager()&&t.type===r.VH.graphdbRepo,angular.isDefined(t.params.ruleset)){let e=!1;if(angular.forEach(o.rulesets,function(o){o.id===t.params.ruleset.value&&(e=!0)}),t.params.ruleset&&!e){const e=c(t.params.ruleset.value);o.rulesets.unshift({id:t.params.ruleset.value,name:"Custom: "+e})}}o.repositoryInfo=t,o.setRepositoryType(t.type),l(o.repositoryInfo.params),o.repositoryInfo.saveId=o.saveRepoId,o.loader=!1})(e)}).catch(e=>{const r=e.data,a=e.status,s=t.repositoryId;let c;c=404===a&&"system"!==s?(0,n.Gz)(v.instant("edit.repo.error.not.exists",{repositoryId:s})):404===a&&"system"===s?(0,n.Gz)(v.instant("edit.system.repo.warning")):getError(r),i.error(c,v.instant("common.error"),{allowHtml:!0}),404===a?setTimeout(function(){o.loader=!1,m.path("repository")},1e3):o.loader=!1})}}),o.setRepositoryType=function(e){o.repositoryType=e},o.noMembersError=function(){i.error(v.instant("fedx.create.repo.no.members.warning"))},o.editRepoHttp=function(){o.loader=!0,g.editRepository(o.repositoryInfo.saveId,o.repositoryInfo).success(function(){i.success(v.instant("edit.repo.success.msg",{saveId:o.repositoryInfo.saveId})),d.init().finally(()=>{o.goBackToPreviousLocation(),I.sendMessage(new a.BroadcastMessage(a.MessageType.REPOSITORIES_UPDATED))}),o.repositoryInfo.saveId===o.repositoryInfo.id&&o.repositoryInfo.restartRequested&&d.restartRepository(o.repositoryInfo)}).error(function(e){const t=getError(e);i.error(t,v.instant("common.error")),o.loader=!1})},o.editRepository=function(){o.isInvalidRepoName=!r.vH.test(o.repositoryInfo.id),o.isInvalidEntityIndexSizeMin=o.repositoryInfo.params.entityIndexSize?.value<s;const e=u(o.repositoryInfo.params,v);let t=(0,n.Gz)(v.instant("edit.repo.save.changes.msg",{repoId:o.repositoryInfo.id}));o.repositoryInfo.saveId!==o.repositoryInfo.id?t+=(0,n.Gz)(v.instant("edit.repo.rename.changes.msg")):o.repositoryInfo.restartRequested?t+=(0,n.Gz)(v.instant("edit.repo.restart.requested.msg")):t+=(0,n.Gz)(v.instant("edit.repo.restart.needed.msg")),o.isInvalidRepoName?i.error(v.instant("wrong.repo.name.error")):"fedx"===o.repositoryType&&0===o.repositoryInfo.params.member.value.length?o.noMembersError():e?i.error(e):o.isInvalidEntityIndexSizeMin?i.error(v.instant("repo.error.entityIndex.min")):o.canRenameRepo||o.repositoryInfo.saveId===o.repositoryInfo.id?y.openSimpleModal({title:v.instant("common.confirm.save"),message:t,warning:!0}).result.then(function(){o.editRepoHttp()}):i.error(v.instant("edit.repo.id.change.error",{repoType:o.repositoryInfo.type}))},o.editRepositoryId=function(){if(!o.canRenameRepo)return;const e=(0,n.Gz)(v.instant("edit.repo.id.warning.msg"));y.openSimpleModal({title:v.instant("confirm.enable.edit"),message:e,warning:!0}).result.then(function(){o.canEditRepoId=!0})},o.goBackToPreviousLocation=function(){angular.isDefined(t.previous)?(delete m.$$search.previous,m.path("/")):m.path("/repository")},o.getShaclOptionsClass=function(){return p()};const L=e.$on("$translateChangeSuccess",()=>{o.pageTitle=v.instant("view.edit.repo.title",{repositoryId:o.params.repositoryId})});o.$on("$destroy",()=>{L()})}angular.module("graphdb.framework.repositories.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","toastr","ngFileUpload","graphdb.framework.repositories.controllers.manage-remote-location-dialog"]).controller("LocationsAndRepositoriesCtrl",m).controller("ChooseRepositoryCtrl",g).controller("AddRepositoryCtrl",v).controller("EditRepositoryCtrl",R).controller("EditRepositoryFileCtrl",h).controller("UploadRepositoryConfigCtrl",y),m.$inject=["$scope","$rootScope","$uibModal","toastr","$repositories","ModalService","LocationsRestService","LocalStorageAdapter","$interval","$translate","$q"],y.$inject=["$scope","$uibModalInstance","Upload","toastr","$translate"],g.$inject=["$scope","$location"],v.$inject=["$rootScope","$scope","toastr","$repositories","$location","$timeout","Upload","$routeParams","RepositoriesRestService","$translate","productInfo"],h.$inject=["$scope","$uibModalInstance","RepositoriesRestService","file","toastr","$translate","dialogTitle","repositoryReference"],R.$inject=["$rootScope","$scope","$routeParams","toastr","$repositories","$location","ModalService","RepositoriesRestService","$translate","MonitoringRestService"]},62062(e,o,t){var r=t(62831),n=(t(67262),t(57154));function i(e,o,t,i){e.remoteLocation=i.remoteLocation?new r.TP({...i.remoteLocation}):new r.TP,e.RemoteLocationType=r.Il,e.RemoteLocationAuthType=r.Qk,e.isEdit=!!i.remoteLocation,e.documentationUrlForAuthentication=n.UriUtil.resolveDocumentationUrl(t.shortVersion,"access-control.html#gdb-authentication"),e.ok=()=>{e.remoteLocationForm.$pristine||e.remoteLocationForm.$invalid||o.close(e.remoteLocation)},e.cancel=()=>{o.dismiss("cancel")},e.onLocationTypeChanged=()=>{[r.Il.ONTOPIC,r.Il.SPARQL].includes(e.remoteLocation.locationType)?e.remoteLocation.authType=r.Qk.BASIC:e.remoteLocation.authType=r.Qk.NONE}}angular.module("graphdb.framework.repositories.controllers.manage-remote-location-dialog",["graphdb.framework.core.directives.validate-url"]).controller("ManageRemoteLocationDialogController",i),i.$inject=["$scope","$uibModalInstance","productInfo","data"]},83196(e,o,t){t.d(o,{Ds:()=>r,MU:()=>s,VH:()=>n,nj:()=>a,vH:()=>i});const r=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],n={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},i=/^[\w-]+$/,a=/^\d+$/,s=/^[+-]?\d+$/},81417(e,o,t){t.d(o,{r:()=>i});const r=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,n=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class i{static isValidUrl(e){return r.test(e)||n.test(e)}static doesNotContain(e,o){return!new RegExp(o).test(e)}static doesNotUseProtocol(e,o){return!new RegExp("^("+o.join("|")+")://","i").test(e)}}}};
2
- //# sourceMappingURL=44906.732540785071c9088916.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"44906.732540785071c9088916.bundle.js","mappings":"yKA+DAA,QACKC,OAAO,iDAHI,IAIXC,UAAU,cAEf,WACI,MAAO,CACHC,SAAU,IACVC,QAAS,UACTC,KAAM,SAAUC,EAAOC,EAASC,EAAMC,GAClCA,EAAKC,YAAYC,SAAW,SAAUC,EAAYC,GAE9C,GAAIJ,EAAKK,SAASD,GACd,MAA2B,UAApBL,EAAKO,WAGhB,IAAKC,EAAAA,EAASC,WAAWJ,GACrB,OAAO,EAGX,GAAIL,EAAKU,UAAYF,EAAAA,EAASG,eAAeN,EAAWL,EAAKU,SACzD,OAAO,EAGX,GAAIV,EAAKY,gBAAiB,CACtB,MAAMC,EAAoBb,EAAKY,gBAAgBE,MAAM,KACrD,IAAKN,EAAAA,EAASO,mBAAmBV,EAAWQ,GACxC,OAAO,CAEf,CACA,OAAO,CACX,CACJ,EAER,E,2FC3EA,MAAMG,EAAwB,IAEjBC,EAAc,SAASC,GAChC,IAAIC,EAAUD,EAAKE,YAAY,MACd,IAAbD,IACAA,EAAUD,EAAKE,YAAY,OAE/B,IAAIC,EAAOH,EAIX,OAHiB,IAAbC,IACAE,EAAOA,EAAKC,UAAUH,EAAU,IAE7BE,CACX,EAEME,EAA4B,SAASC,GAClC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ACpB,CAAC6H,GAAI,iBAAkB7H,KAAM,oBAC7B,CAAC6H,GAAI,OAAQ7H,KAAM,QACnB,CAAC6H,GAAI,qBAAsB7H,KAAM,yBACjC,CAAC6H,GAAI,sBAAuB7H,KAAM,yBAClC,CAAC6H,GAAI,YAAa7H,KAAM,aACxB,CAAC6H,GAAI,oBAAqB7H,KAAM,uBAChC,CAAC6H,GAAI,UAAW7H,KAAM,WACtB,CAAC6H,GAAI,oBAAqB7H,KAAM,uBAChC,CAAC6H,GAAI,UAAW7H,KAAM,WACtB,CAAC6H,GAAI,oBAAqB7H,KAAM,uBAChC,CAAC6H,GAAI,UAAW7H,KAAM,YAIb0I,EAAmB,CAACgD,YAAa,UAAW2H,KAAM,OAAQC,SAAU,SAAUC,SAAU,SAAU5K,MAAO,QAAS6K,GAAI,KAAM5H,KAAM,QAClIwD,EAAmB,WACnB9M,EAAiB,QACjBC,EAAwB,Y,gCCnBrC,MAAMkR,EAAY,+FACZC,EAAW,uEAMV,MAAMvU,EAOT,iBAAOC,CAAWoJ,GACd,OAAOiL,EAAUjR,KAAKgG,IAAQkL,EAASlR,KAAKgG,EAChD,CASA,qBAAOlJ,CAAekJ,EAAKnJ,GACvB,OAAQ,IAAIsU,OAAOtU,GAASmD,KAAKgG,EACrC,CASA,yBAAO9I,CAAmB8I,EAAKhJ,GAE3B,OADwB,IAAImU,OAAO,KAAOnU,EAAkBoU,KAAK,KAAO,OAAQ,KACxDpR,KAAKgG,EACjC,E","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/validate-url.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/repositories/controllers.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/repositories/controllers/manage-remote-location-dialog.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/repositories/repository.constants.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/utils/url-utils.js"],"sourcesContent":["/**\n * @ngdoc directive\n * @name validateUrl\n * @module graphdb.framework.core.directives.validate-url\n * @restrict A\n *\n * @description\n * This directive validates the URL input field based on a specified pattern.\n * It ensures that the input URL adheres to standard URL formats and provides\n * visual feedback to the user if the URL is invalid.\n *\n * The directive can also be configured to exclude certain substrings or protocols from valid URLs,\n * and to control whether empty input values are considered valid.\n *\n * @example\n * <pre>\n * <form name=\"myForm\">\n * <!-- Basic URL validation -->\n * <input type=\"text\" name=\"urlField\" ng-model=\"url\" validate-url/>\n * <div ng-show=\"myForm.urlField.$error.validUrl\">\n * Invalid URL format.\n * </div>\n *\n * <!-- URL validation excluding a specific substring -->\n * <input type=\"text\" name=\"urlFieldWithExclusion\" ng-model=\"url\" validate-url exclude=\"/repositories\"/>\n * <div ng-show=\"myForm.urlFieldWithExclusion.$error.validUrl\">\n * Invalid URL format or contains excluded substring.\n * </div>\n *\n * <!-- URL validation excluding a specific protocol -->\n * <input type=\"text\" name=\"urlFieldWithProtocolExclusion\" ng-model=\"url\" validate-url exclude-protocol=\"ftp\"/>\n * <div ng-show=\"myForm.urlFieldWithProtocolExclusion.$error.validUrl\">\n * Invalid URL format or uses an excluded protocol.\n * </div>\n *\n * <!-- URL validation that does not allow empty values -->\n * <input type=\"text\" name=\"urlFieldNoEmpty\" ng-model=\"url\" validate-url allow-empty=\"false\"/>\n * <div ng-show=\"myForm.urlFieldNoEmpty.$error.validUrl\">\n * Invalid URL format or empty value not allowed.\n * </div>\n *\n * <!-- URL validation with both substring and protocol exclusions, and empty values not allowed -->\n * <input type=\"text\" name=\"urlFieldFullValidation\" ng-model=\"url\" validate-url exclude=\"/repositories\" exclude-protocol=\"ftp\" allow-empty=\"false\"/>\n * <div ng-show=\"myForm.urlFieldFullValidation.$error.validUrl\">\n * Invalid URL format, contains excluded substring, uses an excluded protocol, or empty value not allowed.\n * </div>\n * </form>\n * </pre>\n *\n * @usage\n * This directive can be added as an attribute to any input field where URL validation is required.\n * It will automatically validate the input value.\n *\n * Optional attributes:\n * - `exclude`: A string specifying a substring that must not be present in the URL.\n * - `exclude-protocol`: A comma-separated list of protocols (e.g., `ftp,http`) that must not be used in the URL.\n * - `allow-empty`: A boolean attribute (`true` by default). If set to `false`, empty values are considered invalid.\n */\n\nimport {UrlUtils} from \"../../utils/url-utils\";\n\nconst modules = [];\n\nangular\n .module('graphdb.framework.core.directives.validate-url', modules)\n .directive('validateUrl', validateUrl);\n\nfunction validateUrl() {\n return {\n restrict: 'A',\n require: 'ngModel',\n link: function (scope, element, attr, ctrl) {\n ctrl.$validators.validUrl = function (modelValue, viewValue) {\n // Check if empty values should be allowed\n if (ctrl.$isEmpty(viewValue)) {\n return attr.allowEmpty !== 'false';\n }\n\n if (!UrlUtils.isValidUrl(viewValue)) {\n return false;\n }\n\n if (attr.exclude && !UrlUtils.doesNotContain(viewValue, attr.exclude)) {\n return false;\n }\n\n if (attr.excludeProtocol) {\n const excludedProtocols = attr.excludeProtocol.split(',');\n if (!UrlUtils.doesNotUseProtocol(viewValue, excludedProtocols)) {\n return false;\n }\n }\n return true;\n };\n }\n };\n}\n","import {\n FILENAME_PATTERN,\n NUMBER_PATTERN,\n SIGNED_NUMBER_PATTERN,\n REPOSITORY_TYPES,\n STATIC_RULESETS,\n} from \"./repository.constants\";\nimport {decodeHTML} from \"../../../app\";\nimport './controllers/manage-remote-location-dialog.controller';\nimport {RemoteLocationType} from \"../models/repository/remote-location.model\";\nimport {\n service,\n AuthenticationStorageService,\n AuthorizationService,\n GuidesService,\n BroadcastService,\n MessageType,\n BroadcastMessage,\n UriUtil,\n} from '@ontotext/workbench-api';\n\nconst ENTITY_INDEX_SIZE_MIN = 10000;\n\nexport const getFileName = function(path) {\n let lastIdx = path.lastIndexOf('/');\n if (lastIdx === -1) {\n lastIdx = path.lastIndexOf('\\\\');\n }\n let name = path;\n if (lastIdx !== -1) {\n name = name.substring(lastIdx + 1);\n }\n return name;\n};\n\nconst parseNumberParamsIfNeeded = function(params) {\n if (!params) {\n return;\n }\n\n Object.keys(params).forEach((key) => {\n const param = params[key];\n if (param && typeof param.value === 'string') {\n const possibleNumber = parseFloat(params[key].value);\n if (!isNaN(possibleNumber) && numberParamToErrorKey[key]) {\n params[key].value = Number.isInteger(possibleNumber) ? parseInt(param.value, 10) : possibleNumber;\n // internal prop to indicate number value and save extra checks\n param.isNumber = true;\n }\n }\n });\n};\n\nconst parseMemberParamIfNeeded = function(param) {\n if (param && param.member) {\n param.member.value = [];\n }\n};\n\nconst getShaclOptionsClass = function() {\n const optionsModule = document.getElementById('shaclOptions');\n\n if (optionsModule) {\n const isAriaExpanded = optionsModule.getAttribute('aria-expanded');\n if (isAriaExpanded && isAriaExpanded === 'true') {\n return 'ri-arrow-down-s-line';\n }\n }\n return 'ri-arrow-right-s-line';\n};\n\nconst numberParamToErrorKey = {\n queryLimitResults: 'invalid.query.limit',\n queryTimeout: 'invalid.query.timeout',\n validationResultsLimitTotal: 'invalid.validation.results.limit.total',\n validationResultsLimitPerConstraint: 'invalid.validation.results.limit.per.constraint',\n joinWorkerThreads: 'invalid.join.worker.threads',\n leftJoinWorkerThreads: 'invalid.left.join.worker.threads',\n unionWorkerThreads: 'invalid.union.worker.threads',\n boundJoinBlockSize: 'invalid.bound.join.block.size',\n entityIndexSize: 'invalid.entity.index.size',\n};\n\nconst getNumberFormatError = function(params, $translate) {\n if (!params) {\n return '';\n }\n\n const errorEntry = Object.keys(params).find((key) => {\n const param = params[key];\n let pattern = NUMBER_PATTERN;\n\n if (key === 'queryTimeout' || key === 'queryLimitResults') {\n pattern = SIGNED_NUMBER_PATTERN;\n }\n\n return param.isNumber && !pattern.test(param.value);\n });\n\n return errorEntry && numberParamToErrorKey[errorEntry]\n ? $translate.instant(numberParamToErrorKey[errorEntry])\n : '';\n};\n\nconst filterLocations = function(result) {\n return result.filter((location) => location.isGraphDBLocation() && !location.errorMsg && !location.degradedReason);\n};\n\n/**\n * Gets the remote locations that are error free, without degraded reason and is not of type Ontopic\n * @param {*} $repositories the repositories service\n * @return {[] | Promise} returns the locations as array or a promise of the array\n */\nconst getFilteredLocations = function($repositories) {\n // Don't allow the user to create repository on location with error or degradeded reason\n return $repositories.getLocations().then((locations) => filterLocations(locations));\n};\n\nconst modules = [\n 'ngCookies',\n 'ui.bootstrap',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.utils.localstorageadapter',\n 'toastr',\n 'ngFileUpload',\n 'graphdb.framework.repositories.controllers.manage-remote-location-dialog',\n];\n\nangular.module('graphdb.framework.repositories.controllers', modules)\n .controller('LocationsAndRepositoriesCtrl', LocationsAndRepositoriesCtrl)\n .controller('ChooseRepositoryCtrl', ChooseRepositoryCtrl)\n .controller('AddRepositoryCtrl', AddRepositoryCtrl)\n .controller('EditRepositoryCtrl', EditRepositoryCtrl)\n .controller('EditRepositoryFileCtrl', EditRepositoryFileCtrl)\n .controller('UploadRepositoryConfigCtrl', UploadRepositoryConfigCtrl);\n\nLocationsAndRepositoriesCtrl.$inject = ['$scope', '$rootScope', '$uibModal', 'toastr', '$repositories', 'ModalService', 'LocationsRestService',\n 'LocalStorageAdapter', '$interval', '$translate', '$q'];\n\nfunction LocationsAndRepositoriesCtrl($scope, $rootScope, $uibModal, toastr, $repositories, ModalService, LocationsRestService, // NOSONAR\n LocalStorageAdapter, $interval, $translate, $q) {\n const guidesService = service(GuidesService);\n const authorizationService = service(AuthorizationService);\n $scope.RemoteLocationType = RemoteLocationType;\n $scope.loader = true;\n /**\n * @type {RemoteLocationModel[]}\n */\n $scope.locations = [];\n\n $scope.isLocationInactive = function(location) {\n return !location.active || !$scope.hasActiveLocation();\n };\n\n const getLocationsAbortRequestPromise = $q.defer();\n //Get locations\n function getLocations() {\n return $repositories.getLocations(getLocationsAbortRequestPromise)\n .then((locations) => {\n $scope.locations = locations;\n return locations;\n })\n .finally(() => $scope.loader = false);\n }\n\n $scope.getLocalLocation = (local, locationType) => {\n const remoteLocationModel = $scope.locations.filter((location) => {\n let locationTypeCheck = true;\n if (locationType) {\n locationTypeCheck = location.locationType === locationType;\n }\n return locationTypeCheck && location.local === local;\n });\n\n // Repository managers can access all locations.\n if ($scope.isRepoManager()) {\n return remoteLocationModel;\n }\n\n // Users without the repository manager role can access only locations where they have\n // repository-specific maintain permission for at least one repository.\n return remoteLocationModel.filter((location) => $scope.getRepositoriesFromLocation(location.uri)?.length > 0);\n };\n\n $scope.hasAnyRemoteLocation = (local, locationTypes) => {\n return locationTypes.some((locationType) => $scope.getLocalLocation(local, locationType).length > 0);\n };\n\n $scope.hasActiveLocation = function() {\n return $repositories.hasActiveLocation();\n };\n\n $scope.getActiveLocation = function() {\n return $repositories.getActiveLocation();\n };\n\n $scope.getLocationError = function() {\n return $repositories.getLocationError();\n };\n\n $scope.getDegradedReason = function() {\n return $repositories.getDegradedReason();\n };\n\n $scope.getRepositories = function() {\n return $repositories.getRepositories();\n };\n\n $scope.isRepoActive = function(repo) {\n return $repositories.isRepoActive(repo);\n };\n\n //Delete location\n $scope.deleteLocation = function(uri) {\n ModalService.openSimpleModal({\n title: $translate.instant('location.confirm.detach'),\n message: $translate.instant('location.confirm.detach.warning', {uri: uri}),\n warning: true,\n }).result\n .then(function() {\n $scope.loader = true;\n $repositories.deleteLocation(uri).finally(() => getLocations());\n });\n };\n\n //Add new location\n $scope.addLocationHttp = function(dataAddLocation) {\n $scope.loader = true;\n LocationsRestService.addLocation(dataAddLocation)\n .success(function() {\n //Reload locations and repositories\n $repositories.init();\n })\n .error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n })\n .finally(() => getLocations());\n };\n\n $scope.addLocation = () => {\n $scope.openRemoteLocationDialog();\n };\n\n $scope.editLocation = (remoteLocation) => {\n if (remoteLocation.locationType === undefined) {\n // for backward compatibility. The old instances this property not exist so we assume it is GraphDB instance.\n remoteLocation.locationType = RemoteLocationType.GRAPH_DB;\n }\n $scope.openRemoteLocationDialog(remoteLocation);\n };\n\n /**\n * Opens the location dialog.\n * @param {RemoteLocationModel} remoteLocation (optional) If a location is passed, the dialog will open for editing; otherwise, it will open for registering a new one.\n */\n $scope.openRemoteLocationDialog = (remoteLocation) => {\n $uibModal.open({\n templateUrl: 'js/angular/repositories/templates/manage-remote-location-dialog.template.html',\n windowClass: 'addLocationDialog',\n controller: 'ManageRemoteLocationDialogController',\n resolve: {\n data: () => {\n return {\n remoteLocation,\n };\n },\n },\n }).result.then((dataAddLocation) => {\n if (remoteLocation) {\n $scope.editLocationHttp(dataAddLocation);\n } else {\n $scope.addLocationHttp(dataAddLocation);\n }\n });\n };\n\n //Edit location\n $scope.editLocationHttp = function(dataEditLocation) {\n $scope.loader = true;\n LocationsRestService.editLocation(dataEditLocation)\n .success(function() {\n //Reload locations and repositories\n $repositories.init();\n })\n .error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n })\n .finally(() => getLocations());\n };\n\n //Change repository\n $scope.setRepository = function(repo) {\n $repositories.setRepository(repo);\n };\n\n //Delete repository\n $scope.deleteRepository = function(repository) {\n ModalService.openSimpleModal({\n title: $translate.instant('common.confirm.delete'),\n message: decodeHTML($translate.instant('delete.repo.warning.msg', {repositoryId: repository.id})),\n warning: true,\n }).result\n .then(function() {\n $scope.loader = true;\n $repositories.deleteRepository(repository)\n .finally(() => {\n getLocations();\n $scope.loader = false;\n });\n removeCachedGraphsOnDelete(repository);\n });\n };\n\n $scope.restartRepository = function(repository) {\n ModalService.openSimpleModal({\n title: $translate.instant('confirm.restart.repo'),\n message: decodeHTML($translate.instant('confirm.restart.repo.warning.msg', {repositoryId: repository.id})),\n warning: true,\n }).result\n .then(function() {\n $scope.loader = true;\n $repositories.restartRepository(repository).finally(() => getLocations());\n });\n };\n\n $scope.toggleDefaultRepository = function(repositoryId) {\n if ($scope.getDefaultRepository() === repositoryId) {\n // unset\n $repositories.setDefaultRepository(null);\n } else {\n // set\n $repositories.setDefaultRepository(repositoryId);\n }\n };\n\n $scope.getDefaultRepository = function() {\n return $repositories.getDefaultRepository();\n };\n\n /* Unused, data urls don't behave well in all browsers, avoid them when possible\n $scope.getRepoTurtleConfig = function (repository) {\n function downloadRepoConfig(repoTurtleConfig, repository) {\n $('.download-turtle-config')\n .mouseup(function () {\n $(this)\n .attr('href', repoTurtleConfig)\n .attr('download', repository.id + '-config.ttl')\n });\n }\n\n $repositories.getRepositoryTurtleConfig(repository)\n .success(function (response) {\n var repoTurtleConfigDownload = 'data:application/octet-stream;charset=utf-8;base64,'\n + btoa(unescape(encodeURIComponent(response)));\n downloadRepoConfig(repoTurtleConfigDownload, repository);\n })\n .error(function () {\n toastr.error('Error getting repository configuration for '' + repository.id + ''');\n });\n };\n */\n\n $scope.getRepositoryDownloadLink = function(repository) {\n let url = `rest/repositories/${repository.id}${(repository.type === REPOSITORY_TYPES.ontop ? '/download-zip'\n : '/download-ttl')}?location=${repository.location}`;\n const token = service(AuthenticationStorageService).getAuthToken().getValue();\n if (token) {\n url = `${url}&authToken=${encodeURIComponent(token)}`;\n }\n return url;\n };\n\n ///Copy to clipboard popover options\n $scope.copyToClipboard = function(uri) {\n ModalService.openCopyToClipboardModal(uri);\n };\n\n $scope.fromFile = function() {\n const modalInstance = $uibModal.open({\n templateUrl: 'js/angular/templates/modal/upload-repository-config.html',\n controller: 'UploadRepositoryConfigCtrl',\n });\n modalInstance.result.then(function() {\n $repositories.init();\n });\n };\n\n //Delete repository\n $scope.openActiveLocationSettings = function() {\n $uibModal.open({\n templateUrl: 'js/angular/settings/modal/location-settings.html',\n controller: 'ActiveLocationSettingsCtrl',\n });\n };\n\n getLocations();\n const timer = $interval(function() {\n if (guidesService.isActive() && !$rootScope.guidePaused) {\n // Don't refresh list while a guide is active\n return;\n }\n\n // Update repositories state\n $repositories.initQuick();\n getLocations();\n }, 5000);\n\n $scope.$on('$destroy', function() {\n $interval.cancel(timer);\n // If there is a getLocations request in progress, abort it so the service can properly clear flags\n if (getLocationsAbortRequestPromise) {\n getLocationsAbortRequestPromise.resolve();\n }\n });\n\n function removeCachedGraphsOnDelete(repo) {\n const cashedDependenciesGraphPrefix = `dependencies-selectedGraph-${repo.id}`;\n const cashedClassHierarchyGraphPrefix = `classHierarchy-selectedGraph-${repo.id}`;\n angular.forEach(LocalStorageAdapter.keys(), function(key) {\n // remove everything but the hide prefixes setting, it should always persist\n if (key.startsWith(cashedClassHierarchyGraphPrefix) || key.startsWith(cashedDependenciesGraphPrefix)) {\n LocalStorageAdapter.remove(key);\n }\n });\n }\n\n /**\n * Returns the repositories available in the specified location that the current user is allowed to access.\n *\n * @param {string} locationId The identifier of the location.\n * @returns {Array<Repository>} The repositories visible to the current user in the specified location.\n */\n $scope.getRepositoriesFromLocation = function(locationId) {\n const repositoriesFromLocation = $repositories.getRepositoriesFromLocation(locationId) || [];\n\n if ($scope.isRepoManager()) {\n return repositoriesFromLocation;\n }\n\n return repositoriesFromLocation.filter((repo) => authorizationService.canReadRepo(repo) || authorizationService.canReadGqlRepo(repo));\n };\n\n $scope.isRepoManager = () => {\n return authorizationService.isRepoManager();\n };\n\n $scope.canMaintainRepo = (repo) => {\n return authorizationService.canMaintainRepo(repo);\n };\n}\n\nUploadRepositoryConfigCtrl.$inject = ['$scope', '$uibModalInstance', 'Upload', 'toastr', '$translate'];\n\nfunction UploadRepositoryConfigCtrl($scope, $uibModalInstance, Upload, toastr, $translate) {\n $scope.upload = function(files) {\n if (files && files.length) {\n $scope.uploadFile = files[0];\n }\n };\n $scope.ok = function() {\n if ($scope.uploadFile) {\n $scope.uploadFileLoader = true;\n Upload.upload({\n url: 'rest/repositories',\n method: 'POST',\n data: {config: $scope.uploadFile},\n })\n .success(function() {\n $scope.uploadFileLoader = false;\n $uibModalInstance.close();\n })\n .error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n $scope.uploadFileLoader = false;\n });\n }\n };\n $scope.cancel = function() {\n $uibModalInstance.dismiss('cancel');\n };\n}\n\nChooseRepositoryCtrl.$inject = ['$scope', '$location'];\n\nfunction ChooseRepositoryCtrl($scope, $location) {\n $scope.repositoryTypes = REPOSITORY_TYPES;\n $scope.chooseRepositoryType = function(repoType) {\n $location.path(`${$location.path()}/${repoType}`);\n };\n}\n\nAddRepositoryCtrl.$inject = ['$rootScope', '$scope', 'toastr', '$repositories', '$location', '$timeout', 'Upload', '$routeParams',\n 'RepositoriesRestService', '$translate', 'productInfo'];\n\nfunction AddRepositoryCtrl($rootScope, $scope, toastr, $repositories, $location, $timeout, Upload, $routeParams, RepositoriesRestService, $translate, productInfo) {\n const broadcastService = service(BroadcastService);\n\n $scope.rulesets = STATIC_RULESETS.slice();\n $scope.repositoryTypes = REPOSITORY_TYPES;\n $scope.params = $routeParams;\n $scope.repositoryType = $routeParams.repositoryType;\n $scope.enable = true;\n $scope.entityIndexSizeMin = ENTITY_INDEX_SIZE_MIN;\n $scope.documentationUrlForStorageEncryption = UriUtil.resolveDocumentationUrl(productInfo.shortVersion, 'creating-a-repository.html#using-workbench');\n $scope.encryptInput = {hovered: false};\n\n $scope.loader = true;\n $scope.pageTitle = $translate.instant('view.create.repo.title');\n $scope.repositoryInfo = {\n id: '',\n params: {},\n title: '',\n type: '',\n location: '',\n };\n\n getFilteredLocations($repositories)\n .then((locations) => {\n $scope.locations = locations;\n });\n\n $scope.changedLocation = function() {\n $scope.$broadcast('changedLocation');\n };\n\n function isValidEERepository(repositoryType) {\n return $scope.isEnterprise() && (repositoryType === REPOSITORY_TYPES.graphdbRepo);\n }\n\n function isValidSERepository(repositoryType) {\n return !$scope.isFreeEdition() && !$scope.isEnterprise() && repositoryType === REPOSITORY_TYPES.graphdbRepo;\n }\n\n function isValidFRRepository(repositoryType) {\n return $scope.isFreeEdition() && repositoryType === REPOSITORY_TYPES.graphdbRepo;\n }\n\n function isValidOntopRepository(repositoryType) {\n return repositoryType === REPOSITORY_TYPES.ontop;\n }\n\n function isValidFedXRepository(repositoryType) {\n return repositoryType === REPOSITORY_TYPES.fedx;\n }\n\n function isRepositoryTypeValid(repositoryType) {\n return isValidEERepository(repositoryType) || isValidSERepository(repositoryType)\n || isValidFRRepository(repositoryType) || isValidOntopRepository(repositoryType)\n || isValidFedXRepository(repositoryType);\n }\n\n function setPageTitle(repositoryType) {\n switch (repositoryType) {\n case REPOSITORY_TYPES.graphdbRepo:\n $scope.pageTitle = $translate.instant('view.create.repo.title', {repoType: 'GraphDB'});\n break;\n case REPOSITORY_TYPES.ontop:\n $scope.pageTitle = $translate.instant('view.create.repo.title', {repoType: 'Ontop Virtual SPARQL'});\n break;\n case REPOSITORY_TYPES.fedx:\n $scope.pageTitle = $translate.instant('view.create.repo.title', {repoType: 'FedX Virtual SPARQL'});\n break;\n }\n }\n\n $scope.getConfig = function(repoType) {\n RepositoriesRestService.getRepositoryConfiguration(repoType).then(function(resp) {\n const data = resp.data;\n $scope.repositoryInfo.params = data.params;\n $scope.repositoryInfo.type = data.type;\n parseNumberParamsIfNeeded($scope.repositoryInfo.params);\n parseMemberParamIfNeeded($scope.repositoryInfo.params);\n $scope.loader = false;\n // The clean way is the \"autofocus\" attribute and we use it but it doesn't seem to\n // work in all browsers because of the way dynamic content is handled so give it another\n // try here.\n $timeout(function() {\n // Focus the ID field\n angular.element(document).find('#id').focus();\n }, 50);\n }).catch(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n $scope.loader = false;\n });\n };\n\n if ($scope.repositoryType && isRepositoryTypeValid($scope.repositoryType)) {\n $scope.repositoryInfo.type = $scope.repositoryType;\n $scope.getConfig($scope.repositoryType);\n setPageTitle($scope.repositoryType);\n } else {\n $location.path('/repository/create');\n }\n\n $scope.hasActiveLocation = function() {\n return $repositories.hasActiveLocation();\n };\n\n $scope.activeLocation = function() {\n return $repositories.getActiveLocation();\n };\n\n let isInvalidPieFile = false;\n $scope.uploadRuleset = function(files) {\n if (files && files.length) {\n $scope.uploadFile = files[0];\n $scope.uploadFileLoader = true;\n Upload.upload({\n url: 'rest/repositories/ruleset/upload',\n data: {ruleset: $scope.uploadFile, location: $scope.repositoryInfo.location},\n }).progress(function(evt) {\n /*\t\t\t\t\t\tvar progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\n console.log('progress: ' + progressPercentage + '% ' + evt.config.file.name);*/\n }).success(function(data) {\n if (!data.success) {\n toastr.error(data.errorMessage);\n isInvalidPieFile = true;\n $scope.uploadFile = '';\n } else {\n isInvalidPieFile = false;\n const fileName = $scope.uploadFile.name;\n const newValue = {id: data.fileLocation, name: 'Custom: ' + fileName};\n if ($scope.rulesetPie) {\n // file was previously uploaded\n $scope.rulesets[0] = newValue;\n } else {\n // file uploaded for the first time\n $scope.rulesets.unshift(newValue);\n }\n $scope.rulesetPie = data.fileLocation;\n $scope.rulesetPieFile = fileName;\n $scope.repositoryInfo.params.ruleset.value = $scope.rulesetPie;\n }\n $scope.uploadFileLoader = false;\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n $scope.uploadFile = '';\n $scope.uploadFileLoader = false;\n isInvalidPieFile = true;\n });\n }\n };\n\n $scope.noMembersError = function() {\n toastr.error($translate.instant('fedx.create.repo.no.members.warning'));\n };\n\n $scope.goBackToPreviousLocation = function() {\n const previous = $location.search().previous;\n if (previous) {\n $location.search('previous', null);\n const isAbsolute = typeof previous === 'string' && previous.charAt(0) === '/';\n const target = isAbsolute ? previous : '/' + previous;\n $location.url(target);\n } else {\n $location.path('/repository');\n }\n };\n\n $scope.createRepoHttp = function() {\n $scope.loader = true;\n RepositoriesRestService.createRepository($scope.repositoryInfo)\n .then(function() {\n toastr.success($translate.instant('created.repo.success.msg', {repoId: $scope.repositoryInfo.id}));\n return $repositories.init();\n })\n .then(() => {\n $scope.goBackToPreviousLocation();\n broadcastService.sendMessage(new BroadcastMessage(MessageType.REPOSITORIES_UPDATED));\n })\n .catch(function(error) {\n const msg = getError(error.data);\n toastr.error(msg, $translate.instant('common.error'));\n })\n .finally(() => {\n $scope.loader = false;\n });\n };\n\n $scope.createRepo = function() {\n if (!$scope.repositoryInfo.id) {\n toastr.error($translate.instant('empty.repoid.warning'));\n return;\n }\n\n $scope.isInvalidRepoName = !FILENAME_PATTERN.test($scope.repositoryInfo.id);\n $scope.isInvalidEntityIndexSizeMin = $scope.repositoryInfo.params.entityIndexSize?.value < ENTITY_INDEX_SIZE_MIN;\n const numberFormatError = getNumberFormatError($scope.repositoryInfo.params, $translate);\n\n if (isInvalidPieFile) {\n toastr.error($translate.instant('invalid.ruleset.file.error'));\n } else if ($scope.isInvalidRepoName) {\n toastr.error($translate.instant('wrong.repo.name.error'));\n } else if ($scope.repositoryType === \"fedx\" && $scope.repositoryInfo.params.member.value.length === 0) {\n $scope.noMembersError();\n } else if (numberFormatError) {\n toastr.error(numberFormatError);\n } else if ($scope.isInvalidEntityIndexSizeMin) {\n toastr.error($translate.instant('repo.error.entityIndex.min'));\n } else {\n $scope.createRepoHttp();\n }\n };\n\n $scope.rulesetWarning = function() {\n const pp = $scope.repositoryInfo.params;\n if (pp === undefined || pp.ruleset === undefined || pp.disableSameAs === undefined) {\n return '';\n }\n\n if (pp.ruleset.value.indexOf('owl') === 0 && pp.disableSameAs.value === 'true') {\n return $translate.instant('repoTooltips.rulesetWarnings.needsSameAs');\n } else if (pp.ruleset.value.indexOf('rdfs') === 0 && pp.disableSameAs.value === 'false') {\n return $translate.instant('repoTooltips.rulesetWarnings.doesntNeedSameAs');\n } else if (pp.ruleset.value === $scope.rulesetPie) {\n return $translate.instant('repoTooltips.rulesetWarnings.customRuleset');\n } else {\n return '';\n }\n };\n\n $scope.getShaclOptionsClass = function() {\n return getShaclOptionsClass();\n };\n //TODO - check if repositoryID exist\n\n // Request auto-focus of the ID input when creating a repo (but not when editing)\n $scope.autofocusId = 'autofocus';\n\n const languageChangedSubscription = $rootScope.$on('$translateChangeSuccess', () => {\n setPageTitle($scope.repositoryType);\n });\n $scope.$on('$destroy', () => {\n languageChangedSubscription();\n });\n}\n\nEditRepositoryFileCtrl.$inject = ['$scope', '$uibModalInstance', 'RepositoriesRestService', 'file', 'toastr', '$translate', 'dialogTitle', 'repositoryReference'];\n\nfunction EditRepositoryFileCtrl($scope, $uibModalInstance, RepositoriesRestService, file, toastr, $translate, dialogTitle, repositoryReference) {\n $scope.dialogTitle = dialogTitle ? dialogTitle : $translate.instant('update.file.content.header');\n if (file) {\n RepositoriesRestService.getRepositoryFileContent(file, repositoryReference).success(function(data) {\n $scope.fileContent = data;\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n });\n }\n\n $scope.ok = function() {\n $uibModalInstance.close({\n content: $scope.fileContent,\n fileLocation: file,\n });\n };\n\n $scope.cancel = function() {\n $uibModalInstance.dismiss('cancel');\n };\n}\n\nEditRepositoryCtrl.$inject = ['$rootScope', '$scope', '$routeParams', 'toastr', '$repositories', '$location', 'ModalService', 'RepositoriesRestService',\n '$translate', 'MonitoringRestService'];\n\nfunction EditRepositoryCtrl($rootScope, $scope, $routeParams, toastr, $repositories, $location, ModalService, RepositoriesRestService, $translate, MonitoringRestService) {\n // =========================\n // Private variables\n // =========================\n\n const authorizationService = service(AuthorizationService);\n const broadcastService = service(BroadcastService);\n\n // =========================\n // Public variables\n // =========================\n\n $scope.rulesets = STATIC_RULESETS.slice();\n $scope.repositoryTypes = REPOSITORY_TYPES;\n $scope.entityIndexSizeMin = ENTITY_INDEX_SIZE_MIN;\n\n $scope.editRepoPage = true;\n $scope.canEditRepoId = false;\n // Renaming a repository is allowed only for administrators and repository managers. Users with a repository\n // specific maintain permission may change the repository configuration, but not its id.\n $scope.canRenameRepo = false;\n $scope.isRepoInCluster = true;\n $scope.params = $routeParams;\n $scope.loader = true;\n $scope.repositoryInfo = {};\n $scope.repositoryInfo.id = $scope.params.repositoryId;\n $scope.repositoryInfo.location = $scope.params.location;\n $scope.repositoryInfo.restartRequested = false;\n $scope.repositoryType = '';\n $scope.saveRepoId = $scope.params.repositoryId;\n $scope.pageTitle = $translate.instant('view.edit.repo.title', {repositoryId: $scope.params.repositoryId});\n $scope.hasActiveLocation = function() {\n return $repositories.hasActiveLocation();\n };\n\n // =========================\n // Private methods\n // =========================\n\n const loadRepositoryData = () => {\n return getFilteredLocations($repositories).then((locations) => {\n $scope.locations = locations;\n return RepositoriesRestService.getRepository($scope.repositoryInfo);\n });\n };\n\n const initView = (repositoryInfoResponse) => {\n const repositoryInfo = repositoryInfoResponse.data;\n $scope.canRenameRepo = authorizationService.isAdminOrRepoManager() && repositoryInfo.type === REPOSITORY_TYPES.graphdbRepo;\n if (angular.isDefined(repositoryInfo.params.ruleset)) {\n let ifRulesetExists = false;\n angular.forEach($scope.rulesets, function(item) {\n if (item.id === repositoryInfo.params.ruleset.value) {\n ifRulesetExists = true;\n }\n });\n if (repositoryInfo.params.ruleset && !ifRulesetExists) {\n const name = getFileName(repositoryInfo.params.ruleset.value);\n $scope.rulesets.unshift({id: repositoryInfo.params.ruleset.value, name: 'Custom: ' + name});\n }\n }\n $scope.repositoryInfo = repositoryInfo;\n $scope.setRepositoryType(repositoryInfo.type);\n parseNumberParamsIfNeeded($scope.repositoryInfo.params);\n $scope.repositoryInfo.saveId = $scope.saveRepoId;\n $scope.loader = false;\n };\n\n // =========================\n // Public methods\n // =========================\n\n $scope.$watch($scope.hasActiveLocation, function() {\n if ($scope.hasActiveLocation) {\n // Should get locations before getting repository info\n let repositoryInfoResponse;\n loadRepositoryData().then((repositoryInfo) => {\n repositoryInfoResponse = repositoryInfo;\n return MonitoringRestService.monitorActiveOperations($scope.repositoryInfo.id);\n }).then((monitoringResponse) => {\n $scope.isRepoInCluster = monitoringResponse.hasClusterOperation();\n }).catch((error) => {\n if (!repositoryInfoResponse) {\n $scope.repositoryInfo = undefined;\n return Promise.reject(error);\n }\n // the monitoring request failed, but we can still continue\n return Promise.resolve();\n }).then(() => {\n initView(repositoryInfoResponse);\n }).catch((response) => {\n const data = response.data;\n const status = response.status;\n const repositoryId = $routeParams.repositoryId;\n let toastrMsg;\n\n if (status === 404 && repositoryId !== 'system') {\n toastrMsg = decodeHTML($translate.instant('edit.repo.error.not.exists', {repositoryId}));\n } else if (status === 404 && repositoryId === 'system') {\n toastrMsg = decodeHTML($translate.instant('edit.system.repo.warning'));\n } else {\n toastrMsg = getError(data);\n }\n\n toastr.error(toastrMsg, $translate.instant('common.error'), {allowHtml: true});\n\n if (status === 404) {\n setTimeout(function() {\n $scope.loader = false;\n $location.path('repository');\n }, 1000);\n } else {\n $scope.loader = false;\n }\n });\n }\n });\n\n $scope.setRepositoryType = function(type) {\n $scope.repositoryType = type;\n };\n\n $scope.noMembersError = function() {\n toastr.error($translate.instant('fedx.create.repo.no.members.warning'));\n };\n\n $scope.editRepoHttp = function() {\n $scope.loader = true;\n RepositoriesRestService.editRepository($scope.repositoryInfo.saveId, $scope.repositoryInfo)\n .success(function() {\n toastr.success($translate.instant('edit.repo.success.msg', {saveId: $scope.repositoryInfo.saveId}));\n $repositories.init().finally(() => {\n $scope.goBackToPreviousLocation();\n broadcastService.sendMessage(new BroadcastMessage(MessageType.REPOSITORIES_UPDATED));\n });\n if ($scope.repositoryInfo.saveId === $scope.repositoryInfo.id && $scope.repositoryInfo.restartRequested) {\n $repositories.restartRepository($scope.repositoryInfo);\n }\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n $scope.loader = false;\n });\n };\n\n $scope.editRepository = function() {\n $scope.isInvalidRepoName = !FILENAME_PATTERN.test($scope.repositoryInfo.id);\n $scope.isInvalidEntityIndexSizeMin = $scope.repositoryInfo.params.entityIndexSize?.value < ENTITY_INDEX_SIZE_MIN;\n const numberFormatError = getNumberFormatError($scope.repositoryInfo.params, $translate);\n let modalMsg = decodeHTML($translate.instant('edit.repo.save.changes.msg', {repoId: $scope.repositoryInfo.id}));\n if ($scope.repositoryInfo.saveId !== $scope.repositoryInfo.id) {\n modalMsg += decodeHTML($translate.instant('edit.repo.rename.changes.msg'));\n } else if ($scope.repositoryInfo.restartRequested) {\n modalMsg += decodeHTML($translate.instant('edit.repo.restart.requested.msg'));\n } else {\n modalMsg += decodeHTML($translate.instant('edit.repo.restart.needed.msg'));\n }\n if ($scope.isInvalidRepoName) {\n toastr.error($translate.instant('wrong.repo.name.error'));\n } else if ($scope.repositoryType === \"fedx\" && $scope.repositoryInfo.params.member.value.length === 0) {\n $scope.noMembersError();\n } else if (numberFormatError) {\n toastr.error(numberFormatError);\n } else if ($scope.isInvalidEntityIndexSizeMin) {\n toastr.error($translate.instant('repo.error.entityIndex.min'));\n } else if (!$scope.canRenameRepo && $scope.repositoryInfo.saveId !== $scope.repositoryInfo.id) {\n toastr.error($translate.instant('edit.repo.id.change.error', {repoType: $scope.repositoryInfo.type}));\n } else {\n ModalService.openSimpleModal({\n title: $translate.instant('common.confirm.save'),\n message: modalMsg,\n warning: true,\n }).result\n .then(function() {\n $scope.editRepoHttp();\n });\n }\n };\n\n $scope.editRepositoryId = function() {\n if (!$scope.canRenameRepo) {\n return;\n }\n const msg = decodeHTML($translate.instant('edit.repo.id.warning.msg'));\n\n ModalService.openSimpleModal({\n title: $translate.instant('confirm.enable.edit'),\n message: msg,\n warning: true,\n }).result.then(function() {\n $scope.canEditRepoId = true;\n });\n };\n\n $scope.goBackToPreviousLocation = function() {\n if (angular.isDefined($routeParams.previous)) {\n delete $location.$$search.previous;\n $location.path('/');\n } else {\n $location.path('/repository');\n }\n };\n\n $scope.getShaclOptionsClass = function() {\n return getShaclOptionsClass();\n };\n\n // =================================\n // Subscriptions and event handlers\n // =================================\n\n const languageChangedSubscription = $rootScope.$on('$translateChangeSuccess', () => {\n $scope.pageTitle = $translate.instant('view.edit.repo.title', {repositoryId: $scope.params.repositoryId});\n });\n $scope.$on('$destroy', () => {\n languageChangedSubscription();\n });\n}\n","import {RemoteLocationAuthType, RemoteLocationModel, RemoteLocationType} from \"../../models/repository/remote-location.model\";\nimport 'angular/core/directives/validate-url.directive';\nimport {UriUtil} from '@ontotext/workbench-api';\n\nconst modules = [\n 'graphdb.framework.core.directives.validate-url',\n];\n\nangular.module('graphdb.framework.repositories.controllers.manage-remote-location-dialog', modules)\n .controller('ManageRemoteLocationDialogController', ManageRemoteLocationDialogController);\n\nManageRemoteLocationDialogController.$inject = ['$scope', '$uibModalInstance', 'productInfo', 'data'];\n\n/**\n * Controller for managing the remote location dialog, which handles both creation and editing of remote locations.\n *\n * @param {Object} $scope\n * @param {Object} $uibModalInstance\n * @param {Object} productInfo\n * @param {Object} data - Data passed to the dialog:\n * - If `data.remoteLocation` is provided, the dialog is in edit mode\n * and the remote location object is initialized with the provided data.\n * - If `data.remoteLocation` is not provided, the dialog is in create mode\n * and a new `RemoteLocationModel` instance is initialized.\n *\n * @constructor\n */\nfunction ManageRemoteLocationDialogController($scope, $uibModalInstance, productInfo, data) {\n /**\n * @type {RemoteLocationModel}\n */\n $scope.remoteLocation = data.remoteLocation ? new RemoteLocationModel({...data.remoteLocation}) : new RemoteLocationModel();\n\n $scope.RemoteLocationType = RemoteLocationType;\n $scope.RemoteLocationAuthType = RemoteLocationAuthType;\n $scope.isEdit = !!data.remoteLocation;\n $scope.documentationUrlForAuthentication = UriUtil.resolveDocumentationUrl(productInfo.shortVersion, 'access-control.html#gdb-authentication');\n\n $scope.ok = () => {\n if ($scope.remoteLocationForm.$pristine || $scope.remoteLocationForm.$invalid) {\n return;\n }\n $uibModalInstance.close($scope.remoteLocation);\n };\n\n $scope.cancel = () => {\n $uibModalInstance.dismiss('cancel');\n };\n\n $scope.onLocationTypeChanged = () => {\n if ([RemoteLocationType.ONTOPIC, RemoteLocationType.SPARQL].includes($scope.remoteLocation.locationType)) {\n $scope.remoteLocation.authType = RemoteLocationAuthType.BASIC;\n } else {\n $scope.remoteLocation.authType = RemoteLocationAuthType.NONE;\n }\n };\n}\n","export const STATIC_RULESETS = [\n {id: 'empty', name: 'No inference'},\n {id: 'rdfs-optimized', name: 'RDFS (Optimized)'},\n {id: 'rdfs', name: 'RDFS'},\n {id: 'rdfsplus-optimized', name: 'RDFS-Plus (Optimized)'},\n {id: 'owl-horst-optimized', name: 'OWL-Horst (Optimized)'},\n {id: 'owl-horst', name: 'OWL-Horst'},\n {id: 'owl2-ql-optimized', name: 'OWL2-QL (Optimized)'},\n {id: 'owl2-ql', name: 'OWL2-QL'},\n {id: 'owl-max-optimized', name: 'OWL-Max (Optimized)'},\n {id: 'owl-max', name: 'OWL-Max'},\n {id: 'owl2-rl-optimized', name: 'OWL2-RL (Optimized)'},\n {id: 'owl2-rl', name: 'OWL2-RL'},\n\n];\n\nexport const REPOSITORY_TYPES = {graphdbRepo: 'graphdb', free: 'free', eeWorker: 'worker', eeMaster: 'master', ontop: 'ontop', se: 'se', fedx: 'fedx'};\nexport const FILENAME_PATTERN = /^[\\w-]+$/;\nexport const NUMBER_PATTERN = /^\\d+$/;\nexport const SIGNED_NUMBER_PATTERN = /^[+-]?\\d+$/;\n","const httpRegex = /^(h|ht|htt|http|https|http:|https:|http:\\/|https:\\/|http:\\/\\/|https:\\/\\/|https?:\\/\\/[\\S]*)$/i;\nconst ftpRegex = /^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\\/|ftps:\\/|ftp:\\/\\/|ftps:\\/\\/[\\S]*)$/i;\n\n\n/**\n * Utilities for URL manipulation, validation, etc.\n */\nexport class UrlUtils {\n /**\n * Validates whether the given string is a valid URL or a partial URL that follows the rules.\n *\n * @param {string} url - The URL string to validate.\n * @return {boolean} True if the URL is valid or a valid partial URL, false otherwise.\n */\n static isValidUrl(url) {\n return httpRegex.test(url) || ftpRegex.test(url);\n }\n\n /**\n * Checks if the URL contains an excluded substring.\n *\n * @param {string} url - The URL string to check.\n * @param {string} exclude - The substring to exclude.\n * @return {boolean} True if the URL does not contain the substring, false if it does.\n */\n static doesNotContain(url, exclude) {\n return !new RegExp(exclude).test(url);\n }\n\n /**\n * Checks if the URL uses an excluded protocol.\n *\n * @param {string} url - The URL string to check.\n * @param {Array<string>} excludedProtocols - The protocols to exclude.\n * @return {boolean} True if the URL does not use the excluded protocols, false if it does.\n */\n static doesNotUseProtocol(url, excludedProtocols) {\n const protocolPattern = new RegExp('^(' + excludedProtocols.join('|') + ')://', 'i');\n return !protocolPattern.test(url);\n }\n}\n"],"names":["angular","module","directive","restrict","require","link","scope","element","attr","ctrl","$validators","validUrl","modelValue","viewValue","$isEmpty","allowEmpty","UrlUtils","isValidUrl","exclude","doesNotContain","excludeProtocol","excludedProtocols","split","doesNotUseProtocol","ENTITY_INDEX_SIZE_MIN","getFileName","path","lastIdx","lastIndexOf","name","substring","parseNumberParamsIfNeeded","params","Object","keys","forEach","key","param","value","possibleNumber","parseFloat","isNaN","numberParamToErrorKey","Number","isInteger","parseInt","isNumber","getShaclOptionsClass","optionsModule","document","getElementById","isAriaExpanded","getAttribute","queryLimitResults","queryTimeout","validationResultsLimitTotal","validationResultsLimitPerConstraint","joinWorkerThreads","leftJoinWorkerThreads","unionWorkerThreads","boundJoinBlockSize","entityIndexSize","getNumberFormatError","$translate","errorEntry","find","pattern","NUMBER_PATTERN","SIGNED_NUMBER_PATTERN","test","instant","getFilteredLocations","$repositories","getLocations","then","locations","filter","location","isGraphDBLocation","errorMsg","degradedReason","LocationsAndRepositoriesCtrl","$scope","$rootScope","$uibModal","toastr","ModalService","LocationsRestService","LocalStorageAdapter","$interval","$q","guidesService","service","GuidesService","authorizationService","AuthorizationService","RemoteLocationType","loader","isLocationInactive","active","hasActiveLocation","getLocationsAbortRequestPromise","defer","finally","getLocalLocation","local","locationType","remoteLocationModel","locationTypeCheck","isRepoManager","getRepositoriesFromLocation","uri","length","hasAnyRemoteLocation","locationTypes","some","getActiveLocation","getLocationError","getDegradedReason","getRepositories","isRepoActive","repo","deleteLocation","openSimpleModal","title","message","warning","result","addLocationHttp","dataAddLocation","addLocation","success","init","error","data","msg","getError","openRemoteLocationDialog","editLocation","remoteLocation","undefined","GRAPH_DB","open","templateUrl","windowClass","controller","resolve","editLocationHttp","dataEditLocation","setRepository","deleteRepository","repository","decodeHTML","repositoryId","id","cashedDependenciesGraphPrefix","cashedClassHierarchyGraphPrefix","startsWith","remove","removeCachedGraphsOnDelete","restartRepository","toggleDefaultRepository","getDefaultRepository","setDefaultRepository","getRepositoryDownloadLink","url","type","REPOSITORY_TYPES","ontop","token","AuthenticationStorageService","getAuthToken","getValue","encodeURIComponent","copyToClipboard","openCopyToClipboardModal","fromFile","openActiveLocationSettings","timer","isActive","guidePaused","initQuick","$on","cancel","locationId","repositoriesFromLocation","canReadRepo","canReadGqlRepo","canMaintainRepo","UploadRepositoryConfigCtrl","$uibModalInstance","Upload","upload","files","uploadFile","ok","uploadFileLoader","method","config","close","dismiss","ChooseRepositoryCtrl","$location","repositoryTypes","chooseRepositoryType","repoType","AddRepositoryCtrl","$timeout","$routeParams","RepositoriesRestService","productInfo","broadcastService","BroadcastService","setPageTitle","repositoryType","graphdbRepo","pageTitle","fedx","rulesets","STATIC_RULESETS","slice","enable","entityIndexSizeMin","documentationUrlForStorageEncryption","UriUtil","resolveDocumentationUrl","shortVersion","encryptInput","hovered","repositoryInfo","changedLocation","$broadcast","getConfig","getRepositoryConfiguration","resp","member","focus","catch","isEnterprise","isValidEERepository","isFreeEdition","isValidSERepository","isValidFRRepository","isValidOntopRepository","isValidFedXRepository","activeLocation","isInvalidPieFile","uploadRuleset","ruleset","progress","evt","fileName","newValue","fileLocation","rulesetPie","unshift","rulesetPieFile","errorMessage","noMembersError","goBackToPreviousLocation","previous","search","target","charAt","createRepoHttp","createRepository","repoId","sendMessage","BroadcastMessage","MessageType","REPOSITORIES_UPDATED","createRepo","isInvalidRepoName","FILENAME_PATTERN","isInvalidEntityIndexSizeMin","numberFormatError","rulesetWarning","pp","disableSameAs","indexOf","autofocusId","languageChangedSubscription","EditRepositoryFileCtrl","file","dialogTitle","repositoryReference","getRepositoryFileContent","fileContent","content","EditRepositoryCtrl","MonitoringRestService","editRepoPage","canEditRepoId","canRenameRepo","isRepoInCluster","restartRequested","saveRepoId","$watch","repositoryInfoResponse","getRepository","monitorActiveOperations","monitoringResponse","hasClusterOperation","Promise","reject","isAdminOrRepoManager","isDefined","ifRulesetExists","item","setRepositoryType","saveId","initView","response","status","toastrMsg","allowHtml","setTimeout","editRepoHttp","editRepository","modalMsg","editRepositoryId","$$search","$inject","ManageRemoteLocationDialogController","RemoteLocationModel","RemoteLocationAuthType","isEdit","documentationUrlForAuthentication","remoteLocationForm","$pristine","$invalid","onLocationTypeChanged","ONTOPIC","SPARQL","includes","authType","BASIC","NONE","free","eeWorker","eeMaster","se","httpRegex","ftpRegex","RegExp","join"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=7714;export const __webpack_esm_ids__=[7714];export const __webpack_esm_modules__={53325(e,o,t){t.d(o,{L:()=>r});var i=t(57154);class r{static get logger(){return i.Loggers.getLoggerInstance("SharedComponents")}}},7714(e,o,t){t.r(o),t.d(o,{onto_repository_info:()=>n});var i=t(18072),r=t(57154),s=t(53325);const n=class{constructor(e){(0,i.r)(this,e),this.languageContextService=(0,r.service)(r.LanguageContextService),this.languageService=(0,r.service)(r.LanguageService),this.subscriptions=new r.SubscriptionList,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?(0,i.h)(i.a,null,(0,i.h)("div",{class:"repository-info-title","data-test":"repository-info-title"},this.renderHeading(e)),e.title&&(0,i.h)("div",{class:"repository-info-description","data-test":"repository-info-description"},e.title),(0,i.h)("div",{class:"repository-info-content"},this.renderRow("location","location",e.location?e.location:this.renderLabel("local")),this.renderRow("type","type",this.renderLabel(`types.${e.type||"unknown"}`)),this.renderRow("permissions","permissions_label",this.renderPermission()),this.renderStatements(e))):(0,i.h)(i.a,null)}renderPermission(){return this.permission?this.renderLabel(`permissions.${this.permission.toLowerCase()}`):"-"}renderHeading(e){let o,t="inactive";return e.state===r.RepositoryState.RUNNING?(o="ri-checkbox-blank-circle-fill",t=""):o=e.state===r.RepositoryState.INACTIVE?"ri-stop-large-fill":"ri-loop-left-fill",(0,i.h)("h6",{class:`title ${t}`},(0,i.h)("i",{class:o}),(0,i.h)("span",null,e.id))}renderStatements(e){return e.state!==r.RepositoryState.RUNNING?this.renderInactiveRepositoryMessage():this.loading?(0,i.h)("div",{class:"repository-info-row repository-size-loading","data-test":"repository-info-loading"},(0,i.h)("onto-loader",{loading:!0,size:25})):this.renderSizeInfo(this.parseProperty(this.sizeInfo,"sizeInfo"))}renderSizeInfo(e){return!e||e.total<0?(0,i.h)("div",{"data-test":"repository-info-not-available"},this.renderLabel("repository-size.repository-info-not-available")):[this.renderRow("total","repository-size.total",this.totalStatementsFormatter.format(e.total)),e.explicit>=0&&this.renderRow("explicit","repository-size.explicit",this.totalStatementsFormatter.format(e.explicit)),e.inferred>=0&&this.renderRow("inferred","repository-size.inferred",this.totalStatementsFormatter.format(e.inferred)),e.explicit>=0&&this.renderRow("expansion-ratio","repository-size.expansion_ratio",this.formatExpansionRatio(e))]}renderInactiveRepositoryMessage(){return(0,i.h)("div",{class:"repository-info-row inactive-repo-message","data-test":"repository-info-inactive"},(0,i.h)("div",{class:"icon"},(0,i.h)("i",{class:"ri-information-2-line"})),(0,i.h)("div",{class:"message"},(0,i.h)("p",null,this.renderLabel("repository-size.repository_inactive"))))}renderRow(e,o,t){return(0,i.h)("div",{class:`repository-info-row ${e}`,"data-test":`repository-info-${e}`},(0,i.h)("div",{class:"label"},this.renderLabel(o),":"),(0,i.h)("div",{class:"value"},t))}renderLabel(e){const o=`repository-info.${e}`;return(0,i.h)("translate-label",{key:o,labelKey:o})}formatExpansionRatio(e){return e.explicit>0?this.expansionRatioFormatter.format(e.total/e.explicit):"-"}setupFormatters(e){const o=e||this.languageService.getDefaultLanguage();this.totalStatementsFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}),this.expansionRatioFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2})}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 s.L.logger.error(`The "${o}" property of onto-repository-info is not a valid JSON: "${e}"`,t)}}};n.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}"}};
2
- //# sourceMappingURL=7714.ccdf9a75e387a85cb980.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"7714.ccdf9a75e387a85cb980.bundle.js","mappings":"gKAMA,MAAMA,EAMF,iBAAWC,GACP,OAAOC,EAAAA,QAAQC,kBAXH,mBAYhB,E,8FCcJ,MAGMC,EAAqB,MACvBC,WAAAA,CAAYC,IACRC,EAAAA,EAAA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AMnB,KAAK0B,YAAY,yCAC5P,CAQAF,SAAAA,CAAUyB,EAASC,EAAUC,GACzB,OAAQhC,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,uBAAuB4B,IAAW,YAAa,mBAAmBA,MAAa9B,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,SAAWrB,KAAK0B,YAAYwB,GAAW,MAAM/B,EAAAA,EAAAA,GAAE,MAAO,CAAEE,MAAO,SAAW8B,GACzM,CACAzB,WAAAA,CAAYwB,GACR,MAAME,EAAM,mBAAyBF,IACrC,OAAO/B,EAAAA,EAAAA,GAAE,kBAAmB,CAAEiC,IAAKA,EAAKF,SAAUE,GACtD,CACAJ,oBAAAA,CAAqBN,GACjB,OAAIA,EAASI,SAAW,EACb9C,KAAKqD,wBAAwBR,OAAOH,EAASC,MAAQD,EAASI,UAElE,GACX,CACApC,eAAAA,CAAgBG,GACZ,MAAMyC,EAAoBzC,GAAYb,KAAKI,gBAAgBmD,qBAC3DvD,KAAK4C,yBAA2B,IAAIY,KAAKC,aAAaH,EAAmB,CACrEI,MAAO,UACPC,sBAAuB,EACvBC,sBAAuB,IAE3B5D,KAAKqD,wBAA0B,IAAIG,KAAKC,aAAaH,EAAmB,CACpEI,MAAO,UACPC,sBAAuB,EACvBC,sBAAuB,GAE/B,CAKA1C,aAAAA,CAAciC,EAAOU,GACjB,IACI,OAjIZ,SAA2BV,GACvB,MAAqB,iBAAVA,EACAA,QAAqCA,OAAQW,EAEjDX,EAAQY,KAAKC,MAAMb,QAASW,CACvC,CA4HmBG,CAAkBd,EAC7B,CACA,MAAOe,GAEH,YADA1E,EAAAA,EAAeC,OAAOyE,MAAM,QAAQL,6DAAwEV,KAAUe,EAE1H,CACJ,GAEJtE,EAAmB8D,MAlIW,g8D","sources":["webpack://root-config/./packages/shared-components/dist/esm/logger-provider-BIkLC5Zf.js","webpack://root-config/./packages/shared-components/dist/esm/onto-repository-info.entry.js"],"sourcesContent":["import { Loggers } from '@ontotext/workbench-api';\n\nconst MODULE_NAME = 'SharedComponents';\n/**\n * Logger for the Shared Components module.\n */\nclass LoggerProvider {\n /**\n * Gets the logger instance for the Shared Components module.\n *\n * @returns LoggerService instance for the Shared Components module\n */\n static get logger() {\n return Loggers.getLoggerInstance(MODULE_NAME);\n }\n}\n\nexport { LoggerProvider as L };\n","import { r as registerInstance, h, a as Host } from './index-BntG-4Sv.js';\nimport { service, LanguageContextService, LanguageService, SubscriptionList, RepositoryState } from '@ontotext/workbench-api';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\n/**\n * Returns the given value as an object. A value that is not a string is returned as it is. A string is parsed\n * as JSON.\n *\n * It is for component properties that accept an object, or the same data as JSON text from consumers that can only\n * write the component as a tag in an HTML string.\n *\n * @template T - The type of the expected object\n * @param value - The object, or the JSON text that represents it\n * @returns The object, or `undefined` if the value is null, undefined or an empty string\n * @throws SyntaxError if the value is a string that is not a valid JSON\n *\n * @example\n * parseJsonIfString<{a: number}>('{\"a\": 1}'); // { a: 1 }\n * parseJsonIfString({a: 1}); // { a: 1 }\n * parseJsonIfString('not a json'); // throws SyntaxError\n */\nfunction parseJsonIfString(value) {\n if (typeof value !== 'string') {\n return value !== null && value !== void 0 ? value : undefined;\n }\n return value ? JSON.parse(value) : undefined;\n}\n\nconst ontoRepositoryInfoCss = \"onto-repository-info{display:block;padding:0.5rem 0}onto-repository-info .repository-info-title{font-size:1rem;margin-bottom:0.375em}onto-repository-info .repository-info-title .title{display:flex;align-items:baseline;font-weight:600;color:var(--gw-foreground-on-surface-default)}onto-repository-info .repository-info-title .title.inactive{color:var(--gw-foreground-on-surface-subtle)}onto-repository-info .repository-info-title .title span{overflow-wrap:anywhere}onto-repository-info .repository-info-title .title i{flex-shrink:0;font-size:inherit;margin-right:0.8em}onto-repository-info .repository-info-title .title i::before{font-size:0.9em}onto-repository-info .repository-info-title .title .ri-stop-large-fill{color:var(--gw-foreground-on-surface-disabled)}onto-repository-info .repository-info-title .title .ri-checkbox-blank-circle-fill{color:var(--gw-success-base)}onto-repository-info .repository-info-description{margin-bottom:0.375em;font-size:0.8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}onto-repository-info .repository-info-content{border-top:1px solid var(--gw-dialog-border-color);padding-top:0.5em;display:flex;flex-direction:column;gap:0.2em;font-weight:400;font-size:0.875rem}onto-repository-info .repository-info-row{display:flex;justify-content:space-between}onto-repository-info .repository-info-row.total{margin-top:1.2em}onto-repository-info .repository-info-row .value{margin-left:0.6em;font-weight:500}onto-repository-info .repository-info-row.repository-size-loading{justify-content:center;align-items:center}onto-repository-info .repository-info-row.inactive-repo-message{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}\";\n\nconst TRANSLATION_PREFIX = 'repository-info';\nconst OntoRepositoryInfo = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.languageContextService = service(LanguageContextService);\n this.languageService = service(LanguageService);\n this.subscriptions = new SubscriptionList();\n /**\n * Whether the statement counts are being loaded. A spinner is shown in their place.\n */\n this.loading = false;\n }\n connectedCallback() {\n // The formatters are created here, so that they do not depend on the first notification of the subscription.\n this.setupFormatters();\n this.subscriptions.add(this.languageContextService.onSelectedLanguageChanged((language) => {\n this.setupFormatters(language);\n }));\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n const repository = this.parseProperty(this.repository, 'repository');\n if (!repository) {\n return h(Host, null);\n }\n return (h(Host, null, h(\"div\", { class: \"repository-info-title\", \"data-test\": \"repository-info-title\" }, this.renderHeading(repository)), repository.title &&\n h(\"div\", { class: \"repository-info-description\", \"data-test\": \"repository-info-description\" }, repository.title), h(\"div\", { class: \"repository-info-content\" }, this.renderRow('location', 'location', repository.location ? repository.location : this.renderLabel('local')), this.renderRow('type', 'type', this.renderLabel(`types.${repository.type || 'unknown'}`)), this.renderRow('permissions', 'permissions_label', this.renderPermission()), this.renderStatements(repository))));\n }\n renderPermission() {\n if (!this.permission) {\n return '-';\n }\n return this.renderLabel(`permissions.${this.permission.toLowerCase()}`);\n }\n /**\n * Renders the heading: the state icon and the id of the repository. The <code>title</code> of the repository is\n * its description and is rendered separately.\n */\n renderHeading(repository) {\n let stateIndicatorIconClass;\n let stateIndicatorClass = 'inactive';\n if (repository.state === RepositoryState.RUNNING) {\n stateIndicatorIconClass = 'ri-checkbox-blank-circle-fill';\n stateIndicatorClass = '';\n }\n else if (repository.state === RepositoryState.INACTIVE) {\n stateIndicatorIconClass = 'ri-stop-large-fill';\n }\n else {\n stateIndicatorIconClass = 'ri-loop-left-fill';\n }\n return (h(\"h6\", { class: `title ${stateIndicatorClass}` }, h(\"i\", { class: stateIndicatorIconClass }), h(\"span\", null, repository.id)));\n }\n renderStatements(repository) {\n if (repository.state !== RepositoryState.RUNNING) {\n return this.renderInactiveRepositoryMessage();\n }\n if (this.loading) {\n return (h(\"div\", { class: \"repository-info-row repository-size-loading\", \"data-test\": \"repository-info-loading\" }, h(\"onto-loader\", { loading: true, size: 25 })));\n }\n return this.renderSizeInfo(this.parseProperty(this.sizeInfo, 'sizeInfo'));\n }\n renderSizeInfo(sizeInfo) {\n if (!sizeInfo || sizeInfo.total < 0) {\n return (h(\"div\", { \"data-test\": \"repository-info-not-available\" }, this.renderLabel('repository-size.repository-info-not-available')));\n }\n return [\n this.renderRow('total', 'repository-size.total', this.totalStatementsFormatter.format(sizeInfo.total)),\n sizeInfo.explicit >= 0\n && this.renderRow('explicit', 'repository-size.explicit', this.totalStatementsFormatter.format(sizeInfo.explicit)),\n sizeInfo.inferred >= 0\n && this.renderRow('inferred', 'repository-size.inferred', this.totalStatementsFormatter.format(sizeInfo.inferred)),\n sizeInfo.explicit >= 0\n && this.renderRow('expansion-ratio', 'repository-size.expansion_ratio', this.formatExpansionRatio(sizeInfo))\n ];\n }\n renderInactiveRepositoryMessage() {\n return (h(\"div\", { class: \"repository-info-row inactive-repo-message\", \"data-test\": \"repository-info-inactive\" }, h(\"div\", { class: \"icon\" }, h(\"i\", { class: \"ri-information-2-line\" })), h(\"div\", { class: \"message\" }, h(\"p\", null, this.renderLabel('repository-size.repository_inactive')))));\n }\n /**\n * Renders a row with a label and a value.\n *\n * @param rowName The name of the row. It is the CSS class of the row and the end of its test id.\n * @param labelKey The translation key of the label, without the prefix of the component.\n * @param value The value to show.\n */\n renderRow(rowName, labelKey, value) {\n return (h(\"div\", { class: `repository-info-row ${rowName}`, \"data-test\": `repository-info-${rowName}` }, h(\"div\", { class: \"label\" }, this.renderLabel(labelKey), \":\"), h(\"div\", { class: \"value\" }, value)));\n }\n renderLabel(labelKey) {\n const key = `${TRANSLATION_PREFIX}.${labelKey}`;\n return h(\"translate-label\", { key: key, labelKey: key });\n }\n formatExpansionRatio(sizeInfo) {\n if (sizeInfo.explicit > 0) {\n return this.expansionRatioFormatter.format(sizeInfo.total / sizeInfo.explicit);\n }\n return '-';\n }\n setupFormatters(language) {\n const formatterLanguage = language || this.languageService.getDefaultLanguage();\n this.totalStatementsFormatter = new Intl.NumberFormat(formatterLanguage, {\n style: 'decimal',\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n this.expansionRatioFormatter = new Intl.NumberFormat(formatterLanguage, {\n style: 'decimal',\n minimumFractionDigits: 2,\n maximumFractionDigits: 2\n });\n }\n /**\n * Returns the value of a property that accepts an object or JSON text. A text that is not a valid JSON is\n * logged and treated as a missing value.\n */\n parseProperty(value, propertyName) {\n try {\n return parseJsonIfString(value);\n }\n catch (error) {\n LoggerProvider.logger.error(`The \"${propertyName}\" property of onto-repository-info is not a valid JSON: \"${value}\"`, error);\n return undefined;\n }\n }\n};\nOntoRepositoryInfo.style = ontoRepositoryInfoCss;\n\nexport { OntoRepositoryInfo as onto_repository_info };\n"],"names":["LoggerProvider","logger","Loggers","getLoggerInstance","OntoRepositoryInfo","constructor","hostRef","registerInstance","this","languageContextService","service","LanguageContextService","languageService","LanguageService","subscriptions","SubscriptionList","loading","connectedCallback","setupFormatters","add","onSelectedLanguageChanged","language","disconnectedCallback","unsubscribeAll","render","repository","parseProperty","h","Host","class","renderHeading","title","renderRow","location","renderLabel","type","renderPermission","renderStatements","permission","toLowerCase","stateIndicatorIconClass","stateIndicatorClass","state","RepositoryState","RUNNING","INACTIVE","id","renderInactiveRepositoryMessage","size","renderSizeInfo","sizeInfo","total","totalStatementsFormatter","format","explicit","inferred","formatExpansionRatio","rowName","labelKey","value","key","expansionRatioFormatter","formatterLanguage","getDefaultLanguage","Intl","NumberFormat","style","minimumFractionDigits","maximumFractionDigits","propertyName","undefined","JSON","parse","parseJsonIfString","error"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=96827;export const __webpack_esm_ids__=[96827];export const __webpack_esm_modules__={96827(e,t,o){o.r(t),o.d(t,{onto_test_context:()=>s});var n=o(18072),i=o(57154),r={"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 &middot; English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr &middot; 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"}}},a={"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 &middot; Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr &middot; 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 s=class{constructor(e){(0,n.r)(this,e),this.bundles={en:r,fr:a},this.eventEmitter=new i.EventEmitter,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return i.ServiceProvider.get(i.ConfigurationContextService).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return i.ServiceProvider.get(i.LicenseContextService).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return i.ServiceProvider.get(i.ProductInfoContextService).updateProductInfo(e),Promise.resolve()}loadRepositories(){return i.ServiceProvider.get(i.RepositoryService).getRepositories().then(e=>{i.ServiceProvider.get(i.RepositoryContextService).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?(0,i.mapAuthenticatedUserResponseToModel)(e):void 0;return i.ServiceProvider.get(i.SecurityContextService).updateAuthenticatedUser(t),i.ServiceProvider.get(i.AuthenticationStorageService).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return i.ServiceProvider.get(i.SecurityContextService).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return i.ServiceProvider.get(i.AuthenticationService).login({username:e,password:t})}changeLanguage(e){return i.ServiceProvider.get(i.LanguageContextService).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return i.ServiceProvider.get(i.EventService).emit(new i.NavigationEnd(e,t)),Promise.resolve()}updateSelectedRepository(e){return i.ServiceProvider.get(i.RepositoryContextService).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return i.ServiceProvider.get(i.RepositoryLocationContextService).updateIsLoading(e),Promise.resolve()}openConfirmCancel(e){return this.eventEmitter.emit({NAME:i.CONFIRM_CANCEL_EVENT,payload:new i.ConfirmCancelPayload(e,e=>{console.info("Dialog closed with action:",e)})}),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:i.CREATE_TOAST_EVENT,payload:new i.ToastMessage(e.type,e.message)}),Promise.resolve()}addNotification(e){return(0,i.service)(i.OntoToastrService),(0,i.notify)(e),Promise.resolve()}setAutocomplete(e){return i.ServiceProvider.get(i.AutocompleteContextService).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return i.ServiceProvider.get(i.NamespacesContextService).updateNamespaces(new i.NamespaceMap(e)),Promise.resolve()}onLanguageChanged(){i.ServiceProvider.get(i.LanguageContextService).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=i.ServiceProvider.get(i.AuthenticationStorageService),o=i.ServiceProvider.get(i.SecurityContextService),n=i.ServiceProvider.get(i.AuthorizationService);t.clearAuthToken(),(0,i.service)(i.AuthStrategyResolver).resolveStrategy(e).initialize().then(t=>{o.updateIsLoggedIn(t),t||(n.hasFreeAccess()?n.initializeFreeAccess():e.hasOverrideAuth()&&n.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new i.SecurityConfig(t)}}}};
2
- //# sourceMappingURL=96827.9f911e3c9bb060d8f9a9.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"96827.9f911e3c9bb060d8f9a9.bundle.js","mappings":"oMA+JIA,EAAK,CACR,uBAAwB,eACxB,sBAAuB,cACvB,wBAAyB,gBACzBC,OAhKgB,CAChB,OAAU,SACVC,OAAQ,CACPC,GAAI,KACJC,MAAO,QACPC,OAAQ,UAETC,QAAS,aACTC,MAAO,CACNC,oBAAqB,4BAwJtBC,OArJgB,CAChBC,qBAAsB,wBAqJtB,iBAAkB,MAClB,qBAAsB,UACtB,6BAA8B,kBAC9B,iCAAkC,sBAClC,6BAA8B,kBAC9B,wBAAyB,aACzB,oBAAqB,SACrB,qBAAsB,UACtB,iCAAkC,sBAClC,gCAAiC,qBACjC,4BAA6B,sCAC7B,wBAAyB,yCACzB,oCAAqC,oCACrC,0BAA2B,2CAC3B,gCAAiC,iCACjC,uBAAwB,SACxB,mBAAoB,QACpB,iBAAkB,MAClB,kBAAmB,qBACnB,0BAA2B,eAC3B,2BAA4B,iBAC5B,8BAA+B,mBAC/B,yBAA0B,cAC1B,qBAAsB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C,GAIZ,OAFAC,EAAAA,EAAAA,SAAQC,EAAAA,oBACRC,EAAAA,EAAAA,QAAOH,GACA9D,QAAQC,SACnB,CAMAiE,eAAAA,CAAgB1E,GAEZ,OADAI,EAAAA,gBAAgBC,IAAIsE,EAAAA,4BAA4BC,0BAA0B5E,GACnEQ,QAAQC,SACnB,CAOAoE,gBAAAA,CAAiBC,GAEb,OADA1E,EAAAA,gBAAgBC,IAAI0E,EAAAA,0BAA0BF,iBAAiB,IAAIG,EAAAA,aAAaF,IACzEtE,QAAQC,SACnB,CAOAX,iBAAAA,GACIM,EAAAA,gBAAgBC,IAAIoC,EAAAA,wBAAwBwC,0BAA2BC,IAC/DA,GACAxF,KAAK8C,eAAe0C,IAGhC,CAUA9C,eAAAA,CAAgBJ,GACZ,MAAMmD,EAA+B/E,EAAAA,gBAAgBC,IAAIyB,EAAAA,8BACnDsD,EAAyBhF,EAAAA,gBAAgBC,IAAIuB,EAAAA,wBAC7CyD,EAAuBjF,EAAAA,gBAAgBC,IAAIiF,EAAAA,sBACjDH,EAA6BI,kBACAhB,EAAAA,EAAAA,SAAQiB,EAAAA,sBACKC,gBAAgBzD,GAC7C0D,aAAatE,KAAMuE,IAC5BP,EAAuBQ,iBAAiBD,GACnCA,IACGN,EAAqBQ,gBACrBR,EAAqBS,uBAEhB9D,EAAe+D,mBACpBV,EAAqBW,2BAIrC,CAUA9D,oBAAAA,CAAqB+D,GACjB,MAAMhE,EAASiE,OAAOC,OAAO,CAAEnG,SAAS,EAAMoG,cAAc,EAAOC,sBAAsB,EAAOC,eAAe,EAAOrG,WAAY,CAAC,EAAGsG,aAAc,CAAC,GAAKN,GAC1J,OAAO,IAAIO,EAAAA,eAAevE,EAC9B,E","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-test-context.entry.js"],"sourcesContent":["import { r as registerInstance } from './index-BntG-4Sv.js';\nimport { EventEmitter, ServiceProvider, ConfigurationContextService, LicenseContextService, ProductInfoContextService, RepositoryService, RepositoryContextService, mapAuthenticatedUserResponseToModel, SecurityContextService, AuthenticationStorageService, AuthenticationService, LanguageContextService, EventService, NavigationEnd, RepositoryLocationContextService, ConfirmCancelPayload, CONFIRM_CANCEL_EVENT, ToastMessage, CREATE_TOAST_EVENT, service, OntoToastrService, notify, AutocompleteContextService, NamespacesContextService, NamespaceMap, AuthorizationService, AuthStrategyResolver, SecurityConfig } from '@ontotext/workbench-api';\n\nconst common$1 = {\n\t\"import\": \"Import\",\n\tbutton: {\n\t\tok: \"OK\",\n\t\tclose: \"Close\",\n\t\tcancel: \"Cancel\"\n\t},\n\tloading: \"Loading...\",\n\tlabel: {\n\t\topens_in_new_window: \"(opens in a new window)\"\n\t}\n};\nconst layout$1 = {\n\tskip_to_main_content: \"Skip to main content\"\n};\nconst language_selector$1 = {\n\ttoggle_menu: {\n\t\tlabel: \"Select language\",\n\t\ttooltip: \"Current language: English\"\n\t},\n\tlanguage: {\n\t\ten: {\n\t\t\tlabel: \"en &middot; English\",\n\t\t\ttooltip: {\n\t\t\t\tselected: \"Current language\",\n\t\t\t\tnot_selected: \"Change language to English\"\n\t\t\t}\n\t\t},\n\t\tfr: {\n\t\t\tlabel: \"fr &middot; Français\",\n\t\t\ttooltip: {\n\t\t\t\tselected: \"Current language\",\n\t\t\t\tnot_selected: \"Changer la langue en Français\"\n\t\t\t}\n\t\t}\n\t}\n};\nconst license_alert$1 = {\n\tlabel: \"No valid license\",\n\tno_license_set: \"No license was set.\"\n};\nconst footer$1 = {\n\tlabel: {\n\t\tall_rights_reserved: \"All rights reserved.\"\n\t}\n};\nconst permission_banner$1 = {\n\tno_access_error: \"You have no permission to access this functionality with your current credentials.\",\n\tchange_menu_or_user_warning: \"Please choose another menu item or login as a different user.\"\n};\nconst cookie$1 = {\n\tcookie_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 \",\n\tcookie_policy_url_label: \"Cookie Policy\",\n\tpolicy: {\n\t\ttitle: \"Cookies Policy\",\n\t\tpurpose_heading: \"Purpose\",\n\t\tpurpose_text: \"This Cookies Policy explains the data Ontotext collects and uses when you use our GraphDB product, specifically the Free Edition.\",\n\t\tpurpose_enterprise_text: \"Note that if you upgrade to the commercial GraphDB Enterprise Edition, no cookies will be stored on your device, regardless of settings.\",\n\t\tprivacy_commitment_heading: \"Ontotext privacy commitment\",\n\t\tprivacy_commitment_text: \"We are committed to not collecting any personal data or information when you use GraphDB Free. Additionally:\",\n\t\tprivacy_commitment_1: \"We will not sell or rent the technical information we collect to others.\",\n\t\tprivacy_commitment_2: \"We strive to maximize the protection of all technical data collected.\",\n\t\tcookies_heading: \"Cookies\",\n\t\tcookies_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.\",\n\t\tmanage_cookies_heading: \"Manage cookies\",\n\t\tstatistic_cookies: \"GraphDB analytics cookies\",\n\t\tstatistic_tooltip: \"Toggle GraphDB analytics cookies\",\n\t\tstatistic_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.\",\n\t\tthird_party_cookies: \"Third-party cookies\",\n\t\tthird_party_tooltip: \"Toggle Third-party cookies\",\n\t\tthird_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.\",\n\t\tchange_cookies: \"You can change your cookie preferences at any time in\",\n\t\tchange_cookies_location4: \"Cookie policy\"\n\t}\n};\nconst security$1 = {\n\tuser: {\n\t\tsettings: \"User settings\"\n\t}\n};\nconst operations_notification$1 = {\n\ttoggle_label: \"Running operations\",\n\tlinks: {\n\t\tqueries: \"Running queries\",\n\t\tupdates: \"Running updates\",\n\t\timports: \"Running imports\",\n\t\tCREATE_BACKUP_IN_PROGRESS: \"Creating backup\",\n\t\tRESTORE_BACKUP_IN_PROGRESS: \"Restoring backup\",\n\t\tCREATE_CLOUD_BACKUP_IN_PROGRESS: \"Creating cloud backup\",\n\t\tRESTORE_CLOUD_BACKUP_IN_PROGRESS: \"Restoring cloud backup\",\n\t\tIN_SYNC: \"In sync\",\n\t\tRECOVERING: \"Recovering\",\n\t\tOUT_OF_SYNC: \"Out of sync\",\n\t\tUNAVAILABLE_NODES: \"Unavailable nodes\"\n\t}\n};\nconst user_menu$1 = {\n\tmy_settings: \"My settings\",\n\tlogout: \"Logout\",\n\tlogin: \"Login\"\n};\nconst rdf_search$1 = {\n\tlabels: {\n\t\tsearch: \"Search RDF resources\",\n\t\thint: \"Hint: \\\"abC\\\" matches \\\"abC*\\\", \\\"ab c*\\\" and \\\"ab-c*\\\"\"\n\t},\n\tbuttons: {\n\t\ttable: \"Table\",\n\t\tvisual: \"VizGraph\",\n\t\tgraph_navigator: \"Graph navigator\"\n\t},\n\ttooltips: {\n\t\tclose_search_area: \"Close search\",\n\t\tclear: \"Clear\"\n\t},\n\ttoasts: {\n\t\tuse_view_resource: \"<b>Search RDF resources</b></br>Use <b>View resource</b> on this page\",\n\t\tautocomplete_is_off: \"Autocomplete is OFF<br>Go to Setup -> Autocomplete\",\n\t\tempty_input: \"Please fill the input field!\",\n\t\tinvalid_uri: \"Invalid IRI\"\n\t}\n};\nconst guides$1 = {\n\t\"confirm-cancel-modal\": {\n\t\ttitle: \"Exit the guide?\",\n\t\tsubtitle: \"Are you sure you want to exit the guide?<br><br>You can start it anytime from <b>Help > Interactive Guides</b>\",\n\t\t\"exit-button\": \"Exit\",\n\t\t\"dont-show-again\": \"Don't start automatically\"\n\t}\n};\nconst openid$1 = {\n\terrors: {\n\t\ttitle: \"OpenID Authentication Failed\",\n\t\tunknown_flow: \"Unknown auth flow: {{authFlow}}\",\n\t\tinvalid_pkce_state: \"Invalid PKCE state\",\n\t\tcannot_retrieve_token: \"Cannot retrieve token after login: {{error}}\",\n\t\tcannot_refresh_token: \"Could not refresh OpenID token: {{error}}\",\n\t\tuser_no_access: \"User has no access to GraphDB\"\n\t}\n};\nconst graph_explore_split_button$1 = {\n\tbuttons: {\n\t\texplore_visual_graph: {\n\t\t\ttooltip: \"Visualize using the default VizGraph configuration\"\n\t\t},\n\t\texplore_visual_graph_dropdown: {\n\t\t\ttooltip: \"Select config\",\n\t\t\thint: \"Hint: {{hint}}\"\n\t\t}\n\t},\n\tmessages: {\n\t\tmissing_graph_configuration: \"No advanced graph configuration.\",\n\t\tcreate_graph_configuration: \"Create one\",\n\t\tcreate_graph_configuration_link: \"here\"\n\t}\n};\nvar en = {\n\t\"menu.logo.link.title\": \"GraphDB logo\",\n\t\"menu.buttons.expand\": \"Expand menu\",\n\t\"menu.buttons.collapse\": \"Collapse menu\",\n\tcommon: common$1,\n\tlayout: layout$1,\n\t\"menu.rdf.label\": \"RDF\",\n\t\"menu.explore.label\": \"Explore\",\n\t\"menu.graphs.overview.label\": \"Graphs overview\",\n\t\"menu.class.relationships.label\": \"Class relationships\",\n\t\"menu.class.hierarchy.label\": \"Class hierarchy\",\n\t\"menu.similarity.label\": \"Similarity\",\n\t\"menu.sparql.label\": \"SPARQL\",\n\t\"menu.monitor.label\": \"Monitor\",\n\t\"menu.queries.and.updates.label\": \"Queries and Updates\",\n\t\"menu.backup_and_restore.label\": \"Backup and Restore\",\n\t\"menu.enableFtsIndex.label\": \"Enable full-text search (FTS) index\",\n\t\"menu.ftsIndexes.label\": \"FTS indexes to build (comma delimited)\",\n\t\"menu.ftsStringLiteralsIndex.label\": \"FTS index for xsd:string literals\",\n\t\"menu.ftsIrisIndex.label\": \"FTS index for full-text indexing of IRIs\",\n\t\"menu.ftsDefaultAnalyzer.label\": \"Analyzer for the default index\",\n\t\"menu.resources.label\": \"System\",\n\t\"menu.setup.label\": \"Setup\",\n\t\"menu.lab.label\": \"Lab\",\n\t\"menu.ttyg.label\": \"Talk to Your Graph\",\n\t\"menu.repositories.label\": \"Repositories\",\n\t\"menu.aclmanagement.label\": \"ACL Management\",\n\t\"menu.users.and.access.label\": \"Users and Access\",\n\t\"menu.my.settings.label\": \"My Settings\",\n\t\"menu.cluster.label\": \"Cluster\",\n\t\"menu.connectors.label\": \"Connectors\",\n\t\"menu.namespaces.label\": \"Namespaces\",\n\t\"menu.autocomplete.label\": \"Autocomplete\",\n\t\"menu.jdbc.label\": \"JDBC\",\n\t\"menu.sparql.template.label\": \"SPARQL Templates\",\n\t\"menu.license.label\": \"License\",\n\t\"menu.help.label\": \"Help\",\n\t\"menu.system.information.label\": \"System information\",\n\t\"menu.rest.api.label\": \"REST API\",\n\t\"menu.documentation.label\": \"Documentation\",\n\t\"menu.tutorials.label\": \"Tutorials\",\n\t\"menu.support.label\": \"Support\",\n\t\"menu.guides.label\": \"Interactive guides\",\n\t\"menu.plugins.label\": \"Plugins\",\n\t\"menu.graphql.label\": \"GraphQL\",\n\t\"menu.graphql-endpoint-management.label\": \"Endpoint Management\",\n\t\"menu.graphql-playground.label\": \"GraphQL Playground\",\n\t\"menu.graph-navigator.label\": \"Graph navigator\",\n\t\"visual.graph.label\": \"Visual graph\",\n\t\"view.rdf.rank.title\": \"RDF Rank\",\n\tlanguage_selector: language_selector$1,\n\t\"repository-selector\": {\n\tbtn: {\n\t\ttoggle: \"Choose repository\",\n\t\tno_repositories: \"No accessible repositories\"\n\t}\n},\n\t\"repository-info\": {\n\tlocation: \"Location\",\n\tlocal: \"Local\",\n\ttype: \"Type\",\n\ttypes: {\n\t\tgraphdb: \"Graphdb\",\n\t\tsystem: \"System\",\n\t\tontop: \"Ontop\",\n\t\tfedx: \"FedX\",\n\t\tunknown: \"Unknown\"\n\t},\n\tpermissions_label: \"Permissions\",\n\tpermissions: {\n\t\tnone: \"None\",\n\t\tread: \"Read\",\n\t\twrite: \"Read/Write\",\n\t\tmaintain: \"Read/Write/Maintain\",\n\t\tgraphql_read: \"Read (GraphQL only)\",\n\t\tgraphql_write: \"Read/Write (GraphQL only)\"\n\t},\n\t\"repository-size\": {\n\t\ttotal: \"Total statements\",\n\t\texplicit: \"Explicit\",\n\t\tinferred: \"Inferred\",\n\t\texpansion_ratio: \"Expansion ratio (total/explicit)\",\n\t\trepository_inactive: \"Activate the repository to view statement information\",\n\t\t\"repository-info-not-available\": \"Size info not available.\"\n\t}\n},\n\tlicense_alert: license_alert$1,\n\tfooter: footer$1,\n\tpermission_banner: permission_banner$1,\n\tcookie: cookie$1,\n\tsecurity: security$1,\n\toperations_notification: operations_notification$1,\n\tuser_menu: user_menu$1,\n\trdf_search: rdf_search$1,\n\tguides: guides$1,\n\topenid: openid$1,\n\tgraph_explore_split_button: graph_explore_split_button$1\n};\n\nconst common = {\n\t\"import\": \"Importer\",\n\tbutton: {\n\t\tok: \"D'accord\",\n\t\tclose: \"Fermer\",\n\t\tcancel: \"Annuler\"\n\t},\n\tloading: \"Chargement...\",\n\tlabel: {\n\t\topens_in_new_window: \"(s’ouvre dans une nouvelle fenêtre)\"\n\t}\n};\nconst layout = {\n\tskip_to_main_content: \"Aller au contenu principal\"\n};\nconst language_selector = {\n\ttoggle_menu: {\n\t\tlabel: \"Sélectionner la langue\",\n\t\ttooltip: \"Langue actuelle : Français\"\n\t},\n\tlanguage: {\n\t\ten: {\n\t\t\tlabel: \"en &middot; Anglais\",\n\t\t\ttooltip: {\n\t\t\t\tselected: \"Langue actuelle\",\n\t\t\t\tnot_selected: \"Changer la langue en Anglais\"\n\t\t\t}\n\t\t},\n\t\tfr: {\n\t\t\tlabel: \"fr &middot; Français\",\n\t\t\ttooltip: {\n\t\t\t\tselected: \"Langue actuelle\",\n\t\t\t\tnot_selected: \"Changer la langue en Français\"\n\t\t\t}\n\t\t}\n\t}\n};\nconst license_alert = {\n\tlabel: \"Aucune licence valide\",\n\tno_license_set: \"Aucune licence n'a été définie.\"\n};\nconst footer = {\n\tlabel: {\n\t\tall_rights_reserved: \"Tous droits réservés.\"\n\t}\n};\nconst permission_banner = {\n\tno_access_error: \"Vous n'avez pas la permission d'accéder à cette fonctionnalité avec vos informations d'identification actuelles.\",\n\tchange_menu_or_user_warning: \"Veuillez choisir un autre élément du menu ou vous connecter comme un autre utilisateur.\"\n};\nconst cookie = {\n\tcookie_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 \",\n\tcookie_policy_url_label: \"politique de cookies\",\n\tpolicy: {\n\t\ttitle: \"Politique de cookies\",\n\t\tpurpose_heading: \"Objectif\",\n\t\tpurpose_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.\",\n\t\tpurpose_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.\",\n\t\tprivacy_commitment_heading: \"Engagement de confidentialité d'Ontotext\",\n\t\tprivacy_commitment_text: \"Nous nous engageons à ne collecter aucune donnée personnelle ou information lorsque vous utilisez GraphDB Free. De plus :\",\n\t\tprivacy_commitment_1: \"Nous ne vendrons ni ne louerons à d'autres les informations techniques que nous collectons.\",\n\t\tprivacy_commitment_2: \"Nous nous efforçons de maximiser la protection de toutes les données techniques collectées.\",\n\t\tcookies_heading: \"Cookies\",\n\t\tcookies_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.\",\n\t\tmanage_cookies_heading: \"Gérer les cookies\",\n\t\tstatistic_cookies: \"Cookies d'analyse GraphDB\",\n\t\tstatistic_tooltip: \"Activer/désactiver les cookies d'analyse GraphDB\",\n\t\tstatistic_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.\",\n\t\tthird_party_cookies: \"Cookies tiers\",\n\t\tthird_party_tooltip: \"Activer/désactiver les cookies tiers\",\n\t\tthird_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.\",\n\t\tchange_cookies: \"Vous pouvez modifier vos préférences de cookies à tout moment dans\",\n\t\tchange_cookies_location4: \"Politique de cookies\"\n\t}\n};\nconst security = {\n\tuser: {\n\t\tsettings: \"Paramètres de l'utilisateur\"\n\t}\n};\nconst operations_notification = {\n\ttoggle_label: \"Opérations en cours\",\n\tlinks: {\n\t\tqueries: \"Exécution de requêtes\",\n\t\tupdates: \"Exécution de mises à jour\",\n\t\timports: \"Exécution d'importations\",\n\t\tCREATE_BACKUP_IN_PROGRESS: \"Création de sauvegarde en cours\",\n\t\tRESTORE_BACKUP_IN_PROGRESS: \"Restauration de sauvegarde en cours\",\n\t\tCREATE_CLOUD_BACKUP_IN_PROGRESS: \"Création de sauvegarde cloud en cours\",\n\t\tRESTORE_CLOUD_BACKUP_IN_PROGRESS: \"Restauration de sauvegarde cloud en cours\",\n\t\tIN_SYNC: \"Synchronisé\",\n\t\tRECOVERING: \"Récupération en cours\",\n\t\tOUT_OF_SYNC: \"Désynchronisé\",\n\t\tUNAVAILABLE_NODES: \"Nœuds indisponibles\"\n\t}\n};\nconst user_menu = {\n\tmy_settings: \"Mes paramètres\",\n\tlogout: \"Déconnexion\",\n\tlogin: \"Se connecter\"\n};\nconst rdf_search = {\n\tlabels: {\n\t\tsearch: \"Rechercher des ressources RDF\",\n\t\thint: \"Indice : \\\"abC\\\" correspond à \\\"abC*\\\", \\\"ab c*\\\" et \\\"ab-c*\\\".\"\n\t},\n\tbuttons: {\n\t\ttable: \"Tableau\",\n\t\tvisual: \"VizGraph\",\n\t\tgraph_navigator: \"Navigateur de graphe\"\n\t},\n\ttooltips: {\n\t\tclose_search_area: \"Fermer la recherche\",\n\t\tclear: \"Clair\"\n\t},\n\ttoasts: {\n\t\tuse_view_resource: \"<b>Rechercher des ressources RDF</b></br>Utilisez <b>Voir la ressource</b> sur cette page\",\n\t\tautocomplete_is_off: \"L'autocomplétion est désactivée<br>Aller à Configuration -> Autocomplétion\",\n\t\tempty_input: \"S'il vous plaît remplir le champ de saisie!\",\n\t\tinvalid_uri: \"IRI non valide\"\n\t}\n};\nconst guides = {\n\t\"confirm-cancel-modal\": {\n\t\ttitle: \"Quitter le guide?\",\n\t\tsubtitle: \"Êtes-vous sûr de vouloir quitter le guide ?<br><br>Vous pouvez le lancer à tout moment à partir de <b>Aide > Guides interactifs</b>.\",\n\t\t\"exit-button\": \"Sortie\",\n\t\t\"dont-show-again\": \"Ne pas démarrer automatiquement\"\n\t}\n};\nconst openid = {\n\terrors: {\n\t\ttitle: \"Échec de l'authentification OpenID\",\n\t\tunknown_flow: \"Flux d'authentification inconnu: {{authFlow}}\",\n\t\tinvalid_pkce_state: \"État PKCE invalide\",\n\t\tcannot_retrieve_token: \"Impossible de récupérer le jeton après la connexion: {{error}}\",\n\t\tcannot_refresh_token: \"Impossible de rafraîchir le jeton OpenID: {{error}}\",\n\t\tuser_no_access: \"L'utilisateur n'a pas accès à GraphDB\"\n\t}\n};\nconst graph_explore_split_button = {\n\tbuttons: {\n\t\texplore_visual_graph: {\n\t\t\ttooltip: \"Visualiser avec la configuration VizGraph par défaut\"\n\t\t},\n\t\texplore_visual_graph_dropdown: {\n\t\t\ttooltip: \"Sélectionner la configuration\",\n\t\t\thint: \"Indice : {{hint}}\"\n\t\t}\n\t},\n\tmessages: {\n\t\tmissing_graph_configuration: \"Aucune configuration avancée du graphe.\",\n\t\tcreate_graph_configuration: \"En créer une\",\n\t\tcreate_graph_configuration_link: \"ici\"\n\t}\n};\nvar fr = {\n\t\"menu.logo.link.title\": \"Logo GraphDB\",\n\t\"menu.buttons.expand\": \"Développer le menu\",\n\t\"menu.buttons.collapse\": \"Réduire le menu\",\n\tcommon: common,\n\tlayout: layout,\n\t\"menu.rdf.label\": \"RDF\",\n\t\"menu.explore.label\": \"Explorez\",\n\t\"menu.graphs.overview.label\": \"Aperçu des graphes\",\n\t\"menu.class.relationships.label\": \"Relations entre les classes\",\n\t\"menu.class.hierarchy.label\": \"Hiérarchie des classes\",\n\t\"menu.similarity.label\": \"Similarité\",\n\t\"menu.sparql.label\": \"SPARQL\",\n\t\"menu.monitor.label\": \"Surveiller\",\n\t\"menu.queries.and.updates.label\": \"Requêtes et mises à jour\",\n\t\"menu.backup_and_restore.label\": \"Sauvegarde et Restauration\",\n\t\"menu.enableFtsIndex.label\": \"Activer l'index de recherche plein texte\",\n\t\"menu.ftsIndexes.label\": \"Index de recherche en texte intégral à construire (délimités par des virgules)\",\n\t\"menu.ftsStringLiteralsIndex.label\": \"Index de recherche en texte intégral pour les littéraux xsd:string\",\n\t\"menu.ftsIrisIndex.label\": \"Index de recherche en texte intégral pour l'indexation en texte intégral des IRI\",\n\t\"menu.ftsDefaultAnalyzer.label\": \"Analyseur pour l'index par défaut\",\n\t\"menu.resources.label\": \"Système\",\n\t\"menu.setup.label\": \"Configurer\",\n\t\"menu.lab.label\": \"Laboratoire\",\n\t\"menu.ttyg.label\": \"Parlez à votre graphe\",\n\t\"menu.repositories.label\": \"Dépôts\",\n\t\"menu.aclmanagement.label\": \"Gestion ACL\",\n\t\"menu.users.and.access.label\": \"Utilisateurs et accès\",\n\t\"menu.my.settings.label\": \"Mes paramètres\",\n\t\"menu.cluster.label\": \"Cluster\",\n\t\"menu.connectors.label\": \"Connecteurs\",\n\t\"menu.namespaces.label\": \"Espaces de noms\",\n\t\"menu.autocomplete.label\": \"Autocomplétion\",\n\t\"menu.jdbc.label\": \"JDBC\",\n\t\"menu.sparql.template.label\": \"Modèles SPARQL\",\n\t\"menu.license.label\": \"Licence\",\n\t\"menu.help.label\": \"Aide\",\n\t\"menu.system.information.label\": \"Informations sur le système\",\n\t\"menu.rest.api.label\": \"API REST\",\n\t\"menu.documentation.label\": \"Documentation\",\n\t\"menu.tutorials.label\": \"Tutoriels\",\n\t\"menu.support.label\": \"Support\",\n\t\"menu.guides.label\": \"Guides interactifs\",\n\t\"menu.plugins.label\": \"Plugins\",\n\t\"menu.graphql.label\": \"GraphQL\",\n\t\"menu.graphql-endpoint-management.label\": \"Gestion des points de terminaison\",\n\t\"menu.graphql-playground.label\": \"GraphQL Playground\",\n\t\"menu.graph-navigator.label\": \"Navigateur de graphe\",\n\t\"visual.graph.label\": \"Graphique visuel\",\n\t\"view.rdf.rank.title\": \"Rang RDF\",\n\tlanguage_selector: language_selector,\n\t\"repository-selector\": {\n\tbtn: {\n\t\ttoggle: \"Choisissez le dépôt\",\n\t\tno_repositories: \"Aucun dépôt accessible\"\n\t}\n},\n\t\"repository-info\": {\n\tlocation: \"L'emplacement\",\n\tlocal: \"Local\",\n\ttype: \"Type\",\n\ttypes: {\n\t\tgraphdb: \"Graphdb\",\n\t\tsystem: \"Système\",\n\t\tontop: \"Ontop\",\n\t\tfedx: \"FedX\",\n\t\tunknown: \"Inconnu\"\n\t},\n\tpermissions_label: \"Permissions\",\n\tpermissions: {\n\t\tnone: \"Aucune\",\n\t\tread: \"Lecture\",\n\t\twrite: \"Lecture/Écriture\",\n\t\tmaintain: \"Lecture/Écriture/Maintenance\",\n\t\tgraphql_read: \"Lecture (GraphQL uniquement)\",\n\t\tgraphql_write: \"Lecture/Écriture (GraphQL uniquement)\"\n\t},\n\t\"repository-size\": {\n\t\ttotal: \"Total des déclarations\",\n\t\texplicit: \"Explicite\",\n\t\tinferred: \"Déduit\",\n\t\texpansion_ratio: \"Taux d'expansion (total/explicite)\",\n\t\trepository_inactive: \"Activez le dépôt pour consulter les informations du relevé.\",\n\t\t\"repository-info-not-available\": \"Info de taille non disponible.\"\n\t}\n},\n\tlicense_alert: license_alert,\n\tfooter: footer,\n\tpermission_banner: permission_banner,\n\tcookie: cookie,\n\tsecurity: security,\n\toperations_notification: operations_notification,\n\tuser_menu: user_menu,\n\trdf_search: rdf_search,\n\tguides: guides,\n\topenid: openid,\n\tgraph_explore_split_button: graph_explore_split_button\n};\n\nconst OntoTestContext = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.bundles = { en, fr };\n this.eventEmitter = new EventEmitter();\n this.onLanguageChanged();\n this.setSecurityConfig({ enabled: false, freeAccess: { enabled: false } });\n }\n /**\n * Initializes the application configuration context.\n *\n * This method uses the ConfigurationContextService to update the application\n * configuration and returns a resolved Promise once the operation is complete.\n * @param configuration - The new Configuration object to be set.\n * @returns A Promise that resolves when the configuration update is complete.\n */\n initConfigurationContext(configuration) {\n ServiceProvider.get(ConfigurationContextService).updateApplicationConfiguration(configuration);\n return Promise.resolve();\n }\n /**\n * Updates the license information in the context.\n *\n * This method uses the LicenseContextService to update the license\n * and returns a resolved Promise once the operation is complete.\n *\n * @param license - The new License object to be set.\n * @returns A Promise that resolves when the license update is complete.\n */\n updateLicense(license) {\n ServiceProvider.get(LicenseContextService).updateGraphdbLicense(license);\n return Promise.resolve();\n }\n /**\n * Updates the product information in the context.\n *\n * This method uses the ProductInfoContextService to update the product information\n * and returns a resolved Promise once the operation is complete.\n *\n * @param productInfo - The new ProductInfo object to be set.\n * @returns A Promise that resolves when the product information update is complete.\n */\n updateProductInfo(productInfo) {\n ServiceProvider.get(ProductInfoContextService).updateProductInfo(productInfo);\n return Promise.resolve();\n }\n /**\n * Loads the repositories in the application.\n */\n loadRepositories() {\n ServiceProvider.get(RepositoryService).getRepositories().then((repositories) => {\n ServiceProvider.get(RepositoryContextService).updateRepositoryList(repositories);\n });\n return Promise.resolve();\n }\n /**\n * Sets the authenticated user in the application context.\n *\n * @param user - The AuthenticatedUser object containing the user's authentication information.\n * @returns A Promise that resolves when the authenticated user has been successfully updated\n */\n setAuthenticatedUser(user) {\n // Don't map if undefined is passed. This allows to clear the user in context\n const userModel = user\n ? mapAuthenticatedUserResponseToModel(user)\n : undefined;\n ServiceProvider.get(SecurityContextService).updateAuthenticatedUser(userModel);\n ServiceProvider.get(AuthenticationStorageService).setAuthToken('token');\n return Promise.resolve();\n }\n /**\n * Sets the security configuration in the application context.\n *\n * @param securityConfig - The SecurityConfig object containing the new security settings to be applied.\n * @returns A Promise that resolves when the security configuration has been successfully updated.\n */\n setSecurityConfig(securityConfig) {\n const config = this.createSecurityConfig(securityConfig);\n ServiceProvider.get(SecurityContextService).updateSecurityConfig(config);\n this.setAuthStrategy(config);\n return Promise.resolve();\n }\n /**\n * Logs in a user with the provided username and password.\n *\n * This method uses the AuthenticationService to perform the login operation.\n * It returns a Promise that resolves when the login process is complete.\n * @param username\n * @param password\n */\n login(username, password) {\n const authService = ServiceProvider.get(AuthenticationService);\n return authService.login({ username, password });\n }\n /**\n * Changes the application's language by updating the language bundle.\n *\n * This method uses the LanguageContextService to update the language bundle\n * based on the provided language code. It retrieves the corresponding bundle\n * from the predefined bundles object and updates the context.\n *\n * @param language - The language code (e.g., 'en' for English, 'fr' for French)\n * representing the desired language to switch to.\n * @returns A Promise that resolves when the language update is complete.\n */\n changeLanguage(language) {\n ServiceProvider.get(LanguageContextService).updateLanguageBundle(this.bundles[language]);\n return Promise.resolve();\n }\n /**\n * Emits {@see NavigationEnd} event with <code>oldUrl</code> and <code>newUrl</code>.\n * @param oldUrl - the value will be used as old url in the event payload.\n * @param newUrl - the value will be used as new url in the event payload.\n */\n emitNavigateEndEvent(oldUrl, newUrl) {\n ServiceProvider.get(EventService).emit(new NavigationEnd(oldUrl, newUrl));\n return Promise.resolve();\n }\n /**\n * Updates the selected repository in the application context.\n *\n * @method updateSelectedRepository\n * @param repositoryReference - The RepositoryReference object representing the repository to select.\n * @returns A Promise that resolves when the selected repository has been updated.\n */\n updateSelectedRepository(repositoryReference) {\n ServiceProvider.get(RepositoryContextService).updateSelectedRepository(repositoryReference);\n return Promise.resolve();\n }\n /**\n * Updates whether the active repository request is in a loading state.\n *\n * @param isLoading - A boolean value indicating whether the repository location is in a loading state.\n * True indicates request is in progress, false indicates loading is complete.\n * @returns A Promise that resolves when the loading state update is complete.\n */\n updateIsLoadingActiveRepositoryLocation(isLoading) {\n ServiceProvider.get(RepositoryLocationContextService).updateIsLoading(isLoading);\n return Promise.resolve();\n }\n /**\n * Opens the confirm cancel dialog.\n *\n * @param hasDontShowAgain - Whether to show the \"Don't show again\" button in the dialog.\n */\n openConfirmCancel(hasDontShowAgain) {\n this.eventEmitter.emit({ NAME: CONFIRM_CANCEL_EVENT, payload: new ConfirmCancelPayload(hasDontShowAgain, (action) => {\n console.info('Dialog closed with action:', action);\n }) });\n return Promise.resolve();\n }\n /**\n * Opens a toast\n *\n * @param toast the toast to open\n */\n addToastr(toast) {\n this.eventEmitter.emit({ NAME: CREATE_TOAST_EVENT, payload: new ToastMessage(toast.type, toast.message) });\n return Promise.resolve();\n }\n /**\n * Adds a notification to the application.\n * @param notification - The Notification object containing the notification details.\n */\n addNotification(notification) {\n // create the toastr service, which starts listening for notifications\n service(OntoToastrService);\n notify(notification);\n return Promise.resolve();\n }\n /**\n * Sets the autocomplete status in the context.\n *\n * @param enabled whether autocomplete is enabled or disabled.\n */\n setAutocomplete(enabled) {\n ServiceProvider.get(AutocompleteContextService).updateAutocompleteEnabled(enabled);\n return Promise.resolve();\n }\n /**\n * Sets the namespace map in the application context.\n *\n * @param rawNamespaces - The namespace map containing prefix-to-URI mappings to be used throughout the application\n * @returns A Promise that resolves when the namespace map has been successfully updated\n */\n updateNamespaces(rawNamespaces) {\n ServiceProvider.get(NamespacesContextService).updateNamespaces(new NamespaceMap(rawNamespaces));\n return Promise.resolve();\n }\n /**\n * Sets up a listener for language changes and updates the application language accordingly.\n *\n * This private method subscribes to language change events using the LanguageContextService.\n * When a new language is selected, it calls the changeLanguage method to update the application's language.\n */\n onLanguageChanged() {\n ServiceProvider.get(LanguageContextService).onSelectedLanguageChanged((languageCode) => {\n if (languageCode) {\n this.changeLanguage(languageCode);\n }\n });\n }\n /**\n * Configures the authentication strategy based on the provided security configuration.\n *\n * This private method retrieves the AuthenticationService and sets the authentication strategy\n * according to the given SecurityConfig. It ensures that the application uses the correct\n * authentication mechanism as specified in the security settings.\n *\n * @param securityConfig - The SecurityConfig object containing the security settings to be applied.\n */\n setAuthStrategy(securityConfig) {\n const authenticationStorageService = ServiceProvider.get(AuthenticationStorageService);\n const securityContextService = ServiceProvider.get(SecurityContextService);\n const authorizationService = ServiceProvider.get(AuthorizationService);\n authenticationStorageService.clearAuthToken();\n const authStrategyResolver = service(AuthStrategyResolver);\n const authStrategy = authStrategyResolver.resolveStrategy(securityConfig);\n authStrategy.initialize().then((isLoggedIn) => {\n securityContextService.updateIsLoggedIn(isLoggedIn);\n if (!isLoggedIn) {\n if (authorizationService.hasFreeAccess()) {\n authorizationService.initializeFreeAccess();\n }\n else if (securityConfig.hasOverrideAuth()) {\n authorizationService.initializeOverrideAuth();\n }\n }\n });\n }\n /**\n * Creates a SecurityConfig instance, merging default values with any provided overrides.\n *\n * This private method constructs a SecurityConfig object by combining default settings\n * with any specified overrides. It ensures that all necessary properties are set,\n * providing a complete configuration for security-related operations.\n * @param overrides\n * @private\n */\n createSecurityConfig(overrides) {\n const config = Object.assign({ enabled: true, userLoggedIn: false, passwordLoginEnabled: false, openIdEnabled: false, freeAccess: {}, overrideAuth: {} }, overrides);\n return new SecurityConfig(config);\n }\n};\n\nexport { OntoTestContext as onto_test_context };\n"],"names":["en","common","button","ok","close","cancel","loading","label","opens_in_new_window","layout","skip_to_main_content","language_selector","toggle_menu","tooltip","language","selected","not_selected","fr","btn","toggle","no_repositories","location","local","type","types","graphdb","system","ontop","fedx","unknown","permissions_label","permissions","none","read","write","maintain","graphql_read","graphql_write","total","explicit","inferred","expansion_ratio","repository_inactive","license_alert","no_license_set","footer","all_rights_reserved","permission_banner","no_access_error","change_menu_or_user_warning","cookie","cookie_consent","cookie_policy_url_label","policy","title","purpose_heading","purpose_text","purpose_enterprise_text","privacy_commitment_heading","privacy_commitment_text","privacy_commitment_1","privacy_commitment_2","cookies_heading","cookies_text","manage_cookies_heading","statistic_cookies","statistic_tooltip","statistic_text","third_party_cookies","third_party_tooltip","third_party_cookies_text","change_cookies","change_cookies_location4","security","user","settings","operations_notification","toggle_label","links","queries","updates","imports","CREATE_BACKUP_IN_PROGRESS","RESTORE_BACKUP_IN_PROGRESS","CREATE_CLOUD_BACKUP_IN_PROGRESS","RESTORE_CLOUD_BACKUP_IN_PROGRESS","IN_SYNC","RECOVERING","OUT_OF_SYNC","UNAVAILABLE_NODES","user_menu","my_settings","logout","login","rdf_search","labels","search","hint","buttons","table","visual","graph_navigator","tooltips","close_search_area","clear","toasts","use_view_resource","autocomplete_is_off","empty_input","invalid_uri","guides","subtitle","openid","errors","unknown_flow","invalid_pkce_state","cannot_retrieve_token","cannot_refresh_token","user_no_access","graph_explore_split_button","explore_visual_graph","explore_visual_graph_dropdown","messages","missing_graph_configuration","create_graph_configuration","create_graph_configuration_link","OntoTestContext","constructor","hostRef","registerInstance","this","bundles","eventEmitter","EventEmitter","onLanguageChanged","setSecurityConfig","enabled","freeAccess","initConfigurationContext","configuration","ServiceProvider","get","ConfigurationContextService","updateApplicationConfiguration","Promise","resolve","updateLicense","license","LicenseContextService","updateGraphdbLicense","updateProductInfo","productInfo","ProductInfoContextService","loadRepositories","RepositoryService","getRepositories","then","repositories","RepositoryContextService","updateRepositoryList","setAuthenticatedUser","userModel","mapAuthenticatedUserResponseToModel","undefined","SecurityContextService","updateAuthenticatedUser","AuthenticationStorageService","setAuthToken","securityConfig","config","createSecurityConfig","updateSecurityConfig","setAuthStrategy","username","password","AuthenticationService","changeLanguage","LanguageContextService","updateLanguageBundle","emitNavigateEndEvent","oldUrl","newUrl","EventService","emit","NavigationEnd","updateSelectedRepository","repositoryReference","updateIsLoadingActiveRepositoryLocation","isLoading","RepositoryLocationContextService","updateIsLoading","openConfirmCancel","hasDontShowAgain","NAME","CONFIRM_CANCEL_EVENT","payload","ConfirmCancelPayload","action","console","info","addToastr","toast","CREATE_TOAST_EVENT","ToastMessage","message","addNotification","notification","service","OntoToastrService","notify","setAutocomplete","AutocompleteContextService","updateAutocompleteEnabled","updateNamespaces","rawNamespaces","NamespacesContextService","NamespaceMap","onSelectedLanguageChanged","languageCode","authenticationStorageService","securityContextService","authorizationService","AuthorizationService","clearAuthToken","AuthStrategyResolver","resolveStrategy","initialize","isLoggedIn","updateIsLoggedIn","hasFreeAccess","initializeFreeAccess","hasOverrideAuth","initializeOverrideAuth","overrides","Object","assign","userLoggedIn","passwordLoginEnabled","openIdEnabled","overrideAuth","SecurityConfig"],"sourceRoot":""}