"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7130],{20780:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(52322),r=i(2784),a=i(54831);let s={base:"--ipt-base-rgb",baseShade1:"--ipt-base-shade1-rgb",baseShade2:"--ipt-base-shade2-rgb",baseShade3:"--ipt-base-shade3-rgb",onBase:"--ipt-on-base-rgb",onBaseAccent1:"--ipt-on-base-accent1-rgb",onBaseAccent2:"--ipt-on-base-accent2-rgb",onBaseAccent3:"--ipt-on-base-accent3-rgb",onBaseError:"--ipt-on-base-error-rgb",baseAlt:"--ipt-baseAlt-rgb",baseAltShade1:"--ipt-baseAlt-shade1-rgb",baseAltShade2:"--ipt-baseAlt-shade2-rgb",baseAltShade3:"--ipt-baseAlt-shade3-rgb",onBaseAlt:"--ipt-on-baseAlt-rgb",onBaseAltAccent1:"--ipt-on-baseAlt-accent1-rgb",onBaseAltAccent2:"--ipt-on-baseAlt-accent2-rgb",onBaseAltAccent3:"--ipt-on-baseAlt-accent3-rgb",onBaseAltError:"--ipt-on-baseAlt-error-rgb",accent1:"--ipt-accent1-rgb",onAccent1:"--ipt-on-accent1-rgb",accent2:"--ipt-accent2-rgb",onAccent2:"--ipt-on-accent2-rgb"};new(i(59291)).DOMParser;let o=e=>{if(e&&Object.keys(e).length>0){let t=":root {\n";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]&&"null"!==e[i]&&"undefined"!==e[i]&&s[i]){let n=d(e[i]);t+=` ${s[i]}: ${n}; `}return t+"}\n"}return""},d=e=>{let t=e;if(!t.startsWith("#"))return t;t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,i,n)=>t+t+i+i+n+n);let i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?`${l(i[1])},${l(i[2])},${l(i[3])}`:""},l=e=>parseInt(e,16),c=e=>{let{initialOverrides:t,pathname:i}=e,s=r.useRef(new Map([[i,o(t)]]));r.useEffect(()=>{let e=e=>{s.current.has(i)||s.current.set(i,o(e.detail))};return window.addEventListener("clientSidePlaidOverride",e),()=>{window.removeEventListener("clientSidePlaidOverride",e)}},[i]);let d=s.current.get(i);return d?.length?(0,n.jsx)("style",{id:a.cp,dangerouslySetInnerHTML:{__html:d}}):null};var u=i(5632),f=i(11538),p=i(83128),g=()=>{let e=(0,p.Ok)().adSlotsInfo,t=(0,u.useRouter)();return(0,n.jsx)(f.Z,{name:"IMDbNextAdStyleOverrides",children:(0,n.jsx)(c,{initialOverrides:e.plaidOverrides,pathname:t.asPath})})}},80978:function(e,t,i){i.d(t,{R:function(){return n}});let n="inline20-page-background"},30705:function(e,t,i){var n=i(52322),r=i(30382),a=i.n(r);i(2784);var s=i(79855),o=i(19596),d=i(45103),l=i(91842),c=i(13433),u=i(85767),f=i(33274),p=i(72814),g=i(72659),m=i(82393),h=i(45586),x=i(13065);let b=a()` fragment ListPreviewCard on List { id lastModifiedDate createdDate name { originalText } listType { id } primaryImage { image { url height width caption { plainText } } } items(first: 0) { total } } `,I=e=>{let t,{listData:i,id:r,useLastModifiedDate:a,className:o,index:d}=e,l=(0,s.Z)(),b=(0,u.B)().context,{listMainLinkBuilder:I,pollSingleLinkBuilder:C,userRatingsLinkBuilder:j}=(0,f.WO)();if(!i)return null;if(y(i)){let e=a?i.lastModifiedDate:i.createdDate,r=a?m.QH:m.Ks,s=m.wK[i.listType?.id||c.lZ.Lists];t={linkText:i.name?.originalText,linkHref:_(i)?j({urconst:b.sidecar?.account.userId??"",refSuffix:{t:p.Cd.EMPTY,n:d}}):I({lsconst:i.id,refSuffix:{t:p.Cd.EMPTY,n:d}}),defaultCaptionString:m.vk,subtext:(0,n.jsx)(x.l,{displayDate:e,displayDateStringId:r,itemCount:i.items?.total,itemType:s})}}else t={linkText:i.question?.originalText?.plainText||void 0,linkHref:C({pconst:i.id,refSuffix:{t:p.Cd.EMPTY,n:d}}),defaultCaptionString:m.qq};if(!t)return null;let w=i?.primaryImage?.image,P=w?.caption?.plainText||l.formatMessage(t.defaultCaptionString);return(0,n.jsx)(h.Ok,{borderType:"line",className:o,"data-testid":`ListPreviewCard-${r}`,children:(0,n.jsx)(h.dy,{href:t.linkHref,"data-testid":"preview-list-card-link",children:(0,n.jsxs)(h.CC,{children:[(0,n.jsxs)(h.lU,{subtext:!!t.subtext,children:[(0,n.jsx)(h.Gv,{className:"listName",children:t.linkText}),t.subtext]}),(0,n.jsx)(v,{children:(0,n.jsx)(T,{className:"poster",size:"xs",imageModel:w&&w.url&&w.height&&w.width?{url:w.url,maxHeight:w.height,maxWidth:w.width,caption:P}:void 0,imageType:y(i)?(0,g.i)(i?.listType?.id):"none"})})]})})})},_=e=>"RATINGS"===e.id,y=e=>void 0!==e.listType,v=o.default.div.withConfig({componentId:"sc-b0b247f8-0"})(["padding:",";"],l.spacing.xxs),T=(0,o.default)(d.PosterImage).withConfig({componentId:"sc-b0b247f8-1"})(["height:100%;"]);I.fragments={listPreviewCard:b},t.ZP=I},7640:function(e,t,i){i.d(t,{F0:function(){return d}}),i(52322);var n=i(30382),r=i.n(n);i(2784);var a=i(19596),s=i(45103),o=i(91842);i(33274),i(82393),i(45586);let d=r()` fragment PollPreviewCard on Poll { id question { originalText { plainText } } primaryImage { image { url height width caption { plainText } } } } `;a.styled.div.withConfig({componentId:"sc-3f3617b1-0"})(["padding:",";"],o.spacing.xxs),(0,a.styled)(s.PosterImage).withConfig({componentId:"sc-3f3617b1-1"})(["height:100%;"])},45586:function(e,t,i){i.d(t,{CC:function(){return c},Gv:function(){return u},Ok:function(){return d},dy:function(){return l},lU:function(){return o}});var n=i(19596),r=i(45103),a=i(91842),s=i(87961);let o=n.default.div.withConfig({componentId:"sc-7739a3e5-0"})(["display:flex;overflow:hidden;flex-direction:column;justify-content:",";padding:"," ",";"],e=>e.subtext?"space-between":"center",a.spacing.s,a.spacing.m),d=(0,n.default)(r.ListCard).withConfig({componentId:"sc-7739a3e5-1"})(["margin-bottom:",";padding:0;",";"],a.spacing.xs,(0,a.setPropertyToShapeVar)("border-radius","ipt-mediaRadius")),l=n.default.a.withConfig({componentId:"sc-7739a3e5-2"})(["text-decoration:none;color:inherit;&:hover .poster{opacity:0.8;}&:hover .listName{text-decoration:underline;}"]),c=n.default.div.withConfig({componentId:"sc-7739a3e5-3"})(["display:flex;justify-content:space-between;height:calc(6rem + ",");","{height:calc(5.75rem + 2px);}","{height:calc(5.75rem + 2px);}"],a.spacing.xxs,a.mediaQueries.breakpoints.only.s,a.mediaQueries.breakpoints.above.xl),u=n.default.div.withConfig({componentId:"sc-7739a3e5-4"})(["",";",";word-wrap:break-word;"],(0,a.setTypographyType)("bodySmall"),(0,s.S)(2))},13065:function(e,t,i){i.d(t,{l:function(){return c}});var n=i(52322);i(2784);var r=i(79855),a=i(19596),s=i(91842),o=i(84926),d=i(41241),l=i(82393);let c=e=>{let{displayDateStringId:t,displayDate:i,itemCount:a,itemType:s,fallbackMessage:c}=e,p=(0,r.Z)();if(!a&&!i&&!c)return null;let g=!!a,m=l.Pm[s];return(0,n.jsxs)(u,{children:[!i&&!a&&c&&p.formatMessage(c),i&&(0,n.jsx)("span",{children:(0,n.jsx)(o.q,{...t,values:{duration:function(e,t){let i=new Date;return i{let t,{id:i,listData:r,title:s,subTitle:o,titleButtonHref:d,buttonConfig:g,useLastModifiedDate:m}=e,h=Math.ceil(r.length/2),x=r.filter((e,t)=>tt>=h);g&&(t=(0,n.jsx)("span",{children:(0,n.jsx)(u,{"data-testid":`SidebarList-button-${i}`,preIcon:g.preIcon,ariaLabel:g.label,href:g.href,onColor:"textPrimary",onSelect:g.onClick,onKeyDown:g.onKeyDown,children:g.label})}));let I=d?(0,n.jsx)(a.Title,{href:d,description:o,"data-testid":`SidebarList-title-${i}`,children:s}):(0,n.jsx)(a.Title,{description:o,"data-testid":`SidebarList-title-${i}`,children:s});return(0,n.jsxs)("div",{"data-testid":`SidebarList-${i}`,children:[(0,n.jsxs)(c,{children:[s&&I,t]}),(0,n.jsxs)(f,{children:[(0,n.jsx)(p,{"data-testid":`firstListCardGroup-${i}`,children:x.map((e,t)=>(0,n.jsx)(l,{listData:e.node,id:i,useLastModifiedDate:m,index:t+1},`sidebar-list-item-${t}`))}),(0,n.jsx)(p,{"data-testid":`secondListCardGroup-${i}`,children:b.map((e,t)=>(0,n.jsx)(l,{listData:e.node,id:i,useLastModifiedDate:m,index:t+1+h},`sidebar-list-item-${t+h}`))})]})]})},l=(0,r.default)(o.ZP).withConfig({componentId:"sc-c28dc02b-0"})([""]),c=r.default.div.withConfig({componentId:"sc-c28dc02b-1"})(["display:flex;justify-content:space-between;flex-direction:column;","{flex-direction:row;}","{flex-direction:column;}"],s.mediaQueries.breakpoints.above.s,s.mediaQueries.breakpoints.above.l),u=(0,r.default)(a.TextButton).withConfig({componentId:"sc-c28dc02b-2"})(["justify-content:flex-start;margin:-"," "," "," ",";","{margin-top:-",";}","{margin-top:-",";}"],s.spacing.s,(0,s.getSpacingVar)("ipt-pageMargin"),s.spacing.xs,(0,s.getSpacingVar)("ipt-pageMargin"),s.mediaQueries.breakpoints.above.s,s.spacing.xxs,s.mediaQueries.breakpoints.above.l,s.spacing.s),f=r.default.div.withConfig({componentId:"sc-c28dc02b-3"})(["","{display:flex;}"],s.mediaQueries.breakpoints.only.m),p=r.default.div.withConfig({componentId:"sc-c28dc02b-4"})(["flex:1;min-width:0;margin-bottom:",";","{&:first-of-type{",";margin-right:",";}&:last-of-type{margin-left:",";",";}","{margin-left:0;margin-right:0;}}"],s.spacing.xs,s.mediaQueries.breakpoints.only.m,(0,s.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),s.spacing.xs,s.spacing.xs,(0,s.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),l)},51831:function(e,t,i){i.d(t,{_:function(){return a}});var n=i(19596),r=i(91842);let a=n.default.div.withConfig({componentId:"sc-f2e21260-0"})(["align-items:center;justify-content:center;","{padding-left:",";}","{padding-left:",";}","{padding-top:var(--ipc-pageSection-bottomMargin);}"],r.mediaQueries.breakpoints.only.l,r.spacing.xs,r.mediaQueries.breakpoints.only.xl,r.spacing.s,r.mediaQueries.breakpoints.below.l)},57130:function(e,t,i){i.d(t,{z:function(){return j}});var n=i(52322),r=i(66898);i(2784);var a=i(19596),s=i(45103),o=i(17337),d=i(20780),l=i(83128),c=i(26524),u=i(42951),f=i(5450),p=i(91842),g=i(58800),m=i(25321),h=i(12859),x=i(84926),b=i(51831),I=i(49246);let _=e=>{let{mainColumn:t,sidebar:i,onlyShowInline40OnDesktop:r,hideDefaultSidebarHeading:a}=e,o=(0,c.ik)();return(0,n.jsx)(s.PageContentContainer,{children:(0,n.jsx)(y,{baseColor:"base",children:(0,n.jsxs)(s.PageGrid,{children:[(0,n.jsx)(s.PageGrid.Item,{span:i?2:3,children:(0,n.jsx)(v,{children:t})}),i&&(0,n.jsx)(s.PageGrid.Item,{span:1,children:(0,n.jsxs)(b._,{"data-test-id":I.z.RIGHT_RAIL_CONTENT_BLOCK,children:[!o&&(0,n.jsx)(n.Fragment,{children:r?(0,n.jsx)(m.QW,{onlyShowAtLargePlusBreakpoints:!0,name:h.A.INLINE40,nasConfig:{classNames:[h.A.INLINE40_SIDEBAR]}}):(0,n.jsx)(m.En,{name:h.A.INLINE40,nasConfig:{classNames:[h.A.INLINE40_SIDEBAR]}})}),(0,n.jsxs)(T,{className:I.z.RIGHT_RAIL_MORE_TO_EXPLORE,children:[!a&&(0,n.jsx)(s.SectionTitle,{"data-testid":"btf-wrapper-sb-head",children:(0,n.jsx)(x.q,{id:"layout_maindetail_sidebar_title",defaultMessage:"More to explore"})}),(0,n.jsx)(C,{children:i})]})]})})]})})})},y=(0,a.default)(s.PageBackground).withConfig({componentId:"sc-37fddfd2-0"})(["min-height:50vh;overflow-x:clip;position:relative;"]),v=a.default.div.withConfig({componentId:"sc-37fddfd2-1"})(["position:relative;"]),T=a.default.div.withConfig({componentId:"sc-37fddfd2-2"})(["height:100%;margin:0 0 var(--ipc-pageSection-bottomMargin);padding:"," 0;"],p.spacing.l),C=a.default.div.withConfig({componentId:"sc-37fddfd2-3"})([""," height:100%;padding-top:",";position:relative;.sidebar-intersection{margin-bottom:-3rem;}"],g.n,p.spacing.xs),j=e=>{let{aboveTheFold:t,belowTheFold:{mainColumn:i,sidebar:a},bottomGroup:s,useLightATFBackground:p,onlyShowInline40OnDesktop:g,hideDefaultSidebarHeading:m}=e,h=(0,c.ik)();return(0,n.jsxs)(l.ZP,{children:[!h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{}),(0,n.jsx)(d.Z,{})]}),(0,n.jsxs)(w,{baseColor:"base",children:[(0,n.jsx)(f.Ql,{useLightATFBackground:p,children:t}),(0,u.YN)(),(0,n.jsx)(r.CSAPageATFScript,{}),(0,n.jsx)(_,{mainColumn:i,sidebar:a,onlyShowInline40OnDesktop:g,hideDefaultSidebarHeading:m})]}),s]})},w=(0,a.default)(s.PageBackground).withConfig({componentId:"sc-1aa68851-0"})(["position:relative;"])},5450:function(e,t,i){i.d(t,{Ql:function(){return y},M8:function(){return I}});var n=i(52322),r=i(72779),a=i.n(r);i(2784);var s=i(19596),o=i(45103),d=i(91842),l=i(47998),c=i(25321),u=i(12859),f=i(45774),p=i(80978),g=i(26524),m=i(84038),h=i(76873);let x=(0,s.default)(h.Z).withConfig({componentId:"sc-cfbc1d3-0"})(["min-height:auto;margin:0 auto;background:rgba(var(--ipt-accent3-rgb),0.5);color:var(--ipt-on-accent3-color);height:100%;"]),b={theme:f.e.DARK},I="atf-background-theme-light",_="atf-background-theme-dark",y=e=>{let{children:t,useLightATFBackground:i}=e,r=(0,g.ik)();return(0,n.jsxs)(v,{baseColor:"baseAlt","data-testid":"atf-wrapper-bg",className:a()({[_]:!i,[I]:i}),children:[!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.z,{}),(0,n.jsx)(o.PageBackground,{baseColor:"baseAlt",className:p.R,children:(0,n.jsx)(o.PageContentContainer,{children:(0,n.jsx)(c.ZP,{name:u.A.INLINE20,nasConfig:b})})})]}),(0,n.jsxs)(T,{children:[(0,n.jsx)(x,{slotName:m.B.TOP_1}),(0,n.jsx)(x,{slotName:m.B.TOP_2}),(0,n.jsx)(x,{slotName:m.B.TOP_3})]}),(0,n.jsx)(o.SetPalette,{palette:i?"light":"dark",children:t})]})},v=(0,s.default)(o.PageBackground).withConfig({componentId:"sc-b00d08ca-0"})(["&.","{","}&.","{","}"],_,(0,d.setPropertyToColorVar)("background","ipt-baseAlt-shade1-bg"),I,(0,d.setPropertyToColorVar)("background","ipt-base-shade2-bg")),T=(0,s.default)(o.PageContentContainer).withConfig({componentId:"sc-b00d08ca-1"})(["position:relative;"])},49246:function(e,t,i){i.d(t,{z:function(){return n}});let n={INLINE_40_SMALL:"inline40-small",INLINE_40_LARGE:"inline40-large",INLINE_50_SMALL:"inline50-small",INLINE_50_LARGE:"inline50-large",INLINE_60_SMALL:"inline60-small",INLINE_60_LARGE:"inline60-large",INLINE_80_SMALL:"inline80-small",INLINE_80_LARGE:"inline80-large",PRIMARY_COLUMN_GROUP:"primary-column",RIGHT_RAIL_MORE_TO_EXPLORE:"right-rail-more-to-explore",RIGHT_RAIL_CONTENT_BLOCK:"right-rail-content-block"}},76873:function(e,t,i){var n=i(52322);i(2784);var r=i(46163),a=i(97309),s=i(899),o=i(28906);t.Z=e=>{let{className:t,...i}=e,d=(0,o.S)(),{isDebug:l}=(0,a.kp)();return d[i.slotName]||l?(0,n.jsx)(r.PageSection,{className:t,baseColor:"none",topPadding:"none",bottomPadding:"none",children:(0,n.jsx)(s.Z,{...i})}):null}},58429:function(e,t,i){i.d(t,{Z:function(){return d}});var n=i(52322);i(2784);var r=i(19596),a=i(91842),s=i(13972),o=i(76873);function d(e){return(0,n.jsx)(l,{displayType:s.FO.SIDE,...e})}let l=(0,r.default)(o.Z).withConfig({componentId:"sc-c3c5025a-0"})([""," "," margin-top:0;margin-bottom:0;"],(0,a.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,a.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"))},84038:function(e,t,i){i.d(t,{B:function(){return n}});let n={BOTTOM_1:"bottom-1",BOTTOM_2:"bottom-2",CENTER_2:"center-2",CENTER_3:"center-3",CENTER_7:"center-7",CENTER_8:"center-8",CENTER_19:"center-19",CENTER_20:"center-20",PRO_RIGHT_1:"pro-right-1",RIGHT_3:"right-3",RIGHT_5:"right-5",RIGHT_7:"right-7",TOP_1:"top-1",TOP_2:"top-2",TOP_3:"top-3"}},33170:function(e,t,i){var n=i(52322),r=i(14865);i(2784);var a=i(13433),s=i(58605),o=i(146),d=i(43287),l=i(72814),c=i(71312),u=i(5079),f=i(56030);let p=e=>{let{pageConst:t}=(0,s.y)();return(0,n.jsx)(f.i,{id:"editorial",titleString:c.jX,subtitleString:c.Ug,showCreateListLink:!1,useLastModifiedDate:!0,queryOptions:{query:u.nm,variables:{itemId:t,topListType:a.Qr.Editorial,first:c.in},context:{serverSideCacheable:!0,personalized:!1},pause:(0,r.getIsNode)()},queryTransform:e=>e.topListsForItem.edges,...e})};t.Z=e=>(0,n.jsx)(d.Lz,{componentId:o.NG.EditorialLists,children:(0,n.jsx)(l.xm,{value:l.Cd.EDITORIAL_LIST,children:(0,n.jsx)(p,{...e})})})},32855:function(e,t,i){var n=i(52322),r=i(14865);i(2784);var a=i(13433),s=i(58605),o=i(146),d=i(43287),l=i(33274),c=i(72814),u=i(71312),f=i(5079),p=i(56030);let g=e=>{let{pageConst:t=""}=(0,s.y)(),{listsRelatedLinkBuilder:i}=(0,l.WO)();return(0,n.jsx)(p.i,{id:"user",titleString:u.Y3,titleHref:i({const:t,refSuffix:c.Cd.SEE_MORE}),subtitleString:u.T4,showCreateListLink:!0,useLastModifiedDate:!1,queryOptions:{query:f.nm,variables:{itemId:t,topListType:a.Qr.All,first:u.in},context:{serverSideCacheable:!0,personalized:!1},pause:(0,r.getIsNode)()},queryTransform:e=>e.topListsForItem.edges,...e})};t.Z=e=>(0,n.jsx)(d.Lz,{componentId:o.NG.UserLists,children:(0,n.jsx)(c.xm,{value:c.Cd.USER_LISTS,children:(0,n.jsx)(g,{...e})})})},90996:function(e,t,i){i.d(t,{Z:function(){return I}});var n=i(52322),r=i(14865);i(2784);var a=i(19596),s=i(45103),o=i(6329),d=i(36214),l=i(28827),c=i(96446),u=i(58605),f=i(146),p=i(43287),g=i(33274),m=i(72814);let h={PARENT:"SidebarPolls",LOADER:"user-polls__loader"},x=e=>{let{query:t,csaOnLoadHandler:i,csmOnLoadHandler:a,cel_widget_id:s,className:x}=e,{pageConst:I,pageType:_}=(0,u.y)(),{pollLinkBuilder:y}=(0,g.WO)(),[v]=(0,c.E8)({query:t,variables:{itemId:I,pollCount:6},context:{serverSideCacheable:!0,personalized:!1},pause:r.isNode}),T=(0,l.N)({id:"feature_userPolls_title",defaultMessage:"User polls"}),C=(0,l.N)({id:"feature_userPolls_subTitle",defaultMessage:"Related polls from IMDb users"});if((0,p.LQ)(v,a,i),v.fetching)return(0,n.jsx)(d.ZP,{height:650,"data-testid":h.LOADER});let j=v.data?.[_]?.featuredPolls?.edges;return!j||j.length<=0||v.error?null:(0,n.jsx)(p.Lz,{componentId:f.NG.UserPolls,children:(0,n.jsx)(b,{"data-testid":h.PARENT,baseColor:"none",topPadding:"none",bottomPadding:"none",cel_widget_id:s,className:x,children:(0,n.jsx)(o.w,{id:"polls",listData:j,title:T,titleButtonHref:y({refSuffix:m.Cd.SEE_MORE}),subTitle:C})})})},b=(0,a.default)(s.PageSection).withConfig({componentId:"sc-76dd965b-0"})([""]);var I=e=>(0,n.jsx)(m.xm,{value:m.Cd.USER_POLLS,children:(0,n.jsx)(x,{...e})})},68054:function(e,t,i){i.d(t,{G:function(){return s}});var n=i(30382),r=i.n(n),a=i(7640);let s=r()` query TitleUserPolls($itemId: ID!, $pollCount: Int!) { title(id: $itemId) { featuredPolls(first: $pollCount) { edges { node { ...PollPreviewCard } } } } } ${a.F0} `},56030:function(e,t,i){i.d(t,{i:function(){return w}});var n=i(52322),r=i(67353),a=i(45455),s=i.n(a),o=i(2784),d=i(79855),l=i(19596),c=i(45103),u=i(91842);let f=e=>{let t,{testId:i,cards:r,title:a,subTitle:d,titleHref:l,buttonConfig:u}=e;if(s()(r))return null;let f=Math.ceil(r.length/2),x=r.filter((e,t)=>tt>=f);u&&(t=(0,n.jsx)("span",{children:(0,n.jsx)(g,{preIcon:u.preIcon,ariaLabel:u.label,href:u.href,onSelect:u.onSelect,onColor:"textPrimary",children:u.label})}));let I=a&&(0,n.jsx)(c.Title,{description:d,href:l,children:a});return(0,n.jsxs)("div",{"data-testid":i,children:[(I||t)&&(0,n.jsxs)(p,{children:[I,t]}),(0,n.jsxs)(m,{children:[(0,n.jsx)(h,{"data-testid":`${i}-first-group`,children:x.map((e,t)=>(0,n.jsx)(o.Fragment,{children:e},`${i}-first-group-${t}`))}),(0,n.jsx)(h,{"data-testid":`${i}-second-group`,children:b.map((e,t)=>(0,n.jsx)(o.Fragment,{children:e},`${i}-second-group-${t}`))})]})]})},p=l.default.div.withConfig({componentId:"sc-7c3573d0-0"})(["display:flex;justify-content:space-between;flex-direction:column;","{flex-direction:row;}","{flex-direction:column;}"],u.mediaQueries.breakpoints.above.s,u.mediaQueries.breakpoints.above.l),g=(0,l.default)(c.TextButton).withConfig({componentId:"sc-7c3573d0-1"})(["justify-content:flex-start;margin:-"," "," "," ",";","{margin-top:-",";}","{margin-top:-",";}"],u.spacing.s,(0,u.getSpacingVar)("ipt-pageMargin"),u.spacing.xs,(0,u.getSpacingVar)("ipt-pageMargin"),u.mediaQueries.breakpoints.above.s,u.spacing.xxs,u.mediaQueries.breakpoints.above.l,u.spacing.s),m=l.default.div.withConfig({componentId:"sc-7c3573d0-2"})(["","{display:flex;}"],u.mediaQueries.breakpoints.only.m),h=l.default.div.withConfig({componentId:"sc-7c3573d0-3"})(["flex:1;min-width:0;margin-bottom:",";","{&:first-of-type{",";margin-right:",";}&:last-of-type{margin-left:",";",";}> div{margin-left:0;margin-right:0;}}"],u.spacing.xs,u.mediaQueries.breakpoints.only.m,(0,u.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),u.spacing.xs,u.spacing.xs,(0,u.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"));var x=i(6329),b=i(36214),I=i(52817),_=i(60220),y=i(43287),v=i(33274),T=i(72814),C=i(69635),j=i(71312);let w=e=>{let t,{id:i,titleString:a,titleHref:o,subtitleString:l,showCreateListLink:c,useLastModifiedDate:u,queryTransform:p,queryToCardTransform:g,queryOptions:m,csmOnLoadHandler:h,csaOnLoadHandler:w,cel_widget_id:E,className:L}=e,S=(0,d.Z)(),M=(0,I.n)(),{listCreateLinkBuilder:N}=(0,v.WO)(),[k]=(0,_.E)(m);if((0,y.LQ)(k,h,w),k.error)return null;if(k.fetching)return(0,n.jsx)(b.lI,{height:j.fY,"test-id":`feature-${i}-lists__loader`});if(!k?.data)return null;if(c){let e=e=>{M||(e.preventDefault(),(0,C.r)())};t={preIcon:"add",label:S.formatMessage(j.wm),href:N({refSuffix:T.Cd.EMPTY})},g?t.onSelect=t=>e(t):t={...t,onClick:t=>e(t),onKeyDown:t=>{(0,r.isEnterOrSpaceKey)(t)&&e(t)}}}if(g){let e=g(k.data);return s()(e)?null:(0,n.jsx)(P,{baseColor:"none",topPadding:"none",bottomPadding:"none",cel_widget_id:E,"data-testid":E,className:L,children:(0,n.jsx)(f,{testId:`SidebarList-${i}`,cards:e,title:a&&S.formatMessage(a),subTitle:l&&S.formatMessage(l),titleHref:o,buttonConfig:t})})}let A=p(k.data);return!A||s()(A)?null:(0,n.jsx)(P,{baseColor:"none",topPadding:"none",bottomPadding:"none",cel_widget_id:E,"data-testid":E,className:L,children:(0,n.jsx)(x.w,{id:i,listData:A,title:a&&S.formatMessage(a),subTitle:l&&S.formatMessage(l),titleButtonHref:o,buttonConfig:t,useLastModifiedDate:u})})},P=(0,l.default)(c.PageSection).withConfig({componentId:"sc-5d9f941c-0"})([""])},71312:function(e,t,i){i.d(t,{$B:function(){return I},Qq:function(){return p},T4:function(){return d},Ug:function(){return c},Y3:function(){return o},YU:function(){return u},cj:function(){return b},dx:function(){return h},fY:function(){return a},in:function(){return r},jX:function(){return l},kg:function(){return n},n7:function(){return g},se:function(){return f},tu:function(){return m},uw:function(){return x},wm:function(){return s}});let n=2,r=6,a=650,s={id:"feature_userLists_create",defaultMessage:"Create new list"},o={id:"feature_userLists_title",defaultMessage:"User lists"},d={id:"feature_userLists_subTitle",defaultMessage:"Related lists created by IMDb users"},l={id:"feature_editorialLists_title",defaultMessage:"Editorial lists"},c={id:"feature_editorialLists_subTitle",defaultMessage:"Related lists created by IMDb editors"},u={id:"feature_yourLists_title",defaultMessage:"Your lists"},f={id:"feature_yourExports_title",defaultMessage:"Your exports"},p={id:"user_your_watchlist",defaultMessage:"Your Watchlist"},g={id:"feature_yourPredefinedLists_watchlistDesc",defaultMessage:"Track the titles you want to watch"},m={id:"user_your_ratings",defaultMessage:"Your Ratings"},h={id:"feature_yourPredefinedLists_ratingsDesc",defaultMessage:"Titles you have rated"},x={id:"user_your_checkins",defaultMessage:"Your Check-Ins"},b={id:"feature_yourPredefinedLists_checkinsDesc",defaultMessage:"Titles you are watching or have watched"},I={id:"common_last_modified",defaultMessage:"updated {duration} ago"}},5079:function(e,t,i){i.d(t,{L8:function(){return d},O_:function(){return o},nm:function(){return s}});var n=i(30382),r=i.n(n),a=i(30705);let s=r()` query ListCollectionConnection( $itemId: String! $first: Int! $topListType: TopListType! ) { topListsForItem( itemId: $itemId first: $first topListType: $topListType ) { edges { node { ...ListPreviewCard } } } } ${a.ZP.fragments.listPreviewCard} `,o=r()` query YourListsSidebar($first: Int!) { lists(first: $first, filter: { classTypes: [LIST] }) { edges { node { ...ListPreviewCard } } } } ${a.ZP.fragments.listPreviewCard} `,d=r()` query YourPredefinedListsSidebar { checkins: predefinedList(classType: CHECK_INS) { ...ListPreviewCard } ratings: userRatings(first: 1, sort: { by: MOST_RECENT, order: DESC }) { total edges { node { title { userRating { date } primaryImage { url height width caption { plainText } } } } } } watchlist: predefinedList(classType: WATCH_LIST) { ...ListPreviewCard } } ${a.ZP.fragments.listPreviewCard} `},58800:function(e,t,i){i.d(t,{Z:function(){return et},n:function(){return ei}});var n,r,a=i(52322),s=i(2784),o=i(19596),d=i(49246),l=i(58429),c=i(84038),u=i(25436),f=i(25321),p=i(12859),g=i(71291),m=i(26524),h=i(58605),x=i(33170),b=i(32855),I=i(90996),_=i(30382),y=i.n(_),v=i(7640);let T=y()` query NameUserPolls($itemId: ID!, $pollCount: Int!) { name(id: $itemId) { featuredPolls(first: $pollCount) { edges { node { ...PollPreviewCard } } } } } ${v.F0} `;var C=i(68054),j=()=>{let{pageType:e}=(0,h.y)();return(0,a.jsxs)(a.Fragment,{children:[e===u.PageType.NAME&&(0,a.jsx)(I.Z,{query:T}),e===u.PageType.TITLE&&(0,a.jsx)(I.Z,{query:C.G})]})},w=i(79855),P=i(45103),E=i(43672),L=i(146),S=i(43287),M=i(33274),N=i(72814),k=i(89697),A=i(78270),R=i(25673);let D=e=>{let{nameId:t,nameCreditsTotal:i,nameText:n}=e,r=(0,R.hg)({weblabID:A.lh.IMDB_NEXT_WATCHED_FEATURE_1045775,treatments:{T1:!0}}),s=(0,w.Z)(),{seenNameLinkBuilder:o,searchTitleLinkBuilder:d}=(0,M.WO)();if(!t||!n||!i)return null;let l=s.formatMessage({id:"feature_seen_title",defaultMessage:"How much have you seen?"}),c=s.formatMessage({id:"feature_rated_title",defaultMessage:"How much have you rated?"}),f=s.formatMessage({id:"common_go_to_your_list",defaultMessage:"Go to your list."}),p=s.formatMessage({id:"feature_seen_content",defaultMessage:`Keep track of how much of {nameTextStr}’s work you have seen.`},{nameTextStr:n}),g=s.formatMessage({id:"feature_rated_content",defaultMessage:`Keep track of how much of {nameTextStr}’s work you have rated.`},{nameTextStr:n}),m=`${f}`,h=`${f}`;return(0,a.jsx)(E.AU,{value:{cti:u.CTIS.SEEN_CTI},children:(0,a.jsx)(S.wW,{componentId:L.NG.NameSeen,children:(0,a.jsx)(P.PageSection,{topPadding:"none",bottomPadding:"none",baseColor:"none","data-testid":"nm_ft_se",children:(0,a.jsxs)(P.ListCard,{borderType:"line",children:[(0,a.jsx)($,{children:r?c:l}),(0,a.jsx)(P.HTMLContent,{html:(r?g:p)+" "+(r?h:m)})]})})})})};var O=e=>(0,a.jsx)(N.xm,{value:N.Cd.SEEN,children:(0,a.jsx)(D,{...e})});let $=(0,o.default)(P.Title).withConfig({componentId:"sc-e7bad75a-0"})(["padding:0;"]);var G=i(14865),B=i(72779),Z=i.n(B),H=i(91842),q=i(36214),Q=i(28827),Y=i(60220),V=i(27261),U=i(98046);(n=r||(r={})).Section="projectsInDevelopment-section",n.FeatureHeader="projectsInDevelopment-title",n.CreditList="projectsInDevelopment-credit-list",n.CreditListItem="projectsInDevelopment-credit-list-item",n.CardLoader="projectsInDevelopment-card-loader",n.Button="projectsInDevelopment-button";let F=y()` query NameMainProjectsInDev($nconst: ID!, $after: ID, $first: Int) { name(id: $nconst) { projectsInDevelopment(first: $first, after: $after) { total edges { node { title { id titleText { text } } } } pageInfo { endCursor } } } } `,z=e=>{let{className:t,nconst:i}=e,{makeRefMarker:n}=(0,N.Lz)(),{titleMainLinkBuilder:r}=(0,M.WO)(),[o,d]=(0,s.useState)([]),[l,c]=(0,s.useState)({first:5,issueNewRequest:!0,endCursor:void 0}),[{data:f,fetching:p,error:g}]=(0,Y.E)({query:F,variables:{nconst:i,first:l.first,after:l.endCursor},context:{serverSideCacheable:!0,personalized:!1},pause:G.isNode||!l.issueNewRequest});(0,s.useEffect)(()=>{f&&l.issueNewRequest&&(d([...o,...f?.name?.projectsInDevelopment?.edges||[]]),c({...l,issueNewRequest:!1,endCursor:f?.name?.projectsInDevelopment?.pageInfo?.endCursor}))},[f]);let m=f?.name?.projectsInDevelopment?.total||0,h=m-o.length,x=h>0,b=(0,Q.N)({id:"name_main_rightrail_projectsInDevelopment_title",defaultMessage:"Projects In Development"}),I=(0,Q.N)({id:"name_main_rightrail_projectsInDevelopment_description",defaultMessage:"Get more at IMDbPro"}),_=(0,Q.N)({id:"common_pagination_remaining",defaultMessage:"{remaining} more"},{remaining:h});return!g&&m||p?(0,a.jsx)("div",{children:(0,a.jsxs)(P.PageSection,{"data-testid":"projectsInDevelopment-section",className:Z()("projectsInDevelopment-section",t),topPadding:"none",bottomPadding:"none",sidePadding:"pageMargin",children:[(0,a.jsx)(P.Title,{description:I,"data-testid":"projectsInDevelopment-title",href:`https://pro.imdb.com/name/${i}?rf=cons_${n(N.Cd.DETAILS)}&ref_=cons_${n(N.Cd.DETAILS)}`,padding:"none",children:b}),(0,a.jsxs)(K,{borderType:"line",topPadding:"none",bottomPadding:"none",children:[(0,a.jsx)(P.MenuList,{className:"projectsInDevelopment-credit-list",children:!o.length&&p?(0,a.jsx)(q.ZP,{height:"feature","data-testid":"projectsInDevelopment-card-loader"}):o.map((e,t)=>{let i=e.node?.title?.id,n=e.node?.title?.titleText.text;if(i&&n)return(0,a.jsx)(W,{className:"projectsInDevelopment-credit-list-item",href:r({tconst:i,refSuffix:{t:N.Cd.EMPTY,n:t+1}}),children:n},`${i}_${t}`)})}),x&&(0,a.jsx)(X,{"data-testid":"projectsInDevelopment-button",isLoading:p,onClick:()=>{let e={type:u.PageType.NAME,subType:u.SubPageType.MAIN,id:i};(0,V.ar)(e,"nm-dev-see-more",U.qB.ACTION_ONLY,n(N.Cd.NEXT)),c({...l,first:250,issueNewRequest:!0})},text:_})]})]})}):null},K=(0,o.default)(P.ListCard).withConfig({componentId:"sc-fa9e5cae-0"})(["padding:0;margin-left:0;margin-right:0;"]),W=(0,o.default)(P.MenuListItem).withConfig({componentId:"sc-fa9e5cae-1"})(["",";"],(0,H.setTypographyType)("bodySmall")),X=(0,o.default)(P.SeeMoreButton).withConfig({componentId:"sc-fa9e5cae-2"})(["display:block;border-top:1px solid ",";padding-bottom:",";padding-top:",";padding-left:",";"],(0,H.getColorVarValue)("ipt-base-border-color"),H.spacing.xs,H.spacing.xs,H.spacing.xs);var J=e=>(0,a.jsx)(N.xm,{value:N.Cd.PROJECTS_IN_DEVELOPMENT,children:(0,a.jsx)(z,{...e})}),ee=i(25605);let et=e=>{let{nameSeenProps:t}=e,i=(0,m.ik)(),{pageType:n,pageConst:r}=(0,h.y)(),s=n===u.PageType.NAME,o=n===u.PageType.GALLERY,I=!!r;return(0,a.jsxs)(g.Z,{children:[(0,a.jsx)(l.Z,{slotName:c.B.RIGHT_3}),I&&(0,a.jsx)(x.Z,{}),!i&&(0,a.jsx)("span",{children:(0,a.jsx)(f.ZP,{name:p.A.INLINE60})}),(0,a.jsx)(l.Z,{slotName:c.B.RIGHT_5}),I&&(0,a.jsx)(b.Z,{}),I&&(0,a.jsx)(j,{}),(0,a.jsx)(ee.U,{children:(0,a.jsxs)(en,{children:[(s||o)&&(0,a.jsxs)(a.Fragment,{children:[!i&&(0,a.jsx)(f.ZP,{"data-test-id":d.z.INLINE_80_LARGE,name:p.A.INLINE80}),(0,a.jsx)(l.Z,{slotName:c.B.PRO_RIGHT_1})]}),s&&(0,a.jsx)(O,{...t}),I&&s&&(0,a.jsx)(J,{nconst:r}),(0,a.jsx)(l.Z,{slotName:c.B.RIGHT_7})]})})]})},ei=(0,o.css)(["display:flex;flex-direction:column;gap:3rem;"]),en=o.default.div.withConfig({componentId:"sc-c6b62efa-0"})([""," height:100%;.non-name-page{gap:0;}"],ei)},25605:function(e,t,i){i.d(t,{U:function(){return s}});var n=i(52322);i(2784);var r=i(19596),a=i(91842);let s=e=>(0,n.jsx)(o,{"data-testid":"sidebar-sticky-block",children:e.children}),o=r.default.div.withConfig({componentId:"sc-67c78cb4-0"})(["","{margin-bottom:23rem;position:-webkit-sticky;position:sticky;top:0;}"],a.mediaQueries.breakpoints.above.l)},41241:function(e,t,i){var n,r;i.d(t,{LU:function(){return c},dR:function(){return l}});let a="formatters_duration";(r=n||(n={})).SECOND="second",r.MINUTE="minute",r.HOUR="hour",r.DAY="day",r.WEEK="week",r.MONTH="month",r.YEAR="year";let s={second:()=>1e3,minute:()=>60*s.second(),hour:()=>60*s.minute(),day:()=>24*s.hour(),week:()=>7*s.day(),month:()=>4.35*s.week(),year:()=>12*s.month()},o=(e,t,i,n)=>{let r=s[i](),o=n&&s[n](),d=0;return((n?t=2*r:t>=2*r)?d=Math.floor(t/r):t<2*r&&t>=r&&(d=1),d)?e.formatMessage({id:`${a}_${i}`,defaultMessage:`{count, plural, one {1 ${i}} other {{count} ${i}s}}`},{count:d}):""},d=e=>e instanceof Date&&!isNaN(e.getTime()),l=(e,t,i)=>{let n=i?new Date(i):new Date;return c(e,new Date(t),n)},c=(e,t,i)=>{if(!d(i)||!d(t))return"";let n=i.getTime()-t.getTime();if(n>=s.year())return o(e,n,"year");if(n=s.month())return o(e,n,"month","year");if(n=s.week())return o(e,n,"week","month");if(n=s.day())return o(e,n,"day","week");if(n=s.hour())return o(e,n,"hour","day");if(n=s.minute())return o(e,n,"minute","hour");if(n=s.second())return o(e,n,"second","minute");else if(nn.B()?.context?.sidecar?.placementMap||{}}}]);