import{$ as i,a0 as u,bL as f,aN as l,a1 as s,c1 as m}from"./App-B8XlOBJo.js";import{d}from"./PrefsViewStore-Cx4TYLp6.js";import{Picker as b}from"./module-C8blpSbV.js";import"./sentry-common-rTXItwGA.js";import"./index-jPDAJ20a.js";import"./main-process-state-jW3BbbTQ.js";import"./index-CQwKdOGl.js";import"./index-D2Vj8hEx.js";import"./report-dialog-DVH6bOL-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="38f7cc31-710e-4cb5-9d2e-64e8cae6c3c6",e._sentryDebugIdIdentifier="sentry-dbid-38f7cc31-710e-4cb5-9d2e-64e8cae6c3c6")})()}catch{}function p(e){const t=i.useRef(null),r=i.useRef(null);return r.current&&r.current.update(e),i.useEffect(()=>(r.current=new b({...e,ref:t}),()=>{r.current=null}),[]),u.createElement("div",{ref:t})}const S=f(({onEmojiSelect:e,style:t,customEmojis:r})=>{const{transformedRecentEmoji:n}=d.emojiStore,c=r?.some(o=>o.emojis.length>0),a=i.useMemo(()=>{if(n)return c?n:n.filter(o=>!l(o))},[n,c]);return a===void 0?s.jsx("div",{className:"emoji-mart suspense-placeholder",style:{width:338,height:446,backgroundColor:"var(--color-bg)",borderColor:"var(--color-bg)"},children:s.jsx(m,{})}):s.jsx(p,{native:!0,onEmojiSelect:e,theme:"auto",title:"",autoFocus:!0,style:t,custom:r,onSkinChange:o=>d.emojiStore.setSkinTone(o),customFrequentlyUsed:{enabled:!0,values:a}})});export{S as default};
//# sourceMappingURL=EmojiPicker-CUMajF6t.js.map
