const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.CeTnURch.js","assets/js/09441ece-b6ca-4df9-9508-51a40e0c0a1b.AWGCnt0w.js"])))=>i.map(i=>d[i]);
import{h as p,j as d,d as f,k as v,_ as h}from"./5a0192c7-f9ab-44df-aac2-1f9ad02a20a8.BPclnktB.js";import{j as e,r as o}from"./09441ece-b6ca-4df9-9508-51a40e0c0a1b.AWGCnt0w.js";import{at as x}from"./6d9a3aca-fca5-42c4-bc2c-2db063e4d98f.BXXv95AT.js";var E=o.lazy(function(){return h(()=>import("./emoji-picker-react.esm.CeTnURch.js"),__vite__mapDeps([0,1]))});function b(i){var r=i.id,n=p(function(t){return t.getContainer(r)}),a=n(function(t){return t.emojiArea}),s=d(function(t){return t.open}),m=f(function(t){return t.theme}),u="facebook",c=m?"dark":"light",l=function(t){s(e.jsx(o.Suspense,{fallback:e.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:e.jsx(E,{emojiStyle:u,theme:c,onEmojiClick:function(j){return v(r,j.emoji)},width:"auto",height:"60vh"})}),{placement:a.position},t.target,10,{mounted:function(){return t.target.setAttribute("style","color: green !important")},desmouted:function(){return 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:function(t){return l(t)},children:e.jsx(x,{className:"h-7 w-7"})})})}export{b as default};
