PERFUMARIA
Explore a Perfumaria Jequiti e descubra fragrâncias criadas para acompanhar todos os momentos da vida. São perfumes para todas as idades, estilos e ocasiões, que traduzem personalidade, emoção e cuidado em cada detalhe. Encontre a fragrância ideal para expressar quem você é e tornar cada dia ainda mais especial.
/* Chatbot Bau da Felicidade Jequiti — incorporacao no site existente.
* Exportado em 27/11/2026. Ambiente conectado: homologacao.
* Nao contem credenciais do painel nem dados de clientes.
*/
(function () {
'use strict';
if (document.querySelector('bau-chat-widget')) return;
const script = document.currentScript;
const origin = 'https://jequiti-bau-homologacao.matheuslopesmgo.workers.dev';
const host = document.createElement('bau-chat-widget');
const shadow = host.attachShadow({mode: 'open'});
const style = document.createElement('style');
if (script && script.nonce) style.nonce = script.nonce;
style.textContent = ':host{all:initial;position:fixed;bottom:24px;right:24px;z-index:2147483000;font-family:Arial,sans-serif}button{font:600 14px Arial,sans-serif;cursor:pointer;border:0}button:focus-visible{outline:3px solid #bd7aac;outline-offset:4px}.launch{background:#61235f;color:white;box-shadow:0 5px 25px #39123630;border-radius:30px;padding:16px 22px;display:flex;align-items:center;gap:10px}.launch svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.panel{position:absolute;bottom:73px;right:0;width:420px;height:min(740px,calc(100dvh - 125px));background:white;border-radius:18px;overflow:hidden;box-shadow:0 18px 70px #24112835;border:1px solid #ded1e1}.panel[hidden]{display:none}iframe{border:0;width:100%;height:100%;display:block}@media(max-width:500px){:host{bottom:16px;right:16px}.panel{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0}.launch{padding:14px 18px}}@media(prefers-reduced-motion:no-preference){.launch:hover{transform:translateY(-2px)}}';
const launcher = document.createElement('button'); launcher.className = 'launch'; launcher.type = 'button';
launcher.innerHTML = 'Como podemos ajudar?';
launcher.setAttribute('aria-expanded', 'false'); launcher.setAttribute('aria-controls', 'bau-panel');
const panel = document.createElement('section'); panel.id = 'bau-panel'; panel.className = 'panel'; panel.hidden = true; panel.setAttribute('role', 'dialog'); panel.setAttribute('aria-label', 'Atendimento Baú da Felicidade Jequiti');
let frame;
function close() { panel.hidden = true; launcher.setAttribute('aria-expanded', 'false'); launcher.focus(); }
launcher.addEventListener('click', () => {
if (!panel.hidden) return close();
if (!frame) {
frame = document.createElement('iframe'); frame.src = origin + '/?embed=1'; frame.title = 'Chat do Baú da Felicidade Jequiti';
frame.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-forms allow-modals'); panel.append(frame);
}
panel.hidden = false; launcher.setAttribute('aria-expanded', 'true'); frame.focus();
});
window.addEventListener('message', event => { if (frame && event.origin === origin && event.source === frame.contentWindow && event.data?.type === 'bau:close') close(); });
window.addEventListener('keydown', event => { if (event.key === 'Escape' && !panel.hidden) close(); });
shadow.append(style, panel, launcher); document.body.append(host);
})();