const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.RkcPPFjo.js","assets/js/04c2cb6b-91e5-4613-9fb7-4c2de4722d96.gj7OqE4P.js"])))=>i.map(i=>d[i]);
import{b as p,_ as u}from"./f3ed5b00-b4dc-4bd1-8857-9110316d20d3.DV5HGdic.js";import{j as e,r as s}from"./04c2cb6b-91e5-4613-9fb7-4c2de4722d96.gj7OqE4P.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{ab as x}from"./22fd0e69-da84-44a2-b85e-d562f25aaf40.0b_5OZaw.js";import"./c062e2a6-5ab2-4457-b19e-45fe483dedb9.C5-Lkq8g.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.RkcPPFjo.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};
