vue-intergrall-plugins 0.0.97 → 0.0.103
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 +671 -159
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +606 -158
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnExpand.vue +17 -0
- package/src/lib-components/Chat/BtnFiles.vue +5 -5
- package/src/lib-components/Chat/EmojisTextFooter.vue +6 -1
- package/src/lib-components/Chat/ExpandTextarea.vue +400 -0
- package/src/lib-components/Chat/MultipleFilePreview.vue +33 -1
- package/src/lib-components/Chat/SingleFilePreview.vue +29 -1
- package/src/lib-components/Chat/TextFooter.vue +28 -52
- package/src/lib-components/Templates/TemplateGenerator.vue +4 -0
|
@@ -1742,7 +1742,7 @@ var createPopper = /*#__PURE__*/popperGenerator({
|
|
|
1742
1742
|
//
|
|
1743
1743
|
//
|
|
1744
1744
|
//
|
|
1745
|
-
var script$
|
|
1745
|
+
var script$c = {
|
|
1746
1746
|
data: function data() {
|
|
1747
1747
|
return {
|
|
1748
1748
|
varValues: {},
|
|
@@ -2027,10 +2027,10 @@ var script$a = {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
return script;
|
|
2029
2029
|
}/* script */
|
|
2030
|
-
var __vue_script__$
|
|
2030
|
+
var __vue_script__$c = script$c;
|
|
2031
2031
|
/* template */
|
|
2032
2032
|
|
|
2033
|
-
var __vue_render__$
|
|
2033
|
+
var __vue_render__$c = function __vue_render__() {
|
|
2034
2034
|
var _vm = this;
|
|
2035
2035
|
|
|
2036
2036
|
var _h = _vm.$createElement;
|
|
@@ -2058,31 +2058,31 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
2058
2058
|
})], 2)]) : _vm._e()], 2);
|
|
2059
2059
|
};
|
|
2060
2060
|
|
|
2061
|
-
var __vue_staticRenderFns__$
|
|
2061
|
+
var __vue_staticRenderFns__$c = [];
|
|
2062
2062
|
/* style */
|
|
2063
2063
|
|
|
2064
|
-
var __vue_inject_styles__$
|
|
2064
|
+
var __vue_inject_styles__$c = undefined;
|
|
2065
2065
|
/* scoped */
|
|
2066
2066
|
|
|
2067
|
-
var __vue_scope_id__$
|
|
2067
|
+
var __vue_scope_id__$c = undefined;
|
|
2068
2068
|
/* module identifier */
|
|
2069
2069
|
|
|
2070
|
-
var __vue_module_identifier__$
|
|
2070
|
+
var __vue_module_identifier__$c = "data-v-4f6e98c8";
|
|
2071
2071
|
/* functional template */
|
|
2072
2072
|
|
|
2073
|
-
var __vue_is_functional_template__$
|
|
2073
|
+
var __vue_is_functional_template__$c = false;
|
|
2074
2074
|
/* style inject */
|
|
2075
2075
|
|
|
2076
2076
|
/* style inject SSR */
|
|
2077
2077
|
|
|
2078
2078
|
/* style inject shadow dom */
|
|
2079
2079
|
|
|
2080
|
-
var __vue_component__$
|
|
2081
|
-
render: __vue_render__$
|
|
2082
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
2083
|
-
}, __vue_inject_styles__$
|
|
2080
|
+
var __vue_component__$e = /*#__PURE__*/normalizeComponent({
|
|
2081
|
+
render: __vue_render__$c,
|
|
2082
|
+
staticRenderFns: __vue_staticRenderFns__$c
|
|
2083
|
+
}, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, undefined, undefined);
|
|
2084
2084
|
|
|
2085
|
-
var TemplateSingle = __vue_component__$
|
|
2085
|
+
var TemplateSingle = __vue_component__$e;var setResizeListeners = function setResizeListeners($el, inputClass, parentClass) {
|
|
2086
2086
|
var inputTargets = $el.querySelectorAll(inputClass);
|
|
2087
2087
|
inputTargets.forEach(function (target) {
|
|
2088
2088
|
target.addEventListener("input", function () {
|
|
@@ -7824,7 +7824,7 @@ exports.default = { search: search, emojis: emojis, emoticons: emoticons };
|
|
|
7824
7824
|
/******/ ]);
|
|
7825
7825
|
});
|
|
7826
7826
|
});//
|
|
7827
|
-
var script$
|
|
7827
|
+
var script$b = {
|
|
7828
7828
|
components: {
|
|
7829
7829
|
"picker": emojiMart.Picker
|
|
7830
7830
|
},
|
|
@@ -7848,6 +7848,11 @@ var script$9 = {
|
|
|
7848
7848
|
type: Boolean,
|
|
7849
7849
|
default: false,
|
|
7850
7850
|
required: false
|
|
7851
|
+
},
|
|
7852
|
+
left: {
|
|
7853
|
+
type: Boolean,
|
|
7854
|
+
default: true,
|
|
7855
|
+
required: false
|
|
7851
7856
|
}
|
|
7852
7857
|
},
|
|
7853
7858
|
computed: {
|
|
@@ -7890,7 +7895,7 @@ var script$9 = {
|
|
|
7890
7895
|
if (this.$refs[this.emojiId] && this.$refs[this.emojiId].$el) {
|
|
7891
7896
|
this.$refs[this.emojiId].$el.style.position = "absolute";
|
|
7892
7897
|
this.$refs[this.emojiId].$el.style.top = "".concat(this.top, "px");
|
|
7893
|
-
this.$refs[this.emojiId].$el.style.left = "0";
|
|
7898
|
+
this.left ? this.$refs[this.emojiId].$el.style.left = "0" : this.$refs[this.emojiId].$el.style.right = "0";
|
|
7894
7899
|
this.$refs[this.emojiId].$el.style.height = "".concat(this.height, "px");
|
|
7895
7900
|
}
|
|
7896
7901
|
},
|
|
@@ -7905,10 +7910,10 @@ var script$9 = {
|
|
|
7905
7910
|
}
|
|
7906
7911
|
}
|
|
7907
7912
|
};/* script */
|
|
7908
|
-
var __vue_script__$
|
|
7913
|
+
var __vue_script__$b = script$b;
|
|
7909
7914
|
/* template */
|
|
7910
7915
|
|
|
7911
|
-
var __vue_render__$
|
|
7916
|
+
var __vue_render__$b = function __vue_render__() {
|
|
7912
7917
|
var _vm = this;
|
|
7913
7918
|
|
|
7914
7919
|
var _h = _vm.$createElement;
|
|
@@ -7948,37 +7953,37 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
7948
7953
|
})], 2);
|
|
7949
7954
|
};
|
|
7950
7955
|
|
|
7951
|
-
var __vue_staticRenderFns__$
|
|
7956
|
+
var __vue_staticRenderFns__$b = [];
|
|
7952
7957
|
/* style */
|
|
7953
7958
|
|
|
7954
|
-
var __vue_inject_styles__$
|
|
7959
|
+
var __vue_inject_styles__$b = undefined;
|
|
7955
7960
|
/* scoped */
|
|
7956
7961
|
|
|
7957
|
-
var __vue_scope_id__$
|
|
7962
|
+
var __vue_scope_id__$b = undefined;
|
|
7958
7963
|
/* module identifier */
|
|
7959
7964
|
|
|
7960
|
-
var __vue_module_identifier__$
|
|
7965
|
+
var __vue_module_identifier__$b = "data-v-10027861";
|
|
7961
7966
|
/* functional template */
|
|
7962
7967
|
|
|
7963
|
-
var __vue_is_functional_template__$
|
|
7968
|
+
var __vue_is_functional_template__$b = false;
|
|
7964
7969
|
/* style inject */
|
|
7965
7970
|
|
|
7966
7971
|
/* style inject SSR */
|
|
7967
7972
|
|
|
7968
7973
|
/* style inject shadow dom */
|
|
7969
7974
|
|
|
7970
|
-
var __vue_component__$
|
|
7971
|
-
render: __vue_render__$
|
|
7972
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
7973
|
-
}, __vue_inject_styles__$
|
|
7975
|
+
var __vue_component__$d = /*#__PURE__*/normalizeComponent({
|
|
7976
|
+
render: __vue_render__$b,
|
|
7977
|
+
staticRenderFns: __vue_staticRenderFns__$b
|
|
7978
|
+
}, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, undefined, undefined, undefined);
|
|
7974
7979
|
|
|
7975
|
-
var EmojisTextFooter = __vue_component__$
|
|
7980
|
+
var EmojisTextFooter = __vue_component__$d;//
|
|
7976
7981
|
//
|
|
7977
7982
|
//
|
|
7978
7983
|
//
|
|
7979
7984
|
//
|
|
7980
7985
|
//
|
|
7981
|
-
var script$
|
|
7986
|
+
var script$a = {
|
|
7982
7987
|
props: {
|
|
7983
7988
|
hasBg: {
|
|
7984
7989
|
type: Boolean,
|
|
@@ -8035,10 +8040,10 @@ function renderStyles(styles) {
|
|
|
8035
8040
|
}
|
|
8036
8041
|
return css;
|
|
8037
8042
|
}/* script */
|
|
8038
|
-
var __vue_script__$
|
|
8043
|
+
var __vue_script__$a = script$a;
|
|
8039
8044
|
/* template */
|
|
8040
8045
|
|
|
8041
|
-
var __vue_render__$
|
|
8046
|
+
var __vue_render__$a = function __vue_render__() {
|
|
8042
8047
|
var _vm = this;
|
|
8043
8048
|
|
|
8044
8049
|
var _h = _vm.$createElement;
|
|
@@ -8056,10 +8061,10 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
8056
8061
|
}) + "></div>")]);
|
|
8057
8062
|
};
|
|
8058
8063
|
|
|
8059
|
-
var __vue_staticRenderFns__$
|
|
8064
|
+
var __vue_staticRenderFns__$a = [];
|
|
8060
8065
|
/* style */
|
|
8061
8066
|
|
|
8062
|
-
var __vue_inject_styles__$
|
|
8067
|
+
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
8063
8068
|
if (!inject) return;
|
|
8064
8069
|
inject("data-v-8ff43434_0", {
|
|
8065
8070
|
source: ".req-loader-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.req-loader-container.light-bg{background-color:rgba(0,0,0,.3);border-radius:inherit}.req-loader-container.align-right{justify-content:flex-end}.req-loader-container.align-right .req-loader{margin-right:15px}.req-loader{border:2px solid #ccc;border-top:2px solid #333;border-radius:50%;width:20px;height:20px;min-width:20px;min-height:20px;animation:spin 2s linear infinite}.req-loader.big{width:40px;height:40px;animation:spin 3s linear infinite}.req-loader.slow{animation:spin 4s linear infinite}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}",
|
|
@@ -8070,21 +8075,21 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
8070
8075
|
/* scoped */
|
|
8071
8076
|
|
|
8072
8077
|
|
|
8073
|
-
var __vue_scope_id__$
|
|
8078
|
+
var __vue_scope_id__$a = undefined;
|
|
8074
8079
|
/* module identifier */
|
|
8075
8080
|
|
|
8076
|
-
var __vue_module_identifier__$
|
|
8081
|
+
var __vue_module_identifier__$a = "data-v-8ff43434";
|
|
8077
8082
|
/* functional template */
|
|
8078
8083
|
|
|
8079
|
-
var __vue_is_functional_template__$
|
|
8084
|
+
var __vue_is_functional_template__$a = false;
|
|
8080
8085
|
/* style inject shadow dom */
|
|
8081
8086
|
|
|
8082
|
-
var __vue_component__$
|
|
8083
|
-
render: __vue_render__$
|
|
8084
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8085
|
-
}, __vue_inject_styles__$
|
|
8087
|
+
var __vue_component__$c = /*#__PURE__*/normalizeComponent({
|
|
8088
|
+
render: __vue_render__$a,
|
|
8089
|
+
staticRenderFns: __vue_staticRenderFns__$a
|
|
8090
|
+
}, __vue_inject_styles__$a, __vue_script__$a, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, undefined, createInjectorSSR, undefined);
|
|
8086
8091
|
|
|
8087
|
-
var Loader = __vue_component__$
|
|
8092
|
+
var Loader = __vue_component__$c;//
|
|
8088
8093
|
//
|
|
8089
8094
|
//
|
|
8090
8095
|
//
|
|
@@ -8092,7 +8097,7 @@ var Loader = __vue_component__$9;//
|
|
|
8092
8097
|
//
|
|
8093
8098
|
//
|
|
8094
8099
|
//
|
|
8095
|
-
var script$
|
|
8100
|
+
var script$9 = {
|
|
8096
8101
|
props: {
|
|
8097
8102
|
message: {
|
|
8098
8103
|
type: String,
|
|
@@ -8110,10 +8115,10 @@ var script$7 = {
|
|
|
8110
8115
|
}
|
|
8111
8116
|
}
|
|
8112
8117
|
};/* script */
|
|
8113
|
-
var __vue_script__$
|
|
8118
|
+
var __vue_script__$9 = script$9;
|
|
8114
8119
|
/* template */
|
|
8115
8120
|
|
|
8116
|
-
var __vue_render__$
|
|
8121
|
+
var __vue_render__$9 = function __vue_render__() {
|
|
8117
8122
|
var _vm = this;
|
|
8118
8123
|
|
|
8119
8124
|
var _h = _vm.$createElement;
|
|
@@ -8128,37 +8133,37 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
8128
8133
|
}, []) : _vm._e();
|
|
8129
8134
|
};
|
|
8130
8135
|
|
|
8131
|
-
var __vue_staticRenderFns__$
|
|
8136
|
+
var __vue_staticRenderFns__$9 = [];
|
|
8132
8137
|
/* style */
|
|
8133
8138
|
|
|
8134
|
-
var __vue_inject_styles__$
|
|
8139
|
+
var __vue_inject_styles__$9 = undefined;
|
|
8135
8140
|
/* scoped */
|
|
8136
8141
|
|
|
8137
|
-
var __vue_scope_id__$
|
|
8142
|
+
var __vue_scope_id__$9 = undefined;
|
|
8138
8143
|
/* module identifier */
|
|
8139
8144
|
|
|
8140
|
-
var __vue_module_identifier__$
|
|
8145
|
+
var __vue_module_identifier__$9 = "data-v-f8dac3e4";
|
|
8141
8146
|
/* functional template */
|
|
8142
8147
|
|
|
8143
|
-
var __vue_is_functional_template__$
|
|
8148
|
+
var __vue_is_functional_template__$9 = false;
|
|
8144
8149
|
/* style inject */
|
|
8145
8150
|
|
|
8146
8151
|
/* style inject SSR */
|
|
8147
8152
|
|
|
8148
8153
|
/* style inject shadow dom */
|
|
8149
8154
|
|
|
8150
|
-
var __vue_component__$
|
|
8151
|
-
render: __vue_render__$
|
|
8152
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8153
|
-
}, __vue_inject_styles__$
|
|
8155
|
+
var __vue_component__$b = /*#__PURE__*/normalizeComponent({
|
|
8156
|
+
render: __vue_render__$9,
|
|
8157
|
+
staticRenderFns: __vue_staticRenderFns__$9
|
|
8158
|
+
}, __vue_inject_styles__$9, __vue_script__$9, __vue_scope_id__$9, __vue_is_functional_template__$9, __vue_module_identifier__$9, false, undefined, undefined, undefined);
|
|
8154
8159
|
|
|
8155
|
-
var RemainingCharacters = __vue_component__$
|
|
8160
|
+
var RemainingCharacters = __vue_component__$b;//
|
|
8156
8161
|
//
|
|
8157
8162
|
//
|
|
8158
8163
|
//
|
|
8159
8164
|
//
|
|
8160
8165
|
//
|
|
8161
|
-
var script$
|
|
8166
|
+
var script$8 = {
|
|
8162
8167
|
props: {
|
|
8163
8168
|
dictionary: {
|
|
8164
8169
|
type: Object,
|
|
@@ -8228,10 +8233,10 @@ var script$6 = {
|
|
|
8228
8233
|
}
|
|
8229
8234
|
}
|
|
8230
8235
|
};/* script */
|
|
8231
|
-
var __vue_script__$
|
|
8236
|
+
var __vue_script__$8 = script$8;
|
|
8232
8237
|
/* template */
|
|
8233
8238
|
|
|
8234
|
-
var __vue_render__$
|
|
8239
|
+
var __vue_render__$8 = function __vue_render__() {
|
|
8235
8240
|
var _vm = this;
|
|
8236
8241
|
|
|
8237
8242
|
var _h = _vm.$createElement;
|
|
@@ -8253,31 +8258,31 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
8253
8258
|
})], 1);
|
|
8254
8259
|
};
|
|
8255
8260
|
|
|
8256
|
-
var __vue_staticRenderFns__$
|
|
8261
|
+
var __vue_staticRenderFns__$8 = [];
|
|
8257
8262
|
/* style */
|
|
8258
8263
|
|
|
8259
|
-
var __vue_inject_styles__$
|
|
8264
|
+
var __vue_inject_styles__$8 = undefined;
|
|
8260
8265
|
/* scoped */
|
|
8261
8266
|
|
|
8262
|
-
var __vue_scope_id__$
|
|
8267
|
+
var __vue_scope_id__$8 = undefined;
|
|
8263
8268
|
/* module identifier */
|
|
8264
8269
|
|
|
8265
|
-
var __vue_module_identifier__$
|
|
8270
|
+
var __vue_module_identifier__$8 = "data-v-291765d5";
|
|
8266
8271
|
/* functional template */
|
|
8267
8272
|
|
|
8268
|
-
var __vue_is_functional_template__$
|
|
8273
|
+
var __vue_is_functional_template__$8 = false;
|
|
8269
8274
|
/* style inject */
|
|
8270
8275
|
|
|
8271
8276
|
/* style inject SSR */
|
|
8272
8277
|
|
|
8273
8278
|
/* style inject shadow dom */
|
|
8274
8279
|
|
|
8275
|
-
var __vue_component__$
|
|
8276
|
-
render: __vue_render__$
|
|
8277
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8278
|
-
}, __vue_inject_styles__$
|
|
8280
|
+
var __vue_component__$a = /*#__PURE__*/normalizeComponent({
|
|
8281
|
+
render: __vue_render__$8,
|
|
8282
|
+
staticRenderFns: __vue_staticRenderFns__$8
|
|
8283
|
+
}, __vue_inject_styles__$8, __vue_script__$8, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false, undefined, undefined, undefined);
|
|
8279
8284
|
|
|
8280
|
-
var BtnMic = __vue_component__$
|
|
8285
|
+
var BtnMic = __vue_component__$a;//
|
|
8281
8286
|
//
|
|
8282
8287
|
//
|
|
8283
8288
|
//
|
|
@@ -8299,7 +8304,7 @@ var BtnMic = __vue_component__$7;//
|
|
|
8299
8304
|
//
|
|
8300
8305
|
//
|
|
8301
8306
|
//
|
|
8302
|
-
var script$
|
|
8307
|
+
var script$7 = {
|
|
8303
8308
|
props: {
|
|
8304
8309
|
dictionary: {
|
|
8305
8310
|
type: Object,
|
|
@@ -8336,10 +8341,10 @@ var script$5 = {
|
|
|
8336
8341
|
}
|
|
8337
8342
|
}
|
|
8338
8343
|
};/* script */
|
|
8339
|
-
var __vue_script__$
|
|
8344
|
+
var __vue_script__$7 = script$7;
|
|
8340
8345
|
/* template */
|
|
8341
8346
|
|
|
8342
|
-
var __vue_render__$
|
|
8347
|
+
var __vue_render__$7 = function __vue_render__() {
|
|
8343
8348
|
var _vm = this;
|
|
8344
8349
|
|
|
8345
8350
|
var _h = _vm.$createElement;
|
|
@@ -8363,32 +8368,36 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
8363
8368
|
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.file.name) + "\n "))], 2) : _vm._e(), _vm._ssrNode(" " + (_vm.imagePreview ? "<div class=\"text-footer-image-preview\"><img" + _vm._ssrAttr("src", _vm.imagePreview) + _vm._ssrAttr("alt", _vm.dictionary.alt_previa_img) + "></div>" : "<!---->"))]], 2);
|
|
8364
8369
|
};
|
|
8365
8370
|
|
|
8366
|
-
var __vue_staticRenderFns__$
|
|
8371
|
+
var __vue_staticRenderFns__$7 = [];
|
|
8367
8372
|
/* style */
|
|
8368
8373
|
|
|
8369
|
-
var __vue_inject_styles__$
|
|
8374
|
+
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
8375
|
+
if (!inject) return;
|
|
8376
|
+
inject("data-v-6d0392fe_0", {
|
|
8377
|
+
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%}",
|
|
8378
|
+
map: undefined,
|
|
8379
|
+
media: undefined
|
|
8380
|
+
});
|
|
8381
|
+
};
|
|
8370
8382
|
/* scoped */
|
|
8371
8383
|
|
|
8372
|
-
|
|
8384
|
+
|
|
8385
|
+
var __vue_scope_id__$7 = undefined;
|
|
8373
8386
|
/* module identifier */
|
|
8374
8387
|
|
|
8375
|
-
var __vue_module_identifier__$
|
|
8388
|
+
var __vue_module_identifier__$7 = "data-v-6d0392fe";
|
|
8376
8389
|
/* functional template */
|
|
8377
8390
|
|
|
8378
|
-
var __vue_is_functional_template__$
|
|
8379
|
-
/* style inject */
|
|
8380
|
-
|
|
8381
|
-
/* style inject SSR */
|
|
8382
|
-
|
|
8391
|
+
var __vue_is_functional_template__$7 = false;
|
|
8383
8392
|
/* style inject shadow dom */
|
|
8384
8393
|
|
|
8385
|
-
var __vue_component__$
|
|
8386
|
-
render: __vue_render__$
|
|
8387
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8388
|
-
}, __vue_inject_styles__$
|
|
8394
|
+
var __vue_component__$9 = /*#__PURE__*/normalizeComponent({
|
|
8395
|
+
render: __vue_render__$7,
|
|
8396
|
+
staticRenderFns: __vue_staticRenderFns__$7
|
|
8397
|
+
}, __vue_inject_styles__$7, __vue_script__$7, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, createInjectorSSR, undefined);
|
|
8389
8398
|
|
|
8390
|
-
var SingleFilePreview = __vue_component__$
|
|
8391
|
-
var script$
|
|
8399
|
+
var SingleFilePreview = __vue_component__$9;//
|
|
8400
|
+
var script$6 = {
|
|
8392
8401
|
components: {
|
|
8393
8402
|
Loader: Loader
|
|
8394
8403
|
},
|
|
@@ -8464,10 +8473,10 @@ var script$4 = {
|
|
|
8464
8473
|
}
|
|
8465
8474
|
}
|
|
8466
8475
|
};/* script */
|
|
8467
|
-
var __vue_script__$
|
|
8476
|
+
var __vue_script__$6 = script$6;
|
|
8468
8477
|
/* template */
|
|
8469
8478
|
|
|
8470
|
-
var __vue_render__$
|
|
8479
|
+
var __vue_render__$6 = function __vue_render__() {
|
|
8471
8480
|
var _vm = this;
|
|
8472
8481
|
|
|
8473
8482
|
var _h = _vm.$createElement;
|
|
@@ -8504,7 +8513,7 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
8504
8513
|
}
|
|
8505
8514
|
}), _vm._v(" "), _c('h4', {
|
|
8506
8515
|
domProps: {
|
|
8507
|
-
"
|
|
8516
|
+
"innerHTML": _vm._s(_vm.validFileFormats)
|
|
8508
8517
|
}
|
|
8509
8518
|
})]) : _vm._e()] : _vm._l(_vm.file, function (singleFile, index) {
|
|
8510
8519
|
return _c('div', {
|
|
@@ -8557,13 +8566,13 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
8557
8566
|
})], 2)], 1);
|
|
8558
8567
|
};
|
|
8559
8568
|
|
|
8560
|
-
var __vue_staticRenderFns__$
|
|
8569
|
+
var __vue_staticRenderFns__$6 = [];
|
|
8561
8570
|
/* style */
|
|
8562
8571
|
|
|
8563
|
-
var __vue_inject_styles__$
|
|
8572
|
+
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
8564
8573
|
if (!inject) return;
|
|
8565
|
-
inject("data-v-
|
|
8566
|
-
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}.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}.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}",
|
|
8574
|
+
inject("data-v-77f8f3ea_0", {
|
|
8575
|
+
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}.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}",
|
|
8567
8576
|
map: undefined,
|
|
8568
8577
|
media: undefined
|
|
8569
8578
|
});
|
|
@@ -8571,22 +8580,22 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
8571
8580
|
/* scoped */
|
|
8572
8581
|
|
|
8573
8582
|
|
|
8574
|
-
var __vue_scope_id__$
|
|
8583
|
+
var __vue_scope_id__$6 = undefined;
|
|
8575
8584
|
/* module identifier */
|
|
8576
8585
|
|
|
8577
|
-
var __vue_module_identifier__$
|
|
8586
|
+
var __vue_module_identifier__$6 = "data-v-77f8f3ea";
|
|
8578
8587
|
/* functional template */
|
|
8579
8588
|
|
|
8580
|
-
var __vue_is_functional_template__$
|
|
8589
|
+
var __vue_is_functional_template__$6 = false;
|
|
8581
8590
|
/* style inject shadow dom */
|
|
8582
8591
|
|
|
8583
|
-
var __vue_component__$
|
|
8584
|
-
render: __vue_render__$
|
|
8585
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8586
|
-
}, __vue_inject_styles__$
|
|
8592
|
+
var __vue_component__$8 = /*#__PURE__*/normalizeComponent({
|
|
8593
|
+
render: __vue_render__$6,
|
|
8594
|
+
staticRenderFns: __vue_staticRenderFns__$6
|
|
8595
|
+
}, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, createInjectorSSR, undefined);
|
|
8587
8596
|
|
|
8588
|
-
var MultipleFilePreview = __vue_component__$
|
|
8589
|
-
var script$
|
|
8597
|
+
var MultipleFilePreview = __vue_component__$8;//
|
|
8598
|
+
var script$5 = {
|
|
8590
8599
|
components: {
|
|
8591
8600
|
SingleFilePreview: SingleFilePreview,
|
|
8592
8601
|
MultipleFilePreview: MultipleFilePreview
|
|
@@ -8718,7 +8727,7 @@ var script$3 = {
|
|
|
8718
8727
|
} else {
|
|
8719
8728
|
file.invalid = true;
|
|
8720
8729
|
_this.fileFormatError = true;
|
|
8721
|
-
_this.validFileFormats = "".concat(
|
|
8730
|
+
_this.validFileFormats = "Imgs: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "), " <br> Docs: ").concat(_this.fileSettings.docsExtensions.split("|").join(", "), " ").concat(_this.dictionary.msg_extensoes_aceitas);
|
|
8722
8731
|
}
|
|
8723
8732
|
});
|
|
8724
8733
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
@@ -8744,7 +8753,7 @@ var script$3 = {
|
|
|
8744
8753
|
this.fileFormatError = false;
|
|
8745
8754
|
} else {
|
|
8746
8755
|
this.fileFormatError = true;
|
|
8747
|
-
this.validFileFormats = "".concat(
|
|
8756
|
+
this.validFileFormats = "Imgs: ".concat(this.fileSettings.imagesExtensions.split("|").join(", "), " <br> Docs: ").concat(this.fileSettings.docsExtensions.split("|").join(", "), " ").concat(this.dictionary.msg_extensoes_aceitas);
|
|
8748
8757
|
}
|
|
8749
8758
|
|
|
8750
8759
|
if (this.isDoc) this.emitFileVars();
|
|
@@ -8791,10 +8800,10 @@ var script$3 = {
|
|
|
8791
8800
|
}
|
|
8792
8801
|
}
|
|
8793
8802
|
};/* script */
|
|
8794
|
-
var __vue_script__$
|
|
8803
|
+
var __vue_script__$5 = script$5;
|
|
8795
8804
|
/* template */
|
|
8796
8805
|
|
|
8797
|
-
var __vue_render__$
|
|
8806
|
+
var __vue_render__$5 = function __vue_render__() {
|
|
8798
8807
|
var _vm = this;
|
|
8799
8808
|
|
|
8800
8809
|
var _h = _vm.$createElement;
|
|
@@ -8920,13 +8929,13 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
8920
8929
|
})], 1)])], 2);
|
|
8921
8930
|
};
|
|
8922
8931
|
|
|
8923
|
-
var __vue_staticRenderFns__$
|
|
8932
|
+
var __vue_staticRenderFns__$5 = [];
|
|
8924
8933
|
/* style */
|
|
8925
8934
|
|
|
8926
|
-
var __vue_inject_styles__$
|
|
8935
|
+
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
8927
8936
|
if (!inject) return;
|
|
8928
|
-
inject("data-v-
|
|
8929
|
-
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:
|
|
8937
|
+
inject("data-v-47105414_0", {
|
|
8938
|
+
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}",
|
|
8930
8939
|
map: undefined,
|
|
8931
8940
|
media: undefined
|
|
8932
8941
|
});
|
|
@@ -8934,27 +8943,94 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
8934
8943
|
/* scoped */
|
|
8935
8944
|
|
|
8936
8945
|
|
|
8937
|
-
var __vue_scope_id__$
|
|
8946
|
+
var __vue_scope_id__$5 = undefined;
|
|
8938
8947
|
/* module identifier */
|
|
8939
8948
|
|
|
8940
|
-
var __vue_module_identifier__$
|
|
8949
|
+
var __vue_module_identifier__$5 = "data-v-47105414";
|
|
8941
8950
|
/* functional template */
|
|
8942
8951
|
|
|
8943
|
-
var __vue_is_functional_template__$
|
|
8952
|
+
var __vue_is_functional_template__$5 = false;
|
|
8944
8953
|
/* style inject shadow dom */
|
|
8945
8954
|
|
|
8946
|
-
var __vue_component__$
|
|
8947
|
-
render: __vue_render__$
|
|
8948
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
8949
|
-
}, __vue_inject_styles__$
|
|
8955
|
+
var __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
8956
|
+
render: __vue_render__$5,
|
|
8957
|
+
staticRenderFns: __vue_staticRenderFns__$5
|
|
8958
|
+
}, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, createInjectorSSR, undefined);
|
|
8950
8959
|
|
|
8951
|
-
var BtnFiles = __vue_component__$
|
|
8952
|
-
|
|
8960
|
+
var BtnFiles = __vue_component__$7;//
|
|
8961
|
+
//
|
|
8962
|
+
//
|
|
8963
|
+
//
|
|
8964
|
+
//
|
|
8965
|
+
//
|
|
8966
|
+
var script$4 = {
|
|
8967
|
+
props: {
|
|
8968
|
+
dictionary: {
|
|
8969
|
+
type: Object,
|
|
8970
|
+
default: {},
|
|
8971
|
+
required: false
|
|
8972
|
+
}
|
|
8973
|
+
}
|
|
8974
|
+
};/* script */
|
|
8975
|
+
var __vue_script__$4 = script$4;
|
|
8976
|
+
/* template */
|
|
8977
|
+
|
|
8978
|
+
var __vue_render__$4 = function __vue_render__() {
|
|
8979
|
+
var _vm = this;
|
|
8980
|
+
|
|
8981
|
+
var _h = _vm.$createElement;
|
|
8982
|
+
|
|
8983
|
+
var _c = _vm._self._c || _h;
|
|
8984
|
+
|
|
8985
|
+
return _c('div', {
|
|
8986
|
+
staticClass: "text-footer-actions--btn",
|
|
8987
|
+
attrs: {
|
|
8988
|
+
"title": _vm.dictionary.title_expandir_textarea
|
|
8989
|
+
},
|
|
8990
|
+
on: {
|
|
8991
|
+
"click": function click($event) {
|
|
8992
|
+
return _vm.$emit('expand-textarea');
|
|
8993
|
+
}
|
|
8994
|
+
}
|
|
8995
|
+
}, [_c('fa-icon', {
|
|
8996
|
+
attrs: {
|
|
8997
|
+
"icon": ['fas', 'expand-alt']
|
|
8998
|
+
}
|
|
8999
|
+
})], 1);
|
|
9000
|
+
};
|
|
9001
|
+
|
|
9002
|
+
var __vue_staticRenderFns__$4 = [];
|
|
9003
|
+
/* style */
|
|
9004
|
+
|
|
9005
|
+
var __vue_inject_styles__$4 = undefined;
|
|
9006
|
+
/* scoped */
|
|
9007
|
+
|
|
9008
|
+
var __vue_scope_id__$4 = undefined;
|
|
9009
|
+
/* module identifier */
|
|
9010
|
+
|
|
9011
|
+
var __vue_module_identifier__$4 = "data-v-c2fae61e";
|
|
9012
|
+
/* functional template */
|
|
9013
|
+
|
|
9014
|
+
var __vue_is_functional_template__$4 = false;
|
|
9015
|
+
/* style inject */
|
|
9016
|
+
|
|
9017
|
+
/* style inject SSR */
|
|
9018
|
+
|
|
9019
|
+
/* style inject shadow dom */
|
|
9020
|
+
|
|
9021
|
+
var __vue_component__$6 = /*#__PURE__*/normalizeComponent({
|
|
9022
|
+
render: __vue_render__$4,
|
|
9023
|
+
staticRenderFns: __vue_staticRenderFns__$4
|
|
9024
|
+
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
|
|
9025
|
+
|
|
9026
|
+
var BtnExpand = __vue_component__$6;//
|
|
9027
|
+
var script$3 = {
|
|
8953
9028
|
components: {
|
|
8954
9029
|
EmojisTextFooter: EmojisTextFooter,
|
|
8955
9030
|
Loader: Loader,
|
|
8956
9031
|
BtnMic: BtnMic,
|
|
8957
9032
|
BtnFiles: BtnFiles,
|
|
9033
|
+
BtnExpand: BtnExpand,
|
|
8958
9034
|
RemainingCharacters: RemainingCharacters
|
|
8959
9035
|
},
|
|
8960
9036
|
mixins: [mixin_1],
|
|
@@ -8966,7 +9042,8 @@ var script$2 = {
|
|
|
8966
9042
|
hasEmojis: false,
|
|
8967
9043
|
hasSendButton: false,
|
|
8968
9044
|
hasFiles: false,
|
|
8969
|
-
hasAudio: false
|
|
9045
|
+
hasAudio: false,
|
|
9046
|
+
hasExpand: false
|
|
8970
9047
|
};
|
|
8971
9048
|
},
|
|
8972
9049
|
required: false
|
|
@@ -8975,6 +9052,7 @@ var script$2 = {
|
|
|
8975
9052
|
type: Object,
|
|
8976
9053
|
default: function _default() {
|
|
8977
9054
|
return {
|
|
9055
|
+
height: false,
|
|
8978
9056
|
width: "full",
|
|
8979
9057
|
backgroundColor: "#FFF",
|
|
8980
9058
|
outsideButtons: false
|
|
@@ -9107,14 +9185,14 @@ var script$2 = {
|
|
|
9107
9185
|
if (this.textareaSettings.disabled) return false;
|
|
9108
9186
|
|
|
9109
9187
|
if (this.fileFormatError) {
|
|
9110
|
-
this.$toasted.global.defaultError({
|
|
9188
|
+
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
9111
9189
|
msg: this.dictionary.msg_formato_invalido
|
|
9112
9190
|
});
|
|
9113
9191
|
var str = {
|
|
9114
9192
|
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
9115
9193
|
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
9116
9194
|
};
|
|
9117
|
-
this.$toasted.global.showValidFormats({
|
|
9195
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
9118
9196
|
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
9119
9197
|
});
|
|
9120
9198
|
return false;
|
|
@@ -9129,6 +9207,7 @@ var script$2 = {
|
|
|
9129
9207
|
},
|
|
9130
9208
|
formatMessage: function formatMessage(message) {
|
|
9131
9209
|
if (!message) return "";
|
|
9210
|
+
message = message.trim();
|
|
9132
9211
|
message = message.replace(/\n$/, "", message);
|
|
9133
9212
|
message = returnMessageWithHexa(message);
|
|
9134
9213
|
message = this.removeHTMLElementsFromMessage(message);
|
|
@@ -9231,7 +9310,7 @@ var script$2 = {
|
|
|
9231
9310
|
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
9232
9311
|
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
9233
9312
|
};
|
|
9234
|
-
this.$toasted.global.showValidFormats({
|
|
9313
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
9235
9314
|
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
9236
9315
|
});
|
|
9237
9316
|
return false;
|
|
@@ -9263,14 +9342,14 @@ var script$2 = {
|
|
|
9263
9342
|
if (!invalidFile) {
|
|
9264
9343
|
this.$refs["".concat(this.textId, "-file")].fileUpload(files, fileType, true);
|
|
9265
9344
|
} else {
|
|
9266
|
-
this.$toasted.global.defaultError({
|
|
9345
|
+
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
9267
9346
|
msg: this.dictionary.msg_formato_invalido
|
|
9268
9347
|
});
|
|
9269
9348
|
var str = {
|
|
9270
9349
|
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
9271
9350
|
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
9272
9351
|
};
|
|
9273
|
-
this.$toasted.global.showValidFormats({
|
|
9352
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
9274
9353
|
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
9275
9354
|
});
|
|
9276
9355
|
}
|
|
@@ -9308,10 +9387,10 @@ var script$2 = {
|
|
|
9308
9387
|
// this.$root.$off("resize-footer-template")
|
|
9309
9388
|
}
|
|
9310
9389
|
};/* script */
|
|
9311
|
-
var __vue_script__$
|
|
9390
|
+
var __vue_script__$3 = script$3;
|
|
9312
9391
|
/* template */
|
|
9313
9392
|
|
|
9314
|
-
var __vue_render__$
|
|
9393
|
+
var __vue_render__$3 = function __vue_render__() {
|
|
9315
9394
|
var _vm = this;
|
|
9316
9395
|
|
|
9317
9396
|
var _h = _vm.$createElement;
|
|
@@ -9326,6 +9405,9 @@ var __vue_render__$2 = function __vue_render__() {
|
|
|
9326
9405
|
expression: "away"
|
|
9327
9406
|
}],
|
|
9328
9407
|
staticClass: "text-footer-container",
|
|
9408
|
+
class: {
|
|
9409
|
+
'bigger': _vm.cssStyle.height
|
|
9410
|
+
},
|
|
9329
9411
|
on: {
|
|
9330
9412
|
"drop": function drop($event) {
|
|
9331
9413
|
$event.stopPropagation();
|
|
@@ -9408,16 +9490,31 @@ var __vue_render__$2 = function __vue_render__() {
|
|
|
9408
9490
|
"set-file-vars": _vm.setFileVars,
|
|
9409
9491
|
"open-image": _vm.openImage
|
|
9410
9492
|
}
|
|
9493
|
+
}), _vm._ssrNode(" "), _c('BtnExpand', {
|
|
9494
|
+
directives: [{
|
|
9495
|
+
name: "show",
|
|
9496
|
+
rawName: "v-show",
|
|
9497
|
+
value: _vm.buttons.hasExpand && !_vm.audioFile,
|
|
9498
|
+
expression: "buttons.hasExpand && !audioFile"
|
|
9499
|
+
}],
|
|
9500
|
+
attrs: {
|
|
9501
|
+
"dictionary": _vm.dictionary
|
|
9502
|
+
},
|
|
9503
|
+
on: {
|
|
9504
|
+
"expand-textarea": function expandTextarea($event) {
|
|
9505
|
+
return _vm.$emit('expand-textarea');
|
|
9506
|
+
}
|
|
9507
|
+
}
|
|
9411
9508
|
})], 2) : _vm._e()], 2)]) : _vm._e();
|
|
9412
9509
|
};
|
|
9413
9510
|
|
|
9414
|
-
var __vue_staticRenderFns__$
|
|
9511
|
+
var __vue_staticRenderFns__$3 = [];
|
|
9415
9512
|
/* style */
|
|
9416
9513
|
|
|
9417
|
-
var __vue_inject_styles__$
|
|
9514
|
+
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
9418
9515
|
if (!inject) return;
|
|
9419
|
-
inject("data-v-
|
|
9420
|
-
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 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
|
|
9516
|
+
inject("data-v-d28a806c_0", {
|
|
9517
|
+
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-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-text-container{position:relative}.emoji-text-container .emoji-text-btn{font-size:1.2rem;cursor:pointer}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
9421
9518
|
map: undefined,
|
|
9422
9519
|
media: undefined
|
|
9423
9520
|
});
|
|
@@ -9425,22 +9522,22 @@ var __vue_inject_styles__$2 = function __vue_inject_styles__(inject) {
|
|
|
9425
9522
|
/* scoped */
|
|
9426
9523
|
|
|
9427
9524
|
|
|
9428
|
-
var __vue_scope_id__$
|
|
9525
|
+
var __vue_scope_id__$3 = undefined;
|
|
9429
9526
|
/* module identifier */
|
|
9430
9527
|
|
|
9431
|
-
var __vue_module_identifier__$
|
|
9528
|
+
var __vue_module_identifier__$3 = "data-v-d28a806c";
|
|
9432
9529
|
/* functional template */
|
|
9433
9530
|
|
|
9434
|
-
var __vue_is_functional_template__$
|
|
9531
|
+
var __vue_is_functional_template__$3 = false;
|
|
9435
9532
|
/* style inject shadow dom */
|
|
9436
9533
|
|
|
9437
|
-
var __vue_component__$
|
|
9438
|
-
render: __vue_render__$
|
|
9439
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
9440
|
-
}, __vue_inject_styles__$
|
|
9534
|
+
var __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
9535
|
+
render: __vue_render__$3,
|
|
9536
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
9537
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, createInjectorSSR, undefined);
|
|
9441
9538
|
|
|
9442
|
-
var TextFooter = __vue_component__$
|
|
9443
|
-
var script$
|
|
9539
|
+
var TextFooter = __vue_component__$5;//
|
|
9540
|
+
var script$2 = {
|
|
9444
9541
|
components: {
|
|
9445
9542
|
TextFooter: TextFooter
|
|
9446
9543
|
},
|
|
@@ -9484,10 +9581,10 @@ var script$1 = {
|
|
|
9484
9581
|
}
|
|
9485
9582
|
}
|
|
9486
9583
|
};/* script */
|
|
9487
|
-
var __vue_script__$
|
|
9584
|
+
var __vue_script__$2 = script$2;
|
|
9488
9585
|
/* template */
|
|
9489
9586
|
|
|
9490
|
-
var __vue_render__$
|
|
9587
|
+
var __vue_render__$2 = function __vue_render__() {
|
|
9491
9588
|
var _vm = this;
|
|
9492
9589
|
|
|
9493
9590
|
var _h = _vm.$createElement;
|
|
@@ -9520,32 +9617,32 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
9520
9617
|
})], 2)]) : _vm._e()], 2)])]);
|
|
9521
9618
|
};
|
|
9522
9619
|
|
|
9523
|
-
var __vue_staticRenderFns__$
|
|
9620
|
+
var __vue_staticRenderFns__$2 = [];
|
|
9524
9621
|
/* style */
|
|
9525
9622
|
|
|
9526
|
-
var __vue_inject_styles__$
|
|
9623
|
+
var __vue_inject_styles__$2 = undefined;
|
|
9527
9624
|
/* scoped */
|
|
9528
9625
|
|
|
9529
|
-
var __vue_scope_id__$
|
|
9626
|
+
var __vue_scope_id__$2 = undefined;
|
|
9530
9627
|
/* module identifier */
|
|
9531
9628
|
|
|
9532
|
-
var __vue_module_identifier__$
|
|
9629
|
+
var __vue_module_identifier__$2 = "data-v-4d24e86b";
|
|
9533
9630
|
/* functional template */
|
|
9534
9631
|
|
|
9535
|
-
var __vue_is_functional_template__$
|
|
9632
|
+
var __vue_is_functional_template__$2 = false;
|
|
9536
9633
|
/* style inject */
|
|
9537
9634
|
|
|
9538
9635
|
/* style inject SSR */
|
|
9539
9636
|
|
|
9540
9637
|
/* style inject shadow dom */
|
|
9541
9638
|
|
|
9542
|
-
var __vue_component__$
|
|
9543
|
-
render: __vue_render__$
|
|
9544
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
9545
|
-
}, __vue_inject_styles__$
|
|
9639
|
+
var __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
9640
|
+
render: __vue_render__$2,
|
|
9641
|
+
staticRenderFns: __vue_staticRenderFns__$2
|
|
9642
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
9546
9643
|
|
|
9547
|
-
var TemplateMessage = __vue_component__$
|
|
9548
|
-
var script = {
|
|
9644
|
+
var TemplateMessage = __vue_component__$4;//
|
|
9645
|
+
var script$1 = {
|
|
9549
9646
|
components: {
|
|
9550
9647
|
TemplateSingle: TemplateSingle,
|
|
9551
9648
|
TemplateMessage: TemplateMessage
|
|
@@ -9732,10 +9829,10 @@ var script = {
|
|
|
9732
9829
|
}
|
|
9733
9830
|
}
|
|
9734
9831
|
};/* script */
|
|
9735
|
-
var __vue_script__ = script;
|
|
9832
|
+
var __vue_script__$1 = script$1;
|
|
9736
9833
|
/* template */
|
|
9737
9834
|
|
|
9738
|
-
var __vue_render__ = function __vue_render__() {
|
|
9835
|
+
var __vue_render__$1 = function __vue_render__() {
|
|
9739
9836
|
var _vm = this;
|
|
9740
9837
|
|
|
9741
9838
|
var _h = _vm.$createElement;
|
|
@@ -9802,13 +9899,364 @@ var __vue_render__ = function __vue_render__() {
|
|
|
9802
9899
|
})], 1)] : _vm._e()], 2) : _vm._e();
|
|
9803
9900
|
};
|
|
9804
9901
|
|
|
9902
|
+
var __vue_staticRenderFns__$1 = [];
|
|
9903
|
+
/* style */
|
|
9904
|
+
|
|
9905
|
+
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
9906
|
+
if (!inject) return;
|
|
9907
|
+
inject("data-v-e1527e06_0", {
|
|
9908
|
+
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:5px;border-top-right-radius: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:5px;border-bottom-right-radius:5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:5px;border-bottom-right-radius: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:25px}.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 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}",
|
|
9909
|
+
map: undefined,
|
|
9910
|
+
media: undefined
|
|
9911
|
+
});
|
|
9912
|
+
};
|
|
9913
|
+
/* scoped */
|
|
9914
|
+
|
|
9915
|
+
|
|
9916
|
+
var __vue_scope_id__$1 = undefined;
|
|
9917
|
+
/* module identifier */
|
|
9918
|
+
|
|
9919
|
+
var __vue_module_identifier__$1 = "data-v-e1527e06";
|
|
9920
|
+
/* functional template */
|
|
9921
|
+
|
|
9922
|
+
var __vue_is_functional_template__$1 = false;
|
|
9923
|
+
/* style inject shadow dom */
|
|
9924
|
+
|
|
9925
|
+
var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
9926
|
+
render: __vue_render__$1,
|
|
9927
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
9928
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, createInjectorSSR, undefined);
|
|
9929
|
+
|
|
9930
|
+
var __vue_component__$3 = __vue_component__$2;//
|
|
9931
|
+
var script = {
|
|
9932
|
+
components: {
|
|
9933
|
+
EmojisTextFooter: EmojisTextFooter,
|
|
9934
|
+
BtnFiles: BtnFiles
|
|
9935
|
+
},
|
|
9936
|
+
mixins: [mixin_1],
|
|
9937
|
+
props: {
|
|
9938
|
+
identifier: {
|
|
9939
|
+
type: String,
|
|
9940
|
+
required: true
|
|
9941
|
+
},
|
|
9942
|
+
dictionary: {
|
|
9943
|
+
type: Object,
|
|
9944
|
+
required: true
|
|
9945
|
+
},
|
|
9946
|
+
envioEmAndamento: {
|
|
9947
|
+
type: Boolean,
|
|
9948
|
+
required: false
|
|
9949
|
+
},
|
|
9950
|
+
buttons: {
|
|
9951
|
+
type: Object,
|
|
9952
|
+
default: function _default() {
|
|
9953
|
+
return {
|
|
9954
|
+
hasEmojis: false,
|
|
9955
|
+
hasSendButton: true,
|
|
9956
|
+
hasFiles: true
|
|
9957
|
+
};
|
|
9958
|
+
},
|
|
9959
|
+
required: false
|
|
9960
|
+
},
|
|
9961
|
+
fileSettings: {
|
|
9962
|
+
type: Object,
|
|
9963
|
+
default: function _default() {
|
|
9964
|
+
return {
|
|
9965
|
+
docsExtensions: "",
|
|
9966
|
+
imagesExtensions: "",
|
|
9967
|
+
multiple: false
|
|
9968
|
+
};
|
|
9969
|
+
},
|
|
9970
|
+
required: false
|
|
9971
|
+
},
|
|
9972
|
+
textareaSettings: {
|
|
9973
|
+
type: Object,
|
|
9974
|
+
default: function _default() {
|
|
9975
|
+
return {
|
|
9976
|
+
placeholderMessage: "",
|
|
9977
|
+
title: "Nova mensagem"
|
|
9978
|
+
};
|
|
9979
|
+
},
|
|
9980
|
+
required: false
|
|
9981
|
+
}
|
|
9982
|
+
},
|
|
9983
|
+
data: function data() {
|
|
9984
|
+
return {
|
|
9985
|
+
message: "",
|
|
9986
|
+
file: [],
|
|
9987
|
+
hasAnyFile: false,
|
|
9988
|
+
imagePreview: "",
|
|
9989
|
+
isDoc: false,
|
|
9990
|
+
fileFormatError: false
|
|
9991
|
+
};
|
|
9992
|
+
},
|
|
9993
|
+
methods: {
|
|
9994
|
+
away: function away() {
|
|
9995
|
+
if (this.$refs["".concat(this.identifier, "-file")]) this.$refs["".concat(this.identifier, "-file")].openFiles = false;
|
|
9996
|
+
},
|
|
9997
|
+
removeHTMLElementsFromMessage: function removeHTMLElementsFromMessage(message) {
|
|
9998
|
+
var regexTags = /<\/?[\d\w\s=\-:./'";]+>/gi;
|
|
9999
|
+
if (message.match(regexTags)) message = message.replace(regexTags, ' ');
|
|
10000
|
+
return message;
|
|
10001
|
+
},
|
|
10002
|
+
formatMessage: function formatMessage(message) {
|
|
10003
|
+
if (!message) return "";
|
|
10004
|
+
message = message.trim();
|
|
10005
|
+
message = message.replace(/\n$/, "", message);
|
|
10006
|
+
message = returnMessageWithHexa(message);
|
|
10007
|
+
message = this.removeHTMLElementsFromMessage(message);
|
|
10008
|
+
return message;
|
|
10009
|
+
},
|
|
10010
|
+
sendFinalMessage: function sendFinalMessage() {
|
|
10011
|
+
var messageAux = this.formatMessage(this.message);
|
|
10012
|
+
this.$emit("final-message", messageAux);
|
|
10013
|
+
},
|
|
10014
|
+
emitirEnvio: function emitirEnvio() {
|
|
10015
|
+
if (this.envioEmAndamento) return;
|
|
10016
|
+
if (!this.buttons.hasSendButton) return;
|
|
10017
|
+
|
|
10018
|
+
try {
|
|
10019
|
+
if (this.verifyMessage()) {
|
|
10020
|
+
var messageAux = this.formatMessage(this.message);
|
|
10021
|
+
|
|
10022
|
+
if (messageAux || this.hasAnyFile) {
|
|
10023
|
+
var objMessage = this.returnObjectMessage(messageAux);
|
|
10024
|
+
this.$emit("send-message", messageAux);
|
|
10025
|
+
this.$emit("obj-message", objMessage); // this.reset() // Deve ser chamada de fora do plugin
|
|
10026
|
+
}
|
|
10027
|
+
}
|
|
10028
|
+
} catch (e) {
|
|
10029
|
+
console.error("Erro ao emitir envio da mensagem");
|
|
10030
|
+
console.error(e);
|
|
10031
|
+
}
|
|
10032
|
+
},
|
|
10033
|
+
verifyMessage: function verifyMessage() {
|
|
10034
|
+
if ((!this.message || !this.message.trim()) && !this.hasAnyFile) return false;
|
|
10035
|
+
|
|
10036
|
+
if (this.fileFormatError) {
|
|
10037
|
+
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
10038
|
+
msg: this.dictionary.msg_formato_invalido
|
|
10039
|
+
});
|
|
10040
|
+
var str = {
|
|
10041
|
+
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
10042
|
+
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
10043
|
+
};
|
|
10044
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
10045
|
+
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
10046
|
+
});
|
|
10047
|
+
return false;
|
|
10048
|
+
}
|
|
10049
|
+
|
|
10050
|
+
return true;
|
|
10051
|
+
},
|
|
10052
|
+
returnObjectMessage: function returnObjectMessage(message) {
|
|
10053
|
+
return {
|
|
10054
|
+
message: message,
|
|
10055
|
+
attachment: this.hasAnyFile ? this.file : false,
|
|
10056
|
+
isDoc: this.isDoc,
|
|
10057
|
+
imagePreview: this.imagePreview
|
|
10058
|
+
};
|
|
10059
|
+
},
|
|
10060
|
+
reset: function reset() {
|
|
10061
|
+
if (this.buttons.hasEmojis && this.$refs["emoji-text-".concat(this.identifier, "-emoji")].showEmojis) this.$refs["emoji-text-".concat(this.identifier, "-emoji")].toggleEmojiSelection();
|
|
10062
|
+
if (this.hasAnyFile) this.$refs["".concat(this.identifier, "-file")].deleteFile();
|
|
10063
|
+
this.message = "";
|
|
10064
|
+
this.sendFinalMessage();
|
|
10065
|
+
this.focusTextarea();
|
|
10066
|
+
},
|
|
10067
|
+
dropFile: function dropFile(e) {
|
|
10068
|
+
try {
|
|
10069
|
+
e.stopPropagation();
|
|
10070
|
+
e.preventDefault();
|
|
10071
|
+
var files = e.dataTransfer.files.length ? e.dataTransfer.files : "";
|
|
10072
|
+
this.filesHandler(files);
|
|
10073
|
+
} catch (e) {
|
|
10074
|
+
console.error("Erro drop file");
|
|
10075
|
+
console.error(e);
|
|
10076
|
+
}
|
|
10077
|
+
},
|
|
10078
|
+
returnFileType: function returnFileType(file, stopAlert) {
|
|
10079
|
+
var imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
10080
|
+
if (imgRegex.test(file.name)) return "img";
|
|
10081
|
+
var docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
10082
|
+
if (docRegex.test(file.name)) return "doc";
|
|
10083
|
+
if (!stopAlert) return;
|
|
10084
|
+
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
10085
|
+
msg: this.dictionary.msg_formato_invalido
|
|
10086
|
+
});
|
|
10087
|
+
var str = {
|
|
10088
|
+
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
10089
|
+
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
10090
|
+
};
|
|
10091
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
10092
|
+
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
10093
|
+
});
|
|
10094
|
+
return false;
|
|
10095
|
+
},
|
|
10096
|
+
filesHandler: function filesHandler(files) {
|
|
10097
|
+
var _this = this;
|
|
10098
|
+
|
|
10099
|
+
if (!Array.isArray(files)) files = Array.from(files);
|
|
10100
|
+
var fileType = this.returnFileType(files[0], true);
|
|
10101
|
+
var invalidFile = false;
|
|
10102
|
+
|
|
10103
|
+
try {
|
|
10104
|
+
files.forEach(function (file) {
|
|
10105
|
+
var singleFileType = _this.returnFileType(file, true);
|
|
10106
|
+
|
|
10107
|
+
if (!singleFileType) {
|
|
10108
|
+
invalidFile = true;
|
|
10109
|
+
file.invalid = true;
|
|
10110
|
+
}
|
|
10111
|
+
|
|
10112
|
+
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
10113
|
+
});
|
|
10114
|
+
} catch (e) {
|
|
10115
|
+
console.error("Erro ao tentar percorrer os arquivos");
|
|
10116
|
+
console.error(e);
|
|
10117
|
+
invalidFile = true;
|
|
10118
|
+
}
|
|
10119
|
+
|
|
10120
|
+
if (!invalidFile) {
|
|
10121
|
+
this.$refs["".concat(this.identifier, "-file")].fileUpload(files, fileType, true);
|
|
10122
|
+
} else {
|
|
10123
|
+
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
10124
|
+
msg: this.dictionary.msg_formato_invalido
|
|
10125
|
+
});
|
|
10126
|
+
var str = {
|
|
10127
|
+
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
10128
|
+
doc: this.fileSettings.docsExtensions.split("|").join(", ")
|
|
10129
|
+
};
|
|
10130
|
+
if (!document.querySelector(".toasted.toasted-primary.info")) this.$toasted.global.showValidFormats({
|
|
10131
|
+
msg: "Imagens: ".concat(str.img, " - Documentos: ").concat(str.doc, " ").concat(this.dictionary.msg_extensoes_aceitas)
|
|
10132
|
+
});
|
|
10133
|
+
}
|
|
10134
|
+
},
|
|
10135
|
+
focusTextarea: function focusTextarea() {
|
|
10136
|
+
this.$refs["".concat(this.identifier)].focus();
|
|
10137
|
+
},
|
|
10138
|
+
setFileVars: function setFileVars(fileObj) {
|
|
10139
|
+
var file = fileObj.file,
|
|
10140
|
+
imagePreview = fileObj.imagePreview,
|
|
10141
|
+
isDoc = fileObj.isDoc,
|
|
10142
|
+
fileFormatError = fileObj.fileFormatError,
|
|
10143
|
+
hasAnyFile = fileObj.hasAnyFile;
|
|
10144
|
+
this.file = file;
|
|
10145
|
+
this.imagePreview = imagePreview ? imagePreview : "";
|
|
10146
|
+
this.isDoc = isDoc;
|
|
10147
|
+
this.fileFormatError = fileFormatError;
|
|
10148
|
+
this.hasAnyFile = hasAnyFile;
|
|
10149
|
+
this.$emit("set-file-vars", fileObj);
|
|
10150
|
+
},
|
|
10151
|
+
openImage: function openImage(imagePreview) {
|
|
10152
|
+
this.$emit("open-image", imagePreview);
|
|
10153
|
+
},
|
|
10154
|
+
pasteImage: function pasteImage(e) {
|
|
10155
|
+
try {
|
|
10156
|
+
if (e.clipboardData.files.length && !this.buttons.hasFiles) {
|
|
10157
|
+
e.preventDefault();
|
|
10158
|
+
return;
|
|
10159
|
+
} else if (e.clipboardData.files.length && this.buttons.hasFiles) {
|
|
10160
|
+
var files = e.clipboardData.files;
|
|
10161
|
+
this.filesHandler(files);
|
|
10162
|
+
}
|
|
10163
|
+
} catch (e) {
|
|
10164
|
+
console.error("Nao foi possivel colar a/o imagem/documento");
|
|
10165
|
+
console.error(e);
|
|
10166
|
+
}
|
|
10167
|
+
},
|
|
10168
|
+
insertEmoji: function insertEmoji(emoji) {
|
|
10169
|
+
try {
|
|
10170
|
+
var textarea = this.$refs["".concat(this.identifier)];
|
|
10171
|
+
console.log(textarea);
|
|
10172
|
+
this.focusTextarea();
|
|
10173
|
+
var cursorStart = textarea.selectionStart;
|
|
10174
|
+
var cursorEnd = textarea.selectionEnd;
|
|
10175
|
+
this.message = this.message.slice(0, cursorStart) + emoji.native + this.message.slice(cursorEnd);
|
|
10176
|
+
this.sendFinalMessage();
|
|
10177
|
+
} catch (e) {
|
|
10178
|
+
console.error("Erro na insercao de emojis");
|
|
10179
|
+
console.error(e);
|
|
10180
|
+
}
|
|
10181
|
+
}
|
|
10182
|
+
}
|
|
10183
|
+
};/* script */
|
|
10184
|
+
var __vue_script__ = script;
|
|
10185
|
+
/* template */
|
|
10186
|
+
|
|
10187
|
+
var __vue_render__ = function __vue_render__() {
|
|
10188
|
+
var _vm = this;
|
|
10189
|
+
|
|
10190
|
+
var _h = _vm.$createElement;
|
|
10191
|
+
|
|
10192
|
+
var _c = _vm._self._c || _h;
|
|
10193
|
+
|
|
10194
|
+
return _c('div', {
|
|
10195
|
+
directives: [{
|
|
10196
|
+
name: "on-clickaway",
|
|
10197
|
+
rawName: "v-on-clickaway",
|
|
10198
|
+
value: _vm.away,
|
|
10199
|
+
expression: "away"
|
|
10200
|
+
}],
|
|
10201
|
+
staticClass: "expand-textarea",
|
|
10202
|
+
on: {
|
|
10203
|
+
"drop": function drop($event) {
|
|
10204
|
+
$event.stopPropagation();
|
|
10205
|
+
return _vm.dropFile.apply(null, arguments);
|
|
10206
|
+
},
|
|
10207
|
+
"dragenter": function dragenter($event) {
|
|
10208
|
+
$event.preventDefault();
|
|
10209
|
+
},
|
|
10210
|
+
"dragover": function dragover($event) {
|
|
10211
|
+
$event.preventDefault();
|
|
10212
|
+
}
|
|
10213
|
+
}
|
|
10214
|
+
}, [_c('fa-icon', {
|
|
10215
|
+
staticClass: "sc-icone-fechar sc-icone-fechar--externo",
|
|
10216
|
+
attrs: {
|
|
10217
|
+
"icon": ['fas', 'times-circle']
|
|
10218
|
+
},
|
|
10219
|
+
on: {
|
|
10220
|
+
"click": function click($event) {
|
|
10221
|
+
return _vm.$emit('fechar-expand');
|
|
10222
|
+
}
|
|
10223
|
+
}
|
|
10224
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"expand-textarea-content\">", "</div>", [_vm._ssrNode("<h1 class=\"expand-textarea-title\">" + _vm._ssrEscape(_vm._s(_vm.textareaSettings.title)) + "</h1> <textarea" + _vm._ssrAttr("placeholder", _vm.textareaSettings.placeholderMessage) + ">" + _vm._ssrEscape(_vm._s(_vm.message)) + "</textarea> "), _vm._ssrNode("<div class=\"expand-textarea-footer\">", "</div>", [_c('EmojisTextFooter', {
|
|
10225
|
+
directives: [{
|
|
10226
|
+
name: "show",
|
|
10227
|
+
rawName: "v-show",
|
|
10228
|
+
value: _vm.buttons.hasEmojis,
|
|
10229
|
+
expression: "buttons.hasEmojis"
|
|
10230
|
+
}],
|
|
10231
|
+
ref: _vm.identifier + "-emojis",
|
|
10232
|
+
attrs: {
|
|
10233
|
+
"emojiId": _vm.identifier + "-em",
|
|
10234
|
+
"left": false
|
|
10235
|
+
},
|
|
10236
|
+
on: {
|
|
10237
|
+
"insert-emoji": _vm.insertEmoji
|
|
10238
|
+
}
|
|
10239
|
+
}), _vm._ssrNode(" "), _vm.buttons.hasFiles ? _c('BtnFiles', {
|
|
10240
|
+
ref: _vm.identifier + "-file",
|
|
10241
|
+
attrs: {
|
|
10242
|
+
"textId": _vm.identifier,
|
|
10243
|
+
"dictionary": _vm.dictionary,
|
|
10244
|
+
"fileSettings": _vm.fileSettings
|
|
10245
|
+
},
|
|
10246
|
+
on: {
|
|
10247
|
+
"set-file-vars": _vm.setFileVars,
|
|
10248
|
+
"open-image": _vm.openImage
|
|
10249
|
+
}
|
|
10250
|
+
}) : _vm._e(), _vm._ssrNode(" "), _vm._t("btn-1"), _vm._ssrNode(" "), _vm._t("btn-2")], 2)], 2)], 2);
|
|
10251
|
+
};
|
|
10252
|
+
|
|
9805
10253
|
var __vue_staticRenderFns__ = [];
|
|
9806
10254
|
/* style */
|
|
9807
10255
|
|
|
9808
10256
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
9809
10257
|
if (!inject) return;
|
|
9810
|
-
inject("data-v-
|
|
9811
|
-
source: "
|
|
10258
|
+
inject("data-v-2dfbb758_0", {
|
|
10259
|
+
source: ".sc-icone-fechar{cursor:pointer;position:absolute;top:0;right:0;background-color:#fff;border-radius:50%;z-index:1;color:#e74c3c;font-size:1.3rem}.sc-icone-fechar.sc-icone-fechar--externo{top:-10px;right:-10px}.sc-icone-fechar.sc-icone-fechar--interno{top:10px;right:10px}.expand-textarea{position:relative;width:90%;height:90%;z-index:1}.expand-textarea-content{overflow-x:hidden;overflow-y:auto;background-color:#fff;width:100%;height:100%;display:flex;flex-direction:column}.expand-textarea-title{padding:2.5px 8px;min-height:38px;display:flex;align-items:center;width:100%;font-size:1.3rem;background-color:#222;color:#fff}.expand-textarea-content textarea{padding:10px;flex:1;width:100%;border:unset;resize:none;outline:0;overflow-x:hidden}.expand-textarea-content textarea:active,.expand-textarea-content textarea:hover{outline:0}.expand-textarea-footer{display:flex;justify-content:flex-end;align-items:center;padding:10px;background-color:#f7f7f7;position:relative}.expand-textarea-footer .text-footer-preview-container{position:absolute;top:-200px;right:145px;height:200px;background:#f7f7f7}.expand-textarea-footer .text-footer-actions--btn{width:36px;height:36px;border-radius:50%;background-color:rgba(255,255,255,0);color:#333;padding:2.5px;margin:0 15px 0 10px;display:flex;justify-content:center;align-items:center;font-size:1.3rem;cursor:pointer;opacity:.9;transition:all .3s}.expand-textarea-footer .text-footer-actions--btn:hover{opacity:1;background-color:rgba(30,30,30,.1)}.expand-textarea-button{width:125px;height:30px;display:flex;justify-content:center;align-items:center;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:5px;padding:5px 10px;border-radius:2.5px;position:relative}.expand-textarea-button.green{background-color:#2a963a;color:#fff;margin-right:10px}.expand-textarea-button.red{background-color:#e74c3c;color:#fff}.expand-textarea-button:hover{opacity:1}.expand-textarea-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)}.expand-textarea-button.carregando{background-color:#777}",
|
|
9812
10260
|
map: undefined,
|
|
9813
10261
|
media: undefined
|
|
9814
10262
|
});
|
|
@@ -9819,7 +10267,7 @@ var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
|
9819
10267
|
var __vue_scope_id__ = undefined;
|
|
9820
10268
|
/* module identifier */
|
|
9821
10269
|
|
|
9822
|
-
var __vue_module_identifier__ = "data-v-
|
|
10270
|
+
var __vue_module_identifier__ = "data-v-2dfbb758";
|
|
9823
10271
|
/* functional template */
|
|
9824
10272
|
|
|
9825
10273
|
var __vue_is_functional_template__ = false;
|
|
@@ -9830,7 +10278,7 @@ var __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
9830
10278
|
staticRenderFns: __vue_staticRenderFns__
|
|
9831
10279
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, createInjectorSSR, undefined);
|
|
9832
10280
|
|
|
9833
|
-
var __vue_component__$1 = __vue_component__;var components$1=/*#__PURE__*/Object.freeze({__proto__:null,TemplateGenerator: __vue_component__$
|
|
10281
|
+
var __vue_component__$1 = __vue_component__;var components$1=/*#__PURE__*/Object.freeze({__proto__:null,TemplateGenerator: __vue_component__$3,TextFooter: TextFooter,ExpandTextarea: __vue_component__$1});var install = function installVueIntergrallPlugins(Vue) {
|
|
9834
10282
|
Object.entries(components$1).forEach(function (_ref) {
|
|
9835
10283
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
9836
10284
|
componentName = _ref2[0],
|
|
@@ -9839,7 +10287,7 @@ var __vue_component__$1 = __vue_component__;var components$1=/*#__PURE__*/Object
|
|
|
9839
10287
|
Vue.component(componentName, component);
|
|
9840
10288
|
});
|
|
9841
10289
|
}; // Create module definition for Vue.use()
|
|
9842
|
-
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default': install,TemplateGenerator: __vue_component__$
|
|
10290
|
+
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default': install,TemplateGenerator: __vue_component__$3,TextFooter: TextFooter,ExpandTextarea: __vue_component__$1});// only expose one global var, with component exports exposed as properties of
|
|
9843
10291
|
// that global var (eg. plugin.component)
|
|
9844
10292
|
|
|
9845
10293
|
Object.entries(components).forEach(function (_ref) {
|