1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8798],{4654:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i,r=n(96540);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:48,height:48},e),i||(i=r.createElement("path",{d:"M15 33h18v-1.55H15Zm8.95-6.55 6.55-6.5-1.1-1.1-4.7 4.7V13h-1.55v10.55l-4.65-4.7-1.1 1.1ZM24 42q-3.7 0-6.975-1.425T11.3 36.7 7.425 31 6 24t1.425-7.025 3.875-5.7 5.7-3.85T24 6t7.025 1.425 5.7 3.85 3.85 5.7T42 24q0 3.7-1.425 6.975t-3.85 5.725-5.7 3.875T24 42m0-1.55q6.85 0 11.65-4.8T40.45 24t-4.8-11.65T24 7.55t-11.65 4.8T7.55 24t4.8 11.65T24 40.45M24 24"})))}},96770:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i,r,o=n(96540);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let a=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:106,height:140,fill:"none"},e),i||(i=o.createElement("g",{clipPath:"url(#icon-1page_svg__a)"},o.createElement("path",{stroke:"#707070",d:"M105.5.5H.5v139h105z"}),o.createElement("path",{stroke:"#BEBEBE",d:"M81.5 33.5h-57v73h57z"}))),r||(r=o.createElement("defs",null,o.createElement("clipPath",{id:"icon-1page_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h106v140H0z"})))))}},90885:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i,r=n(96540);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:140,height:106},e),i||(i=r.createElement("g",{fill:"none"},r.createElement("g",{stroke:"#707070","data-name":"Rectangle 12"},r.createElement("path",{stroke:"none",d:"M0 0h140v106H0z"}),r.createElement("path",{d:"M.5.5h139v105H.5z"})),r.createElement("g",{stroke:"#bebebe","data-name":"Group 3"},r.createElement("g",{"data-name":"Rectangle 7"},r.createElement("path",{stroke:"none",d:"M15 19h52v69H15z"}),r.createElement("path",{d:"M15.5 19.5h51v68h-51z"})),r.createElement("g",{"data-name":"Rectangle 17"},r.createElement("path",{stroke:"none",d:"M73 19h52v69H73z"}),r.createElement("path",{d:"M73.5 19.5h51v68h-51z"}))))))}},733:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i,r=n(96540);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}let l=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:140,height:106},e),i||(i=r.createElement("g",{fill:"none"},r.createElement("g",{stroke:"#707070","data-name":"Rectangle 6"},r.createElement("path",{stroke:"none",d:"M0 0h140v106H0z"}),r.createElement("path",{d:"M.5.5h139v105H.5z"})),r.createElement("g",{stroke:"#bebebe","data-name":"Group 2"},r.createElement("g",{"data-name":"Rectangle 14"},r.createElement("path",{stroke:"none",d:"M71 56h25v32H71z"}),r.createElement("path",{d:"M71.5 56.5h24v31h-24z"})),r.createElement("g",{"data-name":"Rectangle 16"},r.createElement("path",{stroke:"none",d:"M101 56h25v32h-25z"}),r.createElement("path",{d:"M101.5 56.5h24v31h-24z"})),r.createElement("g",{"data-name":"Rectangle 7"},r.createElement("path",{stroke:"none",d:"M14 19h52v69H14z"}),r.createElement("path",{d:"M14.5 19.5h51v68h-51z"})),r.createElement("g",{"data-name":"Rectangle 8"},r.createElement("path",{stroke:"none",d:"M71 19h25v32H71z"}),r.createElement("path",{d:"M71.5 19.5h24v31h-24z"})),r.createElement("g",{"data-name":"Rectangle 15"},r.createElement("path",{stroke:"none",d:"M101 19h25v32h-25z"}),r.createElement("path",{d:"M101.5 19.5h24v31h-24z"}))))))}},18206:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Y:()=>s}),n(96540);var i=n(82879),r=n(24802),o=n(74848),l=r.Df.create(function(){return{root:{display:"block",position:"relative",height:"100%",width:"100%"},inner:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},backdrop:{zIndex:10,position:"fixed",width:"100%",height:"100%",left:0,top:0,display:"flex",justifyContent:"center",alignItems:"center"}}});function a(e){var t=e.color,n=l().classes;return(0,o.jsx)("div",{className:n.root,children:(0,o.jsx)("div",{className:n.inner,children:(0,o.jsx)(i.A,{color:t})})})}function s(e){var t=e.open,n=l().classes;return(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)("div",{className:n.backdrop,children:(0,o.jsx)(i.A,{color:"inherit"})})})}},21786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ei});var i=n(38242),r=n(73556),o=n(87567),l=n(25285),a=n(73156),s=n(26438),c=n(30803),d=n(24802),h=n(96540),p=n(90885),u=n(733),f=n(96770),g=n(88316),m=n(75886),v=n(52628),x=n(86715),y=n(41078),j=n(18206),b=n(24564),w=n(55808),O=n.n(w),P=n(90697),E=n(24138),A=n(4654),S=n(9281),D={family:"Montserrat",src:"/static/fonts/Montserrat/Montserrat-Regular.ttf"},k={height:"100%",width:"100%",maxWidth:"300px",objectFit:"contain",objectPosition:"right"},z=n(74848);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}P.KQ.register(D);var N=P.vv.create({page:{flexDirection:"column",backgroundColor:"#FFF",height:"100%",width:"100%",padding:"24px"},topSection:{height:"150px",textAlign:"center"},middleSection:{display:"flex",position:"relative",flexDirection:"row",flexGrow:1,height:"100%",width:"100%",overflow:"hidden",alignItems:"center",justifyContent:"center"},image:{objectFit:"contain"},bottomSection:{height:"100px",marginTop:"24px",textAlign:"center"},bottomLeft:{width:"100%"},bottomRight:{width:"300px",textAlign:"right"},statsGrid:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},stat:{fontSize:"10px",marginRight:"10px",fontFamily:D.family,textTransform:"capitalize"},contactDetails:{whiteSpace:"nowrap",wordBreak:"initial",fontSize:"10px",fontFamily:D.family,marginTop:"8px"},talentName:{marginBottom:"6px",fontSize:"15px",fontFamily:D.family},division:{fontSize:"10px",fontFamily:D.family,marginTop:"8px"}}),M={height:"auto",width:"auto",maxWidth:"120px",objectFit:"contain",objectPosition:"center",margin:"0 auto"};let F=function(e){var t,n=e.data,i=(0,S.kK)(null===(t=n.subPortfolio)||void 0===t?void 0:t.media),o=h.useCallback(function(e){return(0,z.jsx)(P._V,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?C(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))},[!1]),l=h.useMemo(function(){return(0,z.jsx)("div",{style:N.topSection,children:(0,z.jsx)(o,{src:{uri:"/static/images/logo-print.png"},style:M})})},[]),a=h.useMemo(function(){return(0,z.jsxs)("div",{style:N.bottomSection,children:[(0,z.jsxs)(P.EY,{style:N.talentName,children:[n.firstName," ",n.lastName]}),(0,z.jsx)("div",{style:N.statsGrid,children:(null==n?void 0:n.stats)&&Object.keys(n.stats).map(function(e,t){return n.stats[e]&&(0,z.jsxs)(P.EY,{style:N.stat,children:[e," ",n.stats[e]]},t.toString())})})]})},[]);return(0,z.jsx)(P.yo,{children:(0,z.jsx)(P.YW,{size:"A4",orientation:"portrait",style:N.page,children:(0,z.jsxs)(P.Ss,{wrap:!1,style:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative"},children:[l,(0,z.jsx)("div",{style:N.middleSection,children:(0,z.jsx)("div",{style:{display:"flex",overflow:"hidden",height:"100%",position:"relative"},children:(0,z.jsx)(o,{src:i[0].url,style:N.image})})}),a]})})})};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}P.KQ.register(D);var I=P.vv.create({page:{flexDirection:"column",backgroundColor:"#FFF",height:"100%",width:"100%"},topSection:{display:"flex",position:"relative",flexDirection:"row",flexGrow:1,height:"100%",width:"100%",overflow:"hidden",alignItems:"center",justifyContent:"center",padding:8},imgWrapper:{display:"flex",overflow:"hidden",height:"50%",position:"relative",width:"50%"},img:{width:"100%",height:"100%",objectFit:"contain",objectPositionY:"top",objectPositionX:"right",padding:8},bottomSection:{height:"120px",display:"flex",flexDirection:"row",alignItems:"center",padding:8},bottomLeft:{width:"100%",padding:8},bottomRight:{width:"300px",textAlign:"right",padding:8},statsGrid:{display:"flex",flexDirection:"row",flexWrap:"wrap"},stat:{fontSize:"10px",marginRight:"10px",textTransform:"capitalize"},talentName:{fontSize:"18px",marginBottom:8}});let _=function(e){var t,n,i=e.data,r=(null===(t=i.subPortfolio)||void 0===t?void 0:t.media)&&function(e){for(var t=[],n=0;n<e.length;n+=5)t.push(e.slice(n,n+5));return t}(null===(n=i.subPortfolio)||void 0===n?void 0:n.media);return(0,z.jsx)(P.yo,{children:null==r?void 0:r.map(function(e,t){return 0===t&&(0,z.jsx)(P.YW,{size:"A4",orientation:"landscape",style:I.page,children:(0,z.jsxs)(P.Ss,{style:{display:"flex",height:"100%",width:"100%",position:"relative",flexDirection:"column"},children:[(0,z.jsx)("div",{style:I.topSection,children:(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"row",overflow:"hidden",height:"100%",width:"100%"},children:[(0,z.jsx)("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:(0,z.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:(0,z.jsx)("div",{style:W(W({},I.imgWrapper),{},{height:"100%",width:"100%"}),children:e[0]&&(0,z.jsx)(P._V,{debug:!1,src:e[0].url||"",style:W(W({},I.img),{},{objectPositionX:"left"})})})})}),(0,z.jsx)("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:(0,z.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap"},children:[(0,z.jsx)("div",{style:W({},I.imgWrapper),children:e[1]&&(0,z.jsx)(P._V,{debug:!1,src:e[1].url||"",style:W({},I.img)})}),(0,z.jsx)("div",{style:W({},I.imgWrapper),children:e[2]&&(0,z.jsx)(P._V,{debug:!1,src:e[2].url||"",style:W({},I.img)})}),(0,z.jsx)("div",{style:W({},I.imgWrapper),children:e[3]&&(0,z.jsx)(P._V,{debug:!1,src:e[3].url||"",style:W({},I.img)})}),(0,z.jsx)("div",{style:W({},I.imgWrapper),children:e[4]&&(0,z.jsx)(P._V,{debug:!1,src:e[4].url||"",style:W({},I.img)})})]})})]})}),(0,z.jsxs)("div",{style:I.bottomSection,children:[(0,z.jsxs)("div",{style:I.bottomLeft,children:[(0,z.jsxs)(P.EY,{style:I.talentName,children:[i.firstName," ",i.lastName]}),(0,z.jsx)("div",{style:I.statsGrid,children:(null==i?void 0:i.stats)&&Object.keys(i.stats).map(function(e,t){return i.stats[e]&&(0,z.jsxs)(P.EY,{style:I.stat,children:[e," ",i.stats[e]]},t.toString())})})]}),(0,z.jsx)("div",{style:I.bottomRight,children:(0,z.jsx)(P._V,{src:"/static/images/logo-print.png",style:k})})]})]})},t.toString())})})};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}P.KQ.register(D);var G=P.vv.create({page:{flexDirection:"column",backgroundColor:"#FFF",height:"100%",width:"100%",padding:"24px"},topSection:{display:"flex",position:"relative",flexDirection:"row",flexGrow:1,height:"100%",width:"100%",overflow:"hidden",alignItems:"center",justifyContent:"center"},image:{objectFit:"contain"},bottomSection:{height:"100px",marginTop:"24px",display:"flex",flexDirection:"row",alignItems:"center"},bottomLeft:{width:"100%"},bottomRight:{width:"300px",textAlign:"right"},statsGrid:{display:"flex",flexDirection:"row",flexWrap:"wrap"},stat:{fontSize:"10px",marginRight:"10px",fontFamily:D.family,textTransform:"capitalize"},talentName:{fontSize:"15px",fontFamily:D.family}});let Y=function(e){var t,n=e.data,i=(0,S.UH)(null===(t=n.subPortfolio)||void 0===t?void 0:t.media),r=h.useCallback(function(e){return(0,z.jsx)(P._V,H({},e))},[!1]),o=h.useMemo(function(){return(0,z.jsxs)("div",{style:G.bottomSection,children:[(0,z.jsxs)("div",{style:G.bottomLeft,children:[(0,z.jsxs)(P.EY,{style:G.talentName,children:[n.firstName," ",n.lastName]}),(0,z.jsx)("div",{style:G.statsGrid,children:(null==n?void 0:n.stats)&&Object.keys(n.stats).map(function(e,t){return n.stats[e]&&(0,z.jsxs)(P.EY,{style:G.stat,children:[e," ",n.stats[e]]},t.toString())})})]}),(0,z.jsx)("div",{style:G.bottomRight,children:(0,z.jsx)(r,{src:{uri:"/static/images/logo-print.png"},style:k})})]})},[]);return(0,z.jsx)(P.yo,{children:i.map(function(e,t){return Array.isArray(e)?(0,z.jsx)(P.YW,{size:"A4",orientation:"landscape",style:G.page,children:(0,z.jsxs)(P.Ss,{wrap:!1,style:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative"},children:[(0,z.jsxs)("div",{style:G.topSection,children:[(0,z.jsx)("div",{style:{display:"flex",overflow:"hidden",height:"100%",position:"relative"},children:(0,z.jsx)(r,{src:e[0].url,style:H(H({},G.image),{},{paddingRight:6})})}),(0,z.jsx)("div",{style:{display:"flex",overflow:"hidden",height:"100%",position:"relative"},children:(0,z.jsx)(r,{src:e[1].url,style:H(H({},G.image),{},{paddingLeft:6})})})]}),o]})},t.toString()):(0,z.jsx)(P.YW,{size:"A4",orientation:"landscape",style:G.page,children:(0,z.jsxs)(P.Ss,{wrap:!1,style:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative"},children:[(0,z.jsx)("div",{style:G.topSection,children:(0,z.jsx)("div",{style:{display:"flex",overflow:"hidden",height:"100%",position:"relative"},children:(0,z.jsx)(r,{src:e.url,style:G.image})})}),o]})},t.toString())})})};function B(e){var t=e.data,n=e.layoutName,i=e.portfolioName,r=e.children,l=(e.isFetching,e.className),a={twoImages:(0,z.jsx)(Y,{data:t}),compCard:(0,z.jsx)(_,{data:t}),oneImage:(0,z.jsx)(F,{data:t})},c=(0,P.cQ)({document:a[n]}),d=(0,o.A)(c,2),p=d[0],u=d[1],f=h.useState(!1),g=(0,o.A)(f,2),m=g[0],v=g[1],x=h.useState(!1),y=(0,o.A)(x,2),b=y[0],w=y[1],S=p.loading,D=h.useRef(null);return h.useEffect(function(){t&&u(a[n]),v(!1),w(!1)},[i,t]),h.useEffect(function(){m&&w(!1)},[m]),h.useEffect(function(){if(!p.loading&&p.url&&b){var e;null===(e=D.current)||void 0===e||e.click(),v(!0)}},[b,p]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(s.A,{onClick:function(){w(!0)},className:l,children:[(0,z.jsxs)("div",{style:{position:"absolute"},children:[m&&(0,z.jsx)(A.A,{}),b&&S&&(0,z.jsx)(j.A,{})]}),r]}),(0,z.jsx)(E.A,{ref:D,href:p.url||"#",download:"".concat(O()(null==t?void 0:t.fullName)," - ").concat(O()(i)," ").concat(O()(n)),style:{visibility:"hidden",display:"none"},children:"download"})]})}var V=n(14792),L=n.n(V),q=n(12587),K=n(46967),Q=n(66225);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?X(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var U=d.Df.create(function(e){return{selectWrapper:{paddingBottom:e.theme.spacing(4),maxWidth:260,margin:"auto"}}});function J(e){var t,n=e.value,r=e.onChange,o=U().classes,l=(0,x.useRouter)().query,a=l.division,s=l.gender,c=Number(l.id),d=(0,Q.Ay)({talentId:c,division:a,gender:s}),h=d.data;d.isFetching;var p=null==h?void 0:h.pages.reduce(function(e,t){var n,r,o=(0,m.ni)(v.d,null==e?void 0:e.node),l=(0,m.ni)(v.d,null==t?void 0:t.node);return{node:Z(Z({},l),{},{subPortfolio:Z(Z({},null==l?void 0:l.subPortfolio),{},{media:[].concat((0,i.A)((null==o||null===(n=o.subPortfolio)||void 0===n?void 0:n.media)||[]),(0,i.A)((null==l||null===(r=l.subPortfolio)||void 0===r?void 0:r.media)||[]))})})}}),u=(0,m.ni)(v.d,null==p?void 0:p.node),f=null==u||null===(t=u.subPortfolios)||void 0===t?void 0:t.map(function(e){return e&&(null==e?void 0:e.id)}).filter(function(e){return!!e}),g=(0,y.HD)(f);return(0,z.jsx)(z.Fragment,{children:g&&(null==g?void 0:g.length)>0&&(0,z.jsx)("div",{className:o.selectWrapper,children:(0,z.jsxs)(q.A,{select:!0,value:n,onChange:r,variant:"outlined",fullWidth:!0,slotProps:{select:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}}},children:[(0,z.jsx)(K.A,{value:a,children:"Portfolio"}),g.map(function(e,t){return(0,z.jsx)(K.A,{value:e,children:L()(e)},t)})]})})})}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var et=d.Df.create(function(e){return{button:{marginBottom:e.theme.spacing(2)},subtitle:{marginBottom:20},actionsContainer:{display:"flex",gap:10,justifyContent:"flex-end",alignItems:"center",paddingTop:20,paddingBottom:20},contentContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},paper:{backgroundColor:"rgba(255,255,255,0.95)","& .material-symbols-outlined":{fontSize:40}},downloadGrid:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",gap:30,marginBottom:30}}}),en={oneImage:{text:"1 Image",icon:(0,z.jsx)(f.A,{})},twoImages:{text:"2 Per Page",icon:(0,z.jsx)(p.A,{})},compCard:{text:"Comp Card",icon:(0,z.jsx)(u.A,{})}};function ei(e){var t,n=e.open,r=e.onClose,d=et(),p=d.classes,u=d.cx,f=(0,x.useRouter)().query,w=f.division,O=f.gender,P=Number(f.id),E=h.useState(w),A=(0,o.A)(E,2),S=A[0],D=A[1],k=S===w?void 0:S,C=null===(t=b.h.fullScreenLayoutConfig)||void 0===t||null===(t=t[O])||void 0===t?void 0:t[w],N=(0,Q.Ay)({talentId:P,division:C?S:w,gender:O,subDivision:C?void 0:k}),M=N.data,F=N.isFetching,R=null==M?void 0:M.pages.reduce(function(e,t){var n,r,o=(0,m.ni)(v.d,null==e?void 0:e.node),l=(0,m.ni)(v.d,null==t?void 0:t.node);return{node:ee(ee({},l),{},{subPortfolio:ee(ee({},null==l?void 0:l.subPortfolio),{},{media:[].concat((0,i.A)((null==o||null===(n=o.subPortfolio)||void 0===n?void 0:n.media)||[]),(0,i.A)((null==l||null===(r=l.subPortfolio)||void 0===r?void 0:r.media)||[]))})})}}),W=(0,m.ni)(v.d,null==R?void 0:R.node),I=function(){r()},_=(0,y.jc)(S);return(0,z.jsxs)(l.A,{open:n,onClose:I,fullScreen:!0,TransitionProps:{onExited:function(){D(w)}},PaperProps:{className:p.paper},children:[(0,z.jsx)(a.A,{className:p.actionsContainer,children:(0,z.jsx)(s.A,{className:u("navlink"),onClick:I,children:(0,z.jsx)(g.A,{code:"î"})})}),(0,z.jsxs)(a.A,{className:p.contentContainer,children:[(0,z.jsx)("div",{style:{position:"sticky",top:31,zIndex:1},children:(0,z.jsxs)("div",{style:{maxWidth:450,width:"100%",margin:"0 auto"},children:[(0,z.jsx)(c.A,{variant:"h3",align:"center",children:"Download PDF"}),(0,z.jsx)(c.A,{component:"p",className:u(p.subtitle),align:"center",children:"Select a Portfolio and Print Layout to Download."}),(0,z.jsx)(J,{value:S,onChange:function(e){D(e.target.value)}})]})}),(0,z.jsx)("div",{className:p.downloadGrid,children:F?(0,z.jsx)("div",{children:(0,z.jsx)(j.A,{})}):null==_?void 0:_.map(function(e){return(0,z.jsxs)("div",{children:[(0,z.jsx)(B,{isFetching:F,data:W,portfolioName:S,layoutName:e,onClick:I,className:p.button,children:en[e].icon}),(0,z.jsx)(c.A,{align:"center",children:en[e].text})]},e)})},S)]}),(0,z.jsx)("div",{})]})}},50477:()=>{}}]);
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.