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.
- package/dist/vue-intergrall-plugins.esm.js +324 -16
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +311 -33
- package/package.json +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +49 -1
- package/src/lib-components/Templates/TemplateGenerator.vue +83 -13
- package/src/lib-components/Templates/TemplateMessage.vue +1 -1
- package/src/lib-components/Templates/TemplateSingle.vue +163 -4
|
@@ -1857,6 +1857,50 @@ var createPopper = /*#__PURE__*/popperGenerator({
|
|
|
1857
1857
|
//
|
|
1858
1858
|
//
|
|
1859
1859
|
//
|
|
1860
|
+
//
|
|
1861
|
+
//
|
|
1862
|
+
//
|
|
1863
|
+
//
|
|
1864
|
+
//
|
|
1865
|
+
//
|
|
1866
|
+
//
|
|
1867
|
+
//
|
|
1868
|
+
//
|
|
1869
|
+
//
|
|
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
|
+
//
|
|
1860
1904
|
var script$y = {
|
|
1861
1905
|
data() {
|
|
1862
1906
|
return {
|
|
@@ -1864,7 +1908,9 @@ var script$y = {
|
|
|
1864
1908
|
regexVars: /{{var_\d}}/g,
|
|
1865
1909
|
lastVar: 0,
|
|
1866
1910
|
htmlInputString: `<input type='text' class='input-var input-var-${this.identifier}' autocomplete='off' />`,
|
|
1867
|
-
varListValues: ""
|
|
1911
|
+
varListValues: "",
|
|
1912
|
+
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",
|
|
1913
|
+
headerFiles: []
|
|
1868
1914
|
};
|
|
1869
1915
|
},
|
|
1870
1916
|
|
|
@@ -1897,6 +1943,28 @@ var script$y = {
|
|
|
1897
1943
|
required: true
|
|
1898
1944
|
}
|
|
1899
1945
|
},
|
|
1946
|
+
computed: {
|
|
1947
|
+
hasFooterComponent() {
|
|
1948
|
+
if (!this.template.components || !this.template.components.length) return false;
|
|
1949
|
+
const types = [];
|
|
1950
|
+
this.template.components.forEach(({
|
|
1951
|
+
type
|
|
1952
|
+
}) => types.push(type));
|
|
1953
|
+
if (types.includes('footer')) return true;
|
|
1954
|
+
return false;
|
|
1955
|
+
},
|
|
1956
|
+
|
|
1957
|
+
hasButtonOrFooterComponent() {
|
|
1958
|
+
if (!this.template.components || !this.template.components.length) return false;
|
|
1959
|
+
const types = [];
|
|
1960
|
+
this.template.components.forEach(({
|
|
1961
|
+
type
|
|
1962
|
+
}) => types.push(type));
|
|
1963
|
+
if (types.includes('button')) return true;
|
|
1964
|
+
return this.hasFooterComponent;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
},
|
|
1900
1968
|
|
|
1901
1969
|
created() {
|
|
1902
1970
|
this.$root.$refs[`template-single-${this.identifier}`] = this;
|
|
@@ -1905,6 +1973,7 @@ var script$y = {
|
|
|
1905
1973
|
mounted() {
|
|
1906
1974
|
if (this.allVariables) this.getListOpts();
|
|
1907
1975
|
this.setInputs();
|
|
1976
|
+
this.setImageVar(false);
|
|
1908
1977
|
},
|
|
1909
1978
|
|
|
1910
1979
|
updated() {
|
|
@@ -1933,6 +2002,7 @@ var script$y = {
|
|
|
1933
2002
|
target: input
|
|
1934
2003
|
}, input.id.replace(/[{}]+/g, ''));
|
|
1935
2004
|
});
|
|
2005
|
+
this.setImageVar(false);
|
|
1936
2006
|
},
|
|
1937
2007
|
|
|
1938
2008
|
getListOpts() {
|
|
@@ -1942,17 +2012,131 @@ var script$y = {
|
|
|
1942
2012
|
</ul>`;
|
|
1943
2013
|
},
|
|
1944
2014
|
|
|
2015
|
+
fileUpload(event) {
|
|
2016
|
+
try {
|
|
2017
|
+
const allFiles = event.target.files ? event.target.files : event.dataTransfer.files ? event.dataTransfer.files : false;
|
|
2018
|
+
if (!allFiles || !allFiles.length) return this.setImageVar(false);
|
|
2019
|
+
|
|
2020
|
+
if (allFiles.length > 1) {
|
|
2021
|
+
this.$toasted.global.defaultInfo({
|
|
2022
|
+
msg: `Limite de 1 arquivo por vez`
|
|
2023
|
+
});
|
|
2024
|
+
return this.setImageVar(false);
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
const file = allFiles[0];
|
|
2028
|
+
const {
|
|
2029
|
+
type,
|
|
2030
|
+
name
|
|
2031
|
+
} = file;
|
|
2032
|
+
const 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'];
|
|
2033
|
+
|
|
2034
|
+
if (!validTypes.includes(type)) {
|
|
2035
|
+
this.$toasted.global.defaultInfo({
|
|
2036
|
+
msg: `(${type}) ${this.dictionary.msg_arquivo_invalido}`
|
|
2037
|
+
});
|
|
2038
|
+
return this.setImageVar(false);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
const returnArrType = str => {
|
|
2042
|
+
const arr = [];
|
|
2043
|
+
validTypes.forEach(currentType => {
|
|
2044
|
+
if (currentType.indexOf(str) > -1) arr.push(currentType);
|
|
2045
|
+
});
|
|
2046
|
+
return arr;
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
const imageTypes = returnArrType('image/');
|
|
2050
|
+
const docTypes = returnArrType('application/');
|
|
2051
|
+
const audioTypes = returnArrType('audio/');
|
|
2052
|
+
const videoTypes = returnArrType('video/');
|
|
2053
|
+
const isPdf = type.indexOf('application/pdf') > -1;
|
|
2054
|
+
let sizeInBytes = 0;
|
|
2055
|
+
Array.from(allFiles).forEach(file => sizeInBytes += file.size);
|
|
2056
|
+
const sizeInMb = parseFloat((sizeInBytes / (1024 * 1024)).toFixed(2));
|
|
2057
|
+
|
|
2058
|
+
if (sizeInMb == 0 && sizeInBytes == 0) {
|
|
2059
|
+
this.$toasted.global.defaultInfo({
|
|
2060
|
+
msg: this.dictionary.msg_arquivo_invalido
|
|
2061
|
+
});
|
|
2062
|
+
return this.setImageVar(false);
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
const max = imageTypes.includes(type) ? 5 : 15;
|
|
2066
|
+
|
|
2067
|
+
if (sizeInMb >= max) {
|
|
2068
|
+
this.$toasted.global.defaultInfo({
|
|
2069
|
+
msg: `Limite de ${max} MB por arquivo`
|
|
2070
|
+
});
|
|
2071
|
+
return this.setImageVar(false);
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
const fileReader = new FileReader();
|
|
2075
|
+
let current_icon = 'file-alt',
|
|
2076
|
+
current_color = 'blue',
|
|
2077
|
+
setValues = true;
|
|
2078
|
+
|
|
2079
|
+
if (imageTypes.includes(type)) {
|
|
2080
|
+
setValues = false;
|
|
2081
|
+
fileReader.readAsDataURL(file);
|
|
2082
|
+
|
|
2083
|
+
fileReader.onload = () => {
|
|
2084
|
+
const image_preview = fileReader.result;
|
|
2085
|
+
this.headerFiles[0] = {
|
|
2086
|
+
file,
|
|
2087
|
+
image_preview,
|
|
2088
|
+
current_icon,
|
|
2089
|
+
current_color,
|
|
2090
|
+
name
|
|
2091
|
+
};
|
|
2092
|
+
this.$forceUpdate();
|
|
2093
|
+
this.setImageVar(file);
|
|
2094
|
+
};
|
|
2095
|
+
} else if (docTypes.includes(type) && isPdf) {
|
|
2096
|
+
current_icon = 'file-pdf';
|
|
2097
|
+
current_color = 'red';
|
|
2098
|
+
} else if (audioTypes.includes(type)) {
|
|
2099
|
+
current_icon = 'microphone';
|
|
2100
|
+
current_color = 'black';
|
|
2101
|
+
} else if (videoTypes.includes(type)) {
|
|
2102
|
+
current_icon = 'video', current_color = 'black';
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
if (setValues) {
|
|
2106
|
+
this.headerFiles[0] = {
|
|
2107
|
+
file,
|
|
2108
|
+
current_icon,
|
|
2109
|
+
current_color,
|
|
2110
|
+
name
|
|
2111
|
+
};
|
|
2112
|
+
this.$forceUpdate();
|
|
2113
|
+
this.setImageVar(file);
|
|
2114
|
+
}
|
|
2115
|
+
} catch (error) {
|
|
2116
|
+
console.error("Erro file upload: ", error);
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
|
|
2120
|
+
triggerInputFile(origin) {
|
|
2121
|
+
if (this.$refs[`ts-input-${origin}`]) {
|
|
2122
|
+
const elem = this.$refs[`ts-input-${origin}`][0] ? this.$refs[`ts-input-${origin}`][0] : this.$refs[`ts-input-${origin}`];
|
|
2123
|
+
elem && elem.click();
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
|
|
1945
2127
|
setInputs() {
|
|
1946
2128
|
let qtdInputs = 0;
|
|
1947
2129
|
const header = document.querySelector("#template_header");
|
|
1948
2130
|
const body = document.querySelector("#template_body");
|
|
1949
2131
|
const footer = document.querySelector("#template_footer");
|
|
2132
|
+
let hasText = false;
|
|
1950
2133
|
|
|
1951
2134
|
if (header !== null) {
|
|
1952
2135
|
header.querySelectorAll(`.input-var-${this.identifier}`).forEach(input => {
|
|
1953
2136
|
this.setEvent(input);
|
|
1954
2137
|
});
|
|
1955
2138
|
qtdInputs += header.querySelectorAll(`.input-var-${this.identifier}`).length;
|
|
2139
|
+
if (qtdInputs > 0 && header.innerText) hasText = true;
|
|
1956
2140
|
}
|
|
1957
2141
|
|
|
1958
2142
|
if (this.lastVar === 0) this.lastVar += 1;
|
|
@@ -1962,6 +2146,7 @@ var script$y = {
|
|
|
1962
2146
|
this.setEvent(input);
|
|
1963
2147
|
});
|
|
1964
2148
|
qtdInputs += body.querySelectorAll(`.input-var-${this.identifier}`).length;
|
|
2149
|
+
if (qtdInputs > 0 && body.innerText) hasText = true;
|
|
1965
2150
|
}
|
|
1966
2151
|
|
|
1967
2152
|
if (footer !== null) {
|
|
@@ -1969,9 +2154,10 @@ var script$y = {
|
|
|
1969
2154
|
this.setEvent(input);
|
|
1970
2155
|
});
|
|
1971
2156
|
qtdInputs += footer.querySelectorAll(`.input-var-${this.identifier}`).length;
|
|
2157
|
+
if (qtdInputs > 0 && footer.innerText) hasText = true;
|
|
1972
2158
|
}
|
|
1973
2159
|
|
|
1974
|
-
if (qtdInputs === 1) {
|
|
2160
|
+
if (qtdInputs === 1 && !hasText) {
|
|
1975
2161
|
document.querySelector(`.input-var-${this.identifier}`).parentElement.style.width = "100%";
|
|
1976
2162
|
document.querySelector(`.input-var-${this.identifier}`).style.width = "100%";
|
|
1977
2163
|
} else if (qtdInputs === 0) {
|
|
@@ -2079,6 +2265,19 @@ var script$y = {
|
|
|
2079
2265
|
return isValueValid;
|
|
2080
2266
|
},
|
|
2081
2267
|
|
|
2268
|
+
setImageVar(file) {
|
|
2269
|
+
this.$emit("set-file-var", file);
|
|
2270
|
+
|
|
2271
|
+
if (!file) {
|
|
2272
|
+
this.headerFiles = [];
|
|
2273
|
+
return this.$forceUpdate();
|
|
2274
|
+
} else {
|
|
2275
|
+
if (this.lastVar == 0) return this.$emit("set-vars", this.template);
|
|
2276
|
+
if (Object.keys(this.varValues).length) return this.$emit("set-vars", this.varValues);
|
|
2277
|
+
this.handleInitialFocus();
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
|
|
2082
2281
|
setVar(event, key, notificar) {
|
|
2083
2282
|
if (event && event.target) {
|
|
2084
2283
|
key = event.target.id.replace(/[{}]+/g, '');
|
|
@@ -2192,8 +2391,10 @@ var __vue_render__$y = function () {
|
|
|
2192
2391
|
staticClass: "ts-content"
|
|
2193
2392
|
}, _vm._l(_vm.template.components, function (component, cIndex) {
|
|
2194
2393
|
return _c('div', {
|
|
2195
|
-
key: cIndex
|
|
2394
|
+
key: cIndex,
|
|
2395
|
+
class: "" + (component.type == 'footer' ? 'order-1 custom-box-shadow-bottom' : '') + (_vm.template.components.length == 1 ? 'custom-box-shadow-bottom' : '')
|
|
2196
2396
|
}, [component.type === 'header' ? _c('header', {
|
|
2397
|
+
class: "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : ''),
|
|
2197
2398
|
attrs: {
|
|
2198
2399
|
"id": "template_header"
|
|
2199
2400
|
}
|
|
@@ -2208,11 +2409,81 @@ var __vue_render__$y = function () {
|
|
|
2208
2409
|
domProps: {
|
|
2209
2410
|
"innerHTML": _vm._s(param.text)
|
|
2210
2411
|
}
|
|
2211
|
-
})] :
|
|
2412
|
+
})] : param.type == 'image' ? _c('div', {
|
|
2413
|
+
staticClass: "ts-image-type"
|
|
2414
|
+
}, [_c('input', {
|
|
2415
|
+
ref: "ts-input-header-" + pIndex,
|
|
2416
|
+
refInFor: true,
|
|
2417
|
+
staticClass: "d-none",
|
|
2418
|
+
attrs: {
|
|
2419
|
+
"type": "file",
|
|
2420
|
+
"accept": _vm.acceptedExtensions
|
|
2421
|
+
},
|
|
2422
|
+
on: {
|
|
2423
|
+
"change": function ($event) {
|
|
2424
|
+
return _vm.fileUpload($event);
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
}), _vm._v(" "), _vm.headerFiles[0] ? [_vm.headerFiles[0].image_preview ? _c('img', {
|
|
2428
|
+
directives: [{
|
|
2429
|
+
name: "tippy",
|
|
2430
|
+
rawName: "v-tippy",
|
|
2431
|
+
value: {
|
|
2432
|
+
placement: 'right'
|
|
2433
|
+
},
|
|
2434
|
+
expression: "{placement: 'right'}"
|
|
2435
|
+
}],
|
|
2436
|
+
attrs: {
|
|
2437
|
+
"src": _vm.headerFiles[0].image_preview,
|
|
2438
|
+
"alt": "Previa da imagem",
|
|
2439
|
+
"content": _vm.headerFiles[0].name
|
|
2440
|
+
},
|
|
2441
|
+
on: {
|
|
2442
|
+
"click": function ($event) {
|
|
2443
|
+
return _vm.triggerInputFile("header-" + pIndex);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
}) : _c('fa-icon', {
|
|
2447
|
+
directives: [{
|
|
2448
|
+
name: "tippy",
|
|
2449
|
+
rawName: "v-tippy",
|
|
2450
|
+
value: {
|
|
2451
|
+
placement: 'right'
|
|
2452
|
+
},
|
|
2453
|
+
expression: "{placement: 'right'}"
|
|
2454
|
+
}],
|
|
2455
|
+
class: "color-" + _vm.headerFiles[0].current_color,
|
|
2456
|
+
attrs: {
|
|
2457
|
+
"icon": ['fas', _vm.headerFiles[0].current_icon],
|
|
2458
|
+
"content": _vm.headerFiles[0].name
|
|
2459
|
+
},
|
|
2460
|
+
on: {
|
|
2461
|
+
"click": function ($event) {
|
|
2462
|
+
return _vm.triggerInputFile("header-" + pIndex);
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
})] : _c('fa-icon', {
|
|
2466
|
+
directives: [{
|
|
2467
|
+
name: "tippy",
|
|
2468
|
+
rawName: "v-tippy",
|
|
2469
|
+
value: {
|
|
2470
|
+
placement: 'right'
|
|
2471
|
+
},
|
|
2472
|
+
expression: "{placement: 'right'}"
|
|
2473
|
+
}],
|
|
2474
|
+
staticClass: "select-image",
|
|
2475
|
+
attrs: {
|
|
2476
|
+
"icon": ['fas', 'image'],
|
|
2477
|
+
"content": "Selecionar anexo"
|
|
2478
|
+
},
|
|
2479
|
+
on: {
|
|
2480
|
+
"click": function ($event) {
|
|
2481
|
+
return _vm.triggerInputFile("header-" + pIndex);
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
})], 2) : _vm._e()], 2);
|
|
2212
2485
|
}), 0) : _vm._e(), _vm._v(" "), component.type === 'body' ? _c('section', {
|
|
2213
|
-
class:
|
|
2214
|
-
'margin-bottom': _vm.template.components.length === 2
|
|
2215
|
-
},
|
|
2486
|
+
class: (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasButtonOrFooterComponent ? 'custom-footer-style custom-box-shadow-bottom custom-border-gray' : ''),
|
|
2216
2487
|
attrs: {
|
|
2217
2488
|
"id": "template_body"
|
|
2218
2489
|
}
|
|
@@ -2228,7 +2499,22 @@ var __vue_render__$y = function () {
|
|
|
2228
2499
|
"innerHTML": _vm._s(param.text)
|
|
2229
2500
|
}
|
|
2230
2501
|
})] : _vm._e()], 2);
|
|
2502
|
+
}), 0) : _vm._e(), _vm._v(" "), component.type == 'button' ? _c('section', {
|
|
2503
|
+
class: (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasFooterComponent ? 'custom-footer-style custom-box-shadow-bottom' : ''),
|
|
2504
|
+
attrs: {
|
|
2505
|
+
"id": "template_buttons"
|
|
2506
|
+
}
|
|
2507
|
+
}, _vm._l(component.parameters, function (param, pIndex) {
|
|
2508
|
+
return _c('div', {
|
|
2509
|
+
key: pIndex,
|
|
2510
|
+
staticClass: "ts-button"
|
|
2511
|
+
}, [param.text ? _c('p', {
|
|
2512
|
+
domProps: {
|
|
2513
|
+
"innerHTML": _vm._s(param.text)
|
|
2514
|
+
}
|
|
2515
|
+
}) : _vm._e()]);
|
|
2231
2516
|
}), 0) : _vm._e(), _vm._v(" "), component.type == 'footer' ? _c('footer', {
|
|
2517
|
+
class: "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : ''),
|
|
2232
2518
|
attrs: {
|
|
2233
2519
|
"id": "template_footer"
|
|
2234
2520
|
}
|
|
@@ -9984,7 +10270,7 @@ var __vue_render__$i = function () {
|
|
|
9984
10270
|
staticClass: "ts-content"
|
|
9985
10271
|
}, [_c('section', {
|
|
9986
10272
|
class: {
|
|
9987
|
-
'tm-container': _vm.hasButton
|
|
10273
|
+
'tm-container custom-box-shadow-bottom': _vm.hasButton
|
|
9988
10274
|
}
|
|
9989
10275
|
}, [_c('TextFooter', {
|
|
9990
10276
|
ref: "text-footer-template-message",
|
|
@@ -10098,7 +10384,8 @@ var script$h = {
|
|
|
10098
10384
|
return {
|
|
10099
10385
|
templateOptions: [],
|
|
10100
10386
|
codTemplate: {},
|
|
10101
|
-
selectedTemplate: null
|
|
10387
|
+
selectedTemplate: null // hasFile: false
|
|
10388
|
+
|
|
10102
10389
|
};
|
|
10103
10390
|
},
|
|
10104
10391
|
|
|
@@ -10169,7 +10456,8 @@ var script$h = {
|
|
|
10169
10456
|
});
|
|
10170
10457
|
} else {
|
|
10171
10458
|
this.selectedTemplate = null;
|
|
10172
|
-
}
|
|
10459
|
+
} // if(this.hasFile) this.setFileVar(false)
|
|
10460
|
+
|
|
10173
10461
|
|
|
10174
10462
|
this.adjustOnSelect();
|
|
10175
10463
|
},
|
|
@@ -10256,6 +10544,11 @@ var script$h = {
|
|
|
10256
10544
|
this.$emit("template-data", this.selectedTemplate);
|
|
10257
10545
|
},
|
|
10258
10546
|
|
|
10547
|
+
setFileVar(file) {
|
|
10548
|
+
// this.hasFile = file ? true : false
|
|
10549
|
+
this.$emit("set-file-var", file);
|
|
10550
|
+
},
|
|
10551
|
+
|
|
10259
10552
|
setMessage(message) {
|
|
10260
10553
|
this.$emit("static-message", message);
|
|
10261
10554
|
}
|
|
@@ -10311,6 +10604,7 @@ var __vue_render__$h = function () {
|
|
|
10311
10604
|
})])], 1), _vm._v(" "), _vm.selectedTemplate ? [_vm.selectedTemplate.components ? _c('div', {
|
|
10312
10605
|
staticClass: "tg-component"
|
|
10313
10606
|
}, [_c('TemplateSingle', {
|
|
10607
|
+
key: _vm.codTemplate,
|
|
10314
10608
|
attrs: {
|
|
10315
10609
|
"template": _vm.selectedTemplate,
|
|
10316
10610
|
"hasButton": _vm.hasButton,
|
|
@@ -10321,6 +10615,7 @@ var __vue_render__$h = function () {
|
|
|
10321
10615
|
},
|
|
10322
10616
|
on: {
|
|
10323
10617
|
"set-vars": _vm.setFinalMessage,
|
|
10618
|
+
"set-file-var": _vm.setFileVar,
|
|
10324
10619
|
"click-trigger": function ($event) {
|
|
10325
10620
|
return _vm.$emit('click-trigger');
|
|
10326
10621
|
}
|
|
@@ -10347,8 +10642,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
10347
10642
|
|
|
10348
10643
|
const __vue_inject_styles__$h = function (inject) {
|
|
10349
10644
|
if (!inject) return;
|
|
10350
|
-
inject("data-v-
|
|
10351
|
-
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}.
|
|
10645
|
+
inject("data-v-2f61c38c_0", {
|
|
10646
|
+
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}",
|
|
10352
10647
|
map: undefined,
|
|
10353
10648
|
media: undefined
|
|
10354
10649
|
});
|
|
@@ -13208,7 +13503,7 @@ var script$5 = {
|
|
|
13208
13503
|
InteratividadeFormulario,
|
|
13209
13504
|
LinkPreview
|
|
13210
13505
|
},
|
|
13211
|
-
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"],
|
|
13506
|
+
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"],
|
|
13212
13507
|
|
|
13213
13508
|
created() {
|
|
13214
13509
|
if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
|
|
@@ -13490,7 +13785,20 @@ var __vue_render__$5 = function () {
|
|
|
13490
13785
|
'hist-msg': _vm.histMsg,
|
|
13491
13786
|
'max-w-60': _vm.link && !_vm.mapa
|
|
13492
13787
|
}
|
|
13493
|
-
}, [_vm.
|
|
13788
|
+
}, [_vm.isReply ? _c('div', {
|
|
13789
|
+
staticClass: "mensagem-reply",
|
|
13790
|
+
class: "message-reply-" + _vm.origem
|
|
13791
|
+
}, [_vm.replyMessage ? _c('p', {
|
|
13792
|
+
domProps: {
|
|
13793
|
+
"innerHTML": _vm._s(_vm.replyMessage)
|
|
13794
|
+
}
|
|
13795
|
+
}) : _c('span', {
|
|
13796
|
+
staticClass: "mensagem-reply-vazia"
|
|
13797
|
+
}, [_vm.showReplyIcon ? _c('fa-icon', {
|
|
13798
|
+
attrs: {
|
|
13799
|
+
"icon": ['fas', 'times']
|
|
13800
|
+
}
|
|
13801
|
+
}) : _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) {
|
|
13494
13802
|
return _c('div', {
|
|
13495
13803
|
key: index,
|
|
13496
13804
|
staticClass: "mensagem-anexo"
|
|
@@ -13750,8 +14058,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13750
14058
|
|
|
13751
14059
|
const __vue_inject_styles__$5 = function (inject) {
|
|
13752
14060
|
if (!inject) return;
|
|
13753
|
-
inject("data-v-
|
|
13754
|
-
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}",
|
|
14061
|
+
inject("data-v-79ea3333_0", {
|
|
14062
|
+
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}",
|
|
13755
14063
|
map: undefined,
|
|
13756
14064
|
media: undefined
|
|
13757
14065
|
});
|