graphdb-workbench 3.2.0-RC1 → 3.2.0-RC2

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 (130) hide show
  1. package/dist/{38644.763094ed8176a107ad43.bundle.js → 38644.08569e93394c46036f53.bundle.js} +2 -2
  2. package/dist/{38644.763094ed8176a107ad43.bundle.js.map → 38644.08569e93394c46036f53.bundle.js.map} +1 -1
  3. package/dist/{39518.7dd8fe04651f2fdbc846.bundle.js → 39518.2923a17f1d69e5a0d957.bundle.js} +2 -2
  4. package/dist/{39518.7dd8fe04651f2fdbc846.bundle.js.map → 39518.2923a17f1d69e5a0d957.bundle.js.map} +1 -1
  5. package/dist/{53174.4a1ebee9fa3f2bcebf90.bundle.js → 53174.42c4b8519fa16f6eedc1.bundle.js} +2 -2
  6. package/dist/53174.42c4b8519fa16f6eedc1.bundle.js.map +1 -0
  7. package/dist/60560.1a6c5df198a1426b0fb7.bundle.js +2 -0
  8. package/dist/60560.1a6c5df198a1426b0fb7.bundle.js.map +1 -0
  9. package/dist/{67888.00b7ea58032ed4b8bfcb.bundle.js → 67888.d6afafad6e3a017cb8b3.bundle.js} +2 -2
  10. package/dist/{67888.00b7ea58032ed4b8bfcb.bundle.js.map → 67888.d6afafad6e3a017cb8b3.bundle.js.map} +1 -1
  11. package/dist/{7815.182dcef7161cdc589db7.bundle.js → 7815.49f59c286fc0d0b306ab.bundle.js} +2 -2
  12. package/dist/{7815.182dcef7161cdc589db7.bundle.js.map → 7815.49f59c286fc0d0b306ab.bundle.js.map} +1 -1
  13. package/dist/82206.d593f5b11aa103af5e3d.bundle.js +2 -0
  14. package/dist/82206.d593f5b11aa103af5e3d.bundle.js.map +1 -0
  15. package/dist/{82926.d6c48c23b6e1f89b3d8a.bundle.js → 82926.51d23e16d60e02dc4133.bundle.js} +2 -2
  16. package/dist/{82926.d6c48c23b6e1f89b3d8a.bundle.js.map → 82926.51d23e16d60e02dc4133.bundle.js.map} +1 -1
  17. package/dist/94519.783661f9e08288cddc88.bundle.js +2 -0
  18. package/dist/94519.783661f9e08288cddc88.bundle.js.map +1 -0
  19. package/dist/{99448.30713a59be1313c4b089.bundle.js → 99448.8c045dc098cc67d199aa.bundle.js} +2 -2
  20. package/dist/{99448.30713a59be1313c4b089.bundle.js.map → 99448.8c045dc098cc67d199aa.bundle.js.map} +1 -1
  21. package/dist/css/bootstrap-graphdb-theme.css +1 -1
  22. package/dist/css/clustermanagement.css +1 -1
  23. package/dist/css/graphql/graphql-playground.css +1 -1
  24. package/dist/css/graphs-vizualizations.css +1 -1
  25. package/dist/css/lib/ontotext-yasgui-web-component.css +1 -1
  26. package/dist/css/repositories.css +1 -1
  27. package/dist/css/shepherd-custom.css +1 -1
  28. package/dist/css/shuttle-multiselect.css +1 -1
  29. package/dist/i18n/locale-en.json +4 -4
  30. package/dist/i18n/locale-fr.json +4 -4
  31. package/dist/index.html +9 -9
  32. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  33. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  34. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  35. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  36. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  37. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  38. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  39. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  40. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  41. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  42. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  43. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  44. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  45. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  46. package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
  47. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  48. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  49. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  50. package/dist/js/angular/security/templates/user.html +5 -5
  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.f089c68483807d9f2f74.js +3 -0
  62. package/dist/{legacyWorkbench.59130589967739705b23.js.map → legacyWorkbench.f089c68483807d9f2f74.js.map} +1 -1
  63. package/dist/{main.1183256fc7ce9d0d3fa3.js → main.f4b1fbec182d8427ee8a.js} +3 -3
  64. package/dist/{main.1183256fc7ce9d0d3fa3.js.map → main.f4b1fbec182d8427ee8a.js.map} +1 -1
  65. package/dist/pages/aclmanagement.html +2 -2
  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 +3 -3
  69. package/dist/pages/create-index.html +1 -1
  70. package/dist/pages/createConnector.html +3 -0
  71. package/dist/pages/dependencies.html +1 -1
  72. package/dist/pages/domainRangeInfo.html +2 -2
  73. package/dist/pages/edit.html +1 -1
  74. package/dist/pages/explore.html +1 -1
  75. package/dist/pages/export.html +1 -1
  76. package/dist/pages/find.html +1 -1
  77. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  78. package/dist/pages/graphs-visualizations.html +7 -7
  79. package/dist/pages/guides.html +1 -1
  80. package/dist/pages/home.html +1 -1
  81. package/dist/pages/import.html +2 -2
  82. package/dist/pages/jdbc-create.html +1 -1
  83. package/dist/pages/jdbc.html +1 -1
  84. package/dist/pages/login.html +1 -1
  85. package/dist/pages/monitor/backup-and-restore.html +1 -1
  86. package/dist/pages/monitor/queries.html +1 -1
  87. package/dist/pages/monitor/resources.html +1 -1
  88. package/dist/pages/namespaces.html +2 -2
  89. package/dist/pages/plugins.html +1 -1
  90. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  91. package/dist/pages/rdfrank.html +2 -2
  92. package/dist/pages/repositories.html +1 -1
  93. package/dist/pages/repository.html +1 -1
  94. package/dist/pages/similarity-indexes.html +1 -1
  95. package/dist/pages/sparql-editor.html +1 -1
  96. package/dist/pages/sparql-template-create.html +1 -1
  97. package/dist/pages/sparql-templates.html +1 -1
  98. package/dist/pages/ux-test1.html +3 -2
  99. package/dist/pages/webapi.html +2 -2
  100. package/dist/res/swagger5/index.html +11 -11
  101. package/dist/shared-components/cjs/onto-cookie-consent_2.cjs.entry.js +1 -1
  102. package/dist/shared-components/cjs/onto-footer_5.cjs.entry.js +1 -1
  103. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  104. package/dist/shared-components/collection/components/onto-cookie-consent/onto-cookie-consent.css +1 -1
  105. package/dist/shared-components/collection/components/onto-navbar/onto-navbar.css +1 -1
  106. package/dist/shared-components/collection/components/onto-operations-notification/onto-operations-notification.css +1 -1
  107. package/dist/shared-components/esm/onto-cookie-consent_2.entry.js +1 -1
  108. package/dist/shared-components/esm/onto-footer_5.entry.js +1 -1
  109. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  110. package/dist/shared-components/shared-components/{p-79cc3329.entry.js → p-46732fef.entry.js} +1 -1
  111. package/dist/shared-components/shared-components/p-6ca5791e.entry.js +1 -0
  112. package/dist/shared-components/shared-components/p-7df9e540.entry.js +1 -0
  113. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  114. package/dist/styleguide.bc9dcbaac347a57319f2.js +2 -0
  115. package/dist/styleguide.bc9dcbaac347a57319f2.js.map +1 -0
  116. package/package.json +1 -1
  117. package/dist/53174.4a1ebee9fa3f2bcebf90.bundle.js.map +0 -1
  118. package/dist/60560.0a055f16e4792468aabb.bundle.js +0 -2
  119. package/dist/60560.0a055f16e4792468aabb.bundle.js.map +0 -1
  120. package/dist/82206.cebb3d642554cf3e0113.bundle.js +0 -2
  121. package/dist/82206.cebb3d642554cf3e0113.bundle.js.map +0 -1
  122. package/dist/94519.32958f75080cd121b880.bundle.js +0 -2
  123. package/dist/94519.32958f75080cd121b880.bundle.js.map +0 -1
  124. package/dist/legacyWorkbench.59130589967739705b23.js +0 -3
  125. package/dist/shared-components/shared-components/p-09a97d11.entry.js +0 -1
  126. package/dist/shared-components/shared-components/p-12b2f278.entry.js +0 -1
  127. package/dist/styleguide.26e57b17e3dafc7b6bbe.js +0 -2
  128. package/dist/styleguide.26e57b17e3dafc7b6bbe.js.map +0 -1
  129. /package/dist/{legacyWorkbench.59130589967739705b23.js.LICENSE.txt → legacyWorkbench.f089c68483807d9f2f74.js.LICENSE.txt} +0 -0
  130. /package/dist/{main.1183256fc7ce9d0d3fa3.js.LICENSE.txt → main.f4b1fbec182d8427ee8a.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench",
3
- "version": "3.2.0-RC1",
3
+ "version": "3.2.0-RC2",
4
4
  "description": "The web application for GraphDB APIs",
5
5
  "engines": {
6
6
  "node": ">=22.17"
@@ -1 +0,0 @@
1
- {"version":3,"file":"53174.4a1ebee9fa3f2bcebf90.bundle.js","mappings":"wKAAO,MAAMA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AMT,QAAQ,CAACiB,EAAMf,IAAUe,EAAKd,GAAKD,GAClCO,CACX,EA4DIS,eApGmB,GAqGnBC,aAnGiB,GAoGjBC,YAnGgB,GAoGhBC,kBAlGsB,GAmGtBC,gBAlGoB,GAmGpBC,kBAlGsB,IAmGtBC,YAjGgB,UAkGhBC,kBAnGsB,GAoGtBC,sBA9F0B,GA+F1BC,2BAhG+B,GAiG/BC,wBA/F4B,IAgG5BC,kBA/FsB,UAgGtBC,wBA/F4B,GAgG5BC,yBA/F6BZ,GAgG7Ba,yBAvG6B,GAwG7BC,wBAvG4B,EAwG5BC,mBAhGuBf,G,+DCxBxB,MAAM9B,EAAY,CACrBC,OAAQ,SACRC,SAAU,WACVC,UAAW,YACXuB,YAAa,cACboB,cAAe,gBACfC,UAAW,YACXC,WAAY,aACZC,WAAY,cAGHC,EAAgB,CACzBC,mBAAoB,qBACpBC,qBAAsB,uBACtBzB,mBAAoB,qBACpB0B,kBAAmB,oBACnBC,kBAAmB,oBACnBC,iBAAkB,mBAClBC,mCAAoC,sCAG3BlC,EAAY,CACrBC,QAAS,UACTG,YAAa,cACbD,QAAS,UACTqB,cAAe,gBAEfnB,mBAAoB,sBAGX8B,EAAgB,CACzBC,aAAc,eACdC,eAAgB,iB","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/models/clustermanagement/node-state.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/clustermanagement/cluster-management-constants.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/clustermanagement/states.js"],"sourcesContent":["export const NodeState = {\n LEADER: 'LEADER',\n FOLLOWER: 'FOLLOWER',\n CANDIDATE: 'CANDIDATE',\n // node without icon\n OUT_OF_SYNC_BLANK: 'OUT_OF_SYNC_BLANK'\n};\n","import {NodeState} from \"./node-state\";\nimport {LinkState} from \"./states\";\n\nconst CLUSTER_MANAGEMENT_CONSTANTS = (function () {\n const SVG_NODE_WIDTH = 15;\n\n const PADDING_LEFT = 12;\n const PADDING_TOP = 12;\n\n const TITLE_PADDING_TOP = 15;\n const TITLE_FONT_SIZE = 13;\n const TITLE_FONT_WEIGHT = 700;\n const TITLE_LINE_HEIGHT = 18;\n const TITLE_COLOR = '#000000';\n\n const LEGEND_ITEMS_PADDING_TOP = 40;\n const LEGEND_ITEM_PADDING_TOP = 8;\n const LEGEND_ITEM_ICON_FONT_SIZE = 15;\n const LEGEND_ITEM_FONT_SIZE = 11;\n const LEGEND_ITEM_FONT_WEIGHT = 400;\n const LEGEND_ITEM_COLOR = '#000000';\n const LEGEND_ITEM_LINE_HEIGHT = 13;\n const LEGEND_ITEM_PADDING_LEFT = PADDING_LEFT + SVG_NODE_WIDTH;\n\n const BACKGROUND_PADDING = PADDING_LEFT * 2;\n\n const getLegendNodes = function () {\n const legendNodes = [];\n legendNodes.push({nodeState: NodeState.LEADER, customText: 'node_state_leader'});\n legendNodes.push({nodeState: NodeState.FOLLOWER, customText: 'node_state_follower'});\n // the out of sync node in the leged should not have an icon\n legendNodes.push({nodeState: NodeState.OUT_OF_SYNC_BLANK, customText: 'node_state_out_of_sync'});\n legendNodes.forEach((node, index) => node.id = index);\n return legendNodes;\n };\n\n const getLegendLinks = function () {\n const links = [];\n links.push({status: LinkState.IN_SYNC, linkTypeKey: 'link_state_in_sync'});\n links.push({status: LinkState.SYNCING, linkTypeKey: 'link_state_syncing'});\n links.push({status: LinkState.OUT_OF_SYNC, linkTypeKey: 'link_state_out_of_sync'});\n links.push({status: LinkState.RECEIVING_SNAPSHOT, linkTypeKey: 'link_state_receiving_snapshot'});\n links.forEach((link, index) => link.id = index);\n return links;\n };\n\n const getSyncStatuses = () => {\n return [\n {\n labelKey: 'node_state_candidate',\n classes: 'remixicon',\n icon: '\\ueb81', //ri-checkbox-circle-line\n }, {\n labelKey: 'node_state_no_cluster',\n classes: 'remixicon',\n icon: '\\ueb99', //ri-close-line\n }, {\n labelKey: 'link_state_out_of_sync',\n classes: 'remixicon',\n icon: '\\uea21', //ri-alert-line\n }, {\n labelKey: 'node_state_no_connection',\n classes: 'remixicon',\n icon: '\\ueeb1', //ri-link-unlink\n }, {\n labelKey: 'node_state_read_only',\n classes: 'remixicon',\n icon: '\\uece2', //ri-file-forbid-line\n }, {\n labelKey: 'node_state_restricted',\n classes: 'remixicon',\n icon: '\\uee71', //ri-key-line\n }, {\n labelKey: 'recovery_state.searching_for_node',\n classes: 'remixicon',\n icon: '\\uf045', //ri-question-line\n }, {\n labelKey: 'recovery_state.waiting_for_snapshot',\n classes: 'remixicon',\n icon: '\\uf20f', //ri-time-line\n }, {\n labelKey: 'recovery_state.building_snapshot',\n classes: 'remixicon',\n icon: '\\uf3a7', //ri-archive-2-line\n }, {\n labelKey: 'recovery_state.sending_snapshot',\n classes: 'remixicon',\n icon: '\\uf24a', //ri-upload-2-line\n }, {\n labelKey: 'recovery_state.receiving_snapshot',\n classes: 'remixicon',\n icon: '\\uec54', //ri-download-2-line\n }, {\n labelKey: 'recovery_state.applying_snapshot',\n classes: 'remixicon',\n icon: '\\uec30', //ri-device-recover-line\n },\n ];\n };\n\n return {\n getLegendNodes,\n getSyncStatuses,\n getLegendLinks,\n SVG_NODE_WIDTH,\n PADDING_LEFT,\n PADDING_TOP,\n TITLE_PADDING_TOP,\n TITLE_FONT_SIZE,\n TITLE_FONT_WEIGHT,\n TITLE_COLOR,\n TITLE_LINE_HEIGHT,\n LEGEND_ITEM_FONT_SIZE,\n LEGEND_ITEM_ICON_FONT_SIZE,\n LEGEND_ITEM_FONT_WEIGHT,\n LEGEND_ITEM_COLOR,\n LEGEND_ITEM_LINE_HEIGHT,\n LEGEND_ITEM_PADDING_LEFT,\n LEGEND_ITEMS_PADDING_TOP,\n LEGEND_ITEM_PADDING_TOP,\n BACKGROUND_PADDING\n };\n})();\n\nexport {\n CLUSTER_MANAGEMENT_CONSTANTS\n};\n","export const NodeState = {\n LEADER: 'LEADER',\n FOLLOWER: 'FOLLOWER',\n CANDIDATE: 'CANDIDATE',\n OUT_OF_SYNC: 'OUT_OF_SYNC',\n NO_CONNECTION: 'NO_CONNECTION',\n READ_ONLY: 'READ_ONLY',\n RESTRICTED: 'RESTRICTED',\n NO_CLUSTER: 'NO_CLUSTER'\n};\n\nexport const RecoveryState = {\n SEARCHING_FOR_NODE: 'SEARCHING_FOR_NODE',\n WAITING_FOR_SNAPSHOT: 'WAITING_FOR_SNAPSHOT',\n RECEIVING_SNAPSHOT: 'RECEIVING_SNAPSHOT',\n APPLYING_SNAPSHOT: 'APPLYING_SNAPSHOT',\n BUILDING_SNAPSHOT: 'BUILDING_SNAPSHOT',\n SENDING_SNAPSHOT: 'SENDING_SNAPSHOT',\n RECOVERY_OPERATION_FAILURE_WARNING: 'RECOVERY_OPERATION_FAILURE_WARNING'\n};\n\nexport const LinkState = {\n IN_SYNC: 'IN_SYNC',\n OUT_OF_SYNC: 'OUT_OF_SYNC',\n SYNCING: 'SYNCING',\n NO_CONNECTION: 'NO_CONNECTION',\n // complimentary state, built based on the recovery state of two nodes when one is receiving snapshot to the other\n RECEIVING_SNAPSHOT: 'RECEIVING_SNAPSHOT'\n};\n\nexport const TopologyState = {\n PRIMARY_NODE: 'PRIMARY_NODE',\n SECONDARY_NODE: 'SECONDARY_NODE'\n};\n"],"names":["NodeState","LEADER","FOLLOWER","CANDIDATE","OUT_OF_SYNC_BLANK","CLUSTER_MANAGEMENT_CONSTANTS","getLegendNodes","legendNodes","push","nodeState","customText","forEach","node","index","id","getSyncStatuses","labelKey","classes","icon","getLegendLinks","links","status","LinkState","IN_SYNC","linkTypeKey","SYNCING","OUT_OF_SYNC","RECEIVING_SNAPSHOT","link","SVG_NODE_WIDTH","PADDING_LEFT","PADDING_TOP","TITLE_PADDING_TOP","TITLE_FONT_SIZE","TITLE_FONT_WEIGHT","TITLE_COLOR","TITLE_LINE_HEIGHT","LEGEND_ITEM_FONT_SIZE","LEGEND_ITEM_ICON_FONT_SIZE","LEGEND_ITEM_FONT_WEIGHT","LEGEND_ITEM_COLOR","LEGEND_ITEM_LINE_HEIGHT","LEGEND_ITEM_PADDING_LEFT","LEGEND_ITEMS_PADDING_TOP","LEGEND_ITEM_PADDING_TOP","BACKGROUND_PADDING","NO_CONNECTION","READ_ONLY","RESTRICTED","NO_CLUSTER","RecoveryState","SEARCHING_FOR_NODE","WAITING_FOR_SNAPSHOT","APPLYING_SNAPSHOT","BUILDING_SNAPSHOT","SENDING_SNAPSHOT","RECOVERY_OPERATION_FAILURE_WARNING","TopologyState","PRIMARY_NODE","SECONDARY_NODE"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=60560;export const __webpack_esm_ids__=[60560];export const __webpack_esm_modules__={60560:(e,a,t)=>{t.r(a),t.d(a,{onto_cookie_consent:()=>l,onto_cookie_policy_dialog:()=>s});var o=t(87848),i=t(79939),c=t(57154);const l=class{constructor(e){(0,o.r)(this,e),this.consentGiven=(0,o.c)(this,"consentGiven"),this.showModal=!1,this.openModal=e=>{e.preventDefault(),this.showModal=!0},this.handleConsentClick=()=>{this.consentGiven.emit()}}onDialogClose(){this.showModal=!1}render(){return(0,o.h)(o.a,{key:"dba3fc373e9ad60ada7f86d11acbe1b1ed24a92d"},(0,o.h)("div",{key:"414c970a3a4b263e8f3f5d066dc8bb22b8194c48",class:"cookie-consent-modal"},(0,o.h)("section",{key:"6a1cccadb167b301738fb6a453b7d300e93ba18b",class:"cookie-consent-content"},(0,o.h)("span",{key:"aa62410b522125feeb48eaa568a78c761e6b9596"},(0,o.h)("translate-label",{key:"0696068c1aa8738bb3ddf0e548d9140ba12609e1",labelKey:"cookie.cookie_consent"}),(0,o.h)("a",{key:"efd9792a6a424b86606b3904615c53f19a2cdb6e",id:"cookie-policy-link",href:"#",onClick:this.openModal,class:"btn btn-link p-0"},(0,o.h)("translate-label",{key:"12e95d1446f81b47c973e285ee71da5fbfa4934f",labelKey:"cookie.cookie_policy_url_label"})),"."),(0,o.h)("button",{key:"a91e7d9e7eddef1b50d82570f4211a0e1e1ae7b0",id:"accept-cookie-policy",class:"onto-btn onto-btn-primary",onClick:this.handleConsentClick},(0,o.h)("translate-label",{key:"5ca81d4f299a7b7f13ed0f77ac7d1ceaeaad318a",labelKey:"common.button.ok"})))),this.showModal&&(0,o.h)("onto-cookie-policy-dialog",{key:"e54d3f134771ff5f59a288d0d6c9949c6f59567f",dialogHandler:this}))}};var n;l.style=".cookie-consent-modal{position:fixed;bottom:0;left:0;right:0;background-color:#fff;box-shadow:0 -2px 10px rgba(0, 0, 0, 0.1);padding:20px;z-index:1050;width:100%}.cookie-consent-content{display:flex;justify-content:center;align-items:center}.cookie-consent-content button{margin-left:12px}.cookie-policy-modal{padding:24px 40px;overflow-y:auto}.cookie-policy-modal .modal-dialog{width:60% !important;max-width:60% !important}.cookie-policy-modal .title{font-size:xx-large;font-weight:bolder}.cookie-policy-modal .heading{font-size:x-large;font-weight:bolder;margin-top:12px}.cookie-policy-modal .subheading{font-size:large;font-weight:bolder;margin-top:8px}.cookie-policy-modal .text{font-size:math}",function(e){e.THIRD_PARTY="thirdParty",e.STATISTIC="statistic"}(n||(n={}));const s=class{constructor(e){(0,o.r)(this,e),this.logger=i.L.logger,this.user=c.ServiceProvider.get(c.SecurityContextService).getAuthenticatedUser(),this.securityService=c.ServiceProvider.get(c.SecurityService)}toggleChanged(e){this.setUserCookieConsent(this.updateCookieConsent(e.detail)),this.securityService.updateUserData(this.user).catch(this.logger.error)}render(){var e,a;const t={dialogTitle:i.T.translate("cookie.policy.title"),onClose:()=>this.dialogHandler.onDialogClose(),modalClass:"cookie-policy-modal"},l=new c.CookieConsent(null===(a=null===(e=this.user)||void 0===e?void 0:e.appSettings)||void 0===a?void 0:a.COOKIE_CONSENT);return(0,o.h)("onto-dialog",{key:"5e62d3868af4012577e84bb5c1253539a673083a",config:t},(0,o.h)("div",{key:"16eca81b0a06475b144605d8e59e96451629c96f",slot:"body"},(0,o.h)("section",{key:"e80b33838e3c8d7f98aa56279b0abda6675cae3d"},(0,o.h)("h4",{key:"669acb8c03e02245e73e3e633d3c65727a06f505"},(0,o.h)("translate-label",{key:"071e342001fea0bac249c76e71925794876a4e88",labelKey:"cookie.policy.purpose_heading"})),(0,o.h)("p",{key:"264d4941a7bd54d527c9b17db0d0a277af553a60"},(0,o.h)("translate-label",{key:"e96b4a061dc7b7f35de34b425d32983ced5379e9",labelKey:"cookie.policy.purpose_text"})),(0,o.h)("p",{key:"dde91eecd6bc971a6b99adf4c5dc5db20ea895cc"},(0,o.h)("translate-label",{key:"3d63148dd9dad889b0be3e7d6c5b11872f5a659d",labelKey:"cookie.policy.purpose_enterprise_text"}))),(0,o.h)("section",{key:"2c6108c24450d655a07c4a6cdedf2ffa0b68a99b"},(0,o.h)("h4",{key:"fd11c7d881ee183427577d335b16ccb8e09d44e0"},(0,o.h)("translate-label",{key:"4fc7994e04ae0a4eb934b99d933f9976e6c8440d",labelKey:"cookie.policy.privacy_commitment_heading"})),(0,o.h)("p",{key:"c7c8c430acb67b506732f4ffdf5138582a363f53"},(0,o.h)("translate-label",{key:"c7c476ec48cfbaf842331f2ce868cf1eb7e6af69",labelKey:"cookie.policy.privacy_commitment_text"})),(0,o.h)("ul",{key:"9762f4a7ba0cb70993daaa23fa213072b7589459"},(0,o.h)("li",{key:"53f038d506a52714d2ba63c90c277986fde70e84"},(0,o.h)("translate-label",{key:"36d36a3e084e121d40e8a2c19afea11fc7384612",labelKey:"cookie.policy.privacy_commitment_1"})),(0,o.h)("li",{key:"764c43f6b844dc18aa78c3b1bb6b6ff012e56bd4"},(0,o.h)("translate-label",{key:"222eafa3af9ce55d2fea0a796197cd355289e135",labelKey:"cookie.policy.privacy_commitment_2"})))),(0,o.h)("section",{key:"4e43cd6f18738a953d52e5d249e3d0185faead7c"},(0,o.h)("h4",{key:"9af407bdd0fa5d77293a5f1d004fa109ed2b442d"},(0,o.h)("translate-label",{key:"0e656ea4576feae9a7bd0996eba3fb2d9ad1d43f",labelKey:"cookie.policy.cookies_heading"})),(0,o.h)("p",{key:"c198b97197b54ed6d8b5342b0fb616573c3dacc8"},(0,o.h)("translate-label",{key:"5b92e0bf1249378314e6e0eb2b2928d26ea6335a",labelKey:"cookie.policy.cookies_text"}))),(0,o.h)("section",{key:"2714f502c5a75d1ed1836c59bcb13b2e478777f5"},(0,o.h)("h4",{key:"0f36bdda71a975d35dcb0945e319cdbff47db95f"},(0,o.h)("translate-label",{key:"e1c41bd8de6d78f7d57463726a47cadbf80db251",labelKey:"cookie.policy.manage_cookies_heading"})),(0,o.h)("onto-toggle-switch",{key:"2d3ca12f02eb1d218619642fb007fb30df7473a5",checked:null==l?void 0:l.statistic,labelKey:"cookie.policy.statistic_cookies",tooltipTranslationKey:"cookie.policy.statistic_tooltip",context:n.STATISTIC}),(0,o.h)("p",{key:"8d4ea408a918657ba6fb173d75010dff14ab92d8"},(0,o.h)("translate-label",{key:"3cdf73f90f86c0c777aa6608bc027a66cf4357c4",labelKey:"cookie.policy.statistic_text"})),(0,o.h)("onto-toggle-switch",{key:"5496e326b60220c122d669de25da36ff580f86a3",checked:null==l?void 0:l.thirdParty,labelKey:"cookie.policy.third_party_cookies",tooltipTranslationKey:"cookie.policy.third_party_tooltip",context:n.THIRD_PARTY}),(0,o.h)("p",{key:"6e5eb57eded1cd9039137f97792f484035fd39b4"},(0,o.h)("translate-label",{key:"4f46f1391784782d133d54f48b17b93acdd5e455",labelKey:"cookie.policy.third_party_cookies_text"}))),(0,o.h)("p",{key:"7ddab24add6d05b2cddda126adb7996dfdbac970"},(0,o.h)("span",{key:"3ec5b1a68c7c9bdcc4c771c83dbf39a76f1b53b5"},(0,o.h)("translate-label",{key:"9dedef31386432411256689eff2a087c52906740",labelKey:"cookie.policy.change_cookies"}),(0,o.h)("i",{key:"147b23da37def13f0da4a8afdc04b33205e087b8"}," ",(0,o.h)("translate-label",{key:"bba53a3b3ed74a9f1922528ed9e5d86ad40379a5",labelKey:"menu.setup.label"})," > ",(0,o.h)("translate-label",{key:"3689ef4f4d6d34c9ddd45c42a02387778d87bd1f",labelKey:"menu.my.settings.label"})," > ",(0,o.h)("translate-label",{key:"e7c73135758fd1486ee7e4a3328ba261d77aaa15",labelKey:"security.user.settings"})," > ",(0,o.h)("translate-label",{key:"d248fc63637f1587a672a18a7ea08a8fb1d6b16f",labelKey:"cookie.policy.change_cookies_location4"})," ")))))}updateCookieConsent(e){var a,t;const o=new c.CookieConsent(null===(t=null===(a=this.user)||void 0===a?void 0:a.appSettings)||void 0===t?void 0:t.COOKIE_CONSENT);return o[e.context]=e.checked,o.updatedAt=(new Date).getTime(),o}setUserCookieConsent(e){this.user.appSettings||(this.user.appSettings={}),this.user.appSettings.COOKIE_CONSENT=e}};s.style="section h4{font-size:x-large;font-weight:bolder;margin-top:12px}"},79939:(e,a,t)=>{t.d(a,{L:()=>c,T:()=>n,s:()=>i});var o=t(57154);function i(e){const a=document.createElement("textarea");return a.innerHTML=e,a.value}class c{static get logger(){return o.Loggers.getLoggerInstance("SharedComponents")}}class l{constructor(){this.languageContextService=o.ServiceProvider.get(o.LanguageContextService),this.translationChangedObservers={},this.logger=c.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,a=[],t=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const o={parameters:a,callback:t};return this.translationChangedObservers[e].push(o),t(this.translate(e,a)),()=>{const a=this.translationChangedObservers[e].indexOf(o);-1!==a&&this.translationChangedObservers[e].splice(a,1)}}translate(e,a){return this.translateInLocale(e,a)}translateInLocale(e,a){let t=this.translateFromBundle(this.currentBundle,e);return t||(t=this.translateFromBundle(this.defaultBundle,e)),t?(t=this.applyParameters(t,a),i(t)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,a){if(!e)return;let t=e[a];return"string"!=typeof t&&(t=this.translateAsJsonObject(e,a)),t}translateAsJsonObject(e,a){let t=a.split(".");return this.getTranslation(e,t)}getTranslation(e,a){if(!a||!e)return;const t=e[a.splice(0,1)[0]];return 0===a.length?t:"string"!=typeof t?a.length>0?this.getTranslation(t,a):t:void 0}applyParameters(e,a){return a?a.reduce((e,a)=>l.replaceAll(e,a),e):e}static replaceAll(e,a){return a?e.split(`{{${a.key}}}`).join(a.value):e}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach(e=>{(this.translationChangedObservers[e]||[]).forEach(a=>a.callback(this.translate(e,a.parameters)))})}subscribeToBundleChange(){this.languageChangeSubscription=this.languageContextService.onLanguageBundleChanged(e=>{e&&(this.currentBundle=e,this.notifyTranslationsChanged())})}destroy(){this.languageChangeSubscription&&this.languageChangeSubscription()}}const n=new l}};
2
- //# sourceMappingURL=60560.0a055f16e4792468aabb.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"60560.0a055f16e4792468aabb.bundle.js","mappings":"oPAIA,MAEMA,EAAoB,MACtBC,WAAAA,CAAYC,IACRC,EAAAA,EAAAA,GAAiBC,KAAMF,GACvBE,KAAKC,cAAeC,EAAAA,EAAAA,GAAYF,KAAM,gBAEtCA,KAAKG,WAAY,EAKjBH,KAAKI,UAAaC,IACdA,EAAMC,iBACNN,KAAKG,WAAY,GAMrBH,KAAKO,mBAAqB,KACtBP,KAAKC,aAAaO,OAE1B,CAMAC,aAAAA,GACIT,KAAKG,WAAY,CACrB,CACAO,MAAAA,GACI,OAAQC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEC,IAAK,6CAA8CF,EAAAA,EAAAA,GAAE,MAAO,CAAEE,IAAK,2CAA4CC,MAAO,yBAA0BH,EAAAA,EAAAA,GAAE,UAAW,CAAEE,IAAK,2CAA4CC,MAAO,2BAA4BH,EAAAA,EAAAA,GAAE,OAAQ,CAAEE,IAAK,6CAA8CF,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,2CAA4CE,SAAU,2BAA4BJ,EAAAA,EAAAA,GAAE,IAAK,CAAEE,IAAK,2CAA4CG,GAAI,qBAAsBC,KAAM,IAAKC,QAASlB,KAAKI,UAAWU,MAAO,qBAAsBH,EAAAA,EAAAA,GAAE,kBAAmB,CAAEE,IAAK,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ChH,KAAK2E,4BAA4BqC,IAAc,IACvDD,QAAS5B,GAAaA,EAASE,SAASrF,KAAK4C,UAAUoE,EAAW7B,EAASC,eAE7F,CACAN,uBAAAA,GACI9E,KAAKiH,2BAA6BjH,KAAKyE,uBAAuByC,wBAAyBlB,IAC/EA,IACAhG,KAAK6F,cAAgBG,EACrBhG,KAAK4G,8BAGjB,CACAO,OAAAA,GACQnH,KAAKiH,4BACLjH,KAAKiH,4BAEb,EAEJ,MAAMtE,EAAqB,IAAI6B,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-cookie-consent_2.entry.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-nljGIprK.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, a as Host } from './index-I_gcXFWK.js';\nimport { L as LoggerProvider, T as TranslationService } from './translation.service-nljGIprK.js';\nimport { ServiceProvider, SecurityContextService, SecurityService, CookieConsent } from '@ontotext/workbench-api';\n\nconst ontoCookieConsentCss = \".cookie-consent-modal{position:fixed;bottom:0;left:0;right:0;background-color:#fff;box-shadow:0 -2px 10px rgba(0, 0, 0, 0.1);padding:20px;z-index:1050;width:100%}.cookie-consent-content{display:flex;justify-content:center;align-items:center}.cookie-consent-content button{margin-left:12px}.cookie-policy-modal{padding:24px 40px;overflow-y:auto}.cookie-policy-modal .modal-dialog{width:60% !important;max-width:60% !important}.cookie-policy-modal .title{font-size:xx-large;font-weight:bolder}.cookie-policy-modal .heading{font-size:x-large;font-weight:bolder;margin-top:12px}.cookie-policy-modal .subheading{font-size:large;font-weight:bolder;margin-top:8px}.cookie-policy-modal .text{font-size:math}\";\n\nconst OntoCookieConsent = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.consentGiven = createEvent(this, \"consentGiven\");\n /** State to control the visibility of the cookie policy modal */\n this.showModal = false;\n /**\n * Opens the cookie policy modal.\n * @param {Event} event - The event that triggered the modal opening.\n */\n this.openModal = (event) => {\n event.preventDefault();\n this.showModal = true;\n };\n /**\n * Handles the click event on the consent button.\n * Emits the consentGiven event.\n */\n this.handleConsentClick = () => {\n this.consentGiven.emit();\n };\n }\n /**\n * Closes the cookie policy dialog.\n * This method is called when the dialog is closed.\n */\n // eslint-disable-next-line @stencil-community/own-methods-must-be-private\n onDialogClose() {\n this.showModal = false;\n }\n render() {\n return (h(Host, { key: 'dba3fc373e9ad60ada7f86d11acbe1b1ed24a92d' }, h(\"div\", { key: '414c970a3a4b263e8f3f5d066dc8bb22b8194c48', class: \"cookie-consent-modal\" }, h(\"section\", { key: '6a1cccadb167b301738fb6a453b7d300e93ba18b', class: \"cookie-consent-content\" }, h(\"span\", { key: 'aa62410b522125feeb48eaa568a78c761e6b9596' }, h(\"translate-label\", { key: '0696068c1aa8738bb3ddf0e548d9140ba12609e1', labelKey: 'cookie.cookie_consent' }), h(\"a\", { key: 'efd9792a6a424b86606b3904615c53f19a2cdb6e', id: \"cookie-policy-link\", href: \"#\", onClick: this.openModal, class: \"btn btn-link p-0\" }, h(\"translate-label\", { key: '12e95d1446f81b47c973e285ee71da5fbfa4934f', labelKey: 'cookie.cookie_policy_url_label' })), \".\"), h(\"button\", { key: 'a91e7d9e7eddef1b50d82570f4211a0e1e1ae7b0', id: \"accept-cookie-policy\", class: \"onto-btn onto-btn-primary\", onClick: this.handleConsentClick }, h(\"translate-label\", { key: '5ca81d4f299a7b7f13ed0f77ac7d1ceaeaad318a', labelKey: 'common.button.ok' })))), this.showModal && h(\"onto-cookie-policy-dialog\", { key: 'e54d3f134771ff5f59a288d0d6c9949c6f59567f', dialogHandler: this })));\n }\n};\nOntoCookieConsent.style = ontoCookieConsentCss;\n\nconst ontoCookiePolicyDialogCss = \"section h4{font-size:x-large;font-weight:bolder;margin-top:12px}\";\n\nvar CookieType;\n(function (CookieType) {\n CookieType[\"THIRD_PARTY\"] = \"thirdParty\";\n CookieType[\"STATISTIC\"] = \"statistic\";\n})(CookieType || (CookieType = {}));\nconst OntoCookiePolicyDialog = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.logger = LoggerProvider.logger;\n this.user = ServiceProvider.get(SecurityContextService).getAuthenticatedUser();\n this.securityService = ServiceProvider.get(SecurityService);\n }\n toggleChanged(event) {\n this.setUserCookieConsent(this.updateCookieConsent(event.detail));\n this.securityService.updateUserData(this.user)\n .catch(this.logger.error);\n }\n render() {\n var _a, _b;\n const config = {\n dialogTitle: TranslationService.translate('cookie.policy.title'),\n onClose: () => this.dialogHandler.onDialogClose(),\n modalClass: 'cookie-policy-modal',\n };\n const cookieConsent = new CookieConsent((_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.appSettings) === null || _b === void 0 ? void 0 : _b.COOKIE_CONSENT);\n return (h(\"onto-dialog\", { key: '5e62d3868af4012577e84bb5c1253539a673083a', config: config }, h(\"div\", { key: '16eca81b0a06475b144605d8e59e96451629c96f', slot: 'body' }, h(\"section\", { key: 'e80b33838e3c8d7f98aa56279b0abda6675cae3d' }, h(\"h4\", { key: '669acb8c03e02245e73e3e633d3c65727a06f505' }, h(\"translate-label\", { key: '071e342001fea0bac249c76e71925794876a4e88', labelKey: 'cookie.policy.purpose_heading' })), h(\"p\", { key: '264d4941a7bd54d527c9b17db0d0a277af553a60' }, h(\"translate-label\", { key: 'e96b4a061dc7b7f35de34b425d32983ced5379e9', labelKey: 'cookie.policy.purpose_text' })), h(\"p\", { key: 'dde91eecd6bc971a6b99adf4c5dc5db20ea895cc' }, h(\"translate-label\", { key: '3d63148dd9dad889b0be3e7d6c5b11872f5a659d', labelKey: 'cookie.policy.purpose_enterprise_text' }))), h(\"section\", { key: '2c6108c24450d655a07c4a6cdedf2ffa0b68a99b' }, h(\"h4\", { key: 'fd11c7d881ee183427577d335b16ccb8e09d44e0' }, h(\"translate-label\", { key: '4fc7994e04ae0a4eb934b99d933f9976e6c8440d', labelKey: 'cookie.policy.privacy_commitment_heading' })), h(\"p\", { key: 'c7c8c430acb67b506732f4ffdf5138582a363f53' }, h(\"translate-label\", { key: 'c7c476ec48cfbaf842331f2ce868cf1eb7e6af69', labelKey: 'cookie.policy.privacy_commitment_text' })), h(\"ul\", { key: '9762f4a7ba0cb70993daaa23fa213072b7589459' }, h(\"li\", { key: '53f038d506a52714d2ba63c90c277986fde70e84' }, h(\"translate-label\", { key: '36d36a3e084e121d40e8a2c19afea11fc7384612', labelKey: 'cookie.policy.privacy_commitment_1' })), h(\"li\", { key: '764c43f6b844dc18aa78c3b1bb6b6ff012e56bd4' }, h(\"translate-label\", { key: '222eafa3af9ce55d2fea0a796197cd355289e135', labelKey: 'cookie.policy.privacy_commitment_2' })))), h(\"section\", { key: '4e43cd6f18738a953d52e5d249e3d0185faead7c' }, h(\"h4\", { key: '9af407bdd0fa5d77293a5f1d004fa109ed2b442d' }, h(\"translate-label\", { key: '0e656ea4576feae9a7bd0996eba3fb2d9ad1d43f', labelKey: 'cookie.policy.cookies_heading' })), h(\"p\", { key: 'c198b97197b54ed6d8b5342b0fb616573c3dacc8' }, h(\"translate-label\", { key: '5b92e0bf1249378314e6e0eb2b2928d26ea6335a', labelKey: 'cookie.policy.cookies_text' }))), h(\"section\", { key: '2714f502c5a75d1ed1836c59bcb13b2e478777f5' }, h(\"h4\", { key: '0f36bdda71a975d35dcb0945e319cdbff47db95f' }, h(\"translate-label\", { key: 'e1c41bd8de6d78f7d57463726a47cadbf80db251', labelKey: 'cookie.policy.manage_cookies_heading' })), h(\"onto-toggle-switch\", { key: '2d3ca12f02eb1d218619642fb007fb30df7473a5', checked: cookieConsent === null || cookieConsent === void 0 ? void 0 : cookieConsent.statistic, labelKey: 'cookie.policy.statistic_cookies', tooltipTranslationKey: 'cookie.policy.statistic_tooltip', context: CookieType.STATISTIC }), h(\"p\", { key: '8d4ea408a918657ba6fb173d75010dff14ab92d8' }, h(\"translate-label\", { key: '3cdf73f90f86c0c777aa6608bc027a66cf4357c4', labelKey: 'cookie.policy.statistic_text' })), h(\"onto-toggle-switch\", { key: '5496e326b60220c122d669de25da36ff580f86a3', checked: cookieConsent === null || cookieConsent === void 0 ? void 0 : cookieConsent.thirdParty, labelKey: 'cookie.policy.third_party_cookies', tooltipTranslationKey: 'cookie.policy.third_party_tooltip', context: CookieType.THIRD_PARTY }), h(\"p\", { key: '6e5eb57eded1cd9039137f97792f484035fd39b4' }, h(\"translate-label\", { key: '4f46f1391784782d133d54f48b17b93acdd5e455', labelKey: 'cookie.policy.third_party_cookies_text' }))), h(\"p\", { key: '7ddab24add6d05b2cddda126adb7996dfdbac970' }, h(\"span\", { key: '3ec5b1a68c7c9bdcc4c771c83dbf39a76f1b53b5' }, h(\"translate-label\", { key: '9dedef31386432411256689eff2a087c52906740', labelKey: 'cookie.policy.change_cookies' }), h(\"i\", { key: '147b23da37def13f0da4a8afdc04b33205e087b8' }, \"\\u00A0\", h(\"translate-label\", { key: 'bba53a3b3ed74a9f1922528ed9e5d86ad40379a5', labelKey: 'menu.setup.label' }), \"\\u00A0>\\u00A0\", h(\"translate-label\", { key: '3689ef4f4d6d34c9ddd45c42a02387778d87bd1f', labelKey: 'menu.my.settings.label' }), \"\\u00A0>\\u00A0\", h(\"translate-label\", { key: 'e7c73135758fd1486ee7e4a3328ba261d77aaa15', labelKey: 'security.user.settings' }), \"\\u00A0>\\u00A0\", h(\"translate-label\", { key: 'd248fc63637f1587a672a18a7ea08a8fb1d6b16f', labelKey: 'cookie.policy.change_cookies_location4' }), \"\\u00A0\"))))));\n }\n updateCookieConsent(payload) {\n var _a, _b;\n const cookieConsent = new CookieConsent((_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.appSettings) === null || _b === void 0 ? void 0 : _b.COOKIE_CONSENT);\n // Context is either 'thirdParty' or 'statistic'\n cookieConsent[payload.context] = payload.checked;\n cookieConsent.updatedAt = new Date().getTime();\n return cookieConsent;\n }\n setUserCookieConsent(cookieConsent) {\n if (!this.user.appSettings) {\n this.user.appSettings = {};\n }\n this.user.appSettings.COOKIE_CONSENT = cookieConsent;\n }\n};\nOntoCookiePolicyDialog.style = ontoCookiePolicyDialogCss;\n\nexport { OntoCookieConsent as onto_cookie_consent, OntoCookiePolicyDialog as onto_cookie_policy_dialog };\n","import { Loggers, ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\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\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 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 { LoggerProvider as L, TranslationService as T, sanitizeHTML as s };\n"],"names":["OntoCookieConsent","constructor","hostRef","registerInstance","this","consentGiven","createEvent","showModal","openModal","event","preventDefault","handleConsentClick","emit","onDialogClose","render","h","Host","key","class","labelKey","id","href","onClick","dialogHandler","CookieType","style","OntoCookiePolicyDialog","logger","LoggerProvider","user","ServiceProvider","get","SecurityContextService","getAuthenticatedUser","securityService","SecurityService","toggleChanged","setUserCookieConsent","updateCookieConsent","detail","updateUserData","catch","error","_a","_b","config","dialogTitle","TranslationService","translate","onClose","modalClass","cookieConsent","CookieConsent","appSettings","COOKIE_CONSENT","slot","checked","statistic","tooltipTranslationKey","context","STATISTIC","thirdParty","THIRD_PARTY","payload","updatedAt","Date","getTime","sanitizeHTML","html","element","document","createElement","innerHTML","value","Loggers","getLoggerInstance","TranslationServiceClassDefinition","languageContextService","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","length","reduce","parameter","replaceAll","join","notifyTranslationsChanged","Object","keys","forEach","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=82206;export const __webpack_esm_ids__=[82206];export const __webpack_esm_modules__={28499:(e,t,o)=>{var r;o.d(t,{D:()=>r}),function(e){e.RIGHT="right",e.LEFT="left"}(r||(r={}))},44123:(e,t,o)=>{var r;o.d(t,{O:()=>r}),function(e){e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e.AUTO="auto"}(r||(r={}))},79939:(e,t,o)=>{o.d(t,{L:()=>n,T:()=>a,s:()=>s});var r=o(57154);function s(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}class n{static get logger(){return r.Loggers.getLoggerInstance("SharedComponents")}}class i{constructor(){this.languageContextService=r.ServiceProvider.get(r.LanguageContextService),this.translationChangedObservers={},this.logger=n.logger,this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(e,t=[],o=()=>{}){this.translationChangedObservers[e]=this.translationChangedObservers[e]||[];const r={parameters:t,callback:o};return this.translationChangedObservers[e].push(r),o(this.translate(e,t)),()=>{const t=this.translationChangedObservers[e].indexOf(r);-1!==t&&this.translationChangedObservers[e].splice(t,1)}}translate(e,t){return this.translateInLocale(e,t)}translateInLocale(e,t){let o=this.translateFromBundle(this.currentBundle,e);return o||(o=this.translateFromBundle(this.defaultBundle,e)),o?(o=this.applyParameters(o,t),s(o)):(this.logger.warn(`Missing translation for key: [${e}]`),e)}translateFromBundle(e,t){if(!e)return;let o=e[t];return"string"!=typeof o&&(o=this.translateAsJsonObject(e,t)),o}translateAsJsonObject(e,t){let o=t.split(".");return this.getTranslation(e,o)}getTranslation(e,t){if(!t||!e)return;const o=e[t.splice(0,1)[0]];return 0===t.length?o:"string"!=typeof o?t.length>0?this.getTranslation(o,t):o:void 0}applyParameters(e,t){return t?t.reduce((e,t)=>i.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 a=new i},81491:(e,t,o)=>{o.d(t,{H:()=>s});const r='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class s{static setDocumentBodyOverflow(e){const t=document.body.style.overflow;return document.body.style.overflow=e,t}static hideDocumentBodyOverflow(){return s.setDocumentBodyOverflow("hidden")}static focusNextElement(e,t=r){const o=Array.from(e.querySelectorAll(t));if(o.length>0){const e=o.indexOf(document.activeElement),t=o[(e+1)%o.length];t&&t.focus()}}static focusPreviousElement(e,t=r){const o=Array.from(e.querySelectorAll(t));if(o.length>0){const e=o.indexOf(document.activeElement),t=o[(e-1+o.length)%o.length];t&&t.focus()}}static preventLeavingDialog(e,t){"Tab"===t.key&&(t.preventDefault(),t.shiftKey?s.focusPreviousElement(e):s.focusNextElement(e))}static focusElement(e){const t=document.querySelector(e);null==t||t.focus()}static scrollElementIntoView(e,t={block:"nearest"}){const o=document.querySelector(e);o&&o.scrollIntoView(t)}static waitForElement(e){return new Promise((t,o)=>{const r=new MutationObserver(()=>{try{const o=document.querySelector(e);o&&(r.disconnect(),t(o))}catch(e){r.disconnect(),o(e)}});r.observe(document.body,{subtree:!0,childList:!0,attributes:!0})})}}},82206:(e,t,o)=>{o.r(t),o.d(t,{onto_language_selector:()=>d,onto_license_alert:()=>u,onto_operations_notification:()=>b,onto_rdf_search:()=>m,onto_repository_selector:()=>f,onto_search_icon:()=>y,onto_search_resource_input:()=>w,onto_user_login:()=>S,onto_user_menu:()=>k});var r=o(87848),s=o(87050),n=o(57154),i=o(28499),a=o(44123),l=o(79939),c=o(81491);const d=class{constructor(e){(0,r.r)(this,e),this.languageService=n.ServiceProvider.get(n.LanguageService),this.languageContextService=n.ServiceProvider.get(n.LanguageContextService),this.items=[],this.dropdownAlignment=i.D.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(e=>this.changeLanguage(e)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var e,t;return(0,r.h)(r.a,{key:"faabdc9c474b053c32f4ae2c45cd79bd6166a255"},(0,r.h)("onto-dropdown",{key:"e15d2c8478c85c3a37c99d22f91602ea17730e67",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(e=this.currentLanguage)&&void 0!==e?e:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(t=this.dropdownAlignment)&&void 0!==t?t:i.D.RIGHT,dropdownTooltipTrigger:"mouseenter focus",iconClass:"icon-translation",items:this.items,"auto-close":!0}))}valueChangeHandler(){return e=>this.onSelectedLanguageChanged(e)}changeLanguage(e){let t=e;t||(t=this.languageService.getDefaultLanguage()),this.currentLanguage=t,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(e){this.languageContextService.updateSelectedLanguage(e.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(e=>{const t=this.currentLanguage===e?"icon-tick":"";return(new s.D).setNameLabelKey(`language_selector.language.${e}.label`).setTooltipLabelKey(`language_selector.language.${e}.tooltip.`+(this.currentLanguage===e?"selected":"not_selected")).setIconClass(t).setCssClass(e).setValue(e).setDropdownTooltipTrigger("mouseenter focus")})}};d.style=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}onto-language-selector .onto-dropdown.closed .onto-dropdown-button{background-color:transparent}onto-language-selector .onto-dropdown.closed .onto-dropdown-button .icon-translation{font-size:1.5em}onto-language-selector .onto-dropdown.closed .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background)}";const u=class{constructor(e){(0,r.r)(this,e)}render(){var e;return(0,r.h)(r.a,{key:"0067db786bd82713daab8282753d3f93aec0ec38","tooltip-content":null===(e=this.license)||void 0===e?void 0:e.message,"tooltip-placement":a.O.BOTTOM,"data-test":"onto-license-alert"},(0,r.h)("button",{key:"b85276c21bc7686e7d9b00ba5123aa73b5013a19",class:"onto-license-alert onto-btn",onClick:(0,n.navigateTo)("license")},(0,r.h)("span",{key:"7e3d93a7afe21e6b2a4b7706205c5aac60f3fde2",class:"icon-warning"}),(0,r.h)("translate-label",{key:"42f0bfeefdf7d758f5d2ad3f473f1b24f777f1dc",labelKey:"license_alert.label"})))}};u.style=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .icon-warning{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}";const p={[n.OperationGroup.BACKUP]:"ri-archive-line",[n.OperationGroup.QUERY]:"ri-arrow-left-right-line",[n.OperationGroup.CLUSTER]:"ri-organization-chart",[n.OperationGroup.IMPORT]:"icon-import"},h={[n.OperationStatus.WARNING]:"status-warning",[n.OperationStatus.INFORMATION]:"status-information",[n.OperationStatus.CRITICAL]:"status-critical"},g={[n.OperationStatus.WARNING]:"onto-btn-fade-warning",[n.OperationStatus.CRITICAL]:"onto-btn-fade-danger"},b=class{constructor(e){(0,r.r)(this,e),this.isOpen=!1,this.toggleDropdown=e=>{e.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=n.MapperProvider.get(n.OperationGroupSummaryListMapper).mapToModel(this.activeOperations.toOperationsGroupSummary()),(0,r.h)("section",{key:"095aef34c3a9ba5b5bf39e581946b36f5610df9d",class:"operations-statuses"},(0,r.h)("button",{key:"e7cb1898eb6bfd222ae51c895e8c72078940da6e",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=g[this.activeOperations.status])&&void 0!==e?e:""}`,onClick:this.toggleDropdown},this.operationGroups.getItems().map(e=>(0,r.h)("section",{key:e.id,class:"operation-status-header"},(0,r.h)("i",{class:`${p[e.group]} ${h[e.status]}`}),e.totalOperations?(0,r.h)("sup",{class:"running-operation-count tag-info"},e.totalOperations):"")),(0,r.h)("i",{key:"247f4f98e3d91d851e978d73413c5d00101f2d0b",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen&&(0,r.h)("ul",{key:"8121c8133a185d2271526d4cca11ee318bc06b99",class:"operations-dropdown"},(0,r.h)("section",{key:"3d53bcbbef30e807e4b139db673d32868facd82b",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>(0,r.h)("li",{key:e.id},(0,r.h)("a",{class:`operation-status-content onto-btn no-underline ${h[e.status]}`,target:"_blank",onClick:(0,n.navigateTo)(e.href)},(0,r.h)("i",{class:p[e.group]}),(0,r.h)("span",{class:"operation-status-label"},(0,r.h)("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),(0,r.h)("span",{class:"operation-number"},e.count?(0,r.h)("span",{class:"operation-status-running-operation-count"},e.count):"")))))))}get el(){return(0,r.g)(this)}};b.style=".operations-statuses{position:relative}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;padding:0.4rem 1rem;font-size:1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle:hover{background-color:#d4d4d4;border-color:#d4d4d4}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus{outline:none}.operations-statuses .operations-statuses-dropdown-toggle.open{background-color:#bbb !important;border-color:#bbb !important}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{color:white;padding:1px 2px;line-height:1;align-self:center;top:-1em;font-size:60%}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;border:none;background-color:var(--gw-primary-base, #9e2b0a);border-radius:0;list-style:none;padding:0;-moz-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;-webkit-transition:all 150ms ease-out;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;background-color:#bbb;margin:0}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em;background-color:#EBEBEB;border-color:#EBEBEB}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content i{width:8.33%}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-number .operation-status-running-operation-count{display:block;width:100%;color:white;border-radius:2px;padding:3px 2px 2px;text-align:center;font-size:75%;background-color:var(--gw-info-dark, #004177) !important}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content:hover{text-decoration:none;background-color:#d4d4d4;border-color:#d4d4d4}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .status-information{color:var(--gw-message-info-color, #004177) !important}.operations-statuses .status-warning{color:var(--gw-message-warning-color, #7e2308) !important}.operations-statuses .status-critical{color:var(--gw-message-error-color, #a31425) !important}.operations-statuses i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);transition:all 0.2s ease-in}.operations-statuses .icon-import{font-size:21px}";const m=class{constructor(e){(0,r.r)(this,e),this.subscriptions=new n.SubscriptionList,this.eventService=n.ServiceProvider.get(n.EventService),this.resourceSearchStorageService=n.ServiceProvider.get(n.ResourceSearchStorageService),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=n.UriUtil.RESOURCE_URL}handleClick(e){var t;this.isOpen&&((null===(t=this.rdfSearchRef)||void 0===t?void 0:t.contains(e.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.focusSearchInput()}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return(0,r.h)("section",{key:"fb63b11874e6049ea060d7f8bf2b9ce00a2bc78c",ref:e=>this.rdfSearchRef=e,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},(0,r.h)("section",{key:"1c7f6a7e9951011e1c62e2f24c912c8c2813c404",class:"search-area "+(this.isOpen?"visible":"invisible")},(0,r.h)("i",{key:"e6f8e37067378b674c1ff4ad8ac105cd472972a5",onClick:this.setIsOpen(!1),"tooltip-content":l.T.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":a.O.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"ri-close-line close-btn"}),(0,r.h)("onto-search-resource-input",{key:"a2b41801185618be5658c27bce1e4a05a3820dc7",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":(0,r.h)("onto-search-icon",{onClick:this.setIsOpen(!0)}))}setIsOpen(e){return()=>{this.isOpen=e,this.isOpen&&this.loadSelectedViewFromStorage()}}createButtonConfig(){return new n.SearchButtonConfig({isRadio:!0,buttons:[this.createSearchButton(s.R.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=n.UriUtil.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(s.R.TABLE_VIEW)},!0),this.createSearchButton(s.R.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=n.UriUtil.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(s.R.VISUAL_VIEW)},!1)]})}createSearchButton(e,t,o,r){return new n.SearchButton({label:l.T.translate(t),id:e,callback:o,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(s.R.SUGGESTION_SELECTED_EVENT,e=>{if(e.getContext()===this.RDF_CONTEXT){const t=e.getSuggestion().getOverrideToVisual()?n.UriUtil.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;(0,n.openInNewTab)(n.UriUtil.createAutocompleteRedirect(t,e.getSuggestion().getValue()))}}))}onKeyDown(){return e=>{"Escape"===e.key&&(this.isOpen=!1)}}focusSearchInput(){this.isOpen&&c.H.focusElement(`#${this.RDF_CONTEXT}`)}loadSelectedViewFromStorage(){const e=this.resourceSearchStorageService.getSelectedView();if(e){const t=this.buttonConfig.getButtons().find(t=>t.id===e);t&&(this.buttonConfig=this.buttonConfig.selectButton(t))}}};m.style=".onto-rdf-search{display:flex;align-items:center;font-size:1.4em;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:300;max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;-webkit-transition:top 0.3s ease-in, opacity 0.5s ease;transition:top 0.3s ease-in, opacity 0.5s ease;box-shadow:0 3px 6px rgba(0, 0, 0, 0.1);border-radius:0;margin-bottom:1em;padding:1.6rem;border:1px solid rgba(0, 0, 0, 0.125);color:var(--gw-dialog-color);background-color:var(--gw-dialog-background)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;font-size:1.5rem}.onto-rdf-search i{cursor:pointer;color:var(--gw-primary-base);transition:all 0.15s ease-out}.onto-rdf-search i.ri-search-line,.onto-rdf-search i.close-btn{padding:0.5rem 0.8rem}.onto-rdf-search i:hover{transform:scale(1.2)}";const v=({repository:e,defaultToggleButtonName:t,location:o})=>{var s;const n=e?"repository-selection active-repository":"repository-selection no-selected-repository";return(0,r.h)("div",{class:n,"data-test":"repository-selection"},e&&(0,r.h)("i",{class:"button-icon icon-repo-"+e.type})," ",null!==(s=null==e?void 0:e.id)&&void 0!==s?s:t,o)},f=class{constructor(e){(0,r.r)(this,e),this.repositoryContextService=n.ServiceProvider.get(n.RepositoryContextService),this.subscriptions=[]}onItemsChanged(e){(null==e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}connectedCallback(){var e;this.subscriptions.push(...this.subscribeToTranslationChanged()),(null===(e=this.items)||void 0===e?void 0:e.length)?this.dropdownItems=this.attachTooltipsToItems(this.items):this.dropdownItems=[]}disconnectedCallback(){this.subscriptions.forEach(e=>e())}render(){const e=(0,r.h)(v,{key:"bf5de32d81929056bbdf4c16a228cbe3dd7d2cdf",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return(0,r.h)(r.a,{key:"ad2c4f2fee7b98d840bf0881ec571d7279dcdea5"},(0,r.h)("onto-dropdown",Object.assign({key:"442ac676b56db755c45caf45fd0216ed050334ba",class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:e,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownTooltipTrigger:"mouseenter focus",dropdownAlignment:i.D.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",items:this.dropdownItems,"auto-close":!0})))}attachTooltipsToItems(e){return e?e.map(e=>e.setTooltip(this.createTooltipFunctionForRepository(e.value))):[]}tooltipAlignment(e){return e?a.O.LEFT:a.O.BOTTOM}onValueChanged(){return e=>this.onRepositoryChanged(e.detail)}createTooltipFunctionForRepository(e){return async()=>{if(!e)return"";const t=await this.repositorySizeInfoFetcher(e);return this.buildRepositoryTooltipHtml(e,t)}}buildRepositoryTooltipHtml(e,t){let o=`\n <div class="repository-tooltip-title">\n <span class="label">${l.T.translate("repository-selector.tooltip.repository")}</span>\n <span class="value">${e.id}</span>\n </div>\n <div class="repository-tooltip-content">\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.location")}:</div>\n <div class="value">${e.location?e.location:l.T.translate("repository-selector.tooltip.local")}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.type")}:</div>\n <div class="value">${l.T.translate("repository-selector.tooltip.types."+(e.type||"unknown"))}</div>\n </div>\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.access")}:</div>\n <div class="value">${l.T.translate(this.canWriteRepo(e)?"repository-selector.tooltip.accesses.read_write":"repository-selector.tooltip.accesses.read")}</div>\n </div>`;return o+=this.buildRepositorySizeInfoHtml(t),o+="</div>",o}buildRepositorySizeInfoHtml(e){if(!e||e.total<0)return"";let t=`\n <div class="repository-tooltip-row total">\n <div class="label">${l.T.translate("repository-selector.tooltip.repository-size.total")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(e.total)}</div>\n </div>`;if(e.explicit>=0&&(t+=`\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.repository-size.explicit")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(e.explicit)}</div>\n </div>`),e.inferred>=0&&(t+=`\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.repository-size.inferred")}:</div>\n <div class="value">${this.totalTripletsFormatter.format(e.inferred)}</div>\n </div>`),e.total>=0){let o="-";e.explicit>0&&(o=this.totalTripletsFormatter.format(e.total/e.explicit)),t+=`\n <div class="repository-tooltip-row">\n <div class="label">${l.T.translate("repository-selector.tooltip.repository-size.expansion_ratio")}:</div>\n <div class="value">${o}</div>\n </div>`}return t}subscribeToTranslationChanged(){return[l.T.onTranslate("repository-selector.btn.toggle",[],e=>{this.defaultToggleButtonName=e}),l.T.onTranslate("repository-selector.btn.no_repositories",[],e=>{this.noRepositoriesButtonMessage=e})]}onRepositoryChanged(e){this.repositoryContextService.updateSelectedRepository(e)}getLocation(){var e;return(null===(e=this.currentRepository)||void 0===e?void 0:e.location)?`@${n.UriUtil.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};f.style=":host{display:block}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button{background-color:var(--gw-button-secondary-background);color:var(--gw-button-secondary-background)}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background);color:var(--gw-button-secondary-hover-color)}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;display:inline-block;vertical-align:middle;text-align:left}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:0.75em}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{font-weight:300;font-size:0.75em;margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.tippy-box[data-theme=light-border]{border-radius:0}.tippy-box[data-theme=light-border].tippy-box[data-placement*=left]>.tippy-arrow:before{border-left-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=left]>.tippy-arrow:after{border-left-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=top]>.tippy-arrow:before{border-top-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=top]>.tippy-arrow:after{border-top-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=right]>.tippy-arrow:before{border-right-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=right]>.tippy-arrow:after{border-right-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=bottom]>.tippy-arrow:before{border-bottom-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=bottom]>.tippy-arrow:after{border-bottom-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border] .tippy-content{padding:0;color:var(--gw-dialog-color);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-title{font-size:1rem;font-weight:400;padding:8px 14px;background-color:var(--gw-dialog-background);border-bottom:var(--gw-dialog-border-color) 1px solid}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-title .value{word-wrap:break-word}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-content{background-color:var(--gw-dialog-background);padding:1.5rem 0.5rem;display:flex;flex-direction:column;gap:0.8em;font-weight:400;font-size:0.875rem}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row{display:flex;flex-direction:row;justify-content:space-between}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row.total{margin-top:1.2em}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row .value{margin-left:0.6em}";const y=class{constructor(e){(0,r.r)(this,e),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new n.SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return(0,r.h)("i",{key:"33ac85ef454f5a8de8e24217d92950219df84f7a","tooltip-content":this.tooltipLabel,"tooltip-placement":a.O.BOTTOM,class:"onto-search-icon ri-search-line"})}onTooltipChange(){this.subscriptions.add(l.T.onTranslate(this.tooltipKey,[],e=>this.tooltipLabel=e))}};y.style=".onto-search-icon{cursor:pointer;color:var(--gw-primary-base, #9e2b0a);transition:all 0.15s ease-out;font-size:1.6rem}.onto-search-icon.ri-search-line{padding:0.5rem 0.8rem}.onto-search-icon:hover{transform:scale(1.2)}";const w=class{constructor(e){(0,r.r)(this,e),this.autocompleteService=n.ServiceProvider.get(n.AutocompleteService),this.autocompleteContextService=n.ServiceProvider.get(n.AutocompleteContextService),this.autocompleteStorageService=n.ServiceProvider.get(n.AutocompleteStorageService),this.resourceSearchStorageService=n.ServiceProvider.get(n.ResourceSearchStorageService),this.toastrService=n.ServiceProvider.get(n.OntoToastrService),this.eventService=n.ServiceProvider.get(n.EventService),this.namespaceContextService=n.ServiceProvider.get(n.NamespacesContextService),this.subscriptions=new n.SubscriptionList,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=e=>{const t=e.target;t.value?(this.setInputValue(t.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.onKeyDown=e=>{switch(e.key){case"Enter":this.onEnter(e);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowDown":this.onArrowDown(e)}}}onVisibilityChange(e){var t;e?null===(t=this.searchResult)||void 0===t||t.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,t,o;return(0,r.h)("section",{key:"c038af36fa4270f35dab06147536206eab600ce5",class:"search-resources-input"},(0,r.h)("div",{key:"d9b3044c17de9765bd3cbc724ab76bb13e823136",class:"input-row"},(0,r.h)("span",{key:"297d9e5f94d414f227349b79f26f277e3c246c39",class:"input-wrapper"},(0,r.h)("input",{key:"65db17686344b92e8fb59cba15e48538da26c07e",value:this.inputValue,id:this.context,type:"text",autocomplete:"off",placeholder:`${l.T.translate("rdf_search.labels.search")}...`,ref:e=>this.inputRef=e,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(e=this.inputValue)||void 0===e?void 0:e.length)?(0,r.h)("i",{onClick:this.clearInput,"tooltip-content":l.T.translate("rdf_search.tooltips.clear"),"tooltip-placement":a.O.BOTTOM,class:"ri-close-line clear-input"}):""),null===(t=this.buttonConfig)||void 0===t?void 0:t.getButtons().getItems().map(e=>(0,r.h)("button",{key:e.label,onClick:this.handleButtonClick(e),class:e.selected?"selected":""},e.label))),(0,r.h)("span",{key:"cfb1aa194945352f33b786eb7bf2bae98c6e9ea2",class:"hint"},l.T.translate("rdf_search.labels.hint")),(0,r.h)("section",{key:"e17c4e528f8c05ed983df81e2c364356170dac12",class:"autocomplete-results-wrapper","data-test":"onto-autocomplete-results"},null===(o=this.searchResult)||void 0===o?void 0:o.getSuggestions().getItems().map(e=>(0,r.h)("p",{key:e.getId(),onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}handleButtonClick(e){return()=>this.buttonConfig=this.buttonConfig.selectButton(e)}loadAutocompleteResults(){var e;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(e=>{this.onResultsReceived(e)}):null===(e=this.searchResult)||void 0===e||e.clearSuggestions()}hoverSuggestion(e){return()=>this.searchResult=this.searchResult.hoverSuggestion(e)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(e=>{this.isAutocompleteEnabled=null!=e?e:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const e=l.T.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: 500">${e}</a>`,{onClick:(0,n.navigateTo)("autocomplete"),removeOnClick:!0})}}onSuggestionClick(e){return t=>{e.setOverrideToVisual(t.ctrlKey||t.metaKey),this.searchRdfResource(e)}}searchRdfResource(e){e.getType()===n.SuggestionType.PREFIX?this.expandPrefix(e):(this.notifyRdfResourceSelected(e),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(e))}notifyRdfResourceSelected(e){var t;this.searchResult=null===(t=this.searchResult)||void 0===t?void 0:t.selectSuggestion(e),this.eventService.emit({NAME:s.R.SUGGESTION_SELECTED_EVENT,payload:new n.SuggestionSelectedPayload(e,this.context)})}expandPrefix(e){this.setInputValue(this.namespaces.getByPrefix(e.getValue())),this.inputRef.focus()}setInputValue(e){this.inputValue=e,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(e=>{this.namespaces=e}))}onEnter(e){var t;let o=null===(t=this.searchResult)||void 0===t?void 0:t.getHoveredSuggestion();o||(o=new n.Suggestion({value:n.UriUtil.removeAngleBrackets(this.inputValue),type:n.SuggestionType.URI})),o.setOverrideToVisual(e.ctrlKey||e.metaKey),this.validateAndSearch(o)}onArrowUp(e){this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(e)}onArrowDown(e){this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(e)}displaySuggestion(e){e.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(e){return e.getType()===n.SuggestionType.PREFIX?this.namespaces.getByPrefix(e.getValue()):e.getValue()}scrollToSuggestionBySelector(e,t){c.H.waitForElement(e).then(()=>{c.H.scrollElementIntoView(e,t)})}validateAndSearch(e){if(!this.skipValidation){if(!e.getValue())return void this.toastrService.error(l.T.translate("rdf_search.toasts.empty_input"));if(!n.UriUtil.isValidUri(this.getSuggestionValue(e)))return void this.toastrService.error(l.T.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(e)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(e){const t=null==e?void 0:e.getByValue(this.resourceSearchStorageService.getLastSelectedValue());t&&this.preserveSearch?(e.hoverSuggestion(t),this.searchResult=e.selectSuggestion(t),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=e.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};w.style=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row i.ri-close-line{position:absolute;right:10px;top:7px;z-index:10;font-size:1.6rem}.search-resources-input .input-row button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;transition:all 0.15s ease-out;user-select:none;border:1px solid transparent;padding:0.5rem 1rem;font-size:1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background)}.search-resources-input .input-row button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color)}.search-resources-input .input-row button:focus{outline:none}.search-resources-input .input-row button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;line-height:1.5;color:var(--gw-autocomplete-option-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-secondary-base, #003663)}.search-resources-input .autocomplete-results-wrapper p.selected{background-color:var(--autocomplete-background-selected, #02A99A)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){background-color:var(--autocomplete-background, rgba(2, 169, 143, 0.3019607843))}";const S=class{constructor(e){(0,r.r)(this,e)}render(){return(0,r.h)("section",{key:"010f4db017da2ab91bc79de27658d255de92d5f4",class:"onto-user-login"},(0,r.h)("button",{key:"f3e4019d86f6950a57186bb73dbfd60d1bc03362",onClick:(0,n.navigateTo)("login")},(0,r.h)("i",{key:"42a5ef90e9b768c8d283cdd8c3e6fb2160c33f16",class:"icon-arrow-right"}),(0,r.h)("translate-label",{key:"9f61abfd1f3be13bca10d1d6db4d774accbb2f85",class:"user-login-label",labelKey:"user_menu.login"})))}};S.style=":root{--onto-user-login-color:var(--gw-secondary-base, var(--base-text-color))}.onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--onto-user-login-color);flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{background-color:#d4d4d4;border-color:#d4d4d4}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus{outline:none}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}";const k=class{constructor(e){(0,r.r)(this,e),this.logout=()=>{n.ServiceProvider.get(n.AuthenticationService).logout()},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){var e;return(0,r.h)("section",{key:"294141ded29aca49a790c51e791262d4626b80ab",class:"onto-user-menu"},(0,r.h)("div",{key:"1e7c1a6ea8e9766840b5c72c7ceecdfaf838c865",class:"dropdown-toggle-wrapper",onClick:this.toggleDropdown},(0,r.h)("button",{key:"413bb997a92cb55ef56ee7ae45463e10c176540c",class:this.isOpen?"open":""},(0,r.h)("i",{key:"2c5806a5a49429b709753a9a009146b578b191ed",class:"ri-user-line ri-lg"}),(0,r.h)("span",{key:"1a59a9218b7a680c47d77c6e016659721d17aea4",class:"username"},this.user.username),(0,r.h)("i",{key:"dea9929dc6bd6280336fe3a7cc1d062d4c9f54c3",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":"")})),this.isOpen?(0,r.h)("section",{class:"onto-user-menu-dropdown"},(0,r.h)("translate-label",{onClick:(0,n.navigateTo)("settings"),labelKey:"user_menu.my_settings"}),(null===(e=this.securityConfig)||void 0===e?void 0:e.hasExternalAuthUser)?"":(0,r.h)("translate-label",{onClick:this.logout,labelKey:"user_menu.logout"})):""))}get hostElement(){return(0,r.g)(this)}};k.style=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu button{display:flex;flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:var(--gw-button-secondary-background);color:var(--gw-button-secondary-color)}.onto-user-menu button:hover{background-color:var(--gw-button-secondary-hover-background);color:var(--gw-button-secondary-hover-color)}.onto-user-menu button:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button:focus{outline:none}.onto-user-menu button.open{color:white;background-color:var(--gw-primary-base);border-color:var(--gw-primary-base)}.onto-user-menu button.open .ri-user-line{color:var(--icon-on-primary-color, rgba(255, 255, 255, 0.8))}.onto-user-menu button.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button .username{padding:0 5px}.onto-user-menu button i{color:var(--gw-primary-base);transition:0.15s ease-out}.onto-user-menu button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;font-size:1rem;width:100%;color:var(--gw-primary-contrast-color);background-color:var(--gw-primary-base)}.onto-user-menu .onto-user-menu-dropdown translate-label{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font-weight:400}.onto-user-menu .onto-user-menu-dropdown translate-label:hover,.onto-user-menu .onto-user-menu-dropdown translate-label:focus{background-color:rgba(0, 0, 0, 0.1)}"},87050:(e,t,o)=>{o.d(t,{D:()=>r,R:()=>s});class r{constructor(){this._dropdownTooltipTrigger="manual"}get name(){return this._name}setName(e){return this._name=e,this}get nameLabelKey(){return this._nameLabelKey}setNameLabelKey(e){return this._nameLabelKey=e,this}get tooltip(){return this._tooltip}setTooltip(e){return this._tooltip=e,this}get tooltipLabelKey(){return this._tooltipLabelKey}setTooltipLabelKey(e){return this._tooltipLabelKey=e,this}get iconClass(){return this._iconClass}setIconClass(e){return this._iconClass=e,this}get value(){return this._value}setValue(e){return this._value=e,this}get dropdownTooltipTrigger(){return this._dropdownTooltipTrigger}setDropdownTooltipTrigger(e){return this._dropdownTooltipTrigger=e,this}get cssClass(){return this._cssClass}setCssClass(e){return this._cssClass=e,this}get guideSelector(){return this._guideSelector}setGuideSelector(e){return this._guideSelector=e,this}}var s;!function(e){e.SUGGESTION_SELECTED_EVENT="suggestion-selected-event",e.TABLE_VIEW="table",e.VISUAL_VIEW="visual",e.RDF_SEARCH_ICON_CLICKED="rdfSearchIconClicked"}(s||(s={}))}};
2
- //# sourceMappingURL=82206.cebb3d642554cf3e0113.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"82206.cebb3d642554cf3e0113.bundle.js","mappings":"qIAAA,IAAIA,E,iBACJ,SAAWA,GACPA,EAA6B,MAAI,QACjCA,EAA4B,KAAI,MACnC,CAHD,CAGGA,IAA0BA,EAAwB,CAAC,G,kBCJtD,IAAIC,E,iBACJ,SAAWA,GACPA,EAA2B,KAAI,OAC/BA,EAA4B,MAAI,QAChCA,EAA0B,IAAI,MAC9BA,EAA6B,OAAI,SACjCA,EAA2B,KAAI,MAClC,CAND,CAMGA,IAAyBA,EAAuB,CAAC,G,kECLpD,SAASC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,EACfO,IACX,EAGJ,IAAIyN,GACJ,SAAWA,GACPA,EAAmD,0BAAI,4BACvDA,EAAoC,WAAI,QACxCA,EAAqC,YAAI,SACzCA,EAAiD,wBAAI,sBACxD,CALD,CAKGA,IAA4BA,EAA0B,CAAC,G","sources":["webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-alignment-DghTf3pJ.js","webpack://root-config/./packages/shared-components/dist/esm/onto-tooltip-placement-D_J2-9CG.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-nljGIprK.js","webpack://root-config/./packages/shared-components/dist/esm/html-util-C8DO915D.js","webpack://root-config/./packages/shared-components/dist/esm/onto-language-selector_9.entry.js","webpack://root-config/./packages/shared-components/dist/esm/resource-search-constants-CapzAxJp.js"],"sourcesContent":["var DropdownItemAlignment;\n(function (DropdownItemAlignment) {\n DropdownItemAlignment[\"RIGHT\"] = \"right\";\n DropdownItemAlignment[\"LEFT\"] = \"left\";\n})(DropdownItemAlignment || (DropdownItemAlignment = {}));\n\nexport { DropdownItemAlignment as D };\n","var OntoTooltipPlacement;\n(function (OntoTooltipPlacement) {\n OntoTooltipPlacement[\"LEFT\"] = \"left\";\n OntoTooltipPlacement[\"RIGHT\"] = \"right\";\n OntoTooltipPlacement[\"TOP\"] = \"top\";\n OntoTooltipPlacement[\"BOTTOM\"] = \"bottom\";\n OntoTooltipPlacement[\"AUTO\"] = \"auto\";\n})(OntoTooltipPlacement || (OntoTooltipPlacement = {}));\n\nexport { OntoTooltipPlacement as O };\n","import { Loggers, ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\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\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 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 { LoggerProvider as L, TranslationService as T, sanitizeHTML as s };\n","const INTERACTIVE_ELEMENTS_SELECTOR = 'button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])';\nclass HtmlUtil {\n /**\n * Setter for the document body overflow property.\n *\n * @param newOverflow - the new overflow value.\n *\n * @return the old overflow value.\n */\n static setDocumentBodyOverflow(newOverflow) {\n const oldOverflow = document.body.style.overflow;\n document.body.style.overflow = newOverflow;\n return oldOverflow;\n }\n /**\n * Hides the document body overflow.\n *\n * @return the value of overflow before set it to hidden.\n */\n static hideDocumentBodyOverflow() {\n return HtmlUtil.setDocumentBodyOverflow('hidden');\n }\n /**\n * Focuses the next element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusNextElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = Array.from(parentElement.querySelectorAll(activeElementSelector));\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const nextIndex = (currentIndex + 1) % focusableElements.length;\n const nextActiveElement = focusableElements[nextIndex];\n if (nextActiveElement) {\n nextActiveElement.focus();\n }\n }\n }\n /**\n * Focuses the previous element within a specified parent element based on the <code>activeElementSelector</code>, that selects all elements to be focused.\n *\n * @param parentElement - The parent element containing the focusable elements.\n * @param activeElementSelector - The CSS selector for identifying focusable elements.\n */\n static focusPreviousElement(parentElement, activeElementSelector = INTERACTIVE_ELEMENTS_SELECTOR) {\n const focusableElements = Array.from(parentElement.querySelectorAll(activeElementSelector));\n if (focusableElements.length > 0) {\n const currentIndex = focusableElements.indexOf(document.activeElement);\n const previousIndex = (currentIndex - 1 + focusableElements.length) % focusableElements.length;\n const previousActiveElement = focusableElements[previousIndex];\n if (previousActiveElement) {\n previousActiveElement.focus();\n }\n }\n }\n static preventLeavingDialog(hostElement, ev) {\n if (ev.key === 'Tab') {\n ev.preventDefault();\n if (ev.shiftKey) {\n HtmlUtil.focusPreviousElement(hostElement);\n }\n else {\n HtmlUtil.focusNextElement(hostElement);\n }\n }\n }\n /**\n * Focuses an element in the document based on the provided CSS selector.\n *\n * @param selector - A CSS selector string used to identify the element to focus.\n * This should be a valid CSS selector that uniquely identifies the target element.\n */\n static focusElement(selector) {\n const element = document.querySelector(selector);\n element === null || element === void 0 ? void 0 : element.focus();\n }\n /**\n * Scrolls an element into the visible area of its scrollable container.\n *\n * @param elementSelector - A CSS selector string used to identify the element to scroll into view.\n * This should be a valid CSS selector that uniquely identifies the target element.\n * @param options the scroll into view options.\n */\n static scrollElementIntoView(elementSelector, options = { block: 'nearest' }) {\n const element = document.querySelector(elementSelector);\n if (!element) {\n return;\n }\n element.scrollIntoView(options);\n }\n /**\n * Waits for an element to appear in the DOM by observing DOM mutations.\n * This function creates a MutationObserver that watches for changes in the document body\n * and resolves with the element once it becomes available.\n *\n * @param selector - A CSS selector string used to identify the element to wait for.\n * This should be a valid CSS selector that uniquely identifies the target element.\n *\n * @returns A Promise that resolves with the found HTMLElement when it appears in the DOM,\n * or rejects if an error occurs during the observation process.\n */\n static waitForElement(selector) {\n return new Promise((resolve, reject) => {\n const observer = new MutationObserver(() => {\n try {\n const element = document.querySelector(selector);\n if (element) {\n observer.disconnect();\n resolve(element);\n }\n }\n catch (error) {\n observer.disconnect();\n reject(error);\n }\n });\n observer.observe(document.body, { subtree: true, childList: true, attributes: true });\n });\n }\n}\n\nexport { HtmlUtil as H };\n","import { r as registerInstance, h, a as Host, g as getElement } from './index-I_gcXFWK.js';\nimport { D as DropdownItem, R as ResourceSearchConstants } from './resource-search-constants-CapzAxJp.js';\nimport { ServiceProvider, LanguageService, LanguageContextService, navigateTo, MapperProvider, OperationGroupSummaryListMapper, OperationStatus, OperationGroup, SubscriptionList, EventService, ResourceSearchStorageService, UriUtil, SearchButtonConfig, SearchButton, openInNewTab, RepositoryContextService, AutocompleteService, AutocompleteContextService, AutocompleteStorageService, OntoToastrService, NamespacesContextService, SuggestionType, SuggestionSelectedPayload, Suggestion, AuthenticationService } from '@ontotext/workbench-api';\nimport { D as DropdownItemAlignment } from './dropdown-item-alignment-DghTf3pJ.js';\nimport { O as OntoTooltipPlacement } from './onto-tooltip-placement-D_J2-9CG.js';\nimport { T as TranslationService } from './translation.service-nljGIprK.js';\nimport { H as HtmlUtil } from './html-util-C8DO915D.js';\n\nconst ontoLanguageSelectorCss = \":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}onto-language-selector .onto-dropdown.closed .onto-dropdown-button{background-color:transparent}onto-language-selector .onto-dropdown.closed .onto-dropdown-button .icon-translation{font-size:1.5em}onto-language-selector .onto-dropdown.closed .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background)}\";\n\nconst OntoLanguageSelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.languageService = ServiceProvider.get(LanguageService);\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.items = [];\n /**\n * Specifies the dropdown items' alignment. If not provided, the items and the dropdown button will be aligned to the left.\n *\n */\n this.dropdownAlignment = DropdownItemAlignment.LEFT;\n }\n connectedCallback() {\n this.onLanguageChangeSubscription = this.languageContextService.onSelectedLanguageChanged((newLanguage) => this.changeLanguage(newLanguage));\n this.items = this.getLanguageDropdownOptions();\n }\n disconnectedCallback() {\n if (this.onLanguageChangeSubscription) {\n this.onLanguageChangeSubscription();\n }\n }\n render() {\n var _a, _b;\n return (h(Host, { key: 'faabdc9c474b053c32f4ae2c45cd79bd6166a255' }, h(\"onto-dropdown\", { key: 'e15d2c8478c85c3a37c99d22f91602ea17730e67', class: 'onto-language-selector', onValueChanged: this.valueChangeHandler(), dropdownButtonNameLabelKey: !this.currentLanguage ? 'language_selector.toggle_menu.label' : undefined, dropdownButtonName: (_a = this.currentLanguage) !== null && _a !== void 0 ? _a : undefined, dropdownButtonTooltipLabelKey: this.currentLanguage ? 'language_selector.toggle_menu.tooltip' : 'language_selector.toggle_menu.label', dropdownAlignment: (_b = this.dropdownAlignment) !== null && _b !== void 0 ? _b : DropdownItemAlignment.RIGHT, dropdownTooltipTrigger: 'mouseenter focus', iconClass: 'icon-translation', items: this.items, \"auto-close\": true })));\n }\n valueChangeHandler() {\n return (newLanguage) => this.onSelectedLanguageChanged(newLanguage);\n }\n changeLanguage(newLanguage) {\n let selectedLanguage = newLanguage;\n if (!selectedLanguage) {\n selectedLanguage = this.languageService.getDefaultLanguage();\n }\n this.currentLanguage = selectedLanguage;\n this.items = this.getLanguageDropdownOptions();\n }\n onSelectedLanguageChanged(newLanguageEvent) {\n this.languageContextService.updateSelectedLanguage(newLanguageEvent.detail);\n }\n getLanguageDropdownOptions() {\n return this.languageService.getSupportedLanguages().map((locale) => {\n const iconClass = this.currentLanguage === locale ? 'icon-tick' : '';\n return new DropdownItem()\n .setNameLabelKey(`language_selector.language.${locale}.label`)\n .setTooltipLabelKey(`language_selector.language.${locale}.tooltip.` + (this.currentLanguage === locale ? 'selected' : 'not_selected'))\n .setIconClass(iconClass)\n .setCssClass(locale)\n .setValue(locale)\n .setDropdownTooltipTrigger('mouseenter focus');\n });\n }\n};\nOntoLanguageSelector.style = ontoLanguageSelectorCss;\n\nconst ontoLicenseAlertCss = \":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .icon-warning{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}\";\n\nconst OntoLicenseAlert = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n var _a;\n return (h(Host, { key: '0067db786bd82713daab8282753d3f93aec0ec38', \"tooltip-content\": (_a = this.license) === null || _a === void 0 ? void 0 : _a.message, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-license-alert' }, h(\"button\", { key: 'b85276c21bc7686e7d9b00ba5123aa73b5013a19', class: \"onto-license-alert onto-btn\", onClick: navigateTo('license') }, h(\"span\", { key: '7e3d93a7afe21e6b2a4b7706205c5aac60f3fde2', class: \"icon-warning\" }), h(\"translate-label\", { key: '42f0bfeefdf7d758f5d2ad3f473f1b24f777f1dc', labelKey: 'license_alert.label' }))));\n }\n};\nOntoLicenseAlert.style = ontoLicenseAlertCss;\n\nconst ontoOperationsNotificationCss = \".operations-statuses{position:relative}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;padding:0.4rem 1rem;font-size:1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle:hover{background-color:#d4d4d4;border-color:#d4d4d4}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus{outline:none}.operations-statuses .operations-statuses-dropdown-toggle.open{background-color:#bbb !important;border-color:#bbb !important}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{color:white;padding:1px 2px;line-height:1;align-self:center;top:-1em;font-size:60%}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;border:none;background-color:var(--gw-primary-base, #9e2b0a);border-radius:0;list-style:none;padding:0;-moz-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;-webkit-transition:all 150ms ease-out;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;background-color:#bbb;margin:0}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em;background-color:#EBEBEB;border-color:#EBEBEB}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content i{width:8.33%}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-number .operation-status-running-operation-count{display:block;width:100%;color:white;border-radius:2px;padding:3px 2px 2px;text-align:center;font-size:75%;background-color:var(--gw-info-dark, #004177) !important}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content:hover{text-decoration:none;background-color:#d4d4d4;border-color:#d4d4d4}.operations-statuses .operations-dropdown .operations-statuses-content .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .status-information{color:var(--gw-message-info-color, #004177) !important}.operations-statuses .status-warning{color:var(--gw-message-warning-color, #7e2308) !important}.operations-statuses .status-critical{color:var(--gw-message-error-color, #a31425) !important}.operations-statuses i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);transition:all 0.2s ease-in}.operations-statuses .icon-import{font-size:21px}\";\n\nconst operationGroupToIcon = {\n [OperationGroup.BACKUP]: 'ri-archive-line',\n [OperationGroup.QUERY]: 'ri-arrow-left-right-line',\n [OperationGroup.CLUSTER]: 'ri-organization-chart',\n // TODO: change import icon to font awesome one, when available\n [OperationGroup.IMPORT]: 'icon-import'\n};\nconst operationStatusToWarningClass = {\n [OperationStatus.WARNING]: 'status-warning',\n [OperationStatus.INFORMATION]: 'status-information',\n [OperationStatus.CRITICAL]: 'status-critical'\n};\nconst operationStatusToFadeClass = {\n [OperationStatus.WARNING]: 'onto-btn-fade-warning',\n [OperationStatus.CRITICAL]: 'onto-btn-fade-danger'\n};\nconst OntoOperationsNotification = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** Whether the dropdown menu is open or closed */\n this.isOpen = false;\n this.toggleDropdown = (event) => {\n event.stopPropagation();\n this.isOpen = !this.isOpen;\n };\n }\n handleOutsideClick() {\n if (this.isOpen) {\n this.isOpen = false;\n }\n }\n render() {\n var _a;\n this.operationGroups = MapperProvider\n .get(OperationGroupSummaryListMapper)\n .mapToModel(this.activeOperations.toOperationsGroupSummary());\n return (h(\"section\", { key: '095aef34c3a9ba5b5bf39e581946b36f5610df9d', class: \"operations-statuses\" }, h(\"button\", { key: 'e7cb1898eb6bfd222ae51c895e8c72078940da6e', class: `operations-statuses-dropdown-toggle ${this.isOpen ? 'open' : 'closed'} ${(_a = operationStatusToFadeClass[this.activeOperations.status]) !== null && _a !== void 0 ? _a : ''}`, onClick: this.toggleDropdown }, this.operationGroups.getItems().map((groupSummary) => (h(\"section\", { key: groupSummary.id, class: \"operation-status-header\" }, h(\"i\", { class: `${operationGroupToIcon[groupSummary.group]} ${operationStatusToWarningClass[groupSummary.status]}` }), groupSummary.totalOperations\n ? h(\"sup\", { class: \"running-operation-count tag-info\" }, groupSummary.totalOperations)\n : ''))), h(\"i\", { key: '247f4f98e3d91d851e978d73413c5d00101f2d0b', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}` })), this.isOpen &&\n h(\"ul\", { key: '8121c8133a185d2271526d4cca11ee318bc06b99', class: \"operations-dropdown\" }, h(\"section\", { key: '3d53bcbbef30e807e4b139db673d32868facd82b', class: \"operations-statuses-content\" }, this.activeOperations.allRunningOperations.getItems().map((operation) => (h(\"li\", { key: operation.id }, h(\"a\", { class: `operation-status-content onto-btn no-underline ${operationStatusToWarningClass[operation.status]}`, target: \"_blank\", onClick: navigateTo(operation.href) }, h(\"i\", { class: operationGroupToIcon[operation.group] }), h(\"span\", { class: \"operation-status-label\" }, h(\"translate-label\", { labelKey: `operations_notification.links.${operation.labelKey}` })), h(\"span\", { class: \"operation-number\" }, operation.count\n ? h(\"span\", { class: \"operation-status-running-operation-count\" }, operation.count)\n : '')))))))));\n }\n get el() { return getElement(this); }\n};\nOntoOperationsNotification.style = ontoOperationsNotificationCss;\n\nconst ontoRdfSearchCss = \".onto-rdf-search{display:flex;align-items:center;font-size:1.4em;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:300;max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;-webkit-transition:top 0.3s ease-in, opacity 0.5s ease;transition:top 0.3s ease-in, opacity 0.5s ease;box-shadow:0 3px 6px rgba(0, 0, 0, 0.1);border-radius:0;margin-bottom:1em;padding:1.6rem;border:1px solid rgba(0, 0, 0, 0.125);color:var(--gw-dialog-color);background-color:var(--gw-dialog-background)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;font-size:1.5rem}.onto-rdf-search i{cursor:pointer;color:var(--gw-primary-base);transition:all 0.15s ease-out}.onto-rdf-search i.ri-search-line,.onto-rdf-search i.close-btn{padding:0.5rem 0.8rem}.onto-rdf-search i:hover{transform:scale(1.2)}\";\n\nconst OntoRdfSearch = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.subscriptions = new SubscriptionList();\n this.eventService = ServiceProvider.get(EventService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.RDF_CONTEXT = 'rdfSearchContext';\n this.isOpen = false;\n this.redirectUrl = UriUtil.RESOURCE_URL;\n }\n /**\n * Handles click events on the window.\n * Closes the search area if it's open and the click is outside the search area.\n * @param event - The MouseEvent object.\n */\n handleClick(event) {\n var _a;\n if (!this.isOpen) {\n return;\n }\n if (!((_a = this.rdfSearchRef) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {\n this.isOpen = false;\n }\n }\n connectedCallback() {\n this.onSuggestionSelected();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n componentDidRender() {\n this.focusSearchInput();\n }\n componentDidLoad() {\n this.buttonConfig = this.createButtonConfig();\n }\n render() {\n return (h(\"section\", { key: 'fb63b11874e6049ea060d7f8bf2b9ce00a2bc78c', ref: (ref) => this.rdfSearchRef = ref, class: \"onto-rdf-search\", onKeyDown: this.onKeyDown(), \"data-test\": 'onto-rdf-search-component' }, h(\"section\", { key: '1c7f6a7e9951011e1c62e2f24c912c8c2813c404', class: `search-area ${this.isOpen ? 'visible' : 'invisible'}` }, h(\"i\", { key: 'e6f8e37067378b674c1ff4ad8ac105cd472972a5', onClick: this.setIsOpen(false), \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.close_search_area'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, \"data-test\": 'onto-rdf-resource-search-close-btn', class: \"ri-close-line close-btn\" }), h(\"onto-search-resource-input\", { key: 'a2b41801185618be5658c27bce1e4a05a3820dc7', buttonConfig: this.buttonConfig, preserveSearch: true, isHidden: !this.isOpen, \"data-test\": 'onto-rdf-resource-search-input', context: this.RDF_CONTEXT })), !this.isOpen ? h(\"onto-search-icon\", { onClick: this.setIsOpen(true) }) : ''));\n }\n /**\n * Creates a function to set the open state of the search area.\n * @param isOpen - Boolean indicating whether the search area should be open.\n */\n setIsOpen(isOpen) {\n return () => {\n this.isOpen = isOpen;\n if (this.isOpen) {\n this.loadSelectedViewFromStorage();\n }\n };\n }\n /**\n * Creates the configuration for search buttons.\n * @returns A SearchButtonConfig object with radio buttons for table and visual search.\n */\n createButtonConfig() {\n return new SearchButtonConfig({\n isRadio: true,\n buttons: [\n this.createSearchButton(ResourceSearchConstants.TABLE_VIEW, 'rdf_search.buttons.table', () => {\n this.redirectUrl = UriUtil.RESOURCE_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.TABLE_VIEW);\n }, true),\n this.createSearchButton(ResourceSearchConstants.VISUAL_VIEW, 'rdf_search.buttons.visual', () => {\n this.redirectUrl = UriUtil.GRAPHS_VISUALIZATIONS_URL;\n this.resourceSearchStorageService.setSelectedView(ResourceSearchConstants.VISUAL_VIEW);\n }, false)\n ]\n });\n }\n /**\n * Creates a search button with the given parameters.\n * @param id - The id for the button.\n * @param labelKey - The key for the button's label translation.\n * @param callback - The function to be called when the button is clicked.\n * @param selected - Boolean indicating whether the button should be initially selected.\n * @returns A SearchButton object.\n */\n createSearchButton(id, labelKey, callback, selected) {\n return new SearchButton({\n label: TranslationService.translate(labelKey),\n id,\n callback,\n selected\n });\n }\n onSuggestionSelected() {\n this.subscriptions.add(this.eventService.subscribe(ResourceSearchConstants.SUGGESTION_SELECTED_EVENT, (payload) => {\n if (payload.getContext() === this.RDF_CONTEXT) {\n const redirectUrl = payload.getSuggestion().getOverrideToVisual()\n ? UriUtil.GRAPHS_VISUALIZATIONS_URL\n : this.redirectUrl;\n openInNewTab(UriUtil.createAutocompleteRedirect(redirectUrl, payload.getSuggestion().getValue()));\n }\n }));\n }\n onKeyDown() {\n return (event) => {\n if (event.key === 'Escape') {\n this.isOpen = false;\n }\n };\n }\n focusSearchInput() {\n if (this.isOpen) {\n HtmlUtil.focusElement(`#${this.RDF_CONTEXT}`);\n }\n }\n loadSelectedViewFromStorage() {\n const selectedView = this.resourceSearchStorageService.getSelectedView();\n if (selectedView) {\n const selectedButton = this.buttonConfig.getButtons().find((button) => button.id === selectedView);\n if (selectedButton) {\n this.buttonConfig = this.buttonConfig.selectButton(selectedButton);\n }\n }\n }\n};\nOntoRdfSearch.style = ontoRdfSearchCss;\n\n/**\n *\n * A StencilJS component that renders a repository selection. The element displays the repository's icon and ID\n * if a repository is selected; otherwise, it shows a translated toggle button name. The component dynamically\n * updates the name when the translation changes.\n *\n * @example\n * <RepositorySelection repository={repository}></>\n *\n */\nconst RepositorySelection = ({ repository, defaultToggleButtonName, location }) => {\n var _a;\n const className = repository ? 'repository-selection active-repository' : 'repository-selection no-selected-repository';\n return (h(\"div\", { class: className, \"data-test\": 'repository-selection' },\n repository && h(\"i\", { class: 'button-icon icon-repo-' + repository.type }),\n \"\\u00A0\", (_a = repository === null || repository === void 0 ? void 0 : repository.id) !== null && _a !== void 0 ? _a : defaultToggleButtonName,\n location));\n};\n\nconst ontoRepositorySelectorCss = \":host{display:block}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button{background-color:var(--gw-button-secondary-background);color:var(--gw-button-secondary-background)}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background);color:var(--gw-button-secondary-hover-color)}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;display:inline-block;vertical-align:middle;text-align:left}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:0.75em}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{font-weight:300;font-size:0.75em;margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.tippy-box[data-theme=light-border]{border-radius:0}.tippy-box[data-theme=light-border].tippy-box[data-placement*=left]>.tippy-arrow:before{border-left-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=left]>.tippy-arrow:after{border-left-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=top]>.tippy-arrow:before{border-top-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=top]>.tippy-arrow:after{border-top-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=right]>.tippy-arrow:before{border-right-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=right]>.tippy-arrow:after{border-right-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=bottom]>.tippy-arrow:before{border-bottom-color:var(--gw-dialog-background)}.tippy-box[data-theme=light-border].tippy-box[data-placement*=bottom]>.tippy-arrow:after{border-bottom-color:var(--gw-dialog-border-color)}.tippy-box[data-theme=light-border] .tippy-content{padding:0;color:var(--gw-dialog-color);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-title{font-size:1rem;font-weight:400;padding:8px 14px;background-color:var(--gw-dialog-background);border-bottom:var(--gw-dialog-border-color) 1px solid}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-title .value{word-wrap:break-word}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-content{background-color:var(--gw-dialog-background);padding:1.5rem 0.5rem;display:flex;flex-direction:column;gap:0.8em;font-weight:400;font-size:0.875rem}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row{display:flex;flex-direction:row;justify-content:space-between}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row.total{margin-top:1.2em}.tippy-box[data-theme=light-border] .tippy-content .repository-tooltip-row .value{margin-left:0.6em}\";\n\nconst OntoRepositorySelector = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.repositoryContextService = ServiceProvider.get(RepositoryContextService);\n this.subscriptions = [];\n }\n /**\n * Re-applies tooltip functions to all dropdown items when the items prop changes.\n */\n onItemsChanged(newItems) {\n if (!(newItems === null || newItems === void 0 ? void 0 : newItems.length)) {\n this.dropdownItems = [];\n return;\n }\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n connectedCallback() {\n var _a;\n this.subscriptions.push(...this.subscribeToTranslationChanged());\n // Manually apply tooltip functions to each item on first mount.\n if ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) {\n this.dropdownItems = this.attachTooltipsToItems(this.items);\n }\n else {\n this.dropdownItems = [];\n }\n }\n /**\n * Cleans up the subscriptions when the component is removed from the DOM to avoid memory leaks.\n * This method unsubscribes from both the repository change and selected repository change events.\n */\n disconnectedCallback() {\n this.subscriptions.forEach((subscription) => subscription());\n }\n render() {\n const repositorySelection = h(RepositorySelection, { key: 'bf5de32d81929056bbdf4c16a228cbe3dd7d2cdf', repository: this.currentRepository, defaultToggleButtonName: this.getButtonLabel(), location: this.getLocation() });\n return (h(Host, { key: 'ad2c4f2fee7b98d840bf0881ec571d7279dcdea5' }, h(\"onto-dropdown\", Object.assign({ key: '442ac676b56db755c45caf45fd0216ed050334ba', class: 'onto-repository-selector', \"data-test\": 'onto-repository-selector', onValueChanged: this.onValueChanged(), dropdownButtonName: repositorySelection, dropdownButtonTooltip: this.createTooltipFunctionForRepository(this.currentRepository) }, (this.currentRepository ? { 'dropdownButtonGuideSelector': `repository-id-${this.currentRepository.id}` } : {}), { dropdownTooltipTrigger: 'mouseenter focus', dropdownAlignment: DropdownItemAlignment.RIGHT, tooltipPlacement: this.tooltipAlignment, tooltipTheme: 'light-border', items: this.dropdownItems, \"auto-close\": true }))));\n }\n attachTooltipsToItems(items) {\n if (!items) {\n return [];\n }\n return items.map((item) => item.setTooltip(this.createTooltipFunctionForRepository(item.value)));\n }\n tooltipAlignment(isOpen) {\n if (isOpen) {\n return OntoTooltipPlacement.LEFT;\n }\n return OntoTooltipPlacement.BOTTOM;\n }\n onValueChanged() {\n return (valueChangeEvent) => this.onRepositoryChanged(valueChangeEvent.detail);\n }\n /**\n * Returns an async function that generates HTML tooltip content for the given repository.\n */\n createTooltipFunctionForRepository(repository) {\n return async () => {\n if (!repository) {\n return '';\n }\n const repositorySizeInfo = await this.repositorySizeInfoFetcher(repository);\n return this.buildRepositoryTooltipHtml(repository, repositorySizeInfo);\n };\n }\n /**\n * Builds the complete HTML string used as tooltip content for a repository.\n */\n buildRepositoryTooltipHtml(repository, repositorySizeInfo) {\n let html = `\n <div class=\"repository-tooltip-title\">\n <span class=\"label\">${TranslationService.translate('repository-selector.tooltip.repository')}</span>\n <span class=\"value\">${repository.id}</span>\n </div>\n <div class=\"repository-tooltip-content\">\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.location')}:</div>\n <div class=\"value\">${repository.location ? repository.location : TranslationService.translate('repository-selector.tooltip.local')}</div>\n </div>\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.type')}:</div>\n <div class=\"value\">${TranslationService.translate('repository-selector.tooltip.types.' + (repository.type || 'unknown'))}</div>\n </div>\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.access')}:</div>\n <div class=\"value\">${TranslationService.translate(this.canWriteRepo(repository) ? 'repository-selector.tooltip.accesses.read_write' : 'repository-selector.tooltip.accesses.read')}</div>\n </div>`;\n html += this.buildRepositorySizeInfoHtml(repositorySizeInfo);\n html += '</div>';\n return html;\n }\n /**\n * Builds the repository size section of the tooltip.\n */\n buildRepositorySizeInfoHtml(repositorySizeInfo) {\n if (!repositorySizeInfo || repositorySizeInfo.total < 0) {\n return '';\n }\n let html = `\n <div class=\"repository-tooltip-row total\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.repository-size.total')}:</div>\n <div class=\"value\">${this.totalTripletsFormatter.format(repositorySizeInfo.total)}</div>\n </div>`;\n if (repositorySizeInfo.explicit >= 0) {\n html += `\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.repository-size.explicit')}:</div>\n <div class=\"value\">${this.totalTripletsFormatter.format(repositorySizeInfo.explicit)}</div>\n </div>`;\n }\n if (repositorySizeInfo.inferred >= 0) {\n html += `\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.repository-size.inferred')}:</div>\n <div class=\"value\">${this.totalTripletsFormatter.format(repositorySizeInfo.inferred)}</div>\n </div>`;\n }\n if (repositorySizeInfo.total >= 0) {\n let value = '-';\n if (repositorySizeInfo.explicit > 0) {\n value = this.totalTripletsFormatter.format(repositorySizeInfo.total / repositorySizeInfo.explicit);\n }\n html += `\n <div class=\"repository-tooltip-row\">\n <div class=\"label\">${TranslationService.translate('repository-selector.tooltip.repository-size.expansion_ratio')}:</div>\n <div class=\"value\">${value}</div>\n </div>`;\n }\n return html;\n }\n subscribeToTranslationChanged() {\n return [\n TranslationService.onTranslate('repository-selector.btn.toggle', [], (toggleButtonName) => {\n this.defaultToggleButtonName = toggleButtonName;\n }),\n TranslationService.onTranslate('repository-selector.btn.no_repositories', [], (noRepositoriesButtonMessage) => {\n this.noRepositoriesButtonMessage = noRepositoriesButtonMessage;\n })\n ];\n }\n onRepositoryChanged(selectedRepository) {\n this.repositoryContextService.updateSelectedRepository(selectedRepository);\n }\n getLocation() {\n var _a;\n if (!((_a = this.currentRepository) === null || _a === void 0 ? void 0 : _a.location)) {\n return '';\n }\n return `@${UriUtil.shortenIri(this.currentRepository.location)}`;\n }\n getButtonLabel() {\n var _a;\n return ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length)\n ? this.defaultToggleButtonName\n : this.noRepositoriesButtonMessage;\n }\n static get watchers() { return {\n \"items\": [\"onItemsChanged\"]\n }; }\n};\nOntoRepositorySelector.style = ontoRepositorySelectorCss;\n\nconst ontoSearchIconCss = \".onto-search-icon{cursor:pointer;color:var(--gw-primary-base, #9e2b0a);transition:all 0.15s ease-out;font-size:1.6rem}.onto-search-icon.ri-search-line{padding:0.5rem 0.8rem}.onto-search-icon:hover{transform:scale(1.2)}\";\n\nconst OntoSearchIcon = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.tooltipKey = 'rdf_search.labels.search';\n this.subscriptions = new SubscriptionList();\n }\n // ========================\n // Lifecycle methods\n // ========================\n connectedCallback() {\n this.onTooltipChange();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n return (h(\"i\", { key: '33ac85ef454f5a8de8e24217d92950219df84f7a', \"tooltip-content\": this.tooltipLabel, \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, class: \"onto-search-icon ri-search-line\" }));\n }\n onTooltipChange() {\n this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey, [], (translation) => this.tooltipLabel = translation));\n }\n};\nOntoSearchIcon.style = ontoSearchIconCss;\n\nconst ontoSearchResourceInputCss = \".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row i.ri-close-line{position:absolute;right:10px;top:7px;z-index:10;font-size:1.6rem}.search-resources-input .input-row button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;transition:all 0.15s ease-out;user-select:none;border:1px solid transparent;padding:0.5rem 1rem;font-size:1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background)}.search-resources-input .input-row button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color)}.search-resources-input .input-row button:focus{outline:none}.search-resources-input .input-row button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;line-height:1.5;color:var(--gw-autocomplete-option-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-secondary-base, #003663)}.search-resources-input .autocomplete-results-wrapper p.selected{background-color:var(--autocomplete-background-selected, #02A99A)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){background-color:var(--autocomplete-background, rgba(2, 169, 143, 0.3019607843))}\";\n\nconst OntoSearchResourceInput = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.autocompleteService = ServiceProvider.get(AutocompleteService);\n this.autocompleteContextService = ServiceProvider.get(AutocompleteContextService);\n this.autocompleteStorageService = ServiceProvider.get(AutocompleteStorageService);\n this.resourceSearchStorageService = ServiceProvider.get(ResourceSearchStorageService);\n this.toastrService = ServiceProvider.get(OntoToastrService);\n this.eventService = ServiceProvider.get(EventService);\n this.namespaceContextService = ServiceProvider.get(NamespacesContextService);\n this.subscriptions = new SubscriptionList();\n this.autocompleteWarningShown = false;\n /** Whether the rdf resource pre-search validation should be skipped. */\n this.skipValidation = false;\n /**\n * Whether the search component is currently hidden. Can be shown/hidden in the RDF search\n */\n this.isHidden = false;\n /**\n * Whether the autocomplete setting is enabled.\n */\n this.isAutocompleteEnabled = false;\n /**\n * Updates the local inputValue with the html input element's value.'\n */\n this.handleInput = (event) => {\n const target = event.target;\n if (!target.value) {\n this.clearInput();\n return;\n }\n this.setInputValue(target.value);\n this.checkForAutocomplete();\n };\n /**\n * Clears the search input field.\n */\n this.clearInput = () => {\n this.setInputValue('');\n if (this.preserveSearch) {\n this.resourceSearchStorageService.clearStoredSearch();\n }\n };\n this.onKeyDown = (event) => {\n switch (event.key) {\n case 'Enter':\n this.onEnter(event);\n break;\n case 'Escape':\n this.onEscape();\n break;\n case 'ArrowUp':\n this.onArrowUp(event);\n break;\n case 'ArrowDown':\n this.onArrowDown(event);\n break;\n }\n };\n }\n onVisibilityChange(isHidden) {\n var _a;\n if (isHidden) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n }\n else {\n this.setInputValue(this.resourceSearchStorageService.getInputValue());\n }\n }\n connectedCallback() {\n this.onAutocompleteEnabledChange();\n this.onNamespaceChange();\n this.loadInputFromStorage();\n }\n disconnectedCallback() {\n this.subscriptions.unsubscribeAll();\n }\n render() {\n var _a, _b, _c;\n return (h(\"section\", { key: 'c038af36fa4270f35dab06147536206eab600ce5', class: \"search-resources-input\" }, h(\"div\", { key: 'd9b3044c17de9765bd3cbc724ab76bb13e823136', class: \"input-row\" }, h(\"span\", { key: '297d9e5f94d414f227349b79f26f277e3c246c39', class: \"input-wrapper\" }, h(\"input\", { key: '65db17686344b92e8fb59cba15e48538da26c07e', value: this.inputValue, id: this.context, type: \"text\", autocomplete: \"off\", placeholder: `${TranslationService.translate('rdf_search.labels.search')}...`, ref: (ref) => this.inputRef = ref, onKeyDown: this.onKeyDown, \"data-test\": this.context, onInput: this.handleInput }), ((_a = this.inputValue) === null || _a === void 0 ? void 0 : _a.length) ?\n h(\"i\", { onClick: this.clearInput, \"tooltip-content\": TranslationService.translate('rdf_search.tooltips.clear'), \"tooltip-placement\": OntoTooltipPlacement.BOTTOM, class: \"ri-close-line clear-input\" }) : ''), (_b = this.buttonConfig) === null || _b === void 0 ? void 0 :\n _b.getButtons().getItems().map((button) => (h(\"button\", { key: button.label, onClick: this.handleButtonClick(button), class: `${button.selected ? 'selected' : ''}` }, button.label)))), h(\"span\", { key: 'cfb1aa194945352f33b786eb7bf2bae98c6e9ea2', class: \"hint\" }, TranslationService.translate('rdf_search.labels.hint')), h(\"section\", { key: 'e17c4e528f8c05ed983df81e2c364356170dac12', class: \"autocomplete-results-wrapper\", \"data-test\": 'onto-autocomplete-results' }, (_c = this.searchResult) === null || _c === void 0 ? void 0 : _c.getSuggestions().getItems().map((suggestion) => (h(\"p\", { key: suggestion.getId(), onClick: this.onSuggestionClick(suggestion), \"data-test\": 'onto-autocomplete-suggestion', onMouseMove: this.hoverSuggestion(suggestion), class: `${suggestion.isHovered() ? 'hovered' : ''} ${suggestion.isSelected() ? 'selected' : ''}`, innerHTML: suggestion.getDescription() }))))));\n }\n /**\n * Handles the click event for a search button.\n * If the button configuration is set to radio mode and the clicked button is not selected,\n * it deselects all other buttons and selects the clicked one.\n * @param {SearchButton} button - The button that was clicked.\n */\n handleButtonClick(button) {\n return () => this.buttonConfig = this.buttonConfig.selectButton(button);\n }\n loadAutocompleteResults() {\n var _a;\n if (!this.inputValue) {\n (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.clearSuggestions();\n return;\n }\n if (this.isAutocompleteEnabled) {\n this.autocompleteService.search(this.inputValue)\n .then((searchResult) => {\n this.onResultsReceived(searchResult);\n });\n }\n }\n hoverSuggestion(suggestion) {\n return () => this.searchResult = this.searchResult.hoverSuggestion(suggestion);\n }\n onAutocompleteEnabledChange() {\n this.isAutocompleteEnabled = this.autocompleteStorageService.isEnabled();\n this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged((enabled) => {\n this.isAutocompleteEnabled = enabled !== null && enabled !== void 0 ? enabled : this.isAutocompleteEnabled;\n }));\n }\n checkForAutocomplete() {\n if (this.inputValue.length > 0 && !this.isAutocompleteEnabled && !this.autocompleteWarningShown) {\n this.autocompleteWarningShown = true;\n const message = TranslationService.translate('rdf_search.toasts.autocomplete_is_off');\n this.toastrService.warning(`<a class=\"no-underline\" style=\"font-weight: 500\">${message}</a>`, {\n onClick: navigateTo('autocomplete'),\n removeOnClick: true\n });\n }\n }\n onSuggestionClick(suggestion) {\n return (event) => {\n suggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.searchRdfResource(suggestion);\n };\n }\n searchRdfResource(suggestion) {\n if (suggestion.getType() === SuggestionType.PREFIX) {\n this.expandPrefix(suggestion);\n }\n else {\n this.notifyRdfResourceSelected(suggestion);\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setLastSelected(suggestion);\n }\n }\n }\n notifyRdfResourceSelected(suggestion) {\n var _a;\n this.searchResult = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.selectSuggestion(suggestion);\n this.eventService.emit({\n NAME: ResourceSearchConstants.SUGGESTION_SELECTED_EVENT,\n payload: new SuggestionSelectedPayload(suggestion, this.context)\n });\n }\n expandPrefix(suggestion) {\n this.setInputValue(this.namespaces.getByPrefix(suggestion.getValue()));\n this.inputRef.focus();\n }\n setInputValue(value) {\n this.inputValue = value;\n if (this.preserveSearch) {\n this.resourceSearchStorageService.setInputValue(this.inputValue);\n }\n this.loadAutocompleteResults();\n }\n onNamespaceChange() {\n this.subscriptions.add(this.namespaceContextService.onNamespacesChanged((namespaces) => {\n this.namespaces = namespaces;\n }));\n }\n onEnter(event) {\n var _a;\n let selectedSuggestion = (_a = this.searchResult) === null || _a === void 0 ? void 0 : _a.getHoveredSuggestion();\n if (!selectedSuggestion) {\n selectedSuggestion = new Suggestion({\n value: UriUtil.removeAngleBrackets(this.inputValue),\n type: SuggestionType.URI\n });\n }\n selectedSuggestion.setOverrideToVisual(event.ctrlKey || event.metaKey);\n this.validateAndSearch(selectedSuggestion);\n }\n onArrowUp(event) {\n this.searchResult = this.searchResult.hoverPreviousSuggestion();\n this.displaySuggestion(event);\n }\n onArrowDown(event) {\n this.searchResult = this.searchResult.hoverNextSuggestion();\n this.displaySuggestion(event);\n }\n displaySuggestion(event) {\n event.preventDefault();\n // Update the input directly, because the value should only be displayed,\n // without triggering a new search and altering the autocomplete results\n this.inputRef.value = this.searchResult.getHoveredSuggestion().getValue();\n this.scrollToSuggestionBySelector('p.hovered');\n }\n getSuggestionValue(suggestion) {\n return suggestion.getType() === SuggestionType.PREFIX\n ? this.namespaces.getByPrefix(suggestion.getValue())\n : suggestion.getValue();\n }\n scrollToSuggestionBySelector(selector, options) {\n HtmlUtil.waitForElement(selector)\n .then(() => {\n HtmlUtil.scrollElementIntoView(selector, options);\n });\n }\n validateAndSearch(suggestion) {\n if (!this.skipValidation) {\n if (!suggestion.getValue()) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.empty_input'));\n return;\n }\n if (!UriUtil.isValidUri(this.getSuggestionValue(suggestion))) {\n this.toastrService.error(TranslationService.translate('rdf_search.toasts.invalid_uri'));\n return;\n }\n }\n this.searchRdfResource(suggestion);\n }\n onEscape() {\n if (this.preserveSearch) {\n return;\n }\n this.clearInput();\n }\n loadInputFromStorage() {\n if (!this.preserveSearch) {\n return;\n }\n this.inputValue = this.resourceSearchStorageService.getInputValue() || '';\n }\n onResultsReceived(searchResult) {\n const lastSelected = searchResult === null || searchResult === void 0 ? void 0 : searchResult.getByValue(this.resourceSearchStorageService.getLastSelectedValue());\n if (lastSelected && this.preserveSearch) {\n // No need to reassign twice in the same thread tick. One will trigger the re-render\n searchResult.hoverSuggestion(lastSelected);\n this.searchResult = searchResult.selectSuggestion(lastSelected);\n this.scrollToSuggestionBySelector('p.hovered.selected', { block: 'start' });\n }\n else {\n this.searchResult = searchResult.hoverFirstSuggestion();\n this.scrollToSuggestionBySelector('p.hovered', { block: 'start' });\n }\n }\n static get watchers() { return {\n \"isHidden\": [\"onVisibilityChange\"]\n }; }\n};\nOntoSearchResourceInput.style = ontoSearchResourceInputCss;\n\nconst ontoUserLoginCss = \":root{--onto-user-login-color:var(--gw-secondary-base, var(--base-text-color))}.onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--onto-user-login-color);flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{background-color:#d4d4d4;border-color:#d4d4d4}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus{outline:none}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}\";\n\nconst OntoUserLogin = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(\"section\", { key: '010f4db017da2ab91bc79de27658d255de92d5f4', class: \"onto-user-login\" }, h(\"button\", { key: 'f3e4019d86f6950a57186bb73dbfd60d1bc03362', onClick: navigateTo('login') }, h(\"i\", { key: '42a5ef90e9b768c8d283cdd8c3e6fb2160c33f16', class: \"icon-arrow-right\" }), h(\"translate-label\", { key: '9f61abfd1f3be13bca10d1d6db4d774accbb2f85', class: \"user-login-label\", labelKey: \"user_menu.login\" }))));\n }\n};\nOntoUserLogin.style = ontoUserLoginCss;\n\nconst ontoUserMenuCss = \".onto-user-menu{position:relative;width:fit-content}.onto-user-menu button{display:flex;flex-direction:row;line-height:1.5;font-weight:400;font-size:1rem;text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:var(--gw-button-secondary-background);color:var(--gw-button-secondary-color)}.onto-user-menu button:hover{background-color:var(--gw-button-secondary-hover-background);color:var(--gw-button-secondary-hover-color)}.onto-user-menu button:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button:focus{outline:none}.onto-user-menu button.open{color:white;background-color:var(--gw-primary-base);border-color:var(--gw-primary-base)}.onto-user-menu button.open .ri-user-line{color:var(--icon-on-primary-color, rgba(255, 255, 255, 0.8))}.onto-user-menu button.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu button .username{padding:0 5px}.onto-user-menu button i{color:var(--gw-primary-base);transition:0.15s ease-out}.onto-user-menu button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;font-size:1rem;width:100%;color:var(--gw-primary-contrast-color);background-color:var(--gw-primary-base)}.onto-user-menu .onto-user-menu-dropdown translate-label{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font-weight:400}.onto-user-menu .onto-user-menu-dropdown translate-label:hover,.onto-user-menu .onto-user-menu-dropdown translate-label:focus{background-color:rgba(0, 0, 0, 0.1)}\";\n\nconst OntoUserMenu = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Log out the current user.\n */\n this.logout = () => {\n ServiceProvider.get(AuthenticationService).logout();\n };\n /**\n * Toggles the dropdown menu's open state.\n *\n * @returns A function that toggles the `isOpen` state between true and false.\n */\n this.toggleDropdown = () => {\n this.isOpen = !this.isOpen;\n };\n /**\n * Closes the dropdown if the user clicks outside the component.\n */\n this.handleOutsideClick = (event) => {\n if (this.isOpen && !this.hostElement.contains(event.target)) {\n this.isOpen = false;\n }\n };\n }\n connectedCallback() {\n document.addEventListener('click', this.handleOutsideClick);\n }\n disconnectedCallback() {\n document.removeEventListener('click', this.handleOutsideClick);\n }\n render() {\n var _a;\n return (h(\"section\", { key: '294141ded29aca49a790c51e791262d4626b80ab', class: 'onto-user-menu' }, h(\"div\", { key: '1e7c1a6ea8e9766840b5c72c7ceecdfaf838c865', class: 'dropdown-toggle-wrapper', onClick: this.toggleDropdown }, h(\"button\", { key: '413bb997a92cb55ef56ee7ae45463e10c176540c', class: `${this.isOpen ? 'open' : ''}` }, h(\"i\", { key: '2c5806a5a49429b709753a9a009146b578b191ed', class: 'ri-user-line ri-lg' }), h(\"span\", { key: '1a59a9218b7a680c47d77c6e016659721d17aea4', class: 'username' }, this.user.username), h(\"i\", { key: 'dea9929dc6bd6280336fe3a7cc1d062d4c9f54c3', class: `ri-arrow-down-s-line ${this.isOpen ? 'rotate-180' : ''}` })), this.isOpen ?\n h(\"section\", { class: 'onto-user-menu-dropdown' }, h(\"translate-label\", { onClick: navigateTo('settings'), labelKey: 'user_menu.my_settings' }), !((_a = this.securityConfig) === null || _a === void 0 ? void 0 : _a.hasExternalAuthUser) ?\n h(\"translate-label\", { onClick: this.logout, labelKey: 'user_menu.logout' }) : '') : '')));\n }\n get hostElement() { return getElement(this); }\n};\nOntoUserMenu.style = ontoUserMenuCss;\n\nexport { OntoLanguageSelector as onto_language_selector, OntoLicenseAlert as onto_license_alert, OntoOperationsNotification as onto_operations_notification, OntoRdfSearch as onto_rdf_search, OntoRepositorySelector as onto_repository_selector, OntoSearchIcon as onto_search_icon, OntoSearchResourceInput as onto_search_resource_input, OntoUserLogin as onto_user_login, OntoUserMenu as onto_user_menu };\n","/**\n * Model that holds a dropdown item configuration.\n */\nclass DropdownItem {\n constructor() {\n /**\n * Specifies the events that trigger the dropdown item tooltip to appear. Multiple event names should be separated by spaces.\n */\n this._dropdownTooltipTrigger = 'manual';\n }\n get name() {\n return this._name;\n }\n setName(value) {\n this._name = value;\n return this;\n }\n get nameLabelKey() {\n return this._nameLabelKey;\n }\n setNameLabelKey(value) {\n this._nameLabelKey = value;\n return this;\n }\n get tooltip() {\n return this._tooltip;\n }\n setTooltip(value) {\n this._tooltip = value;\n return this;\n }\n get tooltipLabelKey() {\n return this._tooltipLabelKey;\n }\n setTooltipLabelKey(value) {\n this._tooltipLabelKey = value;\n return this;\n }\n get iconClass() {\n return this._iconClass;\n }\n setIconClass(value) {\n this._iconClass = value;\n return this;\n }\n get value() {\n return this._value;\n }\n setValue(value) {\n this._value = value;\n return this;\n }\n get dropdownTooltipTrigger() {\n return this._dropdownTooltipTrigger;\n }\n setDropdownTooltipTrigger(value) {\n this._dropdownTooltipTrigger = value;\n return this;\n }\n get cssClass() {\n return this._cssClass;\n }\n setCssClass(value) {\n this._cssClass = value;\n return this;\n }\n get guideSelector() {\n return this._guideSelector;\n }\n setGuideSelector(value) {\n this._guideSelector = value;\n return this;\n }\n}\n\nvar ResourceSearchConstants;\n(function (ResourceSearchConstants) {\n ResourceSearchConstants[\"SUGGESTION_SELECTED_EVENT\"] = \"suggestion-selected-event\";\n ResourceSearchConstants[\"TABLE_VIEW\"] = \"table\";\n ResourceSearchConstants[\"VISUAL_VIEW\"] = \"visual\";\n ResourceSearchConstants[\"RDF_SEARCH_ICON_CLICKED\"] = \"rdfSearchIconClicked\";\n})(ResourceSearchConstants || (ResourceSearchConstants = {}));\n\nexport { DropdownItem as D, ResourceSearchConstants as R };\n"],"names":["DropdownItemAlignment","OntoTooltipPlacement","sanitizeHTML","html","element","document","createElement","innerHTML","value","LoggerProvider","logger","Loggers","getLoggerInstance","TranslationServiceClassDefinition","constructor","this","languageContextService","ServiceProvider","get","LanguageContextService","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","onTranslate","messageLabelKey","translationParameter","translationCallback","observer","parameters","callback","push","translate","index","indexOf","splice","key","translateInLocale","translation","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","length","reduce","parameter","replaceAll","join","notifyTranslationsChanged","Object","keys","forEach","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy","TranslationService","INTERACTIVE_ELEMENTS_SELECTOR","HtmlUtil","setDocumentBodyOverflow","newOverflow","oldOverflow","body","style","overflow","hideDocumentBodyOverflow","focusNextElement","parentElement","activeElementSelector","focusableElements","Array","from","querySelectorAll","currentIndex","activeElement","nextActiveElement","focus","focusPreviousElement","previousActiveElement","preventLeavingDialog","hostElement","ev","preventDefault","shiftKey","focusElement","selector","querySelector","scrollElementIntoView","elementSelector","options","block","scrollIntoView","waitForElement","Promise","resolve","reject","MutationObserver","disconnect","error","observe","subtree","childList","attributes","OntoLanguageSelector","hostRef","registerInstance","languageService","LanguageService","items","dropdownAlignment","LEFT","connectedCallback","onLanguageChangeSubscription","onSelectedLanguageChanged","newLanguage","changeLanguage","getLanguageDropdownOptions","disconnectedCallback","render","_a","_b","h","Host","class","onValueChanged","valueChangeHandler","dropdownButtonNameLabelKey","currentLanguage","undefined","dropdownButtonName","dropdownButtonTooltipLabelKey","RIGHT","dropdownTooltipTrigger","iconClass","selectedLanguage","getDefaultLanguage","newLanguageEvent","updateSelectedLanguage","detail","getSupportedLanguages","map","locale","DropdownItem","setNameLabelKey","setTooltipLabelKey","setIconClass","setCssClass","setValue","setDropdownTooltipTrigger","OntoLicenseAlert","license","message","BOTTOM","onClick","navigateTo","labelKey","operationGroupToIcon","OperationGroup","BACKUP","QUERY","CLUSTER","IMPORT","operationStatusToWarningClass","OperationStatus","WARNING","INFORMATION","CRITICAL","operationStatusToFadeClass","OntoOperationsNotification","isOpen","toggleDropdown","event","stopPropagation","handleOutsideClick","operationGroups","MapperProvider","OperationGroupSummaryListMapper","mapToModel","activeOperations","toOperationsGroupSummary","status","getItems","groupSummary","id","group","totalOperations","allRunningOperations","operation","target","href","count","el","getElement","OntoRdfSearch","subscriptions","SubscriptionList","eventService","EventService","resourceSearchStorageService","ResourceSearchStorageService","RDF_CONTEXT","redirectUrl","UriUtil","RESOURCE_URL","handleClick","rdfSearchRef","contains","onSuggestionSelected","unsubscribeAll","componentDidRender","focusSearchInput","componentDidLoad","buttonConfig","createButtonConfig","ref","onKeyDown","setIsOpen","preserveSearch","isHidden","context","loadSelectedViewFromStorage","SearchButtonConfig","isRadio","buttons","createSearchButton","ResourceSearchConstants","TABLE_VIEW","setSelectedView","VISUAL_VIEW","GRAPHS_VISUALIZATIONS_URL","selected","SearchButton","label","add","subscribe","SUGGESTION_SELECTED_EVENT","payload","getContext","getSuggestion","getOverrideToVisual","openInNewTab","createAutocompleteRedirect","getValue","selectedView","getSelectedView","selectedButton","getButtons","find","button","selectButton","RepositorySelection","repository","defaultToggleButtonName","location","className","type","OntoRepositorySelector","repositoryContextService","RepositoryContextService","onItemsChanged","newItems","dropdownItems","attachTooltipsToItems","subscribeToTranslationChanged","subscription","repositorySelection","currentRepository","getButtonLabel","getLocation","assign","dropdownButtonTooltip","createTooltipFunctionForRepository","tooltipPlacement","tooltipAlignment","tooltipTheme","item","setTooltip","valueChangeEvent","onRepositoryChanged","async","repositorySizeInfo","repositorySizeInfoFetcher","buildRepositoryTooltipHtml","canWriteRepo","buildRepositorySizeInfoHtml","total","totalTripletsFormatter","format","explicit","inferred","toggleButtonName","noRepositoriesButtonMessage","selectedRepository","updateSelectedRepository","shortenIri","watchers","OntoSearchIcon","tooltipKey","onTooltipChange","tooltipLabel","OntoSearchResourceInput","autocompleteService","AutocompleteService","autocompleteContextService","AutocompleteContextService","autocompleteStorageService","AutocompleteStorageService","toastrService","OntoToastrService","namespaceContextService","NamespacesContextService","autocompleteWarningShown","skipValidation","isAutocompleteEnabled","handleInput","setInputValue","checkForAutocomplete","clearInput","clearStoredSearch","onEnter","onEscape","onArrowUp","onArrowDown","onVisibilityChange","searchResult","clearSuggestions","getInputValue","onAutocompleteEnabledChange","onNamespaceChange","loadInputFromStorage","_c","inputValue","autocomplete","placeholder","inputRef","onInput","handleButtonClick","getSuggestions","suggestion","getId","onSuggestionClick","onMouseMove","hoverSuggestion","isHovered","isSelected","getDescription","loadAutocompleteResults","search","then","onResultsReceived","isEnabled","onAutocompleteEnabledChanged","enabled","warning","removeOnClick","setOverrideToVisual","ctrlKey","metaKey","searchRdfResource","getType","SuggestionType","PREFIX","expandPrefix","notifyRdfResourceSelected","setLastSelected","selectSuggestion","emit","NAME","SuggestionSelectedPayload","namespaces","getByPrefix","onNamespacesChanged","selectedSuggestion","getHoveredSuggestion","Suggestion","removeAngleBrackets","URI","validateAndSearch","hoverPreviousSuggestion","displaySuggestion","hoverNextSuggestion","scrollToSuggestionBySelector","getSuggestionValue","isValidUri","lastSelected","getByValue","getLastSelectedValue","hoverFirstSuggestion","OntoUserLogin","OntoUserMenu","logout","AuthenticationService","addEventListener","removeEventListener","user","username","securityConfig","hasExternalAuthUser","_dropdownTooltipTrigger","name","_name","setName","nameLabelKey","_nameLabelKey","tooltip","_tooltip","tooltipLabelKey","_tooltipLabelKey","_iconClass","_value","cssClass","_cssClass","guideSelector","_guideSelector","setGuideSelector"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=94519;export const __webpack_esm_ids__=[48184,48581,53174,57952,70962,94519];export const __webpack_esm_modules__={48184:(t,e,n)=>{n.d(e,{U:()=>s});const s={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC_BLANK:"OUT_OF_SYNC_BLANK"}},53174:(t,e,n)=>{n.d(e,{N:()=>o});var s=n(48184),a=n(70962);const o={getLegendNodes:function(){const t=[];return t.push({nodeState:s.U.LEADER,customText:"node_state_leader"}),t.push({nodeState:s.U.FOLLOWER,customText:"node_state_follower"}),t.push({nodeState:s.U.OUT_OF_SYNC_BLANK,customText:"node_state_out_of_sync"}),t.forEach((t,e)=>t.id=e),t},getSyncStatuses:()=>[{labelKey:"node_state_candidate",classes:"remixicon",icon:""},{labelKey:"node_state_no_cluster",classes:"remixicon",icon:""},{labelKey:"link_state_out_of_sync",classes:"remixicon",icon:""},{labelKey:"node_state_no_connection",classes:"remixicon",icon:""},{labelKey:"node_state_read_only",classes:"remixicon",icon:""},{labelKey:"node_state_restricted",classes:"remixicon",icon:""},{labelKey:"recovery_state.searching_for_node",classes:"remixicon",icon:""},{labelKey:"recovery_state.waiting_for_snapshot",classes:"remixicon",icon:""},{labelKey:"recovery_state.building_snapshot",classes:"remixicon",icon:""},{labelKey:"recovery_state.sending_snapshot",classes:"remixicon",icon:""},{labelKey:"recovery_state.receiving_snapshot",classes:"remixicon",icon:""},{labelKey:"recovery_state.applying_snapshot",classes:"remixicon",icon:""}],getLegendLinks:function(){const t=[];return t.push({status:a.gC.IN_SYNC,linkTypeKey:"link_state_in_sync"}),t.push({status:a.gC.SYNCING,linkTypeKey:"link_state_syncing"}),t.push({status:a.gC.OUT_OF_SYNC,linkTypeKey:"link_state_out_of_sync"}),t.push({status:a.gC.RECEIVING_SNAPSHOT,linkTypeKey:"link_state_receiving_snapshot"}),t.forEach((t,e)=>t.id=e),t},SVG_NODE_WIDTH:15,PADDING_LEFT:12,PADDING_TOP:12,TITLE_PADDING_TOP:15,TITLE_FONT_SIZE:13,TITLE_FONT_WEIGHT:700,TITLE_COLOR:"#000000",TITLE_LINE_HEIGHT:18,LEGEND_ITEM_FONT_SIZE:11,LEGEND_ITEM_ICON_FONT_SIZE:15,LEGEND_ITEM_FONT_WEIGHT:400,LEGEND_ITEM_COLOR:"#000000",LEGEND_ITEM_LINE_HEIGHT:13,LEGEND_ITEM_PADDING_LEFT:27,LEGEND_ITEMS_PADDING_TOP:40,LEGEND_ITEM_PADDING_TOP:8,BACKGROUND_PADDING:24}},57952:(t,e,n)=>{n.d(e,{$$:()=>S,CQ:()=>m,D6:()=>C,HF:()=>T,Iz:()=>A,J5:()=>N,Wg:()=>R,Xl:()=>u,ZC:()=>L,_D:()=>G,cZ:()=>O,cy:()=>D,dB:()=>E,kI:()=>g,r_:()=>I,ss:()=>x});var s=n(70962),a=n(98980),o=n(93462);const r={line:o.line,select:o.select},c={ontoOrange:"var(--gw-primary-base)",ontoBlue:"var(--gw-secondary-base)",ontoGreen:"var(--gw-tertiary-base)",ontoGrey:"var(--gw-neutral-base)"},i={[s.gC.IN_SYNC]:c.ontoBlue,[s.gC.SYNCING]:c.ontoBlue,[s.gC.OUT_OF_SYNC]:c.ontoGrey,[s.gC.RECEIVING_SNAPSHOT]:c.ontoBlue},l={[s.gC.IN_SYNC]:"none",[s.gC.SYNCING]:"10 10",[s.gC.OUT_OF_SYNC]:"10 10",[s.gC.RECEIVING_SNAPSHOT]:"10 10"},_={REMIXICON:"REMIXICON",ICOMOON:"ICOMOON"},d=40;function N(t){return r.select(t).append("svg").classed("cluster-diagram",!0)}function E(t){const e=t.append("g");return e.append("circle").classed("cluster-zone",!0).style("fill","transparent").style("stroke-width","4"),e}function u(t,e,n,s=!1){if(e.select(".cluster-zone").classed("no-cluster",!t).classed("has-access",s),t)e.selectAll("#no-cluster-zone").remove();else{const t=e.append("g").attr("id","no-cluster-zone");t.append("text").attr("id","no-cluster-label").text(n.no_cluster_configured).attr("y",-50).classed("h2",!0).style("text-anchor","middle"),s&&t.append("text").attr("id","create-cluster-label").classed("h3",!0).text(n.create_cluster_btn).style("text-anchor","middle"),t.append("text").attr("y",130).attr("class","icon-any repo").attr("fill",c.ontoOrange).style("text-anchor","middle").classed("settings-icon",!0).text("")}}function I(t,e,n){t||(e.select("#no-cluster-zone #no-cluster-label").text(n.no_cluster_configured),e.select("#no-cluster-zone #create-cluster-label").text(n.create_cluster_btn))}function O(t,e,n){t.attr("transform",()=>`translate(${e}, ${n})`)}function g(t,e,n){const s=t.enter().append("g").attr("id","node-group").classed("legend",n),a=s.merge(t).attr("id","node-group").classed("legend",n);return function(t,e){const n=Math.sqrt(3)/2,s=[[e+0,0],[e/2+0,e*n+0],[-e/2+0,e*n+0],[0-e,0],[-e/2+0,-e*n+0],[e/2+0,-e*n+0],[e+0,0],[e/2+0,e*n+0]];t.selectAll("path.area").data([s]).enter().append("path").attr("class","node member").attr("stroke-width","10").attr("stroke-linejoin","round").attr("d",r.line())}(s,e),t.exit().remove(),s.append("text").attr("class","icon-any node-icon"),n||function(t,e){const n=t.append("g");n.append("rect").attr("class","id-host-background").attr("rx",6),n.append("rect").attr("class","node-info-background").attr("rx",6),n.append("text").attr("y",e+25).attr("class","id id-host"),n.append("text").attr("y",e+55).attr("class","node-info-text")}(s,e),a}function T(t){!function(t){t.select(".node-icon").each(function(t){const e=(n=t,(0,a.isEmpty)(n.recoveryStatus)?function(t){return p[t.nodeState]||{icon:"",font:""}}(t):function(t){const e=t.recoveryStatus;return e&&e.state&&h[e.state]||{icon:"",font:""}}(t));var n;r.select(this).classed("icon-any",e.font===_.ICOMOON).classed("remixicon",e.font===_.REMIXICON).text(e.icon)})}(t),function(t){t.select(".node.member").classed("leader",t=>t.nodeState===s.UY.LEADER).classed("follower",t=>t.nodeState===s.UY.FOLLOWER).classed("candidate",t=>t.nodeState===s.UY.CANDIDATE).classed("other",t=>t.nodeState!==s.UY.LEADER&&t.nodeState!==s.UY.FOLLOWER&&t.nodeState!==s.UY.CANDIDATE)}(t),function(t){t.select(".id.id-host").each(function(t){t.labelNode=this}).text(function(t){return t.hostname}),t.select(".id-host-background").attr("width",function(t){return r.select(t.labelNode).node().getBBox().width+10}).attr("height",function(t){return r.select(t.labelNode).node().getBBox().height+10}).attr("x",function(t){return r.select(t.labelNode).node().getBBox().x-5}).attr("y",function(t){return r.select(t.labelNode).node().getBBox().y-5})}(t),function(t){let e,n;t.select(".node-info-text").each(function(t){t.infoNode=this}).select(function(){return this.parentNode}).append("foreignObject").attr("width",function(t){let s="";(0,a.isEmpty)(t.recoveryStatus)||(s=y(t));const o=f(s);return e=o.height,n=o.width,n}).attr("height",function(t){return e}).attr("x",function(t){return-n/2}).attr("y",function(t){return 78}).classed("hidden",function(t){return(0,a.isEmpty)(t.recoveryStatus)}).style("font-size","12px").style("font-weight","400").style("text-align","center").style("padding","4px").style("background","#EEEEEE").style("border-radius","6px").attr("class","node-info-fo").append("xhtml:div").html(function(t){return y(t)}),t.select(".node-info-text").remove(),function(t){t.select(".node-info-fo").each(function(t){const e=r.select(this);if((0,a.isEmpty)(t.recoveryStatus))return void e.attr("width",0);const n=y(t),s=t.recoveryStatus.message&&t.recoveryStatus.message.length>d&&n!==t.recoveryStatus.message,o=s?n:t.recoveryStatus.message,c=f(n),i=f(t.recoveryStatus.message);e.on(".tooltip",null),s&&function(t,e,n,s,a){t.on("mouseover.tooltip",()=>{t.attr("width",a.width).attr("height",a.height).attr("x",-a.width/2).html(`<div>${e}</div>`)}),t.on("mouseout.tooltip",()=>{t.attr("width",n.width).attr("height",n.height).attr("x",-n.width/2).html(`<div>${s}</div>`)})}(e,t.recoveryStatus.message,c,o,i),e.attr("width",c.width).attr("height",c.height).attr("x",-c.width/2).html(`<div>${o}</div>`)})}(t)}(t)}const h={[s.vQ.SEARCHING_FOR_NODE]:{icon:"",font:_.REMIXICON},[s.vQ.WAITING_FOR_SNAPSHOT]:{icon:"",font:_.REMIXICON},[s.vQ.RECEIVING_SNAPSHOT]:{icon:"",font:_.REMIXICON},[s.vQ.APPLYING_SNAPSHOT]:{icon:"",font:_.REMIXICON},[s.vQ.BUILDING_SNAPSHOT]:{icon:"",font:_.REMIXICON},[s.vQ.SENDING_SNAPSHOT]:{icon:"",font:_.REMIXICON},[s.vQ.RECOVERY_OPERATION_FAILURE_WARNING]:{icon:"",font:_.ICOMOON}},p={[s.UY.CANDIDATE]:{icon:"",font:_.ICOMOON},[s.UY.NO_CONNECTION]:{icon:"",font:_.ICOMOON},[s.UY.OUT_OF_SYNC]:{icon:"",font:_.ICOMOON},[s.UY.READ_ONLY]:{icon:"",font:_.ICOMOON},[s.UY.RESTRICTED]:{icon:"",font:_.ICOMOON}};function y(t){return t.recoveryStatus.message&&t.recoveryStatus.message.length>d?t.recoveryStatus.message.substring(0,d)+"...":t.recoveryStatus.message||""}function f(t){const e=document.createElement("div");e.innerHTML=t,e.style.padding="4px",e.style.position="absolute",e.style.visibility="hidden",e.style.fontSize="12px",e.style.fontWeight="400",e.style.textAlign="center",e.style.height="auto",e.style.width="auto",e.style.whiteSpace="nowrap",document.body.appendChild(e);const n=e.getBoundingClientRect(),s=n.height,a=n.width;return document.body.removeChild(e),{height:s,width:a}}function D(t){t.enter().append("path").classed("link",!0),t.exit().remove()}function S(t,e){t.attr("class",t=>`link ${t.id.replaceAll(":","-")}`).attr("stroke",G).style("stroke-dasharray",m).style("marker-mid",t=>A(t,L.BIG)).attr("d",t=>function(t,e){const n=e.find(e=>e.address===t.source),s=e.find(e=>e.address===t.target),a=s.x-n.x,o=s.y-n.y,r=Math.sqrt(a*a+o*o),c=a/r,i=o/r,l=n.x+55*c,_=n.y+55*i,d=s.x-55*c,N=s.y-55*i;return"M"+l+","+_+"L"+(l+d)/2+","+(_+N)/2+"L"+d+","+N}(t,e))}const L={SMALL:{name:"small",size:3},BIG:{name:"big",size:5}};function C(t,e){t.append("svg:defs").append("svg:marker").attr("id",`arrowhead_${e.name}`).attr("viewBox",`0 0 ${2*e.size} ${2*e.size}`).attr("refX",e.size).attr("refY",e.size).attr("markerWidth",e.size).attr("markerHeight",e.size).attr("orient","auto-start-reverse").append("path").attr("d",`M 0 0 L ${2*e.size} ${e.size} L 0 ${2*e.size} z`).style("fill","var(--gw-secondary-base)")}function A(t,e){if(t.status===s.gC.RECEIVING_SNAPSHOT)return`url(#arrowhead_${e.name})`}function G(t){return i[t.status]||"none"}function m(t){return l[t.status]||"none"}function x(t,e,n,s){t.attr("transform",(a,o)=>{const r=2*Math.PI*o/t.size(),c=e+Math.cos(r)*s,i=n+Math.sin(r)*s;return a.x=c,a.y=i,`translate(${c}, ${i})`})}function R(){r.select(document).selectAll(".node-info-fo").on(".tooltip",null)}},70962:(t,e,n)=>{n.d(e,{UY:()=>s,gC:()=>o,vQ:()=>a,zB:()=>r});const s={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC:"OUT_OF_SYNC",NO_CONNECTION:"NO_CONNECTION",READ_ONLY:"READ_ONLY",RESTRICTED:"RESTRICTED",NO_CLUSTER:"NO_CLUSTER"},a={SEARCHING_FOR_NODE:"SEARCHING_FOR_NODE",WAITING_FOR_SNAPSHOT:"WAITING_FOR_SNAPSHOT",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT",APPLYING_SNAPSHOT:"APPLYING_SNAPSHOT",BUILDING_SNAPSHOT:"BUILDING_SNAPSHOT",SENDING_SNAPSHOT:"SENDING_SNAPSHOT",RECOVERY_OPERATION_FAILURE_WARNING:"RECOVERY_OPERATION_FAILURE_WARNING"},o={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT"},r={PRIMARY_NODE:"PRIMARY_NODE",SECONDARY_NODE:"SECONDARY_NODE"}},94519:(t,e,n)=>{var s=n(53174),a=n(57952),o=n(70962);const r={select:n(93462).select};function c(t,e,n,c){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-legend.html",scope:{},link:i=>{i.hideLegend=!0;const l=[];let _,d,N;i.toggleLegend=()=>{i.hideLegend=!i.hideLegend,_.classed("hidden-legend",i.hideLegend)};const E=()=>{const t=e.getClusterViewD3Container();g(t),T(),u(_),I(),O(),h(),p()},u=t=>{f(t,"cluster_management.cluster_graphical_view.legend_title_node_state");const e=t.selectAll(".node-group").data(s.N.getLegendNodes()),n=a.kI(e,s.N.SVG_NODE_WIDTH,!0);a.HF(n),n.attr("transform",function(t,e){return h(),`translate(${s.N.LEGEND_ITEM_PADDING_LEFT}, ${d+s.N.LEGEND_ITEM_PADDING_TOP})`}).append("text").classed("links-statuses",!0).style("font-weight",s.N.LEGEND_ITEM_FONT_WEIGHT).style("fill",s.N.LEGEND_ITEM_COLOR).attr("x",s.N.PADDING_LEFT+s.N.SVG_NODE_WIDTH).attr("y",3).text(function(t){return D(this,"cluster_management.cluster_graphical_view."+t.customText)})},I=()=>{f(_,"cluster_management.cluster_graphical_view.legend_title_sync_status");const t=_.selectAll(".sync-statuses-group").data(s.N.getSyncStatuses()).enter().append("g").attr("class","sync-statuses-group"),e=new Map;t.append("text").attr("class",t=>`sync-status ${t.classes}`).attr("x",s.N.LEGEND_ITEM_PADDING_LEFT-10).attr("y",function(t,n){const a=n*(20+s.N.LEGEND_ITEM_PADDING_TOP)+d+s.N.LEGEND_ITEMS_PADDING_TOP;return e.set(n,a),a}).text(function(t){return t.icon});const n=(s.N.LEGEND_ITEM_ICON_FONT_SIZE-s.N.LEGEND_ITEM_FONT_SIZE)/2;t.append("text").style("font-weight",s.N.LEGEND_ITEM_FONT_WEIGHT).style("fill",s.N.LEGEND_ITEM_COLOR).text(function(t){return D(this,"cluster_management.cluster_graphical_view."+t.labelKey)}).attr("x",s.N.LEGEND_ITEM_PADDING_LEFT+s.N.LEGEND_ITEM_FONT_SIZE).attr("y",function(t,s){return e.get(s)-n}).classed("links-statuses",!0)},O=()=>{f(_,"cluster_management.cluster_graphical_view.legend_title_link_states");const t=_.selectAll(".link-states-group").data(s.N.getLegendLinks()).enter().append("g").attr("class","link-state"),e=new Map;t.append("path").classed("link",!0).attr("stroke-dasharray",a.CQ).attr("stroke",a._D).attr("d",(t,n)=>{const a=n*(s.N.LEGEND_ITEM_FONT_SIZE+s.N.LEGEND_ITEM_PADDING_TOP)+d+s.N.LEGEND_ITEMS_PADDING_TOP,r=N/2;let c;if(e.set(n,a),t.status===o.gC.RECEIVING_SNAPSHOT){const t=r/2;c=`M${s.N.PADDING_LEFT} ${a} L${t} ${a} L${r} ${a}`}else c=`M${s.N.PADDING_LEFT} ${a} ${r} ${a}`;return c}).style("marker-mid",t=>a.Iz(t,a.ZC.SMALL)),t.append("text").style("font-size",s.N.LEGEND_ITEM_FONT_SIZE).style("line-height",s.N.LEGEND_ITEM_LINE_HEIGHT).style("font-weight",s.N.LEGEND_ITEM_FONT_WEIGHT).style("fill",s.N.LEGEND_ITEM_COLOR).text(function(t){return D(this,"cluster_management.cluster_graphical_view."+t.linkTypeKey)}).attr("x",N/2+s.N.LEGEND_ITEM_PADDING_LEFT).attr("y",function(t,n){return e.get(n)+4}).classed("links-statuses",!0)},g=t=>{_=t.append("g").classed("hidden-legend",i.hideLegend).classed("cluster-legend-group",!0)},T=()=>{_.append("rect").attr("class","legend-background").attr("fill","#EEEEEE")},h=()=>{_.call(t=>{d=t.node().getBBox().height}),N=y(_)+30},p=()=>{const t=y(_);_.select(".legend-background").attr("height",d+3*s.N.PADDING_TOP).attr("width",t+s.N.BACKGROUND_PADDING).attr("rx","6")},y=t=>{let e=0;return t.selectAll(":not(.legend-background)").each(function(){const t=this.getBBox();e=Math.max(e,t.width)}),e},f=(t,e)=>t.append("text").attr("class","legend-title").attr("x",s.N.PADDING_LEFT).style("font-size",s.N.TITLE_FONT_SIZE).style("font-weight",s.N.TITLE_FONT_WEIGHT).style("line-height",s.N.TITLE_LINE_HEIGHT).style("fill",s.N.TITLE_COLOR).text(function(){return D(this,e)}).attr("y",()=>(h(),d+s.N.TITLE_PADDING_TOP)),D=(e,s)=>(l.push(t.$on("$translateChangeSuccess",()=>{r.select(e).text(n.instant(s)),p()})),n.instant(s)),S=()=>{i.hideLegend=!0,_.classed("hidden-legend",i.hideLegend)};c.on("keydown",t=>{"Escape"===t.key&&S()}),l.push(e.onClusterViewD3ContainerUpdated(E)),i.$on("$destroy",()=>{c.off("keydown",S),l.forEach(t=>t())}),E()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-legend",[]).directive("clusterLegend",c),c.$inject=["$rootScope","ClusterViewContextService","$translate","$document"]}};
2
- //# sourceMappingURL=94519.32958f75080cd121b880.bundle.js.map