vue-intergrall-plugins 1.1.35 → 1.1.37
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 +17 -10
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +54 -45
- package/package.json +1 -1
- package/src/lib-components/Email/EmailItem.vue +2 -2
- package/src/lib-components/Messages/InteratividadeContatoItem.vue +9 -2
|
@@ -8852,10 +8852,19 @@ var script$a = {
|
|
|
8852
8852
|
methods: {
|
|
8853
8853
|
getInitials: function getInitials(name) {
|
|
8854
8854
|
if (!name) return '';
|
|
8855
|
-
var initials =
|
|
8855
|
+
var initials = '';
|
|
8856
|
+
if (name.first_name) {
|
|
8857
|
+
initials = name.first_name.charAt(0);
|
|
8858
|
+
}
|
|
8856
8859
|
if (name.last_name) {
|
|
8857
8860
|
return initials + name.last_name.charAt(0);
|
|
8858
8861
|
}
|
|
8862
|
+
if (!initials && name.formatted_name) {
|
|
8863
|
+
var parts = name.formatted_name.split(' ');
|
|
8864
|
+
initials = parts.map(function (part) {
|
|
8865
|
+
return part.charAt(0);
|
|
8866
|
+
}).join('');
|
|
8867
|
+
}
|
|
8859
8868
|
return initials;
|
|
8860
8869
|
},
|
|
8861
8870
|
formatBirthday: function formatBirthday(birthday) {
|
|
@@ -8900,36 +8909,36 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
8900
8909
|
return _c('div', {
|
|
8901
8910
|
ref: "contactCard",
|
|
8902
8911
|
staticClass: "contact-card"
|
|
8903
|
-
}, [_vm._ssrNode("<div class=\"contact-header\" data-v-
|
|
8912
|
+
}, [_vm._ssrNode("<div class=\"contact-header\" data-v-3428baa2><div class=\"header-content\" data-v-3428baa2><span class=\"badge\" data-v-3428baa2>" + _vm._ssrEscape(_vm._s(_vm.getInitials(_vm.item.name))) + "</span> <h3 data-v-3428baa2>" + _vm._ssrEscape(_vm._s(_vm.item.name.formatted_name)) + "</h3></div> " + (_vm.item.org ? "<ul class=\"contact-list\" data-v-3428baa2>" + (_vm.item.org.company ? "<li data-v-3428baa2>" + _vm._ssrEscape(_vm._s(_vm.item.org.company)) + "</li>" : "<!---->") + " " + (_vm.item.org.title ? "<li data-v-3428baa2>" + _vm._ssrEscape(_vm._s(_vm.item.org.title)) + "</li>" : "<!---->") + "</ul>" : "<!---->") + "</div> "), _vm._ssrNode("<div class=\"contact-content\" data-v-3428baa2>", "</div>", [_vm._ssrNode("<div class=\"contact-section\" data-v-3428baa2>", "</div>", [_vm._ssrNode("<h4 data-v-3428baa2>", "</h4>", [_c('fa-icon', {
|
|
8904
8913
|
attrs: {
|
|
8905
8914
|
"icon": ['fas', 'phone-alt']
|
|
8906
8915
|
}
|
|
8907
|
-
}), _vm._ssrNode("\n Telefones\n ")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8908
|
-
return _vm._ssrNode("<li data-v-
|
|
8916
|
+
}), _vm._ssrNode("\n Telefones\n ")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-3428baa2>", "</ul>", _vm._l(_vm.item.phones, function (phone) {
|
|
8917
|
+
return _vm._ssrNode("<li data-v-3428baa2>", "</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-3428baa2>", "</button>", [_c('fa-icon', {
|
|
8909
8918
|
attrs: {
|
|
8910
8919
|
"icon": ['fas', 'user-plus']
|
|
8911
8920
|
}
|
|
8912
8921
|
})], 1) : _vm._e()], 2);
|
|
8913
|
-
}), 0)], 2), _vm._ssrNode(" "), _vm.item.emails && _vm.item.emails.length ? _vm._ssrNode("<div class=\"contact-section\" data-v-
|
|
8922
|
+
}), 0)], 2), _vm._ssrNode(" "), _vm.item.emails && _vm.item.emails.length ? _vm._ssrNode("<div class=\"contact-section\" data-v-3428baa2>", "</div>", [_vm._ssrNode("<h4 data-v-3428baa2>", "</h4>", [_c('fa-icon', {
|
|
8914
8923
|
attrs: {
|
|
8915
8924
|
"icon": ['fas', 'envelope']
|
|
8916
8925
|
}
|
|
8917
|
-
}), _vm._ssrNode("Emails")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-
|
|
8918
|
-
return _vm._ssrNode("<li data-v-
|
|
8926
|
+
}), _vm._ssrNode("Emails")], 2), _vm._ssrNode(" "), _vm._ssrNode("<ul class=\"contact-list\" data-v-3428baa2>", "</ul>", _vm._l(_vm.item.emails, function (email) {
|
|
8927
|
+
return _vm._ssrNode("<li data-v-3428baa2>", "</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-3428baa2>", "</button>", [_c('fa-icon', {
|
|
8919
8928
|
attrs: {
|
|
8920
8929
|
"icon": ['fas', 'user-plus']
|
|
8921
8930
|
}
|
|
8922
8931
|
})], 1) : _vm._e()], 2);
|
|
8923
|
-
}), 0)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.hasInfos ? _vm._ssrNode("<div class=\"contact-section\" data-v-
|
|
8932
|
+
}), 0)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.hasInfos ? _vm._ssrNode("<div class=\"contact-section\" data-v-3428baa2>", "</div>", [_vm._ssrNode("<h4 data-v-3428baa2>", "</h4>", [_c('fa-icon', {
|
|
8924
8933
|
attrs: {
|
|
8925
8934
|
"icon": ['fas', 'info']
|
|
8926
8935
|
}
|
|
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-
|
|
8936
|
+
}), _vm._ssrNode(_vm._ssrEscape(" " + _vm._s(_vm.dictionary.titulo_informacoes) + " adicionais\n "))], 2), _vm._ssrNode(" <ul class=\"contact-list\" data-v-3428baa2>" + (_vm.item.addresses && _vm.item.addresses.length ? _vm._ssrList(_vm.item.addresses, function (address) {
|
|
8937
|
+
return "<li data-v-3428baa2>" + _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
8938
|
}) : "<!---->") + " " + (_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-
|
|
8939
|
+
return "<li data-v-3428baa2>" + _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-3428baa2>" + _vm._ssrEscape(_vm._s(url.url)) + "</a></li>";
|
|
8940
|
+
}) : "<!---->") + " " + (_vm.item.birthday ? "<li data-v-3428baa2>" + _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) {
|
|
8941
|
+
return "<li data-v-3428baa2>" + _vm._ssrEscape("\n " + _vm._s(key) + ": " + _vm._s(value) + "\n ") + "</li>";
|
|
8933
8942
|
}) : "<!---->") + "</ul>")], 2) : _vm._e()], 2)], 2);
|
|
8934
8943
|
};
|
|
8935
8944
|
var __vue_staticRenderFns__$a = [];
|
|
@@ -8937,16 +8946,16 @@ var __vue_staticRenderFns__$a = [];
|
|
|
8937
8946
|
/* style */
|
|
8938
8947
|
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
8939
8948
|
if (!inject) return;
|
|
8940
|
-
inject("data-v-
|
|
8941
|
-
source: ".contact-card[data-v-
|
|
8949
|
+
inject("data-v-3428baa2_0", {
|
|
8950
|
+
source: ".contact-card[data-v-3428baa2]{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-3428baa2]{margin-bottom:16px}.header-content[data-v-3428baa2]{display:flex;align-items:center;gap:5px}.header-content h3[data-v-3428baa2]{margin:0}.contact-list[data-v-3428baa2]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px;margin:10px 0}.contact-list li>button[data-v-3428baa2]{background-color:transparent;border:none;cursor:pointer;font-size:14px;color:var(--konecta-success)}.contact-list li>button[data-v-3428baa2]:hover{color:var(--konecta-success-hover)}.badge[data-v-3428baa2]{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-3428baa2]{margin-bottom:16px}.contact-section h4[data-v-3428baa2]{margin:0;font-size:14px;font-weight:700;display:flex;align-items:center;gap:5px}",
|
|
8942
8951
|
map: undefined,
|
|
8943
8952
|
media: undefined
|
|
8944
8953
|
});
|
|
8945
8954
|
};
|
|
8946
8955
|
/* scoped */
|
|
8947
|
-
var __vue_scope_id__$a = "data-v-
|
|
8956
|
+
var __vue_scope_id__$a = "data-v-3428baa2";
|
|
8948
8957
|
/* module identifier */
|
|
8949
|
-
var __vue_module_identifier__$a = "data-v-
|
|
8958
|
+
var __vue_module_identifier__$a = "data-v-3428baa2";
|
|
8950
8959
|
/* functional template */
|
|
8951
8960
|
var __vue_is_functional_template__$a = false;
|
|
8952
8961
|
/* style inject shadow dom */
|
|
@@ -10750,8 +10759,8 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10750
10759
|
value: this.formataDataHora(this.dataHora) || '--'
|
|
10751
10760
|
}];
|
|
10752
10761
|
if (this.copia && this.copia.length) {
|
|
10753
|
-
infos.
|
|
10754
|
-
label: this.dicionario.tit_copia,
|
|
10762
|
+
infos.splice(2, 0, {
|
|
10763
|
+
label: "".concat(this.dicionario.tit_copia, ":") || 'Copia:',
|
|
10755
10764
|
value: formatAsString(this.copia)
|
|
10756
10765
|
});
|
|
10757
10766
|
}
|
|
@@ -11088,17 +11097,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11088
11097
|
return _vm.openByItem($event);
|
|
11089
11098
|
}
|
|
11090
11099
|
}
|
|
11091
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11100
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-19db92ac></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-19db92ac>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-19db92ac>", "</span>", [_c('fa-icon', {
|
|
11092
11101
|
class: [_vm.origem],
|
|
11093
11102
|
attrs: {
|
|
11094
11103
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
11095
11104
|
}
|
|
11096
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11105
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-19db92ac>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-19db92ac>", "</span>", [_c('fa-icon', {
|
|
11097
11106
|
staticClass: "email-to-svg",
|
|
11098
11107
|
attrs: {
|
|
11099
11108
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
11100
11109
|
}
|
|
11101
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11110
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-19db92ac>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
11102
11111
|
return _c('span', {
|
|
11103
11112
|
directives: [{
|
|
11104
11113
|
name: "show",
|
|
@@ -11129,7 +11138,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11129
11138
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11130
11139
|
}
|
|
11131
11140
|
})], 1);
|
|
11132
|
-
}), 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-
|
|
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-19db92ac>", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\" data-v-19db92ac>", "</span>", [_c('fa-icon', {
|
|
11133
11142
|
staticStyle: {
|
|
11134
11143
|
"color": "#FF0000",
|
|
11135
11144
|
"margin-right": "8px",
|
|
@@ -11138,21 +11147,21 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11138
11147
|
attrs: {
|
|
11139
11148
|
"icon": ['fas', 'exclamation-triangle']
|
|
11140
11149
|
}
|
|
11141
|
-
}), _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-
|
|
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-19db92ac>", "</div>", [_vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn1.disabled) + " class=\"btn-nao-spam\" style=\"position: relative;\" data-v-19db92ac>", "</button>", [_vm.customActionButtons[0].btn1.loading ? _c('VueLoader', {
|
|
11142
11151
|
staticClass: "btn-loader",
|
|
11143
11152
|
attrs: {
|
|
11144
11153
|
"hasBg": false
|
|
11145
11154
|
}
|
|
11146
11155
|
}) : _vm._e(), _vm._ssrNode(" <span" + _vm._ssrStyle(null, {
|
|
11147
11156
|
opacity: _vm.customActionButtons[0].btn1.loading ? 0 : 1
|
|
11148
|
-
}, null) + " data-v-
|
|
11157
|
+
}, null) + " data-v-19db92ac>" + _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-19db92ac>", "</button>", [_vm.customActionButtons[0].btn2.loading ? _c('VueLoader', {
|
|
11149
11158
|
staticClass: "btn-loader",
|
|
11150
11159
|
attrs: {
|
|
11151
11160
|
"hasBg": false
|
|
11152
11161
|
}
|
|
11153
11162
|
}) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrStyle(null, {
|
|
11154
11163
|
opacity: _vm.customActionButtons[0].btn2.loading ? 0 : 1
|
|
11155
|
-
}, null) + " data-v-
|
|
11164
|
+
}, null) + " data-v-19db92ac>", "</span>", [_vm.customActionButtons[0].btn2.icon ? _c('fa-icon', {
|
|
11156
11165
|
staticClass: "icon-btn-encerrar-spam",
|
|
11157
11166
|
staticStyle: {
|
|
11158
11167
|
"margin-right": "6px"
|
|
@@ -11160,7 +11169,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11160
11169
|
attrs: {
|
|
11161
11170
|
"icon": ['fas', _vm.customActionButtons[0].btn2.icon === 'exit' ? 'sign-out-alt' : _vm.customActionButtons[0].btn2.icon]
|
|
11162
11171
|
}
|
|
11163
|
-
}) : _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-
|
|
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-19db92ac>", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
|
|
11164
11173
|
return [button.type !== 'ja-spam' ? _c('button', {
|
|
11165
11174
|
directives: [{
|
|
11166
11175
|
name: "show",
|
|
@@ -11190,8 +11199,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11190
11199
|
domProps: {
|
|
11191
11200
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11192
11201
|
}
|
|
11193
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11194
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
11202
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-19db92ac>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2) : _vm._e()];
|
|
11203
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-19db92ac>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-19db92ac>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-19db92ac><strong class=\"strongMsg\" data-v-19db92ac>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-19db92ac><strong data-v-19db92ac>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-19db92ac>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-19db92ac>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-19db92ac>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-19db92ac>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11195
11204
|
return _c('EmailTo', {
|
|
11196
11205
|
key: "to-" + recipient.email,
|
|
11197
11206
|
attrs: {
|
|
@@ -11202,13 +11211,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11202
11211
|
});
|
|
11203
11212
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11204
11213
|
display: _vm.isOpen ? '' : 'none'
|
|
11205
|
-
}) + " data-v-
|
|
11214
|
+
}) + " data-v-19db92ac>", "</div>", [_c('fa-icon', {
|
|
11206
11215
|
attrs: {
|
|
11207
11216
|
"icon": ['fas', 'caret-down']
|
|
11208
11217
|
}
|
|
11209
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11218
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-19db92ac><span class=\"email-subject-span\" data-v-19db92ac>" + _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, {
|
|
11210
11219
|
display: _vm.formattedDate ? '' : 'none'
|
|
11211
|
-
}) + " data-v-
|
|
11220
|
+
}) + " data-v-19db92ac>", "</span>", [_c('fa-icon', {
|
|
11212
11221
|
attrs: {
|
|
11213
11222
|
"icon": ['fas', 'calendar']
|
|
11214
11223
|
}
|
|
@@ -11229,12 +11238,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11229
11238
|
}
|
|
11230
11239
|
}
|
|
11231
11240
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11232
|
-
return "<li class=\"email-info\" data-v-
|
|
11241
|
+
return "<li class=\"email-info\" data-v-19db92ac><span data-v-19db92ac>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11233
11242
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11234
11243
|
active: _vm.actionsOpen
|
|
11235
11244
|
}, {
|
|
11236
11245
|
main: _vm.isMainEmail
|
|
11237
|
-
}]) + " data-v-
|
|
11246
|
+
}]) + " data-v-19db92ac><span data-v-19db92ac></span> <span data-v-19db92ac></span> <span data-v-19db92ac></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11238
11247
|
directives: [{
|
|
11239
11248
|
name: "clickaway",
|
|
11240
11249
|
rawName: "v-clickaway",
|
|
@@ -11247,13 +11256,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11247
11256
|
$event.stopPropagation();
|
|
11248
11257
|
}
|
|
11249
11258
|
}
|
|
11250
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11259
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-19db92ac>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-content\"" + _vm._ssrStyle(null, null, {
|
|
11251
11260
|
display: _vm.isOpen ? '' : 'none'
|
|
11252
|
-
}) + " data-v-
|
|
11261
|
+
}) + " data-v-19db92ac>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-19db92ac><p data-v-19db92ac>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-19db92ac>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11253
11262
|
display: !_vm.hasError ? '' : 'none'
|
|
11254
|
-
}) + " data-v-
|
|
11263
|
+
}) + " data-v-19db92ac></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-19db92ac>" + _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, {
|
|
11255
11264
|
display: _vm.isOpen ? '' : 'none'
|
|
11256
|
-
}) + " data-v-
|
|
11265
|
+
}) + " data-v-19db92ac>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11257
11266
|
return _c('EmailFile', {
|
|
11258
11267
|
key: index,
|
|
11259
11268
|
attrs: {
|
|
@@ -11261,31 +11270,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11261
11270
|
"dominio": _vm.dominio
|
|
11262
11271
|
}
|
|
11263
11272
|
});
|
|
11264
|
-
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-
|
|
11273
|
+
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-19db92ac>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-19db92ac>", "</span>", [_c('fa-icon', {
|
|
11265
11274
|
attrs: {
|
|
11266
11275
|
"icon": ['fas', 'paperclip']
|
|
11267
11276
|
}
|
|
11268
|
-
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-
|
|
11277
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-19db92ac>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e()], 2);
|
|
11269
11278
|
};
|
|
11270
11279
|
var __vue_staticRenderFns__$1 = [];
|
|
11271
11280
|
|
|
11272
11281
|
/* style */
|
|
11273
11282
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11274
11283
|
if (!inject) return;
|
|
11275
|
-
inject("data-v-
|
|
11276
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11284
|
+
inject("data-v-19db92ac_0", {
|
|
11285
|
+
source: ".show-y-top-enter-active[data-v-19db92ac],.show-y-top-leave-enter[data-v-19db92ac]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-19db92ac],.show-y-top-leave-to[data-v-19db92ac]{opacity:0;transform:translateY(-2%)}",
|
|
11277
11286
|
map: undefined,
|
|
11278
11287
|
media: undefined
|
|
11279
|
-
}), inject("data-v-
|
|
11288
|
+
}), inject("data-v-19db92ac_1", {
|
|
11280
11289
|
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))}",
|
|
11281
11290
|
map: undefined,
|
|
11282
11291
|
media: undefined
|
|
11283
11292
|
});
|
|
11284
11293
|
};
|
|
11285
11294
|
/* scoped */
|
|
11286
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11295
|
+
var __vue_scope_id__$1 = "data-v-19db92ac";
|
|
11287
11296
|
/* module identifier */
|
|
11288
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11297
|
+
var __vue_module_identifier__$1 = "data-v-19db92ac";
|
|
11289
11298
|
/* functional template */
|
|
11290
11299
|
var __vue_is_functional_template__$1 = false;
|
|
11291
11300
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -352,8 +352,8 @@ export default {
|
|
|
352
352
|
]
|
|
353
353
|
|
|
354
354
|
if (this.copia && this.copia.length) {
|
|
355
|
-
infos.
|
|
356
|
-
label: this.dicionario.tit_copia,
|
|
355
|
+
infos.splice(2, 0, {
|
|
356
|
+
label: `${this.dicionario.tit_copia}:` || 'Copia:',
|
|
357
357
|
value: formatAsString(this.copia)
|
|
358
358
|
})
|
|
359
359
|
}
|
|
@@ -97,11 +97,18 @@ export default {
|
|
|
97
97
|
},
|
|
98
98
|
methods: {
|
|
99
99
|
getInitials(name) {
|
|
100
|
-
if (!name) return ''
|
|
101
|
-
|
|
100
|
+
if (!name) return ''
|
|
101
|
+
let initials = ''
|
|
102
|
+
if (name.first_name) {
|
|
103
|
+
initials = name.first_name.charAt(0);
|
|
104
|
+
}
|
|
102
105
|
if (name.last_name) {
|
|
103
106
|
return initials + name.last_name.charAt(0);
|
|
104
107
|
}
|
|
108
|
+
if(!initials && name.formatted_name) {
|
|
109
|
+
const parts = name.formatted_name.split(' ');
|
|
110
|
+
initials = parts.map(part => part.charAt(0)).join('');
|
|
111
|
+
}
|
|
105
112
|
return initials;
|
|
106
113
|
},
|
|
107
114
|
formatBirthday(birthday) {
|