import{$ as i,a0 as f,bL as l,aN as c,a1 as s,c1 as b}from"./App-CSvRzCsn.js";import{d as u}from"./PrefsViewStore-B9QxYjkz.js";import{Picker as m}from"./module-C8blpSbV.js";import"./sentry-common-2nFGZClv.js";import"./index-jPDAJ20a.js";import"./main-process-state-jW3BbbTQ.js";import"./index-CZYymlJf.js";import"./index-F0fMEJXd.js";import"./report-dialog-DCdDPy0Y.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]="603d9e89-ed9b-417a-acb1-d0ba5f63b16b",e._sentryDebugIdIdentifier="sentry-dbid-603d9e89-ed9b-417a-acb1-d0ba5f63b16b")})()}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 m({...e,ref:t}),()=>{r.current=null}),[]),f.createElement("div",{ref:t})}const S=l(({onEmojiSelect:e,style:t,customEmojis:r})=>{const{transformedRecentEmoji:n}=u.emojiStore,a=r?.some(o=>o.emojis.length>0),d=i.useMemo(()=>{if(n)return a?n:n.filter(o=>!c(o))},[n,a]);return d===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(b,{})}):s.jsx(p,{native:!0,onEmojiSelect:e,theme:"auto",title:"",autoFocus:!0,style:t,custom:r,onSkinChange:o=>u.emojiStore.setSkinTone(o),customFrequentlyUsed:{enabled:!0,values:d}})});export{S as default};
//# sourceMappingURL=EmojiPicker--sE3Bdu3.js.map
