graphdb-workbench 3.0.0-TR16 → 3.0.0-TR17
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/13.2e6845d4194a68ccd94d.bundle.js +1 -0
- package/dist/230.3e6d1a0606d967cfcc8d.bundle.js +1 -1
- package/dist/31.756f6db034a221e6bd94.bundle.js +1 -1
- package/dist/407.86ad2530ae663466b7c5.bundle.js +1 -1
- package/dist/413.399c0de9a7eed2876f19.bundle.js +1 -1
- package/dist/414.9b364e4717303694f212.bundle.js +1 -1
- package/dist/42.198c823c68d7ab997ed8.bundle.js +1 -1
- package/dist/420.86d39a34e0cfe7c5922d.bundle.js +1 -1
- package/dist/421.496b38108447fe3706fd.bundle.js +1 -1
- package/dist/422.9476615eea039ed0a3ca.bundle.js +1 -1
- package/dist/423.8f8b9beeefb8e456e740.bundle.js +1 -1
- package/dist/424.b1f341c2214d28ae62c2.bundle.js +1 -1
- package/dist/425.efd0aac0d1ce59d5193d.bundle.js +1 -1
- package/dist/440.65f4842c6b26f7a8fb04.bundle.js +1 -1
- package/dist/441.c33323aeb6fe095d0b07.bundle.js +1 -1
- package/dist/442.82dc82ea81a83cca825a.bundle.js +1 -1
- package/dist/443.c1b187dc20f178253ebc.bundle.js +1 -1
- package/dist/444.d0b80c745f68ce002d1c.bundle.js +1 -1
- package/dist/445.10ba12283f340ef90cfa.bundle.js +1 -1
- package/dist/465.5fea1718e3d223ce572b.bundle.js +1 -1
- package/dist/477.ebfc2f101ba75769e928.bundle.js +1 -1
- package/dist/478.a8046c01285d7a20ab0a.bundle.js +1 -1
- package/dist/480.da864736cf389e4277d1.bundle.js +1 -1
- package/dist/481.9f8d8f6d85ab4e0c4644.bundle.js +1 -1
- package/dist/482.3b98ed70bb5211093378.bundle.js +1 -1
- package/dist/485.0c77d57a5e84b6baae8f.bundle.js +1 -1
- package/dist/486.ea7bdffc43fbaf04908c.bundle.js +1 -1
- package/dist/487.709c4b0e218b914e4f4e.bundle.js +1 -1
- package/dist/488.fc918ea5c55681561ed6.bundle.js +1 -1
- package/dist/49.eb484abfcc9a42c7c423.bundle.js +1 -1
- package/dist/50.5a6b73cf0ec26182e5d0.bundle.js +1 -1
- package/dist/75.96247f0a98d70d96e6c2.bundle.js +1 -1
- package/dist/{bundle.2c96a3ed58369c33de3c.bundle.js → bundle.d713dd2aaa1d88849270.bundle.js} +4 -4
- package/dist/css/graphql/graphql-playground.css +7 -0
- package/dist/i18n/locale-en.json +12 -4
- package/dist/i18n/locale-fr.json +12 -4
- package/dist/index.html +3 -3
- 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/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/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +2 -2
- 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 +4 -4
- package/dist/pages/jdbc-create.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 +12 -12
- package/package.json +1 -1
- package/dist/13.f7857db12a3974c9618a.bundle.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[13,226,228,229,234,259,260,265,355,362,383,388],{120:function(t,e,r){"use strict";r.r(e),r.d(e,"removeSpecialChars",(function(){return o})),r.d(e,"toBoolean",(function(){return i})),r.d(e,"toTitleCase",(function(){return a}));var n=r(24),o=function(t){return t.replace(/[()']/g,"")},i=function(t){return"string"==typeof t?"true"===t:Boolean(t)},a=function(t){return t?Object(n.upperFirst)(t.toLowerCase()):t}},137:function(t,e,r){"use strict";r.r(e),r.d(e,"TABS",(function(){return i}));var n=r(24),o=r(105),i={USER:"user",SERVER:"server"};function a(t){var e=i.USER,r=[],a=[],s=[],u=!0,c=[];return{updateActiveTabId:function(r){e=r,t.emitSync("activeTabIdUpdated",f())},getActiveTabId:f,onActiveTabIdUpdated:function(e){return t.subscribeSync("activeTabIdUpdated",(function(t){return e(t)}))},getFiles:d,addFile:function(e){var r=d();r.push(e),m(r),t.emitSync("fileAdded",Object(n.cloneDeep)(e))},updateFiles:m,onFilesUpdated:function(e){return t.subscribeSync("filesUpdated",(function(t){return e(t)}))},getImportedResources:g,updateImportedResources:function(e){r=e,t.emitSync("importedResourcesUpdated",g()),t.emitSync("resourcesUpdated",v())},onImportedResourcesUpdated:function(e){return t.subscribeSync("importedResourcesUpdated",(function(t){return e(t)}))},getResources:v,onResourcesUpdated:function(e){return t.subscribeSync("resourcesUpdated",(function(t){return e(t)}))},updateShowLoader:function(e){u=e,t.emitSync("showLoaderUpdated",p())},getShowLoader:p,onShowLoaderUpdated:function(e){return t.subscribeSync("showLoaderUpdated",(function(t){return e(t)}))},updateSelectedFilesNames:function(e){c=Object(n.cloneDeep)(e),t.emitSync("selectedFilesNamesUpdated",l())},getSelectedFilesNames:l,onSelectedFilesNamesUpdated:function(e){return t.subscribeSync("selectedFilesNamesUpdated",(function(t){return e(t)}))},updateResourceForUpload:function(t){var e=b(),r=e.find((function(e){return e.name===t.name}));r?Object.assign(r,t):e.push(t);y(e)},getResourceForUpload:function(t){return Object(n.cloneDeep)(a.find((function(e){return e.name===t})))},updateResourcesForUpload:y,getResourcesForUpload:b,onResourcesForUploadChanged:function(e){return t.subscribeSync("resourcesForUploadChanged",(function(t){return e(t)}))}};function l(){return Object(n.cloneDeep)(c)}function p(){return u}function f(){return e}function m(e){s=Object(n.cloneDeep)(e),t.emitSync("filesUpdated",d())}function d(){return Object(n.cloneDeep)(s)}function g(){return Object(n.cloneDeep)(r)||[]}function v(){var t=g(),e=b(),r=[],n=[];return t.forEach((function(t){var i=t.name,a=e.find((function(t){return t.name===i}));a&&(a.status===o.ImportResourceStatus.UPLOADED?r.push(a):n.push(a))})),r.length>0&&y(e=e.filter((function(t){var e=t.name;return!r.some((function(t){return t.name===e}))})),!1),t.filter((function(t){var e=t.name;return!n.some((function(t){return e===t}))})).concat(e)}function y(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a=Object(n.cloneDeep)(e),t.emitSync("resourcesForUploadChanged",b()),r&&t.emitSync("resourcesUpdated",v())}function b(){return Object(n.cloneDeep)(a)||[]}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",a),a.$inject=["EventEmitterService"]},177:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"ImportParsingSettings",(function(){return s}));var s=i((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}))},186:function(t,e,r){"use strict";r.r(e),r.d(e,"SortingType",(function(){return n}));var n={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},224:function(t,e,r){"use strict";r.r(e),r.d(e,"ImportResource",(function(){return c}));var n=r(105),o=r(177),i=r(151);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hash=r(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:n.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new o.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0},(e=[{key:"isDirectory",value:function(){return i.ImportResourceType.DIRECTORY===this.type}},{key:"isFile",value:function(){return i.ImportResourceType.FILE===this.type||i.ImportResourceType.URL===this.type||i.ImportResourceType.TEXT===this.type}},{key:"isURL",value:function(){return i.ImportResourceType.URL===this.type}},{key:"isText",value:function(){return i.ImportResourceType.TEXT===this.type}}])&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},316:function(t,e,r){"use strict";r.r(e),r.d(e,"Operation",(function(){return v}));r(10),r(56),r(317),r(318);var n=r(137),o=(r(319),r(320)),i=(r(321),r(322),r(323),r(324)),a=r(120),s=(r(32),r(325)),u=r(326),c=r(1),l=r(327),p=r(186),f=r(105);function m(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.uriutils","graphdb.framework.guides.services","graphdb.framework.rest.import.service","graphdb.framework.rest.upload.service","graphdb.framework.import.services.importcontext","graphdb.framework.impex.import.controllers.tab","graphdb.framework.impex.import.controllers.settings-modal","graphdb.framework.impex.import.controllers.import-url","graphdb.framework.impex.import.controllers.import-text-snippet","graphdb.framework.impex.import.controllers.file-override-confirmation"]),v={IMPORT:"import",BATCH_IMPORT:"batch_import",IMPORT_SNIPPET:"import_snippet",IMPORT_URL:"import_url",UPLOAD:"upload"},y="file",b="text",h="url";g.controller("ImportViewCtrl",["$scope","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","GuidesService","ModalService","ImportRestService","ImportContextService",function(t,e,r,s,l,d,g,y,b,h,S,I,R,F){var T=[],U=null,w=void 0;t.files=[],t.fileChecked={},t.activeTabId=F.getActiveTabId(),t.popoverTemplateUrl="settingsPopoverTemplate.html",t.fileFormatsExtended=i.FileFormats.getFileFormatsExtended(),t.fileFormatsHuman=i.FileFormats.getFileFormatsHuman()+b.instant("import.gz.zip"),t.textFileFormatsHuman=i.FileFormats.getTextFileFormatsHuman(),t.maxUploadFileSizeBytes=0,t.SORTING_TYPES=p.SortingType,t.TAB_IDS=n.TABS,t.toTitleCase=function(t){return a.toTitleCase(t)},t.setSettingsFor=function(e,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};P(e,r).then((function(r){t.settingsFor=e,t.settings=r,""===e||"application/ld+json"===n||"application/x-ld+ndjson"===n||e.endsWith("jsonld")||e.endsWith("zip")||e.endsWith("gz")||"directory"===t.settings.type?t.settings.hasContextLink=!0:t.settings.hasContextLink=!1;var s=_.cloneDeep(t.settings),c={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalController",windowClass:"import-settings-modal",resolve:{dialogModel:function(){return{operation:i,settings:_.cloneDeep(t.settings),hasParserSettings:t.isLocalLocation,defaultSettings:s,isMultiple:!e,activeTab:t.activeTabId}}},size:"lg"};S.isActive()&&(c.backdrop="static",c.keyboard=!1),l.open(c).result.then((function(e){if(t.currentFiles&&e.action===o.SettingsModalActions.UPLOAD_AND_IMPORT){var r=Object(u.filesToImportResource)(t.currentFiles,f.ImportResourceStatus.UPLOADING);F.updateResourcesForUpload(r)}t.settings=e.settings,""===t.settingsFor?t.importSelected():t.importFile(t.settingsFor,!0)}),(function(e){if(t.settings=e.settings,e.action===o.SettingsModalActions.CANCEL&&(t.currentFiles=[],i===v.UPLOAD&&(t.files=[])),t.currentFiles&&e.action===o.SettingsModalActions.UPLOAD_ONLY){var r=Object(u.filesToImportResource)(t.currentFiles,f.ImportResourceStatus.UPLOADING);F.updateResourcesForUpload(r)}a&&a()}))}))},t.updateImport=function(e,r,n){P(e,r).then((function(r){t.settingsFor=e,t.settings=r,t.importFile(e,n)}))},t.importSelected=function(e){var r=new Set([].concat(m(O()),m(x()))),n=Array.from(r),o=function(){var r=n.shift();r&&P(r).then((function(n){e&&(t.settings=n),t.importFile(r,!0,o)}))};o()},t.isLocalLocation=function(){var t=s.getActiveLocation();return t&&t.local},t.updateList=function(e){t.canWriteActiveRepo()&&t.updateListHttp(e)},t.onRepositoryChange=function(){t.setRestricted(),t.isRestricted||(t.updateList(!0),E())},t.onImport=function(e){t.setSettingsFor(e.importResource.name,!1,e.importResource.format,v.IMPORT)},t.onStopImport=function(r){var o=r.importResource;(t.activeTabId===n.TABS.USER?R.stopUserDataImport:R.stopServerImport)(s.getActiveRepository(),{name:o.name,type:o.type}).success((function(){t.updateList()})).error((function(t){e.warning(b.instant("import.error.could.not.stop",{data:getError(t)}))}))},t.onRemove=function(t){var e=t.map((function(t){return t.name}));A(e)},t.onReset=function(t){D(t,!1)},t.importAll=function(e,r){if(r)t.importSelected(e,r);else{var n="";1===e.length&&(n=e[0].importResource.name),t.setSettingsFor(n,r,void 0,v.BATCH_IMPORT)}},t.onEditResource=function(e){e.importResource.isText()&&t.openTextSnippetDialog(e.importResource)};var E=function(){return w=void 0,t.canWriteActiveRepo()?R.getDefaultSettings(s.getActiveRepository()).success((function(t){return w=t})).error((function(t){e.warning(b.instant("import.error.default.settings",{data:getError(t)}))})):Promise.resolve(w)},x=function(){return F.getSelectedFilesNames()},O=function(){return t.currentFiles.filter((function(t){return t.name})).map((function(t){return t.name}))},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e="<br/>".concat(t.join("<br/>")),r=Object(c.decodeHTML)(b.instant("import.remove.confirm.msg",{name:e}));I.openConfirmation(b.instant("common.confirm"),r,(function(){D(t,!0)}))},P=function(e,r){return r||_.isEmpty(e)||_.isEmpty(t.savedSettings[e])?(w?Promise.resolve(angular.copy(w)):E().then((function(){return angular.copy(w)}))).then((function(t){return t})):Promise.resolve(t.savedSettings[e])};t.updateListHttp=function(r){if(!s.getActiveRepository())return Promise.resolve();var o=t.activeTabId===n.TABS.USER?R.getUploadedFiles:R.getServerFiles,i=t.activeTabId;return o(s.getActiveRepository()).success((function(e){i===F.getActiveTabId()&&(F.updateImportedResources(Object(u.toImportResource)(e)),0===t.files.length||r?(t.files=e,F.updateFiles(t.files),t.files.forEach((function(e){e.type||(e.type=t.defaultType)}))):t.files.forEach((function(r){var n=_.find(e,_.matches({name:r.name}));r.status&&n&&_.assign(r,n),r.type||(r.type=t.defaultType)})),r&&n.TABS.USER===t.activeTabId&&(t.files=_.filter(t.files,(function(t){return void 0!==t.status})),F.updateFiles(t.files)),t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"))})).error((function(t){e.warning(b.instant("import.error.could.not.get.files",{data:getError(t)}))}))};var D=function(r,o){!r||r.length<1||(t.activeTabId===n.TABS.USER?R.resetUserDataStatus:R.resetServerFileStatus)(s.getActiveRepository(),r,o).success((function(){t.updateList(!0)})).error((function(t){e.warning(b.instant("import.error.could.not.clear",{data:getError(t)}))}))},j=function(){T.forEach((function(t){return t()}))},L=function(e){t.activeTabId=e,F.updateImportedResources([]),F.updateResourcesForUpload([]),F.updateShowLoader(!0),t.updateListHttp(!0).finally((function(){return F.updateShowLoader(!1)}))};t.importViewControllerInit=function(){T.push(t.$on("repositoryIsSet",t.onRepositoryChange)),T.push(t.$on("$destroy",(function(){return r.cancel(U)}))),T.push(F.onActiveTabIdUpdated((function(t){return L(t)}))),t.$on("$destroy",j),h.getInfo().success((function(e){t.appData={},t.appData.properties={};for(var r=0;r<e.length;r++)t.appData.properties[e[r].key]={source:e[r].source,value:e[r].value};t.maxUploadFileSizeBytes=t.appData.properties["graphdb.workbench.maxUploadSize"].value})).error((function(t){var r=getError(t);e.error(r,b.instant("common.error"))})),E(),U=r((function(){t.updating||t.updateList(!1)}),4e3),L(F.getActiveTabId())}}]),g.controller("ImportCtrl",["$scope","toastr","$controller","$translate","$repositories","ImportRestService","ImportContextService",function(t,e,r,o,i,a,s){t.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.modified",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:t})),t.defaultType="server",t.tabId="#import-server",t.importSelected=function(t){u(s.getSelectedFilesNames(),t)},t.importFile=function(t){u([t])};var u=function(r,n){t.canWriteActiveRepo()&&a.importServerFiles(i.getActiveRepository(),{importSettings:n?null:t.settings,fileNames:r}).success((function(){t.updateList(),t.fileChecked={}})).error((function(t){e.error(o.instant("import.could.not.send.file",{data:getError(t)}))}))};n.TABS.SERVER===s.getActiveTabId()&&t.importViewControllerInit()}]),g.controller("UploadCtrl",["$scope","toastr","$controller","$uibModal","$translate","$repositories","ImportRestService","UploadRestService","ModalService","ImportContextService","EventEmitterService","$filter",function(t,e,r,o,i,a,u,c,p,d,g,S){var I=new l.FilePrefixRegistry,R=[];t.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.uploaded",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:t})),t.defaultType=y,t.tabId="#import-user",t.currentFiles=[];var F=!1;t.pastedDataIdx=1,t.fileSelected=function(e,r,n,o,i){var a={files:n,cancel:!1};g.emit("filesForUploadSelected",a,(function(e){if(!e.cancel){var r=i||[];T(r);var o=r.map((function(t){return t.name})),a=n||[];a=a.filter((function(t){return!o.includes(t.name)})),O(a);var s=[],u=[];a.forEach((function(e){t.files.some((function(t){return t.name===e.name}))?s.push(e):u.push(e)})),s.length>0?A(s,u):(t.currentFiles=m(a),F=!0,P())}}))},t.importFile=function(r,n,o){var a=t.files.find((function(t){return t.name===r}));a?a.type===b?U(a,n,o):a.type===h?E(a,n,o):x(a,n,o):e.warning(i.instant("import.no.such.file",{name:r}))},t.openTextSnippetDialog=function(e){e&&e.data,o.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"ImportTextSnippetController",resolve:{text:function(){return e?e.data:""},format:function(){return e?e.format:"text/turtle"}}}).result.then((function(r){e?(e.data===r.text&&e.format===r.format||e.status===f.ImportResourceStatus.NONE||(e.status=f.ImportResourceStatus.NONE,e.message=i.instant("import.text.snippet.not.imported")),e.data=r.text,e.format=r.format,w(e)):(e={type:"text",name:"Text snippet "+s.DateUtils.formatCurrentDateTime(),format:r.format,data:r.text},t.files.unshift(e),t.updateImport(e.name,!1,!1)),r.startImport&&t.setSettingsFor(e.name,!1,e.format,v.IMPORT_SNIPPET)}))},t.rdfDataFromURL=function(){o.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"ImportUrlController",scope:t}).result.then((function(e){var r=_.find(t.files,{type:"url",name:e.url});r?r.format=e.format:t.files.unshift({type:"url",name:e.url,format:e.format,data:e.url}),t.updateImport(e.url,!0,!1),e.startImport&&t.setSettingsFor(e.url,!0,e.format,v.IMPORT_URL)}))};var T=function(t){t.length>0&&t.forEach((function(t){e.warning(i.instant("import.large.file",{name:t.name,size:S("bytes")(t.size)}))}))},U=function(r,n,o){t.settings.name=r.name,t.settings.type=r.type,t.settings.data=r.data,t.settings.format=r.format,r.status=f.ImportResourceStatus.PENDING,(n?u.importTextSnippet:u.updateTextSnippet)(a.getActiveRepository(),t.settings).success((function(){t.updateList()})).error((function(t){e.error(i.instant("import.could.not.send.data",{data:getError(t)})),r.status=f.ImportResourceStatus.ERROR,r.message=getError(t)})).finally(o||function(){})},w=function(r){t.updating=!0,u.updateTextSnippet(a.getActiveRepository(),r).success((function(t){})).error((function(t){e.error(i.instant("import.could.not.update.text",{data:getError(t)}))})).finally((function(){t.updating=!1}))},E=function(r,n,o){t.settings.name=r.name,t.settings.type=r.type,t.settings.data=r.data,t.settings.format=r.format,r.status=f.ImportResourceStatus.PENDING,(n?u.importFromUrl:u.updateFromUrl)(a.getActiveRepository(),t.settings).success((function(){t.updateList()})).error((function(t){e.error(i.instant("import.could.not.send.url",{data:getError(t)}))})).finally(o||function(){})},x=function(r,n,o){t.settings.name=r.name;var s=c.createUploadPayload(r,t.settings);(n?c.uploadUserDataFile:c.updateUserDataFile)(a.getActiveRepository(),r,s).progress((function(t){var e=parseInt(100*t.loaded/t.total)||0,n=i.instant("import.file.upload.progress",{progress:e}),o=d.getResourceForUpload(r.name);o&&o.status!==f.ImportResourceStatus.UPLOAD_ERROR&&(o.status=e>=100?f.ImportResourceStatus.UPLOADED:f.ImportResourceStatus.UPLOADING,o.message=n,d.updateResourceForUpload(o))})).success((function(e){var n=d.getResourceForUpload(r.name);n&&n.status!==f.ImportResourceStatus.UPLOAD_ERROR&&(n.status=f.ImportResourceStatus.UPLOADED,n.message=void 0,d.updateResourceForUpload(n)),t.updateList()})).error((function(t){var n="";n=t?i.instant("import.could.not.upload.file",{data:n}):i.instant("import.upload.file.failure"),e.error(n),r.status=f.ImportResourceStatus.ERROR,r.message=n;var o=d.getResourceForUpload(r.name);o&&o.status!==f.ImportResourceStatus.UPLOADED&&(o.status=f.ImportResourceStatus.UPLOAD_ERROR,o.message=n,d.updateResourceForUpload(o))})).finally((function(){t.currentFiles=t.currentFiles.filter((function(t){return t.name!==r.name})),o()}))},O=function(t){t.forEach((function(r){if("bz2"===r.name.substr(r.name.lastIndexOf(".")+1)){var n=t.indexOf(r);n>-1&&t.splice(n,1),e.error(i.instant("import.could.not.upload",{name:r.name}))}}))},A=function(e,r){var n=e.map((function(t){return t.name})).join("<br/>");o.open({templateUrl:"js/angular/import/templates/file-override-confirmation.html",controller:"FileOverrideConfirmationController",windowClass:"confirm-duplicate-files-dialog",resolve:{duplicatedFiles:function(){return n}}}).result.then((function(n){if(n.overwrite){var o;if(t.currentFiles.length)t.currentFiles=[].concat(m(e),m(r));else(o=t.currentFiles).push.apply(o,m(e).concat(m(r)))}else{var i=I.prefixDuplicates(e);t.currentFiles=[].concat(m(t.currentFiles),m(i),m(r))}F=!0,P()}))},P=function(){if(t.files=_.uniqBy(_.union(_.map(t.currentFiles,(function(t){return{name:t.name,type:"file",file:t}})),t.files),(function(t){return t.name})),t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"),F&&t.currentFiles.length>0){D(),t.currentFiles.forEach((function(e){t.fileChecked[e.name]=!0}));var e="";1===t.currentFiles.length&&(e=t.currentFiles[0].name),t.setSettingsFor(e,!1,void 0,v.UPLOAD,(function(){t.currentFiles.forEach((function(e){t.updateImport(e.name,!1,!1)}))}))}},D=function(){Object.keys(t.fileChecked).forEach((function(e){t.fileChecked[e]=!1}))};t.$on("$destroy",(function(){R.forEach((function(t){return t()}))}));n.TABS.USER===d.getActiveTabId()&&(t.importViewControllerInit(),R.push(d.onFilesUpdated((function(t){I.buildPrefixesRegistry(t)}))))}])},317:function(t,e){angular.module("graphdb.framework.rest.import.service",[]).factory("ImportRestService",n),n.$inject=["$http"];var r="rest/repositories";function n(t){return{getDefaultSettings:function(e){return t.get("".concat(r,"/").concat(e,"/import/settings/default"))},getUploadedFiles:function(e){return t.get("".concat(r,"/").concat(e,"/import/upload"))},getServerFiles:function(e){return t.get("".concat(r,"/").concat(e,"/import/server"))},importServerFiles:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/server"),n)},importTextSnippet:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/text"),n)},updateTextSnippet:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/update/text"),n)},importFromUrl:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/url"),n)},updateFromUrl:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/update/url"),n)},stopServerImport:function(e,n){return t.delete("".concat(r,"/").concat(e,"/import/server"),{params:n})},stopUserDataImport:function(e,n){return t.delete("".concat(r,"/").concat(e,"/import/upload"),{params:n})},resetServerFileStatus:function(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t({method:"DELETE",url:"".concat(r,"/").concat(e,"/import/server/status"),params:{remove:o},data:n,headers:{"Content-type":"application/json;charset=utf-8"}})},resetUserDataStatus:function(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t({method:"DELETE",url:"".concat(r,"/").concat(e,"/import/upload/status"),params:{remove:o},data:n,headers:{"Content-type":"application/json;charset=utf-8"}})}}}},318:function(t,e){angular.module("graphdb.framework.rest.upload.service",[]).factory("UploadRestService",r),r.$inject=["$http","Upload","$translate"];function r(t,e,r){return{createUploadPayload:function(t,r){var n;n=t.file?{file:t.file,importSettings:e.jsonBlob(r)}:{importSettings:e.jsonBlob(r)};return n},uploadUserDataFile:function(t,r,n){return e.upload({url:"".concat("rest/repositories","/").concat(t,"/import/upload/file"),data:n})},updateUserDataFile:function(t,r,n){return e.upload({url:"".concat("rest/repositories","/").concat(t,"/import/upload/update/file"),data:n})}}}},319:function(t,e,r){"use strict";r.r(e);var n=r(137);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e,r){var o;t.isHelpVisible=!1,t.fileSizeLimitInfoTemplateUrl="js/angular/import/templates/fileSizeLimitInfo.html";var i=function(){if(o.isPristine(t.activeTabId)){var e=r.getResources();t.isHelpVisible=!e||0===e.length}else t.isHelpVisible=o.isHelpVisible(t.activeTabId)};t.openTab=function(t){r.updateActiveTabId(t)},t.toggleHelp=function(){o.setIsHelpVisible(t.activeTabId,!t.isHelpVisible),i()};var a=[];a.push(r.onActiveTabIdUpdated((function(r){t.activeTabId=r,e.hash(t.activeTabId),i()}))),a.push(r.onResourcesUpdated(i));t.$on("$destroy",(function(){return a.forEach((function(t){return t()}))})),function(){o=new c;var r=e.hash()||n.TABS.USER;t.openTab(r),i()}()}angular.module("graphdb.framework.impex.import.controllers.tab",[]).controller("TabController",u),u.$inject=["$scope","$location","ImportContextService"];var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._helpVisibility=i(i({},n.TABS.USER,{isHelpVisible:void 0}),n.TABS.SERVER,{isHelpVisible:void 0})},(e=[{key:"isPristine",value:function(t){return void 0===this._helpVisibility[t].isHelpVisible}},{key:"setIsHelpVisible",value:function(t,e){this._helpVisibility[t].isHelpVisible=e}},{key:"isHelpVisible",value:function(t){return this._helpVisibility[t]&&this._helpVisibility[t].isHelpVisible}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},320:function(t,e,r){"use strict";r.r(e),r.d(e,"SettingsModalActions",(function(){return i}));var n=r(137),o=r(316);angular.module("graphdb.framework.impex.import.controllers.settings-modal",[]).controller("SettingsModalController",a);var i={UPLOAD_ONLY:"upload_only",UPLOAD_AND_IMPORT:"upload_and_import",CANCEL:"cancel",CANCEL_IMPORT:"cancel_import"};function a(t,e,r,a,s,u){t.settings=u.settings,t.hasParserSettings=u.hasParserSettings,t.isMultiple=u.isMultiple,t.enableReplace=!(!t.settings.replaceGraphs||!t.settings.replaceGraphs.length),t.showAdvancedSettings=!1,t.activeTab=u.activeTab,t.userTabId=n.TABS.USER,t.isUploadOperation=u.operation===o.Operation.UPLOAD,t.hasError=function(t,e){return _.find(t,(function(t){return e===t.$name}))},t.ok=function(){t.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),t.settingsForm.$valid&&(l(),e.close(c(i.UPLOAD_AND_IMPORT)))},t.cancel=function(){l(),e.dismiss(c(i.CANCEL))},t.onlyUpload=function(){l(),e.dismiss(c(i.UPLOAD_ONLY))},t.cancelImport=function(){l(),e.dismiss(c(i.CANCEL_IMPORT))},t.close=function(){l(),e.dismiss(c(i.CANCEL))},t.reset=function(){t.settings=_.cloneDeep(u.defaultSettings),t.target="data"},t.addReplaceGraph=function(e){var n=!0;"default"!==e&&(n=a.isValidIri(e,e.toString())),t.settingsForm.replaceGraph.$setTouched(),t.settingsForm.replaceGraph.$setValidity("replaceGraph",n),t.settingsForm.replaceGraph.$valid&&(t.settings.replaceGraphs=t.settings.replaceGraphs||[],-1===_.indexOf(t.settings.replaceGraphs,e)?(t.replaceGraph="",t.settings.replaceGraphs.push(e)):r.warning(s.instant("import.graph.already.in.list")))},t.checkEnterReplaceGraph=function(e,r){13===e.keyCode&&(e.preventDefault(),t.addReplaceGraph(r))},t.switchParserSettings=function(){t.showAdvancedSettings=!t.showAdvancedSettings};var c=function(e){return{settings:t.settings,action:e}},l=function(){"default"===t.target?t.settings.context="default":"data"===t.target&&(t.settings.context=""),t.enableReplace?"default"!==t.target&&"named"!==t.target||(t.settings.replaceGraphs=[t.settings.context]):t.settings.replaceGraphs=[]};t.settings.context?"default"===t.settings.context?(t.target="default",t.settings.context=""):t.target="named":t.target="data"}a.$inject=["$scope","$uibModalInstance","toastr","UriUtils","$translate","dialogModel"]},321:function(t,e){function r(t,e){t.importFormat={name:"Auto",type:""},t.startImport=!0,t.cancel=function(){e.dismiss()},t.ok=function(){e.close({url:t.dataUrl,format:t.importFormat.type,startImport:t.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-url",[]).controller("ImportUrlController",r),r.$inject=["$scope","$uibModalInstance","toastr"]},322:function(t,e){function r(t,e,r,n){t.importFormats=[{name:"RDF/JSON",type:"application/rdf+json"},{name:"JSON-LD",type:"application/ld+json"},{name:"NDJSON-LD",type:"application/x-ld+ndjson"},{name:"RDF/XML",type:"application/rdf+xml"},{name:"N3",type:"text/rdf+n3"},{name:"N-Triples",type:"text/plain"},{name:"N-Quads",type:"text/x-nquads"},{name:"Turtle",type:"text/turtle"},{name:"Turtle*",type:"application/x-turtlestar"},{name:"TriX",type:"application/trix"},{name:"TriG",type:"application/x-trig"},{name:"TriG*",type:"application/x-trigstar"}],t.rdfText=r,t.importFormat=t.importFormats.find((function(t){return t.type===n})),t.startImport=!0,t.sizeLimit=1e5,t.setFormat=function(e){t.importFormat=e},t.cancel=function(){e.dismiss()},t.ok=function(){e.close({text:t.rdfText,format:t.importFormat.type,startImport:t.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-text-snippet",[]).controller("ImportTextSnippetController",r),r.$inject=["$scope","$uibModalInstance","text","format"]},323:function(t,e,r){"use strict";r.r(e);var n=r(1);function o(t,e,r,o,i){t.message=o.trustAsHtml(Object(n.decodeHTML)(r.instant("import.user_data.duplicates_confirmation.message",{duplicatedFiles:i}))),t.cancel=function(){e.dismiss()},t.keepBoth=function(){e.close({overwrite:!1})},t.overwrite=function(){e.close({overwrite:!0})}}angular.module("graphdb.framework.impex.import.controllers.file-override-confirmation",[]).controller("FileOverrideConfirmationController",o),o.$inject=["$scope","$uibModalInstance","$translate","$sce","duplicatedFiles"]},324:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"FILE_FORMATS",(function(){return u})),r.d(e,"FileFormats",(function(){return c}));var u=["ttl","ttls","rdf","rj","n3","nt","nq","trig","trigs","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"],c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},r=[{key:"getGZS",value:function(){return u.map((function(t){return".".concat(t,".gz")}))}},{key:"getBasics",value:function(){return u.map((function(t){return".".concat(t)}))}},{key:"getFileFormatsExtended",value:function(){return[].concat(o(this.getGZS()),o(this.getBasics()),[".zip"]).join(", ")}},{key:"getFileFormatsHuman",value:function(){return o(this.getBasics()).join(" ")}},{key:"getTextFileFormatsHuman",value:function(){return this.getBasics().filter((function(t){return".brf"!==t})).join(" ")}}],(e=null)&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},325:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"DateUtils",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},r=[{key:"formatCurrentDateTime",value:function(){var t=new Date;return t.getFullYear()+"-"+_.padStart(t.getMonth()+1,2,"0")+"-"+_.padStart(t.getDate(),2,"0")+" "+_.padStart(t.getHours(),2,"0")+":"+_.padStart(t.getMinutes(),2,"0")+":"+_.padStart(t.getSeconds(),2,"0")+"."+_.padStart(t.getMilliseconds(),3,"0")}}],(e=null)&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},326:function(t,e,r){"use strict";r.r(e),r.d(e,"toImportResource",(function(){return i})),r.d(e,"fileToImportResource",(function(){return a})),r.d(e,"filesToImportResource",(function(){return s}));var n=r(224),o=r(28),i=function(t){var e=Object(o.md5HashGenerator)();return t.map((function(t){return new n.ImportResource(t,e)}))},a=function(t){var e=Object(o.md5HashGenerator)();return new n.ImportResource({name:t.name,size:t.size,type:"file",modifiedOn:t.lastModified,file:t},e)},s=function(t,e){var r=Object(o.md5HashGenerator)();return t.map((function(t){return new n.ImportResource({name:t.name,size:t.size,type:"file",modifiedOn:void 0,file:t,status:e},r)}))}},327:function(t,e,r){"use strict";r.r(e),r.d(e,"FilePrefixRegistry",(function(){return s}));var n=r(32);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filesPrefixRegistry={}},(e=[{key:"buildPrefixesRegistry",value:function(t){var e=this;t.filter((function(t){return"file"===t.type})).forEach((function(t){var r=n.FileUtils.getFilenameAndExtension(t.name).filename,o=r.lastIndexOf("-"),i=o<0?0:r.substring(o+1),a=r.substring(0,o);if(o<0?(i=0,a=r):(i=r.substring(o+1),a=r.substring(0,o)),i){i=parseInt(i);var s=e.filesPrefixRegistry[a]||0;e.filesPrefixRegistry[a]=s<i?i:s}else e.filesPrefixRegistry[a]=0}))}},{key:"prefixDuplicates",value:function(t){var e=this;return t.map((function(t){var r=n.FileUtils.getFilenameAndExtension(t.name),o=r.filename,i=r.extension,a="".concat(o,"-").concat(e.getIndexForFile(o),".").concat(i);return new File([t],a,{type:t.type,lastModified:t.lastModified})}))}},{key:"getIndexForFile",value:function(t){var e=this.filesPrefixRegistry[t];return void 0!==e?e++:e=0,this.filesPrefixRegistry[t]=e,e}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{329:function(t,e){function o(){return{link:function(t,e,o){t.$watch("file.status",(function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.0-
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{329:function(t,e){function o(){return{link:function(t,e,o){t.$watch("file.status",(function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.0-TR17">{{\'common.loading\' | translate}}</object>')}))}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",o),o.$inject=[]}}]);
|