vue-intergrall-plugins 0.0.206 → 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.
@@ -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.map(function (param) {
9012
- fullText += param.text;
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
- while (keyIndex < keys.length) {
9098
- var varName = "{{".concat(keys[keyIndex], "}}");
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;
9100
+
9101
+ while (keyIndex < keys.length) {
9102
+ var varName = "{{".concat(keys[keyIndex], "}}");
9099
9103
 
9100
- if (message.text.indexOf(varName) != -1) {
9101
- /**Gerando os obejetos de parametros da notificacao para o component */
9102
- if (component.type === "header") {
9103
- _this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
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
9104
9108
 
9105
- _this.selectedTemplate['parameters'][component.type] = {
9106
- tipo: "text",
9107
- text: values[keyIndex]
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
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
9112
9116
 
9113
9117
 
9114
- if (_this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9115
- _this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
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
- message.currentText = message.currentText.replace(varName, values[keyIndex]);
9125
+ keyIndex++;
9119
9126
  }
9120
-
9121
- keyIndex++;
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-0b0bc59a_0", {
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-0b0bc59a";
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
- loading: true,
9721
- isAnexo: false,
9722
- imageUrl: "",
9723
- fileExt: "",
9724
- docUrl: "",
9725
- fileName: "",
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
- mounted: function mounted() {
9732
- this.setFileVars();
9716
+ computed: {
9717
+ iconClass: function iconClass() {
9718
+ return this.fileType === "pdf" ? "pdf" : "doc";
9719
+ }
9733
9720
  },
9734
9721
  methods: {
9735
- setFileVars: function setFileVars() {
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
- var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.file, {
9738
- dominio: this.domain
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.isAnexo = anexo;
9749
- this.imageUrl = imgAnexo;
9750
- this.fileExt = tipoDoc;
9751
- this.docUrl = docAnexo;
9752
- this.fileName = nomeArquivo;
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.generateIcon();
9756
- this.loading = false;
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
- generateIcon: function generateIcon() {
9763
- this.icon = this.fileExt === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
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
9764
9785
  },
9765
- openFile: function openFile(link, isImg) {
9766
- var width = window.innerWidth;
9767
- var height = window.innerHeight;
9768
- var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
9769
- window.open(link, "card-file", options);
9786
+ dictionary: {
9787
+ type: Object,
9788
+ required: true
9789
+ },
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.loading ? _c('div', {
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.imageUrl ? _c('span', {
9825
+ }) : [_vm.imageURL ? _c('span', {
9798
9826
  key: "card-file-img",
9799
9827
  staticClass: "file-img box-shadow",
9800
9828
  attrs: {
9801
- "title": _vm.fileName
9829
+ "title": _vm.filename
9802
9830
  },
9803
9831
  on: {
9804
9832
  "click": function click($event) {
9805
- return _vm.openFile(_vm.imageUrl, true);
9833
+ return _vm.openWindowFromURL(_vm.imageURL, true);
9806
9834
  }
9807
9835
  }
9808
9836
  }, [_c('img', {
9809
9837
  attrs: {
9810
- "src": "" + _vm.imageUrl,
9811
- "alt": _vm.fileName
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.currentClass],
9844
+ class: [_vm.iconClass],
9817
9845
  attrs: {
9818
- "title": _vm.fileName,
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.openFile(_vm.docUrl, false);
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.imageUrl ? _vm.imageUrl : _vm.docUrl,
9835
- "download": "" + _vm.fileName,
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.fileName
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-6f5fac81_0", {
9853
- source: ".fade-enter-active[data-v-6f5fac81],.fade-leave-active[data-v-6f5fac81]{transition:opacity .5s}.fade-enter[data-v-6f5fac81],.fade-leave-to[data-v-6f5fac81]{opacity:0}",
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-6f5fac81_1", {
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-6f5fac81";
9893
+ var __vue_scope_id__$d = "data-v-c0bc7096";
9866
9894
  /* module identifier */
9867
9895
 
9868
- var __vue_module_identifier__$d = "data-v-6f5fac81";
9896
+ var __vue_module_identifier__$d = "data-v-c0bc7096";
9869
9897
  /* functional template */
9870
9898
 
9871
9899
  var __vue_is_functional_template__$d = false;
@@ -10377,9 +10405,17 @@ var script$9 = {
10377
10405
  type: Object,
10378
10406
  required: true
10379
10407
  },
10408
+ dominio: {
10409
+ type: String,
10410
+ required: true
10411
+ },
10380
10412
  dictionary: {
10381
10413
  type: Object,
10382
10414
  required: true
10415
+ },
10416
+ anexos: {
10417
+ type: Array,
10418
+ required: false
10383
10419
  }
10384
10420
  },
10385
10421
  mounted: function mounted() {
@@ -10388,6 +10424,18 @@ var script$9 = {
10388
10424
  }
10389
10425
  },
10390
10426
  methods: {
10427
+ returnCurrentClass: function returnCurrentClass(isDoc) {
10428
+ return "fs-2 cursor-pointer ".concat(isDoc == 'pdf' ? 'text-red' : 'text-blue');
10429
+ },
10430
+ returnCurrentIcon: function returnCurrentIcon(isDoc) {
10431
+ return isDoc == 'pdf' ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10432
+ },
10433
+ openFile: function openFile(url, isImg) {
10434
+ var width = window.innerWidth;
10435
+ var height = window.innerHeight;
10436
+ var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
10437
+ window.open("".concat(this.dominio, "/callcenter/docs.php?mku=").concat(url), "card-file", options);
10438
+ },
10391
10439
  validateInterativity: function validateInterativity() {
10392
10440
  try {
10393
10441
  if (this.interatividade.formulario && this.interatividade.formulario.length) {
@@ -10403,11 +10451,7 @@ var script$9 = {
10403
10451
  try {
10404
10452
  var formulario = this.interatividade.formulario;
10405
10453
  formulario = formulario ? formulario : [];
10406
-
10407
- if (!formulario.length) {
10408
- return;
10409
- }
10410
-
10454
+ if (!formulario.length) return;
10411
10455
  var foundInfosAdd = formulario.filter(function (f) {
10412
10456
  return f.TIPO_TEXTO > 999;
10413
10457
  });
@@ -10425,9 +10469,7 @@ var script$9 = {
10425
10469
  });
10426
10470
  }
10427
10471
 
10428
- if (foundInfosAdd) {
10429
- this.informacaoAdicional = foundInfosAdd;
10430
- }
10472
+ if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
10431
10473
  } catch (e) {
10432
10474
  console.error("Erro ao pegar o objeto interatividade formulario");
10433
10475
  console.error(e);
@@ -10447,11 +10489,32 @@ var __vue_render__$9 = function __vue_render__() {
10447
10489
 
10448
10490
  return _c('div', {
10449
10491
  staticClass: "interatividade"
10450
- }, [_vm._ssrNode(_vm.informacao.length ? "<div class=\"interatividade-form-header\" data-v-7c3f68fa>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ") + "</div> <div class=\"interatividade-form-body\" data-v-7c3f68fa>" + _vm._ssrList(_vm.informacao, function (form) {
10451
- return "<div class=\"interatividade-info-form\" data-v-7c3f68fa>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
10452
- }) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-7c3f68fa>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-7c3f68fa>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
10453
- return "<div class=\"interatividade-add-info-form\" data-v-7c3f68fa><div class=\"divisor-form-info-aditional\" data-v-7c3f68fa><div class=\"info-aditional\" data-v-7c3f68fa>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-7c3f68fa>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
10454
- }) + "</div></div>" : "<!---->")]);
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) {
10497
+ var name = ref.name;
10498
+ var type = ref.type;
10499
+ var mkuDownload = ref.mkuDownload;
10500
+ var mku = ref.mku;
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', {
10502
+ class: _vm.returnCurrentClass(type),
10503
+ attrs: {
10504
+ "icon": _vm.returnCurrentIcon(type),
10505
+ "title": name
10506
+ },
10507
+ on: {
10508
+ "click": function click($event) {
10509
+ return _vm.openFile(mku, type);
10510
+ }
10511
+ }
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', {
10513
+ attrs: {
10514
+ "icon": ['fas', 'download']
10515
+ }
10516
+ })], 1)], 2);
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);
10455
10518
  };
10456
10519
 
10457
10520
  var __vue_staticRenderFns__$9 = [];
@@ -10459,8 +10522,8 @@ var __vue_staticRenderFns__$9 = [];
10459
10522
 
10460
10523
  var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
10461
10524
  if (!inject) return;
10462
- inject("data-v-7c3f68fa_0", {
10463
- source: ".show-x-enter-active[data-v-7c3f68fa],.show-x-leave-enter[data-v-7c3f68fa]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7c3f68fa],.show-x-leave-to[data-v-7c3f68fa]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7c3f68fa]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7c3f68fa]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7c3f68fa]{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-7c3f68fa]{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-7c3f68fa]{margin:10px 0}.interatividade-titulo-form[data-v-7c3f68fa]{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-7c3f68fa]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7c3f68fa]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7c3f68fa]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7c3f68fa]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7c3f68fa]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7c3f68fa]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7c3f68fa]:hover{color:#00628f}",
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}",
10464
10527
  map: undefined,
10465
10528
  media: undefined
10466
10529
  });
@@ -10468,10 +10531,10 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
10468
10531
  /* scoped */
10469
10532
 
10470
10533
 
10471
- var __vue_scope_id__$9 = "data-v-7c3f68fa";
10534
+ var __vue_scope_id__$9 = "data-v-7b989966";
10472
10535
  /* module identifier */
10473
10536
 
10474
- var __vue_module_identifier__$9 = "data-v-7c3f68fa";
10537
+ var __vue_module_identifier__$9 = "data-v-7b989966";
10475
10538
  /* functional template */
10476
10539
 
10477
10540
  var __vue_is_functional_template__$9 = false;
@@ -10484,6 +10547,7 @@ var __vue_component__$d = /*#__PURE__*/normalizeComponent({
10484
10547
 
10485
10548
  var InteratividadeFormulario = __vue_component__$d;//
10486
10549
  var script$8 = {
10550
+ mixins: [fileHandler],
10487
10551
  props: {
10488
10552
  anexo: {
10489
10553
  type: Object,
@@ -10498,64 +10562,10 @@ var script$8 = {
10498
10562
  required: true
10499
10563
  }
10500
10564
  },
10501
- computed: {
10502
- iconeClass: function iconeClass() {
10503
- return this.tipoDoc === "pdf" ? "pdf" : "doc";
10504
- }
10505
- },
10506
- data: function data() {
10507
- return {
10508
- carregando: true,
10509
- isAnexo: false,
10510
- imgAnexo: "",
10511
- tipoDoc: "",
10512
- docAnexo: "",
10513
- nomeArquivo: "",
10514
- audio: false,
10515
- video: false,
10516
- icone: []
10517
- };
10518
- },
10519
10565
  mounted: function mounted() {
10520
- this.setVariaveisAnexo();
10521
- },
10522
- methods: {
10523
- setVariaveisAnexo: function setVariaveisAnexo() {
10524
- try {
10525
- var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
10526
- dominio: this.dominio
10527
- }),
10528
- anexo = _gerarVariaveisAnexo.anexo,
10529
- imgAnexo = _gerarVariaveisAnexo.imgAnexo,
10530
- tipoDoc = _gerarVariaveisAnexo.tipoDoc,
10531
- docAnexo = _gerarVariaveisAnexo.docAnexo,
10532
- nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
10533
- audio = _gerarVariaveisAnexo.audio,
10534
- video = _gerarVariaveisAnexo.video;
10535
-
10536
- this.isAnexo = anexo;
10537
- this.imgAnexo = imgAnexo;
10538
- this.tipoDoc = tipoDoc;
10539
- this.docAnexo = docAnexo;
10540
- this.nomeArquivo = nomeArquivo;
10541
- this.audio = audio;
10542
- this.video = video;
10543
- this.gerarIcone();
10544
- this.carregando = false;
10545
- } catch (e) {
10546
- console.error("Erro ao gerar as variaveis dos anexos");
10547
- console.error(e);
10548
- }
10549
- },
10550
- gerarIcone: function gerarIcone() {
10551
- this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10552
- },
10553
- abrirAnexo: function abrirAnexo(link, isImg) {
10554
- var width = window.innerWidth;
10555
- var height = window.innerHeight;
10556
- var options = !isImg ? "width=".concat(width, ",height=").concat(height) : "width=auto,height=auto";
10557
- window.open(link, "anexo-ra", options);
10558
- }
10566
+ this.setFileVars(this.anexo, {
10567
+ dominio: this.dominio
10568
+ });
10559
10569
  }
10560
10570
  };/* script */
10561
10571
  var __vue_script__$8 = script$8;
@@ -10576,54 +10586,54 @@ var __vue_render__$8 = function __vue_render__() {
10576
10586
  "name": "fade",
10577
10587
  "mode": "out-in"
10578
10588
  }
10579
- }, [_vm.carregando ? _c('div', {
10589
+ }, [_vm.isLoading ? _c('div', {
10580
10590
  key: "ra-loader-anexo",
10581
10591
  staticClass: "req-loader slow",
10582
10592
  attrs: {
10583
10593
  "small": true
10584
10594
  }
10585
- }) : [_vm.imgAnexo ? _c('span', {
10595
+ }) : [_vm.imageURL ? _c('span', {
10586
10596
  key: "ra-img-anexo",
10587
10597
  staticClass: "anexo-img box-shadow",
10588
10598
  attrs: {
10589
- "title": _vm.nomeArquivo
10599
+ "title": _vm.filename
10590
10600
  },
10591
10601
  on: {
10592
10602
  "click": function click($event) {
10593
- return _vm.abrirAnexo(_vm.imgAnexo, true);
10603
+ return _vm.openWindowFromURL(_vm.imageURL, true);
10594
10604
  }
10595
10605
  }
10596
10606
  }, [_c('img', {
10597
10607
  attrs: {
10598
- "src": "" + _vm.imgAnexo,
10599
- "alt": _vm.nomeArquivo
10608
+ "src": "" + _vm.imageURL,
10609
+ "alt": _vm.filename
10600
10610
  }
10601
10611
  })]) : _c('span', {
10602
10612
  key: "ra-doc-anexo",
10603
- staticClass: "anexo-icone",
10604
- class: [_vm.iconeClass],
10613
+ staticClass: "anexo-icon",
10614
+ class: [_vm.iconClass],
10605
10615
  attrs: {
10606
- "title": _vm.nomeArquivo,
10616
+ "title": _vm.filename,
10607
10617
  "target": "_blank",
10608
10618
  "rel": "noreferrer noopener"
10609
10619
  },
10610
10620
  on: {
10611
10621
  "click": function click($event) {
10612
- return _vm.abrirAnexo(_vm.docAnexo, false);
10622
+ return _vm.openWindowFromURL(_vm.docURL, false);
10613
10623
  }
10614
10624
  }
10615
10625
  }, [_c('fa-icon', {
10616
10626
  attrs: {
10617
- "icon": _vm.icone
10627
+ "icon": _vm.icon
10618
10628
  }
10619
10629
  })], 1), _vm._v(" "), _c('a', {
10620
10630
  key: "ra-download-icon",
10621
10631
  attrs: {
10622
- "href": _vm.imgAnexo ? _vm.imgAnexo : _vm.docAnexo,
10623
- "download": "" + _vm.nomeArquivo,
10632
+ "href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
10633
+ "download": "" + _vm.filename,
10624
10634
  "target": "_blank",
10625
10635
  "rel": "noreferrer noopener",
10626
- "title": "Download " + _vm.nomeArquivo
10636
+ "title": "Download " + _vm.filename
10627
10637
  }
10628
10638
  }, [_c('fa-icon', {
10629
10639
  attrs: {
@@ -10637,8 +10647,8 @@ var __vue_staticRenderFns__$8 = [];
10637
10647
 
10638
10648
  var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
10639
10649
  if (!inject) return;
10640
- inject("data-v-037d5568_0", {
10641
- source: ".fade-enter-active[data-v-037d5568],.fade-leave-active[data-v-037d5568]{transition:opacity .5s}.fade-enter[data-v-037d5568],.fade-leave-to[data-v-037d5568]{opacity:0}",
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}",
10642
10652
  map: undefined,
10643
10653
  media: undefined
10644
10654
  });
@@ -10646,10 +10656,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
10646
10656
  /* scoped */
10647
10657
 
10648
10658
 
10649
- var __vue_scope_id__$8 = "data-v-037d5568";
10659
+ var __vue_scope_id__$8 = "data-v-0408a7b0";
10650
10660
  /* module identifier */
10651
10661
 
10652
- var __vue_module_identifier__$8 = "data-v-037d5568";
10662
+ var __vue_module_identifier__$8 = "data-v-0408a7b0";
10653
10663
  /* functional template */
10654
10664
 
10655
10665
  var __vue_is_functional_template__$8 = false;
@@ -10845,6 +10855,7 @@ var __vue_component__$a = /*#__PURE__*/normalizeComponent({
10845
10855
 
10846
10856
  var __vue_component__$b = __vue_component__$a;//
10847
10857
  var script$6 = {
10858
+ mixins: [fileHandler],
10848
10859
  components: {
10849
10860
  Loader: Loader
10850
10861
  },
@@ -10868,61 +10879,22 @@ var script$6 = {
10868
10879
  },
10869
10880
  data: function data() {
10870
10881
  return {
10871
- carregando: true,
10872
- isAnexo: false,
10873
- imgAnexo: "",
10874
- tipoDoc: "",
10875
- docAnexo: "",
10876
- nomeArquivo: "",
10877
- audio: false,
10878
- video: false,
10879
- icone: [],
10880
10882
  imgErro: false,
10881
10883
  imgMsgErro: ''
10882
10884
  };
10883
10885
  },
10884
10886
  mounted: function mounted() {
10885
10887
  if (this.validarAnexo()) {
10886
- this.setVariaveisAnexo();
10888
+ this.setFileVars(this.anexo, {
10889
+ dominio: this.dominio
10890
+ });
10887
10891
  }
10888
10892
  },
10889
10893
  methods: {
10890
- abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
10891
- this.$emit("abrir-imagem", imagem);
10892
- },
10893
- setVariaveisAnexo: function setVariaveisAnexo() {
10894
- try {
10895
- var _gerarVariaveisAnexo = gerarVariaveisAnexo(this.anexo, {
10896
- dominio: this.dominio
10897
- }),
10898
- anexo = _gerarVariaveisAnexo.anexo,
10899
- imgAnexo = _gerarVariaveisAnexo.imgAnexo,
10900
- tipoDoc = _gerarVariaveisAnexo.tipoDoc,
10901
- docAnexo = _gerarVariaveisAnexo.docAnexo,
10902
- nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
10903
- audio = _gerarVariaveisAnexo.audio,
10904
- video = _gerarVariaveisAnexo.video;
10905
-
10906
- this.isAnexo = anexo;
10907
- this.imgAnexo = imgAnexo;
10908
- this.tipoDoc = tipoDoc;
10909
- this.docAnexo = docAnexo;
10910
- this.nomeArquivo = nomeArquivo;
10911
- this.audio = audio;
10912
- this.video = video;
10913
- this.gerarIcone();
10914
- this.carregando = false;
10915
- } catch (e) {
10916
- console.error("Erro ao gerar as variaveis dos anexos");
10917
- console.error(e);
10918
- }
10919
- },
10920
10894
  validarAnexo: function validarAnexo() {
10921
10895
  var status = true; //caso for audio ou documento ignorar
10922
10896
 
10923
- if (this.anexo.docAnexo || this.anexo.audio) {
10924
- return true;
10925
- }
10897
+ if (this.anexo.docURL || this.anexo.audio) return true;
10926
10898
 
10927
10899
  if (!this.anexo.name) {
10928
10900
  this.imgMsgErro = this.dictionary.img_com_erro_nome;
@@ -10932,11 +10904,7 @@ var script$6 = {
10932
10904
  if (!this.anexo.nomeGravacao) {
10933
10905
  this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
10934
10906
  status = false;
10935
- } // if(!this.anexo.size || this.anexo.size == 0){
10936
- // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
10937
- // status = false;
10938
- // }
10939
-
10907
+ }
10940
10908
 
10941
10909
  if (!this.anexo.type) {
10942
10910
  this.imgMsgErro = this.dictionary.img_com_erro_tipo;
@@ -10945,13 +10913,10 @@ var script$6 = {
10945
10913
 
10946
10914
  if (status == false) {
10947
10915
  this.imgErro = true;
10948
- this.carregando = false;
10916
+ this.isLoading = false;
10949
10917
  }
10950
10918
 
10951
10919
  return status;
10952
- },
10953
- gerarIcone: function gerarIcone() {
10954
- this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10955
10920
  }
10956
10921
  }
10957
10922
  };/* script */
@@ -10991,7 +10956,7 @@ var __vue_render__$6 = function __vue_render__() {
10991
10956
  attrs: {
10992
10957
  "icon": ['fas', 'file-image']
10993
10958
  }
10994
- }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
10959
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
10995
10960
  key: "anexo-loader",
10996
10961
  attrs: {
10997
10962
  "small": true,
@@ -11000,17 +10965,17 @@ var __vue_render__$6 = function __vue_render__() {
11000
10965
  }) : _c('div', {
11001
10966
  key: "anexo-mensagem",
11002
10967
  staticClass: "anexo-mensagem"
11003
- }, [_vm.imgAnexo ? _c('img', {
10968
+ }, [_vm.imageURL ? _c('img', {
11004
10969
  attrs: {
11005
- "src": _vm.imgAnexo,
10970
+ "src": _vm.imageURL,
11006
10971
  "alt": _vm.dictionary.alt_msg_img
11007
10972
  },
11008
10973
  on: {
11009
10974
  "click": function click($event) {
11010
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
10975
+ return _vm.showImage(_vm.imageURL);
11011
10976
  }
11012
10977
  }
11013
- }) : _vm._e(), _vm._v(" "), _vm.imgAnexo ? _c('div', {
10978
+ }) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
11014
10979
  staticClass: "anexos-links-container"
11015
10980
  }, [_c('a', {
11016
10981
  attrs: {
@@ -11018,7 +10983,8 @@ var __vue_render__$6 = function __vue_render__() {
11018
10983
  },
11019
10984
  on: {
11020
10985
  "click": function click($event) {
11021
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
10986
+ $event.preventDefault();
10987
+ return _vm.showImage(_vm.imageURL);
11022
10988
  }
11023
10989
  }
11024
10990
  }, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
@@ -11027,63 +10993,64 @@ var __vue_render__$6 = function __vue_render__() {
11027
10993
  },
11028
10994
  on: {
11029
10995
  "click": function click($event) {
11030
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
10996
+ return _vm.showImage(_vm.imageURL);
11031
10997
  }
11032
10998
  }
11033
- })], 1) : _vm.docAnexo ? _c('div', {
10999
+ })], 1) : _vm.docURL ? _c('div', {
11034
11000
  staticClass: "anexo-container"
11035
11001
  }, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
11036
11002
  attrs: {
11037
- "src": _vm.docAnexo,
11003
+ "src": _vm.docURL,
11038
11004
  "controls": "",
11039
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
11005
+ "title": _vm.fileType + " - " + _vm.filename
11040
11006
  }
11041
11007
  }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
11042
11008
  attrs: {
11043
- "href": _vm.docAnexo,
11009
+ "href": _vm.docURL,
11044
11010
  "target": "_blank",
11045
11011
  "rel": "noreferrer noopener"
11046
11012
  }
11047
11013
  }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
11048
11014
  attrs: {
11049
- "src": _vm.docAnexo,
11015
+ "src": _vm.docURL,
11050
11016
  "controls": "",
11051
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
11017
+ "title": _vm.fileType + " - " + _vm.filename
11052
11018
  }
11053
- }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.tipoDoc != 'erro' ? _c('a', {
11019
+ }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
11054
11020
  attrs: {
11055
- "href": _vm.docAnexo,
11021
+ "href": _vm.docURL,
11056
11022
  "target": "_blank",
11057
11023
  "rel": "noreferrer noopener"
11058
11024
  }
11059
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.tipoDoc != 'erro' ? _c('a', {
11025
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
11060
11026
  attrs: {
11061
- "href": _vm.docAnexo,
11027
+ "href": _vm.docURL,
11062
11028
  "target": "_blank",
11063
11029
  "rel": "noreferrer noopener",
11064
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
11030
+ "title": _vm.fileType + " - " + _vm.filename
11065
11031
  }
11066
11032
  }, [_c('fa-icon', {
11033
+ class: [_vm.iconClass],
11067
11034
  attrs: {
11068
- "icon": this.icone
11035
+ "icon": _vm.icon
11069
11036
  }
11070
11037
  }), _vm._v(" "), _c('p', {
11071
11038
  domProps: {
11072
- "textContent": _vm._s(_vm.nomeArquivo)
11039
+ "textContent": _vm._s(_vm.filename)
11073
11040
  }
11074
11041
  })], 1) : _c('p', {
11075
11042
  staticClass: "arquivo-erro",
11076
11043
  attrs: {
11077
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
11044
+ "title": _vm.fileType + " - " + _vm.filename
11078
11045
  }
11079
11046
  }, [_c('fa-icon', {
11080
11047
  attrs: {
11081
11048
  "icon": ['fas', 'file-alt']
11082
11049
  }
11083
- }), _vm._v("\n " + _vm._s(_vm.nomeArquivo) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imgAnexo ? _c('a', {
11050
+ }), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
11084
11051
  attrs: {
11085
- "href": _vm.imgAnexo,
11086
- "download": "" + _vm.nomeArquivo,
11052
+ "href": _vm.imageURL,
11053
+ "download": "" + _vm.filename,
11087
11054
  "target": "_blank",
11088
11055
  "rel": "noreferrer noopener"
11089
11056
  }
@@ -11091,10 +11058,10 @@ var __vue_render__$6 = function __vue_render__() {
11091
11058
  attrs: {
11092
11059
  "icon": ['fas', 'download']
11093
11060
  }
11094
- })], 1) : _vm._e(), _vm._v(" "), _vm.docAnexo ? _c('a', {
11061
+ })], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
11095
11062
  attrs: {
11096
- "href": _vm.docAnexo,
11097
- "download": "" + _vm.nomeArquivo,
11063
+ "href": _vm.docURL,
11064
+ "download": "" + _vm.filename,
11098
11065
  "target": "_blank",
11099
11066
  "rel": "noreferrer noopener"
11100
11067
  }
@@ -11110,8 +11077,8 @@ var __vue_staticRenderFns__$6 = [];
11110
11077
 
11111
11078
  var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11112
11079
  if (!inject) return;
11113
- inject("data-v-19808158_0", {
11114
- source: ".fade-enter-active[data-v-19808158],.fade-leave-active[data-v-19808158]{transition:opacity .5s}.fade-enter[data-v-19808158],.fade-leave-to[data-v-19808158]{opacity:0}.mensagem-div-anexo[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-19808158]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container a[data-v-19808158]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container p[data-v-19808158]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-19808158]{font-size:2rem}.anexo-container audio[data-v-19808158]{outline:0;width:100%}.anexo-container video[data-v-19808158]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-19808158]{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-19808158]{cursor:pointer}.mensagem-div-anexo img[data-v-19808158]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-19808158]{width:100%;height:100%}.anexo-mensagem[data-v-19808158]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-19808158]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-19808158]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-19808158]{font-size:1.025em;margin-right:2px}",
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}",
11115
11082
  map: undefined,
11116
11083
  media: undefined
11117
11084
  });
@@ -11119,10 +11086,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11119
11086
  /* scoped */
11120
11087
 
11121
11088
 
11122
- var __vue_scope_id__$6 = "data-v-19808158";
11089
+ var __vue_scope_id__$6 = "data-v-1a4340aa";
11123
11090
  /* module identifier */
11124
11091
 
11125
- var __vue_module_identifier__$6 = "data-v-19808158";
11092
+ var __vue_module_identifier__$6 = "data-v-1a4340aa";
11126
11093
  /* functional template */
11127
11094
 
11128
11095
  var __vue_is_functional_template__$6 = false;
@@ -11619,6 +11586,8 @@ var __vue_render__$3 = function __vue_render__() {
11619
11586
  }, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
11620
11587
  attrs: {
11621
11588
  "interatividade": _vm.interatividade,
11589
+ "dominio": _vm.dominio,
11590
+ "anexos": _vm.anexos,
11622
11591
  "dictionary": _vm.dictionary
11623
11592
  }
11624
11593
  }) : _c('div', {
@@ -11884,7 +11853,7 @@ var __vue_staticRenderFns__$3 = [];
11884
11853
 
11885
11854
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11886
11855
  if (!inject) return;
11887
- inject("data-v-257d4492_0", {
11856
+ inject("data-v-dded57e0_0", {
11888
11857
  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}",
11889
11858
  map: undefined,
11890
11859
  media: undefined
@@ -11896,7 +11865,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11896
11865
  var __vue_scope_id__$3 = undefined;
11897
11866
  /* module identifier */
11898
11867
 
11899
- var __vue_module_identifier__$3 = "data-v-257d4492";
11868
+ var __vue_module_identifier__$3 = "data-v-dded57e0";
11900
11869
  /* functional template */
11901
11870
 
11902
11871
  var __vue_is_functional_template__$3 = false;