vue-intergrall-plugins 1.1.37 → 1.1.39
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 +46 -32
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +83 -70
- package/package.json +1 -1
- package/src/lib-components/Email/EmailItem.vue +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +1 -1
- package/src/lib-components/Messages/InteratividadeBotoes.vue +0 -2
- package/src/lib-components/Messages/InteratividadeContatoItem.vue +37 -22
|
@@ -8735,8 +8735,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
8735
8735
|
/* style */
|
|
8736
8736
|
var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
8737
8737
|
if (!inject) return;
|
|
8738
|
-
inject("data-v-
|
|
8739
|
-
source: ".interatividade-btn{
|
|
8738
|
+
inject("data-v-099531c2_0", {
|
|
8739
|
+
source: ".interatividade-btn{display:flex;justify-content:center;align-items:center;background-color:#fff;color:#111b21;padding:10px 12px;border-radius:5px;margin-bottom:10px}.interatividade-link{color:#0c5c8f!important;text-decoration:none;display:flex;align-items:center;justify-content:center;width:100%;gap:5px}.interatividade-btn:nth-child(1){margin-top:10px}.interatividade-titulo{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo{font-weight:700;font-size:19.2px;margin-bottom:10px}.interatividade-lista-rodape{color:#818181;margin-top:5px}.interatividade-lista-link{text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link:hover{color:#00628f}",
|
|
8740
8740
|
map: undefined,
|
|
8741
8741
|
media: undefined
|
|
8742
8742
|
});
|
|
@@ -8744,7 +8744,7 @@ var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
|
8744
8744
|
/* scoped */
|
|
8745
8745
|
var __vue_scope_id__$b = undefined;
|
|
8746
8746
|
/* module identifier */
|
|
8747
|
-
var __vue_module_identifier__$b = "data-v-
|
|
8747
|
+
var __vue_module_identifier__$b = "data-v-099531c2";
|
|
8748
8748
|
/* functional template */
|
|
8749
8749
|
var __vue_is_functional_template__$b = false;
|
|
8750
8750
|
/* style inject shadow dom */
|
|
@@ -8851,29 +8851,39 @@ var script$a = {
|
|
|
8851
8851
|
},
|
|
8852
8852
|
methods: {
|
|
8853
8853
|
getInitials: function getInitials(name) {
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8854
|
+
try {
|
|
8855
|
+
if (!name) return '';
|
|
8856
|
+
var initials = '';
|
|
8857
|
+
if (name.first_name) {
|
|
8858
|
+
initials = name.first_name.charAt(0);
|
|
8859
|
+
}
|
|
8860
|
+
if (name.last_name) {
|
|
8861
|
+
return initials + name.last_name.charAt(0);
|
|
8862
|
+
}
|
|
8863
|
+
if (!initials && name.formatted_name) {
|
|
8864
|
+
var parts = name.formatted_name.split(' ');
|
|
8865
|
+
initials = parts.map(function (part) {
|
|
8866
|
+
return part.charAt(0);
|
|
8867
|
+
}).join('');
|
|
8868
|
+
}
|
|
8869
|
+
return initials;
|
|
8870
|
+
} catch (err) {
|
|
8871
|
+
console.error('Error getting initials:', err);
|
|
8872
|
+
return '';
|
|
8867
8873
|
}
|
|
8868
|
-
return initials;
|
|
8869
8874
|
},
|
|
8870
8875
|
formatBirthday: function formatBirthday(birthday) {
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8876
|
+
try {
|
|
8877
|
+
if (!birthday) return '';
|
|
8878
|
+
var values = birthday.split('-');
|
|
8879
|
+
var month = values[values.length - 2];
|
|
8880
|
+
var day = values[values.length - 1];
|
|
8881
|
+
var months = ['janeiro', 'fevereiro', "mar".concat(this.dictionary.c_dil, "o"), 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'];
|
|
8882
|
+
return "".concat(parseInt(day), " de ").concat(months[parseInt(month) - 1]);
|
|
8883
|
+
} catch (err) {
|
|
8884
|
+
console.error('Error formatting birthday:', err);
|
|
8885
|
+
return '';
|
|
8886
|
+
}
|
|
8877
8887
|
},
|
|
8878
8888
|
emitData: function emitData(contact, type) {
|
|
8879
8889
|
this.$emit('contact-click', {
|
|
@@ -8883,9 +8893,13 @@ var script$a = {
|
|
|
8883
8893
|
});
|
|
8884
8894
|
},
|
|
8885
8895
|
verifyHasInfos: function verifyHasInfos() {
|
|
8896
|
+
var _this = this;
|
|
8886
8897
|
var keysToInclude = ['addresses', 'urls', 'birthday'];
|
|
8887
8898
|
this.hasInfos = Object.keys(this.item).some(function (key) {
|
|
8888
|
-
|
|
8899
|
+
if (keysToInclude.includes(key)) {
|
|
8900
|
+
return _this.item[key] && _this.item[key].length > 0;
|
|
8901
|
+
}
|
|
8902
|
+
return false;
|
|
8889
8903
|
});
|
|
8890
8904
|
},
|
|
8891
8905
|
getAdditionalInfo: function getAdditionalInfo(item) {
|
|
@@ -8909,36 +8923,36 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
8909
8923
|
return _c('div', {
|
|
8910
8924
|
ref: "contactCard",
|
|
8911
8925
|
staticClass: "contact-card"
|
|
8912
|
-
}, [_vm._ssrNode("<div class=\"contact-header\" data-v-
|
|
8926
|
+
}, [_vm._ssrNode("<div class=\"contact-header\" data-v-7679458a><div class=\"header-content\" data-v-7679458a><span class=\"badge\" data-v-7679458a>" + _vm._ssrEscape(_vm._s(_vm.getInitials(_vm.item.name))) + "</span> <h3 data-v-7679458a>" + _vm._ssrEscape(_vm._s(_vm.item.name.formatted_name)) + "</h3></div> " + (_vm.item.org ? "<ul class=\"contact-list\" data-v-7679458a>" + (_vm.item.org.company ? "<li data-v-7679458a>" + _vm._ssrEscape(_vm._s(_vm.item.org.company)) + "</li>" : "<!---->") + " " + (_vm.item.org.title ? "<li data-v-7679458a>" + _vm._ssrEscape(_vm._s(_vm.item.org.title)) + "</li>" : "<!---->") + "</ul>" : "<!---->") + "</div> "), _vm._ssrNode("<div class=\"contact-content\" data-v-7679458a>", "</div>", [_vm._ssrNode("<div class=\"contact-section\" data-v-7679458a>", "</div>", [_vm._ssrNode("<h4 data-v-7679458a>", "</h4>", [_c('fa-icon', {
|
|
8913
8927
|
attrs: {
|
|
8914
8928
|
"icon": ['fas', 'phone-alt']
|
|
8915
8929
|
}
|
|
8916
|
-
}), _vm._ssrNode("\n Telefones\n ")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8917
|
-
return _vm._ssrNode("<li data-v-
|
|
8930
|
+
}), _vm._ssrNode("\n Telefones\n ")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-7679458a>", "</ul>", _vm._l(_vm.item.phones, function (phone) {
|
|
8931
|
+
return _vm._ssrNode("<li data-v-7679458a>", "</li>", [_vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.dictionary[phone.type + "_phone"] || phone.type) + ": " + _vm._s(phone.phone) + "\n ")), _vm.emitContactClick ? _vm._ssrNode("<button title=\"Adicionar contato\" data-v-7679458a>", "</button>", [_c('fa-icon', {
|
|
8918
8932
|
attrs: {
|
|
8919
8933
|
"icon": ['fas', 'user-plus']
|
|
8920
8934
|
}
|
|
8921
8935
|
})], 1) : _vm._e()], 2);
|
|
8922
|
-
}), 0)], 2), _vm._ssrNode(" "), _vm.item.emails && _vm.item.emails.length ? _vm._ssrNode("<div class=\"contact-section\" data-v-
|
|
8936
|
+
}), 0)], 2), _vm._ssrNode(" "), _vm.item.emails && _vm.item.emails.length ? _vm._ssrNode("<div class=\"contact-section\" data-v-7679458a>", "</div>", [_vm._ssrNode("<h4 data-v-7679458a>", "</h4>", [_c('fa-icon', {
|
|
8923
8937
|
attrs: {
|
|
8924
8938
|
"icon": ['fas', 'envelope']
|
|
8925
8939
|
}
|
|
8926
|
-
}), _vm._ssrNode("Emails")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8927
|
-
return _vm._ssrNode("<li data-v-
|
|
8940
|
+
}), _vm._ssrNode("Emails")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-7679458a>", "</ul>", _vm._l(_vm.item.emails, function (email) {
|
|
8941
|
+
return _vm._ssrNode("<li data-v-7679458a>", "</li>", [_vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.dictionary[email.type + "_email"] || email.type) + ": " + _vm._s(email.email) + "\n ")), _vm.emitContactClick ? _vm._ssrNode("<button title=\"Adicionar contato\" data-v-7679458a>", "</button>", [_c('fa-icon', {
|
|
8928
8942
|
attrs: {
|
|
8929
8943
|
"icon": ['fas', 'user-plus']
|
|
8930
8944
|
}
|
|
8931
8945
|
})], 1) : _vm._e()], 2);
|
|
8932
|
-
}), 0)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.hasInfos ? _vm._ssrNode("<div class=\"contact-section\" data-v-
|
|
8946
|
+
}), 0)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.hasInfos ? _vm._ssrNode("<div class=\"contact-section\" data-v-7679458a>", "</div>", [_vm._ssrNode("<h4 data-v-7679458a>", "</h4>", [_c('fa-icon', {
|
|
8933
8947
|
attrs: {
|
|
8934
8948
|
"icon": ['fas', 'info']
|
|
8935
8949
|
}
|
|
8936
|
-
}), _vm._ssrNode(_vm._ssrEscape(" " + _vm._s(_vm.dictionary.titulo_informacoes) + " adicionais\n "))], 2), _vm._ssrNode(" <ul class=\"contact-list\" data-v-
|
|
8937
|
-
return "<li data-v-
|
|
8950
|
+
}), _vm._ssrNode(_vm._ssrEscape(" " + _vm._s(_vm.dictionary.titulo_informacoes) + " adicionais\n "))], 2), _vm._ssrNode(" <ul class=\"contact-list\" data-v-7679458a>" + (_vm.item.addresses && _vm.item.addresses.length ? _vm._ssrList(_vm.item.addresses, function (address) {
|
|
8951
|
+
return "<li data-v-7679458a>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary[address.type + "_address"] || address.type) + ": " + _vm._s(address.street) + ", " + _vm._s(address.city) + " - " + _vm._s(address.state ? address.state.toUpperCase() : '(vazio)') + " - " + _vm._s(address.country) + ", " + _vm._s(address.zip) + "\n ") + "</li>";
|
|
8938
8952
|
}) : "<!---->") + " " + (_vm.item.urls && _vm.item.urls.length ? _vm._ssrList(_vm.item.urls, function (url) {
|
|
8939
|
-
return "<li data-v-
|
|
8940
|
-
}) : "<!---->") + " " + (_vm.item.birthday ? "<li data-v-
|
|
8941
|
-
return "<li data-v-
|
|
8953
|
+
return "<li data-v-7679458a>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary[url.type] || url.type) + ": ") + "<a" + _vm._ssrAttr("href", "" + (url.url.startsWith('https://') ? url.url : "https://" + url.url)) + " target=\"_blank\" data-v-7679458a>" + _vm._ssrEscape(_vm._s(url.url)) + "</a></li>";
|
|
8954
|
+
}) : "<!---->") + " " + (_vm.item.birthday ? "<li data-v-7679458a>" + _vm._ssrEscape(_vm._s(_vm.dictionary.birthday) + ": " + _vm._s(_vm.formatBirthday(_vm.item.birthday))) + "</li>" : "<!---->") + " " + (_vm.additionals && _vm.additionals.length ? _vm._ssrList(_vm.additionals, function (value, key) {
|
|
8955
|
+
return "<li data-v-7679458a>" + _vm._ssrEscape("\n " + _vm._s(key) + ": " + _vm._s(value) + "\n ") + "</li>";
|
|
8942
8956
|
}) : "<!---->") + "</ul>")], 2) : _vm._e()], 2)], 2);
|
|
8943
8957
|
};
|
|
8944
8958
|
var __vue_staticRenderFns__$a = [];
|
|
@@ -8946,16 +8960,16 @@ var __vue_staticRenderFns__$a = [];
|
|
|
8946
8960
|
/* style */
|
|
8947
8961
|
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
8948
8962
|
if (!inject) return;
|
|
8949
|
-
inject("data-v-
|
|
8950
|
-
source: ".contact-card[data-v-
|
|
8963
|
+
inject("data-v-7679458a_0", {
|
|
8964
|
+
source: ".contact-card[data-v-7679458a]{border:1px solid rgba(0,0,0,.1);background-color:rgba(255,255,255,.9);border-radius:5px;padding:5px;margin-bottom:10px}.contact-header[data-v-7679458a]{margin-bottom:16px}.header-content[data-v-7679458a]{display:flex;align-items:center;gap:5px}.header-content h3[data-v-7679458a]{margin:0}.contact-list[data-v-7679458a]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px;margin:10px 0}.contact-list li>button[data-v-7679458a]{background-color:transparent;border:none;cursor:pointer;font-size:14px;color:var(--konecta-success)}.contact-list li>button[data-v-7679458a]:hover{color:var(--konecta-success-hover)}.badge[data-v-7679458a]{display:flex;justify-content:center;align-items:center;width:30px;height:30px;border-radius:50%;background-color:var(--message-color);color:var(--text-color);text-align:center;line-height:24px;font-size:14px;font-weight:700}.contact-section[data-v-7679458a]{margin-bottom:16px}.contact-section h4[data-v-7679458a]{margin:0;font-size:14px;font-weight:700;display:flex;align-items:center;gap:5px}",
|
|
8951
8965
|
map: undefined,
|
|
8952
8966
|
media: undefined
|
|
8953
8967
|
});
|
|
8954
8968
|
};
|
|
8955
8969
|
/* scoped */
|
|
8956
|
-
var __vue_scope_id__$a = "data-v-
|
|
8970
|
+
var __vue_scope_id__$a = "data-v-7679458a";
|
|
8957
8971
|
/* module identifier */
|
|
8958
|
-
var __vue_module_identifier__$a = "data-v-
|
|
8972
|
+
var __vue_module_identifier__$a = "data-v-7679458a";
|
|
8959
8973
|
/* functional template */
|
|
8960
8974
|
var __vue_is_functional_template__$a = false;
|
|
8961
8975
|
/* style inject shadow dom */
|
|
@@ -9645,8 +9659,7 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
9645
9659
|
}
|
|
9646
9660
|
}) : _c('InteratividadeBotoes', {
|
|
9647
9661
|
attrs: {
|
|
9648
|
-
"interatividade": _vm.interatividade
|
|
9649
|
-
"dictionary": _vm.dictionary
|
|
9662
|
+
"interatividade": _vm.interatividade
|
|
9650
9663
|
}
|
|
9651
9664
|
})] : _vm._e(), _vm._v(" "), _c('span', {
|
|
9652
9665
|
staticClass: "horario-envio",
|
|
@@ -9979,7 +9992,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
9979
9992
|
/* style */
|
|
9980
9993
|
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
9981
9994
|
if (!inject) return;
|
|
9982
|
-
inject("data-v-
|
|
9995
|
+
inject("data-v-cb02af2c_0", {
|
|
9983
9996
|
source: ":root{--message-color:#373737;--text-color:#fff;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-reply{padding:5px 10px;font-size:12px;color:#666;transition:background-color 150ms ease-in-out;border-radius:5px;margin:5px 0;overflow:hidden;max-width:100%}.mensagem-reply p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply-principal{border-left:3px solid transparent;background-color:rgba(100,100,100,.1)}.message-reply-principal:hover{background-color:rgba(100,100,100,.2)}.message-reply-outros{background-color:#f5f5f5;border-left:3px solid var(--message-color)}.message-reply-outros:hover{background-color:#ebebeb}.mensagem-reply-vazia{display:flex;align-items:center}.mensagem-reply-vazia svg{margin-right:5px;color:#ba181b}.mensagem{padding:20px 7px 14px 7px;border-radius:5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:12px;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:9.6px;color:#67a332;width:14.4px;height:14.4px;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:11.2px}.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:6.4px;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:11.2px;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:9.6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.menu-primario{transition:opacity 150ms ease-in-out;height:20px;position:absolute;font-size:11.2px;top:2px;display:flex;gap:5px;padding:2px 4px}.menu-primario.principal{left:2px;color:var(--text-color);background-color:var(--message-color)}.menu-primario.outros{right:2px;color:var(--text-color);background-color:#fff}.menu-primario.outros>span:nth-child(1){order:10}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.menu-flutuante{background-color:#fff;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-radius:10px;position:absolute;top:20px;width:120px;min-height:50px;height:50px;max-height:50px;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;display:flex;flex-direction:column;z-index:1}.menu-flutuante.principal{left:3px}.menu-flutuante.outros{right:3px}.menu-flutuante li{transition:background-color .3s ease-in-out;width:100%;cursor:pointer;padding:5px 10px;display:flex;align-items:center}.menu-flutuante li:hover{background-color:#e9e9e9}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:13.6px}.info-mapa li.address,.info-mapa li.url{font-size:13.6px}.info-mapa li.url{font-size:13.6px}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.emoji-message-container{position:absolute;top:0;z-index:1;width:300px;height:250px}.emoji-message-container .sm-emoji-picker{width:300px;height:250px}.emoji-message-container .sm-emoji-picker .sm-emoji-header{overflow-x:auto;overflow-y:hidden}.reaction{position:absolute;bottom:0;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:rgba(100,100,100,.4);padding:5px;font-size:20.8px;min-width:28.8px;min-height:28.8px;max-width:28.8px;max-height:28.8px}.reaction>span{display:block;transform:translateY(-1px)}.mensagem__outros .reaction{right:-30px}.mensagem__principal .reaction{left:-30px}",
|
|
9984
9997
|
map: undefined,
|
|
9985
9998
|
media: undefined
|
|
@@ -9988,7 +10001,7 @@ var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
|
9988
10001
|
/* scoped */
|
|
9989
10002
|
var __vue_scope_id__$7 = undefined;
|
|
9990
10003
|
/* module identifier */
|
|
9991
|
-
var __vue_module_identifier__$7 = "data-v-
|
|
10004
|
+
var __vue_module_identifier__$7 = "data-v-cb02af2c";
|
|
9992
10005
|
/* functional template */
|
|
9993
10006
|
var __vue_is_functional_template__$7 = false;
|
|
9994
10007
|
/* style inject shadow dom */
|
|
@@ -11097,17 +11110,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11097
11110
|
return _vm.openByItem($event);
|
|
11098
11111
|
}
|
|
11099
11112
|
}
|
|
11100
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11113
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-d26a598c></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-d26a598c>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-d26a598c>", "</span>", [_c('fa-icon', {
|
|
11101
11114
|
class: [_vm.origem],
|
|
11102
11115
|
attrs: {
|
|
11103
11116
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
11104
11117
|
}
|
|
11105
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11118
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-d26a598c>", "</span>", [_c('fa-icon', {
|
|
11106
11119
|
staticClass: "email-to-svg",
|
|
11107
11120
|
attrs: {
|
|
11108
11121
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
11109
11122
|
}
|
|
11110
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11123
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-d26a598c>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
11111
11124
|
return _c('span', {
|
|
11112
11125
|
directives: [{
|
|
11113
11126
|
name: "show",
|
|
@@ -11138,7 +11151,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11138
11151
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11139
11152
|
}
|
|
11140
11153
|
})], 1);
|
|
11141
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\" data-v-
|
|
11154
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\" data-v-d26a598c>", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\" data-v-d26a598c>", "</span>", [_c('fa-icon', {
|
|
11142
11155
|
staticStyle: {
|
|
11143
11156
|
"color": "#FF0000",
|
|
11144
11157
|
"margin-right": "8px",
|
|
@@ -11147,21 +11160,21 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11147
11160
|
attrs: {
|
|
11148
11161
|
"icon": ['fas', 'exclamation-triangle']
|
|
11149
11162
|
}
|
|
11150
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\" data-v-
|
|
11163
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\" data-v-d26a598c>", "</div>", [_vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn1.disabled) + " class=\"btn-nao-spam\" style=\"position: relative;\" data-v-d26a598c>", "</button>", [_vm.customActionButtons[0].btn1.loading ? _c('VueLoader', {
|
|
11151
11164
|
staticClass: "btn-loader",
|
|
11152
11165
|
attrs: {
|
|
11153
11166
|
"hasBg": false
|
|
11154
11167
|
}
|
|
11155
11168
|
}) : _vm._e(), _vm._ssrNode(" <span" + _vm._ssrStyle(null, {
|
|
11156
11169
|
opacity: _vm.customActionButtons[0].btn1.loading ? 0 : 1
|
|
11157
|
-
}, null) + " data-v-
|
|
11170
|
+
}, null) + " data-v-d26a598c>" + _vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn1.label) + "\n ") + "</span>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn2.disabled) + " class=\"btn-e-spam\" style=\"position: relative;\" data-v-d26a598c>", "</button>", [_vm.customActionButtons[0].btn2.loading ? _c('VueLoader', {
|
|
11158
11171
|
staticClass: "btn-loader",
|
|
11159
11172
|
attrs: {
|
|
11160
11173
|
"hasBg": false
|
|
11161
11174
|
}
|
|
11162
11175
|
}) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrStyle(null, {
|
|
11163
11176
|
opacity: _vm.customActionButtons[0].btn2.loading ? 0 : 1
|
|
11164
|
-
}, null) + " data-v-
|
|
11177
|
+
}, null) + " data-v-d26a598c>", "</span>", [_vm.customActionButtons[0].btn2.icon ? _c('fa-icon', {
|
|
11165
11178
|
staticClass: "icon-btn-encerrar-spam",
|
|
11166
11179
|
staticStyle: {
|
|
11167
11180
|
"margin-right": "6px"
|
|
@@ -11169,7 +11182,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11169
11182
|
attrs: {
|
|
11170
11183
|
"icon": ['fas', _vm.customActionButtons[0].btn2.icon === 'exit' ? 'sign-out-alt' : _vm.customActionButtons[0].btn2.icon]
|
|
11171
11184
|
}
|
|
11172
|
-
}) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn2.label) + "\n "))], 2)], 2)], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-
|
|
11185
|
+
}) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn2.label) + "\n "))], 2)], 2)], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-d26a598c>", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
|
|
11173
11186
|
return [button.type !== 'ja-spam' ? _c('button', {
|
|
11174
11187
|
directives: [{
|
|
11175
11188
|
name: "show",
|
|
@@ -11199,8 +11212,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11199
11212
|
domProps: {
|
|
11200
11213
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11201
11214
|
}
|
|
11202
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11203
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
11215
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2) : _vm._e()];
|
|
11216
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-d26a598c>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-d26a598c>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-d26a598c><strong class=\"strongMsg\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-d26a598c><strong data-v-d26a598c>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-d26a598c>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-d26a598c>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-d26a598c>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-d26a598c>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11204
11217
|
return _c('EmailTo', {
|
|
11205
11218
|
key: "to-" + recipient.email,
|
|
11206
11219
|
attrs: {
|
|
@@ -11211,13 +11224,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11211
11224
|
});
|
|
11212
11225
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11213
11226
|
display: _vm.isOpen ? '' : 'none'
|
|
11214
|
-
}) + " data-v-
|
|
11227
|
+
}) + " data-v-d26a598c>", "</div>", [_c('fa-icon', {
|
|
11215
11228
|
attrs: {
|
|
11216
11229
|
"icon": ['fas', 'caret-down']
|
|
11217
11230
|
}
|
|
11218
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11231
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-d26a598c><span class=\"email-subject-span\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s("Assunto: " + (_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'))) + "</span></div>" : "<!---->"))], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + _vm._ssrClass(null, "email-date " + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)) + _vm._ssrStyle(null, null, {
|
|
11219
11232
|
display: _vm.formattedDate ? '' : 'none'
|
|
11220
|
-
}) + " data-v-
|
|
11233
|
+
}) + " data-v-d26a598c>", "</span>", [_c('fa-icon', {
|
|
11221
11234
|
attrs: {
|
|
11222
11235
|
"icon": ['fas', 'calendar']
|
|
11223
11236
|
}
|
|
@@ -11238,12 +11251,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11238
11251
|
}
|
|
11239
11252
|
}
|
|
11240
11253
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11241
|
-
return "<li class=\"email-info\" data-v-
|
|
11254
|
+
return "<li class=\"email-info\" data-v-d26a598c><span data-v-d26a598c>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11242
11255
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11243
11256
|
active: _vm.actionsOpen
|
|
11244
11257
|
}, {
|
|
11245
11258
|
main: _vm.isMainEmail
|
|
11246
|
-
}]) + " data-v-
|
|
11259
|
+
}]) + " data-v-d26a598c><span data-v-d26a598c></span> <span data-v-d26a598c></span> <span data-v-d26a598c></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11247
11260
|
directives: [{
|
|
11248
11261
|
name: "clickaway",
|
|
11249
11262
|
rawName: "v-clickaway",
|
|
@@ -11256,13 +11269,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11256
11269
|
$event.stopPropagation();
|
|
11257
11270
|
}
|
|
11258
11271
|
}
|
|
11259
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11272
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-d26a598c>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail (html)\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-content\"" + _vm._ssrStyle(null, null, {
|
|
11260
11273
|
display: _vm.isOpen ? '' : 'none'
|
|
11261
|
-
}) + " data-v-
|
|
11274
|
+
}) + " data-v-d26a598c>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-d26a598c><p data-v-d26a598c>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-d26a598c>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11262
11275
|
display: !_vm.hasError ? '' : 'none'
|
|
11263
|
-
}) + " data-v-
|
|
11276
|
+
}) + " data-v-d26a598c></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s(_vm.mensagem)) + "</span>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
|
|
11264
11277
|
display: _vm.isOpen ? '' : 'none'
|
|
11265
|
-
}) + " data-v-
|
|
11278
|
+
}) + " data-v-d26a598c>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11266
11279
|
return _c('EmailFile', {
|
|
11267
11280
|
key: index,
|
|
11268
11281
|
attrs: {
|
|
@@ -11270,31 +11283,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11270
11283
|
"dominio": _vm.dominio
|
|
11271
11284
|
}
|
|
11272
11285
|
});
|
|
11273
|
-
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-
|
|
11286
|
+
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-d26a598c>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-d26a598c>", "</span>", [_c('fa-icon', {
|
|
11274
11287
|
attrs: {
|
|
11275
11288
|
"icon": ['fas', 'paperclip']
|
|
11276
11289
|
}
|
|
11277
|
-
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-
|
|
11290
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-d26a598c>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e()], 2);
|
|
11278
11291
|
};
|
|
11279
11292
|
var __vue_staticRenderFns__$1 = [];
|
|
11280
11293
|
|
|
11281
11294
|
/* style */
|
|
11282
11295
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11283
11296
|
if (!inject) return;
|
|
11284
|
-
inject("data-v-
|
|
11285
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11297
|
+
inject("data-v-d26a598c_0", {
|
|
11298
|
+
source: ".show-y-top-enter-active[data-v-d26a598c],.show-y-top-leave-enter[data-v-d26a598c]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-d26a598c],.show-y-top-leave-to[data-v-d26a598c]{opacity:0;transform:translateY(-2%)}",
|
|
11286
11299
|
map: undefined,
|
|
11287
11300
|
media: undefined
|
|
11288
|
-
}), inject("data-v-
|
|
11301
|
+
}), inject("data-v-d26a598c_1", {
|
|
11289
11302
|
source: ".visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{--konecta-gray-3:#515050;--konecta-light:#f8f9fa;--blue-silver-4:#dae0e5;--email-principal:#faa732;--email-outros:#86b7fe;font-family:Roboto,sans-serif;flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%;overflow:hidden;position:relative}.divBtnReplyEmail{display:flex;align-items:center;background-color:#f0adad;border-radius:6px;padding:7px 9px;margin:5px 0;gap:8px}.reply-email-open{width:calc(100% - 10px - 45px)!important}.btnReplyEmail{display:block;background-color:#faa732;border:1px solid #da8205;margin:8px 0 8px 5px;padding:5px 10px 5px 10px;font-size:14.4px;font-weight:700;border-radius:3px;color:#000;cursor:pointer}.ja-marcado-spam{width:100%;background:#fffbe6;border:1px solid #ffe58f;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:5px 30px;margin:9px 0 5px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.ja-marcado-spam>span{color:#614500;font-weight:500;font-size:14px;margin-bottom:0;align-self:center;align-items:center}.ja-marcado-spam-buttons{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.ja-marcado-spam button{min-width:110px;padding:4px 10px;border:none;border-radius:5px;background:#ffe58f;color:#333;cursor:pointer;font-size:13.4px}.ja-marcado-spam-buttons .btn-nao-spam{background:#36b87b;color:var(--white);border:1px solid var(--konecta-success-hover,#309264);font-weight:700}.ja-marcado-spam-buttons .btn-nao-spam:hover{background:#309264}.ja-marcado-spam-buttons .btn-e-spam{background:#e74c3c;color:var(--white);border:1px solid var(--konecta-danger-hover,#c92e1e);font-weight:700}.ja-marcado-spam-buttons .btn-e-spam:hover{background:#c92e1e}.icon-btn-encerrar-spam{margin-right:2px}.btn-loader{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;pointer-events:none}.strongMsg{flex:1;font-size:13px}.email-custom-action-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:100%;cursor:default}.email-custom-action-button{margin-top:10px;background-color:var(--konecta-light)!important;color:var(--konecta-dark)!important;border:1px solid var(--blue-silver-4)!important;flex:1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;overflow:hidden;border-radius:5px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s ease-in-out;max-width:100%;cursor:pointer}.email-custom-action-button:hover{background-color:#e9ecef!important}.email-custom-action-button:disabled{background-color:var(--konecta-gray-3)!important;border:1px solid #25282b!important;cursor:not-allowed!important}.email-item.outros{border-left:3px solid var(--email-outros)}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:var(--email-outros)}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:var(--email-principal)}.email-author.main{font-size:16.4px}.email-item.principal{border-left:3px solid var(--email-principal)}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:5px 0 0 0;font-size:16.4px;cursor:pointer}.email-date{--width:245px;font-size:12.8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:0;top:30px;z-index:1}.email-actions.main{top:10px}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:14.4px;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:14.4px;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:14.4px;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:12.8px}.email-info>span{font-size:12px;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:12px;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:11.2px;color:gray}.email-to-svg{font-size:13.6px}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:12.8px}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.email-error-content{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px}.email-error-content p{margin:0;color:#e74c3c}.email-error-content button{border:1px solid #ccc;border-radius:3px;padding:5px 10px;background-color:#fff;cursor:pointer;transition:background-color 150ms ease-in-out}.email-error-content button:hover{background-color:#eee}.btnReplyEmail:active,.btnReplyEmail:hover{background-color:#da8205;color:#000}.email-attachments-clip{display:flex;cursor:pointer;margin-top:5px}.clip-icon{position:relative;font-size:22px;color:#999;transform:rotate(-15deg)}.clip-badge{position:absolute;transform:rotate(15deg);top:0;right:-15px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#999 40%,#515050 100%);color:#fff;border-radius:50%;min-width:22px;height:22px;font-size:12.4px;border:1px solid #fff;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .18));text-align:center;padding:0 4px;box-sizing:border-box}.clip-icon:hover{color:#777}.clip-icon:hover .clip-badge{background:linear-gradient(135deg,#999 20%,#515050 70%);filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .28))}",
|
|
11290
11303
|
map: undefined,
|
|
11291
11304
|
media: undefined
|
|
11292
11305
|
});
|
|
11293
11306
|
};
|
|
11294
11307
|
/* scoped */
|
|
11295
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11308
|
+
var __vue_scope_id__$1 = "data-v-d26a598c";
|
|
11296
11309
|
/* module identifier */
|
|
11297
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11310
|
+
var __vue_module_identifier__$1 = "data-v-d26a598c";
|
|
11298
11311
|
/* functional template */
|
|
11299
11312
|
var __vue_is_functional_template__$1 = false;
|
|
11300
11313
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
</span>
|
|
138
138
|
<ul class="email-actions-list box-shadow" v-if="actionsOpen && isOpen" v-clickaway="closeActions" @click.stop>
|
|
139
139
|
<li class="email-action" @click.stop="toggleOpenMessage">
|
|
140
|
-
{{ !openMessage ? 'Visualizar' : 'Esconder' }} texto do e-mail
|
|
140
|
+
{{ !openMessage ? 'Visualizar' : 'Esconder' }} texto do e-mail (html)
|
|
141
141
|
</li>
|
|
142
142
|
</ul>
|
|
143
143
|
</div>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<template v-if="interatividade">
|
|
46
46
|
<InteratividadeContato v-if="isInteratividadeContato()" :interatividade="interatividade"
|
|
47
47
|
:dictionary="dictionary" :emitContactClick="emitContactClick" @contact-click="emitContactData" />
|
|
48
|
-
<InteratividadeBotoes v-else :interatividade="interatividade"
|
|
48
|
+
<InteratividadeBotoes v-else :interatividade="interatividade"/>
|
|
49
49
|
</template>
|
|
50
50
|
<!-- Horario da mensagem -->
|
|
51
51
|
<span class="horario-envio" v-text="horario"></span>
|
|
@@ -125,7 +125,6 @@ export default {
|
|
|
125
125
|
|
|
126
126
|
<style>
|
|
127
127
|
.interatividade-btn {
|
|
128
|
-
width: 100%;
|
|
129
128
|
display: flex;
|
|
130
129
|
justify-content: center;
|
|
131
130
|
align-items: center;
|
|
@@ -185,7 +184,6 @@ export default {
|
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
.interatividade-lista-link {
|
|
188
|
-
width: 100%;
|
|
189
187
|
text-align: center;
|
|
190
188
|
padding: 10px;
|
|
191
189
|
color: rgb(0, 110, 255);
|
|
@@ -97,30 +97,40 @@ export default {
|
|
|
97
97
|
},
|
|
98
98
|
methods: {
|
|
99
99
|
getInitials(name) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
try {
|
|
101
|
+
if (!name) return ''
|
|
102
|
+
let initials = ''
|
|
103
|
+
if (name.first_name) {
|
|
104
|
+
initials = name.first_name.charAt(0);
|
|
105
|
+
}
|
|
106
|
+
if (name.last_name) {
|
|
107
|
+
return initials + name.last_name.charAt(0);
|
|
108
|
+
}
|
|
109
|
+
if(!initials && name.formatted_name) {
|
|
110
|
+
const parts = name.formatted_name.split(' ');
|
|
111
|
+
initials = parts.map(part => part.charAt(0)).join('');
|
|
112
|
+
}
|
|
113
|
+
return initials;
|
|
114
|
+
} catch(err) {
|
|
115
|
+
console.error('Error getting initials:', err);
|
|
116
|
+
return '';
|
|
104
117
|
}
|
|
105
|
-
if (name.last_name) {
|
|
106
|
-
return initials + name.last_name.charAt(0);
|
|
107
|
-
}
|
|
108
|
-
if(!initials && name.formatted_name) {
|
|
109
|
-
const parts = name.formatted_name.split(' ');
|
|
110
|
-
initials = parts.map(part => part.charAt(0)).join('');
|
|
111
|
-
}
|
|
112
|
-
return initials;
|
|
113
118
|
},
|
|
114
119
|
formatBirthday(birthday) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
try {
|
|
121
|
+
if (!birthday) return '';
|
|
122
|
+
const values = birthday.split('-');
|
|
123
|
+
const month = values[values.length - 2]
|
|
124
|
+
const day = values[values.length - 1]
|
|
125
|
+
const months = [
|
|
126
|
+
'janeiro', 'fevereiro', `mar${this.dictionary.c_dil}o`, 'abril', 'maio', 'junho',
|
|
127
|
+
'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'
|
|
128
|
+
];
|
|
129
|
+
return `${parseInt(day)} de ${months[parseInt(month) - 1]}`;
|
|
130
|
+
} catch(err) {
|
|
131
|
+
console.error('Error formatting birthday:', err);
|
|
132
|
+
return '';
|
|
133
|
+
}
|
|
124
134
|
},
|
|
125
135
|
emitData(contact, type) {
|
|
126
136
|
this.$emit('contact-click', {
|
|
@@ -131,7 +141,12 @@ export default {
|
|
|
131
141
|
},
|
|
132
142
|
verifyHasInfos() {
|
|
133
143
|
const keysToInclude = ['addresses', 'urls', 'birthday'];
|
|
134
|
-
this.hasInfos = Object.keys(this.item).some(key =>
|
|
144
|
+
this.hasInfos = Object.keys(this.item).some(key => {
|
|
145
|
+
if (keysToInclude.includes(key)) {
|
|
146
|
+
return this.item[key] && this.item[key].length > 0;
|
|
147
|
+
}
|
|
148
|
+
return false;
|
|
149
|
+
});
|
|
135
150
|
},
|
|
136
151
|
getAdditionalInfo(item) {
|
|
137
152
|
const keysToExclude = ['name', 'org', 'phones', 'emails', 'addresses', 'urls', 'birthday'];
|