const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.Bl8r4kWa.js","assets/js/4380bb99-bb3b-4494-a124-5c63a2f1f59b.BYmSBufi.js"])))=>i.map(i=>d[i]);
import{b as p,_ as u}from"./9076aeb1-b05c-42eb-9f57-088a2a0f2f24.CYxnFDCk.js";import{j as e,r as s}from"./4380bb99-bb3b-4494-a124-5c63a2f1f59b.BYmSBufi.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{a6 as x}from"./d095345c-69f3-4e98-bbbe-38cf618d2010.ChmUh9lB.js";import"./1b6e688d-b326-4e50-8aee-e2f237afacbc.Db_AGlNj.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.Bl8r4kWa.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};
