1var e=(e,t,o)=>new Promise((a,i)=>{var n=e=>{try{r(o.next(e))}catch(t){i(t)}},l=e=>{try{r(o.throw(e))}catch(t){i(t)}},r=e=>e.done?a(e.value):Promise.resolve(e.value).then(n,l);r((o=o.apply(e,t)).next())});import{_ as t}from"./CkCHRwf2.js";import{_ as o}from"./DW-O3kuH.js";import{_ as a}from"./BJgwItMh.js";import{_ as i}from"./CNUFeW8B.js";import{_ as n}from"./BWUbZISu.js";import{_ as l}from"./CR0gvvVk.js";import{r,m as s,l as c,u as d,F as h,K as p,M as u,O as m,k as g,f,c as v,G as w,aC as _,aD as C,aM as x,$ as y,aN as b,aO as k,Q as I,H as L,_ as M}from"./Cd6808oX.js";import{i as j,a as z}from"./CEh7LJDI.js";import{n as H}from"./D5nu1ULI.js";import{i as N}from"./tk9VglSf.js";import{i as $,C as B}from"./DNKJdaBL.js";import{i as P}from"./mDKHb2r3.js";import{a as R}from"./C9JMUP6s.js";import{u as T}from"./sxFKQWVB.js";import{T as E}from"./CUw4Fa4Z.js";import{u as F}from"./CbmSgskZ.js";import{s as S}from"./DKYWlKH7.js";import{C as V}from"./d7vqhU7p.js";import{C as Y}from"./BTxKow3Y.js";import{k as Z,l as O,b as D,q as U,o as q,S as Q,J as W,Z as A,L as G,u as J,a1 as X,z as K,a9 as ee,O as te,M as oe,I as ae}from"./BQCIG6jt.js";import"./DaOAa6sw.js";import"./Cyz2BJF9.js";import"./hllw-W6B.js";import"./D2K3KS61.js";const ie={class:"title_group"},ne={class:"report_button"},le={class:"content_button"},re={class:"creator_word"},se={key:0,class:"balloon"},ce={class:"text"},de={class:"sns_group"},he={class:"flex_group"},pe={class:"footer_button_group"},ue=M(Z({__name:"index",setup(M){return e(this,null,function*(){const M=r(),Z=s(),ue=c(),me=F(),ge=d(),fe=h(),ve=O(()=>Z.params.contentId),we=O(()=>Z.params.chapterId),_e=D([]),Ce=D({}),xe=D({}),ye=D(!0),be=D(!1),ke=p(),Ie=O(()=>u().public.challenge.imgDomain),Le=O(()=>ge.isAuth);let Me,je=!1;function ze(e){!function(){var e,t,o,a,i;const n=document.getElementById("viewer-images");if(!n)return;if((null==(t=null==(e=Ce.value)?void 0:e.activity)?void 0:t.lastReadChapterId)!=we.value)return;const l=(null==(o=fe.lastReadLocation("challenge",ve.value,we.value))?void 0:o.totalProgression)||(null==(i=null==(a=Ce.value)?void 0:a.activity.lastReadChapterLocator)?void 0:i.locations.progression)||0;window.scrollTo(0,l*n.clientHeight)}(),$e(),setTimeout(()=>{je=!0},500)}let He=0;function Ne(){$e(!0)}function $e(t=!1){return e(this,null,function*(){if(!Le.value)return;const e=document.getElementById("viewer-images");if(e){const o=Z.params.contentId,a=Z.params.chapterId,i=Math.min(window.scrollY/e.clientHeight,1),n=e.clientHeight+100-window.scrollY-window.innerHeight<=0?L:0;if(t&&He==i)return;He=i;const l={progression:i,position:n,totalProgression:i};V.postReadHistory({contentId:o,chapterId:a,locations:l}),fe.pushReadHistory("challenge",o,a,l)}})}function Be(e){e?ye.value=!0:0!=je&&0==Pe()&&(ye.value=!1)}function Pe(){var e;const t=(null==(e=document.getElementsByClassName("viewer_comic")[0])?void 0:e.clientHeight)||0;return window.scrollY+window.innerHeight>=t&&(ye.value=!0,!0)}let Re=0;U(()=>{document.addEventListener("scroll",e=>{0==Pe()&&(window.scrollY>Re?Be(!1):window.scrollY<Re&&Be(!0)),Re=window.scrollY}),V.getChallengeChapter(ve.value,we.value).then(e=>{404!==e.result.code?(Ce.value=e.data.chapter,xe.value=e.data.content,_e.value=[],be.value=e.data.content.subscribed,e.data.chapter.images.forEach(e=>{_e.value.push({width:e.width,height:e.height,parameter:e.width,sort:e.sort,url:Ie.value+e.filePath+e.fileName})}),e.data.content&&e.data.chapter&&me.setChallengeEpisodeMeta(e.data.content,e.data.chapter)):function(e){const t={component:C,attrs:{modalId:"textModal"},slots:{default:_({component:E,attrs:{text:e,okText:"TOPã¸",useButton:!0,title:"ã¨ã©ã¼",oneButton:!0,onOk:()=>{ue.push("/challenge")},onClose:()=>{ue.push("/challenge"),ke.close("textModal")}}})}};w(t).open()}(e.result.message)}),Me&&clearInterval(Me),Me=S(Ne,3e4)}),q(()=>{Me&&clearInterval(Me),$e()});const Te=O(()=>me.title),Ee=O(()=>me.description),Fe=O(()=>me.image);function Se(){let e="";return M.value.isDesktop?e="0 32px":M.value.isTablet?e="0 24px":M.value.isMobile&&(e="0 16px"),{padding:e,"z-index":x.Contents}}m(()=>({title:Te,meta:[{property:"og:type",content:"article"},{property:"og:title",content:Te},{property:"og:description",content:Ee},{name:"description",content:Ee},{property:"og:image",content:Fe},{name:"twitter:card",content:"summary"},{name:"twitter:image",content:Fe}]}));const Ve=g();function Ye(e,t){const o={redirect:Z.path};ue.push({path:Ve(e),query:o})}const Ze=f(),Oe=v();return(e,r)=>{const s=t,c=o,d=a,h=i,p=n,u=l,m=I;return W(),Q(m,{name:"none"},{default:A(()=>[G("div",{class:"background_all",onClick:r[0]||(r[0]=e=>Be(!J(ye)))}),G("div",{class:"header",style:X({"z-index":J(x).Header,display:J(ye)?"block":"none"})},[G("div",{class:"header_content",style:X(Se())},[G("div",ie,[K(s,{icon:J(N),"icon-position":"Left","icon-color":J(y).white,height:24,width:24,padding:0,href:`/challenge/comic/${J(Z).params.contentId}`},null,8,["icon","icon-color","href"]),K(c,{"font-size":"size60",class:"title_one_line"},{default:A(()=>[ee(te(J(Ce).name),1)]),_:1})]),K(s,{icon:J(be)?J(j):J(z),"icon-position":"Left","icon-color":J(y).white,height:24,width:24,padding:0,onClick:r[1]||(r[1]=()=>{Le.value?1==be.value?(V.deleteSubscribed(Number(ve.value)),be.value=!1):(V.subscribe(Number(ve.value)),be.value=!0):Ye("/login")})},null,8,["icon","icon-color"])],4)],4),G("div",{class:"body_viewer",onClick:r[7]||(r[7]=e=>Be(!J(ye)))},[J(_e)&&J(_e).length>0?(W(),Q(d,{key:0,id:"viewer-images","viewer-type":"challenge",chapter:J(Ce),content:J(xe),images:J(_e),onEmitRead:ze},null,8,["chapter","content","images"])):oe("",!0),G("div",{class:"end_module",style:X(Se())},[K(c,{"font-color":J(y).gray20,"font-size":"size60",style:{margin:"40px 0 12px"}},{default:A(()=>r[10]||(r[10]=[ee(" ãã®ä½åãæ°ã«å
¥ã£ããããããï¼ã ",-1)])),_:1,__:[10]},8,["font-color"]),K(p,{onClick:r[2]||(r[2]=()=>{J(Ce).liked||(Le.value?V.likeChapter(Number(ve.value),Number(we.value)).then(()=>{Ce.value.liked=!0,Ce.value.totalLikes++}):Ye("/login"))})},{default:A(()=>[K(h,{src:J(Ce).liked?J(P):J($),width:80,height:80,ratio:.5,"icon-color":J(y).white,"bg-color":J(Ce).liked?J(y).pink30:J(y).gray60},null,8,["src","icon-color","bg-color"])]),_:1}),K(c,{"font-color":J(y).pink30,"font-size":"size50",style:{margin:"0 0 40px"}},{default:A(()=>[ee(te(J(Ce).totalLikes),1)]),_:1},8,["font-color"]),G("div",ne,[K(p,{onClick:r[3]||(r[3]=()=>{!function(){Ze.setCategoryConfig();const e={component:C,attrs:{modalId:"ShareModal"},slots:{default:_({component:B,attrs:{contentId:Number(Z.params.contentId),chapterId:Number(Z.params.chapterId),isMobile:M.value.isMobile,list:Ze.config.category.contentIssues,title:"åé¡ãå ±åãã",onOk:(e,t)=>{V.reportChapter(Number(Z.params.contentId),Number(Z.params.chapterId),e,t).then(e=>
1{200==e.result.code?Oe.showNotification("ãå ±åãããã¨ããããã¾ãã",3e3):Oe.showNotification(e.result.message,3e3)})},onClose:()=>{ke.close("ShareModal")}}})}};w(e).open()}()})},{default:A(()=>[G("div",le,[K(c,{"font-color":J(y).gray30,"font-weight":"Regular","font-size":"size30"},{default:A(()=>r[11]||(r[11]=[ee(" ã³ã³ãã³ãã®åé¡ã ",-1)])),_:1,__:[11]},8,["font-color"]),K(c,{"font-color":J(y).gray20,"font-weight":"Bold","font-size":"size30"},{default:A(()=>r[12]||(r[12]=[ee(" å ±åãã ",-1)])),_:1,__:[12]},8,["font-color"])])]),_:1})]),G("div",{class:"create_group",style:X({"align-items":J(Ce).authorComment?"start":"center"})},[K(u,{style:{"border-radius":"24px",overflow:"hidden","flex-shrink":0,"flex-grow":0},width:48,height:48,src:J(xe).avatarFileName?J(Ie)+J(xe).avatarFilePath+J(xe).avatarFileName:J(R),"object-fit":"cover"},null,8,["src"]),G("div",re,[K(s,{icon:J(H),"icon-color":J(y).gray30,"icon-position":"Right",style:{"margin-bottom":"8px"},"font-color":J(y).gray20,"font-size":"size50","font-weight":"Bold",padding:0,ratio:1,href:`/challenge/search/author:${J(xe).nickname}`},{default:A(()=>[ee(te(J(xe).nickname),1)]),_:1},8,["icon","icon-color","font-color","href"]),""!==J(Ce).authorComment?(W(),ae("div",se,[K(c,{"font-color":J(y).gray20,"font-size":"size50"},{default:A(()=>[ee(te(J(Ce).authorComment),1)]),_:1},8,["font-color"])])):oe("",!0)])],4),J(Ce).nextChapter?(W(),ae("div",{key:0,class:"next_group",style:X({border:J(M).isMobile?"0px":`1px ${J(y).gray60} solid`,padding:J(M).isMobile?"0px 0px 16px":"20px"})},[G("div",{class:"image",style:X({height:J(M).isMobile?"80px":"113px",width:J(M).isMobile?"108px":"152px","background-size":J(M).isMobile?"108px 80px":"152px 113px","background-image":`url(${J(Ie)+J(Ce).nextChapter.coverImageFilePath+J(Ce).nextChapter.coverImageFileName})`})},null,4),G("div",ce,[K(c,{"font-color":J(y).gray10,"font-size":"size70","font-weight":"Bold"},{default:A(()=>[ee(te(J(xe).name),1)]),_:1},8,["font-color"]),K(c,{"font-color":J(y).gray20,"font-size":"size60"},{default:A(()=>[ee(te(J(Ce).nextChapter.name),1)]),_:1},8,["font-color"])]),J(M).isMobile?oe("",!0):(W(),Q(s,{key:0,"bg-color":J(y).pink30,width:174,height:40,href:`/challenge/comic/${J(Z).params.contentId}/${J(Ce).nextChapter.chapterId}`},{default:A(()=>r[13]||(r[13]=[ee(" 次ã®è©±ãèªã ",-1)])),_:1,__:[13]},8,["bg-color","href"]))],4)):oe("",!0),J(M).isMobile&&J(Ce).nextChapter?(W(),Q(s,{key:1,"bg-color":J(y).pink30,width:174,height:40,href:`/challenge/comic/${J(Z).params.contentId}/${J(Ce).nextChapter.chapterId}`},{default:A(()=>r[14]||(r[14]=[ee(" 次ã®è©±ãèªã ",-1)])),_:1,__:[14]},8,["bg-color","href"])):oe("",!0),G("div",de,[K(c,{"font-color":J(y).gray20,"font-size":"size50",style:{"margin-bottom":"16px"}},{default:A(()=>r[15]||(r[15]=[ee(" ãã®ä½åãå
±æãã ",-1)])),_:1,__:[15]},8,["font-color"]),G("div",he,[K(p,{class:"flex_item",style:{"margin-right":"16px"},onClick:r[4]||(r[4]=()=>{window.open(Y.createFacebookShareHref(location.href),"_blank")})},{default:A(()=>[K(u,{src:J(b),height:40,width:40},null,8,["src"])]),_:1}),K(p,{class:"flex_item",style:{"margin-right":"16px"},onClick:r[5]||(r[5]=()=>{window.open(Y.createTwitterShareHref({text:xe.value.name,targetUrl:location.href}),"_blank")})},{default:A(()=>[K(u,{src:J(k),height:40,width:40},null,8,["src"])]),_:1}),K(p,{class:"flex_item",onClick:r[6]||(r[6]=()=>{!function(){const e=location.href;navigator.clipboard.writeText(e),Oe.showNotification("ã³ãã¼ããã¾ãã",2e3)}()})},{default:A(()=>[K(u,{src:J(T),height:40,width:40},null,8,["src"])]),_:1})])])],4)]),G("div",{class:"footer",style:X({"z-index":J(x).Footer,display:J(ye)?"block":"none"})},[G("div",{class:"footer_content",style:X(Se())},[G("div",null,[J(Ce).commentEnabled?(W(),Q(s,{key:0,icon:J("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='24'%20height='24'%20fill='white'%20fill-opacity='0.01'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.9948%206.30796C21.8951%204.46428%2020.3686%203%2018.5%203H5.5L5.30796%203.00518C3.46428%203.10487%202%204.63144%202%206.5V14.5L2.00518%2014.692C2.10487%2016.5357%203.63144%2018%205.5%2018H6V16H5.5L5.35554%2015.9931C4.59489%2015.9204%204%2015.2797%204%2014.5V6.5L4.00687%206.35554C4.07955%205.59489%204.7203%205%205.5%205H18.5L18.6445%205.00687C19.4051%205.07955%2020%205.7203%2020%206.5V14.5L19.9931%2014.6445C19.9204%2015.4051%2019.2797%2016%2018.5%2016H11.6709L11.464%2016.0061C10.5023%2016.063%209.60281%2016.5146%208.98216%2017.2594L7.23178%2019.3598L8.76822%2020.6402L10.5186%2018.5397L10.6185%2018.4311C10.8977%2018.1562%2011.2752%2018%2011.6709%2018H18.5L18.692%2017.9948C20.5357%2017.8951%2022%2016.3686%2022%2014.5V6.5L21.9948%206.30796ZM8%2011.5C8.55228%2011.5%209%2011.0523%209%2010.5C9%209.94772%208.55228%209.5%208%209.5C7.44772%209.5%207%209.94772%207%2010.5C7%2011.0523%207.44772%2011.5%208%2011.5ZM13%2010.5C13%2011.0523%2012.5523%2011.5%2012%2011.5C11.4477%2011.5%2011%2011.0523%2011%2010.5C11%209.94772%2011.4477%209.5%2012%209.5C12.5523%209.5%2013%209.94772%2013%2010.5ZM16%2011.5C16.5523%2011.5%2017%2011.0523%2017%2010.5C17%209.94772%2016.5523%209.5%2016%209.5C15.4477%209.5%2015%209.94772%2015%2010.5C15%2011.0523%2015.4477%2011.5%2016%2011.5Z'%20fill='white'/%3e%3c/svg%3e"),"icon-position":"Left","icon-color":J(y).white,height:24,width:24,padding:0,href:`/challenge/comic/${J(Z).params.contentId}/${J(Z).params.chapterId}/comment`},{default:A(()=>[ee(te(J(Ce).commentCount),1)]),_:1},8,["icon","icon-color","href"])):oe("",!0)]),G("div",pe,[K(s,{style:X({"margin-right":J(M).isMobile?"32px":"60px"}),icon:J("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='ico_up_fill'%3e%3cpath%20id='Path'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.7273%208.39774C12.3543%207.9053%2011.7661%207.87013%2011.3624%208.29222L11.2727%208.39774L4.87821%2016.8405C4.51755%2017.3167%204.8572%2018%205.45454%2018L12.0007%2018L18.5455%2017.9998C19.1427%201
17.9999%2019.4824%2017.3166%2019.1218%2016.8405L12.7273%208.39774Z'%20fill='%23212529'/%3e%3c/g%3e%3c/svg%3e"),"icon-position":"Left","icon-color":J(Ce).previousChapter?J(y).white:J(y).gray30,"font-color":J(Ce).previousChapter?J(y).white:J(y).gray30,height:24,width:24,padding:0,onClick:r[8]||(r[8]=()=>{J(Ce).previousChapter&&J(ue).push(`/challenge/comic/${J(Z).params.contentId}/${J(Ce).previousChapter.chapterId}`)})},{default:A(()=>r[16]||(r[16]=[ee(" å㸠",-1)])),_:1,__:[16]},8,["style","icon","icon-color","font-color"]),K(s,{icon:J("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='ico_down_fill'%3e%3cpath%20id='Path'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.7273%2017.6023C12.3543%2018.0947%2011.7661%2018.1299%2011.3624%2017.7078L11.2727%2017.6023L4.87821%209.1595C4.51755%208.68332%204.8572%208%205.45454%208L12.0007%208L18.5455%208.00021C19.1427%208.00012%2019.4824%208.68337%2019.1218%209.15951L12.7273%2017.6023Z'%20fill='%23212529'/%3e%3c/g%3e%3c/svg%3e"),"icon-position":"Right","icon-color":J(Ce).nextChapter?J(y).white:J(y).gray30,"font-color":J(Ce).nextChapter?J(y).white:J(y).gray30,height:24,width:24,padding:0,onClick:r[9]||(r[9]=()=>{J(Ce).nextChapter&&J(ue).push(`/challenge/comic/${J(Z).params.contentId}/${J(Ce).nextChapter.chapterId}`)})},{default:A(()=>r[17]||(r[17]=[ee(" 次㸠",-1)])),_:1,__:[17]},8,["icon","icon-color","font-color"])])],4)],4)]),_:1})}})}}),[["__scopeId","data-v-42dafef8"]]);export{ue as default};
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.