import{I as h,j as e,x as d,as as g,at as v}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{u as f}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b63.js";import{q as c,n as u}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{u as p}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.js";import{i as j,u as w}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b21.js";import{R as b}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b126.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b7.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b2.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b3.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b47.js";const k="/assets/png/Suporte.chunk.png",y=()=>{const t=c.getState().label.suporte_clientes,a=u.getState().user;let s=t[a.estado?"premium":"free"];s.includes("https://")||(s=`https://api.whatsapp.com/send?phone=${s}`);let i=document.createElement("a");i.setAttribute("href",s);let r=document.body.appendChild(i);r.click(),r.remove(),h({type:"Success",message:p.getState().language.redirect_suporte,position:"top-right"})};function V(){const{label:t}=c(),{language:a}=p(),{activeView:s,setActiveView:i,chatsIA:r}=j(),l=u(x=>x.user),{close:o,open:n}=w(f(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:"h-[calc(100vh-600px)] [@media(min-height:711px)_and_(max-height:770px)]:h-[calc(100vh-565px)] [@media(max-height:710px)]:h-[calc(100vh-545px)]",children:r&&e.jsx(b,{})}),m()&&e.jsx("div",{onMouseEnter:x=>n(a.suporte,{placement:"right"},x.target),onMouseLeave:o,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(a.suporte,{placement:"right"},x.target),onMouseLeave:o,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:()=>{i(!s),o()},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(a.CRM_positionMenu,{placement:"right"},x.target),onMouseLeave:o,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(v,{className:(t.cor_primaria?"text-[var(--primaria)] ":"text-[var(--panel-header-icon)] ")+" -rotate-90",size:25})})})})})})})]})}export{V as default,y as openSuporte};
