vue-intergrall-plugins 0.0.167 → 0.0.170
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 +75 -57
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +77 -63
- package/package.json +3 -2
- package/src/lib-components/Chat/MultipleFilePreview.vue +1 -1
- package/src/lib-components/Chat/StandardMessages.vue +21 -25
- package/src/lib-components/Chat/TextFooter.vue +13 -9
- package/src/lib-components/Messages/ChatMessages.vue +15 -3
|
@@ -3721,7 +3721,7 @@ var __vue_render__$k = function () {
|
|
|
3721
3721
|
staticClass: "file-title red"
|
|
3722
3722
|
}, [_vm._v("\n " + _vm._s(_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : "Arquivo invalido") + "\n ")]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
3723
3723
|
staticClass: "small-img"
|
|
3724
|
-
}, [singleFile.imgOrDoc === 'img' ? _c('span', {
|
|
3724
|
+
}, [singleFile.imgOrDoc === 'img' && !_vm.isPdf(singleFile.type) ? _c('span', {
|
|
3725
3725
|
staticClass: "img-container"
|
|
3726
3726
|
}, [_c('img', {
|
|
3727
3727
|
attrs: {
|
|
@@ -3763,7 +3763,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
3763
3763
|
|
|
3764
3764
|
const __vue_inject_styles__$k = function (inject) {
|
|
3765
3765
|
if (!inject) return;
|
|
3766
|
-
inject("data-v-
|
|
3766
|
+
inject("data-v-22ab2ae5_0", {
|
|
3767
3767
|
source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff;min-width:1rem;min-height:1rem;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
|
|
3768
3768
|
map: undefined,
|
|
3769
3769
|
media: undefined
|
|
@@ -5387,6 +5387,8 @@ var xhr = function xhrAdapter(config) {
|
|
|
5387
5387
|
});
|
|
5388
5388
|
};
|
|
5389
5389
|
|
|
5390
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5391
|
+
|
|
5390
5392
|
function createCommonjsModule(fn, basedir, module) {
|
|
5391
5393
|
return module = {
|
|
5392
5394
|
path: basedir,
|
|
@@ -8269,7 +8271,7 @@ axios_1.default = _default;
|
|
|
8269
8271
|
var axios = axios_1;
|
|
8270
8272
|
|
|
8271
8273
|
vue.prototype.$httpRequest = axios;
|
|
8272
|
-
const baseURL = window.location.hostname == 'localhost' ? `https://linux07/im/atdHumano/middleware/
|
|
8274
|
+
const baseURL = window.location.hostname == 'localhost' ? `https://linux07/im/atdHumano/middleware/smartchannel_api.php` : `https://${window.location.hostname}/im/atdHumano/middleware/smartchannel_api.php`;
|
|
8273
8275
|
const dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
|
|
8274
8276
|
const standardMessages = {
|
|
8275
8277
|
methods: {
|
|
@@ -8277,7 +8279,7 @@ const standardMessages = {
|
|
|
8277
8279
|
try {
|
|
8278
8280
|
return this.$httpRequest({
|
|
8279
8281
|
method: 'get',
|
|
8280
|
-
url: `${baseURL}/
|
|
8282
|
+
url: `${baseURL}/messages/${type}?token_cliente=${token}${dev}` // headers: {
|
|
8281
8283
|
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
|
|
8282
8284
|
// }
|
|
8283
8285
|
|
|
@@ -8288,11 +8290,14 @@ const standardMessages = {
|
|
|
8288
8290
|
const {
|
|
8289
8291
|
tipo,
|
|
8290
8292
|
nivel,
|
|
8293
|
+
conteudo,
|
|
8291
8294
|
msg_ret,
|
|
8292
8295
|
st_ret
|
|
8293
8296
|
} = data;
|
|
8294
8297
|
if (tipo) this.$emit('set-message-type', tipo);
|
|
8295
|
-
return st_ret === 'OK' ? nivel : st_ret === 'AVISO' ?
|
|
8298
|
+
return st_ret === 'OK' ? conteudo ? conteudo : nivel : st_ret === 'AVISO' ? {
|
|
8299
|
+
msg_ret
|
|
8300
|
+
} : false;
|
|
8296
8301
|
}).catch(err => console.error('Erro na requisicao para o servidor', err));
|
|
8297
8302
|
} catch (e) {
|
|
8298
8303
|
console.error("Axios nao identificado");
|
|
@@ -8391,8 +8396,8 @@ var script$g = {
|
|
|
8391
8396
|
this.loadingReq = true;
|
|
8392
8397
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8393
8398
|
this.loadingReq = false;
|
|
8394
|
-
if (data
|
|
8395
|
-
msg: data
|
|
8399
|
+
if (data.msg_ret) return this.$toasted.global.emConstrucao({
|
|
8400
|
+
msg: data.msg_ret
|
|
8396
8401
|
});
|
|
8397
8402
|
if (data) return this.showFormattedMessage(data, selectionIndex);
|
|
8398
8403
|
this.$toasted.global.defaultError();
|
|
@@ -8410,7 +8415,7 @@ var script$g = {
|
|
|
8410
8415
|
try {
|
|
8411
8416
|
let success = false;
|
|
8412
8417
|
if (Array.isArray(messageData)) success = true;
|
|
8413
|
-
if (!success) this.$toasted.global.emConstrucao({
|
|
8418
|
+
if (!success && selectionIndex != 4) this.$toasted.global.emConstrucao({
|
|
8414
8419
|
msg: messageData ? messageData.msg : "Nao foi possível obter mensagens"
|
|
8415
8420
|
});
|
|
8416
8421
|
|
|
@@ -8440,24 +8445,25 @@ var script$g = {
|
|
|
8440
8445
|
});
|
|
8441
8446
|
this.$emit("close-blocker-standard-message");
|
|
8442
8447
|
} else {
|
|
8443
|
-
if (
|
|
8444
|
-
this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada);
|
|
8445
|
-
this.key_3 = this.formatted_messages_3[0];
|
|
8446
|
-
this.openFormattedMsgType2(this.key_3);
|
|
8447
|
-
} else {
|
|
8448
|
+
if (messageData.length) {
|
|
8448
8449
|
this.formatted_messages_3 = messageData;
|
|
8449
8450
|
|
|
8450
|
-
if (this.formatted_messages_3.length == 1) {
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
this.openFormattedMsgType2(this.key_3);
|
|
8454
|
-
}
|
|
8451
|
+
if (this.formatted_messages_3.length == 1 && this.formatted_messages_3[0].cod) {
|
|
8452
|
+
this.key_3 = this.formatted_messages_3[0].cod;
|
|
8453
|
+
this.openMsg();
|
|
8455
8454
|
}
|
|
8456
8455
|
}
|
|
8457
8456
|
}
|
|
8458
8457
|
|
|
8459
8458
|
break;
|
|
8460
8459
|
|
|
8460
|
+
case 4:
|
|
8461
|
+
const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${messageData}` : messageData}`;
|
|
8462
|
+
this.$emit("add-standard-message", finalMessage);
|
|
8463
|
+
this.$parent.focusTextarea(); // return this.closeStandardMessages()
|
|
8464
|
+
|
|
8465
|
+
break;
|
|
8466
|
+
|
|
8461
8467
|
default:
|
|
8462
8468
|
console.error("Error in showFormattedMessage: selectionIndex not found");
|
|
8463
8469
|
break;
|
|
@@ -8467,10 +8473,13 @@ var script$g = {
|
|
|
8467
8473
|
}
|
|
8468
8474
|
},
|
|
8469
8475
|
|
|
8476
|
+
closeStandardMessages() {
|
|
8477
|
+
this.$emit("close-standard-messages");
|
|
8478
|
+
},
|
|
8479
|
+
|
|
8470
8480
|
openMsg() {
|
|
8471
8481
|
try {
|
|
8472
|
-
|
|
8473
|
-
this.openFormattedMsgType2(this.key_3);
|
|
8482
|
+
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) : this.openFormattedMsgType2(this.key_3);
|
|
8474
8483
|
} catch (e) {
|
|
8475
8484
|
console.error("Error in openMsg: ", e);
|
|
8476
8485
|
}
|
|
@@ -8494,9 +8503,8 @@ var script$g = {
|
|
|
8494
8503
|
try {
|
|
8495
8504
|
if (!this.key_3) return this.$toasted.global.defaultError({
|
|
8496
8505
|
msg: 'Selecione uma mensagem'
|
|
8497
|
-
});
|
|
8498
|
-
|
|
8499
|
-
// return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
|
|
8506
|
+
});
|
|
8507
|
+
this.receiveValueFormattedMessage(`T/${this.key_2}/${this.key_3}`, 4);
|
|
8500
8508
|
} catch (e) {
|
|
8501
8509
|
console.error("Erro ao inserir mensagem formatada: ", e);
|
|
8502
8510
|
}
|
|
@@ -8595,6 +8603,9 @@ var __vue_render__$g = function () {
|
|
|
8595
8603
|
"appendToBody": "",
|
|
8596
8604
|
"calculatePosition": _vm.calculateSelectPosition,
|
|
8597
8605
|
"options": _vm.formatted_messages_3,
|
|
8606
|
+
"reduce": function (formatted_messages_3) {
|
|
8607
|
+
return formatted_messages_3.cod;
|
|
8608
|
+
},
|
|
8598
8609
|
"label": "value",
|
|
8599
8610
|
"clearable": false
|
|
8600
8611
|
},
|
|
@@ -8615,21 +8626,7 @@ var __vue_render__$g = function () {
|
|
|
8615
8626
|
"slot": "no-options"
|
|
8616
8627
|
},
|
|
8617
8628
|
slot: "no-options"
|
|
8618
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm.
|
|
8619
|
-
staticClass: "text-footer--btn-select-03",
|
|
8620
|
-
attrs: {
|
|
8621
|
-
"title": _vm.dictionary.title_btn_abrir_msg_tipo_2
|
|
8622
|
-
},
|
|
8623
|
-
on: {
|
|
8624
|
-
"click": function ($event) {
|
|
8625
|
-
return _vm.openFormattedMsgType2(_vm.key_3);
|
|
8626
|
-
}
|
|
8627
|
-
}
|
|
8628
|
-
}, [_c('fa-icon', {
|
|
8629
|
-
attrs: {
|
|
8630
|
-
"icon": ['fas', 'file-alt']
|
|
8631
|
-
}
|
|
8632
|
-
})], 1)] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8629
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8633
8630
|
staticClass: "loader-select"
|
|
8634
8631
|
}, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
|
|
8635
8632
|
};
|
|
@@ -8639,8 +8636,8 @@ var __vue_staticRenderFns__$g = [];
|
|
|
8639
8636
|
|
|
8640
8637
|
const __vue_inject_styles__$g = function (inject) {
|
|
8641
8638
|
if (!inject) return;
|
|
8642
|
-
inject("data-v-
|
|
8643
|
-
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}",
|
|
8639
|
+
inject("data-v-d5920a7e_0", {
|
|
8640
|
+
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
8644
8641
|
map: undefined,
|
|
8645
8642
|
media: undefined
|
|
8646
8643
|
});
|
|
@@ -8809,23 +8806,23 @@ var script$f = {
|
|
|
8809
8806
|
|
|
8810
8807
|
methods: {
|
|
8811
8808
|
listenerPostMessage(event) {
|
|
8809
|
+
const baseURL = window.location.hostname == 'localhost' ? `https://linux07` : `https://${window.location.hostname}`;
|
|
8812
8810
|
if (!this.formattedMessageSettings.hasStandardMessages) return;
|
|
8813
8811
|
if (event.data.gerenciador || event.data.abrirFishing || event.data.multiplos_contatos || event.data.inserir_cliente_omni || event.data.multiple_contatos) return;
|
|
8814
8812
|
|
|
8815
|
-
if (event.
|
|
8816
|
-
if (this.showStandardMessages) {
|
|
8813
|
+
if (event.origin == baseURL) {
|
|
8814
|
+
if (event.data == '' && this.showStandardMessages) {
|
|
8815
|
+
this.closeBlockerStandardMessage();
|
|
8816
|
+
this.toggleStandardMessages();
|
|
8817
|
+
this.$toasted.global.emConstrucao({
|
|
8818
|
+
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8819
|
+
});
|
|
8820
|
+
} else if (typeof event.data === "string" && this.showStandardMessages) {
|
|
8821
|
+
this.message = event.data;
|
|
8822
|
+
this.focusTextarea();
|
|
8817
8823
|
this.closeBlockerStandardMessage();
|
|
8818
8824
|
this.toggleStandardMessages();
|
|
8819
8825
|
}
|
|
8820
|
-
|
|
8821
|
-
this.$toasted.global.emConstrucao({
|
|
8822
|
-
msg: this.dicionario.msg_erro_sem_msg_formatada
|
|
8823
|
-
});
|
|
8824
|
-
} else if (typeof event.data === "string") {
|
|
8825
|
-
this.message = event.data;
|
|
8826
|
-
this.focusTextarea();
|
|
8827
|
-
this.closeBlockerStandardMessage();
|
|
8828
|
-
this.toggleStandardMessages();
|
|
8829
8826
|
}
|
|
8830
8827
|
},
|
|
8831
8828
|
|
|
@@ -9128,6 +9125,10 @@ var script$f = {
|
|
|
9128
9125
|
addStandardMessage(message) {
|
|
9129
9126
|
this.message = message;
|
|
9130
9127
|
this.sendFinalMessage();
|
|
9128
|
+
},
|
|
9129
|
+
|
|
9130
|
+
closeStandardMessages() {
|
|
9131
|
+
this.showStandardMessages = false;
|
|
9131
9132
|
}
|
|
9132
9133
|
|
|
9133
9134
|
},
|
|
@@ -9378,6 +9379,7 @@ var __vue_render__$f = function () {
|
|
|
9378
9379
|
"messageType": _vm.messageType
|
|
9379
9380
|
},
|
|
9380
9381
|
on: {
|
|
9382
|
+
"close-standard-messages": _vm.closeStandardMessages,
|
|
9381
9383
|
"open-blocker-standard-message": _vm.openBlockerStandardMessage,
|
|
9382
9384
|
"close-blocker-standard-message": _vm.closeBlockerStandardMessage,
|
|
9383
9385
|
"set-message-type": _vm.setMessageType,
|
|
@@ -9392,7 +9394,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
9392
9394
|
|
|
9393
9395
|
const __vue_inject_styles__$f = function (inject) {
|
|
9394
9396
|
if (!inject) return;
|
|
9395
|
-
inject("data-v-
|
|
9397
|
+
inject("data-v-bb390258_0", {
|
|
9396
9398
|
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}",
|
|
9397
9399
|
map: undefined,
|
|
9398
9400
|
media: undefined
|
|
@@ -12043,11 +12045,17 @@ const __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
|
12043
12045
|
|
|
12044
12046
|
var InteratividadeBotoes = __vue_component__$7;
|
|
12045
12047
|
|
|
12048
|
+
var linkPrevue_umd_min = createCommonjsModule(function (module, exports) {
|
|
12049
|
+
(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;}})}));
|
|
12050
|
+
|
|
12051
|
+
});
|
|
12052
|
+
|
|
12046
12053
|
//
|
|
12047
12054
|
var script$3 = {
|
|
12048
12055
|
components: {
|
|
12049
12056
|
AnexoMensagem,
|
|
12050
|
-
InteratividadeBotoes
|
|
12057
|
+
InteratividadeBotoes,
|
|
12058
|
+
LinkPrevue: linkPrevue_umd_min
|
|
12051
12059
|
},
|
|
12052
12060
|
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"],
|
|
12053
12061
|
|
|
@@ -12070,7 +12078,8 @@ var script$3 = {
|
|
|
12070
12078
|
rotateControl: false,
|
|
12071
12079
|
fullscreenControl: false,
|
|
12072
12080
|
disableDefaultUI: false
|
|
12073
|
-
}
|
|
12081
|
+
},
|
|
12082
|
+
linkPreview: ""
|
|
12074
12083
|
};
|
|
12075
12084
|
},
|
|
12076
12085
|
|
|
@@ -12218,9 +12227,18 @@ var script$3 = {
|
|
|
12218
12227
|
|
|
12219
12228
|
formatMsg(msg) {
|
|
12220
12229
|
const regex = /(\n| )/g;
|
|
12221
|
-
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
12230
|
+
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)
|
|
12231
|
+
|
|
12222
12232
|
return msg;
|
|
12223
|
-
}
|
|
12233
|
+
} // setLinkPreview(link) {
|
|
12234
|
+
// try {
|
|
12235
|
+
// this.linkPreview = link
|
|
12236
|
+
// }catch(e) {
|
|
12237
|
+
// console.error("Erro ao receber a previa do link")
|
|
12238
|
+
// console.error(e)
|
|
12239
|
+
// }
|
|
12240
|
+
// }
|
|
12241
|
+
|
|
12224
12242
|
|
|
12225
12243
|
}
|
|
12226
12244
|
};
|
|
@@ -12500,7 +12518,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
12500
12518
|
|
|
12501
12519
|
const __vue_inject_styles__$3 = function (inject) {
|
|
12502
12520
|
if (!inject) return;
|
|
12503
|
-
inject("data-v-
|
|
12521
|
+
inject("data-v-7decfe9c_0", {
|
|
12504
12522
|
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}",
|
|
12505
12523
|
map: undefined,
|
|
12506
12524
|
media: undefined
|