const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.DX8EUNOz.js","assets/js/35cfa646-9ab6-42a2-8c31-4c211f257271.fA9bAEYr.js"])))=>i.map(i=>d[i]);
import{d as j,_ as d}from"./332a5867-fdbb-43c7-ad56-a412ce956721.B_5Mff4E.js";import{j as t,r as o}from"./35cfa646-9ab6-42a2-8c31-4c211f257271.fA9bAEYr.js";import{u as h,a as x}from"../../index.js";import{a0 as E}from"./e5a2f637-302a-420f-94de-cacd45b03f37.Cj_ALb9R.js";import"./62ed8818-f728-41b3-9575-844940e5a1c4.DKdXhNFG.js";const g=o.lazy(()=>d(()=>import("./emoji-picker-react.esm.DX8EUNOz.js"),__vite__mapDeps([0,1])));function k({id:s}){const{getContainer:i}=h(),{emojiArea:r,insertEmoji:a}=i(s)(),{open:m}=x(),{theme:n}=j(),l="facebook",c=n?"dark":"light",u=e=>{m(t.jsx(o.Suspense,{fallback:t.jsx("img",{className:"blur",src:chrome.runtime.getURL("assets/png/emoji.png")}),children:t.jsx(g,{emojiStyle:l,theme:c,onEmojiClick:p=>a(p.emoji),width:"auto",height:"60vh"})}),{placement:r.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=>u(e),children:t.jsx(E,{className:"h-7 w-7"})})})}export{k as default};
