graphdb-workbench 3.1.1 → 3.1.2-RC1

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 (244) hide show
  1. package/dist/12396.45c6c5bfacbc9b618e53.bundle.js +2 -0
  2. package/dist/12396.45c6c5bfacbc9b618e53.bundle.js.map +1 -0
  3. package/dist/15535.4ddd399f1c7b1a293cd1.bundle.js +2 -0
  4. package/dist/15535.4ddd399f1c7b1a293cd1.bundle.js.map +1 -0
  5. package/dist/16162.5a13a7e01245ad4a1870.bundle.js +2 -0
  6. package/dist/16162.5a13a7e01245ad4a1870.bundle.js.map +1 -0
  7. package/dist/20287.57efc6f8c3d69e32d9eb.bundle.js +2 -0
  8. package/dist/20287.57efc6f8c3d69e32d9eb.bundle.js.map +1 -0
  9. package/dist/21136.16ba26c3c2a5994ac804.bundle.js +2 -0
  10. package/dist/21136.16ba26c3c2a5994ac804.bundle.js.map +1 -0
  11. package/dist/21142.6a0dddf4d8cbaa3f12b0.bundle.js +2 -0
  12. package/dist/21142.6a0dddf4d8cbaa3f12b0.bundle.js.map +1 -0
  13. package/dist/21170.8e1c1c6ca9e0dcabb7f1.bundle.js +2 -0
  14. package/dist/21170.8e1c1c6ca9e0dcabb7f1.bundle.js.map +1 -0
  15. package/dist/21195.a643243779a9686a80c2.bundle.js +2 -0
  16. package/dist/21195.a643243779a9686a80c2.bundle.js.map +1 -0
  17. package/dist/25747.cad141609522a4fada23.bundle.js +2 -0
  18. package/dist/25747.cad141609522a4fada23.bundle.js.map +1 -0
  19. package/dist/27580.9b398051408490eb3370.bundle.js +2 -0
  20. package/dist/27580.9b398051408490eb3370.bundle.js.map +1 -0
  21. package/dist/31636.4cbcef238ea95947d034.bundle.js +2 -0
  22. package/dist/31636.4cbcef238ea95947d034.bundle.js.map +1 -0
  23. package/dist/32489.6f365b00ec1f1a922349.bundle.js +2 -0
  24. package/dist/32489.6f365b00ec1f1a922349.bundle.js.map +1 -0
  25. package/dist/34330.a8c1fd00d27db289888e.bundle.js +2 -0
  26. package/dist/34330.a8c1fd00d27db289888e.bundle.js.map +1 -0
  27. package/dist/34495.26fa7bdc333ca00fd5ef.bundle.js +2 -0
  28. package/dist/34495.26fa7bdc333ca00fd5ef.bundle.js.map +1 -0
  29. package/dist/{38360.437a12fa59878d1d43b9.bundle.js → 38360.4cdad1c762e87ebd0956.bundle.js} +2 -2
  30. package/dist/38360.4cdad1c762e87ebd0956.bundle.js.map +1 -0
  31. package/dist/38644.fc6c58775859f41c805f.bundle.js +2 -0
  32. package/dist/38644.fc6c58775859f41c805f.bundle.js.map +1 -0
  33. package/dist/38843.87e1d2c22e7c03397740.bundle.js +2 -0
  34. package/dist/38843.87e1d2c22e7c03397740.bundle.js.map +1 -0
  35. package/dist/39518.148d1b3347798e9919fd.bundle.js +2 -0
  36. package/dist/39518.148d1b3347798e9919fd.bundle.js.map +1 -0
  37. package/dist/39539.43ba568d747c737aa425.bundle.js +2 -0
  38. package/dist/39539.43ba568d747c737aa425.bundle.js.map +1 -0
  39. package/dist/41453.cc7b9e548b29aa23051f.bundle.js +2 -0
  40. package/dist/41453.cc7b9e548b29aa23051f.bundle.js.map +1 -0
  41. package/dist/42129.ea7309affc343caf1ca2.bundle.js +2 -0
  42. package/dist/42129.ea7309affc343caf1ca2.bundle.js.map +1 -0
  43. package/dist/42143.6c37997677f5ec643731.bundle.js +2 -0
  44. package/dist/42143.6c37997677f5ec643731.bundle.js.map +1 -0
  45. package/dist/44444.55a40d0bec02cb65abec.bundle.js +2 -0
  46. package/dist/44444.55a40d0bec02cb65abec.bundle.js.map +1 -0
  47. package/dist/{51087.b072d1c0e53403535283.bundle.js → 51087.1e118e7fe32a8c09d6cb.bundle.js} +2 -2
  48. package/dist/51087.1e118e7fe32a8c09d6cb.bundle.js.map +1 -0
  49. package/dist/{55217.4769c1f0615e364d8c2a.bundle.js → 55217.98a70cf01c4b7a826e82.bundle.js} +2 -2
  50. package/dist/55217.98a70cf01c4b7a826e82.bundle.js.map +1 -0
  51. package/dist/55862.d9d6d715b3ef7c42f98f.bundle.js +2 -0
  52. package/dist/55862.d9d6d715b3ef7c42f98f.bundle.js.map +1 -0
  53. package/dist/58306.d34210db8418c8e2ada5.bundle.js +2 -0
  54. package/dist/58306.d34210db8418c8e2ada5.bundle.js.map +1 -0
  55. package/dist/67232.ed4a76f2ed6ca5622502.bundle.js +2 -0
  56. package/dist/67232.ed4a76f2ed6ca5622502.bundle.js.map +1 -0
  57. package/dist/67888.351f27e70f183b0ed866.bundle.js +2 -0
  58. package/dist/67888.351f27e70f183b0ed866.bundle.js.map +1 -0
  59. package/dist/70938.c489d3ca5b00ad297139.bundle.js +2 -0
  60. package/dist/70938.c489d3ca5b00ad297139.bundle.js.map +1 -0
  61. package/dist/72379.53a484997d925adb2740.bundle.js +2 -0
  62. package/dist/72379.53a484997d925adb2740.bundle.js.map +1 -0
  63. package/dist/73667.4393561b33a20dcfa9c7.bundle.js +2 -0
  64. package/dist/73667.4393561b33a20dcfa9c7.bundle.js.map +1 -0
  65. package/dist/73793.4af5d04b7d2549d88c47.bundle.js +2 -0
  66. package/dist/73793.4af5d04b7d2549d88c47.bundle.js.map +1 -0
  67. package/dist/75282.fd7af7301abd1fbdb902.bundle.js +2 -0
  68. package/dist/75282.fd7af7301abd1fbdb902.bundle.js.map +1 -0
  69. package/dist/75849.a3bceb24c6c508086f31.bundle.js +2 -0
  70. package/dist/75849.a3bceb24c6c508086f31.bundle.js.map +1 -0
  71. package/dist/76013.9e71103dbb91bd9a558c.bundle.js +2 -0
  72. package/dist/76013.9e71103dbb91bd9a558c.bundle.js.map +1 -0
  73. package/dist/78250.291dc2a5a37971ff0e26.bundle.js +2 -0
  74. package/dist/78250.291dc2a5a37971ff0e26.bundle.js.map +1 -0
  75. package/dist/79329.3af551efaa9b79cb9ecd.bundle.js +2 -0
  76. package/dist/79329.3af551efaa9b79cb9ecd.bundle.js.map +1 -0
  77. package/dist/{82926.f625cc022724426fb8fb.bundle.js → 82926.e3185a54538c532c72ca.bundle.js} +2 -2
  78. package/dist/{82926.f625cc022724426fb8fb.bundle.js.map → 82926.e3185a54538c532c72ca.bundle.js.map} +1 -1
  79. package/dist/86142.04f4e4759998d4c37ccd.bundle.js +2 -0
  80. package/dist/86142.04f4e4759998d4c37ccd.bundle.js.map +1 -0
  81. package/dist/{86639.ab85108411ef0f006e10.bundle.js → 86639.d28da26b8f138f5eb19b.bundle.js} +2 -2
  82. package/dist/86639.d28da26b8f138f5eb19b.bundle.js.map +1 -0
  83. package/dist/89695.92f7a6ec9d8d3661a105.bundle.js +2 -0
  84. package/dist/89695.92f7a6ec9d8d3661a105.bundle.js.map +1 -0
  85. package/dist/9062.ffba00927452fd99ac05.bundle.js +2 -0
  86. package/dist/9062.ffba00927452fd99ac05.bundle.js.map +1 -0
  87. package/dist/99448.a99d92ecebfe54944813.bundle.js +2 -0
  88. package/dist/99448.a99d92ecebfe54944813.bundle.js.map +1 -0
  89. package/dist/i18n/locale-en.json +3 -2
  90. package/dist/i18n/locale-fr.json +3 -2
  91. package/dist/index.html +8 -8
  92. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  93. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  94. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  95. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  96. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  97. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  98. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  99. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  100. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  101. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  102. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  103. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  104. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  105. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  106. package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
  107. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  108. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  109. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  110. package/dist/js/angular/security/templates/user.html +2 -2
  111. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  112. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  113. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  114. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  115. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  116. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  117. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  118. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  119. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  120. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  121. package/dist/legacyWorkbench.7c89e10f5b13be36e507.js +3 -0
  122. package/dist/{legacyWorkbench.ad1d42d21ac42beabeb4.js.map → legacyWorkbench.7c89e10f5b13be36e507.js.map} +1 -1
  123. package/dist/{main.400f2248f076a2d31d80.js → main.69281239915ca9aecd6d.js} +3 -3
  124. package/dist/{main.400f2248f076a2d31d80.js.map → main.69281239915ca9aecd6d.js.map} +1 -1
  125. package/dist/pages/aclmanagement.html +2 -2
  126. package/dist/pages/autocomplete.html +1 -1
  127. package/dist/pages/choose-repository-type.html +1 -1
  128. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  129. package/dist/pages/create-index.html +1 -1
  130. package/dist/pages/dependencies.html +1 -1
  131. package/dist/pages/domainRangeInfo.html +2 -2
  132. package/dist/pages/edit.html +1 -1
  133. package/dist/pages/explore.html +1 -1
  134. package/dist/pages/export.html +1 -1
  135. package/dist/pages/find.html +1 -1
  136. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  137. package/dist/pages/graphs-visualizations.html +7 -7
  138. package/dist/pages/guides.html +1 -1
  139. package/dist/pages/import.html +2 -2
  140. package/dist/pages/jdbc-create.html +1 -1
  141. package/dist/pages/login.html +1 -1
  142. package/dist/pages/monitor/backup-and-restore.html +1 -1
  143. package/dist/pages/monitor/queries.html +1 -1
  144. package/dist/pages/monitor/resources.html +1 -1
  145. package/dist/pages/namespaces.html +2 -2
  146. package/dist/pages/not_found.html +1 -1
  147. package/dist/pages/plugins.html +1 -1
  148. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  149. package/dist/pages/rdfrank.html +2 -2
  150. package/dist/pages/repositories.html +1 -1
  151. package/dist/pages/repository.html +1 -1
  152. package/dist/pages/similarity-indexes.html +1 -1
  153. package/dist/pages/sparql-editor.html +1 -1
  154. package/dist/pages/sparql-template-create.html +1 -1
  155. package/dist/pages/ux-test1.html +2 -2
  156. package/dist/pages/webapi.html +2 -2
  157. package/dist/plugins.js +1 -1
  158. package/dist/res/swagger5/index.html +11 -11
  159. package/package.json +1 -1
  160. package/dist/12396.47201b3f37dcfe963353.bundle.js +0 -2
  161. package/dist/12396.47201b3f37dcfe963353.bundle.js.map +0 -1
  162. package/dist/15535.e3d3f8071a4cc462b5eb.bundle.js +0 -2
  163. package/dist/15535.e3d3f8071a4cc462b5eb.bundle.js.map +0 -1
  164. package/dist/16162.bc70365c3f546e70a3e9.bundle.js +0 -2
  165. package/dist/16162.bc70365c3f546e70a3e9.bundle.js.map +0 -1
  166. package/dist/20287.c3d0095a3a5f18cd0087.bundle.js +0 -2
  167. package/dist/20287.c3d0095a3a5f18cd0087.bundle.js.map +0 -1
  168. package/dist/21136.fb6d69cd9e6dd31a65b2.bundle.js +0 -2
  169. package/dist/21136.fb6d69cd9e6dd31a65b2.bundle.js.map +0 -1
  170. package/dist/21142.0589f58f1a3b49b4fcfa.bundle.js +0 -2
  171. package/dist/21142.0589f58f1a3b49b4fcfa.bundle.js.map +0 -1
  172. package/dist/21170.8126948c956555b4f9ff.bundle.js +0 -2
  173. package/dist/21170.8126948c956555b4f9ff.bundle.js.map +0 -1
  174. package/dist/21195.77df14ed68c1f286839a.bundle.js +0 -2
  175. package/dist/21195.77df14ed68c1f286839a.bundle.js.map +0 -1
  176. package/dist/25747.612b1bce6250300d137f.bundle.js +0 -2
  177. package/dist/25747.612b1bce6250300d137f.bundle.js.map +0 -1
  178. package/dist/27580.88bc1444d863327a3697.bundle.js +0 -2
  179. package/dist/27580.88bc1444d863327a3697.bundle.js.map +0 -1
  180. package/dist/31636.625df78d380dadd69c07.bundle.js +0 -2
  181. package/dist/31636.625df78d380dadd69c07.bundle.js.map +0 -1
  182. package/dist/32489.5f438460389d65300913.bundle.js +0 -2
  183. package/dist/32489.5f438460389d65300913.bundle.js.map +0 -1
  184. package/dist/34330.4b46c3a52d19f05fc0b2.bundle.js +0 -2
  185. package/dist/34330.4b46c3a52d19f05fc0b2.bundle.js.map +0 -1
  186. package/dist/34495.e0f8e26f32d7d8def627.bundle.js +0 -2
  187. package/dist/34495.e0f8e26f32d7d8def627.bundle.js.map +0 -1
  188. package/dist/38360.437a12fa59878d1d43b9.bundle.js.map +0 -1
  189. package/dist/38644.6e82d4276df028701834.bundle.js +0 -2
  190. package/dist/38644.6e82d4276df028701834.bundle.js.map +0 -1
  191. package/dist/38843.428e7caf2e6805840b83.bundle.js +0 -2
  192. package/dist/38843.428e7caf2e6805840b83.bundle.js.map +0 -1
  193. package/dist/39518.0ee809a85c83dba1f56a.bundle.js +0 -2
  194. package/dist/39518.0ee809a85c83dba1f56a.bundle.js.map +0 -1
  195. package/dist/39539.2a03bf4161ee846817d3.bundle.js +0 -2
  196. package/dist/39539.2a03bf4161ee846817d3.bundle.js.map +0 -1
  197. package/dist/41453.5370acf9540ff5382268.bundle.js +0 -2
  198. package/dist/41453.5370acf9540ff5382268.bundle.js.map +0 -1
  199. package/dist/42129.02f0b477c276dceb732c.bundle.js +0 -2
  200. package/dist/42129.02f0b477c276dceb732c.bundle.js.map +0 -1
  201. package/dist/42143.c11e5c28f2b8e9952dbb.bundle.js +0 -2
  202. package/dist/42143.c11e5c28f2b8e9952dbb.bundle.js.map +0 -1
  203. package/dist/44444.57b74adca89db793b77c.bundle.js +0 -2
  204. package/dist/44444.57b74adca89db793b77c.bundle.js.map +0 -1
  205. package/dist/51087.b072d1c0e53403535283.bundle.js.map +0 -1
  206. package/dist/55217.4769c1f0615e364d8c2a.bundle.js.map +0 -1
  207. package/dist/55862.81467f263f3c46d9d889.bundle.js +0 -2
  208. package/dist/55862.81467f263f3c46d9d889.bundle.js.map +0 -1
  209. package/dist/58306.0ca44cc562ab1135c44b.bundle.js +0 -2
  210. package/dist/58306.0ca44cc562ab1135c44b.bundle.js.map +0 -1
  211. package/dist/67232.e76f40f9d09e64ebb365.bundle.js +0 -2
  212. package/dist/67232.e76f40f9d09e64ebb365.bundle.js.map +0 -1
  213. package/dist/67888.cc78716f885f98366859.bundle.js +0 -2
  214. package/dist/67888.cc78716f885f98366859.bundle.js.map +0 -1
  215. package/dist/70938.6d0055f916f6d1bc91bb.bundle.js +0 -2
  216. package/dist/70938.6d0055f916f6d1bc91bb.bundle.js.map +0 -1
  217. package/dist/72379.4023fb8f5c0dd8f32faa.bundle.js +0 -2
  218. package/dist/72379.4023fb8f5c0dd8f32faa.bundle.js.map +0 -1
  219. package/dist/73667.6925315f2649c49bade2.bundle.js +0 -2
  220. package/dist/73667.6925315f2649c49bade2.bundle.js.map +0 -1
  221. package/dist/73793.0cd99844e3792d5beb8c.bundle.js +0 -2
  222. package/dist/73793.0cd99844e3792d5beb8c.bundle.js.map +0 -1
  223. package/dist/75282.1005c493f43b9d6dcc5a.bundle.js +0 -2
  224. package/dist/75282.1005c493f43b9d6dcc5a.bundle.js.map +0 -1
  225. package/dist/75849.39b30ee4eb2f1b35f762.bundle.js +0 -2
  226. package/dist/75849.39b30ee4eb2f1b35f762.bundle.js.map +0 -1
  227. package/dist/76013.3211939a02cf4fb2529e.bundle.js +0 -2
  228. package/dist/76013.3211939a02cf4fb2529e.bundle.js.map +0 -1
  229. package/dist/78250.8462f5662da1fd9ece0b.bundle.js +0 -2
  230. package/dist/78250.8462f5662da1fd9ece0b.bundle.js.map +0 -1
  231. package/dist/79329.cd81f51fd3aed8ca8359.bundle.js +0 -2
  232. package/dist/79329.cd81f51fd3aed8ca8359.bundle.js.map +0 -1
  233. package/dist/86142.c29959b68edc59a9b696.bundle.js +0 -2
  234. package/dist/86142.c29959b68edc59a9b696.bundle.js.map +0 -1
  235. package/dist/86639.ab85108411ef0f006e10.bundle.js.map +0 -1
  236. package/dist/89695.4ee87c52d4088115c51e.bundle.js +0 -2
  237. package/dist/89695.4ee87c52d4088115c51e.bundle.js.map +0 -1
  238. package/dist/9062.2b577ad9fc05b48b64a3.bundle.js +0 -2
  239. package/dist/9062.2b577ad9fc05b48b64a3.bundle.js.map +0 -1
  240. package/dist/99448.98a68cbf8bf84857b615.bundle.js +0 -2
  241. package/dist/99448.98a68cbf8bf84857b615.bundle.js.map +0 -1
  242. package/dist/legacyWorkbench.ad1d42d21ac42beabeb4.js +0 -3
  243. /package/dist/{legacyWorkbench.ad1d42d21ac42beabeb4.js.LICENSE.txt → legacyWorkbench.7c89e10f5b13be36e507.js.LICENSE.txt} +0 -0
  244. /package/dist/{main.400f2248f076a2d31d80.js.LICENSE.txt → main.69281239915ca9aecd6d.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=42143;export const __webpack_ids__=[42143];export const __webpack_modules__={42143:()=>{const e="guide.step-action.import-file";PluginRegistry.add("guide.step",[{guideBlockName:"import-upload-rdf-file",getSteps:(t,i)=>{const o=i.GuideUtils,l=i.toastr,r=i.$translate,n=i.$interpolate,c=i.EventEmitterService,s=o.getGuideElementSelector("import-settings-import-button");let m;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.import_rdf_file.content",class:"upload-rdf-file-button",...t.mainAction?{}:{title:e},...t,url:"import",elementSelector:o.getGuideElementSelector("uploadRdfFileButton"),advanceOn:void 0,show:e=>()=>{m=c.subscribe("filesForUploadSelected",i=>{(i.files||[]).some(e=>e.name===t.resourceFile)?o.isVisible(o.getGuideElementSelector("import-file-"+t.resourceFile))?o.getOrWaitFor(".confirm-duplicate-files-dialog").then(()=>e.next()):o.getOrWaitFor(s).then(()=>e.next()):i.cancel=!0})},hide:()=>()=>{m&&m()},onNextValidate:()=>Promise.allSettled([o.getOrWaitFor(".confirm-duplicate-files-dialog"),o.getOrWaitFor(o.getGuideElementSelector("import-file-"+t.resourceFile))]).then(([e,i])=>"rejected"!==e.status||"rejected"!==i.status||(o.noNextErrorToast(l,r,n,"guide.step_plugin.import_rdf_file.file-must-be-uploaded",t),!1)),onNextClick:e=>{o.getOrWaitFor(o.getGuideElementSelector("import-file-"+t.resourceFile)).then(e=>{e.click()}).catch(e=>{console.log(e)}).finally(()=>e.next())}}}]}},{guideBlockName:"import-confirm-duplicate-files",getSteps:(t,i)=>{const o=i.GuideUtils;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.import_rdf_file.confirm_duplicate_files_dialog.content",...t.mainAction?{}:{title:e},placement:"bottom",class:"import-file-button",...t,url:"import",elementSelector:o.getElementSelector(".confirm-duplicate-files-dialog .confirm-overwrite-btn"),skipFromHistory:!0,showOn:()=>o.isVisible(o.getElementSelector(".confirm-duplicate-files-dialog")),onNextClick:()=>o.clickOnElement(".confirm-duplicate-files-dialog .confirm-overwrite-btn")(),onPreviousClick:()=>o.isVisible(o.getElementSelector(".confirm-duplicate-files-dialog"))?o.clickOnElement(".confirm-duplicate-files-dialog .cancel-btn"):Promise.resolve()}}]}},{guideBlockName:"import-click-on-import-button",getSteps:(t,i)=>{const o=i.GuideUtils,l=o.getGuideElementSelector("import-settings-import-button");return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.import_rdf_file.import-settings.import.button.content",...t.mainAction?{}:{title:e},placement:"top",class:"import-settings-import-file-button",...t,elementSelector:l,onPreviousClick:()=>new Promise(function(e){o.clickOnGuideElement("import-settings-cancel-button")().then(()=>e())}),beforeShowPromise:()=>i.GuideUtils.deferredShow(300)().then(()=>o.getOrWaitFor(l,3).catch(e=>(i.toastr.error(i.$translate.instant("guide.unexpected.error.message")),Promise.reject(e)))),onNextClick:()=>o.clickOnGuideElement("import-settings-import-button")(),canBePaused:!1}}]}},{guideBlockName:"import-show-progress",getSteps:(t,i)=>{const o=i.GuideUtils;return[{guideBlockName:"read-only-element",options:{content:"guide.step_plugin.import_status_info.content",...t.mainAction?{}:{title:e},class:"import-status-info",...t,url:"import",elementSelector:".import-resource-message",beforeShowPromise:()=>o.isVisible(".import-resource-message")?Promise.resolve():o.waitFor(".import-resource-message",10),onPreviousClick:()=>o.getOrWaitFor(o.getGuideElementSelector("import-file-"+t.resourceFile),10).then(e=>{e.click()})}}]}},{guideBlockName:"import-rdf-file",getSteps:(e,t)=>{e.mainAction="import-file";const i=[{guideBlockName:"click-main-menu",options:angular.extend({},{menu:"import",showIntro:!0},e)}];return e.resourcePath&&i.push({guideBlockName:"download-guide-resource",options:angular.extend({},{title:""},e)}),i.push({guideBlockName:"import-upload-rdf-file",options:{...e}},{guideBlockName:"import-confirm-duplicate-files",options:{...e}},{guideBlockName:"import-click-on-import-button",options:{...e}},{guideBlockName:"import-show-progress",options:{...e}}),i}}])}};
2
- //# sourceMappingURL=42143.c11e5c28f2b8e9952dbb.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"42143.c11e5c28f2b8e9952dbb.bundle.js","mappings":"oHAAA,MAAMA,EAAiC,gCAEvCC,eAAeC,IAAI,aAAc,CAC7B,CACIC,eAAgB,yBAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WACt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mBA,IACXtD,EAAWyB,UAAU,4BACdO,QAAQoB,UAEZpD,EAAW2D,QAAQ,2BAA4B,IAE1DR,gBAAiBA,IAAMnD,EAAW0B,aAAa1B,EAAWM,wBAAwB,eAAiBR,EAAQ0B,cAAe,IACrHG,KAAMY,IAAcA,EAAQC,eAMnD,CACI5C,eAAgB,kBAChBC,SAAUA,CAACC,EAASC,KAChBD,EAAQY,WAAa,cAErB,MAAMkD,EAAQ,CACV,CACIhE,eAAgB,kBAChBE,QAAS+D,QAAQC,OAAO,CAAC,EAAG,CACxBC,KAAM,SACNC,WAAW,GACZlE,KAgCX,OA5BIA,EAAQmE,cACRL,EAAMM,KACF,CACItE,eAAgB,0BAChBE,QAAS+D,QAAQC,OAAO,CAAC,EAAG,CACxBnD,MAAO,IACRb,KAKf8D,EAAMM,KACF,CACItE,eAAgB,yBAA0BE,QAAS,IAAIA,IAI3D,CACIF,eAAgB,iCAAkCE,QAAS,IAAIA,IAEnE,CACIF,eAAgB,gCAAiCE,QAAS,IAAIA,IAElE,CACIF,eAAgB,uBAAwBE,QAAS,IAAIA,KAItD8D,K","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/import-rdf-file/plugin.js"],"sourcesContent":["const IMPORT_FILE_DEFAULT_STEP_TITLE = \"guide.step-action.import-file\";\n\nPluginRegistry.add('guide.step', [\n {\n guideBlockName: 'import-upload-rdf-file',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const toastr = services.toastr;\n const $translate = services.$translate;\n const $interpolate = services.$interpolate;\n const EventEmitterService = services.EventEmitterService;\n const importSettingsButtonSelector = GuideUtils.getGuideElementSelector('import-settings-import-button');\n let filesForUploadSelectedSubscription;\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.import_rdf_file.content',\n class: 'upload-rdf-file-button',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: IMPORT_FILE_DEFAULT_STEP_TITLE }),\n ...options,\n url: 'import',\n elementSelector: GuideUtils.getGuideElementSelector('uploadRdfFileButton'),\n // Disable default behavior of service when element is clicked.\n advanceOn: undefined,\n show: (guide) => () => {\n // Subscribes to event \"filesForUploadSelected\", when the step is showing, this will give opportunity\n // to canceling uploading if user not choose correct file.\n filesForUploadSelectedSubscription = EventEmitterService.subscribe('filesForUploadSelected', ((eventData) => {\n const uploadedFiles = eventData.files || [];\n if (uploadedFiles.some((uploadedFile) => uploadedFile.name === options.resourceFile)) {\n // When tha correct file is selected, the guide can continue.\n\n // Check for duplicated name, if import button for guide rdf data exist.\n if (GuideUtils.isVisible(GuideUtils.getGuideElementSelector('import-file-' + options.resourceFile))) {\n GuideUtils.getOrWaitFor('.confirm-duplicate-files-dialog')\n .then(() => guide.next());\n } else {\n GuideUtils.getOrWaitFor(importSettingsButtonSelector)\n .then(() => guide.next());\n }\n } else {\n // Canceling the automatic uploading of files\n // because the guide rdf file is not selected.\n eventData.cancel = true;\n }\n }));\n },\n hide: () => () => {\n if (filesForUploadSelectedSubscription) {\n filesForUploadSelectedSubscription();\n }\n },\n onNextValidate: () => {\n return Promise.allSettled([GuideUtils.getOrWaitFor('.confirm-duplicate-files-dialog'), GuideUtils.getOrWaitFor(GuideUtils.getGuideElementSelector('import-file-' + options.resourceFile))])\n .then(([confirmDialogPromise, importButtonPromise]) => {\n // There are two ways to exit this step:\n // if the duplication dialog is opened\n // or if the import button for the guide file is displayed.\n // The first scenario indicates that the user is trying to upload the same file,\n // while the second scenario suggests\n // that the guide has been started more than once.\n if ('rejected' === confirmDialogPromise.status && 'rejected' === importButtonPromise.status) {\n GuideUtils.noNextErrorToast(toastr, $translate, $interpolate, 'guide.step_plugin.import_rdf_file.file-must-be-uploaded', options);\n return false;\n }\n return true;\n });\n },\n onNextClick: (guide) => {\n GuideUtils.getOrWaitFor(GuideUtils.getGuideElementSelector('import-file-' + options.resourceFile))\n .then((element) => {\n // If we have file import button for the guide rdf file,\n // this indicates that we go through this step for the second time.\n // This can happen if the user starts the guide for the second time.\n element.click();\n })\n .catch((error) => {\n // This shouldn't be happening.\n console.log(error);\n })\n .finally(() => guide.next());\n }\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'import-confirm-duplicate-files',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.import_rdf_file.confirm_duplicate_files_dialog.content',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: IMPORT_FILE_DEFAULT_STEP_TITLE }),\n placement: 'bottom',\n class: 'import-file-button',\n ...options,\n url: 'import',\n elementSelector: GuideUtils.getElementSelector('.confirm-duplicate-files-dialog .confirm-overwrite-btn'),\n skipFromHistory: true,\n // Checks whether the confirm dialog is currently open.\n showOn: () => GuideUtils.isVisible(GuideUtils.getElementSelector('.confirm-duplicate-files-dialog')),\n onNextClick: () => GuideUtils.clickOnElement('.confirm-duplicate-files-dialog .confirm-overwrite-btn')(),\n onPreviousClick: () => {\n if (GuideUtils.isVisible(GuideUtils.getElementSelector('.confirm-duplicate-files-dialog'))) {\n return GuideUtils.clickOnElement('.confirm-duplicate-files-dialog .cancel-btn');\n }\n return Promise.resolve();\n }\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'import-click-on-import-button',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const importSettingsButtonSelector = GuideUtils.getGuideElementSelector('import-settings-import-button');\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.import_rdf_file.import-settings.import.button.content',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: IMPORT_FILE_DEFAULT_STEP_TITLE }),\n placement: 'top',\n class: 'import-settings-import-file-button',\n ...options,\n elementSelector: importSettingsButtonSelector,\n onPreviousClick: () => new Promise(function (resolve) {\n GuideUtils.clickOnGuideElement('import-settings-cancel-button')()\n .then(() => resolve());\n }),\n beforeShowPromise: () => services.GuideUtils.deferredShow(300)()\n .then(() => GuideUtils.getOrWaitFor(importSettingsButtonSelector, 3)\n .catch((error) => {\n services.toastr.error(services.$translate.instant('guide.unexpected.error.message'));\n return Promise.reject(error);\n })\n ),\n onNextClick: () => GuideUtils.clickOnGuideElement('import-settings-import-button')(),\n canBePaused: false\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'import-show-progress',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'read-only-element',\n options: {\n content: 'guide.step_plugin.import_status_info.content',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: IMPORT_FILE_DEFAULT_STEP_TITLE }),\n class: 'import-status-info',\n ...options,\n url: 'import',\n elementSelector: '.import-resource-message',\n beforeShowPromise: () => {\n if (GuideUtils.isVisible('.import-resource-message')) {\n return Promise.resolve();\n }\n return GuideUtils.waitFor('.import-resource-message', 10);\n },\n onPreviousClick: () => GuideUtils.getOrWaitFor(GuideUtils.getGuideElementSelector('import-file-' + options.resourceFile), 10)\n .then((element) => { element.click() })\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'import-rdf-file',\n getSteps: (options, services) => {\n options.mainAction = 'import-file';\n\n const steps = [\n {\n guideBlockName: 'click-main-menu',\n options: angular.extend({}, {\n menu: 'import',\n showIntro: true\n }, options)\n }\n ];\n\n if (options.resourcePath) {\n steps.push(\n {\n guideBlockName: 'download-guide-resource',\n options: angular.extend({}, {\n title: ''\n }, options)\n }\n );\n }\n\n steps.push(...[\n {\n guideBlockName: 'import-upload-rdf-file', options: {...options}\n },\n // This step is optional and will only appear if the file we want to upload has already been uploaded.\n // If the file is already uploaded, a confirmation dialog will be opened, and this step will display the confirm button of the dialog.\n {\n guideBlockName: 'import-confirm-duplicate-files', options: {...options}\n },\n {\n guideBlockName: 'import-click-on-import-button', options: {...options}\n },\n {\n guideBlockName: 'import-show-progress', options: {...options}\n }\n ]);\n\n return steps;\n }\n }\n]);\n"],"names":["IMPORT_FILE_DEFAULT_STEP_TITLE","PluginRegistry","add","guideBlockName","getSteps","options","services","GuideUtils","toastr","$translate","$interpolate","EventEmitterService","importSettingsButtonSelector","getGuideElementSelector","filesForUploadSelectedSubscription","content","class","mainAction","title","url","elementSelector","advanceOn","undefined","show","guide","subscribe","eventData","files","some","uploadedFile","name","resourceFile","isVisible","getOrWaitFor","then","next","cancel","hide","onNextValidate","Promise","allSettled","confirmDialogPromise","importButtonPromise","status","noNextErrorToast","onNextClick","element","click","catch","error","console","log","finally","placement","getElementSelector","skipFromHistory","showOn","clickOnElement","onPreviousClick","resolve","clickOnGuideElement","beforeShowPromise","deferredShow","instant","reject","canBePaused","waitFor","steps","angular","extend","menu","showIntro","resourcePath","push"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=44444;export const __webpack_ids__=[44444];export const __webpack_modules__={44444:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s='<link href="css/ttyg/no-agents-view.css?v=3.1.1" rel="stylesheet"/> <div class="no-agents-view-component" data-test="no-agents-view-component"> <div class="content"> <div class="alert alert-help mb-3" data-test="ttyg-info-message" ng-bind-html="\'ttyg.agent.messages.help_1\' | translate | trustAsHtml"></div> <div class="alert alert-help mb-3" data-test="ttyg-agent-message" ng-bind-html="\'ttyg.agent.messages.help_2\' | translate | trustAsHtml"></div> <div class="actions"> <button class="btn btn-outline-primary btn-lg text-xs-left create-agent-btn" gdb-tooltip="{{!canModifyAgent ? (\'ttyg.agent.fat_btn.create_agent.tooltip_disabled\' | translate) : \'\'}}" ng-disabled="!canModifyAgent" ng-click="onCreateAgent()" guide-selector="create-agent-btn"> <i class="fa fa-message-bot fa-xl"></i> <span class="text">{{\'ttyg.agent.fat_btn.create_agent.label\' | translate}}</span> </button> </div> <div class="alert alert-warning mt-3" data-test="ttyg-api-key-message"> <div ng-bind-html="\'ttyg.agent.messages.help_config\' | translate: {talkToGraphDocumentationLink: talkToGraphDocumentationLink} | trustAsHtml"></div> </div> </div> </div> '}};
2
- //# sourceMappingURL=44444.57b74adca89db793b77c.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"44444.57b74adca89db793b77c.bundle.js","mappings":"uJAGA,QAFW,unC","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/ttyg/templates/no-agents-view.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/ttyg/no-agents-view.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"no-agents-view-component\" data-test=\"no-agents-view-component\"> <div class=\"content\"> <div class=\"alert alert-help mb-3\" data-test=\"ttyg-info-message\" ng-bind-html=\"'ttyg.agent.messages.help_1' | translate | trustAsHtml\"></div> <div class=\"alert alert-help mb-3\" data-test=\"ttyg-agent-message\" ng-bind-html=\"'ttyg.agent.messages.help_2' | translate | trustAsHtml\"></div> <div class=\"actions\"> <button class=\"btn btn-outline-primary btn-lg text-xs-left create-agent-btn\" gdb-tooltip=\"{{!canModifyAgent ? ('ttyg.agent.fat_btn.create_agent.tooltip_disabled' | translate) : ''}}\" ng-disabled=\"!canModifyAgent\" ng-click=\"onCreateAgent()\" guide-selector=\"create-agent-btn\"> <i class=\"fa fa-message-bot fa-xl\"></i> <span class=\"text\">{{'ttyg.agent.fat_btn.create_agent.label' | translate}}</span> </button> </div> <div class=\"alert alert-warning mt-3\" data-test=\"ttyg-api-key-message\"> <div ng-bind-html=\"'ttyg.agent.messages.help_config' | translate: {talkToGraphDocumentationLink: talkToGraphDocumentationLink} | trustAsHtml\"></div> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"51087.b072d1c0e53403535283.bundle.js","mappings":"oHAAA,MAAMA,EAAyB,mCACzBC,EAAwB,eAE9BC,eAAeC,IAAI,aAAc,CAC7B,CACIC,eAAgB,oBAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WAC5B,MAAO,CACH,CACIJ,eAAgB,gBAChBE,QAAS,CACLG,QAAS,qDAELH,EAAQI,WAAa,CAAC,EAAI,CAACC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,GACtBtC,EAAQuC,aAAc,EAEtB,MAAMC,EAAUxC,EAAQwC,QAClBC,EAAczC,EAAQyC,YACtBC,EAAgB1C,EAAQ0C,cAExBC,EAAQ,CACV,CACI7C,eAAgB,oBAAqBE,QAAS,IAAIA,EAAS4C,WAAW,KA4B9E,OAxBIJ,GACAG,EAAME,KACF,CACI/C,eAAgB,wBAAyBE,QAAS,IAAIA,KAK9DwC,GAAWE,GACXC,EAAME,KACF,CACI/C,eAAgB,gCAAiCE,QAAS,IAAIA,KAKtEwC,GAAWC,GACXE,EAAME,KACF,CACI/C,eAAgB,+BAAgCE,QAAS,IAAIA,KAKlE2C,MAKnB,MAAMlB,EAAuBA,CAACvB,EAAYF,KAC/B,CACHF,eAAgB,6BAChBE,QAAS4B,QAAQC,OAAO,CAAC,EAAG,CACxB1B,QAAS,mDACTG,MAAO,kBACPE,IAAK,OACLsC,UAAW,OACXrC,gBAAiBP,EAAWQ,wBAAwBf,GACpDoD,sBAAuB7C,EAAWQ,wBAAwB,oBAC3DV,I","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/ttyg/ask-ttyg-agent/plugin.js"],"sourcesContent":["const TTYG_ASK_DEFAULT_TITLE = 'guide.step-action.ask-ttyg-agent';\nconst CHAT_DETAILS_SELECTOR = 'chat-details';\n\nPluginRegistry.add('guide.step', [\n {\n guideBlockName: 'ttyg-ask-question',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'input-element',\n options: {\n content: `guide.step_plugin.ask-ttyg-agent.input-question`,\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : {title: TTYG_ASK_DEFAULT_TITLE}),\n class: 'input-question',\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector: GuideUtils.getGuideElementSelector('question-input'),\n show: (guide) => () => {\n const elementSelector = GuideUtils.getGuideElementSelector('contenteditable');\n\n // Add \"keydown\" listener to the element.\n // The question-input directive listens for \"Enter\" keypress to trigger question asking.\n // When enter is pressed, proceed with next step.\n // Using 'keydown' to trigger before the directive 'keypress', which clears the value.\n $(elementSelector).on('keydown', (event) => {\n const value = $(elementSelector).text();\n\n if (value && event.key === 'Enter' && !event.shiftKey && !event.ctrlKey) {\n GuideUtils.waitFor(GuideUtils.getGuideElementSelector(CHAT_DETAILS_SELECTOR))\n .then(() => guide.next());\n }\n });\n },\n hide: () => () => {\n const elementSelector = GuideUtils.getGuideElementSelector('contenteditable');\n // Remove the \"keydown\" listener of the element. It is important when the step is hidden.\n $(elementSelector).off('keydown');\n },\n },\n },\n getWaitForAnswerStep(GuideUtils, options),\n ];\n },\n },\n {\n guideBlockName: 'ttyg-explain-response',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const explainBtnSelector = GuideUtils.getLastGuideElementSelector('explain-response-btn');\n const elementSelector = GuideUtils.getLastGuideElementSelector('chat-item', explainBtnSelector);\n return [\n {\n // If button is not visible for some reason, skip the whole step\n guideBlockName: 'info-message',\n options: angular.extend({}, {\n url: 'ttyg',\n beforeShowPromise: (guide, currentStep) => GuideUtils.waitFor(elementSelector, 1)\n .then(() => {\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.next());\n })\n .catch(() => {\n const stepId = currentStep.id;\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.show(stepId + 3));\n }),\n }, options),\n },\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.ask-ttyg-agent.explain-answer',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : {title: TTYG_ASK_DEFAULT_TITLE}),\n class: 'explain-answer',\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector,\n },\n },\n getWaitForAnswerStep(GuideUtils, options),\n ];\n },\n },\n {\n guideBlockName: 'ttyg-ask-agent-explore-sparql',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const exploreSparqlBtnSelector = GuideUtils.getLastGuideElementSelector('open-in-sparql-editor-btn');\n const elementSelector = GuideUtils.getLastGuideElementSelector('chat-item', exploreSparqlBtnSelector);\n\n return [\n {\n // If button is not visible for some reason, skip the whole step\n guideBlockName: 'info-message',\n options: angular.extend({}, {\n url: 'ttyg',\n beforeShowPromise: (guide, currentStep) => GuideUtils.waitFor(elementSelector, 1)\n .then(() => {\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.next());\n })\n .catch(() => {\n const stepId = currentStep.id;\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.show(stepId + 2));\n }),\n }, options),\n },\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.ask-ttyg-agent.explore-sparql',\n class: 'explore-sparql',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : {title: TTYG_ASK_DEFAULT_TITLE}),\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector,\n },\n },\n ];\n },\n },\n {\n guideBlockName: 'ttyg-ask-explain-answer-more',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const explainMoreBtnSelector = GuideUtils.getLastGuideElementSelector('how-derive-answer-btn');\n const elementSelector = GuideUtils.getLastGuideElementSelector('chat-item', explainMoreBtnSelector);\n return [\n {\n // If button is not visible for some reason, skip the whole step\n guideBlockName: 'info-message',\n options: angular.extend({}, {\n url: 'ttyg',\n beforeShowPromise: (guide, currentStep) => {\n return GuideUtils.waitFor(elementSelector, 1)\n .then(() => {\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.next());\n })\n .catch(() => {\n const stepId = currentStep.id;\n // Using a timeout because the library executes logic to show the step in a then clause which causes current and next steps to show\n setTimeout(() => guide.show(stepId + 3));\n });\n },\n }, options),\n },\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.ask-ttyg-agent.explain-answer-more',\n class: 'input-agent-name',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : {title: TTYG_ASK_DEFAULT_TITLE}),\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector,\n show: (guide) => () => {\n // Add \"click\" listener to the element. Upon clicking the element is hidden and this breaks the default flow of the guide.\n // Adding a handler to proceed to next step\n $(elementSelector).on('click', () => {\n guide.next();\n });\n },\n hide: () => () => {\n // Remove the \"click\" listener of element. It is important when step is hidden.\n $(elementSelector).off('click');\n },\n },\n },\n getWaitForAnswerStep(GuideUtils, options),\n ];\n },\n },\n {\n guideBlockName: 'ask-ttyg-agent',\n getSteps: (options) => {\n options.mainAction = 'ask-ttyg-agent';\n options.maxWaitTime = 10;\n options.forceReload = false;\n\n const explain = options.explain;\n const explainMore = options.explainMore;\n const exploreSparql = options.exploreSparql;\n\n const steps = [\n {\n guideBlockName: 'ttyg-ask-question', options: {...options, skipPoint: true},\n },\n ];\n\n if (explain) {\n steps.push(\n {\n guideBlockName: 'ttyg-explain-response', options: {...options},\n },\n );\n }\n\n if (explain && exploreSparql) {\n steps.push(\n {\n guideBlockName: 'ttyg-ask-agent-explore-sparql', options: {...options},\n },\n );\n }\n\n if (explain && explainMore) {\n steps.push(\n {\n guideBlockName: 'ttyg-ask-explain-answer-more', options: {...options},\n },\n );\n }\n\n return steps;\n },\n },\n]);\n\nconst getWaitForAnswerStep = (GuideUtils, options) => {\n return {\n guideBlockName: 'hold-and-wait-until-hidden',\n options: angular.extend({}, {\n content: 'guide.step_plugin.ask-ttyg-agent.wait-for-answer',\n class: 'wait-for-answer',\n url: 'ttyg',\n placement: 'left',\n elementSelector: GuideUtils.getGuideElementSelector(CHAT_DETAILS_SELECTOR),\n elementSelectorToWait: GuideUtils.getGuideElementSelector('question-loader'),\n }, options),\n };\n};\n"],"names":["TTYG_ASK_DEFAULT_TITLE","CHAT_DETAILS_SELECTOR","PluginRegistry","add","guideBlockName","getSteps","options","services","GuideUtils","content","mainAction","title","class","disableNextFlow","url","elementSelector","getGuideElementSelector","show","guide","$","on","event","text","key","shiftKey","ctrlKey","waitFor","then","next","hide","off","getWaitForAnswerStep","explainBtnSelector","getLastGuideElementSelector","angular","extend","beforeShowPromise","currentStep","setTimeout","catch","stepId","id","exploreSparqlBtnSelector","explainMoreBtnSelector","maxWaitTime","forceReload","explain","explainMore","exploreSparql","steps","skipPoint","push","placement","elementSelectorToWait"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"55217.4769c1f0615e364d8c2a.bundle.js","mappings":"oHAAAA,eAAeC,IAAI,aAAc,CAC7B,CACIC,eAAgB,kBAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WACtBC,EAAQ,GAEd,IAAIC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAAkB,GAClBC,EAAqB,GAEzB,OAAQX,EAAQY,MACZ,IAAK,eACDR,EAAe,aACfC,EAAY,mBACZK,EAAkB,aAClBJ,EAAkB,wBAClBC,EAAe,0BACfI,EAAqB,wBACrBH,EAAW,0BACXC,EAAW,6BAEX,MACJ,IAAK,SACDL,EAAe,cACfC,EAAY,gBACZK,EAAkB,cAClBF,EAAW,gBACXC,EAAW,uBAEX,MACJ,IAAK,aACDL,EAAe,aACfC,EAAY,mBACZK,EAAkB,0BAClBJ,EAAkB,sBAClBC,EAAe,wBACfI,EAAqB,mCACrBH,EAAW,kCACXC,EAAW,qCAEX,MACJ,IAAK,eACDL,EAAe,aACfC,EAAY,mBACZK,EAAkB,aAClBJ,EAAkB,wBAClBC,EAAe,0BACfI,EAAqB,wBACrBH,EAAW,0BACXC,EAAW,6BAEX,MACJ,IAAK,eACDL,EAAe,eACfC,EAAY,qBACZK,EAAkB,eAClBJ,EAAkB,wBAClBC,EAAe,qBACfI,EAAqB,wBACrBH,EAAW,qBACXC,EAAW,6BAEX,MACJ,IAAK,SACDL,EAAe,cACfC,EAAY,oBACZK,EAAkB,cAClBF,EAAW,2BACXC,EAAW,8BAEX,MACJ,IAAK,kBACDL,EAAe,eAC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QAAQ6B,iBAAiB5B,EAAU8B,EAAa/B,QAAQkC,IAGzEC,QAAQC,cAEhBpC,KAIPM,GACAH,EAAMa,KAAK,CACPlB,eAAgB,oBAChBE,QAAS,CACLiB,QAAS,6BACTI,aAAcd,EACde,MAAOX,EACPY,gBAAiBrB,EAAWsB,wBAAwBlB,GACpD+B,UAAW,QACXC,aAAa,EACbV,YAAa1B,EAAWyB,oBAAoBrB,EAAiB,MAC7DuB,iBAAkBA,CAAC5B,EAAU6B,KACzB,MAAMC,EAAe9B,EAAS+B,gBAAgBC,2BAA2BH,GACzE,OAAIC,EACOA,EAAa/B,QAAQ6B,iBAAiB5B,EAAU8B,EAAa/B,QAAQkC,IAGzEC,QAAQC,cAEhBpC,KAIRG,K","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/main-menu/plugin.js"],"sourcesContent":["PluginRegistry.add('guide.step', [\n {\n guideBlockName: 'click-main-menu',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const steps = [];\n\n let menuSelector;\n let menuTitle;\n let submenuSelector;\n let submenuTitle;\n let viewName;\n let helpInfo;\n let menuDialogClass = '';\n let submenuDialogClass = '';\n\n switch (options.menu) {\n case \"repositories\":\n menuSelector = 'menu-setup';\n menuTitle = 'menu.setup.label';\n menuDialogClass = 'menu-setup';\n submenuSelector = 'sub-menu-repositories';\n submenuTitle = 'menu.repositories.label';\n submenuDialogClass = 'sub-menu-repositories';\n viewName = 'menu.repositories.label';\n helpInfo = 'view.repositories.helpInfo';\n\n break;\n case \"import\":\n menuSelector = 'menu-import';\n menuTitle = 'common.import';\n menuDialogClass = 'menu-import';\n viewName = 'common.import';\n helpInfo = 'view.import.helpInfo';\n\n break;\n case \"connectors\":\n menuSelector = 'menu-setup';\n menuTitle = 'menu.setup.label';\n menuDialogClass = 'menu-setup-guide-dialog';\n submenuSelector = 'sub-menu-connectors';\n submenuTitle = 'menu.connectors.label';\n submenuDialogClass = 'sub-menu-connectors-guide-dialog';\n viewName = 'view.connector.management.title';\n helpInfo = 'view.connector.management.helpInfo';\n\n break;\n case \"autocomplete\":\n menuSelector = 'menu-setup';\n menuTitle = 'menu.setup.label';\n menuDialogClass = 'menu-setup';\n submenuSelector = 'sub-menu-autocomplete';\n submenuTitle = 'menu.autocomplete.label';\n submenuDialogClass = 'sub-menu-autocomplete';\n viewName = 'view.autocomplete.title';\n helpInfo = 'view.autocomplete.helpInfo';\n\n break;\n case \"visual-graph\":\n menuSelector = 'menu-explore';\n menuTitle = 'menu.explore.label';\n menuDialogClass = 'menu-explore';\n submenuSelector = 'sub-menu-visual-graph';\n submenuTitle = 'visual.graph.label';\n submenuDialogClass = 'sub-menu-visual-graph';\n viewName = 'visual.graph.label';\n helpInfo = 'view.visual.graph.helpInfo';\n\n break;\n case \"sparql\":\n menuSelector = 'menu-sparql';\n menuTitle = 'menu.sparql.label';\n menuDialogClass = 'menu-sparql';\n viewName = 'view.sparql-editor.title';\n helpInfo = 'view.sparql-editor.helpInfo';\n\n break;\n case \"class-hierarchy\":\n menuSelector = 'menu-explore';\n menuTitle = 'menu.explore.label';\n menuDialogClass = 'menu-explore';\n submenuSelector = 'menu-class-hierarchy';\n submenuTitle = 'menu.class.hierarchy.label';\n submenuDialogClass = 'sub-menu-class-hierarchy';\n viewName = 'view.class.hierarchy.title';\n helpInfo = 'view.class.hierarchy.helpInfo';\n\n break;\n case \"class-relationships\":\n menuSelector = 'menu-explore';\n menuTitle = 'menu.explore.label';\n menuDialogClass = 'menu-explore';\n submenuSelector = 'sub-menu-class-relationships';\n submenuTitle = 'menu.class.relationships.label';\n submenuDialogClass = 'sub-menu-class-relationships';\n viewName = 'view.class.relationships.title';\n helpInfo = 'view.class.relationships.helpInfo';\n\n break;\n case \"ttyg\":\n menuSelector = 'menu-lab';\n menuTitle = 'menu.lab.label';\n menuDialogClass = 'menu-lab';\n submenuSelector = 'sub-menu-ttyg';\n submenuTitle = 'menu.ttyg.label';\n submenuDialogClass = 'sub-menu-ttyg';\n viewName = 'menu.ttyg.label';\n helpInfo = 'ttyg.helpInfo';\n\n break;\n case \"similarity\":\n menuSelector = 'menu-explore';\n menuTitle = 'menu.explore.label';\n menuDialogClass = 'menu-explore';\n submenuSelector = 'sub-menu-similarity';\n submenuTitle = 'menu.similarity.label';\n submenuDialogClass = 'sub-menu-similarity';\n viewName = 'menu.similarity.label';\n helpInfo = 'guide.step-help-info.create-similarity-index';\n break;\n case \"rdf-rank\":\n menuSelector = 'menu-setup';\n menuTitle = 'menu.setup.label';\n menuDialogClass = 'menu-setup';\n submenuSelector = 'sub-menu-rdf-rank';\n submenuTitle = 'view.rdf.rank.title';\n submenuDialogClass = 'sub-menu-rdf-rank';\n viewName = 'view.rdf.rank.title';\n helpInfo = 'view.rdf.rank.helpInfo';\n break;\n }\n\n const mainMenuClickElementPostSelector = submenuSelector ? ' div' : ' a';\n options.viewName = viewName;\n\n // View intro element\n if (options.showIntro && options.mainAction) {\n steps.push({\n guideBlockName: 'info-message',\n options: {\n content: 'guide.step-intro.' + options.mainAction,\n extraContent: helpInfo,\n extraContentClass: 'alert alert-help text-left',\n skipPoint: true,\n ...options\n }\n });\n }\n\n // Main menu element\n steps.push({\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step-menu.click-menu',\n menuLabelKey: menuTitle,\n class: menuDialogClass,\n elementSelector: GuideUtils.getGuideElementSelector(menuSelector),\n showOn: () => {\n // If submenu is visible this mean that we have to close menu.\n if (!!submenuSelector && GuideUtils.isGuideElementVisible(submenuSelector)) {\n GuideUtils.clickOnGuideElement(menuSelector, mainMenuClickElementPostSelector)();\n }\n return true;\n },\n onNextClick: GuideUtils.clickOnGuideElement(menuSelector, mainMenuClickElementPostSelector),\n initPreviousStep: (services, stepId) => {\n const previousStep = services.ShepherdService.getPreviousStepFromHistory(stepId);\n if (previousStep) {\n return previousStep.options.initPreviousStep(services, previousStep.options.id);\n }\n\n return Promise.resolve();\n },\n ...options\n }\n });\n\n if (submenuSelector) {\n steps.push({\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step-menu.click-menu',\n menuLabelKey: submenuTitle,\n class: submenuDialogClass,\n elementSelector: GuideUtils.getGuideElementSelector(submenuSelector),\n placement: 'right',\n canBePaused: false,\n onNextClick: GuideUtils.clickOnGuideElement(submenuSelector, ' a'),\n initPreviousStep: (services, stepId) => {\n const previousStep = services.ShepherdService.getPreviousStepFromHistory(stepId);\n if (previousStep) {\n return previousStep.options.initPreviousStep(services, previousStep.options.id);\n }\n\n return Promise.resolve();\n },\n ...options\n }\n });\n }\n return steps;\n }\n }\n]);\n"],"names":["PluginRegistry","add","guideBlockName","getSteps","options","services","GuideUtils","steps","menuSelector","menuTitle","submenuSelector","submenuTitle","viewName","helpInfo","menuDialogClass","submenuDialogClass","menu","mainMenuClickElementPostSelector","showIntro","mainAction","push","content","extraContent","extraContentClass","skipPoint","menuLabelKey","class","elementSelector","getGuideElementSelector","showOn","isGuideElementVisible","clickOnGuideElement","onNextClick","initPreviousStep","stepId","previousStep","ShepherdService","getPreviousStepFromHistory","id","Promise","resolve","placement","canBePaused"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=55862;export const __webpack_ids__=[55862];export const __webpack_modules__={55862:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});const t='<link href="css/graphql/endpoint-generation-failure-result-modal.css?v=3.1.1" rel="stylesheet"/> <div class="modal-header"> <button type="button" class="close" ng-click="close()"></button> <h3 class="modal-title"> {{\'graphql.endpoints_management.generation_failure_report_modal.title\' | translate}}</h3> </div> <div class="modal-body endpoint-generation-failure-result-modal-body"> <div ng-if="endpointReport.errors > 0" class="alert alert-danger"> {{\'graphql.endpoints_management.generation_failure_report_modal.failing_reason_message\' | translate}} </div> <div ng-if="endpointReport.warnings > 0 && endpointReport.errors === 0" class="alert alert-info"> {{\'graphql.endpoints_management.generation_failure_report_modal.warning_reason_message\' | translate}} </div> <table class="report table table-bordered" aria-label="Endpoint generation failure report table"> <thead> <tr class="labels-row"> <th scope="col"> <strong class="errors-count mr-2">{{\'graphql.endpoints_management.generation_failure_report_modal.errors\' | translate: {errorCount: endpointReport.errors} }}</strong> <strong class="warnings-count">{{\'graphql.endpoints_management.generation_failure_report_modal.warnings\' | translate: {warningCount: endpointReport.warnings} }}</strong> </th> </tr> </thead> <tbody> <tr ng-repeat="error in endpointReport.messages.errors" class="error-row"> <td> <div class="alert alert-danger">{{error}}</div> </td> </tr> <tr ng-repeat="warning in endpointReport.messages.warnings" class="warning-row"> <td> <div class="alert alert-warning">{{warning}}</div> </td> </tr> </tbody> </table> </div> <div class="modal-footer mt-0"> <button id="download-failure-report" class="btn btn-secondary mr-1" ng-click="downloadReport()"> <i class="fa fa-arrow-down-to-line"></i> <span>{{\'graphql.endpoints_management.generation_failure_report_modal.actions.download_report.label\' | translate}}</span> </button> <button ng-if="endpointReport.errors === 0 && endpointReport.warnings > 0" id="delete-warnings" class="btn btn-primary" ng-click="deleteReport()"> <span>{{\'graphql.endpoints_management.generation_failure_report_modal.actions.delete_report.label\' | translate}}</span> </button> </div> '}};
2
- //# sourceMappingURL=55862.81467f263f3c46d9d889.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"55862.81467f263f3c46d9d889.bundle.js","mappings":"uJAGA,QAFW,kpE","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/graphql/endpoint-generation-failure-result-modal.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" ng-click=\"close()\"></button> <h3 class=\"modal-title\"> {{'graphql.endpoints_management.generation_failure_report_modal.title' | translate}}</h3> </div> <div class=\"modal-body endpoint-generation-failure-result-modal-body\"> <div ng-if=\"endpointReport.errors > 0\" class=\"alert alert-danger\"> {{'graphql.endpoints_management.generation_failure_report_modal.failing_reason_message' | translate}} </div> <div ng-if=\"endpointReport.warnings > 0 && endpointReport.errors === 0\" class=\"alert alert-info\"> {{'graphql.endpoints_management.generation_failure_report_modal.warning_reason_message' | translate}} </div> <table class=\"report table table-bordered\" aria-label=\"Endpoint generation failure report table\"> <thead> <tr class=\"labels-row\"> <th scope=\"col\"> <strong class=\"errors-count mr-2\">{{'graphql.endpoints_management.generation_failure_report_modal.errors' | translate: {errorCount: endpointReport.errors} }}</strong> <strong class=\"warnings-count\">{{'graphql.endpoints_management.generation_failure_report_modal.warnings' | translate: {warningCount: endpointReport.warnings} }}</strong> </th> </tr> </thead> <tbody> <tr ng-repeat=\"error in endpointReport.messages.errors\" class=\"error-row\"> <td> <div class=\"alert alert-danger\">{{error}}</div> </td> </tr> <tr ng-repeat=\"warning in endpointReport.messages.warnings\" class=\"warning-row\"> <td> <div class=\"alert alert-warning\">{{warning}}</div> </td> </tr> </tbody> </table> </div> <div class=\"modal-footer mt-0\"> <button id=\"download-failure-report\" class=\"btn btn-secondary mr-1\" ng-click=\"downloadReport()\"> <i class=\"fa fa-arrow-down-to-line\"></i> <span>{{'graphql.endpoints_management.generation_failure_report_modal.actions.download_report.label' | translate}}</span> </button> <button ng-if=\"endpointReport.errors === 0 && endpointReport.warnings > 0\" id=\"delete-warnings\" class=\"btn btn-primary\" ng-click=\"deleteReport()\"> <span>{{'graphql.endpoints_management.generation_failure_report_modal.actions.delete_report.label' | translate}}</span> </button> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=58306;export const __webpack_ids__=[58306];export const __webpack_modules__={58306:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});const n='<link href="css/ttyg/ttyg.css?v=3.1.1" rel="stylesheet"/> <div class="ttyg-view" ng-class="{\'help-visible\': isHelpVisible}"> <h1 id="ttyg-view-title"> {{ title }} <page-info-tooltip></page-info-tooltip> </h1> <div core-errors></div> <div uib-collapse="!isHelpVisible" class="alert alert-info"> <button type="button" ng-click="isHelpVisible = false" gdb-tooltip="{{\'common.close\' | translate}}" class="close" aria-label="Close"></button> <div ng-include="helpTemplateUrl"></div> </div> <div onto-loader-new ng-show="loadingAgents" class="ttyg-page-loader" size="100"> </div> <no-agents-view ng-cloak ng-if="initialized && getActiveRepository() && !loadingAgents && !reloadingAgents && (!agents || agents.isEmpty())"></no-agents-view> <div id="ttyg-container" class="ttyg-container" ng-show="getActiveRepository() && !loadingAgents && agents && !agents.isEmpty()"> <div id="left-sidebar" class="left-sidebar sidebar" ng-class="showChats ? \'expanded\' : \'collapsed\'"> <div class="toolbar"> <button class="btn btn-link btn-sm toggle-chats-sidebar-btn" ng-if="true" ng-click="toggleChatsListSidebar()" ng-disabled="false" gdb-tooltip="{{\'ttyg.chat.btn.\' + (showChats ? \'close_sidebar\' : \'open_sidebar\') + \'.tooltip\' | translate}}"> <i class="fa fa-sidebar"></i> </button> <button class="btn btn-link btn-sm create-chat-btn" guide-selector="create-chat-btn" ng-if="chats && !chats.isEmpty()" ng-click="startNewChat()" ng-disabled="false" gdb-tooltip="{{\'ttyg.chat.btn.create_chat.tooltip\' | translate}}"> <i class="fa fa-pen-to-square"></i> </button> </div> <pageslide ps-class="chat-list-panel slide-panel" ps-container="left-sidebar" ps-open="showChats" onopen="onopen" onclose="onclose" ps-side="left" ps-click-outside="false" ps-size="80vw"> <div class="sidebar-content"> <chat-list ng-if="chats"></chat-list> <div class="chat-list-panel-loader" ng-if="!chats && loadingChats"> <div onto-loader-fancy message="{{\'ttyg.chat.loading_chats\' | translate}}" size="25"></div> </div> </div> </pageslide> </div> <div class="chat-content"> <div class="chat"> <div class="toolbar mb-2"> <agent-select-menu class="mr-1"></agent-select-menu> <button class="btn btn-link btn-sm edit-current-agent-btn mr-1" guide-selector="edit-current-agent" ng-if="selectedAgent" ng-click="onOpenAgentSettings()" ng-disabled="!canModifyAgent" gdb-tooltip="{{ (canModifyAgent ? \'ttyg.agent.btn.edit_agent.tooltip\' : \'ttyg.agent.btn.edit_agent.tooltip_disabled\') | translate}}"> <i class="icon-settings"></i> </button> </div> <div uib-collapse="!isCollapsed" id="ot-help-text" class="alert alert-info"> <button type="button" ng-click="isCollapsed = false" gdb-tooltip="{{\'common.close\' | translate}}" class="close" aria-label="Close"></button> <div ng-include="helpTemplateUrl"></div> </div> <chat-panel class="selected-chat-panel"></chat-panel> </div> </div> <div id="right-sidebar" class="right-sidebar sidebar" ng-class="showAgents ? \'expanded\' : \'collapsed\'"> <div class="toolbar"> <button class="btn btn-link btn-sm help-btn" ng-if="true" ng-click="onToggleHelp()" ng-disabled="false" gdb-tooltip="{{\'ttyg.help.btn.show_help.tooltip\' | translate}}"> <i class="icon-help"></i> </button> <button class="btn btn-link btn-sm create-agent-btn" ng-disabled="!canModifyAgent" ng-click="onOpenNewAgentSettings()" ng-disabled="false" gdb-tooltip="{{ (canModifyAgent ? \'ttyg.agent.btn.create_agent.tooltip\' : \'ttyg.agent.btn.create_agent.tooltip_disabled\') | translate}}" guide-selector="create-agent-btn"> <i class="icon-plus"></i> </button> <button class="btn btn-link btn-sm toggle-agents-sidebar-btn" ng-if="!showAgents" ng-click="toggleAgentsListSidebar()" ng-disabled="!canModifyAgent" gdb-tooltip="{{\'ttyg.agent.btn.open_sidebar.\' + (canModifyAgent ? \'tooltip\' : \'tooltip_disabled\') | translate}}"> <i class="fa fa-message-bot"></i> </button> <button class="btn btn-link btn-sm toggle-agents-sidebar-btn" ng-if="showAgents" ng-click="toggleAgentsListSidebar()" ng-disabled="false" gdb-tooltip="{{\'ttyg.agent.btn.close_sidebar\' + \'.tooltip\' | translate}}"> <i class="icon-close"></i> </button> </div> <pageslide ps-class="agent-list-panel slide-panel" ps-container="right-sidebar" ps-open="showAgents" onopen="onopen" onclose="onclose" ps-side="right" ps-click-outside="false" ps-size="80vw"> <div class="sidebar-content"> <agent-list ng-if="agents && agentListFilterModel.length && !reloadingAgents" agent-list="agents" agent-list-filter-model="agentListFilterModel"></agent-list> <div ng-if="reloadingAgents" onto-loader-fancy message="{{\'ttyg.agent.loading_agents\' | translate}}" class="agent-list-loader" size="25" style="display:flex"></div> </div> </pageslide> </div> </div> </div> '}};
2
- //# sourceMappingURL=58306.0ca44cc562ab1135c44b.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"58306.0ca44cc562ab1135c44b.bundle.js","mappings":"uJAGA,QAFW,kmJ","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/ttyg/templates/ttyg.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/ttyg/ttyg.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"ttyg-view\" ng-class=\"{'help-visible': isHelpVisible}\"> <h1 id=\"ttyg-view-title\"> {{ title }} <page-info-tooltip></page-info-tooltip> </h1> <div core-errors></div> <div uib-collapse=\"!isHelpVisible\" class=\"alert alert-info\"> <button type=\"button\" ng-click=\"isHelpVisible = false\" gdb-tooltip=\"{{'common.close' | translate}}\" class=\"close\" aria-label=\"Close\"></button> <div ng-include=\"helpTemplateUrl\"></div> </div> <div onto-loader-new ng-show=\"loadingAgents\" class=\"ttyg-page-loader\" size=\"100\"> </div> <no-agents-view ng-cloak ng-if=\"initialized && getActiveRepository() && !loadingAgents && !reloadingAgents && (!agents || agents.isEmpty())\"></no-agents-view> <div id=\"ttyg-container\" class=\"ttyg-container\" ng-show=\"getActiveRepository() && !loadingAgents && agents && !agents.isEmpty()\"> <div id=\"left-sidebar\" class=\"left-sidebar sidebar\" ng-class=\"showChats ? 'expanded' : 'collapsed'\"> <div class=\"toolbar\"> <button class=\"btn btn-link btn-sm toggle-chats-sidebar-btn\" ng-if=\"true\" ng-click=\"toggleChatsListSidebar()\" ng-disabled=\"false\" gdb-tooltip=\"{{'ttyg.chat.btn.' + (showChats ? 'close_sidebar' : 'open_sidebar') + '.tooltip' | translate}}\"> <i class=\"fa fa-sidebar\"></i> </button> <button class=\"btn btn-link btn-sm create-chat-btn\" guide-selector=\"create-chat-btn\" ng-if=\"chats && !chats.isEmpty()\" ng-click=\"startNewChat()\" ng-disabled=\"false\" gdb-tooltip=\"{{'ttyg.chat.btn.create_chat.tooltip' | translate}}\"> <i class=\"fa fa-pen-to-square\"></i> </button> </div> <pageslide ps-class=\"chat-list-panel slide-panel\" ps-container=\"left-sidebar\" ps-open=\"showChats\" onopen=\"onopen\" onclose=\"onclose\" ps-side=\"left\" ps-click-outside=\"false\" ps-size=\"80vw\"> <div class=\"sidebar-content\"> <chat-list ng-if=\"chats\"></chat-list> <div class=\"chat-list-panel-loader\" ng-if=\"!chats && loadingChats\"> <div onto-loader-fancy message=\"{{'ttyg.chat.loading_chats' | translate}}\" size=\"25\"></div> </div> </div> </pageslide> </div> <div class=\"chat-content\"> <div class=\"chat\"> <div class=\"toolbar mb-2\"> <agent-select-menu class=\"mr-1\"></agent-select-menu> <button class=\"btn btn-link btn-sm edit-current-agent-btn mr-1\" guide-selector=\"edit-current-agent\" ng-if=\"selectedAgent\" ng-click=\"onOpenAgentSettings()\" ng-disabled=\"!canModifyAgent\" gdb-tooltip=\"{{ (canModifyAgent ? 'ttyg.agent.btn.edit_agent.tooltip' : 'ttyg.agent.btn.edit_agent.tooltip_disabled') | translate}}\"> <i class=\"icon-settings\"></i> </button> </div> <div uib-collapse=\"!isCollapsed\" id=\"ot-help-text\" class=\"alert alert-info\"> <button type=\"button\" ng-click=\"isCollapsed = false\" gdb-tooltip=\"{{'common.close' | translate}}\" class=\"close\" aria-label=\"Close\"></button> <div ng-include=\"helpTemplateUrl\"></div> </div> <chat-panel class=\"selected-chat-panel\"></chat-panel> </div> </div> <div id=\"right-sidebar\" class=\"right-sidebar sidebar\" ng-class=\"showAgents ? 'expanded' : 'collapsed'\"> <div class=\"toolbar\"> <button class=\"btn btn-link btn-sm help-btn\" ng-if=\"true\" ng-click=\"onToggleHelp()\" ng-disabled=\"false\" gdb-tooltip=\"{{'ttyg.help.btn.show_help.tooltip' | translate}}\"> <i class=\"icon-help\"></i> </button> <button class=\"btn btn-link btn-sm create-agent-btn\" ng-disabled=\"!canModifyAgent\" ng-click=\"onOpenNewAgentSettings()\" ng-disabled=\"false\" gdb-tooltip=\"{{ (canModifyAgent ? 'ttyg.agent.btn.create_agent.tooltip' : 'ttyg.agent.btn.create_agent.tooltip_disabled') | translate}}\" guide-selector=\"create-agent-btn\"> <i class=\"icon-plus\"></i> </button> <button class=\"btn btn-link btn-sm toggle-agents-sidebar-btn\" ng-if=\"!showAgents\" ng-click=\"toggleAgentsListSidebar()\" ng-disabled=\"!canModifyAgent\" gdb-tooltip=\"{{'ttyg.agent.btn.open_sidebar.' + (canModifyAgent ? 'tooltip' : 'tooltip_disabled') | translate}}\"> <i class=\"fa fa-message-bot\"></i> </button> <button class=\"btn btn-link btn-sm toggle-agents-sidebar-btn\" ng-if=\"showAgents\" ng-click=\"toggleAgentsListSidebar()\" ng-disabled=\"false\" gdb-tooltip=\"{{'ttyg.agent.btn.close_sidebar' + '.tooltip' | translate}}\"> <i class=\"icon-close\"></i> </button> </div> <pageslide ps-class=\"agent-list-panel slide-panel\" ps-container=\"right-sidebar\" ps-open=\"showAgents\" onopen=\"onopen\" onclose=\"onclose\" ps-side=\"right\" ps-click-outside=\"false\" ps-size=\"80vw\"> <div class=\"sidebar-content\"> <agent-list ng-if=\"agents && agentListFilterModel.length && !reloadingAgents\" agent-list=\"agents\" agent-list-filter-model=\"agentListFilterModel\"></agent-list> <div ng-if=\"reloadingAgents\" onto-loader-fancy message=\"{{'ttyg.agent.loading_agents' | translate}}\" class=\"agent-list-loader\" size=\"25\" style=\"display:flex\"></div> </div> </pageslide> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=67232;export const __webpack_ids__=[67232];export const __webpack_modules__={67232:()=>{const e={title:"",content:"",elementSelector:void 0,placement:"bottom",url:void 0,type:"read-only-element",maxWaitTime:3,canBePaused:!0,onNextClick:void 0,disablePreviousFlow:!0,onNextValidate:()=>Promise.resolve(!0),onPreviousClick:void 0,skipPoint:!1,class:""},t=(e,t,i)=>()=>e.GuideUtils.waitFor(t,i).catch(t=>{throw e.toastr.error(e.$translate.instant("guide.unexpected.error.message")),t}),i=["click","dblclick","keydown","keypress","keyup","input","submit","scroll","wheel"],o=["scroll","wheel"],n=(e,t,o,n)=>()=>{o&&n.GuideUtils.getOrWaitFor(o).then(o=>{const n=i.filter(t=>!e.includes(t));t?n.forEach(e=>o.removeEventListener(e,s,!0)):n.forEach(e=>o.addEventListener(e,s,!0))})},l=(e,t)=>n([],!0,e,t),r=(e,t,i)=>n(e,!1,t,i),s=e=>{e.preventDefault(),e.stopPropagation()};PluginRegistry.add("guide.step",[{guideBlockName:"clickable-element",getStep:(i,o)=>{const n=angular.extend({},e,{advanceOn:{selector:i.clickableElementSelector||i.elementSelector,event:"click"},initPreviousStep:o.GuideUtils.defaultInitPreviousStep},i,{type:"clickable"});return n.beforeShowPromise||(n.beforeShowPromise=t(o,n.elementSelector,n.maxWaitTime)),n}},{guideBlockName:"focus-element",getStep:(i,o)=>{const n=angular.extend({},e,{initPreviousStep:o.GuideUtils.defaultInitPreviousStep},i);return n.beforeShowPromise||(n.beforeShowPromise=t(o,n.elementSelector,n.maxWaitTime)),n}},{guideBlockName:"read-only-element",getStep:(i,o)=>{const n=angular.extend({},e,{initPreviousStep:o.GuideUtils.defaultInitPreviousStep},i,{type:"readonly"});return n.beforeShowPromise||(n.beforeShowPromise=t(o,n.elementSelector,n.maxWaitTime)),n}},{guideBlockName:"scroll-only-element",getStep:(i,n)=>{const s={...e,initPreviousStep:n.GuideUtils.defaultInitPreviousStep,show:()=>r(o,i.elementSelector,n),hide:()=>l(i.elementSelector,n),...i};return s.beforeShowPromise||(s.beforeShowPromise=t(n,s.elementSelector,s.maxWaitTime)),s}},{guideBlockName:"input-element",getStep:(i,o)=>{const n=angular.extend({},e,{initPreviousStep:o.GuideUtils.defaultInitPreviousStep},i,{type:"input"});return n.beforeShowPromise||(n.beforeShowPromise=t(o,n.elementSelector,n.maxWaitTime)),n}},{guideBlockName:"copy-text-element",getSteps:(e,t)=>{const i=t.$translate,o=t.GuideUtils,n=e.text,l=document.createElement("code");l.innerText=n;const r=document.createElement("button"),s="guide-copy-to-input-query-button";let u;r.className=`btn btn-sm btn-secondary ${s}`,r.innerText=i.instant("guide.step_plugin.core-steps.copy-text-element.copy-to-input");const a=((e,t)=>i=>{i.preventDefault();const o=document.querySelector(e);o.value=t,o.dispatchEvent(new Event("input",{bubbles:!0}))})(o.getElementSelector(e.elementSelector),n);return[{guideBlockName:"input-element",options:{...e,content:"guide.step_plugin.core-steps.copy-text-element.content",textAsHtmlCodeElement:'<div class="shepherd-code">'+l.outerHTML+r.outerHTML+"</div>",show:e=>()=>{u=e.currentStep.el.querySelector(`.${s}`),u.addEventListener("click",a)},hide:()=>()=>{u&&u.removeEventListener("click",a)}}}]}},{guideBlockName:"info-message",getStep:(t,i)=>angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep},t,{type:"readonly"})},{guideBlockName:"hold-and-wait-until-hidden",getStep:(t,i)=>angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep,onNextValidate:()=>Promise.resolve(!i.GuideUtils.isVisible(t.elementSelectorToWait)),show:()=>r(o,t.elementSelector,i),hide:()=>l(t.elementSelector,i)},t)},{guideBlockName:"hold-and-wait-until-shown",getStep:(t,i)=>angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep,onNextValidate:()=>Promise.resolve(i.GuideUtils.isVisible(t.elementSelectorToWait))},t,{type:"readonly"})},{guideBlockName:"wait-for-element-to-hide",getStep:(t,i)=>angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep,beforeShowPromise:e=>i.GuideUtils.waitUntilHidden(t.elementSelectorToHide,t.timeToWait||2).catch(()=>{i.ShepherdService._abortGuide(e)}),show:e=>()=>{setTimeout(()=>e.next())}},t)},{guideBlockName:"wait-for-element-to-show",getStep:(t,i)=>angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep,beforeShowPromise:e=>i.GuideUtils.getOrWaitFor(t.elementSelectorToShow,t.timeToWait||2).catch(()=>{i.ShepherdService._abortGuide(e)}),show:e=>()=>{setTimeout(()=>e.next())}},t)},{guideBlockName:"guide-end",getStep:(t,i)=>{const o={type:"readonly",title:t.title||"guide.step_plugin.guide-ended.title",content:t.content||"guide.step_plugin.guide-ended.content",lastStep:!0};return angular.extend({},e,{initPreviousStep:i.GuideUtils.defaultInitPreviousStep},t,o)}}])}};
2
- //# sourceMappingURL=67232.e76f40f9d09e64ebb365.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"67232.e76f40f9d09e64ebb365.bundle.js","mappings":"oHAAA,MAAMA,EAAa,CACfC,MAAO,GACPC,QAAS,GACTC,qBAAiBC,EACjBC,UAAW,SACXC,SAAKF,EACLG,KAAM,oBACNC,YAAa,EACbC,aAAa,EACbC,iBAAaN,EACbO,qBAAqB,EACrBC,eAAgBA,IAAMC,QAAQC,SAAQ,GACtCC,qBAAiBX,EACjBY,WAAW,EACXC,MAAO,IAULC,EAAoBA,CAACC,EAAUhB,EAAiBK,IAC3C,IACIW,EAASC,WAAWC,QAAQlB,EAAiBK,GAC/Cc,MAAOC,IAIJ,MAFAJ,EAASK,OAAOD,MAAMJ,EAASM,WAAWC,QAAQ,mCAE5CH,IAkBhBI,EAAoB,CACtB,QACA,WACA,UACA,WACA,QACA,QACA,SACA,SACA,SAEEC,EAAgB,CAAC,SAAU,SAW3BC,EAAyBA,CAACC,EAAeC,EAAc5B,EAAiBgB,IAAa,KAClFhB,GAILgB,EAASC,WAAWY,aAAa7B,GAC5B8B,KAAMC,IACH,MAAMC,EAAkBR,EAAkBS,OAAOC,IAAUP,EAAcQ,SAASD,IAC9EN,EACAI,EAAgBI,QAASF,GAAUH,EAAQM,oBAAoBH,EAAOI,GAAgB,IAEtFN,EAAgBI,QAASF,GAAUH,EAAQQ,iBAAiBL,EAAOI,GAAgB,OAW7FE,EAAWA,CAACxC,EAAiBgB,IAAaU,EAAuB,IAAI,EAAM1B,EAAiB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wC,YAAc,GAC/GpE,MAAM,KACHH,EAASwE,gBAAgBC,YAAYL,KAE7C5B,KAAO4B,GAAU,KAEbM,WAAW,IAAMN,EAAMO,UAE5B5C,IAGX,CACIF,eAAgB,YAChBC,QAASA,CAACC,EAAS/B,KACf,MAAM6E,EAAiB,CACnBzF,KAAM,WACNN,MAAOiD,EAAQjD,OAAS,sCACxBC,QAASgD,EAAQhD,SAAW,wCAC5B+F,UAAU,GAEd,OAAO7C,QAAQC,OAAO,CAAC,EAAGrD,EAAY,CAClCyD,iBAAkBtC,EAASC,WAAWsC,yBACvCR,EAAS8C,M","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/core/plugin.js"],"sourcesContent":["const BASIC_STEP = {\n title: '',\n content: '',\n elementSelector: undefined,\n placement: 'bottom',\n url: undefined,\n type: 'read-only-element',\n maxWaitTime: 3,\n canBePaused: true,\n onNextClick: undefined,\n disablePreviousFlow: true,\n onNextValidate: () => Promise.resolve(true),\n onPreviousClick: undefined,\n skipPoint: false,\n class: ''\n};\n\n/**\n * This function will be called before show a step. Step will be shown after promise is resolve. It waits element of step to be visible on the page.\n * @param {*} services\n * @param {string} elementSelector\n * @param {number} maxWaitTime\n * @return {function(): *}\n */\nconst beforeShowPromise = (services, elementSelector, maxWaitTime) => {\n return () => {\n return services.GuideUtils.waitFor(elementSelector, maxWaitTime)\n .catch((error) => {\n // error is caught just to show notification in generic way.\n services.toastr.error(services.$translate.instant('guide.unexpected.error.message'));\n // throw the error, otherwise guide will continue with the next step.\n throw error;\n });\n };\n};\n\nconst createCopyToInputListener = (elementSelector, text) => {\n return (event) => {\n event.preventDefault();\n const inputElement = document.querySelector(elementSelector);\n inputElement.value = text;\n inputElement.dispatchEvent(new Event('input', {bubbles: true}));\n };\n};\n\n/**\n * List of common DOM events to consider for interaction control.\n * @type {string[]}\n */\nconst COMMON_DOM_EVENTS = [\n 'click',\n 'dblclick',\n 'keydown',\n 'keypress',\n 'keyup',\n 'input',\n 'submit',\n 'scroll',\n 'wheel'\n]\nconst SCROLL_EVENTS = ['scroll', 'wheel'];\n\n/**\n * Configures an element interactability, by consuming events and preventing them from propagating.\n * This allows to keep scrolling, while disallowing interaction with other elements\n * (such as clicking buttons).\n * @param {string[]} allowedEvents - List of event types to allow.\n * @param interactable - true to make the element interactable, false to make it non interactable\n * @param elementSelector - the elementSelector\n * @param services - The services object\n */\nconst _configureInteractions = (allowedEvents, interactable, elementSelector, services) => () => {\n if (!elementSelector) {\n return;\n }\n\n services.GuideUtils.getOrWaitFor(elementSelector)\n .then((element) => {\n const eventsToPrevent = COMMON_DOM_EVENTS.filter(event => !allowedEvents.includes(event));\n if (interactable) {\n eventsToPrevent.forEach((event) => element.removeEventListener(event, preventDefault, true));\n } else {\n eventsToPrevent.forEach((event) => element.addEventListener(event, preventDefault, true));\n }\n })\n}\n\n/**\n * Enables all interactions on the specified element.\n *\n * @param {string} elementSelector - A CSS selector identifying the target element.\n * @param {Object} services - An object containing utility services, including GuideUtils.\n */\nconst allowAll = (elementSelector, services) => _configureInteractions([], true, elementSelector, services);\n\n/**\n * Restricts the specified element to only process events listed in <code>allowedEvents</code>.\n *\n * @param {string[]} allowedEvents - An array of event types that should remain enabled.\n * @param {string} elementSelector - A CSS selector identifying the target element.\n * @param {Object} services - An object containing utility services, including GuideUtils.\n */\nconst allowEvents = (allowedEvents, elementSelector, services) => _configureInteractions(allowedEvents, false, elementSelector, services);\n\n/**\n * Prevents the default action of an event and stops its propagation.\n * @param {Event} event - The event to prevent.\n */\nconst preventDefault = (event) => {\n event.preventDefault();\n event.stopPropagation();\n}\n\nPluginRegistry.add('guide.step', [\n {\n // An element which is expected to be clicked. If onNextClick is not defined, it will automatically click on the element on next button press\n guideBlockName: 'clickable-element',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'clickable'\n };\n\n const stepDescription = angular.extend({}, BASIC_STEP, {\n advanceOn: {\n selector: options.clickableElementSelector || options.elementSelector,\n event: 'click'\n },\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n }, options, notOverridable);\n\n if (!stepDescription.beforeShowPromise) {\n stepDescription.beforeShowPromise = beforeShowPromise(services, stepDescription.elementSelector, stepDescription.maxWaitTime);\n }\n return stepDescription;\n }\n },\n {\n // An element which is expected to be focused. It allows user interaction.\n guideBlockName: 'focus-element',\n getStep: (options, services) => {\n const stepDescription = angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n }, options);\n\n if (!stepDescription.beforeShowPromise) {\n stepDescription.beforeShowPromise = beforeShowPromise(services, stepDescription.elementSelector, stepDescription.maxWaitTime);\n }\n return stepDescription;\n }\n },\n {\n // An element which is expected to be focused, but interactions are disabled.\n guideBlockName: 'read-only-element',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'readonly'\n };\n const stepDescription = angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n },\n options, notOverridable);\n if (!stepDescription.beforeShowPromise) {\n stepDescription.beforeShowPromise = beforeShowPromise(services, stepDescription.elementSelector, stepDescription.maxWaitTime);\n }\n return stepDescription;\n }\n },\n {\n guideBlockName: 'scroll-only-element',\n getStep: (options, services) => {\n const stepDescription = {\n ...BASIC_STEP,\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep,\n show: () => allowEvents(SCROLL_EVENTS, options.elementSelector, services),\n hide: () => allowAll(options.elementSelector, services),\n ...options\n };\n if (!stepDescription.beforeShowPromise) {\n stepDescription.beforeShowPromise = beforeShowPromise(services, stepDescription.elementSelector, stepDescription.maxWaitTime);\n }\n return stepDescription;\n }\n },\n {\n guideBlockName: 'input-element',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'input'\n };\n const stepDescription = angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n }, options, notOverridable);\n if (!stepDescription.beforeShowPromise) {\n stepDescription.beforeShowPromise = beforeShowPromise(services, stepDescription.elementSelector, stepDescription.maxWaitTime);\n }\n return stepDescription;\n }\n },\n {\n guideBlockName: 'copy-text-element',\n getSteps: (options, services) => {\n const $translate = services.$translate;\n const GuideUtils = services.GuideUtils;\n\n const text = options.text;\n const code = document.createElement('code');\n code.innerText = text;\n\n const copy = document.createElement('button');\n const copyToInputQueryButtonClass = 'guide-copy-to-input-query-button';\n copy.className = `btn btn-sm btn-secondary ${copyToInputQueryButtonClass}`;\n copy.innerText = $translate.instant('guide.step_plugin.core-steps.copy-text-element.copy-to-input');\n\n\n let stepHTMLElement;\n const copyToInputListener = createCopyToInputListener(GuideUtils.getElementSelector(options.elementSelector), text);\n\n return [\n {\n guideBlockName: 'input-element',\n options: {\n ...options,\n content: 'guide.step_plugin.core-steps.copy-text-element.content',\n textAsHtmlCodeElement: '<div class=\"shepherd-code\">' + code.outerHTML + copy.outerHTML + '</div>',\n show: (_guide) => () => {\n stepHTMLElement = _guide.currentStep.el.querySelector(`.${copyToInputQueryButtonClass}`);\n stepHTMLElement.addEventListener('click', copyToInputListener);\n },\n hide: () => () => {\n if (stepHTMLElement) {\n stepHTMLElement.removeEventListener('click', copyToInputListener);\n }\n },\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'info-message',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'readonly'\n };\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n }, options, notOverridable);\n }\n },\n {\n guideBlockName: 'hold-and-wait-until-hidden',\n getStep: (options, services) => {\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep,\n onNextValidate: () => Promise.resolve(!services.GuideUtils.isVisible(options.elementSelectorToWait)),\n show: () => allowEvents(SCROLL_EVENTS, options.elementSelector, services),\n hide: () => allowAll(options.elementSelector, services)\n }, options);\n }\n },\n {\n guideBlockName: 'hold-and-wait-until-shown',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'readonly'\n };\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep,\n onNextValidate: () => Promise.resolve(services.GuideUtils.isVisible(options.elementSelectorToWait))\n }, options, notOverridable);\n }\n },\n {\n guideBlockName: 'wait-for-element-to-hide',\n getStep: (options, services) => {\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep,\n beforeShowPromise: (guide) => services.GuideUtils.waitUntilHidden(options.elementSelectorToHide, options.timeToWait || 2)\n .catch(() => {\n services.ShepherdService._abortGuide(guide)\n }),\n show: (guide) => () => {\n // Using a timeout because the library executes async logic\n setTimeout(() => guide.next())\n }\n }, options);\n }\n },\n {\n guideBlockName: 'wait-for-element-to-show',\n getStep: (options, services) => {\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep,\n beforeShowPromise: (guide) => services.GuideUtils.getOrWaitFor(options.elementSelectorToShow, options.timeToWait || 2)\n .catch(() => {\n services.ShepherdService._abortGuide(guide)\n }),\n show: (guide) => () => {\n // Using a timeout because the library executes async logic\n setTimeout(() => guide.next())\n }\n }, options);\n }\n },\n {\n guideBlockName: 'guide-end',\n getStep: (options, services) => {\n const notOverridable = {\n type: 'readonly',\n title: options.title || 'guide.step_plugin.guide-ended.title',\n content: options.content || 'guide.step_plugin.guide-ended.content',\n lastStep: true\n };\n return angular.extend({}, BASIC_STEP, {\n initPreviousStep: services.GuideUtils.defaultInitPreviousStep\n }, options, notOverridable);\n }\n }\n]);\n"],"names":["BASIC_STEP","title","content","elementSelector","undefined","placement","url","type","maxWaitTime","canBePaused","onNextClick","disablePreviousFlow","onNextValidate","Promise","resolve","onPreviousClick","skipPoint","class","beforeShowPromise","services","GuideUtils","waitFor","catch","error","toastr","$translate","instant","COMMON_DOM_EVENTS","SCROLL_EVENTS","_configureInteractions","allowedEvents","interactable","getOrWaitFor","then","element","eventsToPrevent","filter","event","includes","forEach","removeEventListener","preventDefault","addEventListener","allowAll","allowEvents","stopPropagation","PluginRegistry","add","guideBlockName","getStep","options","stepDescription","angular","extend","advanceOn","selector","clickableElementSelector","initPreviousStep","defaultInitPreviousStep","show","hide","getSteps","text","code","document","createElement","innerText","copy","copyToInputQueryButtonClass","stepHTMLElement","className","copyToInputListener","createCopyToInputListener","inputElement","querySelector","value","dispatchEvent","Event","bubbles","getElementSelector","textAsHtmlCodeElement","outerHTML","_guide","currentStep","el","isVisible","elementSelectorToWait","guide","waitUntilHidden","elementSelectorToHide","timeToWait","ShepherdService","_abortGuide","setTimeout","next","elementSelectorToShow","notOverridable","lastStep"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=67888;export const __webpack_ids__=[9717,67888,73702,82926,96248];export const __webpack_modules__={9717:()=>{function e(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-status-info.html",scope:{resource:"="},link:o=>{const t=[];o.popoverTemplate="resourceStatusInfoTemplate.html",o.popoverIsOpen=!1,o.context=o.resource.importResource.context,o.replaceGraphs=o.resource.importResource.replaceGraphs,o.baseUrl=decodeURIComponent(o.resource.importResource.baseURI),o.forceSerial=o.resource.importResource.forceSerial,o.importedOn=o.resource.importResource.importedOn,o.parserSettings=o.resource.importResource.parserSettings,o.open=()=>{o.closeAllDialogs(),o.popoverIsOpen=!0},o.closeAllDialogs=()=>{e.$broadcast("closePopovers")},o.close=()=>{o.popoverIsOpen=!1};const s=e=>{"Escape"===e.key&&o.$apply(()=>{o.close()})};t.push(o.$on("closePopovers",o.close)),r.on("keydown",s),o.$on("$destroy",()=>{r.off("keydown",s),t.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-status-info",[]).directive("importResourceStatusInfo",e),e.$inject=["$rootScope","$document"]},54419:(e,r,o)=>{o.r(r),o(96248);var t=o(28847),s=o(78618);function c(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:r=>{r.ImportResourceStatus=t.ImportResourceStatus,r.toTitleCase=e=>s.toTitleCase(e),r.showMessage=r=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return r?r.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",c),c.$inject=["$uibModal"]},67888:(e,r,o)=>{o.r(r),o(82493),o(5687),o(39324),o(73702),o(82926),o(83136),o(76933),o(47195),o(56669),angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.import.directives.validate-uri","graphdb.framework.import.directives.import-progress-indicator","graphdb.framework.import.directives.import-resource-tree"])},73702:()=>{function e(e){return{restrict:"A",require:"ngModel",link:function(r,o,t,s){s.$parsers.unshift(function(r){if(s.$setValidity("validateUri",!0),!s.$isEmpty(r)){const o=e.isValidIri(r,r.toString());s.$setValidity("validateUri",o)}return r})}}}angular.module("graphdb.framework.import.directives.validate-uri",[]).directive("validateUri",e),e.$inject=["UriUtils"]},82926:()=>{function e(){return{link:function(e,r,o){e.$watch("file.status",function(){"IMPORTING"!==e.file.status&&"UPLOADING"!==e.file.status||!$(r).has("object").length>0&&$(r).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.1.1">{{\'common.loading\' | translate}}</object>')})}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",e),e.$inject=[]},83136:(e,r,o)=>{o.r(r);var t=o(28847),s=(o(54419),o(9717),o(18025)),c=o(57436),i=o(7796),a=o(56636),l=o(25079);const p={FILE:"FILE",DIRECTORY:"DIRECTORY",ALL:"ALL"},u={ALL:"ALL",NONE:"NONE",IMPORTED:"IMPORTED",NOT_IMPORTED:"NOT_IMPORTED"};function n(e,r){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-tree.html",scope:{columnKeys:"=",showTypeFilter:"=",sortBy:"=",asc:"=",onImport:"&",onImportAll:"&",onReset:"&",onRemove:"&",onStopImport:"&",onEditResource:"&"},link:(o,n,m)=>{o.resources=new c.ImportResourceTreeElement,o.displayResources=[],o.TYPE_FILTER_OPTIONS=p,o.filterByType=p.ALL,o.filterByFileName="",o.STATUS_OPTIONS=u,o.selectedByStatus=void 0,o.areAllDisplayedImportResourcesSelected=!1,o.areAllDisplayedImportResourcesPartialSelected=!1,o.ImportResourceStatus=t.ImportResourceStatus,o.canRemoveResource=angular.isDefined(m.onRemove),o.canResetSelectedResources=!1,o.SORTING_TYPES=s.SortingType,o.sortAsc=!angular.isDefined(m.asc)||o.asc,o.sortedBy=o.sortBy,o.showLoader=r.getShowLoader(),o.hasSelection=!1,o.selectionChanged=e=>{e.setSelection(e.selected),I(),d(),g()},o.selectResourceWithStatus=e=>{o.selectedByStatus=e,o.resources.setSelection(!1),u.ALL===o.selectedByStatus?o.resources.setSelection(!0):u.IMPORTED===o.selectedByStatus?o.resources.selectAllWithStatus([t.ImportResourceStatus.DONE]):u.NOT_IMPORTED===o.selectedByStatus&&o.resources.selectAllWithStatus([t.ImportResourceStatus.IMPORTING,t.ImportResourceStatus.NONE,t.ImportResourceStatus.ERROR,t.ImportResourceStatus.PENDING,t.ImportResourceStatus.INTERRUPTING]),R(),d()},o.filterByTypeChanged=e=>{o.filterByType=e,R()},o.filterByFileNameChanged=e=>{o.filterByFileName=e,N(R,100)},o.onResetStatus=()=>{const e=o.resources.getAllSelected().map(e=>e.path);e.length>0&&o.onReset({resources:e})},o.resetStatus=e=>{o.onReset({resources:[e.path]})},o.onRemoveResources=()=>{const e=o.resources.getAllSelected();e&&e.length>0&&o.onRemove({resources:e})},o.removeResource=e=>{o.onRemove({resources:[e]})},o.importAll=e=>{const r=o.resources.getAllSelectedForImport();r.length>0&&o.onImportAll({selectedResources:r,withoutChangingSettings:e})},o.stopImport=e=>{o.onStopImport({resource:e})},o.sort=e=>{o.sortedBy===e?o.sortAsc=!o.sortAsc:o.sortAsc=!0,o.sortedBy=e,R()},o.editResource=e=>{o.onEditResource({resource:e})};const d=()=>{o.canResetSelectedResources=o.resources.getSelectedImportedResources()},R=()=>{o.resources.getRoot().updateSelectionState(),S(),o.displayResources=o.resources.toList().filter(E).filter(A),g(),I()},g=()=>{const e=o.resources.getAllSelectedFilesNames();o.hasSelection=e.length>0,r.updateSelectedFilesNames(e)},I=()=>{const e=o.displayResources.some(e=>!e.selected),r=o.displayResources.some(e=>e.selected);o.areAllDisplayedImportResourcesSelected=r&&!e,o.areAllDisplayedImportResourcesPartialSelected=r&&e},S=()=>{s.SortingType.NAME===o.sortedBy?o.resources.sort(y(o.sortAsc)):s.SortingType.SIZE===o.sortedBy?o.resources.sort(T(o.sortAsc)):s.SortingType.MODIFIED===o.sortedBy?o.resources.sort(f(o.sortAsc)):s.SortingType.IMPORTED===o.sortedBy?o.resources.sort(h(o.sortAsc)):s.SortingType.CONTEXT===o.sortedBy&&o.resources.sort(v(o.sortAsc))},y=e=>(r,o)=>e?r.importResource.name.localeCompare(o.importResource.name):o.importResource.name.localeCompare(r.importResource.name),T=e=>(r,o)=>{const t=(0,l.convertToBytes)(r.importResource.size),s=(0,l.convertToBytes)(o.importResource.size);return e?t-s:s-t},f=e=>(r,o)=>{const t=r.importResource.modifiedOn||Number.MAX_VALUE,s=o.importResource.modifiedOn||Number.MAX_VALUE;return e?t-s:s-t},h=e=>(r,o)=>{const t=r.importResource.importedOn||Number.MAX_VALUE,s=o.importResource.importedOn||Number.MAX_VALUE;return e?t-s:s-t},v=e=>(r,o)=>e?r.importResource.context.localeCompare(o.importResource.context):o.importResource.context.localeCompare(r.importResource.context),E=e=>p.ALL===o.filterByType||(o.filterByType===p.FILE?e.isFile():o.filterByType===p.DIRECTORY&&e.isDirectory()),A=e=>!o.filterByFileName||(o.filterByType===p.DIRECTORY?e.hasTextInDirectoriesName(o.filterByFileName):o.filterByType===p.FILE?e.hasTextInFilesName(o.filterByFileName):e.hasTextInResourcesName(o.filterByFileName));let O;const N=(r,o)=>{O&&e.cancel(O),O=e(r,o)},b=[];b.push(r.onResourcesUpdated((e=[])=>{const t=i.TABS.USER===r.getActiveTabId();o.resources.isEmpty()?(o.resources=a.ImportResourceTreeService.toImportResourceTree(e,t),t&&(o.sortedBy=s.SortingType.MODIFIED)):a.ImportResourceTreeService.mergeResourceTree(o.resources,e,t),a.ImportResourceTreeService.calculateElementIndent(o.resources),a.ImportResourceTreeService.setupAfterTreeInitProperties(o.resources),R(),d()})),b.push(r.onShowLoaderUpdated(e=>o.showLoader=e)),b.push(r.onActiveTabIdUpdated(()=>o.resources=new c.ImportResourceTreeElement)),o.$on("$destroy",()=>{b.forEach(e=>e())})}}}angular.module("graphdb.framework.import.directives.import-resource-tree",["graphdb.framework.import.directives.import-resource-message","graphdb.framework.import.directives.import-resource-status-info"]).directive("importResourceTree",n),n.$inject=["$timeout","ImportContextService"]},96248:()=>{function e(e,r,o,t,s){e.message=s,e.close=()=>{r.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(o.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",e),e.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]}};
2
- //# sourceMappingURL=67888.cc78716f885f98366859.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"67888.cc78716f885f98366859.bundle.js","mappings":"0IAQA,SAASA,EAAkCC,EAAYC,GACnD,MAAO,CACHC,SAAU,IACVC,YAAa,+DACbC,MAAO,CACHC,SAAU,KAEdC,KAAOC,IACH,MAAMC,EAAc,GAKpBD,EAAOE,gBAAkB,kCACzBF,EAAOG,eAAgB,EACvBH,EAAOI,QAAUJ,EAAOF,SAASO,eAAeD,QAChDJ,EAAOM,cAAgBN,EAAOF,SAASO,eAAeC,cACtDN,EAAOO,QAAUC,mBAAmBR,EAAOF,SAASO,eAAeI,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AI,WALkBsL,KACzBhB,EAAcnK,QAASoL,GAAiBA,QAOxD,CAxTAlL,QACKC,OAAO,2DANI,CACZ,8DACA,oEAKCC,UAAU,qBAAsBwC,GAErCA,EAA4BvC,QAAU,CAAC,WAAY,uB,aCzBnD,SAASgL,EAAsC9M,EAAQ+M,EAAmBC,EAAYC,EAAQrK,GAE1F5C,EAAO4C,QAAUA,EAGjB5C,EAAOgB,MAAQ,KACX+L,EAAkBG,WAGtBlN,EAAOmN,gBAAkB,KACrBC,UAAUC,UAAUC,UAAUtN,EAAO4C,SAChC2K,KAAK,KACFN,EAAOO,QAAQR,EAAWS,QAAQ,6CAClCzN,EAAOgB,SACP0M,IACAC,QAAQC,MAAM,wBAAyBF,KAGvD,CAxBA/L,QACKC,OAAO,4EAA6E,IACpFW,WAAW,wCAAyCuK,GAEzDA,EAAsChL,QAAU,CAAC,SAAU,oBAAqB,aAAc,SAAU,U","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-status-info.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-message.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/app.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/validate-uri.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-progress-indicator.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-tree.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-resource-message-dialog.controller.js"],"sourcesContent":["const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-status-info', modules)\n .directive('importResourceStatusInfo', importResourceStatusInfoDirective);\n\nimportResourceStatusInfoDirective.$inject = ['$rootScope', '$document'];\n\nfunction importResourceStatusInfoDirective($rootScope, $document) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-status-info.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n const subscribers = [];\n\n // =========================\n // Public variables\n // =========================\n $scope.popoverTemplate = 'resourceStatusInfoTemplate.html';\n $scope.popoverIsOpen = false;\n $scope.context = $scope.resource.importResource.context;\n $scope.replaceGraphs = $scope.resource.importResource.replaceGraphs;\n $scope.baseUrl = decodeURIComponent($scope.resource.importResource.baseURI);\n $scope.forceSerial = $scope.resource.importResource.forceSerial;\n $scope.importedOn = $scope.resource.importResource.importedOn;\n $scope.parserSettings = $scope.resource.importResource.parserSettings;\n\n // =========================\n // Public functions\n // =========================\n $scope.open = () => {\n $scope.closeAllDialogs();\n $scope.popoverIsOpen = true;\n };\n\n $scope.closeAllDialogs = () => {\n $rootScope.$broadcast('closePopovers');\n };\n\n $scope.close = () => {\n $scope.popoverIsOpen = false;\n };\n\n const handleEscapeKeyPress = (event) => {\n if (event.key === 'Escape') {\n $scope.$apply(() => {\n $scope.close();\n });\n }\n };\n\n const removeAllSubscribers = () => {\n subscribers.forEach((subscriber) => subscriber());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscribers.push($scope.$on('closePopovers', $scope.close));\n $document.on('keydown', handleEscapeKeyPress);\n\n $scope.$on('$destroy', () => {\n $document.off('keydown', handleEscapeKeyPress);\n removeAllSubscribers();\n });\n }\n };\n}\n","import 'angular/import/controllers/import-resource-message-dialog.controller';\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport * as stringUtils from \"../../utils/string-utils\";\n\nconst modules = ['graphdb.framework.impex.import.controllers.import-resource-message-dialog'];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-message', modules)\n .directive('importResourceMessage', importResourceMessageDirective);\n\nimportResourceMessageDirective.$inject = ['$uibModal'];\n\nfunction importResourceMessageDirective($uibModal) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-message.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.toTitleCase = (str) => stringUtils.toTitleCase(str);\n\n /**\n *\n * @param {ImportResourceTreeElement} resourceTreeElement\n */\n $scope.showMessage = (resourceTreeElement) => {\n $uibModal.open({\n templateUrl: 'js/angular/import/templates/import-resource-message-dialog.html',\n controller: 'ImportResourceMessageDialogController',\n size: 'lg',\n windowClass: 'import-resource-message-dialog',\n backdrop: 'static',\n resolve: {\n message: function () {\n return resourceTreeElement ? resourceTreeElement.importResource.message : '';\n }\n }\n });\n }\n }\n };\n}\n","import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/import/controllers/import-view.controller';\nimport 'angular/import/directives/validate-uri.directive';\nimport 'angular/import/directives/import-progress-indicator.directive';\nimport 'angular/import/directives/import-resource-tree.directive';\nimport 'angular/core/services/repositories.service';\nimport 'ng-file-upload/dist/ng-file-upload.min';\nimport 'ng-file-upload/dist/ng-file-upload-shim.min';\n\nconst modules = [\n 'toastr',\n 'ngRoute',\n 'ngFileUpload',\n 'ui.bootstrap',\n 'graphdb.framework.impex.import.controllers',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.import.directives.validate-uri',\n 'graphdb.framework.import.directives.import-progress-indicator',\n 'graphdb.framework.import.directives.import-resource-tree'\n];\n\nangular.module('graphdb.framework.impex.import', modules);\n","/**\n * This AngularJS directive validates whether an input value is a valid URI (IRI).\n *\n * @directive validateUri\n * @restrict A (Attribute)\n * @requires ngModel\n *\n * @example\n * <input type=\"text\" name=\"url\" ng-model=\"url\" validate-uri>\n */\nconst modules = [];\n\nangular\n .module('graphdb.framework.import.directives.validate-uri', modules)\n .directive('validateUri', validateUri);\n\nvalidateUri.$inject = ['UriUtils'];\n\n/**\n * @function validateUri\n * @param {UriUtils} UriUtils - Service for URI validation.\n */\nfunction validateUri(UriUtils) {\n return {\n restrict: 'A',\n require: 'ngModel',\n link: function (scope, element, attr, ctrl) {\n ctrl.$parsers.unshift(function (value) {\n ctrl.$setValidity('validateUri', true);\n if (!ctrl.$isEmpty(value)) {\n const valid = UriUtils.isValidIri(value, value.toString());\n ctrl.$setValidity('validateUri', valid);\n }\n return value;\n });\n }\n };\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-progress-indicator', modules)\n .directive('ImportProgressIndicator', ImportProgressIndicator);\n\nImportProgressIndicator.$inject = [];\n\n// importDirectives.directive('filesOntoLoader',\nfunction ImportProgressIndicator() {\n return {\n link: function (scope, element, attr) {\n scope.$watch('file.status', function () {\n if (scope.file.status === 'IMPORTING' || scope.file.status === 'UPLOADING') {\n if (!$(element).has('object').length > 0) {\n $(element).append('<object width=\"' + attr.size + '\" height=\"' + attr.size + '\" data=\"js/angular/templates/loader/ot-loader.svg?v=3.1.1\">{{\\'common.loading\\' | translate}}</object>');\n }\n }\n });\n }\n };\n}\n","import {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport 'angular/import/directives/import-resource-message.directive';\nimport 'angular/import/directives/import-resource-status-info.directive';\nimport {SortingType} from \"../../models/import/sorting-type\";\nimport {ImportResourceTreeElement} from \"../../models/import/import-resource-tree-element\";\nimport {TABS} from \"../services/import-context.service\";\nimport {ImportResourceTreeService} from \"../services/import-resource-tree.service\";\nimport {convertToBytes} from \"../../utils/size-util\";\n\nconst TYPE_FILTER_OPTIONS = {\n 'FILE': 'FILE',\n 'DIRECTORY': 'DIRECTORY',\n 'ALL': 'ALL'\n};\n\nconst STATUS_OPTIONS = {\n 'ALL': 'ALL',\n 'NONE': 'NONE',\n 'IMPORTED': 'IMPORTED',\n 'NOT_IMPORTED': 'NOT_IMPORTED'\n};\n\nconst modules = [\n 'graphdb.framework.import.directives.import-resource-message',\n 'graphdb.framework.import.directives.import-resource-status-info'\n];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-tree', modules)\n .directive('importResourceTree', importResourceTreeDirective);\n\nimportResourceTreeDirective.$inject = ['$timeout', 'ImportContextService'];\n\nfunction importResourceTreeDirective($timeout, ImportContextService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-tree.html',\n scope: {\n /**\n * Contains mapping of the column names to label keys. Should contain\n * keys for: name, size, imported, modified, context column names.\n */\n columnKeys: '=',\n /**\n * If the type filter buttons should be visible.\n */\n showTypeFilter: '=',\n /**\n * The default field to sort the resources by.\n */\n sortBy: '=',\n asc: '=',\n onImport: '&',\n onImportAll: '&',\n onReset: '&',\n onRemove: '&',\n onStopImport: '&',\n onEditResource: '&'\n },\n link: ($scope, element, attrs) => {\n\n // =========================\n // Public variables\n // =========================\n $scope.resources = new ImportResourceTreeElement();\n $scope.displayResources = [];\n $scope.TYPE_FILTER_OPTIONS = TYPE_FILTER_OPTIONS;\n $scope.filterByType = TYPE_FILTER_OPTIONS.ALL;\n $scope.filterByFileName = '';\n $scope.STATUS_OPTIONS = STATUS_OPTIONS;\n $scope.selectedByStatus = undefined;\n $scope.areAllDisplayedImportResourcesSelected = false;\n $scope.areAllDisplayedImportResourcesPartialSelected = false;\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.canRemoveResource = angular.isDefined(attrs.onRemove);\n $scope.canResetSelectedResources = false;\n $scope.SORTING_TYPES = SortingType;\n $scope.sortAsc = angular.isDefined(attrs.asc) ? $scope.asc : true;\n $scope.sortedBy = $scope.sortBy;\n $scope.showLoader = ImportContextService.getShowLoader();\n $scope.hasSelection = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Updates the selection model when a resource is selected or unselected.\n * @param {ImportResourceTreeElement} resource The resource that was selected or unselected.\n */\n $scope.selectionChanged = ((resource) => {\n resource.setSelection(resource.selected);\n updateSelectByStateDropdownModel();\n setCanResetResourcesFlag();\n updateHasSelection();\n });\n\n $scope.selectResourceWithStatus = (resourceStatus) => {\n $scope.selectedByStatus = resourceStatus;\n $scope.resources.setSelection(false);\n\n if (STATUS_OPTIONS.ALL === $scope.selectedByStatus) {\n $scope.resources.setSelection(true);\n } else if (STATUS_OPTIONS.IMPORTED === $scope.selectedByStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.DONE]);\n } else if (STATUS_OPTIONS.NOT_IMPORTED === $scope.selectedByStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.IMPORTING, ImportResourceStatus.NONE, ImportResourceStatus.ERROR, ImportResourceStatus.PENDING, ImportResourceStatus.INTERRUPTING]);\n }\n\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n $scope.filterByTypeChanged = (newType) => {\n $scope.filterByType = newType;\n updateListedImportResources();\n };\n\n $scope.filterByFileNameChanged = (filterByFileName) => {\n $scope.filterByFileName = filterByFileName;\n debounce(updateListedImportResources, 100);\n };\n\n /**\n * Resets the status of the selected resources.\n */\n $scope.onResetStatus = () => {\n const resourcesNames = $scope.resources.getAllSelected()\n .map((resource) => resource.path);\n if (resourcesNames.length > 0) {\n $scope.onReset({resources: resourcesNames});\n }\n };\n\n /**\n * Resets the status of the given resource.\n * @param {ImportResourceTreeElement} importResource\n */\n $scope.resetStatus = (importResource) => {\n $scope.onReset({resources: [importResource.path]});\n };\n\n $scope.onRemoveResources = () => {\n const selectedResources = $scope.resources.getAllSelected();\n if (selectedResources && selectedResources.length > 0) {\n $scope.onRemove({resources: selectedResources});\n }\n };\n\n $scope.removeResource = (resource) => {\n $scope.onRemove({resources: [resource]});\n };\n\n $scope.importAll = (withoutChangingSettings) => {\n const selectedResources = $scope.resources.getAllSelectedForImport();\n if (selectedResources.length > 0) {\n $scope.onImportAll({selectedResources: selectedResources, withoutChangingSettings});\n }\n };\n\n $scope.stopImport = (importResource) => {\n $scope.onStopImport({resource: importResource});\n };\n\n /**\n * Sorts resources by provided sorting type.\n * @param {SortingType} sortedBy The sorting type to use.\n */\n $scope.sort = (sortedBy) => {\n if ($scope.sortedBy === sortedBy) {\n $scope.sortAsc = !$scope.sortAsc;\n } else {\n $scope.sortAsc = true;\n }\n $scope.sortedBy = sortedBy;\n updateListedImportResources();\n };\n\n $scope.editResource = (resource) => {\n $scope.onEditResource({resource});\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Sets the flag showing if any of the selected resources is already imported\n * and can have their states reset.\n */\n const setCanResetResourcesFlag = () => {\n $scope.canResetSelectedResources = $scope.resources.getSelectedImportedResources();\n };\n\n const updateListedImportResources = () => {\n $scope.resources.getRoot().updateSelectionState();\n sortResources();\n $scope.displayResources = $scope.resources.toList()\n .filter(filterByType)\n .filter(filterByName);\n\n updateHasSelection();\n updateSelectByStateDropdownModel();\n };\n\n const updateHasSelection = () => {\n const allSelectedFilesNames = $scope.resources.getAllSelectedFilesNames();\n $scope.hasSelection = allSelectedFilesNames.length > 0;\n ImportContextService.updateSelectedFilesNames(allSelectedFilesNames);\n };\n\n const updateSelectByStateDropdownModel = () => {\n const hasUnselectedDisplayedImportResource = $scope.displayResources.some((resource) => !resource.selected);\n const hasSelectedDisplayedImportResource = $scope.displayResources.some((resource) => resource.selected);\n $scope.areAllDisplayedImportResourcesSelected = hasSelectedDisplayedImportResource && !hasUnselectedDisplayedImportResource;\n $scope.areAllDisplayedImportResourcesPartialSelected = hasSelectedDisplayedImportResource && hasUnselectedDisplayedImportResource;\n };\n\n const sortResources = () => {\n if (SortingType.NAME === $scope.sortedBy) {\n $scope.resources.sort(compareByName($scope.sortAsc));\n } else if (SortingType.SIZE === $scope.sortedBy) {\n $scope.resources.sort(compareBySize($scope.sortAsc));\n } else if (SortingType.MODIFIED === $scope.sortedBy) {\n $scope.resources.sort(compareByModified($scope.sortAsc));\n } else if (SortingType.IMPORTED === $scope.sortedBy) {\n $scope.resources.sort(compareByImportedOn($scope.sortAsc));\n } else if (SortingType.CONTEXT === $scope.sortedBy) {\n $scope.resources.sort(compareByContext($scope.sortAsc));\n }\n };\n\n const compareByName = (acs) => (r1, r2) => {\n return acs ? r1.importResource.name.localeCompare(r2.importResource.name) : r2.importResource.name.localeCompare(r1.importResource.name);\n };\n\n const compareBySize = (acs) => (r1, r2) => {\n // The format of size returned by the backend has changed, but we need to keep the old format for backward compatibility.\n // Therefore, we convert the size to always be in bytes.\n const r1Size = convertToBytes(r1.importResource.size);\n const r2Size = convertToBytes(r2.importResource.size);\n return acs ? r1Size - r2Size : r2Size - r1Size;\n };\n\n const compareByModified = (acs) => (r1, r2) => {\n const r1ModifiedOn = r1.importResource.modifiedOn || Number.MAX_VALUE;\n const r2ModifiedOn = r2.importResource.modifiedOn || Number.MAX_VALUE;\n return acs ? r1ModifiedOn - r2ModifiedOn : r2ModifiedOn - r1ModifiedOn;\n };\n\n const compareByImportedOn = (acs) => (r1, r2) => {\n const r1ImportedOn = r1.importResource.importedOn || Number.MAX_VALUE;\n const r2ImportedOn = r2.importResource.importedOn || Number.MAX_VALUE;\n return acs ? r1ImportedOn - r2ImportedOn : r2ImportedOn - r1ImportedOn;\n };\n\n const compareByContext = (acs) => (r1, r2) => {\n return acs ? r1.importResource.context.localeCompare(r2.importResource.context) : r2.importResource.context.localeCompare(r1.importResource.context);\n };\n\n const filterByType = (resource) => {\n if (TYPE_FILTER_OPTIONS.ALL === $scope.filterByType) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.isFile();\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.isDirectory();\n }\n\n return false;\n };\n\n const filterByName = (resource) => {\n if (!$scope.filterByFileName) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.hasTextInDirectoriesName($scope.filterByFileName);\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.hasTextInFilesName($scope.filterByFileName);\n }\n return resource.hasTextInResourcesName($scope.filterByFileName);\n };\n\n let debounceTimeout;\n const debounce = (func, delay) => {\n // Clear previous timeout\n if (debounceTimeout) {\n $timeout.cancel(debounceTimeout);\n }\n\n // Set new timeout\n debounceTimeout = $timeout(func, delay);\n };\n\n // =========================\n // Subscription handlers\n // =========================\n\n const onResourcesUpdatedHandler = (newResources = []) => {\n const isUserImport = TABS.USER === ImportContextService.getActiveTabId();\n if ($scope.resources.isEmpty()) {\n $scope.resources = ImportResourceTreeService.toImportResourceTree(newResources, isUserImport);\n if (isUserImport) {\n $scope.sortedBy = SortingType.MODIFIED;\n }\n } else {\n ImportResourceTreeService.mergeResourceTree($scope.resources, newResources, isUserImport);\n }\n ImportResourceTreeService.calculateElementIndent($scope.resources);\n ImportResourceTreeService.setupAfterTreeInitProperties($scope.resources);\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n // =========================\n // Subscriptions\n // =========================\n const subscriptions = [];\n\n subscriptions.push(ImportContextService.onResourcesUpdated(onResourcesUpdatedHandler));\n subscriptions.push(ImportContextService.onShowLoaderUpdated((showLoader) => $scope.showLoader = showLoader));\n subscriptions.push(ImportContextService.onActiveTabIdUpdated(() => $scope.resources = new ImportResourceTreeElement()));\n\n const removeAllSubscribers = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // Deregister the watcher when the scope/directive is destroyed\n $scope.$on('$destroy', removeAllSubscribers);\n }\n };\n}\n","angular\n .module('graphdb.framework.impex.import.controllers.import-resource-message-dialog', [])\n .controller('ImportResourceMessageDialogController', ImportResourceMessageDialogController);\n\nImportResourceMessageDialogController.$inject = ['$scope', '$uibModalInstance', '$translate', 'toastr', 'message'];\n\nfunction ImportResourceMessageDialogController($scope, $uibModalInstance, $translate, toastr, message) {\n\n $scope.message = message;\n\n\n $scope.close = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.copyToClipboard = () => {\n navigator.clipboard.writeText($scope.message)\n .then(() => {\n toastr.success($translate.instant('import.help.messages.copied_to_clipboard'));\n $scope.close();\n }, (err) => {\n console.error('Could not copy text: ', err);\n });\n };\n}\n"],"names":["importResourceStatusInfoDirective","$rootScope","$document","restrict","templateUrl","scope","resource","link","$scope","subscribers","popoverTemplate","popoverIsOpen","context","importResource","replaceGraphs","baseUrl","decodeURIComponent","baseURI","forceSerial","importedOn","parserSettings","open","closeAllDialogs","$broadcast","close","handleEscapeKeyPress","event","key","$apply","push","$on","on","off","forEach","subscriber","angular","module","directive","$inject","importResourceMessageDirective","$uibModal","ImportResourceStatus","toTitleCase","str","stringUtils","showMessage","resourceTreeElement","controller","size","windowClass","backdrop","resolve","message","validateUri","UriUtils","require","element","attr","ctrl","$parsers","unshift","value","$setValidity","$isEmpty","valid","isValidIri","toString","ImportProgressIndicator","$watch","file","status","$","has","length","append","TYPE_FILTER_OPTIONS","STATUS_OPTIONS","importResourceTreeDirective","$timeout","ImportContextService","columnKeys","showTypeFilter","sortBy","asc","onImport","onImportAll","onReset","onRemove","onStopImport","onEditResource","attrs","resources","ImportResourceTreeElement","displayResources","filterByType","ALL","filterByFileName","selectedByStatus","undefined","areAllDisplayedImportResourcesSelected","areAllDisplayedImportResourcesPartialSelected","canRemoveResource","isDefined","canResetSelectedResources","SORTING_TYPES","SortingType","sortAsc","sortedBy","showLoader","getShowLoader","hasSelection","selectionChanged","setSelection","selected","updateSelectByStateDropdownModel","setCanResetResourcesFlag","updateHasSelection","selectResourceWithStatus","resourceStatus","IMPORTED","selectAllWithStatus","DONE","NOT_IMPORTED","IMPORTING","NONE","ERROR","PENDING","INTERRUPTING","updateListedImportResources","filterByTypeChanged","newType","filterByFileNameChanged","debounce","onResetStatus","resourcesNames","getAllSelected","map","path","resetStatus","onRemoveResources","selectedResources","removeResource","importAll","withoutChangingSettings","getAllSelectedForImport","stopImport","sort","editResource","getSelectedImportedResources","getRoot","updateSelectionState","sortResources","toList","filter","filterByName","allSelectedFilesNames","getAllSelectedFilesNames","updateSelectedFilesNames","hasUnselectedDisplayedImportResource","some","hasSelectedDisplayedImportResource","NAME","compareByName","SIZE","compareBySize","MODIFIED","compareByModified","compareByImportedOn","CONTEXT","compareByContext","acs","r1","r2","name","localeCompare","r1Size","convertToBytes","r2Size","r1ModifiedOn","modifiedOn","Number","MAX_VALUE","r2ModifiedOn","r1ImportedOn","r2ImportedOn","FILE","isFile","DIRECTORY","isDirectory","hasTextInDirectoriesName","hasTextInFilesName","hasTextInResourcesName","debounceTimeout","func","delay","cancel","subscriptions","onResourcesUpdated","onResourcesUpdatedHandler","newResources","isUserImport","TABS","USER","getActiveTabId","isEmpty","ImportResourceTreeService","toImportResourceTree","mergeResourceTree","calculateElementIndent","setupAfterTreeInitProperties","onShowLoaderUpdated","onActiveTabIdUpdated","removeAllSubscribers","subscription","ImportResourceMessageDialogController","$uibModalInstance","$translate","toastr","dismiss","copyToClipboard","navigator","clipboard","writeText","then","success","instant","err","console","error"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=70938;export const __webpack_ids__=[70938];export const __webpack_modules__={70938:()=>{const e="guide.step-action.edit-ttyg-agent";PluginRegistry.add("guide.step",[{guideBlockName:"ttyg-edit-agent-intro-message",getSteps:(t,i)=>[{guideBlockName:"info-message",options:{content:"guide.step_plugin.edit-ttyg-agent.intro",...t.mainAction?{}:{title:e},skipPoint:!0,...t}}]},{guideBlockName:"ttyg-click-to-edit-selected-agent",getSteps:(t,i)=>{const n=i.GuideUtils;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.edit-ttyg-agent.edit-agent",...t.mainAction?{}:{title:e},class:"edit-agent-btn",disableNextFlow:!0,...t,url:"ttyg",elementSelector:n.getGuideElementSelector("edit-current-agent")}}]}},{guideBlockName:"ttyg-edit-agent-click-to-save",getSteps:(t,i)=>{const n=i.GuideUtils;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.edit-ttyg-agent.save-agent-settings",...t.mainAction?{}:{title:e},class:"save-agent",disablePreviousFlow:!1,disableNextFlow:!0,...t,url:"ttyg",elementSelector:n.getGuideElementSelector("save-agent-settings")}}]}},{guideBlockName:"edit-ttyg-agent",getSteps:(e,t)=>{const i=t.GuideUtils,n=t.RoutingUtil;return e.mainAction="edit-ttyg-agent",[{guideBlockName:"click-main-menu",options:{...e,menu:"ttyg",showOn:()=>"ttyg"!==n.getCurrentRoute()}},{guideBlockName:"end-on-api-key-error"},{guideBlockName:"ttyg-edit-agent-intro-message",options:{...e}},{guideBlockName:"info-message",options:angular.extend({},{beforeShowPromise:(e,t)=>{i.isGuideElementVisible("selected-agent")?setTimeout(()=>{e.show(t.id+6)}):setTimeout(()=>{e.next()})}},e)},{guideBlockName:"select-ttyg-agent",options:{...e}},{guideBlockName:"ttyg-click-to-edit-selected-agent",options:{...e}},{guideBlockName:"configure-agent",options:e},{guideBlockName:"ttyg-edit-agent-click-to-save",options:{...e}},{guideBlockName:"wait-for-element-to-hide",options:angular.extend({},{elementSelectorToHide:i.getElementSelector(".agent-settings-modal"),timeToWait:10},e)}]}}])}};
2
- //# sourceMappingURL=70938.6d0055f916f6d1bc91bb.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"70938.6d0055f916f6d1bc91bb.bundle.js","mappings":"oHAAA,MAAMA,EAAgC,oCAEtCC,eAAeC,IAAI,aAAc,CAC7B,CACIC,eAAgB,gCAChBC,SAAUA,CAACC,EAASC,IACT,CACH,CACIH,eAAgB,eAChBE,QAAS,CACLE,QAAS,6CAELF,EAAQG,WAAa,CAAC,EAAI,CAAEC,MAAOT,GACvCU,WAAW,KACRL,MAMvB,CACEF,eAAgB,oCAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMK,EAAaL,EAASK,WAE5B,MAAO,CACH,CACIR,eAAgB,oBAChBE,QAAS,CACLE,QAAS,kDAELF,EAAQG,WAAa,CAAC,EAAI,CAAEC,MAAOT,GACvCY,MAAO,iBACPC,iBAAiB,KACdR,EACHS,IAAK,OACLC,gBAAiBJ,EAAWK,wBAAwB,2BAMtE,CACEb,eAAgB,gCAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMK,EAAaL,EAASK,WAE5B,MAAO,CACH,CACIR,eAAgB,oBAChBE,QAAS,CACLE,QAAS,2DAELF,EAAQG,WAAa,CAAC,EAAI,CAAEC,MAAOT,GACvCY,MAAO,aACPK,qBAAqB,EACrBJ,iBAAiB,KACdR,EACHS,IAAK,OACLC,gBAAiBJ,EAAWK,wBAAwB,4BAMtE,CACIb,eAAgB,kBAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMK,EAAaL,EAASK,WACtBO,EAAcZ,EAASY,YAG7B,OAFAb,EAAQG,WAAa,kBAEd,CACH,CACIL,eAAgB,kBAChBE,QAAS,IACFA,EACHc,KAAM,OACNC,OAAQA,IAAM,SAAWF,EAAYG,oBAG7C,CACIlB,eAAgB,wBAEpB,CACIA,eAAgB,gCAChBE,QAAS,IAAIA,IAEjB,CAEIF,eAAgB,eAChBE,QAASiB,QAAQC,OAAO,CAAC,EAAG,CACxBC,kBAAmBA,CAACC,EAAOC,KACnBf,EAAWgB,sBAAsB,kBACjCC,WAAW,KAEPH,EAAMI,KAAKH,EAAYI,GAAK,KAGhCF,WAAW,KAEPH,EAAMM,WAInB1B,IAEP,CACIF,eAAgB,oBAChBE,QAAS,IAAIA,IAEjB,CACIF,eAAgB,oCAChBE,QAAS,IAAIA,IAEjB,CACIF,eAAgB,kBAChBE,WAEJ,CACIF,eAAgB,gCAChBE,QAAS,IAAIA,IAEjB,CACIF,eAAgB,2BAChBE,QAASiB,QAAQC,OAAO,CAAC,EAAG,CACxBS,sBAAuBrB,EAAWsB,mBAAmB,yBACrDC,WAAY,IACb7B,Q","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/ttyg/edit-ttyg-agent/plugin.js"],"sourcesContent":["const TTYG_EDIT_AGENT_DEFAULT_TITLE = 'guide.step-action.edit-ttyg-agent';\n\nPluginRegistry.add('guide.step', [\n {\n guideBlockName: 'ttyg-edit-agent-intro-message',\n getSteps: (options, services) => {\n return [\n {\n guideBlockName: 'info-message',\n options: {\n content: 'guide.step_plugin.edit-ttyg-agent.intro',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: TTYG_EDIT_AGENT_DEFAULT_TITLE }),\n skipPoint: true,\n ...options\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'ttyg-click-to-edit-selected-agent',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.edit-ttyg-agent.edit-agent',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: TTYG_EDIT_AGENT_DEFAULT_TITLE }),\n class: 'edit-agent-btn',\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector: GuideUtils.getGuideElementSelector('edit-current-agent'),\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'ttyg-edit-agent-click-to-save',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.edit-ttyg-agent.save-agent-settings',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: TTYG_EDIT_AGENT_DEFAULT_TITLE }),\n class: 'save-agent',\n disablePreviousFlow: false,\n disableNextFlow: true,\n ...options,\n url: 'ttyg',\n elementSelector: GuideUtils.getGuideElementSelector('save-agent-settings'),\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'edit-ttyg-agent',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const RoutingUtil = services.RoutingUtil;\n options.mainAction = 'edit-ttyg-agent';\n\n return [\n {\n guideBlockName: 'click-main-menu',\n options: {\n ...options,\n menu: 'ttyg',\n showOn: () => 'ttyg' !== RoutingUtil.getCurrentRoute()\n }\n },\n {\n guideBlockName: 'end-on-api-key-error'\n },\n {\n guideBlockName: 'ttyg-edit-agent-intro-message',\n options: {...options}\n },\n {\n // Skip next step (which is actually 5 core steps) if there is a selected agent\n guideBlockName: 'info-message',\n options: angular.extend({}, {\n beforeShowPromise: (guide, currentStep) => {\n if (GuideUtils.isGuideElementVisible('selected-agent')) {\n setTimeout(() => {\n // Using a timeout because the library executes async logic\n guide.show(currentStep.id + 6);\n })\n } else {\n setTimeout(() => {\n // Using a timeout because the library executes async logic\n guide.next()\n });\n }\n }\n }, options)\n },\n {\n guideBlockName: 'select-ttyg-agent',\n options: {...options}\n },\n {\n guideBlockName: 'ttyg-click-to-edit-selected-agent',\n options: {...options}\n },\n {\n guideBlockName: 'configure-agent',\n options\n },\n {\n guideBlockName: 'ttyg-edit-agent-click-to-save',\n options: {...options}\n },\n {\n guideBlockName: 'wait-for-element-to-hide',\n options: angular.extend({}, {\n elementSelectorToHide: GuideUtils.getElementSelector('.agent-settings-modal'),\n timeToWait: 10\n }, options)\n }\n ];\n }\n }\n]);\n\n"],"names":["TTYG_EDIT_AGENT_DEFAULT_TITLE","PluginRegistry","add","guideBlockName","getSteps","options","services","content","mainAction","title","skipPoint","GuideUtils","class","disableNextFlow","url","elementSelector","getGuideElementSelector","disablePreviousFlow","RoutingUtil","menu","showOn","getCurrentRoute","angular","extend","beforeShowPromise","guide","currentStep","isGuideElementVisible","setTimeout","show","id","next","elementSelectorToHide","getElementSelector","timeToWait"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=72379;export const __webpack_ids__=[72379];export const __webpack_modules__={72379:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});const s='<link href="css/autocomplete-select.css?v=3.1.1" rel="stylesheet"/> <div class="autocomplete-select-wrapper"> <div class="autocomplete-select"> <div ng-hide="isMultiline"> <input type="text" ng-model="searchInput" ng-change="onChange()" ng-keydown="onKeyDown($event)" ng-blur="onBlur()" ng-required="required" class="autocomplete-input autocomplete-editable" ng-class="styleClass" placeholder="{{placeholder}}"> </div> <div ng-show="isMultiline"> <textarea ng-model="searchInput" ng-change="onChange()" ng-keydown="onKeyDown($event)" ng-blur="onBlur()" ng-required="required" class="autocomplete-textarea autocomplete-editable" ng-class="styleClass" placeholder="{{placeholder}}" rows="{{initialRows}}">\n </textarea> </div> </div> <div class="autocomplete-results-wrapper card"> <div ng-repeat="autoCompleteUriResult in autoCompleteUriResults track by $index" ng-click="selectResource(autoCompleteUriResult)" ng-mousemove="setActiveItemIndex($index)" ng-class="{active: activeSearchElm === $index, selected: selectedElementIndex === $index}" class="result-item"> <p ng-bind-html="getResultItemHtml(autoCompleteUriResult)"></p> </div> </div> </div> '}};
2
- //# sourceMappingURL=72379.4023fb8f5c0dd8f32faa.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"72379.4023fb8f5c0dd8f32faa.bundle.js","mappings":"uJAIA,QAHW,soC","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/autocomplete/templates/autocomplete.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/autocomplete-select.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"autocomplete-select-wrapper\"> <div class=\"autocomplete-select\"> <div ng-hide=\"isMultiline\"> <input type=\"text\" ng-model=\"searchInput\" ng-change=\"onChange()\" ng-keydown=\"onKeyDown(\\$event)\" ng-blur=\"onBlur()\" ng-required=\"required\" class=\"autocomplete-input autocomplete-editable\" ng-class=\"styleClass\" placeholder=\"{{placeholder}}\"> </div> <div ng-show=\"isMultiline\"> <textarea ng-model=\"searchInput\" ng-change=\"onChange()\" ng-keydown=\"onKeyDown(\\$event)\" ng-blur=\"onBlur()\" ng-required=\"required\" class=\"autocomplete-textarea autocomplete-editable\" ng-class=\"styleClass\" placeholder=\"{{placeholder}}\" rows=\"{{initialRows}}\">\n </textarea> </div> </div> <div class=\"autocomplete-results-wrapper card\"> <div ng-repeat=\"autoCompleteUriResult in autoCompleteUriResults track by \\$index\" ng-click=\"selectResource(autoCompleteUriResult)\" ng-mousemove=\"setActiveItemIndex(\\$index)\" ng-class=\"{active: activeSearchElm === \\$index, selected: selectedElementIndex === \\$index}\" class=\"result-item\"> <p ng-bind-html=\"getResultItemHtml(autoCompleteUriResult)\"></p> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=73667;export const __webpack_ids__=[73667];export const __webpack_modules__={73667:(t,n,s)=>{s.r(n),s.d(n,{default:()=>i});const i='<link href="css/ttyg/agent-instructions-explain-modal.css?v=3.1.1" rel="stylesheet"/> <div class="modal-header"> <button type="button" class="close" ng-click="close()"></button> <h4 class="modal-title">{{\'ttyg.agent.instructions_explain_modal.title\' | translate}}</h4> </div> <div class="modal-body"> <div class="instructions-explain"> <div ng-repeat="instruction in agentInstructionsExplain" class="instruction" ng-class="{\'mb-2\': !$last}"> <h5 class="instruction-title mb-0"> <span uib-popover="{{\'ttyg.agent.instructions_explain_modal.instructions.\' + instruction.type + \'.description\' | translate}}" popover-trigger="mouseenter">{{\'ttyg.agent.instructions_explain_modal.instructions.\' + instruction.type + \'.label\' | translate}}</span> </h5> <h7 class="text-muted d-block">({{instruction.size}} characters)</h7> <pre class="instruction-content">{{instruction.content}}</pre> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" ng-click="onCloseAgentInstructionsExplainModal()"> {{\'ttyg.agent.instructions_explain_modal.btn.close.label\' | translate}} </button> </div> '}};
2
- //# sourceMappingURL=73667.6925315f2649c49bade2.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"73667.6925315f2649c49bade2.bundle.js","mappings":"uJAGA,QAFW,2mC","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/ttyg/agent-instructions-explain-modal.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" ng-click=\"close()\"></button> <h4 class=\"modal-title\">{{'ttyg.agent.instructions_explain_modal.title' | translate}}</h4> </div> <div class=\"modal-body\"> <div class=\"instructions-explain\"> <div ng-repeat=\"instruction in agentInstructionsExplain\" class=\"instruction\" ng-class=\"{'mb-2': !\\$last}\"> <h5 class=\"instruction-title mb-0\"> <span uib-popover=\"{{'ttyg.agent.instructions_explain_modal.instructions.' + instruction.type + '.description' | translate}}\" popover-trigger=\"mouseenter\">{{'ttyg.agent.instructions_explain_modal.instructions.' + instruction.type + '.label' | translate}}</span> </h5> <h7 class=\"text-muted d-block\">({{instruction.size}} characters)</h7> <pre class=\"instruction-content\">{{instruction.content}}</pre> </div> </div> </div> <div class=\"modal-footer\"> <button type=\"button\" class=\"btn btn-secondary\" ng-click=\"onCloseAgentInstructionsExplainModal()\"> {{'ttyg.agent.instructions_explain_modal.btn.close.label' | translate}} </button> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=73793;export const __webpack_ids__=[73793];export const __webpack_modules__={73793:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const n='<link href="css/search-resource-input.css?v=3.1.1" rel="stylesheet"/> <div id="search-resource-box" class="input-group btn-group" ng-class="{\'input-group-lg\': !radioButtons}" style="white-space:nowrap"> <input type="text" class="form-control view-res-input" placeholder="{{placeholder}}" ng-model="searchInput" data-test="rdf-resource-input" ng-change="onChange()" ng-keydown="onKeyDown($event)"> <button ng-if="clearInputIcon && showClearInputIcon" class="btn btn-link clear-icon" data-test="rdf-resource-clear-button" gdb-tooltip="{{\'clear.tooltip\' | translate}}" tooltip-placement="bottom"> <i class="icon-close" aria-hidden="true" ng-click="clearInput()"></i> </button> <span ng-if="!radioButtons" class="input-group-btn"> <button ng-if="textButton !== \'\'" type="button" class="btn btn-primary autocomplete-text-btn" ng-click="checkIfValidAndSearchText()"> {{textButtonLabel | translate}} </button> </span> <span ng-if="!radioButtons" class="input-group-btn show-btn"> <button ng-if="visualButton !== \'\'" type="button" class="btn btn-primary autocomplete-visual-btn" ng-click="checkIfValidAndSearchVisual()"> {{visualButtonLabel | translate}} </button> </span> <span ng-if="radioButtons" class="input-group-btn"> <button class="btn btn-secondary display-type-table-btn" ng-model="searchType" uib-btn-radio="searchDisplayType.table" data-test="display-table-button" ng-click="changeSearchType(searchDisplayType.table)"> {{textButtonLabel | translate}} </button> <button class="btn btn-secondary display-type-visual-btn" ng-model="searchType" uib-btn-radio="searchDisplayType.visual" data-test="display-visual-button" ng-click="changeSearchType(searchDisplayType.visual)"> {{visualButtonLabel | translate}} </button> </span> </div> <span class="autocomplete-hint text-muted">{{\'query.editor.autocomplete.hint\' | translate}}</span> <div id="auto-complete-results-wrapper" ng-if="isAutocompleteEnabled" data-test="auto-complete-results"> <div ng-repeat="autoCompleteUriResult in autoCompleteUriResults track by $index" id="{{\'auto_\' + $index}}" ng-click="searchRdfResourceByEvent(autoCompleteUriResult, $event)" ng-class="{active: activeSearchElm === $index, selected: selectedElementIndex === $index}" ng-mousemove="setActiveClassOnMouseMove($index)" data-test="autocomplete-suggestion" class="result-item" guide-selector="autocomplete-{{autoCompleteUriResult.value}}"> <p ng-bind-html="getResultItemHtml(autoCompleteUriResult)"></p> </div> </div> '}};
2
- //# sourceMappingURL=73793.0cd99844e3792d5beb8c.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"73793.0cd99844e3792d5beb8c.bundle.js","mappings":"uJAGA,QAFW,+5E","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/templates/search-resource-input.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/search-resource-input.css?v=3.1.1\" rel=\"stylesheet\"/> <div id=\"search-resource-box\" class=\"input-group btn-group\" ng-class=\"{'input-group-lg': !radioButtons}\" style=\"white-space:nowrap\"> <input type=\"text\" class=\"form-control view-res-input\" placeholder=\"{{placeholder}}\" ng-model=\"searchInput\" data-test=\"rdf-resource-input\" ng-change=\"onChange()\" ng-keydown=\"onKeyDown(\\$event)\"> <button ng-if=\"clearInputIcon && showClearInputIcon\" class=\"btn btn-link clear-icon\" data-test=\"rdf-resource-clear-button\" gdb-tooltip=\"{{'clear.tooltip' | translate}}\" tooltip-placement=\"bottom\"> <i class=\"icon-close\" aria-hidden=\"true\" ng-click=\"clearInput()\"></i> </button> <span ng-if=\"!radioButtons\" class=\"input-group-btn\"> <button ng-if=\"textButton !== ''\" type=\"button\" class=\"btn btn-primary autocomplete-text-btn\" ng-click=\"checkIfValidAndSearchText()\"> {{textButtonLabel | translate}} </button> </span> <span ng-if=\"!radioButtons\" class=\"input-group-btn show-btn\"> <button ng-if=\"visualButton !== ''\" type=\"button\" class=\"btn btn-primary autocomplete-visual-btn\" ng-click=\"checkIfValidAndSearchVisual()\"> {{visualButtonLabel | translate}} </button> </span> <span ng-if=\"radioButtons\" class=\"input-group-btn\"> <button class=\"btn btn-secondary display-type-table-btn\" ng-model=\"searchType\" uib-btn-radio=\"searchDisplayType.table\" data-test=\"display-table-button\" ng-click=\"changeSearchType(searchDisplayType.table)\"> {{textButtonLabel | translate}} </button> <button class=\"btn btn-secondary display-type-visual-btn\" ng-model=\"searchType\" uib-btn-radio=\"searchDisplayType.visual\" data-test=\"display-visual-button\" ng-click=\"changeSearchType(searchDisplayType.visual)\"> {{visualButtonLabel | translate}} </button> </span> </div> <span class=\"autocomplete-hint text-muted\">{{'query.editor.autocomplete.hint' | translate}}</span> <div id=\"auto-complete-results-wrapper\" ng-if=\"isAutocompleteEnabled\" data-test=\"auto-complete-results\"> <div ng-repeat=\"autoCompleteUriResult in autoCompleteUriResults track by \\$index\" id=\"{{'auto_' + \\$index}}\" ng-click=\"searchRdfResourceByEvent(autoCompleteUriResult, \\$event)\" ng-class=\"{active: activeSearchElm === \\$index, selected: selectedElementIndex === \\$index}\" ng-mousemove=\"setActiveClassOnMouseMove(\\$index)\" data-test=\"autocomplete-suggestion\" class=\"result-item\" guide-selector=\"autocomplete-{{autoCompleteUriResult.value}}\"> <p ng-bind-html=\"getResultItemHtml(autoCompleteUriResult)\"></p> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=75282;export const __webpack_ids__=[75282];export const __webpack_modules__={75282:(e,t,d)=>{d.r(t),d.d(t,{default:()=>n});const n='<link href="css/editable-content.css?v=3.1.1" rel="stylesheet"/> <div ng-attr-contenteditable="{{!ngDisabled}}" ng-attr-disabled="{{ngDisabled ? true : undefined}}" placeholder="{{placeholder}}" guide-selector="contenteditable" class="contenteditable"> </div> '}};
2
- //# sourceMappingURL=75282.1005c493f43b9d6dcc5a.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"75282.1005c493f43b9d6dcc5a.bundle.js","mappings":"uJAGA,QAFW,sQ","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/templates/editable-content/editable-content.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/editable-content.css?v=3.1.1\" rel=\"stylesheet\"/> <div ng-attr-contenteditable=\"{{!ngDisabled}}\" ng-attr-disabled=\"{{ngDisabled ? true : undefined}}\" placeholder=\"{{placeholder}}\" guide-selector=\"contenteditable\" class=\"contenteditable\"> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=75849;export const __webpack_ids__=[75849];export const __webpack_modules__={75849:(t,a,e)=>{e.r(a),e.d(a,{default:()=>n});const n='<link href="css/ttyg/chat-list.css?v=3.1.1" rel="stylesheet"/> <div class="chat-list-component"> <div class="chat-list"> <div ng-repeat="chatGroup in chatList.chatsByDay" class="chat-group"> <label>{{ getHumanReadableChatGroupTimestamp(chatGroup.timestamp) }}</label> <ul> <li ng-repeat="chat in chatGroup.chats track by chat.hash" class="chat-item" ng-class="{\'selected\': chat.id === selectedChat.id, \'edited\': renamedChat && chat.id === renamedChat.id}"> <div ng-if="!deletingChat || deletingChat.chatId !== chat.id" class="chat-detail"> <div class="chat-name"> <inline-editable-text field-name="name" source="chat" is-editing="chat.id && renamedChat && chat.id === renamedChat.id" on-save="onRenameChat(newText, source)" on-cancel="onCancelChatRenaming()" on-dblclick="onSelectChatForRenaming(chat)" on-click="onSelectChat(source)" title="{{chat.name}}" show-tooltip-on-overflow> </inline-editable-text> </div> <div ng-if="chat.id && (!renamedChat || chat.id !== renamedChat.id)" class="btn-group"> <button class="btn btn-link secondary btn-sm open-chat-actions-btn" data-toggle="dropdown" aria-expanded="false" ng-if="true" ng-click="openChatActionMenu()" ng-disabled="false"> <i class="fa fa-ellipsis"></i> </button> <div class="dropdown-menu dropdown-menu-right chat-actions-menu"> <button class="dropdown-item export-chat-btn" type="button" ng-click="onExportChat(chat)"> <i class="fa fa-arrow-down-to-line"></i> <span>{{\'ttyg.chat.btn.export_chat.label\' | translate}}</span> </button> <button class="dropdown-item rename-chat-btn" type="button" ng-click="onSelectChatForRenaming(chat)"> <i class="fa fa-pen"></i> <span>{{\'ttyg.chat.btn.rename_chat.label\' | translate}}</span> </button> <div class="dropdown-divider"></div> <button class="dropdown-item delete-chat-btn" type="button" ng-click="onDeleteChat(chat)"> <i class="fa fa-trash-can"></i> <span>{{\'ttyg.chat.btn.delete_chat.label\' | translate}}</span> </button> </div> </div> </div> <div class="deleting-chat-loader" ng-if="deletingChat && deletingChat.chatId === chat.id && deletingChat.inProgress" onto-loader-fancy message="{{\'ttyg.chat.deleting_chat\' | translate}}" size="25"></div> </li> </ul> </div> </div> </div> '}};
2
- //# sourceMappingURL=75849.39b30ee4eb2f1b35f762.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"75849.39b30ee4eb2f1b35f762.bundle.js","mappings":"uJAGA,QAFW,upE","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/ttyg/templates/chat-list.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/ttyg/chat-list.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"chat-list-component\"> <div class=\"chat-list\"> <div ng-repeat=\"chatGroup in chatList.chatsByDay\" class=\"chat-group\"> <label>{{ getHumanReadableChatGroupTimestamp(chatGroup.timestamp) }}</label> <ul> <li ng-repeat=\"chat in chatGroup.chats track by chat.hash\" class=\"chat-item\" ng-class=\"{'selected': chat.id === selectedChat.id, 'edited': renamedChat && chat.id === renamedChat.id}\"> <div ng-if=\"!deletingChat || deletingChat.chatId !== chat.id\" class=\"chat-detail\"> <div class=\"chat-name\"> <inline-editable-text field-name=\"name\" source=\"chat\" is-editing=\"chat.id && renamedChat && chat.id === renamedChat.id\" on-save=\"onRenameChat(newText, source)\" on-cancel=\"onCancelChatRenaming()\" on-dblclick=\"onSelectChatForRenaming(chat)\" on-click=\"onSelectChat(source)\" title=\"{{chat.name}}\" show-tooltip-on-overflow> </inline-editable-text> </div> <div ng-if=\"chat.id && (!renamedChat || chat.id !== renamedChat.id)\" class=\"btn-group\"> <button class=\"btn btn-link secondary btn-sm open-chat-actions-btn\" data-toggle=\"dropdown\" aria-expanded=\"false\" ng-if=\"true\" ng-click=\"openChatActionMenu()\" ng-disabled=\"false\"> <i class=\"fa fa-ellipsis\"></i> </button> <div class=\"dropdown-menu dropdown-menu-right chat-actions-menu\"> <button class=\"dropdown-item export-chat-btn\" type=\"button\" ng-click=\"onExportChat(chat)\"> <i class=\"fa fa-arrow-down-to-line\"></i> <span>{{'ttyg.chat.btn.export_chat.label' | translate}}</span> </button> <button class=\"dropdown-item rename-chat-btn\" type=\"button\" ng-click=\"onSelectChatForRenaming(chat)\"> <i class=\"fa fa-pen\"></i> <span>{{'ttyg.chat.btn.rename_chat.label' | translate}}</span> </button> <div class=\"dropdown-divider\"></div> <button class=\"dropdown-item delete-chat-btn\" type=\"button\" ng-click=\"onDeleteChat(chat)\"> <i class=\"fa fa-trash-can\"></i> <span>{{'ttyg.chat.btn.delete_chat.label' | translate}}</span> </button> </div> </div> </div> <div class=\"deleting-chat-loader\" ng-if=\"deletingChat && deletingChat.chatId === chat.id && deletingChat.inProgress\" onto-loader-fancy message=\"{{'ttyg.chat.deleting_chat' | translate}}\" size=\"25\"></div> </li> </ul> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=76013;export const __webpack_ids__=[76013];export const __webpack_modules__={76013:()=>{const e=(e,t)=>e.$repositories.getRepositories().find(e=>e.id===t.repositoryId)?t.repositoryId:t.repositoryIdBase,t=(t,o)=>t.GuideUtils.getGuideElementSelector(`repository-id-${e(t,o)}`),o=e=>{const t=document.querySelector(".onto-repository-selector");t&&(t.autoClose=e)};PluginRegistry.add("guide.step",[{guideBlockName:"select-repository-dropdown",getSteps:(i,s)=>{const r=s.GuideUtils;return i.mainAction="select-repository",i.getRepositoryId=()=>e(s,i),[{guideBlockName:"clickable-element",options:angular.extend({},{skipPoint:!0,content:"guide.step_plugin.choose-repository.content",elementSelector:".onto-repository-selector",class:"repositories-group-button",onNextClick:r.clickOnElement(".onto-repository-selector .onto-dropdown-button")},i)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.select-repository.content",elementSelector:()=>t(s,i),class:"repository-select-button",advanceOn:void 0,beforeShowPromise:()=>s.GuideUtils.waitFor(t(s,i),1).catch(e=>{throw s.toastr.error(s.$translate.instant("guide.unexpected.error.message")),e}),show:e=>()=>{o(!1),$(t(s,i)).on("mouseup.selectRepositoryButtonClick",function(){e.next()})},onNextClick:e=>{$(t(s,i)).off("mouseup.selectRepositoryButtonClick"),r.clickOnElement(t(s,i))().then(()=>e.next())},hide:()=>()=>{o(!0),$(t(s,i)).off("mouseup.selectRepositoryButtonClick")},canBePaused:!1},i)}]}},{guideBlockName:"repositories-select-repository",getSteps:(t,o)=>{const i=o.GuideUtils,s=t.repositoryIdToSelect??e(o,t),r=`${i.getGuideElementSelector(`repository-${s}`)} ${i.getGuideElementSelector("select-repository-button-wrapper")}`,n=`${r} ${i.getGuideElementSelector("select-repository-button")}`;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.repositories.select-repository.content",...t.mainAction?{}:{title:"guide.step_plugin.repositories.default-title"},url:"repository",elementSelector:r,class:"repositories-select-repository",onNextClick:()=>i.clickOnElement(n)(),...t}}]}}])}};
2
- //# sourceMappingURL=76013.3211939a02cf4fb2529e.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"76013.3211939a02cf4fb2529e.bundle.js","mappings":"oHAAA,MAAMA,EAAoBA,CAACC,EAAUC,IAC1BD,EAASE,cAAcC,kBAAkBC,KAAMC,GAASA,EAAKC,KAAOL,EAAQM,cAAgBN,EAAQM,aAAeN,EAAQO,iBAGhIC,EAA+BA,CAACT,EAAUC,IACrCD,EAASU,WAAWC,wBAAwB,iBAAiBZ,EAAkBC,EAAUC,MAG9FW,EAAkCC,IACpC,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WC,wBAAwB,sCAC7GwC,EAAiC,GAAGD,KAAyCxC,EAAWC,wBAAwB,8BACtH,MAAO,CACH,CACIQ,eAAgB,oBAChBlB,QAAS,CACLyB,QAAS,8DAELzB,EAAQoB,WAAa,CAAC,EAAI,CAAC+B,MAtEpB,gDAuEXC,IAAK,aACL1B,gBAAiBuB,EACjBtB,MAAO,iCACPC,YAAaA,IAAMnB,EAAWoB,eAAeqB,EAA1BzC,MAChBT,Q","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/select-repository/plugin.js"],"sourcesContent":["const getRepositoryName = (services, options) => {\n return services.$repositories.getRepositories().find((repo) => repo.id === options.repositoryId) ? options.repositoryId : options.repositoryIdBase;\n};\n\nconst getRepositoryElementSelector = (services, options) => {\n return services.GuideUtils.getGuideElementSelector(`repository-id-${getRepositoryName(services, options)}`);\n};\n\nconst setRepositorySelectorAutoClose = (autoClose) => {\n const component = document.querySelector('.onto-repository-selector');\n if (component) {\n // Enable auto-close when the guide step is closed.\n component.autoClose = autoClose;\n }\n}\n\nconst REPOSITORIES_DEFAULT_TITLE = 'guide.step_plugin.repositories.default-title'\n\nPluginRegistry.add('guide.step', [\n {\n guideBlockName: 'select-repository-dropdown',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n options.mainAction = 'select-repository';\n options.getRepositoryId = () => getRepositoryName(services, options);\n\n return [{\n guideBlockName: 'clickable-element',\n options: angular.extend({}, {\n skipPoint: true,\n content: 'guide.step_plugin.choose-repository.content',\n elementSelector: '.onto-repository-selector',\n class: 'repositories-group-button',\n onNextClick: GuideUtils.clickOnElement('.onto-repository-selector .onto-dropdown-button')\n }, options)\n }, {\n guideBlockName: 'clickable-element',\n options: angular.extend({}, {\n content: 'guide.step_plugin.select-repository.content',\n elementSelector: () => {\n return getRepositoryElementSelector(services, options);\n },\n class: 'repository-select-button',\n advanceOn: undefined,\n beforeShowPromise: () => services.GuideUtils.waitFor(getRepositoryElementSelector(services, options), 1)\n .catch((error) => {\n services.toastr.error(services.$translate.instant('guide.unexpected.error.message'));\n throw (error);\n }),\n show: (guide) => () => {\n setRepositorySelectorAutoClose(false);\n // Added listener to the element.\n $(getRepositoryElementSelector(services, options))\n .on('mouseup.selectRepositoryButtonClick', function () {\n guide.next();\n });\n },\n onNextClick: (guide) => {\n $(getRepositoryElementSelector(services, options)).off('mouseup.selectRepositoryButtonClick');\n GuideUtils.clickOnElement(getRepositoryElementSelector(services, options))().then(() => guide.next());\n },\n hide: () => () => {\n setRepositorySelectorAutoClose(true);\n // Remove ths listener from element. It is important when step is hided.\n $(getRepositoryElementSelector(services, options)).off('mouseup.selectRepositoryButtonClick');\n },\n canBePaused: false\n }, options)\n }\n ];\n }\n },\n {\n guideBlockName: 'repositories-select-repository',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n const repositoryId = options.repositoryIdToSelect ?? getRepositoryName(services, options);\n const selectRepositoryRowSelector = GuideUtils.getGuideElementSelector(`repository-${repositoryId}`);\n const selectRepositoryButtonWrapperSelector = `${selectRepositoryRowSelector} ${GuideUtils.getGuideElementSelector('select-repository-button-wrapper')}`;\n const selectRepositoryButtonSelector = `${selectRepositoryButtonWrapperSelector} ${GuideUtils.getGuideElementSelector('select-repository-button')}`;\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.repositories.select-repository.content',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : {title: REPOSITORIES_DEFAULT_TITLE}),\n url: 'repository',\n elementSelector: selectRepositoryButtonWrapperSelector,\n class: 'repositories-select-repository',\n onNextClick: () => GuideUtils.clickOnElement(selectRepositoryButtonSelector)(),\n ...options\n }\n }\n ]\n }\n }\n]);\n"],"names":["getRepositoryName","services","options","$repositories","getRepositories","find","repo","id","repositoryId","repositoryIdBase","getRepositoryElementSelector","GuideUtils","getGuideElementSelector","setRepositorySelectorAutoClose","autoClose","component","document","querySelector","PluginRegistry","add","guideBlockName","getSteps","mainAction","getRepositoryId","angular","extend","skipPoint","content","elementSelector","class","onNextClick","clickOnElement","advanceOn","undefined","beforeShowPromise","waitFor","catch","error","toastr","$translate","instant","show","guide","$","on","next","off","then","hide","canBePaused","repositoryIdToSelect","selectRepositoryButtonWrapperSelector","selectRepositoryButtonSelector","title","url"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_id__=78250;export const __webpack_ids__=[78250];export const __webpack_modules__={78250:(o,c,e)=>{e.r(c),e.d(c,{default:()=>n});const n='<link href="css/cookie-policy.css?v=3.1.1" rel="stylesheet"/> <div class="cookie-consent-modal" ng-show="showCookieConsent"> <div class="cookie-consent-content"> <span>{{\'cookie.cookie_consent\' | translate}} <a href="#" class="btn btn-link p-0" ng-click="showCookiePolicy()">{{\'cookie.cookie_policy_url_label\' | translate}}</a>.</span> <button class="btn btn-primary" ng-click="acceptConsent()">{{\'common.ok.btn\' | translate}}</button> </div> </div> '}};
2
- //# sourceMappingURL=78250.8462f5662da1fd9ece0b.bundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"78250.8462f5662da1fd9ece0b.bundle.js","mappings":"uJAGA,QAFW,0c","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/templates/cookie-policy/cookie-consent.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/cookie-policy.css?v=3.1.1\" rel=\"stylesheet\"/> <div class=\"cookie-consent-modal\" ng-show=\"showCookieConsent\"> <div class=\"cookie-consent-content\"> <span>{{'cookie.cookie_consent' | translate}} <a href=\"#\" class=\"btn btn-link p-0\" ng-click=\"showCookiePolicy()\">{{'cookie.cookie_policy_url_label' | translate}}</a>.</span> <button class=\"btn btn-primary\" ng-click=\"acceptConsent()\">{{'common.ok.btn' | translate}}</button> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}