vue-intergrall-plugins 0.0.208 → 0.0.211
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/README.md +9 -2
- package/dist/vue-intergrall-plugins.esm.js +312 -319
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +321 -330
- package/package.json +1 -1
- package/src/lib-components/Cards/CardFile.vue +11 -67
- package/src/lib-components/Chat/BtnFiles.vue +50 -23
- package/src/lib-components/Chat/MultipleFilePreview.vue +22 -12
- package/src/lib-components/Chat/SingleFilePreview.vue +2 -2
- package/src/lib-components/Chat/StandardMessages.vue +3 -3
- package/src/lib-components/Chat/TextFooter.vue +6 -4
- package/src/lib-components/Messages/AnexoMensagem.vue +36 -76
- package/src/lib-components/Messages/CardAttachment.vue +12 -68
- package/src/lib-components/Messages/InteratividadeFormulario.vue +10 -16
- package/src/lib-components/Templates/TemplateGenerator.vue +34 -30
|
@@ -3228,7 +3228,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3228
3228
|
attrs: {
|
|
3229
3229
|
"icon": ['fas', 'trash-alt']
|
|
3230
3230
|
}
|
|
3231
|
-
})], 1), _vm._ssrNode(" "), _vm.fileFormatError ? _vm._ssrNode("<div class=\"text-footer-invalid-format\">", "</div>", [_vm._ssrNode("<h3>" + _vm._ssrEscape(_vm._s(_vm.dictionary.titulo_msg_formato_invalido)) + "</h3> <h4>" + _vm._ssrEscape(_vm._s(_vm.validFileFormats)) + "</h4>")], 2) : [_vm.file.name ? _vm._ssrNode("<h3 class=\"text-footer-preview-title\">", "</h3>", [_vm.isDoc ? _c('fa-icon', {
|
|
3231
|
+
})], 1), _vm._ssrNode(" "), _vm.fileFormatError ? _vm._ssrNode("<div class=\"text-footer-invalid-format\">", "</div>", [_vm._ssrNode("<h3>" + _vm._ssrEscape(_vm._s(_vm.dictionary.titulo_msg_formato_invalido)) + "</h3> <h4" + _vm._ssrAttr("title", _vm.validFileFormats) + ">" + _vm._ssrEscape(_vm._s(_vm.validFileFormats)) + "</h4>")], 2) : [_vm.file.name ? _vm._ssrNode("<h3" + _vm._ssrAttr("title", _vm.file.name) + " class=\"text-footer-preview-title\">", "</h3>", [_vm.isDoc ? _c('fa-icon', {
|
|
3232
3232
|
attrs: {
|
|
3233
3233
|
"icon": ['fas', 'file-alt']
|
|
3234
3234
|
}
|
|
@@ -3244,7 +3244,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3244
3244
|
|
|
3245
3245
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3246
3246
|
if (!inject) return;
|
|
3247
|
-
inject("data-v-
|
|
3247
|
+
inject("data-v-a5119ba8_0", {
|
|
3248
3248
|
source: ".single-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.single-file-preview .close-icon:hover{opacity:1}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
|
|
3249
3249
|
map: undefined,
|
|
3250
3250
|
media: undefined
|
|
@@ -3256,7 +3256,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3256
3256
|
var __vue_scope_id__$n = undefined;
|
|
3257
3257
|
/* module identifier */
|
|
3258
3258
|
|
|
3259
|
-
var __vue_module_identifier__$n = "data-v-
|
|
3259
|
+
var __vue_module_identifier__$n = "data-v-a5119ba8";
|
|
3260
3260
|
/* functional template */
|
|
3261
3261
|
|
|
3262
3262
|
var __vue_is_functional_template__$n = false;
|
|
@@ -3393,6 +3393,9 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3393
3393
|
"textContent": _vm._s(_vm.dictionary.titulo_msg_formato_invalido)
|
|
3394
3394
|
}
|
|
3395
3395
|
}), _vm._v(" "), _c('h4', {
|
|
3396
|
+
attrs: {
|
|
3397
|
+
"title": _vm.validFileFormats
|
|
3398
|
+
},
|
|
3396
3399
|
domProps: {
|
|
3397
3400
|
"innerHTML": _vm._s(_vm.validFileFormats)
|
|
3398
3401
|
}
|
|
@@ -3401,14 +3404,18 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3401
3404
|
key: index,
|
|
3402
3405
|
staticClass: "file-preview"
|
|
3403
3406
|
}, [_c('p', {
|
|
3404
|
-
staticClass: "file-title"
|
|
3407
|
+
staticClass: "file-title",
|
|
3408
|
+
class: {
|
|
3409
|
+
'red': singleFile.invalid
|
|
3410
|
+
},
|
|
3411
|
+
attrs: {
|
|
3412
|
+
"title": !singleFile.invalid ? singleFile.name : (_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : 'Arquivo invalido') + " - " + singleFile.name
|
|
3413
|
+
}
|
|
3405
3414
|
}, [_c('fa-icon', {
|
|
3406
3415
|
attrs: {
|
|
3407
3416
|
"icon": _vm.icon(singleFile.imgOrDoc)
|
|
3408
3417
|
}
|
|
3409
|
-
}), _vm._v("\n " + _vm._s(singleFile.name) + "\n ")], 1), _vm._v(" "),
|
|
3410
|
-
staticClass: "file-title red"
|
|
3411
|
-
}, [_vm._v("\n " + _vm._s(_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : "Arquivo invalido") + "\n ")]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
3418
|
+
}), _vm._v("\n " + _vm._s(!singleFile.invalid ? singleFile.name : (_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : "Arquivo invalido") + " - " + singleFile.name) + "\n ")], 1), _vm._v(" "), _c('div', {
|
|
3412
3419
|
staticClass: "small-img"
|
|
3413
3420
|
}, [singleFile.imgOrDoc === 'img' && !_vm.isPdf(singleFile.type) ? _c('span', {
|
|
3414
3421
|
staticClass: "img-container"
|
|
@@ -3429,9 +3436,24 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3429
3436
|
attrs: {
|
|
3430
3437
|
"icon": ['fas', 'file-pdf']
|
|
3431
3438
|
}
|
|
3432
|
-
})], 1) :
|
|
3439
|
+
})], 1) : _c('span', {
|
|
3440
|
+
staticClass: "doc"
|
|
3441
|
+
}, [_c('fa-icon', {
|
|
3442
|
+
attrs: {
|
|
3443
|
+
"icon": ['fas', 'file-alt']
|
|
3444
|
+
}
|
|
3445
|
+
})], 1)]), _vm._v(" "), _c('span', {
|
|
3446
|
+
directives: [{
|
|
3447
|
+
name: "tippy",
|
|
3448
|
+
rawName: "v-tippy",
|
|
3449
|
+
value: {
|
|
3450
|
+
placement: 'left'
|
|
3451
|
+
},
|
|
3452
|
+
expression: "{placement: 'left'}"
|
|
3453
|
+
}],
|
|
3433
3454
|
staticClass: "delete-file",
|
|
3434
3455
|
attrs: {
|
|
3456
|
+
"content": _vm.dictionary.msg_excluir_anexo,
|
|
3435
3457
|
"title": _vm.dictionary.msg_excluir_anexo
|
|
3436
3458
|
},
|
|
3437
3459
|
on: {
|
|
@@ -3452,8 +3474,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3452
3474
|
|
|
3453
3475
|
var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
3454
3476
|
if (!inject) return;
|
|
3455
|
-
inject("data-v-
|
|
3456
|
-
source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-
|
|
3477
|
+
inject("data-v-131a11b5_0", {
|
|
3478
|
+
source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{text-overflow:ellipsis;overflow:hidden;font-weight:500}.text-footer-invalid-format h4{text-overflow:ellipsis;overflow:hidden;font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-right:5px}.file-title>svg{margin-right:5px;color:#333}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .doc,.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px}.small-img .pdf{color:#e74c3c}.small-img .doc{color:#006bc9}.small-img .doc svg,.small-img .pdf svg{z-index:1}.small-img .doc::after,.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
|
|
3457
3479
|
map: undefined,
|
|
3458
3480
|
media: undefined
|
|
3459
3481
|
});
|
|
@@ -3464,7 +3486,7 @@ var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
|
3464
3486
|
var __vue_scope_id__$m = undefined;
|
|
3465
3487
|
/* module identifier */
|
|
3466
3488
|
|
|
3467
|
-
var __vue_module_identifier__$m = "data-v-
|
|
3489
|
+
var __vue_module_identifier__$m = "data-v-131a11b5";
|
|
3468
3490
|
/* functional template */
|
|
3469
3491
|
|
|
3470
3492
|
var __vue_is_functional_template__$m = false;
|
|
@@ -3562,6 +3584,14 @@ var script$l = {
|
|
|
3562
3584
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
3563
3585
|
},
|
|
3564
3586
|
isFileValid: function isFileValid(type, fileName) {
|
|
3587
|
+
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
3588
|
+
this.$toasted.global.defaultInfo({
|
|
3589
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3590
|
+
});
|
|
3591
|
+
this.hasAnyFile = false;
|
|
3592
|
+
return false;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3565
3595
|
var extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
3566
3596
|
var regex = new RegExp("(" + extensions + ")", "i");
|
|
3567
3597
|
if (regex.test(fileName)) return true;
|
|
@@ -3589,6 +3619,14 @@ var script$l = {
|
|
|
3589
3619
|
var filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
|
|
3590
3620
|
this.file = filesAux.length ? filesAux : this.file;
|
|
3591
3621
|
if (!this.file.length) return;
|
|
3622
|
+
|
|
3623
|
+
if (this.file.length > this.fileSettings.max) {
|
|
3624
|
+
this.file = [];
|
|
3625
|
+
return this.$toasted.global.defaultInfo({
|
|
3626
|
+
msg: "Limite de ".concat(this.fileSettings.max, " arquivos")
|
|
3627
|
+
});
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3592
3630
|
this.hasAnyFile = true;
|
|
3593
3631
|
this.fileSize = this.file.length;
|
|
3594
3632
|
|
|
@@ -3604,6 +3642,7 @@ var script$l = {
|
|
|
3604
3642
|
}
|
|
3605
3643
|
},
|
|
3606
3644
|
returnFileType: function returnFileType(file) {
|
|
3645
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return "";
|
|
3607
3646
|
var imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
3608
3647
|
if (imgRegex.test(file.name)) return "img";
|
|
3609
3648
|
var docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
@@ -3613,63 +3652,89 @@ var script$l = {
|
|
|
3613
3652
|
multipleFileUpload: function multipleFileUpload() {
|
|
3614
3653
|
var _this = this;
|
|
3615
3654
|
|
|
3655
|
+
var hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
3656
|
+
var hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
3657
|
+
|
|
3658
|
+
if (!hasImgExt && !hasDocExt) {
|
|
3659
|
+
this.file = [];
|
|
3660
|
+
this.fileSize = 0;
|
|
3661
|
+
return this.$toasted.global.defaultInfo({
|
|
3662
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3663
|
+
});
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3616
3666
|
var waitForImageLoad = false;
|
|
3667
|
+
var hasAnyInvalidFile = false;
|
|
3617
3668
|
this.file = Array.from(this.file);
|
|
3618
3669
|
this.file.forEach(function (file) {
|
|
3619
|
-
var fileReader = new FileReader();
|
|
3620
|
-
|
|
3621
3670
|
var singleFileType = _this.returnFileType(file);
|
|
3622
3671
|
|
|
3623
3672
|
if (!singleFileType) file.invalid = true;
|
|
3624
3673
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
3625
|
-
if (file.imgOrDoc === "doc") _this.isDoc = true;
|
|
3626
3674
|
|
|
3627
|
-
if (file.imgOrDoc
|
|
3628
|
-
|
|
3675
|
+
if (_this.isFileValid(file.imgOrDoc, file.name)) {
|
|
3676
|
+
if (file.imgOrDoc == "img") {
|
|
3677
|
+
var fileReader = new FileReader();
|
|
3678
|
+
waitForImageLoad = true;
|
|
3679
|
+
|
|
3680
|
+
fileReader.onload = function () {
|
|
3681
|
+
return file.src = fileReader.result;
|
|
3682
|
+
};
|
|
3629
3683
|
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3684
|
+
fileReader.onloadend = function () {
|
|
3685
|
+
return _this.emitFileVars(true);
|
|
3686
|
+
};
|
|
3633
3687
|
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
};
|
|
3637
|
-
}
|
|
3688
|
+
fileReader.readAsDataURL(file);
|
|
3689
|
+
}
|
|
3638
3690
|
|
|
3639
|
-
|
|
3640
|
-
if (file.imgOrDoc === "img") fileReader.readAsDataURL(file);
|
|
3691
|
+
if (file.imgOrDoc === "doc") _this.isDoc = true;
|
|
3641
3692
|
file.invalid = false;
|
|
3642
|
-
_this.fileFormatError = false;
|
|
3693
|
+
_this.fileFormatError = !hasAnyInvalidFile ? false : true;
|
|
3643
3694
|
} else {
|
|
3695
|
+
hasAnyInvalidFile = true;
|
|
3644
3696
|
file.invalid = true;
|
|
3645
3697
|
_this.fileFormatError = true;
|
|
3646
|
-
_this.validFileFormats = "
|
|
3698
|
+
if (hasImgExt && !hasDocExt) _this.validFileFormats = "Imagens: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "));
|
|
3699
|
+
if (hasDocExt && hasImgExt) _this.validFileFormats = "Documentos: ".concat(_this.fileSettings.docsExtensions.split("|").join(", "));
|
|
3700
|
+
if (hasImgExt && hasDocExt) _this.validFileFormats = "Imagens: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "), " - Documentos: ").concat(_this.fileSettings.docsExtensions.split("|").join(", "));
|
|
3647
3701
|
}
|
|
3648
3702
|
});
|
|
3703
|
+
|
|
3704
|
+
if (this.fileFormatError) {
|
|
3705
|
+
this.file = [];
|
|
3706
|
+
this.fileSize = 0;
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3649
3709
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
3650
3710
|
},
|
|
3651
3711
|
singleFileUpload: function singleFileUpload(type, fileName) {
|
|
3652
3712
|
var _this2 = this;
|
|
3653
3713
|
|
|
3654
|
-
|
|
3714
|
+
if (this.isFileValid(type, fileName)) {
|
|
3715
|
+
var fileReader = new FileReader();
|
|
3655
3716
|
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3717
|
+
if (type === "img") {
|
|
3718
|
+
fileReader.onload = function () {
|
|
3719
|
+
return _this2.imagePreview = fileReader.result;
|
|
3720
|
+
};
|
|
3660
3721
|
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3722
|
+
fileReader.onloadend = function () {
|
|
3723
|
+
return _this2.emitFileVars();
|
|
3724
|
+
};
|
|
3725
|
+
|
|
3726
|
+
fileReader.readAsDataURL(this.file);
|
|
3727
|
+
}
|
|
3665
3728
|
|
|
3666
|
-
if (this.isFileValid(type, fileName)) {
|
|
3667
|
-
if (type === "img") fileReader.readAsDataURL(this.file);
|
|
3668
3729
|
if (type === "doc") this.isDoc = true;
|
|
3669
3730
|
this.fileFormatError = false;
|
|
3670
3731
|
} else {
|
|
3671
3732
|
this.fileFormatError = true;
|
|
3672
|
-
|
|
3733
|
+
var hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
3734
|
+
var hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
3735
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = "Imagens: ".concat(this.fileSettings.imagesExtensions);
|
|
3736
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = "Documentos: ".concat(this.fileSettings.docsExtensions);
|
|
3737
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = "Imagens: ".concat(this.fileSettings.imagesExtensions, " - Documentos: ").concat(this.fileSettings.docsExtensions);
|
|
3673
3738
|
}
|
|
3674
3739
|
|
|
3675
3740
|
if (this.isDoc) this.emitFileVars();
|
|
@@ -3893,7 +3958,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
3893
3958
|
|
|
3894
3959
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
3895
3960
|
if (!inject) return;
|
|
3896
|
-
inject("data-v-
|
|
3961
|
+
inject("data-v-402ae30b_0", {
|
|
3897
3962
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}",
|
|
3898
3963
|
map: undefined,
|
|
3899
3964
|
media: undefined
|
|
@@ -3905,7 +3970,7 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
3905
3970
|
var __vue_scope_id__$l = undefined;
|
|
3906
3971
|
/* module identifier */
|
|
3907
3972
|
|
|
3908
|
-
var __vue_module_identifier__$l = "data-v-
|
|
3973
|
+
var __vue_module_identifier__$l = "data-v-402ae30b";
|
|
3909
3974
|
/* functional template */
|
|
3910
3975
|
|
|
3911
3976
|
var __vue_is_functional_template__$l = false;
|
|
@@ -7974,7 +8039,7 @@ var script$i = {
|
|
|
7974
8039
|
this.loadingReq = true;
|
|
7975
8040
|
this.getStandardMessages(cod, this.token_cliente).then(function (data) {
|
|
7976
8041
|
_this.loadingReq = false;
|
|
7977
|
-
if (data.msg_ret) return _this.$toasted.global.
|
|
8042
|
+
if (data.msg_ret) return _this.$toasted.global.defaultInfo({
|
|
7978
8043
|
msg: data.msg_ret
|
|
7979
8044
|
});
|
|
7980
8045
|
if (data) return _this.showFormattedMessage(data, selectionIndex);
|
|
@@ -7998,7 +8063,7 @@ var script$i = {
|
|
|
7998
8063
|
try {
|
|
7999
8064
|
var success = false;
|
|
8000
8065
|
if (Array.isArray(messageData)) success = true;
|
|
8001
|
-
if (!success && selectionIndex != 4) this.$toasted.global.
|
|
8066
|
+
if (!success && selectionIndex != 4) this.$toasted.global.defaultInfo({
|
|
8002
8067
|
msg: messageData ? messageData.msg : "Nao foi possível obter mensagens"
|
|
8003
8068
|
});
|
|
8004
8069
|
|
|
@@ -8023,7 +8088,7 @@ var script$i = {
|
|
|
8023
8088
|
case 3:
|
|
8024
8089
|
if (!success) {
|
|
8025
8090
|
this.formatted_messages_3.push(messageData);
|
|
8026
|
-
this.$toasted.global.
|
|
8091
|
+
this.$toasted.global.defaultInfo({
|
|
8027
8092
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8028
8093
|
});
|
|
8029
8094
|
this.$emit("close-blocker-standard-message");
|
|
@@ -8183,7 +8248,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8183
8248
|
|
|
8184
8249
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
8185
8250
|
if (!inject) return;
|
|
8186
|
-
inject("data-v-
|
|
8251
|
+
inject("data-v-324084df_0", {
|
|
8187
8252
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
8188
8253
|
map: undefined,
|
|
8189
8254
|
media: undefined
|
|
@@ -8195,7 +8260,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
8195
8260
|
var __vue_scope_id__$i = undefined;
|
|
8196
8261
|
/* module identifier */
|
|
8197
8262
|
|
|
8198
|
-
var __vue_module_identifier__$i = "data-v-
|
|
8263
|
+
var __vue_module_identifier__$i = "data-v-324084df";
|
|
8199
8264
|
/* functional template */
|
|
8200
8265
|
|
|
8201
8266
|
var __vue_is_functional_template__$i = false;
|
|
@@ -8285,7 +8350,8 @@ var script$h = {
|
|
|
8285
8350
|
docsExtensions: "",
|
|
8286
8351
|
imagesExtensions: "",
|
|
8287
8352
|
multiple: false,
|
|
8288
|
-
systemButton: false
|
|
8353
|
+
systemButton: false,
|
|
8354
|
+
max: 3
|
|
8289
8355
|
};
|
|
8290
8356
|
},
|
|
8291
8357
|
required: false
|
|
@@ -8354,7 +8420,7 @@ var script$h = {
|
|
|
8354
8420
|
if (event.data == '' && this.showStandardMessages) {
|
|
8355
8421
|
this.closeBlockerStandardMessage();
|
|
8356
8422
|
this.toggleStandardMessages();
|
|
8357
|
-
this.$toasted.global.
|
|
8423
|
+
this.$toasted.global.defaultInfo({
|
|
8358
8424
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8359
8425
|
});
|
|
8360
8426
|
} else if (typeof event.data === "string" && this.showStandardMessages) {
|
|
@@ -8418,7 +8484,7 @@ var script$h = {
|
|
|
8418
8484
|
if ((!this.message || !this.message.trim()) && !this.hasAnyFile && !this.audioFile) return false;
|
|
8419
8485
|
if (this.textareaSettings.disabled) return false;
|
|
8420
8486
|
|
|
8421
|
-
if (this.fileFormatError) {
|
|
8487
|
+
if (this.fileFormatError && this.hasAnyFile) {
|
|
8422
8488
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
8423
8489
|
msg: this.dictionary.msg_formato_invalido
|
|
8424
8490
|
});
|
|
@@ -8535,11 +8601,12 @@ var script$h = {
|
|
|
8535
8601
|
this.audioSource = "";
|
|
8536
8602
|
},
|
|
8537
8603
|
returnFileType: function returnFileType(file, stopAlert) {
|
|
8604
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return false;
|
|
8538
8605
|
var imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
8539
8606
|
if (imgRegex.test(file.name)) return "img";
|
|
8540
8607
|
var docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
8541
8608
|
if (docRegex.test(file.name)) return "doc";
|
|
8542
|
-
if (!stopAlert) return;
|
|
8609
|
+
if (!stopAlert) return false;
|
|
8543
8610
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
8544
8611
|
msg: this.dictionary.msg_formato_invalido
|
|
8545
8612
|
});
|
|
@@ -8815,8 +8882,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
8815
8882
|
|
|
8816
8883
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
8817
8884
|
if (!inject) return;
|
|
8818
|
-
inject("data-v-
|
|
8819
|
-
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8885
|
+
inject("data-v-7910091a_0", {
|
|
8886
|
+
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8820
8887
|
map: undefined,
|
|
8821
8888
|
media: undefined
|
|
8822
8889
|
});
|
|
@@ -8827,7 +8894,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
8827
8894
|
var __vue_scope_id__$h = undefined;
|
|
8828
8895
|
/* module identifier */
|
|
8829
8896
|
|
|
8830
|
-
var __vue_module_identifier__$h = "data-v-
|
|
8897
|
+
var __vue_module_identifier__$h = "data-v-7910091a";
|
|
8831
8898
|
/* functional template */
|
|
8832
8899
|
|
|
8833
8900
|
var __vue_is_functional_template__$h = false;
|
|
@@ -9008,9 +9075,11 @@ var script$f = {
|
|
|
9008
9075
|
for (var key in template) {
|
|
9009
9076
|
if (key === "components" && Array.isArray(template[key])) {
|
|
9010
9077
|
template[key].map(function (component) {
|
|
9011
|
-
component.parameters.
|
|
9012
|
-
|
|
9013
|
-
|
|
9078
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9079
|
+
component.parameters.map(function (param) {
|
|
9080
|
+
fullText += param.text;
|
|
9081
|
+
});
|
|
9082
|
+
}
|
|
9014
9083
|
});
|
|
9015
9084
|
}
|
|
9016
9085
|
}
|
|
@@ -9088,41 +9157,44 @@ var script$f = {
|
|
|
9088
9157
|
for (var index in this.selectedTemplate) {
|
|
9089
9158
|
if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
|
|
9090
9159
|
var arrComponents = this.selectedTemplate[index];
|
|
9091
|
-
arrComponents.map(function (component) {
|
|
9092
|
-
if (component && component.parameters && component.parameters.length) {
|
|
9093
|
-
component.parameters.map(function (message) {
|
|
9094
|
-
message.currentText = message.text;
|
|
9095
|
-
var keyIndex = 0;
|
|
9096
9160
|
|
|
9097
|
-
|
|
9098
|
-
|
|
9161
|
+
if (arrComponents && arrComponents.length) {
|
|
9162
|
+
arrComponents.map(function (component) {
|
|
9163
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9164
|
+
component.parameters.map(function (message) {
|
|
9165
|
+
message.currentText = message.text;
|
|
9166
|
+
var keyIndex = 0;
|
|
9167
|
+
|
|
9168
|
+
while (keyIndex < keys.length) {
|
|
9169
|
+
var varName = "{{".concat(keys[keyIndex], "}}");
|
|
9099
9170
|
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9171
|
+
if (message.text.indexOf(varName) != -1) {
|
|
9172
|
+
/**Gerando os obejetos de parametros da notificacao para o component */
|
|
9173
|
+
if (component.type === "header") {
|
|
9174
|
+
_this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9104
9175
|
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9176
|
+
_this.selectedTemplate['parameters'][component.type] = {
|
|
9177
|
+
tipo: "text",
|
|
9178
|
+
text: values[keyIndex]
|
|
9179
|
+
};
|
|
9180
|
+
} else if (!_this.selectedTemplate['parameters'][component.type]) {
|
|
9181
|
+
_this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9182
|
+
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9112
9183
|
|
|
9113
9184
|
|
|
9114
|
-
|
|
9115
|
-
|
|
9185
|
+
if (_this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
|
|
9186
|
+
_this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
|
|
9187
|
+
}
|
|
9188
|
+
|
|
9189
|
+
message.currentText = message.currentText.replace(varName, values[keyIndex]);
|
|
9116
9190
|
}
|
|
9117
9191
|
|
|
9118
|
-
|
|
9192
|
+
keyIndex++;
|
|
9119
9193
|
}
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
}
|
|
9125
|
-
});
|
|
9194
|
+
});
|
|
9195
|
+
}
|
|
9196
|
+
});
|
|
9197
|
+
}
|
|
9126
9198
|
}
|
|
9127
9199
|
}
|
|
9128
9200
|
|
|
@@ -9208,7 +9280,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9208
9280
|
|
|
9209
9281
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
9210
9282
|
if (!inject) return;
|
|
9211
|
-
inject("data-v-
|
|
9283
|
+
inject("data-v-5a97ed34_0", {
|
|
9212
9284
|
source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-select .vs__selected-options>input{flex-grow:0}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;flex:2;font-size:.7rem;padding:10px 0}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:2.5px;border-top-right-radius:2.5px;border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 5px;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{outline:unset;border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active,.tg-btn button:focus{outline:unset}.tg-btn.small-btn{width:auto;margin-left:5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:2.5px;display:flex}",
|
|
9213
9285
|
map: undefined,
|
|
9214
9286
|
media: undefined
|
|
@@ -9220,7 +9292,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
9220
9292
|
var __vue_scope_id__$f = undefined;
|
|
9221
9293
|
/* module identifier */
|
|
9222
9294
|
|
|
9223
|
-
var __vue_module_identifier__$f = "data-v-
|
|
9295
|
+
var __vue_module_identifier__$f = "data-v-5a97ed34";
|
|
9224
9296
|
/* functional template */
|
|
9225
9297
|
|
|
9226
9298
|
var __vue_is_functional_template__$f = false;
|
|
@@ -9694,49 +9766,56 @@ var __vue_component__$k = __vue_component__$j;var textoLongo = {
|
|
|
9694
9766
|
console.error("Ignorando anexo devido a erro");
|
|
9695
9767
|
console.error(e);
|
|
9696
9768
|
}
|
|
9697
|
-
}
|
|
9698
|
-
var script$d = {
|
|
9699
|
-
props: {
|
|
9700
|
-
file: {
|
|
9701
|
-
type: Object,
|
|
9702
|
-
required: true
|
|
9703
|
-
},
|
|
9704
|
-
dictionary: {
|
|
9705
|
-
type: Object,
|
|
9706
|
-
required: true
|
|
9707
|
-
},
|
|
9708
|
-
domain: {
|
|
9709
|
-
type: String,
|
|
9710
|
-
required: true
|
|
9711
|
-
}
|
|
9712
|
-
},
|
|
9713
|
-
computed: {
|
|
9714
|
-
currentClass: function currentClass() {
|
|
9715
|
-
return this.fileExt === "pdf" ? "pdf" : "doc";
|
|
9716
|
-
}
|
|
9717
|
-
},
|
|
9769
|
+
}var fileHandler = {
|
|
9718
9770
|
data: function data() {
|
|
9719
9771
|
return {
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9772
|
+
isLoading: true,
|
|
9773
|
+
isFile: false,
|
|
9774
|
+
imageURL: "",
|
|
9775
|
+
fileType: "",
|
|
9776
|
+
docURL: "",
|
|
9777
|
+
filename: "",
|
|
9726
9778
|
audio: false,
|
|
9727
9779
|
video: false,
|
|
9728
9780
|
icon: []
|
|
9729
9781
|
};
|
|
9730
9782
|
},
|
|
9731
|
-
|
|
9732
|
-
|
|
9783
|
+
computed: {
|
|
9784
|
+
iconClass: function iconClass() {
|
|
9785
|
+
return this.fileType === "pdf" ? "pdf" : "doc";
|
|
9786
|
+
}
|
|
9733
9787
|
},
|
|
9734
9788
|
methods: {
|
|
9735
|
-
|
|
9789
|
+
openWindowFromURL: function openWindowFromURL(link, isImg) {
|
|
9790
|
+
var viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
|
|
9791
|
+
|
|
9792
|
+
if (!isImg && !viewableExtensions.includes(this.fileType)) {
|
|
9793
|
+
var a = document.createElement("a");
|
|
9794
|
+
a.setAttribute("href", link);
|
|
9795
|
+
a.setAttribute("download", this.filename);
|
|
9796
|
+
a.setAttribute("target", "_blank");
|
|
9797
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
9798
|
+
a.click();
|
|
9799
|
+
return;
|
|
9800
|
+
}
|
|
9801
|
+
|
|
9802
|
+
var width = window.innerWidth;
|
|
9803
|
+
var height = window.innerHeight;
|
|
9804
|
+
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
9805
|
+
window.open(link, "anexo-ra", options);
|
|
9806
|
+
},
|
|
9807
|
+
showImage: function showImage(image) {
|
|
9808
|
+
if (!image) return console.warn("Não foi possível abrir a imagem");
|
|
9809
|
+
this.$emit("abrir-imagem", image);
|
|
9810
|
+
},
|
|
9811
|
+
setFileVars: function setFileVars(rawFile, storeObj) {
|
|
9736
9812
|
try {
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9813
|
+
if (!rawFile) {
|
|
9814
|
+
this.isLoading = false;
|
|
9815
|
+
return console.warn("Anexo recebido invalido");
|
|
9816
|
+
}
|
|
9817
|
+
|
|
9818
|
+
var _gerarVariaveisAnexo = gerarVariaveisAnexo(rawFile, storeObj),
|
|
9740
9819
|
anexo = _gerarVariaveisAnexo.anexo,
|
|
9741
9820
|
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
9742
9821
|
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
@@ -9745,29 +9824,45 @@ var script$d = {
|
|
|
9745
9824
|
audio = _gerarVariaveisAnexo.audio,
|
|
9746
9825
|
video = _gerarVariaveisAnexo.video;
|
|
9747
9826
|
|
|
9748
|
-
this.
|
|
9749
|
-
this.
|
|
9750
|
-
this.
|
|
9751
|
-
this.
|
|
9752
|
-
this.
|
|
9827
|
+
this.isFile = anexo;
|
|
9828
|
+
this.imageURL = imgAnexo;
|
|
9829
|
+
this.fileType = tipoDoc;
|
|
9830
|
+
this.docURL = docAnexo;
|
|
9831
|
+
this.filename = nomeArquivo;
|
|
9753
9832
|
this.audio = audio;
|
|
9754
9833
|
this.video = video;
|
|
9755
|
-
this.
|
|
9756
|
-
this.
|
|
9834
|
+
this.setIcon();
|
|
9835
|
+
this.isLoading = false;
|
|
9757
9836
|
} catch (e) {
|
|
9758
9837
|
console.error("Erro ao gerar as variaveis dos anexos");
|
|
9759
9838
|
console.error(e);
|
|
9760
9839
|
}
|
|
9761
9840
|
},
|
|
9762
|
-
|
|
9763
|
-
this.icon = this.
|
|
9841
|
+
setIcon: function setIcon() {
|
|
9842
|
+
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
9843
|
+
}
|
|
9844
|
+
}
|
|
9845
|
+
};//
|
|
9846
|
+
var script$d = {
|
|
9847
|
+
mixins: [fileHandler],
|
|
9848
|
+
props: {
|
|
9849
|
+
file: {
|
|
9850
|
+
type: Object,
|
|
9851
|
+
required: true
|
|
9764
9852
|
},
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9853
|
+
dictionary: {
|
|
9854
|
+
type: Object,
|
|
9855
|
+
required: true
|
|
9856
|
+
},
|
|
9857
|
+
domain: {
|
|
9858
|
+
type: String,
|
|
9859
|
+
required: true
|
|
9770
9860
|
}
|
|
9861
|
+
},
|
|
9862
|
+
mounted: function mounted() {
|
|
9863
|
+
this.setFileVars(this.file, {
|
|
9864
|
+
dominio: this.domain
|
|
9865
|
+
});
|
|
9771
9866
|
}
|
|
9772
9867
|
};/* script */
|
|
9773
9868
|
var __vue_script__$d = script$d;
|
|
@@ -9788,40 +9883,40 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9788
9883
|
"name": "fade",
|
|
9789
9884
|
"mode": "out-in"
|
|
9790
9885
|
}
|
|
9791
|
-
}, [_vm.
|
|
9886
|
+
}, [_vm.isLoading ? _c('div', {
|
|
9792
9887
|
key: "card-file-loader",
|
|
9793
9888
|
staticClass: "req-loader slow",
|
|
9794
9889
|
attrs: {
|
|
9795
9890
|
"small": true
|
|
9796
9891
|
}
|
|
9797
|
-
}) : [_vm.
|
|
9892
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
9798
9893
|
key: "card-file-img",
|
|
9799
9894
|
staticClass: "file-img box-shadow",
|
|
9800
9895
|
attrs: {
|
|
9801
|
-
"title": _vm.
|
|
9896
|
+
"title": _vm.filename
|
|
9802
9897
|
},
|
|
9803
9898
|
on: {
|
|
9804
9899
|
"click": function click($event) {
|
|
9805
|
-
return _vm.
|
|
9900
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
9806
9901
|
}
|
|
9807
9902
|
}
|
|
9808
9903
|
}, [_c('img', {
|
|
9809
9904
|
attrs: {
|
|
9810
|
-
"src": "" + _vm.
|
|
9811
|
-
"alt": _vm.
|
|
9905
|
+
"src": "" + _vm.imageURL,
|
|
9906
|
+
"alt": _vm.filename
|
|
9812
9907
|
}
|
|
9813
9908
|
})]) : _c('span', {
|
|
9814
9909
|
key: "card-file-doc",
|
|
9815
9910
|
staticClass: "file-icon",
|
|
9816
|
-
class: [_vm.
|
|
9911
|
+
class: [_vm.iconClass],
|
|
9817
9912
|
attrs: {
|
|
9818
|
-
"title": _vm.
|
|
9913
|
+
"title": _vm.filename,
|
|
9819
9914
|
"target": "_blank",
|
|
9820
9915
|
"rel": "noreferrer noopener"
|
|
9821
9916
|
},
|
|
9822
9917
|
on: {
|
|
9823
9918
|
"click": function click($event) {
|
|
9824
|
-
return _vm.
|
|
9919
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
9825
9920
|
}
|
|
9826
9921
|
}
|
|
9827
9922
|
}, [_c('fa-icon', {
|
|
@@ -9831,11 +9926,11 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9831
9926
|
})], 1), _vm._v(" "), _c('a', {
|
|
9832
9927
|
key: "card-file-download-icon",
|
|
9833
9928
|
attrs: {
|
|
9834
|
-
"href": _vm.
|
|
9835
|
-
"download": "" + _vm.
|
|
9929
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
9930
|
+
"download": "" + _vm.filename,
|
|
9836
9931
|
"target": "_blank",
|
|
9837
9932
|
"rel": "noreferrer noopener",
|
|
9838
|
-
"title": "Download " + _vm.
|
|
9933
|
+
"title": "Download " + _vm.filename
|
|
9839
9934
|
}
|
|
9840
9935
|
}, [_c('fa-icon', {
|
|
9841
9936
|
attrs: {
|
|
@@ -9849,11 +9944,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
9849
9944
|
|
|
9850
9945
|
var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
9851
9946
|
if (!inject) return;
|
|
9852
|
-
inject("data-v-
|
|
9853
|
-
source: ".fade-enter-active[data-v-
|
|
9947
|
+
inject("data-v-c0bc7096_0", {
|
|
9948
|
+
source: ".fade-enter-active[data-v-c0bc7096],.fade-leave-active[data-v-c0bc7096]{transition:opacity .5s}.fade-enter[data-v-c0bc7096],.fade-leave-to[data-v-c0bc7096]{opacity:0}",
|
|
9854
9949
|
map: undefined,
|
|
9855
9950
|
media: undefined
|
|
9856
|
-
}), inject("data-v-
|
|
9951
|
+
}), inject("data-v-c0bc7096_1", {
|
|
9857
9952
|
source: ".file-item{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item-transition{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item .req-loader{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.file-item-transition img{max-width:45px;max-height:45px}.file-item a{margin-left:5px;text-decoration:none;color:#333}.file-icon{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.file-icon:hover{opacity:1}.file-icon:visited{color:inherit}svg{font-size:30px;z-index:1}.file-icon.pdf{position:relative}.file-icon.pdf svg{color:#e74c3c}.file-icon.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.file-icon.doc{color:#15517f}.file-icon.doc::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.file-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.file-img:hover{opacity:1}.file-img img{width:95%}",
|
|
9858
9953
|
map: undefined,
|
|
9859
9954
|
media: undefined
|
|
@@ -9862,10 +9957,10 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
|
9862
9957
|
/* scoped */
|
|
9863
9958
|
|
|
9864
9959
|
|
|
9865
|
-
var __vue_scope_id__$d = "data-v-
|
|
9960
|
+
var __vue_scope_id__$d = "data-v-c0bc7096";
|
|
9866
9961
|
/* module identifier */
|
|
9867
9962
|
|
|
9868
|
-
var __vue_module_identifier__$d = "data-v-
|
|
9963
|
+
var __vue_module_identifier__$d = "data-v-c0bc7096";
|
|
9869
9964
|
/* functional template */
|
|
9870
9965
|
|
|
9871
9966
|
var __vue_is_functional_template__$d = false;
|
|
@@ -10406,9 +10501,7 @@ var script$9 = {
|
|
|
10406
10501
|
var width = window.innerWidth;
|
|
10407
10502
|
var height = window.innerHeight;
|
|
10408
10503
|
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10409
|
-
|
|
10410
|
-
console.log(urlformatted);
|
|
10411
|
-
window.open(urlformatted, "card-file", options);
|
|
10504
|
+
window.open("".concat(this.dominio, "/callcenter/docs.php?mku=").concat(url), "card-file", options);
|
|
10412
10505
|
},
|
|
10413
10506
|
validateInterativity: function validateInterativity() {
|
|
10414
10507
|
try {
|
|
@@ -10425,11 +10518,7 @@ var script$9 = {
|
|
|
10425
10518
|
try {
|
|
10426
10519
|
var formulario = this.interatividade.formulario;
|
|
10427
10520
|
formulario = formulario ? formulario : [];
|
|
10428
|
-
|
|
10429
|
-
if (!formulario.length) {
|
|
10430
|
-
return;
|
|
10431
|
-
}
|
|
10432
|
-
|
|
10521
|
+
if (!formulario.length) return;
|
|
10433
10522
|
var foundInfosAdd = formulario.filter(function (f) {
|
|
10434
10523
|
return f.TIPO_TEXTO > 999;
|
|
10435
10524
|
});
|
|
@@ -10447,9 +10536,7 @@ var script$9 = {
|
|
|
10447
10536
|
});
|
|
10448
10537
|
}
|
|
10449
10538
|
|
|
10450
|
-
if (foundInfosAdd)
|
|
10451
|
-
this.informacaoAdicional = foundInfosAdd;
|
|
10452
|
-
}
|
|
10539
|
+
if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
|
|
10453
10540
|
} catch (e) {
|
|
10454
10541
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10455
10542
|
console.error(e);
|
|
@@ -10469,16 +10556,16 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10469
10556
|
|
|
10470
10557
|
return _c('div', {
|
|
10471
10558
|
staticClass: "interatividade"
|
|
10472
|
-
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-
|
|
10473
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
10474
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
10475
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
10476
|
-
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-
|
|
10559
|
+
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-7b989966>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"interatividade-form-body\" data-v-7b989966>", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
10560
|
+
return "<div class=\"interatividade-info-form\" data-v-7b989966>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
10561
|
+
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-7b989966>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-7b989966>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
10562
|
+
return "<div class=\"interatividade-add-info-form\" data-v-7b989966><div class=\"divisor-form-info-aditional\" data-v-7b989966><div class=\"info-aditional\" data-v-7b989966>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-7b989966>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
10563
|
+
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-7b989966>" + _vm._ssrEscape(_vm._s("Anexos")) + "</h3> "), _vm._ssrNode("<div class=\"d-flex flex-wrap align-items-center\" data-v-7b989966>", "</div>", _vm._l(_vm.anexos, function (ref, fileIndex) {
|
|
10477
10564
|
var name = ref.name;
|
|
10478
10565
|
var type = ref.type;
|
|
10479
10566
|
var mkuDownload = ref.mkuDownload;
|
|
10480
10567
|
var mku = ref.mku;
|
|
10481
|
-
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-
|
|
10568
|
+
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-7b989966>", "</div>", [!type ? _vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.dominio + "/callcenter/docs.php?mku=" + mku) + _vm._ssrAttr("alt", name) + _vm._ssrAttr("title", name) + " class=\"box-shadow max-w-75px max-h-75px cursor-pointer\" data-v-7b989966>", "</img>") : _c('fa-icon', {
|
|
10482
10569
|
class: _vm.returnCurrentClass(type),
|
|
10483
10570
|
attrs: {
|
|
10484
10571
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10489,12 +10576,12 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10489
10576
|
return _vm.openFile(mku, type);
|
|
10490
10577
|
}
|
|
10491
10578
|
}
|
|
10492
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-
|
|
10579
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-7b989966>", "</a>", [_c('fa-icon', {
|
|
10493
10580
|
attrs: {
|
|
10494
10581
|
"icon": ['fas', 'download']
|
|
10495
10582
|
}
|
|
10496
10583
|
})], 1)], 2);
|
|
10497
|
-
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-
|
|
10584
|
+
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-7b989966>" + _vm._ssrEscape(_vm._s("Sem anexos")) + "</p>" : "<!---->"))], 2)] : _vm._e()], 2);
|
|
10498
10585
|
};
|
|
10499
10586
|
|
|
10500
10587
|
var __vue_staticRenderFns__$9 = [];
|
|
@@ -10502,8 +10589,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
10502
10589
|
|
|
10503
10590
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
10504
10591
|
if (!inject) return;
|
|
10505
|
-
inject("data-v-
|
|
10506
|
-
source: ".show-x-enter-active[data-v-
|
|
10592
|
+
inject("data-v-7b989966_0", {
|
|
10593
|
+
source: ".show-x-enter-active[data-v-7b989966],.show-x-leave-enter[data-v-7b989966]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7b989966],.show-x-leave-to[data-v-7b989966]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7b989966]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7b989966]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7b989966]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-7b989966]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-7b989966]{margin:10px 0}.interatividade-titulo-form[data-v-7b989966]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-7b989966]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7b989966]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7b989966]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7b989966]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7b989966]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7b989966]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7b989966]:hover{color:#00628f}.text-blue[data-v-7b989966]{color:#294ed3}.text-red[data-v-7b989966]{color:#e74c3c}.text-dark[data-v-7b989966]{color:#333}.ml-3[data-v-7b989966]{margin-left:3px}.fs-2[data-v-7b989966]{font-size:2rem}.flex-wrap[data-v-7b989966]{-ms-flex-wrap:wrap;flex-wrap:wrap}.align-items-center[data-v-7b989966]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.d-flex[data-v-7b989966]{display:-webkit-box;display:-ms-flexbox;display:flex}.align-items-end[data-v-7b989966]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.text-bold[data-v-7b989966]{font-weight:700}.m-5[data-v-7b989966]{margin:5px}.mb-5[data-v-7b989966]{margin-bottom:5px}.mx-5[data-v-7b989966]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-7b989966]{cursor:pointer}",
|
|
10507
10594
|
map: undefined,
|
|
10508
10595
|
media: undefined
|
|
10509
10596
|
});
|
|
@@ -10511,10 +10598,10 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
10511
10598
|
/* scoped */
|
|
10512
10599
|
|
|
10513
10600
|
|
|
10514
|
-
var __vue_scope_id__$9 = "data-v-
|
|
10601
|
+
var __vue_scope_id__$9 = "data-v-7b989966";
|
|
10515
10602
|
/* module identifier */
|
|
10516
10603
|
|
|
10517
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
10604
|
+
var __vue_module_identifier__$9 = "data-v-7b989966";
|
|
10518
10605
|
/* functional template */
|
|
10519
10606
|
|
|
10520
10607
|
var __vue_is_functional_template__$9 = false;
|
|
@@ -10527,6 +10614,7 @@ var __vue_component__$d = /*#__PURE__*/normalizeComponent({
|
|
|
10527
10614
|
|
|
10528
10615
|
var InteratividadeFormulario = __vue_component__$d;//
|
|
10529
10616
|
var script$8 = {
|
|
10617
|
+
mixins: [fileHandler],
|
|
10530
10618
|
props: {
|
|
10531
10619
|
anexo: {
|
|
10532
10620
|
type: Object,
|
|
@@ -10541,64 +10629,10 @@ var script$8 = {
|
|
|
10541
10629
|
required: true
|
|
10542
10630
|
}
|
|
10543
10631
|
},
|
|
10544
|
-
computed: {
|
|
10545
|
-
iconeClass: function iconeClass() {
|
|
10546
|
-
return this.tipoDoc === "pdf" ? "pdf" : "doc";
|
|
10547
|
-
}
|
|
10548
|
-
},
|
|
10549
|
-
data: function data() {
|
|
10550
|
-
return {
|
|
10551
|
-
carregando: true,
|
|
10552
|
-
isAnexo: false,
|
|
10553
|
-
imgAnexo: "",
|
|
10554
|
-
tipoDoc: "",
|
|
10555
|
-
docAnexo: "",
|
|
10556
|
-
nomeArquivo: "",
|
|
10557
|
-
audio: false,
|
|
10558
|
-
video: false,
|
|
10559
|
-
icone: []
|
|
10560
|
-
};
|
|
10561
|
-
},
|
|
10562
10632
|
mounted: function mounted() {
|
|
10563
|
-
this.
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10567
|
-
try {
|
|
10568
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10569
|
-
dominio: this.dominio
|
|
10570
|
-
}),
|
|
10571
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10572
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10573
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10574
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10575
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10576
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10577
|
-
video = _gerarVariaveisAnexo.video;
|
|
10578
|
-
|
|
10579
|
-
this.isAnexo = anexo;
|
|
10580
|
-
this.imgAnexo = imgAnexo;
|
|
10581
|
-
this.tipoDoc = tipoDoc;
|
|
10582
|
-
this.docAnexo = docAnexo;
|
|
10583
|
-
this.nomeArquivo = nomeArquivo;
|
|
10584
|
-
this.audio = audio;
|
|
10585
|
-
this.video = video;
|
|
10586
|
-
this.gerarIcone();
|
|
10587
|
-
this.carregando = false;
|
|
10588
|
-
} catch (e) {
|
|
10589
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10590
|
-
console.error(e);
|
|
10591
|
-
}
|
|
10592
|
-
},
|
|
10593
|
-
gerarIcone: function gerarIcone() {
|
|
10594
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10595
|
-
},
|
|
10596
|
-
abrirAnexo: function abrirAnexo(link, isImg) {
|
|
10597
|
-
var width = window.innerWidth;
|
|
10598
|
-
var height = window.innerHeight;
|
|
10599
|
-
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10600
|
-
window.open(link, "anexo-ra", options);
|
|
10601
|
-
}
|
|
10633
|
+
this.setFileVars(this.anexo, {
|
|
10634
|
+
dominio: this.dominio
|
|
10635
|
+
});
|
|
10602
10636
|
}
|
|
10603
10637
|
};/* script */
|
|
10604
10638
|
var __vue_script__$8 = script$8;
|
|
@@ -10619,54 +10653,54 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
10619
10653
|
"name": "fade",
|
|
10620
10654
|
"mode": "out-in"
|
|
10621
10655
|
}
|
|
10622
|
-
}, [_vm.
|
|
10656
|
+
}, [_vm.isLoading ? _c('div', {
|
|
10623
10657
|
key: "ra-loader-anexo",
|
|
10624
10658
|
staticClass: "req-loader slow",
|
|
10625
10659
|
attrs: {
|
|
10626
10660
|
"small": true
|
|
10627
10661
|
}
|
|
10628
|
-
}) : [_vm.
|
|
10662
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
10629
10663
|
key: "ra-img-anexo",
|
|
10630
10664
|
staticClass: "anexo-img box-shadow",
|
|
10631
10665
|
attrs: {
|
|
10632
|
-
"title": _vm.
|
|
10666
|
+
"title": _vm.filename
|
|
10633
10667
|
},
|
|
10634
10668
|
on: {
|
|
10635
10669
|
"click": function click($event) {
|
|
10636
|
-
return _vm.
|
|
10670
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
10637
10671
|
}
|
|
10638
10672
|
}
|
|
10639
10673
|
}, [_c('img', {
|
|
10640
10674
|
attrs: {
|
|
10641
|
-
"src": "" + _vm.
|
|
10642
|
-
"alt": _vm.
|
|
10675
|
+
"src": "" + _vm.imageURL,
|
|
10676
|
+
"alt": _vm.filename
|
|
10643
10677
|
}
|
|
10644
10678
|
})]) : _c('span', {
|
|
10645
10679
|
key: "ra-doc-anexo",
|
|
10646
|
-
staticClass: "anexo-
|
|
10647
|
-
class: [_vm.
|
|
10680
|
+
staticClass: "anexo-icon",
|
|
10681
|
+
class: [_vm.iconClass],
|
|
10648
10682
|
attrs: {
|
|
10649
|
-
"title": _vm.
|
|
10683
|
+
"title": _vm.filename,
|
|
10650
10684
|
"target": "_blank",
|
|
10651
10685
|
"rel": "noreferrer noopener"
|
|
10652
10686
|
},
|
|
10653
10687
|
on: {
|
|
10654
10688
|
"click": function click($event) {
|
|
10655
|
-
return _vm.
|
|
10689
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
10656
10690
|
}
|
|
10657
10691
|
}
|
|
10658
10692
|
}, [_c('fa-icon', {
|
|
10659
10693
|
attrs: {
|
|
10660
|
-
"icon": _vm.
|
|
10694
|
+
"icon": _vm.icon
|
|
10661
10695
|
}
|
|
10662
10696
|
})], 1), _vm._v(" "), _c('a', {
|
|
10663
10697
|
key: "ra-download-icon",
|
|
10664
10698
|
attrs: {
|
|
10665
|
-
"href": _vm.
|
|
10666
|
-
"download": "" + _vm.
|
|
10699
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
10700
|
+
"download": "" + _vm.filename,
|
|
10667
10701
|
"target": "_blank",
|
|
10668
10702
|
"rel": "noreferrer noopener",
|
|
10669
|
-
"title": "Download " + _vm.
|
|
10703
|
+
"title": "Download " + _vm.filename
|
|
10670
10704
|
}
|
|
10671
10705
|
}, [_c('fa-icon', {
|
|
10672
10706
|
attrs: {
|
|
@@ -10680,8 +10714,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
10680
10714
|
|
|
10681
10715
|
var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
10682
10716
|
if (!inject) return;
|
|
10683
|
-
inject("data-v-
|
|
10684
|
-
source: ".fade-enter-active[data-v-
|
|
10717
|
+
inject("data-v-0408a7b0_0", {
|
|
10718
|
+
source: ".fade-enter-active[data-v-0408a7b0],.fade-leave-active[data-v-0408a7b0]{transition:opacity .5s}.fade-enter[data-v-0408a7b0],.fade-leave-to[data-v-0408a7b0]{opacity:0}",
|
|
10685
10719
|
map: undefined,
|
|
10686
10720
|
media: undefined
|
|
10687
10721
|
});
|
|
@@ -10689,10 +10723,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
10689
10723
|
/* scoped */
|
|
10690
10724
|
|
|
10691
10725
|
|
|
10692
|
-
var __vue_scope_id__$8 = "data-v-
|
|
10726
|
+
var __vue_scope_id__$8 = "data-v-0408a7b0";
|
|
10693
10727
|
/* module identifier */
|
|
10694
10728
|
|
|
10695
|
-
var __vue_module_identifier__$8 = "data-v-
|
|
10729
|
+
var __vue_module_identifier__$8 = "data-v-0408a7b0";
|
|
10696
10730
|
/* functional template */
|
|
10697
10731
|
|
|
10698
10732
|
var __vue_is_functional_template__$8 = false;
|
|
@@ -10888,6 +10922,7 @@ var __vue_component__$a = /*#__PURE__*/normalizeComponent({
|
|
|
10888
10922
|
|
|
10889
10923
|
var __vue_component__$b = __vue_component__$a;//
|
|
10890
10924
|
var script$6 = {
|
|
10925
|
+
mixins: [fileHandler],
|
|
10891
10926
|
components: {
|
|
10892
10927
|
Loader: Loader
|
|
10893
10928
|
},
|
|
@@ -10911,61 +10946,22 @@ var script$6 = {
|
|
|
10911
10946
|
},
|
|
10912
10947
|
data: function data() {
|
|
10913
10948
|
return {
|
|
10914
|
-
carregando: true,
|
|
10915
|
-
isAnexo: false,
|
|
10916
|
-
imgAnexo: "",
|
|
10917
|
-
tipoDoc: "",
|
|
10918
|
-
docAnexo: "",
|
|
10919
|
-
nomeArquivo: "",
|
|
10920
|
-
audio: false,
|
|
10921
|
-
video: false,
|
|
10922
|
-
icone: [],
|
|
10923
10949
|
imgErro: false,
|
|
10924
10950
|
imgMsgErro: ''
|
|
10925
10951
|
};
|
|
10926
10952
|
},
|
|
10927
10953
|
mounted: function mounted() {
|
|
10928
10954
|
if (this.validarAnexo()) {
|
|
10929
|
-
this.
|
|
10955
|
+
this.setFileVars(this.anexo, {
|
|
10956
|
+
dominio: this.dominio
|
|
10957
|
+
});
|
|
10930
10958
|
}
|
|
10931
10959
|
},
|
|
10932
10960
|
methods: {
|
|
10933
|
-
abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
|
|
10934
|
-
this.$emit("abrir-imagem", imagem);
|
|
10935
|
-
},
|
|
10936
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10937
|
-
try {
|
|
10938
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10939
|
-
dominio: this.dominio
|
|
10940
|
-
}),
|
|
10941
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10942
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10943
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10944
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10945
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10946
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10947
|
-
video = _gerarVariaveisAnexo.video;
|
|
10948
|
-
|
|
10949
|
-
this.isAnexo = anexo;
|
|
10950
|
-
this.imgAnexo = imgAnexo;
|
|
10951
|
-
this.tipoDoc = tipoDoc;
|
|
10952
|
-
this.docAnexo = docAnexo;
|
|
10953
|
-
this.nomeArquivo = nomeArquivo;
|
|
10954
|
-
this.audio = audio;
|
|
10955
|
-
this.video = video;
|
|
10956
|
-
this.gerarIcone();
|
|
10957
|
-
this.carregando = false;
|
|
10958
|
-
} catch (e) {
|
|
10959
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10960
|
-
console.error(e);
|
|
10961
|
-
}
|
|
10962
|
-
},
|
|
10963
10961
|
validarAnexo: function validarAnexo() {
|
|
10964
10962
|
var status = true; //caso for audio ou documento ignorar
|
|
10965
10963
|
|
|
10966
|
-
if (this.anexo.
|
|
10967
|
-
return true;
|
|
10968
|
-
}
|
|
10964
|
+
if (this.anexo.docURL || this.anexo.audio) return true;
|
|
10969
10965
|
|
|
10970
10966
|
if (!this.anexo.name) {
|
|
10971
10967
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -10975,11 +10971,7 @@ var script$6 = {
|
|
|
10975
10971
|
if (!this.anexo.nomeGravacao) {
|
|
10976
10972
|
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
10977
10973
|
status = false;
|
|
10978
|
-
}
|
|
10979
|
-
// this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
10980
|
-
// status = false;
|
|
10981
|
-
// }
|
|
10982
|
-
|
|
10974
|
+
}
|
|
10983
10975
|
|
|
10984
10976
|
if (!this.anexo.type) {
|
|
10985
10977
|
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
@@ -10988,13 +10980,10 @@ var script$6 = {
|
|
|
10988
10980
|
|
|
10989
10981
|
if (status == false) {
|
|
10990
10982
|
this.imgErro = true;
|
|
10991
|
-
this.
|
|
10983
|
+
this.isLoading = false;
|
|
10992
10984
|
}
|
|
10993
10985
|
|
|
10994
10986
|
return status;
|
|
10995
|
-
},
|
|
10996
|
-
gerarIcone: function gerarIcone() {
|
|
10997
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10998
10987
|
}
|
|
10999
10988
|
}
|
|
11000
10989
|
};/* script */
|
|
@@ -11034,7 +11023,7 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11034
11023
|
attrs: {
|
|
11035
11024
|
"icon": ['fas', 'file-image']
|
|
11036
11025
|
}
|
|
11037
|
-
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.
|
|
11026
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
|
|
11038
11027
|
key: "anexo-loader",
|
|
11039
11028
|
attrs: {
|
|
11040
11029
|
"small": true,
|
|
@@ -11043,17 +11032,17 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11043
11032
|
}) : _c('div', {
|
|
11044
11033
|
key: "anexo-mensagem",
|
|
11045
11034
|
staticClass: "anexo-mensagem"
|
|
11046
|
-
}, [_vm.
|
|
11035
|
+
}, [_vm.imageURL ? _c('img', {
|
|
11047
11036
|
attrs: {
|
|
11048
|
-
"src": _vm.
|
|
11037
|
+
"src": _vm.imageURL,
|
|
11049
11038
|
"alt": _vm.dictionary.alt_msg_img
|
|
11050
11039
|
},
|
|
11051
11040
|
on: {
|
|
11052
11041
|
"click": function click($event) {
|
|
11053
|
-
return _vm.
|
|
11042
|
+
return _vm.showImage(_vm.imageURL);
|
|
11054
11043
|
}
|
|
11055
11044
|
}
|
|
11056
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
11045
|
+
}) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
|
|
11057
11046
|
staticClass: "anexos-links-container"
|
|
11058
11047
|
}, [_c('a', {
|
|
11059
11048
|
attrs: {
|
|
@@ -11061,7 +11050,8 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11061
11050
|
},
|
|
11062
11051
|
on: {
|
|
11063
11052
|
"click": function click($event) {
|
|
11064
|
-
|
|
11053
|
+
$event.preventDefault();
|
|
11054
|
+
return _vm.showImage(_vm.imageURL);
|
|
11065
11055
|
}
|
|
11066
11056
|
}
|
|
11067
11057
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
|
|
@@ -11070,63 +11060,64 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11070
11060
|
},
|
|
11071
11061
|
on: {
|
|
11072
11062
|
"click": function click($event) {
|
|
11073
|
-
return _vm.
|
|
11063
|
+
return _vm.showImage(_vm.imageURL);
|
|
11074
11064
|
}
|
|
11075
11065
|
}
|
|
11076
|
-
})], 1) : _vm.
|
|
11066
|
+
})], 1) : _vm.docURL ? _c('div', {
|
|
11077
11067
|
staticClass: "anexo-container"
|
|
11078
11068
|
}, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
|
|
11079
11069
|
attrs: {
|
|
11080
|
-
"src": _vm.
|
|
11070
|
+
"src": _vm.docURL,
|
|
11081
11071
|
"controls": "",
|
|
11082
|
-
"title": _vm.
|
|
11072
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11083
11073
|
}
|
|
11084
11074
|
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
|
|
11085
11075
|
attrs: {
|
|
11086
|
-
"href": _vm.
|
|
11076
|
+
"href": _vm.docURL,
|
|
11087
11077
|
"target": "_blank",
|
|
11088
11078
|
"rel": "noreferrer noopener"
|
|
11089
11079
|
}
|
|
11090
11080
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
|
|
11091
11081
|
attrs: {
|
|
11092
|
-
"src": _vm.
|
|
11082
|
+
"src": _vm.docURL,
|
|
11093
11083
|
"controls": "",
|
|
11094
|
-
"title": _vm.
|
|
11084
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11095
11085
|
}
|
|
11096
|
-
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.
|
|
11086
|
+
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
|
|
11097
11087
|
attrs: {
|
|
11098
|
-
"href": _vm.
|
|
11088
|
+
"href": _vm.docURL,
|
|
11099
11089
|
"target": "_blank",
|
|
11100
11090
|
"rel": "noreferrer noopener"
|
|
11101
11091
|
}
|
|
11102
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.
|
|
11092
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
|
|
11103
11093
|
attrs: {
|
|
11104
|
-
"href": _vm.
|
|
11094
|
+
"href": _vm.docURL,
|
|
11105
11095
|
"target": "_blank",
|
|
11106
11096
|
"rel": "noreferrer noopener",
|
|
11107
|
-
"title": _vm.
|
|
11097
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11108
11098
|
}
|
|
11109
11099
|
}, [_c('fa-icon', {
|
|
11100
|
+
class: [_vm.iconClass],
|
|
11110
11101
|
attrs: {
|
|
11111
|
-
"icon":
|
|
11102
|
+
"icon": _vm.icon
|
|
11112
11103
|
}
|
|
11113
11104
|
}), _vm._v(" "), _c('p', {
|
|
11114
11105
|
domProps: {
|
|
11115
|
-
"textContent": _vm._s(_vm.
|
|
11106
|
+
"textContent": _vm._s(_vm.filename)
|
|
11116
11107
|
}
|
|
11117
11108
|
})], 1) : _c('p', {
|
|
11118
11109
|
staticClass: "arquivo-erro",
|
|
11119
11110
|
attrs: {
|
|
11120
|
-
"title": _vm.
|
|
11111
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11121
11112
|
}
|
|
11122
11113
|
}, [_c('fa-icon', {
|
|
11123
11114
|
attrs: {
|
|
11124
11115
|
"icon": ['fas', 'file-alt']
|
|
11125
11116
|
}
|
|
11126
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
11117
|
+
}), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
|
|
11127
11118
|
attrs: {
|
|
11128
|
-
"href": _vm.
|
|
11129
|
-
"download": "" + _vm.
|
|
11119
|
+
"href": _vm.imageURL,
|
|
11120
|
+
"download": "" + _vm.filename,
|
|
11130
11121
|
"target": "_blank",
|
|
11131
11122
|
"rel": "noreferrer noopener"
|
|
11132
11123
|
}
|
|
@@ -11134,10 +11125,10 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11134
11125
|
attrs: {
|
|
11135
11126
|
"icon": ['fas', 'download']
|
|
11136
11127
|
}
|
|
11137
|
-
})], 1) : _vm._e(), _vm._v(" "), _vm.
|
|
11128
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
|
|
11138
11129
|
attrs: {
|
|
11139
|
-
"href": _vm.
|
|
11140
|
-
"download": "" + _vm.
|
|
11130
|
+
"href": _vm.docURL,
|
|
11131
|
+
"download": "" + _vm.filename,
|
|
11141
11132
|
"target": "_blank",
|
|
11142
11133
|
"rel": "noreferrer noopener"
|
|
11143
11134
|
}
|
|
@@ -11153,8 +11144,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11153
11144
|
|
|
11154
11145
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11155
11146
|
if (!inject) return;
|
|
11156
|
-
inject("data-v-
|
|
11157
|
-
source: ".fade-enter-active[data-v-
|
|
11147
|
+
inject("data-v-1a4340aa_0", {
|
|
11148
|
+
source: ".fade-enter-active[data-v-1a4340aa],.fade-leave-active[data-v-1a4340aa]{transition:opacity .5s}.fade-enter[data-v-1a4340aa],.fade-leave-to[data-v-1a4340aa]{opacity:0}.mensagem-div-anexo[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-1a4340aa]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container a[data-v-1a4340aa]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container p[data-v-1a4340aa]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-1a4340aa]{font-size:2rem}.anexo-container audio[data-v-1a4340aa]{outline:0;width:100%}.anexo-container video[data-v-1a4340aa]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-1a4340aa]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-1a4340aa]{cursor:pointer}.mensagem-div-anexo img[data-v-1a4340aa]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-1a4340aa]{width:100%;height:100%}.anexo-mensagem[data-v-1a4340aa]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-1a4340aa]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-1a4340aa]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-1a4340aa]{font-size:1.025em;margin-right:2px}.pdf[data-v-1a4340aa]{color:#e74c3c}.doc[data-v-1a4340aa]{color:#006bc9}",
|
|
11158
11149
|
map: undefined,
|
|
11159
11150
|
media: undefined
|
|
11160
11151
|
});
|
|
@@ -11162,10 +11153,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11162
11153
|
/* scoped */
|
|
11163
11154
|
|
|
11164
11155
|
|
|
11165
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11156
|
+
var __vue_scope_id__$6 = "data-v-1a4340aa";
|
|
11166
11157
|
/* module identifier */
|
|
11167
11158
|
|
|
11168
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11159
|
+
var __vue_module_identifier__$6 = "data-v-1a4340aa";
|
|
11169
11160
|
/* functional template */
|
|
11170
11161
|
|
|
11171
11162
|
var __vue_is_functional_template__$6 = false;
|