1import{h as oe,i as se}from"/wp-web-assets/build/_shared/chunk-MFSGQXE4.js";import{a as ne}from"/wp-web-assets/build/_shared/chunk-DDLWNDR2.js";import{d as ie}from"/wp-web-assets/build/_shared/chunk-RHWUX4MG.js";import{a as ae}from"/wp-web-assets/build/_shared/chunk-KQ2XT2G7.js";import{a as V}from"/wp-web-assets/build/_shared/chunk-IJMUN5JI.js";import{c as Z,e as Q}from"/wp-web-assets/build/_shared/chunk-JNFIYR72.js";import{a as J}from"/wp-web-assets/build/_shared/chunk-YHN27KOE.js";import{a as j,d as ee,e as te,f as re}from"/wp-web-assets/build/_shared/chunk-AZJNDCBC.js";import{Z as X}from"/wp-web-assets/build/_shared/chunk-OJGQNC6W.js";import{a as H}from"/wp-web-assets/build/_shared/chunk-XK3XJ5LM.js";import{b as m}from"/wp-web-assets/build/_shared/chunk-WRFPJY3T.js";import{d as v}from"/wp-web-assets/build/_shared/chunk-QU6HUKB6.js";import{r as q,y as $}from"/wp-web-assets/build/_shared/chunk-BEEYMAMZ.js";import{a as K,b as S}from"/wp-web-assets/build/_shared/chunk-NFQRDOF2.js";import{e as o}from"/wp-web-assets/build/_shared/chunk-H535LSQH.js";var ge=e=>`${e}/hc/en-us/articles/200774334-Content-Guidelines`,fe="https://support.wattpad.com/hc/articles/48003739079828-Content-Taxonomy-Glossary";var le=e=>[{name:e("All Rights Reserved"),summary:e("You do not allow your work to be used or adapted in any way without your permission."),value:"1"},{name:e("Public Domain"),summary:e("This allows anyone to use your story for any purpose \u2014 they could freely print, sell, or turn your story into a movie."),value:"2"},{name:e("Creative Commons (CC) Attribution"),summary:e("You hold some rights to your story but allow for things like translation or adaptations with credit back to you."),value:"3"},{name:e("(CC) Attrib. NonCommercial"),summary:e("This license lets others remix, adapt, and build upon your work non-commercially with credit back to you."),value:"4"},{name:e("(CC) Attrib. NonComm. NoDerivs"),summary:e("This license allows others to share your unaltered work with others as long as you get credit."),value:"5"},{name:e("(CC) Attrib. NonComm. ShareAlike"),summary:e("This lets others adapt, and build upon your work non-commercially, as long as you are credited and the same terms are applied."),value:"6"},{name:e("(CC) Attribution-ShareAlike"),summary:e("This lets others adapt and build on your work, even for commercial purposes, as long as you are credited and the same terms are applied."),value:"7"},{name:e("(CC) Attribution-NoDerivs"),summary:e("This lets others reuse your work for any purpose but it cannot be altered and you must be credited."),value:"8"}];var B={"story-copyright":"r7Ke0","copyright-icon":"_181TI"};var x=o(S()),ue=({description:e,copyright:n,onReadMore:r,alwaysShowToggle:N})=>{let{t:d}=v(),u=le(d),l=n?n.toString():"1",a=u.find(C=>C.value.toString()===l);return(0,x.jsx)("div",{className:B["story-description"],children:(0,x.jsx)(ae,{text:e,size:"small",onReadMore:r,alwaysShowToggle:N,children:a&&(0,x.jsxs)("div",{className:B["story-copyright"],"data-testid":"copyright",children:[(0,x.jsx)("span",{className:B["copyright-icon"],"aria-hidden":"true"}),a.name]})})})},_e=ue;var h={"series-row":"pR95I","series-row-swimlane":"ZbLaK","series-carousel":"_4tf8H","series-label":"_7dMxb","series-row-title":"Lt1As",completed:"vaYRl","completed-dot":"eaThL","series-row-arrow":"RWME2"};var k=o(K());var L=o(H());var p={"series-story-card":"wwsZ1","cover-container":"_36CUH",cover:"l7SLe","current-read-overlay":"Djztp","current-read-icon":"QK7Wu","icon-parts":"VwaRH",icon:"_6-0-1","parts-text":"WfAfD","season-label":"_1FlYP","current-read-label":"Dh3fn"};var i=o(S()),ye=({className:e,id:n,title:r,cover:N,isWattpadOriginal:d=!1,orderInSeries:u,numParts:l,isCurrentRead:a,index:C,type:I,relatedId:T,isClickable:g=!0,page:f="story_details"})=>{let{siteRoot:R}=$("root"),{t:y}=v(),[b,A]=(0,k.useState)(a),E=(0,k.useRef)(null),Y={storyid:n,page:f,type:"series_row",related_id:T},G={storyid:n,page:f,type:"series_row",related_id:T},F=I==="sequential",M=g&&!a,P=M?"a":"div",D=M?{className:p["cover-container"],"data-testid":"cover-link",href:`${R}/story/${n}`,"aria-label":r,onClick:()=>{Q(Y)}}:{className:p["cover-container"],"data-testid":"cover","aria-label":a?`${r}, ${y("Current read")}`:r,role:"img"},O=(0,i.jsxs)("div",{className:p["current-read-overlay"],"aria-hidden":"true",children:[(0,i.jsx)("div",{className:p["current-read-icon"],children:(0,i.jsx)(L.Icon,{name:L.IconNames.WpCheck,size:32})}),(0,i.jsx)("span",{className:m("typography-label-small",p["current-read-label"]),children:y("Current read")})]}),z=(0,i.jsx)("div",{className:m("typography-paragraph-small",p["season-label"]),children:y("Season %s",{sprintf:[u],count:u,defaultValue_other:"Season %s"})});return(0,k.useEffect)(()=>
1{if(f==="onboarding"||b||!E.current)return;let _=E.current,U=new IntersectionObserver(de=>{!b&&de[0].isIntersecting&&(A(!0),Z(G))},{root:document.querySelector("#scrollArea")||null,rootMargin:"0px",threshold:.5});return _&&U.observe(_),()=>{_&&U.unobserve(_)}},[b,n,r,C,f]),(0,i.jsxs)("div",{className:m(e,p["series-story-card"]),"data-testid":"seriesStoryCard",ref:E,children:[(0,i.jsxs)(P,{...D,children:[(0,i.jsx)(L.Cover,{className:p.cover,imgSrc:N,altText:r,showOriginalsBadge:d,flexibleImage:!0}),a&&O]}),F&&z,(0,i.jsxs)("div",{className:p["icon-parts"],"data-testid":"icons",children:[(0,i.jsx)(X,{className:p.icon,name:"parts",height:"16",strokeColor:"var(--ds-neutral-80)"}),(0,i.jsx)("span",{className:m("typography-paragraph-x-small",p["parts-text"]),children:y("%s part",{sprintf:[l],count:l,defaultValue_other:"%s parts"})})]})]})},pe=ye;var W=o(H()),s=o(S()),ce=o(K()),me={MOBILE:425,SMALL_TABLET:600,TABLET:768,DESKTOP:960,FULLSCREEN:1200},Fe=({stories:e,seriesName:n,type:r,relatedId:N,status:d,isWattpadOriginal:u=!1,className:l,seriesId:a,areCoversClickable:C=!0,page:I})=>{let{t:T}=v(),{testGroups:g}=$("root");
1if(e.length<=1)return null;let f=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:m(h["series-label"]),children:T("Series")}),d==="complete"&&(0,s.jsxs)("span",{className:m(h.completed),children:[(0,s.jsx)("span",{className:h["completed-dot"],"aria-hidden":"true"}),T("Complete")]})]}),R=g!=null&&g.IS_SERIES_LANDING_PAGE&&a?(0,s.jsxs)(q,{to:`/series/${a}`,className:h["series-row-title"],children:[n,(0,s.jsx)("div",{className:h["series-row-arrow"],children:(0,s.jsx)(W.Icon,{name:W.IconNames.WpChevronRight,size:20})})]}):n;return(0,s.jsxs)("div",{className:m(h["series-row"],l),children:[f,(0,s.jsx)(ne,{className:h["series-row-swimlane"],heading:R,children:(0,s.jsx)(ie,{className:h["series-carousel"],options:{pagination:!1,perPage:6,gap:"8px",breakpoints:{[me.DESKTOP]:{perPage:5},[me.SMALL_TABLET]:{arrows:!1,perPage:4}}},type:`seriesRow-${r}`,slides:e.map((y,b)=>(0,ce.createElement)(pe,{...y,type:r,index:b,relatedId:N,key:b,isWattpadOriginal:u,isClickable:C,page:I}))})})]})};var w=o(H());var c={"story-meta":"A9kEh","story-meta-row":"GZxny","story-meta-icon":"_7GK0m","story-meta-strong":"ltxNQ","status-with-tooltip":"RcspK","story-meta-row-price":"_0ebFU"};var t=o(S()),he=({story:e,isMobileCheck:n=!1})=>{var P,D,O,z,_;let{t:r}=v(),N=j(e),d=e.completed,u=(P=e.fullStoryPriceMetadata)==null?void 0:P.amount,l=se(e),a=((D=e==null?void 0:e.language)==null?void 0:D.id)===1&&typeof e.length=="number"&&e.length>0,C=a?te(e.length):0,{hours:I,minutes:T}=re(C),g=a?ee(I,T,r):null,f=N&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:c["story-meta-strong"],children:r("Mature")}),(0,t.jsx)(V,{})]}),R=r(d?"Complete":"Ongoing"),y=oe(e),b=!n&&!!((O=e.firstPublishedPart)!=null&&O.createDate),A=(_=y!=null?y:(z=e.firstPublishedPart)==null?void 0:z.createDate)!=null?_:"",E=`${r("First published")} ${A}`,Y=b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:m(c["story-meta-strong"],c["status-with-tooltip"]),"data-tooltip-id":"first-published-tooltip","aria-label":E,"data-testid":"story-status-with-first-published-tooltip",children:R}),(0,t.jsx)(J,{id:"first-published-tooltip",place:"top",className:c["first-published-tooltip"],render:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:r("First published")})," ",A]})})]}):(0,t.jsx)("span",{className:c["story-meta-strong"],children:R}),G=d&&l&&(0,t.jsxs)("span",{children:[" ",l]}),F=g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V,{}),(0,t.jsx)("span",{children:g})]}),M=r("Last published %s",{sprintf:[l!=null?l:""]});return(0,t.jsxs)("div",{className:c["story-meta"],"data-testid":"story-meta",children:[(0,t.jsxs)("div",{className:`typography-paragraph-small ${c["story-meta-row"]}`,children:[(0,t.jsx)(w.Icon,{name:w.IconNames.WpMetadataRead,size:16}),f,Y,G,F]}),!d&&(0,t.jsxs)("div",{className:`typography-paragraph-small ${c["story-meta-row"]}`,children:[(0,t.jsx)(w.Icon,{name:w.IconNames.WpMetadataNotice,size:16}),M]}),u!=null&&d&&(0,t.jsxs)("div",{className:`typography-paragraph-small ${c["story-meta-row"]} ${c["story-meta-row-price"]}`,children:[(0,t.jsx)(w.Icon,{name:w.IconNames.WpCoin,size:16}),(0,t.jsx)("span",{children:r("Full Story Price")}),(0,t.jsx)("span",{children:r("%s Coin",{sprintf:[u],count:u,defaultValue_other:"%s Coins"})})]})]})},et=he;export{ge as a,fe as b,_e as c,Fe as d,et as e};
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.