Module 705285

1,020 characters · in e7d7a7f553116ae2.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{L5:()=>u,VJ:()=>h,cl:()=>d,iu:()=>g});var s,l,i=n(582128),a=n(440938),r=n(174459),o=n(652215),c=n(758836),d=((s={}).SHOP_CARD="GAME_SERVER_SHOP_CARD",s),u=((l={}).OPEN_PLAN_MODAL="open_game_server_plan_modal",l);function m(e){return e.isGroupDM()?"group_dm":e.isDM()?"dm":"guild_channel"}function g(e){let{server:t,channels:n,hasContextMessage:s,source:l}=e;r.default.track(o.HAw.GAME_SERVER_SHARE_FORWARDED,{destination_type:function(e){if(0===e.length)return null;let t=new Set(e.map(m)),[n]=t;return 1===t.size&&null!=n?n:"mixed"}(n),num_destinations:n.length,game_server_id:t.id,game_id:t.gameId,sku_id:t.instance.planId,plan_name:t.planName,has_context_message:s,source:l})}function h(){let e=(0,a.uM)();return i.useCallback((t,n)=>{r.default.track(o.HAw.COLLECTIBLES_SHOP_ELEMENT_CLICKED,{collectibles_shop_session_id:e?.sessionId,page_type:c.G2.GAME_SERVERS,page_category:e?.pageCategory,page_section:e?.pageSection,tile_type:n,cta_name:t})},[e?.sessionId,e?.pageCategory,e?.pageSection])}}