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
|
@@ -9008,9 +9008,11 @@ var script$f = {
|
|
|
9008
9008
|
for (var key in template) {
|
|
9009
9009
|
if (key === "components" && Array.isArray(template[key])) {
|
|
9010
9010
|
template[key].map(function (component) {
|
|
9011
|
-
component.parameters.
|
|
9012
|
-
|
|
9013
|
-
|
|
9011
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9012
|
+
component.parameters.map(function (param) {
|
|
9013
|
+
fullText += param.text;
|
|
9014
|
+
});
|
|
9015
|
+
}
|
|
9014
9016
|
});
|
|
9015
9017
|
}
|
|
9016
9018
|
}
|
|
@@ -9088,41 +9090,44 @@ var script$f = {
|
|
|
9088
9090
|
for (var index in this.selectedTemplate) {
|
|
9089
9091
|
if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
|
|
9090
9092
|
var arrComponents = this.selectedTemplate[index];
|
|
9091
|
-
arrComponents.map(function (component) {
|
|
9092
|
-
if (component && component.parameters && component.parameters.length) {
|
|
9093
|
-
component.parameters.map(function (message) {
|
|
9094
|
-
message.currentText = message.text;
|
|
9095
|
-
var keyIndex = 0;
|
|
9096
9093
|
|
|
9097
|
-
|
|
9098
|
-
|
|
9094
|
+
if (arrComponents && arrComponents.length) {
|
|
9095
|
+
arrComponents.map(function (component) {
|
|
9096
|
+
if (component && component.parameters && component.parameters.length) {
|
|
9097
|
+
component.parameters.map(function (message) {
|
|
9098
|
+
message.currentText = message.text;
|
|
9099
|
+
var keyIndex = 0;
|
|
9099
9100
|
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
if (component.type === "header") {
|
|
9103
|
-
_this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9101
|
+
while (keyIndex < keys.length) {
|
|
9102
|
+
var varName = "{{".concat(keys[keyIndex], "}}");
|
|
9104
9103
|
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
} else if (!_this.selectedTemplate['parameters'][component.type]) {
|
|
9110
|
-
_this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9111
|
-
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9104
|
+
if (message.text.indexOf(varName) != -1) {
|
|
9105
|
+
/**Gerando os obejetos de parametros da notificacao para o component */
|
|
9106
|
+
if (component.type === "header") {
|
|
9107
|
+
_this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
|
|
9112
9108
|
|
|
9109
|
+
_this.selectedTemplate['parameters'][component.type] = {
|
|
9110
|
+
tipo: "text",
|
|
9111
|
+
text: values[keyIndex]
|
|
9112
|
+
};
|
|
9113
|
+
} else if (!_this.selectedTemplate['parameters'][component.type]) {
|
|
9114
|
+
_this.selectedTemplate['parameters'][component.type] = new Array();
|
|
9115
|
+
} //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
|
|
9113
9116
|
|
|
9114
|
-
|
|
9115
|
-
_this.selectedTemplate['parameters'][component.type].
|
|
9117
|
+
|
|
9118
|
+
if (_this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
|
|
9119
|
+
_this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
|
|
9120
|
+
}
|
|
9121
|
+
|
|
9122
|
+
message.currentText = message.currentText.replace(varName, values[keyIndex]);
|
|
9116
9123
|
}
|
|
9117
9124
|
|
|
9118
|
-
|
|
9125
|
+
keyIndex++;
|
|
9119
9126
|
}
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
}
|
|
9125
|
-
});
|
|
9127
|
+
});
|
|
9128
|
+
}
|
|
9129
|
+
});
|
|
9130
|
+
}
|
|
9126
9131
|
}
|
|
9127
9132
|
}
|
|
9128
9133
|
|
|
@@ -9208,7 +9213,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9208
9213
|
|
|
9209
9214
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
9210
9215
|
if (!inject) return;
|
|
9211
|
-
inject("data-v-
|
|
9216
|
+
inject("data-v-5a97ed34_0", {
|
|
9212
9217
|
source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-select .vs__selected-options>input{flex-grow:0}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;flex:2;font-size:.7rem;padding:10px 0}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:2.5px;border-top-right-radius:2.5px;border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 5px;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{outline:unset;border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active,.tg-btn button:focus{outline:unset}.tg-btn.small-btn{width:auto;margin-left:5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:2.5px;display:flex}",
|
|
9213
9218
|
map: undefined,
|
|
9214
9219
|
media: undefined
|
|
@@ -9220,7 +9225,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
9220
9225
|
var __vue_scope_id__$f = undefined;
|
|
9221
9226
|
/* module identifier */
|
|
9222
9227
|
|
|
9223
|
-
var __vue_module_identifier__$f = "data-v-
|
|
9228
|
+
var __vue_module_identifier__$f = "data-v-5a97ed34";
|
|
9224
9229
|
/* functional template */
|
|
9225
9230
|
|
|
9226
9231
|
var __vue_is_functional_template__$f = false;
|
|
@@ -9694,49 +9699,56 @@ var __vue_component__$k = __vue_component__$j;var textoLongo = {
|
|
|
9694
9699
|
console.error("Ignorando anexo devido a erro");
|
|
9695
9700
|
console.error(e);
|
|
9696
9701
|
}
|
|
9697
|
-
}
|
|
9698
|
-
var script$d = {
|
|
9699
|
-
props: {
|
|
9700
|
-
file: {
|
|
9701
|
-
type: Object,
|
|
9702
|
-
required: true
|
|
9703
|
-
},
|
|
9704
|
-
dictionary: {
|
|
9705
|
-
type: Object,
|
|
9706
|
-
required: true
|
|
9707
|
-
},
|
|
9708
|
-
domain: {
|
|
9709
|
-
type: String,
|
|
9710
|
-
required: true
|
|
9711
|
-
}
|
|
9712
|
-
},
|
|
9713
|
-
computed: {
|
|
9714
|
-
currentClass: function currentClass() {
|
|
9715
|
-
return this.fileExt === "pdf" ? "pdf" : "doc";
|
|
9716
|
-
}
|
|
9717
|
-
},
|
|
9702
|
+
}var fileHandler = {
|
|
9718
9703
|
data: function data() {
|
|
9719
9704
|
return {
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9705
|
+
isLoading: true,
|
|
9706
|
+
isFile: false,
|
|
9707
|
+
imageURL: "",
|
|
9708
|
+
fileType: "",
|
|
9709
|
+
docURL: "",
|
|
9710
|
+
filename: "",
|
|
9726
9711
|
audio: false,
|
|
9727
9712
|
video: false,
|
|
9728
9713
|
icon: []
|
|
9729
9714
|
};
|
|
9730
9715
|
},
|
|
9731
|
-
|
|
9732
|
-
|
|
9716
|
+
computed: {
|
|
9717
|
+
iconClass: function iconClass() {
|
|
9718
|
+
return this.fileType === "pdf" ? "pdf" : "doc";
|
|
9719
|
+
}
|
|
9733
9720
|
},
|
|
9734
9721
|
methods: {
|
|
9735
|
-
|
|
9722
|
+
openWindowFromURL: function openWindowFromURL(link, isImg) {
|
|
9723
|
+
var viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
|
|
9724
|
+
|
|
9725
|
+
if (!isImg && !viewableExtensions.includes(this.fileType)) {
|
|
9726
|
+
var a = document.createElement("a");
|
|
9727
|
+
a.setAttribute("href", link);
|
|
9728
|
+
a.setAttribute("download", this.filename);
|
|
9729
|
+
a.setAttribute("target", "_blank");
|
|
9730
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
9731
|
+
a.click();
|
|
9732
|
+
return;
|
|
9733
|
+
}
|
|
9734
|
+
|
|
9735
|
+
var width = window.innerWidth;
|
|
9736
|
+
var height = window.innerHeight;
|
|
9737
|
+
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
9738
|
+
window.open(link, "anexo-ra", options);
|
|
9739
|
+
},
|
|
9740
|
+
showImage: function showImage(image) {
|
|
9741
|
+
if (!image) return console.warn("Não foi possível abrir a imagem");
|
|
9742
|
+
this.$emit("abrir-imagem", image);
|
|
9743
|
+
},
|
|
9744
|
+
setFileVars: function setFileVars(rawFile, storeObj) {
|
|
9736
9745
|
try {
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9746
|
+
if (!rawFile) {
|
|
9747
|
+
this.isLoading = false;
|
|
9748
|
+
return console.warn("Anexo recebido invalido");
|
|
9749
|
+
}
|
|
9750
|
+
|
|
9751
|
+
var _gerarVariaveisAnexo = gerarVariaveisAnexo(rawFile, storeObj),
|
|
9740
9752
|
anexo = _gerarVariaveisAnexo.anexo,
|
|
9741
9753
|
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
9742
9754
|
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
@@ -9745,29 +9757,45 @@ var script$d = {
|
|
|
9745
9757
|
audio = _gerarVariaveisAnexo.audio,
|
|
9746
9758
|
video = _gerarVariaveisAnexo.video;
|
|
9747
9759
|
|
|
9748
|
-
this.
|
|
9749
|
-
this.
|
|
9750
|
-
this.
|
|
9751
|
-
this.
|
|
9752
|
-
this.
|
|
9760
|
+
this.isFile = anexo;
|
|
9761
|
+
this.imageURL = imgAnexo;
|
|
9762
|
+
this.fileType = tipoDoc;
|
|
9763
|
+
this.docURL = docAnexo;
|
|
9764
|
+
this.filename = nomeArquivo;
|
|
9753
9765
|
this.audio = audio;
|
|
9754
9766
|
this.video = video;
|
|
9755
|
-
this.
|
|
9756
|
-
this.
|
|
9767
|
+
this.setIcon();
|
|
9768
|
+
this.isLoading = false;
|
|
9757
9769
|
} catch (e) {
|
|
9758
9770
|
console.error("Erro ao gerar as variaveis dos anexos");
|
|
9759
9771
|
console.error(e);
|
|
9760
9772
|
}
|
|
9761
9773
|
},
|
|
9762
|
-
|
|
9763
|
-
this.icon = this.
|
|
9774
|
+
setIcon: function setIcon() {
|
|
9775
|
+
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
};//
|
|
9779
|
+
var script$d = {
|
|
9780
|
+
mixins: [fileHandler],
|
|
9781
|
+
props: {
|
|
9782
|
+
file: {
|
|
9783
|
+
type: Object,
|
|
9784
|
+
required: true
|
|
9785
|
+
},
|
|
9786
|
+
dictionary: {
|
|
9787
|
+
type: Object,
|
|
9788
|
+
required: true
|
|
9764
9789
|
},
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
9769
|
-
window.open(link, "card-file", options);
|
|
9790
|
+
domain: {
|
|
9791
|
+
type: String,
|
|
9792
|
+
required: true
|
|
9770
9793
|
}
|
|
9794
|
+
},
|
|
9795
|
+
mounted: function mounted() {
|
|
9796
|
+
this.setFileVars(this.file, {
|
|
9797
|
+
dominio: this.domain
|
|
9798
|
+
});
|
|
9771
9799
|
}
|
|
9772
9800
|
};/* script */
|
|
9773
9801
|
var __vue_script__$d = script$d;
|
|
@@ -9788,40 +9816,40 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9788
9816
|
"name": "fade",
|
|
9789
9817
|
"mode": "out-in"
|
|
9790
9818
|
}
|
|
9791
|
-
}, [_vm.
|
|
9819
|
+
}, [_vm.isLoading ? _c('div', {
|
|
9792
9820
|
key: "card-file-loader",
|
|
9793
9821
|
staticClass: "req-loader slow",
|
|
9794
9822
|
attrs: {
|
|
9795
9823
|
"small": true
|
|
9796
9824
|
}
|
|
9797
|
-
}) : [_vm.
|
|
9825
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
9798
9826
|
key: "card-file-img",
|
|
9799
9827
|
staticClass: "file-img box-shadow",
|
|
9800
9828
|
attrs: {
|
|
9801
|
-
"title": _vm.
|
|
9829
|
+
"title": _vm.filename
|
|
9802
9830
|
},
|
|
9803
9831
|
on: {
|
|
9804
9832
|
"click": function click($event) {
|
|
9805
|
-
return _vm.
|
|
9833
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
9806
9834
|
}
|
|
9807
9835
|
}
|
|
9808
9836
|
}, [_c('img', {
|
|
9809
9837
|
attrs: {
|
|
9810
|
-
"src": "" + _vm.
|
|
9811
|
-
"alt": _vm.
|
|
9838
|
+
"src": "" + _vm.imageURL,
|
|
9839
|
+
"alt": _vm.filename
|
|
9812
9840
|
}
|
|
9813
9841
|
})]) : _c('span', {
|
|
9814
9842
|
key: "card-file-doc",
|
|
9815
9843
|
staticClass: "file-icon",
|
|
9816
|
-
class: [_vm.
|
|
9844
|
+
class: [_vm.iconClass],
|
|
9817
9845
|
attrs: {
|
|
9818
|
-
"title": _vm.
|
|
9846
|
+
"title": _vm.filename,
|
|
9819
9847
|
"target": "_blank",
|
|
9820
9848
|
"rel": "noreferrer noopener"
|
|
9821
9849
|
},
|
|
9822
9850
|
on: {
|
|
9823
9851
|
"click": function click($event) {
|
|
9824
|
-
return _vm.
|
|
9852
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
9825
9853
|
}
|
|
9826
9854
|
}
|
|
9827
9855
|
}, [_c('fa-icon', {
|
|
@@ -9831,11 +9859,11 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
9831
9859
|
})], 1), _vm._v(" "), _c('a', {
|
|
9832
9860
|
key: "card-file-download-icon",
|
|
9833
9861
|
attrs: {
|
|
9834
|
-
"href": _vm.
|
|
9835
|
-
"download": "" + _vm.
|
|
9862
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
9863
|
+
"download": "" + _vm.filename,
|
|
9836
9864
|
"target": "_blank",
|
|
9837
9865
|
"rel": "noreferrer noopener",
|
|
9838
|
-
"title": "Download " + _vm.
|
|
9866
|
+
"title": "Download " + _vm.filename
|
|
9839
9867
|
}
|
|
9840
9868
|
}, [_c('fa-icon', {
|
|
9841
9869
|
attrs: {
|
|
@@ -9849,11 +9877,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
9849
9877
|
|
|
9850
9878
|
var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
9851
9879
|
if (!inject) return;
|
|
9852
|
-
inject("data-v-
|
|
9853
|
-
source: ".fade-enter-active[data-v-
|
|
9880
|
+
inject("data-v-c0bc7096_0", {
|
|
9881
|
+
source: ".fade-enter-active[data-v-c0bc7096],.fade-leave-active[data-v-c0bc7096]{transition:opacity .5s}.fade-enter[data-v-c0bc7096],.fade-leave-to[data-v-c0bc7096]{opacity:0}",
|
|
9854
9882
|
map: undefined,
|
|
9855
9883
|
media: undefined
|
|
9856
|
-
}), inject("data-v-
|
|
9884
|
+
}), inject("data-v-c0bc7096_1", {
|
|
9857
9885
|
source: ".file-item{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item-transition{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item .req-loader{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.file-item-transition img{max-width:45px;max-height:45px}.file-item a{margin-left:5px;text-decoration:none;color:#333}.file-icon{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.file-icon:hover{opacity:1}.file-icon:visited{color:inherit}svg{font-size:30px;z-index:1}.file-icon.pdf{position:relative}.file-icon.pdf svg{color:#e74c3c}.file-icon.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.file-icon.doc{color:#15517f}.file-icon.doc::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.file-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.file-img:hover{opacity:1}.file-img img{width:95%}",
|
|
9858
9886
|
map: undefined,
|
|
9859
9887
|
media: undefined
|
|
@@ -9862,10 +9890,10 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
|
9862
9890
|
/* scoped */
|
|
9863
9891
|
|
|
9864
9892
|
|
|
9865
|
-
var __vue_scope_id__$d = "data-v-
|
|
9893
|
+
var __vue_scope_id__$d = "data-v-c0bc7096";
|
|
9866
9894
|
/* module identifier */
|
|
9867
9895
|
|
|
9868
|
-
var __vue_module_identifier__$d = "data-v-
|
|
9896
|
+
var __vue_module_identifier__$d = "data-v-c0bc7096";
|
|
9869
9897
|
/* functional template */
|
|
9870
9898
|
|
|
9871
9899
|
var __vue_is_functional_template__$d = false;
|
|
@@ -10406,9 +10434,7 @@ var script$9 = {
|
|
|
10406
10434
|
var width = window.innerWidth;
|
|
10407
10435
|
var height = window.innerHeight;
|
|
10408
10436
|
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10409
|
-
|
|
10410
|
-
console.log(urlformatted);
|
|
10411
|
-
window.open(urlformatted, "card-file", options);
|
|
10437
|
+
window.open("".concat(this.dominio, "/callcenter/docs.php?mku=").concat(url), "card-file", options);
|
|
10412
10438
|
},
|
|
10413
10439
|
validateInterativity: function validateInterativity() {
|
|
10414
10440
|
try {
|
|
@@ -10425,11 +10451,7 @@ var script$9 = {
|
|
|
10425
10451
|
try {
|
|
10426
10452
|
var formulario = this.interatividade.formulario;
|
|
10427
10453
|
formulario = formulario ? formulario : [];
|
|
10428
|
-
|
|
10429
|
-
if (!formulario.length) {
|
|
10430
|
-
return;
|
|
10431
|
-
}
|
|
10432
|
-
|
|
10454
|
+
if (!formulario.length) return;
|
|
10433
10455
|
var foundInfosAdd = formulario.filter(function (f) {
|
|
10434
10456
|
return f.TIPO_TEXTO > 999;
|
|
10435
10457
|
});
|
|
@@ -10447,9 +10469,7 @@ var script$9 = {
|
|
|
10447
10469
|
});
|
|
10448
10470
|
}
|
|
10449
10471
|
|
|
10450
|
-
if (foundInfosAdd)
|
|
10451
|
-
this.informacaoAdicional = foundInfosAdd;
|
|
10452
|
-
}
|
|
10472
|
+
if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
|
|
10453
10473
|
} catch (e) {
|
|
10454
10474
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10455
10475
|
console.error(e);
|
|
@@ -10469,16 +10489,16 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10469
10489
|
|
|
10470
10490
|
return _c('div', {
|
|
10471
10491
|
staticClass: "interatividade"
|
|
10472
|
-
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-
|
|
10473
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
10474
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
10475
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
10476
|
-
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-
|
|
10492
|
+
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-7b989966>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"interatividade-form-body\" data-v-7b989966>", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
10493
|
+
return "<div class=\"interatividade-info-form\" data-v-7b989966>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
10494
|
+
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-7b989966>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-7b989966>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
10495
|
+
return "<div class=\"interatividade-add-info-form\" data-v-7b989966><div class=\"divisor-form-info-aditional\" data-v-7b989966><div class=\"info-aditional\" data-v-7b989966>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-7b989966>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-7b989966>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
10496
|
+
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-7b989966>" + _vm._ssrEscape(_vm._s("Anexos")) + "</h3> "), _vm._ssrNode("<div class=\"d-flex flex-wrap align-items-center\" data-v-7b989966>", "</div>", _vm._l(_vm.anexos, function (ref, fileIndex) {
|
|
10477
10497
|
var name = ref.name;
|
|
10478
10498
|
var type = ref.type;
|
|
10479
10499
|
var mkuDownload = ref.mkuDownload;
|
|
10480
10500
|
var mku = ref.mku;
|
|
10481
|
-
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-
|
|
10501
|
+
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-7b989966>", "</div>", [!type ? _vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.dominio + "/callcenter/docs.php?mku=" + mku) + _vm._ssrAttr("alt", name) + _vm._ssrAttr("title", name) + " class=\"box-shadow max-w-75px max-h-75px cursor-pointer\" data-v-7b989966>", "</img>") : _c('fa-icon', {
|
|
10482
10502
|
class: _vm.returnCurrentClass(type),
|
|
10483
10503
|
attrs: {
|
|
10484
10504
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10489,12 +10509,12 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
10489
10509
|
return _vm.openFile(mku, type);
|
|
10490
10510
|
}
|
|
10491
10511
|
}
|
|
10492
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-
|
|
10512
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-7b989966>", "</a>", [_c('fa-icon', {
|
|
10493
10513
|
attrs: {
|
|
10494
10514
|
"icon": ['fas', 'download']
|
|
10495
10515
|
}
|
|
10496
10516
|
})], 1)], 2);
|
|
10497
|
-
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-
|
|
10517
|
+
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-7b989966>" + _vm._ssrEscape(_vm._s("Sem anexos")) + "</p>" : "<!---->"))], 2)] : _vm._e()], 2);
|
|
10498
10518
|
};
|
|
10499
10519
|
|
|
10500
10520
|
var __vue_staticRenderFns__$9 = [];
|
|
@@ -10502,8 +10522,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
10502
10522
|
|
|
10503
10523
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
10504
10524
|
if (!inject) return;
|
|
10505
|
-
inject("data-v-
|
|
10506
|
-
source: ".show-x-enter-active[data-v-
|
|
10525
|
+
inject("data-v-7b989966_0", {
|
|
10526
|
+
source: ".show-x-enter-active[data-v-7b989966],.show-x-leave-enter[data-v-7b989966]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7b989966],.show-x-leave-to[data-v-7b989966]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7b989966]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7b989966]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7b989966]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-7b989966]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-7b989966]{margin:10px 0}.interatividade-titulo-form[data-v-7b989966]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-7b989966]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7b989966]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7b989966]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7b989966]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7b989966]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7b989966]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7b989966]:hover{color:#00628f}.text-blue[data-v-7b989966]{color:#294ed3}.text-red[data-v-7b989966]{color:#e74c3c}.text-dark[data-v-7b989966]{color:#333}.ml-3[data-v-7b989966]{margin-left:3px}.fs-2[data-v-7b989966]{font-size:2rem}.flex-wrap[data-v-7b989966]{-ms-flex-wrap:wrap;flex-wrap:wrap}.align-items-center[data-v-7b989966]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.d-flex[data-v-7b989966]{display:-webkit-box;display:-ms-flexbox;display:flex}.align-items-end[data-v-7b989966]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.text-bold[data-v-7b989966]{font-weight:700}.m-5[data-v-7b989966]{margin:5px}.mb-5[data-v-7b989966]{margin-bottom:5px}.mx-5[data-v-7b989966]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-7b989966]{cursor:pointer}",
|
|
10507
10527
|
map: undefined,
|
|
10508
10528
|
media: undefined
|
|
10509
10529
|
});
|
|
@@ -10511,10 +10531,10 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
10511
10531
|
/* scoped */
|
|
10512
10532
|
|
|
10513
10533
|
|
|
10514
|
-
var __vue_scope_id__$9 = "data-v-
|
|
10534
|
+
var __vue_scope_id__$9 = "data-v-7b989966";
|
|
10515
10535
|
/* module identifier */
|
|
10516
10536
|
|
|
10517
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
10537
|
+
var __vue_module_identifier__$9 = "data-v-7b989966";
|
|
10518
10538
|
/* functional template */
|
|
10519
10539
|
|
|
10520
10540
|
var __vue_is_functional_template__$9 = false;
|
|
@@ -10527,6 +10547,7 @@ var __vue_component__$d = /*#__PURE__*/normalizeComponent({
|
|
|
10527
10547
|
|
|
10528
10548
|
var InteratividadeFormulario = __vue_component__$d;//
|
|
10529
10549
|
var script$8 = {
|
|
10550
|
+
mixins: [fileHandler],
|
|
10530
10551
|
props: {
|
|
10531
10552
|
anexo: {
|
|
10532
10553
|
type: Object,
|
|
@@ -10541,64 +10562,10 @@ var script$8 = {
|
|
|
10541
10562
|
required: true
|
|
10542
10563
|
}
|
|
10543
10564
|
},
|
|
10544
|
-
computed: {
|
|
10545
|
-
iconeClass: function iconeClass() {
|
|
10546
|
-
return this.tipoDoc === "pdf" ? "pdf" : "doc";
|
|
10547
|
-
}
|
|
10548
|
-
},
|
|
10549
|
-
data: function data() {
|
|
10550
|
-
return {
|
|
10551
|
-
carregando: true,
|
|
10552
|
-
isAnexo: false,
|
|
10553
|
-
imgAnexo: "",
|
|
10554
|
-
tipoDoc: "",
|
|
10555
|
-
docAnexo: "",
|
|
10556
|
-
nomeArquivo: "",
|
|
10557
|
-
audio: false,
|
|
10558
|
-
video: false,
|
|
10559
|
-
icone: []
|
|
10560
|
-
};
|
|
10561
|
-
},
|
|
10562
10565
|
mounted: function mounted() {
|
|
10563
|
-
this.
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10567
|
-
try {
|
|
10568
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10569
|
-
dominio: this.dominio
|
|
10570
|
-
}),
|
|
10571
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10572
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10573
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10574
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10575
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10576
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10577
|
-
video = _gerarVariaveisAnexo.video;
|
|
10578
|
-
|
|
10579
|
-
this.isAnexo = anexo;
|
|
10580
|
-
this.imgAnexo = imgAnexo;
|
|
10581
|
-
this.tipoDoc = tipoDoc;
|
|
10582
|
-
this.docAnexo = docAnexo;
|
|
10583
|
-
this.nomeArquivo = nomeArquivo;
|
|
10584
|
-
this.audio = audio;
|
|
10585
|
-
this.video = video;
|
|
10586
|
-
this.gerarIcone();
|
|
10587
|
-
this.carregando = false;
|
|
10588
|
-
} catch (e) {
|
|
10589
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10590
|
-
console.error(e);
|
|
10591
|
-
}
|
|
10592
|
-
},
|
|
10593
|
-
gerarIcone: function gerarIcone() {
|
|
10594
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10595
|
-
},
|
|
10596
|
-
abrirAnexo: function abrirAnexo(link, isImg) {
|
|
10597
|
-
var width = window.innerWidth;
|
|
10598
|
-
var height = window.innerHeight;
|
|
10599
|
-
var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
|
|
10600
|
-
window.open(link, "anexo-ra", options);
|
|
10601
|
-
}
|
|
10566
|
+
this.setFileVars(this.anexo, {
|
|
10567
|
+
dominio: this.dominio
|
|
10568
|
+
});
|
|
10602
10569
|
}
|
|
10603
10570
|
};/* script */
|
|
10604
10571
|
var __vue_script__$8 = script$8;
|
|
@@ -10619,54 +10586,54 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
10619
10586
|
"name": "fade",
|
|
10620
10587
|
"mode": "out-in"
|
|
10621
10588
|
}
|
|
10622
|
-
}, [_vm.
|
|
10589
|
+
}, [_vm.isLoading ? _c('div', {
|
|
10623
10590
|
key: "ra-loader-anexo",
|
|
10624
10591
|
staticClass: "req-loader slow",
|
|
10625
10592
|
attrs: {
|
|
10626
10593
|
"small": true
|
|
10627
10594
|
}
|
|
10628
|
-
}) : [_vm.
|
|
10595
|
+
}) : [_vm.imageURL ? _c('span', {
|
|
10629
10596
|
key: "ra-img-anexo",
|
|
10630
10597
|
staticClass: "anexo-img box-shadow",
|
|
10631
10598
|
attrs: {
|
|
10632
|
-
"title": _vm.
|
|
10599
|
+
"title": _vm.filename
|
|
10633
10600
|
},
|
|
10634
10601
|
on: {
|
|
10635
10602
|
"click": function click($event) {
|
|
10636
|
-
return _vm.
|
|
10603
|
+
return _vm.openWindowFromURL(_vm.imageURL, true);
|
|
10637
10604
|
}
|
|
10638
10605
|
}
|
|
10639
10606
|
}, [_c('img', {
|
|
10640
10607
|
attrs: {
|
|
10641
|
-
"src": "" + _vm.
|
|
10642
|
-
"alt": _vm.
|
|
10608
|
+
"src": "" + _vm.imageURL,
|
|
10609
|
+
"alt": _vm.filename
|
|
10643
10610
|
}
|
|
10644
10611
|
})]) : _c('span', {
|
|
10645
10612
|
key: "ra-doc-anexo",
|
|
10646
|
-
staticClass: "anexo-
|
|
10647
|
-
class: [_vm.
|
|
10613
|
+
staticClass: "anexo-icon",
|
|
10614
|
+
class: [_vm.iconClass],
|
|
10648
10615
|
attrs: {
|
|
10649
|
-
"title": _vm.
|
|
10616
|
+
"title": _vm.filename,
|
|
10650
10617
|
"target": "_blank",
|
|
10651
10618
|
"rel": "noreferrer noopener"
|
|
10652
10619
|
},
|
|
10653
10620
|
on: {
|
|
10654
10621
|
"click": function click($event) {
|
|
10655
|
-
return _vm.
|
|
10622
|
+
return _vm.openWindowFromURL(_vm.docURL, false);
|
|
10656
10623
|
}
|
|
10657
10624
|
}
|
|
10658
10625
|
}, [_c('fa-icon', {
|
|
10659
10626
|
attrs: {
|
|
10660
|
-
"icon": _vm.
|
|
10627
|
+
"icon": _vm.icon
|
|
10661
10628
|
}
|
|
10662
10629
|
})], 1), _vm._v(" "), _c('a', {
|
|
10663
10630
|
key: "ra-download-icon",
|
|
10664
10631
|
attrs: {
|
|
10665
|
-
"href": _vm.
|
|
10666
|
-
"download": "" + _vm.
|
|
10632
|
+
"href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
|
|
10633
|
+
"download": "" + _vm.filename,
|
|
10667
10634
|
"target": "_blank",
|
|
10668
10635
|
"rel": "noreferrer noopener",
|
|
10669
|
-
"title": "Download " + _vm.
|
|
10636
|
+
"title": "Download " + _vm.filename
|
|
10670
10637
|
}
|
|
10671
10638
|
}, [_c('fa-icon', {
|
|
10672
10639
|
attrs: {
|
|
@@ -10680,8 +10647,8 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
10680
10647
|
|
|
10681
10648
|
var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
10682
10649
|
if (!inject) return;
|
|
10683
|
-
inject("data-v-
|
|
10684
|
-
source: ".fade-enter-active[data-v-
|
|
10650
|
+
inject("data-v-0408a7b0_0", {
|
|
10651
|
+
source: ".fade-enter-active[data-v-0408a7b0],.fade-leave-active[data-v-0408a7b0]{transition:opacity .5s}.fade-enter[data-v-0408a7b0],.fade-leave-to[data-v-0408a7b0]{opacity:0}",
|
|
10685
10652
|
map: undefined,
|
|
10686
10653
|
media: undefined
|
|
10687
10654
|
});
|
|
@@ -10689,10 +10656,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
10689
10656
|
/* scoped */
|
|
10690
10657
|
|
|
10691
10658
|
|
|
10692
|
-
var __vue_scope_id__$8 = "data-v-
|
|
10659
|
+
var __vue_scope_id__$8 = "data-v-0408a7b0";
|
|
10693
10660
|
/* module identifier */
|
|
10694
10661
|
|
|
10695
|
-
var __vue_module_identifier__$8 = "data-v-
|
|
10662
|
+
var __vue_module_identifier__$8 = "data-v-0408a7b0";
|
|
10696
10663
|
/* functional template */
|
|
10697
10664
|
|
|
10698
10665
|
var __vue_is_functional_template__$8 = false;
|
|
@@ -10888,6 +10855,7 @@ var __vue_component__$a = /*#__PURE__*/normalizeComponent({
|
|
|
10888
10855
|
|
|
10889
10856
|
var __vue_component__$b = __vue_component__$a;//
|
|
10890
10857
|
var script$6 = {
|
|
10858
|
+
mixins: [fileHandler],
|
|
10891
10859
|
components: {
|
|
10892
10860
|
Loader: Loader
|
|
10893
10861
|
},
|
|
@@ -10911,61 +10879,22 @@ var script$6 = {
|
|
|
10911
10879
|
},
|
|
10912
10880
|
data: function data() {
|
|
10913
10881
|
return {
|
|
10914
|
-
carregando: true,
|
|
10915
|
-
isAnexo: false,
|
|
10916
|
-
imgAnexo: "",
|
|
10917
|
-
tipoDoc: "",
|
|
10918
|
-
docAnexo: "",
|
|
10919
|
-
nomeArquivo: "",
|
|
10920
|
-
audio: false,
|
|
10921
|
-
video: false,
|
|
10922
|
-
icone: [],
|
|
10923
10882
|
imgErro: false,
|
|
10924
10883
|
imgMsgErro: ''
|
|
10925
10884
|
};
|
|
10926
10885
|
},
|
|
10927
10886
|
mounted: function mounted() {
|
|
10928
10887
|
if (this.validarAnexo()) {
|
|
10929
|
-
this.
|
|
10888
|
+
this.setFileVars(this.anexo, {
|
|
10889
|
+
dominio: this.dominio
|
|
10890
|
+
});
|
|
10930
10891
|
}
|
|
10931
10892
|
},
|
|
10932
10893
|
methods: {
|
|
10933
|
-
abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
|
|
10934
|
-
this.$emit("abrir-imagem", imagem);
|
|
10935
|
-
},
|
|
10936
|
-
setVariaveisAnexo: function setVariaveisAnexo() {
|
|
10937
|
-
try {
|
|
10938
|
-
var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
|
|
10939
|
-
dominio: this.dominio
|
|
10940
|
-
}),
|
|
10941
|
-
anexo = _gerarVariaveisAnexo.anexo,
|
|
10942
|
-
imgAnexo = _gerarVariaveisAnexo.imgAnexo,
|
|
10943
|
-
tipoDoc = _gerarVariaveisAnexo.tipoDoc,
|
|
10944
|
-
docAnexo = _gerarVariaveisAnexo.docAnexo,
|
|
10945
|
-
nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
|
|
10946
|
-
audio = _gerarVariaveisAnexo.audio,
|
|
10947
|
-
video = _gerarVariaveisAnexo.video;
|
|
10948
|
-
|
|
10949
|
-
this.isAnexo = anexo;
|
|
10950
|
-
this.imgAnexo = imgAnexo;
|
|
10951
|
-
this.tipoDoc = tipoDoc;
|
|
10952
|
-
this.docAnexo = docAnexo;
|
|
10953
|
-
this.nomeArquivo = nomeArquivo;
|
|
10954
|
-
this.audio = audio;
|
|
10955
|
-
this.video = video;
|
|
10956
|
-
this.gerarIcone();
|
|
10957
|
-
this.carregando = false;
|
|
10958
|
-
} catch (e) {
|
|
10959
|
-
console.error("Erro ao gerar as variaveis dos anexos");
|
|
10960
|
-
console.error(e);
|
|
10961
|
-
}
|
|
10962
|
-
},
|
|
10963
10894
|
validarAnexo: function validarAnexo() {
|
|
10964
10895
|
var status = true; //caso for audio ou documento ignorar
|
|
10965
10896
|
|
|
10966
|
-
if (this.anexo.
|
|
10967
|
-
return true;
|
|
10968
|
-
}
|
|
10897
|
+
if (this.anexo.docURL || this.anexo.audio) return true;
|
|
10969
10898
|
|
|
10970
10899
|
if (!this.anexo.name) {
|
|
10971
10900
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -10975,11 +10904,7 @@ var script$6 = {
|
|
|
10975
10904
|
if (!this.anexo.nomeGravacao) {
|
|
10976
10905
|
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
10977
10906
|
status = false;
|
|
10978
|
-
}
|
|
10979
|
-
// this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
10980
|
-
// status = false;
|
|
10981
|
-
// }
|
|
10982
|
-
|
|
10907
|
+
}
|
|
10983
10908
|
|
|
10984
10909
|
if (!this.anexo.type) {
|
|
10985
10910
|
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
@@ -10988,13 +10913,10 @@ var script$6 = {
|
|
|
10988
10913
|
|
|
10989
10914
|
if (status == false) {
|
|
10990
10915
|
this.imgErro = true;
|
|
10991
|
-
this.
|
|
10916
|
+
this.isLoading = false;
|
|
10992
10917
|
}
|
|
10993
10918
|
|
|
10994
10919
|
return status;
|
|
10995
|
-
},
|
|
10996
|
-
gerarIcone: function gerarIcone() {
|
|
10997
|
-
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10998
10920
|
}
|
|
10999
10921
|
}
|
|
11000
10922
|
};/* script */
|
|
@@ -11034,7 +10956,7 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11034
10956
|
attrs: {
|
|
11035
10957
|
"icon": ['fas', 'file-image']
|
|
11036
10958
|
}
|
|
11037
|
-
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.
|
|
10959
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
|
|
11038
10960
|
key: "anexo-loader",
|
|
11039
10961
|
attrs: {
|
|
11040
10962
|
"small": true,
|
|
@@ -11043,17 +10965,17 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11043
10965
|
}) : _c('div', {
|
|
11044
10966
|
key: "anexo-mensagem",
|
|
11045
10967
|
staticClass: "anexo-mensagem"
|
|
11046
|
-
}, [_vm.
|
|
10968
|
+
}, [_vm.imageURL ? _c('img', {
|
|
11047
10969
|
attrs: {
|
|
11048
|
-
"src": _vm.
|
|
10970
|
+
"src": _vm.imageURL,
|
|
11049
10971
|
"alt": _vm.dictionary.alt_msg_img
|
|
11050
10972
|
},
|
|
11051
10973
|
on: {
|
|
11052
10974
|
"click": function click($event) {
|
|
11053
|
-
return _vm.
|
|
10975
|
+
return _vm.showImage(_vm.imageURL);
|
|
11054
10976
|
}
|
|
11055
10977
|
}
|
|
11056
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
10978
|
+
}) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
|
|
11057
10979
|
staticClass: "anexos-links-container"
|
|
11058
10980
|
}, [_c('a', {
|
|
11059
10981
|
attrs: {
|
|
@@ -11061,7 +10983,8 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11061
10983
|
},
|
|
11062
10984
|
on: {
|
|
11063
10985
|
"click": function click($event) {
|
|
11064
|
-
|
|
10986
|
+
$event.preventDefault();
|
|
10987
|
+
return _vm.showImage(_vm.imageURL);
|
|
11065
10988
|
}
|
|
11066
10989
|
}
|
|
11067
10990
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
|
|
@@ -11070,63 +10993,64 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11070
10993
|
},
|
|
11071
10994
|
on: {
|
|
11072
10995
|
"click": function click($event) {
|
|
11073
|
-
return _vm.
|
|
10996
|
+
return _vm.showImage(_vm.imageURL);
|
|
11074
10997
|
}
|
|
11075
10998
|
}
|
|
11076
|
-
})], 1) : _vm.
|
|
10999
|
+
})], 1) : _vm.docURL ? _c('div', {
|
|
11077
11000
|
staticClass: "anexo-container"
|
|
11078
11001
|
}, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
|
|
11079
11002
|
attrs: {
|
|
11080
|
-
"src": _vm.
|
|
11003
|
+
"src": _vm.docURL,
|
|
11081
11004
|
"controls": "",
|
|
11082
|
-
"title": _vm.
|
|
11005
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11083
11006
|
}
|
|
11084
11007
|
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
|
|
11085
11008
|
attrs: {
|
|
11086
|
-
"href": _vm.
|
|
11009
|
+
"href": _vm.docURL,
|
|
11087
11010
|
"target": "_blank",
|
|
11088
11011
|
"rel": "noreferrer noopener"
|
|
11089
11012
|
}
|
|
11090
11013
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
|
|
11091
11014
|
attrs: {
|
|
11092
|
-
"src": _vm.
|
|
11015
|
+
"src": _vm.docURL,
|
|
11093
11016
|
"controls": "",
|
|
11094
|
-
"title": _vm.
|
|
11017
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11095
11018
|
}
|
|
11096
|
-
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.
|
|
11019
|
+
}, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
|
|
11097
11020
|
attrs: {
|
|
11098
|
-
"href": _vm.
|
|
11021
|
+
"href": _vm.docURL,
|
|
11099
11022
|
"target": "_blank",
|
|
11100
11023
|
"rel": "noreferrer noopener"
|
|
11101
11024
|
}
|
|
11102
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.
|
|
11025
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
|
|
11103
11026
|
attrs: {
|
|
11104
|
-
"href": _vm.
|
|
11027
|
+
"href": _vm.docURL,
|
|
11105
11028
|
"target": "_blank",
|
|
11106
11029
|
"rel": "noreferrer noopener",
|
|
11107
|
-
"title": _vm.
|
|
11030
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11108
11031
|
}
|
|
11109
11032
|
}, [_c('fa-icon', {
|
|
11033
|
+
class: [_vm.iconClass],
|
|
11110
11034
|
attrs: {
|
|
11111
|
-
"icon":
|
|
11035
|
+
"icon": _vm.icon
|
|
11112
11036
|
}
|
|
11113
11037
|
}), _vm._v(" "), _c('p', {
|
|
11114
11038
|
domProps: {
|
|
11115
|
-
"textContent": _vm._s(_vm.
|
|
11039
|
+
"textContent": _vm._s(_vm.filename)
|
|
11116
11040
|
}
|
|
11117
11041
|
})], 1) : _c('p', {
|
|
11118
11042
|
staticClass: "arquivo-erro",
|
|
11119
11043
|
attrs: {
|
|
11120
|
-
"title": _vm.
|
|
11044
|
+
"title": _vm.fileType + " - " + _vm.filename
|
|
11121
11045
|
}
|
|
11122
11046
|
}, [_c('fa-icon', {
|
|
11123
11047
|
attrs: {
|
|
11124
11048
|
"icon": ['fas', 'file-alt']
|
|
11125
11049
|
}
|
|
11126
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
11050
|
+
}), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
|
|
11127
11051
|
attrs: {
|
|
11128
|
-
"href": _vm.
|
|
11129
|
-
"download": "" + _vm.
|
|
11052
|
+
"href": _vm.imageURL,
|
|
11053
|
+
"download": "" + _vm.filename,
|
|
11130
11054
|
"target": "_blank",
|
|
11131
11055
|
"rel": "noreferrer noopener"
|
|
11132
11056
|
}
|
|
@@ -11134,10 +11058,10 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11134
11058
|
attrs: {
|
|
11135
11059
|
"icon": ['fas', 'download']
|
|
11136
11060
|
}
|
|
11137
|
-
})], 1) : _vm._e(), _vm._v(" "), _vm.
|
|
11061
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
|
|
11138
11062
|
attrs: {
|
|
11139
|
-
"href": _vm.
|
|
11140
|
-
"download": "" + _vm.
|
|
11063
|
+
"href": _vm.docURL,
|
|
11064
|
+
"download": "" + _vm.filename,
|
|
11141
11065
|
"target": "_blank",
|
|
11142
11066
|
"rel": "noreferrer noopener"
|
|
11143
11067
|
}
|
|
@@ -11153,8 +11077,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11153
11077
|
|
|
11154
11078
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11155
11079
|
if (!inject) return;
|
|
11156
|
-
inject("data-v-
|
|
11157
|
-
source: ".fade-enter-active[data-v-
|
|
11080
|
+
inject("data-v-1a4340aa_0", {
|
|
11081
|
+
source: ".fade-enter-active[data-v-1a4340aa],.fade-leave-active[data-v-1a4340aa]{transition:opacity .5s}.fade-enter[data-v-1a4340aa],.fade-leave-to[data-v-1a4340aa]{opacity:0}.mensagem-div-anexo[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-1a4340aa]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container a[data-v-1a4340aa]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container p[data-v-1a4340aa]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-1a4340aa]{font-size:2rem}.anexo-container audio[data-v-1a4340aa]{outline:0;width:100%}.anexo-container video[data-v-1a4340aa]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-1a4340aa]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-1a4340aa]{cursor:pointer}.mensagem-div-anexo img[data-v-1a4340aa]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-1a4340aa]{width:100%;height:100%}.anexo-mensagem[data-v-1a4340aa]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-1a4340aa]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-1a4340aa]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-1a4340aa]{font-size:1.025em;margin-right:2px}.pdf[data-v-1a4340aa]{color:#e74c3c}.doc[data-v-1a4340aa]{color:#006bc9}",
|
|
11158
11082
|
map: undefined,
|
|
11159
11083
|
media: undefined
|
|
11160
11084
|
});
|
|
@@ -11162,10 +11086,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11162
11086
|
/* scoped */
|
|
11163
11087
|
|
|
11164
11088
|
|
|
11165
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11089
|
+
var __vue_scope_id__$6 = "data-v-1a4340aa";
|
|
11166
11090
|
/* module identifier */
|
|
11167
11091
|
|
|
11168
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11092
|
+
var __vue_module_identifier__$6 = "data-v-1a4340aa";
|
|
11169
11093
|
/* functional template */
|
|
11170
11094
|
|
|
11171
11095
|
var __vue_is_functional_template__$6 = false;
|