1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[865],{7750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(7876),n=i(7553),r=i(2580),o=i(4232),a=i(9099),l=i(9748),u=i(8399),c=i(6242),d=i(369),p=i(4102);let h=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,u.H)(e?l.pb:l.Cc,[])},m=(0,u.H)(l.HE,{}),v=e=>{let{}=e,t=(0,a.useRouter)(),[i,r]=h("true"===t.query.withUserSurvey)(),[u,v]=m(),{initialValues:_,steps:g}=((e,t)=>({initialValues:t,steps:o.useMemo(()=>e.map((e,t)=>({id:t.toString(),component:(0,s.jsx)(p.B,{type:"movies",description:e.page_title,questions:e.questions}),validation:void 0,onSubmit:async(i,s)=>{s.setSubmitting(!0);let n=!1;try{await (0,d._)(e.questions,i).validate(i,{abortEarly:!1})}catch(e){s.setErrors((0,d.F)(e)),s.setSubmitting(!1),n=!0}return n?Promise.reject():(0,l.R1)(i).then(()=>{s.setSubmitting(!1)}).catch(e=>{console.error("Error while submitting data on step ".concat(t),e)})}})),[e])}))(i,u),b=o.useCallback(e=>{t.push("/movies-and-tv")},[t]);return(0,s.jsxs)(n.d8,{className:"min-h-[calc(100vh-1px)] pt-[61px]",children:[(0,s.jsx)(n.DZ,{variant:"h2",children:"Movie and TV preferences"}),r&&v?(0,s.jsx)(c.M,{type:"movies",initialValues:_,steps:g,onSubmit:b}):null]})},_=(0,i(6506).r)(()=>(0,s.jsx)(n.PE,{titleString:"My Preferences | Movies & TV",hideFooter:!0,footerData:{...r.OL,landingPageFooterlinks:r.OL.recommendationsPageFooterlinks},navigation:r.a3,showBottomBar:!0,showVerticalBar:!0,isResponsive:!0,children:(0,s.jsx)(v,{})}))},8385:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/preferences/movies-and-tv",function(){return i(7750)}])}},e=>{e.O(0,[785,553,636,593,792],()=>e(e.s=8385)),_N_E=e.O()}]);
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.