1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4173],{91624:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/people-vote-award",function(){return n(26417)}])},66713:function(e,t,n){"use strict";var o=n(8014),r=n(34237),i=n(12048),a=n(80427),s=n(49430),l=n(63940);t.Z=function(e){var t=e.loading,n=e.bg;return(0,o.jsx)(a.M,{exitBeforeEnter:!0,children:t&&(0,o.jsx)(r.kC,{as:s.E.div,align:"center",justify:"center",h:"100vh",position:"fixed",w:"100vw",zIndex:20,top:"0",bg:(0,i.wc)(n,.4),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,o.jsx)(l.Z,{})})})}},24111:function(e,t,n){"use strict";var o=n(5447),r=n(99728),i=n(27427),a=n(8014),s=n(34237),l=n(40137),c=n(80174),d=n(90319),u=n(75657),x=n.n(u),p=n(77567),h=n(56168);t.Z=function(e){var t=e.sponsors,n=e.iconColor,u=void 0===n?"base.6":n,v=e.logoSize,g=void 0===v?150:v,f=e.variant,b=void 0===f?"light":f,m=e.iconSize,j=void 0===m?24:m,k=e.prefixVariant,C=void 0===k?"overline":k,y=(0,i.Z)(e,["sponsors","iconColor","logoSize","variant","iconSize","prefixVariant"]),w=t.find((function(e){return e.type===c.wF.TITLE})),Z="light"===b?null===w||void 0===w?void 0:w.light_image:null===w||void 0===w?void 0:w.image,L=(0,h.useMemo)((function(){return+(((null===Z||void 0===Z?void 0:Z.height)||0)/((null===Z||void 0===Z?void 0:Z.width)||1)*g).toFixed(0)}),[null===Z||void 0===Z?void 0:Z.height,null===Z||void 0===Z?void 0:Z.width,g]);return w&&Z&&t.length?(0,a.jsx)(x(),{href:w.url,passHref:!0,children:(0,a.jsxs)(s.kC,(0,r.Z)((0,o.Z)({as:"a",target:"_blank",pointerEvents:"auto",minH:"46px",align:"center"},y),{children:[(0,a.jsxs)(s.kC,{align:"center",p:"0 10px 0 0",children:[(0,a.jsx)(l.Z,{icon:"flashicon",fill:u,mr:"10px",size:j}),(0,a.jsx)(s.xv,{variant:C,color:"light"===b?"base.6":"base.1",whiteSpace:"nowrap",children:"Powered by"})]}),(0,a.jsx)(s.kC,{position:"relative",p:"0 10px",align:"center",children:(0,a.jsx)(p.Z,{src:(0,d.Jn)(Z.url),height:L,width:g,alt:w.name})})]}))}):null}},93307:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var o=n(5447),r=n(99728),i=n(8014),a=n(34237),s=n(77567),l=n(12048),c=n(39266),d=n(51123),u=n(75657),x=n.n(u),p=n(14131),h=function(e){var t=e.title,n=e.subtitle,u=e.button,h=e.bg,v=e.overlay,g=void 0===v?"base.1":v,f=e.buttonVariant,b=void 0===f?"accent1.3.fill":f,m=(0,l.oe)(g,.2);return(0,i.jsxs)(a.kC,{p:"40px",direction:"column",justify:"space-between",w:"100%",position:"relative",overflow:"hidden",_before:(0,r.Z)((0,o.Z)({},c.cg),{bg:m,zIndex:1}),children:[(0,i.jsx)(s.Z,{alt:t,src:h,layout:"fill",objectFit:"cover"}),(0,i.jsxs)(a.kC,{position:"relative",direction:"column",w:{base:"100%",md:"75%",xl:"50%"},zIndex:2,flex:"1",children:[(0,i.jsx)(d.Z,{initialY:20,children:(0,i.jsx)(a.xv,{variant:"titleM",color:"base.6",mb:"10px",children:t})}),(0,i.jsx)(d.Z,{initialY:20,delay:.15,children:(0,i.jsx)(a.xv,{variant:"description",color:"base.6",mb:"40px",children:n})}),(0,i.jsx)(d.Z,{initialY:20,delay:.3,mt:"auto",children:(0,i.jsx)(x(),{href:u.href,passHref:!0,children:(0,i.jsx)(p.Z,{as:"a",variant:b,size:"md",children:u.label})})})]})]})},v=n(4822),g=n(76044),f=n(98421),b=n(90319),m=[{title:"Discover Our Artist Directory",subtitle:"Meet the most exemplary photographers working today as well as our world-class judges.",button:{href:f.p.ARTISTS,label:"Browse Artists"},bg:(0,b.QO)("pva/cta_left.jpg")},{title:"".concat(v.tV," Magazine"),subtitle:"Interviews with our distinguished judges and artists, tips for creating successful entries, and other resources are available in our dedicated online journal for photographers.",button:{href:f.p.BLOG,label:"Browse Magazine"},bg:(0,b.QO)("pva/cta_right.jpg")}],j=function(){var e=(0,g.WI)().secondary,t=(0,g.ZP)("footerCta",{bg:"base.1",overlayColors:["base.1","base.1"],buttonVariant:"accent1.3.fill"}),n=t.bg,s=t.overlayColors,l=t.buttonVariant;return(0,i.jsx)(a.kC,{bg:n,borderTop:"1px solid",borderColor:e,p:{base:"20px",lg:"60px"},children:(0,i.jsx)(a.kC,{columnGap:"40px",direction:{base:"column",md:"row"},w:"100%",children:m.map((function(e,t){return(0,i.jsx)(h,(0,r.Z)((0,o.Z)({},e),{overlay:null===s||void 0===s?void 0:s[t],buttonVariant:l}),t)}))})})}},26417:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return Re},default:function(){return De}});var o=n(43692),r=n(5447),i=n(99728),a=n(84911),s=n(44453),l=n.n(s),c=n(8014),d=n(34237),u=n(63940),x=n(27427),p=n(65090),h=n(76044),v=n(21350),g=n(85085),f=n(56168),b=n(11971),m=n(80174),j=n(71246),k=n(34044),C=n(18623),y=n(98421),w=n(72571),Z=n(40137),L=n(60481),_=function(e){var t=e.contest,n=e.colorTheme,o=(0,h.WI)().secondary,a=t.total_votes,s=void 0===a?500:a;return(0,c.jsxs)(d.kC,{flex:"1",align:"center",p:{base:"20px",md:"20px 60px"},borderBottom:{base:"1px solid",md:"none"},borderBottomColor:o,borderLeft:{base:"none",xl:"1px solid"},borderLeftColor:{xl:o},w:{base:"100%",lg:"auto"},order:{base:1,lg:2},direction:{base:"column-reverse",lg:"row"},children:[(0,c.jsxs)(d.kC,{align:"center",w:{base:"100%",lg:"auto"},mt:{base:"20px",lg:0},display:s&&s>500?"flex":"none",children:[(0,c.jsx)(Z.Z,{icon:"voteicon",fill:null===n||void 0===n?void 0:n.secondaryAccentColor,mr:"10px",order:1}),(0,c.jsx)(d.xv,{variant:"numeralsM",mr:"10px",order:2,children:s}),(0,c.jsx)(d.xv,{variant:"subtitleL",color:null===n||void 0===n?void 0:n.secondaryAccentColor,order:{base:0,md:3},mr:"auto",children:"Total Votes"})]}),(0,c.jsxs)(d.kC,{ml:"auto",direction:{base:"row",lg:"column"},w:{base:"100%",lg:"auto"},children:[(0,c.jsx)(d.xv,{variant:"subtitleL",mb:{base:0,lg:"10px"},mr:"auto",children:"Closes in:"}),(0,c.jsx)(L.ZP,{date:t.voting_deadline,renderer:function(e){return(0,c.jsx)(w.Z,(0,i.Z)((0,r.Z)({},e),{short:!0,accentColor:null===n||void 0===n?void 0:n.secondaryAccentColor,suffixColor:null===n||void 0===n?void 0:n.countdownSuffixColor}))}})]})]})},S={p:{base:"15px",lg:"20px 40px"},h:"100%",align:"center",justify:"center",cursor:"pointer",position:"relative",transition:"0.25s ease-in-out",_hover:{bg:"base.3","&:after":{height:"4px"}}},M={content:'""',position:"absolute",bottom:"-1px",left:0,right:0,transition:"0.25s ease-in-out",background:"accent1.3"},A=(0,g.Pi)((function(e){var t=e.contest,n=e.tabsConfig,o=e.activeTab,a=e.onChange,s=e.filtersConfig,l=e.filterCallback,u=e.colorTheme,p=(0,j.Z)().isMobile,v=(0,h.WI)().secondary;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d.kC,{id:"pva-filter-wrapper",bg:null===u||void 0===u?void 0:u.bg,direction:"column",children:(0,c.jsx)(d.kC,{color:null===u||void 0===u?void 0:u.textColor,borderTop:"1px solid",borderTopColor:v,borderBottom:{lg:"1px solid"},borderBottomColor:{lg:v},p:"0 20px",children:(0,c.jsx)(d.kC,{align:"center",flexWrap:"wrap",m:"0 -20px",w:"calc(100% + 40px)",children:(0,c.jsx)(_,{contest:t,colorTheme:u})})})}),(0,c.jsxs)(d.kC,{bg:null===u||void 0===u?void 0:u.bg,color:null===u||void 0===u?void 0:u.textColor,direction:"column",position:"sticky",top:C.w.headerPinned?"".concat(y.Mz,"px"):0,zIndex:"9",transition:"all 0.2s ease-in-out 0s",children:[(0,c.jsx)(d.kC,{position:"relative",p:{base:"0",md:"0 60px"},_after:{content:'""',position:"absolute",bottom:"-1px",left:0,right:0,width:"100%",background:"base.3",height:"1px",display:"".concat(p?"none":"block")},children:n.map((function(e,t){var n=e.label,s=e.value,l=(0,x.Z)(e,["label","value"]);return(0,f.createElement)(d.kC,(0,i.Z)((0,r.Z)((0,i.Z)((0,r.Z)({},l),{key:"pseudo--tab--".concat(t)}),S),{borderRightColor:null===u||void 0===u?void 0:u.primaryAccentColor,bg:o===t?null===u||void 0===u?void 0:u.primaryAccentColor:"transparent",_after:(0,i.Z)((0,r.Z)({},M),{height:t!==o?"0":"2px",bg:null===u||void 0===u?void 0:u.secondaryAccentColor}),_hover:{bg:null===u||void 0===u?void 0:u.primaryAccentColor,"&:after":{height:"4px"}},onClick:function(){return a(t,s)}}),(0,c.jsx)(d.xv,{variant:"subtitleS",children:n}))}))}),(0,c.jsx)(k.Z,{p:{base:"10px 20px",md:"20px 60px"},filtersConfig:s,callback:l,colorTheme:u})]})]})})),P=(0,g.Pi)((function(e){var t=e.contest,n=e.tabsConfig,o=e.activeTab,a=e.onChange,s=e.filtersConfig,l=e.filterCallback,u=e.colorTheme,x=C.w.headerPinned,p=(0,h.WI)().secondary;return(0,c.jsxs)(d.kC,{id:"pva-filter-wrapper",bg:null===u||void 0===u?void 0:u.bg,direction:"column",position:"sticky",top:x?"".concat(y.Mz,"px"):0,zIndex:x?9:1002,transition:"all 0.2s ease-in-out 0s",children:[(0,c.jsx)(d.kC,{color:null===u||void 0===u?void 0:u.textColor,borderTop:"1px solid",borderTopColor:p,borderBottom:"1px solid",borderBottomColor:p,p:"0 60px",children:(0,c.jsxs)(d.kC,{align:"center",flexWrap:"wrap",w:"100%",children:[(0,c.jsxs)(d.kC,{alignSelf:"stretch",align:"center",children:[(0,c.jsx)(d.xv,{p:"20px",pl:"0",variant:"subtitleL",children:"View:"}),(0,c.jsx)(d.kC,{alignSelf:"stretch",w:"auto",children:n.map((function(e,t){var n=e.label,s=e.value,l=e.width;return(0,c.jsx)(d.kC,(0,i.Z)((0,r.Z)({w:l},S),{borderRightColor:null===u||void 0===u?void 0:u.primaryAccentColor,bg:o===t?null===u||void 0===u?void 0:u.primaryAccentColor:"transparent",_after:(0,i.Z)((0,r.Z)({},M),{height:t!==o?"0":"2px",bg:null===u||void 0===u?void 0:u.secondaryAccentColor}),_hover:{bg:null===u||void 0===u?void 0:u.primaryAccentColor,"&:after":{height:"4px"}},onClick:function(){return a(t,s)},children:(0,c.jsx)(d.xv,{variant:"subtitleL",children:n})}),"pseudo--tab--".concat(t))}))})]}),(0,c.jsx)(_,{contest:t,colorTheme:u})]})}),(0,c.jsx)(k.Z,{p:"20px 60px",filtersConfig:s,callback:l,colorTheme:u})]})})),T=(0,g.Pi)((function(e){var t=e.filterCallback,n=e.entry_level,o=(0,x.Z)(e,["filterCallback","entry_level"]),i=(0,j.Z)().isLargeDesktop,s=b.T3.filters,l=b.T3.availableCategories,d=(0,h.ZP)("pvaFilter",{bg:"base.1",textColor:"base.6",primaryAccentColor:"base.3",secondaryAccentColor:"accent1.3",iconColor:"base.6",countdownSuffixColor:"support2.2"}),u={bg:d.bg,textColor:d.textColor,primaryAccentColor:d.primaryAccentColor,secondaryAccentColor:d.secondaryAccentColor,iconColor:d.iconColor,countdownSuffixColor:d.countdownSuffixColor},g=(0,f.useMemo)((function(){return[{label:"All",value:void 0,width:{base:"20%",lg:"auto"}},{label:(0,p.k4)(m.Kq.PROFESSIONAL),value:m.Kq.PROFESSIONAL,width:{base:"40%",lg:"auto"}},{label:(0,p.k4)(m.Kq.NON_PROFESSIONAL),value:m.Kq.NON_PROFESSIONAL,width:{base:"40%",lg:"auto"}}]}),[]),k=(0,f.useMemo)((function(){return[(0,b.GR)(n),{name:"Category",key:"category",options:[{label:"All",value:"all",selected:!1}].concat((0,a.Z)((0,a.Z)(l).sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){return{label:e.name,value:e.slug,selected:!1}})))),type:b.Zq.MULTIPLE}]}),[l,n]),C=function(e,n){e?(0,v.z)((function(){var e=s.findIndex((function(e){return"entry_level"===e.key})),t=s[e].options.findIndex((function(e){return e.value===n}));t>-1&&b.T3.toggleFilterValue(e,t)})):(0,v.z)((function(){var e=s.findIndex((function(e){return"entry_level"===e.key}));s[e].options.map((function(e){return e.selected=!1}))}
1)),t(b.T3.requestParams)},y=function(){var e,t,n=b.T3.filters.findIndex((function(e){return"entry_level"===e.key})),o=null===(e=b.T3.filters)||void 0===e||null===(t=e[n])||void 0===t?void 0:t.options.findIndex((function(e){return e.selected}));return o>-1?o+1:0};return i?(0,c.jsx)(P,(0,r.Z)({filterCallback:t,tabsConfig:g,activeTab:y(),onChange:C,filtersConfig:k,colorTheme:u},o)):(0,c.jsx)(A,(0,r.Z)({filterCallback:t,tabsConfig:g,activeTab:y(),onChange:C,filtersConfig:k,colorTheme:u},o))})),z=n(89195),V=n(17142),I=n(42483),E=n(14960),B=n(67995),O=n(47011),N=n(75923),W=n(37736),F=(0,f.createContext)({votedSet:new Set,setVoted:function(){return null},addIds:function(){return null},loaded:!1}),H=(0,f.memo)((function(e){var t=e.children,n=e.incomingIds,o=(0,f.useState)(n),r=o[0],i=o[1];(0,f.useEffect)((function(){i((function(e){var t=n.filter((function(t){return!e.includes(t)}));return t.length?(0,a.Z)(e).concat((0,a.Z)(t)):e}))}),[n]);var s=(0,f.useCallback)((function(e){i((function(t){var n=e.filter((function(e){return!t.includes(e)}));return n.length?(0,a.Z)(t).concat((0,a.Z)(n)):t}))}),[]),l=(0,W.Z)(r),d=l.loaded,u=l.ids,x=l.setVoted,p=(0,f.useMemo)((function(){return new Set(u)}),[u]),h=(0,f.useMemo)((function(){return{votedSet:p,setVoted:x,addIds:s,loaded:d}}),[p,x,s,d]);return(0,c.jsx)(F.Provider,{value:h,children:t})})),R=function(e){var t=e.children,n=e.ids;return(0,c.jsx)(H,{incomingIds:n,children:t})};function D(){return(0,f.useContext)(F)}var Q=n(46687),Y=(0,f.memo)((function(e){var t=e.entry,n=e.fadeDelay,o=e.isMobile,r=e.cardColor,i=e.siteUrl,a=e.contestName,s=e.contestYear,l=e.loaded,u=e.voted,x=e.onVote,p=e.onOpen,h=t.user,v=t.images,g={type:"frontend",data:{url:"".concat(i).concat(y.Kb.PCA,"/").concat(t.slug),artist_name:h.name,entry_title:t.title,contest_title:a,contest_year:s}},b={user:{slug:h.slug,name:h.name,profile_image:h.profile_image},subtitle:t.category.name},m=(0,f.useCallback)((function(){return x(t.id)}),[x,t.id]),j=(0,f.useCallback)((function(){return p(t.slug)}),[p,t.slug]);return(0,c.jsx)(B.Z,{fadeDelay:n,userSnippetConfig:b,images:v,slug:t.slug,url:y.Kb.PCA,emailConfig:g,color:o?r:"base.6",onClick:j,customCorner:(0,c.jsxs)(d.kC,{align:"center",gap:"20px",direction:{base:"row-reverse",md:"row"},pointerEvents:"auto",children:[(0,c.jsx)(Q.Z,{loaded:l,voted:u,setVoted:m,slug:t.slug,h:{base:"36px",md:"32px"}}),(0,c.jsx)(E.Z,{images:v,mr:"0",display:{base:"none",md:"flex"}})]})})})),q=function(e){var t=e.category,n=(0,N.BP)().setPopupEntrySlug,o=D(),r=o.votedSet,i=o.setVoted,a=o.loaded,s=(0,N.Xj)(),l=(0,O.L)().siteUrl,u=(0,j.Z)(),x=u.isMobile,p=u.isTablet,v=u.isDesktop,g=u.desktopUp,b=t.name,m=t.nominees,k=(0,f.useMemo)((function(){return x?1:p?2:v?3:g?4:1}),[g,v,x,p]),C=(0,f.useCallback)((function(e){n(e),(0,V.G7)({entry:e})}),[n]),y=(0,h.A7)(),w=y.textColor,Z=y.cardColor;return m.length?(0,c.jsxs)(d.kC,{p:"20px 0 50px",direction:"column",width:"100%",overflow:"hidden",children:[b?(0,c.jsx)(d.xv,{variant:"titleM",color:w,mb:"35px",p:{base:"0 20px",md:"0"},children:b}):null,(0,c.jsx)(I.Z,{columnsCount:3,gutter:x?"0px":"40px",breakpoints:{base:1,md:2,lg:3,xl:4},children:m.map((function(e,t){return(0,c.jsx)(Y,{entry:e,fadeDelay:t%k*.15,isMobile:x,cardColor:Z,siteUrl:l,contestName:s.name,contestYear:s.year,loaded:a,voted:r.has(e.id),onVote:i,onOpen:C},e.id)}))})]}):null},X=(0,g.Pi)((function(e){var t=e.categories,n=void 0===t?[]:t,o=n.some((function(e){return e.nominees.length})),r=(0,h.ZP)("pvaList",{bg:"base.1"}).bg;return o?(0,c.jsx)(d.kC,{direction:"column",bg:r,p:{base:"0px",md:"0 60px"},children:n.map((function(e){return(0,c.jsx)(q,{category:e},e.id)}))}):(0,c.jsx)(z.Z,{bg:r})})),G=n(72263),K=n(49823),U=n(66713),J=n(86228),$=n(234),ee=n(82852),te=(0,f.memo)((function(e){var t=e.slug,n=e.setSlug,i=e.closeSelf,s=e.onChange,u=e.colors,x=(0,j.Z)().isMobile,p=(0,f.useState)(!0),h=p[0],v=p[1],g=(0,f.useState)(null),b=g[0],m=g[1],k=(0,f.useState)(!1),C=k[0],y=k[1],w=D(),Z=w.votedSet,L=w.setVoted,_=w.addIds,S=w.loaded;(0,f.useEffect)((function(){b&&_([b.id].concat((0,a.Z)(b.related.map((function(e){return e.id})))))}),[b,_]);var M={loaded:S,voted:Z.has((null===b||void 0===b?void 0:b.id)||0),setVoted:L},A=(0,f.useCallback)((0,o.Z)(l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==(null===b||void 0===b?void 0:b.slug)){e.next=2;break}return e.abrupt("return");case 2:return v(!0),e.next=5,(0,K.ZP)({path:"/api/public/pva/".concat(t,"/")});case 5:n=e.sent.data,v(!1),n&&(m(n),s());case 8:case"end":return e.stop()}}),e)}))),[null===b||void 0===b?void 0:b.slug,s,t]);return(0,f.useEffect)((function(){A()}),[A]),(0,c.jsxs)(d.kC,{position:"relative",direction:"column",children:[(0,c.jsx)(U.Z,{loading:h,bg:u.bg}),b&&(0,c.jsx)(N.Iq,{value:{contest:{name:b.contest.name,year:b.contest.year}},children:(0,c.jsxs)(d.kC,{direction:"column",bg:u.bg,children:[(0,c.jsx)(d.kC,{direction:"column",w:"100%",top:"0",position:"fixed",zIndex:"10",children:x?(0,c.jsx)(J.Z,{user:b.user,detailedVisible:C,onBackClick:i}):(0,c.jsx)(ee.Z,(0,r.Z)({nominee:b,onBackClick:i},M))}),(0,c.jsx)($.Z,{nominee:b,voteProps:M,votedIds:Array.from(Z),descriptionInView:C,setDescriptionInView:y,navigate:n})]})})]})})),ne=function(e){var t=e.entrySlug,n=e.setEntrySlug,o=(0,f.useRef)(null),r=!!t,i=(0,h.ZP)("singlePva",{bg:"base.1",color:"base.6",accentColor:"accent1.3"}),a=function(){return n(null)};return(0,c.jsx)(G.u_,{isOpen:r,onClose:a,size:"full",motionPreset:"slideInBottom",scrollBehavior:"inside",children:(0,c.jsx)(G.hz,{margin:0,rounded:"none",className:"entry-popup",bg:i.bg,color:i.color,children:(0,c.jsx)(G.fe,{p:0,ref:o,children:t&&(0,c.jsx)(te,{slug:t,setSlug:n,closeSelf:a,colors:i,onChange:function(){o.current&&o.current.scrollTo({top:0,behavior:"smooth"})}})})})})},oe=n(75332),re=n(7734),ie=n(3944),ae=n(51123),se=n(9211),le=n(90373),ce=n(77567),de=n(90319),ue=n(4822),xe=n(79843),pe=n(14131),he=["The People\u2019s Vote Awards lets you be the judge.","At each ".concat(ue.tV," contest, nominated images will be automatically entered to win the People\u2019s Vote Awards where you will decide the winners in each category."),"Why? Because our community is what makes our network so special, and supporting one another is at the core of what we do.","You can vote for as many images as you\u2019d like, and we encourage you to explore the gallery below and to share the photographers you love. "],ve=function(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(d.kC,{direction:"column",alignSelf:"stretch",maxW:{base
1:"100%",lg:"360px"},mt:{base:"30px",lg:"60px"},mr:{base:"0",lg:"60px"},children:[(0,c.jsx)(d.xv,{variant:"subtitleSpacedOutL",color:"base.3",children:"About"}),(0,c.jsx)(d.xv,{mt:"20px",mb:"40px",variant:"titleXL",children:"People\u2019s Vote Awards"}),(0,c.jsx)(d.kC,{mt:"auto",mb:"0",className:"adaptive-image",children:(0,c.jsx)(se.Z,{objectFit:"cover",src:(0,de.QO)("pva/intro_left.jpg"),layout:"intrinsic",width:360,height:239,alt:"People's Vote Award",caption:xe.o.pva.left})})]}),(0,c.jsx)(d.kC,{mr:"100px",ml:"auto",children:(0,c.jsx)(se.Z,{objectFit:"cover",src:(0,de.QO)("pva/intro_right.jpg"),layout:"intrinsic",width:260,height:390,alt:"People's Vote Award",caption:xe.o.pva.right})})]})},ge=function(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d.xv,{mt:"30px",variant:"subtitleSpacedOutL",color:"base.3",children:"About"}),(0,c.jsx)(d.xv,{mt:"10px",mb:"20px",variant:"titleXL",children:"People\u2019s Vote Awards"}),(0,c.jsxs)(d.kC,{direction:"row",align:"flex-start",mt:"30px",w:"100%",children:[(0,c.jsx)(d.kC,{w:{base:"100%",sm:"75%"},mr:{base:0,sm:"-40px"},className:"adaptive-image",position:"relative",children:(0,c.jsx)(ae.Z,{initialY:0,w:"100%",children:(0,c.jsx)(ce.Z,{objectFit:"cover",src:(0,de.QO)("pva/pva_intro_2.jpg"),layout:"responsive",width:360,height:239,alt:"peoples vote awards intro image 1"})})}),(0,c.jsx)(d.xu,{position:"absolute",display:{base:"flex",sm:"none"},children:(0,c.jsx)(pe.Z,{top:"20px",left:"20px",leftIcon:(0,c.jsx)(Z.Z,{icon:"voteicon",fill:"base.1"}),bg:"accent1.3",size:"sm",borderRadius:"4px",pointerEvents:"none",children:(0,c.jsx)(d.xv,{variant:"ctaSecondary",color:"base.1",children:"Voted"})})}),(0,c.jsx)(d.kC,{flex:1,mt:"40px",zIndex:2,position:"relative",display:{base:"none",sm:"flex"},children:(0,c.jsx)(ae.Z,{initialY:0,delay:.3,children:(0,c.jsx)(ce.Z,{objectFit:"cover",src:(0,de.QO)("pva/pva_intro.jpg"),layout:"intrinsic",width:260,height:390,alt:"peoples vote awards intro image 2"})})})]})]})},fe=function(){var e=(0,j.Z)().tabletDown;return(0,c.jsx)(le.Z,{children:(0,c.jsxs)(d.kC,{direction:{base:"column",lg:"row"},w:"100%",align:"flex-start",children:[e?(0,c.jsx)(ge,{}):(0,c.jsx)(ve,{}),(0,c.jsx)(d.Kq,{m:{base:"40px 0 20px",lg:"60px 0"},spacing:{base:"15px",lg:"25px"},maxW:{base:"100%",lg:"300px"},alignSelf:"center",children:he.map((function(e,t){return(0,c.jsx)(d.xv,{variant:"paragraphL",children:e},t)}))})]})})},be=n(12048);var me=function(e){var t=(0,be.rd)("accent1.3"),n=(0,be.rd)("base.1");return(0,c.jsxs)("svg",(0,i.Z)((0,r.Z)({width:214,height:82,viewBox:"0 0 214 82",fill:"none"},e),{children:[(0,c.jsx)("rect",{x:.5,y:26.5,width:29,height:29,rx:3.5,stroke:n}),(0,c.jsx)("rect",{x:49,y:1,width:30,height:30,rx:4,fill:t,stroke:n}),(0,c.jsx)("path",{d:"M70 22l-5.135-12h-1.749L58 22h1.825l1.222-3.025h5.906L68.194 22H70zm-3.593-4.327h-4.814L64 11.775l2.407 5.898z",fill:n}),(0,c.jsx)("rect",{x:49,y:51,width:30,height:30,rx:4,stroke:n}),(0,c.jsx)("path",{d:"M64.704 72C67.43 72 69 70.699 69 68.67c0-1.402-.794-2.433-2.184-2.924 1.119-.523 1.679-1.402 1.679-2.653 0-1.96-1.499-3.093-4.116-3.093H59v12h5.704zm-.235-5.544c1.823 0 2.834.693 2.834 2.13 0 1.386-.938 2.079-2.834 2.079h-3.79v-4.209h3.79zm-.144-5.104c1.679 0 2.527.642 2.527 1.927 0 1.335-.848 1.994-2.527 1.994h-3.646v-3.92h3.646z",fill:n}),(0,c.jsx)("path",{d:"M29.5 41H35a4 4 0 004-4V20a4 4 0 014-4h6.5",stroke:n}),(0,c.jsx)("path",{d:"M79 16h30M79 66h30M146 16h30M146 66h30",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M29.5 41H35a4 4 0 014 4v17a4 4 0 004 4h6.5",stroke:n}),(0,c.jsx)("path",{d:"M5 36h20M7 41h16M9 46h12M109 24.5l11.246-12.438a2 2 0 012.899-.071l7.303 7.322a2 2 0 002.849-.017l2.001-2.055a2 2 0 012.884.019L146 25.5",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("ellipse",{cx:137.967,cy:7.25,rx:3.164,ry:3.25,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:109,y:1,width:37,height:30,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M109 74.5l11.246-12.438a2 2 0 012.899-.071l7.303 7.322a2 2 0 002.849-.017l2.001-2.055a2 2 0 012.884.019L146 75.5",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("ellipse",{cx:137.967,cy:57.25,rx:3.164,ry:3.25,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:109,y:51,width:37,height:30,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M176 24.5l11.246-12.438a2 2 0 012.899-.071l7.303 7.322a2 2 0 002.849-.017l2.001-2.055a2 2 0 012.884.019L213 25.5",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("ellipse",{cx:204.967,cy:7.25,rx:3.164,ry:3.25,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:176,y:1,width:37,height:30,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M176 74.5l11.246-12.438a2 2 0 012.899-.071l7.303 7.322a2 2 0 002.849-.017l2.001-2.055a2 2 0 012.884.019L213 75.5",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("ellipse",{cx:204.967,cy:57.25,rx:3.164,ry:3.25,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:176,y:51,width:37,height:30,rx:4,stroke:n,strokeLinecap:"round"})]}))};var je=function(e){var t=(0,be.rd)("accent1.3"),n=(0,be.rd)("base.1");return(0,c.jsxs)("svg",(0,i.Z)((0,r.Z)({width:229,height:81,viewB
1ox:"0 0 229 81",fill:"none"},e),{children:[(0,c.jsx)("path",{d:"M1 39.582L20.948 18.1a2 2 0 012.863-.07l14.357 14.015a2 2 0 002.811-.017l5.38-5.379a2 2 0 012.846.019l14.183 14.556",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:49.844,cy:11.261,r:5.336,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:1,y:1,width:62.388,height:49.254,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M83.389 39.582L103.337 18.1a2 2 0 012.862-.07l14.358 14.015a2 2 0 002.811-.017l5.407-5.407a2 2 0 012.819-.01L133 28",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:132.232,cy:11.261,r:5.336,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M119.5 50.254H87.389a4 4 0 01-4-4V5a4 4 0 014-4h54.388a4 4 0 014 4v20.627M165.776 39.582L185.724 18.1a2 2 0 012.863-.07l14.357 14.015a2 2 0 002.812-.017l5.379-5.379a2 2 0 012.846.019l14.183 14.556",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:214.62,cy:11.261,r:5.336,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:165.776,y:1,width:62.388,height:49.254,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:142,cy:48,r:19,fill:t,stroke:n}),(0,c.jsx)("path",{d:"M142 54.556c5.931 0 10-4.788 10-6.278C152 46.78 147.923 42 142 42c-5.846 0-10 4.78-10 6.278 0 1.49 4.147 6.278 10 6.278zm0-1.235c-4.764 0-8.595-4.016-8.595-5.043 0-.865 3.831-5.042 8.595-5.042 4.749 0 8.595 4.177 8.595 5.042 0 1.027-3.846 5.043-8.595 5.043zm0-1.004a4.053 4.053 0 004.046-4.039A4.019 4.019 0 00142 44.239c-2.255 0-4.062 1.784-4.054 4.039A4.06 4.06 0 00142 52.317zm0-2.71a1.342 1.342 0 01-1.344-1.329c0-.734.603-1.328 1.344-1.328.734 0 1.336.594 1.336 1.328A1.34 1.34 0 01142 49.606z",fill:n}),(0,c.jsx)("path",{d:"M155.5 61.5l3 3M159.668 63.551a2 2 0 012.751-.074l11.011 9.887a2 2 0 01.078 2.902l-3.242 3.242a2 2 0 01-2.902-.078l-9.887-11.011a2 2 0 01.074-2.75l2.117-2.118z",stroke:n})]}))};var ke=function(e){var t=(0,be.rd)("accent1.3"),n=(0,be.rd)("base.1");return(0,c.jsxs)("svg",(0,i.Z)((0,r.Z)({width:229,height:81,viewBox:"0 0 229 81",fill:"none"},e),{children:[(0,c.jsx)("path",{d:"M1 69.582L20.948 48.1a2 2 0 012.863-.07l14.357 14.015a2 2 0 002.811-.017l5.38-5.379a2 2 0 012.846.019l14.183 14.556",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M30 31H5a4 4 0 00-4 4v41.254a4 4 0 004 4h54.388a4 4 0 004-4V55.627M83.389 69.582L103.337 48.1a2 2 0 012.862-.07l14.358 14.015a2 2 0 002.811-.017l5.379-5.379a2 2 0 012.847.019l14.183 14.556",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:132.232,cy:41.261,r:5.336,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:83.389,y:31,width:62.388,height:49.254,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M166 69.582L185.948 48.1a2 2 0 012.863-.07l14.357 14.015a2 2 0 002.811-.017l5.379-5.379a2 2 0 012.847.019l14.183 14.556",stroke:n,strokeLinecap:"round"}),(0,c.jsx)("circle",{cx:214.843,cy:41.261,r:5.336,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("rect",{x:166,y:31,width:62.388,height:49.254,rx:4,stroke:n,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M36 5a5 5 0 015-5h53a5 5 0 015 5v33.925a5 5 0 01-5 5H71.098a2 2 0 00-1.294.475l-4.953 4.203a1 1 0 01-1.646-.763v-2.915a1 1 0 00-1-1H41a5 5 0 01-5-5V5z",fill:t}),(0,c.jsx)("path",{d:"M57 24.529c0 3.007 2.075 5.503 4.638 5.503h3.098c1.251.605 2.75.968 4.419.968h1.3c1.192 0 2.215-.065 2.89-.224 1.321-.307 2.146-1.173 2.146-2.271 0-.224-.03-.429-.1-.624.646-.456 1.013-1.127 1.013-1.872 0-.354-.07-.707-.208-.996.437-.419.685-1.034.685-1.676 0-.419-.11-.857-.308-1.182.278-.354.427-.848.427-1.388 0-1.34-1.112-2.402-2.532-2.402h-3.535c-.219 0-.368-.084-.358-.26.01-.95 1.589-3.167 1.589-4.954 0-1.248-.934-2.151-2.215-2.151-.943 0-1.579.466-2.194 1.574-1.152 2.076-2.533 3.91-4.717 6.424H61.28c-2.383 0-4.28 2.477-4.28 5.53zm5.58-.056c0-1.89.458-3.1 1.729-4.702 1.42-1.77 3.376-3.901 4.796-6.546.338-.633.566-.782.894-.782.387 0 .655.27.655.736 0 1.396-1.598 3.566-1.598 4.963 0 1.014.893 1.648 2.035 1.648h3.367c.586 0 1.033.419 1.033.986 0 .4-.14.662-.497.988-.189.176-.218.4-.05.586.298.4.427.661.427.987 0 .4-.208.745-.615 1.034-.258.177-.368.447-.209.745.219.39.338.577.338.893 0 .456-.318.801-.964 1.118-.248.13-.307.344-.198.558.218.512.248.596.248.81 0 .42-.328.745-.993.903-.556.13-1.44.196-2.542.177l-1.271-.
1009c-3.923-.028-6.584-2.104-6.584-5.093zm-4.07.056c0-2.263 1.28-4.097 2.72-4.116h.835c-.696 1.23-.993 2.514-.993 4.041 0 1.648.625 3.082 1.747 4.172h-1.211c-1.659-.019-3.099-1.872-3.099-4.097z",fill:n})]}))},Ce=function(e){var t=e.icon,n=e.title,o=e.text,r=e.index,i=(0,h.WI)().primary;return(0,c.jsxs)(d.kC,{align:{md:"center",lg:"flex-start"},className:"pva-process-step",direction:{md:"row",lg:"column"},p:{md:"40px 60px",lg:"65px 25px 60px 25px"},flex:1,borderRightColor:i,borderRightWidth:{lg:"1px"},borderBottomWidth:{lg:"0"},_last:{borderRightWidth:0,borderBottomWidth:0},children:[(0,c.jsx)(d.kC,{mb:{md:0,lg:"50px"},w:{md:"25%",lg:"100%"},justify:{md:"center",lg:"flex-start"},pl:"40px",children:t}),(0,c.jsxs)(d.kC,{w:{md:"75%",lg:"auto"},direction:"column",pl:{md:"60px",lg:0},children:[(0,c.jsxs)(d.kC,{align:"flex-start",mb:"10px",children:[(0,c.jsxs)(d.xv,{mr:"25px",variant:"subtitleL",children:[r+1,"."]}),(0,c.jsx)(d.xv,{variant:"titleS",color:"base.1",children:n})]}),(0,c.jsx)(d.xv,{ml:"40px",variant:"paragraphL",children:o})]})]})},ye=function(e){var t=e.icon,n=e.title,o=e.text,r=e.index;return(0,c.jsxs)(d.kC,{className:"pva-process-step",direction:"column",mb:"30px",flex:1,align:"center",textAlign:"center",children:[(0,c.jsxs)(d.xv,{variant:"subtitleL",mb:"10px",children:[r+1,"."]}),(0,c.jsx)(d.xv,{variant:"titleS",color:"base.1",mb:"20px",children:n}),(0,c.jsx)(d.kC,{justify:"center",w:"100%",mb:"20px",css:{svg:{width:"55%"}},children:t}),(0,c.jsx)(d.xv,{variant:"paragraphL",children:o})]})},we=[{title:"Browse Nominated Images",text:"Discover the extraordinary artistic visions of our community and browse works across categories to narrow down your selections",icon:(0,c.jsx)(me,{})},{title:"Cast Your Votes",text:"Choose your favorite images and vote up to once a day until the contest closes",icon:(0,c.jsx)(je,{})},{title:"Share Your Selections",text:"Now\u2019s your chance to help inspire others with the artists and images you voted for, and to encourage your network to support artists by voting as well",icon:(0,c.jsx)(ke,{})}],Ze=function(e){var t=(0,j.Z)().isMobile;return(0,c.jsx)(d.kC,(0,i.Z)((0,r.Z)({direction:"column"},e),{children:(0,c.jsx)(le.Z,{p:{base:"40px 20px",md:"20px 0",lg:"0 40px"},direction:{base:"column",lg:"row"},css:"\n @media only screen and (min-width: 1025px) {\n .pva-process-step {\n &:first-child {\n padding-left: 0;\n }\n &:last-child {\n padding-right: 0;\n }\n }\n }\n ",children:we.map((function(e,n){return t?(0,c.jsx)(ye,(0,i.Z)((0,r.Z)({},e),{index:n}),n):(0,c.jsx)(Ce,(0,i.Z)((0,r.Z)({},e),{index:n}),n)}))})}))},Le=n(24111),_e=n(17325),Se=function(e){var t,n,o,r=e.contest,i=e.setOpen,a=(0,_e.so)(r).desktop,s=null===(t=r.images.featured_image_desktop)||void 0===t?void 0:t.title,l=(0,h.ZP)("pvaContest",{bg:"base.1",textColor:"base.6",buttonVariant:"base.6.outline",sponsorTagVariant:"light"}),u=l.bg,x=l.textColor,p=l.buttonVariant,v=l.sponsorTagVariant;return(0,c.jsxs)(d.kC,{bg:u,position:"relative",pb:"60px",direction:{base:"column",lg:"row"},children:[(0,c.jsx)(d.xu,{w:{base:"100%",lg:"43.75%",xl:"50%"},h:{base:"auto",lg:"calc(100% - 60px)"},mb:{base:"60px",lg:0},position:{lg:"absolute"},top:"0",left:"0",children:(0,c.jsx)(d.xu,{position:{base:"sticky",xl:"relative"},top:"0",w:"100%",pb:{base:"".concat(((null===(n=r.images.featured_image_desktop)||void 0===n?void 0:n.sizes.large.height)||0)/((null===(o=r.images.featured_image_desktop)||void 0===o?void 0:o.sizes.large.width)||1)*100,"%"),xl:0},h:{xl:"100%"},children:(0,c.jsx)(se.Z,{alt:r.name,src:(0,de.Jn)(a),layout:"fill",objectFit:"cover",caption:s})})}),(0,c.jsxs)(le.Z,{direction:{base:"column",lg:"row"},justify:"space-between",mt:{lg:"60px"},children:[(0,c.jsx)(d.kC,{w:"48%",display:{base:"none",lg:"flex"}}),(0,c.jsxs)(d.kC,{direction:"column",w:{base:"100%",lg:"48%",xl:"45%"},align:"flex-start",children:[(0,c.jsx)(d.xv,{variant:"numeralsM",color:x,children:"People's Vote Award Gallery"}),(0,c.jsx)(d.xv,{variant:"titleXL",color:x,p:"20px 0",children:r.name}),(0,c.jsx)(Le.Z,{sponsors:r.sponsors||[],iconColor:"accent1.3",variant:v,mb:"20px"}),(0,c.jsx)(d.xv,{variant:"paragraphL",color:x,children:"The People's Vote Award is now live! Join us in recognizing the\n most distinctive photographers around the world by casting your\n votes for your favorite nominated entries in each category.\n Entries with the most votes will be honored with the People's Vote\
1n Award for the ".concat(r.year,". You can cast your votes for as many entries as you'd like up to once a day.")}),(0,c.jsx)(pe.Z,{mt:"40px",mr:"auto",minW:"120px",size:"md",variant:p,onClick:function(){return i(!0)},children:"How it Works"})]})]})]})},Me=n(75657),Ae=n.n(Me),Pe=n(39266),Te=function(){return(0,h.ZP)("pvaClosed",{introBg:"transparent",gradientColors:{start:"base.1",end:"base.1"},bg:"base.1",color:"base.6",subtitleColor:"accent1.4"})},ze=function(){var e=Te(),t=e.gradientColors,n=e.color,o=e.subtitleColor,a=e.bg,s=t.start,l=t.end,u=(0,be.rd)(s),x=(0,be.rd)(l);return(0,c.jsxs)(d.kC,{bg:a,position:"relative",children:[(0,c.jsx)(d.xu,{w:"100%",p:{base:"20px",md:"60px"},_before:(0,i.Z)((0,r.Z)({},Pe.cg),{opacity:.9,background:" linear-gradient(180deg, ".concat(u," 0%, ").concat(x," 100%)"),zIndex:2}),children:(0,c.jsx)(ce.Z,{src:(0,de.QO)("pva/coming-soon.png"),layout:"responsive",width:1160,height:1806,alt:"pva bg image",objectFit:"contain"})}),(0,c.jsx)(d.kC,(0,i.Z)((0,r.Z)({},Pe.PE),{zIndex:3,justify:"center",children:(0,c.jsx)(d.kC,(0,i.Z)((0,r.Z)({m:"0",align:"flex-start"},Pe.PE),{children:(0,c.jsx)(d.kC,{maxH:"100%",top:"0",h:"100vh",position:"sticky",align:"center",w:"100%",justify:"center",direction:"column",textAlign:"center",children:(0,c.jsxs)(le.Z,{m:"0 auto",align:"center",children:[(0,c.jsx)(d.xv,{variant:"displayM",color:n,mb:"8px",children:"People\u2019s Vote Award"}),(0,c.jsx)(d.xv,{variant:"subtitleL",color:o,children:"Voting is Currently Closed"}),(0,c.jsx)(Ae(),{href:"/#contests",passHref:!0,children:(0,c.jsx)(pe.Z,{size:"md",as:"a",mt:{base:"30px",md:"60px"},variant:"base.6.fill",children:"Learn More About Our Contests"})})]})})}))}))]})},Ve=n(93307),Ie=n(5203),Ee=n(21607),Be=n(48178),Oe=n.n(Be),Ne=n(15414),We=function(e){var t,n=e.open,o=void 0!==n&&n,r=e.setOpen,i=e.contest,a=(0,O.L)().contests,s=null===(t=a.find((function(e){return e.slug===i.slug})))||void 0===t?void 0:t.viewer_discretion_advised,l=(0,f.useRef)(null),u=(0,h.WI)().primary,x=(0,f.useCallback)((function(){Ee.Z.getDataFromStorage("pva_how_to_vote")||r(!0)}),[r]);(0,f.useEffect)((function(){x()}),[x]),(0,f.useEffect)((function(){o&&setTimeout((function(){l.current&&(l.current.scrollTop=0)}),400)}),[o]);var p=function(){if(r(!1),Ee.Z.saveDataToStorage("pva_how_to_vote",!0),s){var e=Ee.Z.getDataFromStorage("discretionContests")||{};a.forEach((function(t){var n=t.slug;return e[n]=!0})),Ee.Z.saveDataToStorage("discretionContests",e)}};return(0,c.jsxs)(G.u_,{isOpen:o,onClose:p,isCentered:!0,children:[(0,c.jsx)(G.ZA,{}),(0,c.jsxs)(G.hz,{borderRadius:"2px",bg:"support1.4",direction:"column",w:"1280px",maxW:"90vw",h:{base:"80vh",lg:"auto"},maxH:"80vh",m:"auto",children:[(0,c.jsx)(G.xB,{borderBottomWidth:1,borderBottomColor:u,pl:"0",pr:"0",children:(0,c.jsx)(le.Z,{children:(0,c.jsx)(d.xv,{variant:"numeralsXS",textAlign:"center",children:"How it Works"})})}),(0,c.jsxs)(G.fe,{p:"0",overflow:"hidden",position:"relative",css:"\n .ps__rail-y {\n opacity: 1 !important;\n }\n ",children:[(0,c.jsx)(Oe(),{style:{height:"100%",position:"relative"},options:{suppressScrollX:!0},containerRef:function(e){l.current=e},children:(0,c.jsxs)(d.kC,{direction:"column",minH:"100%",children:[(0,c.jsx)(Ze,{}),(0,c.jsxs)(d.kC,{borderTopWidth:1,borderTopColor:u,py:"30px",direction:"column",w:"100%",align:"center",children:[s&&(0,c.jsxs)(le.Z,{align:"center",direction:"row",textAlign:{base:"left",md:"center"},gap:"10px",mb:"20px",justify:"center",children:[(0,c.jsx)(Z.Z,{icon:"erroricon",size:"30px",fill:"base.1"}),(0,c.jsx)(d.xv,{variant:"paragraphL",children:Ie.o})]}),(0,c.jsx)(le.Z,{align:{base:"center",md:"center"},children:(0,c.jsx)(pe.Z,{minW:"120px",size:"md",variant:"accent1.3.fill",onClick:p,children:"Got it"})})]})]})}),(0,c.jsx)(Ne.Z,{display:{base:"flex",md:"none"},position:"absolute",bottom:"10px",w:"100%"})]})]})]})},Fe=n(22319),He=n(771),Re=!0,De=(0,ie.Z)((function(e){var t=e.contest,n=e.entry_level,s=e.contestCats,x=e.pagedRes,p=(0,f.useState)(!1),g=p[0],m=p[1],j=(0,f.useState)(!1),k=j[0],C=j[1],y=(0,h.WI)().primary,w=(0,f.useState)(!1),Z=w[0],L=w[1],_=(0,f.useState)(x),S=_[0],M=_[1],A=(0,f.useState)((null===x||void 0===x?void 0:x.results)||[]),P=A[0],z=A[1],I=Te().introBg,E=(0,f.useState)(!1),B=E[0],O=E[1],W=(0,f.useState)(!1),F=W[0],H=W[1],D=(0,f.useState)(!1),Q=D[0],Y=D[1],q=(0,oe.useRouter)(),G=q.pathname,U=q.query,J=U.entry_slug,$
1=b.T3.selectedFiltersCount,ee=b.T3.searchQuery,te=(0,f.useState)(U.entry||null),ie=te[0],ae=te[1],se=(0,f.useCallback)((function(e){ae(e),(0,V.G7)({entry:e})}),[]),ce=(0,f.useCallback)((function(e){var t="".concat(G).concat(e);window.history.replaceState((0,i.Z)((0,r.Z)({},window.history.state),{as:t,url:t}),"",t)}),[G]);(0,f.useEffect)((function(){var e=Ee.Z.getDataFromStorage("pva_how_to_vote")||!1;C(e),m(!0),setTimeout((function(){return Y(!0)}),1e3)}),[]);var de=(0,f.useMemo)((function(){return $||ee?[{id:-1,slug:"search",name:"",nominees:P.slice()}]:P.reduce((function(e,t){var n=t.category.id,o=e.findIndex((function(e){return e.id===n}));return-1===o?e.push((0,i.Z)((0,r.Z)({},t.category),{nominees:[t]})):e[o].nominees.push(t),e}),[])}),[ee,$,P]),ue=(0,f.useMemo)((function(){return de.reduce((function(e,t){var n;return(n=e).push.apply(n,(0,a.Z)(t.nominees.map((function(e){return e.id})))),e}),[])}),[de]),xe=(0,f.useCallback)((0,o.Z)(l().mark((function e(){var t,n,o,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!B&&(null===S||void 0===S?void 0:S.next)&&!ie){e.next=2;break}return e.abrupt("return");case 2:if(O(!0),!(null===S||void 0===S?void 0:S.next)){e.next=11;break}return t=S.next.split("/api/")[1],e.next=7,(0,K.ZP)({path:"/api/".concat(t)});case 7:n=e.sent,o=n.data,(r=void 0===o?null:o)&&(M(r),z((0,a.Z)(P).concat((0,a.Z)(r.results))));case 11:O(!1);case 12:case"end":return e.stop()}}),e)}))),[B,P,null===S||void 0===S?void 0:S.next,ie]),pe=(0,f.useCallback)(function(){var e=(0,o.Z)(l().mark((function e(t){var n,o,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),(0,re.Q)("scroll_target"),n="/api/public/pva/".concat(t),e.next=5,(0,K.ZP)({path:n});case 5:o=e.sent,r=o.data,(i=void 0===r?null:r)&&(M(i),z(i.results)),ce(t),H(!1);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[ce]),he=(0,f.useCallback)((function(){J&&setTimeout((function(){var e,t,n=(null===(e=document.getElementById(J))||void 0===e?void 0:e.clientHeight)||0,o=(null===(t=document.getElementById("pva-filter-wrapper"))||void 0===t?void 0:t.clientHeight)||0,r=(window.innerHeight-o-n)/2;(0,re.Q)(J,r)||(0,re.Q)("scroll_target")}))}),[J]);(0,f.useEffect)((function(){he()}),[he]),(0,f.useEffect)((function(){(0,v.z)((function(){return b.T3.availableCategories=s}))}),[s]);var ve=(0,_e.s3)(t);return t?(0,c.jsx)(N.Iq,{value:{contest:{name:t.name,year:t.year}},popupEntrySlug:ie,setPopupEntrySlug:se,children:(0,c.jsxs)(R,{ids:ue,children:[(0,c.jsx)(Fe.PB,(0,r.Z)({},ve)),(0,c.jsx)(Se,{contest:t,setOpen:L}),(0,c.jsx)(d.kC,{id:"scroll_target","aria-label":"scroll target"}),(0,c.jsx)(T,{contest:t,filterCallback:pe,entry_level:n}),F?(0,c.jsx)(u.Z,{h:"50vh",bg:"base.1",align:"center",justify:"center"}):(0,c.jsx)(X,{categories:de}),(0,c.jsx)(He.Z,{isPageLoading:F,isLoading:B,hasNext:!!(null===S||void 0===S?void 0:S.next),onView:xe}),Q&&(0,c.jsx)(ne,{entrySlug:ie,setEntrySlug:se}),(0,c.jsx)(We,{open:Z,setOpen:L,contest:t}),(0,c.jsx)(Ve.Z,{}),g&&k&&(0,c.jsx)(Ie.Z,{visibleContests:[t.slug]})]})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Fe.PB,(0,r.Z)({},ve)),(0,c.jsxs)(d.kC,{direction:"column",bg:I,children:[(0,c.jsx)(fe,{}),(0,c.jsx)(d.kC,{direction:"column",borderBottom:"1px solid",borderBottomColor:y,children:(0,c.jsx)(le.Z,{children:(0,c.jsx)(d.xv,{p:{base:"30px 0 20px",md:"60px 0 20px"},variant:"subtitleL",textAlign:{base:"center",md:"left"},children:"How it Works"})})}),(0,c.jsx)(Ze,{})]}),(0,c.jsx)(ze,{}),(0,c.jsx)(Ve.Z,{})]})}),{title:"People's Vote Award",headerProps:{upTolerance:50}})}},function(e){e.O(0,[2783,3434,9566,695,3959,9464,8047,6531,8029,8996,3502,3364,3187,1078,843,9774,2888,179],(function(){return t=91624,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.