"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3443],{3443:function(t,e,i){i.r(e),i.d(e,{default:function(){return S},getAspectRatioContentList:function(){return C},getColorationContentList:function(){return T},getSoundMixContentList:function(){return _}});var s=i(52322);i(2784);var n=i(45103),a=i(76168),c=i(20492),l=i(28827),r=i(8883);let o=t=>t.split(" ").join("_");var u=i(146),d=i(43287),h=i(33274),m=i(72814);let p={HEADER:"title-techspecs-header",SECTION:"title-techspecs-section",COLOR:"title-techspec_color",SOUND_MIX:"title-techspec_soundmix",ASPECT:"title-techspec_aspectratio",RUNTIME:"title-techspec_runtime"};var f=i(73420);let x=t=>{let{runtime:e}=t,i=0;e?.seconds&&(i=e.seconds);let a=(0,l.N)({id:"title_main_techspec_runtime",defaultMessage:"Runtime"});return i<=0?null:(0,s.jsx)(n.MetaDataListItem,{labelTitle:a,"data-testid":p.RUNTIME,children:(0,s.jsx)(f.ZP,{seconds:i,format:"{hours} {minutes}",unitDisplay:"long"})})},_=(t,e)=>t.items.map(t=>{let i=o(t.id);return{text:t.text,href:e({query:{sound_mixes:i},refSuffix:m.Cd.ATTRIBUTE}),subText:(0,r.U)(t.attributes)}}),C=t=>t.items.map(t=>({text:t.aspectRatio,subText:(0,r.U)(t.attributes)})),T=(t,e)=>t.items.map(t=>{let i=t.conceptId;return{text:t.text,href:e({query:{colors:i},refSuffix:m.Cd.ATTRIBUTE}),subText:(0,r.U)(t.attributes)}}),E=t=>{let{data:e,fetching:i,error:r}=t,{searchTitleLinkBuilder:o,titleTechnicalSpecsLinkBuilder:f}=(0,h.WO)(),{value:E}=(0,m.Lz)(),S=(0,l.N)({id:"title_main_techspec_soundmix",defaultMessage:"Sound mix"}),b=(0,l.N)({id:"title_main_techspec_aspectratio",defaultMessage:"Aspect ratio"}),M=(0,l.N)({id:"title_main_techspec_color",defaultMessage:"Color"});if(!e||i||r||!e.technicalSpecifications)return null;let{soundMixes:g,aspectRatios:j,colorations:I}=e.technicalSpecifications;return(0,s.jsx)(d.wW,{componentId:u.NG.TechSpecs,children:(0,s.jsxs)(n.PageSection,{baseColor:"base","data-testid":u.NG.TechSpecs,children:[(0,s.jsx)(a.O,{title:{id:"common_tech_specs_heading_short",defaultMessage:"Tech specs"},editHref:`https://contribute.imdb.com/updates?edit=${e.id}/technical&ref_=${E}`,subtitleProps:{href:f({tconst:e.id,refSuffix:m.Cd.SEE_MORE})},"data-testid":p.HEADER}),(0,s.jsx)(c.r,{"data-testid":p.SECTION,children:(0,s.jsxs)(n.MetaDataList,{dividers:"none",display:"compact",children:[!!e.runtime&&(0,s.jsx)(x,{runtime:e.runtime}),!!I&&I.items.length>0&&(0,s.jsx)(n.MetaDataListItem,{labelTitle:M,listContent:T(I,o),"data-testid":p.COLOR}),!!g&&g.items.length>0&&(0,s.jsx)(n.MetaDataListItem,{labelTitle:S,listContent:_(g,o),"data-testid":p.SOUND_MIX}),!!j&&j.items.length>0&&(0,s.jsx)(n.MetaDataListItem,{labelTitle:b,listContent:C(j),"data-testid":p.ASPECT})]})})]})})};var S=t=>(0,s.jsx)(m.xm,{value:m.Cd.TECH_SPECS,children:(0,s.jsx)(E,{...t})})},8883:function(t,e,i){i.d(e,{U:function(){return s}});let s=t=>{if(t&&!(t.length<=0))return`(${t.map(t=>t.text).join(", ")})`}}}]);