Module 450707

1,868 characters · in no known chunk
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{O:()=>l,u:()=>s});var i,r=n(624793),a=n(375708),s=((i={}).GET_PREMIUM="GET_PREMIUM",i.JOIN_GUILD="JOIN_GUILD",i.UNAVAILABLE="UNAVAILABLE",i);function l(e){let t=function(e){let{sourceType:t,expressionSourceApplication:n,isPremium:i,hasJoinedEmojiSourceGuild:s,isUnusableRoleSubscriptionEmoji:l,isDiscoverable:o,emojiComesFromCurrentGuild:d,userIsRoleSubscriber:c,isRoleSubscriptionEmoji:u,shouldHideRoleSubscriptionCTA:_,onOpenPremiumSettings:E}=e;return t===r.rV.APPLICATION&&null!=n?a.intl.formatToPlainString(a.t.uERlTd,{appName:n.name}):i?s?u?_&&l?a.intl.string(a.t.xFb68j):l?c?a.intl.string(a.t.vLklfF):a.intl.string(a.t["g8i/bf"]):a.intl.string(a.t.Eoynp0):d?a.intl.string(a.t.hU4kIe):a.intl.string(a.t.GM0xaX):o?a.intl.string(a.t.xE9WGt):a.intl.string(a.t["0LMpW+"]):s?_&&l?a.intl.string(a.t.xFb68j):l?c?a.intl.string(a.t.vLklfF):a.intl.string(a.t["g8i/bf"]):d?a.intl.string(a.t.ICPhqa):a.intl.string(a.t.jQy3aM):o?a.intl.string(a.t.FJ6Z01):a.intl.format(a.t.U6vLcA,{openPremiumSettings:E})}(e),n=function(e){let{isPremium:t,hasJoinedEmojiSourceGuild:n,isUnusableRoleSubscriptionEmoji:i,emojiComesFromCurrentGuild:r,isDiscoverable:a}=e,s="Custom Emoji Popout";return t&&!n&&a?s="Custom Emoji Popout (Cross-Server)":t||!n||i?t||n||(s=a?"Custom Emoji Popout (Upsell Not-Joined Cross-Server)":"Custom Emoji Popout (Soft Upsell)"):s=r?"Custom Emoji Popout (Upsell Joined Current-Server)":"Custom Emoji Popout (Upsell Joined Cross-Server)",s}(e);return{...function(e){let{isPremium:t,hasJoinedEmojiSourceGuild:n,isUnusableRoleSubscriptionEmoji:i,isDiscoverable:r}=e,s=!n&&r;return t&&s?{type:"JOIN_GUILD",text:a.intl.string(a.t.riu2R5),description:null}:!t&&(n&&!i||s)?{type:"GET_PREMIUM",text:a.intl.string(a.t["gl/XHJ"]),description:null}:{type:"UNAVAILABLE",text:null,description:null}}(e),emojiDescription:t,analyticsType:n}}}