const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.7R3Y9p9i.js","assets/js/1d132651-6ec9-487e-826e-b980b3a551fa.DVitnfmq.js"])))=>i.map(i=>d[i]);
import{b as p,_ as u}from"./9d1bde2d-dbe8-4d85-ba93-8b2ff22e43ee.D3obWmVD.js";import{j as e,r as s}from"./1d132651-6ec9-487e-826e-b980b3a551fa.DVitnfmq.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{a7 as x}from"./74403753-3df9-43cc-ab4d-bec95eeed464.BsCS4aES.js";import"./25405fc6-ae7a-4956-b1ba-e7a7aa62bd7a.pYovu5bj.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.7R3Y9p9i.js"),__vite__mapDeps([0,1])));function A({id:o}){const i=j(t=>t.getContainer(o))(t=>t.emojiArea),r=d(t=>t.open),a=p(t=>t.theme),m="facebook",n=a?"dark":"light",c=t=>{r(e.jsx(s.Suspense,{fallback:e.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:e.jsx(E,{emojiStyle:m,theme:n,onEmojiClick:l=>h(o,l.emoji),width:"auto",height:"60vh"})}),{placement:i.position},t.target,10,{mounted:()=>t.target.setAttribute("style","color: green !important"),desmouted:()=>t.target.removeAttribute("style")})};return e.jsx("div",{className:"relative",style:{right:"32px",top:"3px"},children:e.jsx("span",{className:"cursor-pointer pulse absolute text-[var(--icon)]",onClick:t=>c(t),children:e.jsx(x,{className:"h-7 w-7"})})})}export{A as default};
