import{I as d,j as e,m as h,az as g,aA as f}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f10.js";import{u as v}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f61.js";import{s as c,o as u,y as j}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f23.js";import{u as p}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f19.js";import{u as w}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f21.js";import{R as b}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f121.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f18.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f6.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f4.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f8.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f5.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f7.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f9.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f2.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f3.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f45.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(),d({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}=j(),l=u(x=>x.user),{close:a,open:n}=w(v(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(h.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(g,{className:(t.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25}):e.jsx(f,{className:(t.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25})})})})})})})]})}export{V as default,y as openSuporte};
