1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2488],{42488:function(e,r,a){a.r(r),a.d(r,{PlayerAwardsViewType:function(){return n},default:function(){return I}});var l,n,t=a(57437),i=a(8617),d=a(3635),o=a(16355),s=e=>{let{awards:r=[],viewType:a,moduleTitle:l,ctaLabel:i,ctaLink:s,awardsRedirectTabId:u,showEmptyStateCard:w,siBaseUrl:p,siClientId:y,language:f,primaryPlayerId:m,playerProfileUrl:c,playerComparisonUrl:I}=e;return(0,t.jsx)("div",{className:"w-full max-w-(--breakpoint-sm) lg:max-w-full py-4",children:a===n.GRID?(0,t.jsx)(d.default,{awards:r,moduleTitle:l,showEmptyStateCard:w,siBaseUrl:p,siClientId:y,language:f,primaryPlayerId:m,playerComparisonUrl:I,playerProfileUrl:c}):(0,t.jsx)(o.default,{awards:r,moduleTitle:l,ctaLabel:i,ctaLink:s,awardsRedirectTabId:u,showEmptyStateCard:w})})},u=a(72640),w=a(98976),p=a(43858),y=a(79135),f=a(40847),m=a(12637),c=a(25566);(l=n||(n={})).GRID="grid",l.WIDGET="widget";var I=async e=>{var r,a;let{...l}=e,{playerId:n,viewType:d="grid",moduleTitle:o,ctaLabel:I,ctaLink:T,awardsRedirectTabId:g,showEmptyStateCard:h=!1,playerComparisonUrl:v,playerProfileUrl:E}=l.properties;if((0,w.t$)(l))return null;let A=(0,u.fA)(l.variables,y.Uf.PAGE_PATH);if(!n)return m.Z.log("Cannot render PlayerAwards module with no playerId",p.h.warning),null;let C=await (0,f.D$)({playerId:n,pagePath:A});if(null===C||!C)return m.Z.log("Cannot render PlayerAwards module with no playerInfo",p.h.warning),(0,t.jsx)(t.Fragment,{});let _=(0,i.bj)(null==C?void 0:null===(a=C.profile)||void 0===a?void 0:null===(r=a.trophy_cabinet)||void 0===r?void 0:r.trophy_details);if((null==_?void 0:_.length)===0&&!h)return m.Z.log("Cannot render PlayerAwards module with no awards",p.h.warning),(0,t.jsx)(t.Fragment,{});let P=c.env.SPORTZ_INTERACTIVE_ASSETS_CLIENT_ID,S=c.env.SPORTZ_INTERACTIVE_ASSETS_BASE_URL,b=c.env.LANGUAGE,R=null==_?void 0:_.filter(e=>e.isIccAward);return(0,t.jsx)(s,{awards:R,viewType:d,moduleTitle:o,ctaLabel:I,ctaLink:T,awardsRedirectTabId:g,showEmptyStateCard:h,siBaseUrl:S,siClientId:P,language:b,primaryPlayerId:n,playerComparisonUrl:v,playerProfileUrl:E})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.