@ -3800,6 +3800,7 @@ var Home = /*#__PURE__*/function (_Vue) {
_this . uiBlocked = false ;
_this . uiBlocked = false ;
_this . uploading = false ;
_this . uploading = false ;
_this . fileUploaded = false ;
_this . fileUploaded = false ;
_this . document = null ;
_this . uploadResult = {
_this . uploadResult = {
id : '' ,
id : '' ,
file_name : ''
file_name : ''
@ -3877,53 +3878,54 @@ var Home = /*#__PURE__*/function (_Vue) {
response = _context2 . sent ;
response = _context2 . sent ;
this . fileUploaded = true ;
this . fileUploaded = true ;
this . uploadResult = response ;
this . uploadResult = response ;
_context2 . next = 25 ;
this . document = file ;
_context2 . next = 26 ;
break ;
break ;
case 11 :
_context2 . prev = 11 ;
case 12 :
_context2 . prev = 12 ;
_context2 . t0 = _context2 [ "catch" ] ( 3 ) ;
_context2 . t0 = _context2 [ "catch" ] ( 3 ) ;
this . uploading = false ;
this . uploading = false ;
this . fileUploaded = false ;
this . fileUploaded = false ;
if ( ! ( 0 , _SearchDisplace_helpers__WEBPACK_IMPORTED_MODULE_2__ . isServerError ) ( _context2 . t0 ) ) {
if ( ! ( 0 , _SearchDisplace_helpers__WEBPACK_IMPORTED_MODULE_2__ . isServerError ) ( _context2 . t0 ) ) {
_context2 . next = 24 ;
_context2 . next = 25 ;
break ;
break ;
}
}
if ( ! _context2 . t0 . response . data . hasOwnProperty ( 'errors' ) ) {
if ( ! _context2 . t0 . response . data . hasOwnProperty ( 'errors' ) ) {
_context2 . next = 21 ;
_context2 . next = 22 ;
break ;
break ;
}
}
errors = _context2 . t0 . response . data . errors ;
errors = _context2 . t0 . response . data . errors ;
if ( ! errors . hasOwnProperty ( 'file' ) ) {
if ( ! errors . hasOwnProperty ( 'file' ) ) {
_context2 . next = 21 ;
_context2 . next = 22 ;
break ;
break ;
}
}
this . error = errors . file [ 0 ] ;
this . error = errors . file [ 0 ] ;
return _context2 . abrupt ( "return" ) ;
return _context2 . abrupt ( "return" ) ;
case 21 :
case 22 :
if ( ! _context2 . t0 . response . data . hasOwnProperty ( 'message' ) ) {
if ( ! _context2 . t0 . response . data . hasOwnProperty ( 'message' ) ) {
_context2 . next = 24 ;
_context2 . next = 25 ;
break ;
break ;
}
}
this . error = _context2 . t0 . response . data . message ;
this . error = _context2 . t0 . response . data . message ;
return _context2 . abrupt ( "return" ) ;
return _context2 . abrupt ( "return" ) ;
case 24 :
case 25 :
this . error = 'There was an error uploading your file. Please try again later.' ;
this . error = 'There was an error uploading your file. Please try again later.' ;
case 25 :
case 26 :
case "end" :
case "end" :
return _context2 . stop ( ) ;
return _context2 . stop ( ) ;
}
}
}
}
} , _callee2 , this , [ [ 3 , 11 ] ] ) ;
} , _callee2 , this , [ [ 3 , 12 ] ] ) ;
} ) ) ;
} ) ) ;
function uploadNewFile ( _x2 ) {
function uploadNewFile ( _x2 ) {
@ -3976,13 +3978,14 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ } ) ;
/* harmony export */ } ) ;
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( /*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js" ) ;
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( /*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js" ) ;
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ ) ;
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ ) ;
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6 __ = __webpack_require__ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7 __ = __webpack_require__ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( /*! marked */ "./node_modules/marked/lib/marked.js" ) ;
/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( /*! marked */ "./node_modules/marked/lib/marked.js" ) ;
/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( marked__WEBPACK_IMPORTED_MODULE_1__ ) ;
/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( marked__WEBPACK_IMPORTED_MODULE_1__ ) ;
/* harmony import */ var vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( /*! vue-property-decorator */ "./node_modules/vue-property-decorator/lib/vue-property-decorator.js" ) ;
/* harmony import */ var vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__ ( /*! vue-property-decorator */ "./node_modules/vue-property-decorator/lib/vue-property-decorator.js" ) ;
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__ ( /*! @/app */ "./resources/js/app.ts" ) ;
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__ ( /*! @/app */ "./resources/js/app.ts" ) ;
/* harmony import */ var _Searchers_DefineSearcher_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__ ( /*! ../Searchers/DefineSearcher.vue */ "./resources/js/components/Searchers/DefineSearcher.vue" ) ;
/* harmony import */ var _Searchers_DefineSearcher_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__ ( /*! ../Searchers/DefineSearcher.vue */ "./resources/js/components/Searchers/DefineSearcher.vue" ) ;
/* harmony import */ var primevue_radiobutton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__ ( /*! primevue/radiobutton */ "./node_modules/primevue/radiobutton/index.js" ) ;
/* harmony import */ var primevue_radiobutton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__ ( /*! primevue/radiobutton */ "./node_modules/primevue/radiobutton/index.js" ) ;
/* harmony import */ var _SearchDisplace_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__ ( /*! @/SearchDisplace/helpers */ "./resources/js/SearchDisplace/helpers.ts" ) ;
function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
function _createForOfIteratorHelper ( o , allowArrayLike ) { var it = typeof Symbol !== "undefined" && o [ Symbol . iterator ] || o [ "@@iterator" ] ; if ( ! it ) { if ( Array . isArray ( o ) || ( it = _unsupportedIterableToArray ( o ) ) || allowArrayLike && o && typeof o . length === "number" ) { if ( it ) o = it ; var i = 0 ; var F = function F ( ) { } ; return { s : F , n : function n ( ) { if ( i >= o . length ) return { done : true } ; return { done : false , value : o [ i ++ ] } ; } , e : function e ( _e ) { throw _e ; } , f : F } ; } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; } var normalCompletion = true , didErr = false , err ; return { s : function s ( ) { it = it . call ( o ) ; } , n : function n ( ) { var step = it . next ( ) ; normalCompletion = step . done ; return step ; } , e : function e ( _e2 ) { didErr = true ; err = _e2 ; } , f : function f ( ) { try { if ( ! normalCompletion && it . return != null ) it . return ( ) ; } finally { if ( didErr ) throw err ; } } } ; }
function _createForOfIteratorHelper ( o , allowArrayLike ) { var it = typeof Symbol !== "undefined" && o [ Symbol . iterator ] || o [ "@@iterator" ] ; if ( ! it ) { if ( Array . isArray ( o ) || ( it = _unsupportedIterableToArray ( o ) ) || allowArrayLike && o && typeof o . length === "number" ) { if ( it ) o = it ; var i = 0 ; var F = function F ( ) { } ; return { s : F , n : function n ( ) { if ( i >= o . length ) return { done : true } ; return { done : false , value : o [ i ++ ] } ; } , e : function e ( _e ) { throw _e ; } , f : F } ; } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; } var normalCompletion = true , didErr = false , err ; return { s : function s ( ) { it = it . call ( o ) ; } , n : function n ( ) { var step = it . next ( ) ; normalCompletion = step . done ; return step ; } , e : function e ( _e2 ) { didErr = true ; err = _e2 ; } , f : function f ( ) { try { if ( ! normalCompletion && it . return != null ) it . return ( ) ; } finally { if ( didErr ) throw err ; } } } ; }
@ -4024,6 +4027,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
var ProcessFile = /*#__PURE__*/ function ( _Vue ) {
var ProcessFile = /*#__PURE__*/ function ( _Vue ) {
_inherits ( ProcessFile , _Vue ) ;
_inherits ( ProcessFile , _Vue ) ;
@ -4064,6 +4068,7 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
_this . newlySelectedSearchers = [ ] ;
_this . newlySelectedSearchers = [ ] ;
_this . showDefineSearcher = false ;
_this . showDefineSearcher = false ;
_this . searcherToDefineText = '' ;
_this . searcherToDefineText = '' ;
_this . applyingOnOriginalDocument = false ;
return _this ;
return _this ;
}
}
/ * *
/ * *
@ -4343,6 +4348,80 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
return waitForFile ;
return waitForFile ;
} ( )
} ( )
} , {
key : "verifySdOnOriginalDocumentIsDone" ,
value : function ( ) {
var _verifySdOnOriginalDocumentIsDone = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee4 ( id ) {
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee4$ ( _context4 ) {
while ( 1 ) {
switch ( _context4 . prev = _context4 . next ) {
case 0 :
_context4 . next = 2 ;
return this . $api . verifySdOnOriginalDocumentIsDone ( id ) ;
case 2 :
response = _context4 . sent ;
if ( ! ( response . status === 'processing' ) ) {
_context4 . next = 5 ;
break ;
}
return _context4 . abrupt ( "return" ) ;
case 5 :
clearInterval ( this . intervalId ) ;
if ( ! ( response . status === 'fail' ) ) {
_context4 . next = 10 ;
break ;
}
this . $toast . add ( {
severity : 'error' ,
summary : 'Something went wrong.' ,
detail : 'Document could not have been processed.' ,
life : 7000
} ) ;
this . applyingOnOriginalDocument = false ;
return _context4 . abrupt ( "return" ) ;
case 10 :
this . $toast . add ( {
severity : 'success' ,
summary : 'File loaded' ,
detail : 'The file has been processed by ingest.' ,
life : 7000
} ) ;
this . downloadFinishedOriginalDocument ( id ) ;
this . applyingOnOriginalDocument = false ; // @TODO Send request to backend to delete file if no other way..
case 13 :
case "end" :
return _context4 . stop ( ) ;
}
}
} , _callee4 , this ) ;
} ) ) ;
function verifySdOnOriginalDocumentIsDone ( _x3 ) {
return _verifySdOnOriginalDocumentIsDone . apply ( this , arguments ) ;
}
return verifySdOnOriginalDocumentIsDone ;
} ( )
} , {
key : "downloadFinishedOriginalDocument" ,
value : function downloadFinishedOriginalDocument ( id ) {
var url = "" . concat ( window . location . origin , "/search-and-displace/original-document/" ) . concat ( id , "/download" ) ;
var link = window . document . createElement ( 'a' ) ;
link . setAttribute ( 'download' , 'Document.doxc' ) ;
link . href = url ;
window . document . body . appendChild ( link ) ;
link . click ( ) ;
link . remove ( ) ;
}
/ * *
/ * *
*
*
* @ param $event
* @ param $event
@ -4365,13 +4444,13 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
} , {
} , {
key : "runSearchers" ,
key : "runSearchers" ,
value : function ( ) {
value : function ( ) {
var _runSearchers = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee4 ( ) {
var _runSearchers = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee5 ( ) {
var _this4 = this ;
var _this4 = this ;
var searchers , response ;
var searchers , response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee4$ ( _context4 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee5$ ( _context5 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context4 . prev = _context4 . next ) {
switch ( _context5 . prev = _context5 . next ) {
case 0 :
case 0 :
this . processing = true ;
this . processing = true ;
this . processedFileContent = '' ;
this . processedFileContent = '' ;
@ -4383,32 +4462,32 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
value : _this4 . searchersOptions [ searcher . id ] . value || ''
value : _this4 . searchersOptions [ searcher . id ] . value || ''
} ) ;
} ) ;
} ) ;
} ) ;
_context4 . prev = 4 ;
_context4 . next = 7 ;
_context5 . prev = 4 ;
_context5 . next = 7 ;
return this . $api . filterDocument ( this . fileContent , searchers ) ;
return this . $api . filterDocument ( this . fileContent , searchers ) ;
case 7 :
case 7 :
response = _context4 . sent ;
response = _context5 . sent ;
this . processedFileContent = response . content ;
this . processedFileContent = response . content ;
this . documentDiffIndexes = response . indexes ;
this . documentDiffIndexes = response . indexes ;
this . createDiffPreview ( ) ;
this . createDiffPreview ( ) ;
this . processing = false ;
this . processing = false ;
_context4 . next = 17 ;
_context5 . next = 17 ;
break ;
break ;
case 14 :
case 14 :
_context4 . prev = 14 ;
_context4 . t0 = _context4 [ "catch" ] ( 4 ) ;
_context5 . prev = 14 ;
_context5 . t0 = _context5 [ "catch" ] ( 4 ) ;
this . $emit ( 'error' , 'Server error.' ) ; // if (isServerError(e)) {
this . $emit ( 'error' , 'Server error.' ) ; // if (isServerError(e)) {
// this.$emit('error', getServerErrorMessage(e));
// this.$emit('error', getServerErrorMessage(e));
// }
// }
case 17 :
case 17 :
case "end" :
case "end" :
return _context4 . stop ( ) ;
return _context5 . stop ( ) ;
}
}
}
}
} , _callee4 , this , [ [ 4 , 14 ] ] ) ;
} , _callee5 , this , [ [ 4 , 14 ] ] ) ;
} ) ) ;
} ) ) ;
function runSearchers ( ) {
function runSearchers ( ) {
@ -4420,13 +4499,13 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
} , {
} , {
key : "runSearchersWithoutDisplacing" ,
key : "runSearchersWithoutDisplacing" ,
value : function ( ) {
value : function ( ) {
var _runSearchersWithoutDisplacing = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee5 ( ) {
var _runSearchersWithoutDisplacing = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee6 ( ) {
var _this5 = this ;
var _this5 = this ;
var searchers , response ;
var searchers , response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee5$ ( _context5 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee6$ ( _context6 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context5 . prev = _context5 . next ) {
switch ( _context6 . prev = _context6 . next ) {
case 0 :
case 0 :
this . processing = true ;
this . processing = true ;
this . processedFileContent = '' ;
this . processedFileContent = '' ;
@ -4438,32 +4517,32 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
value : _this5 . searchersOptions [ searcher . id ] . value || ''
value : _this5 . searchersOptions [ searcher . id ] . value || ''
} ) ;
} ) ;
} ) ;
} ) ;
_context5 . prev = 4 ;
_context5 . next = 7 ;
_context6 . prev = 4 ;
_context6 . next = 7 ;
return this . $api . filterDocument ( this . fileContent , searchers , true ) ;
return this . $api . filterDocument ( this . fileContent , searchers , true ) ;
case 7 :
case 7 :
response = _context5 . sent ;
response = _context6 . sent ;
this . processedFileContent = this . fileContent ;
this . processedFileContent = this . fileContent ;
this . documentDiffIndexes = response ;
this . documentDiffIndexes = response ;
this . createDiffPreview ( ) ;
this . createDiffPreview ( ) ;
this . processing = false ;
this . processing = false ;
_context5 . next = 17 ;
_context6 . next = 17 ;
break ;
break ;
case 14 :
case 14 :
_context5 . prev = 14 ;
_context5 . t0 = _context5 [ "catch" ] ( 4 ) ;
_context6 . prev = 14 ;
_context6 . t0 = _context6 [ "catch" ] ( 4 ) ;
this . $emit ( 'error' , 'Server error.' ) ; // if (isServerError(e)) {
this . $emit ( 'error' , 'Server error.' ) ; // if (isServerError(e)) {
// this.$emit('error', getServerErrorMessage(e));
// this.$emit('error', getServerErrorMessage(e));
// }
// }
case 17 :
case 17 :
case "end" :
case "end" :
return _context5 . stop ( ) ;
return _context6 . stop ( ) ;
}
}
}
}
} , _callee5 , this , [ [ 4 , 14 ] ] ) ;
} , _callee6 , this , [ [ 4 , 14 ] ] ) ;
} ) ) ;
} ) ) ;
function runSearchersWithoutDisplacing ( ) {
function runSearchersWithoutDisplacing ( ) {
@ -4505,25 +4584,25 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
} , {
} , {
key : "downloadOdt" ,
key : "downloadOdt" ,
value : function ( ) {
value : function ( ) {
var _downloadOdt = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee6 ( ) {
var _downloadOdt = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee7 ( ) {
var response ;
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee6$ ( _context6 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee7$ ( _context7 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context6 . prev = _context6 . next ) {
switch ( _context7 . prev = _context7 . next ) {
case 0 :
case 0 :
_context6 . next = 2 ;
_context7 . next = 2 ;
return this . $api . convertFile ( this . processedFileContent , this . file . id ) ;
return this . $api . convertFile ( this . processedFileContent , this . file . id ) ;
case 2 :
case 2 :
response = _context6 . sent ;
response = _context7 . sent ;
window . open ( "" . concat ( window . location . origin , "/file/download/" ) + response . path ) ;
window . open ( "" . concat ( window . location . origin , "/file/download/" ) + response . path ) ;
case 4 :
case 4 :
case "end" :
case "end" :
return _context6 . stop ( ) ;
return _context7 . stop ( ) ;
}
}
}
}
} , _callee6 , this ) ;
} , _callee7 , this ) ;
} ) ) ;
} ) ) ;
function downloadOdt ( ) {
function downloadOdt ( ) {
@ -4532,6 +4611,118 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
return downloadOdt ;
return downloadOdt ;
} ( )
} ( )
} , {
key : "downloadOriginal" ,
value : function ( ) {
var _downloadOriginal = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee8 ( ) {
var _this6 = this ;
var searchers , data , errors ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee8$ ( _context8 ) {
while ( 1 ) {
switch ( _context8 . prev = _context8 . next ) {
case 0 :
if ( this . document ) {
_context8 . next = 2 ;
break ;
}
return _context8 . abrupt ( "return" ) ;
case 2 :
this . applyingOnOriginalDocument = true ;
this . $toast . add ( {
severity : 'info' ,
summary : 'Processing...' ,
detail : 'This operation may take a while..' ,
life : 7000
} ) ;
searchers = [ ] ;
Object . values ( this . selectedSearchers ) . forEach ( function ( searcher ) {
searchers . push ( {
key : searcher . id ,
type : _this6 . searchersOptions [ searcher . id ] . type ,
value : _this6 . searchersOptions [ searcher . id ] . value || ''
} ) ;
} ) ;
_context8 . prev = 6 ;
_context8 . next = 9 ;
return this . $api . sdOnOriginalDocument ( this . document , searchers ) ;
case 9 :
data = _context8 . sent ;
this . intervalId = setInterval ( function ( ) {
_this6 . verifySdOnOriginalDocumentIsDone ( data . id ) ;
} , 5000 ) ;
_context8 . next = 26 ;
break ;
case 13 :
_context8 . prev = 13 ;
_context8 . t0 = _context8 [ "catch" ] ( 6 ) ;
this . applyingOnOriginalDocument = false ;
if ( ! ( 0 , _SearchDisplace_helpers__WEBPACK_IMPORTED_MODULE_6__ . isServerError ) ( _context8 . t0 ) ) {
_context8 . next = 25 ;
break ;
}
if ( ! _context8 . t0 . response . data . hasOwnProperty ( 'errors' ) ) {
_context8 . next = 22 ;
break ;
}
errors = _context8 . t0 . response . data . errors ;
if ( ! errors . hasOwnProperty ( 'file' ) ) {
_context8 . next = 22 ;
break ;
}
this . $toast . add ( {
severity : 'error' ,
summary : errors . file [ 0 ] ,
detail : 'There was an error processing your file. Please try again later.' ,
life : 7000
} ) ;
return _context8 . abrupt ( "return" ) ;
case 22 :
if ( ! _context8 . t0 . response . data . hasOwnProperty ( 'message' ) ) {
_context8 . next = 25 ;
break ;
}
this . $toast . add ( {
severity : 'error' ,
summary : _context8 . t0 . response . data . message ,
detail : 'There was an error processing your file. Please try again later.' ,
life : 7000
} ) ;
return _context8 . abrupt ( "return" ) ;
case 25 :
this . $toast . add ( {
severity : 'error' ,
summary : 'Something went wrong.' ,
detail : 'There was an error processing your file. Please try again later.' ,
life : 7000
} ) ;
case 26 :
case "end" :
return _context8 . stop ( ) ;
}
}
} , _callee8 , this , [ [ 6 , 13 ] ] ) ;
} ) ) ;
function downloadOriginal ( ) {
return _downloadOriginal . apply ( this , arguments ) ;
}
return downloadOriginal ;
} ( )
} , {
} , {
key : "canRunSearchers" ,
key : "canRunSearchers" ,
value : function canRunSearchers ( ) {
value : function canRunSearchers ( ) {
@ -4618,7 +4809,7 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
} , {
} , {
key : "onSelectedSearchersChanged" ,
key : "onSelectedSearchersChanged" ,
value : function onSelectedSearchersChanged ( ) {
value : function onSelectedSearchersChanged ( ) {
var _this6 = this ;
var _this7 = this ;
var selectedIds = Object . keys ( this . selectedSearchers ) ;
var selectedIds = Object . keys ( this . selectedSearchers ) ;
var optionsIds = Object . keys ( this . searchersOptions ) ;
var optionsIds = Object . keys ( this . searchersOptions ) ;
@ -4627,9 +4818,9 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
return ;
return ;
}
}
_this6 . $set ( _this6 . searchersOptions , selectedId , {
type : _this6 . selectedSearchers [ selectedId ] . tag ? 'displace' : 'replace' ,
value : _this6 . selectedSearchers [ selectedId ] . tag ? _this6 . selectedSearchers [ selectedId ] . tag : ''
_this7 . $set ( _this7 . searchersOptions , selectedId , {
type : _this7 . selectedSearchers [ selectedId ] . tag ? 'displace' : 'replace' ,
value : _this7 . selectedSearchers [ selectedId ] . tag ? _this7 . selectedSearchers [ selectedId ] . tag : ''
} ) ;
} ) ;
} ) ;
} ) ;
optionsIds . forEach ( function ( optionId ) {
optionsIds . forEach ( function ( optionId ) {
@ -4637,7 +4828,7 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
return ;
return ;
}
}
_this6 . $delete ( _this6 . selectedSearchers , optionId ) ;
_this7 . $delete ( _this7 . selectedSearchers , optionId ) ;
} ) ;
} ) ;
}
}
} ] ) ;
} ] ) ;
@ -4645,7 +4836,7 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
return ProcessFile ;
return ProcessFile ;
} ( vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Vue ) ;
} ( vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Vue ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_6 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Prop ) ( {
( 0 , tslib__WEBPACK_IMPORTED_MODULE_7 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Prop ) ( {
default : {
default : {
id : - 1 ,
id : - 1 ,
file : '' ,
file : '' ,
@ -4653,17 +4844,21 @@ var ProcessFile = /*#__PURE__*/function (_Vue) {
}
}
} ) ] , ProcessFile . prototype , "file" , void 0 ) ;
} ) ] , ProcessFile . prototype , "file" , void 0 ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_6 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Prop ) ( {
( 0 , tslib__WEBPACK_IMPORTED_MODULE_7 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Prop ) ( {
default : [ ]
default : [ ]
} ) ] , ProcessFile . prototype , "searchers" , void 0 ) ;
} ) ] , ProcessFile . prototype , "searchers" , void 0 ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_6__ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Watch ) ( 'showDiffHighlight' ) ] , ProcessFile . prototype , "onDiffHighlightChanged" , null ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_7__ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Prop ) ( {
default : null
} ) ] , ProcessFile . prototype , "document" , void 0 ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_6__ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Watch ) ( 'selectedSearchers' , {
( 0 , tslib__WEBPACK_IMPORTED_MODULE_7__ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Watch ) ( 'showDiffHighlight' ) ] , ProcessFile . prototype , "onDiffHighlightChanged" , null ) ;
( 0 , tslib__WEBPACK_IMPORTED_MODULE_7__ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Watch ) ( 'selectedSearchers' , {
deep : true
deep : true
} ) ] , ProcessFile . prototype , "onSelectedSearchersChanged" , null ) ;
} ) ] , ProcessFile . prototype , "onSelectedSearchersChanged" , null ) ;
ProcessFile = ( 0 , tslib__WEBPACK_IMPORTED_MODULE_6 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Component ) ( {
ProcessFile = ( 0 , tslib__WEBPACK_IMPORTED_MODULE_7 __ . __decorate ) ( [ ( 0 , vue_property_decorator__WEBPACK_IMPORTED_MODULE_2__ . Component ) ( {
components : {
components : {
RadioButton : primevue_radiobutton__WEBPACK_IMPORTED_MODULE_5__ . default ,
RadioButton : primevue_radiobutton__WEBPACK_IMPORTED_MODULE_5__ . default ,
DefineSearcher : _Searchers_DefineSearcher_vue__WEBPACK_IMPORTED_MODULE_4__ . default
DefineSearcher : _Searchers_DefineSearcher_vue__WEBPACK_IMPORTED_MODULE_4__ . default
@ -4741,7 +4936,8 @@ var ApiService = /*#__PURE__*/function () {
file : this . baseUrl + '/api/file' ,
file : this . baseUrl + '/api/file' ,
fileDownload : this . baseUrl + '/api/file/convert' ,
fileDownload : this . baseUrl + '/api/file/convert' ,
fileDiscard : this . baseUrl + '/api/file/' ,
fileDiscard : this . baseUrl + '/api/file/' ,
searchAndDisplace : this . baseUrl + '/search-and-displace'
searchAndDisplace : this . baseUrl + '/search-and-displace' ,
sdOnOriginalDocument : "" . concat ( this . baseUrl , "/search-and-displace/original-document" )
} ;
} ;
}
}
/ * *
/ * *
@ -4798,6 +4994,91 @@ var ApiService = /*#__PURE__*/function () {
return uploadFile ;
return uploadFile ;
} ( )
} ( )
/ * *
*
* @ param document
* @ param searchers
* /
} , {
key : "sdOnOriginalDocument" ,
value : function ( ) {
var _sdOnOriginalDocument = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee2 ( document , searchers ) {
var formData , response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee2$ ( _context2 ) {
while ( 1 ) {
switch ( _context2 . prev = _context2 . next ) {
case 0 :
formData = new FormData ( ) ;
formData . append ( 'document' , document ) ;
formData . append ( 'searchers' , JSON . stringify ( searchers ) ) ;
_context2 . prev = 3 ;
_context2 . next = 6 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . post ( this . apiRoutes . sdOnOriginalDocument , formData , {
headers : {
'Content-Type' : 'multipart/form-data'
}
} ) ;
case 6 :
response = _context2 . sent ;
return _context2 . abrupt ( "return" , response . data ) ;
case 10 :
_context2 . prev = 10 ;
_context2 . t0 = _context2 [ "catch" ] ( 3 ) ;
throw _context2 . t0 ;
case 13 :
case "end" :
return _context2 . stop ( ) ;
}
}
} , _callee2 , this , [ [ 3 , 10 ] ] ) ;
} ) ) ;
function sdOnOriginalDocument ( _x2 , _x3 ) {
return _sdOnOriginalDocument . apply ( this , arguments ) ;
}
return sdOnOriginalDocument ;
} ( )
} , {
key : "verifySdOnOriginalDocumentIsDone" ,
value : function ( ) {
var _verifySdOnOriginalDocumentIsDone = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee3 ( id ) {
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee3$ ( _context3 ) {
while ( 1 ) {
switch ( _context3 . prev = _context3 . next ) {
case 0 :
_context3 . prev = 0 ;
_context3 . next = 3 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . get ( "" . concat ( this . apiRoutes . sdOnOriginalDocument , "/" ) . concat ( id ) ) ;
case 3 :
response = _context3 . sent ;
return _context3 . abrupt ( "return" , response . data ) ;
case 7 :
_context3 . prev = 7 ;
_context3 . t0 = _context3 [ "catch" ] ( 0 ) ;
throw _context3 . t0 ;
case 10 :
case "end" :
return _context3 . stop ( ) ;
}
}
} , _callee3 , this , [ [ 0 , 7 ] ] ) ;
} ) ) ;
function verifySdOnOriginalDocumentIsDone ( _x4 ) {
return _verifySdOnOriginalDocumentIsDone . apply ( this , arguments ) ;
}
return verifySdOnOriginalDocumentIsDone ;
} ( )
/ * *
/ * *
* Get data for a file from the server .
* Get data for a file from the server .
* Throws an error if the response wasn ' t successful
* Throws an error if the response wasn ' t successful
@ -4812,34 +5093,34 @@ var ApiService = /*#__PURE__*/function () {
} , {
} , {
key : "getFileData" ,
key : "getFileData" ,
value : function ( ) {
value : function ( ) {
var _getFileData = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee2 ( fileId ) {
var _getFileData = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee4 ( fileId ) {
var response ;
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee2$ ( _context2 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee4$ ( _context4 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context2 . prev = _context2 . next ) {
switch ( _context4 . prev = _context4 . next ) {
case 0 :
case 0 :
_context2 . prev = 0 ;
_context2 . next = 3 ;
_context4 . prev = 0 ;
_context4 . next = 3 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . get ( this . apiRoutes . searchAndDisplace + "/" . concat ( fileId ) ) ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . get ( this . apiRoutes . searchAndDisplace + "/" . concat ( fileId ) ) ;
case 3 :
case 3 :
response = _context2 . sent ;
return _context2 . abrupt ( "return" , response . data ) ;
response = _context4 . sent ;
return _context4 . abrupt ( "return" , response . data ) ;
case 7 :
case 7 :
_context2 . prev = 7 ;
_context2 . t0 = _context2 [ "catch" ] ( 0 ) ;
throw _context2 . t0 ;
_context4 . prev = 7 ;
_context4 . t0 = _context4 [ "catch" ] ( 0 ) ;
throw _context4 . t0 ;
case 10 :
case 10 :
case "end" :
case "end" :
return _context2 . stop ( ) ;
return _context4 . stop ( ) ;
}
}
}
}
} , _callee2 , this , [ [ 0 , 7 ] ] ) ;
} , _callee4 , this , [ [ 0 , 7 ] ] ) ;
} ) ) ;
} ) ) ;
function getFileData ( _x2 ) {
function getFileData ( _x5 ) {
return _getFileData . apply ( this , arguments ) ;
return _getFileData . apply ( this , arguments ) ;
}
}
@ -4856,17 +5137,17 @@ var ApiService = /*#__PURE__*/function () {
} , {
} , {
key : "filterDocument" ,
key : "filterDocument" ,
value : function ( ) {
value : function ( ) {
var _filterDocument = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee3 ( content , searchers ) {
var _filterDocument = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee5 ( content , searchers ) {
var searchOnly ,
var searchOnly ,
response ,
response ,
_args3 = arguments ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee3$ ( _context3 ) {
_args5 = arguments ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee5$ ( _context5 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context3 . prev = _context3 . next ) {
switch ( _context5 . prev = _context5 . next ) {
case 0 :
case 0 :
searchOnly = _args3 . length > 2 && _args3 [ 2 ] !== undefined ? _args3 [ 2 ] : false ;
_context3 . prev = 1 ;
_context3 . next = 4 ;
searchOnly = _args5 . length > 2 && _args5 [ 2 ] !== undefined ? _args5 [ 2 ] : false ;
_context5 . prev = 1 ;
_context5 . next = 4 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . post ( this . apiRoutes . searchAndDisplace , {
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . post ( this . apiRoutes . searchAndDisplace , {
'content' : content ,
'content' : content ,
'searchers' : searchers ,
'searchers' : searchers ,
@ -4874,23 +5155,23 @@ var ApiService = /*#__PURE__*/function () {
} ) ;
} ) ;
case 4 :
case 4 :
response = _context3 . sent ;
return _context3 . abrupt ( "return" , response . data ) ;
response = _context5 . sent ;
return _context5 . abrupt ( "return" , response . data ) ;
case 8 :
case 8 :
_context3 . prev = 8 ;
_context3 . t0 = _context3 [ "catch" ] ( 1 ) ;
throw _context3 . t0 ;
_context5 . prev = 8 ;
_context5 . t0 = _context5 [ "catch" ] ( 1 ) ;
throw _context5 . t0 ;
case 11 :
case 11 :
case "end" :
case "end" :
return _context3 . stop ( ) ;
return _context5 . stop ( ) ;
}
}
}
}
} , _callee3 , this , [ [ 1 , 8 ] ] ) ;
} , _callee5 , this , [ [ 1 , 8 ] ] ) ;
} ) ) ;
} ) ) ;
function filterDocument ( _x3 , _x4 ) {
function filterDocument ( _x6 , _x7 ) {
return _filterDocument . apply ( this , arguments ) ;
return _filterDocument . apply ( this , arguments ) ;
}
}
@ -4908,37 +5189,37 @@ var ApiService = /*#__PURE__*/function () {
} , {
} , {
key : "convertFile" ,
key : "convertFile" ,
value : function ( ) {
value : function ( ) {
var _convertFile = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee4 ( content , fileId ) {
var _convertFile = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee6 ( content , fileId ) {
var response ;
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee4$ ( _context4 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee6$ ( _context6 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context4 . prev = _context4 . next ) {
switch ( _context6 . prev = _context6 . next ) {
case 0 :
case 0 :
_context4 . prev = 0 ;
_context4 . next = 3 ;
_context6 . prev = 0 ;
_context6 . next = 3 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . post ( this . apiRoutes . fileDownload , {
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . post ( this . apiRoutes . fileDownload , {
'file_id' : fileId ,
'file_id' : fileId ,
'content' : content
'content' : content
} ) ;
} ) ;
case 3 :
case 3 :
response = _context4 . sent ;
return _context4 . abrupt ( "return" , response . data ) ;
response = _context6 . sent ;
return _context6 . abrupt ( "return" , response . data ) ;
case 7 :
case 7 :
_context4 . prev = 7 ;
_context4 . t0 = _context4 [ "catch" ] ( 0 ) ;
throw _context4 . t0 ;
_context6 . prev = 7 ;
_context6 . t0 = _context6 [ "catch" ] ( 0 ) ;
throw _context6 . t0 ;
case 10 :
case 10 :
case "end" :
case "end" :
return _context4 . stop ( ) ;
return _context6 . stop ( ) ;
}
}
}
}
} , _callee4 , this , [ [ 0 , 7 ] ] ) ;
} , _callee6 , this , [ [ 0 , 7 ] ] ) ;
} ) ) ;
} ) ) ;
function convertFile ( _x5 , _x6 ) {
function convertFile ( _x8 , _x9 ) {
return _convertFile . apply ( this , arguments ) ;
return _convertFile . apply ( this , arguments ) ;
}
}
@ -4953,34 +5234,34 @@ var ApiService = /*#__PURE__*/function () {
} , {
} , {
key : "discardFile" ,
key : "discardFile" ,
value : function ( ) {
value : function ( ) {
var _discardFile = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee5 ( fileId ) {
var _discardFile = _asyncToGenerator ( /*#__PURE__*/ _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . mark ( function _callee7 ( fileId ) {
var response ;
var response ;
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee5$ ( _context5 ) {
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default ( ) . wrap ( function _callee7$ ( _context7 ) {
while ( 1 ) {
while ( 1 ) {
switch ( _context5 . prev = _context5 . next ) {
switch ( _context7 . prev = _context7 . next ) {
case 0 :
case 0 :
_context5 . prev = 0 ;
_context5 . next = 3 ;
_context7 . prev = 0 ;
_context7 . next = 3 ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . delete ( this . apiRoutes . fileDiscard + fileId ) ;
return axios__WEBPACK_IMPORTED_MODULE_1___default ( ) . delete ( this . apiRoutes . fileDiscard + fileId ) ;
case 3 :
case 3 :
response = _context5 . sent ;
return _context5 . abrupt ( "return" , response . data ) ;
response = _context7 . sent ;
return _context7 . abrupt ( "return" , response . data ) ;
case 7 :
case 7 :
_context5 . prev = 7 ;
_context5 . t0 = _context5 [ "catch" ] ( 0 ) ;
throw _context5 . t0 ;
_context7 . prev = 7 ;
_context7 . t0 = _context7 [ "catch" ] ( 0 ) ;
throw _context7 . t0 ;
case 10 :
case 10 :
case "end" :
case "end" :
return _context5 . stop ( ) ;
return _context7 . stop ( ) ;
}
}
}
}
} , _callee5 , this , [ [ 0 , 7 ] ] ) ;
} , _callee7 , this , [ [ 0 , 7 ] ] ) ;
} ) ) ;
} ) ) ;
function discardFile ( _x7 ) {
function discardFile ( _x10 ) {
return _discardFile . apply ( this , arguments ) ;
return _discardFile . apply ( this , arguments ) ;
}
}
@ -30033,6 +30314,7 @@ var render = function() {
_c ( "process-file" , {
_c ( "process-file" , {
attrs : {
attrs : {
file : _vm . uploadResult ,
file : _vm . uploadResult ,
document : _vm . document ,
searchers : _vm . availableSearchers
searchers : _vm . availableSearchers
} ,
} ,
on : {
on : {
@ -30262,6 +30544,21 @@ var render = function() {
on : { click : _vm . downloadOdt }
on : { click : _vm . downloadOdt }
} ) ,
} ) ,
_vm . _v ( " " ) ,
_vm . _v ( " " ) ,
_c ( "Button" , {
staticClass :
"p-button-secondary p-button-outlined p-button-sm" ,
attrs : {
label : "Download original" ,
icon : ! _vm . applyingOnOriginalDocument
? "pi pi-download"
: "pi pi-loading" ,
disabled :
_vm . processedFileContent == "" ||
_vm . applyingOnOriginalDocument
} ,
on : { click : _vm . downloadOriginal }
} ) ,
_vm . _v ( " " ) ,
_c ( "Button" , {
_c ( "Button" , {
staticClass :
staticClass :
"p-button-success p-button-outlined p-button-sm" ,
"p-button-success p-button-outlined p-button-sm" ,