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.
@@ -9653,9 +9653,11 @@ var script$f = {
9653
9653
  for (let key in template) {
9654
9654
  if (key === "components" && Array.isArray(template[key])) {
9655
9655
  template[key].map(component => {
9656
- component.parameters.map(param => {
9657
- fullText += param.text;
9658
- });
9656
+ if (component && component.parameters && component.parameters.length) {
9657
+ component.parameters.map(param => {
9658
+ fullText += param.text;
9659
+ });
9660
+ }
9659
9661
  });
9660
9662
  }
9661
9663
  }
@@ -9739,41 +9741,44 @@ var script$f = {
9739
9741
  for (let index in this.selectedTemplate) {
9740
9742
  if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
9741
9743
  const arrComponents = this.selectedTemplate[index];
9742
- arrComponents.map(component => {
9743
- if (component && component.parameters && component.parameters.length) {
9744
- component.parameters.map(message => {
9745
- message.currentText = message.text;
9746
- let keyIndex = 0;
9747
9744
 
9748
- while (keyIndex < keys.length) {
9749
- const varName = `{{${keys[keyIndex]}}}`;
9745
+ if (arrComponents && arrComponents.length) {
9746
+ arrComponents.map(component => {
9747
+ if (component && component.parameters && component.parameters.length) {
9748
+ component.parameters.map(message => {
9749
+ message.currentText = message.text;
9750
+ let keyIndex = 0;
9751
+
9752
+ while (keyIndex < keys.length) {
9753
+ const varName = `{{${keys[keyIndex]}}}`;
9754
+
9755
+ if (message.text.indexOf(varName) != -1) {
9756
+ /**Gerando os obejetos de parametros da notificacao para o component */
9757
+ if (component.type === "header") {
9758
+ this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
9750
9759
 
9751
- if (message.text.indexOf(varName) != -1) {
9752
- /**Gerando os obejetos de parametros da notificacao para o component */
9753
- if (component.type === "header") {
9754
- this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
9760
+ this.selectedTemplate['parameters'][component.type] = {
9761
+ tipo: "text",
9762
+ text: values[keyIndex]
9763
+ };
9764
+ } else if (!this.selectedTemplate['parameters'][component.type]) {
9765
+ this.selectedTemplate['parameters'][component.type] = new Array();
9766
+ } //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
9755
9767
 
9756
- this.selectedTemplate['parameters'][component.type] = {
9757
- tipo: "text",
9758
- text: values[keyIndex]
9759
- };
9760
- } else if (!this.selectedTemplate['parameters'][component.type]) {
9761
- this.selectedTemplate['parameters'][component.type] = new Array();
9762
- } //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
9763
9768
 
9769
+ if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9770
+ this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9771
+ }
9764
9772
 
9765
- if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9766
- this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9773
+ message.currentText = message.currentText.replace(varName, values[keyIndex]);
9767
9774
  }
9768
9775
 
9769
- message.currentText = message.currentText.replace(varName, values[keyIndex]);
9776
+ keyIndex++;
9770
9777
  }
9771
-
9772
- keyIndex++;
9773
- }
9774
- });
9775
- }
9776
- });
9778
+ });
9779
+ }
9780
+ });
9781
+ }
9777
9782
  }
9778
9783
  }
9779
9784
 
@@ -9870,7 +9875,7 @@ var __vue_staticRenderFns__$f = [];
9870
9875
 
9871
9876
  const __vue_inject_styles__$f = function (inject) {
9872
9877
  if (!inject) return;
9873
- inject("data-v-0b0bc59a_0", {
9878
+ inject("data-v-5a97ed34_0", {
9874
9879
  source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-select .vs__selected-options>input{flex-grow:0}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;flex:2;font-size:.7rem;padding:10px 0}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:2.5px;border-top-right-radius:2.5px;border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 5px;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{outline:unset;border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active,.tg-btn button:focus{outline:unset}.tg-btn.small-btn{width:auto;margin-left:5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:2.5px;display:flex}",
9875
9880
  map: undefined,
9876
9881
  media: undefined
@@ -10426,50 +10431,59 @@ function gerarVariaveisAnexo(anexos, storeObj) {
10426
10431
  }
10427
10432
  }
10428
10433
 
10429
- //
10430
- var script$d = {
10431
- props: {
10432
- file: {
10433
- type: Object,
10434
- required: true
10435
- },
10436
- dictionary: {
10437
- type: Object,
10438
- required: true
10439
- },
10440
- domain: {
10441
- type: String,
10442
- required: true
10443
- }
10444
- },
10445
- computed: {
10446
- currentClass() {
10447
- return this.fileExt === "pdf" ? "pdf" : "doc";
10448
- }
10449
-
10450
- },
10451
-
10434
+ const fileHandler = {
10452
10435
  data() {
10453
10436
  return {
10454
- loading: true,
10455
- isAnexo: false,
10456
- imageUrl: "",
10457
- fileExt: "",
10458
- docUrl: "",
10459
- fileName: "",
10437
+ isLoading: true,
10438
+ isFile: false,
10439
+ imageURL: "",
10440
+ fileType: "",
10441
+ docURL: "",
10442
+ filename: "",
10460
10443
  audio: false,
10461
10444
  video: false,
10462
10445
  icon: []
10463
10446
  };
10464
10447
  },
10465
10448
 
10466
- mounted() {
10467
- this.setFileVars();
10468
- },
10449
+ computed: {
10450
+ iconClass() {
10451
+ return this.fileType === "pdf" ? "pdf" : "doc";
10452
+ }
10469
10453
 
10454
+ },
10470
10455
  methods: {
10471
- setFileVars() {
10456
+ openWindowFromURL(link, isImg) {
10457
+ const viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
10458
+
10459
+ if (!isImg && !viewableExtensions.includes(this.fileType)) {
10460
+ const a = document.createElement("a");
10461
+ a.setAttribute("href", link);
10462
+ a.setAttribute("download", this.filename);
10463
+ a.setAttribute("target", "_blank");
10464
+ a.setAttribute("rel", "noopener noreferrer");
10465
+ a.click();
10466
+ return;
10467
+ }
10468
+
10469
+ const width = window.innerWidth;
10470
+ const height = window.innerHeight;
10471
+ const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
10472
+ window.open(link, "anexo-ra", options);
10473
+ },
10474
+
10475
+ showImage(image) {
10476
+ if (!image) return console.warn("Não foi possível abrir a imagem");
10477
+ this.$emit("abrir-imagem", image);
10478
+ },
10479
+
10480
+ setFileVars(rawFile, storeObj) {
10472
10481
  try {
10482
+ if (!rawFile) {
10483
+ this.isLoading = false;
10484
+ return console.warn("Anexo recebido invalido");
10485
+ }
10486
+
10473
10487
  const {
10474
10488
  anexo,
10475
10489
  imgAnexo,
@@ -10478,36 +10492,53 @@ var script$d = {
10478
10492
  nomeArquivo,
10479
10493
  audio,
10480
10494
  video
10481
- } = gerarVariaveisAnexo(this.file, {
10482
- dominio: this.domain
10483
- });
10484
- this.isAnexo = anexo;
10485
- this.imageUrl = imgAnexo;
10486
- this.fileExt = tipoDoc;
10487
- this.docUrl = docAnexo;
10488
- this.fileName = nomeArquivo;
10495
+ } = gerarVariaveisAnexo(rawFile, storeObj);
10496
+ this.isFile = anexo;
10497
+ this.imageURL = imgAnexo;
10498
+ this.fileType = tipoDoc;
10499
+ this.docURL = docAnexo;
10500
+ this.filename = nomeArquivo;
10489
10501
  this.audio = audio;
10490
10502
  this.video = video;
10491
- this.generateIcon();
10492
- this.loading = false;
10503
+ this.setIcon();
10504
+ this.isLoading = false;
10493
10505
  } catch (e) {
10494
10506
  console.error("Erro ao gerar as variaveis dos anexos");
10495
10507
  console.error(e);
10496
10508
  }
10497
10509
  },
10498
10510
 
10499
- generateIcon() {
10500
- this.icon = this.fileExt === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10501
- },
10511
+ setIcon() {
10512
+ this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10513
+ }
10502
10514
 
10503
- openFile(link, isImg) {
10504
- const width = window.innerWidth;
10505
- const height = window.innerHeight;
10506
- const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
10507
- window.open(link, "card-file", options);
10515
+ }
10516
+ };
10517
+
10518
+ //
10519
+ var script$d = {
10520
+ mixins: [fileHandler],
10521
+ props: {
10522
+ file: {
10523
+ type: Object,
10524
+ required: true
10525
+ },
10526
+ dictionary: {
10527
+ type: Object,
10528
+ required: true
10529
+ },
10530
+ domain: {
10531
+ type: String,
10532
+ required: true
10508
10533
  }
10534
+ },
10509
10535
 
10536
+ mounted() {
10537
+ this.setFileVars(this.file, {
10538
+ dominio: this.domain
10539
+ });
10510
10540
  }
10541
+
10511
10542
  };
10512
10543
 
10513
10544
  /* script */
@@ -10529,40 +10560,40 @@ var __vue_render__$d = function () {
10529
10560
  "name": "fade",
10530
10561
  "mode": "out-in"
10531
10562
  }
10532
- }, [_vm.loading ? _c('div', {
10563
+ }, [_vm.isLoading ? _c('div', {
10533
10564
  key: "card-file-loader",
10534
10565
  staticClass: "req-loader slow",
10535
10566
  attrs: {
10536
10567
  "small": true
10537
10568
  }
10538
- }) : [_vm.imageUrl ? _c('span', {
10569
+ }) : [_vm.imageURL ? _c('span', {
10539
10570
  key: "card-file-img",
10540
10571
  staticClass: "file-img box-shadow",
10541
10572
  attrs: {
10542
- "title": _vm.fileName
10573
+ "title": _vm.filename
10543
10574
  },
10544
10575
  on: {
10545
10576
  "click": function ($event) {
10546
- return _vm.openFile(_vm.imageUrl, true);
10577
+ return _vm.openWindowFromURL(_vm.imageURL, true);
10547
10578
  }
10548
10579
  }
10549
10580
  }, [_c('img', {
10550
10581
  attrs: {
10551
- "src": "" + _vm.imageUrl,
10552
- "alt": _vm.fileName
10582
+ "src": "" + _vm.imageURL,
10583
+ "alt": _vm.filename
10553
10584
  }
10554
10585
  })]) : _c('span', {
10555
10586
  key: "card-file-doc",
10556
10587
  staticClass: "file-icon",
10557
- class: [_vm.currentClass],
10588
+ class: [_vm.iconClass],
10558
10589
  attrs: {
10559
- "title": _vm.fileName,
10590
+ "title": _vm.filename,
10560
10591
  "target": "_blank",
10561
10592
  "rel": "noreferrer noopener"
10562
10593
  },
10563
10594
  on: {
10564
10595
  "click": function ($event) {
10565
- return _vm.openFile(_vm.docUrl, false);
10596
+ return _vm.openWindowFromURL(_vm.docURL, false);
10566
10597
  }
10567
10598
  }
10568
10599
  }, [_c('fa-icon', {
@@ -10572,11 +10603,11 @@ var __vue_render__$d = function () {
10572
10603
  })], 1), _vm._v(" "), _c('a', {
10573
10604
  key: "card-file-download-icon",
10574
10605
  attrs: {
10575
- "href": _vm.imageUrl ? _vm.imageUrl : _vm.docUrl,
10576
- "download": "" + _vm.fileName,
10606
+ "href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
10607
+ "download": "" + _vm.filename,
10577
10608
  "target": "_blank",
10578
10609
  "rel": "noreferrer noopener",
10579
- "title": "Download " + _vm.fileName
10610
+ "title": "Download " + _vm.filename
10580
10611
  }
10581
10612
  }, [_c('fa-icon', {
10582
10613
  attrs: {
@@ -10590,11 +10621,11 @@ var __vue_staticRenderFns__$d = [];
10590
10621
 
10591
10622
  const __vue_inject_styles__$d = function (inject) {
10592
10623
  if (!inject) return;
10593
- inject("data-v-6f5fac81_0", {
10594
- 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}",
10624
+ inject("data-v-c0bc7096_0", {
10625
+ source: ".fade-enter-active[data-v-c0bc7096],.fade-leave-active[data-v-c0bc7096]{transition:opacity .5s}.fade-enter[data-v-c0bc7096],.fade-leave-to[data-v-c0bc7096]{opacity:0}",
10595
10626
  map: undefined,
10596
10627
  media: undefined
10597
- }), inject("data-v-6f5fac81_1", {
10628
+ }), inject("data-v-c0bc7096_1", {
10598
10629
  source: ".file-item{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item-transition{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item .req-loader{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.file-item-transition img{max-width:45px;max-height:45px}.file-item a{margin-left:5px;text-decoration:none;color:#333}.file-icon{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.file-icon:hover{opacity:1}.file-icon:visited{color:inherit}svg{font-size:30px;z-index:1}.file-icon.pdf{position:relative}.file-icon.pdf svg{color:#e74c3c}.file-icon.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.file-icon.doc{color:#15517f}.file-icon.doc::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.file-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.file-img:hover{opacity:1}.file-img img{width:95%}",
10599
10630
  map: undefined,
10600
10631
  media: undefined
@@ -10603,7 +10634,7 @@ const __vue_inject_styles__$d = function (inject) {
10603
10634
  /* scoped */
10604
10635
 
10605
10636
 
10606
- const __vue_scope_id__$d = "data-v-6f5fac81";
10637
+ const __vue_scope_id__$d = "data-v-c0bc7096";
10607
10638
  /* module identifier */
10608
10639
 
10609
10640
  const __vue_module_identifier__$d = undefined;
@@ -11237,9 +11268,17 @@ var script$9 = {
11237
11268
  type: Object,
11238
11269
  required: true
11239
11270
  },
11271
+ dominio: {
11272
+ type: String,
11273
+ required: true
11274
+ },
11240
11275
  dictionary: {
11241
11276
  type: Object,
11242
11277
  required: true
11278
+ },
11279
+ anexos: {
11280
+ type: Array,
11281
+ required: false
11243
11282
  }
11244
11283
  },
11245
11284
 
@@ -11250,6 +11289,21 @@ var script$9 = {
11250
11289
  },
11251
11290
 
11252
11291
  methods: {
11292
+ returnCurrentClass(isDoc) {
11293
+ return `fs-2 cursor-pointer ${isDoc == 'pdf' ? 'text-red' : 'text-blue'}`;
11294
+ },
11295
+
11296
+ returnCurrentIcon(isDoc) {
11297
+ return isDoc == 'pdf' ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11298
+ },
11299
+
11300
+ openFile(url, isImg) {
11301
+ const width = window.innerWidth;
11302
+ const height = window.innerHeight;
11303
+ const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
11304
+ window.open(`${this.dominio}/callcenter/docs.php?mku=${url}`, "card-file", options);
11305
+ },
11306
+
11253
11307
  validateInterativity() {
11254
11308
  try {
11255
11309
  if (this.interatividade.formulario && this.interatividade.formulario.length) {
@@ -11266,13 +11320,9 @@ var script$9 = {
11266
11320
  formulario
11267
11321
  } = this.interatividade;
11268
11322
  formulario = formulario ? formulario : [];
11269
-
11270
- if (!formulario.length) {
11271
- return;
11272
- }
11273
-
11274
- let foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
11275
- let foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
11323
+ if (!formulario.length) return;
11324
+ const foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
11325
+ const foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
11276
11326
 
11277
11327
  if (foundInfos) {
11278
11328
  this.informacao = foundInfos.map(info => {
@@ -11284,9 +11334,7 @@ var script$9 = {
11284
11334
  });
11285
11335
  }
11286
11336
 
11287
- if (foundInfosAdd) {
11288
- this.informacaoAdicional = foundInfosAdd;
11289
- }
11337
+ if (foundInfosAdd) this.informacaoAdicional = foundInfosAdd;
11290
11338
  } catch (e) {
11291
11339
  console.error("Erro ao pegar o objeto interatividade formulario");
11292
11340
  console.error(e);
@@ -11353,7 +11401,64 @@ var __vue_render__$9 = function () {
11353
11401
  "textContent": _vm._s(form.TEXTO)
11354
11402
  }
11355
11403
  }) : _vm._e()])])]);
11356
- }), 0)], 2)] : _vm._e()], 2);
11404
+ }), 0), _vm._v(" "), _c('h3', {
11405
+ staticClass: "m-5 text-bold",
11406
+ domProps: {
11407
+ "textContent": _vm._s("Anexos")
11408
+ }
11409
+ }), _vm._v(" "), _c('div', {
11410
+ staticClass: "d-flex flex-wrap align-items-center"
11411
+ }, _vm._l(_vm.anexos, function (ref, fileIndex) {
11412
+ var name = ref.name;
11413
+ var type = ref.type;
11414
+ var mkuDownload = ref.mkuDownload;
11415
+ var mku = ref.mku;
11416
+ return _c('div', {
11417
+ key: "file-" + fileIndex,
11418
+ staticClass: "mb-5 mx-5 d-flex"
11419
+ }, [!type ? _c('img', {
11420
+ staticClass: "box-shadow max-w-75px max-h-75px cursor-pointer",
11421
+ attrs: {
11422
+ "src": _vm.dominio + "/callcenter/docs.php?mku=" + mku,
11423
+ "alt": name,
11424
+ "title": name
11425
+ },
11426
+ on: {
11427
+ "click": function ($event) {
11428
+ return _vm.openFile(mku, type);
11429
+ }
11430
+ }
11431
+ }) : _c('fa-icon', {
11432
+ class: _vm.returnCurrentClass(type),
11433
+ attrs: {
11434
+ "icon": _vm.returnCurrentIcon(type),
11435
+ "title": name
11436
+ },
11437
+ on: {
11438
+ "click": function ($event) {
11439
+ return _vm.openFile(mku, type);
11440
+ }
11441
+ }
11442
+ }), _vm._v(" "), _c('a', {
11443
+ staticClass: "d-flex align-items-end ml-3 text-dark",
11444
+ attrs: {
11445
+ "href": _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload,
11446
+ "download": "" + name,
11447
+ "target": "_blank",
11448
+ "rel": "noreferrer noopener",
11449
+ "title": "Download " + name
11450
+ }
11451
+ }, [_c('fa-icon', {
11452
+ attrs: {
11453
+ "icon": ['fas', 'download']
11454
+ }
11455
+ })], 1)], 1);
11456
+ }), 0), _vm._v(" "), !_vm.anexos.length ? _c('p', {
11457
+ staticClass: "text-center mb-5",
11458
+ domProps: {
11459
+ "textContent": _vm._s("Sem anexos")
11460
+ }
11461
+ }) : _vm._e()], 2)] : _vm._e()], 2);
11357
11462
  };
11358
11463
 
11359
11464
  var __vue_staticRenderFns__$9 = [];
@@ -11361,8 +11466,8 @@ var __vue_staticRenderFns__$9 = [];
11361
11466
 
11362
11467
  const __vue_inject_styles__$9 = function (inject) {
11363
11468
  if (!inject) return;
11364
- inject("data-v-7c3f68fa_0", {
11365
- 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}",
11469
+ inject("data-v-7b989966_0", {
11470
+ source: ".show-x-enter-active[data-v-7b989966],.show-x-leave-enter[data-v-7b989966]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7b989966],.show-x-leave-to[data-v-7b989966]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7b989966]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7b989966]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7b989966]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-7b989966]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-7b989966]{margin:10px 0}.interatividade-titulo-form[data-v-7b989966]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-7b989966]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7b989966]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7b989966]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7b989966]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7b989966]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7b989966]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7b989966]:hover{color:#00628f}.text-blue[data-v-7b989966]{color:#294ed3}.text-red[data-v-7b989966]{color:#e74c3c}.text-dark[data-v-7b989966]{color:#333}.ml-3[data-v-7b989966]{margin-left:3px}.fs-2[data-v-7b989966]{font-size:2rem}.flex-wrap[data-v-7b989966]{-ms-flex-wrap:wrap;flex-wrap:wrap}.align-items-center[data-v-7b989966]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.d-flex[data-v-7b989966]{display:-webkit-box;display:-ms-flexbox;display:flex}.align-items-end[data-v-7b989966]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.text-bold[data-v-7b989966]{font-weight:700}.m-5[data-v-7b989966]{margin:5px}.mb-5[data-v-7b989966]{margin-bottom:5px}.mx-5[data-v-7b989966]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-7b989966]{cursor:pointer}",
11366
11471
  map: undefined,
11367
11472
  media: undefined
11368
11473
  });
@@ -11370,7 +11475,7 @@ const __vue_inject_styles__$9 = function (inject) {
11370
11475
  /* scoped */
11371
11476
 
11372
11477
 
11373
- const __vue_scope_id__$9 = "data-v-7c3f68fa";
11478
+ const __vue_scope_id__$9 = "data-v-7b989966";
11374
11479
  /* module identifier */
11375
11480
 
11376
11481
  const __vue_module_identifier__$9 = undefined;
@@ -11390,6 +11495,7 @@ var InteratividadeFormulario = __vue_component__$d;
11390
11495
 
11391
11496
  //
11392
11497
  var script$8 = {
11498
+ mixins: [fileHandler],
11393
11499
  props: {
11394
11500
  anexo: {
11395
11501
  type: Object,
@@ -11404,72 +11510,13 @@ var script$8 = {
11404
11510
  required: true
11405
11511
  }
11406
11512
  },
11407
- computed: {
11408
- iconeClass() {
11409
- return this.tipoDoc === "pdf" ? "pdf" : "doc";
11410
- }
11411
-
11412
- },
11413
-
11414
- data() {
11415
- return {
11416
- carregando: true,
11417
- isAnexo: false,
11418
- imgAnexo: "",
11419
- tipoDoc: "",
11420
- docAnexo: "",
11421
- nomeArquivo: "",
11422
- audio: false,
11423
- video: false,
11424
- icone: []
11425
- };
11426
- },
11427
11513
 
11428
11514
  mounted() {
11429
- this.setVariaveisAnexo();
11430
- },
11431
-
11432
- methods: {
11433
- setVariaveisAnexo() {
11434
- try {
11435
- const {
11436
- anexo,
11437
- imgAnexo,
11438
- tipoDoc,
11439
- docAnexo,
11440
- nomeArquivo,
11441
- audio,
11442
- video
11443
- } = gerarVariaveisAnexo(this.anexo, {
11444
- dominio: this.dominio
11445
- });
11446
- this.isAnexo = anexo;
11447
- this.imgAnexo = imgAnexo;
11448
- this.tipoDoc = tipoDoc;
11449
- this.docAnexo = docAnexo;
11450
- this.nomeArquivo = nomeArquivo;
11451
- this.audio = audio;
11452
- this.video = video;
11453
- this.gerarIcone();
11454
- this.carregando = false;
11455
- } catch (e) {
11456
- console.error("Erro ao gerar as variaveis dos anexos");
11457
- console.error(e);
11458
- }
11459
- },
11460
-
11461
- gerarIcone() {
11462
- this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11463
- },
11464
-
11465
- abrirAnexo(link, isImg) {
11466
- const width = window.innerWidth;
11467
- const height = window.innerHeight;
11468
- const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
11469
- window.open(link, "anexo-ra", options);
11470
- }
11471
-
11515
+ this.setFileVars(this.anexo, {
11516
+ dominio: this.dominio
11517
+ });
11472
11518
  }
11519
+
11473
11520
  };
11474
11521
 
11475
11522
  /* script */
@@ -11491,54 +11538,54 @@ var __vue_render__$8 = function () {
11491
11538
  "name": "fade",
11492
11539
  "mode": "out-in"
11493
11540
  }
11494
- }, [_vm.carregando ? _c('div', {
11541
+ }, [_vm.isLoading ? _c('div', {
11495
11542
  key: "ra-loader-anexo",
11496
11543
  staticClass: "req-loader slow",
11497
11544
  attrs: {
11498
11545
  "small": true
11499
11546
  }
11500
- }) : [_vm.imgAnexo ? _c('span', {
11547
+ }) : [_vm.imageURL ? _c('span', {
11501
11548
  key: "ra-img-anexo",
11502
11549
  staticClass: "anexo-img box-shadow",
11503
11550
  attrs: {
11504
- "title": _vm.nomeArquivo
11551
+ "title": _vm.filename
11505
11552
  },
11506
11553
  on: {
11507
11554
  "click": function ($event) {
11508
- return _vm.abrirAnexo(_vm.imgAnexo, true);
11555
+ return _vm.openWindowFromURL(_vm.imageURL, true);
11509
11556
  }
11510
11557
  }
11511
11558
  }, [_c('img', {
11512
11559
  attrs: {
11513
- "src": "" + _vm.imgAnexo,
11514
- "alt": _vm.nomeArquivo
11560
+ "src": "" + _vm.imageURL,
11561
+ "alt": _vm.filename
11515
11562
  }
11516
11563
  })]) : _c('span', {
11517
11564
  key: "ra-doc-anexo",
11518
- staticClass: "anexo-icone",
11519
- class: [_vm.iconeClass],
11565
+ staticClass: "anexo-icon",
11566
+ class: [_vm.iconClass],
11520
11567
  attrs: {
11521
- "title": _vm.nomeArquivo,
11568
+ "title": _vm.filename,
11522
11569
  "target": "_blank",
11523
11570
  "rel": "noreferrer noopener"
11524
11571
  },
11525
11572
  on: {
11526
11573
  "click": function ($event) {
11527
- return _vm.abrirAnexo(_vm.docAnexo, false);
11574
+ return _vm.openWindowFromURL(_vm.docURL, false);
11528
11575
  }
11529
11576
  }
11530
11577
  }, [_c('fa-icon', {
11531
11578
  attrs: {
11532
- "icon": _vm.icone
11579
+ "icon": _vm.icon
11533
11580
  }
11534
11581
  })], 1), _vm._v(" "), _c('a', {
11535
11582
  key: "ra-download-icon",
11536
11583
  attrs: {
11537
- "href": _vm.imgAnexo ? _vm.imgAnexo : _vm.docAnexo,
11538
- "download": "" + _vm.nomeArquivo,
11584
+ "href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
11585
+ "download": "" + _vm.filename,
11539
11586
  "target": "_blank",
11540
11587
  "rel": "noreferrer noopener",
11541
- "title": "Download " + _vm.nomeArquivo
11588
+ "title": "Download " + _vm.filename
11542
11589
  }
11543
11590
  }, [_c('fa-icon', {
11544
11591
  attrs: {
@@ -11552,8 +11599,8 @@ var __vue_staticRenderFns__$8 = [];
11552
11599
 
11553
11600
  const __vue_inject_styles__$8 = function (inject) {
11554
11601
  if (!inject) return;
11555
- inject("data-v-037d5568_0", {
11556
- 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}",
11602
+ inject("data-v-0408a7b0_0", {
11603
+ source: ".fade-enter-active[data-v-0408a7b0],.fade-leave-active[data-v-0408a7b0]{transition:opacity .5s}.fade-enter[data-v-0408a7b0],.fade-leave-to[data-v-0408a7b0]{opacity:0}",
11557
11604
  map: undefined,
11558
11605
  media: undefined
11559
11606
  });
@@ -11561,7 +11608,7 @@ const __vue_inject_styles__$8 = function (inject) {
11561
11608
  /* scoped */
11562
11609
 
11563
11610
 
11564
- const __vue_scope_id__$8 = "data-v-037d5568";
11611
+ const __vue_scope_id__$8 = "data-v-0408a7b0";
11565
11612
  /* module identifier */
11566
11613
 
11567
11614
  const __vue_module_identifier__$8 = undefined;
@@ -11848,6 +11895,7 @@ var __vue_component__$b = __vue_component__$a;
11848
11895
 
11849
11896
  //
11850
11897
  var script$6 = {
11898
+ mixins: [fileHandler],
11851
11899
  components: {
11852
11900
  Loader
11853
11901
  },
@@ -11872,15 +11920,6 @@ var script$6 = {
11872
11920
 
11873
11921
  data() {
11874
11922
  return {
11875
- carregando: true,
11876
- isAnexo: false,
11877
- imgAnexo: "",
11878
- tipoDoc: "",
11879
- docAnexo: "",
11880
- nomeArquivo: "",
11881
- audio: false,
11882
- video: false,
11883
- icone: [],
11884
11923
  imgErro: false,
11885
11924
  imgMsgErro: ''
11886
11925
  };
@@ -11888,49 +11927,17 @@ var script$6 = {
11888
11927
 
11889
11928
  mounted() {
11890
11929
  if (this.validarAnexo()) {
11891
- this.setVariaveisAnexo();
11930
+ this.setFileVars(this.anexo, {
11931
+ dominio: this.dominio
11932
+ });
11892
11933
  }
11893
11934
  },
11894
11935
 
11895
11936
  methods: {
11896
- abrirVisualizacaoImg(imagem) {
11897
- this.$emit("abrir-imagem", imagem);
11898
- },
11899
-
11900
- setVariaveisAnexo() {
11901
- try {
11902
- const {
11903
- anexo,
11904
- imgAnexo,
11905
- tipoDoc,
11906
- docAnexo,
11907
- nomeArquivo,
11908
- audio,
11909
- video
11910
- } = gerarVariaveisAnexo(this.anexo, {
11911
- dominio: this.dominio
11912
- });
11913
- this.isAnexo = anexo;
11914
- this.imgAnexo = imgAnexo;
11915
- this.tipoDoc = tipoDoc;
11916
- this.docAnexo = docAnexo;
11917
- this.nomeArquivo = nomeArquivo;
11918
- this.audio = audio;
11919
- this.video = video;
11920
- this.gerarIcone();
11921
- this.carregando = false;
11922
- } catch (e) {
11923
- console.error("Erro ao gerar as variaveis dos anexos");
11924
- console.error(e);
11925
- }
11926
- },
11927
-
11928
11937
  validarAnexo() {
11929
11938
  let status = true; //caso for audio ou documento ignorar
11930
11939
 
11931
- if (this.anexo.docAnexo || this.anexo.audio) {
11932
- return true;
11933
- }
11940
+ if (this.anexo.docURL || this.anexo.audio) return true;
11934
11941
 
11935
11942
  if (!this.anexo.name) {
11936
11943
  this.imgMsgErro = this.dictionary.img_com_erro_nome;
@@ -11940,11 +11947,7 @@ var script$6 = {
11940
11947
  if (!this.anexo.nomeGravacao) {
11941
11948
  this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
11942
11949
  status = false;
11943
- } // if(!this.anexo.size || this.anexo.size == 0){
11944
- // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
11945
- // status = false;
11946
- // }
11947
-
11950
+ }
11948
11951
 
11949
11952
  if (!this.anexo.type) {
11950
11953
  this.imgMsgErro = this.dictionary.img_com_erro_tipo;
@@ -11953,14 +11956,10 @@ var script$6 = {
11953
11956
 
11954
11957
  if (status == false) {
11955
11958
  this.imgErro = true;
11956
- this.carregando = false;
11959
+ this.isLoading = false;
11957
11960
  }
11958
11961
 
11959
11962
  return status;
11960
- },
11961
-
11962
- gerarIcone() {
11963
- this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11964
11963
  }
11965
11964
 
11966
11965
  }
@@ -12003,7 +12002,7 @@ var __vue_render__$6 = function () {
12003
12002
  attrs: {
12004
12003
  "icon": ['fas', 'file-image']
12005
12004
  }
12006
- }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
12005
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.isLoading ? _c('Loader', {
12007
12006
  key: "anexo-loader",
12008
12007
  attrs: {
12009
12008
  "small": true,
@@ -12012,17 +12011,17 @@ var __vue_render__$6 = function () {
12012
12011
  }) : _c('div', {
12013
12012
  key: "anexo-mensagem",
12014
12013
  staticClass: "anexo-mensagem"
12015
- }, [_vm.imgAnexo ? _c('img', {
12014
+ }, [_vm.imageURL ? _c('img', {
12016
12015
  attrs: {
12017
- "src": _vm.imgAnexo,
12016
+ "src": _vm.imageURL,
12018
12017
  "alt": _vm.dictionary.alt_msg_img
12019
12018
  },
12020
12019
  on: {
12021
12020
  "click": function ($event) {
12022
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
12021
+ return _vm.showImage(_vm.imageURL);
12023
12022
  }
12024
12023
  }
12025
- }) : _vm._e(), _vm._v(" "), _vm.imgAnexo ? _c('div', {
12024
+ }) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('div', {
12026
12025
  staticClass: "anexos-links-container"
12027
12026
  }, [_c('a', {
12028
12027
  attrs: {
@@ -12030,7 +12029,8 @@ var __vue_render__$6 = function () {
12030
12029
  },
12031
12030
  on: {
12032
12031
  "click": function ($event) {
12033
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
12032
+ $event.preventDefault();
12033
+ return _vm.showImage(_vm.imageURL);
12034
12034
  }
12035
12035
  }
12036
12036
  }, [_vm._v(" " + _vm._s(_vm.dictionary.titulo_visualizar_img) + " ")]), _vm._v(" "), _c('fa-icon', {
@@ -12039,63 +12039,64 @@ var __vue_render__$6 = function () {
12039
12039
  },
12040
12040
  on: {
12041
12041
  "click": function ($event) {
12042
- return _vm.abrirVisualizacaoImg(_vm.imgAnexo);
12042
+ return _vm.showImage(_vm.imageURL);
12043
12043
  }
12044
12044
  }
12045
- })], 1) : _vm.docAnexo ? _c('div', {
12045
+ })], 1) : _vm.docURL ? _c('div', {
12046
12046
  staticClass: "anexo-container"
12047
12047
  }, [_vm.audio || _vm.video ? [_vm.audio ? _c('audio', {
12048
12048
  attrs: {
12049
- "src": _vm.docAnexo,
12049
+ "src": _vm.docURL,
12050
12050
  "controls": "",
12051
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
12051
+ "title": _vm.fileType + " - " + _vm.filename
12052
12052
  }
12053
12053
  }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_audio) + " "), _c('a', {
12054
12054
  attrs: {
12055
- "href": _vm.docAnexo,
12055
+ "href": _vm.docURL,
12056
12056
  "target": "_blank",
12057
12057
  "rel": "noreferrer noopener"
12058
12058
  }
12059
12059
  }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_audio) + " ")])])]) : _vm._e(), _vm._v(" "), _vm.video ? _c('video', {
12060
12060
  attrs: {
12061
- "src": _vm.docAnexo,
12061
+ "src": _vm.docURL,
12062
12062
  "controls": "",
12063
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
12063
+ "title": _vm.fileType + " - " + _vm.filename
12064
12064
  }
12065
- }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.tipoDoc != 'erro' ? _c('a', {
12065
+ }, [_c('p', [_vm._v(" " + _vm._s(_vm.dictionary.msg_erro_video) + " "), _vm.fileType != 'erro' ? _c('a', {
12066
12066
  attrs: {
12067
- "href": _vm.docAnexo,
12067
+ "href": _vm.docURL,
12068
12068
  "target": "_blank",
12069
12069
  "rel": "noreferrer noopener"
12070
12070
  }
12071
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.tipoDoc != 'erro' ? _c('a', {
12071
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_abrir_video) + " ")]) : _vm._e()])]) : _vm._e()] : [_vm.fileType != 'erro' ? _c('a', {
12072
12072
  attrs: {
12073
- "href": _vm.docAnexo,
12073
+ "href": _vm.docURL,
12074
12074
  "target": "_blank",
12075
12075
  "rel": "noreferrer noopener",
12076
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
12076
+ "title": _vm.fileType + " - " + _vm.filename
12077
12077
  }
12078
12078
  }, [_c('fa-icon', {
12079
+ class: [_vm.iconClass],
12079
12080
  attrs: {
12080
- "icon": this.icone
12081
+ "icon": _vm.icon
12081
12082
  }
12082
12083
  }), _vm._v(" "), _c('p', {
12083
12084
  domProps: {
12084
- "textContent": _vm._s(_vm.nomeArquivo)
12085
+ "textContent": _vm._s(_vm.filename)
12085
12086
  }
12086
12087
  })], 1) : _c('p', {
12087
12088
  staticClass: "arquivo-erro",
12088
12089
  attrs: {
12089
- "title": _vm.tipoDoc + " - " + _vm.nomeArquivo
12090
+ "title": _vm.fileType + " - " + _vm.filename
12090
12091
  }
12091
12092
  }, [_c('fa-icon', {
12092
12093
  attrs: {
12093
12094
  "icon": ['fas', 'file-alt']
12094
12095
  }
12095
- }), _vm._v("\n " + _vm._s(_vm.nomeArquivo) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imgAnexo ? _c('a', {
12096
+ }), _vm._v("\n " + _vm._s(_vm.filename) + "\n ")], 1)]], 2) : _vm._e(), _vm._v(" "), _vm.imageURL ? _c('a', {
12096
12097
  attrs: {
12097
- "href": _vm.imgAnexo,
12098
- "download": "" + _vm.nomeArquivo,
12098
+ "href": _vm.imageURL,
12099
+ "download": "" + _vm.filename,
12099
12100
  "target": "_blank",
12100
12101
  "rel": "noreferrer noopener"
12101
12102
  }
@@ -12103,10 +12104,10 @@ var __vue_render__$6 = function () {
12103
12104
  attrs: {
12104
12105
  "icon": ['fas', 'download']
12105
12106
  }
12106
- })], 1) : _vm._e(), _vm._v(" "), _vm.docAnexo ? _c('a', {
12107
+ })], 1) : _vm._e(), _vm._v(" "), _vm.docURL ? _c('a', {
12107
12108
  attrs: {
12108
- "href": _vm.docAnexo,
12109
- "download": "" + _vm.nomeArquivo,
12109
+ "href": _vm.docURL,
12110
+ "download": "" + _vm.filename,
12110
12111
  "target": "_blank",
12111
12112
  "rel": "noreferrer noopener"
12112
12113
  }
@@ -12122,8 +12123,8 @@ var __vue_staticRenderFns__$6 = [];
12122
12123
 
12123
12124
  const __vue_inject_styles__$6 = function (inject) {
12124
12125
  if (!inject) return;
12125
- inject("data-v-19808158_0", {
12126
- 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}",
12126
+ inject("data-v-1a4340aa_0", {
12127
+ source: ".fade-enter-active[data-v-1a4340aa],.fade-leave-active[data-v-1a4340aa]{transition:opacity .5s}.fade-enter[data-v-1a4340aa],.fade-leave-to[data-v-1a4340aa]{opacity:0}.mensagem-div-anexo[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-1a4340aa]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container a[data-v-1a4340aa]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-1a4340aa],.anexo-container p[data-v-1a4340aa]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-1a4340aa]{font-size:2rem}.anexo-container audio[data-v-1a4340aa]{outline:0;width:100%}.anexo-container video[data-v-1a4340aa]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-1a4340aa]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-1a4340aa]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-1a4340aa]{cursor:pointer}.mensagem-div-anexo img[data-v-1a4340aa]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-1a4340aa]{width:100%;height:100%}.anexo-mensagem[data-v-1a4340aa]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-1a4340aa]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-1a4340aa]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-1a4340aa]{font-size:1.025em;margin-right:2px}.pdf[data-v-1a4340aa]{color:#e74c3c}.doc[data-v-1a4340aa]{color:#006bc9}",
12127
12128
  map: undefined,
12128
12129
  media: undefined
12129
12130
  });
@@ -12131,7 +12132,7 @@ const __vue_inject_styles__$6 = function (inject) {
12131
12132
  /* scoped */
12132
12133
 
12133
12134
 
12134
- const __vue_scope_id__$6 = "data-v-19808158";
12135
+ const __vue_scope_id__$6 = "data-v-1a4340aa";
12135
12136
  /* module identifier */
12136
12137
 
12137
12138
  const __vue_module_identifier__$6 = undefined;
@@ -12710,6 +12711,8 @@ var __vue_render__$3 = function () {
12710
12711
  }, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
12711
12712
  attrs: {
12712
12713
  "interatividade": _vm.interatividade,
12714
+ "dominio": _vm.dominio,
12715
+ "anexos": _vm.anexos,
12713
12716
  "dictionary": _vm.dictionary
12714
12717
  }
12715
12718
  }) : _c('div', {
@@ -12975,7 +12978,7 @@ var __vue_staticRenderFns__$3 = [];
12975
12978
 
12976
12979
  const __vue_inject_styles__$3 = function (inject) {
12977
12980
  if (!inject) return;
12978
- inject("data-v-257d4492_0", {
12981
+ inject("data-v-dded57e0_0", {
12979
12982
  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}",
12980
12983
  map: undefined,
12981
12984
  media: undefined