vue-intergrall-plugins 0.0.207 → 0.0.210
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 +318 -323
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +325 -332
- package/package.json +1 -1
- package/src/lib-components/Cards/CardFile.vue +11 -67
- package/src/lib-components/Chat/BtnFiles.vue +47 -22
- package/src/lib-components/Chat/MultipleFilePreview.vue +20 -7
- 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 +5 -3
- package/src/lib-components/Messages/AnexoMensagem.vue +36 -76
- package/src/lib-components/Messages/CardAttachment.vue +12 -68
- package/src/lib-components/Messages/ChatMessages.vue +1 -0
- package/src/lib-components/Messages/InteratividadeFormulario.vue +21 -22
- 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,7 +3404,10 @@ 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
|
+
attrs: {
|
|
3409
|
+
"title": singleFile.name
|
|
3410
|
+
}
|
|
3405
3411
|
}, [_c('fa-icon', {
|
|
3406
3412
|
attrs: {
|
|
3407
3413
|
"icon": _vm.icon(singleFile.imgOrDoc)
|
|
@@ -3429,9 +3435,24 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3429
3435
|
attrs: {
|
|
3430
3436
|
"icon": ['fas', 'file-pdf']
|
|
3431
3437
|
}
|
|
3432
|
-
})], 1) :
|
|
3438
|
+
})], 1) : _c('span', {
|
|
3439
|
+
staticClass: "doc"
|
|
3440
|
+
}, [_c('fa-icon', {
|
|
3441
|
+
attrs: {
|
|
3442
|
+
"icon": ['fas', 'file-alt']
|
|
3443
|
+
}
|
|
3444
|
+
})], 1)]), _vm._v(" "), _c('span', {
|
|
3445
|
+
directives: [{
|
|
3446
|
+
name: "tippy",
|
|
3447
|
+
rawName: "v-tippy",
|
|
3448
|
+
value: {
|
|
3449
|
+
placement: 'left'
|
|
3450
|
+
},
|
|
3451
|
+
expression: "{placement: 'left'}"
|
|
3452
|
+
}],
|
|
3433
3453
|
staticClass: "delete-file",
|
|
3434
3454
|
attrs: {
|
|
3455
|
+
"content": _vm.dictionary.msg_excluir_anexo,
|
|
3435
3456
|
"title": _vm.dictionary.msg_excluir_anexo
|
|
3436
3457
|
},
|
|
3437
3458
|
on: {
|
|
@@ -3452,8 +3473,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3452
3473
|
|
|
3453
3474
|
var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
3454
3475
|
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-left:5px}.file-title>svg{margin-right:5px}.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 .pdf{display:flex;justify-content:center;align-items:center;font-size:30px
|
|
3476
|
+
inject("data-v-f3de3970_0", {
|
|
3477
|
+
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-left: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
3478
|
map: undefined,
|
|
3458
3479
|
media: undefined
|
|
3459
3480
|
});
|
|
@@ -3464,7 +3485,7 @@ var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
|
3464
3485
|
var __vue_scope_id__$m = undefined;
|
|
3465
3486
|
/* module identifier */
|
|
3466
3487
|
|
|
3467
|
-
var __vue_module_identifier__$m = "data-v-
|
|
3488
|
+
var __vue_module_identifier__$m = "data-v-f3de3970";
|
|
3468
3489
|
/* functional template */
|
|
3469
3490
|
|
|
3470
3491
|
var __vue_is_functional_template__$m = false;
|
|
@@ -3562,6 +3583,14 @@ var script$l = {
|
|
|
3562
3583
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
3563
3584
|
},
|
|
3564
3585
|
isFileValid: function isFileValid(type, fileName) {
|
|
3586
|
+
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
3587
|
+
this.$toasted.global.defaultInfo({
|
|
3588
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3589
|
+
});
|
|
3590
|
+
this.hasAnyFile = false;
|
|
3591
|
+
return false;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3565
3594
|
var extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
3566
3595
|
var regex = new RegExp("(" + extensions + ")", "i");
|
|
3567
3596
|
if (regex.test(fileName)) return true;
|
|
@@ -3589,6 +3618,14 @@ var script$l = {
|
|
|
3589
3618
|
var filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
|
|
3590
3619
|
this.file = filesAux.length ? filesAux : this.file;
|
|
3591
3620
|
if (!this.file.length) return;
|
|
3621
|
+
|
|
3622
|
+
if (this.file.length > this.fileSettings.max) {
|
|
3623
|
+
this.file = [];
|
|
3624
|
+
return this.$toasted.global.defaultInfo({
|
|
3625
|
+
msg: "Limite de ".concat(this.fileSettings.max, " arquivos")
|
|
3626
|
+
});
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3592
3629
|
this.hasAnyFile = true;
|
|
3593
3630
|
this.fileSize = this.file.length;
|
|
3594
3631
|
|
|
@@ -3604,6 +3641,7 @@ var script$l = {
|
|
|
3604
3641
|
}
|
|
3605
3642
|
},
|
|
3606
3643
|
returnFileType: function returnFileType(file) {
|
|
3644
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return "";
|
|
3607
3645
|
var imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
3608
3646
|
if (imgRegex.test(file.name)) return "img";
|
|
3609
3647
|
var docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
@@ -3613,63 +3651,87 @@ var script$l = {
|
|
|
3613
3651
|
multipleFileUpload: function multipleFileUpload() {
|
|
3614
3652
|
var _this = this;
|
|
3615
3653
|
|
|
3654
|
+
var hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
3655
|
+
var hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
3656
|
+
|
|
3657
|
+
if (!hasImgExt && !hasDocExt) {
|
|
3658
|
+
this.file = [];
|
|
3659
|
+
this.fileSize = 0;
|
|
3660
|
+
return this.$toasted.global.defaultInfo({
|
|
3661
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3662
|
+
});
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3616
3665
|
var waitForImageLoad = false;
|
|
3617
3666
|
this.file = Array.from(this.file);
|
|
3618
3667
|
this.file.forEach(function (file) {
|
|
3619
|
-
var fileReader = new FileReader();
|
|
3620
|
-
|
|
3621
3668
|
var singleFileType = _this.returnFileType(file);
|
|
3622
3669
|
|
|
3623
3670
|
if (!singleFileType) file.invalid = true;
|
|
3624
3671
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
3625
|
-
if (file.imgOrDoc === "doc") _this.isDoc = true;
|
|
3626
3672
|
|
|
3627
|
-
if (file.imgOrDoc
|
|
3628
|
-
|
|
3673
|
+
if (_this.isFileValid(file.imgOrDoc, file.name)) {
|
|
3674
|
+
if (file.imgOrDoc == "img") {
|
|
3675
|
+
var fileReader = new FileReader();
|
|
3676
|
+
waitForImageLoad = true;
|
|
3629
3677
|
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3678
|
+
fileReader.onload = function () {
|
|
3679
|
+
return file.src = fileReader.result;
|
|
3680
|
+
};
|
|
3633
3681
|
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
}
|
|
3682
|
+
fileReader.onloadend = function () {
|
|
3683
|
+
return _this.emitFileVars(true);
|
|
3684
|
+
};
|
|
3638
3685
|
|
|
3639
|
-
|
|
3640
|
-
|
|
3686
|
+
fileReader.readAsDataURL(file);
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
if (file.imgOrDoc === "doc") _this.isDoc = true;
|
|
3641
3690
|
file.invalid = false;
|
|
3642
3691
|
_this.fileFormatError = false;
|
|
3643
3692
|
} else {
|
|
3644
3693
|
file.invalid = true;
|
|
3645
3694
|
_this.fileFormatError = true;
|
|
3646
|
-
_this.validFileFormats = "
|
|
3695
|
+
if (hasImgExt && !hasDocExt) _this.validFileFormats = "Imagens: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "));
|
|
3696
|
+
if (hasDocExt && hasImgExt) _this.validFileFormats = "Documentos: ".concat(_this.fileSettings.docsExtensions.split("|").join(", "));
|
|
3697
|
+
if (hasImgExt && hasDocExt) _this.validFileFormats = "Imagens: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "), " - Documentos: ").concat(_this.fileSettings.docsExtensions.split("|").join(", "));
|
|
3647
3698
|
}
|
|
3648
3699
|
});
|
|
3700
|
+
|
|
3701
|
+
if (this.fileFormatError) {
|
|
3702
|
+
this.file = [];
|
|
3703
|
+
this.fileSize = 0;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3649
3706
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
3650
3707
|
},
|
|
3651
3708
|
singleFileUpload: function singleFileUpload(type, fileName) {
|
|
3652
3709
|
var _this2 = this;
|
|
3653
3710
|
|
|
3654
|
-
|
|
3711
|
+
if (this.isFileValid(type, fileName)) {
|
|
3712
|
+
var fileReader = new FileReader();
|
|
3713
|
+
|
|
3714
|
+
if (type === "img") {
|
|
3715
|
+
fileReader.onload = function () {
|
|
3716
|
+
return _this2.imagePreview = fileReader.result;
|
|
3717
|
+
};
|
|
3655
3718
|
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
};
|
|
3719
|
+
fileReader.onloadend = function () {
|
|
3720
|
+
return _this2.emitFileVars();
|
|
3721
|
+
};
|
|
3660
3722
|
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
};
|
|
3664
|
-
}
|
|
3723
|
+
fileReader.readAsDataURL(this.file);
|
|
3724
|
+
}
|
|
3665
3725
|
|
|
3666
|
-
if (this.isFileValid(type, fileName)) {
|
|
3667
|
-
if (type === "img") fileReader.readAsDataURL(this.file);
|
|
3668
3726
|
if (type === "doc") this.isDoc = true;
|
|
3669
3727
|
this.fileFormatError = false;
|
|
3670
3728
|
} else {
|
|
3671
3729
|
this.fileFormatError = true;
|
|
3672
|
-
|
|
3730
|
+
var hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
3731
|
+
var hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
3732
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = "Imagens: ".concat(this.fileSettings.imagesExtensions);
|
|
3733
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = "Documentos: ".concat(this.fileSettings.docsExtensions);
|
|
3734
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = "Imagens: ".concat(this.fileSettings.imagesExtensions, " - Documentos: ").concat(this.fileSettings.docsExtensions);
|
|
3673
3735
|
}
|
|
3674
3736
|
|
|
3675
3737
|
if (this.isDoc) this.emitFileVars();
|
|
@@ -3893,7 +3955,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
3893
3955
|
|
|
3894
3956
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
3895
3957
|
if (!inject) return;
|
|
3896
|
-
inject("data-v-
|
|
3958
|
+
inject("data-v-451fb0c4_0", {
|
|
3897
3959
|
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
3960
|
map: undefined,
|
|
3899
3961
|
media: undefined
|
|
@@ -3905,7 +3967,7 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
3905
3967
|
var __vue_scope_id__$l = undefined;
|
|
3906
3968
|
/* module identifier */
|
|
3907
3969
|
|
|
3908
|
-
var __vue_module_identifier__$l = "data-v-
|
|
3970
|
+
var __vue_module_identifier__$l = "data-v-451fb0c4";
|
|
3909
3971
|
/* functional template */
|
|
3910
3972
|
|
|
3911
3973
|
var __vue_is_functional_template__$l = false;
|
|
@@ -7974,7 +8036,7 @@ var script$i = {
|
|
|
7974
8036
|
this.loadingReq = true;
|
|
7975
8037
|
this.getStandardMessages(cod, this.token_cliente).then(function (data) {
|
|
7976
8038
|
_this.loadingReq = false;
|
|
7977
|
-
if (data.msg_ret) return _this.$toasted.global.
|
|
8039
|
+
if (data.msg_ret) return _this.$toasted.global.defaultInfo({
|
|
7978
8040
|
msg: data.msg_ret
|
|
7979
8041
|
});
|
|
7980
8042
|
if (data) return _this.showFormattedMessage(data, selectionIndex);
|
|
@@ -7998,7 +8060,7 @@ var script$i = {
|
|
|
7998
8060
|
try {
|
|
7999
8061
|
var success = false;
|
|
8000
8062
|
if (Array.isArray(messageData)) success = true;
|
|
8001
|
-
if (!success && selectionIndex != 4) this.$toasted.global.
|
|
8063
|
+
if (!success && selectionIndex != 4) this.$toasted.global.defaultInfo({
|
|
8002
8064
|
msg: messageData ? messageData.msg : "Nao foi possível obter mensagens"
|
|
8003
8065
|
});
|
|
8004
8066
|
|
|
@@ -8023,7 +8085,7 @@ var script$i = {
|
|
|
8023
8085
|
case 3:
|
|
8024
8086
|
if (!success) {
|
|
8025
8087
|
this.formatted_messages_3.push(messageData);
|
|
8026
|
-
this.$toasted.global.
|
|
8088
|
+
this.$toasted.global.defaultInfo({
|
|
8027
8089
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8028
8090
|
});
|
|
8029
8091
|
this.$emit("close-blocker-standard-message");
|
|
@@ -8183,7 +8245,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8183
8245
|
|
|
8184
8246
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
8185
8247
|
if (!inject) return;
|
|
8186
|
-
inject("data-v-
|
|
8248
|
+
inject("data-v-324084df_0", {
|
|
8187
8249
|
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
8250
|
map: undefined,
|
|
8189
8251
|
media: undefined
|
|
@@ -8195,7 +8257,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
8195
8257
|
var __vue_scope_id__$i = undefined;
|
|
8196
8258
|
/* module identifier */
|
|
8197
8259
|
|
|
8198
|
-
var __vue_module_identifier__$i = "data-v-
|
|
8260
|
+
var __vue_module_identifier__$i = "data-v-324084df";
|
|
8199
8261
|
/* functional template */
|
|
8200
8262
|
|
|
8201
8263
|
var __vue_is_functional_template__$i = false;
|
|
@@ -8285,7 +8347,8 @@ var script$h = {
|
|
|
8285
8347
|
docsExtensions: "",
|
|
8286
8348
|
imagesExtensions: "",
|
|
8287
8349
|
multiple: false,
|
|
8288
|
-
systemButton: false
|
|
8350
|
+
systemButton: false,
|
|
8351
|
+
max: 3
|
|
8289
8352
|
};
|
|
8290
8353
|
},
|
|
8291
8354
|
required: false
|
|
@@ -8354,7 +8417,7 @@ var script$h = {
|
|
|
8354
8417
|
if (event.data == '' && this.showStandardMessages) {
|
|
8355
8418
|
this.closeBlockerStandardMessage();
|
|
8356
8419
|
this.toggleStandardMessages();
|
|
8357
|
-
this.$toasted.global.
|
|
8420
|
+
this.$toasted.global.defaultInfo({
|
|
8358
8421
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8359
8422
|
});
|
|
8360
8423
|
} else if (typeof event.data === "string" && this.showStandardMessages) {
|
|
@@ -8535,11 +8598,12 @@ var script$h = {
|
|
|
8535
8598
|
this.audioSource = "";
|
|
8536
8599
|
},
|
|
8537
8600
|
returnFileType: function returnFileType(file, stopAlert) {
|
|
8601
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return false;
|
|
8538
8602
|
var imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
8539
8603
|
if (imgRegex.test(file.name)) return "img";
|
|
8540
8604
|
var docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
8541
8605
|
if (docRegex.test(file.name)) return "doc";
|
|
8542
|
-
if (!stopAlert) return;
|
|
8606
|
+
if (!stopAlert) return false;
|
|
8543
8607
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
8544
8608
|
msg: this.dictionary.msg_formato_invalido
|
|
8545
8609
|
});
|
|
@@ -8815,8 +8879,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
8815
8879
|
|
|
8816
8880
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
8817
8881
|
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}",
|
|
8882
|
+
inject("data-v-54b5cd94_0", {
|
|
8883
|
+
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
8884
|
map: undefined,
|
|
8821
8885
|
media: undefined
|
|
8822
8886
|
});
|
|
@@ -8827,7 +8891,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
8827
8891
|
var __vue_scope_id__$h = undefined;
|
|
8828
8892
|
/* module identifier */
|
|
8829
8893
|
|
|
8830
|
-
var __vue_module_identifier__$h = "data-v-
|
|
8894
|
+
var __vue_module_identifier__$h = "data-v-54b5cd94";
|
|
8831
8895
|
/* functional template */
|
|
8832
8896
|
|
|
8833
8897
|
var __vue_is_functional_template__$h = false;
|
|
@@ -9008,9 +9072,11 @@ var script$f = {
|
|
|
9008
9072
|
for (var key in template) {
|
|
9009
9073
|
if (key === "components" && Array.isArray(template[key])) {
|
|
9010
9074
|
template[key].map(function (component) {
|
|
9011
|
-
component.parameters.
|
|
9012
|
-
|
|
9013
|
-
|
|
9075
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9076
|
+
component.parameters.map(function (param) {
|
|
9077
|
+
fullText += param.text;
|
|
9078
|
+
});
|
|
9079
|
+
}
|
|
9014
9080
|
});
|
|
9015
9081
|
}
|
|
9016
9082
|
}
|
|
@@ -9088,41 +9154,44 @@ var script$f = {
|
|
|
9088
9154
|
for (var index in this.selectedTemplate) {
|
|
9089
9155
|
if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
|
|
9090
9156
|
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
9157
|
|
|
9097
|
-
|
|
9098
|
-
|
|
9158
|
+
if (arrComponents && arrComponents.length) {
|
|
9159
|
+
arrComponents.map(function (component) {
|
|
9160
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9161
|
+
component.parameters.map(function (message) {
|
|
9162
|
+
message.currentText = message.text;
|
|
9163
|
+
var keyIndex = 0;
|
|
9099
9164
|
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
if (component.type === "header") {
|
|
9103
|
-
_this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9165
|
+
while (keyIndex < keys.length) {
|
|
9166
|
+
var varName = "{{".concat(keys[keyIndex], "}}");
|
|
9104
9167
|
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
} else if (!_this.selectedTemplate['parameters'][component.type]) {
|
|
9110
|
-
_this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9111
|
-
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9168
|
+
if (message.text.indexOf(varName) != -1) {
|
|
9169
|
+
/**Gerando os obejetos de parametros da notificacao para o component */
|
|
9170
|
+
if (component.type === "header") {
|
|
9171
|
+
_this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9112
9172
|
|
|
9173
|
+
_this.selectedTemplate['parameters'][component.type] = {
|
|
9174
|
+
tipo: "text",
|
|
9175
|
+
text: values[keyIndex]
|
|
9176
|
+
};
|
|
9177
|
+
} else if (!_this.selectedTemplate['parameters'][component.type]) {
|
|
9178
|
+
_this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9179
|
+
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9113
9180
|
|
|
9114
|
-
|
|
9115
|
-
_this.selectedTemplate['parameters'][component.type].
|
|
9181
|
+
|
|
9182
|
+
if (_this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
|
|
9183
|
+
_this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
|
|
9184
|
+
}
|
|
9185
|
+
|
|
9186
|
+
message.currentText = message.currentText.replace(varName, values[keyIndex]);
|
|
9116
9187
|
}
|
|
9117
9188
|
|
|
9118
|
-
|
|
9189
|
+
keyIndex++;
|
|
9119
9190
|
}
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
}
|
|
9125
|
-
});
|
|
9191
|
+
});
|
|
9192
|
+
}
|
|
9193
|
+
});
|
|
9194
|
+
}
|
|
9126
9195
|
}
|
|
9127
9196
|
}
|
|
9128
9197
|
|
|
@@ -9208,7 +9277,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9208
9277
|
|
|
9209
9278
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
9210
9279
|
if (!inject) return;
|
|
9211
|
-
inject("data-v-
|
|
9280
|
+
inject("data-v-5a97ed34_0", {
|
|
9212
9281
|
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
9282
|
map: undefined,
|
|
9214
9283
|
media: undefined
|
|
@@ -9220,7 +9289,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
9220
9289
|
var __vue_scope_id__$f = undefined;
|
|
9221
9290
|
/* module identifier */
|
|
9222
9291
|
|
|
9223
|
-
var __vue_module_identifier__$f = "data-v-
|
|
9292
|
+
var __vue_module_identifier__$f = "data-v-5a97ed34";
|
|
9224
9293
|
/* functional template */
|
|
9225
9294
|
|
|
9226
9295
|
var __vue_is_functional_template__$f = false;
|
|
@@ -9694,49 +9763,56 @@ var __vue_component__$k = __vue_component__$j;var textoLongo = {
|
|
|
9694
9763
|
console.error("Ignorando anexo devido a erro");
|
|
9695
9764
|
console.error(e);
|
|
9696
9765
|
}
|
|
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
|
-
},
|
|
9766
|
+
}var fileHandler = {
|
|
9718
9767
|
data: function data() {
|
|
9719
9768
|
return {
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9769
|
+
isLoading: true,
|
|
9770
|
+
isFile: false,
|
|
9771
|
+
imageURL: "",
|
|
9772
|
+
fileType: "",
|
|
9773
|
+
docURL: "",
|
|
9774
|
+
filename: "",
|
|
9726
9775
|
audio: false,
|
|
9727
9776
|
video: false,
|
|
9728
9777
|
icon: []
|
|
9729
9778
|
};
|
|
9730
9779
|
},
|
|
9731
|
-
|
|
9732
|
-
|
|
9780
|
+
computed: {
|
|
9781
|
+
iconClass: function iconClass() {
|
|
9782
|
+
return this.fileType === "pdf" ? "pdf" : "doc";
|
|
9783
|
+
}
|
|
9733
9784
|
},
|
|
9734
9785
|
methods: {
|
|
9735
|
-
|
|
9786
|
+
openWindowFromURL: function openWindowFromURL(link, isImg) {
|
|
9787
|
+
var viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
|
|
9788
|
+
|
|
9789
|
+
if (!isImg && !viewableExtensions.includes(this.fileType)) {
|
|
9790
|
+
var a = document.createElement("a");
|
|
9791
|
+
a.setAttribute("href", link);
|
|
9792
|
+
a.setAttribute("download", this.filename);
|
|
9793
|
+
a.setAttribute("target", "_blank");
|
|
9794
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
9795
|
+
a.click();
|
|
9796
|
+
return;
|
|
9797
|
+
}
|
|
9798
|
+
|
|
9799
|
+
var width = window.innerWidth;
|
|
9800
|
+
var height = window.innerHeight;
|
|
9801
|
+
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
9802
|
+
window.open(link, "anexo-ra", options);
|
|
9803
|
+
},
|
|
9804
|
+
showImage: function showImage(image) {
|
|
9805
|
+
if (!image) return console.warn("Não foi possível abrir a imagem");
|
|
9806
|
+
this.$emit("abrir-imagem", image);
|
|
9807
|
+
},
|
|
9808
|
+
setFileVars: function setFileVars(rawFile, storeObj) {
|
|
9736
9809
|
try {
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9810
|
+
if (!rawFile) {
|
|
9811
|
+
this.isLoading = false;
|
|
9812
|
+
return console.warn("Anexo recebido invalido");
|
|
9813
|
+
}
|
|
9814
|
+
|
|
9815
|
+
var _gerarVariaveisAnexo = gerarVariaveisAnexo(rawFile, storeObj),
|
|
9740
9816
|
anexo = _gerarVariaveisAnexo.anexo,
|
|
9741
9817
|
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
9742
9818
|
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
@@ -9745,29 +9821,45 @@ var script$d = {
|
|
|
9745
9821
|
audio = _gerarVariaveisAnexo.audio,
|
|
9746
9822
|
video = _gerarVariaveisAnexo.video;
|
|
9747
9823
|
|
|
9748
|
-
this.
|
|
9749
|
-
this.
|
|
9750
|
-
this.
|
|
9751
|
-
this.
|
|
9752
|
-
this.
|
|
9824
|
+
this.isFile = anexo;
|
|
9825
|
+
this.imageURL = imgAnexo;
|
|
9826
|
+
this.fileType = tipoDoc;
|
|
9827
|
+
this.docURL = docAnexo;
|
|
9828
|
+
this.filename = nomeArquivo;
|
|
9753
9829
|
this.audio = audio;
|
|
9754
9830
|
this.video = video;
|
|
9755
|
-
this.
|
|
9756
|
-
this.
|
|
9831
|
+
this.setIcon();
|
|
9832
|
+
this.isLoading = false;
|
|
9757
9833
|
} catch (e) {
|
|
9758
9834
|
console.error("Erro ao gerar as variaveis dos anexos");
|
|
9759
9835
|
console.error(e);
|
|
9760
9836
|
}
|
|
9761
9837
|
},
|
|
9762
|
-
|
|
9763
|
-
this.icon = this.
|
|
9838
|
+
setIcon: function setIcon() {
|
|
9839
|
+
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
};//
|
|
9843
|
+
var script$d = {
|
|
9844
|
+
mixins: [fileHandler],
|
|
9845
|
+
props: {
|
|
9846
|
+
file: {
|
|
9847
|
+
type: Object,
|
|
9848
|
+
required: true
|
|
9764
9849
|
},
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9850
|
+
dictionary: {
|
|
9851
|
+
type: Object,
|
|
9852
|
+
required: true
|
|
9853
|
+
},
|
|
9854
|
+
domain: {
|
|
9855
|
+
type: String,
|
|
9856
|
+
required: true
|
|
9770
9857
|
}
|
|
9858
|
+
},
|
|
9859
|
+
mounted: function mounted() {
|
|
9860
|
+
this.setFileVars(this.file, {
|
|
9861
|
+
dominio: this.domain
|
|
9862
|
+
});
|
|
9771
9863
|
}
|
|
9772
9864
|
};/* script */
|
|
9773
9865
|
var __vue_script__$d = script$d;
|
|
@@ -9788,40 +9880,40 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9788
9880
|
"name": "fade",
|
|
9789
9881
|
"mode": "out-in"
|
|
9790
9882
|
}
|
|
9791
|
-
}, [_vm.
|
|
9883
|
+
}, [_vm.isLoading ? _c('div', {
|
|
9792
9884
|
key: "card-file-loader",
|
|
9793
9885
|
staticClass: "req-loader slow",
|
|
9794
9886
|
attrs: {
|
|
9795
9887
|
"small": true
|
|
9796
9888
|
}
|
|
9797
|
-
}) : [_vm.
|
|
9889
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
9798
9890
|
key: "card-file-img",
|
|
9799
9891
|
staticClass: "file-img box-shadow",
|
|
9800
9892
|
attrs: {
|
|
9801
|
-
"title": _vm.
|
|
9893
|
+
"title": _vm.filename
|
|
9802
9894
|
},
|
|
9803
9895
|
on: {
|
|
9804
9896
|
"click": function click($event) {
|
|
9805
|
-
return _vm.
|
|
9897
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
9806
9898
|
}
|
|
9807
9899
|
}
|
|
9808
9900
|
}, [_c('img', {
|
|
9809
9901
|
attrs: {
|
|
9810
|
-
"src": "" + _vm.
|
|
9811
|
-
"alt": _vm.
|
|
9902
|
+
"src": "" + _vm.imageURL,
|
|
9903
|
+
"alt": _vm.filename
|
|
9812
9904
|
}
|
|
9813
9905
|
})]) : _c('span', {
|
|
9814
9906
|
key: "card-file-doc",
|
|
9815
9907
|
staticClass: "file-icon",
|
|
9816
|
-
class: [_vm.
|
|
9908
|
+
class: [_vm.iconClass],
|
|
9817
9909
|
attrs: {
|
|
9818
|
-
"title": _vm.
|
|
9910
|
+
"title": _vm.filename,
|
|
9819
9911
|
"target": "_blank",
|
|
9820
9912
|
"rel": "noreferrer noopener"
|
|
9821
9913
|
},
|
|
9822
9914
|
on: {
|
|
9823
9915
|
"click": function click($event) {
|
|
9824
|
-
return _vm.
|
|
9916
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
9825
9917
|
}
|
|
9826
9918
|
}
|
|
9827
9919
|
}, [_c('fa-icon', {
|
|
@@ -9831,11 +9923,11 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9831
9923
|
})], 1), _vm._v(" "), _c('a', {
|
|
9832
9924
|
key: "card-file-download-icon",
|
|
9833
9925
|
attrs: {
|
|
9834
|
-
"href": _vm.
|
|
9835
|
-
"download": "" + _vm.
|
|
9926
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
9927
|
+
"download": "" + _vm.filename,
|
|
9836
9928
|
"target": "_blank",
|
|
9837
9929
|
"rel": "noreferrer noopener",
|
|
9838
|
-
"title": "Download " + _vm.
|
|
9930
|
+
"title": "Download " + _vm.filename
|
|
9839
9931
|
}
|
|
9840
9932
|
}, [_c('fa-icon', {
|
|
9841
9933
|
attrs: {
|
|
@@ -9849,11 +9941,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
9849
9941
|
|
|
9850
9942
|
var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
9851
9943
|
if (!inject) return;
|
|
9852
|
-
inject("data-v-
|
|
9853
|
-
source: ".fade-enter-active[data-v-
|
|
9944
|
+
inject("data-v-c0bc7096_0", {
|
|
9945
|
+
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
9946
|
map: undefined,
|
|
9855
9947
|
media: undefined
|
|
9856
|
-
}), inject("data-v-
|
|
9948
|
+
}), inject("data-v-c0bc7096_1", {
|
|
9857
9949
|
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
9950
|
map: undefined,
|
|
9859
9951
|
media: undefined
|
|
@@ -9862,10 +9954,10 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
|
9862
9954
|
/* scoped */
|
|
9863
9955
|
|
|
9864
9956
|
|
|
9865
|
-
var __vue_scope_id__$d = "data-v-
|
|
9957
|
+
var __vue_scope_id__$d = "data-v-c0bc7096";
|
|
9866
9958
|
/* module identifier */
|
|
9867
9959
|
|
|
9868
|
-
var __vue_module_identifier__$d = "data-v-
|
|
9960
|
+
var __vue_module_identifier__$d = "data-v-c0bc7096";
|
|
9869
9961
|
/* functional template */
|
|
9870
9962
|
|
|
9871
9963
|
var __vue_is_functional_template__$d = false;
|
|
@@ -10377,18 +10469,20 @@ var script$9 = {
|
|
|
10377
10469
|
type: Object,
|
|
10378
10470
|
required: true
|
|
10379
10471
|
},
|
|
10380
|
-
|
|
10381
|
-
type:
|
|
10382
|
-
required:
|
|
10472
|
+
dominio: {
|
|
10473
|
+
type: String,
|
|
10474
|
+
required: true
|
|
10383
10475
|
},
|
|
10384
10476
|
dictionary: {
|
|
10385
10477
|
type: Object,
|
|
10386
10478
|
required: true
|
|
10479
|
+
},
|
|
10480
|
+
anexos: {
|
|
10481
|
+
type: Array,
|
|
10482
|
+
required: false
|
|
10387
10483
|
}
|
|
10388
10484
|
},
|
|
10389
10485
|
mounted: function mounted() {
|
|
10390
|
-
console.log(this.anexos);
|
|
10391
|
-
|
|
10392
10486
|
if (this.validateInterativity()) {
|
|
10393
10487
|
this.verifyInfoAditional();
|
|
10394
10488
|
}
|
|
@@ -10404,7 +10498,7 @@ var script$9 = {
|
|
|
10404
10498
|
var width = window.innerWidth;
|
|
10405
10499
|
var height = window.innerHeight;
|
|
10406
10500
|
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10407
|
-
window.open(url, "card-file", options);
|
|
10501
|
+
window.open("".concat(this.dominio, "/callcenter/docs.php?mku=").concat(url), "card-file", options);
|
|
10408
10502
|
},
|
|
10409
10503
|
validateInterativity: function validateInterativity() {
|
|
10410
10504
|
try {
|
|
@@ -10421,11 +10515,7 @@ var script$9 = {
|
|
|
10421
10515
|
try {
|
|
10422
10516
|
var formulario = this.interatividade.formulario;
|
|
10423
10517
|
formulario = formulario ? formulario : [];
|
|
10424
|
-
|
|
10425
|
-
if (!formulario.length) {
|
|
10426
|
-
return;
|
|
10427
|
-
}
|
|
10428
|
-
|
|
10518
|
+
if (!formulario.length) return;
|
|
10429
10519
|
var foundInfosAdd = formulario.filter(function (f) {
|
|
10430
10520
|
return f.TIPO_TEXTO > 999;
|
|
10431
10521
|
});
|
|
@@ -10443,9 +10533,7 @@ var script$9 = {
|
|
|
10443
10533
|
});
|
|
10444
10534
|
}
|
|
10445
10535
|
|
|
10446
|
-
if (foundInfosAdd)
|
|
10447
|
-
this.informacaoAdicional = foundInfosAdd;
|
|
10448
|
-
}
|
|
10536
|
+
if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
|
|
10449
10537
|
} catch (e) {
|
|
10450
10538
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10451
10539
|
console.error(e);
|
|
@@ -10465,16 +10553,16 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10465
10553
|
|
|
10466
10554
|
return _c('div', {
|
|
10467
10555
|
staticClass: "interatividade"
|
|
10468
|
-
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-
|
|
10469
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
10470
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
10471
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
10472
|
-
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-
|
|
10556
|
+
}, [_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) {
|
|
10557
|
+
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>";
|
|
10558
|
+
}) + " " + (_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) {
|
|
10559
|
+
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>";
|
|
10560
|
+
}) + "</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) {
|
|
10473
10561
|
var name = ref.name;
|
|
10474
|
-
var url = ref.url;
|
|
10475
10562
|
var type = ref.type;
|
|
10476
10563
|
var mkuDownload = ref.mkuDownload;
|
|
10477
|
-
|
|
10564
|
+
var mku = ref.mku;
|
|
10565
|
+
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', {
|
|
10478
10566
|
class: _vm.returnCurrentClass(type),
|
|
10479
10567
|
attrs: {
|
|
10480
10568
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10482,15 +10570,15 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10482
10570
|
},
|
|
10483
10571
|
on: {
|
|
10484
10572
|
"click": function click($event) {
|
|
10485
|
-
return _vm.openFile(
|
|
10573
|
+
return _vm.openFile(mku, type);
|
|
10486
10574
|
}
|
|
10487
10575
|
}
|
|
10488
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", 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-
|
|
10576
|
+
}), _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', {
|
|
10489
10577
|
attrs: {
|
|
10490
10578
|
"icon": ['fas', 'download']
|
|
10491
10579
|
}
|
|
10492
10580
|
})], 1)], 2);
|
|
10493
|
-
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-
|
|
10581
|
+
}), 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);
|
|
10494
10582
|
};
|
|
10495
10583
|
|
|
10496
10584
|
var __vue_staticRenderFns__$9 = [];
|
|
@@ -10498,8 +10586,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
10498
10586
|
|
|
10499
10587
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
10500
10588
|
if (!inject) return;
|
|
10501
|
-
inject("data-v-
|
|
10502
|
-
source: ".show-x-enter-active[data-v-
|
|
10589
|
+
inject("data-v-7b989966_0", {
|
|
10590
|
+
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}",
|
|
10503
10591
|
map: undefined,
|
|
10504
10592
|
media: undefined
|
|
10505
10593
|
});
|
|
@@ -10507,10 +10595,10 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
10507
10595
|
/* scoped */
|
|
10508
10596
|
|
|
10509
10597
|
|
|
10510
|
-
var __vue_scope_id__$9 = "data-v-
|
|
10598
|
+
var __vue_scope_id__$9 = "data-v-7b989966";
|
|
10511
10599
|
/* module identifier */
|
|
10512
10600
|
|
|
10513
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
10601
|
+
var __vue_module_identifier__$9 = "data-v-7b989966";
|
|
10514
10602
|
/* functional template */
|
|
10515
10603
|
|
|
10516
10604
|
var __vue_is_functional_template__$9 = false;
|
|
@@ -10523,6 +10611,7 @@ var __vue_component__$d = /*#__PURE__*/normalizeComponent({
|
|
|
10523
10611
|
|
|
10524
10612
|
var InteratividadeFormulario = __vue_component__$d;//
|
|
10525
10613
|
var script$8 = {
|
|
10614
|
+
mixins: [fileHandler],
|
|
10526
10615
|
props: {
|
|
10527
10616
|
anexo: {
|
|
10528
10617
|
type: Object,
|
|
@@ -10537,64 +10626,10 @@ var script$8 = {
|
|
|
10537
10626
|
required: true
|
|
10538
10627
|
}
|
|
10539
10628
|
},
|
|
10540
|
-
computed: {
|
|
10541
|
-
iconeClass: function iconeClass() {
|
|
10542
|
-
return this.tipoDoc === "pdf" ? "pdf" : "doc";
|
|
10543
|
-
}
|
|
10544
|
-
},
|
|
10545
|
-
data: function data() {
|
|
10546
|
-
return {
|
|
10547
|
-
carregando: true,
|
|
10548
|
-
isAnexo: false,
|
|
10549
|
-
imgAnexo: "",
|
|
10550
|
-
tipoDoc: "",
|
|
10551
|
-
docAnexo: "",
|
|
10552
|
-
nomeArquivo: "",
|
|
10553
|
-
audio: false,
|
|
10554
|
-
video: false,
|
|
10555
|
-
icone: []
|
|
10556
|
-
};
|
|
10557
|
-
},
|
|
10558
10629
|
mounted: function mounted() {
|
|
10559
|
-
this.
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10563
|
-
try {
|
|
10564
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10565
|
-
dominio: this.dominio
|
|
10566
|
-
}),
|
|
10567
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10568
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10569
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10570
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10571
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10572
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10573
|
-
video = _gerarVariaveisAnexo.video;
|
|
10574
|
-
|
|
10575
|
-
this.isAnexo = anexo;
|
|
10576
|
-
this.imgAnexo = imgAnexo;
|
|
10577
|
-
this.tipoDoc = tipoDoc;
|
|
10578
|
-
this.docAnexo = docAnexo;
|
|
10579
|
-
this.nomeArquivo = nomeArquivo;
|
|
10580
|
-
this.audio = audio;
|
|
10581
|
-
this.video = video;
|
|
10582
|
-
this.gerarIcone();
|
|
10583
|
-
this.carregando = false;
|
|
10584
|
-
} catch (e) {
|
|
10585
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10586
|
-
console.error(e);
|
|
10587
|
-
}
|
|
10588
|
-
},
|
|
10589
|
-
gerarIcone: function gerarIcone() {
|
|
10590
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10591
|
-
},
|
|
10592
|
-
abrirAnexo: function abrirAnexo(link, isImg) {
|
|
10593
|
-
var width = window.innerWidth;
|
|
10594
|
-
var height = window.innerHeight;
|
|
10595
|
-
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10596
|
-
window.open(link, "anexo-ra", options);
|
|
10597
|
-
}
|
|
10630
|
+
this.setFileVars(this.anexo, {
|
|
10631
|
+
dominio: this.dominio
|
|
10632
|
+
});
|
|
10598
10633
|
}
|
|
10599
10634
|
};/* script */
|
|
10600
10635
|
var __vue_script__$8 = script$8;
|
|
@@ -10615,54 +10650,54 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
10615
10650
|
"name": "fade",
|
|
10616
10651
|
"mode": "out-in"
|
|
10617
10652
|
}
|
|
10618
|
-
}, [_vm.
|
|
10653
|
+
}, [_vm.isLoading ? _c('div', {
|
|
10619
10654
|
key: "ra-loader-anexo",
|
|
10620
10655
|
staticClass: "req-loader slow",
|
|
10621
10656
|
attrs: {
|
|
10622
10657
|
"small": true
|
|
10623
10658
|
}
|
|
10624
|
-
}) : [_vm.
|
|
10659
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
10625
10660
|
key: "ra-img-anexo",
|
|
10626
10661
|
staticClass: "anexo-img box-shadow",
|
|
10627
10662
|
attrs: {
|
|
10628
|
-
"title": _vm.
|
|
10663
|
+
"title": _vm.filename
|
|
10629
10664
|
},
|
|
10630
10665
|
on: {
|
|
10631
10666
|
"click": function click($event) {
|
|
10632
|
-
return _vm.
|
|
10667
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
10633
10668
|
}
|
|
10634
10669
|
}
|
|
10635
10670
|
}, [_c('img', {
|
|
10636
10671
|
attrs: {
|
|
10637
|
-
"src": "" + _vm.
|
|
10638
|
-
"alt": _vm.
|
|
10672
|
+
"src": "" + _vm.imageURL,
|
|
10673
|
+
"alt": _vm.filename
|
|
10639
10674
|
}
|
|
10640
10675
|
})]) : _c('span', {
|
|
10641
10676
|
key: "ra-doc-anexo",
|
|
10642
|
-
staticClass: "anexo-
|
|
10643
|
-
class: [_vm.
|
|
10677
|
+
staticClass: "anexo-icon",
|
|
10678
|
+
class: [_vm.iconClass],
|
|
10644
10679
|
attrs: {
|
|
10645
|
-
"title": _vm.
|
|
10680
|
+
"title": _vm.filename,
|
|
10646
10681
|
"target": "_blank",
|
|
10647
10682
|
"rel": "noreferrer noopener"
|
|
10648
10683
|
},
|
|
10649
10684
|
on: {
|
|
10650
10685
|
"click": function click($event) {
|
|
10651
|
-
return _vm.
|
|
10686
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
10652
10687
|
}
|
|
10653
10688
|
}
|
|
10654
10689
|
}, [_c('fa-icon', {
|
|
10655
10690
|
attrs: {
|
|
10656
|
-
"icon": _vm.
|
|
10691
|
+
"icon": _vm.icon
|
|
10657
10692
|
}
|
|
10658
10693
|
})], 1), _vm._v(" "), _c('a', {
|
|
10659
10694
|
key: "ra-download-icon",
|
|
10660
10695
|
attrs: {
|
|
10661
|
-
"href": _vm.
|
|
10662
|
-
"download": "" + _vm.
|
|
10696
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
10697
|
+
"download": "" + _vm.filename,
|
|
10663
10698
|
"target": "_blank",
|
|
10664
10699
|
"rel": "noreferrer noopener",
|
|
10665
|
-
"title": "Download " + _vm.
|
|
10700
|
+
"title": "Download " + _vm.filename
|
|
10666
10701
|
}
|
|
10667
10702
|
}, [_c('fa-icon', {
|
|
10668
10703
|
attrs: {
|
|
@@ -10676,8 +10711,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
10676
10711
|
|
|
10677
10712
|
var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
10678
10713
|
if (!inject) return;
|
|
10679
|
-
inject("data-v-
|
|
10680
|
-
source: ".fade-enter-active[data-v-
|
|
10714
|
+
inject("data-v-0408a7b0_0", {
|
|
10715
|
+
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}",
|
|
10681
10716
|
map: undefined,
|
|
10682
10717
|
media: undefined
|
|
10683
10718
|
});
|
|
@@ -10685,10 +10720,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
10685
10720
|
/* scoped */
|
|
10686
10721
|
|
|
10687
10722
|
|
|
10688
|
-
var __vue_scope_id__$8 = "data-v-
|
|
10723
|
+
var __vue_scope_id__$8 = "data-v-0408a7b0";
|
|
10689
10724
|
/* module identifier */
|
|
10690
10725
|
|
|
10691
|
-
var __vue_module_identifier__$8 = "data-v-
|
|
10726
|
+
var __vue_module_identifier__$8 = "data-v-0408a7b0";
|
|
10692
10727
|
/* functional template */
|
|
10693
10728
|
|
|
10694
10729
|
var __vue_is_functional_template__$8 = false;
|
|
@@ -10884,6 +10919,7 @@ var __vue_component__$a = /*#__PURE__*/normalizeComponent({
|
|
|
10884
10919
|
|
|
10885
10920
|
var __vue_component__$b = __vue_component__$a;//
|
|
10886
10921
|
var script$6 = {
|
|
10922
|
+
mixins: [fileHandler],
|
|
10887
10923
|
components: {
|
|
10888
10924
|
Loader: Loader
|
|
10889
10925
|
},
|
|
@@ -10907,61 +10943,22 @@ var script$6 = {
|
|
|
10907
10943
|
},
|
|
10908
10944
|
data: function data() {
|
|
10909
10945
|
return {
|
|
10910
|
-
carregando: true,
|
|
10911
|
-
isAnexo: false,
|
|
10912
|
-
imgAnexo: "",
|
|
10913
|
-
tipoDoc: "",
|
|
10914
|
-
docAnexo: "",
|
|
10915
|
-
nomeArquivo: "",
|
|
10916
|
-
audio: false,
|
|
10917
|
-
video: false,
|
|
10918
|
-
icone: [],
|
|
10919
10946
|
imgErro: false,
|
|
10920
10947
|
imgMsgErro: ''
|
|
10921
10948
|
};
|
|
10922
10949
|
},
|
|
10923
10950
|
mounted: function mounted() {
|
|
10924
10951
|
if (this.validarAnexo()) {
|
|
10925
|
-
this.
|
|
10952
|
+
this.setFileVars(this.anexo, {
|
|
10953
|
+
dominio: this.dominio
|
|
10954
|
+
});
|
|
10926
10955
|
}
|
|
10927
10956
|
},
|
|
10928
10957
|
methods: {
|
|
10929
|
-
abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
|
|
10930
|
-
this.$emit("abrir-imagem", imagem);
|
|
10931
|
-
},
|
|
10932
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10933
|
-
try {
|
|
10934
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10935
|
-
dominio: this.dominio
|
|
10936
|
-
}),
|
|
10937
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10938
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10939
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10940
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10941
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10942
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10943
|
-
video = _gerarVariaveisAnexo.video;
|
|
10944
|
-
|
|
10945
|
-
this.isAnexo = anexo;
|
|
10946
|
-
this.imgAnexo = imgAnexo;
|
|
10947
|
-
this.tipoDoc = tipoDoc;
|
|
10948
|
-
this.docAnexo = docAnexo;
|
|
10949
|
-
this.nomeArquivo = nomeArquivo;
|
|
10950
|
-
this.audio = audio;
|
|
10951
|
-
this.video = video;
|
|
10952
|
-
this.gerarIcone();
|
|
10953
|
-
this.carregando = false;
|
|
10954
|
-
} catch (e) {
|
|
10955
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10956
|
-
console.error(e);
|
|
10957
|
-
}
|
|
10958
|
-
},
|
|
10959
10958
|
validarAnexo: function validarAnexo() {
|
|
10960
10959
|
var status = true; //caso for audio ou documento ignorar
|
|
10961
10960
|
|
|
10962
|
-
if (this.anexo.
|
|
10963
|
-
return true;
|
|
10964
|
-
}
|
|
10961
|
+
if (this.anexo.docURL || this.anexo.audio) return true;
|
|
10965
10962
|
|
|
10966
10963
|
if (!this.anexo.name) {
|
|
10967
10964
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -10971,11 +10968,7 @@ var script$6 = {
|
|
|
10971
10968
|
if (!this.anexo.nomeGravacao) {
|
|
10972
10969
|
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
10973
10970
|
status = false;
|
|
10974
|
-
}
|
|
10975
|
-
// this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
10976
|
-
// status = false;
|
|
10977
|
-
// }
|
|
10978
|
-
|
|
10971
|
+
}
|
|
10979
10972
|
|
|
10980
10973
|
if (!this.anexo.type) {
|
|
10981
10974
|
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
@@ -10984,13 +10977,10 @@ var script$6 = {
|
|
|
10984
10977
|
|
|
10985
10978
|
if (status == false) {
|
|
10986
10979
|
this.imgErro = true;
|
|
10987
|
-
this.
|
|
10980
|
+
this.isLoading = false;
|
|
10988
10981
|
}
|
|
10989
10982
|
|
|
10990
10983
|
return status;
|
|
10991
|
-
},
|
|
10992
|
-
gerarIcone: function gerarIcone() {
|
|
10993
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10994
10984
|
}
|
|
10995
10985
|
}
|
|
10996
10986
|
};/* script */
|
|
@@ -11030,7 +11020,7 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11030
11020
|
attrs: {
|
|
11031
11021
|
"icon": ['fas', 'file-image']
|
|
11032
11022
|
}
|
|
11033
|
-
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.
|
|
11023
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
|
|
11034
11024
|
key: "anexo-loader",
|
|
11035
11025
|
attrs: {
|
|
11036
11026
|
"small": true,
|
|
@@ -11039,17 +11029,17 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11039
11029
|
}) : _c('div', {
|
|
11040
11030
|
key: "anexo-mensagem",
|
|
11041
11031
|
staticClass: "anexo-mensagem"
|
|
11042
|
-
}, [_vm.
|
|
11032
|
+
}, [_vm.imageURL ? _c('img', {
|
|
11043
11033
|
attrs: {
|
|
11044
|
-
"src": _vm.
|
|
11034
|
+
"src": _vm.imageURL,
|
|
11045
11035
|
"alt": _vm.dictionary.alt_msg_img
|
|
11046
11036
|
},
|
|
11047
11037
|
on: {
|
|
11048
11038
|
"click": function click($event) {
|
|
11049
|
-
return _vm.
|
|
11039
|
+
return _vm.showImage(_vm.imageURL);
|
|
11050
11040
|
}
|
|
11051
11041
|
}
|
|
11052
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
11042
|
+
}) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
|
|
11053
11043
|
staticClass: "anexos-links-container"
|
|
11054
11044
|
}, [_c('a', {
|
|
11055
11045
|
attrs: {
|
|
@@ -11057,7 +11047,8 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11057
11047
|
},
|
|
11058
11048
|
on: {
|
|
11059
11049
|
"click": function click($event) {
|
|
11060
|
-
|
|
11050
|
+
$event.preventDefault();
|
|
11051
|
+
return _vm.showImage(_vm.imageURL);
|
|
11061
11052
|
}
|
|
11062
11053
|
}
|
|
11063
11054
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
|
|
@@ -11066,63 +11057,64 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11066
11057
|
},
|
|
11067
11058
|
on: {
|
|
11068
11059
|
"click": function click($event) {
|
|
11069
|
-
return _vm.
|
|
11060
|
+
return _vm.showImage(_vm.imageURL);
|
|
11070
11061
|
}
|
|
11071
11062
|
}
|
|
11072
|
-
})], 1) : _vm.
|
|
11063
|
+
})], 1) : _vm.docURL ? _c('div', {
|
|
11073
11064
|
staticClass: "anexo-container"
|
|
11074
11065
|
}, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
|
|
11075
11066
|
attrs: {
|
|
11076
|
-
"src": _vm.
|
|
11067
|
+
"src": _vm.docURL,
|
|
11077
11068
|
"controls": "",
|
|
11078
|
-
"title": _vm.
|
|
11069
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11079
11070
|
}
|
|
11080
11071
|
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
|
|
11081
11072
|
attrs: {
|
|
11082
|
-
"href": _vm.
|
|
11073
|
+
"href": _vm.docURL,
|
|
11083
11074
|
"target": "_blank",
|
|
11084
11075
|
"rel": "noreferrer noopener"
|
|
11085
11076
|
}
|
|
11086
11077
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
|
|
11087
11078
|
attrs: {
|
|
11088
|
-
"src": _vm.
|
|
11079
|
+
"src": _vm.docURL,
|
|
11089
11080
|
"controls": "",
|
|
11090
|
-
"title": _vm.
|
|
11081
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11091
11082
|
}
|
|
11092
|
-
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.
|
|
11083
|
+
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
|
|
11093
11084
|
attrs: {
|
|
11094
|
-
"href": _vm.
|
|
11085
|
+
"href": _vm.docURL,
|
|
11095
11086
|
"target": "_blank",
|
|
11096
11087
|
"rel": "noreferrer noopener"
|
|
11097
11088
|
}
|
|
11098
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.
|
|
11089
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
|
|
11099
11090
|
attrs: {
|
|
11100
|
-
"href": _vm.
|
|
11091
|
+
"href": _vm.docURL,
|
|
11101
11092
|
"target": "_blank",
|
|
11102
11093
|
"rel": "noreferrer noopener",
|
|
11103
|
-
"title": _vm.
|
|
11094
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11104
11095
|
}
|
|
11105
11096
|
}, [_c('fa-icon', {
|
|
11097
|
+
class: [_vm.iconClass],
|
|
11106
11098
|
attrs: {
|
|
11107
|
-
"icon":
|
|
11099
|
+
"icon": _vm.icon
|
|
11108
11100
|
}
|
|
11109
11101
|
}), _vm._v(" "), _c('p', {
|
|
11110
11102
|
domProps: {
|
|
11111
|
-
"textContent": _vm._s(_vm.
|
|
11103
|
+
"textContent": _vm._s(_vm.filename)
|
|
11112
11104
|
}
|
|
11113
11105
|
})], 1) : _c('p', {
|
|
11114
11106
|
staticClass: "arquivo-erro",
|
|
11115
11107
|
attrs: {
|
|
11116
|
-
"title": _vm.
|
|
11108
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11117
11109
|
}
|
|
11118
11110
|
}, [_c('fa-icon', {
|
|
11119
11111
|
attrs: {
|
|
11120
11112
|
"icon": ['fas', 'file-alt']
|
|
11121
11113
|
}
|
|
11122
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
11114
|
+
}), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
|
|
11123
11115
|
attrs: {
|
|
11124
|
-
"href": _vm.
|
|
11125
|
-
"download": "" + _vm.
|
|
11116
|
+
"href": _vm.imageURL,
|
|
11117
|
+
"download": "" + _vm.filename,
|
|
11126
11118
|
"target": "_blank",
|
|
11127
11119
|
"rel": "noreferrer noopener"
|
|
11128
11120
|
}
|
|
@@ -11130,10 +11122,10 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11130
11122
|
attrs: {
|
|
11131
11123
|
"icon": ['fas', 'download']
|
|
11132
11124
|
}
|
|
11133
|
-
})], 1) : _vm._e(), _vm._v(" "), _vm.
|
|
11125
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
|
|
11134
11126
|
attrs: {
|
|
11135
|
-
"href": _vm.
|
|
11136
|
-
"download": "" + _vm.
|
|
11127
|
+
"href": _vm.docURL,
|
|
11128
|
+
"download": "" + _vm.filename,
|
|
11137
11129
|
"target": "_blank",
|
|
11138
11130
|
"rel": "noreferrer noopener"
|
|
11139
11131
|
}
|
|
@@ -11149,8 +11141,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11149
11141
|
|
|
11150
11142
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11151
11143
|
if (!inject) return;
|
|
11152
|
-
inject("data-v-
|
|
11153
|
-
source: ".fade-enter-active[data-v-
|
|
11144
|
+
inject("data-v-1a4340aa_0", {
|
|
11145
|
+
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}",
|
|
11154
11146
|
map: undefined,
|
|
11155
11147
|
media: undefined
|
|
11156
11148
|
});
|
|
@@ -11158,10 +11150,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11158
11150
|
/* scoped */
|
|
11159
11151
|
|
|
11160
11152
|
|
|
11161
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11153
|
+
var __vue_scope_id__$6 = "data-v-1a4340aa";
|
|
11162
11154
|
/* module identifier */
|
|
11163
11155
|
|
|
11164
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11156
|
+
var __vue_module_identifier__$6 = "data-v-1a4340aa";
|
|
11165
11157
|
/* functional template */
|
|
11166
11158
|
|
|
11167
11159
|
var __vue_is_functional_template__$6 = false;
|
|
@@ -11658,6 +11650,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11658
11650
|
}, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
|
|
11659
11651
|
attrs: {
|
|
11660
11652
|
"interatividade": _vm.interatividade,
|
|
11653
|
+
"dominio": _vm.dominio,
|
|
11661
11654
|
"anexos": _vm.anexos,
|
|
11662
11655
|
"dictionary": _vm.dictionary
|
|
11663
11656
|
}
|
|
@@ -11924,7 +11917,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11924
11917
|
|
|
11925
11918
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11926
11919
|
if (!inject) return;
|
|
11927
|
-
inject("data-v-
|
|
11920
|
+
inject("data-v-dded57e0_0", {
|
|
11928
11921
|
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
11929
11922
|
map: undefined,
|
|
11930
11923
|
media: undefined
|
|
@@ -11936,7 +11929,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11936
11929
|
var __vue_scope_id__$3 = undefined;
|
|
11937
11930
|
/* module identifier */
|
|
11938
11931
|
|
|
11939
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11932
|
+
var __vue_module_identifier__$3 = "data-v-dded57e0";
|
|
11940
11933
|
/* functional template */
|
|
11941
11934
|
|
|
11942
11935
|
var __vue_is_functional_template__$3 = false;
|