PageSourceSearch

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

js reamstories.com collected 2026-10-03 21:06:05 UTC 5,241 bytes, 1 lines download raw bytes

1import{h as tt}from"./chunk-ROWAWLHZ.js";import{a as X}from"./chunk-N3XAI35O.js";import{a as U}from"./chunk-Z3MAMH27.js";import{d as Y}from"./chunk-GZSDRUSJ.js";import{a as J}from"./chunk-HBQ7AH7Y.js";import{a as Z}from"./chunk-F6JYLB6O.js";import{b as R}from"./chunk-4KTJW4GH.js";import{a as Q,c as W}from"./chunk-6A5SUG7B.js";import{d as q}from"./chunk-OK72ZIXG.js";import{i as $}from"./chunk-MPYKPBD2.js";import{J as H,g as N,h as j,i as E,l as V,s as k,v as B}from"./chunk-QKSHEYMQ.js";import{h as z}from"./chunk-YSJA34MQ.js";import{e as T,f as b,l as L}from"./chunk-47IWTD5S.js";import{b as G}from"./chunk-TGFZTZKQ.js";import{d as A}from"./chunk-3AR4TA3J.js";import{d as O,f as x}from"./chunk-G6VVUNEY.js";import{a as K,b as P}from"./chunk-QC3V5J5S.js";import{N as w}from"./chunk-CYEWF7BN.js";import{Bb as v,Db as f,Dc as F,Ec as I,Ha as y,Ma as a,Na as c,Ob as l,Pb as M,Qb as _,Tc as D,_ as u,_a as h,ga as d,ha as S,hb as r,sb as s,tb as p,ub as C}from"./chunk-MLBDNTY2.js";import{b as g}from"./chunk-XIA4NYXV.js";function nt(i,t){i&1&&(s(0,"div"),l(1,"Loading..."),p())}function at(i,t){if(i&1&&(s(0,"mat-option",8),l(1),p()),i&2){let e=t.$implicit;r("value",e),a(),_(" ",e.DraftTitle," ")}}function st(i,t){if(i&1&&(s(0,"mat-select",6),h(1,at,2,2,"mat-option",7),p()),i&2){let e=f();a(),r("ngForOf",e.chapterList)}}function pt(i,t){if(i&1&&C(0,"p",11),i&2){let e=t.$implicit;r("innerHTML",e,y)}}function mt(i,t){if(i&1&&(s(0,"div",9),h(1,pt,1,1,"p",10),p()),i&2){let e=f();a(),r("ngForOf",e.paragraphs)}}var n,et=(n=class{get chapterSelectFormControl(){var t;return(t=this.chapterSelectFormGroup)==null?void 0:t.get("chapterSelectFormControl")}constructor(t,e,o,m,ot,it){this.dialogRef=t,this.data=e,this.storyContentApiService=o,this.storyDetailsApisService=m,this.snackBar=ot,this.userApiService=it,this.subscriptionsToClean=[],this.loading=!0}ngOnInit(){this.setupForm(),this.getStoryData()}ngOnDestroy(){this.subscriptionsToClean.forEach(t=>t==null?void 0:t.unsubscribe())}close(){this.dialogRef.close()}setupForm(){var t;this.chapterSelectFormGroup=new E({chapterSelectFormControl:new V("")}),this.subscriptionsToClean.push((t=this.chapterSelectFormControl)==null?void 0:t.valueChanges.subscribe({next:e=>{this.paragraphs=[],e!=null&&e.ChapterKey&&this.userApiService.getparagraphsCS({ChapterKey:e==null?void 0:e.ChapterKey,SnapshotKey:this.data.SnapshotKey,StoryKey:this.data.StoryKey}).subscribe({next:o=>{var m;this.paragraphs=(m=o==null?void 0:o.Paragraphs)!=null&&m.length?o==null?void 0:o.Paragraphs:["No paragraphs found."]},error:o=>{this.snackBar.open(o.error.Message,"close",{duration:2e3,horizontalPosition:"center",verticalPosition:"top"})}})}}))}getStoryData(){this.storyDetailsApisService.get({StoryKey:this.data.StoryKey}).subscribe(t=>{var e;this.title=(e=t==null?void 0:t.Story)==null?void 0:e.Title}),this.data.SnapshotKey?this.userApiService.getparagraphsCS({SnapshotKey:this.data.SnapshotKey,StoryKey:this.data.StoryKey}).subscribe({next:t=>this.setChapterList(t.Chapters||[]),error:t=>this.snackBar.open(t.error.Message,"close",{duration:2e3})}):this.storyContentApiService.getChapterList({StoryKey:this.data.StoryKey}).subscribe(t=>this.setChapterList(t))}setChapterList(t){var e;this.chapterList=t!=null&&t.length?t:[],this.loading=!1,this.chapterList.length&&((e=this.chapterSelectFormControl)==null||e.setValue(this.chapterList[0]))}},n.\u0275fac=function(e){return new(e||n)(c(T),c(b),c(U),c(X),c(A),c(z))},n.\u0275cmp=d({type:n,selectors:[["app-view-reported-story"]],decls:10,vars:5,consts:[[1,"container",3,"formGroup"],[1,"fx-row","fx-column-gap-sm","fx-align-space-between-center"],["mat-icon-button","",1,"close-button",3,"click"],[4,"ngIf"],["formControlName","chapterSelectFormControl",4,"ngIf"],["class","chapter-contents",4,"ngIf"],["formControlName","chapterSelectFormControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"chapter-contents"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(e,o){e&1&&(s(0,"div",0)(1,"div",1)(2,"h1"),l(3),p(),s(4,"button",2),v("click",function(){return o.close()}),s(5,"mat-icon"),l(6," close "),p()()(),h(7,nt,2,0,"div",3)(8,st,2,1,"mat-select",4)(9,mt,2,1,"div",5),p()),e&2&&(r("formGroup",o.chapterSelectFormGroup),a(3),M(o.title),a(4),r("ngIf",!(o.chapter
1List!=null&&o.chapterList.length)),a(),r("ngIf",o.chapterList==null?null:o.chapterList.length),a(),r("ngIf",o.paragraphs==null?null:o.paragraphs.length))},dependencies:[F,I,O,Q,w,N,j,k,B,K],styles:[".container[_ngcontent-%COMP%]{padding:1.5rem;max-width:60rem;margin:auto;max-height:calc(100dvh - 5rem);height:calc(100dvh - 5rem);overflow:hidden}h1[_ngcontent-%COMP%]{margin:0}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{padding:0;margin:0 0 .5rem}h3[_ngcontent-%COMP%]{font-weight:500}.full-width[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{transition:box-shadow .2s,transform .2s}mat-card-content[_ngcontent-%COMP%]{margin:1rem 0 1.5rem}.chapter-contents[_ngcontent-%COMP%]{overflow:auto;height:calc(100% - 5rem)}"]}),n);et=g([J()],et);var kt=(()=>{let t=class t{};t.\u0275fac=function(m){return new(m||t)},t.\u0275mod=S({type:t}),t.\u0275inj=u({imports:[D,q,x,$,W,H,P,R,Y,L,tt,Z,G]});let i=t;return i})();export{et as a,kt as b};

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.