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
|
@@ -3552,11 +3552,17 @@ var __vue_render__$n = function () {
|
|
|
3552
3552
|
"textContent": _vm._s(_vm.dictionary.titulo_msg_formato_invalido)
|
|
3553
3553
|
}
|
|
3554
3554
|
}), _vm._v(" "), _c('h4', {
|
|
3555
|
+
attrs: {
|
|
3556
|
+
"title": _vm.validFileFormats
|
|
3557
|
+
},
|
|
3555
3558
|
domProps: {
|
|
3556
3559
|
"textContent": _vm._s(_vm.validFileFormats)
|
|
3557
3560
|
}
|
|
3558
3561
|
})]) : [_vm.file.name ? _c('h3', {
|
|
3559
|
-
staticClass: "text-footer-preview-title"
|
|
3562
|
+
staticClass: "text-footer-preview-title",
|
|
3563
|
+
attrs: {
|
|
3564
|
+
"title": _vm.file.name
|
|
3565
|
+
}
|
|
3560
3566
|
}, [_vm.isDoc ? _c('fa-icon', {
|
|
3561
3567
|
attrs: {
|
|
3562
3568
|
"icon": ['fas', 'file-alt']
|
|
@@ -3583,7 +3589,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3583
3589
|
|
|
3584
3590
|
const __vue_inject_styles__$n = function (inject) {
|
|
3585
3591
|
if (!inject) return;
|
|
3586
|
-
inject("data-v-
|
|
3592
|
+
inject("data-v-a5119ba8_0", {
|
|
3587
3593
|
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%}",
|
|
3588
3594
|
map: undefined,
|
|
3589
3595
|
media: undefined
|
|
@@ -3743,6 +3749,9 @@ var __vue_render__$m = function () {
|
|
|
3743
3749
|
"textContent": _vm._s(_vm.dictionary.titulo_msg_formato_invalido)
|
|
3744
3750
|
}
|
|
3745
3751
|
}), _vm._v(" "), _c('h4', {
|
|
3752
|
+
attrs: {
|
|
3753
|
+
"title": _vm.validFileFormats
|
|
3754
|
+
},
|
|
3746
3755
|
domProps: {
|
|
3747
3756
|
"innerHTML": _vm._s(_vm.validFileFormats)
|
|
3748
3757
|
}
|
|
@@ -3751,7 +3760,10 @@ var __vue_render__$m = function () {
|
|
|
3751
3760
|
key: index,
|
|
3752
3761
|
staticClass: "file-preview"
|
|
3753
3762
|
}, [_c('p', {
|
|
3754
|
-
staticClass: "file-title"
|
|
3763
|
+
staticClass: "file-title",
|
|
3764
|
+
attrs: {
|
|
3765
|
+
"title": singleFile.name
|
|
3766
|
+
}
|
|
3755
3767
|
}, [_c('fa-icon', {
|
|
3756
3768
|
attrs: {
|
|
3757
3769
|
"icon": _vm.icon(singleFile.imgOrDoc)
|
|
@@ -3779,9 +3791,24 @@ var __vue_render__$m = function () {
|
|
|
3779
3791
|
attrs: {
|
|
3780
3792
|
"icon": ['fas', 'file-pdf']
|
|
3781
3793
|
}
|
|
3782
|
-
})], 1) :
|
|
3794
|
+
})], 1) : _c('span', {
|
|
3795
|
+
staticClass: "doc"
|
|
3796
|
+
}, [_c('fa-icon', {
|
|
3797
|
+
attrs: {
|
|
3798
|
+
"icon": ['fas', 'file-alt']
|
|
3799
|
+
}
|
|
3800
|
+
})], 1)]), _vm._v(" "), _c('span', {
|
|
3801
|
+
directives: [{
|
|
3802
|
+
name: "tippy",
|
|
3803
|
+
rawName: "v-tippy",
|
|
3804
|
+
value: {
|
|
3805
|
+
placement: 'left'
|
|
3806
|
+
},
|
|
3807
|
+
expression: "{placement: 'left'}"
|
|
3808
|
+
}],
|
|
3783
3809
|
staticClass: "delete-file",
|
|
3784
3810
|
attrs: {
|
|
3811
|
+
"content": _vm.dictionary.msg_excluir_anexo,
|
|
3785
3812
|
"title": _vm.dictionary.msg_excluir_anexo
|
|
3786
3813
|
},
|
|
3787
3814
|
on: {
|
|
@@ -3802,8 +3829,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3802
3829
|
|
|
3803
3830
|
const __vue_inject_styles__$m = function (inject) {
|
|
3804
3831
|
if (!inject) return;
|
|
3805
|
-
inject("data-v-
|
|
3806
|
-
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
|
|
3832
|
+
inject("data-v-f3de3970_0", {
|
|
3833
|
+
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}",
|
|
3807
3834
|
map: undefined,
|
|
3808
3835
|
media: undefined
|
|
3809
3836
|
});
|
|
@@ -3924,6 +3951,14 @@ var script$l = {
|
|
|
3924
3951
|
},
|
|
3925
3952
|
|
|
3926
3953
|
isFileValid(type, fileName) {
|
|
3954
|
+
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
3955
|
+
this.$toasted.global.defaultInfo({
|
|
3956
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3957
|
+
});
|
|
3958
|
+
this.hasAnyFile = false;
|
|
3959
|
+
return false;
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3927
3962
|
const extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
3928
3963
|
const regex = new RegExp("(" + extensions + ")", "i");
|
|
3929
3964
|
if (regex.test(fileName)) return true;
|
|
@@ -3950,9 +3985,17 @@ var script$l = {
|
|
|
3950
3985
|
this.fileSize = 0;
|
|
3951
3986
|
if (this.fileFormatError) this.file = [];
|
|
3952
3987
|
this.openFiles = false;
|
|
3953
|
-
|
|
3988
|
+
const filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
|
|
3954
3989
|
this.file = filesAux.length ? filesAux : this.file;
|
|
3955
3990
|
if (!this.file.length) return;
|
|
3991
|
+
|
|
3992
|
+
if (this.file.length > this.fileSettings.max) {
|
|
3993
|
+
this.file = [];
|
|
3994
|
+
return this.$toasted.global.defaultInfo({
|
|
3995
|
+
msg: `Limite de ${this.fileSettings.max} arquivos`
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3956
3999
|
this.hasAnyFile = true;
|
|
3957
4000
|
this.fileSize = this.file.length;
|
|
3958
4001
|
|
|
@@ -3969,6 +4012,7 @@ var script$l = {
|
|
|
3969
4012
|
},
|
|
3970
4013
|
|
|
3971
4014
|
returnFileType(file) {
|
|
4015
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return "";
|
|
3972
4016
|
const imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
3973
4017
|
if (imgRegex.test(file.name)) return "img";
|
|
3974
4018
|
const docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
@@ -3977,52 +4021,77 @@ var script$l = {
|
|
|
3977
4021
|
},
|
|
3978
4022
|
|
|
3979
4023
|
multipleFileUpload() {
|
|
4024
|
+
const hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
4025
|
+
const hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
4026
|
+
|
|
4027
|
+
if (!hasImgExt && !hasDocExt) {
|
|
4028
|
+
this.file = [];
|
|
4029
|
+
this.fileSize = 0;
|
|
4030
|
+
return this.$toasted.global.defaultInfo({
|
|
4031
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
4032
|
+
});
|
|
4033
|
+
}
|
|
4034
|
+
|
|
3980
4035
|
let waitForImageLoad = false;
|
|
3981
4036
|
this.file = Array.from(this.file);
|
|
3982
4037
|
this.file.forEach(file => {
|
|
3983
|
-
const fileReader = new FileReader();
|
|
3984
4038
|
const singleFileType = this.returnFileType(file);
|
|
3985
4039
|
if (!singleFileType) file.invalid = true;
|
|
3986
4040
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
3987
|
-
if (file.imgOrDoc === "doc") this.isDoc = true;
|
|
3988
4041
|
|
|
3989
|
-
if (file.imgOrDoc
|
|
3990
|
-
|
|
4042
|
+
if (this.isFileValid(file.imgOrDoc, file.name)) {
|
|
4043
|
+
if (file.imgOrDoc == "img") {
|
|
4044
|
+
const fileReader = new FileReader();
|
|
4045
|
+
waitForImageLoad = true;
|
|
3991
4046
|
|
|
3992
|
-
|
|
4047
|
+
fileReader.onload = () => file.src = fileReader.result;
|
|
3993
4048
|
|
|
3994
|
-
|
|
3995
|
-
}
|
|
4049
|
+
fileReader.onloadend = () => this.emitFileVars(true);
|
|
3996
4050
|
|
|
3997
|
-
|
|
3998
|
-
|
|
4051
|
+
fileReader.readAsDataURL(file);
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
if (file.imgOrDoc === "doc") this.isDoc = true;
|
|
3999
4055
|
file.invalid = false;
|
|
4000
4056
|
this.fileFormatError = false;
|
|
4001
4057
|
} else {
|
|
4002
4058
|
file.invalid = true;
|
|
4003
4059
|
this.fileFormatError = true;
|
|
4004
|
-
this.validFileFormats = `
|
|
4060
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")}`;
|
|
4061
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = `Documentos: ${this.fileSettings.docsExtensions.split("|").join(", ")}`;
|
|
4062
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")} - Documentos: ${this.fileSettings.docsExtensions.split("|").join(", ")}`;
|
|
4005
4063
|
}
|
|
4006
4064
|
});
|
|
4065
|
+
|
|
4066
|
+
if (this.fileFormatError) {
|
|
4067
|
+
this.file = [];
|
|
4068
|
+
this.fileSize = 0;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4007
4071
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
4008
4072
|
},
|
|
4009
4073
|
|
|
4010
4074
|
singleFileUpload(type, fileName) {
|
|
4011
|
-
|
|
4075
|
+
if (this.isFileValid(type, fileName)) {
|
|
4076
|
+
const fileReader = new FileReader();
|
|
4012
4077
|
|
|
4013
|
-
|
|
4014
|
-
|
|
4078
|
+
if (type === "img") {
|
|
4079
|
+
fileReader.onload = () => this.imagePreview = fileReader.result;
|
|
4015
4080
|
|
|
4016
|
-
|
|
4017
|
-
|
|
4081
|
+
fileReader.onloadend = () => this.emitFileVars();
|
|
4082
|
+
|
|
4083
|
+
fileReader.readAsDataURL(this.file);
|
|
4084
|
+
}
|
|
4018
4085
|
|
|
4019
|
-
if (this.isFileValid(type, fileName)) {
|
|
4020
|
-
if (type === "img") fileReader.readAsDataURL(this.file);
|
|
4021
4086
|
if (type === "doc") this.isDoc = true;
|
|
4022
4087
|
this.fileFormatError = false;
|
|
4023
4088
|
} else {
|
|
4024
4089
|
this.fileFormatError = true;
|
|
4025
|
-
|
|
4090
|
+
const hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
4091
|
+
const hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
4092
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions}`;
|
|
4093
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = `Documentos: ${this.fileSettings.docsExtensions}`;
|
|
4094
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions} - Documentos: ${this.fileSettings.docsExtensions}`;
|
|
4026
4095
|
}
|
|
4027
4096
|
|
|
4028
4097
|
if (this.isDoc) this.emitFileVars();
|
|
@@ -4292,7 +4361,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
4292
4361
|
|
|
4293
4362
|
const __vue_inject_styles__$l = function (inject) {
|
|
4294
4363
|
if (!inject) return;
|
|
4295
|
-
inject("data-v-
|
|
4364
|
+
inject("data-v-451fb0c4_0", {
|
|
4296
4365
|
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}",
|
|
4297
4366
|
map: undefined,
|
|
4298
4367
|
media: undefined
|
|
@@ -8459,7 +8528,7 @@ var script$i = {
|
|
|
8459
8528
|
this.loadingReq = true;
|
|
8460
8529
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8461
8530
|
this.loadingReq = false;
|
|
8462
|
-
if (data.msg_ret) return this.$toasted.global.
|
|
8531
|
+
if (data.msg_ret) return this.$toasted.global.defaultInfo({
|
|
8463
8532
|
msg: data.msg_ret
|
|
8464
8533
|
});
|
|
8465
8534
|
if (data) return this.showFormattedMessage(data, selectionIndex);
|
|
@@ -8480,7 +8549,7 @@ var script$i = {
|
|
|
8480
8549
|
try {
|
|
8481
8550
|
let success = false;
|
|
8482
8551
|
if (Array.isArray(messageData)) success = true;
|
|
8483
|
-
if (!success && selectionIndex != 4) this.$toasted.global.
|
|
8552
|
+
if (!success && selectionIndex != 4) this.$toasted.global.defaultInfo({
|
|
8484
8553
|
msg: messageData ? messageData.msg : "Nao foi possível obter mensagens"
|
|
8485
8554
|
});
|
|
8486
8555
|
|
|
@@ -8505,7 +8574,7 @@ var script$i = {
|
|
|
8505
8574
|
case 3:
|
|
8506
8575
|
if (!success) {
|
|
8507
8576
|
this.formatted_messages_3.push(messageData);
|
|
8508
|
-
this.$toasted.global.
|
|
8577
|
+
this.$toasted.global.defaultInfo({
|
|
8509
8578
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8510
8579
|
});
|
|
8511
8580
|
this.$emit("close-blocker-standard-message");
|
|
@@ -8674,7 +8743,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8674
8743
|
|
|
8675
8744
|
const __vue_inject_styles__$i = function (inject) {
|
|
8676
8745
|
if (!inject) return;
|
|
8677
|
-
inject("data-v-
|
|
8746
|
+
inject("data-v-324084df_0", {
|
|
8678
8747
|
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}",
|
|
8679
8748
|
map: undefined,
|
|
8680
8749
|
media: undefined
|
|
@@ -8780,7 +8849,8 @@ var script$h = {
|
|
|
8780
8849
|
docsExtensions: "",
|
|
8781
8850
|
imagesExtensions: "",
|
|
8782
8851
|
multiple: false,
|
|
8783
|
-
systemButton: false
|
|
8852
|
+
systemButton: false,
|
|
8853
|
+
max: 3
|
|
8784
8854
|
};
|
|
8785
8855
|
},
|
|
8786
8856
|
required: false
|
|
@@ -8853,7 +8923,7 @@ var script$h = {
|
|
|
8853
8923
|
if (event.data == '' && this.showStandardMessages) {
|
|
8854
8924
|
this.closeBlockerStandardMessage();
|
|
8855
8925
|
this.toggleStandardMessages();
|
|
8856
|
-
this.$toasted.global.
|
|
8926
|
+
this.$toasted.global.defaultInfo({
|
|
8857
8927
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8858
8928
|
});
|
|
8859
8929
|
} else if (typeof event.data === "string" && this.showStandardMessages) {
|
|
@@ -9057,11 +9127,12 @@ var script$h = {
|
|
|
9057
9127
|
},
|
|
9058
9128
|
|
|
9059
9129
|
returnFileType(file, stopAlert) {
|
|
9130
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return false;
|
|
9060
9131
|
const imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
9061
9132
|
if (imgRegex.test(file.name)) return "img";
|
|
9062
9133
|
const docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
9063
9134
|
if (docRegex.test(file.name)) return "doc";
|
|
9064
|
-
if (!stopAlert) return;
|
|
9135
|
+
if (!stopAlert) return false;
|
|
9065
9136
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
9066
9137
|
msg: this.dictionary.msg_formato_invalido
|
|
9067
9138
|
});
|
|
@@ -9433,8 +9504,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
9433
9504
|
|
|
9434
9505
|
const __vue_inject_styles__$h = function (inject) {
|
|
9435
9506
|
if (!inject) return;
|
|
9436
|
-
inject("data-v-
|
|
9437
|
-
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}",
|
|
9507
|
+
inject("data-v-54b5cd94_0", {
|
|
9508
|
+
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}",
|
|
9438
9509
|
map: undefined,
|
|
9439
9510
|
media: undefined
|
|
9440
9511
|
});
|
|
@@ -9653,9 +9724,11 @@ var script$f = {
|
|
|
9653
9724
|
for (let key in template) {
|
|
9654
9725
|
if (key === "components" && Array.isArray(template[key])) {
|
|
9655
9726
|
template[key].map(component => {
|
|
9656
|
-
component.parameters.
|
|
9657
|
-
|
|
9658
|
-
|
|
9727
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9728
|
+
component.parameters.map(param => {
|
|
9729
|
+
fullText += param.text;
|
|
9730
|
+
});
|
|
9731
|
+
}
|
|
9659
9732
|
});
|
|
9660
9733
|
}
|
|
9661
9734
|
}
|
|
@@ -9739,41 +9812,44 @@ var script$f = {
|
|
|
9739
9812
|
for (let index in this.selectedTemplate) {
|
|
9740
9813
|
if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
|
|
9741
9814
|
const arrComponents = this.selectedTemplate[index];
|
|
9742
|
-
arrComponents.map(component => {
|
|
9743
|
-
if (component && component.parameters && component.parameters.length) {
|
|
9744
|
-
component.parameters.map(message => {
|
|
9745
|
-
message.currentText = message.text;
|
|
9746
|
-
let keyIndex = 0;
|
|
9747
9815
|
|
|
9748
|
-
|
|
9749
|
-
|
|
9816
|
+
if (arrComponents && arrComponents.length) {
|
|
9817
|
+
arrComponents.map(component => {
|
|
9818
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9819
|
+
component.parameters.map(message => {
|
|
9820
|
+
message.currentText = message.text;
|
|
9821
|
+
let keyIndex = 0;
|
|
9822
|
+
|
|
9823
|
+
while (keyIndex < keys.length) {
|
|
9824
|
+
const varName = `{{${keys[keyIndex]}}}`;
|
|
9750
9825
|
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9826
|
+
if (message.text.indexOf(varName) != -1) {
|
|
9827
|
+
/**Gerando os obejetos de parametros da notificacao para o component */
|
|
9828
|
+
if (component.type === "header") {
|
|
9829
|
+
this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9755
9830
|
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9831
|
+
this.selectedTemplate['parameters'][component.type] = {
|
|
9832
|
+
tipo: "text",
|
|
9833
|
+
text: values[keyIndex]
|
|
9834
|
+
};
|
|
9835
|
+
} else if (!this.selectedTemplate['parameters'][component.type]) {
|
|
9836
|
+
this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9837
|
+
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9763
9838
|
|
|
9764
9839
|
|
|
9765
|
-
|
|
9766
|
-
|
|
9840
|
+
if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
|
|
9841
|
+
this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
|
|
9842
|
+
}
|
|
9843
|
+
|
|
9844
|
+
message.currentText = message.currentText.replace(varName, values[keyIndex]);
|
|
9767
9845
|
}
|
|
9768
9846
|
|
|
9769
|
-
|
|
9847
|
+
keyIndex++;
|
|
9770
9848
|
}
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
}
|
|
9776
|
-
});
|
|
9849
|
+
});
|
|
9850
|
+
}
|
|
9851
|
+
});
|
|
9852
|
+
}
|
|
9777
9853
|
}
|
|
9778
9854
|
}
|
|
9779
9855
|
|
|
@@ -9870,7 +9946,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9870
9946
|
|
|
9871
9947
|
const __vue_inject_styles__$f = function (inject) {
|
|
9872
9948
|
if (!inject) return;
|
|
9873
|
-
inject("data-v-
|
|
9949
|
+
inject("data-v-5a97ed34_0", {
|
|
9874
9950
|
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}",
|
|
9875
9951
|
map: undefined,
|
|
9876
9952
|
media: undefined
|
|
@@ -10426,50 +10502,59 @@ function gerarVariaveisAnexo(anexos, storeObj) {
|
|
|
10426
10502
|
}
|
|
10427
10503
|
}
|
|
10428
10504
|
|
|
10429
|
-
|
|
10430
|
-
var script$d = {
|
|
10431
|
-
props: {
|
|
10432
|
-
file: {
|
|
10433
|
-
type: Object,
|
|
10434
|
-
required: true
|
|
10435
|
-
},
|
|
10436
|
-
dictionary: {
|
|
10437
|
-
type: Object,
|
|
10438
|
-
required: true
|
|
10439
|
-
},
|
|
10440
|
-
domain: {
|
|
10441
|
-
type: String,
|
|
10442
|
-
required: true
|
|
10443
|
-
}
|
|
10444
|
-
},
|
|
10445
|
-
computed: {
|
|
10446
|
-
currentClass() {
|
|
10447
|
-
return this.fileExt === "pdf" ? "pdf" : "doc";
|
|
10448
|
-
}
|
|
10449
|
-
|
|
10450
|
-
},
|
|
10451
|
-
|
|
10505
|
+
const fileHandler = {
|
|
10452
10506
|
data() {
|
|
10453
10507
|
return {
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10508
|
+
isLoading: true,
|
|
10509
|
+
isFile: false,
|
|
10510
|
+
imageURL: "",
|
|
10511
|
+
fileType: "",
|
|
10512
|
+
docURL: "",
|
|
10513
|
+
filename: "",
|
|
10460
10514
|
audio: false,
|
|
10461
10515
|
video: false,
|
|
10462
10516
|
icon: []
|
|
10463
10517
|
};
|
|
10464
10518
|
},
|
|
10465
10519
|
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10520
|
+
computed: {
|
|
10521
|
+
iconClass() {
|
|
10522
|
+
return this.fileType === "pdf" ? "pdf" : "doc";
|
|
10523
|
+
}
|
|
10469
10524
|
|
|
10525
|
+
},
|
|
10470
10526
|
methods: {
|
|
10471
|
-
|
|
10527
|
+
openWindowFromURL(link, isImg) {
|
|
10528
|
+
const viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
|
|
10529
|
+
|
|
10530
|
+
if (!isImg && !viewableExtensions.includes(this.fileType)) {
|
|
10531
|
+
const a = document.createElement("a");
|
|
10532
|
+
a.setAttribute("href", link);
|
|
10533
|
+
a.setAttribute("download", this.filename);
|
|
10534
|
+
a.setAttribute("target", "_blank");
|
|
10535
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
10536
|
+
a.click();
|
|
10537
|
+
return;
|
|
10538
|
+
}
|
|
10539
|
+
|
|
10540
|
+
const width = window.innerWidth;
|
|
10541
|
+
const height = window.innerHeight;
|
|
10542
|
+
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
10543
|
+
window.open(link, "anexo-ra", options);
|
|
10544
|
+
},
|
|
10545
|
+
|
|
10546
|
+
showImage(image) {
|
|
10547
|
+
if (!image) return console.warn("Não foi possível abrir a imagem");
|
|
10548
|
+
this.$emit("abrir-imagem", image);
|
|
10549
|
+
},
|
|
10550
|
+
|
|
10551
|
+
setFileVars(rawFile, storeObj) {
|
|
10472
10552
|
try {
|
|
10553
|
+
if (!rawFile) {
|
|
10554
|
+
this.isLoading = false;
|
|
10555
|
+
return console.warn("Anexo recebido invalido");
|
|
10556
|
+
}
|
|
10557
|
+
|
|
10473
10558
|
const {
|
|
10474
10559
|
anexo,
|
|
10475
10560
|
imgAnexo,
|
|
@@ -10478,36 +10563,53 @@ var script$d = {
|
|
|
10478
10563
|
nomeArquivo,
|
|
10479
10564
|
audio,
|
|
10480
10565
|
video
|
|
10481
|
-
} = gerarVariaveisAnexo(
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
this.
|
|
10485
|
-
this.
|
|
10486
|
-
this.
|
|
10487
|
-
this.docUrl = docAnexo;
|
|
10488
|
-
this.fileName = nomeArquivo;
|
|
10566
|
+
} = gerarVariaveisAnexo(rawFile, storeObj);
|
|
10567
|
+
this.isFile = anexo;
|
|
10568
|
+
this.imageURL = imgAnexo;
|
|
10569
|
+
this.fileType = tipoDoc;
|
|
10570
|
+
this.docURL = docAnexo;
|
|
10571
|
+
this.filename = nomeArquivo;
|
|
10489
10572
|
this.audio = audio;
|
|
10490
10573
|
this.video = video;
|
|
10491
|
-
this.
|
|
10492
|
-
this.
|
|
10574
|
+
this.setIcon();
|
|
10575
|
+
this.isLoading = false;
|
|
10493
10576
|
} catch (e) {
|
|
10494
10577
|
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10495
10578
|
console.error(e);
|
|
10496
10579
|
}
|
|
10497
10580
|
},
|
|
10498
10581
|
|
|
10499
|
-
|
|
10500
|
-
this.icon = this.
|
|
10501
|
-
}
|
|
10582
|
+
setIcon() {
|
|
10583
|
+
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10584
|
+
}
|
|
10502
10585
|
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10586
|
+
}
|
|
10587
|
+
};
|
|
10588
|
+
|
|
10589
|
+
//
|
|
10590
|
+
var script$d = {
|
|
10591
|
+
mixins: [fileHandler],
|
|
10592
|
+
props: {
|
|
10593
|
+
file: {
|
|
10594
|
+
type: Object,
|
|
10595
|
+
required: true
|
|
10596
|
+
},
|
|
10597
|
+
dictionary: {
|
|
10598
|
+
type: Object,
|
|
10599
|
+
required: true
|
|
10600
|
+
},
|
|
10601
|
+
domain: {
|
|
10602
|
+
type: String,
|
|
10603
|
+
required: true
|
|
10508
10604
|
}
|
|
10605
|
+
},
|
|
10509
10606
|
|
|
10607
|
+
mounted() {
|
|
10608
|
+
this.setFileVars(this.file, {
|
|
10609
|
+
dominio: this.domain
|
|
10610
|
+
});
|
|
10510
10611
|
}
|
|
10612
|
+
|
|
10511
10613
|
};
|
|
10512
10614
|
|
|
10513
10615
|
/* script */
|
|
@@ -10529,40 +10631,40 @@ var __vue_render__$d = function () {
|
|
|
10529
10631
|
"name": "fade",
|
|
10530
10632
|
"mode": "out-in"
|
|
10531
10633
|
}
|
|
10532
|
-
}, [_vm.
|
|
10634
|
+
}, [_vm.isLoading ? _c('div', {
|
|
10533
10635
|
key: "card-file-loader",
|
|
10534
10636
|
staticClass: "req-loader slow",
|
|
10535
10637
|
attrs: {
|
|
10536
10638
|
"small": true
|
|
10537
10639
|
}
|
|
10538
|
-
}) : [_vm.
|
|
10640
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
10539
10641
|
key: "card-file-img",
|
|
10540
10642
|
staticClass: "file-img box-shadow",
|
|
10541
10643
|
attrs: {
|
|
10542
|
-
"title": _vm.
|
|
10644
|
+
"title": _vm.filename
|
|
10543
10645
|
},
|
|
10544
10646
|
on: {
|
|
10545
10647
|
"click": function ($event) {
|
|
10546
|
-
return _vm.
|
|
10648
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
10547
10649
|
}
|
|
10548
10650
|
}
|
|
10549
10651
|
}, [_c('img', {
|
|
10550
10652
|
attrs: {
|
|
10551
|
-
"src": "" + _vm.
|
|
10552
|
-
"alt": _vm.
|
|
10653
|
+
"src": "" + _vm.imageURL,
|
|
10654
|
+
"alt": _vm.filename
|
|
10553
10655
|
}
|
|
10554
10656
|
})]) : _c('span', {
|
|
10555
10657
|
key: "card-file-doc",
|
|
10556
10658
|
staticClass: "file-icon",
|
|
10557
|
-
class: [_vm.
|
|
10659
|
+
class: [_vm.iconClass],
|
|
10558
10660
|
attrs: {
|
|
10559
|
-
"title": _vm.
|
|
10661
|
+
"title": _vm.filename,
|
|
10560
10662
|
"target": "_blank",
|
|
10561
10663
|
"rel": "noreferrer noopener"
|
|
10562
10664
|
},
|
|
10563
10665
|
on: {
|
|
10564
10666
|
"click": function ($event) {
|
|
10565
|
-
return _vm.
|
|
10667
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
10566
10668
|
}
|
|
10567
10669
|
}
|
|
10568
10670
|
}, [_c('fa-icon', {
|
|
@@ -10572,11 +10674,11 @@ var __vue_render__$d = function () {
|
|
|
10572
10674
|
})], 1), _vm._v(" "), _c('a', {
|
|
10573
10675
|
key: "card-file-download-icon",
|
|
10574
10676
|
attrs: {
|
|
10575
|
-
"href": _vm.
|
|
10576
|
-
"download": "" + _vm.
|
|
10677
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
10678
|
+
"download": "" + _vm.filename,
|
|
10577
10679
|
"target": "_blank",
|
|
10578
10680
|
"rel": "noreferrer noopener",
|
|
10579
|
-
"title": "Download " + _vm.
|
|
10681
|
+
"title": "Download " + _vm.filename
|
|
10580
10682
|
}
|
|
10581
10683
|
}, [_c('fa-icon', {
|
|
10582
10684
|
attrs: {
|
|
@@ -10590,11 +10692,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
10590
10692
|
|
|
10591
10693
|
const __vue_inject_styles__$d = function (inject) {
|
|
10592
10694
|
if (!inject) return;
|
|
10593
|
-
inject("data-v-
|
|
10594
|
-
source: ".fade-enter-active[data-v-
|
|
10695
|
+
inject("data-v-c0bc7096_0", {
|
|
10696
|
+
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}",
|
|
10595
10697
|
map: undefined,
|
|
10596
10698
|
media: undefined
|
|
10597
|
-
}), inject("data-v-
|
|
10699
|
+
}), inject("data-v-c0bc7096_1", {
|
|
10598
10700
|
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%}",
|
|
10599
10701
|
map: undefined,
|
|
10600
10702
|
media: undefined
|
|
@@ -10603,7 +10705,7 @@ const __vue_inject_styles__$d = function (inject) {
|
|
|
10603
10705
|
/* scoped */
|
|
10604
10706
|
|
|
10605
10707
|
|
|
10606
|
-
const __vue_scope_id__$d = "data-v-
|
|
10708
|
+
const __vue_scope_id__$d = "data-v-c0bc7096";
|
|
10607
10709
|
/* module identifier */
|
|
10608
10710
|
|
|
10609
10711
|
const __vue_module_identifier__$d = undefined;
|
|
@@ -11237,19 +11339,21 @@ var script$9 = {
|
|
|
11237
11339
|
type: Object,
|
|
11238
11340
|
required: true
|
|
11239
11341
|
},
|
|
11240
|
-
|
|
11241
|
-
type:
|
|
11242
|
-
required:
|
|
11342
|
+
dominio: {
|
|
11343
|
+
type: String,
|
|
11344
|
+
required: true
|
|
11243
11345
|
},
|
|
11244
11346
|
dictionary: {
|
|
11245
11347
|
type: Object,
|
|
11246
11348
|
required: true
|
|
11349
|
+
},
|
|
11350
|
+
anexos: {
|
|
11351
|
+
type: Array,
|
|
11352
|
+
required: false
|
|
11247
11353
|
}
|
|
11248
11354
|
},
|
|
11249
11355
|
|
|
11250
11356
|
mounted() {
|
|
11251
|
-
console.log(this.anexos);
|
|
11252
|
-
|
|
11253
11357
|
if (this.validateInterativity()) {
|
|
11254
11358
|
this.verifyInfoAditional();
|
|
11255
11359
|
}
|
|
@@ -11268,7 +11372,7 @@ var script$9 = {
|
|
|
11268
11372
|
const width = window.innerWidth;
|
|
11269
11373
|
const height = window.innerHeight;
|
|
11270
11374
|
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
11271
|
-
window.open(url
|
|
11375
|
+
window.open(`${this.dominio}/callcenter/docs.php?mku=${url}`, "card-file", options);
|
|
11272
11376
|
},
|
|
11273
11377
|
|
|
11274
11378
|
validateInterativity() {
|
|
@@ -11287,13 +11391,9 @@ var script$9 = {
|
|
|
11287
11391
|
formulario
|
|
11288
11392
|
} = this.interatividade;
|
|
11289
11393
|
formulario = formulario ? formulario : [];
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
}
|
|
11294
|
-
|
|
11295
|
-
let foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
11296
|
-
let foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
11394
|
+
if (!formulario.length) return;
|
|
11395
|
+
const foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
11396
|
+
const foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
11297
11397
|
|
|
11298
11398
|
if (foundInfos) {
|
|
11299
11399
|
this.informacao = foundInfos.map(info => {
|
|
@@ -11305,9 +11405,7 @@ var script$9 = {
|
|
|
11305
11405
|
});
|
|
11306
11406
|
}
|
|
11307
11407
|
|
|
11308
|
-
if (foundInfosAdd)
|
|
11309
|
-
this.informacaoAdicional = foundInfosAdd;
|
|
11310
|
-
}
|
|
11408
|
+
if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
|
|
11311
11409
|
} catch (e) {
|
|
11312
11410
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
11313
11411
|
console.error(e);
|
|
@@ -11383,22 +11481,22 @@ var __vue_render__$9 = function () {
|
|
|
11383
11481
|
staticClass: "d-flex flex-wrap align-items-center"
|
|
11384
11482
|
}, _vm._l(_vm.anexos, function (ref, fileIndex) {
|
|
11385
11483
|
var name = ref.name;
|
|
11386
|
-
var url = ref.url;
|
|
11387
11484
|
var type = ref.type;
|
|
11388
11485
|
var mkuDownload = ref.mkuDownload;
|
|
11486
|
+
var mku = ref.mku;
|
|
11389
11487
|
return _c('div', {
|
|
11390
11488
|
key: "file-" + fileIndex,
|
|
11391
11489
|
staticClass: "mb-5 mx-5 d-flex"
|
|
11392
11490
|
}, [!type ? _c('img', {
|
|
11393
11491
|
staticClass: "box-shadow max-w-75px max-h-75px cursor-pointer",
|
|
11394
11492
|
attrs: {
|
|
11395
|
-
"src":
|
|
11493
|
+
"src": _vm.dominio + "/callcenter/docs.php?mku=" + mku,
|
|
11396
11494
|
"alt": name,
|
|
11397
11495
|
"title": name
|
|
11398
11496
|
},
|
|
11399
11497
|
on: {
|
|
11400
11498
|
"click": function ($event) {
|
|
11401
|
-
return _vm.openFile(
|
|
11499
|
+
return _vm.openFile(mku, type);
|
|
11402
11500
|
}
|
|
11403
11501
|
}
|
|
11404
11502
|
}) : _c('fa-icon', {
|
|
@@ -11409,13 +11507,13 @@ var __vue_render__$9 = function () {
|
|
|
11409
11507
|
},
|
|
11410
11508
|
on: {
|
|
11411
11509
|
"click": function ($event) {
|
|
11412
|
-
return _vm.openFile(
|
|
11510
|
+
return _vm.openFile(mku, type);
|
|
11413
11511
|
}
|
|
11414
11512
|
}
|
|
11415
11513
|
}), _vm._v(" "), _c('a', {
|
|
11416
11514
|
staticClass: "d-flex align-items-end ml-3 text-dark",
|
|
11417
11515
|
attrs: {
|
|
11418
|
-
"href": mkuDownload,
|
|
11516
|
+
"href": _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload,
|
|
11419
11517
|
"download": "" + name,
|
|
11420
11518
|
"target": "_blank",
|
|
11421
11519
|
"rel": "noreferrer noopener",
|
|
@@ -11439,8 +11537,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
11439
11537
|
|
|
11440
11538
|
const __vue_inject_styles__$9 = function (inject) {
|
|
11441
11539
|
if (!inject) return;
|
|
11442
|
-
inject("data-v-
|
|
11443
|
-
source: ".show-x-enter-active[data-v-
|
|
11540
|
+
inject("data-v-7b989966_0", {
|
|
11541
|
+
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}",
|
|
11444
11542
|
map: undefined,
|
|
11445
11543
|
media: undefined
|
|
11446
11544
|
});
|
|
@@ -11448,7 +11546,7 @@ const __vue_inject_styles__$9 = function (inject) {
|
|
|
11448
11546
|
/* scoped */
|
|
11449
11547
|
|
|
11450
11548
|
|
|
11451
|
-
const __vue_scope_id__$9 = "data-v-
|
|
11549
|
+
const __vue_scope_id__$9 = "data-v-7b989966";
|
|
11452
11550
|
/* module identifier */
|
|
11453
11551
|
|
|
11454
11552
|
const __vue_module_identifier__$9 = undefined;
|
|
@@ -11468,6 +11566,7 @@ var InteratividadeFormulario = __vue_component__$d;
|
|
|
11468
11566
|
|
|
11469
11567
|
//
|
|
11470
11568
|
var script$8 = {
|
|
11569
|
+
mixins: [fileHandler],
|
|
11471
11570
|
props: {
|
|
11472
11571
|
anexo: {
|
|
11473
11572
|
type: Object,
|
|
@@ -11482,72 +11581,13 @@ var script$8 = {
|
|
|
11482
11581
|
required: true
|
|
11483
11582
|
}
|
|
11484
11583
|
},
|
|
11485
|
-
computed: {
|
|
11486
|
-
iconeClass() {
|
|
11487
|
-
return this.tipoDoc === "pdf" ? "pdf" : "doc";
|
|
11488
|
-
}
|
|
11489
|
-
|
|
11490
|
-
},
|
|
11491
|
-
|
|
11492
|
-
data() {
|
|
11493
|
-
return {
|
|
11494
|
-
carregando: true,
|
|
11495
|
-
isAnexo: false,
|
|
11496
|
-
imgAnexo: "",
|
|
11497
|
-
tipoDoc: "",
|
|
11498
|
-
docAnexo: "",
|
|
11499
|
-
nomeArquivo: "",
|
|
11500
|
-
audio: false,
|
|
11501
|
-
video: false,
|
|
11502
|
-
icone: []
|
|
11503
|
-
};
|
|
11504
|
-
},
|
|
11505
11584
|
|
|
11506
11585
|
mounted() {
|
|
11507
|
-
this.
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
methods: {
|
|
11511
|
-
setVariaveisAnexo() {
|
|
11512
|
-
try {
|
|
11513
|
-
const {
|
|
11514
|
-
anexo,
|
|
11515
|
-
imgAnexo,
|
|
11516
|
-
tipoDoc,
|
|
11517
|
-
docAnexo,
|
|
11518
|
-
nomeArquivo,
|
|
11519
|
-
audio,
|
|
11520
|
-
video
|
|
11521
|
-
} = gerarVariaveisAnexo(this.anexo, {
|
|
11522
|
-
dominio: this.dominio
|
|
11523
|
-
});
|
|
11524
|
-
this.isAnexo = anexo;
|
|
11525
|
-
this.imgAnexo = imgAnexo;
|
|
11526
|
-
this.tipoDoc = tipoDoc;
|
|
11527
|
-
this.docAnexo = docAnexo;
|
|
11528
|
-
this.nomeArquivo = nomeArquivo;
|
|
11529
|
-
this.audio = audio;
|
|
11530
|
-
this.video = video;
|
|
11531
|
-
this.gerarIcone();
|
|
11532
|
-
this.carregando = false;
|
|
11533
|
-
} catch (e) {
|
|
11534
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
11535
|
-
console.error(e);
|
|
11536
|
-
}
|
|
11537
|
-
},
|
|
11538
|
-
|
|
11539
|
-
gerarIcone() {
|
|
11540
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
11541
|
-
},
|
|
11542
|
-
|
|
11543
|
-
abrirAnexo(link, isImg) {
|
|
11544
|
-
const width = window.innerWidth;
|
|
11545
|
-
const height = window.innerHeight;
|
|
11546
|
-
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
11547
|
-
window.open(link, "anexo-ra", options);
|
|
11548
|
-
}
|
|
11549
|
-
|
|
11586
|
+
this.setFileVars(this.anexo, {
|
|
11587
|
+
dominio: this.dominio
|
|
11588
|
+
});
|
|
11550
11589
|
}
|
|
11590
|
+
|
|
11551
11591
|
};
|
|
11552
11592
|
|
|
11553
11593
|
/* script */
|
|
@@ -11569,54 +11609,54 @@ var __vue_render__$8 = function () {
|
|
|
11569
11609
|
"name": "fade",
|
|
11570
11610
|
"mode": "out-in"
|
|
11571
11611
|
}
|
|
11572
|
-
}, [_vm.
|
|
11612
|
+
}, [_vm.isLoading ? _c('div', {
|
|
11573
11613
|
key: "ra-loader-anexo",
|
|
11574
11614
|
staticClass: "req-loader slow",
|
|
11575
11615
|
attrs: {
|
|
11576
11616
|
"small": true
|
|
11577
11617
|
}
|
|
11578
|
-
}) : [_vm.
|
|
11618
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
11579
11619
|
key: "ra-img-anexo",
|
|
11580
11620
|
staticClass: "anexo-img box-shadow",
|
|
11581
11621
|
attrs: {
|
|
11582
|
-
"title": _vm.
|
|
11622
|
+
"title": _vm.filename
|
|
11583
11623
|
},
|
|
11584
11624
|
on: {
|
|
11585
11625
|
"click": function ($event) {
|
|
11586
|
-
return _vm.
|
|
11626
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
11587
11627
|
}
|
|
11588
11628
|
}
|
|
11589
11629
|
}, [_c('img', {
|
|
11590
11630
|
attrs: {
|
|
11591
|
-
"src": "" + _vm.
|
|
11592
|
-
"alt": _vm.
|
|
11631
|
+
"src": "" + _vm.imageURL,
|
|
11632
|
+
"alt": _vm.filename
|
|
11593
11633
|
}
|
|
11594
11634
|
})]) : _c('span', {
|
|
11595
11635
|
key: "ra-doc-anexo",
|
|
11596
|
-
staticClass: "anexo-
|
|
11597
|
-
class: [_vm.
|
|
11636
|
+
staticClass: "anexo-icon",
|
|
11637
|
+
class: [_vm.iconClass],
|
|
11598
11638
|
attrs: {
|
|
11599
|
-
"title": _vm.
|
|
11639
|
+
"title": _vm.filename,
|
|
11600
11640
|
"target": "_blank",
|
|
11601
11641
|
"rel": "noreferrer noopener"
|
|
11602
11642
|
},
|
|
11603
11643
|
on: {
|
|
11604
11644
|
"click": function ($event) {
|
|
11605
|
-
return _vm.
|
|
11645
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
11606
11646
|
}
|
|
11607
11647
|
}
|
|
11608
11648
|
}, [_c('fa-icon', {
|
|
11609
11649
|
attrs: {
|
|
11610
|
-
"icon": _vm.
|
|
11650
|
+
"icon": _vm.icon
|
|
11611
11651
|
}
|
|
11612
11652
|
})], 1), _vm._v(" "), _c('a', {
|
|
11613
11653
|
key: "ra-download-icon",
|
|
11614
11654
|
attrs: {
|
|
11615
|
-
"href": _vm.
|
|
11616
|
-
"download": "" + _vm.
|
|
11655
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
11656
|
+
"download": "" + _vm.filename,
|
|
11617
11657
|
"target": "_blank",
|
|
11618
11658
|
"rel": "noreferrer noopener",
|
|
11619
|
-
"title": "Download " + _vm.
|
|
11659
|
+
"title": "Download " + _vm.filename
|
|
11620
11660
|
}
|
|
11621
11661
|
}, [_c('fa-icon', {
|
|
11622
11662
|
attrs: {
|
|
@@ -11630,8 +11670,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
11630
11670
|
|
|
11631
11671
|
const __vue_inject_styles__$8 = function (inject) {
|
|
11632
11672
|
if (!inject) return;
|
|
11633
|
-
inject("data-v-
|
|
11634
|
-
source: ".fade-enter-active[data-v-
|
|
11673
|
+
inject("data-v-0408a7b0_0", {
|
|
11674
|
+
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}",
|
|
11635
11675
|
map: undefined,
|
|
11636
11676
|
media: undefined
|
|
11637
11677
|
});
|
|
@@ -11639,7 +11679,7 @@ const __vue_inject_styles__$8 = function (inject) {
|
|
|
11639
11679
|
/* scoped */
|
|
11640
11680
|
|
|
11641
11681
|
|
|
11642
|
-
const __vue_scope_id__$8 = "data-v-
|
|
11682
|
+
const __vue_scope_id__$8 = "data-v-0408a7b0";
|
|
11643
11683
|
/* module identifier */
|
|
11644
11684
|
|
|
11645
11685
|
const __vue_module_identifier__$8 = undefined;
|
|
@@ -11926,6 +11966,7 @@ var __vue_component__$b = __vue_component__$a;
|
|
|
11926
11966
|
|
|
11927
11967
|
//
|
|
11928
11968
|
var script$6 = {
|
|
11969
|
+
mixins: [fileHandler],
|
|
11929
11970
|
components: {
|
|
11930
11971
|
Loader
|
|
11931
11972
|
},
|
|
@@ -11950,15 +11991,6 @@ var script$6 = {
|
|
|
11950
11991
|
|
|
11951
11992
|
data() {
|
|
11952
11993
|
return {
|
|
11953
|
-
carregando: true,
|
|
11954
|
-
isAnexo: false,
|
|
11955
|
-
imgAnexo: "",
|
|
11956
|
-
tipoDoc: "",
|
|
11957
|
-
docAnexo: "",
|
|
11958
|
-
nomeArquivo: "",
|
|
11959
|
-
audio: false,
|
|
11960
|
-
video: false,
|
|
11961
|
-
icone: [],
|
|
11962
11994
|
imgErro: false,
|
|
11963
11995
|
imgMsgErro: ''
|
|
11964
11996
|
};
|
|
@@ -11966,49 +11998,17 @@ var script$6 = {
|
|
|
11966
11998
|
|
|
11967
11999
|
mounted() {
|
|
11968
12000
|
if (this.validarAnexo()) {
|
|
11969
|
-
this.
|
|
12001
|
+
this.setFileVars(this.anexo, {
|
|
12002
|
+
dominio: this.dominio
|
|
12003
|
+
});
|
|
11970
12004
|
}
|
|
11971
12005
|
},
|
|
11972
12006
|
|
|
11973
12007
|
methods: {
|
|
11974
|
-
abrirVisualizacaoImg(imagem) {
|
|
11975
|
-
this.$emit("abrir-imagem", imagem);
|
|
11976
|
-
},
|
|
11977
|
-
|
|
11978
|
-
setVariaveisAnexo() {
|
|
11979
|
-
try {
|
|
11980
|
-
const {
|
|
11981
|
-
anexo,
|
|
11982
|
-
imgAnexo,
|
|
11983
|
-
tipoDoc,
|
|
11984
|
-
docAnexo,
|
|
11985
|
-
nomeArquivo,
|
|
11986
|
-
audio,
|
|
11987
|
-
video
|
|
11988
|
-
} = gerarVariaveisAnexo(this.anexo, {
|
|
11989
|
-
dominio: this.dominio
|
|
11990
|
-
});
|
|
11991
|
-
this.isAnexo = anexo;
|
|
11992
|
-
this.imgAnexo = imgAnexo;
|
|
11993
|
-
this.tipoDoc = tipoDoc;
|
|
11994
|
-
this.docAnexo = docAnexo;
|
|
11995
|
-
this.nomeArquivo = nomeArquivo;
|
|
11996
|
-
this.audio = audio;
|
|
11997
|
-
this.video = video;
|
|
11998
|
-
this.gerarIcone();
|
|
11999
|
-
this.carregando = false;
|
|
12000
|
-
} catch (e) {
|
|
12001
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
12002
|
-
console.error(e);
|
|
12003
|
-
}
|
|
12004
|
-
},
|
|
12005
|
-
|
|
12006
12008
|
validarAnexo() {
|
|
12007
12009
|
let status = true; //caso for audio ou documento ignorar
|
|
12008
12010
|
|
|
12009
|
-
if (this.anexo.
|
|
12010
|
-
return true;
|
|
12011
|
-
}
|
|
12011
|
+
if (this.anexo.docURL || this.anexo.audio) return true;
|
|
12012
12012
|
|
|
12013
12013
|
if (!this.anexo.name) {
|
|
12014
12014
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -12018,11 +12018,7 @@ var script$6 = {
|
|
|
12018
12018
|
if (!this.anexo.nomeGravacao) {
|
|
12019
12019
|
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
12020
12020
|
status = false;
|
|
12021
|
-
}
|
|
12022
|
-
// this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
12023
|
-
// status = false;
|
|
12024
|
-
// }
|
|
12025
|
-
|
|
12021
|
+
}
|
|
12026
12022
|
|
|
12027
12023
|
if (!this.anexo.type) {
|
|
12028
12024
|
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
@@ -12031,14 +12027,10 @@ var script$6 = {
|
|
|
12031
12027
|
|
|
12032
12028
|
if (status == false) {
|
|
12033
12029
|
this.imgErro = true;
|
|
12034
|
-
this.
|
|
12030
|
+
this.isLoading = false;
|
|
12035
12031
|
}
|
|
12036
12032
|
|
|
12037
12033
|
return status;
|
|
12038
|
-
},
|
|
12039
|
-
|
|
12040
|
-
gerarIcone() {
|
|
12041
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
12042
12034
|
}
|
|
12043
12035
|
|
|
12044
12036
|
}
|
|
@@ -12081,7 +12073,7 @@ var __vue_render__$6 = function () {
|
|
|
12081
12073
|
attrs: {
|
|
12082
12074
|
"icon": ['fas', 'file-image']
|
|
12083
12075
|
}
|
|
12084
|
-
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.
|
|
12076
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
|
|
12085
12077
|
key: "anexo-loader",
|
|
12086
12078
|
attrs: {
|
|
12087
12079
|
"small": true,
|
|
@@ -12090,17 +12082,17 @@ var __vue_render__$6 = function () {
|
|
|
12090
12082
|
}) : _c('div', {
|
|
12091
12083
|
key: "anexo-mensagem",
|
|
12092
12084
|
staticClass: "anexo-mensagem"
|
|
12093
|
-
}, [_vm.
|
|
12085
|
+
}, [_vm.imageURL ? _c('img', {
|
|
12094
12086
|
attrs: {
|
|
12095
|
-
"src": _vm.
|
|
12087
|
+
"src": _vm.imageURL,
|
|
12096
12088
|
"alt": _vm.dictionary.alt_msg_img
|
|
12097
12089
|
},
|
|
12098
12090
|
on: {
|
|
12099
12091
|
"click": function ($event) {
|
|
12100
|
-
return _vm.
|
|
12092
|
+
return _vm.showImage(_vm.imageURL);
|
|
12101
12093
|
}
|
|
12102
12094
|
}
|
|
12103
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
12095
|
+
}) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
|
|
12104
12096
|
staticClass: "anexos-links-container"
|
|
12105
12097
|
}, [_c('a', {
|
|
12106
12098
|
attrs: {
|
|
@@ -12108,7 +12100,8 @@ var __vue_render__$6 = function () {
|
|
|
12108
12100
|
},
|
|
12109
12101
|
on: {
|
|
12110
12102
|
"click": function ($event) {
|
|
12111
|
-
|
|
12103
|
+
$event.preventDefault();
|
|
12104
|
+
return _vm.showImage(_vm.imageURL);
|
|
12112
12105
|
}
|
|
12113
12106
|
}
|
|
12114
12107
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
|
|
@@ -12117,63 +12110,64 @@ var __vue_render__$6 = function () {
|
|
|
12117
12110
|
},
|
|
12118
12111
|
on: {
|
|
12119
12112
|
"click": function ($event) {
|
|
12120
|
-
return _vm.
|
|
12113
|
+
return _vm.showImage(_vm.imageURL);
|
|
12121
12114
|
}
|
|
12122
12115
|
}
|
|
12123
|
-
})], 1) : _vm.
|
|
12116
|
+
})], 1) : _vm.docURL ? _c('div', {
|
|
12124
12117
|
staticClass: "anexo-container"
|
|
12125
12118
|
}, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
|
|
12126
12119
|
attrs: {
|
|
12127
|
-
"src": _vm.
|
|
12120
|
+
"src": _vm.docURL,
|
|
12128
12121
|
"controls": "",
|
|
12129
|
-
"title": _vm.
|
|
12122
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12130
12123
|
}
|
|
12131
12124
|
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
|
|
12132
12125
|
attrs: {
|
|
12133
|
-
"href": _vm.
|
|
12126
|
+
"href": _vm.docURL,
|
|
12134
12127
|
"target": "_blank",
|
|
12135
12128
|
"rel": "noreferrer noopener"
|
|
12136
12129
|
}
|
|
12137
12130
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
|
|
12138
12131
|
attrs: {
|
|
12139
|
-
"src": _vm.
|
|
12132
|
+
"src": _vm.docURL,
|
|
12140
12133
|
"controls": "",
|
|
12141
|
-
"title": _vm.
|
|
12134
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12142
12135
|
}
|
|
12143
|
-
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.
|
|
12136
|
+
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
|
|
12144
12137
|
attrs: {
|
|
12145
|
-
"href": _vm.
|
|
12138
|
+
"href": _vm.docURL,
|
|
12146
12139
|
"target": "_blank",
|
|
12147
12140
|
"rel": "noreferrer noopener"
|
|
12148
12141
|
}
|
|
12149
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.
|
|
12142
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
|
|
12150
12143
|
attrs: {
|
|
12151
|
-
"href": _vm.
|
|
12144
|
+
"href": _vm.docURL,
|
|
12152
12145
|
"target": "_blank",
|
|
12153
12146
|
"rel": "noreferrer noopener",
|
|
12154
|
-
"title": _vm.
|
|
12147
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12155
12148
|
}
|
|
12156
12149
|
}, [_c('fa-icon', {
|
|
12150
|
+
class: [_vm.iconClass],
|
|
12157
12151
|
attrs: {
|
|
12158
|
-
"icon":
|
|
12152
|
+
"icon": _vm.icon
|
|
12159
12153
|
}
|
|
12160
12154
|
}), _vm._v(" "), _c('p', {
|
|
12161
12155
|
domProps: {
|
|
12162
|
-
"textContent": _vm._s(_vm.
|
|
12156
|
+
"textContent": _vm._s(_vm.filename)
|
|
12163
12157
|
}
|
|
12164
12158
|
})], 1) : _c('p', {
|
|
12165
12159
|
staticClass: "arquivo-erro",
|
|
12166
12160
|
attrs: {
|
|
12167
|
-
"title": _vm.
|
|
12161
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12168
12162
|
}
|
|
12169
12163
|
}, [_c('fa-icon', {
|
|
12170
12164
|
attrs: {
|
|
12171
12165
|
"icon": ['fas', 'file-alt']
|
|
12172
12166
|
}
|
|
12173
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
12167
|
+
}), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
|
|
12174
12168
|
attrs: {
|
|
12175
|
-
"href": _vm.
|
|
12176
|
-
"download": "" + _vm.
|
|
12169
|
+
"href": _vm.imageURL,
|
|
12170
|
+
"download": "" + _vm.filename,
|
|
12177
12171
|
"target": "_blank",
|
|
12178
12172
|
"rel": "noreferrer noopener"
|
|
12179
12173
|
}
|
|
@@ -12181,10 +12175,10 @@ var __vue_render__$6 = function () {
|
|
|
12181
12175
|
attrs: {
|
|
12182
12176
|
"icon": ['fas', 'download']
|
|
12183
12177
|
}
|
|
12184
|
-
})], 1) : _vm._e(), _vm._v(" "), _vm.
|
|
12178
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
|
|
12185
12179
|
attrs: {
|
|
12186
|
-
"href": _vm.
|
|
12187
|
-
"download": "" + _vm.
|
|
12180
|
+
"href": _vm.docURL,
|
|
12181
|
+
"download": "" + _vm.filename,
|
|
12188
12182
|
"target": "_blank",
|
|
12189
12183
|
"rel": "noreferrer noopener"
|
|
12190
12184
|
}
|
|
@@ -12200,8 +12194,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
12200
12194
|
|
|
12201
12195
|
const __vue_inject_styles__$6 = function (inject) {
|
|
12202
12196
|
if (!inject) return;
|
|
12203
|
-
inject("data-v-
|
|
12204
|
-
source: ".fade-enter-active[data-v-
|
|
12197
|
+
inject("data-v-1a4340aa_0", {
|
|
12198
|
+
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}",
|
|
12205
12199
|
map: undefined,
|
|
12206
12200
|
media: undefined
|
|
12207
12201
|
});
|
|
@@ -12209,7 +12203,7 @@ const __vue_inject_styles__$6 = function (inject) {
|
|
|
12209
12203
|
/* scoped */
|
|
12210
12204
|
|
|
12211
12205
|
|
|
12212
|
-
const __vue_scope_id__$6 = "data-v-
|
|
12206
|
+
const __vue_scope_id__$6 = "data-v-1a4340aa";
|
|
12213
12207
|
/* module identifier */
|
|
12214
12208
|
|
|
12215
12209
|
const __vue_module_identifier__$6 = undefined;
|
|
@@ -12788,6 +12782,7 @@ var __vue_render__$3 = function () {
|
|
|
12788
12782
|
}, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
|
|
12789
12783
|
attrs: {
|
|
12790
12784
|
"interatividade": _vm.interatividade,
|
|
12785
|
+
"dominio": _vm.dominio,
|
|
12791
12786
|
"anexos": _vm.anexos,
|
|
12792
12787
|
"dictionary": _vm.dictionary
|
|
12793
12788
|
}
|
|
@@ -13054,7 +13049,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
13054
13049
|
|
|
13055
13050
|
const __vue_inject_styles__$3 = function (inject) {
|
|
13056
13051
|
if (!inject) return;
|
|
13057
|
-
inject("data-v-
|
|
13052
|
+
inject("data-v-dded57e0_0", {
|
|
13058
13053
|
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}",
|
|
13059
13054
|
map: undefined,
|
|
13060
13055
|
media: undefined
|