vue-intergrall-plugins 0.0.203 → 0.0.206

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.
@@ -3451,8 +3451,13 @@ var BtnMic = __vue_component__$v;
3451
3451
  //
3452
3452
  //
3453
3453
  //
3454
+ //
3454
3455
  var script$n = {
3455
3456
  props: {
3457
+ textId: {
3458
+ type: String,
3459
+ required: true
3460
+ },
3456
3461
  dictionary: {
3457
3462
  type: Object,
3458
3463
  required: true
@@ -3479,6 +3484,11 @@ var script$n = {
3479
3484
  required: false
3480
3485
  }
3481
3486
  },
3487
+
3488
+ mounted() {
3489
+ this.setPosition();
3490
+ },
3491
+
3482
3492
  methods: {
3483
3493
  deleteFile() {
3484
3494
  this.$emit("delete-file");
@@ -3486,6 +3496,14 @@ var script$n = {
3486
3496
 
3487
3497
  openImage() {
3488
3498
  this.$emit("open-image");
3499
+ },
3500
+
3501
+ setPosition() {
3502
+ try {
3503
+ this.$refs[`sfp-${this.textId}`].parentElement.style.bottom = `${this.$root.$refs[`tf-${this.textId}`].$el.offsetHeight}px`;
3504
+ } catch (e) {
3505
+ console.error("Erro ao setar a posicao do single file preview: ", e);
3506
+ }
3489
3507
  }
3490
3508
 
3491
3509
  }
@@ -3502,9 +3520,20 @@ var __vue_render__$n = function () {
3502
3520
 
3503
3521
  var _c = _vm._self._c || _h;
3504
3522
 
3505
- return _c('div', {
3523
+ return _vm.textId ? _c('div', {
3524
+ ref: "sfp-" + _vm.textId,
3506
3525
  staticClass: "single-file-preview"
3507
- }, [_c('span', {
3526
+ }, [_c('fa-icon', {
3527
+ staticClass: "close-icon",
3528
+ attrs: {
3529
+ "icon": ['fas', 'times-circle']
3530
+ },
3531
+ on: {
3532
+ "click": function ($event) {
3533
+ return _vm.$emit('close');
3534
+ }
3535
+ }
3536
+ }), _vm._v(" "), _c('span', {
3508
3537
  staticClass: "text-footer-exclude-file",
3509
3538
  attrs: {
3510
3539
  "title": _vm.dictionary.msg_cancelar_anexo
@@ -3514,7 +3543,7 @@ var __vue_render__$n = function () {
3514
3543
  }
3515
3544
  }, [_c('fa-icon', {
3516
3545
  attrs: {
3517
- "icon": ['fas', 'times-circle']
3546
+ "icon": ['fas', 'trash-alt']
3518
3547
  }
3519
3548
  })], 1), _vm._v(" "), _vm.fileFormatError ? _c('div', {
3520
3549
  staticClass: "text-footer-invalid-format"
@@ -3546,7 +3575,7 @@ var __vue_render__$n = function () {
3546
3575
  on: {
3547
3576
  "click": _vm.openImage
3548
3577
  }
3549
- })]) : _vm._e()]], 2);
3578
+ })]) : _vm._e()]], 2) : _vm._e();
3550
3579
  };
3551
3580
 
3552
3581
  var __vue_staticRenderFns__$n = [];
@@ -3554,8 +3583,8 @@ var __vue_staticRenderFns__$n = [];
3554
3583
 
3555
3584
  const __vue_inject_styles__$n = function (inject) {
3556
3585
  if (!inject) return;
3557
- inject("data-v-da00a08e_0", {
3558
- source: ".text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
3586
+ inject("data-v-bd51f352_0", {
3587
+ source: ".single-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.single-file-preview .close-icon:hover{opacity:1}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
3559
3588
  map: undefined,
3560
3589
  media: undefined
3561
3590
  });
@@ -3677,7 +3706,17 @@ var __vue_render__$m = function () {
3677
3706
 
3678
3707
  return _c('div', {
3679
3708
  staticClass: "multiple-file-preview"
3680
- }, [_c('transition-group', {
3709
+ }, [_c('fa-icon', {
3710
+ staticClass: "close-icon",
3711
+ attrs: {
3712
+ "icon": ['fas', 'times-circle']
3713
+ },
3714
+ on: {
3715
+ "click": function ($event) {
3716
+ return _vm.$emit('close');
3717
+ }
3718
+ }
3719
+ }), _vm._v(" "), _c('transition-group', {
3681
3720
  attrs: {
3682
3721
  "name": "fade"
3683
3722
  }
@@ -3752,7 +3791,7 @@ var __vue_render__$m = function () {
3752
3791
  }
3753
3792
  }, [_c('fa-icon', {
3754
3793
  attrs: {
3755
- "icon": ['fas', 'times-circle']
3794
+ "icon": ['fas', 'trash-alt']
3756
3795
  }
3757
3796
  })], 1)]);
3758
3797
  })], 2)], 1);
@@ -3763,8 +3802,8 @@ var __vue_staticRenderFns__$m = [];
3763
3802
 
3764
3803
  const __vue_inject_styles__$m = function (inject) {
3765
3804
  if (!inject) return;
3766
- inject("data-v-22ab2ae5_0", {
3767
- source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff;min-width:1rem;min-height:1rem;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
3805
+ inject("data-v-28d9ba6f_0", {
3806
+ source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
3768
3807
  map: undefined,
3769
3808
  media: undefined
3770
3809
  });
@@ -3991,6 +4030,7 @@ var script$l = {
3991
4030
 
3992
4031
  toggleFilePreview() {
3993
4032
  this.showFilePreview = !this.showFilePreview;
4033
+ if (this.showFilePreview && this.openFiles) this.toggleFiles();
3994
4034
  },
3995
4035
 
3996
4036
  emitFileVars() {
@@ -4055,7 +4095,7 @@ var __vue_render__$l = function () {
4055
4095
  return _c('span', {
4056
4096
  staticClass: "text-footer-actions--btn",
4057
4097
  class: {
4058
- 'files-activated': _vm.openFiles || _vm.file.length
4098
+ 'files-activated': _vm.openFiles || _vm.file.length || _vm.file.name
4059
4099
  },
4060
4100
  on: {
4061
4101
  "click": function ($event) {
@@ -4094,7 +4134,7 @@ var __vue_render__$l = function () {
4094
4134
  class: {
4095
4135
  'horizontal': _vm.cssStyle.outsideButtons
4096
4136
  }
4097
- }, [_c('div', {
4137
+ }, [!_vm.fileSettings.multiple ? [_c('div', {
4098
4138
  staticClass: "files-btn images",
4099
4139
  class: {
4100
4140
  'margin-bottom': _vm.cssStyle.outsideButtons
@@ -4125,7 +4165,25 @@ var __vue_render__$l = function () {
4125
4165
  attrs: {
4126
4166
  "icon": ['fas', 'file-alt']
4127
4167
  }
4128
- })], 1), _vm._v(" "), _c('div', {
4168
+ })], 1)] : _c('div', {
4169
+ staticClass: "files-btn both",
4170
+ attrs: {
4171
+ "title": _vm.dictionary.title_anexo_arq
4172
+ },
4173
+ on: {
4174
+ "click": function ($event) {
4175
+ return _vm.openSelectFileHandler('both');
4176
+ }
4177
+ }
4178
+ }, [_c('fa-icon', {
4179
+ attrs: {
4180
+ "icon": ['fas', 'image']
4181
+ }
4182
+ }), _vm._v(" "), _c('fa-icon', {
4183
+ attrs: {
4184
+ "icon": ['fas', 'file-alt']
4185
+ }
4186
+ })], 1), _vm._v(" "), _vm.fileSettings.systemButton ? _c('div', {
4129
4187
  staticClass: "files-btn system",
4130
4188
  attrs: {
4131
4189
  "title": _vm.dictionary.title_anexo_sistema
@@ -4139,7 +4197,7 @@ var __vue_render__$l = function () {
4139
4197
  attrs: {
4140
4198
  "icon": ['fas', 'server']
4141
4199
  }
4142
- })], 1)]) : _vm._e()]), _vm._v(" "), _c('div', {
4200
+ })], 1) : _vm._e()], 2) : _vm._e()]), _vm._v(" "), _c('div', {
4143
4201
  staticClass: "files-pointers d-none"
4144
4202
  }, [_vm.fileSettings.multiple ? _c('input', {
4145
4203
  attrs: {
@@ -4205,11 +4263,13 @@ var __vue_render__$l = function () {
4205
4263
  "isDoc": _vm.isDoc,
4206
4264
  "fileFormatError": _vm.fileFormatError,
4207
4265
  "validFileFormats": _vm.validFileFormats,
4208
- "imagePreview": _vm.imagePreview
4266
+ "imagePreview": _vm.imagePreview,
4267
+ "textId": _vm.textId
4209
4268
  },
4210
4269
  on: {
4211
4270
  "delete-file": _vm.deleteFile,
4212
- "open-image": _vm.openImage
4271
+ "open-image": _vm.openImage,
4272
+ "close": _vm.away
4213
4273
  }
4214
4274
  }) : _vm.fileSettings.multiple && _vm.showFilePreview ? _c('MultipleFilePreview', {
4215
4275
  attrs: {
@@ -4221,7 +4281,8 @@ var __vue_render__$l = function () {
4221
4281
  on: {
4222
4282
  "delete-file": _vm.deleteFile,
4223
4283
  "delete-specific-file": _vm.deleteSpecificFile,
4224
- "open-image": _vm.openImage
4284
+ "open-image": _vm.openImage,
4285
+ "close": _vm.away
4225
4286
  }
4226
4287
  }) : _vm._e()], 1)])], 1);
4227
4288
  };
@@ -4231,7 +4292,7 @@ var __vue_staticRenderFns__$l = [];
4231
4292
 
4232
4293
  const __vue_inject_styles__$l = function (inject) {
4233
4294
  if (!inject) return;
4234
- inject("data-v-2ac0bc50_0", {
4295
+ inject("data-v-d44e0484_0", {
4235
4296
  source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}",
4236
4297
  map: undefined,
4237
4298
  media: undefined
@@ -8282,7 +8343,7 @@ const standardMessages = {
8282
8343
  return this.$httpRequest({
8283
8344
  method: 'get',
8284
8345
  url: `${baseURL}/messages/${type}?token_cliente=${token}${dev}` // headers: {
8285
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1UzakpwZmViWkc1Y1M4dm9rRnBOdFY2WEYxaTh0ZllLWEkzV0ljRTd0M0dxeSIsIm1hbmFnZXIiOiJNS1VxQnBrRlIzQk5ING02Q2J3d2ltNGw1d3dJd3d4YjQ0YXd3aFk1VXd3aW00bDV3d2szSWZJV2RGc2dFRjhjdEhoOVB2eCIsImhhc19pbmZvcyI6dHJ1ZSwibnJvcyI6WyIyOCJdLCJhdXRoIjoiTUtVYXNtV3NNSnpZdmV2R2VQYTRubkZqdHRWR3gxODl6RnRWNDVtVUdFN1JlazAiLCJpYXQiOjE2NDg2NTkwNjQsImV4cCI6MTY0ODc0NTQ2NH0.vdwahP7qSwLJ8qYdQsG-ydL1Y-tzf6Frt0rnd9fYpIU"
8346
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VUUnd3aW00bDV3d0piTHczb2xPYWtTbWxab283Q1F2MDY3V3pWR2E3VkhDQ2FMUEdsS2VQIiwibWFuYWdlciI6Ik1LVXFCcGtGUjNCTkhrbTZ5Znd3aW00bDV3d0l2Tlk0MDZrMzQ3SVdkRnNnRUY4Y3RIaDlQdngiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOltdLCJhdXRoIjoiTUtVdXdGZjdjMXd3eGI0NGF3d1F4eGlia3N2NW5YR2FxOWZVNkxMYnAzQ0tkS1NHa0RvbWV4ZiIsImlhdCI6MTY0ODgxMjYzOSwiZXhwIjoxNjQ4ODk5MDM5fQ.IMpYYLoxiX566-Y2fqNlJu0qBkEyOOTWZ25UqeOyPUs"
8286
8347
  // }
8287
8348
 
8288
8349
  }).then(response => {
@@ -8353,7 +8414,7 @@ var script$i = {
8353
8414
  key_2: "",
8354
8415
  formatted_messages_3: [],
8355
8416
  key_3: "",
8356
- loadingReq: false
8417
+ loadingReq: true
8357
8418
  };
8358
8419
  },
8359
8420
 
@@ -8406,6 +8467,7 @@ var script$i = {
8406
8467
  }).catch(e => {
8407
8468
  this.loadingReq = false;
8408
8469
  this.$toasted.global.defaultError();
8470
+ this.closeStandardMessages();
8409
8471
  console.error("Error in getStandardMessages: ", e);
8410
8472
  });
8411
8473
  } catch (e) {
@@ -8529,34 +8591,7 @@ var __vue_render__$i = function () {
8529
8591
 
8530
8592
  return _c('div', {
8531
8593
  staticClass: "text-footer-hsm-container"
8532
- }, [_c('v-select', {
8533
- staticClass: "text-footer-v-select",
8534
- style: "background-color: " + _vm.backgroundColor,
8535
- attrs: {
8536
- "appendToBody": "",
8537
- "calculatePosition": _vm.calculateSelectPosition,
8538
- "options": _vm.formatted_messages_1,
8539
- "label": "value",
8540
- "reduce": function (formatted_messages_1) {
8541
- return formatted_messages_1.cod;
8542
- }
8543
- },
8544
- on: {
8545
- "input": _vm.inputSelectKey1
8546
- },
8547
- model: {
8548
- value: _vm.key_1,
8549
- callback: function ($$v) {
8550
- _vm.key_1 = $$v;
8551
- },
8552
- expression: "key_1"
8553
- }
8554
8594
  }, [_c('div', {
8555
- attrs: {
8556
- "slot": "no-options"
8557
- },
8558
- slot: "no-options"
8559
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _c('div', {
8560
8595
  staticClass: "transition-selects"
8561
8596
  }, [_c('transition', {
8562
8597
  attrs: {
@@ -8631,7 +8666,7 @@ var __vue_render__$i = function () {
8631
8666
  slot: "no-options"
8632
8667
  }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8633
8668
  staticClass: "loader-select"
8634
- }, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
8669
+ }, [_c('VueLoader')], 1) : _vm._e()])], 1)]);
8635
8670
  };
8636
8671
 
8637
8672
  var __vue_staticRenderFns__$i = [];
@@ -8639,7 +8674,7 @@ var __vue_staticRenderFns__$i = [];
8639
8674
 
8640
8675
  const __vue_inject_styles__$i = function (inject) {
8641
8676
  if (!inject) return;
8642
- inject("data-v-d7521b32_0", {
8677
+ inject("data-v-4e81952e_0", {
8643
8678
  source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
8644
8679
  map: undefined,
8645
8680
  media: undefined
@@ -8744,7 +8779,8 @@ var script$h = {
8744
8779
  return {
8745
8780
  docsExtensions: "",
8746
8781
  imagesExtensions: "",
8747
- multiple: false
8782
+ multiple: false,
8783
+ systemButton: false
8748
8784
  };
8749
8785
  },
8750
8786
  required: false
@@ -9298,7 +9334,7 @@ var __vue_render__$h = function () {
9298
9334
  attrs: {
9299
9335
  "icon": ['fas', 'paper-plane']
9300
9336
  }
9301
- })], 1)]) : _vm._e(), _vm._v(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand ? _c('div', {
9337
+ })], 1)]) : _vm._e(), _vm._v(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand || _vm.formattedMessageSettings.hasStandardMessages ? _c('div', {
9302
9338
  staticClass: "text-footer-actions",
9303
9339
  class: {
9304
9340
  'outside-buttons': _vm.cssStyle.outsideButtons && !_vm.audioFile
@@ -9321,8 +9357,8 @@ var __vue_render__$h = function () {
9321
9357
  directives: [{
9322
9358
  name: "show",
9323
9359
  rawName: "v-show",
9324
- value: _vm.formattedMessageSettings.hasStandardMessages,
9325
- expression: "formattedMessageSettings.hasStandardMessages"
9360
+ value: _vm.formattedMessageSettings.hasStandardMessages && !_vm.audioFile,
9361
+ expression: "formattedMessageSettings.hasStandardMessages && !audioFile"
9326
9362
  }],
9327
9363
  ref: _vm.textId + "-standard-messages",
9328
9364
  attrs: {
@@ -9397,8 +9433,8 @@ var __vue_staticRenderFns__$h = [];
9397
9433
 
9398
9434
  const __vue_inject_styles__$h = function (inject) {
9399
9435
  if (!inject) return;
9400
- inject("data-v-bb390258_0", {
9401
- source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
9436
+ inject("data-v-48659e85_0", {
9437
+ source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
9402
9438
  map: undefined,
9403
9439
  media: undefined
9404
9440
  });
@@ -9704,37 +9740,39 @@ var script$f = {
9704
9740
  if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
9705
9741
  const arrComponents = this.selectedTemplate[index];
9706
9742
  arrComponents.map(component => {
9707
- component.parameters.map(message => {
9708
- message.currentText = message.text;
9709
- let keyIndex = 0;
9743
+ if (component && component.parameters && component.parameters.length) {
9744
+ component.parameters.map(message => {
9745
+ message.currentText = message.text;
9746
+ let keyIndex = 0;
9747
+
9748
+ while (keyIndex < keys.length) {
9749
+ const varName = `{{${keys[keyIndex]}}}`;
9710
9750
 
9711
- while (keyIndex < keys.length) {
9712
- const varName = `{{${keys[keyIndex]}}}`;
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
9713
9755
 
9714
- if (message.text.indexOf(varName) != -1) {
9715
- /**Gerando os obejetos de parametros da notifica??o para o component */
9716
- if (component.type === "header") {
9717
- this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
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
9718
9763
 
9719
- this.selectedTemplate['parameters'][component.type] = {
9720
- tipo: "text",
9721
- text: values[keyIndex]
9722
- };
9723
- } else if (!this.selectedTemplate['parameters'][component.type]) {
9724
- this.selectedTemplate['parameters'][component.type] = new Array();
9725
- } //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
9726
9764
 
9765
+ if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9766
+ this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9767
+ }
9727
9768
 
9728
- if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9729
- this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9769
+ message.currentText = message.currentText.replace(varName, values[keyIndex]);
9730
9770
  }
9731
9771
 
9732
- message.currentText = message.currentText.replace(varName, values[keyIndex]);
9772
+ keyIndex++;
9733
9773
  }
9734
-
9735
- keyIndex++;
9736
- }
9737
- });
9774
+ });
9775
+ }
9738
9776
  });
9739
9777
  }
9740
9778
  }
@@ -9832,7 +9870,7 @@ var __vue_staticRenderFns__$f = [];
9832
9870
 
9833
9871
  const __vue_inject_styles__$f = function (inject) {
9834
9872
  if (!inject) return;
9835
- inject("data-v-1c24c23b_0", {
9873
+ inject("data-v-0b0bc59a_0", {
9836
9874
  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}",
9837
9875
  map: undefined,
9838
9876
  media: undefined