vue-intergrall-plugins 0.0.208 → 0.0.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-intergrall-plugins.esm.js +198 -279
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +201 -277
- package/package.json +1 -1
- package/src/lib-components/Cards/CardFile.vue +11 -67
- package/src/lib-components/Messages/AnexoMensagem.vue +36 -76
- package/src/lib-components/Messages/CardAttachment.vue +12 -68
- package/src/lib-components/Messages/InteratividadeFormulario.vue +10 -16
- package/src/lib-components/Templates/TemplateGenerator.vue +34 -30
|
@@ -9653,9 +9653,11 @@ var script$f = {
|
|
|
9653
9653
|
for (let key in template) {
|
|
9654
9654
|
if (key === "components" && Array.isArray(template[key])) {
|
|
9655
9655
|
template[key].map(component => {
|
|
9656
|
-
component.parameters.
|
|
9657
|
-
|
|
9658
|
-
|
|
9656
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9657
|
+
component.parameters.map(param => {
|
|
9658
|
+
fullText += param.text;
|
|
9659
|
+
});
|
|
9660
|
+
}
|
|
9659
9661
|
});
|
|
9660
9662
|
}
|
|
9661
9663
|
}
|
|
@@ -9739,41 +9741,44 @@ var script$f = {
|
|
|
9739
9741
|
for (let index in this.selectedTemplate) {
|
|
9740
9742
|
if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
|
|
9741
9743
|
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
9744
|
|
|
9748
|
-
|
|
9749
|
-
|
|
9745
|
+
if (arrComponents && arrComponents.length) {
|
|
9746
|
+
arrComponents.map(component => {
|
|
9747
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9748
|
+
component.parameters.map(message => {
|
|
9749
|
+
message.currentText = message.text;
|
|
9750
|
+
let keyIndex = 0;
|
|
9751
|
+
|
|
9752
|
+
while (keyIndex < keys.length) {
|
|
9753
|
+
const varName = `{{${keys[keyIndex]}}}`;
|
|
9750
9754
|
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
+
if (message.text.indexOf(varName) != -1) {
|
|
9756
|
+
/**Gerando os obejetos de parametros da notificacao para o component */
|
|
9757
|
+
if (component.type === "header") {
|
|
9758
|
+
this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9755
9759
|
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9760
|
+
this.selectedTemplate['parameters'][component.type] = {
|
|
9761
|
+
tipo: "text",
|
|
9762
|
+
text: values[keyIndex]
|
|
9763
|
+
};
|
|
9764
|
+
} else if (!this.selectedTemplate['parameters'][component.type]) {
|
|
9765
|
+
this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9766
|
+
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9763
9767
|
|
|
9764
9768
|
|
|
9765
|
-
|
|
9766
|
-
|
|
9769
|
+
if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
|
|
9770
|
+
this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
|
|
9771
|
+
}
|
|
9772
|
+
|
|
9773
|
+
message.currentText = message.currentText.replace(varName, values[keyIndex]);
|
|
9767
9774
|
}
|
|
9768
9775
|
|
|
9769
|
-
|
|
9776
|
+
keyIndex++;
|
|
9770
9777
|
}
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
}
|
|
9776
|
-
});
|
|
9778
|
+
});
|
|
9779
|
+
}
|
|
9780
|
+
});
|
|
9781
|
+
}
|
|
9777
9782
|
}
|
|
9778
9783
|
}
|
|
9779
9784
|
|
|
@@ -9870,7 +9875,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9870
9875
|
|
|
9871
9876
|
const __vue_inject_styles__$f = function (inject) {
|
|
9872
9877
|
if (!inject) return;
|
|
9873
|
-
inject("data-v-
|
|
9878
|
+
inject("data-v-5a97ed34_0", {
|
|
9874
9879
|
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
9880
|
map: undefined,
|
|
9876
9881
|
media: undefined
|
|
@@ -10426,50 +10431,59 @@ function gerarVariaveisAnexo(anexos, storeObj) {
|
|
|
10426
10431
|
}
|
|
10427
10432
|
}
|
|
10428
10433
|
|
|
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
|
-
|
|
10434
|
+
const fileHandler = {
|
|
10452
10435
|
data() {
|
|
10453
10436
|
return {
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10437
|
+
isLoading: true,
|
|
10438
|
+
isFile: false,
|
|
10439
|
+
imageURL: "",
|
|
10440
|
+
fileType: "",
|
|
10441
|
+
docURL: "",
|
|
10442
|
+
filename: "",
|
|
10460
10443
|
audio: false,
|
|
10461
10444
|
video: false,
|
|
10462
10445
|
icon: []
|
|
10463
10446
|
};
|
|
10464
10447
|
},
|
|
10465
10448
|
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10449
|
+
computed: {
|
|
10450
|
+
iconClass() {
|
|
10451
|
+
return this.fileType === "pdf" ? "pdf" : "doc";
|
|
10452
|
+
}
|
|
10469
10453
|
|
|
10454
|
+
},
|
|
10470
10455
|
methods: {
|
|
10471
|
-
|
|
10456
|
+
openWindowFromURL(link, isImg) {
|
|
10457
|
+
const viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
|
|
10458
|
+
|
|
10459
|
+
if (!isImg && !viewableExtensions.includes(this.fileType)) {
|
|
10460
|
+
const a = document.createElement("a");
|
|
10461
|
+
a.setAttribute("href", link);
|
|
10462
|
+
a.setAttribute("download", this.filename);
|
|
10463
|
+
a.setAttribute("target", "_blank");
|
|
10464
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
10465
|
+
a.click();
|
|
10466
|
+
return;
|
|
10467
|
+
}
|
|
10468
|
+
|
|
10469
|
+
const width = window.innerWidth;
|
|
10470
|
+
const height = window.innerHeight;
|
|
10471
|
+
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
10472
|
+
window.open(link, "anexo-ra", options);
|
|
10473
|
+
},
|
|
10474
|
+
|
|
10475
|
+
showImage(image) {
|
|
10476
|
+
if (!image) return console.warn("Não foi possível abrir a imagem");
|
|
10477
|
+
this.$emit("abrir-imagem", image);
|
|
10478
|
+
},
|
|
10479
|
+
|
|
10480
|
+
setFileVars(rawFile, storeObj) {
|
|
10472
10481
|
try {
|
|
10482
|
+
if (!rawFile) {
|
|
10483
|
+
this.isLoading = false;
|
|
10484
|
+
return console.warn("Anexo recebido invalido");
|
|
10485
|
+
}
|
|
10486
|
+
|
|
10473
10487
|
const {
|
|
10474
10488
|
anexo,
|
|
10475
10489
|
imgAnexo,
|
|
@@ -10478,36 +10492,53 @@ var script$d = {
|
|
|
10478
10492
|
nomeArquivo,
|
|
10479
10493
|
audio,
|
|
10480
10494
|
video
|
|
10481
|
-
} = gerarVariaveisAnexo(
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
this.
|
|
10485
|
-
this.
|
|
10486
|
-
this.
|
|
10487
|
-
this.docUrl = docAnexo;
|
|
10488
|
-
this.fileName = nomeArquivo;
|
|
10495
|
+
} = gerarVariaveisAnexo(rawFile, storeObj);
|
|
10496
|
+
this.isFile = anexo;
|
|
10497
|
+
this.imageURL = imgAnexo;
|
|
10498
|
+
this.fileType = tipoDoc;
|
|
10499
|
+
this.docURL = docAnexo;
|
|
10500
|
+
this.filename = nomeArquivo;
|
|
10489
10501
|
this.audio = audio;
|
|
10490
10502
|
this.video = video;
|
|
10491
|
-
this.
|
|
10492
|
-
this.
|
|
10503
|
+
this.setIcon();
|
|
10504
|
+
this.isLoading = false;
|
|
10493
10505
|
} catch (e) {
|
|
10494
10506
|
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10495
10507
|
console.error(e);
|
|
10496
10508
|
}
|
|
10497
10509
|
},
|
|
10498
10510
|
|
|
10499
|
-
|
|
10500
|
-
this.icon = this.
|
|
10501
|
-
}
|
|
10511
|
+
setIcon() {
|
|
10512
|
+
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10513
|
+
}
|
|
10502
10514
|
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10515
|
+
}
|
|
10516
|
+
};
|
|
10517
|
+
|
|
10518
|
+
//
|
|
10519
|
+
var script$d = {
|
|
10520
|
+
mixins: [fileHandler],
|
|
10521
|
+
props: {
|
|
10522
|
+
file: {
|
|
10523
|
+
type: Object,
|
|
10524
|
+
required: true
|
|
10525
|
+
},
|
|
10526
|
+
dictionary: {
|
|
10527
|
+
type: Object,
|
|
10528
|
+
required: true
|
|
10529
|
+
},
|
|
10530
|
+
domain: {
|
|
10531
|
+
type: String,
|
|
10532
|
+
required: true
|
|
10508
10533
|
}
|
|
10534
|
+
},
|
|
10509
10535
|
|
|
10536
|
+
mounted() {
|
|
10537
|
+
this.setFileVars(this.file, {
|
|
10538
|
+
dominio: this.domain
|
|
10539
|
+
});
|
|
10510
10540
|
}
|
|
10541
|
+
|
|
10511
10542
|
};
|
|
10512
10543
|
|
|
10513
10544
|
/* script */
|
|
@@ -10529,40 +10560,40 @@ var __vue_render__$d = function () {
|
|
|
10529
10560
|
"name": "fade",
|
|
10530
10561
|
"mode": "out-in"
|
|
10531
10562
|
}
|
|
10532
|
-
}, [_vm.
|
|
10563
|
+
}, [_vm.isLoading ? _c('div', {
|
|
10533
10564
|
key: "card-file-loader",
|
|
10534
10565
|
staticClass: "req-loader slow",
|
|
10535
10566
|
attrs: {
|
|
10536
10567
|
"small": true
|
|
10537
10568
|
}
|
|
10538
|
-
}) : [_vm.
|
|
10569
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
10539
10570
|
key: "card-file-img",
|
|
10540
10571
|
staticClass: "file-img box-shadow",
|
|
10541
10572
|
attrs: {
|
|
10542
|
-
"title": _vm.
|
|
10573
|
+
"title": _vm.filename
|
|
10543
10574
|
},
|
|
10544
10575
|
on: {
|
|
10545
10576
|
"click": function ($event) {
|
|
10546
|
-
return _vm.
|
|
10577
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
10547
10578
|
}
|
|
10548
10579
|
}
|
|
10549
10580
|
}, [_c('img', {
|
|
10550
10581
|
attrs: {
|
|
10551
|
-
"src": "" + _vm.
|
|
10552
|
-
"alt": _vm.
|
|
10582
|
+
"src": "" + _vm.imageURL,
|
|
10583
|
+
"alt": _vm.filename
|
|
10553
10584
|
}
|
|
10554
10585
|
})]) : _c('span', {
|
|
10555
10586
|
key: "card-file-doc",
|
|
10556
10587
|
staticClass: "file-icon",
|
|
10557
|
-
class: [_vm.
|
|
10588
|
+
class: [_vm.iconClass],
|
|
10558
10589
|
attrs: {
|
|
10559
|
-
"title": _vm.
|
|
10590
|
+
"title": _vm.filename,
|
|
10560
10591
|
"target": "_blank",
|
|
10561
10592
|
"rel": "noreferrer noopener"
|
|
10562
10593
|
},
|
|
10563
10594
|
on: {
|
|
10564
10595
|
"click": function ($event) {
|
|
10565
|
-
return _vm.
|
|
10596
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
10566
10597
|
}
|
|
10567
10598
|
}
|
|
10568
10599
|
}, [_c('fa-icon', {
|
|
@@ -10572,11 +10603,11 @@ var __vue_render__$d = function () {
|
|
|
10572
10603
|
})], 1), _vm._v(" "), _c('a', {
|
|
10573
10604
|
key: "card-file-download-icon",
|
|
10574
10605
|
attrs: {
|
|
10575
|
-
"href": _vm.
|
|
10576
|
-
"download": "" + _vm.
|
|
10606
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
10607
|
+
"download": "" + _vm.filename,
|
|
10577
10608
|
"target": "_blank",
|
|
10578
10609
|
"rel": "noreferrer noopener",
|
|
10579
|
-
"title": "Download " + _vm.
|
|
10610
|
+
"title": "Download " + _vm.filename
|
|
10580
10611
|
}
|
|
10581
10612
|
}, [_c('fa-icon', {
|
|
10582
10613
|
attrs: {
|
|
@@ -10590,11 +10621,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
10590
10621
|
|
|
10591
10622
|
const __vue_inject_styles__$d = function (inject) {
|
|
10592
10623
|
if (!inject) return;
|
|
10593
|
-
inject("data-v-
|
|
10594
|
-
source: ".fade-enter-active[data-v-
|
|
10624
|
+
inject("data-v-c0bc7096_0", {
|
|
10625
|
+
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
10626
|
map: undefined,
|
|
10596
10627
|
media: undefined
|
|
10597
|
-
}), inject("data-v-
|
|
10628
|
+
}), inject("data-v-c0bc7096_1", {
|
|
10598
10629
|
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
10630
|
map: undefined,
|
|
10600
10631
|
media: undefined
|
|
@@ -10603,7 +10634,7 @@ const __vue_inject_styles__$d = function (inject) {
|
|
|
10603
10634
|
/* scoped */
|
|
10604
10635
|
|
|
10605
10636
|
|
|
10606
|
-
const __vue_scope_id__$d = "data-v-
|
|
10637
|
+
const __vue_scope_id__$d = "data-v-c0bc7096";
|
|
10607
10638
|
/* module identifier */
|
|
10608
10639
|
|
|
10609
10640
|
const __vue_module_identifier__$d = undefined;
|
|
@@ -11270,9 +11301,7 @@ var script$9 = {
|
|
|
11270
11301
|
const width = window.innerWidth;
|
|
11271
11302
|
const height = window.innerHeight;
|
|
11272
11303
|
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
11273
|
-
|
|
11274
|
-
console.log(urlformatted);
|
|
11275
|
-
window.open(urlformatted, "card-file", options);
|
|
11304
|
+
window.open(`${this.dominio}/callcenter/docs.php?mku=${url}`, "card-file", options);
|
|
11276
11305
|
},
|
|
11277
11306
|
|
|
11278
11307
|
validateInterativity() {
|
|
@@ -11291,13 +11320,9 @@ var script$9 = {
|
|
|
11291
11320
|
formulario
|
|
11292
11321
|
} = this.interatividade;
|
|
11293
11322
|
formulario = formulario ? formulario : [];
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
}
|
|
11298
|
-
|
|
11299
|
-
let foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
11300
|
-
let foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
11323
|
+
if (!formulario.length) return;
|
|
11324
|
+
const foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
11325
|
+
const foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
11301
11326
|
|
|
11302
11327
|
if (foundInfos) {
|
|
11303
11328
|
this.informacao = foundInfos.map(info => {
|
|
@@ -11309,9 +11334,7 @@ var script$9 = {
|
|
|
11309
11334
|
});
|
|
11310
11335
|
}
|
|
11311
11336
|
|
|
11312
|
-
if (foundInfosAdd)
|
|
11313
|
-
this.informacaoAdicional = foundInfosAdd;
|
|
11314
|
-
}
|
|
11337
|
+
if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
|
|
11315
11338
|
} catch (e) {
|
|
11316
11339
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
11317
11340
|
console.error(e);
|
|
@@ -11443,8 +11466,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
11443
11466
|
|
|
11444
11467
|
const __vue_inject_styles__$9 = function (inject) {
|
|
11445
11468
|
if (!inject) return;
|
|
11446
|
-
inject("data-v-
|
|
11447
|
-
source: ".show-x-enter-active[data-v-
|
|
11469
|
+
inject("data-v-7b989966_0", {
|
|
11470
|
+
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}",
|
|
11448
11471
|
map: undefined,
|
|
11449
11472
|
media: undefined
|
|
11450
11473
|
});
|
|
@@ -11452,7 +11475,7 @@ const __vue_inject_styles__$9 = function (inject) {
|
|
|
11452
11475
|
/* scoped */
|
|
11453
11476
|
|
|
11454
11477
|
|
|
11455
|
-
const __vue_scope_id__$9 = "data-v-
|
|
11478
|
+
const __vue_scope_id__$9 = "data-v-7b989966";
|
|
11456
11479
|
/* module identifier */
|
|
11457
11480
|
|
|
11458
11481
|
const __vue_module_identifier__$9 = undefined;
|
|
@@ -11472,6 +11495,7 @@ var InteratividadeFormulario = __vue_component__$d;
|
|
|
11472
11495
|
|
|
11473
11496
|
//
|
|
11474
11497
|
var script$8 = {
|
|
11498
|
+
mixins: [fileHandler],
|
|
11475
11499
|
props: {
|
|
11476
11500
|
anexo: {
|
|
11477
11501
|
type: Object,
|
|
@@ -11486,72 +11510,13 @@ var script$8 = {
|
|
|
11486
11510
|
required: true
|
|
11487
11511
|
}
|
|
11488
11512
|
},
|
|
11489
|
-
computed: {
|
|
11490
|
-
iconeClass() {
|
|
11491
|
-
return this.tipoDoc === "pdf" ? "pdf" : "doc";
|
|
11492
|
-
}
|
|
11493
|
-
|
|
11494
|
-
},
|
|
11495
|
-
|
|
11496
|
-
data() {
|
|
11497
|
-
return {
|
|
11498
|
-
carregando: true,
|
|
11499
|
-
isAnexo: false,
|
|
11500
|
-
imgAnexo: "",
|
|
11501
|
-
tipoDoc: "",
|
|
11502
|
-
docAnexo: "",
|
|
11503
|
-
nomeArquivo: "",
|
|
11504
|
-
audio: false,
|
|
11505
|
-
video: false,
|
|
11506
|
-
icone: []
|
|
11507
|
-
};
|
|
11508
|
-
},
|
|
11509
11513
|
|
|
11510
11514
|
mounted() {
|
|
11511
|
-
this.
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
methods: {
|
|
11515
|
-
setVariaveisAnexo() {
|
|
11516
|
-
try {
|
|
11517
|
-
const {
|
|
11518
|
-
anexo,
|
|
11519
|
-
imgAnexo,
|
|
11520
|
-
tipoDoc,
|
|
11521
|
-
docAnexo,
|
|
11522
|
-
nomeArquivo,
|
|
11523
|
-
audio,
|
|
11524
|
-
video
|
|
11525
|
-
} = gerarVariaveisAnexo(this.anexo, {
|
|
11526
|
-
dominio: this.dominio
|
|
11527
|
-
});
|
|
11528
|
-
this.isAnexo = anexo;
|
|
11529
|
-
this.imgAnexo = imgAnexo;
|
|
11530
|
-
this.tipoDoc = tipoDoc;
|
|
11531
|
-
this.docAnexo = docAnexo;
|
|
11532
|
-
this.nomeArquivo = nomeArquivo;
|
|
11533
|
-
this.audio = audio;
|
|
11534
|
-
this.video = video;
|
|
11535
|
-
this.gerarIcone();
|
|
11536
|
-
this.carregando = false;
|
|
11537
|
-
} catch (e) {
|
|
11538
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
11539
|
-
console.error(e);
|
|
11540
|
-
}
|
|
11541
|
-
},
|
|
11542
|
-
|
|
11543
|
-
gerarIcone() {
|
|
11544
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
11545
|
-
},
|
|
11546
|
-
|
|
11547
|
-
abrirAnexo(link, isImg) {
|
|
11548
|
-
const width = window.innerWidth;
|
|
11549
|
-
const height = window.innerHeight;
|
|
11550
|
-
const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
|
|
11551
|
-
window.open(link, "anexo-ra", options);
|
|
11552
|
-
}
|
|
11553
|
-
|
|
11515
|
+
this.setFileVars(this.anexo, {
|
|
11516
|
+
dominio: this.dominio
|
|
11517
|
+
});
|
|
11554
11518
|
}
|
|
11519
|
+
|
|
11555
11520
|
};
|
|
11556
11521
|
|
|
11557
11522
|
/* script */
|
|
@@ -11573,54 +11538,54 @@ var __vue_render__$8 = function () {
|
|
|
11573
11538
|
"name": "fade",
|
|
11574
11539
|
"mode": "out-in"
|
|
11575
11540
|
}
|
|
11576
|
-
}, [_vm.
|
|
11541
|
+
}, [_vm.isLoading ? _c('div', {
|
|
11577
11542
|
key: "ra-loader-anexo",
|
|
11578
11543
|
staticClass: "req-loader slow",
|
|
11579
11544
|
attrs: {
|
|
11580
11545
|
"small": true
|
|
11581
11546
|
}
|
|
11582
|
-
}) : [_vm.
|
|
11547
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
11583
11548
|
key: "ra-img-anexo",
|
|
11584
11549
|
staticClass: "anexo-img box-shadow",
|
|
11585
11550
|
attrs: {
|
|
11586
|
-
"title": _vm.
|
|
11551
|
+
"title": _vm.filename
|
|
11587
11552
|
},
|
|
11588
11553
|
on: {
|
|
11589
11554
|
"click": function ($event) {
|
|
11590
|
-
return _vm.
|
|
11555
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
11591
11556
|
}
|
|
11592
11557
|
}
|
|
11593
11558
|
}, [_c('img', {
|
|
11594
11559
|
attrs: {
|
|
11595
|
-
"src": "" + _vm.
|
|
11596
|
-
"alt": _vm.
|
|
11560
|
+
"src": "" + _vm.imageURL,
|
|
11561
|
+
"alt": _vm.filename
|
|
11597
11562
|
}
|
|
11598
11563
|
})]) : _c('span', {
|
|
11599
11564
|
key: "ra-doc-anexo",
|
|
11600
|
-
staticClass: "anexo-
|
|
11601
|
-
class: [_vm.
|
|
11565
|
+
staticClass: "anexo-icon",
|
|
11566
|
+
class: [_vm.iconClass],
|
|
11602
11567
|
attrs: {
|
|
11603
|
-
"title": _vm.
|
|
11568
|
+
"title": _vm.filename,
|
|
11604
11569
|
"target": "_blank",
|
|
11605
11570
|
"rel": "noreferrer noopener"
|
|
11606
11571
|
},
|
|
11607
11572
|
on: {
|
|
11608
11573
|
"click": function ($event) {
|
|
11609
|
-
return _vm.
|
|
11574
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
11610
11575
|
}
|
|
11611
11576
|
}
|
|
11612
11577
|
}, [_c('fa-icon', {
|
|
11613
11578
|
attrs: {
|
|
11614
|
-
"icon": _vm.
|
|
11579
|
+
"icon": _vm.icon
|
|
11615
11580
|
}
|
|
11616
11581
|
})], 1), _vm._v(" "), _c('a', {
|
|
11617
11582
|
key: "ra-download-icon",
|
|
11618
11583
|
attrs: {
|
|
11619
|
-
"href": _vm.
|
|
11620
|
-
"download": "" + _vm.
|
|
11584
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
11585
|
+
"download": "" + _vm.filename,
|
|
11621
11586
|
"target": "_blank",
|
|
11622
11587
|
"rel": "noreferrer noopener",
|
|
11623
|
-
"title": "Download " + _vm.
|
|
11588
|
+
"title": "Download " + _vm.filename
|
|
11624
11589
|
}
|
|
11625
11590
|
}, [_c('fa-icon', {
|
|
11626
11591
|
attrs: {
|
|
@@ -11634,8 +11599,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
11634
11599
|
|
|
11635
11600
|
const __vue_inject_styles__$8 = function (inject) {
|
|
11636
11601
|
if (!inject) return;
|
|
11637
|
-
inject("data-v-
|
|
11638
|
-
source: ".fade-enter-active[data-v-
|
|
11602
|
+
inject("data-v-0408a7b0_0", {
|
|
11603
|
+
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}",
|
|
11639
11604
|
map: undefined,
|
|
11640
11605
|
media: undefined
|
|
11641
11606
|
});
|
|
@@ -11643,7 +11608,7 @@ const __vue_inject_styles__$8 = function (inject) {
|
|
|
11643
11608
|
/* scoped */
|
|
11644
11609
|
|
|
11645
11610
|
|
|
11646
|
-
const __vue_scope_id__$8 = "data-v-
|
|
11611
|
+
const __vue_scope_id__$8 = "data-v-0408a7b0";
|
|
11647
11612
|
/* module identifier */
|
|
11648
11613
|
|
|
11649
11614
|
const __vue_module_identifier__$8 = undefined;
|
|
@@ -11930,6 +11895,7 @@ var __vue_component__$b = __vue_component__$a;
|
|
|
11930
11895
|
|
|
11931
11896
|
//
|
|
11932
11897
|
var script$6 = {
|
|
11898
|
+
mixins: [fileHandler],
|
|
11933
11899
|
components: {
|
|
11934
11900
|
Loader
|
|
11935
11901
|
},
|
|
@@ -11954,15 +11920,6 @@ var script$6 = {
|
|
|
11954
11920
|
|
|
11955
11921
|
data() {
|
|
11956
11922
|
return {
|
|
11957
|
-
carregando: true,
|
|
11958
|
-
isAnexo: false,
|
|
11959
|
-
imgAnexo: "",
|
|
11960
|
-
tipoDoc: "",
|
|
11961
|
-
docAnexo: "",
|
|
11962
|
-
nomeArquivo: "",
|
|
11963
|
-
audio: false,
|
|
11964
|
-
video: false,
|
|
11965
|
-
icone: [],
|
|
11966
11923
|
imgErro: false,
|
|
11967
11924
|
imgMsgErro: ''
|
|
11968
11925
|
};
|
|
@@ -11970,49 +11927,17 @@ var script$6 = {
|
|
|
11970
11927
|
|
|
11971
11928
|
mounted() {
|
|
11972
11929
|
if (this.validarAnexo()) {
|
|
11973
|
-
this.
|
|
11930
|
+
this.setFileVars(this.anexo, {
|
|
11931
|
+
dominio: this.dominio
|
|
11932
|
+
});
|
|
11974
11933
|
}
|
|
11975
11934
|
},
|
|
11976
11935
|
|
|
11977
11936
|
methods: {
|
|
11978
|
-
abrirVisualizacaoImg(imagem) {
|
|
11979
|
-
this.$emit("abrir-imagem", imagem);
|
|
11980
|
-
},
|
|
11981
|
-
|
|
11982
|
-
setVariaveisAnexo() {
|
|
11983
|
-
try {
|
|
11984
|
-
const {
|
|
11985
|
-
anexo,
|
|
11986
|
-
imgAnexo,
|
|
11987
|
-
tipoDoc,
|
|
11988
|
-
docAnexo,
|
|
11989
|
-
nomeArquivo,
|
|
11990
|
-
audio,
|
|
11991
|
-
video
|
|
11992
|
-
} = gerarVariaveisAnexo(this.anexo, {
|
|
11993
|
-
dominio: this.dominio
|
|
11994
|
-
});
|
|
11995
|
-
this.isAnexo = anexo;
|
|
11996
|
-
this.imgAnexo = imgAnexo;
|
|
11997
|
-
this.tipoDoc = tipoDoc;
|
|
11998
|
-
this.docAnexo = docAnexo;
|
|
11999
|
-
this.nomeArquivo = nomeArquivo;
|
|
12000
|
-
this.audio = audio;
|
|
12001
|
-
this.video = video;
|
|
12002
|
-
this.gerarIcone();
|
|
12003
|
-
this.carregando = false;
|
|
12004
|
-
} catch (e) {
|
|
12005
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
12006
|
-
console.error(e);
|
|
12007
|
-
}
|
|
12008
|
-
},
|
|
12009
|
-
|
|
12010
11937
|
validarAnexo() {
|
|
12011
11938
|
let status = true; //caso for audio ou documento ignorar
|
|
12012
11939
|
|
|
12013
|
-
if (this.anexo.
|
|
12014
|
-
return true;
|
|
12015
|
-
}
|
|
11940
|
+
if (this.anexo.docURL || this.anexo.audio) return true;
|
|
12016
11941
|
|
|
12017
11942
|
if (!this.anexo.name) {
|
|
12018
11943
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -12022,11 +11947,7 @@ var script$6 = {
|
|
|
12022
11947
|
if (!this.anexo.nomeGravacao) {
|
|
12023
11948
|
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
12024
11949
|
status = false;
|
|
12025
|
-
}
|
|
12026
|
-
// this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
12027
|
-
// status = false;
|
|
12028
|
-
// }
|
|
12029
|
-
|
|
11950
|
+
}
|
|
12030
11951
|
|
|
12031
11952
|
if (!this.anexo.type) {
|
|
12032
11953
|
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
@@ -12035,14 +11956,10 @@ var script$6 = {
|
|
|
12035
11956
|
|
|
12036
11957
|
if (status == false) {
|
|
12037
11958
|
this.imgErro = true;
|
|
12038
|
-
this.
|
|
11959
|
+
this.isLoading = false;
|
|
12039
11960
|
}
|
|
12040
11961
|
|
|
12041
11962
|
return status;
|
|
12042
|
-
},
|
|
12043
|
-
|
|
12044
|
-
gerarIcone() {
|
|
12045
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
12046
11963
|
}
|
|
12047
11964
|
|
|
12048
11965
|
}
|
|
@@ -12085,7 +12002,7 @@ var __vue_render__$6 = function () {
|
|
|
12085
12002
|
attrs: {
|
|
12086
12003
|
"icon": ['fas', 'file-image']
|
|
12087
12004
|
}
|
|
12088
|
-
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.
|
|
12005
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
|
|
12089
12006
|
key: "anexo-loader",
|
|
12090
12007
|
attrs: {
|
|
12091
12008
|
"small": true,
|
|
@@ -12094,17 +12011,17 @@ var __vue_render__$6 = function () {
|
|
|
12094
12011
|
}) : _c('div', {
|
|
12095
12012
|
key: "anexo-mensagem",
|
|
12096
12013
|
staticClass: "anexo-mensagem"
|
|
12097
|
-
}, [_vm.
|
|
12014
|
+
}, [_vm.imageURL ? _c('img', {
|
|
12098
12015
|
attrs: {
|
|
12099
|
-
"src": _vm.
|
|
12016
|
+
"src": _vm.imageURL,
|
|
12100
12017
|
"alt": _vm.dictionary.alt_msg_img
|
|
12101
12018
|
},
|
|
12102
12019
|
on: {
|
|
12103
12020
|
"click": function ($event) {
|
|
12104
|
-
return _vm.
|
|
12021
|
+
return _vm.showImage(_vm.imageURL);
|
|
12105
12022
|
}
|
|
12106
12023
|
}
|
|
12107
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
12024
|
+
}) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
|
|
12108
12025
|
staticClass: "anexos-links-container"
|
|
12109
12026
|
}, [_c('a', {
|
|
12110
12027
|
attrs: {
|
|
@@ -12112,7 +12029,8 @@ var __vue_render__$6 = function () {
|
|
|
12112
12029
|
},
|
|
12113
12030
|
on: {
|
|
12114
12031
|
"click": function ($event) {
|
|
12115
|
-
|
|
12032
|
+
$event.preventDefault();
|
|
12033
|
+
return _vm.showImage(_vm.imageURL);
|
|
12116
12034
|
}
|
|
12117
12035
|
}
|
|
12118
12036
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
|
|
@@ -12121,63 +12039,64 @@ var __vue_render__$6 = function () {
|
|
|
12121
12039
|
},
|
|
12122
12040
|
on: {
|
|
12123
12041
|
"click": function ($event) {
|
|
12124
|
-
return _vm.
|
|
12042
|
+
return _vm.showImage(_vm.imageURL);
|
|
12125
12043
|
}
|
|
12126
12044
|
}
|
|
12127
|
-
})], 1) : _vm.
|
|
12045
|
+
})], 1) : _vm.docURL ? _c('div', {
|
|
12128
12046
|
staticClass: "anexo-container"
|
|
12129
12047
|
}, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
|
|
12130
12048
|
attrs: {
|
|
12131
|
-
"src": _vm.
|
|
12049
|
+
"src": _vm.docURL,
|
|
12132
12050
|
"controls": "",
|
|
12133
|
-
"title": _vm.
|
|
12051
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12134
12052
|
}
|
|
12135
12053
|
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
|
|
12136
12054
|
attrs: {
|
|
12137
|
-
"href": _vm.
|
|
12055
|
+
"href": _vm.docURL,
|
|
12138
12056
|
"target": "_blank",
|
|
12139
12057
|
"rel": "noreferrer noopener"
|
|
12140
12058
|
}
|
|
12141
12059
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
|
|
12142
12060
|
attrs: {
|
|
12143
|
-
"src": _vm.
|
|
12061
|
+
"src": _vm.docURL,
|
|
12144
12062
|
"controls": "",
|
|
12145
|
-
"title": _vm.
|
|
12063
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12146
12064
|
}
|
|
12147
|
-
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.
|
|
12065
|
+
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
|
|
12148
12066
|
attrs: {
|
|
12149
|
-
"href": _vm.
|
|
12067
|
+
"href": _vm.docURL,
|
|
12150
12068
|
"target": "_blank",
|
|
12151
12069
|
"rel": "noreferrer noopener"
|
|
12152
12070
|
}
|
|
12153
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.
|
|
12071
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
|
|
12154
12072
|
attrs: {
|
|
12155
|
-
"href": _vm.
|
|
12073
|
+
"href": _vm.docURL,
|
|
12156
12074
|
"target": "_blank",
|
|
12157
12075
|
"rel": "noreferrer noopener",
|
|
12158
|
-
"title": _vm.
|
|
12076
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12159
12077
|
}
|
|
12160
12078
|
}, [_c('fa-icon', {
|
|
12079
|
+
class: [_vm.iconClass],
|
|
12161
12080
|
attrs: {
|
|
12162
|
-
"icon":
|
|
12081
|
+
"icon": _vm.icon
|
|
12163
12082
|
}
|
|
12164
12083
|
}), _vm._v(" "), _c('p', {
|
|
12165
12084
|
domProps: {
|
|
12166
|
-
"textContent": _vm._s(_vm.
|
|
12085
|
+
"textContent": _vm._s(_vm.filename)
|
|
12167
12086
|
}
|
|
12168
12087
|
})], 1) : _c('p', {
|
|
12169
12088
|
staticClass: "arquivo-erro",
|
|
12170
12089
|
attrs: {
|
|
12171
|
-
"title": _vm.
|
|
12090
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
12172
12091
|
}
|
|
12173
12092
|
}, [_c('fa-icon', {
|
|
12174
12093
|
attrs: {
|
|
12175
12094
|
"icon": ['fas', 'file-alt']
|
|
12176
12095
|
}
|
|
12177
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
12096
|
+
}), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
|
|
12178
12097
|
attrs: {
|
|
12179
|
-
"href": _vm.
|
|
12180
|
-
"download": "" + _vm.
|
|
12098
|
+
"href": _vm.imageURL,
|
|
12099
|
+
"download": "" + _vm.filename,
|
|
12181
12100
|
"target": "_blank",
|
|
12182
12101
|
"rel": "noreferrer noopener"
|
|
12183
12102
|
}
|
|
@@ -12185,10 +12104,10 @@ var __vue_render__$6 = function () {
|
|
|
12185
12104
|
attrs: {
|
|
12186
12105
|
"icon": ['fas', 'download']
|
|
12187
12106
|
}
|
|
12188
|
-
})], 1) : _vm._e(), _vm._v(" "), _vm.
|
|
12107
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
|
|
12189
12108
|
attrs: {
|
|
12190
|
-
"href": _vm.
|
|
12191
|
-
"download": "" + _vm.
|
|
12109
|
+
"href": _vm.docURL,
|
|
12110
|
+
"download": "" + _vm.filename,
|
|
12192
12111
|
"target": "_blank",
|
|
12193
12112
|
"rel": "noreferrer noopener"
|
|
12194
12113
|
}
|
|
@@ -12204,8 +12123,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
12204
12123
|
|
|
12205
12124
|
const __vue_inject_styles__$6 = function (inject) {
|
|
12206
12125
|
if (!inject) return;
|
|
12207
|
-
inject("data-v-
|
|
12208
|
-
source: ".fade-enter-active[data-v-
|
|
12126
|
+
inject("data-v-1a4340aa_0", {
|
|
12127
|
+
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}",
|
|
12209
12128
|
map: undefined,
|
|
12210
12129
|
media: undefined
|
|
12211
12130
|
});
|
|
@@ -12213,7 +12132,7 @@ const __vue_inject_styles__$6 = function (inject) {
|
|
|
12213
12132
|
/* scoped */
|
|
12214
12133
|
|
|
12215
12134
|
|
|
12216
|
-
const __vue_scope_id__$6 = "data-v-
|
|
12135
|
+
const __vue_scope_id__$6 = "data-v-1a4340aa";
|
|
12217
12136
|
/* module identifier */
|
|
12218
12137
|
|
|
12219
12138
|
const __vue_module_identifier__$6 = undefined;
|