PageSourceSearch

https://reamstories.com/chunk-Y7QQFIM6.js

js reamstories.com collected 2026-10-03 21:03:58 UTC 11,433 bytes, 1 lines download raw bytes

1import{a as O}from"./chunk-U4CTM4KN.js";import{d as ce,e as me,f as pe,g as de}from"./chunk-U4FKSEEP.js";import{a as w}from"./chunk-N3XAI35O.js";import{i as se}from"./chunk-D7LYPHLY.js";import{a as ae,b as T}from"./chunk-HBQ7AH7Y.js";import"./chunk-M2LWPEJE.js";import{a as oe}from"./chunk-WM6TKDT5.js";import"./chunk-5TIEE6XT.js";import"./chunk-ITJTRNNF.js";import{a as J,b as W}from"./chunk-QC3V5J5S.js";import{v as G}from"./chunk-CYEWF7BN.js";import"./chunk-7ELRWMFX.js";import{A as E,D as F,Db as B,Ec as V,Ib as k,Jb as C,Kb as M,Ma as c,Na as y,Nb as h,Ob as s,Pb as A,Qb as H,Tc as $,W as R,Z as b,_ as z,_a as N,_b as u,ac as g,ba as d,ga as Q,ha as q,hb as p,hd as X,k as D,kd as Y,ld as Z,md as ee,nd as _,od as te,p as j,pd as ne,qd as re,sb as a,tb as o,td as ie,ub as U}from"./chunk-MLBDNTY2.js";import{b as L}from"./chunk-XIA4NYXV.js";import"./chunk-IJYXSRJ2.js";var le=(()=>{let e=class e{constructor(t,n,l){this.userService=t,this.storyDetailsApiService=n,this.router=l}canActivate(t,n){let l=t.children[0].paramMap.get("storyKey")||"",x=this.userService.userKey,f=!1;return l==="new"?!0:this.storyDetailsApiService.get({StoryKey:l}).pipe(F(v=>D(null)),R(v=>{var I;((I=v==null?void 0:v.Story)==null?void 0:I.UserKey)===x?f=!0:this.router.navigate(["/creator-hub/stories"],{queryParamsHandling:"merge"})}),j(()=>f))}};e.\u0275fac=function(n){return new(n||e)(d(oe),d(w),d(_))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var fe=["rlaDetails"],ve=["rlaContent"],be=["rlaScheduling"],ke=(r,e)=>["details",r,e],P=()=>({exact:!0}),Ce=(r,e)=>["content",r,e],Me=(r,e)=>["serials",r,e],_e=(r,e)=>["sales",r,e];function we(r,e){if(r&1&&(a(0,"a",12,4)(2,"span"),s(3,"Sales"),o()()),r&2){let i=h(1),t=B();p("routerLink",g(3,_e,t.storyKey,t.mediaType))("routerLinkActiveOptions",u(6,P))("active",i.isActive)}}var m,S=(m=class{constructor(e,i,t,n){this.contexts=e,this.storyService=i,this.activatedRoute=t,this.router=n,this.storyKey="new",this.mediaType="ebook",this.contentTypeLabel="eBook",this.mediaTypeIcon="auto_stories"}ngOnInit(){this.setStoryRouteContext(),this.router.events.pipe(E(e=>e instanceof X),T(this)).subscribe(()=>{this.setStoryRouteContext()}),this.storyService.StoryKey$.pipe(T(this)).subscribe(e=>{this.storyKey=e})}setStoryRouteContext(){var n;let e=this.activatedRoute.firstChild,i=e==null?void 0:e.snapshot.paramMap.get("mediaType"),t=(n=e==null?void 0:e.snapshot.url[e.snapshot.url.length-1])==null?void 0:n.path;switch(this.mediaType=i||t||"ebook",this.mediaType){case"ebook":this.contentTypeLabel="eBook",this.mediaTypeIcon="auto_stories";break;case"audio":this.contentTypeLabel="Audio",this.mediaTypeIcon="headphones";break;case"comic":this.contentTypeLabel="Comic",this.mediaTypeIcon="dashboard";break;default:}this.storyService.StoryKeySubject.next((e==null?void 0:e.snapshot.paramMap.get("storyKey"))||"new")}ngOnDestroy(){this.storyService.StoryKeySubject.next("new")}getRouteAnimationData(){var e,i,t,n;return(n=(t=(i=(e=this.contexts.getContext("primary"))==null?void 0:e.route)==null?void 0:i.snapshot)==null?void 0:t.data)==null?void 0:n.animation}},m.\u0275fac=function(i){return new(i||m)(y(Y),y(O),y(Z),y(_))},m.\u0275cmp=Q({type:m,selectors:[["app-add-story"]],viewQuery:function(i,t){if(i&1&&(k(fe,5),k(ve,5),k(be,5)),i&2){let n;C(n=M())&&(t.rlaDetails=n.first),C(n=M())&&(t.rlaContent=n.first),C(n=M())&&(t.rlaScheduling=n.first)}},decls:36,vars:27,consts:[["rlaDetails","routerLinkActive"],["rlaContent","routerLinkActive"],["rlaSerials","routerLinkActive"],["tabPanel",""],["rlaSales","routerLinkActive"],[1,"story-workspace"],[1,"workspace-header"],["routerLink","/creator-hub/stories",1,"back-link"],[1,"workspace-heading"],[1,"workspace-heading__icon"],[1,"eyebrow"],["mat-tab-nav-bar","","color","primary","mat-stretch-tabs","false","aria-label","Story setup sections",1,"workspace-tabs",3,"tabPanel"],["mat-tab-link","","queryParamsHandling","merge","routerLinkActive","active-link",3,"routerLink","routerLinkActiveOptions","active"],["mat-tab-link","","queryParamsHandling","merge","routerLinkActive","active-link",3,"routerLink","routerLinkActiveOptions","active",4,"ngIf"],[1,"main-story-content"]],template:function(i,t){if(i&1&&(a(0,"div",5)(1,"header",6)(2,"a",7)(3,"mat-icon"),s(4,"chevron_left"),o(),a(5,"span"),s(6,"All stories"),o()(),a(7,"div",8)(8,"span",9)(9,"mat-icon"),s(10),o()(),a(11,"div")(12,"span",10),s(13),o(),a(14,"h1"),s(15),o(),a(16,"p"),s(17,"Build your story, organize releases, and manage how readers can access it."),o()()()(),a(18,"nav",11)(19,"a",12,0)(21,"span"),s(22,"Details"),o()(),a(23,"a",12,1)(25,"span"),s(26,"Content"),o()(),a(27,"a",12,2)(29,"span"),s(30,"Serialize"),o()(),N(31,we,4,7,"a",13),o(),a(32,"mat-tab-nav-panel",null,3)(34,"div",14),U(35,"router-outlet"),o()()()),i&2){let n=h(20),l=h(24),x=h(28),f=h(33);c(10),A(t.mediaTypeIcon),c(3),H("",t.contentTypeLabel," workspace"),c(2),A(t.storyKey==="new"?"Create a new story":"Manage your story"),c(3),p("tabPanel",f),c(),p("routerLink",g(15,ke,t.storyKey,t.mediaType))("routerLinkActiveOptions",u(18,P))("active",n.isActive),c(4),p("routerLink",g(19,Ce,t.storyKey,t.mediaType))("routerLinkActiveOptions",u(22,P))("active",l.isActive),c(4),p("routerLink",g(23,Me,t.storyKey,t.mediaType))("routerLinkActiveOptions",u(26,P))("active",x.isActive),c(4),p("ngIf",t.mediaType==="ebook"||t.mediaType==="audio"),c(),p("@slideInnerAnimation",t.getRouteAnimationData())}},dependencies:[V,ce,pe,me,J,ee,te,ne],styles:["[_nghost-%COMP%]{--story-workspace-tabs-height: 48px;display:block;min-height:100%;background:var(--ream-surface-soft)}.story-workspace[_ngcontent-%COMP%]{min-height:100%}.workspace-header[_ngcontent-%COMP%]{padding:1rem clamp(1rem,3vw,2rem) 1.25rem;color:#fff;background:radial-gradient(circle at 90% 0,rgba(255,255,255,.14),transparent 18rem),linear-gradient(135deg,var(--brand-gradient-start),var(--brand-gradient-end))}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.15rem;margin-bottom:1rem;padding:.35rem .55rem .35rem .25rem;border-radius:.6rem;color:#fffc;font-size:.8rem;font-weight:650;text-decoration:none}.back-link[_ngcontent-%COMP%]:hover{color:#fff;background:#ffffff1a}.workspace-heading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;width:min(90rem,100%);margin:0 auto}.workspace-heading[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-width:0}.workspace-heading[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin:.15rem 0 .3rem;font-size:clamp(1.65rem,4vw,2.5rem);line-height:1.05;letter-spacing:-.03em}.workspace-heading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:#ffffffb8;font-size:.85rem}.workspace-heading__icon[_ngcontent-%COMP%]{display:grid;flex:0 0 3.75rem;width:3.75rem;height:3.75rem;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:1rem;background:#ffffff1f}.workspace-heading__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:1.9rem;height:1.9rem;font-size:1.9rem}.eyebrow[_ngcontent-%COMP%]{color:color-mix(in srgb,#fff 76%,var(--brand-primary-dark));font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.workspace-tabs[_ngcontent-%COMP%]{position:sticky;z-index:15;top:var(--header-padding, 0px);overflow-x:auto;padding:0 1rem;border-bottom:1px solid #ddd4e6;background:#fffffff5;-webkit-backdrop-filter:blur(.75rem);backdrop-filter:blur(.75rem)}.workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{min-width:9rem;gap:.4rem;color:#675b73;font-weight:650}.workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:1.15rem;height:1.15rem;font-size:1.15rem}.workspace-tabs[_ngcontent-%COMP%]   a.active-link[_ngcontent-%COMP%]{color:light-dark(var(--ream-primary),var(--ream-primary))}.tab-step[_ngcontent-%COMP%]{display:grid;width:1.25rem;height:1.25rem;place-items:center;border-radius:50%;color:var(--ream-text-secondary);background:var(--ream-border);font-size:.65rem;font-weight:800}.active-link[_ngcontent-%COMP%]   .tab-step[_ngcontent-%COMP%]{color:#fff;background:var(--ream-primary)}.main-story-content[_ngcontent-%COMP%]{position:relative;min-height:30rem}.dark-theme[_nghost-%COMP%], .dark-theme   [_nghost-%COMP%]{background:var(--ream-page)}.dark-theme[_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%]{border-color:#403648;background:#221c29f5}.dark-theme[_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#c6bbcf}.dark-theme[_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%]   a.active-link[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .workspace-tabs[_ngcontent-%COMP%]   a.active-link[_ngcontent-%COMP%]{color:var(--ream-accent-foreground)}.dark-theme[_nghost-%COMP%]   .tab-step[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .tab-step[_ngcontent-%COMP%]{color:#d7cce0;background:#3b3243}@media (max-width: 620px){.workspace-header[_ngcontent-%COMP%]{padding:.6rem .75rem 1rem}.workspace-heading[_ngcontent-%COMP%]{align-items:flex-start}.workspace-heading__icon[_ngcontent-%COMP%]{flex-basis:3.1rem;width:3.1rem;height:3.1rem}.workspace-heading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:none}.workspace-tabs[_ngcontent-%COMP%]{padding:0}.workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{min-width:5.5rem;padding:0 .55rem}.workspace-tabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .tab-step[_ngcontent-%COMP%]{display:none}}"],data:{animation:[se]}}),m);S=L([ae()],S);var he=(()=>{let e=class e{constructor(t,n){this.storyDetailsApiService=t,this.storyService=n}canDeactivate(){return this.storyDetailsApiService.currentStoryInContext=null,this.storyService.StoryKeySubject.next("new"),this.storyService.StoryKey="new",!0}};e.\u0275fac=function(n){return new(n||e)(d(w),d(O))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Ve=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=z({providers:[re([{path:"",component:S,data:{animation:"creator"},canActivate:[le],canDeactivate:[he],children:[{path:"details/:storyKey/:mediaType",loadChildren:()=>import("./chunk-KO6GUSAO.js").then(t=>t.StoryDetailsModule),data:{animation:"ind0"}},{path:"content/:storyKey/ebook",loadChildren:()=>import("./chunk-CUMNOOVO.js").then(t=>t.StoryContentModule),data:{animation:"ind1"}},{path:"content/:storyKey/audio",loadChildren:()=>import("./chunk-SWK23TAZ.js").then(t=>t.AudioContentModule),data:{animation:"ind1"}},{path:"content/:storyKey/comic",loadChildren:()=>import("./chunk-RD2HY747.js").then(t=>t.ComicContentModule),data:{animation:"ind1"}},{path:"content/:storyKey",data:{animation:"ind1"},redirectTo:"content/:storyKey/ebook"},{path:"publishing/:storyKey",pathMatch:"full",data:{animation:"ind1"},redirectTo:"serials/:storyKey/ebook"},{path:"publishing/:storyKey/:mediaType",pathMatch:"full",data:{animation:"ind1"},redirectTo:"serials/:storyKey/:mediaType"},{path:"serials/:storyKey/:mediaType",loadChildren:()=>import("./chunk-PIVYTETE.js").then(t=>t.StoryPublishingModule),data:{animation:"ind2"}},{path:"sales/:storyKey/:mediaType",loadChildren:()=>import("./chunk-QAV74JL4.js").then(t=>t.StorySalesModule),data:{animation:"ind2"}}]}])],imports:[$,G,de,W,ie]});let r=e;return r})();export{Ve as AuthorStoryModule};

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.