import{j as e,m as d}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{u as h}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7162.js";import{s as c,o as u,y as g}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{u as p}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{u as f}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7122.js";import{I as v,aw as j,ax as w}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import{R as b}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71122.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a717.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a716.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a718.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7119.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a714.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a713.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a712.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7110.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7146.js";const k="/assets/png/Suporte.chunk.png",y=()=>{const t=c.getState().label.suporte_clientes,r=u.getState().user;let s=t[r.estado?"premium":"free"];s.includes("https://")||(s=`https://api.whatsapp.com/send?phone=${s}`);let o=document.createElement("a");o.setAttribute("href",s);let i=document.body.appendChild(o);i.click(),i.remove(),v({type:"Success",message:p.getState().language.redirect_suporte,position:"top-right"})};function V(){const{label:t}=c(),{language:r}=p(),{activeView:s,setActiveView:o,chatsIA:i}=g(),l=u(x=>x.user),{close:a,open:n}=f(h(x=>({close:x.close,open:x.open}))),m=()=>!!(l.estado&&t.suporte_clientes.premium.length!==0||!l.estado&&t.suporte_clientes.free.length!==0);return e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"",children:e.jsx(b,{})}),m()&&e.jsx("div",{onMouseEnter:x=>n(r.suporte,{placement:"right"},x.target),onMouseLeave:a,className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x1cy8zhl x100vrsf x1vqgdyp xhgddhk x1ekkm8c x1143rjc xum4auv xj21bgg x1277o0a x13i9f1t xr9ek0c xjpr12u",children:e.jsx("button",{onClick:y,className:"xjb2p0i xk390pu x1heor9g x1ypdohk xjbqb8w x972fbf x10w94by x1qhh985 x14e42zd x1fmog5m xu25z0z x140muxe xo1y3bh xtnn1bt x9v5kkp xmw7ebm xrdum7p xh8yej3 x1yrsyyn x1icxu4v x10b6aqq x25sj25",children:e.jsx("div",{className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 xh8yej3",children:e.jsx("div",{className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 x1n2onr6",style:{flexGrow:"1"},children:e.jsx("div",{onMouseEnter:x=>n(r.suporte,{placement:"right"},x.target),onMouseLeave:a,children:e.jsxs("div",{className:"relative w-7 h-7",children:[e.jsx(d.div,{className:"absolute bg-primary/60 rounded-full",style:{width:"28px",height:"28px",transform:"translate(-50%, -50%)"},animate:{scale:[1,2],opacity:[.6,0]},transition:{duration:1.8,ease:"easeInOut",repeat:1/0,repeatType:"loop",repeatDelay:.2}}),e.jsx("div",{className:"relative z-10 w-full h-full rounded-full ring-2 ring-primary overflow-hidden",children:e.jsx("img",{draggable:!1,className:"w-full h-full object-contain",src:chrome.runtime.getURL(`content/${k}`),style:{visibility:"visible"}})})]})})})})})}),e.jsx("div",{className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x1cy8zhl x100vrsf x1vqgdyp xhgddhk x1ekkm8c x1143rjc xum4auv xj21bgg x1277o0a x13i9f1t xr9ek0c xjpr12u",children:e.jsx("button",{onClick:()=>{o(!s),a()},className:"xjb2p0i xk390pu x1heor9g x1ypdohk xjbqb8w x972fbf x10w94by x1qhh985 x14e42zd x1fmog5m xu25z0z x140muxe xo1y3bh xtnn1bt x9v5kkp xmw7ebm xrdum7p xh8yej3 x1y1aw1k xf159sx xwib8y2 xmzvs34 p-2",children:e.jsx("div",{className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 xh8yej3",children:e.jsx("div",{className:"x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 x1n2onr6",style:{flexGrow:1},children:e.jsx("div",{onMouseEnter:x=>n(r.CRM_positionMenu,{placement:"right"},x.target),onMouseLeave:a,children:e.jsx("span",{"aria-hidden":"true","data-icon":"test-refreshed",children:s?e.jsx(j,{className:(t.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25}):e.jsx(w,{className:(t.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25})})})})})})})]})}export{V as default,y as openSuporte};
