import{I as d,j as e,as as h,at as g}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080910.js";import{q as u,n as c}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080923.js";import{u as p}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080919.js";import{i as v,u as l}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080921.js";import{m as f}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080965.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080918.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508098.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508094.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b2250809.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508095.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508097.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508096.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508092.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508093.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508099.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080947.js";const j="/assets/png/Suporte.chunk.png",w=()=>{const r=u.getState().label.suporte_clientes,i=c.getState().user;let t=r[i.estado?"premium":"free"];t.includes("https://")||(t=`https://api.whatsapp.com/send?phone=${t}`);let a=document.createElement("a");a.setAttribute("href",t);let s=document.body.appendChild(a);s.click(),s.remove(),d({type:"Success",message:p.getState().language.redirect_suporte,position:"top-right"})};function T(){const{label:r}=u(),{language:i}=p(),{activeView:t,setActiveView:a}=v(),s=l(x=>x.close),n=l(x=>x.open),o=c(x=>x.user),m=()=>!!(o.estado&&r.suporte_clientes.premium.length!==0||!o.estado&&r.suporte_clientes.free.length!==0);return e.jsxs("div",{className:"grid gap-2",children:[m()&&e.jsx("div",{onMouseEnter:x=>n(i.suporte,{placement:"right"},x.target),onMouseLeave:s,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:w,className:"xjb2p0i xk390pu x1heor9g x1ypdohk xjbqb8w x972fbf x10w94by x1qhh985 x14e42zd x1fmog5m xu25z0z x140muxe xo1y3bh xtnn1bt x9v5kkp xmw7ebm xrdum7p xh8yej3 x1yrsyyn x1icxu4v x10b6aqq x25sj25","data-navbar-item-index":"8",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(i.suporte,{placement:"right"},x.target),onMouseLeave:s,children:e.jsxs("div",{className:"relative w-7 h-7",children:[e.jsx(f.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/${j}`),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:()=>{a(!t),s()},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(i.CRM_positionMenu,{placement:"right"},x.target),onMouseLeave:s,children:e.jsx("span",{"aria-hidden":"true","data-icon":"test-refreshed",children:t?e.jsx(h,{className:(r.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25}):e.jsx(g,{className:(r.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25})})})})})})})]})}export{T as default,w as openSuporte};
