PageSourceSearch

https://narrativemuse.com/_next/static/chunks/pages/my-list/[id]-0654e117dbff5136.js

js narrativemuse.com collected 2026-10-08 02:23:08 UTC 4,444 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[872],{5243:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>p});var s=l(7876),a=l(782),o=l(7553),i=l(2580),n=l(734),r=l(5674),d=l(6506),c=l(4978),u=l(9099),h=l(4232),v=l(9034);let p=(0,d.r)(()=>{var e,t,l,d,p;let x=(0,u.useRouter)(),{id:m}=(0,u.useRouter)().query,{activeType:w,availabilityModal:g,setAvailabilityModalStatus:f,loading:y,setLoading:b,listState:j,getUpdatedResults:N}=(0,r.dU)(),[k,_]=(0,h.useState)((0,v.ts)(j,null!=(p=null==w?void 0:w.type)?p:"books",m));(0,h.useEffect)(()=>{if(m){var e;_((0,v.ts)(j,null!=(e=null==w?void 0:w.type)?e:"books",m))}},[null==w?void 0:w.type,m,j]);let[C,E]=(0,h.useState)(!1),M=[{value:"saved",tag:"I want to ".concat((null==w?void 0:w.type)==="books"?"read":"watch"," it")},{value:(null==w?void 0:w.type)==="movies"?"watched":"read",tag:"I've ".concat((null==w?void 0:w.type)==="books"?"read":"watched"," it")},{value:"maybe",tag:"Maybe"},{value:"deleted",tag:"I don't want to ".concat((null==w?void 0:w.type)==="books"?"read":"watch"," it")}],L=(0,h.useRef)(null);if((0,c.L)(L,()=>{E(!1)}),!k)return(0,s.jsx)(o.PE,{titleString:"My Lists",footerData:i.OL,hideFooter:!0,navigation:i.a3,showBottomBar:!0,showVerticalBar:!0,isResponsive:!0,children:(0,s.jsx)(o.aH,{showLoader:null==y||y,setShowLoader:b,type:"other",topMsg:"Fetching your lists, this may take a while",bottomMsg:"Loading..."})});let{movie_id:B,image_url:F,authors:S,main_text:R,action:O,tv_show:P,title:T,pre_title:$}=k,H=e=>{if(!e){null==f||f(!g);return}_(e),null==f||f(!g)},I=async e=>{let t=(null==w?void 0:w.type)==="movies"?null==k?void 0:k.movie_id:null==k?void 0:k.book_id;await (0,a.GK)(String(null==w?void 0:w.type),{id:t,action:e}),N(),k&&_({...k,action:e}),E(!C)};return(0,s.jsxs)(o.PE,{titleString:"My Lists",footerData:i.OL,hideFooter:!0,navigation:i.a3,showBottomBar:!0,showVerticalBar:!0,isResponsive:!0,children:[(0,s.jsx)(o.aH,{showLoader:null==y||y,setShowLoader:b,type:"other",topMsg:"Fetching your lists, this may take a while",bottomMsg:"Loading..."}),g&&k&&(0,s.jsx)(o.aF,{setShowModal:f,showModal:g,children:(0,s.jsxs)("div",{className:"relative w-fit",children:[(0,s.jsx)("div",{className:"cursor-pointer absolute right-10 top-6",onClick:()=>H(null)}),(0,s.jsx)(o.HZ,{...k,type:null==w?void 0:w.type,setAvailablityModalStatus:f})]})}),(0,s.jsxs)(o.d8,{className:"flex flex-col items-center",children:[(0,s.jsxs)("button",{onClick:()=>x.back(),className:"font-bold text-[15px] flex items-center self-start mt-5",children:[(0,s.jsx)(o.$E,{src:"/assets/chevron-down.svg",alt:"",className:"rotate-90 mr-2"}),"Back to My list"]}),(0,s.jsxs)("div",{className:"my-10 w-[165px] relative",children:[B&&(0,s.jsx)("span",{className:"absolute -left-6 -top-6 bg-[#FFE149] w-12 h-12 rounded-full grid place-content-center text-[13px] p-1",children:P?"TV":"Movie"}),(0,s.jsx)(o.$E,{src:F,alt:"",className:"custom-shadow"})]}),(0,s.jsx)("div",{className:"relative min-w-[180px]",children:(0,s.jsxs)("div",{className:"h-[45px] border border-[#C9C9C9] rounded-full flex items-center justify-center overflow-hidden mb-2 w-full",children:[(0,s.jsx)("span",{className:"flex items-center  justify-center flex-grow px-4",children:(0,s.jsx)(o.EY,{variant:"semibold",className:"text-[#F69C97]",children:M.filter(e=>k.action===e.value)[0].tag})}),(0,s.jsx)("span",{className:"bg-red text-red-500 cursor-pointer bg-[#C4C4C4] w-[43px] h-full grid place-content-center",onClick:()=>E(!C),children:(0,s.jsx)(o.$E,{src:"/assets/down-arrow.svg",alt:""})}),C&&(0,s.jsx)("div",{className:"bg-[#5FB9B4] absolute text-light-tone-1 rounded-[8px] top-12 z-40 w-full overflow-hidden",ref:L,children:null==M?void 0:M.map((e,t)=>(0,s.jsx)("ul",{className:"flex flex-row items-center",children:(0,s.jsx)("li",{className:"cursor-pointer !m-0 py-2 px-4 w-full hover:bg-teal-600 text-[14px] ".concat(e.value===O&&"bg-teal-600"),onClick:()=>I(e.value),children:e.tag})},t))})]})}),(0,s.jsx)(o.$n,{link:"",className:"w-[180px] h-[43px]",onClick:()=>{H(k)},children:"Available from"}),(0,s.jsx)(n.gR,{main_title:T,sub_title:$,description:R,type:null==w?void 0:w.type,authors:S,tags:(null==(t=k.tags)||null==(e=t.all_tags.Genre)?void 0:e.join(", "))+", "+(null==(d=k.tags)||null==(l=d.all_tags.Tone)?void 0:l.join(", "))})]})]})})},5810:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-list/[id]",function(){return l(5243)}])}},e=>{e.O(0,[785,553,636,593,792],()=>e(e.s=5810)),_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.