graphdb-workbench 4.0.0-TR24 → 4.0.0-TR25

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 (118) hide show
  1. package/dist/10804.62d23036c15bd05ab8f4.bundle.js +2 -0
  2. package/dist/10804.62d23036c15bd05ab8f4.bundle.js.map +1 -0
  3. package/dist/29733.55b41709d810fa99e672.bundle.js +2 -0
  4. package/dist/29733.55b41709d810fa99e672.bundle.js.map +1 -0
  5. package/dist/38046.d5fcf560e9573afe0793.bundle.js +2 -0
  6. package/dist/38046.d5fcf560e9573afe0793.bundle.js.map +1 -0
  7. package/dist/43239.c76fc77febaf50657b13.bundle.js +2 -0
  8. package/dist/43239.c76fc77febaf50657b13.bundle.js.map +1 -0
  9. package/dist/54231.86549d1df408d58c8d9c.bundle.js +2 -0
  10. package/dist/54231.86549d1df408d58c8d9c.bundle.js.map +1 -0
  11. package/dist/6345.4c432e9c50769f9fed92.bundle.js +2 -0
  12. package/dist/6345.4c432e9c50769f9fed92.bundle.js.map +1 -0
  13. package/dist/{64709.692234bce97b3d7c3f08.bundle.js → 64709.62285597fe955d9a4e6f.bundle.js} +2 -2
  14. package/dist/{64709.692234bce97b3d7c3f08.bundle.js.map → 64709.62285597fe955d9a4e6f.bundle.js.map} +1 -1
  15. package/dist/{65677.f973a5e87a056639df3d.bundle.js → 65677.5b3c1615bec7865c3bb9.bundle.js} +2 -2
  16. package/dist/{65677.f973a5e87a056639df3d.bundle.js.map → 65677.5b3c1615bec7865c3bb9.bundle.js.map} +1 -1
  17. package/dist/{80933.e68a74507b277bc3029e.bundle.js → 80933.3c17cb7ee7edbf6e82e5.bundle.js} +2 -2
  18. package/dist/{80933.e68a74507b277bc3029e.bundle.js.map → 80933.3c17cb7ee7edbf6e82e5.bundle.js.map} +1 -1
  19. package/dist/{82917.025cdb8ee0ac54edcab1.bundle.js → 82917.577cefdef6ecc843b821.bundle.js} +2 -2
  20. package/dist/{82917.025cdb8ee0ac54edcab1.bundle.js.map → 82917.577cefdef6ecc843b821.bundle.js.map} +1 -1
  21. package/dist/{86099.27eafa3d7848c2893767.bundle.js → 86099.38ff7f3b1e3b7db27e13.bundle.js} +2 -2
  22. package/dist/{86099.27eafa3d7848c2893767.bundle.js.map → 86099.38ff7f3b1e3b7db27e13.bundle.js.map} +1 -1
  23. package/dist/assets/i18n/language-config.json +1 -1
  24. package/dist/i18n/locale-en.json +4 -3
  25. package/dist/i18n/locale-fr.json +4 -3
  26. package/dist/index.html +9 -9
  27. package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
  28. package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
  29. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  30. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  31. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  32. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  33. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  34. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  35. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
  36. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  37. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  38. package/dist/js/angular/core/templates/core-errors.html +1 -1
  39. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  40. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  41. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  42. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  43. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  44. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  45. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  46. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  47. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  48. package/dist/js/angular/security/templates/user.html +2 -2
  49. package/dist/js/angular/security/templates/users.html +1 -1
  50. package/dist/js/angular/templates/repositorySize.html +1 -1
  51. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  52. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  53. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  54. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  55. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  56. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  57. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  58. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  59. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  60. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  61. package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js → legacyWorkbench.fa4203b20bf8d73ada10.js} +3 -3
  62. package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js.map → legacyWorkbench.fa4203b20bf8d73ada10.js.map} +1 -1
  63. package/dist/{main.d7968e926ea5592be2a6.js → main.6692816e0953b1a60712.js} +3 -3
  64. package/dist/{main.d7968e926ea5592be2a6.js.map → main.6692816e0953b1a60712.js.map} +1 -1
  65. package/dist/pages/aclmanagement.html +1 -1
  66. package/dist/pages/autocomplete.html +1 -1
  67. package/dist/pages/choose-repository-type.html +1 -1
  68. package/dist/pages/cluster-management/clusterInfo.html +2 -2
  69. package/dist/pages/create-index.html +1 -1
  70. package/dist/pages/dependencies.html +1 -1
  71. package/dist/pages/domainRangeInfo.html +2 -2
  72. package/dist/pages/edit.html +1 -1
  73. package/dist/pages/explore.html +1 -1
  74. package/dist/pages/export.html +1 -1
  75. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  76. package/dist/pages/graphs-visualizations.html +7 -7
  77. package/dist/pages/guides.html +1 -1
  78. package/dist/pages/home.html +1 -1
  79. package/dist/pages/import.html +2 -2
  80. package/dist/pages/jdbc-create.html +1 -1
  81. package/dist/pages/jdbc.html +1 -1
  82. package/dist/pages/monitor/backup-and-restore.html +1 -1
  83. package/dist/pages/monitor/queries.html +4 -4
  84. package/dist/pages/monitor/resources.html +1 -1
  85. package/dist/pages/namespaces.html +2 -2
  86. package/dist/pages/plugins.html +1 -1
  87. package/dist/pages/rdfClassHierarchyInfo.html +8 -8
  88. package/dist/pages/rdfrank.html +2 -2
  89. package/dist/pages/repositories.html +1 -1
  90. package/dist/pages/repository.html +1 -1
  91. package/dist/pages/similarity-indexes.html +1 -1
  92. package/dist/pages/sparql-editor.html +1 -1
  93. package/dist/pages/sparql-template-create.html +1 -1
  94. package/dist/pages/sparql-templates.html +1 -1
  95. package/dist/pages/ux-test1.html +2 -2
  96. package/dist/res/swagger5/index.html +8 -8
  97. package/dist/sbom.cdx.json +6 -6
  98. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  99. package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
  100. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  101. package/dist/shared-components/shared-components/p-6fd8a7ef.entry.js +1 -0
  102. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  103. package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +1 -0
  104. package/package.json +1 -1
  105. package/dist/10804.9c5eb1358106e43a56ff.bundle.js +0 -2
  106. package/dist/10804.9c5eb1358106e43a56ff.bundle.js.map +0 -1
  107. package/dist/29733.eb663d4b8d6aa7331953.bundle.js +0 -2
  108. package/dist/29733.eb663d4b8d6aa7331953.bundle.js.map +0 -1
  109. package/dist/38046.76b9f6100b53827a1d44.bundle.js +0 -2
  110. package/dist/38046.76b9f6100b53827a1d44.bundle.js.map +0 -1
  111. package/dist/43239.40282ca142f86c6dde15.bundle.js +0 -2
  112. package/dist/43239.40282ca142f86c6dde15.bundle.js.map +0 -1
  113. package/dist/54231.a271c2f8a5cf643b3fcf.bundle.js +0 -2
  114. package/dist/54231.a271c2f8a5cf643b3fcf.bundle.js.map +0 -1
  115. package/dist/6345.2368e0979b55e4b52e55.bundle.js +0 -1
  116. package/dist/shared-components/shared-components/p-6bb1e333.entry.js +0 -1
  117. /package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js.LICENSE.txt → legacyWorkbench.fa4203b20bf8d73ada10.js.LICENSE.txt} +0 -0
  118. /package/dist/{main.d7968e926ea5592be2a6.js.LICENSE.txt → main.6692816e0953b1a60712.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=10804;export const __webpack_esm_ids__=[6345,10804,29733,86806];export const __webpack_esm_modules__={6345(e,t,n){n.d(t,{_:()=>o});const o={PENDING:"PENDING",ACTIVE:"ACTIVE",IN_NEXT:"IN_NEXT",IN_HAS_NEXT:"IN_HAS_NEXT",COMMIT_PENDING:"COMMIT_PENDING",IN_COMMIT:"IN_COMMIT",IN_COMMIT_PLUGIN:"IN_COMMIT_PLUGIN",PARALLEL_BEGIN:"PARALLEL_BEGIN",IN_PARALLEL_IMPORT:"IN_PARALLEL_IMPORT",IN_PARALLEL_COMMIT:"IN_PARALLEL_COMMIT",ENQUEUED:"ENQUEUED",IN_TESTING:"IN_TESTING",CLUSTER_REPLICATING:"FOLLOWER_COMMIT",CLOSED:"CLOSED"}},86806(e,t,n){n.d(t,{z:()=>o});const o={QUERY:"QUERY",UPDATE:"UPDATE",GRAPHQL:"GRAPHQL",ANY:"ANY"}},29733(e,t,n){n.d(t,{l:()=>r});var o=n(6345);class r{constructor(e={}){this.trackId=e.trackId,this.trackAlias=e.trackAlias,this.username=e.username,this.node=e.node,this.isRequestedToStop=e.isRequestedToStop,this.sparqlString=e.sparqlString,this.state=e.state,this.type=e.type,this.numberOfOperations=e.numberOfOperations||0,this.msSinceCreated=e.msSinceCreated||0,this.humanLifetime=e.humanLifetime,this.isClusterReplicating=this.state===o._.CLUSTER_REPLICATING,this.canAbort=!this.isRequestedToStop&&!this.isClusterReplicating,this.abortPopoverKey=function(e){const t="QUERY"===e.type;return e.isClusterReplicating?"update.cluster_replicating":e.isRequestedToStop?t?"query.abort.request":"update.requested":t?"click.to.abort.query":"click.to.abort.update"}(this)}}},10804(e,t,n){n(22742),n(21610);var o=n(29733),r=n(86806),s=n(57154),i=n(33645);const a=angular.module("graphdb.framework.jmx.queries.controllers",["ui.bootstrap","toastr","graphdb.framework.rest.monitoring.service"]);a.controller("QueriesCtrl",["$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate",function(e,t,n,a,c,u,l,d,p){const _=(0,s.service)(s.AuthenticationService),I=(0,s.service)(s.AuthenticationStorageService);e.loader=!0,e.stringLimit=500,e.expanded={},e.error="",e.paused=!1;const g=document.createElement("a");e.parseNode=function(e){if(i.B.isNullOrUndefined(e))return null;let t="local";if(e.indexOf("://localhost:")<0&&e.indexOf("://localhost/")<0){g.href=e;let n=g.hostname;(function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1})(g.hostname)||(n=g.hostname.split(".")[0]),t=n+":"+g.port}const n=e.match(/\/repositories\/([^/]+)#(\d+)/);return[n[2],t,n[1]]},e.togglePause=function(){e.paused=!e.paused},e.getQueries=function(){e.getQueriesRunning||e.paused||e.error||!c.getActiveRepository()||(e.getQueriesRunning=!0,d.monitorQuery(c.getActiveRepository()).success(function(t){const n=t;e.noQueries=0===n.length,e.queries={};for(let t=0;t<n.length;t++)n[t].parsedNode=e.parseNode(n[t].node),e.queries[n[t].trackId]=new o.l(n[t]);e.noActiveRepository=!1,e.loader=!1,e.getQueriesRunning=!1}).error(function(t){e.error=getError(t),e.loader=!1,e.getQueriesRunning=!1}))};const E=a(function(){c.isActiveRepoOntopType()||e.getQueries()},1e3);e.$on("$destroy",function(){a.cancel(E)}),e.deleteQueryHttp=function(t){e.loader=!0,d.deleteQuery(t,c.getActiveRepository()).success(function(){n.success(p.instant("abort.request.sent.msg")),e.loader=!1}).error(function(t){const o=getError(t);n.error(o,p.instant("common.error")),e.loader=!1})},e.abortQuery=function(t){l.openSimpleModal({title:p.instant("confirm.abort"),message:p.instant("confirm.abort.warning.msg"),warning:!0}).result.then(function(){e.deleteQueryHttp(t)})},e.downloadQuery=function(e){const t=e.trackId,n="query_"+t+(e.type===r.z.GRAPHQL?".json":".rq");let o="rest/monitor/repository/"+c.getActiveRepository()+"/query/download?query="+encodeURIComponent(t)+"&filename="+encodeURIComponent(n);_.isAuthenticated()&&(o=o+"&authToken="+encodeURIComponent(I.getAuthToken().getValue())),window.open(o,"_blank")},e.toggleQueryExpanded=function(t){e.expanded[t]=!e.expanded[t]}}]),a.controller("DeleteQueryCtrl",["$scope","$uibModalInstance",function(e,t){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}])}};
2
+ //# sourceMappingURL=10804.62d23036c15bd05ab8f4.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"10804.62d23036c15bd05ab8f4.bundle.js","mappings":"mKAAO,MAAMA,EAA6B,CAItC,QAAW,UAKX,OAAU,SAKV,QAAW,UACX,YAAe,cAKf,eAAkB,iBAClB,UAAa,YACb,iBAAoB,mBACpB,eAAkB,iBAClB,mBAAsB,qBACtB,mBAAsB,qBAKtB,SAAY,WACZ,WAAc,aAKd,oBAAuB,kBAKvB,OAAU,S,gCCzCP,MAAMC,EAA4B,CAIrC,MAAS,QAKT,OAAU,SAKV,QAAW,UAEX,IAAO,M,8CCdJ,MAAMC,EACTC,WAAAA,CAAYC,EAAU,CAAC,GAInBC,KAAKC,QAAUF,EAAQE,QAIvBD,KAAKE,WAAaH,EAAQG,WAI1BF,KAAKG,SAAWJ,EAAQ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acy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-state.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-type.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/queries/controllers.js"],"sourcesContent":["export const MonitoringTrackRecordState = {\n /**\n * Initial state before a permit has been acquired.\n */\n 'PENDING': 'PENDING',\n\n /**\n * state between IN_NEXT and IN_HAS_NEXT\n */\n 'ACTIVE': 'ACTIVE',\n\n // =====================\n // = Iterators' states =\n // =====================\n 'IN_NEXT': 'IN_NEXT',\n 'IN_HAS_NEXT': 'IN_HAS_NEXT',\n\n // ======================================\n // = SE/Free/Worker transaction states =\n // ======================================\n 'COMMIT_PENDING': 'COMMIT_PENDING',\n 'IN_COMMIT': 'IN_COMMIT',\n 'IN_COMMIT_PLUGIN': 'IN_COMMIT_PLUGIN',\n 'PARALLEL_BEGIN': 'PARALLEL_BEGIN',\n 'IN_PARALLEL_IMPORT': 'IN_PARALLEL_IMPORT',\n 'IN_PARALLEL_COMMIT': 'IN_PARALLEL_COMMIT',\n\n // =================\n // = Master states =\n // =================\n 'ENQUEUED': 'ENQUEUED',\n 'IN_TESTING': 'IN_TESTING',\n\n /**\n * Cluster only. The transaction is committed and is being replicated to the followers. It can't be aborted.\n */\n 'CLUSTER_REPLICATING': 'FOLLOWER_COMMIT',\n\n /**\n * final state\n */\n 'CLOSED': 'CLOSED'\n}\n","export const MonitoringTrackRecordType = {\n /**\n * Evaluating a SPARQL query (e.g., SELECT statements, or checking if statements exist)\n */\n 'QUERY': 'QUERY',\n\n /**\n * Executing a SPARQL update (e.g., adding or removing statements)\n */\n 'UPDATE': 'UPDATE',\n\n /**\n * Executing a SPARQL query in a GraphQL context\n */\n 'GRAPHQL': 'GRAPHQL',\n\n 'ANY': 'ANY'\n};\n","import {MonitoringTrackRecordState} from './monitoring-track-record-state';\n\nexport class MonitoringTrackRecord {\n constructor(rawData = {}) {\n /**\n * @type {string}\n */\n this.trackId = rawData.trackId;\n /**\n * @type {string}\n */\n this.trackAlias = rawData.trackAlias;\n /**\n * @type {string}\n */\n this.username = rawData.username;\n /**\n * @type {string}\n */\n this.node = rawData.node;\n /**\n * @type {boolean}\n */\n this.isRequestedToStop = rawData.isRequestedToStop;\n /**\n * @type {string}\n */\n this.sparqlString = rawData.sparqlString;\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordState} options.\n */\n this.state = rawData.state; // create model\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordType} options.\n */\n this.type = rawData.type; // create model\n /**\n * @type {number}\n */\n this.numberOfOperations = rawData.numberOfOperations || 0;\n /**\n * @type {number}\n */\n this.msSinceCreated = rawData.msSinceCreated || 0;\n /**\n * @type {string}\n */\n this.humanLifetime = rawData.humanLifetime;\n /**\n * @type {boolean}\n */\n this.isClusterReplicating = this.state === MonitoringTrackRecordState.CLUSTER_REPLICATING;\n /**\n * @type {boolean}\n */\n this.canAbort = !this.isRequestedToStop && !this.isClusterReplicating;\n /**\n * The translation key of the Abort button's popover.\n * @type {string}\n */\n this.abortPopoverKey = getAbortPopoverKey(this);\n }\n}\n\n/**\n * Returns the translation key of the Abort button's popover for the record's type and state.\n * @param {MonitoringTrackRecord} record\n * @return {string}\n */\nfunction getAbortPopoverKey(record) {\n const isQuery = record.type === 'QUERY';\n if (record.isClusterReplicating) {\n return 'update.cluster_replicating';\n }\n if (record.isRequestedToStop) {\n return isQuery ? 'query.abort.request' : 'update.requested';\n }\n return isQuery ? 'click.to.abort.query' : 'click.to.abort.update';\n}\n","import 'angular/core/services';\nimport 'angular/rest/monitoring.rest.service';\nimport {MonitoringTrackRecord} from \"../models/monitoring/query-and-update/monitoring-track-record\";\nimport {MonitoringTrackRecordType} from \"../models/monitoring/query-and-update/monitoring-track-record-type\";\nimport {\n AuthenticationService,\n service,\n AuthenticationStorageService,\n} from '@ontotext/workbench-api';\nimport {ObjectUtils} from \"../utils/object-utils\";\n\nconst queriesCtrl = angular.module('graphdb.framework.jmx.queries.controllers', [\n 'ui.bootstrap',\n 'toastr',\n 'graphdb.framework.rest.monitoring.service',\n]);\n\nqueriesCtrl.controller('QueriesCtrl', ['$scope', '$uibModal', 'toastr', '$interval', '$repositories', '$jwtAuth', 'ModalService',\n 'MonitoringRestService', '$translate',\n function($scope, $uibModal, toastr, $interval, $repositories, $jwtAuth, ModalService, MonitoringRestService, $translate) { // NOSONAR\n // =========================\n // Private variables\n // =========================\n const authenticationService = service(AuthenticationService);\n const authStorageService = service(AuthenticationStorageService);\n\n // =========================\n // Public variables\n // =========================\n $scope.loader = true;\n $scope.stringLimit = 500;\n $scope.expanded = {};\n $scope.error = '';\n $scope.paused = false;\n\n function containsIPV4(ip) {\n const blocks = ip.split('.');\n for (let i = 0, sequence = 0; i < blocks.length; i++) {\n if (parseInt(blocks[i], 10) >= 0 && parseInt(blocks[i], 10) <= 255) {\n sequence++;\n } else {\n sequence = 0;\n }\n if (sequence === 4) {\n return true;\n }\n }\n return false;\n }\n\n const parser = document.createElement('a');\n\n // Parses a node of the kind http://host.example.com:7200/repositories/repo#NN,\n // where NN is the track ID into an array [NN, host:7200, repo].\n $scope.parseNode = function(node) {\n if (ObjectUtils.isNullOrUndefined(node)) {\n return null;\n }\n\n let shortUrl = 'local';\n if (node.indexOf('://localhost:') < 0 && node.indexOf('://localhost/') < 0) {\n parser.href = node;\n let hostname = parser.hostname;\n if (!containsIPV4(parser.hostname)) {\n hostname = parser.hostname.split('.')[0];\n }\n shortUrl = hostname + ':' + parser.port;\n }\n const match = node.match(/\\/repositories\\/([^/]+)#(\\d+)/);\n\n return [match[2], shortUrl, match[1]];\n };\n\n $scope.togglePause = function() {\n $scope.paused = !$scope.paused;\n };\n\n $scope.getQueries = function() {\n // Skip execution if already getting from previous call, if paused, if jolokia returned an error,\n // or if no repository is available\n if ($scope.getQueriesRunning || $scope.paused || $scope.error || !$repositories.getActiveRepository()) {\n return;\n }\n\n $scope.getQueriesRunning = true;\n MonitoringRestService.monitorQuery($repositories.getActiveRepository()).success(function(data) {\n const newQueries = data;\n $scope.noQueries = newQueries.length === 0;\n\n // Converts array to object. Angular seems to handle updates on objects better, i.e.\n // it doesn't recreate DOM elements for queries that are already displayed.\n $scope.queries = {};\n for (let i = 0; i < newQueries.length; i++) {\n newQueries[i].parsedNode = $scope.parseNode(newQueries[i].node);\n $scope.queries[newQueries[i].trackId] = new MonitoringTrackRecord(newQueries[i]);\n }\n\n $scope.noActiveRepository = false;\n $scope.loader = false;\n $scope.getQueriesRunning = false;\n }).error(function(data) {\n $scope.error = getError(data);\n $scope.loader = false;\n $scope.getQueriesRunning = false;\n });\n };\n\n const timer = $interval(function() {\n // Don't call getQueries for Ontop type repository\n if ($repositories.isActiveRepoOntopType()) {\n return;\n }\n $scope.getQueries();\n }, 1000);\n\n $scope.$on('$destroy', function() {\n $interval.cancel(timer);\n });\n\n $scope.deleteQueryHttp = function(queryId) {\n $scope.loader = true;\n MonitoringRestService.deleteQuery(queryId, $repositories.getActiveRepository()).success(function() {\n toastr.success($translate.instant('abort.request.sent.msg'));\n $scope.loader = false;\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n\n $scope.loader = false;\n });\n };\n\n $scope.abortQuery = function(queryId) {\n ModalService.openSimpleModal({\n title: $translate.instant('confirm.abort'),\n message: $translate.instant('confirm.abort.warning.msg'),\n warning: true,\n }).result.then(function() {\n $scope.deleteQueryHttp(queryId);\n });\n };\n\n /**\n * Downloads the executed query.\n * @param record {MonitoringTrackRecord} The monitoring track record whose query will be downloaded.\n */\n $scope.downloadQuery = function(record) {\n const trackId = record.trackId;\n const filename = 'query_' + trackId + (record.type === MonitoringTrackRecordType.GRAPHQL ? '.json' : '.rq');\n let link = 'rest/monitor/repository/' + $repositories.getActiveRepository()\n + '/query/download?query=' + encodeURIComponent(trackId)\n + '&filename=' + encodeURIComponent(filename);\n if (authenticationService.isAuthenticated()) {\n link = link + '&authToken=' + encodeURIComponent(authStorageService.getAuthToken().getValue());\n }\n\n window.open(link, '_blank');\n };\n\n $scope.toggleQueryExpanded = function(queryId) {\n $scope.expanded[queryId] = !$scope.expanded[queryId];\n };\n }]);\n\n\nqueriesCtrl.controller('DeleteQueryCtrl', ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {\n $scope.ok = function() {\n $uibModalInstance.close();\n };\n\n $scope.cancel = function() {\n $uibModalInstance.dismiss('cancel');\n };\n}]);\n"],"names":["MonitoringTrackRecordState","MonitoringTrackRecordType","MonitoringTrackRecord","constructor","rawData","this","trackId","trackAlias","username","node","isRequestedToStop","sparqlString","state","type","numberOfOperations","msSinceCreated","humanLifetime","isClusterReplicating","CLUSTER_REPLICATING","canAbort","abortPopoverKey","record","isQuery","getAbortPopoverKey","queriesCtrl","angular","module","controller","$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate","authenticationService","service","AuthenticationService","authStorageService","AuthenticationStorageService","loader","stringLimit","expanded","error","paused","parser","document","createElement","parseNode","ObjectUtils","isNullOrUndefined","shortUrl","indexOf","href","hostname","ip","blocks","split","i","sequence","length","parseInt","containsIPV4","port","match","togglePause","getQueries","getQueriesRunning","getActiveRepository","monitorQuery","success","data","newQueries","noQueries","queries","parsedNode","noActiveRepository","getError","timer","isActiveRepoOntopType","$on","cancel","deleteQueryHttp","queryId","deleteQuery","instant","msg","abortQuery","openSimpleModal","title","message","warning","result","then","downloadQuery","filename","GRAPHQL","link","encodeURIComponent","isAuthenticated","getAuthToken","getValue","window","open","toggleQueryExpanded","$uibModalInstance","ok","close","dismiss"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=29733;export const __webpack_esm_ids__=[6345,29733];export const __webpack_esm_modules__={6345(t,e,s){s.d(e,{_:()=>i});const i={PENDING:"PENDING",ACTIVE:"ACTIVE",IN_NEXT:"IN_NEXT",IN_HAS_NEXT:"IN_HAS_NEXT",COMMIT_PENDING:"COMMIT_PENDING",IN_COMMIT:"IN_COMMIT",IN_COMMIT_PLUGIN:"IN_COMMIT_PLUGIN",PARALLEL_BEGIN:"PARALLEL_BEGIN",IN_PARALLEL_IMPORT:"IN_PARALLEL_IMPORT",IN_PARALLEL_COMMIT:"IN_PARALLEL_COMMIT",ENQUEUED:"ENQUEUED",IN_TESTING:"IN_TESTING",CLUSTER_REPLICATING:"FOLLOWER_COMMIT",CLOSED:"CLOSED"}},29733(t,e,s){s.d(e,{l:()=>_});var i=s(6345);class _{constructor(t={}){this.trackId=t.trackId,this.trackAlias=t.trackAlias,this.username=t.username,this.node=t.node,this.isRequestedToStop=t.isRequestedToStop,this.sparqlString=t.sparqlString,this.state=t.state,this.type=t.type,this.numberOfOperations=t.numberOfOperations||0,this.msSinceCreated=t.msSinceCreated||0,this.humanLifetime=t.humanLifetime,this.isClusterReplicating=this.state===i._.CLUSTER_REPLICATING,this.canAbort=!this.isRequestedToStop&&!this.isClusterReplicating,this.abortPopoverKey=function(t){const e="QUERY"===t.type;return t.isClusterReplicating?"update.cluster_replicating":t.isRequestedToStop?e?"query.abort.request":"update.requested":e?"click.to.abort.query":"click.to.abort.update"}(this)}}}};
2
+ //# sourceMappingURL=29733.55b41709d810fa99e672.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"29733.55b41709d810fa99e672.bundle.js","mappings":"uJAAO,MAAMA,EAA6B,CAItC,QAAW,UAKX,OAAU,SAKV,QAAW,UACX,YAAe,cAKf,eAAkB,iBAClB,UAAa,YACb,iBAAoB,mBACpB,eAAkB,iBAClB,mBAAsB,qBACtB,mBAAsB,qBAKtB,SAAY,WACZ,WAAc,aAKd,oBAAuB,kBAKvB,OAAU,S,8CCvCP,MAAMC,EACTC,WAAAA,CAAYC,EAAU,CAAC,GAInBC,KAAKC,QAAUF,EAAQE,QAIvBD,KAAKE,WAAaH,EAAQG,WAI1BF,KAAKG,SAAWJ,EAAQI,SAIxBH,KAAKI,KAAOL,EAAQK,KAIpBJ,KAAKK,kBAAqBN,EAAQM,kBAIlCL,KAAKM,aAAeP,EAAQO,aAI5BN,KAAKO,MAAQR,EAAQQ,MAIrBP,KAAKQ,KAAOT,EAAQS,KAIpBR,KAAKS,mBAAqBV,EAAQU,oBAAsB,EAIxDT,KAAKU,eAAiBX,EAAQW,gBAAkB,EAIhDV,KAAKW,cAAgBZ,EAAQY,cAI7BX,KAAKY,qBAAuBZ,KAAKO,QAAUX,EAAAA,EAA2BiB,oBAItEb,KAAKc,UAAYd,KAAKK,oBAAsBL,KAAKY,qBAKjDZ,KAAKe,gBASb,SAA4BC,GACxB,MAAMC,EAA0B,UAAhBD,EAAOR,KACvB,OAAIQ,EAAOJ,qBACA,6BAEPI,EAAOX,kBACAY,EAAU,sBAAwB,mBAEtCA,EAAU,uBAAyB,uBAC9C,CAlB+BC,CAAmBlB,KAC9C,E","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-state.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record.js"],"sourcesContent":["export const MonitoringTrackRecordState = {\n /**\n * Initial state before a permit has been acquired.\n */\n 'PENDING': 'PENDING',\n\n /**\n * state between IN_NEXT and IN_HAS_NEXT\n */\n 'ACTIVE': 'ACTIVE',\n\n // =====================\n // = Iterators' states =\n // =====================\n 'IN_NEXT': 'IN_NEXT',\n 'IN_HAS_NEXT': 'IN_HAS_NEXT',\n\n // ======================================\n // = SE/Free/Worker transaction states =\n // ======================================\n 'COMMIT_PENDING': 'COMMIT_PENDING',\n 'IN_COMMIT': 'IN_COMMIT',\n 'IN_COMMIT_PLUGIN': 'IN_COMMIT_PLUGIN',\n 'PARALLEL_BEGIN': 'PARALLEL_BEGIN',\n 'IN_PARALLEL_IMPORT': 'IN_PARALLEL_IMPORT',\n 'IN_PARALLEL_COMMIT': 'IN_PARALLEL_COMMIT',\n\n // =================\n // = Master states =\n // =================\n 'ENQUEUED': 'ENQUEUED',\n 'IN_TESTING': 'IN_TESTING',\n\n /**\n * Cluster only. The transaction is committed and is being replicated to the followers. It can't be aborted.\n */\n 'CLUSTER_REPLICATING': 'FOLLOWER_COMMIT',\n\n /**\n * final state\n */\n 'CLOSED': 'CLOSED'\n}\n","import {MonitoringTrackRecordState} from './monitoring-track-record-state';\n\nexport class MonitoringTrackRecord {\n constructor(rawData = {}) {\n /**\n * @type {string}\n */\n this.trackId = rawData.trackId;\n /**\n * @type {string}\n */\n this.trackAlias = rawData.trackAlias;\n /**\n * @type {string}\n */\n this.username = rawData.username;\n /**\n * @type {string}\n */\n this.node = rawData.node;\n /**\n * @type {boolean}\n */\n this.isRequestedToStop = rawData.isRequestedToStop;\n /**\n * @type {string}\n */\n this.sparqlString = rawData.sparqlString;\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordState} options.\n */\n this.state = rawData.state; // create model\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordType} options.\n */\n this.type = rawData.type; // create model\n /**\n * @type {number}\n */\n this.numberOfOperations = rawData.numberOfOperations || 0;\n /**\n * @type {number}\n */\n this.msSinceCreated = rawData.msSinceCreated || 0;\n /**\n * @type {string}\n */\n this.humanLifetime = rawData.humanLifetime;\n /**\n * @type {boolean}\n */\n this.isClusterReplicating = this.state === MonitoringTrackRecordState.CLUSTER_REPLICATING;\n /**\n * @type {boolean}\n */\n this.canAbort = !this.isRequestedToStop && !this.isClusterReplicating;\n /**\n * The translation key of the Abort button's popover.\n * @type {string}\n */\n this.abortPopoverKey = getAbortPopoverKey(this);\n }\n}\n\n/**\n * Returns the translation key of the Abort button's popover for the record's type and state.\n * @param {MonitoringTrackRecord} record\n * @return {string}\n */\nfunction getAbortPopoverKey(record) {\n const isQuery = record.type === 'QUERY';\n if (record.isClusterReplicating) {\n return 'update.cluster_replicating';\n }\n if (record.isRequestedToStop) {\n return isQuery ? 'query.abort.request' : 'update.requested';\n }\n return isQuery ? 'click.to.abort.query' : 'click.to.abort.update';\n}\n"],"names":["MonitoringTrackRecordState","MonitoringTrackRecord","constructor","rawData","this","trackId","trackAlias","username","node","isRequestedToStop","sparqlString","state","type","numberOfOperations","msSinceCreated","humanLifetime","isClusterReplicating","CLUSTER_REPLICATING","canAbort","abortPopoverKey","record","isQuery","getAbortPopoverKey"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=38046;export const __webpack_esm_ids__=[6345,10804,29733,38046,86806];export const __webpack_esm_modules__={6345(e,t,r){r.d(t,{_:()=>o});const o={PENDING:"PENDING",ACTIVE:"ACTIVE",IN_NEXT:"IN_NEXT",IN_HAS_NEXT:"IN_HAS_NEXT",COMMIT_PENDING:"COMMIT_PENDING",IN_COMMIT:"IN_COMMIT",IN_COMMIT_PLUGIN:"IN_COMMIT_PLUGIN",PARALLEL_BEGIN:"PARALLEL_BEGIN",IN_PARALLEL_IMPORT:"IN_PARALLEL_IMPORT",IN_PARALLEL_COMMIT:"IN_PARALLEL_COMMIT",ENQUEUED:"ENQUEUED",IN_TESTING:"IN_TESTING",CLUSTER_REPLICATING:"FOLLOWER_COMMIT",CLOSED:"CLOSED"}},86806(e,t,r){r.d(t,{z:()=>o});const o={QUERY:"QUERY",UPDATE:"UPDATE",GRAPHQL:"GRAPHQL",ANY:"ANY"}},29733(e,t,r){r.d(t,{l:()=>n});var o=r(6345);class n{constructor(e={}){this.trackId=e.trackId,this.trackAlias=e.trackAlias,this.username=e.username,this.node=e.node,this.isRequestedToStop=e.isRequestedToStop,this.sparqlString=e.sparqlString,this.state=e.state,this.type=e.type,this.numberOfOperations=e.numberOfOperations||0,this.msSinceCreated=e.msSinceCreated||0,this.humanLifetime=e.humanLifetime,this.isClusterReplicating=this.state===o._.CLUSTER_REPLICATING,this.canAbort=!this.isRequestedToStop&&!this.isClusterReplicating,this.abortPopoverKey=function(e){const t="QUERY"===e.type;return e.isClusterReplicating?"update.cluster_replicating":e.isRequestedToStop?t?"query.abort.request":"update.requested":t?"click.to.abort.query":"click.to.abort.update"}(this)}}},38046(e,t,r){r(22742),r(33136),r(10804),angular.module("graphdb.framework.jmx.queries",["toastr","ui.bootstrap","graphdb.framework.jmx.queries.controllers","graphdb.framework.core.directives"])},10804(e,t,r){r(22742),r(21610);var o=r(29733),n=r(86806),s=r(57154),i=r(33645);const a=angular.module("graphdb.framework.jmx.queries.controllers",["ui.bootstrap","toastr","graphdb.framework.rest.monitoring.service"]);a.controller("QueriesCtrl",["$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate",function(e,t,r,a,c,u,l,d,p){const _=(0,s.service)(s.AuthenticationService),I=(0,s.service)(s.AuthenticationStorageService);e.loader=!0,e.stringLimit=500,e.expanded={},e.error="",e.paused=!1;const g=document.createElement("a");e.parseNode=function(e){if(i.B.isNullOrUndefined(e))return null;let t="local";if(e.indexOf("://localhost:")<0&&e.indexOf("://localhost/")<0){g.href=e;let r=g.hostname;(function(e){const t=e.split(".");for(let e=0,r=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?r++:r=0,4===r)return!0;return!1})(g.hostname)||(r=g.hostname.split(".")[0]),t=r+":"+g.port}const r=e.match(/\/repositories\/([^/]+)#(\d+)/);return[r[2],t,r[1]]},e.togglePause=function(){e.paused=!e.paused},e.getQueries=function(){e.getQueriesRunning||e.paused||e.error||!c.getActiveRepository()||(e.getQueriesRunning=!0,d.monitorQuery(c.getActiveRepository()).success(function(t){const r=t;e.noQueries=0===r.length,e.queries={};for(let t=0;t<r.length;t++)r[t].parsedNode=e.parseNode(r[t].node),e.queries[r[t].trackId]=new o.l(r[t]);e.noActiveRepository=!1,e.loader=!1,e.getQueriesRunning=!1}).error(function(t){e.error=getError(t),e.loader=!1,e.getQueriesRunning=!1}))};const m=a(function(){c.isActiveRepoOntopType()||e.getQueries()},1e3);e.$on("$destroy",function(){a.cancel(m)}),e.deleteQueryHttp=function(t){e.loader=!0,d.deleteQuery(t,c.getActiveRepository()).success(function(){r.success(p.instant("abort.request.sent.msg")),e.loader=!1}).error(function(t){const o=getError(t);r.error(o,p.instant("common.error")),e.loader=!1})},e.abortQuery=function(t){l.openSimpleModal({title:p.instant("confirm.abort"),message:p.instant("confirm.abort.warning.msg"),warning:!0}).result.then(function(){e.deleteQueryHttp(t)})},e.downloadQuery=function(e){const t=e.trackId,r="query_"+t+(e.type===n.z.GRAPHQL?".json":".rq");let o="rest/monitor/repository/"+c.getActiveRepository()+"/query/download?query="+encodeURIComponent(t)+"&filename="+encodeURIComponent(r);_.isAuthenticated()&&(o=o+"&authToken="+encodeURIComponent(I.getAuthToken().getValue())),window.open(o,"_blank")},e.toggleQueryExpanded=function(t){e.expanded[t]=!e.expanded[t]}}]),a.controller("DeleteQueryCtrl",["$scope","$uibModalInstance",function(e,t){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}])}};
2
+ //# sourceMappingURL=38046.d5fcf560e9573afe0793.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"38046.d5fcf560e9573afe0793.bundle.js","mappings":"yKAAO,MAAMA,EAA6B,CAItC,QAAW,UAKX,OAAU,SAKV,QAAW,UACX,YAAe,cAKf,eAAkB,iBAClB,UAAa,YACb,iBAAoB,mBACpB,eAAkB,iBAClB,mBAAsB,qBACtB,mBAAsB,qBAKtB,SAAY,WACZ,WAAc,aAKd,oBAAuB,kBAKvB,OAAU,S,gCCzCP,MAAMC,EAA4B,CAIrC,MAAS,QAKT,OAAU,SAKV,QAAW,UAEX,IAAO,M,8CCdJ,MAAMC,EACTC,WAAAA,CAAYC,EAAU,CAAC,GAInBC,KAAKC,QAAUF,EAAQE,QAIvBD,KAAKE,WAAaH,EAAQG,WAI1BF,KAAKG,SAAWJ,EAAQI,SAIxBH,KAAKI,KAAOL,EAAQK,KAIpBJ,KAAKK,kBAAqBN,EAAQM,kBAIlCL,KAAKM,aAAeP,EAAQO,aAI5BN,KAAKO,MAAQR,EAAQQ,MAIrBP,KAAKQ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AAUoD,OAAOH,EACrB,GAEApD,EAAOwD,gBAAkB,SAASC,GAC9BzD,EAAOc,QAAS,EAChBP,EAAsBmD,YAAYD,EAASrD,EAAcsC,uBAAuBE,QAAQ,WACpF1C,EAAO0C,QAAQpC,EAAWmD,QAAQ,2BAClC3D,EAAOc,QAAS,CACpB,GAAGG,MAAM,SAAS4B,GACd,MAAMe,EAAMT,SAASN,GACrB3C,EAAOe,MAAM2C,EAAKpD,EAAWmD,QAAQ,iBAErC3D,EAAOc,QAAS,CACpB,EACJ,EAEAd,EAAO6D,WAAa,SAASJ,GACzBnD,EAAawD,gBAAgB,CACzBC,MAAOvD,EAAWmD,QAAQ,iBAC1BK,QAASxD,EAAWmD,QAAQ,6BAC5BM,SAAS,IACVC,OAAOC,KAAK,WACXnE,EAAOwD,gBAAgBC,EAC3B,EACJ,EAMAzD,EAAOoE,cAAgB,SAAS3E,GAC5B,MAAMf,EAAUe,EAAOf,QACjB2F,EAAW,SAAW3F,GAAWe,EAAOR,OAASZ,EAAAA,EAA0BiG,QAAU,QAAU,OACrG,IAAIC,EAAO,2BAA6BnE,EAAcsC,sBAChD,yBAA2B8B,mBAAmB9F,GAC9C,aAAe8F,mBAAmBH,GACpC5D,EAAsBgE,oBACtBF,EAAOA,EAAO,cAAgBC,mBAAmB5D,EAAmB8D,eAAeC,aAGvFC,OAAOC,KAAKN,EAAM,SACtB,EAEAvE,EAAO8E,oBAAsB,SAASrB,GAClCzD,EAAOgB,SAASyC,IAAYzD,EAAOgB,SAASyC,EAChD,CACJ,IAGJ3D,EAAYC,WAAW,kBAAmB,CAAC,SAAU,oBAAqB,SAASC,EAAQ+E,GACvF/E,EAAOgF,GAAK,WACRD,EAAkBE,OACtB,EAEAjF,EAAOuD,OAAS,WACZwB,EAAkBG,QAAQ,SAC9B,CACJ,G","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-state.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-type.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/queries/app.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/queries/controllers.js"],"sourcesContent":["export const MonitoringTrackRecordState = {\n /**\n * Initial state before a permit has been acquired.\n */\n 'PENDING': 'PENDING',\n\n /**\n * state between IN_NEXT and IN_HAS_NEXT\n */\n 'ACTIVE': 'ACTIVE',\n\n // =====================\n // = Iterators' states =\n // =====================\n 'IN_NEXT': 'IN_NEXT',\n 'IN_HAS_NEXT': 'IN_HAS_NEXT',\n\n // ======================================\n // = SE/Free/Worker transaction states =\n // ======================================\n 'COMMIT_PENDING': 'COMMIT_PENDING',\n 'IN_COMMIT': 'IN_COMMIT',\n 'IN_COMMIT_PLUGIN': 'IN_COMMIT_PLUGIN',\n 'PARALLEL_BEGIN': 'PARALLEL_BEGIN',\n 'IN_PARALLEL_IMPORT': 'IN_PARALLEL_IMPORT',\n 'IN_PARALLEL_COMMIT': 'IN_PARALLEL_COMMIT',\n\n // =================\n // = Master states =\n // =================\n 'ENQUEUED': 'ENQUEUED',\n 'IN_TESTING': 'IN_TESTING',\n\n /**\n * Cluster only. The transaction is committed and is being replicated to the followers. It can't be aborted.\n */\n 'CLUSTER_REPLICATING': 'FOLLOWER_COMMIT',\n\n /**\n * final state\n */\n 'CLOSED': 'CLOSED'\n}\n","export const MonitoringTrackRecordType = {\n /**\n * Evaluating a SPARQL query (e.g., SELECT statements, or checking if statements exist)\n */\n 'QUERY': 'QUERY',\n\n /**\n * Executing a SPARQL update (e.g., adding or removing statements)\n */\n 'UPDATE': 'UPDATE',\n\n /**\n * Executing a SPARQL query in a GraphQL context\n */\n 'GRAPHQL': 'GRAPHQL',\n\n 'ANY': 'ANY'\n};\n","import {MonitoringTrackRecordState} from './monitoring-track-record-state';\n\nexport class MonitoringTrackRecord {\n constructor(rawData = {}) {\n /**\n * @type {string}\n */\n this.trackId = rawData.trackId;\n /**\n * @type {string}\n */\n this.trackAlias = rawData.trackAlias;\n /**\n * @type {string}\n */\n this.username = rawData.username;\n /**\n * @type {string}\n */\n this.node = rawData.node;\n /**\n * @type {boolean}\n */\n this.isRequestedToStop = rawData.isRequestedToStop;\n /**\n * @type {string}\n */\n this.sparqlString = rawData.sparqlString;\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordState} options.\n */\n this.state = rawData.state; // create model\n /**\n * @type {string} - the value have to be one of the {@link MonitoringTrackRecordType} options.\n */\n this.type = rawData.type; // create model\n /**\n * @type {number}\n */\n this.numberOfOperations = rawData.numberOfOperations || 0;\n /**\n * @type {number}\n */\n this.msSinceCreated = rawData.msSinceCreated || 0;\n /**\n * @type {string}\n */\n this.humanLifetime = rawData.humanLifetime;\n /**\n * @type {boolean}\n */\n this.isClusterReplicating = this.state === MonitoringTrackRecordState.CLUSTER_REPLICATING;\n /**\n * @type {boolean}\n */\n this.canAbort = !this.isRequestedToStop && !this.isClusterReplicating;\n /**\n * The translation key of the Abort button's popover.\n * @type {string}\n */\n this.abortPopoverKey = getAbortPopoverKey(this);\n }\n}\n\n/**\n * Returns the translation key of the Abort button's popover for the record's type and state.\n * @param {MonitoringTrackRecord} record\n * @return {string}\n */\nfunction getAbortPopoverKey(record) {\n const isQuery = record.type === 'QUERY';\n if (record.isClusterReplicating) {\n return 'update.cluster_replicating';\n }\n if (record.isRequestedToStop) {\n return isQuery ? 'query.abort.request' : 'update.requested';\n }\n return isQuery ? 'click.to.abort.query' : 'click.to.abort.update';\n}\n","import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/queries/controllers';\n\nconst modules = [\n 'toastr',\n 'ui.bootstrap',\n 'graphdb.framework.jmx.queries.controllers',\n 'graphdb.framework.core.directives'\n];\n\nangular.module('graphdb.framework.jmx.queries', modules);\n","import 'angular/core/services';\nimport 'angular/rest/monitoring.rest.service';\nimport {MonitoringTrackRecord} from \"../models/monitoring/query-and-update/monitoring-track-record\";\nimport {MonitoringTrackRecordType} from \"../models/monitoring/query-and-update/monitoring-track-record-type\";\nimport {\n AuthenticationService,\n service,\n AuthenticationStorageService,\n} from '@ontotext/workbench-api';\nimport {ObjectUtils} from \"../utils/object-utils\";\n\nconst queriesCtrl = angular.module('graphdb.framework.jmx.queries.controllers', [\n 'ui.bootstrap',\n 'toastr',\n 'graphdb.framework.rest.monitoring.service',\n]);\n\nqueriesCtrl.controller('QueriesCtrl', ['$scope', '$uibModal', 'toastr', '$interval', '$repositories', '$jwtAuth', 'ModalService',\n 'MonitoringRestService', '$translate',\n function($scope, $uibModal, toastr, $interval, $repositories, $jwtAuth, ModalService, MonitoringRestService, $translate) { // NOSONAR\n // =========================\n // Private variables\n // =========================\n const authenticationService = service(AuthenticationService);\n const authStorageService = service(AuthenticationStorageService);\n\n // =========================\n // Public variables\n // =========================\n $scope.loader = true;\n $scope.stringLimit = 500;\n $scope.expanded = {};\n $scope.error = '';\n $scope.paused = false;\n\n function containsIPV4(ip) {\n const blocks = ip.split('.');\n for (let i = 0, sequence = 0; i < blocks.length; i++) {\n if (parseInt(blocks[i], 10) >= 0 && parseInt(blocks[i], 10) <= 255) {\n sequence++;\n } else {\n sequence = 0;\n }\n if (sequence === 4) {\n return true;\n }\n }\n return false;\n }\n\n const parser = document.createElement('a');\n\n // Parses a node of the kind http://host.example.com:7200/repositories/repo#NN,\n // where NN is the track ID into an array [NN, host:7200, repo].\n $scope.parseNode = function(node) {\n if (ObjectUtils.isNullOrUndefined(node)) {\n return null;\n }\n\n let shortUrl = 'local';\n if (node.indexOf('://localhost:') < 0 && node.indexOf('://localhost/') < 0) {\n parser.href = node;\n let hostname = parser.hostname;\n if (!containsIPV4(parser.hostname)) {\n hostname = parser.hostname.split('.')[0];\n }\n shortUrl = hostname + ':' + parser.port;\n }\n const match = node.match(/\\/repositories\\/([^/]+)#(\\d+)/);\n\n return [match[2], shortUrl, match[1]];\n };\n\n $scope.togglePause = function() {\n $scope.paused = !$scope.paused;\n };\n\n $scope.getQueries = function() {\n // Skip execution if already getting from previous call, if paused, if jolokia returned an error,\n // or if no repository is available\n if ($scope.getQueriesRunning || $scope.paused || $scope.error || !$repositories.getActiveRepository()) {\n return;\n }\n\n $scope.getQueriesRunning = true;\n MonitoringRestService.monitorQuery($repositories.getActiveRepository()).success(function(data) {\n const newQueries = data;\n $scope.noQueries = newQueries.length === 0;\n\n // Converts array to object. Angular seems to handle updates on objects better, i.e.\n // it doesn't recreate DOM elements for queries that are already displayed.\n $scope.queries = {};\n for (let i = 0; i < newQueries.length; i++) {\n newQueries[i].parsedNode = $scope.parseNode(newQueries[i].node);\n $scope.queries[newQueries[i].trackId] = new MonitoringTrackRecord(newQueries[i]);\n }\n\n $scope.noActiveRepository = false;\n $scope.loader = false;\n $scope.getQueriesRunning = false;\n }).error(function(data) {\n $scope.error = getError(data);\n $scope.loader = false;\n $scope.getQueriesRunning = false;\n });\n };\n\n const timer = $interval(function() {\n // Don't call getQueries for Ontop type repository\n if ($repositories.isActiveRepoOntopType()) {\n return;\n }\n $scope.getQueries();\n }, 1000);\n\n $scope.$on('$destroy', function() {\n $interval.cancel(timer);\n });\n\n $scope.deleteQueryHttp = function(queryId) {\n $scope.loader = true;\n MonitoringRestService.deleteQuery(queryId, $repositories.getActiveRepository()).success(function() {\n toastr.success($translate.instant('abort.request.sent.msg'));\n $scope.loader = false;\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n\n $scope.loader = false;\n });\n };\n\n $scope.abortQuery = function(queryId) {\n ModalService.openSimpleModal({\n title: $translate.instant('confirm.abort'),\n message: $translate.instant('confirm.abort.warning.msg'),\n warning: true,\n }).result.then(function() {\n $scope.deleteQueryHttp(queryId);\n });\n };\n\n /**\n * Downloads the executed query.\n * @param record {MonitoringTrackRecord} The monitoring track record whose query will be downloaded.\n */\n $scope.downloadQuery = function(record) {\n const trackId = record.trackId;\n const filename = 'query_' + trackId + (record.type === MonitoringTrackRecordType.GRAPHQL ? '.json' : '.rq');\n let link = 'rest/monitor/repository/' + $repositories.getActiveRepository()\n + '/query/download?query=' + encodeURIComponent(trackId)\n + '&filename=' + encodeURIComponent(filename);\n if (authenticationService.isAuthenticated()) {\n link = link + '&authToken=' + encodeURIComponent(authStorageService.getAuthToken().getValue());\n }\n\n window.open(link, '_blank');\n };\n\n $scope.toggleQueryExpanded = function(queryId) {\n $scope.expanded[queryId] = !$scope.expanded[queryId];\n };\n }]);\n\n\nqueriesCtrl.controller('DeleteQueryCtrl', ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {\n $scope.ok = function() {\n $uibModalInstance.close();\n };\n\n $scope.cancel = function() {\n $uibModalInstance.dismiss('cancel');\n };\n}]);\n"],"names":["MonitoringTrackRecordState","MonitoringTrackRecordType","MonitoringTrackRecord","constructor","rawData","this","trackId","trackAlias","username","node","isRequestedToStop","sparqlString","state","type","numberOfOperations","msSinceCreated","humanLifetime","isClusterReplicating","CLUSTER_REPLICATING","canAbort","abortPopoverKey","record","isQuery","getAbortPopoverKey","angular","module","queriesCtrl","controller","$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate","authenticationService","service","AuthenticationService","authStorageService","AuthenticationStorageService","loader","stringLimit","expanded","error","paused","parser","document","createElement","parseNode","ObjectUtils","isNullOrUndefined","shortUrl","indexOf","href","hostname","ip","blocks","split","i","sequence","length","parseInt","containsIPV4","port","match","togglePause","getQueries","getQueriesRunning","getActiveRepository","monitorQuery","success","data","newQueries","noQueries","queries","parsedNode","noActiveRepository","getError","timer","isActiveRepoOntopType","$on","cancel","deleteQueryHttp","queryId","deleteQuery","instant","msg","abortQuery","openSimpleModal","title","message","warning","result","then","downloadQuery","filename","GRAPHQL","link","encodeURIComponent","isAuthenticated","getAuthToken","getValue","window","open","toggleQueryExpanded","$uibModalInstance","ok","close","dismiss"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=43239;export const __webpack_esm_ids__=[43239];export const __webpack_esm_modules__={29229(e,t,i){function a(e,t=300){let i;return(...a)=>{clearTimeout(i),i=setTimeout(()=>e.apply(this,a),t)}}i.d(t,{d:()=>a})},53325(e,t,i){i.d(t,{L:()=>n});var a=i(57154);class n{static get logger(){return a.Loggers.getLoggerInstance("SharedComponents")}}},43239(e,t,i){i.r(t),i.d(t,{onto_layout:()=>c});var a=i(18072),n=i(29229),s=i(57154),o=i(19003);i(53325);const r="main-content",c=class{constructor(e){(0,a.r)(this,e),this.authenticationService=(0,s.service)(s.AuthenticationService),this.authorizationService=(0,s.service)(s.AuthorizationService),this.navigationContextService=(0,s.service)(s.NavigationContextService),this.authStorageService=(0,s.service)(s.AuthenticationStorageService),this.runtimeConfigurationContextService=(0,s.service)(s.RuntimeConfigurationContextService),this.eventService=(0,s.service)(s.EventService),this.applicationLifecycleContextService=(0,s.service)(s.ApplicationLifecycleContextService),this.fullJwtKey=`${s.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${s.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`,this.authEvents=[this.fullJwtKey,this.fullAuthenticatedKey],this.isLowResolution=!1,this.showHeader=this.isAuthenticatedFully(),this.showNavbar=!1,this.isEmbedded=!1,this.loading=!0,this.subscriptions=new s.SubscriptionList,this.isNavbarCollapsed=!1,this.shouldFocusMainContentAfterLoading=!1,this.isPageChanging=!1,this.onSkipLinkClick=e=>{e.preventDefault(),this.focusMainContent()},this.handleStorageChange=e=>{(0,s.service)(s.LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=(0,n.d)(()=>this.windowResizeHandler(),50),s.WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentWillLoad(){this.applicationLifecycleContextService.getApplicationsState()&&(this.loading=!1),this.keepMainContentInPlace()}componentDidRender(){this.windowResizeHandler(),this.shouldFocusMainContentAfterLoading&&!this.loading&&(this.shouldFocusMainContentAfterLoading=!1,((0,o.i)()||this.isFocusInNavbar())&&this.focusMainContent())}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToNavigationStart(),this.subscribeToBeforeMountRouting()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return(0,a.h)(a.a,{key:"cf3499ffab935630b1a6f5418707e125d49bea64",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},!this.isEmbedded&&this.showNavbar&&(0,a.h)("a",{key:"b5cbb0f69e2a7684c96a28be6f0b33cf0ce92f1e",class:"skip-link",href:`#${r}`,onClick:this.onSkipLinkClick},(0,a.h)("translate-label",{key:"48bc88ceb3d26c655a057df035494c8c73c1525a",labelKey:"layout.skip_to_main_content"})),(0,a.h)("div",{key:"a9324c1ac2c5ae522e0790a6628c9adc881b4442",class:"default-slot-wrapper"},(0,a.h)("slot",{key:"fb79a12af9f53ecc5a3760638e65e1b7bd362542",name:"default"})),!this.isEmbedded&&(0,a.h)("div",{key:"53d252627426b22677b512c169c55615b00fc8af",class:"wb-header"},(0,a.h)("header",{key:"7878ea9d5a00c19c83020b0a13fa79d493fc21f9"},this.showHeader&&(0,a.h)("onto-header",{key:"57aef16e9fb847c90c5e9a8b600327e0537caed5"}))),!this.isEmbedded&&this.showNavbar&&(0,a.h)("nav",{key:"5e3611d14501c19396d493e16a3539f5cd31bf88",class:"wb-navbar"},(0,a.h)("onto-navbar",{key:"23477f1077adf3a45cc2271351b247450e405041",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),(0,a.h)("slot",{key:"2d33a33a7ede92666a935d8c2a5ca39f52f9cb9b",name:"main"},(0,a.h)("onto-loader",{key:"61910e13a38677899006f35bc4ef41c3c93b4a49",loading:this.loading,targetSelector:"main",size:96,messageText:o.T.translate("common.loading")})),!this.isEmbedded&&(0,a.h)("footer",{key:"3f25bad884d021a76a22ffe028a15e24960974c2",class:"wb-footer"},(0,a.h)("onto-footer",{key:"fa4818df751564c12e0df2a52810286e42c3415b"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}handleDocumentKeydown(e){if("Tab"===e.key&&e.shiftKey){const t=document.querySelector('[data-backward-focus-target="true"]');t&&(e.preventDefault(),this.focusBackwardTargetInNav(t))}}handleGlobalFocus(e){const t=document.querySelector('[data-backward-focus-target="true"]');t&&e.target.getAttribute("id")!==r&&delete t.dataset.backwardFocusTarget}focusMainContent(){var e;null===(e=document.getElementById(r))||void 0===e||e.focus()}windowResizeHandler(){var e,t,i,a,n;this.isLowResolution=s.WindowService.getWindow().innerWidth<=768;const o=document.querySelector(".navbar-component"),r=null!==(i=null===(t=null===(e=document.querySelector(".wb-header"))||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==i?i:0;if(document.documentElement.style.setProperty("--wb-header-height",`${r}px`),o){const e=document.querySelector(".cookie-consent-banner"),t=null!==(n=null===(a=null==e?void 0:e.getBoundingClientRect())||void 0===a?void 0:a.height)&&void 0!==n?n:0;o.style.height=`calc(100% - ${r}px - ${t}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var t;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?(0,s.navigate)(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):(0,s.isLoginPage)()||(0,s.navigateToLoginPage)(),s.WindowService.getWindow().location.reload())}focusBackwardTargetInNav(e){var t,i;if(null==e?void 0:e.classList.contains("sub-menu-link")){const a=null===(i=null===(t=e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.previousElementSibling;"false"===(null==a?void 0:a.getAttribute("aria-expanded"))&&a.click()}setTimeout(()=>{e.focus(),delete e.dataset.backwardFocusTarget},10)}keepMainContentInPlace(){const e=this.hostElement,t=e.insertBefore.bind(e);e.insertBefore=(i,a)=>i.parentNode===e&&"MAIN"===i.nodeName&&a===e.firstChild?i:t(i,a)}subscribeToSecurityChanges(){const e=(0,s.service)(s.SecurityContextService);this.subscriptions.add(e.onAuthenticatedUserChanged(e=>{this.authenticatedUser=e,this.updateVisibility()})),this.subscriptions.add(e.onSecurityConfigChanged(e=>{this.securityConfig=e,this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(s.EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(s.EventName.LOGGED_OUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),(0,s.navigateToLoginPage)()}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var t;this.isEmbedded=null!==(t=null==e?void 0:e.isEmbedded)&&void 0!==t&&t}))}updateVisibility(){this.authenticationService.isSecurityEnabled()?(this.showHeader=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess(),this.showNavbar=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()):(this.showNavbar=!0,this.showHeader=!0)}isAuthenticatedFully(){return!this.authenticationService.isSecurityEnabled()||this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()}shouldShowMenu(e){return this.isAuthenticatedFully()&&this.authorizationService.hasRole(e)}assignNavbarRef(){return e=>{this.navbarRef=e,this.navbarRef&&(this.navbarRef.menuItems=s.WindowService.getPluginRegistry().get(s.MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,t,i;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var t;e.shouldShow=this.shouldShowMenu(e.role),(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.forEach(a)};null===(i=null===(t=this.navbarRef)||void 0===t?void 0:t.menuItems)||void 0===i||i.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(s.EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),this.focusMainContentOnPageChange(e),setTimeout(()=>{this.loading=!1})}))}focusMainContentOnPageChange({oldUrl:e,newUrl:t}){!e||(0,s.isSamePage)(e,t)||!this.isFocusInNavbar()&&!this.isFocusLostOrInMainContent()||this.isFocusInNavbar()&&this.isPointerNavigation()||(this.loading?this.shouldFocusMainContentAfterLoading=!0:this.focusMainContent())}isFocusLostOrInMainContent(){var e;return(0,o.i)()||!!(null===(e=document.getElementById(r))||void 0===e?void 0:e.contains(document.activeElement))}isFocusInNavbar(){var e;return!!(null===(e=document.getElementById("navbar"))||void 0===e?void 0:e.contains(document.activeElement))}isPointerNavigation(){var e,t;const i=null===(e=document.activeElement)||void 0===e?void 0:e.dataset.pointerType;return null===(t=document.activeElement)||void 0===t||delete t.dataset.pointerType,"mouse"===i||"touch"===i||"pen"===i}subscribeToNavigationStart(){this.subscriptions.add(this.eventService.subscribe(s.EventName.NAVIGATION_START,({oldUrl:e,newUrl:t})=>{this.isPageChanging=!e||!t||!(0,s.isSamePage)(e,t);const i=document.querySelector('[data-backward-focus-target="true"]');this.isPageChanging&&"page"===(null==i?void 0:i.dataset.ariaCurrent)&&delete i.dataset.backwardFocusTarget}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.eventService.subscribe(s.EventName.BEFORE_MOUNT_ROUTING_EVENT,()=>{this.isPageChanging&&(this.loading=!0)}))}get hostElement(){return(0,a.d)(this)}};c.style=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout main:focus{outline:none}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}.wb-layout .skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wb-layout .skip-link:focus{position:fixed;top:0.5rem;left:0.5rem;z-index:1000;display:inline-flex;align-items:center;gap:var(--gw-button-gap);padding:var(--gw-button-padding-y) var(--gw-button-padding-x);border:1px solid var(--gw-button-secondary-border-color);border-radius:var(--gw-button-border-radius);background:var(--gw-background-elevated);color:var(--gw-button-secondary-color);font-family:var(--gw-button-label-typography-font-family);font-size:var(--gw-button-label-typography-font-size);font-weight:var(--gw-button-label-typography-font-weight);line-height:var(--gw-button-label-typography-line-height);text-decoration:none;white-space:nowrap;outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-secondary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.wb-layout .skip-link:focus:hover{border-color:var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.wb-layout .skip-link:focus:active{border-color:var(--gw-button-secondary-active-border-color);color:var(--gw-button-secondary-active-color)}'},19003(e,t,i){i.d(t,{T:()=>l,e:()=>o,i:()=>r,s:()=>s});var a=i(57154),n=i(53325);function s(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}function o(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""}function r(){const e=document.activeElement;return!e||e===document.body}class c{constructor(){this.languageContextService=a.ServiceProvider.get(a.LanguageContextService),this.translationChangedObservers={},this.logger=n.L.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],i=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const a={parameters:t,callback:i};return this.translationChangedObservers[e].push(a),i(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(a);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let i=this.translateFromBundle(this.currentBundle,e);return i||(i=this.translateFromBundle(this.defaultBundle,e)),i?(i=this.applyParameters(i,t),s(i)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let i=e[t];return"string"!=typeof i&&(i=this.translateAsJsonObject(e,t)),i}translateAsJsonObject(e,t){if(!t)return;let i=t.split(".");return this.getTranslation(e,i)}getTranslation(e,t){if(!t||!e)return;const i=e[t.splice(0,1)[0]];return 0===t.length?i:"string"!=typeof i?t.length>0?this.getTranslation(i,t):i:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>c.replaceAll(e,t),e):e}static replaceAll(e,t){return t?e.split(`{{${t.key}}}`).join(t.value):e}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach(e=>{(this.translationChangedObservers[e]||[]).forEach(t=>t.callback(this.translate(e,t.parameters)))})}subscribeToBundleChange(){this.languageChangeSubscription=this.languageContextService.onLanguageBundleChanged(e=>{e&&(this.currentBundle=e,this.notifyTranslationsChanged())})}destroy(){this.languageChangeSubscription&&this.languageChangeSubscription()}}const l=new c}};
2
+ //# sourceMappingURL=43239.c76fc77febaf50657b13.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"43239.c76fc77febaf50657b13.bundle.js","mappings":"kIAAA,SAASA,EAASC,EAAMC,EAAO,KAC3B,IAAIC,EACJ,MAAO,IAAIC,KACPC,aAAaF,GACbA,EAAQG,WAAW,IAAML,EAAKM,MAAMC,KAAM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,IACAnO,KAAKgO,cAAgBG,EACrBnO,KAAK8O,8BAGjB,CACAM,OAAAA,GACQpP,KAAKkP,4BACLlP,KAAKkP,4BAEb,EAEJ,MAAM7J,EAAqB,IAAIqH,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/function-utils-D1ZpXQQS.js","webpack://root-config/./packages/shared-components/dist/esm/logger-provider-BIkLC5Zf.js","webpack://root-config/./packages/shared-components/dist/esm/onto-layout.entry.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-BIRn4Afp.js"],"sourcesContent":["function debounce(func, wait = 300) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => func.apply(this, args), wait);\n };\n}\n\nexport { debounce as d };\n","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, d as getElement } from './index-BntG-4Sv.js';\nimport { d as debounce } from './function-utils-D1ZpXQQS.js';\nimport { service, AuthenticationService, AuthorizationService, NavigationContextService, AuthenticationStorageService, RuntimeConfigurationContextService, EventService, ApplicationLifecycleContextService, StorageKey, SubscriptionList, LocalStorageSubscriptionHandlerService, WindowService, navigate, isLoginPage, navigateToLoginPage, SecurityContextService, EventName, MainMenuExtensionPoint, isSamePage } from '@ontotext/workbench-api';\nimport { i as isFocusLost, T as TranslationService } from './translation.service-BIRn4Afp.js';\nimport './logger-provider-BIkLC5Zf.js';\n\nconst RESPONSIVE_BREAKPOINTS = {\n MD: 768};\n/**\n * The width of the window in pixels at which the navbar should collapse.\n */\nconst WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR = RESPONSIVE_BREAKPOINTS.MD;\n\nconst ontoLayoutCss = \":host{display:block;height:100%}.wb-layout{display:grid;grid-template:\\\"header header\\\" auto \\\"nav main\\\" 1fr \\\"nav footer\\\" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:\\\"main\\\";padding-top:1rem}.wb-layout.hide-navbar{grid-template:\\\"header\\\" auto \\\"main\\\" 1fr \\\"footer\\\" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout main:focus{outline:none}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}.wb-layout .skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wb-layout .skip-link:focus{position:fixed;top:0.5rem;left:0.5rem;z-index:1000;display:inline-flex;align-items:center;gap:var(--gw-button-gap);padding:var(--gw-button-padding-y) var(--gw-button-padding-x);border:1px solid var(--gw-button-secondary-border-color);border-radius:var(--gw-button-border-radius);background:var(--gw-background-elevated);color:var(--gw-button-secondary-color);font-family:var(--gw-button-label-typography-font-family);font-size:var(--gw-button-label-typography-font-size);font-weight:var(--gw-button-label-typography-font-weight);line-height:var(--gw-button-label-typography-line-height);text-decoration:none;white-space:nowrap;outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-secondary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.wb-layout .skip-link:focus:hover{border-color:var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.wb-layout .skip-link:focus:active{border-color:var(--gw-button-secondary-active-border-color);color:var(--gw-button-secondary-active-color)}\";\n\nconst MAIN_CONTENT_ID = 'main-content';\nconst NAVBAR_ID = 'navbar';\nconst POINTER_TYPES = {\n MOUSE: 'mouse',\n TOUCH: 'touch',\n PEN: 'pen'\n};\nconst OntoLayout = class {\n // ========================\n // Lifecycle methods\n // ========================\n constructor(hostRef) {\n registerInstance(this, hostRef);\n // ========================\n // Services\n // ========================\n this.authenticationService = service(AuthenticationService);\n this.authorizationService = service(AuthorizationService);\n this.navigationContextService = service(NavigationContextService);\n this.authStorageService = service(AuthenticationStorageService);\n this.runtimeConfigurationContextService = service(RuntimeConfigurationContextService);\n this.eventService = service(EventService);\n this.applicationLifecycleContextService = service(ApplicationLifecycleContextService);\n this.fullJwtKey = `${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`;\n this.fullAuthenticatedKey = `${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`;\n this.authEvents = [this.fullJwtKey, this.fullAuthenticatedKey];\n this.isLowResolution = false;\n this.showHeader = this.isAuthenticatedFully();\n this.showNavbar = false;\n this.isEmbedded = false;\n this.loading = true;\n // ========================\n // Private\n // ========================\n /**\n * List of subscriptions to manage component lifecycle\n * */\n this.subscriptions = new SubscriptionList();\n this.isNavbarCollapsed = false;\n /**\n * The main content is hidden while loading and cannot keep the focus, so it is focused after the loading ends.\n */\n this.shouldFocusMainContentAfterLoading = false;\n /**\n * Whether the ongoing navigation changes the page. Query and hash changes keep the page, so the loader is not shown.\n */\n this.isPageChanging = false;\n // ========================\n // Handlers\n // ========================\n this.onSkipLinkClick = (event) => {\n // Keep the hash out of the URL, single-spa would treat it as a route change.\n event.preventDefault();\n this.focusMainContent();\n };\n this.handleStorageChange = (event) => {\n const localStorageSubscriptionHandlerService = service(LocalStorageSubscriptionHandlerService);\n localStorageSubscriptionHandlerService.handleStorageChange(event);\n this.handleAuthChange(event.key);\n };\n this.windowResizeObserver = debounce(() => this.windowResizeHandler(), 50);\n WindowService.getWindow().addEventListener('storage', this.handleStorageChange);\n }\n componentWillLoad() {\n // When GraphDB serves the Workbench, the layout can load after single-spa has mounted the first application and\n // emitted its NAVIGATION_END, which then never reaches the layout and would leave it loading forever.\n if (this.applicationLifecycleContextService.getApplicationsState()) {\n this.loading = false;\n }\n this.keepMainContentInPlace();\n }\n componentDidRender() {\n this.windowResizeHandler();\n if (this.shouldFocusMainContentAfterLoading && !this.loading) {\n this.shouldFocusMainContentAfterLoading = false;\n // The old page content is hidden while loading and drops the focus, so a focused element in the main content\n // belongs to the new page or was focused by the user and must keep the focus.\n if (isFocusLost() || this.isFocusInNavbar()) {\n this.focusMainContent();\n }\n }\n }\n connectedCallback() {\n this.subscribeToSecurityChanges();\n this.updateVisibility();\n this.subscribeToNavigationEnd();\n this.subscribeToRuntimeConfigurationChanges();\n this.subscribeToNavigationStart();\n this.subscribeToBeforeMountRouting();\n }\n /**\n * Lifecycle method called when the component is about to be removed from the DOM.\n * Unsubscribes from all subscriptions to prevent memory leaks.\n */\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n return (h(Host, { key: 'cf3499ffab935630b1a6f5418707e125d49bea64', class: {\n 'wb-layout': true,\n 'is-embedded': this.isEmbedded,\n 'hide-navbar': !this.showNavbar,\n 'loading': this.loading\n } }, !this.isEmbedded && this.showNavbar &&\n h(\"a\", { key: 'b5cbb0f69e2a7684c96a28be6f0b33cf0ce92f1e', class: \"skip-link\", href: `#${MAIN_CONTENT_ID}`, onClick: this.onSkipLinkClick }, h(\"translate-label\", { key: '48bc88ceb3d26c655a057df035494c8c73c1525a', labelKey: 'layout.skip_to_main_content' })), h(\"div\", { key: 'a9324c1ac2c5ae522e0790a6628c9adc881b4442', class: \"default-slot-wrapper\" }, h(\"slot\", { key: 'fb79a12af9f53ecc5a3760638e65e1b7bd362542', name: \"default\" })), !this.isEmbedded && h(\"div\", { key: '53d252627426b22677b512c169c55615b00fc8af', class: \"wb-header\" }, h(\"header\", { key: '7878ea9d5a00c19c83020b0a13fa79d493fc21f9' }, this.showHeader && h(\"onto-header\", { key: '57aef16e9fb847c90c5e9a8b600327e0537caed5' }))), !this.isEmbedded && this.showNavbar &&\n h(\"nav\", { key: '5e3611d14501c19396d493e16a3539f5cd31bf88', class: \"wb-navbar\" }, h(\"onto-navbar\", { key: '23477f1077adf3a45cc2271351b247450e405041', ref: this.assignNavbarRef(), \"navbar-collapsed\": this.isLowResolution })), h(\"slot\", { key: '2d33a33a7ede92666a935d8c2a5ca39f52f9cb9b', name: \"main\" }, h(\"onto-loader\", { key: '61910e13a38677899006f35bc4ef41c3c93b4a49', loading: this.loading, targetSelector: 'main', size: 96, messageText: TranslationService.translate('common.loading') })), !this.isEmbedded &&\n h(\"footer\", { key: '3f25bad884d021a76a22ffe028a15e24960974c2', class: \"wb-footer\" }, h(\"onto-footer\", { key: 'fa4818df751564c12e0df2a52810286e42c3415b' }))));\n }\n // ========================\n // Event Listeners\n // ========================\n /**\n * Event listener for the navbar toggled event. The layout needs to respond properly when the navbar is toggled in\n * order to fit the content.\n * @param event\n */\n onNavbarToggled(event) {\n this.isNavbarCollapsed = event.detail.payload;\n if (this.isNavbarCollapsed) {\n this.hostElement.classList.add('expanded');\n }\n else {\n this.hostElement.classList.remove('expanded');\n }\n }\n /**\n * Event listener for window resize event. We need to handle this in order to allow the navbar to collapse when the\n * window is resized.\n */\n onResize() {\n this.windowResizeObserver();\n }\n /**\n * Event listener for document keydown events. Handles backward focus targeting when Shift + Tab is pressed.\n * @param event\n */\n handleDocumentKeydown(event) {\n if (event.key === 'Tab' && event.shiftKey) {\n const backwardFocusTarget = document.querySelector('[data-backward-focus-target=\"true\"]');\n if (backwardFocusTarget) {\n event.preventDefault();\n this.focusBackwardTargetInNav(backwardFocusTarget);\n }\n }\n }\n /**\n * Event listener for global focusin events. Handles cleanup of the backward focus target dataset attribute.\n */\n handleGlobalFocus(event) {\n const backwardFocusTarget = document.querySelector('[data-backward-focus-target=\"true\"]');\n if (backwardFocusTarget && event.target.getAttribute('id') !== MAIN_CONTENT_ID) {\n delete backwardFocusTarget.dataset.backwardFocusTarget;\n }\n }\n focusMainContent() {\n var _a;\n (_a = document.getElementById(MAIN_CONTENT_ID)) === null || _a === void 0 ? void 0 : _a.focus();\n }\n windowResizeHandler() {\n var _a, _b, _c, _d, _e;\n this.isLowResolution = WindowService.getWindow().innerWidth <= WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;\n const navbar = document.querySelector('.navbar-component');\n const headerHeight = (_c = (_b = (_a = document.querySelector('.wb-header')) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height) !== null && _c !== void 0 ? _c : 0;\n // Used by the global styles to keep the focused element from being scrolled under the sticky header.\n document.documentElement.style.setProperty('--wb-header-height', `${headerHeight}px`);\n if (navbar) {\n const cookieBanner = document.querySelector('.cookie-consent-banner');\n const bannerHeight = (_e = (_d = cookieBanner === null || cookieBanner === void 0 ? void 0 : cookieBanner.getBoundingClientRect()) === null || _d === void 0 ? void 0 : _d.height) !== null && _e !== void 0 ? _e : 0;\n navbar.style.height = `calc(100% - ${headerHeight}px - ${bannerHeight}px)`;\n }\n if (!this.isLowResolution && !this.isNavbarCollapsed) {\n this.hostElement.classList.remove('expanded');\n }\n else {\n this.hostElement.classList.add('expanded');\n }\n }\n handleAuthChange(changedKey) {\n var _a;\n if (!changedKey) {\n return;\n }\n if (this.authEvents.includes(changedKey)) {\n const authenticated = this.authStorageService.isAuthenticated();\n if (authenticated) {\n navigate((_a = this.navigationContextService.getPreviousRoute()) !== null && _a !== void 0 ? _a : './');\n }\n else if (!isLoginPage()) {\n navigateToLoginPage();\n }\n WindowService.getWindow().location.reload();\n }\n }\n focusBackwardTargetInNav(backwardFocusTarget) {\n var _a, _b;\n if (backwardFocusTarget === null || backwardFocusTarget === void 0 ? void 0 : backwardFocusTarget.classList.contains('sub-menu-link')) {\n const parentContainer = (_b = (_a = backwardFocusTarget.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.previousElementSibling;\n if ((parentContainer === null || parentContainer === void 0 ? void 0 : parentContainer.getAttribute('aria-expanded')) === 'false') {\n parentContainer.click();\n }\n }\n setTimeout(() => {\n backwardFocusTarget.focus();\n delete backwardFocusTarget.dataset.backwardFocusTarget;\n }, 10);\n }\n // ========================\n // Main content position\n // ========================\n /**\n * The host application may re-insert its `<main>` container as the first child of the layout (e.g. on routing),\n * which puts the main content before the header and the navigation in the Tab order. The layout ignores that move,\n * so the main content keeps the slot position it got on the first render.\n */\n keepMainContentInPlace() {\n const host = this.hostElement;\n const nativeInsertBefore = host.insertBefore.bind(host);\n host.insertBefore = (node, child) => {\n const isMainContent = node.parentNode === host && node.nodeName === 'MAIN';\n return isMainContent && child === host.firstChild ? node : nativeInsertBefore(node, child);\n };\n }\n // ========================\n // Security & Permissions\n // ========================\n subscribeToSecurityChanges() {\n const securityContextService = service(SecurityContextService);\n this.subscriptions.add(securityContextService.onAuthenticatedUserChanged((authenticatedUser) => {\n this.authenticatedUser = authenticatedUser;\n this.updateVisibility();\n }));\n this.subscriptions.add(securityContextService.onSecurityConfigChanged((securityConfig) => {\n this.securityConfig = securityConfig;\n this.updateVisibility();\n }));\n this.subscriptions.add(this.eventService.subscribe(EventName.LOGIN, () => {\n this.setNavbarItemVisibility();\n this.updateVisibility();\n }));\n this.subscriptions.add(this.eventService.subscribe(EventName.LOGGED_OUT, () => {\n this.setNavbarItemVisibility();\n this.updateVisibility();\n navigateToLoginPage();\n }));\n }\n subscribeToRuntimeConfigurationChanges() {\n this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged((config) => {\n var _a;\n this.isEmbedded = (_a = config === null || config === void 0 ? void 0 : config.isEmbedded) !== null && _a !== void 0 ? _a : false;\n }));\n }\n updateVisibility() {\n if (!this.authenticationService.isSecurityEnabled()) {\n this.showNavbar = true;\n this.showHeader = true;\n }\n else {\n this.showHeader = this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n this.showNavbar = this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n }\n }\n isAuthenticatedFully() {\n return !this.authenticationService.isSecurityEnabled() || this.authenticationService.isAuthenticated() || this.authorizationService.hasFreeAccess();\n }\n shouldShowMenu(role) {\n return this.isAuthenticatedFully() && this.authorizationService.hasRole(role);\n }\n // ========================\n // Navbar logic\n // ========================\n assignNavbarRef() {\n return (navbar) => {\n this.navbarRef = navbar;\n if (!this.navbarRef) {\n return;\n }\n this.navbarRef.menuItems = WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME);\n this.setNavbarItemVisibility();\n };\n }\n setNavbarItemVisibility() {\n var _a, _b, _c;\n if (!((_a = this.navbarRef) === null || _a === void 0 ? void 0 : _a.menuItems)) {\n return;\n }\n // recursively check for children and set their shouldShow property\n const processItem = (item) => {\n var _a;\n item.shouldShow = this.shouldShowMenu(item.role);\n if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {\n item.children.forEach(processItem);\n }\n };\n (_c = (_b = this.navbarRef) === null || _b === void 0 ? void 0 : _b.menuItems) === null || _c === void 0 ? void 0 : _c.forEach(plugin => {\n plugin.items.forEach(processItem);\n });\n // Update the reference to trigger a re-render\n this.navbarRef.menuItems = [...this.navbarRef.menuItems];\n }\n subscribeToNavigationEnd() {\n this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END, (navigationEndPayload) => {\n this.navigationContextService.updatePreviousRoute(navigationEndPayload.oldUrl);\n this.focusMainContentOnPageChange(navigationEndPayload);\n // NAVIGATION_END appears to happen in the same tick as BeforeMountRouting, so the loader never gets shown\n setTimeout(() => {\n this.loading = false;\n });\n }));\n }\n /**\n * Moves the focus to the main content after an in-app page change, when the focus was in the old page content or\n * already lost to the body, so that it does not fall back to the body.\n *\n * @param navigationEndPayload - The old and the new URL of the navigation.\n */\n focusMainContentOnPageChange({ oldUrl, newUrl }) {\n if (!oldUrl ||\n isSamePage(oldUrl, newUrl) ||\n (!this.isFocusInNavbar() && !this.isFocusLostOrInMainContent()) ||\n (this.isFocusInNavbar() && this.isPointerNavigation())) {\n // The initial load, a query or hash change, or the focus is outside the main content, e.g. in the navbar.\n return;\n }\n if (this.loading) {\n this.shouldFocusMainContentAfterLoading = true;\n }\n else {\n this.focusMainContent();\n }\n }\n isFocusLostOrInMainContent() {\n var _a;\n return isFocusLost() || !!((_a = document.getElementById(MAIN_CONTENT_ID)) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement));\n }\n isFocusInNavbar() {\n var _a;\n return !!((_a = document.getElementById(NAVBAR_ID)) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement));\n }\n // Determines if the last navigation was triggered by a pointer device (mouse, touch, or pen) by \n // accessing the dataset of the active element. \n // Specific for main navbar.\n isPointerNavigation() {\n var _a, _b;\n const pointerType = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.dataset.pointerType;\n (_b = document.activeElement) === null || _b === void 0 ? true : delete _b.dataset.pointerType;\n return pointerType === POINTER_TYPES.MOUSE || pointerType === POINTER_TYPES.TOUCH || pointerType === POINTER_TYPES.PEN;\n }\n subscribeToNavigationStart() {\n this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_START, ({ oldUrl, newUrl }) => {\n this.isPageChanging = !oldUrl || !newUrl || !isSamePage(oldUrl, newUrl);\n // Cleanup the backward focus target dataset attribute if the page is changing and the target is the not current page.\n const backwardFocusTarget = document.querySelector('[data-backward-focus-target=\"true\"]');\n if (this.isPageChanging && (backwardFocusTarget === null || backwardFocusTarget === void 0 ? void 0 : backwardFocusTarget.dataset.ariaCurrent) === 'page') {\n delete backwardFocusTarget.dataset.backwardFocusTarget;\n }\n }));\n }\n subscribeToBeforeMountRouting() {\n this.subscriptions.add(this.eventService.subscribe(EventName.BEFORE_MOUNT_ROUTING_EVENT, () => {\n // Hiding the main content on a query or hash change only flashes the loader and drops the focus.\n if (this.isPageChanging) {\n this.loading = true;\n }\n }));\n }\n get hostElement() { return getElement(this); }\n};\nOntoLayout.style = ontoLayoutCss;\n\nexport { OntoLayout as onto_layout };\n","import { ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\nimport { L as LoggerProvider } from './logger-provider-BIkLC5Zf.js';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\n/**\n * Escapes the characters that have a special meaning in HTML, so that the text can be written into an HTML string,\n * as content or as an attribute value.\n *\n * @param text The text to escape.\n * @returns The escaped text, or an empty string if no text is provided.\n */\nfunction escapeHtml(text) {\n if (!text) {\n return '';\n }\n return text\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&#039;');\n}\n/**\n * Checks whether the focus is lost to the body.\n *\n * @returns True if the focus is lost to the body, false otherwise.\n */\nfunction isFocusLost() {\n const activeElement = document.activeElement;\n return !activeElement || activeElement === document.body;\n}\n\n/**\n * Service responsible for translation operations in the component.\n */\nclass TranslationServiceClassDefinition {\n constructor() {\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.translationChangedObservers = {};\n this.logger = LoggerProvider.logger;\n // log with background color\n this.defaultBundle = this.languageContextService.getDefaultBundle();\n this.subscribeToBundleChange();\n }\n /**\n * Translates the <code>messageLabelKey</code> with <code>translationParameter</code> and call <code>translationCallback</code> with translation of current language.\n * The <code>translationCallback</code> is called upon subscription and whenever the selected language is changed.\n *\n * @param messageLabelKey - The label key for the translation.\n * @param translationParameter - Parameters, if needed, for translation.\n * @param translationCallback - A function to be called when translating the `messageLabelKey`.\n * @returns A function that, when called, unsubscribes the provided callback from further translation updates.\n */\n onTranslate(messageLabelKey, translationParameter = [], translationCallback = () => { }) {\n this.translationChangedObservers[messageLabelKey] = this.translationChangedObservers[messageLabelKey] || [];\n const observer = { parameters: translationParameter, callback: translationCallback };\n this.translationChangedObservers[messageLabelKey].push(observer);\n translationCallback(this.translate(messageLabelKey, translationParameter));\n return () => {\n const index = this.translationChangedObservers[messageLabelKey].indexOf(observer);\n if (index !== -1) {\n this.translationChangedObservers[messageLabelKey].splice(index, 1);\n }\n };\n }\n /**\n * Translates the provided key using the currently selected language by applying the parameters if\n * provided.\n * @param key The key for the label which needs to be translated.\n * @param parameters Optional parameters which to be applied during the translation.\n */\n translate(key, parameters) {\n return this.translateInLocale(key, parameters);\n }\n /**\n * Translates a given key into the specified locale. If parameters are provided,\n * they will be applied to the translation.\n *\n * @param key - The translation key, which can be dot-separated for nested translations.\n * @param parameters - Optional parameters to be substituted into the translation string.\n * @returns The translated string with parameters applied if available, or the key itself if not found.\n */\n translateInLocale(key, parameters) {\n // Attempt to retrieve the translation from the specified locale's bundle.\n let translation = this.translateFromBundle(this.currentBundle, key);\n // If not found, fall back to the default language bundle.\n if (!translation) {\n translation = this.translateFromBundle(this.defaultBundle, key);\n }\n // If translation was found, apply any parameters provided and return the result.\n if (translation) {\n translation = this.applyParameters(translation, parameters);\n return sanitizeHTML(translation);\n }\n this.logger.warn(`Missing translation for key: [${key}]`);\n return key;\n }\n /**\n * Retrieves a translation from a specified translation bundle using the given key.\n * If the key represents a nested JSON path, it attempts to resolve the key as such.\n *\n * @param bundle - The translation bundle for the specified locale.\n * @param key - The key to translate, which may be a simple key or dot-separated for nested keys.\n * @returns The translation string if found, or `undefined` if not available.\n */\n translateFromBundle(bundle, key) {\n if (!bundle) {\n return undefined;\n }\n // Try to retrieve the translation directly if it is defined as a whole string,\n // for instance as \"some_function.btn.label\".\n let translation = bundle[key];\n // If not found, attempt to retrieve the translation if it is defined as a JSON object.\n if (typeof translation !== 'string') {\n translation = this.translateAsJsonObject(bundle, key);\n }\n return translation;\n }\n /**\n * Resolves a nested translation key by treating it as a path in a JSON object.\n * For example, if the key is \"some.key.path\", this method will navigate through\n * the JSON object structure to retrieve the value at that path.\n *\n * @param bundle - The translation bundle containing nested keys.\n * @param key - The dot-separated key representing the path to the translation.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n translateAsJsonObject(bundle, key) {\n if (!key) {\n return;\n }\n let path = key.split('.');\n return this.getTranslation(bundle, path);\n }\n /**\n * Recursively navigates through a JSON object based on a path array to retrieve\n * a translation string. Each element in the path array represents a nested key.\n *\n * @param jsonObject - The current JSON object or nested object being searched.\n * @param path - An array representing the path to the translation, where each element is a key.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n getTranslation(jsonObject, path) {\n // Stop the recursion if path or reach the inner element\n if (!path || !jsonObject) {\n return undefined;\n }\n const jsonOrTranslation = jsonObject[path.splice(0, 1)[0]];\n if (path.length === 0) {\n return jsonOrTranslation;\n }\n if (typeof jsonOrTranslation !== 'string') {\n // continue if the inner element is not reached.\n if (path.length > 0) {\n return this.getTranslation(jsonOrTranslation, path);\n }\n return jsonOrTranslation;\n }\n return undefined;\n }\n applyParameters(translation, parameters) {\n if (parameters) {\n return parameters.reduce(\n // replace all occurrence of parameter key with parameter value.\n (translation, parameter) => TranslationServiceClassDefinition.replaceAll(translation, parameter), translation);\n }\n return translation;\n }\n static replaceAll(translation, parameter) {\n return parameter ? translation.split(`{{${parameter.key}}}`).join(parameter.value) : translation;\n }\n notifyTranslationsChanged() {\n Object.keys(this.translationChangedObservers).forEach((eventName) => {\n const observers = this.translationChangedObservers[eventName] || [];\n observers.forEach((observer) => observer.callback(this.translate(eventName, observer.parameters)));\n });\n }\n subscribeToBundleChange() {\n this.languageChangeSubscription = this.languageContextService.onLanguageBundleChanged((bundle) => {\n if (bundle) {\n this.currentBundle = bundle;\n this.notifyTranslationsChanged();\n }\n });\n }\n destroy() {\n if (this.languageChangeSubscription) {\n this.languageChangeSubscription();\n }\n }\n}\nconst TranslationService = new TranslationServiceClassDefinition();\n\nexport { TranslationService as T, escapeHtml as e, isFocusLost as i, sanitizeHTML as s };\n"],"names":["debounce","func","wait","timer","args","clearTimeout","setTimeout","apply","this","LoggerProvider","logger","Loggers","getLoggerInstance","MAIN_CONTENT_ID","OntoLayout","constructor","hostRef","registerInstance","authenticationService","service","AuthenticationService","authorizationService","AuthorizationService","navigationContextService","NavigationContextService","authStorageService","AuthenticationStorageService","runtimeConfigurationContextService","RuntimeConfigurationContextService","eventService","EventService","applicationLifecycleContextService","ApplicationLifecycleContextService","fullJwtKey","StorageKey","GLOBAL_NAMESPACE","NAMESPACE","jwtKey","fullAuthenticatedKey","authenticatedKey","authEvents","isLowResolution","showHeader","isAuthenticatedFully","showNavbar","isEmbedded","loading","subscriptions","SubscriptionList","isNavbarCollapsed","shouldFocusMainContentAfterLoading","isPageChanging","onSkipLinkClick","event","preventDefault","focusMainContent","handleStorageChange","LocalStorageSubscriptionHandlerService","handleAuthChange","key","windowResizeObserver","windowResizeHandler","WindowService","getWindow","addEventListener","componentWillLoad","getApplicationsState","keepMainContentInPlace","componentDidRender","isFocusLost","isFocusInNavbar","connectedCallback","subscribeToSecurityChanges","updateVisibility","subscribeToNavigationEnd","subscribeToRuntimeConfigurationChanges","subscribeToNavigationStart","subscribeToBeforeMountRouting","disconnectedCallback","unsubscribeAll","render","h","Host","class","href","onClick","labelKey","name","ref","assignNavbarRef","targetSelector","size","messageText","TranslationService","translate","onNavbarToggled","detail","payload","hostElement","classList","add","remove","onResize","handleDocumentKeydown","shiftKey","backwardFocusTarget","document","querySelector","focusBackwardTargetInNav","handleGlobalFocus","target","getAttribute","dataset","_a","getElementById","focus","_b","_c","_d","_e","innerWidth","navbar","headerHeight","getBoundingClientRect","height","documentElement","style","setProperty","cookieBanner","bannerHeight","changedKey","includes","isAuthenticated","navigate","getPreviousRoute","isLoginPage","navigateToLoginPage","location","reload","contains","parentContainer","parentElement","previousElementSibling","click","host","nativeInsertBefore","insertBefore","bind","node","child","parentNode","nodeName","firstChild","securityContextService","SecurityContextService","onAuthenticatedUserChanged","authenticatedUser","onSecurityConfigChanged","securityConfig","subscribe","EventName","LOGIN","setNavbarItemVisibility","LOGGED_OUT","onRuntimeConfigurationChanged","config","isSecurityEnabled","hasFreeAccess","shouldShowMenu","role","hasRole","navbarRef","menuItems","getPluginRegistry","get","MainMenuExtensionPoint","NAME","processItem","item","shouldShow","children","length","forEach","plugin","items","NAVIGATION_END","navigationEndPayload","updatePreviousRoute","oldUrl","focusMainContentOnPageChange","newUrl","isSamePage","isFocusLostOrInMainContent","isPointerNavigation","activeElement","pointerType","NAVIGATION_START","ariaCurrent","BEFORE_MOUNT_ROUTING_EVENT","getElement","sanitizeHTML","html","element","createElement","innerHTML","value","escapeHtml","text","replace","body","TranslationServiceClassDefinition","languageContextService","ServiceProvider","LanguageContextService","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","onTranslate","messageLabelKey","translationParameter","translationCallback","observer","parameters","callback","push","index","indexOf","splice","translateInLocale","translation","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","reduce","parameter","replaceAll","join","notifyTranslationsChanged","Object","keys","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ export const __webpack_esm_id__=54231;export const __webpack_esm_ids__=[30813,33057,35195,44755,47014,49957,54231,55643,59020,66256,70409,74128];export const __webpack_esm_modules__={70409(e,t,r){var i=r(18786);function o(e,t,r,o,s){e.message=o.trustAsHtml((0,i.Gz)(r.instant("import.user_data.duplicates_confirmation.message",{duplicatedFiles:s}))),e.cancel=()=>{t.dismiss()},e.keepBoth=()=>{t.close({overwrite:!1})},e.overwrite=()=>{t.close({overwrite:!0})}}angular.module("graphdb.framework.impex.import.controllers.file-override-confirmation",[]).controller("FileOverrideConfirmationController",o),o.$inject=["$scope","$uibModalInstance","$translate","$sce","duplicatedFiles"]},30813(){function e(e,t,r,i){e.importFormats=[{name:"RDF/JSON",type:"application/rdf+json"},{name:"JSON-LD",type:"application/ld+json"},{name:"NDJSON-LD",type:"application/x-ld+ndjson"},{name:"RDF/XML",type:"application/rdf+xml"},{name:"N3",type:"text/rdf+n3"},{name:"N-Triples",type:"text/plain"},{name:"N-Quads",type:"text/x-nquads"},{name:"Turtle",type:"text/turtle"},{name:"TriX",type:"application/trix"},{name:"TriG",type:"application/x-trig"}],e.rdfText=r,e.importFormat=e.importFormats.find(e=>e.type===i),e.startImport=!0,e.sizeLimit=1e5,e.setFormat=t=>{e.importFormat=t},e.cancel=()=>{t.dismiss()},e.ok=()=>{t.close({text:e.rdfText,format:e.importFormat.type,startImport:e.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-text-snippet",[]).controller("ImportTextSnippetController",e),e.$inject=["$scope","$uibModalInstance","text","format"]},33057(){function e(e,t){e.importFormat={name:"Auto",type:""},e.startImport=!0,e.cancel=function(){t.dismiss()},e.ok=function(){t.close({url:e.dataUrl,format:e.importFormat.type,startImport:e.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-url",[]).controller("ImportUrlController",e),e.$inject=["$scope","$uibModalInstance","toastr"]},41559(e,t,r){r.d(t,{I:()=>h}),r(22742),r(82674),r(55643),r(44755);var i=r(59601),o=(r(14097),r(76541)),s=(r(33057),r(30813),r(70409),r(59020)),n=r(35195),a=r(47014),p=r(44881),l=r(18786),c=r(22723),d=r(74128),u=r(66256),m=r(2998),f=r(57154);const g=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.uriutils","graphdb.framework.guides.services","graphdb.framework.rest.import.service","graphdb.framework.rest.upload.service","graphdb.framework.import.services.importcontext","graphdb.framework.impex.import.controllers.tab","graphdb.framework.impex.import.controllers.settings-modal","graphdb.framework.impex.import.controllers.import-url","graphdb.framework.impex.import.controllers.import-text-snippet","graphdb.framework.impex.import.controllers.file-override-confirmation"]),h={IMPORT:"import",BATCH_IMPORT:"batch_import",IMPORT_SNIPPET:"import_snippet",IMPORT_URL:"import_url",UPLOAD:"upload"};g.controller("ImportViewCtrl",["$scope","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","ModalService","ImportRestService","ImportContextService",function(e,t,r,a,d,g,v,S,I,y,F,R,b){const U=(0,f.service)(f.GuidesService),x=[];let T,E=null;e.files=[],e.fileChecked={},e.activeTabId=b.getActiveTabId(),e.popoverTemplateUrl="settingsPopoverTemplate.html",e.fileFormatsExtended=s.T.getFileFormatsExtended(),e.fileFormatsHuman=s.T.getFileFormatsHuman()+I.instant("import.gz.zip"),e.textFileFormatsHuman=s.T.getTextFileFormatsHuman(),e.maxUploadFileSizeBytes=0,e.SORTING_TYPES=u.R,e.TAB_IDS=i.D,e.toTitleCase=e=>n.Sn(e),e.setSettingsFor=(t,r,i,s,n=()=>{})=>{Promise.all([O(t,r),A()]).then(([r,a])=>{e.settingsFor=t,e.settings=r;const l=""===t||"application/ld+json"===i||"application/x-ld+ndjson"===i||t.endsWith("jsonld")||t.endsWith("zip")||t.endsWith("gz")||"directory"===e.settings.type;e.settings.hasContextLink=l;const c=a?{...a,hasContextLink:l}:structuredClone(e.settings),u={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalController",windowClass:"import-settings-modal",resolve:{dialogModel:function(){return{operation:s,settings:_.cloneDeep(e.settings),hasParserSettings:e.isLocalLocation,defaultSettings:c,isMultiple:!t,activeTab:e.activeTabId}}},size:"lg"};U.isActive()&&(u.backdrop="static",u.keyboard=!1),d.open(u).result.then(t=>{if(e.currentFiles&&t.action===o.k.UPLOAD_AND_IMPORT){const t=(0,p.ac)(e.currentFiles,m.I.UPLOADING);b.updateResourcesForUpload(t)}e.settings=t.settings,""===e.settingsFor?e.importSelected():e.importFile(e.settingsFor,!0)},t=>{if(e.settings=t.settings,t.action===o.k.CANCEL&&(e.currentFiles=[],s===h.UPLOAD&&(e.files=[])),e.currentFiles&&t.action===o.k.UPLOAD_ONLY){const t=(0,p.ac)(e.currentFiles,m.I.UPLOADING);b.updateResourcesForUpload(t)}n&&n()})})},e.updateImport=(t,r,i)=>{O(t,r).then(r=>{e.settingsFor=t,e.settings=r,e.importFile(t,i)})},e.importSelected=t=>{const r=new Set([...L(),...$()]),i=Array.from(r),o=()=>{const r=i.shift();r&&O(r).then(i=>{t&&(e.settings=i),e.importFile(r,!0,o)})};o()},e.isLocalLocation=()=>{const e=a.getActiveLocation();return e&&e.local},e.updateList=t=>{e.canWriteActiveRepo()&&e.updateListHttp(t)},e.onRepositoryChange=()=>{e.setRestricted(),e.isRestricted||(e.updateList(!0),D())},e.onImport=t=>{e.setSettingsFor(t.importResource.name,!1,t.importResource.format,h.IMPORT)},e.onStopImport=r=>{const o=r.importResource;(e.activeTabId===i.D.USER?R.stopUserDataImport:R.stopServerImport)(a.getActiveRepository(),{name:o.name,type:o.type}).success(function(){e.updateList()}).error(function(r){t.warning(I.instant("import.error.could.not.stop",{data:getError(r)})),e.updateList()})},e.onRemove=e=>{const t=e.map(e=>e.name);w(t)},e.onReset=e=>{P(e,!1)},e.importAll=(t,r)=>{if(r)e.importSelected(t,r);else{let i="";1===t.length&&(i=t[0].importResource.name),e.setSettingsFor(i,r,void 0,h.BATCH_IMPORT)}},e.onEditResource=t=>{t.importResource.isText()&&e.openTextSnippetDialog(t.importResource)};const D=()=>(T=void 0,e.canWriteActiveRepo()?R.getDefaultSettings(a.getActiveRepository()).success(function(e){return T=e,T}).error(function(e){t.warning(I.instant("import.error.default.settings",{data:getError(e)}))}):Promise.resolve(T)),$=()=>b.getSelectedFilesNames(),L=()=>e.currentFiles.filter(e=>e.name).map(e=>e.name),w=(e=[])=>{const t=`<br/>${e.map(e=>(0,c.escape)(e)).join("<br/>")}`,r=(0,l.Gz)(I.instant("import.remove.confirm.msg",{name:t}));F.openConfirmation(I.instant("common.confirm"),r,()=>{P(e,!0)})},A=()=>T?Promise.resolve(angular.copy(T)):D().then(()=>angular.copy(T)),O=(t,r)=>r||_.isEmpty(t)||_.isEmpty(e.savedSettings[t])?A().then(e=>e):Promise.resolve(e.savedSettings[t]);e.updateListHttp=r=>{if(!a.getActiveRepository())return Promise.resolve();const o=e.activeTabId===i.D.USER?R.getUploadedFiles:R.getServerFiles,s=e.activeTabId;return o(a.getActiveRepository()).success(function(t){s===b.getActiveTabId()&&(b.updateImportedResources((0,p.Pd)(t)),0===e.files.length||r?(e.files=t,b.updateFiles(e.files),e.files.forEach(function(t){t.type||(t.type=e.defaultType)})):e.files.forEach(function(r){const i=_.find(t,_.matches({name:r.name}));!r.status&&r.parserSettings||!i||_.assign(r,i),r.type||(r.type=e.defaultType)}),r&&i.D.USER===e.activeTabId&&(e.files=_.filter(e.files,function(e){return void 0!==e.status}),b.updateFiles(e.files)),e.savedSettings=_.mapKeys(_.filter(e.files,"parserSettings"),"name"))}).error(function(e){t.warning(I.instant("import.error.could.not.get.files",{data:getError(e)}))})};const P=(r,o)=>{!r||r.length<1||(e.activeTabId===i.D.USER?R.resetUserDataStatus:R.resetServerFileStatus)(a.getActiveRepository(),r,o).success(function(){e.updateList(!0)}).error(function(r){t.warning(I.instant("import.error.could.not.clear",{data:getError(r)})),e.updateList(!0)})},C=()=>{x.forEach(e=>e())},N=t=>{e.activeTabId=t,b.updateImportedResources([]),b.updateResourcesForUpload([]),b.updateShowLoader(!0),e.updateListHttp(!0).finally(()=>b.updateShowLoader(!1))};e.importViewControllerInit=()=>{x.push(e.$on("repositoryIsSet",e.onRepositoryChange)),x.push(e.$on("$destroy",()=>r.cancel(E))),x.push(b.onActiveTabIdUpdated(e=>N(e))),e.$on("$destroy",C),y.getInfo().success(function(t){e.appData={},e.appData.properties={};for(let r=0;r<t.length;r++)e.appData.properties[t[r].key]={source:t[r].source,value:t[r].value};e.maxUploadFileSizeBytes=e.appData.properties["graphdb.workbench.maxUploadSize"].value}).error(function(e){const r=getError(e);t.error(r,I.instant("common.error"))}),D(),E=r(()=>{e.updating||e.updateList(!1)},4e3),N(b.getActiveTabId())}}]),g.controller("ImportCtrl",["$scope","toastr","$controller","$translate","$repositories","ImportRestService","ImportContextService",function(e,t,r,o,s,n,a){e.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.modified",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:e})),e.defaultType="server",e.tabId="#import-server",e.importSelected=e=>{p(a.getSelectedFilesNames(),e)},e.importFile=function(e){p([e])};const p=function(r,i){e.canWriteActiveRepo()&&n.importServerFiles(s.getActiveRepository(),{importSettings:i?null:e.settings,fileNames:r}).success(function(){e.updateList(),e.fileChecked={}}).error(function(e){t.error(o.instant("import.could.not.send.file",{data:getError(e)}))})};i.D.SERVER===a.getActiveTabId()&&e.importViewControllerInit()}]),g.controller("UploadCtrl",["$scope","toastr","$controller","$uibModal","$translate","$repositories","ImportRestService","UploadRestService","ModalService","ImportContextService","EventEmitterService","$filter",function(e,t,r,o,s,n,p,l,u,f,g,v){const S=new d.q,I=[];e.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.uploaded",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:e})),e.defaultType="file",e.tabId="#import-user",e.currentFiles=[];let y=!1;e.pastedDataIdx=1,e.fileSelected=function(t,r,i,o,s){const n={files:i,cancel:!1};g.emit("filesForUploadSelected",n,t=>{if(!t.cancel){const t=s||[];F(t);const r=t.map(e=>e.name);let o=i||[];o=o.filter(e=>!r.includes(e.name)),T(o);const n=[],a=[];o.forEach(t=>{e.files.some(e=>e.name===t.name)?n.push(t):a.push(t)}),n.length>0?E(n,a):(e.currentFiles=[...o],y=!0,D())}})},e.importFile=(r,i,o)=>{const n=e.files.find(e=>e.name===r);n?"text"===n.type?R(n,i,o):"url"===n.type?U(n,i,o):x(n,i,o):t.warning(s.instant("import.no.such.file",{name:r}))},e.openTextSnippetDialog=t=>{t&&t.data,o.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"ImportTextSnippetController",resolve:{text:function(){return t?t.data:""},format:function(){return t?t.format:"text/turtle"}}}).result.then(r=>{t?(t.data===r.text&&t.format===r.format||t.status===m.I.NONE||(t.status=m.I.NONE,t.message=s.instant("import.text.snippet.not.imported")),t.data=r.text,t.format=r.format,b(t).then(()=>e.updateListHttp(!0)).then(()=>{r.startImport&&e.setSettingsFor(t.name,!1,t.format,h.IMPORT_SNIPPET)})):(t={type:"text",name:"Text snippet "+a.E.formatCurrentDateTime(),format:r.format,data:r.text},e.files.unshift(t),e.updateImport(t.name,!1,!1),r.startImport&&e.setSettingsFor(t.name,!1,t.format,h.IMPORT_SNIPPET))})},e.rdfDataFromURL=()=>{o.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"ImportUrlController",scope:e}).result.then(function(t){const r=_.find(e.files,{type:"url",name:t.url});r?r.format=t.format:e.files.unshift({type:"url",name:t.url,format:t.format,data:t.url}),e.updateImport(t.url,!0,!1),t.startImport&&e.setSettingsFor(t.url,!0,t.format,h.IMPORT_URL)})};const F=e=>{e.length>0&&e.forEach(function(e){t.warning(s.instant("import.large.file",{name:e.name,size:v("bytes")(e.size)}))})},R=(r,i,o)=>{e.settings.name=r.name,e.settings.type=r.type,e.settings.data=r.data,e.settings.format=r.format,r.status=m.I.PENDING,(i?p.importTextSnippet:p.updateTextSnippet)(n.getActiveRepository(),e.settings).success(function(){e.updateList()}).error(function(e){t.error(s.instant("import.could.not.send.data",{data:getError(e)})),r.status=m.I.ERROR,r.message=getError(e)}).finally(o||function(){})},b=r=>(e.updating=!0,p.updateTextSnippet(n.getActiveRepository(),r).success(function(e){}).error(function(e){t.error(s.instant("import.could.not.update.text",{data:getError(e)}))}).finally(function(){e.updating=!1})),U=(r,i,o)=>{e.settings.name=r.name,e.settings.type=r.type,e.settings.data=r.data,e.settings.format=r.format,r.status=m.I.PENDING,(i?p.importFromUrl:p.updateFromUrl)(n.getActiveRepository(),e.settings).success(function(){e.updateList()}).error(function(e){t.error(s.instant("import.could.not.send.url",{data:getError(e)}))}).finally(o||function(){})},x=(r,i,o)=>{e.settings.name=r.name;const a=l.createUploadPayload(r,e.settings);(i?l.uploadUserDataFile:l.updateUserDataFile)(n.getActiveRepository(),r,a).progress(e=>{const t=parseInt(100*e.loaded/e.total)||0,i=s.instant("import.file.upload.progress",{progress:t}),o=f.getResourceForUpload(r.name);o&&o.status!==m.I.UPLOAD_ERROR&&(o.status=t>=100?m.I.UPLOADED:m.I.UPLOADING,o.message=i,f.updateResourceForUpload(o))}).success(t=>{const i=f.getResourceForUpload(r.name);i&&i.status!==m.I.UPLOAD_ERROR&&(i.status=m.I.UPLOADED,i.message=void 0,f.updateResourceForUpload(i)),e.updateList()}).error(e=>{let i="";i=e?s.instant("import.could.not.upload.file",{data:i}):s.instant("import.upload.file.failure"),t.error(i),r.status=m.I.ERROR,r.message=i;const o=f.getResourceForUpload(r.name);o&&o.status!==m.I.UPLOADED&&(o.status=m.I.UPLOAD_ERROR,o.message=i,f.updateResourceForUpload(o))}).finally(()=>{e.currentFiles=e.currentFiles.filter(({name:e})=>e!==r.name),o()})},T=e=>{e.forEach(function(r){if("bz2"===r.name.substr(r.name.lastIndexOf(".")+1)){const i=e.indexOf(r);i>-1&&e.splice(i,1),t.error(s.instant("import.could.not.upload",{name:r.name}))}})},E=(t,r)=>{const i=t.map(e=>(0,c.escape)(e.name)).join("<br/>");o.open({templateUrl:"js/angular/import/templates/file-override-confirmation.html",controller:"FileOverrideConfirmationController",windowClass:"confirm-duplicate-files-dialog",resolve:{duplicatedFiles:()=>i}}).result.then(i=>{if(i.overwrite)e.currentFiles.length?e.currentFiles=[...t,...r]:e.currentFiles.push(...t,...r);else{const i=S.prefixDuplicates(t);e.currentFiles=[...e.currentFiles,...i,...r]}y=!0,D()})},D=()=>{if(e.files=_.uniqBy(_.union(_.map(e.currentFiles,function(e){return{name:e.name,type:"file",file:e}}),e.files),function(e){return e.name}),e.savedSettings=_.mapKeys(_.filter(e.files,"parserSettings"),"name"),y&&e.currentFiles.length>0){$(),e.currentFiles.forEach(t=>{e.fileChecked[t.name]=!0});let t="";1===e.currentFiles.length&&(t=e.currentFiles[0].name),e.setSettingsFor(t,!1,void 0,h.UPLOAD,()=>{e.currentFiles.forEach(t=>{e.updateImport(t.name,!1,!1)})})}},$=()=>{Object.keys(e.fileChecked).forEach(t=>{e.fileChecked[t]=!1})};e.$on("$destroy",()=>{I.forEach(e=>e())}),i.D.USER===f.getActiveTabId()&&(e.importViewControllerInit(),I.push(f.onFilesUpdated(e=>{S.buildPrefixesRegistry(e)})))}])},76541(e,t,r){r.d(t,{k:()=>s});var i=r(59601),o=r(41559);angular.module("graphdb.framework.impex.import.controllers.settings-modal",[]).controller("SettingsModalController",n);const s={UPLOAD_ONLY:"upload_only",UPLOAD_AND_IMPORT:"upload_and_import",CANCEL:"cancel",CANCEL_IMPORT:"cancel_import"};function n(e,t,r,n,a,p){e.settings=p.settings,e.hasParserSettings=p.hasParserSettings,e.isMultiple=p.isMultiple,e.enableReplace=!(!e.settings.replaceGraphs||!e.settings.replaceGraphs.length),e.showAdvancedSettings=!1,e.activeTab=p.activeTab,e.userTabId=i.D.USER,e.isUploadOperation=p.operation===o.I.UPLOAD,e.hasError=function(e,t){return _.find(e,function(e){return t===e.$name})},e.ok=function(){e.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),e.settingsForm.$valid&&(c(),t.close(l(s.UPLOAD_AND_IMPORT)))},e.cancel=function(){c(),t.dismiss(l(s.CANCEL))},e.onlyUpload=function(){c(),t.dismiss(l(s.UPLOAD_ONLY))},e.cancelImport=function(){c(),t.dismiss(l(s.CANCEL_IMPORT))},e.close=function(){c(),t.dismiss(l(s.CANCEL))},e.reset=function(){e.settings=_.cloneDeep(p.defaultSettings),e.target="data"},e.addReplaceGraph=function(t){let i=!0;"default"!==t&&(i=n.isValidIri(t,t.toString())),e.settingsForm.replaceGraph.$setTouched(),e.settingsForm.replaceGraph.$setValidity("replaceGraph",i),e.settingsForm.replaceGraph.$valid&&(e.settings.replaceGraphs=e.settings.replaceGraphs||[],-1===_.indexOf(e.settings.replaceGraphs,t)?(e.replaceGraph="",e.settings.replaceGraphs.push(t)):r.warning(a.instant("import.graph.already.in.list")))},e.checkEnterReplaceGraph=function(t,r){13===t.keyCode&&(t.preventDefault(),e.addReplaceGraph(r))},e.switchParserSettings=function(){e.showAdvancedSettings=!e.showAdvancedSettings};const l=function(t){return{settings:e.settings,action:t}},c=function(){"default"===e.target?e.settings.context="default":"data"===e.target&&(e.settings.context=""),e.enableReplace?"default"!==e.target&&"named"!==e.target||(e.settings.replaceGraphs=[e.settings.context]):e.settings.replaceGraphs=[]};e.settings.context?"default"===e.settings.context?(e.target="default",e.settings.context=""):e.target="named":e.target="data"}n.$inject=["$scope","$uibModalInstance","toastr","UriUtils","$translate","dialogModel"]},14097(e,t,r){var i=r(59601);function o(e,t,r){let o;e.isHelpVisible=!1,e.fileSizeLimitInfoTemplateUrl="js/angular/import/templates/fileSizeLimitInfo.html";const n=()=>{if(o.isPristine(e.activeTabId)){const t=r.getResources();e.isHelpVisible=!t||0===t.length}else e.isHelpVisible=o.isHelpVisible(e.activeTabId)};e.openTab=e=>{r.updateActiveTabId(e)},e.toggleHelp=()=>{o.setIsHelpVisible(e.activeTabId,!e.isHelpVisible),n()},e.closeHelp=()=>{e.toggleHelp(),document.querySelector(".toggle-help-btn")?.focus()};const a=[];a.push(r.onActiveTabIdUpdated(r=>{e.activeTabId=r,t.hash(e.activeTabId),n()})),a.push(r.onResourcesUpdated(n)),e.$on("$destroy",()=>a.forEach(e=>e())),(()=>{o=new s;const r=t.hash()||i.D.USER;e.openTab(r),n()})()}angular.module("graphdb.framework.impex.import.controllers.tab",[]).controller("TabController",o),o.$inject=["$scope","$location","ImportContextService"];class s{constructor(){this._helpVisibility={[i.D.USER]:{isHelpVisible:void 0},[i.D.SERVER]:{isHelpVisible:void 0}}}isPristine(e){return void 0===this._helpVisibility[e].isHelpVisible}setIsHelpVisible(e,t){this._helpVisibility[e].isHelpVisible=t}isHelpVisible(e){return this._helpVisibility[e]&&this._helpVisibility[e].isHelpVisible}}},74128(e,t,r){r.d(t,{q:()=>o});var i=r(71912);class o{constructor(){this.filesPrefixRegistry={}}buildPrefixesRegistry(e){e.filter(e=>"file"===e.type).forEach(e=>{const t=i.i.getFilenameAndExtension(e.name).filename,r=t.lastIndexOf("-");let o=r<0?0:t.substring(r+1),s=t.substring(0,r);if(r<0?(o=0,s=t):(o=t.substring(r+1),s=t.substring(0,r)),o){o=parseInt(o);const e=this.filesPrefixRegistry[s]||0;this.filesPrefixRegistry[s]=e<o?o:e}else this.filesPrefixRegistry[s]=0})}prefixDuplicates(e){return e.map(e=>{const{filename:t,extension:r}=i.i.getFilenameAndExtension(e.name),o=`${t}-${this.getIndexForFile(t)}.${r}`;return new File([e],o,{type:e.type,lastModified:e.lastModified})})}getIndexForFile(e){let t=this.filesPrefixRegistry[e];return void 0!==t?t++:t=0,this.filesPrefixRegistry[e]=t,t}}},59601(e,t,r){r.d(t,{D:()=>s});var i=r(22723),o=r(2998);const s={USER:"user",SERVER:"server"};function n(e){let t=s.USER,r=[],n=[],a=[],p=!0,l=[];return{updateActiveTabId:function(r){t=r,e.emitSync("activeTabIdUpdated",u())},getActiveTabId:u,onActiveTabIdUpdated:function(t){return e.subscribeSync("activeTabIdUpdated",e=>t(e))},getFiles:f,addFile:function(t){const r=f();r.push(t),m(r),e.emitSync("fileAdded",(0,i.cloneDeep)(t))},updateFiles:m,onFilesUpdated:function(t){return e.subscribeSync("filesUpdated",e=>t(e))},getImportedResources:g,updateImportedResources:function(t){r=t,e.emitSync("importedResourcesUpdated",g()),e.emitSync("resourcesUpdated",h())},onImportedResourcesUpdated:function(t){return e.subscribeSync("importedResourcesUpdated",e=>t(e))},getResources:h,onResourcesUpdated:function(t){return e.subscribeSync("resourcesUpdated",e=>t(e))},updateShowLoader:function(t){p=t,e.emitSync("showLoaderUpdated",d())},getShowLoader:d,onShowLoaderUpdated:function(t){return e.subscribeSync("showLoaderUpdated",e=>t(e))},updateSelectedFilesNames:function(t){l=(0,i.cloneDeep)(t),e.emitSync("selectedFilesNamesUpdated",c())},getSelectedFilesNames:c,onSelectedFilesNamesUpdated:function(t){return e.subscribeSync("selectedFilesNamesUpdated",e=>t(e))},updateResourceForUpload:function(e){const t=S(),r=t.find(({name:t})=>t===e.name);r?Object.assign(r,e):t.push(e),v(t)},getResourceForUpload:function(e){return(0,i.cloneDeep)(n.find(({name:t})=>t===e))},updateResourcesForUpload:v,getResourcesForUpload:S,onResourcesForUploadChanged:function(t){return e.subscribeSync("resourcesForUploadChanged",e=>t(e))}};function c(){return(0,i.cloneDeep)(l)}function d(){return p}function u(){return t}function m(t){a=(0,i.cloneDeep)(t),e.emitSync("filesUpdated",f())}function f(){return(0,i.cloneDeep)(a)}function g(){return(0,i.cloneDeep)(r)||[]}function h(){const e=g();let t=S();const r=[],i=[];return e.forEach(({name:e})=>{const s=t.find(({name:t})=>t===e);s&&(s.status===o.I.UPLOADED?r.push(s):i.push(s))}),r.length>0&&(t=t.filter(({name:e})=>!r.some(({name:t})=>t===e)),v(t,!1)),e.filter(({name:e})=>!i.some(t=>e===t)).concat(t)}function v(t,r=!0){n=(0,i.cloneDeep)(t),e.emitSync("resourcesForUploadChanged",S()),r&&e.emitSync("resourcesUpdated",h())}function S(){return(0,i.cloneDeep)(n)||[]}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",n),n.$inject=["EventEmitterService"]},59020(e,t,r){r.d(t,{T:()=>o});const i=["ttl","rdf","rj","n3","nt","nq","trig","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"];class o{static getGZS(){return i.map(e=>`.${e}.gz`)}static getBasics(){return i.map(e=>`.${e}`)}static getFileFormatsExtended(){return[...this.getGZS(),...this.getBasics(),".zip",".gz","application/gzip","application/x-gzip"].join(", ")}static getFileFormatsHuman(){return[...this.getBasics()].join(" ")}static getTextFileFormatsHuman(){return this.getBasics().filter(e=>".brf"!==e).join(" ")}}},49957(e,t,r){r.d(t,{j:()=>i});class i{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0,this.disallowDoctypeDecl=!0}}},69099(e,t,r){r.d(t,{M:()=>n});var i=r(2998),o=r(49957),s=r(62312);class n{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:i.I.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new o.j,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return s.o.DIRECTORY===this.type}isFile(){return s.o.FILE===this.type||s.o.URL===this.type||s.o.TEXT===this.type}isURL(){return s.o.URL===this.type}isText(){return s.o.TEXT===this.type}}},66256(e,t,r){r.d(t,{R:()=>i});const i={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},55643(){angular.module("graphdb.framework.rest.import.service",[]).factory("ImportRestService",t),t.$inject=["$http"];const e="rest/repositories";function t(t){return{getDefaultSettings:function(r){return t.get(`${e}/${r}/import/settings/default`)},getUploadedFiles:function(r){return t.get(`${e}/${r}/import/upload`)},getServerFiles:function(r){return t.get(`${e}/${r}/import/server`)},importServerFiles:function(r,i){return t.post(`${e}/${r}/import/server`,i)},importTextSnippet:function(r,i){return t.post(`${e}/${r}/import/upload/text`,i)},updateTextSnippet:function(r,i){return t.post(`${e}/${r}/import/upload/update/text`,i)},importFromUrl:function(r,i){return t.post(`${e}/${r}/import/upload/url`,i)},updateFromUrl:function(r,i){return t.post(`${e}/${r}/import/upload/update/url`,i)},stopServerImport:function(r,i){return t.delete(`${e}/${r}/import/server`,{params:i})},stopUserDataImport:function(r,i){return t.delete(`${e}/${r}/import/upload`,{params:i})},resetServerFileStatus:function(r,i,o=!0){return t({method:"DELETE",url:`${e}/${r}/import/server/status`,params:{remove:o},data:i,headers:{"Content-type":"application/json;charset=utf-8"}})},resetUserDataStatus:function(r,i,o=!0){return t({method:"DELETE",url:`${e}/${r}/import/upload/status`,params:{remove:o},data:i,headers:{"Content-type":"application/json;charset=utf-8"}})}}}},44881(e,t,r){r.d(t,{Pd:()=>s,ac:()=>n});var i=r(69099),o=r(11310);const s=e=>{const t=(0,o.A)();return e.map(e=>new i.M(e,t))},n=(e,t)=>{const r=(0,o.A)();return e.map(e=>new i.M({name:e.name,size:e.size,type:"file",modifiedOn:void 0,file:e,status:t},r))}},44755(){angular.module("graphdb.framework.rest.upload.service",[]).factory("UploadRestService",t),t.$inject=["$http","Upload","$translate"];const e="rest/repositories";function t(t,r,i){return{createUploadPayload:function(e,t){let i;return i=e.file?{file:e.file,importSettings:r.jsonBlob(t)}:{importSettings:r.jsonBlob(t)},i},uploadUserDataFile:function(t,i,o){return r.upload({url:`${e}/${t}/import/upload/file`,data:o})},updateUserDataFile:function(t,i,o){return r.upload({url:`${e}/${t}/import/upload/update/file`,data:o})}}}},47014(e,t,r){r.d(t,{E:()=>i});class i{static formatCurrentDateTime(){const e=new Date;return e.getFullYear()+"-"+_.padStart(e.getMonth()+1,2,"0")+"-"+_.padStart(e.getDate(),2,"0")+" "+_.padStart(e.getHours(),2,"0")+":"+_.padStart(e.getMinutes(),2,"0")+":"+_.padStart(e.getSeconds(),2,"0")+"."+_.padStart(e.getMilliseconds(),3,"0")}}},35195(e,t,r){r.d(t,{G4:()=>s,Sn:()=>n,hK:()=>o});var i=r(22723);const o=e=>e.replace(/[()']/g,""),s=e=>"string"==typeof e?"true"===e:Boolean(e),n=e=>e?(0,i.upperFirst)(e.toLowerCase()):e}};
2
+ //# sourceMappingURL=54231.86549d1df408d58c8d9c.bundle.js.map