const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.Dt9ThwQx.js","assets/js/12a42a9e-75b6-456e-b36d-b41480f76a62.AWGCnt0w.js"])))=>i.map(i=>d[i]);
import{h as p,j as d,d as f,k as v,_ as h}from"./11fafc94-42dc-41a1-a3f3-023fdaed14d5.BgxBnaQg.js";import{j as t,r as o}from"./12a42a9e-75b6-456e-b36d-b41480f76a62.AWGCnt0w.js";import{ai as x}from"./dd18d2d6-1486-49c7-b471-ac0e7c5b8ab2.C02ID_Mo.js";var E=o.lazy(function(){return h(()=>import("./emoji-picker-react.esm.Dt9ThwQx.js"),__vite__mapDeps([0,1]))});function b(i){var r=i.id,n=p(function(e){return e.getContainer(r)}),a=n(function(e){return e.emojiArea}),s=d(function(e){return e.open}),m=f(function(e){return e.theme}),u="facebook",c=m?"dark":"light",l=function(e){s(t.jsx(o.Suspense,{fallback:t.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:t.jsx(E,{emojiStyle:u,theme:c,onEmojiClick:function(j){return v(r,j.emoji)},width:"auto",height:"60vh"})}),{placement:a.position},e.target,10,{mounted:function(){return e.target.setAttribute("style","color: green !important")},desmouted:function(){return 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:function(e){return l(e)},children:t.jsx(x,{className:"h-7 w-7"})})})}export{b as default};
