1import{b as L}from"./chunk-HOOBCLXZ.js";import{a as M}from"./chunk-B66VBGUG.js";import{b as $}from"./chunk-R5ONP6TG.js";import"./chunk-MQFDEJ7F.js";import"./chunk-MJTLNXNO.js";import"./chunk-5LO67NV2.js";import"./chunk-AYOUPTKT.js";import"./chunk-MJ77JPEE.js";import"./chunk-J3ZD4WNB.js";import"./chunk-LXUUL66B.js";import"./chunk-A5KUI6RC.js";import{g as b,h as Ee}from"./chunk-X7QEYDQU.js";import"./chunk-LOIRLAEF.js";import{$ as P,$a as K,$g as _e,Bj as W,Cg as pe,Di as m,Ef as N,Ff as se,Ga as U,Gg as ce,If as ae,Ja as Y,La as p,Nb as Z,O as k,Oc as ie,Oe as w,Pe as u,Pg as le,R as z,Se as O,Tb as c,Ub as l,Ui as Ae,V as E,Va as Q,W as G,Wa as q,Xa as n,Ya as a,Yc as oe,Za as T,_a as J,_g as me,aa as v,b as V,ba as j,bb as y,bf as ne,c as F,ca as B,ed as re,gb as g,h as x,ha as X,hj as Re,i as H,ji as fe,lb as D,lc as ee,li as he,nb as S,oh as ge,oi as Se,ph as ue,rc as I,ui as Ce,v as h,va as d,wa as _,y as R,yc as te,yg as de}from"./chunk-245V6VJQ.js";import"./chunk-QIWBW2OL.js";import"./chunk-BA6UUNIX.js";var Ie=(r,e)=>e==null?null:e.id;function we(r,e){if(r&1){let i=y();n(0,"app-item-wordset",8),D("actionClick",function(o){let s=P(i).$implicit,A=S();return v(A.actionHandler(o,s));}),a();}if(r&2){let i=e.$implicit,t=S();p("wordSet",i)("actionsList",t.wordsetActions)("isAvailableWordSet",!1)("disabled",t.itemDisabledSet.has(i.id))("itemRouterLink",t.wordsetRouterLink);}}function Ne(r,e){r&1&&(n(0,"div",7)(1,"h4",9),g(2,1),a(),n(3,"p"),g(4,2),a()());}var ve=(()=>{let e=class e{constructor(t){this.store=t,this.itemDisabledSet=new Set(),this.destroyRef=z(X),this.getWordsetsProgress$=this.store.select(m.getWordsetsProgress),this.archivedWordsets$=this.store.select(m.archivedWordsets),this.selectedLanguageForLearning$=this.store.select(de.selectedLanguageForLearning),this.updateWordsetProgress$=this.store.select(m.updateWordsetProgress),this.destroy$=new F(),this.progressStatuses=w,this.wordsetActions=[O.unarchive],this.wordsetRouterLink=`/${u.restricted}/${u.archived}/${u.wordset}`,this.stateActions={[O.unarchive]:o=>this.store.dispatch(new Se(o.id,{archived:!1}))};}ngOnInit(){this.selectedLanguageForLearning$.pipe(W(this.destroyRef),h(t=>!!t)).subscribe(()=>this.store.dispatch(new he()));}actionHandler(t,o){t.type&&(this.itemDisabledSet.add(o.id),this.stateActions[t.type]?.(o),this.updateWordsetProgress$.pipe(W(this.destroyRef),h(s=>s===w.succeed||s===w.interrupted),R(1)).subscribe(()=>{this.itemDisabledSet.delete(o.id);}));}};e.ɵfac=function(o){return new(o||e)(_(N));},e.ɵcmp=E({type:e,selectors:[["app-archived"]],decls:9,vars:6,consts:()=>{let t;t="Archived Wordsets";let o;o="You have no archived wordsets yet.";let s;return s="Archived wordsets will appear here once you archive them.",[t,o,s,["id","mainContentForSelection",1,"container","mb-8"],[3,"while"],[1,"my-4"],[3,"wordSet","actionsList","isAvailableWordSet","disabled","itemRouterLink"],[1,"text-center","text-muted","w-100","mt-6"],[3,"actionClick","wordSet","actionsList","isAvailableWordSet","disabled","itemRouterLink"],[1,"h3","mb-0"]];},template:function(o,s){o&1&&(n(0,"div",3)(1,"app-rt-loading",4),c(2,"async"),n(3,"h1",5),g(4,0),a(),Q(5,we,1,5,"app-item-wordset",6,Ie,!1,Ne,5,0,"div",7),c(8,"async"),a()()),o&2&&(d(),p("while",l(2,2,s.getWordsetsProgress$)===s.progressStatuses.inProgress),d(4),q(l(8,4,s.archivedWordsets$)));},dependencies:[b,L,I],changeDetection:0});let r=e;return r;})();var be=(r,e,i)=>({wordsCount:r,currentPage:e,pageSize:i});function $e(r,e){if(r&1){let i=y();J(0),n(1,"app-pagination",14),D("changePage",function(o){P(i);let s=S();
1return v(s.onChangePage(o));}),a(),K();}if(r&2){let i=e.ngIf;d(),p("collectionSize",i.wordsCount)("pageSize",i.pageSize)("currentPage",i.currentPage)("isPageSizeVisible",!1)("changeRoute",!1);}}var f=class f extends Re{constructor(e,i,t,o){super(e,i),this.store=e,this.route=i,this.titleService=t,this.settings=o;}ngOnInit(){super.ngOnInit(),this.subscription.add(this.route.params.subscribe(e=>{if(!e.id&&!e.folderId)return;let i=+e.id||+e.folderId;this.store.dispatch([new Ce(i)]);})),this.subscription.add(this.selectedWordset$.pipe(h(e=>!!e),R(1)).subscribe(e=>{let i=`${e.name} -`+" wordlist ";this.titleService.setTitle(this.settings.formatTitle(i));}));}ngOnDestroy(){super.ngOnDestroy(),this.store.dispatch(new fe());}};f.ɵfac=function(i){return new(i||f)(_(N),_(oe),_(ie),_(ne));},f.ɵcmp=E({type:f,selectors:[["app-archived-wordlist"]],features:[U],decls:19,vars:20,consts:()=>{let e;return e="Wordlists",[e,["id","mainContentForSelection",1,"container","mb-8"],[1,"my-4"],[1,"input-group","search-block","w-100","w-lg-25","min-w-md-300px","min-w-xxl-300px","pb-0","pb-md-5","pb-lg-0","pb-xxl-5","mb-1"],["type","text","placeholder","Search",1,"form-control",3,"formControl"],[1,"input-group-text","p-0"],["type","button",1,"btn","btn-link","text-secondary","px-3","disabled"],["viewBox","0 0 24 24","height","18","width","18"],[0,"xlink","href","#search"],[3,"while"],[1,"translations-list","my-4"],[3,"setTranslationList"],[1,"card-footer"],[4,"ngIf"],[3,"changePage","collectionSize","pageSize","currentPage","isPageSizeVisible","changeRoute"]];},template:function(i,t){i&1&&(n(0,"main",1)(1,"h1",2),g(2,0),a(),n(3,"div",3),T(4,"input",4),n(5,"span",5)(6,"button",6),j(),n(7,"svg",7),T(8,"use",8),a()()()(),B(),n(9,"app-rt-loading",9),c(10,"async"),n(11,"div",10),T(12,"app-table-translation-list",11),c(13,"async"),a(),n(14,"div",12),Y(15,$e,2,5,"ng-container",13),c(16,"async"),c(17,"async"),c(18,"async"),a()()()),i&2&&(d(4),p("formControl",t.searchInputControl),d(5),p("while",l(10,6,t.getWordsListProgress$)===t.progressStatuses.inProgress),d(2),p("@fadeIn",void 0)("@fadeOut",void 0),d(),p("setTranslationList",l(13,8,t.wordsList$)),d(3),p("ngIf",Z(16,be,l(16,10,t.wordsCount$),l(17,12,t.currentPage$),l(18,14,t.pageSize$))));},dependencies:[ee,b,M,pe,ce,le,$,I],data:{animation:[ge,ue]},changeDetection:0});var C=f;x([ae(m.selectedWordset),H("design:type",V)],C.prototype,"selectedWordset$",void 0);var Le=[{path:"",component:ve},{path:`${u.wordset}/:id`,component:C}],gt=(()=>{let e=class e{};e.ɵfac=function(o){return new(o||e)();},e.ɵmod=G({type:e}),e.ɵinj=k({imports:[te,se.forFeature([m,Ae]),re.forChild(Le),Ee,L,M,me,_e,$]});let r=e;return r;})();export{gt as ArchivedModule};/**i18n:72a8156f2b0a27c44e91949a9d6568ed3c0cad9f6d6b782a01a79f3f1c778fa5*/
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.