vue-intergrall-plugins 0.0.169 → 0.0.172
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 +69 -50
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +75 -60
- package/package.json +5 -2
- package/src/lib-components/Chat/StandardMessages.vue +7 -8
- package/src/lib-components/Chat/TextFooter.vue +4 -0
- package/src/lib-components/Messages/CardMessages.vue +2 -0
- package/src/lib-components/Messages/ChatMessages.vue +35 -3
|
@@ -4929,7 +4929,9 @@ var Cancel_1 = Cancel;var defaults$1 = defaults_1;var xhr = function xhrAdapter(
|
|
|
4929
4929
|
// Send the request
|
|
4930
4930
|
request.send(requestData);
|
|
4931
4931
|
});
|
|
4932
|
-
};
|
|
4932
|
+
};var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4933
|
+
|
|
4934
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
4933
4935
|
return module = {
|
|
4934
4936
|
path: basedir,
|
|
4935
4937
|
exports: {},
|
|
@@ -7778,10 +7780,10 @@ var standardMessages = {
|
|
|
7778
7780
|
_context.prev = 0;
|
|
7779
7781
|
return _context.abrupt("return", _this.$httpRequest({
|
|
7780
7782
|
method: 'get',
|
|
7781
|
-
url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev)
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7783
|
+
url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
|
|
7784
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
|
|
7785
|
+
// }
|
|
7786
|
+
|
|
7785
7787
|
}).then(function (response) {
|
|
7786
7788
|
var data = response.data;
|
|
7787
7789
|
var tipo = data.tipo,
|
|
@@ -7961,9 +7963,10 @@ var script$g = {
|
|
|
7961
7963
|
|
|
7962
7964
|
case 4:
|
|
7963
7965
|
var finalMessage = "".concat(this.message).concat(this.message && !this.message.endsWith(" ") ? " ".concat(messageData) : messageData);
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7966
|
+
this.$emit("add-standard-message", finalMessage);
|
|
7967
|
+
this.$parent.focusTextarea(); // return this.closeStandardMessages()
|
|
7968
|
+
|
|
7969
|
+
break;
|
|
7967
7970
|
|
|
7968
7971
|
default:
|
|
7969
7972
|
console.error("Error in showFormattedMessage: selectionIndex not found");
|
|
@@ -7973,6 +7976,9 @@ var script$g = {
|
|
|
7973
7976
|
console.error("Error in showFormattedMessage: ", e);
|
|
7974
7977
|
}
|
|
7975
7978
|
},
|
|
7979
|
+
closeStandardMessages: function closeStandardMessages() {
|
|
7980
|
+
this.$emit("close-standard-messages");
|
|
7981
|
+
},
|
|
7976
7982
|
openMsg: function openMsg() {
|
|
7977
7983
|
try {
|
|
7978
7984
|
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) : this.openFormattedMsgType2(this.key_3);
|
|
@@ -8115,38 +8121,7 @@ var __vue_render__$g = function __vue_render__() {
|
|
|
8115
8121
|
"slot": "no-options"
|
|
8116
8122
|
},
|
|
8117
8123
|
slot: "no-options"
|
|
8118
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]),
|
|
8119
|
-
staticClass: "text-footer--btn-select-03",
|
|
8120
|
-
class: {
|
|
8121
|
-
'loading-message': _vm.loadingReq
|
|
8122
|
-
},
|
|
8123
|
-
attrs: {
|
|
8124
|
-
"title": _vm.dictionary.title_btn_preencher_msg_formatada
|
|
8125
|
-
},
|
|
8126
|
-
on: {
|
|
8127
|
-
"click": function click($event) {
|
|
8128
|
-
return _vm.insertFormattedMessage(_vm.key_3);
|
|
8129
|
-
}
|
|
8130
|
-
}
|
|
8131
|
-
}, [_vm.loadingReq ? _c('VueLoader') : _c('fa-icon', {
|
|
8132
|
-
attrs: {
|
|
8133
|
-
"icon": ['fas', 'level-up-alt']
|
|
8134
|
-
}
|
|
8135
|
-
})], 1) : _vm.key_3 && _vm.messageType == 2 ? _c('span', {
|
|
8136
|
-
staticClass: "text-footer--btn-select-03",
|
|
8137
|
-
attrs: {
|
|
8138
|
-
"title": _vm.dictionary.title_btn_abrir_msg_tipo_2
|
|
8139
|
-
},
|
|
8140
|
-
on: {
|
|
8141
|
-
"click": function click($event) {
|
|
8142
|
-
return _vm.openFormattedMsgType2(_vm.key_3);
|
|
8143
|
-
}
|
|
8144
|
-
}
|
|
8145
|
-
}, [_c('fa-icon', {
|
|
8146
|
-
attrs: {
|
|
8147
|
-
"icon": ['fas', 'file-alt']
|
|
8148
|
-
}
|
|
8149
|
-
})], 1) : _vm._e()], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8124
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8150
8125
|
staticClass: "loader-select"
|
|
8151
8126
|
}, [_c('VueLoader')], 1) : _vm._e()])], 2)], 2);
|
|
8152
8127
|
};
|
|
@@ -8156,7 +8131,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
8156
8131
|
|
|
8157
8132
|
var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
8158
8133
|
if (!inject) return;
|
|
8159
|
-
inject("data-v-
|
|
8134
|
+
inject("data-v-d5920a7e_0", {
|
|
8160
8135
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
8161
8136
|
map: undefined,
|
|
8162
8137
|
media: undefined
|
|
@@ -8168,7 +8143,7 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
|
8168
8143
|
var __vue_scope_id__$g = undefined;
|
|
8169
8144
|
/* module identifier */
|
|
8170
8145
|
|
|
8171
|
-
var __vue_module_identifier__$g = "data-v-
|
|
8146
|
+
var __vue_module_identifier__$g = "data-v-d5920a7e";
|
|
8172
8147
|
/* functional template */
|
|
8173
8148
|
|
|
8174
8149
|
var __vue_is_functional_template__$g = false;
|
|
@@ -8607,6 +8582,9 @@ var script$f = {
|
|
|
8607
8582
|
addStandardMessage: function addStandardMessage(message) {
|
|
8608
8583
|
this.message = message;
|
|
8609
8584
|
this.sendFinalMessage();
|
|
8585
|
+
},
|
|
8586
|
+
closeStandardMessages: function closeStandardMessages() {
|
|
8587
|
+
this.showStandardMessages = false;
|
|
8610
8588
|
}
|
|
8611
8589
|
},
|
|
8612
8590
|
destroyed: function destroyed() {
|
|
@@ -8769,6 +8747,7 @@ var __vue_render__$f = function __vue_render__() {
|
|
|
8769
8747
|
"messageType": _vm.messageType
|
|
8770
8748
|
},
|
|
8771
8749
|
on: {
|
|
8750
|
+
"close-standard-messages": _vm.closeStandardMessages,
|
|
8772
8751
|
"open-blocker-standard-message": _vm.openBlockerStandardMessage,
|
|
8773
8752
|
"close-blocker-standard-message": _vm.closeBlockerStandardMessage,
|
|
8774
8753
|
"set-message-type": _vm.setMessageType,
|
|
@@ -8783,7 +8762,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
8783
8762
|
|
|
8784
8763
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
8785
8764
|
if (!inject) return;
|
|
8786
|
-
inject("data-v-
|
|
8765
|
+
inject("data-v-bb390258_0", {
|
|
8787
8766
|
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8788
8767
|
map: undefined,
|
|
8789
8768
|
media: undefined
|
|
@@ -8795,7 +8774,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
8795
8774
|
var __vue_scope_id__$f = undefined;
|
|
8796
8775
|
/* module identifier */
|
|
8797
8776
|
|
|
8798
|
-
var __vue_module_identifier__$f = "data-v-
|
|
8777
|
+
var __vue_module_identifier__$f = "data-v-bb390258";
|
|
8799
8778
|
/* functional template */
|
|
8800
8779
|
|
|
8801
8780
|
var __vue_is_functional_template__$f = false;
|
|
@@ -10512,6 +10491,8 @@ var script$7 = {
|
|
|
10512
10491
|
var cod = this.ticket_id.cod;
|
|
10513
10492
|
|
|
10514
10493
|
switch (cod) {
|
|
10494
|
+
case 17:
|
|
10495
|
+
case "17":
|
|
10515
10496
|
case 9:
|
|
10516
10497
|
case "9":
|
|
10517
10498
|
case 8:
|
|
@@ -10567,16 +10548,16 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
10567
10548
|
}
|
|
10568
10549
|
}, [_vm.msgNova ? _c('span', {
|
|
10569
10550
|
staticClass: "novas-mensagens"
|
|
10570
|
-
}, [_vm._v("\n Nova mensagem\n ")]) : _vm._e()]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card box-shadow\" data-v-
|
|
10551
|
+
}, [_vm._v("\n Nova mensagem\n ")]) : _vm._e()]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card box-shadow\" data-v-60eaca73>", "</div>", [_vm._ssrNode("<div class=\"card-header\" data-v-60eaca73>", "</div>", [_vm._ssrNode("<div class=\"card-autor\" data-v-60eaca73>", "</div>", [_c('fa-icon', {
|
|
10571
10552
|
attrs: {
|
|
10572
10553
|
"icon": _vm.iconAutor
|
|
10573
10554
|
}
|
|
10574
|
-
}), _vm._ssrNode(" " + (_vm.autor ? "<p" + _vm._ssrAttr("title", _vm.autor) + " class=\"text-bold\" data-v-
|
|
10555
|
+
}), _vm._ssrNode(" " + (_vm.autor ? "<p" + _vm._ssrAttr("title", _vm.autor) + " class=\"text-bold\" data-v-60eaca73>" + _vm._ssrEscape(_vm._s("" + _vm.tratarTextoLongo(_vm.autor))) + "</p>" : "<!---->") + " " + (_vm.origem === 'principal' && _vm.login ? "<p" + _vm._ssrAttr("title", _vm.login) + " data-v-60eaca73>" + _vm._ssrEscape(_vm._s("| " + _vm.login)) + "</p>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-right\" data-v-60eaca73>", "</div>", [_vm._ssrNode("<div class=\"card-datas\" data-v-60eaca73>" + (_vm.data_cri ? "<div" + _vm._ssrAttr("title", _vm.dictionary.data_criacao + ": " + (_vm.origem === 'outros' ? _vm.formataTimezoneData(_vm.data_cri) : _vm.returnFormataDataHora(_vm.data_cri))) + " class=\"card-data\" data-v-60eaca73><span data-v-60eaca73>" + _vm._ssrEscape(_vm._s(_vm.origem === 'outros' ? _vm.formataTimezoneData(_vm.data_cri) : _vm.returnFormataDataHora(_vm.data_cri))) + "</span></div>" : "<!---->") + " " + (_vm.data_mod ? "<div" + _vm._ssrAttr("title", _vm.dictionary.data_mod + ": " + (_vm.origem === 'outros' ? _vm.formataTimezoneData(_vm.data_mod) : _vm.returnFormataDataHora(_vm.data_mod))) + " class=\"card-data\" data-v-60eaca73><span data-v-60eaca73>" + _vm._ssrEscape(_vm._s(_vm.origem === 'outros' ? _vm.formataTimezoneData(_vm.data_mod) : _vm.returnFormataDataHora(_vm.data_mod))) + "</span></div>" : "<!---->") + "</div> "), _vm.hasExpand ? _vm._ssrNode("<div class=\"card-expand\" data-v-60eaca73>", "</div>", [_c('fa-icon', {
|
|
10575
10556
|
attrs: {
|
|
10576
10557
|
"icon": ['fas', 'expand-alt']
|
|
10577
10558
|
}
|
|
10578
|
-
})], 1) : _vm._e()], 2)], 2), _vm._ssrNode(" " + (_vm.ticket_id.cod && _vm.ticket_id.desc ? "<p" + _vm._ssrAttr("title", _vm.ticket_id.desc + " (" + _vm.ticket_id.cod + ")") + _vm._ssrClass("card-chip", [_vm.ticketClassCod]) + " data-v-
|
|
10579
|
-
return _vm._ssrNode("<div class=\"card-anexo\" data-v-
|
|
10559
|
+
})], 1) : _vm._e()], 2)], 2), _vm._ssrNode(" " + (_vm.ticket_id.cod && _vm.ticket_id.desc ? "<p" + _vm._ssrAttr("title", _vm.ticket_id.desc + " (" + _vm.ticket_id.cod + ")") + _vm._ssrClass("card-chip", [_vm.ticketClassCod]) + " data-v-60eaca73>" + _vm._ssrEscape(_vm._s(_vm.ticket_id.desc + " (" + _vm.ticket_id.cod + ")")) + "</p>" : "<!---->") + " <p class=\"card-message\" data-v-60eaca73>" + _vm._s(_vm.mensagemFormatada) + "</p> "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"card-footer\" data-v-60eaca73>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10560
|
+
return _vm._ssrNode("<div class=\"card-anexo\" data-v-60eaca73>", "</div>", [_c('CardAttachment', {
|
|
10580
10561
|
attrs: {
|
|
10581
10562
|
"anexo": anexo,
|
|
10582
10563
|
"dictionary": _vm.dictionary,
|
|
@@ -10591,8 +10572,8 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
10591
10572
|
|
|
10592
10573
|
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
10593
10574
|
if (!inject) return;
|
|
10594
|
-
inject("data-v-
|
|
10595
|
-
source: ".fade-enter-active[data-v-
|
|
10575
|
+
inject("data-v-60eaca73_0", {
|
|
10576
|
+
source: ".fade-enter-active[data-v-60eaca73],.fade-leave-active[data-v-60eaca73]{transition:opacity .2s}.fade-enter[data-v-60eaca73],.fade-leave-to[data-v-60eaca73]{opacity:0}.card-cli[data-v-60eaca73],.card-ope[data-v-60eaca73]{display:flex;width:95%;margin:5px 0;position:relative}.card-cli.msgNova[data-v-60eaca73],.card-ope.msgNova[data-v-60eaca73]{margin-top:30px}.novas-mensagens[data-v-60eaca73]{position:absolute;top:-30px;width:100%;display:flex;justify-content:center;align-items:center;margin:2.5px 0;background-color:lighten(#fff249,15)}.card-cli .card[data-v-60eaca73]{border-left:3px solid #90b823}.card-ope[data-v-60eaca73]{align-self:flex-end;background-color:lighten(#007535,72)}.card-ope .card[data-v-60eaca73]{border-right:3px solid #007535}.card[data-v-60eaca73]{background-color:rgba(255,255,255,.9);overflow:hidden;width:100%;padding:2.5px 5px}.card p[data-v-60eaca73]{word-break:break-all}.card-header[data-v-60eaca73]{width:100%;border-bottom:1px solid #ddd;margin-bottom:5px;display:flex;justify-content:space-between}.card-header svg[data-v-60eaca73]{font-size:1rem}.card-canal[data-v-60eaca73]{flex:1;margin-right:10px}.card-datas[data-v-60eaca73]{display:flex;flex-direction:column;margin-right:10px}.card-data[data-v-60eaca73]{overflow:hidden;display:flex;align-content:center}.card-data span[data-v-60eaca73]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-data svg[data-v-60eaca73]{margin-right:5px;color:#232323}.card-expand[data-v-60eaca73]{display:flex;justify-content:center;align-items:center;margin:2.5px;cursor:pointer;opacity:.8;transition:opacity 150ms}.card-expand[data-v-60eaca73]:hover{opacity:1}.card-footer[data-v-60eaca73]{margin-top:5px;border-top:1px solid #ddd;display:flex;flex-wrap:wrap}.card-chip[data-v-60eaca73]{font-size:.8rem;width:fit-content;border-radius:15px;transition:all 150ms ease-in-out;padding:2.5px 7px;color:#1f69c1;background-color:rgba(207,216,244,.6);margin-bottom:5px}.card-chip[data-v-60eaca73]:hover{background-color:#cfd8f4}.card-chip.orange[data-v-60eaca73]{color:#e14924;background-color:rgba(228,92,58,.15)}.card-chip.orange[data-v-60eaca73]:hover{background-color:rgba(228,92,58,.2)}.card-chip.yellow[data-v-60eaca73]{color:#f4a304;background-color:rgba(252,191,73,.15)}.card-chip.yellow[data-v-60eaca73]:hover{background-color:rgba(252,191,73,.2)}.card-chip.red[data-v-60eaca73]{color:#e74c3c;background-color:rgba(231,76,60,.2)}.card-chip.red[data-v-60eaca73]:hover{background-color:rgba(231,76,60,.25)}.card-anexo[data-v-60eaca73]{width:50px;height:50px;margin-right:5px;display:flex;justify-content:center;align-items:center}.anexo-item[data-v-60eaca73]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.anexo-item .transition-anexo-item[data-v-60eaca73]{max-width:100%;max-height:100%}.anexo-item .req-loader[data-v-60eaca73]{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.anexo-item .transition-anexo-item img[data-v-60eaca73]{max-width:45px;max-height:45px}.anexo-icone[data-v-60eaca73]{opacity:.9;transition:opacity .2s;color:#222;cursor:pointer;display:flex;justify-content:center;align-items:center}.anexo-icone[data-v-60eaca73]:hover{opacity:1}.anexo-icone[data-v-60eaca73]:visited{color:inherit}svg[data-v-60eaca73]{font-size:30px;z-index:1}.anexo-icone.pdf[data-v-60eaca73]{position:relative}.anexo-icone.pdf svg[data-v-60eaca73]{color:#e74c3c}.anexo-icone.pdf[data-v-60eaca73]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.anexo-icone.doc[data-v-60eaca73]{color:#15517f}.anexo-icone.doc[data-v-60eaca73]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.anexo-img[data-v-60eaca73]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img[data-v-60eaca73]:hover{opacity:1}.anexo-img img[data-v-60eaca73]{width:95%}",
|
|
10596
10577
|
map: undefined,
|
|
10597
10578
|
media: undefined
|
|
10598
10579
|
});
|
|
@@ -10600,10 +10581,10 @@ var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
|
10600
10581
|
/* scoped */
|
|
10601
10582
|
|
|
10602
10583
|
|
|
10603
|
-
var __vue_scope_id__$7 = "data-v-
|
|
10584
|
+
var __vue_scope_id__$7 = "data-v-60eaca73";
|
|
10604
10585
|
/* module identifier */
|
|
10605
10586
|
|
|
10606
|
-
var __vue_module_identifier__$7 = "data-v-
|
|
10587
|
+
var __vue_module_identifier__$7 = "data-v-60eaca73";
|
|
10607
10588
|
/* functional template */
|
|
10608
10589
|
|
|
10609
10590
|
var __vue_is_functional_template__$7 = false;
|
|
@@ -11026,11 +11007,16 @@ var __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
|
11026
11007
|
staticRenderFns: __vue_staticRenderFns__$4
|
|
11027
11008
|
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, createInjectorSSR, undefined);
|
|
11028
11009
|
|
|
11029
|
-
var InteratividadeBotoes = __vue_component__$7
|
|
11010
|
+
var InteratividadeBotoes = __vue_component__$7;var linkPrevue_umd_min = createCommonjsModule(function (module, exports) {
|
|
11011
|
+
(function(t,e){module.exports=e();})("undefined"!==typeof self?self:commonjsGlobal,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n});},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"0cfc":function(t,e,r){var n=r("81e7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("4bf9c9d1",n,!0,{sourceMap:!1,shadowMode:!1});},"24fb":function(t,e,r){function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var o=i(n),a=n.sources.map((function(t){return "/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return [r].concat(a).concat([o]).join("\n")}return [r].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return "/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0);}for(var s=0;s<t.length;s++){var d=[].concat(t[s]);n&&i[d[0]]||(r&&(d[2]?d[2]="".concat(r," and ").concat(d[2]):d[2]=r),e.push(d));}},e};},"499e":function(t,e,r){function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],a=o[0],s=o[1],d=o[2],c=o[3],u={id:t+":"+i,css:s,media:d,sourceMap:c};n[a]?n[a].parts.push(u):r.push(n[a]={id:a,parts:[u]});}return r}r.r(e),r.d(e,"default",(function(){return v}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,d=0,c=!1,u=function(){},l=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,r,i){c=r,l=i||{};var a=n(t,e);return h(a),function(e){for(var r=[],i=0;i<a.length;i++){var s=a[i],d=o[s.id];d.refs--,r.push(d);}e?(a=n(t,e),h(a)):a=[];for(i=0;i<r.length;i++){d=r[i];if(0===d.refs){for(var c=0;c<d.parts.length;c++)d.parts[c]();delete o[d.id];}}}}function h(t){for(var e=0;e<t.length;e++){var r=t[e],n=o[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(g(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length);}else {var a=[];for(i=0;i<r.parts.length;i++)a.push(g(r.parts[i]));o[r.id]={id:r.id,refs:1,parts:a};}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,r,n=document.querySelector("style["+f+'~="'+t.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n);}if(p){var i=d++;n=s||(s=m()),e=y.bind(null,n,i,!1),r=y.bind(null,n,i,!0);}else n=m(),e=x.bind(null,n),r=function(){n.parentNode.removeChild(n);};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n);}else r();}}var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function y(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else {var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o);}}function x(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),l.ssrId&&t.setAttribute(f,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else {while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r));}}},"57d8":function(t,e,r){var n=r("0cfc"),i=r.n(n);i.a;},"81e7":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Hind+Siliguri:400,600);"]),e.push([t.i,".wrapper[data-v-b618d680]{overflow:auto;border-radius:7px 7px 7px 7px;background-color:#fff;box-shadow:0 14px 32px 0 rgba(0,0,0,.15)}.card-img[data-v-b618d680]{width:100%}.card-img img[data-v-b618d680]{width:100%;border-radius:7px 7px 0 0}img[data-v-b618d680]{vertical-align:middle;border-style:none}.card-info[data-v-b618d680]{border-radius:0 0 7px 7px;background-color:#fff}.card-text[data-v-b618d680]{width:80%;margin:0 auto;text-align:justify}.card-text h1[data-v-b618d680]{font-size:24px;color:#474747;margin:5px 0 5px 0}.card-text h1[data-v-b618d680],.card-text p[data-v-b618d680]{text-align:center;font-family:Hind Siliguri,sans-serif}.card-text p[data-v-b618d680]{color:#8d8d8d;font-size:15px;overflow:hidden;margin:0}.card-btn[data-v-b618d680]{margin:1em 0 1em 0;position:relative;text-align:center}.card-btn a[data-v-b618d680]{border-radius:2em;font-family:Hind Siliguri,sans-serif;font-size:14px;letter-spacing:.1em;color:#fff;background-color:#ffa9be;padding:10px 20px 10px 20px;text-align:center;display:inline-block;text-decoration:none!important;transition:all .2s ease-in-out}.card-btn a[data-v-b618d680]:hover{background-color:#ff8fab}.spinner[data-v-b618d680]{margin-top:40%;margin-left:45%;height:28px;width:28px;-webkit-animation:rotate-data-v-b618d680 .8s linear infinite;animation:rotate-data-v-b618d680 .8s linear infinite;border:5px solid #868686;border-right-color:transparent;border-radius:50%}@-webkit-keyframes rotate-data-v-b618d680{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rotate-data-v-b618d680{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]),t.exports=e;},8875:function(t,e,r){var n,i,o;(function(r,a){i=[],n=a,o="function"===typeof n?n.apply(e,i):n,void 0===o||(t.exports=o);})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),d=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===u&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(n,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===d)return l[f];if(d===u&&l[f].innerHTML&&l[f].innerHTML.trim()===i)return l[f]}return null}}return t}));},fb15:function(t,e,r){if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1]);}var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[!t.response&&t.validUrl?r("div",{style:{width:t.cardWidth},attrs:{id:"loader-container"}},[t._t("loading",[r("div",{staticClass:"spinner"})])],2):t._e(),t.response?r("div",[t._t("default",[r("div",{staticClass:"wrapper",style:{width:t.cardWidth}},[r("div",{staticClass:"card-img"},[r("img",{attrs:{src:t.response.image}})]),r("div",{staticClass:"card-info"},[r("div",{staticClass:"card-text"},[r("h1",[t._v(t._s(t.response.title))]),r("p",[t._v(t._s(t.response.description))])]),r("div",{staticClass:"card-btn"},[t.showButton?r("a",{attrs:{href:"javascript:;"},on:{click:t.viewMore}},[t._v("View More")]):t._e()])])])],{img:t.response.image,title:t.response.title,description:t.response.description,url:t.url})],2):t._e()])},s=[],d={name:"link-prevue",props:{url:{type:String,default:""},cardWidth:{type:String,default:"400px"},onButtonClick:{type:Function,default:void 0},showButton:{type:Boolean,default:!0},apiUrl:{type:String,default:"https://link-prevue-api-v2.herokuapp.com/preview/"}},watch:{url:function(){this.response=null,this.getLinkPreview();}},created:function(){this.getLinkPreview();},data:function(){return {response:null,validUrl:!1}},methods:{viewMore:function(){if(void 0!==this.onButtonClick)this.onButtonClick(this.response);else {var t=window.open(this.url,"_blank");t.focus();}},isValidUrl:function(t){var e=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/;return this.validUrl=e.test(t),this.validUrl},getLinkPreview:function(){var t=this;this.isValidUrl(this.url)&&this.httpRequest((function(e){t.response=JSON.parse(e);}),(function(){t.response=null,t.validUrl=!1;}));},httpRequest:function(t,e){var r=new XMLHttpRequest,n="url="+this.url;r.open("POST",this.apiUrl,!0),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&t(r.responseText),4===r.readyState&&500===r.status&&e();},r.send(n);}}},c=d;r("57d8");function u(t,e,r,n,i,o,a,s){var d,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a);},c._ssrRegister=d):i&&(d=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot);}:i),d)if(c.functional){c._injectStyles=d;var u=c.render;c.render=function(t,e){return d.call(e),u(t,e)};}else {var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,d):[d];}return {exports:t,options:c}}var l=u(c,a,s,!1,null,"b618d680",null),f=l.exports,p=f;e["default"]=p;}})}));
|
|
11012
|
+
|
|
11013
|
+
});//
|
|
11014
|
+
|
|
11030
11015
|
var script$3 = {
|
|
11031
11016
|
components: {
|
|
11032
11017
|
AnexoMensagem: AnexoMensagem,
|
|
11033
|
-
InteratividadeBotoes: InteratividadeBotoes
|
|
11018
|
+
InteratividadeBotoes: InteratividadeBotoes,
|
|
11019
|
+
LinkPrevue: linkPrevue_umd_min
|
|
11034
11020
|
},
|
|
11035
11021
|
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"],
|
|
11036
11022
|
data: function data() {
|
|
@@ -11052,7 +11038,8 @@ var script$3 = {
|
|
|
11052
11038
|
rotateControl: false,
|
|
11053
11039
|
fullscreenControl: false,
|
|
11054
11040
|
disableDefaultUI: false
|
|
11055
|
-
}
|
|
11041
|
+
},
|
|
11042
|
+
linkPreview: ""
|
|
11056
11043
|
};
|
|
11057
11044
|
},
|
|
11058
11045
|
computed: {
|
|
@@ -11117,7 +11104,20 @@ var script$3 = {
|
|
|
11117
11104
|
this.urlSticker = this.getUrlSticker();
|
|
11118
11105
|
this.urlFileName = this.getUrlFileName();
|
|
11119
11106
|
this.message = this.removeUrlStickerByString(this.urlSticker);
|
|
11120
|
-
}
|
|
11107
|
+
} // if(this.validadeIfExistsUrl()){
|
|
11108
|
+
// const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
|
|
11109
|
+
// let link = [];
|
|
11110
|
+
// link = this.message.match(linkRegex);
|
|
11111
|
+
// if(!link || link.length == 0){
|
|
11112
|
+
// return;
|
|
11113
|
+
// }
|
|
11114
|
+
// getLinkPreview(link[0]).then((data) => {
|
|
11115
|
+
// if(data.images && data.images.length > 0){
|
|
11116
|
+
// this.urlSticker = data.images[0];
|
|
11117
|
+
// }
|
|
11118
|
+
// });
|
|
11119
|
+
// }
|
|
11120
|
+
|
|
11121
11121
|
},
|
|
11122
11122
|
getUrlFileName: function getUrlFileName() {
|
|
11123
11123
|
var urlRegex = /(?<=\/)[^\/\?#]+(?=[^\/]*$)/;
|
|
@@ -11133,6 +11133,12 @@ var script$3 = {
|
|
|
11133
11133
|
var url = this.message.match(urlRegex)[1];
|
|
11134
11134
|
return url;
|
|
11135
11135
|
},
|
|
11136
|
+
// validadeIfExistsUrl(){
|
|
11137
|
+
// if(this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false){
|
|
11138
|
+
// return true;
|
|
11139
|
+
// }
|
|
11140
|
+
// return false;
|
|
11141
|
+
// },
|
|
11136
11142
|
validadeIfExistsSticker: function validadeIfExistsSticker() {
|
|
11137
11143
|
if (this.message && this.message.indexOf("KSTICKERK https://smarters") === 0) {
|
|
11138
11144
|
return true;
|
|
@@ -11181,9 +11187,18 @@ var script$3 = {
|
|
|
11181
11187
|
},
|
|
11182
11188
|
formatMsg: function formatMsg(msg) {
|
|
11183
11189
|
var regex = /(\n| )/g;
|
|
11184
|
-
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
11190
|
+
if (regex.test(msg)) msg = msg.replace(regex, "<br>"); // if(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(msg) && this.link) this.setLinkPreview(msg)
|
|
11191
|
+
|
|
11185
11192
|
return msg;
|
|
11186
|
-
}
|
|
11193
|
+
} // setLinkPreview(link) {
|
|
11194
|
+
// try {
|
|
11195
|
+
// this.linkPreview = link
|
|
11196
|
+
// }catch(e) {
|
|
11197
|
+
// console.error("Erro ao receber a previa do link")
|
|
11198
|
+
// console.error(e)
|
|
11199
|
+
// }
|
|
11200
|
+
// }
|
|
11201
|
+
|
|
11187
11202
|
}
|
|
11188
11203
|
};/* script */
|
|
11189
11204
|
var __vue_script__$3 = script$3;
|
|
@@ -11417,7 +11432,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11417
11432
|
|
|
11418
11433
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11419
11434
|
if (!inject) return;
|
|
11420
|
-
inject("data-v-
|
|
11435
|
+
inject("data-v-05ccf366_0", {
|
|
11421
11436
|
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros .check{display:none}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
11422
11437
|
map: undefined,
|
|
11423
11438
|
media: undefined
|
|
@@ -11429,7 +11444,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11429
11444
|
var __vue_scope_id__$3 = undefined;
|
|
11430
11445
|
/* module identifier */
|
|
11431
11446
|
|
|
11432
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11447
|
+
var __vue_module_identifier__$3 = "data-v-05ccf366";
|
|
11433
11448
|
/* functional template */
|
|
11434
11449
|
|
|
11435
11450
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intergrall-plugins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.172",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/vue-intergrall-plugins.ssr.js",
|
|
6
6
|
"browser": "dist/vue-intergrall-plugins.esm.js",
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
"node": ">=12"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"axios": "^0.26.0"
|
|
63
|
+
"axios": "^0.26.0",
|
|
64
|
+
"kind-of": "^6.0.3",
|
|
65
|
+
"link-preview-js": "^2.1.13",
|
|
66
|
+
"link-prevue": "^1.2.0"
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -50,13 +50,6 @@
|
|
|
50
50
|
>
|
|
51
51
|
<div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
|
|
52
52
|
</v-select>
|
|
53
|
-
<span v-if="key_3 && messageType == 1" class="text-footer--btn-select-03" :class="{'loading-message' : loadingReq}" :title="dictionary.title_btn_preencher_msg_formatada" @click="insertFormattedMessage(key_3)">
|
|
54
|
-
<VueLoader v-if="loadingReq" />
|
|
55
|
-
<fa-icon v-else :icon="['fas', 'level-up-alt']" />
|
|
56
|
-
</span>
|
|
57
|
-
<span v-else-if="key_3 && messageType == 2" class="text-footer--btn-select-03" :title="dictionary.title_btn_abrir_msg_tipo_2" @click="openFormattedMsgType2(key_3)">
|
|
58
|
-
<fa-icon :icon="['fas', 'file-alt']" />
|
|
59
|
-
</span>
|
|
60
53
|
</div>
|
|
61
54
|
<div class="loader-select" v-else-if="key_2 && loadingReq">
|
|
62
55
|
<VueLoader />
|
|
@@ -209,7 +202,10 @@ export default {
|
|
|
209
202
|
break
|
|
210
203
|
case 4:
|
|
211
204
|
const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${messageData}` : messageData}`
|
|
212
|
-
|
|
205
|
+
this.$emit("add-standard-message", finalMessage)
|
|
206
|
+
this.$parent.focusTextarea()
|
|
207
|
+
// return this.closeStandardMessages()
|
|
208
|
+
break
|
|
213
209
|
default:
|
|
214
210
|
console.error("Error in showFormattedMessage: selectionIndex not found")
|
|
215
211
|
break
|
|
@@ -219,6 +215,9 @@ export default {
|
|
|
219
215
|
console.error("Error in showFormattedMessage: ", e)
|
|
220
216
|
}
|
|
221
217
|
},
|
|
218
|
+
closeStandardMessages() {
|
|
219
|
+
this.$emit("close-standard-messages")
|
|
220
|
+
},
|
|
222
221
|
openMsg() {
|
|
223
222
|
try {
|
|
224
223
|
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) : this.openFormattedMsgType2(this.key_3)
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
:message="message"
|
|
88
88
|
:messageType="messageType"
|
|
89
89
|
|
|
90
|
+
@close-standard-messages="closeStandardMessages"
|
|
90
91
|
@open-blocker-standard-message="openBlockerStandardMessage"
|
|
91
92
|
@close-blocker-standard-message="closeBlockerStandardMessage"
|
|
92
93
|
@set-message-type="setMessageType"
|
|
@@ -472,6 +473,9 @@ export default {
|
|
|
472
473
|
this.message = message
|
|
473
474
|
this.sendFinalMessage()
|
|
474
475
|
},
|
|
476
|
+
closeStandardMessages() {
|
|
477
|
+
this.showStandardMessages = false
|
|
478
|
+
}
|
|
475
479
|
},
|
|
476
480
|
destroyed() {
|
|
477
481
|
// this.$root.$off("drop-file")
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
</li>
|
|
25
25
|
</ul>
|
|
26
26
|
</div>
|
|
27
|
+
<!-- <LinkPrevue v-if="linkPreview && link" :url="linkPreview" /> -->
|
|
27
28
|
<p v-html="formatMsg(message)"></p>
|
|
28
29
|
<InteratividadeBotoes
|
|
29
30
|
v-if="interatividade"
|
|
@@ -64,9 +65,11 @@
|
|
|
64
65
|
import AnexoMensagem from "./AnexoMensagem"
|
|
65
66
|
import InteratividadeBotoes from "./InteratividadeBotoes"
|
|
66
67
|
import { formataTimezoneData } from "../../services/textFormatting"
|
|
68
|
+
import LinkPrevue from "link-prevue"
|
|
69
|
+
// import { getLinkPreview } from "link-preview-js";
|
|
67
70
|
|
|
68
71
|
export default {
|
|
69
|
-
components: { AnexoMensagem, InteratividadeBotoes },
|
|
72
|
+
components: { AnexoMensagem, InteratividadeBotoes, LinkPrevue },
|
|
70
73
|
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"],
|
|
71
74
|
data(){
|
|
72
75
|
return{
|
|
@@ -87,7 +90,8 @@ export default {
|
|
|
87
90
|
rotateControl: false,
|
|
88
91
|
fullscreenControl: false,
|
|
89
92
|
disableDefaultUI: false
|
|
90
|
-
}
|
|
93
|
+
},
|
|
94
|
+
linkPreview: ""
|
|
91
95
|
}
|
|
92
96
|
},
|
|
93
97
|
computed: {
|
|
@@ -150,6 +154,19 @@ export default {
|
|
|
150
154
|
this.urlFileName = this.getUrlFileName()
|
|
151
155
|
this.message = this.removeUrlStickerByString(this.urlSticker)
|
|
152
156
|
}
|
|
157
|
+
// if(this.validadeIfExistsUrl()){
|
|
158
|
+
// const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
|
|
159
|
+
// let link = [];
|
|
160
|
+
// link = this.message.match(linkRegex);
|
|
161
|
+
// if(!link || link.length == 0){
|
|
162
|
+
// return;
|
|
163
|
+
// }
|
|
164
|
+
// getLinkPreview(link[0]).then((data) => {
|
|
165
|
+
// if(data.images && data.images.length > 0){
|
|
166
|
+
// this.urlSticker = data.images[0];
|
|
167
|
+
// }
|
|
168
|
+
// });
|
|
169
|
+
// }
|
|
153
170
|
},
|
|
154
171
|
getUrlFileName(){
|
|
155
172
|
let urlRegex = /(?<=\/)[^\/\?#]+(?=[^\/]*$)/;
|
|
@@ -165,6 +182,12 @@ export default {
|
|
|
165
182
|
let url = this.message.match(urlRegex)[1];
|
|
166
183
|
return url;
|
|
167
184
|
},
|
|
185
|
+
// validadeIfExistsUrl(){
|
|
186
|
+
// if(this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false){
|
|
187
|
+
// return true;
|
|
188
|
+
// }
|
|
189
|
+
// return false;
|
|
190
|
+
// },
|
|
168
191
|
validadeIfExistsSticker(){
|
|
169
192
|
if(this.message && this.message.indexOf("KSTICKERK https://smarters") === 0){
|
|
170
193
|
return true;
|
|
@@ -208,8 +231,17 @@ export default {
|
|
|
208
231
|
formatMsg(msg) {
|
|
209
232
|
const regex = /(\n| )/g
|
|
210
233
|
if(regex.test(msg)) msg = msg.replace(regex, "<br>")
|
|
234
|
+
// if(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(msg) && this.link) this.setLinkPreview(msg)
|
|
211
235
|
return msg
|
|
212
|
-
}
|
|
236
|
+
},
|
|
237
|
+
// setLinkPreview(link) {
|
|
238
|
+
// try {
|
|
239
|
+
// this.linkPreview = link
|
|
240
|
+
// }catch(e) {
|
|
241
|
+
// console.error("Erro ao receber a previa do link")
|
|
242
|
+
// console.error(e)
|
|
243
|
+
// }
|
|
244
|
+
// }
|
|
213
245
|
}
|
|
214
246
|
}
|
|
215
247
|
</script>
|