graphdb-workbench 3.1.2-RC1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/12396.2a58aa00f3e80adc282c.bundle.js +2 -0
- package/dist/12396.2a58aa00f3e80adc282c.bundle.js.map +1 -0
- package/dist/15535.4a70ca909504f43c2b40.bundle.js +2 -0
- package/dist/15535.4a70ca909504f43c2b40.bundle.js.map +1 -0
- package/dist/16162.d73e80b23572a1349cd7.bundle.js +2 -0
- package/dist/16162.d73e80b23572a1349cd7.bundle.js.map +1 -0
- package/dist/20287.bb55a5f062ba9da4ffbc.bundle.js +2 -0
- package/dist/20287.bb55a5f062ba9da4ffbc.bundle.js.map +1 -0
- package/dist/21136.c2a4b46f3c543f7a9dbd.bundle.js +2 -0
- package/dist/21136.c2a4b46f3c543f7a9dbd.bundle.js.map +1 -0
- package/dist/21142.1e7b311d2af1ca8ba19c.bundle.js +2 -0
- package/dist/21142.1e7b311d2af1ca8ba19c.bundle.js.map +1 -0
- package/dist/21170.33d06d154542e8d50993.bundle.js +2 -0
- package/dist/21170.33d06d154542e8d50993.bundle.js.map +1 -0
- package/dist/21195.068e91c4f79dd864bd86.bundle.js +2 -0
- package/dist/21195.068e91c4f79dd864bd86.bundle.js.map +1 -0
- package/dist/25747.f7389678f696a7b7223d.bundle.js +2 -0
- package/dist/25747.f7389678f696a7b7223d.bundle.js.map +1 -0
- package/dist/27580.0ff25d12ad7890646120.bundle.js +2 -0
- package/dist/27580.0ff25d12ad7890646120.bundle.js.map +1 -0
- package/dist/31636.672f37b183c7ab701d2b.bundle.js +2 -0
- package/dist/31636.672f37b183c7ab701d2b.bundle.js.map +1 -0
- package/dist/32489.348328b2ec201ab7a064.bundle.js +2 -0
- package/dist/32489.348328b2ec201ab7a064.bundle.js.map +1 -0
- package/dist/34495.7faf960e669e401275d0.bundle.js +2 -0
- package/dist/34495.7faf960e669e401275d0.bundle.js.map +1 -0
- package/dist/{38360.4cdad1c762e87ebd0956.bundle.js → 38360.13fce2ca4886268acea3.bundle.js} +2 -2
- package/dist/38360.13fce2ca4886268acea3.bundle.js.map +1 -0
- package/dist/38644.3164cd68244544447402.bundle.js +2 -0
- package/dist/38644.3164cd68244544447402.bundle.js.map +1 -0
- package/dist/38843.97e736d949f501ce21e6.bundle.js +2 -0
- package/dist/38843.97e736d949f501ce21e6.bundle.js.map +1 -0
- package/dist/39518.145842b8a70dbc58c303.bundle.js +2 -0
- package/dist/{39518.148d1b3347798e9919fd.bundle.js.map → 39518.145842b8a70dbc58c303.bundle.js.map} +1 -1
- package/dist/39539.0e59c34dd6d31f2d8a53.bundle.js +2 -0
- package/dist/39539.0e59c34dd6d31f2d8a53.bundle.js.map +1 -0
- package/dist/41453.1b24b249527e641a6bcb.bundle.js +2 -0
- package/dist/41453.1b24b249527e641a6bcb.bundle.js.map +1 -0
- package/dist/42129.06a23d02c400bc98b35c.bundle.js +2 -0
- package/dist/42129.06a23d02c400bc98b35c.bundle.js.map +1 -0
- package/dist/44444.c503741f67fa8b1ac103.bundle.js +2 -0
- package/dist/44444.c503741f67fa8b1ac103.bundle.js.map +1 -0
- package/dist/55862.58ee49bffdec75150c63.bundle.js +2 -0
- package/dist/55862.58ee49bffdec75150c63.bundle.js.map +1 -0
- package/dist/58306.adaa1f736f8a2bfb72dd.bundle.js +2 -0
- package/dist/58306.adaa1f736f8a2bfb72dd.bundle.js.map +1 -0
- package/dist/67888.230a68dc527bc891e51f.bundle.js +2 -0
- package/dist/67888.230a68dc527bc891e51f.bundle.js.map +1 -0
- package/dist/72379.2d929b5c822100c1d0f9.bundle.js +2 -0
- package/dist/72379.2d929b5c822100c1d0f9.bundle.js.map +1 -0
- package/dist/73667.42b368bd0eca052b9f71.bundle.js +2 -0
- package/dist/73667.42b368bd0eca052b9f71.bundle.js.map +1 -0
- package/dist/73793.3c7b4a8221464f9c1921.bundle.js +2 -0
- package/dist/73793.3c7b4a8221464f9c1921.bundle.js.map +1 -0
- package/dist/75282.b8723c69fc0022d1f92f.bundle.js +2 -0
- package/dist/75282.b8723c69fc0022d1f92f.bundle.js.map +1 -0
- package/dist/75849.a80d61650ca595918351.bundle.js +2 -0
- package/dist/75849.a80d61650ca595918351.bundle.js.map +1 -0
- package/dist/78250.0900ee2241338d0838fd.bundle.js +2 -0
- package/dist/78250.0900ee2241338d0838fd.bundle.js.map +1 -0
- package/dist/79329.4766d262ff0aa6d027b9.bundle.js +2 -0
- package/dist/79329.4766d262ff0aa6d027b9.bundle.js.map +1 -0
- package/dist/{82926.e3185a54538c532c72ca.bundle.js → 82926.8499d3ada2de0e5ab7fb.bundle.js} +2 -2
- package/dist/{82926.e3185a54538c532c72ca.bundle.js.map → 82926.8499d3ada2de0e5ab7fb.bundle.js.map} +1 -1
- package/dist/9062.7de1bb677c203b2e6577.bundle.js +2 -0
- package/dist/9062.7de1bb677c203b2e6577.bundle.js.map +1 -0
- package/dist/99448.e04b8e2508695382203a.bundle.js +2 -0
- package/dist/99448.e04b8e2508695382203a.bundle.js.map +1 -0
- package/dist/index.html +7 -7
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
- package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/legacyWorkbench.1714e573006ab425d605.js +3 -0
- package/dist/{legacyWorkbench.7c89e10f5b13be36e507.js.map → legacyWorkbench.1714e573006ab425d605.js.map} +1 -1
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/login.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +11 -11
- package/package.json +1 -1
- package/dist/12396.45c6c5bfacbc9b618e53.bundle.js +0 -2
- package/dist/12396.45c6c5bfacbc9b618e53.bundle.js.map +0 -1
- package/dist/15535.4ddd399f1c7b1a293cd1.bundle.js +0 -2
- package/dist/15535.4ddd399f1c7b1a293cd1.bundle.js.map +0 -1
- package/dist/16162.5a13a7e01245ad4a1870.bundle.js +0 -2
- package/dist/16162.5a13a7e01245ad4a1870.bundle.js.map +0 -1
- package/dist/20287.57efc6f8c3d69e32d9eb.bundle.js +0 -2
- package/dist/20287.57efc6f8c3d69e32d9eb.bundle.js.map +0 -1
- package/dist/21136.16ba26c3c2a5994ac804.bundle.js +0 -2
- package/dist/21136.16ba26c3c2a5994ac804.bundle.js.map +0 -1
- package/dist/21142.6a0dddf4d8cbaa3f12b0.bundle.js +0 -2
- package/dist/21142.6a0dddf4d8cbaa3f12b0.bundle.js.map +0 -1
- package/dist/21170.8e1c1c6ca9e0dcabb7f1.bundle.js +0 -2
- package/dist/21170.8e1c1c6ca9e0dcabb7f1.bundle.js.map +0 -1
- package/dist/21195.a643243779a9686a80c2.bundle.js +0 -2
- package/dist/21195.a643243779a9686a80c2.bundle.js.map +0 -1
- package/dist/25747.cad141609522a4fada23.bundle.js +0 -2
- package/dist/25747.cad141609522a4fada23.bundle.js.map +0 -1
- package/dist/27580.9b398051408490eb3370.bundle.js +0 -2
- package/dist/27580.9b398051408490eb3370.bundle.js.map +0 -1
- package/dist/31636.4cbcef238ea95947d034.bundle.js +0 -2
- package/dist/31636.4cbcef238ea95947d034.bundle.js.map +0 -1
- package/dist/32489.6f365b00ec1f1a922349.bundle.js +0 -2
- package/dist/32489.6f365b00ec1f1a922349.bundle.js.map +0 -1
- package/dist/34495.26fa7bdc333ca00fd5ef.bundle.js +0 -2
- package/dist/34495.26fa7bdc333ca00fd5ef.bundle.js.map +0 -1
- package/dist/38360.4cdad1c762e87ebd0956.bundle.js.map +0 -1
- package/dist/38644.fc6c58775859f41c805f.bundle.js +0 -2
- package/dist/38644.fc6c58775859f41c805f.bundle.js.map +0 -1
- package/dist/38843.87e1d2c22e7c03397740.bundle.js +0 -2
- package/dist/38843.87e1d2c22e7c03397740.bundle.js.map +0 -1
- package/dist/39518.148d1b3347798e9919fd.bundle.js +0 -2
- package/dist/39539.43ba568d747c737aa425.bundle.js +0 -2
- package/dist/39539.43ba568d747c737aa425.bundle.js.map +0 -1
- package/dist/41453.cc7b9e548b29aa23051f.bundle.js +0 -2
- package/dist/41453.cc7b9e548b29aa23051f.bundle.js.map +0 -1
- package/dist/42129.ea7309affc343caf1ca2.bundle.js +0 -2
- package/dist/42129.ea7309affc343caf1ca2.bundle.js.map +0 -1
- package/dist/44444.55a40d0bec02cb65abec.bundle.js +0 -2
- package/dist/44444.55a40d0bec02cb65abec.bundle.js.map +0 -1
- package/dist/55862.d9d6d715b3ef7c42f98f.bundle.js +0 -2
- package/dist/55862.d9d6d715b3ef7c42f98f.bundle.js.map +0 -1
- package/dist/58306.d34210db8418c8e2ada5.bundle.js +0 -2
- package/dist/58306.d34210db8418c8e2ada5.bundle.js.map +0 -1
- package/dist/67888.351f27e70f183b0ed866.bundle.js +0 -2
- package/dist/67888.351f27e70f183b0ed866.bundle.js.map +0 -1
- package/dist/72379.53a484997d925adb2740.bundle.js +0 -2
- package/dist/72379.53a484997d925adb2740.bundle.js.map +0 -1
- package/dist/73667.4393561b33a20dcfa9c7.bundle.js +0 -2
- package/dist/73667.4393561b33a20dcfa9c7.bundle.js.map +0 -1
- package/dist/73793.4af5d04b7d2549d88c47.bundle.js +0 -2
- package/dist/73793.4af5d04b7d2549d88c47.bundle.js.map +0 -1
- package/dist/75282.fd7af7301abd1fbdb902.bundle.js +0 -2
- package/dist/75282.fd7af7301abd1fbdb902.bundle.js.map +0 -1
- package/dist/75849.a3bceb24c6c508086f31.bundle.js +0 -2
- package/dist/75849.a3bceb24c6c508086f31.bundle.js.map +0 -1
- package/dist/78250.291dc2a5a37971ff0e26.bundle.js +0 -2
- package/dist/78250.291dc2a5a37971ff0e26.bundle.js.map +0 -1
- package/dist/79329.3af551efaa9b79cb9ecd.bundle.js +0 -2
- package/dist/79329.3af551efaa9b79cb9ecd.bundle.js.map +0 -1
- package/dist/9062.ffba00927452fd99ac05.bundle.js +0 -2
- package/dist/9062.ffba00927452fd99ac05.bundle.js.map +0 -1
- package/dist/99448.a99d92ecebfe54944813.bundle.js +0 -2
- package/dist/99448.a99d92ecebfe54944813.bundle.js.map +0 -1
- package/dist/legacyWorkbench.7c89e10f5b13be36e507.js +0 -3
- /package/dist/{legacyWorkbench.7c89e10f5b13be36e507.js.LICENSE.txt → legacyWorkbench.1714e573006ab425d605.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=39518;export const __webpack_ids__=[14319,39518,49342,78618];export const __webpack_modules__={14319:(e,t,n)=>{n.r(t),n.d(t,{FILENAME_PATTERN:()=>o,NUMBER_PATTERN:()=>a,REPOSITORY_TYPES:()=>i,STATIC_RULESETS:()=>r});const r=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},o=new RegExp("^[a-zA-Z0-9-_]+$"),a=new RegExp("^[0-9]+$")},19935:(e,t,n)=>{n.d(t,{A:()=>a}),n(62979);var r=n(93462);const i={dispatch:r.dispatch,pointer:r.pointer};var o=o||{};o.Text=function(){function e(e,t,n,r){n=n||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<n&&(i=n),Math.round(i)):(i<n&&(i=n),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,i){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),o.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},o.Click=function(){function e(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=i.dispatch("click","dblclick");return function(t,n){let r,i=1,o=arguments.length;for(;++i<o;)r=arguments[i],t[r]=e(t,n,n[r]);return t}(function(e){var n,r=null;e.on("mousedown",function(){n=i.pointer(document.body),new Date}),e.on("mouseup",function(e,o){var a,s,c;s=n,c=i.pointer(document.body),Math.sqrt(Math.pow(s[0]-c[0],2),Math.pow(s[1]-c[1],2))>5||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,o)):r=window.setTimeout((a=e,function(){t.call("click",a,a,o),r=null}),250))})},t,"on")}}}();const a=o},39518:(e,t,n)=>{n.r(t),n(82493),n(96e3),n(18148);var r=n(19935),i=n(75468),o=n(93462),a=(n(32150),n(14319)),s=n(78618),c=n(6418),l=n(72155),d=n(57154);function p(e,t,n,p,u,f,h,g,m,y,v,x,S,I,w,k,L,C,T,b,N,P,A){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=b.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=m.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=b.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=b.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{j(),m.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{x.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),F()},e.changeLimit=t=>{let n=e.settings.linksLimit+t;n<1&&(n=1),n>1e3&&(n=1e3),e.settings.linksLimit=n},e.validateLinksLimit=()=>{e.invalidLimit=!a.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),F()},e.updateSettings=()=>{e.invalidLimit?u.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,function(e){return e.text}),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,function(e){return e.text}),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,function(e){return e.text}),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,function(e){return e.text}),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,function(e){return e.text}),e.rootNodeIri?B(e.rootNodeIri):e.queryResultsMode&&m.search().query?W(m.search().query,m.search().sameAs,m.search().inference):"query"===e.configLoaded.startMode&&Y(e.configLoaded),D(),e.showInfoPanel=!1,e.showFilter=!1,w.set(k.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{C.getGraphConfigs().success(function(n){e.graphConfigs=n,t&&t()}).error(function(e){u.error(getError(e),b.instant("graphexplore.error.graph.configs.short.msg"))})},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,function(e){return e.id===t})[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{x.openSimpleModal({title:b.instant("common.confirm"),message:b.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then(function(){C.deleteGraphConfig(t).success(function(){e.getGraphConfigs(),e.refreshSavedGraphs()}).error(function(e){u.error(getError(e),b.instant("graphexplore.error.cannot.delete.config"))})})},e.goToGraphConfig=e=>{G({config:e.id},{config:e}),j(),Y(e)},e.replaceIRIWithPrefix=t=>{const n=e.namespaces,r=_.findLast(n,function(e){return 0===t.indexOf(e.uri)});return r?r.prefix+":"+t.substring(r.uri.length):t};const M=[];M.push(t.$on("$translateChangeSuccess",function(){e.INVALID_LINKS_MSG=b.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=b.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=b.instant("visual.search.instance.placeholder")})),M.push(P.onAutocompleteEnabledUpdated(t=>{e.isAutocompleteEnabled=t})),M.push(d.ServiceProvider.get(d.RepositoryContextService).onSelectedRepositoryChanged(t=>{t?A.getNamespaces(t.id).then(t=>{e.repositoryNamespaces=t,e.namespaces=t.namespaces}).catch(e=>{const t=getError(e);u.error(t,b.instant("error.getting.namespaces.for.repo"))}):e.repositoryNamespaces=new c.NamespacesListModel})),M.push(e.$on("repositoryIsSet",function(t,n){n.newRepo&&(e.hasInitedRepository=!1),ge(n.newRepo),n.newRepo&&(j(),$(".graph-visualization svg").empty(),m.search().query&&(e.goToHome(),U()))})),M.push(t.$watch(()=>t.key,()=>{ee=0,_.each(e.propertiesObj.items,function(e){t.key>e&&ee++}),te++})),M.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&f(function(){e.adapterContainer.adapter.reload()},500)}));let E=!1,R=0;function O(e){E&&e.stopPropagation()}document.addEventListener("keydown",O,!0),e.$on("$destroy",()=>{M.forEach(e=>e()),document.removeEventListener("keydown",O,!0),window.onpopstate=null});const G=(t,n)=>{e.embedded&&(t.embedded=!0),n.skipOnPopState=!0,m.search(t),m.state(n)},j=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,ne={},re=0},z=()=>N.isActive()?e.defaultSettings:e.saveSettings,D=()=>{z().showLinksText?o.selectAll("svg .link-wrapper text").style("display","block"):o.selectAll("svg .link-wrapper text").style("display","none")},F=()=>{e.settings.languagesMap=_.map(e.settings.languages,function(e){return{text:e}}),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,function(e){return{text:e}}),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,function(e){return{text:e}}),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,function(e){return{text:e}}),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,function(e){return{text:e}})},B=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},U=()=>{m.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,W(m.search().query,m.search().sameAs,m.search().inference)):e.$on("onRootNodeChange",function(t,n){e.loading=!0;const r=z();angular.isDefined(n)&&(e.rootNodeIri=n,T.getInstanceNode({iri:n,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState}).then(function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),he=new fe;const n=he.addNode(t.data,le/2,de/2);ce=se,Re(n,!0)}).catch(function(t){e.loading=!1,u.error(getError(t),b.instant("graphexplore.error.could.not.load.graph"))}))}),m.search().uri&&e.openUri(m.search().uri,!0),m.search().saved&&L.getSavedGraph(m.search().saved).success(function(t){e.loadSavedGraph(t)}).error(function(e){const t=getError(e);u.error(t,b.instant("graphexplore.error.could.not.open"))})},W=(t,n,r)=>{const i=z(),o=void 0===n?i.sameAsState:!0===n,a=void 0===r?i.includeInferred:!0===r;e.loading=!0,T.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:a,sameAsState:o}).then(function(e){Me(e)},function(t){e.loading=!1,u.error(getError(t.data),b.instant("graphexplore.error.cannot.load.graph"))})},q=(e,t)=>{const n=e.split(" ");return t?[n[0],n[1],n[2]].join(">"):[n[0],n[2]].join(">")},V=e=>[e.source.iri,e.target.iri].join(">"),H=e=>{if(e.isTriple){const t=document.getElementById((0,s.removeSpecialChars)(q(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},K=e=>{if(e.isTriple){const t=document.getElementById((0,s.removeSpecialChars)(q(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},Z=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},Q=e=>{const t=e.source.isTriple?q(e.source.iri,!0):e.source.iri,n=e.target.isTriple?q(e.target.iri,!0):e.target.iri;return(0,s.removeSpecialChars)(`${t}>${n}>marker`)},J=(e,t)=>{const n=t.map(t=>t[e]);return t.filter((t,r)=>n.indexOf(t[e])===r)},Y=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?f(function(){e.openUri(t.startIRI,!0)},0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,C.loadGraphForConfig(t,t.startQueryIncludeInferred,z().linksLimit,t.startQuerySameAs).then(function(e){Me(e)},function(t){e.loading=!1,u.error(getError(t),b.instant("graphexplore.error.graph.load"))}))},X=function(){var t,n;m.search().config?(t=m.search().config,n=U,t===e.defaultGraphConfig.id?Y(e.defaultGraphConfig):C.getConfig(t).then(e=>{Y(e),n()}).catch(e=>{u.error(getError(e),b.instant("graphexplore.error.could.not.load.config",{configId:t}))})):m.search().query||m.search().uri?(Y(e.defaultGraphConfig),U()):U()};I.onpopstate=function(t){t.state&&t.state.skipOnPopState||(j(),t.state&&(t.state.config?(Y(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0)))},e.embedded&&(m.search().query||m.search().uri||m.search().config||m.search().saved)&&(e.noGoHome=!0);let ee=0,te=0,ne={},re=0;const ie=16,oe=o.zoom().scaleExtent([.1,10]);let ae;const se=o.zoomIdentity.translate(0,-70).scale(1);oe.on("zoom",function(e){N.isActive()||(ce=e.transform,ae.attr("transform",ce))});let ce=se;const le=1e3,de=1e3;let pe,ue;function fe(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,n){return e.x=t,e.y=n,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,function(n){const r=n.source.iri,i=n.target.iri,o=_.min([r,i])+"|"+_.max([r,i]);t[o]||(t[o]=1,e[r]=(e[r]||0)+1,e[i]=(e[i]||0)+1)}),_.each(this.links,function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0})},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,function(e){let n,r;n=e.isTripleSource?De(e.source):_.find(t,function(t){return t.iri===e.source}),r=e.isTripleTarget?De(e.target):_.find(t,function(t){return t.iri===e.target});const i={source:n,target:r,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){const e=`${i.source.isTriple?q(i.source.iri):i.source.iri}>${i.target.isTriple?q(i.target.iri):i.target.iri}`;if(he.tripleLinksCopy.has(e)){const t=he.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),he.tripleLinksCopy.set(e,t),null}he.tripleLinksCopy.set(e,[i])}return i})}(e,t));for(const e of he.tripleLinksCopy.keys())1===he.tripleLinksCopy.get(e).length&&he.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return n(e,t).length};function n(e,t){return _.filter(t,function(t){return t.source.iri===e.iri||t.target.iri===e.iri})}this.countLinks=t,this.linksTypes=function(e,t){const r=n(e,t),i=_.map(r,function(t){return t.source.iri===e.iri?t.target.types:t.source.types});return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const r=n(e,t),i=_.map(r,function(e){return e.predicates});return _.uniq(_.flatten(i))},this.removeTriples=function(e){const t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,function(n){const r=e.split(">"),i=q(n.source.iri),o=q(n.target.iri);if(i===e&&he.tripleNodes.delete(o)){const e=o.split(">");t.push({source:e[0],target:e[1]})}const a=i===e||o===e||n.source.iri===r[0]&&n.target.iri===r[1];return a&&(he.tripleLinksCopy.delete(`${i}>${o}`),he.tripleLinksCopy.delete(`${o}>${i}`)),a}))}),t.forEach(e=>{this.links=_.reject(this.links,function(t){return t.source.iri===e.source&&t.target.iri===e.target})})},this.removeNode=function(n){const r=[];this.links=_.reject(this.links,function(e){const t=e.source.iri===n.iri||e.target.iri===n.iri;return t&&(e.target.isTriple&&r.push(q(e.target.iri)),e.source.isTriple||e.target.isTriple||r.push([e.source.iri,e.target.iri].join(">"))),t}),this.removeTriples(r);const i=this.links;this.nodes=_.reject(this.nodes,function(e){return 0===t(e,i)}),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){const r=[];let i=this.links;this.links=_.reject(this.links,function(o){let a=o.source.iri===e.iri&&1===t(o.target,i)&&!o.target.isTriple||o.target.iri===e.iri&&1===t(o.source,i)&&!o.source.isTriple;if(!a){let r;if(o.source.iri!==e.iri||2!==t(o.target,i)||o.target.isTriple?o.target.iri!==e.iri||2!==t(o.source,i)||o.source.isTriple||(r=n(o.source,i)):r=n(o.target,i),!r)return!1;a=(r[0].source.iri===e.iri||r[0].target.iri)&&(r[1].source.iri===e.iri||r[1].target.iri)}return a&&(o.target.isTriple&&r.push(q(o.target.iri)),o.source.isTriple||o.target.isTriple||r.push([o.source.iri,o.target.iri].join(">"))),a}),this.removeTriples(r),i=this.links,this.nodes=_.reject(this.nodes,function(n){return 0===t(n,i)&&n.iri!==e.iri}),this.computeConnectedness()},this.addTriple=function(e,t,n){e.x=t,e.y=n,e.weight=0;const r=q(e.iri);if(this.tripleNodes.has(r)){const t=this.tripleNodes.get(r);t.push(e),this.tripleNodes.set(r,t)}else e.weight=10,this.tripleNodes.set(r,[e])},this.copyState=function(){const e=_.map(this.nodes,function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}}),t=JSON.stringify(Array.from(this.tripleNodes.entries())),n=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}}),tripleNodes:t,tripleLinksCopy:n,colorIndex:re,type2color:ne,transform:ce}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,function(t){t.fixed&&e.numberOfPinnedNodes++}),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(re=t.colorIndex,ne=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ce=o.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),_e()}}e.datasource={get:function(t,n,r){return v.initLazyList(t,n,r,ee,e.propertiesObj.items)},revision:function(){return te}},g.when(y.getPrincipal()).then(t=>(t=>{const n=t.appSettings;e.defaultSettings.includeInferred=n.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=n.DEFAULT_INFERENCE&&n.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=n.DEFAULT_VIS_GRAPH_SCHEMA;const r=w.get(k.GRAPHS_VIZ);if(r&&"object"==typeof r)try{e.saveSettings=r,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch{e.saveSettings=_.cloneDeep(e.defaultSettings),w.set(k.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let he=new fe;function ge(t){!n.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(X))}e.addedTag=function(t){return t.text.indexOf(":")<0?(u.warning(b.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const n=e.split(":"),r=n[0],i=n[1];if(!angular.isUndefined(i)){const e=h.getNamespaceUriForPrefix(t,r);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,n){if(e.text.indexOf(":")<0)return n?u.warning(b.instant("graphexplore.absolute.prefixed.iri.option"),t):u.warning(b.instant("graphexplore.absolute.prefixed.iri"),t),!1;const r=e.text.indexOf("*");if(r>=0){if(!n)return u.warning(b.instant("graphexplore.wildcards.not.allowed"),t),!1;if(r<e.text.length-1)return u.warning(b.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return n.getActiveRepository()},e.isLicenseValid=function(){return p.isLicenseValid()},ge();const me=500,ye=1.75,ve=o.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(o.interpolateHslLong),xe=o.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(o.interpolateHslLong);e.getColor=function(e){angular.isUndefined(ne[e])&&(ne[e]=re,re++);const t=ne[e];return t>39?"#c2c2c2":t%2==0?ve(t/2):xe(t/2)};const Se=o.forceX(le/2).strength(.005),Ie=o.forceY(de/2).strength(.005),we=o.forceSimulation().force("x",Se).force("y",Ie),ke=o.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+le+" "+de).attr("preserveAspectRatio","xMidYMid meet");ke.append("rect").attr("width",10*le).attr("height",10*de).attr("x",-(10*le-le)/2).attr("y",-(10*de-de)/2).style("fill","none").style("pointer-events","all").call(oe).on("click",function(e){e.stopPropagation(),Oe(),we.stop()});let Le=0,Ce=0;const Te=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){o.select(t).append("circle").attr("cx",function(){return e.x}).attr("cy",function(){return e.y}).attr("class","loader-container").attr("r",function(){return e.size}).style("fill","fff").style("opacity","0.7"),o.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=3.1.2-RC1").attr("x",function(){return e.x-e.size+5}).attr("y",function(){return e.y-e.size}).attr("width",function(){return 2*e.size}).attr("height",function(){return 2*e.size}).attr("class","node-loader")}};function _e(t){o.selectAll("svg g").remove(),o.selectAll(".d3-tip").remove(),o.selectAll(".menu-events").remove(),ae=ke.append("g").attr("class","nodes-container").attr("transform",function(){return angular.isDefined(ce)&&!t?ce:""});const n=(0,i.A)().attr("class","d3-tip").customPosition(function(){const e=pe.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}}).html(function(t){let n="";return t.fixed&&(n+='<i class="icon-pin"></i> '),t.types.length>0?n+=t.types.map(t=>`<div> · ${e.replaceIRIWithPrefix(t)}</div>`).join(""):n+=`<i>${b.instant("visual.node.tooltip.no_types")}</i>`,n}),a=function(e){let t="";return t+=_.join(_.map(e.predicates,function(t,n){if(0===n)return Be(t);if(n<10)return" · "+Be(t);if(10===n){const t=function(e){return e.predicates.length-10}(e),n=t>1?t+" predicates":t+" predicate";return" · "+b.instant("graphexplore.tip.text",{textToShow:n})}}),""),t};let c,d;const p=(0,i.A)().attr("class","d3-tip").customPosition(function(e){const t=c.getBoundingClientRect(),n=function(e){const t=a(e),n=document.createElement("canvas").getContext("2d");return n.font="13px Arial",e.predicates.length<10?n.measureText(t).width:n.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:n+"px"}}).html(function(e){return a(e)});let h;const g=function(){f.cancel(h),f.cancel(Le),pe=null,n.hide(),Ce=f(function(){Oe()},500)};ke.call(n),ke.call(p);let m=ke.selectAll(".link"),y=ke.selectAll(".node");const v=o.forceCollide(e=>e.size+5).strength(.5),x=o.forceManyBody().strength(-300),S=o.forceCenter(le/2,de/2);we.nodes(he.nodes).force("charge",x).force("collide",v).force("center",S).force("link",o.forceLink(he.links).distance(function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),n=e.predicates[0].split("/"),r=n[n.length-1];t.addClass("predicate-text").text(r),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness})),ae.append("defs").selectAll("marker").data(he.links).enter().append("marker").attr("class","arrow-marker").attr("id",function(e){return Q(e)}).attr("viewBox","0 -5 10 10").attr("refX",function(e){return e.target.isTriple?11:e.target.size+11}).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),m=ae.selectAll(".link").data(he.links).enter().append("g").attr("class","link-wrapper").attr("id",function(e){return(0,s.removeSpecialChars)(V(e))}).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",function(e){return`url(#${Q(e)})`});const I=ae.selectAll(".link-wrapper").append("text").text(function(e){return Fe(e)}).attr("class",function(e){return e.predicates.length>1||he.tripleNodes.has(V(e))?"predicates":"predicate"}).attr("dy","-0.5em").style("text-anchor","middle").style("display",z().showLinksText?"":"none").on("mouseover",function(e,t){e.stopPropagation(),function(e,t){f.cancel(d);const n=c=e.target;f(function(){c===n&&t.predicates.length>1&&p.show(t,c)},300)}(e,t)}).on("mouseout",function(){f.cancel(d),c=null,p.hide()}).on("click",function(t,n){t.stopPropagation(),function(t,n){$e();const r=V(n);if(1===n.predicates.length&&he.tripleNodes.has(r)){ue=null;const e=he.tripleNodes.get(r)[0];if(Pe(e,t.currentTarget,t.button)){const t={};t.iri=e.iri,t.pred=Be(e.iri.split(" ")[1]),je(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ue===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ue=null);ue=t,e.showPredicates&&(e.predicates=_.map(t.predicates,function(e){const n=function(e,t){const n=V(t);return he.tripleNodes.has(n)?he.tripleNodes.get(n).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),r=n>-1;return{value:Be(e),partOfTriple:r,linkId:r?V(t):"",nodeIndex:n}}),e.showInfoPanel=!0)}(n)}(t,n)});let w,k=0,L=null,C=null;const T=function(t,n,r){const i=Array.isArray(r)?r[n]:r;he.countLinks(t,he.links)<=z().linksLimit?Re(t,!1,i):u.info(b.instant("graphexplore.increase.limit"),b.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function P(e,t){let n,r,i,o,a=!0;if("down"===t)n=2*e.size,r=e.size/3,i=.8,o=.3;else if("down-fixed"===t)n=2*e.size,r=e.size,i=.8,o=.66;else if("up"===t)n=e.size/3,r=2*e.size,i=.3,o=.8;else{if("fixed"!==t)return;n=e.size,i=.66,a=!1}let s=ae.selectAll(".node-wrapper").filter(function(t){return t===e}).append("text").text("").classed("icon-any pinned",!0).style("font-size",n+"px").attr("x",function(e){return e.x}).attr("y",function(e){return e.y}).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=s),a&&(s=s.transition().duration(1e3).style("font-size",function(){return r+"px"}).attr("opacity",o),"down-fixed"!==t&&s.remove())}const A=o.drag().subject(function(e){return e}).on("start",function(e,t){N.isActive()||0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,Oe(),o.select(e.currentTarget).classed("dragging",!0),we.alphaTarget(.3).restart())}).on("drag",function(t,n){n.isBeingDragged&&(n.fx=t.x,n.fy=t.y,n.fixed?n.beginDragging&&P(n,"fixed"):(e.numberOfPinnedNodes++,n.fixed=!0,P(n,"down-fixed")),n.pinWasFixed=!0,n.beginDragging=null)}).on("end",function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,o.select(".pinned").remove()),t.isBeingDragged=!1,o.select(e.currentTarget).classed("dragging",!1)),we.alphaTarget(0)});y=ae.selectAll(".node").data(he.nodes).enter().append("g").attr("class","node-wrapper").attr("id",function(e){return e.iri}).append("circle").attr("class","node").attr("r",function(e){return e.size}).style("fill",function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])}).on("mouseover",function(t,r){if(!r.isBeingDragged){f.cancel(Ce);const i=t.currentTarget;Le=f(()=>{(function(t,n){return!e.showInfoPanel&&((Ne.closeIcon||Ne.expandIcon||Ne.focusIcon||Ne.copyURIIcon)&&Ne.removeIcons(),we.alpha()<.1&&(Ne.initIcons(t,n.parentNode),we.stop(),be(),!0))})(r,i)&&function(e,t){f.cancel(h);const r=pe=t.target;f(function(){pe===r&&n.show(e,pe)},300)}(r,t)},400)}}).on("mouseout",g).on("click",function(t,n){if(t.button&&0!==t.button)return;const r=t.currentTarget;if(L&&C===r)return f.cancel(L),L=null,void T(n,0,r.parentNode);C=r,g(),e.showPredicates=!1,N.isActive()||(f.cancel(L),L=f(function(){Pe(n,0,t),L=null},40+me))}).on("touchstart",(e,t)=>function(e){k=0,w=f(function(){k<5&&Ae(e),w=null},1e3)}(t)).on("touchmove",function(){k++}).on("touchend",function(){f.cancel(w),w=null}).on("contextmenu",function(t,r){t.shiftKey||(t.preventDefault(),Oe(),e.closeInfoPanel(),r.fixed?(e.numberOfPinnedNodes--,r.fixed=!1,r.fx=null,r.fy=null,P(r,"up"),we.alpha(1).restart()):(e.numberOfPinnedNodes++,r.fixed=!0,P(r,"down")),function(e){pe&&n.show(e,pe)}(r))}).on("gdb-expand-node",(e,t)=>T(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Ge(t)).call(A);const M=ae.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",function(e){return 2*e.size*ye});ae.insert("g").attr("class","menu-events"),(e=>{e.each(function(e){e.fontSize=r.A.Text.calcFontSizeRaw(e.labels[0].label,e.size,ie,!0)}).attr("height",function(e){return 3*e.fontSize}).append("xhtml:div").attr("class","node-label-body").style("font-size",function(e){return e.fontSize+"px"}).append("xhtml:div").html(function(e){return l.HtmlUtil.getText(e.labels[0].label).replaceAll("\n","<br>")})})(M),we.on("tick",function(){m.attr("x1",function(e){return H(e.source)}).attr("y1",function(e){return K(e.source)}).attr("x2",function(e){return H(e.target)}).attr("y2",function(e){return K(e.target)}),I.attr("x",function(e){const t=H(e.source),n=H(e.target);return e.x=.5*(t+n)}).attr("y",function(e){const t=K(e.source),n=K(e.target);return e.y=.5*(t+n)}).attr("transform",function(e){return"rotate("+function(e,t){const n=H(e.source),r=K(e.source),i=H(e.target),o=K(e.target);if(t)return 180*Math.atan2(o-r,i-n)/Math.PI;{const e=180*Math.atan2(o-r,i-n)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"}),y.attr("cx",function(e){return e.x}).attr("cy",function(e){return e.y}),ae.select(".node-loader").attr("x",function(e){return e.x-e.size+3}).attr("y",function(e){return e.y-e.size}),ae.select(".loader-container").attr("cx",function(e){return e.x}).attr("cy",function(e){return e.y}),M.attr("x",function(e){return e.x-e.size*ye}).attr("y",function(e){return e.y-3*e.fontSize/2}),o.select(".pinned").attr("x",function(e){return e.x}).attr("y",function(e){return e.y}),be()}),angular.isDefined(Te)&&Te.setLoadingState(!1),e.loading&&(e.loading=!1),o.selectAll(".link-wrapper").each(function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];o.selectAll(".link").each(function(n){const r=(0,s.removeSpecialChars)(n.source.iri),i=(0,s.removeSpecialChars)(n.target.iri);if(r===t&&i===e){let e=r;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),n.direction="double"}})}),o.selectAll(".d3-actions-tip").remove(),we.alpha(.3).restart()}function be(){t.d3alpha=we.alpha()}const Ne=new function(){function n(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(r,a){const s=(0,i.A)().attr("class","d3-tip d3-actions-tip").customPosition(function(e,t){const n=t.target.getBoundingClientRect();return{top:n.top-20+"px",left:n.right+10+"px"}}).html(function(e){return e});ke.call(s),r.isExpanded?(this.collapseIcon=o.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",function(){return n(20,r)}),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",function(){var e;(e=r).isExpanded=!1,he.removeNodeLeafLinks(e),_e()}).on("mouseover",function(e){s.show(e.currentTarget.getAttribute("name"),e),f.cancel(Le),f.cancel(Ce)}).on("mouseout",function(){s.hide(),Ce=f(function(){Oe()},500)})):(this.expandIcon=o.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",function(){return n(20,r)}),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",function(){Re(r,!1,a)}).on("mouseover",function(e){s.show(e.currentTarget.getAttribute("name"),e),f.cancel(Ce),f.cancel(Le)}).on("mouseout",function(){s.hide(),Ce=f(function(){Oe()},500)})),this.focusIcon=o.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",function(){return n(20,r)}),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",function(){t.$broadcast("onRootNodeChange",r.iri)}).on("mouseover",function(e){s.show(e.currentTarget.getAttribute("name"),e),f.cancel(Ce),f.cancel(Le)}).on("mouseout",function(){s.hide(),Ce=f(function(){Oe()},500)}),this.copyURIIcon=o.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",function(){return n(20,r)}),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",function(){e.copyToClipboard(r.iri),Oe(),s.hide()}).on("mouseover",function(e){s.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+r.iri+"</div>",e),f.cancel(Ce),f.cancel(Le)}).on("mouseout",function(){s.hide(),Ce=f(function(){Oe()},500)}),this.closeIcon=o.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",function(){return n(20,r)}),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",function(){Ae(r)}).on("mouseover",function(e){s.show(e.currentTarget.getAttribute("name"),e),f.cancel(Ce),f.cancel(Le)}).on("mouseout",function(){s.hide(),Ce=f(function(){Oe()},500)}),this.animateMenu(r)},this.animateMenu=function(e){const t=100,r=o.easeSin;let i=0,a=20;this.expandIcon&&this.expandIcon.transition().duration(t).style("opacity",1).ease(r).attr("transform",function(){return n(a,e)}).delay(i+=35),this.collapseIcon&&this.collapseIcon.transition().duration(t).style("opacity",1).ease(r).attr("transform",function(){return n(a,e)}).delay(i+=35),this.copyURIIcon.transition().duration(t).style("opacity",1).ease(r).attr("transform",function(){return a+=30,n(a,e)}).delay(i+=35),this.focusIcon.transition().duration(t).style("opacity",1).ease(r).attr("transform",function(){return a+=30,n(a,e)}).delay(i+=35),this.closeIcon.transition().duration(t).style("opacity",1).ease(r).attr("transform",function(){return a+=30,n(a,e)}).delay(i+=35),this.expandedState=!0}};function Pe(n,r,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",n.iri),!1):i.ctrlKey||i.metaKey?(Ae(n),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===n?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Ge(n),!0)}function Ae(e){he.removeNode(e),_e()}function Me(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),he=new fe,ce=se}(t),Ee(t)}function Ee(t,n,r){let i=t.data;i=_.filter(i,function(e){return-1===_.findIndex(he.links,function(t){return e.source===t.source.iri&&e.target===t.target.iri})});const o=[],a=he.tripleLinksCopy.values();for(let e=0;e<he.tripleLinksCopy.size;e++)a.next().value.forEach(e=>{o.push(e)});i=_.filter(i,function(e){return-1===_.findIndex(o,function(t){return e.source===t.source.iri&&e.target===t.target.iri})}),i=_.filter(i,function(e){return e.source!==e.target});const s=J("iri",_.union(_.flatten(_.map(t.data,function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]})))),c=_.map(he.nodes,function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}}),l=he.tripleNodes.values();for(let e=0;e<he.tripleNodes.size;e++)l.next().value.forEach(e=>{c.push({iri:e.iri,isTriple:e.isTriple})});const d=_.reject(s,function(e){return _.some(c,e)});if(0===d.length){const e=s.length>0?s.length-1:0;(r||0===i.length)&&u.info(b.instant("graphexplore.error.node.connections",{count:e})),he.addAndMatchLinks(i),_e()}else{const t=[],r=[],o=z();_.forEach(d,function(n,i){t.push(T.getInstanceNode({iri:n.isTriple?Z(n.iri):n.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?o.languages:[],includeInferred:o.includeInferred,sameAsState:o.sameAsState}).then(function(e){r[i]=e.data}))}),g.all(t).then(function(){_.forEach(r,function(e,t){const i=2*Math.PI*t/r.length,o=(n?n.x:0)+Math.cos(i)*de/3,a=(n?n.y:0)+Math.sin(i)*de/3;e.isTriple?he.addTriple(e,o,a):he.addNode(e,o,a)}),he.addAndMatchLinks(i),n&&(n.isExpanded=!0),_e()})}}function Re(t,n,r){if(Te.getLoadingState())return;Te.init(t,r);const i=z(),o=t.iri;T.getInstanceNodeLinks({iri:o,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then(function(e){Ee(e,t,n)},function(t){const n=getError(t.data);u.error(n,b.instant("graphexplore.error.exploring.node")),e.loading=!1,Te.setLoadingState(!1)})}function Oe(){angular.isDefined(Ne)&&Ne.expandedState&&Ne.removeIcons()}function Ge(t){we.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(Z(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const n=z();T.getProperties({iri:t.isTriple?Z(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState,rejectedPredicates:e.shouldShowSettings()?n.rejectedPredicates:[]}).then(function(t){e.data=_.mapKeys(t.data,function(t,n){return e.replaceIRIWithPrefix(n)}),e.propertiesObj.items=[],_.forEach(e.data,function(t,n){e.propertiesObj.items.push({key:n,value:t})}),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const n=_.find(e.propertiesObj.items,function(e){return"image"===e.key});n&&(e.nodeImage=n.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,function(e){return"image"===e.key}),e.propertiesNotFiltered=e.propertiesObj.items},function(e){u.warning(getError(e.data),"Error")})}function je(e){ze("predicate","var(--primary-color-dark)",e),ze("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,function(t){const n=t.__data__;(n.source.iri.indexOf(e.iri)>=0||n.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)});const n=document.getElementsByClassName("arrow-marker");n&&_.each(n,function(t){const n=t.__data__;(n.source.iri.indexOf(e.iri)>=0||n.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))})}function ze(e,t,n){const r=document.getElementsByClassName(e);r&&_.each(r,function(e){const r=e.__data__;n?((r.source.iri.indexOf(n.iri)>=0||r.target.iri.indexOf(n.iri)>=0)&&(e.style.fill=t),q(n.iri)===V(r)&&(e.textContent=n.pred,e.style.fill=t),n.oppLinkIRI&&n.oppLinkIRI===V(r)&&(e.textContent=n.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Fe(r))})}function $e(){_.each(e.predicates,function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")});const t=document.getElementsByClassName("link");t&&_.each(t,function(e){e.style.stroke="#999",e.style.strokeWidth=1}),ze("predicate",""),ze("predicates","");const n=document.getElementsByClassName("arrow-marker");n&&_.each(n,function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")})}function De(e){const t=q(e);if(he.tripleNodes.has(t))return he.tripleNodes.get(t).find(t=>t.iri===e)}function Fe(e){return e.predicates.length>1?e.predicates.length+" predicates":Be(e.predicates[0])}function Be(t){const n=e.replaceIRIWithPrefix(t);return n.length===t.length?t.split("/")[t.split("/").length-1]:n}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ue=null,f(function(){e.showInfoPanel=!1})},e.clickLink=function(t){if(he.tripleNodes.has(t.linkId)){$e();const n=he.tripleNodes.get(t.linkId)[t.nodeIndex];Ge(n),e.showPredicates=!0;const r=document.getElementById(t.linkId+t.nodeIndex);r&&(r.style.fontWeight="bold");const i={},o=he.tripleLinksCopy.values();for(let e=0;e<he.tripleLinksCopy.size;e++){const e=o.next().value;e.length>1&&e.every(t=>t.source.iri===n.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=q(t.target.iri),i.oppTriplePred=Be(t.target.iri.split(" ")[1])),i.pred=Be(n.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==n.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=q(t.source.iri),i.oppTriplePred=Be(t.source.iri.split(" ")[1])),i.pred=Be(n.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=n.iri,i.pred=Be(n.iri.split(" ")[1])),je(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return n.getActiveRepository()},e.isLoadingLocation=function(){return n.isLoadingLocation()},e.hasActiveLocation=function(){return n.hasActiveLocation()},e.rotate=function(e){Oe();const t=10*(e?1:-1)*Math.PI/180,n=Math.cos(t),r=Math.sin(t),i=le/2,a=de/2;o.selectAll(".node-wrapper").each(function(e){e.x=i+(n*(e.x-i)+r*(e.y-a)),e.y=a+(-r*(e.x-i)+n*(e.y-a)),e.fixed&&(e.fx=e.x,e.fy=e.y)}),we.alpha(1).restart()},e.openUri=function(t,n){if(!n){const n={};e.configLoaded.id!==e.defaultGraphConfig.id&&(n.config=e.configLoaded.id),n.uri=t,G(n,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(he.copyState()),n={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};n.id?e.saveGraphModal("update",n):e.saveGraphModal("new",n)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};e.saveGraphModal=function(t,n,r){const i=S.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:n,graphExists:r,shared:n.shared}}}});R++,E=!0,i.result.then(function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),L.addNewSavedGraph(t).success(function(n,r,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),u.success(b.instant("graphexplore.saved.graph",{name:t.name}))}).error(function(n,r){if(422===r)e.saveGraphModal("new",t,!0);else{const e=getError(n);u.error(e,b.instant("graphexplore.error.cannot.create.graph"))}})}(t.graph);break;case"update":case"rename":n=t.graph,L.editSavedGraph(n).success(function(){e.lastSavedGraphName=n.name,e.shared=n.shared,e.refreshSavedGraphs(),u.success(b.instant("graphexplore.saved.graph.was.edited",{name:n.name}))}).error(function(e){const t=getError(e);u.error(t,b.instant("graphexplore.error.cannot.edit"))})}var n}).finally(()=>{R--,R<=0&&(E=!1,R=0)})},e.refreshSavedGraphs=function(){L.getSavedGraphs().success(function(t){e.savedGraphs=t}).error(function(e){const t=getError(e);u.error(t,b.instant("graphexplore.error.getting.saved.graphs"))})},e.loadSavedGraph=function(t,n){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),m.url("?saved="+t.id),he.restoreState(JSON.parse(t.data)),n||G({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const n=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(n)},e.deleteSavedGraph=function(t){x.openSimpleModal({title:b.instant("common.confirm"),message:b.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then(function(){!function(t){L.deleteSavedGraph(t).success(function(){e.refreshSavedGraphs(),u.success(b.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))}).error(function(e){const t=getError(e);u.error(t,b.instant("graphexplore.error.cannot.delete"))})}(t)})},e.openIRI=function(t,n){return n.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){Oe();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,o.selectAll(".node").each(function(n){n.fixed=t,t?(e.numberOfPinnedNodes++,n.fx=n.x,n.fy=n.y):(n.fx=null,n.fy=null)}),we.alpha(1).restart()},$("body").on("keydown",function(t){!N.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))}),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function u(e,t,n,r){switch(e.mode=n.mode,e.graph=_.cloneDeep(n.graph),e.graphExists=n.graphExists,e.mode){case"new":e.title=r.instant("graphexplore.create.new.graph"),e.okButtonText=r.instant("common.create.btn");break;case"update":e.title=r.instant("graphexplore.update"),e.okButtonText=r.instant("common.save.btn");break;case"rename":e.title=r.instant("graphexplore.rename"),e.okButtonText=r.instant("common.save.btn")}e.ok=function(){e.form.$valid&&(e.graph.name=i(e.graph.name),t.close({graph:e.graph,mode:e.mode}))},e.saveNew=function(){e.graph.name=i(e.graph.name)+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")};const i=e=>e.replace(/\s+/g," ").trim()}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter","graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("GraphsVisualizationsCtrl",p).controller("SaveGraphModalCtrl",u).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),p.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","$translate","GuidesService","WorkbenchContextService","RDF4JRepositoriesService"],u.$inject=["$scope","$uibModalInstance","data","$translate"]},62979:(e,t,n)=>{var r,i;r=[n(93462)],void 0===(i=function(e){function t(e,t){return e.each(function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])})}function r(e,t){for(var n in t)e.attr(n,t[n]);return e}return void 0===e&&(e=n(93462)),e.selection.prototype.attrs=function(e){return("function"==typeof e?t:r)(this,e)},e.selection.prototype.moveToFront=function(){return this.each(function(){e.select(this.parentNode.appendChild(this))})},e.selection.prototype.moveToBack=function(){return this.each(function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)})},e}.apply(t,r))||(e.exports=i)},75468:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(93462);const i={select:r.select,selection:r.selection},o=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),o=null,a=null,s=null,c=null;function l(e){var t;o="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,a=o.createSVGPoint(),document.body.appendChild(r)}l.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(s=r.pop());var i,o=n.apply(this,r),a=t.apply(this,r),u=e.apply(this,r),h=f(),g=p.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,v=c.apply(this,r);for(h.html(o).style("opacity",1).style("pointer-events","all");g--;)h.classed(p[g],!1);const x=r.filter(e=>e instanceof Event);return i=d.get(u).apply(this,x),v?Object.keys(v).forEach(function(e){h.style(e,v[e])}):h.classed(u,!0).style("top",i.top+a[0]+m+"px").style("left",i.left+a[1]+y+"px"),l},l.hide=function(){return f().style("opacity",0).style("pointer-events","none"),l},l.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return i.selection.prototype.attr.apply(f(),n),l},l.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return i.selection.prototype.style.apply(f(),n),l},l.direction=function(t){return arguments.length?(e=null==t?t:g(t),l):e},l.offset=function(e){return arguments.length?(t=null==e?e:g(e),l):t},l.html=function(e){return arguments.length?(n=null==e?e:g(e),l):n},l.customPosition=function(e){return arguments.length?(c=null==e?e:g(e),l):c},l.destroy=function(){return r&&(f().remove(),r=null),l};var d=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),p=d.keys();function u(){var e=i.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),i.select(r)}function h(e){for(var t=s||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),i=t.getBBox(),o=i.width,c=i.height,l=i.x,d=i.y;return a.x=l,a.y=d,n.nw=a.matrixTransform(r),a.x+=o,n.ne=a.matrixTransform(r),a.y+=c,n.se=a.matrixTransform(r),a.x-=o,n.sw=a.matrixTransform(r),a.y-=c/2,n.w=a.matrixTransform(r),a.x+=o,n.e=a.matrixTransform(r),a.x-=o/2,a.y-=c/2,n.n=a.matrixTransform(r),a.y+=c,n.s=a.matrixTransform(r),n}function g(e){return"function"==typeof e?e:function(){return e}}return l}},78618:(e,t,n)=>{n.r(t),n.d(t,{removeSpecialChars:()=>i,toBoolean:()=>o,toTitleCase:()=>a});var r=n(98980);const i=e=>e.replace(/[()']/g,""),o=e=>"string"==typeof e?"true"===e:Boolean(e),a=e=>e?(0,r.upperFirst)(e.toLowerCase()):e}};
|
|
2
|
-
//# sourceMappingURL=39518.148d1b3347798e9919fd.bundle.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=39539;export const __webpack_ids__=[39539];export const __webpack_modules__={39539:(e,i,d)=>{d.r(i),d.d(i,{default:()=>l});const l='<link href="css/dynamic-form.css?v=3.1.2-RC1" rel="stylesheet"/> <div class="dynamic-form-container"> <form name="dynamicForm" novalidate class="dynamic-form"> <div ng-repeat="model in formModel.models"> <div ng-if="model.groupId && (model.fields.length > 0 || showAllFields)" class="form-group"> <h5 class="group-title"> <span gdb-tooltip="{{(translationKeyPrefix ? (translationKeyPrefix + model.groupId + \'.tooltip\') : null) | translate}}"> {{(translationKeyPrefix ? (translationKeyPrefix + model.groupId + \'.label\') : model.groupId) | translate}} </span> </h5> <dynamic-form-field ng-repeat="field in model.fields" field="field" form="dynamicForm" translation-key-prefix="translationKeyPrefix"> </dynamic-form-field> <div class="hidden-fields"> <dynamic-form-field ng-if="showAllFields" ng-repeat="field in model.hiddenFields" field="field" form="dynamicForm" translation-key-prefix="translationKeyPrefix"> </dynamic-form-field> </div> </div> <dynamic-form-field ng-if="!model.groupId" field="model" form-name="dynamicForm" translation-key-prefix="translationKeyPrefix"> </dynamic-form-field> </div> </form> </div> '}};
|
|
2
|
-
//# sourceMappingURL=39539.43ba568d747c737aa425.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"39539.43ba568d747c737aa425.bundle.js","mappings":"uJAGA,QAFW,omC","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/dynamic-form/templates/dynamic-form.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/dynamic-form.css?v=3.1.2-RC1\" rel=\"stylesheet\"/> <div class=\"dynamic-form-container\"> <form name=\"dynamicForm\" novalidate class=\"dynamic-form\"> <div ng-repeat=\"model in formModel.models\"> <div ng-if=\"model.groupId && (model.fields.length > 0 || showAllFields)\" class=\"form-group\"> <h5 class=\"group-title\"> <span gdb-tooltip=\"{{(translationKeyPrefix ? (translationKeyPrefix + model.groupId + '.tooltip') : null) | translate}}\"> {{(translationKeyPrefix ? (translationKeyPrefix + model.groupId + '.label') : model.groupId) | translate}} </span> </h5> <dynamic-form-field ng-repeat=\"field in model.fields\" field=\"field\" form=\"dynamicForm\" translation-key-prefix=\"translationKeyPrefix\"> </dynamic-form-field> <div class=\"hidden-fields\"> <dynamic-form-field ng-if=\"showAllFields\" ng-repeat=\"field in model.hiddenFields\" field=\"field\" form=\"dynamicForm\" translation-key-prefix=\"translationKeyPrefix\"> </dynamic-form-field> </div> </div> <dynamic-form-field ng-if=\"!model.groupId\" field=\"model\" form-name=\"dynamicForm\" translation-key-prefix=\"translationKeyPrefix\"> </dynamic-form-field> </div> </form> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=41453;export const __webpack_ids__=[41453];export const __webpack_modules__={41453:(n,t,a)=>{a.r(t),a.d(t,{default:()=>e});const e='<link href="css/graphql/graphql-endpoint-configuration-modal.css?v=3.1.2-RC1" rel="stylesheet"/> <div class="modal-header"> <h3 class="modal-title">{{\'graphql.endpoints_management.endpoint_configuration_modal.title\' | translate}}</h3> <span ng-click="toggleAdvancedSettings()" class="toggle-advanced-settings"> <input type="checkbox" class="switch" ng-checked="showAdvancedSettings"/> <label></label> <span>{{\'graphql.endpoints_management.endpoint_configuration_modal.actions.show_advanced_settings.label\' | translate}}</span> </span> </div> <div class="modal-body graphql-endpoint-configuration-modal-body"> <div class="graphql-endpoint-configuration-loader" onto-loader-new hide-message="true" size="100" ng-show="loadingEndpointConfigurationSettings"></div> <dynamic-form ng-if="!loadingEndpointConfigurationSettings" form-model="endpointConfigurationSettings.settings" on-validity-change="handleValidityChange(valid)" show-all-fields="showAdvancedSettings" translation-key-prefix="graphql.endpoints_management.endpoint_configuration_modal.settings." form-ctrl="formCtrl"> </dynamic-form> </div> <div class="modal-footer mt-0"> <button type="button" class="btn btn-secondary cancel-btn" ng-click="cancel()">{{\'common.cancel.btn\' | translate}} </button> <button id="graphql-endpoint-configuration-modal-submit" class="btn btn-primary" ng-disabled="!endpointConfigurationSettingsValid || savingEndpointSettings || formCtrl.$pristine" ng-click="ok()" type="submit"> <span>{{\'save.changes.label\' | translate}}</span> <span class="saving-endpoint-settings" ng-if="savingEndpointSettings" onto-loader-fancy hide-message="true" size="15"></span> </button> </div> '}};
|
|
2
|
-
//# sourceMappingURL=41453.cc7b9e548b29aa23051f.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"41453.cc7b9e548b29aa23051f.bundle.js","mappings":"uJAGA,QAFW,qoD","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/templates/modal/endpoint-configuration-modal.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/graphql/graphql-endpoint-configuration-modal.css?v=3.1.2-RC1\" rel=\"stylesheet\"/> <div class=\"modal-header\"> <h3 class=\"modal-title\">{{'graphql.endpoints_management.endpoint_configuration_modal.title' | translate}}</h3> <span ng-click=\"toggleAdvancedSettings()\" class=\"toggle-advanced-settings\"> <input type=\"checkbox\" class=\"switch\" ng-checked=\"showAdvancedSettings\"/> <label></label> <span>{{'graphql.endpoints_management.endpoint_configuration_modal.actions.show_advanced_settings.label' | translate}}</span> </span> </div> <div class=\"modal-body graphql-endpoint-configuration-modal-body\"> <div class=\"graphql-endpoint-configuration-loader\" onto-loader-new hide-message=\"true\" size=\"100\" ng-show=\"loadingEndpointConfigurationSettings\"></div> <dynamic-form ng-if=\"!loadingEndpointConfigurationSettings\" form-model=\"endpointConfigurationSettings.settings\" on-validity-change=\"handleValidityChange(valid)\" show-all-fields=\"showAdvancedSettings\" translation-key-prefix=\"graphql.endpoints_management.endpoint_configuration_modal.settings.\" form-ctrl=\"formCtrl\"> </dynamic-form> </div> <div class=\"modal-footer mt-0\"> <button type=\"button\" class=\"btn btn-secondary cancel-btn\" ng-click=\"cancel()\">{{'common.cancel.btn' | translate}} </button> <button id=\"graphql-endpoint-configuration-modal-submit\" class=\"btn btn-primary\" ng-disabled=\"!endpointConfigurationSettingsValid || savingEndpointSettings || formCtrl.\\$pristine\" ng-click=\"ok()\" type=\"submit\"> <span>{{'save.changes.label' | translate}}</span> <span class=\"saving-endpoint-settings\" ng-if=\"savingEndpointSettings\" onto-loader-fancy hide-message=\"true\" size=\"15\"></span> </button> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=42129;export const __webpack_ids__=[42129];export const __webpack_modules__={42129:(e,l,t)=>{t.r(l),t.d(l,{default:()=>s});const s='<link href="css/shuttle-multiselect.css?v=3.1.2-RC1" rel="stylesheet"/> <div class="shuttle-multiselect"> <div class="shuttle-panel available-options"> <div class="shuttle-panel-header"> <h5>{{labels.availableOptionsTitle | translate}}</h5> </div> <div class="shuttle-panel-toolbar toolbar-left"> <input type="text" class="form-control filter-selected" placeholder="{{labels.availableOptionsFilter | translate}}" ng-model="searchLeft"> <a href="#" ng-click="selectAll()" class="btn-link secondary add-all-btn" gdb-tooltip="{{labels.selectAllTooltip | translate}}" tooltip-placement="top">{{labels.selectAllLabel | translate}}</a> </div> <div class="options-list"> <div class="option-item" ng-repeat="item in availableOptions | searchFilter:searchLeft | orderBy:\'label\' track by $index"> <span>{{item.label}}</span> <a href="#" ng-click="selectOption(item)" class="btn-link secondary item-action add-btn" gdb-tooltip="{{labels.selectTooltip | translate}}" tooltip-placement="top"> <span class="fa fa-plus-circle"></span> </a> </div> </div> </div> <div class="shuttle-panel selected-options"> <div class="shuttle-panel-header"> <h5>{{labels.selectedOptionsTitle | translate}}</h5> </div> <div class="shuttle-panel-toolbar toolbar-right"> <div ng-if="selectedOptions.length" class="selected-items-message"> {{labels.selectedOptionsCount | translate:{count: selectedOptions.length} }} </div> <a href="#" ng-click="deselectAll()" class="btn-link secondary remove-all-btn" gdb-tooltip="{{labels.deselectAllTooltip | translate}}" tooltip-placement="top">{{labels.deselectAllLabel | translate}}</a> </div> <div class="options-list"> <div class="option-item" ng-repeat="item in selectedOptions | orderBy:\'label\' track by $index"> <span>{{item.label}}</span> <a href="#" ng-click="deselectOption(item)" class="btn-link secondary item-action remove-btn" gdb-tooltip="{{labels.deselectTooltip | translate}}" tooltip-placement="top"> <span class="fa fa-minus-circle"></span> </a> </div> </div> </div> </div> '}};
|
|
2
|
-
//# sourceMappingURL=42129.ea7309affc343caf1ca2.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"42129.ea7309affc343caf1ca2.bundle.js","mappings":"uJAGA,QAFW,i9D","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/shuttle-multiselect.css?v=3.1.2-RC1\" rel=\"stylesheet\"/> <div class=\"shuttle-multiselect\"> <div class=\"shuttle-panel available-options\"> <div class=\"shuttle-panel-header\"> <h5>{{labels.availableOptionsTitle | translate}}</h5> </div> <div class=\"shuttle-panel-toolbar toolbar-left\"> <input type=\"text\" class=\"form-control filter-selected\" placeholder=\"{{labels.availableOptionsFilter | translate}}\" ng-model=\"searchLeft\"> <a href=\"#\" ng-click=\"selectAll()\" class=\"btn-link secondary add-all-btn\" gdb-tooltip=\"{{labels.selectAllTooltip | translate}}\" tooltip-placement=\"top\">{{labels.selectAllLabel | translate}}</a> </div> <div class=\"options-list\"> <div class=\"option-item\" ng-repeat=\"item in availableOptions | searchFilter:searchLeft | orderBy:'label' track by \\$index\"> <span>{{item.label}}</span> <a href=\"#\" ng-click=\"selectOption(item)\" class=\"btn-link secondary item-action add-btn\" gdb-tooltip=\"{{labels.selectTooltip | translate}}\" tooltip-placement=\"top\"> <span class=\"fa fa-plus-circle\"></span> </a> </div> </div> </div> <div class=\"shuttle-panel selected-options\"> <div class=\"shuttle-panel-header\"> <h5>{{labels.selectedOptionsTitle | translate}}</h5> </div> <div class=\"shuttle-panel-toolbar toolbar-right\"> <div ng-if=\"selectedOptions.length\" class=\"selected-items-message\"> {{labels.selectedOptionsCount | translate:{count: selectedOptions.length} }} </div> <a href=\"#\" ng-click=\"deselectAll()\" class=\"btn-link secondary remove-all-btn\" gdb-tooltip=\"{{labels.deselectAllTooltip | translate}}\" tooltip-placement=\"top\">{{labels.deselectAllLabel | translate}}</a> </div> <div class=\"options-list\"> <div class=\"option-item\" ng-repeat=\"item in selectedOptions | orderBy:'label' track by \\$index\"> <span>{{item.label}}</span> <a href=\"#\" ng-click=\"deselectOption(item)\" class=\"btn-link secondary item-action remove-btn\" gdb-tooltip=\"{{labels.deselectTooltip | translate}}\" tooltip-placement=\"top\"> <span class=\"fa fa-minus-circle\"></span> </a> </div> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"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.2-RC1" 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.55a40d0bec02cb65abec.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"44444.55a40d0bec02cb65abec.bundle.js","mappings":"uJAGA,QAFW,2nC","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.2-RC1\" 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,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.2-RC1" 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.d9d6d715b3ef7c42f98f.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"55862.d9d6d715b3ef7c42f98f.bundle.js","mappings":"uJAGA,QAFW,spE","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.2-RC1\" 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.2-RC1" 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.d34210db8418c8e2ada5.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"58306.d34210db8418c8e2ada5.bundle.js","mappings":"uJAGA,QAFW,smJ","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.2-RC1\" 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__=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.2-RC1">{{\'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.351f27e70f183b0ed866.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"67888.351f27e70f183b0ed866.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,SACnET,EAAOU,YAAcV,EAAOF,SAASO,eAAeK,YACpDV,EAAOW,WAAaX,EAAOF,SAASO,eAAeM,WACnDX,EAAOY,eAAiBZ,EAAOF,SAASO,eAAeO,eAKvDZ,EAAOa,KAAO,KACVb,EAAOc,kBACPd,EAAOG,eAAgB,GAG3BH,EAAOc,gBAAkB,KACrBrB,EAAWsB,WAAW,kBAG1Bf,EAAOgB,MAAQ,KACXhB,EAAOG,eAAgB,GAG3B,MAAMc,EAAwBC,IACR,WAAdA,EAAMC,KACNnB,EAAOoB,OAAO,KACVpB,EAAOgB,WAanBf,EAAYoB,KAAKrB,EAAOsB,IAAI,gBAAiBtB,EAAOgB,QACpDtB,EAAU6B,GAAG,UAAWN,GAExBjB,EAAOsB,IAAI,WAAY,KACnB5B,EAAU8B,IAAI,UAAWP,GAXzBhB,EAAYwB,QAASC,GAAeA,QAgBpD,CArEAC,QACKC,OAAO,kEAHI,IAIXC,UAAU,2BAA4BrC,GAE3CA,EAAkCsC,QAAU,CAAC,aAAc,Y,4DCM3D,SAASC,EAA+BC,GACpC,MAAO,CACHrC,SAAU,IACVC,YAAa,2DACbC,MAAO,CACHC,SAAU,KAEdC,KAAOC,IACHA,EAAOiC,qBAAuBA,EAAAA,qBAC9BjC,EAAOkC,YAAeC,GAAQC,EAAAA,YAAwBD,GAMtDnC,EAAOqC,YAAeC,IAClBN,EAAUnB,KAAK,CACXjB,YAAa,kEACb2C,WAAY,wCACZC,KAAM,KACNC,YAAa,iCACbC,SAAU,SACVC,QAAS,CACLC,QAAS,WACL,OAAON,EAAsBA,EAAoBjC,eAAeuC,QAAU,EAC9E,OAMxB,CArCAjB,QACKC,OAAO,8DAHI,CAAC,8EAIZC,UAAU,wBAAyBE,GAExCA,EAA+BD,QAAU,CAAC,Y,yGCY1CH,QAAQC,OAAO,iCAZC,CACZ,SACA,UACA,eACA,eACA,6CACA,+CACA,mDACA,gEACA,4D,aCGJ,SAASiB,EAAYC,GACjB,MAAO,CACHnD,SAAU,IACVoD,QAAS,UACThD,KAAM,SAAUF,EAAOmD,EAASC,EAAMC,GAClCA,EAAKC,SAASC,QAAQ,SAAUC,GAE5B,GADAH,EAAKI,aAAa,eAAe,IAC5BJ,EAAKK,SAASF,GAAQ,CACvB,MAAMG,EAAQV,EAASW,WAAWJ,EAAOA,EAAMK,YAC/CR,EAAKI,aAAa,cAAeE,EACrC,CACA,OAAOH,CACX,EACJ,EAER,CAzBA1B,QACKC,OAAO,mDAHI,IAIXC,UAAU,cAAegB,GAE9BA,EAAYf,QAAU,CAAC,W,aCPvB,SAAS6B,IACL,MAAO,CACH5D,KAAM,SAAUF,EAAOmD,EAASC,GAC5BpD,EAAM+D,OAAO,cAAe,WACE,cAAtB/D,EAAMgE,KAAKC,QAAgD,cAAtBjE,EAAMgE,KAAKC,SAC3CC,EAAEf,GAASgB,IAAI,UAAUC,OAAS,GACnCF,EAAEf,GAASkB,OAAO,kBAAoBjB,EAAKT,KAAO,aAAeS,EAAKT,KAAO,6GAGzF,EACJ,EAER,CAnBAb,QACKC,OAAO,gEAHI,IAIXC,UAAU,0BAA2B8B,GAE1CA,EAAwB7B,QAAU,E,iHCGlC,MAAMqC,EAAsB,CACxB,KAAQ,OACR,UAAa,YACb,IAAO,OAGLC,EAAiB,CACnB,IAAO,MACP,KAAQ,OACR,SAAY,WACZ,aAAgB,gBAcpB,SAASC,EAA4BC,EAAUC,GAC3C,MAAO,CACH5E,SAAU,IACVC,YAAa,wDACbC,MAAO,CAKH2E,WAAY,IAIZC,eAAgB,IAIhBC,OAAQ,IACRC,IAAK,IACLC,SAAU,IACVC,YAAa,IACbC,QAAS,IACTC,SAAU,IACVC,aAAc,IACdC,eAAgB,KAEpBlF,KAAMA,CAACC,EAAQgD,EAASkC,KAKpBlF,EAAOmF,UAAY,IAAIC,EAAAA,0BACvBpF,EAAOqF,iBAAmB,GAC1BrF,EAAOmE,oBAAsBA,EAC7BnE,EAAOsF,aAAenB,EAAoBoB,IAC1CvF,EAAOwF,iBAAmB,GAC1BxF,EAAOoE,eAAiBA,EACxBpE,EAAOyF,sBAAmBC,EAC1B1F,EAAO2F,wCAAyC,EAChD3F,EAAO4F,+CAAgD,EACvD5F,EAAOiC,qBAAuBA,EAAAA,qBAC9BjC,EAAO6F,kBAAoBlE,QAAQmE,UAAUZ,EAAMH,UACnD/E,EAAO+F,2BAA4B,EACnC/F,EAAOgG,cAAgBC,EAAAA,YACvBjG,EAAOkG,SAAUvE,QAAQmE,UAAUZ,EAAMP,MAAO3E,EAAO2E,IACvD3E,EAAOmG,SAAWnG,EAAO0E,OACzB1E,EAAOoG,WAAa7B,EAAqB8B,gBACzCrG,EAAOsG,cAAe,EAUtBtG,EAAOuG,iBAAqBzG,IACxBA,EAAS0G,aAAa1G,EAAS2G,UAC/BC,IACAC,IACAC,KAGJ5G,EAAO6G,yBAA4BC,IAC/B9G,EAAOyF,iBAAmBqB,EAC1B9G,EAAOmF,UAAUqB,cAAa,GAE1BpC,EAAemB,MAAQvF,EAAOyF,iBAC9BzF,EAAOmF,UAAUqB,cAAa,GACvBpC,EAAe2C,WAAa/G,EAAOyF,iBAC1CzF,EAAOmF,UAAU6B,oBAAoB,CAAC/E,EAAAA,qBAAqBgF,OACpD7C,EAAe8C,eAAiBlH,EAAOyF,kBAC9CzF,EAAOmF,UAAU6B,oBAAoB,CAAC/E,EAAAA,qBAAqBkF,UAAWlF,EAAAA,qBAAqBmF,KAAMnF,EAAAA,qBAAqBoF,MAAOpF,EAAAA,qBAAqBqF,QAASrF,EAAAA,qBAAqBsF,eAGpLC,IACAb,KAGJ3G,EAAOyH,oBAAuBC,IAC1B1H,EAAOsF,aAAeoC,EACtBF,KAGJxH,EAAO2H,wBAA2BnC,IAC9BxF,EAAOwF,iBAAmBA,EAC1BoC,EAASJ,EAA6B,MAM1CxH,EAAO6H,cAAgB,KACnB,MAAMC,EAAiB9H,EAAOmF,UAAU4C,iBACnCC,IAAKlI,GAAaA,EAASmI,MAC5BH,EAAe7D,OAAS,GACxBjE,EAAO8E,QAAQ,CAACK,UAAW2C,KAQnC9H,EAAOkI,YAAe7H,IAClBL,EAAO8E,QAAQ,CAACK,UAAW,CAAC9E,EAAe4H,SAG/CjI,EAAOmI,kBAAoB,KACvB,MAAMC,EAAoBpI,EAAOmF,UAAU4C,iBACvCK,GAAqBA,EAAkBnE,OAAS,GAChDjE,EAAO+E,SAAS,CAACI,UAAWiD,KAIpCpI,EAAOqI,eAAkBvI,IACrBE,EAAO+E,SAAS,CAACI,UAAW,CAACrF,MAGjCE,EAAOsI,UAAaC,IAChB,MAAMH,EAAoBpI,EAAOmF,UAAUqD,0BACvCJ,EAAkBnE,OAAS,GAC3BjE,EAAO6E,YAAY,CAACuD,kBAAmBA,EAAmBG,6BAIlEvI,EAAOyI,WAAcpI,IACjBL,EAAOgF,aAAa,CAAClF,SAAUO,KAOnCL,EAAO0I,KAAQvC,IACPnG,EAAOmG,WAAaA,EACpBnG,EAAOkG,SAAWlG,EAAOkG,QAEzBlG,EAAOkG,SAAU,EAErBlG,EAAOmG,SAAWA,EAClBqB,KAGJxH,EAAO2I,aAAgB7I,IACnBE,EAAOiF,eAAe,CAACnF,cAW3B,MAAM6G,EAA2BA,KAC7B3G,EAAO+F,0BAA4B/F,EAAOmF,UAAUyD,gCAGlDpB,EAA8BA,KAChCxH,EAAOmF,UAAU0D,UAAUC,uBAC3BC,IACA/I,EAAOqF,iBAAmBrF,EAAOmF,UAAU6D,SACtCC,OAAO3D,GACP2D,OAAOC,GAEZtC,IACAF,KAGEE,EAAqBA,KACvB,MAAMuC,EAAwBnJ,EAAOmF,UAAUiE,2BAC/CpJ,EAAOsG,aAAe6C,EAAsBlF,OAAS,EACrDM,EAAqB8E,yBAAyBF,IAG5CzC,EAAmCA,KACrC,MAAM4C,EAAuCtJ,EAAOqF,iBAAiBkE,KAAMzJ,IAAcA,EAAS2G,UAC5F+C,EAAqCxJ,EAAOqF,iBAAiBkE,KAAMzJ,GAAaA,EAAS2G,UAC/FzG,EAAO2F,uCAAyC6D,IAAuCF,EACvFtJ,EAAO4F,8CAAgD4D,GAAsCF,GAG3FP,EAAgBA,KACd9C,EAAAA,YAAYwD,OAASzJ,EAAOmG,SAC5BnG,EAAOmF,UAAUuD,KAAKgB,EAAc1J,EAAOkG,UACpCD,EAAAA,YAAY0D,OAAS3J,EAAOmG,SACnCnG,EAAOmF,UAAUuD,KAAKkB,EAAc5J,EAAOkG,UACpCD,EAAAA,YAAY4D,WAAa7J,EAAOmG,SACvCnG,EAAOmF,UAAUuD,KAAKoB,EAAkB9J,EAAOkG,UACxCD,EAAAA,YAAYc,WAAa/G,EAAOmG,SACvCnG,EAAOmF,UAAUuD,KAAKqB,EAAoB/J,EAAOkG,UAC1CD,EAAAA,YAAY+D,UAAYhK,EAAOmG,UACtCnG,EAAOmF,UAAUuD,KAAKuB,EAAiBjK,EAAOkG,WAIhDwD,EAAiBQ,GAAQ,CAACC,EAAIC,IACzBF,EAAMC,EAAG9J,eAAegK,KAAKC,cAAcF,EAAG/J,eAAegK,MAAQD,EAAG/J,eAAegK,KAAKC,cAAcH,EAAG9J,eAAegK,MAGjIT,EAAiBM,GAAQ,CAACC,EAAIC,KAGhC,MAAMG,GAASC,EAAAA,EAAAA,gBAAeL,EAAG9J,eAAemC,MAC1CiI,GAASD,EAAAA,EAAAA,gBAAeJ,EAAG/J,eAAemC,MAChD,OAAO0H,EAAMK,EAASE,EAASA,EAASF,GAGtCT,EAAqBI,GAAQ,CAACC,EAAIC,KACpC,MAAMM,EAAeP,EAAG9J,eAAesK,YAAcC,OAAOC,UACtDC,EAAeV,EAAG/J,eAAesK,YAAcC,OAAOC,UAC5D,OAAOX,EAAMQ,EAAeI,EAAeA,EAAeJ,GAGxDX,EAAuBG,GAAQ,CAACC,EAAIC,KACtC,MAAMW,EAAeZ,EAAG9J,eAAeM,YAAciK,OAAOC,UACtDG,EAAeZ,EAAG/J,eAAeM,YAAciK,OAAOC,UAC5D,OAAOX,EAAMa,EAAeC,EAAeA,EAAeD,GAGxDd,EAAoBC,GAAQ,CAACC,EAAIC,IAC5BF,EAAMC,EAAG9J,eAAeD,QAAQkK,cAAcF,EAAG/J,eAAeD,SAAWgK,EAAG/J,eAAeD,QAAQkK,cAAcH,EAAG9J,eAAeD,SAG1IkF,EAAgBxF,GACdqE,EAAoBoB,MAAQvF,EAAOsF,eAInCtF,EAAOsF,eAAiBnB,EAAoB8G,KACrCnL,EAASoL,SAGhBlL,EAAOsF,eAAiBnB,EAAoBgH,WACrCrL,EAASsL,eAMlBlC,EAAgBpJ,IACbE,EAAOwF,mBAIRxF,EAAOsF,eAAiBnB,EAAoBgH,UACrCrL,EAASuL,yBAAyBrL,EAAOwF,kBAGhDxF,EAAOsF,eAAiBnB,EAAoB8G,KACrCnL,EAASwL,mBAAmBtL,EAAOwF,kBAEvC1F,EAASyL,uBAAuBvL,EAAOwF,mBAGlD,IAAIgG,EACJ,MAAM5D,EAAWA,CAAC6D,EAAMC,KAEhBF,GACAlH,EAASqH,OAAOH,GAIpBA,EAAkBlH,EAASmH,EAAMC,IA0B/BE,EAAgB,GAEtBA,EAAcvK,KAAKkD,EAAqBsH,mBArBNC,CAACC,EAAe,MAC9C,MAAMC,EAAeC,EAAAA,KAAKC,OAAS3H,EAAqB4H,iBACpDnM,EAAOmF,UAAUiH,WACjBpM,EAAOmF,UAAYkH,EAAAA,0BAA0BC,qBAAqBP,EAAcC,GAC5EA,IACAhM,EAAOmG,SAAWF,EAAAA,YAAY4D,WAGlCwC,EAAAA,0BAA0BE,kBAAkBvM,EAAOmF,UAAW4G,EAAcC,GAEhFK,EAAAA,0BAA0BG,uBAAuBxM,EAAOmF,WACxDkH,EAAAA,0BAA0BI,6BAA6BzM,EAAOmF,WAC9DqC,IACAb,OASJiF,EAAcvK,KAAKkD,EAAqBmI,oBAAqBtG,GAAepG,EAAOoG,WAAaA,IAChGwF,EAAcvK,KAAKkD,EAAqBoI,qBAAqB,IAAM3M,EAAOmF,UAAY,IAAIC,EAAAA,4BAO1FpF,EAAOsB,IAAI,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.2-RC1\">{{\\'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__=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.2-RC1" 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.53a484997d925adb2740.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"72379.53a484997d925adb2740.bundle.js","mappings":"uJAIA,QAHW,0oC","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.2-RC1\" 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.2-RC1" 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.4393561b33a20dcfa9c7.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"73667.4393561b33a20dcfa9c7.bundle.js","mappings":"uJAGA,QAFW,+mC","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.2-RC1\" 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.2-RC1" 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.4af5d04b7d2549d88c47.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"73793.4af5d04b7d2549d88c47.bundle.js","mappings":"uJAGA,QAFW,m6E","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.2-RC1\" 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.2-RC1" rel="stylesheet"/> <div ng-attr-contenteditable="{{!ngDisabled}}" ng-attr-disabled="{{ngDisabled ? true : undefined}}" placeholder="{{placeholder}}" guide-selector="contenteditable" class="contenteditable"> </div> '}};
|
|
2
|
-
//# sourceMappingURL=75282.fd7af7301abd1fbdb902.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"75282.fd7af7301abd1fbdb902.bundle.js","mappings":"uJAGA,QAFW,0Q","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.2-RC1\" 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.2-RC1" 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.a3bceb24c6c508086f31.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"75849.a3bceb24c6c508086f31.bundle.js","mappings":"uJAGA,QAFW,2pE","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.2-RC1\" 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__=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.2-RC1" 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.291dc2a5a37971ff0e26.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"78250.291dc2a5a37971ff0e26.bundle.js","mappings":"uJAGA,QAFW,8c","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.2-RC1\" 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":""}
|