PageSourceSearch

https://www.se-ed.com/_next/static/chunks/pages/novel/[id]/recent-read-cbc156d131f9acb7.js

js se-ed.com collected 2026-09-24 09:30:00 UTC 6,715 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fda1a2a8-569c-45a3-8227-3c93ff10af94",e._sentryDebugIdIdentifier="sentry-dbid-fda1a2a8-569c-45a3-8227-3c93ff10af94")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5348],{84743:function(e,t,r){"use strict";r.d(t,{FL:function(){return useGetNovelFirstChapterId},PK:function(){return useGetNovelChapterContent},SK:function(){return useGetNovelChapter},kJ:function(){return useGetNovel},tz:function(){return useNovelChapterReadable}});var n=r(84320),a=r(30179),o=r(76880),u=r.n(o),c=r(67546),i=r(25887),d=r(50155),useGetNovel=function(e){var t=(0,c.Ek)().webBffAPI;return(0,d.u)(""===e?null:"/novel/".concat(e),function(){return t("/novel/{id}").method("get").create()({id:e}).catch((0,i.nullIfNotFoundElseThrow)({errorMessage:"failed to fetch meta novel: ".concat(e),path:"/novel/".concat(e)}))})},useGetNovelChapter=function(e,t,r){var n=(0,c.Ek)().webBffAPI;return(0,d.u)(""===e?null:"/novel-chapter/".concat(e),function(){return n("/novel-chapter/{chapterId}").method("get").create()({chapterId:e})},{revalidateOnFocus:!t,refreshInterval:r})},useGetNovelChapterContent=function(e){var t=(0,c.Ek)().readerAPI,r=t("/request-download-url").method("get").create();return(0,d.u)(""===e?null:"/download-novel-chapter/".concat(e),(0,a.Z)(u().mark(function _callee(){var n,a,o;return u().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,r({productId:e,productType:"PRODUCT_TYPE_NOVEL",variant:"novel-chapter"});case 3:if(!(1!==(n=u.sent).data.length)){u.next=6;break}return u.abrupt("return",void 0);case 6:if(a=n.data[0].tokenId){u.next=9;break}return u.abrupt("return",void 0);case 9:return u.next=11,t("/download").method("get").create()({tokenId:a});case 11:if(!(o=u.sent).ok){u.next=14;break}return u.abrupt("return",JSON.stringify(o.data));case 14:return u.abrupt("return",void 0);case 17:if(u.prev=17,u.t0=u.catch(0),!(u.t0 instanceof r.Error)||!(401===u.t0.getActualType().status||403===u.t0.status)){u.next=23;break}return u.abrupt("return",void 0);case 23:throw u.t0;case 24:case"end":return u.stop()}},_callee,null,[[0,17]])})),{revalidateOnFocus:!1})},useNovelChapterReadable=function(e){var t,r,n,a,o,u,c,i,d,l,s=useGetNovelChapter(e,!0).data;return{isFree:((null==s?void 0:null===(t=s.data.chapter)||void 0===t?void 0:null===(r=t.extendedOrderProduct)||void 0===r?void 0:null===(n=r.digitalContent)||void 0===n?void 0:n.variants)||[]).length>0&&(null==s?void 0:null===(a=s.data.chapter)||void 0===a?void 0:null===(o=a.extendedOrderProduct)||void 0===o?void 0:null===(u=o.digitalContent)||void 0===u?void 0:null===(c=u.variants)||void 0===c?void 0:c[0].isFree),isUnlocked:(null==s?void 0:null===(i=s.data)||void 0===i?void 0:null===(d=i.chapter)||void 0===d?void 0:null===(l=d.extendedChapterUnlock)||void 0===l?void 0:l.isUnlock)||!1}},useGetNovelFirstChapterId=function(e){var t,r=(0,c.Ek)().webBffAPI;return(0,d.u)(["/novel/{id}/chapter","/first-chapter",e],(t=(0,a.Z)(u().mark(function _callee2(e){var t,a,o,c,i;return u().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=(0,n.Z)(e,3)[2],u.next=3,r("/novel/{id}/chapter").method("get").create()({id:c,"option.limit":1,"option.skip":0});case 3:if(!(!(i=u.sent).ok||(null===(t=i.data.chapters)||void 0===t?void 0:t.length)!==1)){u.next=6;break}return u.abrupt("return",void 0);case 6:return u.abrupt("return",null===(a=i.data.chapters)||void 0===a?void 0:null===(o=a[0].chapter)||void 0===o?void 0:o.id);case 7:case"end":return u.stop()}},_callee2)})),function(e){return t.apply(this,arguments)}))}},23157:function(e,t,r){"use strict";r.d(t,{D:function(){return useRecentRead}});var n=r(84320),a=r(30179),o=r(76880),u=r.n(o),c=r(44194),i=r(50155),d=r(95650),l=r(67546),s=r(84239),useRecentRead=function(){var e,t,r,o=(0,l.Ek)(),v=o.webUtilityAPI,f=o.webBffAPI,p=(0,s.aC)(),h=(0,c.useCallback)((e=(0,a.Z)(u().mark(function _callee(e){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!p.accessToken){t.next=3;break}return t.next=3,v("/reading-progress").method("put").create()({input:e});case 3:case"end":return t.stop()}},_callee)})),function(t){return e.apply(this,arguments)}),[v,p.accessToken]),k=(t=(0,a.Z)(u().mark(function _callee2(e){var t;return u().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!p.accessToken){r.next=5;break}return r.next=3,f("/recent-read-chapter").method("get").create()(e);case 3:return t=r.sent,r.abrupt("return",t.data);case 5:case"end":return r.stop()}},_callee2)}
1)),function(e){return t.apply(this,arguments)}),b=(r=(0,a.Z)(u().mark(function _callee3(){var e;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!p.accessToken){t.next=5;break}return t.next=3,f("/list-recent-read-digital-content").method("get").create()({"request.limit":"5"});case 3:return e=t.sent,t.abrupt("return",e.data);case 5:case"end":return t.stop()}},_callee3)})),function(){return r.apply(this,arguments)});return{store:h,getRecentReadChapter:function(e){return(0,d.Z)(["/list-recent-read-chapter",e.parentId,e.productType],function(t){var r=(0,n.Z)(t,3);return k({parentId:r[1],productType:r[2],novelChapterOrderBy:e.novelChapterOrderBy})})},getRecentReadDigitalContent:function(){return(0,i.u)(["/recent-read-digital-content"],b)}}}},85065:function(e,t,r){"use strict";r.r(t),r.d(t,{NovelReaderRedirector:function(){return NovelReaderRedirector},default:function(){return NovelReaderPageRoute}});var n=r(1597),a=r(83102),o=r(47886),u=r(84743),c=r(23157),i=r(37403),d=r(41028),l=r(44194),s=r(62940);function NovelReaderRedirector(){var e,t=(0,n.useRouter)(),r=t.query.id,a=(0,c.D)().getRecentReadChapter({parentId:r,productType:"PRODUCT_TYPE_NOVEL"}),v=a.data,f=a.isLoading,p=a.error;(0,o.L)(p);var h=(0,u.FL)(r),k=h.data,b=h.isLoading,g=(null==v?void 0:null===(e=v.chapter)||void 0===e?void 0:e.chapterId)||k;return(0,l.useEffect)(function(){f||b||!g||t.replace((0,i.lg)(g))},[f,b,g]),(0,s.tZ)("div",{className:"w-full h-[50vh] flex justify-center items-center",children:(0,s.tZ)(d.Z,{})})}function NovelReaderPageRoute(){return(0,s.tZ)(a.H,{children:(0,s.tZ)(NovelReaderRedirector,{})})}},80014:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/novel/[id]/recent-read",function(){return r(85065)}])}
1,95650:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(50155),a=r(58447);let o=(0,a.xD)(n.u,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,n.refreshInterval=0,e(t,r,n)))}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=80014)}),_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.