vue-intergrall-plugins 0.0.263 → 0.0.265

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.
@@ -1868,6 +1868,50 @@ var createPopper = /*#__PURE__*/popperGenerator({
1868
1868
  //
1869
1869
  //
1870
1870
  //
1871
+ //
1872
+ //
1873
+ //
1874
+ //
1875
+ //
1876
+ //
1877
+ //
1878
+ //
1879
+ //
1880
+ //
1881
+ //
1882
+ //
1883
+ //
1884
+ //
1885
+ //
1886
+ //
1887
+ //
1888
+ //
1889
+ //
1890
+ //
1891
+ //
1892
+ //
1893
+ //
1894
+ //
1895
+ //
1896
+ //
1897
+ //
1898
+ //
1899
+ //
1900
+ //
1901
+ //
1902
+ //
1903
+ //
1904
+ //
1905
+ //
1906
+ //
1907
+ //
1908
+ //
1909
+ //
1910
+ //
1911
+ //
1912
+ //
1913
+ //
1914
+ //
1871
1915
  var script$y = {
1872
1916
  data: function data() {
1873
1917
  return {
@@ -1875,7 +1919,9 @@ var script$y = {
1875
1919
  regexVars: /{{var_\d}}/g,
1876
1920
  lastVar: 0,
1877
1921
  htmlInputString: "<input type='text' class='input-var input-var-".concat(this.identifier, "' autocomplete='off' />"),
1878
- varListValues: ""
1922
+ varListValues: "",
1923
+ acceptedExtensions: "audio/aac, audio/mp4, audio/mpeg, audio/amr, audio/ogg, text/plain, application/pdf, application/vnd.ms-powerpoint, application/msword, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreasheetml.sheet, image/jpeg, image/png, video/mp4, video/3gp, image/webp",
1924
+ headerFiles: []
1879
1925
  };
1880
1926
  },
1881
1927
  props: {
@@ -1907,12 +1953,35 @@ var script$y = {
1907
1953
  required: true
1908
1954
  }
1909
1955
  },
1956
+ computed: {
1957
+ hasFooterComponent: function hasFooterComponent() {
1958
+ if (!this.template.components || !this.template.components.length) return false;
1959
+ var types = [];
1960
+ this.template.components.forEach(function (_ref) {
1961
+ var type = _ref.type;
1962
+ return types.push(type);
1963
+ });
1964
+ if (types.includes('footer')) return true;
1965
+ return false;
1966
+ },
1967
+ hasButtonOrFooterComponent: function hasButtonOrFooterComponent() {
1968
+ if (!this.template.components || !this.template.components.length) return false;
1969
+ var types = [];
1970
+ this.template.components.forEach(function (_ref2) {
1971
+ var type = _ref2.type;
1972
+ return types.push(type);
1973
+ });
1974
+ if (types.includes('button')) return true;
1975
+ return this.hasFooterComponent;
1976
+ }
1977
+ },
1910
1978
  created: function created() {
1911
1979
  this.$root.$refs["template-single-".concat(this.identifier)] = this;
1912
1980
  },
1913
1981
  mounted: function mounted() {
1914
1982
  if (this.allVariables) this.getListOpts();
1915
1983
  this.setInputs();
1984
+ this.setImageVar(false);
1916
1985
  },
1917
1986
  updated: function updated() {
1918
1987
  this.lastVar = 0;
@@ -1941,42 +2010,161 @@ var script$y = {
1941
2010
  target: input
1942
2011
  }, input.id.replace(/[{}]+/g, ''));
1943
2012
  });
2013
+ this.setImageVar(false);
1944
2014
  },
1945
2015
  getListOpts: function getListOpts() {
1946
2016
  this.varListValues = "<ul class=\"ts-dropdown\">\n <li> nome </li>\n ".concat(this.allVariables ? '<li> telefone </li>' : '', "\n </ul>");
1947
2017
  },
1948
- setInputs: function setInputs() {
2018
+ fileUpload: function fileUpload(event) {
1949
2019
  var _this2 = this;
1950
2020
 
2021
+ try {
2022
+ var allFiles = event.target.files ? event.target.files : event.dataTransfer.files ? event.dataTransfer.files : false;
2023
+ if (!allFiles || !allFiles.length) return this.setImageVar(false);
2024
+
2025
+ if (allFiles.length > 1) {
2026
+ this.$toasted.global.defaultInfo({
2027
+ msg: "Limite de 1 arquivo por vez"
2028
+ });
2029
+ return this.setImageVar(false);
2030
+ }
2031
+
2032
+ var file = allFiles[0];
2033
+ var type = file.type,
2034
+ name = file.name;
2035
+ var validTypes = ['audio/aac', 'audio/mp4', 'audio/mpeg', 'audio/amr', 'audio/ogg', 'text/plain', 'application/pdf', 'application/vnd.ms-powerpoint', 'application/msword', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.spreasheetml.sheet', 'image/jpeg', 'image/png', 'video/mp4', 'video/3gp', 'image/webp'];
2036
+
2037
+ if (!validTypes.includes(type)) {
2038
+ this.$toasted.global.defaultInfo({
2039
+ msg: "(".concat(type, ") ").concat(this.dictionary.msg_arquivo_invalido)
2040
+ });
2041
+ return this.setImageVar(false);
2042
+ }
2043
+
2044
+ var returnArrType = function returnArrType(str) {
2045
+ var arr = [];
2046
+ validTypes.forEach(function (currentType) {
2047
+ if (currentType.indexOf(str) > -1) arr.push(currentType);
2048
+ });
2049
+ return arr;
2050
+ };
2051
+
2052
+ var imageTypes = returnArrType('image/');
2053
+ var docTypes = returnArrType('application/');
2054
+ var audioTypes = returnArrType('audio/');
2055
+ var videoTypes = returnArrType('video/');
2056
+ var isPdf = type.indexOf('application/pdf') > -1;
2057
+ var sizeInBytes = 0;
2058
+ Array.from(allFiles).forEach(function (file) {
2059
+ return sizeInBytes += file.size;
2060
+ });
2061
+ var sizeInMb = parseFloat((sizeInBytes / (1024 * 1024)).toFixed(2));
2062
+
2063
+ if (sizeInMb == 0 && sizeInBytes == 0) {
2064
+ this.$toasted.global.defaultInfo({
2065
+ msg: this.dictionary.msg_arquivo_invalido
2066
+ });
2067
+ return this.setImageVar(false);
2068
+ }
2069
+
2070
+ var max = imageTypes.includes(type) ? 5 : 15;
2071
+
2072
+ if (sizeInMb >= max) {
2073
+ this.$toasted.global.defaultInfo({
2074
+ msg: "Limite de ".concat(max, " MB por arquivo")
2075
+ });
2076
+ return this.setImageVar(false);
2077
+ }
2078
+
2079
+ var fileReader = new FileReader();
2080
+ var current_icon = 'file-alt',
2081
+ current_color = 'blue',
2082
+ setValues = true;
2083
+
2084
+ if (imageTypes.includes(type)) {
2085
+ setValues = false;
2086
+ fileReader.readAsDataURL(file);
2087
+
2088
+ fileReader.onload = function () {
2089
+ var image_preview = fileReader.result;
2090
+ _this2.headerFiles[0] = {
2091
+ file: file,
2092
+ image_preview: image_preview,
2093
+ current_icon: current_icon,
2094
+ current_color: current_color,
2095
+ name: name
2096
+ };
2097
+
2098
+ _this2.$forceUpdate();
2099
+
2100
+ _this2.setImageVar(file);
2101
+ };
2102
+ } else if (docTypes.includes(type) && isPdf) {
2103
+ current_icon = 'file-pdf';
2104
+ current_color = 'red';
2105
+ } else if (audioTypes.includes(type)) {
2106
+ current_icon = 'microphone';
2107
+ current_color = 'black';
2108
+ } else if (videoTypes.includes(type)) {
2109
+ current_icon = 'video', current_color = 'black';
2110
+ }
2111
+
2112
+ if (setValues) {
2113
+ this.headerFiles[0] = {
2114
+ file: file,
2115
+ current_icon: current_icon,
2116
+ current_color: current_color,
2117
+ name: name
2118
+ };
2119
+ this.$forceUpdate();
2120
+ this.setImageVar(file);
2121
+ }
2122
+ } catch (error) {
2123
+ console.error("Erro file upload: ", error);
2124
+ }
2125
+ },
2126
+ triggerInputFile: function triggerInputFile(origin) {
2127
+ if (this.$refs["ts-input-".concat(origin)]) {
2128
+ var elem = this.$refs["ts-input-".concat(origin)][0] ? this.$refs["ts-input-".concat(origin)][0] : this.$refs["ts-input-".concat(origin)];
2129
+ elem && elem.click();
2130
+ }
2131
+ },
2132
+ setInputs: function setInputs() {
2133
+ var _this3 = this;
2134
+
1951
2135
  var qtdInputs = 0;
1952
2136
  var header = document.querySelector("#template_header");
1953
2137
  var body = document.querySelector("#template_body");
1954
2138
  var footer = document.querySelector("#template_footer");
2139
+ var hasText = false;
1955
2140
 
1956
2141
  if (header !== null) {
1957
2142
  header.querySelectorAll(".input-var-".concat(this.identifier)).forEach(function (input) {
1958
- _this2.setEvent(input);
2143
+ _this3.setEvent(input);
1959
2144
  });
1960
2145
  qtdInputs += header.querySelectorAll(".input-var-".concat(this.identifier)).length;
2146
+ if (qtdInputs > 0 && header.innerText) hasText = true;
1961
2147
  }
1962
2148
 
1963
2149
  if (this.lastVar === 0) this.lastVar += 1;
1964
2150
 
1965
2151
  if (body !== null) {
1966
2152
  body.querySelectorAll(".input-var-".concat(this.identifier)).forEach(function (input) {
1967
- _this2.setEvent(input);
2153
+ _this3.setEvent(input);
1968
2154
  });
1969
2155
  qtdInputs += body.querySelectorAll(".input-var-".concat(this.identifier)).length;
2156
+ if (qtdInputs > 0 && body.innerText) hasText = true;
1970
2157
  }
1971
2158
 
1972
2159
  if (footer !== null) {
1973
2160
  footer.querySelectorAll(".input-var-".concat(this.identifier)).forEach(function (input) {
1974
- _this2.setEvent(input);
2161
+ _this3.setEvent(input);
1975
2162
  });
1976
2163
  qtdInputs += footer.querySelectorAll(".input-var-".concat(this.identifier)).length;
2164
+ if (qtdInputs > 0 && footer.innerText) hasText = true;
1977
2165
  }
1978
2166
 
1979
- if (qtdInputs === 1) {
2167
+ if (qtdInputs === 1 && !hasText) {
1980
2168
  document.querySelector(".input-var-".concat(this.identifier)).parentElement.style.width = "100%";
1981
2169
  document.querySelector(".input-var-".concat(this.identifier)).style.width = "100%";
1982
2170
  } else if (qtdInputs === 0) {
@@ -1984,14 +2172,14 @@ var script$y = {
1984
2172
  }
1985
2173
  },
1986
2174
  setEvent: function setEvent(input) {
1987
- var _this3 = this;
2175
+ var _this4 = this;
1988
2176
 
1989
2177
  var varList = input.nextSibling;
1990
2178
  var currentInstance = this;
1991
2179
  input.setAttribute("placeholder", "{{var_".concat(this.lastVar, "}}"));
1992
2180
  input.setAttribute("id", "{{var_".concat(this.lastVar, "}}"));
1993
2181
  input.addEventListener("input", function (event) {
1994
- _this3.setVar(event, "var_".concat(_this3.lastVar), true);
2182
+ _this4.setVar(event, "var_".concat(_this4.lastVar), true);
1995
2183
 
1996
2184
  if (varList) varList.classList.remove("visible");
1997
2185
  });
@@ -2014,7 +2202,7 @@ var script$y = {
2014
2202
  });
2015
2203
  }
2016
2204
 
2017
- if (!stop && _this3.$refs["template-single-button"]) _this3.$refs["template-single-button"].focus();
2205
+ if (!stop && _this4.$refs["template-single-button"]) _this4.$refs["template-single-button"].focus();
2018
2206
  };
2019
2207
 
2020
2208
  for (var i = 0; i < varList.children.length; i++) {
@@ -2040,7 +2228,7 @@ var script$y = {
2040
2228
  });
2041
2229
  input.addEventListener("blur", function () {
2042
2230
  if (input.value) {
2043
- if (_this3.isValid(input.value)) {
2231
+ if (_this4.isValid(input.value)) {
2044
2232
  input.classList.add("active");
2045
2233
  } else {
2046
2234
  input.classList.add("invalid");
@@ -2053,7 +2241,7 @@ var script$y = {
2053
2241
  if (varList) varList.classList.remove("visible");
2054
2242
  });
2055
2243
  input.addEventListener("keydown", function (event) {
2056
- if (event.keyCode == 13 && _this3.hasButton) _this3.$emit("click-trigger");
2244
+ if (event.keyCode == 13 && _this4.hasButton) _this4.$emit("click-trigger");
2057
2245
  });
2058
2246
  this.lastVar += 1;
2059
2247
  },
@@ -2085,6 +2273,18 @@ var script$y = {
2085
2273
 
2086
2274
  return isValueValid;
2087
2275
  },
2276
+ setImageVar: function setImageVar(file) {
2277
+ this.$emit("set-file-var", file);
2278
+
2279
+ if (!file) {
2280
+ this.headerFiles = [];
2281
+ return this.$forceUpdate();
2282
+ } else {
2283
+ if (this.lastVar == 0) return this.$emit("set-vars", this.template);
2284
+ if (Object.keys(this.varValues).length) return this.$emit("set-vars", this.varValues);
2285
+ this.handleInitialFocus();
2286
+ }
2287
+ },
2088
2288
  setVar: function setVar(event, key, notificar) {
2089
2289
  if (event && event.target) {
2090
2290
  key = event.target.id.replace(/[{}]+/g, '');
@@ -2189,17 +2389,74 @@ var __vue_render__$y = function __vue_render__() {
2189
2389
 
2190
2390
  return _c('div', {
2191
2391
  staticClass: "ts-container"
2192
- }, [_vm._ssrNode("<div class=\"ts-content\">" + _vm._ssrList(_vm.template.components, function (component, cIndex) {
2193
- return "<div>" + (component.type === 'header' ? "<header id=\"template_header\">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2194
- return "<div>" + (param.type === 'text' ? _vm.regexVars.test(param.text) ? "<div>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2195
- }) + "</header>" : "<!---->") + " " + (component.type === 'body' ? "<section id=\"template_body\"" + _vm._ssrClass(null, {
2196
- 'margin-bottom': _vm.template.components.length === 2
2197
- }) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2392
+ }, [_vm._ssrNode("<div class=\"ts-content\">", "</div>", _vm._l(_vm.template.components, function (component, cIndex) {
2393
+ return _vm._ssrNode("<div" + _vm._ssrClass(null, "" + (component.type == 'footer' ? 'order-1 custom-box-shadow-bottom' : '') + (_vm.template.components.length == 1 ? 'custom-box-shadow-bottom' : '')) + ">", "</div>", [component.type === 'header' ? _vm._ssrNode("<header id=\"template_header\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + ">", "</header>", _vm._l(component.parameters, function (param, pIndex) {
2394
+ return _vm._ssrNode("<div>", "</div>", [param.type === 'text' ? [_vm._ssrNode(_vm.regexVars.test(param.text) ? "<div>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p>" + _vm._s(param.text) + "</p>")] : param.type == 'image' ? _vm._ssrNode("<div class=\"ts-image-type\">", "</div>", [_vm._ssrNode("<input type=\"file\"" + _vm._ssrAttr("accept", _vm.acceptedExtensions) + " class=\"d-none\"> "), _vm.headerFiles[0] ? [_vm.headerFiles[0].image_preview ? _c('img', {
2395
+ directives: [{
2396
+ name: "tippy",
2397
+ rawName: "v-tippy",
2398
+ value: {
2399
+ placement: 'right'
2400
+ },
2401
+ expression: "{placement: 'right'}"
2402
+ }],
2403
+ attrs: {
2404
+ "src": _vm.headerFiles[0].image_preview,
2405
+ "alt": "Previa da imagem",
2406
+ "content": _vm.headerFiles[0].name
2407
+ },
2408
+ on: {
2409
+ "click": function click($event) {
2410
+ return _vm.triggerInputFile("header-" + pIndex);
2411
+ }
2412
+ }
2413
+ }) : _c('fa-icon', {
2414
+ directives: [{
2415
+ name: "tippy",
2416
+ rawName: "v-tippy",
2417
+ value: {
2418
+ placement: 'right'
2419
+ },
2420
+ expression: "{placement: 'right'}"
2421
+ }],
2422
+ class: "color-" + _vm.headerFiles[0].current_color,
2423
+ attrs: {
2424
+ "icon": ['fas', _vm.headerFiles[0].current_icon],
2425
+ "content": _vm.headerFiles[0].name
2426
+ },
2427
+ on: {
2428
+ "click": function click($event) {
2429
+ return _vm.triggerInputFile("header-" + pIndex);
2430
+ }
2431
+ }
2432
+ })] : _c('fa-icon', {
2433
+ directives: [{
2434
+ name: "tippy",
2435
+ rawName: "v-tippy",
2436
+ value: {
2437
+ placement: 'right'
2438
+ },
2439
+ expression: "{placement: 'right'}"
2440
+ }],
2441
+ staticClass: "select-image",
2442
+ attrs: {
2443
+ "icon": ['fas', 'image'],
2444
+ "content": "Selecionar anexo"
2445
+ },
2446
+ on: {
2447
+ "click": function click($event) {
2448
+ return _vm.triggerInputFile("header-" + pIndex);
2449
+ }
2450
+ }
2451
+ })], 2) : _vm._e()], 2);
2452
+ }), 0) : _vm._e(), _vm._ssrNode(" " + (component.type === 'body' ? "<section id=\"template_body\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasButtonOrFooterComponent ? 'custom-footer-style custom-box-shadow-bottom custom-border-gray' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2198
2453
  return "<div>" + (param.type === 'text' ? _vm.regexVars.test(param.text) ? "<div>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2199
- }) + "</section>" : "<!---->") + " " + (component.type == 'footer' ? "<footer id=\"template_footer\">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2454
+ }) + "</section>" : "<!---->") + " " + (component.type == 'button' ? "<section id=\"template_buttons\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasFooterComponent ? 'custom-footer-style custom-box-shadow-bottom' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2455
+ return "<div class=\"ts-button\">" + (param.text ? "<p>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2456
+ }) + "</section>" : "<!---->") + " " + (component.type == 'footer' ? "<footer id=\"template_footer\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2200
2457
  return "<div>" + (param.type == 'text' ? "<small>" + _vm._s(param.text) + "</small>" : "<!---->") + "</div>";
2201
- }) + "</footer>" : "<!---->") + "</div>";
2202
- }) + "</div> "), _vm.hasButton ? _vm._ssrNode("<div" + _vm._ssrClass("tg-btn", {
2458
+ }) + "</footer>" : "<!---->"))], 2);
2459
+ }), 0), _vm._ssrNode(" "), _vm.hasButton ? _vm._ssrNode("<div" + _vm._ssrClass("tg-btn", {
2203
2460
  'small-btn': _vm.iconButton
2204
2461
  }) + ">", "</div>", [_vm._ssrNode("<button>", "</button>", [!_vm.iconButton ? [_c('fa-icon', {
2205
2462
  attrs: {
@@ -2221,7 +2478,7 @@ var __vue_inject_styles__$y = undefined;
2221
2478
  var __vue_scope_id__$y = undefined;
2222
2479
  /* module identifier */
2223
2480
 
2224
- var __vue_module_identifier__$y = "data-v-6048207e";
2481
+ var __vue_module_identifier__$y = "data-v-7cd51b67";
2225
2482
  /* functional template */
2226
2483
 
2227
2484
  var __vue_is_functional_template__$y = false;
@@ -9349,7 +9606,7 @@ var __vue_render__$i = function __vue_render__() {
9349
9606
  return _c('div', {
9350
9607
  staticClass: "ts-container"
9351
9608
  }, [_vm._ssrNode("<div class=\"ts-content\">", "</div>", [_vm._ssrNode("<section" + _vm._ssrClass(null, {
9352
- 'tm-container': _vm.hasButton
9609
+ 'tm-container custom-box-shadow-bottom': _vm.hasButton
9353
9610
  }) + ">", "</section>", [_c('TextFooter', {
9354
9611
  ref: "text-footer-template-message",
9355
9612
  attrs: {
@@ -9382,7 +9639,7 @@ var __vue_inject_styles__$i = undefined;
9382
9639
  var __vue_scope_id__$i = undefined;
9383
9640
  /* module identifier */
9384
9641
 
9385
- var __vue_module_identifier__$i = "data-v-6d6117ca";
9642
+ var __vue_module_identifier__$i = "data-v-5971fd9f";
9386
9643
  /* functional template */
9387
9644
 
9388
9645
  var __vue_is_functional_template__$i = false;
@@ -9452,7 +9709,8 @@ var script$h = {
9452
9709
  return {
9453
9710
  templateOptions: [],
9454
9711
  codTemplate: {},
9455
- selectedTemplate: null
9712
+ selectedTemplate: null // hasFile: false
9713
+
9456
9714
  };
9457
9715
  },
9458
9716
  mounted: function mounted() {
@@ -9519,7 +9777,8 @@ var script$h = {
9519
9777
  });
9520
9778
  } else {
9521
9779
  this.selectedTemplate = null;
9522
- }
9780
+ } // if(this.hasFile) this.setFileVar(false)
9781
+
9523
9782
 
9524
9783
  this.adjustOnSelect();
9525
9784
  },
@@ -9602,6 +9861,10 @@ var script$h = {
9602
9861
 
9603
9862
  this.$emit("template-data", this.selectedTemplate);
9604
9863
  },
9864
+ setFileVar: function setFileVar(file) {
9865
+ // this.hasFile = file ? true : false
9866
+ this.$emit("set-file-var", file);
9867
+ },
9605
9868
  setMessage: function setMessage(message) {
9606
9869
  this.$emit("static-message", message);
9607
9870
  }
@@ -9649,6 +9912,7 @@ var __vue_render__$h = function __vue_render__() {
9649
9912
  },
9650
9913
  slot: "no-options"
9651
9914
  })])], 2), _vm._ssrNode(" "), _vm.selectedTemplate ? [_vm.selectedTemplate.components ? _vm._ssrNode("<div class=\"tg-component\">", "</div>", [_c('TemplateSingle', {
9915
+ key: _vm.codTemplate,
9652
9916
  attrs: {
9653
9917
  "template": _vm.selectedTemplate,
9654
9918
  "hasButton": _vm.hasButton,
@@ -9659,6 +9923,7 @@ var __vue_render__$h = function __vue_render__() {
9659
9923
  },
9660
9924
  on: {
9661
9925
  "set-vars": _vm.setFinalMessage,
9926
+ "set-file-var": _vm.setFileVar,
9662
9927
  "click-trigger": function clickTrigger($event) {
9663
9928
  return _vm.$emit('click-trigger');
9664
9929
  }
@@ -9683,8 +9948,8 @@ var __vue_staticRenderFns__$h = [];
9683
9948
 
9684
9949
  var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
9685
9950
  if (!inject) return;
9686
- inject("data-v-37a18a28_0", {
9687
- 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.vs__dropdown-option--selected{background-color:#1a5fad!important;color:#fff}.vs__dropdown-menu li{padding:10px 15px}.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 3px;font-size:.8rem;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{border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition:transform .3s ease-in-out;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:2px solid #000}.tg-btn.small-btn{width:auto;margin:0 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}",
9951
+ inject("data-v-2f61c38c_0", {
9952
+ 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}.ts-image-type{display:flex;align-items:center}.ts-image-type img{cursor:pointer}.ts-image-type svg{font-size:25px;cursor:pointer}.ts-image-type .select-image{color:#838383}.color-red{color:#e74c3c}.color-blue{color:#007bff}.color-black{color:#333}.ts-button{background-color:#fff;border-radius:10px;display:flex;justify-content:center;align-items:center;padding:3px 15px;transition:background-color 150ms ease-in-out}.ts-button:hover{background-color:#fdfdfd}.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}.vs__dropdown-option.vs__dropdown-option--selected{background-color:#1a5fad!important;color:#fff}.vs__dropdown-menu li{padding:10px 15px}.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;--border-radius:5px;flex:2;font-size:.7rem;padding:10px 0;display:flex;flex-direction:column}.order-1{order:1}.custom-box-shadow-bottom{box-shadow:0 3px 4px -3px rgba(0,0,0,.3)}.custom-border-gray{border:1px solid var(--border-color)!important}.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:var(--border-radius);border-top-right-radius:var(--border-radius);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:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom:1px solid var(--border-color)}.custom-footer-style,.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.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 3px;font-size:.8rem;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{border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition:transform .3s ease-in-out;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:2px solid #000}.tg-btn.small-btn{width:auto;margin:0 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:5px;display:flex}",
9688
9953
  map: undefined,
9689
9954
  media: undefined
9690
9955
  });
@@ -9695,7 +9960,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
9695
9960
  var __vue_scope_id__$h = undefined;
9696
9961
  /* module identifier */
9697
9962
 
9698
- var __vue_module_identifier__$h = "data-v-37a18a28";
9963
+ var __vue_module_identifier__$h = "data-v-2f61c38c";
9699
9964
  /* functional template */
9700
9965
 
9701
9966
  var __vue_is_functional_template__$h = false;
@@ -11999,7 +12264,7 @@ var script$5 = {
11999
12264
  InteratividadeFormulario: InteratividadeFormulario,
12000
12265
  LinkPreview: LinkPreview
12001
12266
  },
12002
- props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector"],
12267
+ props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon"],
12003
12268
  created: function created() {
12004
12269
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
12005
12270
  },
@@ -12255,7 +12520,20 @@ var __vue_render__$5 = function __vue_render__() {
12255
12520
  'hist-msg': _vm.histMsg,
12256
12521
  'max-w-60': _vm.link && !_vm.mapa
12257
12522
  }
12258
- }, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
12523
+ }, [_vm.isReply ? _c('div', {
12524
+ staticClass: "mensagem-reply",
12525
+ class: "message-reply-" + _vm.origem
12526
+ }, [_vm.replyMessage ? _c('p', {
12527
+ domProps: {
12528
+ "innerHTML": _vm._s(_vm.replyMessage)
12529
+ }
12530
+ }) : _c('span', {
12531
+ staticClass: "mensagem-reply-vazia"
12532
+ }, [_vm.showReplyIcon ? _c('fa-icon', {
12533
+ attrs: {
12534
+ "icon": ['fas', 'times']
12535
+ }
12536
+ }) : _vm._e(), _vm._v("\n " + _vm._s(_vm.defaultReplyMessage ? _vm.defaultReplyMessage : _vm.dictionary.mensagem_reply_padrao) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
12259
12537
  return _c('div', {
12260
12538
  key: index,
12261
12539
  staticClass: "mensagem-anexo"
@@ -12515,8 +12793,8 @@ var __vue_staticRenderFns__$5 = [];
12515
12793
 
12516
12794
  var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
12517
12795
  if (!inject) return;
12518
- inject("data-v-17719010_0", {
12519
- source: ":root{--message-color:#373737;--text-color:#FFF;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius: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:.75rem;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.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:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.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:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
12796
+ inject("data-v-79ea3333_0", {
12797
+ source: ":root{--message-color:#373737;--text-color:#FFF;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-reply{padding:5px 10px;font-size:.75rem;color:#666;transition:background-color 150ms ease-in-out;border-radius:5px;margin:5px 0;overflow:hidden;max-width:100%}.mensagem-reply p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply-principal{border-left:3px solid transparent;background-color:rgba(100,100,100,.1)}.message-reply-principal:hover{background-color:rgba(100,100,100,.2)}.message-reply-outros{background-color:#f5f5f5;border-left:3px solid var(--message-color)}.message-reply-outros:hover{background-color:#ebebeb}.mensagem-reply-vazia{display:flex;align-items:center}.mensagem-reply-vazia svg{margin-right:5px;color:#ba181b}.mensagem{padding:14px 7px;border-radius: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:.75rem;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.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:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.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:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
12520
12798
  map: undefined,
12521
12799
  media: undefined
12522
12800
  });
@@ -12527,7 +12805,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
12527
12805
  var __vue_scope_id__$5 = undefined;
12528
12806
  /* module identifier */
12529
12807
 
12530
- var __vue_module_identifier__$5 = "data-v-17719010";
12808
+ var __vue_module_identifier__$5 = "data-v-79ea3333";
12531
12809
  /* functional template */
12532
12810
 
12533
12811
  var __vue_is_functional_template__$5 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.263",
3
+ "version": "0.0.265",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -9,6 +9,13 @@
9
9
  :dictionary="dictionary"
10
10
  />
11
11
  <div v-else class="mensagem" :class="{mapa, 'hist-msg' : histMsg, 'max-w-60' : link && !mapa}">
12
+ <div v-if="isReply" class="mensagem-reply" :class="`message-reply-${origem}`">
13
+ <p v-if="replyMessage" v-html="replyMessage"></p>
14
+ <span v-else class="mensagem-reply-vazia">
15
+ <fa-icon :icon="['fas', 'times']" v-if="showReplyIcon" />
16
+ {{ defaultReplyMessage ? defaultReplyMessage : dictionary.mensagem_reply_padrao }}
17
+ </span>
18
+ </div>
12
19
  <template v-if="anexos && anexos.length">
13
20
  <div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
14
21
  <AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem" @download-all="$emit('download-all')"/>
@@ -78,7 +85,7 @@ import LinkPreview from './LinkPreview'
78
85
 
79
86
  export default {
80
87
  components: { AnexoMensagem, InteratividadeBotoes, InteratividadeFormulario, LinkPreview },
81
- props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector"],
88
+ props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon"],
82
89
  created() {
83
90
  if(!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this
84
91
  },
@@ -299,6 +306,47 @@ export default {
299
306
  opacity: 0;
300
307
  }
301
308
 
309
+ .mensagem-reply {
310
+ padding: 5px 10px;
311
+ font-size: .75rem;
312
+ color: #666;
313
+ transition: background-color 150ms ease-in-out;
314
+ border-radius: 5px;
315
+ margin: 5px 0;
316
+ overflow: hidden;
317
+ max-width: 100%;
318
+ }
319
+ .mensagem-reply p {
320
+ overflow: hidden;
321
+ text-overflow: ellipsis;
322
+ white-space: nowrap;
323
+ }
324
+
325
+ .message-reply-principal {
326
+ border-left: 3px solid transparent;
327
+ background-color: rgba(100, 100, 100, 0.1)
328
+ }
329
+ .message-reply-principal:hover {
330
+ background-color: rgba(100, 100, 100, 0.2);
331
+ }
332
+
333
+ .message-reply-outros {
334
+ background-color: rgb(245, 245, 245);
335
+ border-left: 3px solid var(--message-color);
336
+ }
337
+ .message-reply-outros:hover {
338
+ background-color: rgb(235, 235, 235)
339
+ }
340
+
341
+ .mensagem-reply-vazia {
342
+ display: flex;
343
+ align-items: center;
344
+ }
345
+ .mensagem-reply-vazia svg {
346
+ margin-right: 5px;
347
+ color: #ba181b;
348
+ }
349
+
302
350
  .mensagem {
303
351
  padding: 14px 7px;
304
352
  border-radius: 5px;