const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.DZKlB5lz.js","assets/js/7a7c18c0-1c45-4cd8-a537-860439bce06f.DIR3-bJs.js","assets/js/ec7ae47a-e89c-4f20-a861-f0608ae6ff19.BjZ4j9fy.js","assets/js/5b02413a-e3cd-48e9-b817-28e545cc7c65.DcrJEDvz.js"])))=>i.map(i=>d[i]);
import{f as p,j as t,aR as u,_ as j}from"./ec7ae47a-e89c-4f20-a861-f0608ae6ff19.BjZ4j9fy.js";import{r as s}from"./7a7c18c0-1c45-4cd8-a537-860439bce06f.DIR3-bJs.js";import{u as d,a as h}from"../../index.js";import{s as x}from"./index.B4BawKGx.js";import"./5b02413a-e3cd-48e9-b817-28e545cc7c65.DcrJEDvz.js";const E=s.lazy(()=>j(()=>import("./emoji-picker-react.esm.DZKlB5lz.js"),__vite__mapDeps([0,1,2,3])));function k({id:o}){const i=d(e=>e.getContainer(o))(e=>e.emojiArea),r=h(e=>e.open),a=p(e=>e.theme),m="facebook",n=a?"dark":"light",c=e=>{r(t.jsx(s.Suspense,{fallback:t.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:t.jsx(E,{emojiStyle:m,theme:n,onEmojiClick:l=>x(o,l.emoji),width:"auto",height:"60vh"})}),{placement:i.position},e.target,10,{mounted:()=>e.target.setAttribute("style","color: green !important"),desmouted:()=>e.target.removeAttribute("style")})};return t.jsx("div",{className:"relative",style:{right:"32px",top:"3px"},children:t.jsx("span",{className:"cursor-pointer pulse absolute text-[var(--icon)]",onClick:e=>c(e),children:t.jsx(u,{className:"h-7 w-7"})})})}export{k as default};
