"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[288],{61873:function(n,e,t){t.d(e,{uT:function(){return L}});var i=t(92228),r=t(52322),a=t(72779),o=t.n(a),s=t(30382),d=t.n(s),u=(t(2784),t(73857)),l=t(19596),c=t(45103),f=t(91842),p=t(93130),g=t(25140),v=t(54364),m=t(2366),h=t(98621),x=t(47660),y=t(98739),b=t(28781),w=t(12918);function T(){var n=(0,i.Z)(["\n fragment ListPreviewCard on List {\n id\n lastModifiedDate\n createdDate\n name {\n originalText\n }\n listType {\n id\n }\n primaryImage {\n image {\n url\n height\n width\n caption {\n plainText\n }\n }\n }\n items(first: 0) {\n total\n }\n }\n"]);return T=function(){return n},n}function _(){var n=(0,i.Z)(["\n padding: ",";\n"]);return _=function(){return n},n}function C(){var n=(0,i.Z)(["\n height: 100%;\n"]);return C=function(){return n},n}var I=d()(T()),L=function(n){var e,t,i,a,s=n.listData,d=n.id,l=n.useLastModifiedDate,c=n.refTag,f=n.className,T=(0,u.Z)(),_=(0,g.B)().context,C=(0,h.hg)({weblabID:m.lh.IMDB_NEXT_EXPERIMENT_ROUNDED_CORNERS_917766,treatments:{T1:!0}});if(!s)return null;if(P(s)){var I,L,j,E,D=l?s.lastModifiedDate:s.createdDate,R=l?y.QH:y.Ks,Q=y.wK[(null===(I=s.listType)||void 0===I?void 0:I.id)||p.lZ.Lists];a={linkText:null===(L=s.name)||void 0===L?void 0:L.originalText,linkHref:M(s)?(0,v.Lr)("/user/".concat(null===(j=_.sidecar)||void 0===j?void 0:j.account.userId,"/ratings/"),c):S(s.id,"list",c),defaultCaptionString:y.vk,subtext:(0,r.jsx)(w.l,{displayDate:D,displayDateStringId:R,itemCount:null===(E=s.items)||void 0===E?void 0:E.total,itemType:Q})}}else{var N,H;a={linkText:(null===(N=s.question)||void 0===N||null===(H=N.originalText)||void 0===H?void 0:H.plainText)||void 0,linkHref:S(s.id,"poll",c),defaultCaptionString:y.qq}}if(!a)return null;var O=null===s||void 0===s||null===(e=s.primaryImage)||void 0===e?void 0:e.image,V=(null===O||void 0===O||null===(t=O.caption)||void 0===t?void 0:t.plainText)||T.formatMessage(a.defaultCaptionString);return(0,r.jsx)(b.Ok,{borderType:"line",className:o()(f,C?"preview-list-card--rounded":""),"data-testid":"ListPreviewCard-".concat(d),children:(0,r.jsx)(b.dy,{href:a.linkHref,"data-testid":"preview-list-card-link",children:(0,r.jsxs)(b.CC,{children:[(0,r.jsxs)(b.lU,{subtext:!!a.subtext,children:[(0,r.jsx)(b.Gv,{className:"listName",children:a.linkText}),a.subtext]}),(0,r.jsx)(k,{children:(0,r.jsx)(Z,{className:"poster",size:"xs",imageModel:O&&O.url&&O.height&&O.width?{url:O.url,maxHeight:O.height,maxWidth:O.width,caption:V}:void 0,imageType:P(s)?(0,x.i)(null===s||void 0===s||null===(i=s.listType)||void 0===i?void 0:i.id):"none"})})]})})})},M=function(n){return"RATINGS"===n.id},S=function(n,e,t){var i="/".concat(e,"/").concat(n,"/");return t?(0,v.Lr)(i,t):i},P=function(n){return void 0!==n.listType},k=l.default.div.withConfig({componentId:"sc-42c6905c-0"})(_(),f.spacing.xxs),Z=(0,l.default)(c.PosterImage).withConfig({componentId:"sc-42c6905c-1"})(C());L.fragments={listPreviewCard:I},e.ZP=L},28781:function(n,e,t){t.d(e,{CC:function(){return m},Gv:function(){return h},Ok:function(){return g},dy:function(){return v},lU:function(){return p}});var i=t(92228),r=t(19596),a=t(45103),o=t(91842),s=t(91793);function d(){var n=(0,i.Z)(["\n display: flex;\n overflow: hidden;\n flex-direction: column;\n justify-content: ",";\n padding: "," ",";\n"]);return d=function(){return n},n}function u(){var n=(0,i.Z)(["\n margin-bottom: ",";\n padding: 0;\n\n &.preview-list-card--rounded {\n border-radius: ",";\n }\n"]);return u=function(){return n},n}function l(){var n=(0,i.Z)(["\n text-decoration: none;\n color: inherit;\n &:hover .poster {\n opacity: 0.8;\n }\n &:hover .listName {\n text-decoration: underline;\n }\n"]);return l=function(){return n},n}function c(){var n=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n height: calc(6rem + ",");\n "," {\n height: calc(5.75rem + 2px);\n }\n "," {\n height: calc(5.75rem + 2px);\n }\n"]);return c=function(){return n},n}function f(){var n=(0,i.Z)(["\n ",";\n ",";\n word-wrap: break-word;\n"]);return f=function(){return n},n}var p=r.default.div.withConfig({componentId:"sc-44ab7b82-0"})(d(),(function(n){return n.subtext?"space-between":"center"}),o.spacing.s,o.spacing.m),g=(0,r.default)(a.ListCard).withConfig({componentId:"sc-44ab7b82-1"})(u(),o.spacing.xs,o.spacing.s),v=r.default.a.withConfig({componentId:"sc-44ab7b82-2"})(l()),m=r.default.div.withConfig({componentId:"sc-44ab7b82-3"})(c(),o.spacing.xxs,o.mediaQueries.breakpoints.only.s,o.mediaQueries.breakpoints.above.xl),h=r.default.div.withConfig({componentId:"sc-44ab7b82-4"})(f(),(0,o.setTypographyType)("bodySmall"),(0,s.S)(2))},12918:function(n,e,t){t.d(e,{l:function(){return v}});var i=t(70865),r=t(96670),a=t(92228),o=t(52322),s=(t(2784),t(73857)),d=t(19596),u=t(91842),l=t(81303),c=t(52828),f=t(98739);function p(){var n=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n "," {\n flex-direction: row;\n }\n "," {\n flex-direction: row;\n }\n ","\n ","\n"]);return p=function(){return n},n}function g(){var n=(0,a.Z)(["\n display: none;\n "," {\n display: initial;\n }\n "," {\n display: initial;\n }\n"]);return g=function(){return n},n}var v=function(n){var e=n.displayDateStringId,t=n.displayDate,a=n.itemCount,d=n.itemType,u=n.fallbackMessage,c=(0,s.Z)();if(!a&&!t&&!u)return null;var p=!!a,g=f.Pm[d];return(0,o.jsxs)(h,{children:[!t&&!a&&u&&c.formatMessage(u),t&&(0,o.jsx)("span",{children:(0,o.jsx)(l.q,(0,r.Z)((0,i.Z)({},e),{values:{duration:m(c,t)}}))}),t&&p&&(0,o.jsx)(x,{children:"\xa0\u2022\xa0"}),p&&(0,o.jsx)("span",{children:(0,o.jsx)(l.q,(0,r.Z)((0,i.Z)({},g),{values:{count:a}}))})]})};function m(n,e){var t=new Date;return t=f}));l&&(e=(0,r.jsx)("span",{children:(0,r.jsx)(h,{"data-testid":"SidebarList-button-".concat(t),preIcon:l.preIcon,ariaLabel:l.label,href:l.href,onColor:"textPrimary",onClick:l.onClick,onKeyDown:l.onKeyDown,children:l.label})}));var b=d?(0,r.jsx)(o.Title,{href:d,description:s,"data-testid":"SidebarList-title-".concat(t),children:a}):(0,r.jsx)(o.Title,{description:s,"data-testid":"SidebarList-title-".concat(t),children:a});return(0,r.jsxs)("div",{"data-testid":"SidebarList-".concat(t),children:[(0,r.jsxs)(m,{children:[a&&b,e]}),(0,r.jsxs)(x,{children:[(0,r.jsx)(y,{"data-testid":"firstListCardGroup-".concat(t),children:p.map((function(n,e){return(0,r.jsx)(v,{listData:n.node,id:t,useLastModifiedDate:c,refTag:"".concat(u).concat(e+1)},"sidebar-list-item-".concat(e))}))}),(0,r.jsx)(y,{"data-testid":"secondListCardGroup-".concat(t),children:g.map((function(n,e){return(0,r.jsx)(v,{listData:n.node,id:t,useLastModifiedDate:c,refTag:"".concat(u).concat(e+f+1)},"sidebar-list-item-".concat(e+f))}))})]})]})},v=(0,a.default)(d.uT).withConfig({componentId:"sc-84c72bbf-0"})(u()),m=a.default.div.withConfig({componentId:"sc-84c72bbf-1"})(l(),s.mediaQueries.breakpoints.above.s,s.mediaQueries.breakpoints.above.l),h=(0,a.default)(o.TextButton).withConfig({componentId:"sc-84c72bbf-2"})(c(),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),x=a.default.div.withConfig({componentId:"sc-84c72bbf-3"})(f(),s.mediaQueries.breakpoints.only.m),y=a.default.div.withConfig({componentId:"sc-84c72bbf-4"})(p(),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"),v)},47660:function(n,e,t){t.d(e,{C:function(){return a},i:function(){return o}});var i=t(93130),r=t(4464),a=function(n,e,t){var a,s,d,u,l,c,f,p,g,v,m,h,x,y,b,w=[];if((null===(a=n.visibility)||void 0===a?void 0:a.id)&&w.push({text:n.visibility.id===i.Cy.Private?e.formatMessage({id:"list_privacy_private",defaultMessage:"Private"}):e.formatMessage({id:"list_privacy_public",defaultMessage:"Public"})}),n.lastModifiedDate){var T=e.formatDate(n.lastModifiedDate,{year:"numeric",month:"short",day:"2-digit"});w.push({text:e.formatMessage({id:"common_date_modified",defaultMessage:"Modified {date}"},{date:T})})}var _,C,I,L,M,S,P,k=(0,r.ah)(n,e,t);return{index:n.index,listId:null!==(_=n.id)&&void 0!==_?_:"",listMetadata:w,listTitle:k,listType:null!==(C=null===(s=n.listType)||void 0===s?void 0:s.id)&&void 0!==C?C:i.lZ.Titles,listSize:null!==(I=null===(d=n.items)||void 0===d?void 0:d.total)&&void 0!==I?I:0,primaryConstData:{fallbackImage:o(null===(u=n.listType)||void 0===u?void 0:u.id),primaryImage:{caption:null!==(L=null===(l=n.primaryImage)||void 0===l||null===(c=l.image)||void 0===c||null===(f=c.caption)||void 0===f?void 0:f.plainText)&&void 0!==L?L:"",id:null===(p=n.primaryImage)||void 0===p||null===(g=p.image)||void 0===g?void 0:g.id,height:null!==(M=null===(v=n.primaryImage)||void 0===v||null===(m=v.image)||void 0===m?void 0:m.height)&&void 0!==M?M:0,url:null!==(S=null===(h=n.primaryImage)||void 0===h||null===(x=h.image)||void 0===x?void 0:x.url)&&void 0!==S?S:"",width:null!==(P=null===(y=n.primaryImage)||void 0===y||null===(b=y.image)||void 0===b?void 0:b.width)&&void 0!==P?P:0}}}},o=function(n){switch(n){case i.lZ.Titles:return"movie";case i.lZ.People:return"name";case i.lZ.Images:return"unknown";case i.lZ.Videos:return"video";default:return"unknown"}}},77071:function(n,e,t){t.d(e,{i:function(){return R}});var i=t(70865),r=t(96670),a=t(66383),o=t(92228),s=t(52322),d=t(45455),u=t.n(d),l=t(2784),c=t(73857),f=t(19596),p=t(45103),g=t(11998),v=t(91842);function m(){var n=(0,o.Z)(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n\n "," {\n flex-direction: row;\n }\n\n "," {\n flex-direction: column;\n }\n"]);return m=function(){return n},n}function h(){var n=(0,o.Z)(["\n justify-content: flex-start;\n margin: -"," "," "," ",";\n "," {\n margin-top: -",";\n }\n "," {\n margin-top: -",";\n }\n"]);return h=function(){return n},n}function x(){var n=(0,o.Z)(["\n "," {\n display: flex;\n }\n"]);return x=function(){return n},n}function y(){var n=(0,o.Z)(["\n flex: 1;\n min-width: 0;\n margin-bottom: ",";\n\n "," {\n &:first-of-type {\n ",";\n margin-right: ",";\n }\n\n &:last-of-type {\n margin-left: ",";\n ",";\n }\n\n > div {\n margin-left: 0;\n margin-right: 0;\n }\n }\n"]);return y=function(){return n},n}var b=function(n){var e=n.testId,t=n.cards,i=n.title,r=n.subTitle,a=n.titleHref,o=n.buttonConfig;if(u()(t))return null;var d,c=Math.ceil(t.length/2),f=t.filter((function(n,e){return e=c}));o&&(d=(0,s.jsx)("span",{children:(0,s.jsx)(T,{preIcon:o.preIcon,ariaLabel:o.label,href:o.href,onSelect:o.onSelect,onColor:"textPrimary",children:o.label})}));var v=i&&(0,s.jsx)(p.Title,{description:r,href:a,children:i});return(0,s.jsxs)("div",{"data-testid":e,children:[(v||d)&&(0,s.jsxs)(w,{children:[v,d]}),(0,s.jsxs)(_,{children:[(0,s.jsx)(C,{"data-testid":"".concat(e,"-first-group"),children:f.map((function(n,t){return(0,s.jsx)(l.Fragment,{children:n},"".concat(e,"-first-group-").concat(t))}))}),(0,s.jsx)(C,{"data-testid":"".concat(e,"-second-group"),children:g.map((function(n,t){return(0,s.jsx)(l.Fragment,{children:n},"".concat(e,"-second-group-").concat(t))}))})]})]})},w=f.default.div.withConfig({componentId:"sc-7c3573d0-0"})(m(),v.mediaQueries.breakpoints.above.s,v.mediaQueries.breakpoints.above.l),T=(0,f.default)(p.TextButton).withConfig({componentId:"sc-7c3573d0-1"})(h(),v.spacing.s,(0,v.getSpacingVar)("ipt-pageMargin"),v.spacing.xs,(0,v.getSpacingVar)("ipt-pageMargin"),v.mediaQueries.breakpoints.above.s,v.spacing.xxs,v.mediaQueries.breakpoints.above.l,v.spacing.s),_=f.default.div.withConfig({componentId:"sc-7c3573d0-2"})(x(),v.mediaQueries.breakpoints.only.m),C=f.default.div.withConfig({componentId:"sc-7c3573d0-3"})(y(),v.spacing.xs,v.mediaQueries.breakpoints.only.m,(0,v.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),v.spacing.xs,v.spacing.xs,(0,v.setPropertyToSpacingVar)("margin-right","ipt-pageMargin")),I=t(52411),L=t(22414),M=t(90551),S=t(13813),P=t(64023),k=t(50911),Z=t(26688),j=t(54364),E=t(96281);function D(){var n=(0,o.Z)([""]);return D=function(){return n},n}var R=function(n){var e,t=n.id,o=n.titleString,d=n.titleHref,l=n.subtitleString,f=n.showCreateListLink,p=n.useLastModifiedDate,v=n.queryTransform,m=n.queryToCardTransform,h=n.queryOptions,x=n.csmOnLoadHandler,y=n.csaOnLoadHandler,w=n.cel_widget_id,T=n.className,_=(0,S.y)().refTagPrefix,C=(0,c.Z)(),D=(0,M.n)(),R=(0,a.Z)((0,P.E)(h),1)[0];if((0,k.LQ)(R,x,y),R.error)return null;if(R.fetching)return(0,s.jsx)(L.lI,{height:E.fY,"test-id":"feature-".concat(t,"-lists__loader")});if(!(null===R||void 0===R?void 0:R.data))return null;if(f){var N=function(n){D||(n.preventDefault(),(0,Z.r)())};e={preIcon:"add",label:C.formatMessage(E.wm),href:"/list/create/?ref_=".concat(_,"_rls")},m?e.onSelect=function(n){return N(n)}:e=(0,r.Z)((0,i.Z)({},e),{onClick:function(n){return N(n)},onKeyDown:function(n){(0,g.isEnterOrSpaceKey)(n)&&N(n)}})}if(m){var H=m(R.data);return u()(H)?null:(0,s.jsx)(Q,{baseColor:"none",topPadding:"none",bottomPadding:"none",cel_widget_id:w,"data-testid":w,className:T,children:(0,s.jsx)(b,{testId:"SidebarList-".concat(t),cards:H,title:o&&C.formatMessage(o),subTitle:l&&C.formatMessage(l),titleHref:d&&(0,j.Lr)(d,"".concat(_,"_rls_sm")),buttonConfig:e})})}var O=v(R.data);return!O||u()(O)?null:(0,s.jsx)(Q,{baseColor:"none",topPadding:"none",bottomPadding:"none",cel_widget_id:w,"data-testid":w,className:T,children:(0,s.jsx)(I.w,{id:t,listData:O,title:o&&C.formatMessage(o),subTitle:l&&C.formatMessage(l),titleButtonHref:d&&(0,j.Lr)(d,"".concat(_,"_rls_sm")),cardLinksRefPrefix:"".concat(_,"_rls_"),buttonConfig:e,useLastModifiedDate:p})})},Q=(0,f.default)(p.PageSection).withConfig({componentId:"sc-b17889d5-0"})(D())},96281:function(n,e,t){t.d(e,{$B:function(){return y},Qq:function(){return p},T4:function(){return d},Ug:function(){return l},Y3:function(){return s},YU:function(){return c},cj:function(){return x},dx:function(){return m},fY:function(){return a},in:function(){return r},jX:function(){return u},kg:function(){return i},n7:function(){return g},se:function(){return f},tu:function(){return v},uw:function(){return h},wm:function(){return o}});var i=2,r=6,a=650,o={id:"feature_userLists_create",defaultMessage:"Create new list"},s={id:"feature_userLists_title",defaultMessage:"User lists"},d={id:"feature_userLists_subTitle",defaultMessage:"Related lists created by IMDb users"},u={id:"feature_editorialLists_title",defaultMessage:"Editorial lists"},l={id:"feature_editorialLists_subTitle",defaultMessage:"Related lists created by IMDb editors"},c={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"},v={id:"user_your_ratings",defaultMessage:"Your Ratings"},m={id:"feature_yourPredefinedLists_ratingsDesc",defaultMessage:"Titles you have rated"},h={id:"user_your_checkins",defaultMessage:"Your Check-Ins"},x={id:"feature_yourPredefinedLists_checkinsDesc",defaultMessage:"Titles you are watching or have watched"},y={id:"common_last_modified",defaultMessage:"updated {duration} ago"}},47930:function(n,e,t){t.d(e,{L8:function(){return f},O_:function(){return c},nm:function(){return l}});var i=t(92228),r=t(30382),a=t.n(r),o=t(61873);function s(){var n=(0,i.Z)(["\n query ListCollectionConnection(\n $itemId: String!\n $first: Int!\n $topListType: TopListType!\n ) {\n topListsForItem(\n itemId: $itemId\n first: $first\n topListType: $topListType\n ) {\n edges {\n node {\n ...ListPreviewCard\n }\n }\n }\n }\n\n ","\n"]);return s=function(){return n},n}function d(){var n=(0,i.Z)(["\n query YourListsSidebar($first: Int!) {\n lists(first: $first, filter: { classTypes: [LIST] }) {\n edges {\n node {\n ...ListPreviewCard\n }\n }\n }\n }\n\n ","\n"]);return d=function(){return n},n}function u(){var n=(0,i.Z)(["\n query YourPredefinedListsSidebar {\n checkins: predefinedList(classType: CHECK_INS) {\n ...ListPreviewCard\n }\n ratings: userRatings(first: 1, sort: { by: MOST_RECENT, order: DESC }) {\n total\n edges {\n node {\n title {\n userRating {\n date\n }\n primaryImage {\n url\n height\n width\n caption {\n plainText\n }\n }\n }\n }\n }\n }\n watchlist: predefinedList(classType: WATCH_LIST) {\n ...ListPreviewCard\n }\n }\n\n ","\n"]);return u=function(){return n},n}var l=a()(s(),o.ZP.fragments.listPreviewCard),c=a()(d(),o.ZP.fragments.listPreviewCard),f=a()(u(),o.ZP.fragments.listPreviewCard)}}]);