const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/emoji-picker-react.esm.D6hoC-9p.js","assets/js/0dbad563-2f06-4e38-a3dc-27a8264d3b76.DVitnfmq.js"])))=>i.map(i=>d[i]);
import{b as p,_ as u}from"./96925352-673d-4fc1-9ae6-c4caec31e61c.BAK6bdel.js";import{j as e,r as s}from"./0dbad563-2f06-4e38-a3dc-27a8264d3b76.DVitnfmq.js";import{u as j,a as d}from"../../index.js";import{s as h}from"./index.B4BawKGx.js";import{a7 as x}from"./a5fe8d6a-5bd8-44ba-9ca3-cbbb9cf3c8be.DxJS0PdL.js";import"./424f74cb-998b-48f0-a7f2-2cd07c945a41.BPXkgXni.js";const E=s.lazy(()=>u(()=>import("./emoji-picker-react.esm.D6hoC-9p.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};
