(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5282],{99467:function(e,t,r){Promise.resolve().then(r.bind(r,14497))},82695:function(e,t,r){"use strict";r.d(t,{D7:function(){return a},W1:function(){return s}});var n=r(57437);r(2265),r(66100),r(66648);let a=e=>{let{size:t=24,width:r,height:a,...s}=e;return(0,n.jsx)("svg",{height:t||a,viewBox:"0 0 24 24",width:t||r,...s,children:(0,n.jsx)("path",{d:"M14.82 4.26a10.14 10.14 0 0 0-.53 1.1 14.66 14.66 0 0 0-4.58 0 10.14 10.14 0 0 0-.53-1.1 16 16 0 0 0-4.13 1.3 17.33 17.33 0 0 0-3 11.59 16.6 16.6 0 0 0 5.07 2.59A12.89 12.89 0 0 0 8.23 18a9.65 9.65 0 0 1-1.71-.83 3.39 3.39 0 0 0 .42-.33 11.66 11.66 0 0 0 10.12 0q.21.18.42.33a10.84 10.84 0 0 1-1.71.84 12.41 12.41 0 0 0 1.08 1.78 16.44 16.44 0 0 0 5.06-2.59 17.22 17.22 0 0 0-3-11.59 16.09 16.09 0 0 0-4.09-1.35zM8.68 14.81a1.94 1.94 0 0 1-1.8-2 1.93 1.93 0 0 1 1.8-2 1.93 1.93 0 0 1 1.8 2 1.93 1.93 0 0 1-1.8 2zm6.64 0a1.94 1.94 0 0 1-1.8-2 1.93 1.93 0 0 1 1.8-2 1.92 1.92 0 0 1 1.8 2 1.92 1.92 0 0 1-1.8 2z",fill:"currentColor"})})},s=e=>(0,n.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,n.jsx)("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M22 22L20 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]})},14497:function(e,t,r){"use strict";r.d(t,{default:function(){return A}});var n=r(57437),a=r(11750),s=r(12738),l=r(2265),i=r(89555),o={src:"/_next/static/media/books.e92a9c9d.svg",height:512,width:512,blurWidth:0,blurHeight:0},c=r(66648),u=r(87970),d=r(8127),p=r(49102),h=r(88819),m=r(8284),f=r(59241),g=r(16463),x=r(62121),y=r(82695),b=r(75976),v=r(75945),j=r(70164),w=r(55310);let O=async(e,t,r,n,a,s)=>{let l=new URLSearchParams({page:e.toString(),perPage:t.toString()});r&&l.set("searchTerm",r);let i=n.filter(e=>e&&""!==e);i.length>0&&l.set("genreIds",i.join(",")),a.length>0&&l.set("seriesType",a.join(",")),s.length>0&&l.set("seriesStatus",s.join(","));let o="/api/query?".concat(l.toString()),c=await fetch(o);if(!c.ok)throw Error("".concat(c.status," - ").concat(c.statusText));let u=await c.json();return{posts:u.posts,totalCount:u.totalCount}};var A=e=>{var t;let{genres:r}=e,A=(0,g.useSearchParams)(),S=A.get("genre"),k=A.get("seriesType"),C=A.get("seriesStatus"),P=A.get("searchTerm"),[N,E]=(0,l.useState)(1),[M]=(0,l.useState)(18),[D,_]=(0,l.useState)(P||""),[z,T]=(0,l.useState)(new Set((null==S?void 0:S.split(","))||[])),[B,R]=(0,l.useState)(new Set((null==k?void 0:k.split(","))||[])),[Z,Q]=(0,l.useState)(new Set((null==C?void 0:C.split(","))||[])),[I,L]=(0,l.useState)(P||""),[W,U]=(0,l.useState)(z),[V,X]=(0,l.useState)(B),[F,H]=(0,l.useState)(Z),{data:K,isLoading:Y}=(0,i.useQuery)(["posts",N,M,I,W,V,F],()=>O(N,M,I,Array.from(W),Array.from(V),Array.from(F)),{refetchOnWindowFocus:!1}),J=(null==K?void 0:K.totalCount)||0,q=null!==(t=null==K?void 0:K.posts)&&void 0!==t?t:[],G=Math.ceil(J/M);return(0,n.jsxs)("div",{className:"col-span-12 md:col-span-12 lg:col-span-8 bg-gray-850 rounded p-3",children:[(0,n.jsxs)("h1",{className:"mb-4 pt-2 text-2xl text-center font-bold leading-none tracking-tight text-gray-900 md:text-3xl lg:text-6xl dark:text-white",children:[(0,n.jsx)(c.default,{src:o,alt:"Series Page Title Icon",className:"h-14 w-14 inline mx-5"}),b.t.archives.title]}),(0,n.jsx)("p",{className:"mb-6 text-sm text-center font-normal text-gray-500 lg:text-base sm:px-16 xl:px-48 dark:text-gray-400",children:b.t.archives.subTitle}),(0,n.jsx)(v.j,{className:"mb-5"}),(0,n.jsxs)("div",{className:"pb-10",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row",children:[(0,n.jsx)(x.Y,{size:"lg","aria-label":"Search",labelPlacement:"outside",placeholder:b.t.header.search,defaultValue:D,startContent:(0,n.jsx)(y.W1,{className:"text-base text-default-400 pointer-events-none flex-shrink-0"}),type:"search",onChange:e=>_(e.target.value)}),(0,n.jsx)(u.g,{label:b.t.seriesPage.series_info_status_label,size:"sm",defaultSelectedKeys:Z,onSelectionChange:Q,children:Object.values(a.v).map(e=>(0,n.jsx)(d.R,{value:e,children:(0,f.iD)(e)},e))}),(0,n.jsx)(u.g,{label:b.t.seriesPage.series_info_type_label,size:"sm",defaultSelectedKeys:B,onSelectionChange:R,children:Object.values(a.J).map(e=>(0,n.jsx)(d.R,{value:e,children:(0,f.ds)(e)},e))}),(0,n.jsx)(u.g,{placeholder:b.t.seriesPage.series_info_genres_label,size:"lg",labelPlacement:"outside",isMultiline:!0,selectionMode:"multiple",defaultSelectedKeys:z,onSelectionChange:T,classNames:{trigger:"min-h-unit-12"},renderValue:e=>(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map(e=>(0,n.jsx)(h.z,{children:e.textValue},e.key))}),children:r.map(e=>(0,n.jsx)(d.R,{value:e.name,children:e.name},e.id))})]}),(0,n.jsx)("div",{className:"w-full flex justify-center",children:(0,n.jsx)(m.A,{onClick:()=>{L(D),U(z),X(B),H(Z);let e=new URLSearchParams;e.set("genre",Array.from(z).join(",")),e.set("seriesType",Array.from(B).join(",")),e.set("seriesStatus",Array.from(Z).join(",")),e.set("searchTerm",D);let t="".concat(window.location.pathname,"?").concat(e.toString());window.history.replaceState({},"",t)},className:"mt-3",isLoading:Y,children:b.t.header.search})}),(0,n.jsx)(j.default,{placement:"aboveChapter"})]}),(0,n.jsx)("div",{className:"min-h-[360px] grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4 text-white text-center",children:Y?Array.from({length:M}).map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(s.O,{className:"h-[260px] sm:h-[360px] md:h-[260px] lg:h-[220px] xl:h-[280px] 2xl:h-[320px] mb-5 rounded-5"})},t)):q.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(w.Z,{post:e,cdnOptions:null,wrapperClassNames:"h-[260px] sm:h-[360px] md:h-[260px] lg:h-[220px] xl:h-[280px] 2xl:h-[320px] mb-5 rounded-5"})},t))}),0===J&&!Y&&(0,n.jsx)("div",{className:"py-2 flex justify-center items-center text-center w-full",children:(0,n.jsx)("p",{className:"text-lg font-semibold",children:b.t.homepage.no_works_founded})}),G>1&&!Y&&0!==J&&(0,n.jsx)("div",{className:"py-2 flex justify-center items-center",children:(0,n.jsx)(p.Z,{page:N,pages:G,setPage:E})}),(0,n.jsx)(j.default,{placement:"belowChapter"})]})}},92699:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(33480).Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},95095:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(33480).Z)("SunMedium",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]])},59799:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(33480).Z)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},66100:function(e,t){"use strict";t.Z={src:"/_next/static/media/logo.911f869a.webp",height:884,width:777,blurDataURL:"data:image/webp;base64,UklGRpgAAABXRUJQVlA4WAoAAAAQAAAABgAABwAAQUxQSDQAAAABYBTbVpu7ZoeDmtjocQQ6ScT0Xj1ExAQAUgBNd8SMdD7Ps0/D+Q7+w9v+PM9ekbdrzPgFVlA4ID4AAACwAQCdASoHAAgAAkA4JQBOgBu1PjDIAP78xrSYPb28XoDBTfRi2QmIp0am4g8vBNK8ZaZW48O2c8oXr8AAAA==",blurWidth:7,blurHeight:8}},91810:function(e,t,r){"use strict";r.d(t,{w_:function(){return u}});var n=r(2265),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=n.createContext&&n.createContext(a),l=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,a;n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>n.createElement(d,i({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:a,size:s,title:o}=e,u=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,l),d=s||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==s?n.createElement(s.Consumer,null,e=>t(e)):t(a)}},69421:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(2265),a=r(34040);function s(e){let{on:t="click",color:r="white",opacity:s=1,blur:l=0,duration:i=500,fillAndHold:o=!1,optimize:c=!1,rippleElement:u,className:d,zIndex:p}=e,h=!c,m=(0,n.useRef)(null),f=e=>{!function(e,t,r,n,s,l,i,o,c,u,d){let p=document.createElement("div"),h=c&&a.createRoot(p);h&&h.render(c),Object.assign(p.style,{position:"absolute",borderRadius:"50%",transform:"scale(0)",zIndex:void 0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:r,opacity:String(n),filter:"blur(".concat(s,"rem)"),transition:"transform ".concat(l,"ms linear, opacity ").concat(l,"ms linear")}),u&&u.split(" ").forEach(e=>e&&p.classList.add(e));let m=e.getBoundingClientRect(),f=Math.max(m.width,m.height),g=t.clientX-m.left-f/2,x=t.clientY-m.top-f/2;Object.assign(p.style,{width:"".concat(f,"px"),height:"".concat(f,"px"),left:"".concat(g,"px"),top:"".concat(x,"px")}),e.appendChild(p),setTimeout(()=>{p.style.transform="scale(4)",i||(p.style.opacity="0")},0),o||i||setTimeout(()=>{e.removeChild(p)},l),i&&document.addEventListener("mouseup",()=>{p.style.opacity="0",o||setTimeout(()=>{e.removeChild(p)},l)},{once:!0})}(m.current,e,r,s,l,i,o,h,u,d)},g={};return o?g.onMouseDown=f:"mouseDown"===t?g.onMouseDown=f:"click"===t?g.onClick=f:"hover"===t?g.onMouseEnter=f:"clickAndMouseDown"===t&&(g.onClick=f,g.onMouseDown=f),n.createElement("div",Object.assign({"aria-hidden":!0,ref:m,style:{width:"100%",height:"100%",top:0,left:0,position:"absolute",zIndex:p}},g))}var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function i(e){var{tag:t="div",children:r,disableDefaultStyling:a,rippleFromBehind:i,forwardedRef:o,rippleProps:c}=e,u=l(e,["tag","children","disableDefaultStyling","rippleFromBehind","forwardedRef","rippleProps"]);return n.createElement(t,Object.assign(Object.assign({},u),{style:a?null:{overflow:"hidden",position:"relative"},ref:o}),n.createElement(n.Fragment,null,i?n.createElement("div",{style:{zIndex:1,pointerEvents:"none",position:"relative"}},r):r,n.createElement(s,Object.assign({},c,{fillAndHold:!0,zIndex:0}))))}}},function(e){e.O(0,[680,7259,5452,7699,1866,6950,3080,2254,8284,3058,2121,466,5260,8819,9026,7566,8173,1810,6593,6110,1718,6846,757,5208,2971,7023,1744],function(){return e(e.s=99467)}),_N_E=e.O()}]);