"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7030],{2129:function(n,t,e){e.d(t,{w:function(){return o}});var r=e(92228),i=e(30382);function a(){var n=(0,r.Z)(["\n fragment ImageListItemMetadata on Image {\n id\n url\n height\n width\n caption {\n plainText\n }\n names(limit: 4) {\n id\n nameText {\n text\n }\n }\n titles(limit: 1) {\n id\n titleText {\n text\n }\n originalTitleText {\n text\n }\n releaseYear {\n year\n endYear\n }\n }\n }\n"]);return a=function(){return n},n}var o=e.n(i)()(a())},30771:function(n,t,e){e.d(t,{E:function(){return l},k:function(){return d}});var r=e(92228),i=e(30382),a=e.n(i);function o(){var n=(0,r.Z)(["\n fragment NameListItemMetadata on Name {\n id\n primaryImage {\n url\n caption {\n plainText\n }\n width\n height\n }\n nameText {\n text\n }\n primaryProfessions {\n category {\n text\n }\n }\n knownFor(first: 1) {\n edges {\n node {\n summary {\n yearRange {\n year\n endYear\n }\n }\n title {\n id\n originalTitleText {\n text\n }\n titleText {\n text\n }\n titleType {\n canHaveEpisodes\n }\n }\n }\n }\n }\n bio {\n displayableArticle {\n body {\n plaidHtml(\n queryParams: $refTagQueryParam\n showOriginalTitleText: $originalTitleText\n )\n }\n }\n }\n }\n"]);return o=function(){return n},n}function s(){var n=(0,r.Z)(["\n fragment NameMeterRanking on Name {\n meterRanking {\n currentRank\n rankChange {\n changeDirection\n difference\n }\n }\n }\n"]);return s=function(){return n},n}var l=a()(o()),d=a()(s())},89799:function(n,t,e){e.d(t,{EC:function(){return f},O4:function(){return u},dc:function(){return m}});var r=e(92228),i=e(30382),a=e.n(i);function o(){var n=(0,r.Z)(["\n fragment UserListListItemMetadata on List {\n author {\n nickName\n userId\n }\n id\n name {\n originalText\n }\n listType {\n id\n }\n listClass {\n id\n name {\n text\n }\n }\n description {\n originalText {\n plaidHtml(showLineBreak: true)\n markdown\n plainText\n }\n }\n items(first: 0) {\n total\n }\n createdDate\n lastModifiedDate\n primaryImage {\n image {\n id\n caption {\n plainText\n }\n height\n width\n url\n }\n }\n visibility {\n id\n }\n }\n"]);return o=function(){return n},n}function s(){var n=(0,r.Z)(["\n fragment ListItemMetadata on ListItemNode {\n itemId\n createdDate\n description {\n originalText {\n markdown\n plaidHtml(showLineBreak: true)\n plainText\n }\n }\n }\n"]);return s=function(){return n},n}function l(){var n=(0,r.Z)(["\n fragment ListSearchItemMetadata on ListItemSearchNode {\n itemId\n createdDate\n description {\n originalText {\n markdown\n plaidHtml(showLineBreak: true)\n plainText\n }\n }\n }\n"]);return l=function(){return n},n}function d(){var n=(0,r.Z)(["\n fragment NameChartItemMetadata on ChartNameEdge {\n currentRank\n rankChange {\n changeDirection\n difference\n }\n }\n"]);return d=function(){return n},n}function c(){var n=(0,r.Z)(["\n fragment TitleChartItemMetadata on ChartTitleEdge {\n currentRank\n rankChange {\n changeDirection\n difference\n }\n }\n"]);return c=function(){return n},n}var u=a()(o()),m=a()(s()),f=a()(l());a()(d()),a()(c())},26856:function(n,t,e){e.d(t,{Dl:function(){return f},Zz:function(){return g},_A:function(){return v},f1:function(){return T},qp:function(){return h},vO:function(){return p}});var r=e(92228),i=e(30382),a=e.n(i),o=e(18136);function s(){var n=(0,r.Z)(['\n fragment TitleTopCastAndCrew on Title {\n id\n principalCredits(\n filter: { categories: ["cast", "director", "creator"] }\n ) {\n category {\n id\n }\n credits {\n name {\n id\n nameText {\n text\n }\n }\n }\n }\n }\n']);return s=function(){return n},n}function l(){var n=(0,r.Z)(["\n fragment TitleMeterRanking on Title {\n meterRanking {\n currentRank\n rankChange {\n changeDirection\n difference\n }\n }\n }\n"]);return l=function(){return n},n}function d(){var n=(0,r.Z)(["\n fragment TitleListItemMetadata on Title {\n ...BaseTitleCard\n plot {\n plotText {\n plainText\n }\n }\n latestTrailer {\n id\n }\n series {\n series {\n id\n originalTitleText {\n text\n }\n releaseYear {\n endYear\n year\n }\n titleText {\n text\n }\n }\n }\n }\n ","\n"]);return d=function(){return n},n}function c(){var n=(0,r.Z)(["\n fragment TitleListItemMetascore on Title {\n metacritic {\n metascore {\n score\n }\n }\n }\n"]);return c=function(){return n},n}function u(){var n=(0,r.Z)(["\n fragment TitleTotalEpisodes on Title {\n episodes {\n episodes(first: 0) {\n total\n }\n }\n }\n"]);return u=function(){return n},n}function m(){var n=(0,r.Z)(["\n fragment TitleListFacetFields on TitleListItemSearchConnection {\n genres: facet(facetField: GENRES) {\n filterId\n text\n total\n }\n\n keywords: facet(facetField: KEYWORDS) {\n filterId\n text\n total\n }\n\n watchOptions: facet(facetField: WATCH_PROVIDERS) {\n filterId\n text\n total\n }\n\n titleTypes: facet(facetField: TITLE_TYPE) {\n filterId\n text\n total\n }\n }\n"]);return m=function(){return n},n}var f=a()(s()),p=a()(l()),g=a()(d(),o.c.fragments.baseTitleCard),v=a()(c()),T=a()(u()),h=a()(m())},88645:function(n,t,e){e.d(t,{X:function(){return o}});var r=e(92228),i=e(30382);function a(){var n=(0,r.Z)(["\n fragment VideoListItemMetadata on Video {\n id\n thumbnail {\n url\n width\n height\n }\n name {\n value\n language\n }\n description {\n value\n language\n }\n runtime {\n unit\n value\n }\n primaryTitle {\n id\n originalTitleText {\n text\n }\n titleText {\n text\n }\n titleType {\n canHaveEpisodes\n }\n releaseYear {\n year\n endYear\n }\n }\n }\n"]);return a=function(){return n},n}var o=e.n(i)()(a())},83446:function(n,t,e){e.d(t,{Y:function(){return un}});var r=e(70865),i=e(66383),a=e(92228),o=e(52322),s=e(30382),l=e.n(s),d=e(2784),c=e(73857),u=e(19596),m=e(45103),f=e(91842),p=e(79091),g=e(93130),v=e(81303),T=e(90551),h=e(22659),I=e(13813),x=e(64023),C=e(11992),y=e(96485),b=e(72072),L=e(31619),_=e(87353);function P(){var n=(0,a.Z)(["\n fragment AddConstToListMenuItem on List {\n id\n name {\n originalText\n }\n }\n"]);return P=function(){return n},n}function Z(){var n=(0,a.Z)(["\n display: flex;\n align-items: center;\n width: 100%;\n"]);return Z=function(){return n},n}function w(){var n=(0,a.Z)(["\n ","\n flex-grow: 1;\n cursor: pointer;\n padding: 0.75rem 1rem 0.75rem 0.75rem;\n position: relative;\n text-overflow: ellipsis;\n overflow: hidden;\n word-break: break-all;\n white-space: nowrap;\n\n &:after {\n position: absolute;\n content: '';\n right: 0;\n top: 20%;\n height: 60%;\n width: 1px;\n ","\n }\n"]);return w=function(){return n},n}function M(){var n=(0,a.Z)(["\n margin-right: 0.5rem;\n"]);return M=function(){return n},n}function k(){var n=(0,a.Z)(["\n ","\n"]);return k=function(){return n},n}function E(){var n=(0,a.Z)(["\n ","\n padding: .75rem 1rem;\n ","\n flex-shrink: 0;\n"]);return E=function(){return n},n}var N=l()(P()),j=function(n){var t,e=n.constId,r=n.onError,i=n.refTag,a=n.listData.id,s=(null===(t=n.listData.name)||void 0===t?void 0:t.originalText)||"",l=(0,L.N)({id:"addConstToListMenuItem_goToList_ariaLabel",defaultMessage:"Go to list: {listTitle}"},{listTitle:s}),c=(0,L.N)({id:"user_your_checkins",defaultMessage:"Your Check-Ins"}),u=(0,d.useState)(n.isElementInList),f=u[0],p=u[1],g=(0,_.j8)({overrideRefTag:i}),v=g.addConstToList,T=g.removeConstFromList,h=v.executeAddConstToList,I=v.addConstToListResult,x=T.executeRemoveConstFromList,C=T.removeConstFromListResult,y=(null===I||void 0===I?void 0:I.error)||(null===C||void 0===C?void 0:C.error),P=function(){f?(x(a,e),p(!1)):(h(a,e),p(!0))};return y?(r(y),null):(0,o.jsxs)(A,{children:[(0,o.jsxs)(D,{onClick:P,onKeyDown:function(n){b.M6.isEnterOrSpaceKey(n)&&P()},role:"button",tabIndex:0,"data-titleinlist":f,children:[f&&(0,o.jsx)(O,{name:"playlist-add-check"}),!f&&(0,o.jsx)(R,{name:"add"}),"CHECK_INS"===n.listClass?c:s]}),(0,o.jsx)(V,{href:"/list/".concat(a,"/?ref_=").concat(i,"_sm"),"aria-label":l,children:(0,o.jsx)(m.Icon,{name:"chevron-right"})})]})};j.fragments={addConstToListMenuItem:N};var S="\n &:focus {\n ".concat((0,f.focusOnBaseAlt)(),"\n }\n\n &:hover {\n background: rgba(\n ").concat((0,f.getColorVarValue)("ipt-on-baseAlt-rgb"),",\n ").concat((0,f.getColorVarValue)("ipt-baseAlt-hover-opacity"),"\n );\n background: rgba(\n ").concat((0,f.getColorVar)("ipt-on-baseAlt-rgb"),",\n ").concat((0,f.getColorVar)("ipt-baseAlt-hover-opacity"),"\n );\n }\n\n &:active {\n background: rgba(\n ").concat((0,f.getColorVarValue)("ipt-on-baseAlt-rgb"),",\n ").concat((0,f.getColorVarValue)("ipt-baseAlt-pressed-opacity"),"\n );\n background: rgba(\n ").concat((0,f.getColorVar)("ipt-on-baseAlt-rgb"),",\n ").concat((0,f.getColorVar)("ipt-baseAlt-pressed-opacity"),"\n );\n }\n"),A=u.default.div.withConfig({componentId:"sc-e03980b-0"})(Z()),D=u.default.div.withConfig({componentId:"sc-e03980b-1"})(w(),S,(0,f.setPropertyToColorVar)("background-color","ipt-baseAlt-border-color")),R=(0,u.default)(m.Icon).withConfig({componentId:"sc-e03980b-2"})(M()),O=(0,u.default)(R).withConfig({componentId:"sc-e03980b-3"})(k(),(0,f.setPropertyToColorVar)("color","ipt-on-baseAlt-accent4-color")),V=u.default.a.withConfig({componentId:"sc-e03980b-4"})(E(),S,(0,f.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color")),$={id:"common_add_to_list_buttonText",defaultMessage:"Add to list"},F={id:"addConstToListPrompt_label_createList",defaultMessage:"Create new list"},q={id:"error_emptyStates_addConstToList_title",defaultMessage:"There was a problem. Please try again."},B={id:"common_label_viewWatchlist",defaultMessage:"View Watchlist"},Y={id:"error_signedOut_addConstToList_title",defaultMessage:"Sign in to create or view a list."},H={id:"common_ariaLabel_closePrompt",defaultMessage:"Close Prompt"},U={id:"addConstToListPrompt_no_lists_found",defaultMessage:"No lists found"},z="_ls_menu",K="_ls_menu_new",W="_wl_button_sm",Q="actlp-loader",G="actlp-error",X="actlp-creat-list",J="actlp-watchlist",nn="actlp-no-list",tn="addConstToListPrompt__panel";function en(){var n=(0,a.Z)(["\n query ACTLP_Prompt(\n $count: Int!\n $constId: ID!\n $after: ID\n $listElementType: ListTypeId\n ) {\n lists(\n first: $count\n filter: {\n listElementType: $listElementType\n classTypes: [LIST, CHECK_INS]\n }\n after: $after\n ) {\n total\n edges {\n node {\n ...AddConstToListMenuItem\n isElementInList(itemElementId: $constId)\n listClass {\n id\n }\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n ","\n"]);return en=function(){return n},n}function rn(){var n=(0,a.Z)(["\n ."," {\n padding: 0;\n ",";\n min-height: 18rem;\n }\n"]);return rn=function(){return n},n}function an(){var n=(0,a.Z)(["\n ","\n ","\n"]);return an=function(){return n},n}function on(){var n=(0,a.Z)(["\n ","\n background: initial;\n min-height: 7rem;\n padding: 3rem;\n"]);return on=function(){return n},n}function sn(){var n=(0,a.Z)(["\n display: flex;\n min-height: 7rem;\n justify-content: center;\n padding: 3rem;\n"]);return sn=function(){return n},n}function ln(){var n=(0,a.Z)(["\n ",";\n"]);return ln=function(){return n},n}var dn=l()(en(),j.fragments.addConstToListMenuItem),cn={hasNextPage:!0,listItems:[],endCursor:null},un=function(n){var t,e,a,s=n.isOpen,l=n.onClose,u=n.primaryImage,f=n.primaryText,p=n.imageType,b=n.refMarker,L=f,_=(null===u||void 0===u||null===(t=u.caption)||void 0===t?void 0:t.plainText)||"",P=(0,T.n)(),Z=(0,c.Z)(),w=(0,I.y)(),M=w.pageType,k=w.pageConst,E=w.refTagPrefix,N=n.constId||k,S=(null===b||void 0===b?void 0:b.prefix)||E,A=null===N||void 0===N?void 0:N.startsWith("tt"),D=null===N||void 0===N?void 0:N.startsWith("nm"),R=(0,h.q)("".concat(S.replaceAll("_","-"),"-addtolist-open"),C.qB.POP_UP,"".concat(S,"_addtolist_open")),O=(0,h.q)("".concat(S.replaceAll("_","-"),"-addtolist-close"),C.qB.POP_UP,"".concat(S,"_addtolist_close")),V=void 0,en="poster";A&&(V=g.lZ.Titles),D&&(V=g.lZ.People,en="avatar");var rn=(0,d.useState)(cn),an=rn[0],on=rn[1],sn=(0,i.Z)((0,x.E)({query:dn,requestPolicy:"network-only",variables:{constId:N,count:100,after:an.endCursor,listElementType:V},context:{serverSideCacheable:!1,personalized:!0},pause:!s||!P||!N}),1)[0],ln=(0,d.useState)(void 0),un=ln[0],Tn=ln[1],hn=sn.fetching,In=sn.error||un,xn=null===(e=sn.data)||void 0===e||null===(a=e.lists)||void 0===a?void 0:a.total,Cn=M&&N?(0,o.jsx)(m.TextLink,{href:"/registration/signin/?"+"u=".concat(encodeURIComponent("/".concat(M,"/").concat(N,"/")))+"&ref_=".concat(S).concat(z),text:Z.formatMessage(Y)}):null,yn=Z.formatMessage(q);(0,d.useEffect)((function(){var n,t,e,r,i,a,o,l,d;s&&!hn&&(null===(n=sn.data)||void 0===n?void 0:n.lists)&&an.hasNextPage&&on({listItems:(null===(t=sn.data)||void 0===t||null===(e=t.lists)||void 0===e?void 0:e.edges)?an.listItems.concat(sn.data.lists.edges):an.listItems,hasNextPage:null===(r=sn.data)||void 0===r||null===(i=r.lists)||void 0===i||null===(a=i.pageInfo)||void 0===a?void 0:a.hasNextPage,endCursor:null===(o=sn.data)||void 0===o||null===(l=o.lists)||void 0===l||null===(d=l.pageInfo)||void 0===d?void 0:d.endCursor})}),[an.hasNextPage,sn.data]),(0,d.useEffect)((function(){s?R():on((0,r.Z)({},cn))}),[s]);var bn=!In&&s&&P&&xn!==an.listItems.length;return(0,o.jsxs)(mn,{"data-testid":"styled-list-prompt",isOpen:s,onCloseClicked:function(){l(),O()},panelClassName:tn,header:(0,o.jsx)(fn,{type:en,subtitle:L,reverseTitleOrder:!0,title:Z.formatMessage($),ariaLabel:_,imageModel:(0,y.Gs)(u,_),imageType:p}),closePromptLabel:Z.formatMessage(H),children:[P?(0,o.jsxs)(m.MenuList,{children:[A&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.MenuListItem,{className:J,href:"/list/watchlist/?ref_=".concat(S).concat(W),postIconName:"chevron-right",children:(0,o.jsx)(v.q,(0,r.Z)({},B))}),(0,o.jsx)(m.MenuListDivider,{})]}),(0,o.jsx)(m.MenuListItem,{className:X,href:"/list/create/?ref_=".concat(S).concat(K),postIconName:"chevron-right",children:(0,o.jsx)(v.q,(0,r.Z)({},F))}),(0,o.jsx)(m.MenuListDivider,{}),In&&(0,o.jsx)(pn,{className:G,title:function(n){var t,e;return"FORBIDDEN"===(null===(t=null===n||void 0===n?void 0:n.graphQLErrors[0])||void 0===t||null===(e=t.extensions)||void 0===e?void 0:e.code)}(un)?Cn:yn}),!bn&&0===an.listItems.length&&(0,o.jsx)(pn,{className:nn,title:(0,o.jsx)(vn,{children:(0,o.jsx)(v.q,(0,r.Z)({},U))})}),!In&&N&&an.listItems.map((function(n){var t,e;return(0,o.jsx)(j,{listData:n.node,listClass:null===(t=n.node)||void 0===t||null===(e=t.listClass)||void 0===e?void 0:e.id,isElementInList:n.node.isElementInList||!1,constId:N,onError:Tn,refTag:"".concat(S).concat(z)},n.node.id)}))]}):(0,o.jsx)(pn,{className:G,title:Cn}),bn&&(0,o.jsx)(gn,{"data-testid":Q,children:(0,o.jsx)(m.Loader,{})})]})},mn=(0,u.default)(m.Prompt).withConfig({componentId:"sc-b9c4f905-0"})(rn(),tn,(0,f.setPropertyToShapeVar)("border-radius","ipt-cornerRadius")),fn=(0,u.default)(m.PromptHeader).withConfig({componentId:"sc-b9c4f905-1"})(an(),(0,f.setPropertyToShapeVar)("border-top-left-radius","ipt-cornerRadius"),(0,f.setPropertyToShapeVar)("border-top-right-radius","ipt-cornerRadius")),pn=(0,u.default)(p.G).withConfig({componentId:"sc-b9c4f905-2"})(on(),(0,f.setTypographyType)("body")),gn=u.default.div.withConfig({componentId:"sc-b9c4f905-3"})(sn()),vn=u.default.span.withConfig({componentId:"sc-b9c4f905-4"})(ln(),(0,f.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"))},4236:function(n,t,e){e.d(t,{Et:function(){return _}});var r=e(92228),i=e(52322),a=e(30382),o=e.n(a),s=(e(2784),e(19596)),l=e(45103),d=e(91842),c=e(91793),u=e(77637),m=e(6741);function f(){var n=(0,r.Z)(['\n fragment TitleSummaryPromptCreditCategories on Title {\n principalCast: principalCredits(filter: { categories: ["cast"] }) {\n ...TitleSummaryPromptCredits\n }\n principalCreators: principalCredits(\n filter: { categories: ["creator"] }\n ) {\n ...TitleSummaryPromptCredits\n }\n principalDirectors: principalCredits(\n filter: { categories: ["director"] }\n ) {\n ...TitleSummaryPromptCredits\n }\n }\n\n fragment TitleSummaryPromptCredits on PrincipalCreditsForCategory {\n category {\n text\n }\n credits(limit: 3) {\n name {\n id\n nameText {\n text\n }\n }\n }\n }\n']);return f=function(){return n},n}function p(){var n=(0,r.Z)(["\n query Title_Summary_Prompt_From_Base(\n $id: ID!\n $providerId: String\n $location: WatchOptionsLocation\n ) {\n title(id: $id) {\n ...TitleSummaryPromptCreditCategories\n ...baseTitlePromptQuery\n }\n }\n ","\n ","\n"]);return p=function(){return n},n}function g(){var n=(0,r.Z)(["\n font-size: ",";\n ",";\n display: inline;\n"]);return g=function(){return n},n}function v(){var n=(0,r.Z)(["\n font-size: ",";\n ",";\n margin-right: ",";\n"]);return v=function(){return n},n}function T(){var n=(0,r.Z)(["\n ",";\n margin-bottom: ",";\n"]);return T=function(){return n},n}function h(){var n=(0,r.Z)(["\n margin: ",";\n "," {\n margin-left: 0;\n margin-right: 0;\n }\n"]);return h=function(){return n},n}var I="p_ct",x="p_ct_dr",C="p_ct_cr",y="p_ct_cst",b=o()(f()),L=o()(p(),m.Gg,b),_=function(n){var t=n.title,e=n.refMarker,r=n.onClose,a=n.isOpen;return(0,i.jsx)(m.Pz,{isOpen:a,onClose:r,title:t,refMarker:e,queryOverride:{query:L},contentOverride:function(n){var t=null===n||void 0===n?void 0:n.title,r=(null===t||void 0===t?void 0:t.principalCreators)&&t.principalCreators[0],a=(null===t||void 0===t?void 0:t.principalDirectors)&&t.principalDirectors[0],o=(null===t||void 0===t?void 0:t.principalCast)&&t.principalCast[0];if(t&&(r||a||o))return(0,i.jsxs)(k,{"data-testid":I,children:[r&&(0,i.jsx)(P,{testId:C,creditCategory:r,refTag:(0,u.z)("tt_pcr",e)}),a&&(0,i.jsx)(P,{testId:x,creditCategory:a,refTag:(0,u.z)("tt_pd",e)}),o&&(0,i.jsx)(P,{testId:y,creditCategory:o,refTag:(0,u.z)("tt_pca",e)})]})}})},P=function(n){var t,e=n.creditCategory,r=n.refTag,a=n.testId,o=e.credits,s=null===(t=e.category)||void 0===t?void 0:t.text;return o&&s&&o.length>0?(0,i.jsxs)(M,{"data-testid":a,children:[(0,i.jsxs)(w,{children:[" ",s," "]}),(0,i.jsx)(l.InlineList,{showDividers:!0,inline:!0,children:o.map((function(n){var t;if(n&&n.name.id&&(null===(t=n.name.nameText)||void 0===t?void 0:t.text))return(0,i.jsx)(l.InlineListItem,{children:(0,i.jsx)(Z,{href:"/name/".concat(n.name.id,"/").concat(r?"?ref_=".concat(r):""),text:n.name.nameText.text},"name-link-".concat(n.name.id))},n.name.id)}))})]},s):null},Z=(0,s.default)(l.TextLink).withConfig({componentId:"sc-9bca7e5d-0"})(g(),(0,d.setTypographyType)("bodySmall"),(0,d.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color")),w=s.default.span.withConfig({componentId:"sc-9bca7e5d-1"})(v(),(0,d.setTypographyType)("subtitle2"),(0,d.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"),d.spacing.xs),M=s.default.div.withConfig({componentId:"sc-9bca7e5d-2"})(T(),(0,c.S)(1),d.spacing.xs),k=s.default.div.withConfig({componentId:"sc-9bca7e5d-3"})(h(),d.spacing.s,d.mediaQueries.breakpoints.above.m)},69173:function(n,t,e){var r=e(47842),i=e(2784),a=e(73857),o=e(99152);t.ZP=function(n){var t,e=n.seconds,s=n.format,l=n.unitDisplay,d=n.round,c=void 0===d||d,u=(0,a.Z)(),m=s;s&&"{hours} {minutes} {seconds}"!==s||(m=u.messages["formatted-duration-longFormatting"]||"{hours} {minutes} {seconds}"),"{minutes}:{seconds}"===s&&(m=u.messages["formatted-duration-timerFormatting"]||"{hours}:{minutes}:{seconds}");var f=new o.Z(u.locale,{format:m,formatUnits:(t={},(0,r.Z)(t,o.Z.units.DAY,u.messages["formatted-duration-daysUnit"]||"{value, plural, one {day} other {days}}"),(0,r.Z)(t,o.Z.units.HOUR,u.messages["formatted-duration-hoursUnit"]||"{value, plural, one {hour} other {hours}}"),(0,r.Z)(t,o.Z.units.MINUTE,u.messages["formatted-duration-minutesUnit"]||"{value, plural, one {minute} other {minutes}}"),(0,r.Z)(t,o.Z.units.SECOND,u.messages["formatted-duration-secondsUnit"]||"{value, plural, one {second} other {seconds}}"),t),formatDuration:u.messages["formatted-duration-duration"]||"{value} {unit}",round:c,style:l}).formatToParts(e);return i.createElement(i.Fragment,{},f.map((function(n){return"literal"===n.type||"unit"===n.type?n.value:i.createElement(i.Fragment,{key:n.type},n.value)})))}},87353:function(n,t,e){e.d(t,{j8:function(){return h}});var r=e(66383),i=e(92228),a=e(30382),o=e.n(a),s=e(2129),l=e(30771),d=e(89799),c=e(26856),u=e(88645),m=e(95460),f=e(11992),p=e(25140),g=e(48543);function v(){var n=(0,i.Z)(["\n mutation AddConstToList(\n $listId: ID!\n $constId: ID!\n $includeListItemMetadata: Boolean!\n $refTagQueryParam: String\n $originalTitleText: Boolean\n ) {\n addItemToList(\n input: { listId: $listId, item: { itemElementId: $constId } }\n ) {\n listId\n modifiedItem {\n ...ListItemMetadata\n listItem @include(if: $includeListItemMetadata) {\n ... on Title {\n ...TitleListItemMetadata\n }\n ... on Name {\n ...NameListItemMetadata\n }\n ... on Image {\n ...ImageListItemMetadata\n }\n ... on Video {\n ...VideoListItemMetadata\n }\n }\n }\n }\n }\n\n ","\n ","\n ","\n ","\n ","\n"]);return v=function(){return n},n}function T(){var n=(0,i.Z)(["\n mutation RemoveConstFromList($listId: ID!, $constId: ID!) {\n removeElementFromList(\n input: { listId: $listId, itemElementId: $constId }\n ) {\n listId\n }\n }\n"]);return T=function(){return n},n}var h=function(n){var t,e=(0,r.Z)((0,g.Z)(x),2),i=e[0],a=e[1],o=(0,r.Z)((0,g.Z)(C),2),s=o[0],l=o[1],d=(0,p.B)().context,c=Boolean(null===(t=d.sidecar)||void 0===t?void 0:t.localizationResponse.isOriginalTitlePreferenceSet);return{addConstToList:{executeAddConstToList:function(t,e){var r,i,o=null!==(r=n.overrideRefTag)&&void 0!==r?r:"".concat(d.refTagPrefix,"_add_items");return(0,m.K8)(o,I(d,e),null!==(i=n.overrideAddPageAction)&&void 0!==i?i:"list-item-add",f.qB.ACTION_ONLY),a({listId:t,constId:e,includeListItemMetadata:Boolean(n.includeListItemMetadata),refTagQueryParam:o,originalTitleText:c})},addConstToListResult:i},removeConstFromList:{executeRemoveConstFromList:function(t,e){var r,i;return(0,m.K8)(null!==(r=n.overrideRefTag)&&void 0!==r?r:"".concat(d.refTagPrefix,"_delete_items"),I(d,e),null!==(i=n.overrideRemovePageAction)&&void 0!==i?i:"list-item-delete",f.qB.ACTION_ONLY),l({listId:t,constId:e})},removeConstFromListResult:s}}},I=function(n,t){return{type:n.pageType,subType:n.subPageType,id:t}},x=o()(v(),d.dc,c.Zz,l.E,s.w,u.X),C=o()(T())}}]);