vue-intergrall-plugins 1.1.36 → 1.1.38
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 +41 -20
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +57 -35
- package/package.json +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 -15
|
@@ -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,20 +8851,39 @@ var script$a = {
|
|
|
8851
8851
|
},
|
|
8852
8852
|
methods: {
|
|
8853
8853
|
getInitials: function getInitials(name) {
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
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 '';
|
|
8858
8873
|
}
|
|
8859
|
-
return initials;
|
|
8860
8874
|
},
|
|
8861
8875
|
formatBirthday: function formatBirthday(birthday) {
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
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
|
+
}
|
|
8868
8887
|
},
|
|
8869
8888
|
emitData: function emitData(contact, type) {
|
|
8870
8889
|
this.$emit('contact-click', {
|
|
@@ -8874,9 +8893,13 @@ var script$a = {
|
|
|
8874
8893
|
});
|
|
8875
8894
|
},
|
|
8876
8895
|
verifyHasInfos: function verifyHasInfos() {
|
|
8896
|
+
var _this = this;
|
|
8877
8897
|
var keysToInclude = ['addresses', 'urls', 'birthday'];
|
|
8878
8898
|
this.hasInfos = Object.keys(this.item).some(function (key) {
|
|
8879
|
-
|
|
8899
|
+
if (keysToInclude.includes(key)) {
|
|
8900
|
+
return _this.item[key] && _this.item[key].length > 0;
|
|
8901
|
+
}
|
|
8902
|
+
return false;
|
|
8880
8903
|
});
|
|
8881
8904
|
},
|
|
8882
8905
|
getAdditionalInfo: function getAdditionalInfo(item) {
|
|
@@ -8900,36 +8923,36 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
8900
8923
|
return _c('div', {
|
|
8901
8924
|
ref: "contactCard",
|
|
8902
8925
|
staticClass: "contact-card"
|
|
8903
|
-
}, [_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', {
|
|
8904
8927
|
attrs: {
|
|
8905
8928
|
"icon": ['fas', 'phone-alt']
|
|
8906
8929
|
}
|
|
8907
|
-
}), _vm._ssrNode("\n Telefones\n ")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8908
|
-
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', {
|
|
8909
8932
|
attrs: {
|
|
8910
8933
|
"icon": ['fas', 'user-plus']
|
|
8911
8934
|
}
|
|
8912
8935
|
})], 1) : _vm._e()], 2);
|
|
8913
|
-
}), 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', {
|
|
8914
8937
|
attrs: {
|
|
8915
8938
|
"icon": ['fas', 'envelope']
|
|
8916
8939
|
}
|
|
8917
|
-
}), _vm._ssrNode("Emails")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8918
|
-
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', {
|
|
8919
8942
|
attrs: {
|
|
8920
8943
|
"icon": ['fas', 'user-plus']
|
|
8921
8944
|
}
|
|
8922
8945
|
})], 1) : _vm._e()], 2);
|
|
8923
|
-
}), 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', {
|
|
8924
8947
|
attrs: {
|
|
8925
8948
|
"icon": ['fas', 'info']
|
|
8926
8949
|
}
|
|
8927
|
-
}), _vm._ssrNode(_vm._ssrEscape(" " + _vm._s(_vm.dictionary.titulo_informacoes) + " adicionais\n "))], 2), _vm._ssrNode(" <ul class=\"contact-list\" data-v-
|
|
8928
|
-
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>";
|
|
8929
8952
|
}) : "<!---->") + " " + (_vm.item.urls && _vm.item.urls.length ? _vm._ssrList(_vm.item.urls, function (url) {
|
|
8930
|
-
return "<li data-v-
|
|
8931
|
-
}) : "<!---->") + " " + (_vm.item.birthday ? "<li data-v-
|
|
8932
|
-
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>";
|
|
8933
8956
|
}) : "<!---->") + "</ul>")], 2) : _vm._e()], 2)], 2);
|
|
8934
8957
|
};
|
|
8935
8958
|
var __vue_staticRenderFns__$a = [];
|
|
@@ -8937,16 +8960,16 @@ var __vue_staticRenderFns__$a = [];
|
|
|
8937
8960
|
/* style */
|
|
8938
8961
|
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
8939
8962
|
if (!inject) return;
|
|
8940
|
-
inject("data-v-
|
|
8941
|
-
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}",
|
|
8942
8965
|
map: undefined,
|
|
8943
8966
|
media: undefined
|
|
8944
8967
|
});
|
|
8945
8968
|
};
|
|
8946
8969
|
/* scoped */
|
|
8947
|
-
var __vue_scope_id__$a = "data-v-
|
|
8970
|
+
var __vue_scope_id__$a = "data-v-7679458a";
|
|
8948
8971
|
/* module identifier */
|
|
8949
|
-
var __vue_module_identifier__$a = "data-v-
|
|
8972
|
+
var __vue_module_identifier__$a = "data-v-7679458a";
|
|
8950
8973
|
/* functional template */
|
|
8951
8974
|
var __vue_is_functional_template__$a = false;
|
|
8952
8975
|
/* style inject shadow dom */
|
|
@@ -9636,8 +9659,7 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
9636
9659
|
}
|
|
9637
9660
|
}) : _c('InteratividadeBotoes', {
|
|
9638
9661
|
attrs: {
|
|
9639
|
-
"interatividade": _vm.interatividade
|
|
9640
|
-
"dictionary": _vm.dictionary
|
|
9662
|
+
"interatividade": _vm.interatividade
|
|
9641
9663
|
}
|
|
9642
9664
|
})] : _vm._e(), _vm._v(" "), _c('span', {
|
|
9643
9665
|
staticClass: "horario-envio",
|
|
@@ -9970,7 +9992,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
9970
9992
|
/* style */
|
|
9971
9993
|
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
9972
9994
|
if (!inject) return;
|
|
9973
|
-
inject("data-v-
|
|
9995
|
+
inject("data-v-cb02af2c_0", {
|
|
9974
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}",
|
|
9975
9997
|
map: undefined,
|
|
9976
9998
|
media: undefined
|
|
@@ -9979,7 +10001,7 @@ var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
|
9979
10001
|
/* scoped */
|
|
9980
10002
|
var __vue_scope_id__$7 = undefined;
|
|
9981
10003
|
/* module identifier */
|
|
9982
|
-
var __vue_module_identifier__$7 = "data-v-
|
|
10004
|
+
var __vue_module_identifier__$7 = "data-v-cb02af2c";
|
|
9983
10005
|
/* functional template */
|
|
9984
10006
|
var __vue_is_functional_template__$7 = false;
|
|
9985
10007
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -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,23 +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
|
-
return initials;
|
|
106
118
|
},
|
|
107
119
|
formatBirthday(birthday) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
}
|
|
117
134
|
},
|
|
118
135
|
emitData(contact, type) {
|
|
119
136
|
this.$emit('contact-click', {
|
|
@@ -124,7 +141,12 @@ export default {
|
|
|
124
141
|
},
|
|
125
142
|
verifyHasInfos() {
|
|
126
143
|
const keysToInclude = ['addresses', 'urls', 'birthday'];
|
|
127
|
-
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
|
+
});
|
|
128
150
|
},
|
|
129
151
|
getAdditionalInfo(item) {
|
|
130
152
|
const keysToExclude = ['name', 'org', 'phones', 'emails', 'addresses', 'urls', 'birthday'];
|