1"use strict";(self.webpackChunkquick_fictions=self.webpackChunkquick_fictions||[]).push([[592],{9154:(C,p,r)=>{r.d(p,{S:()=>t,R:()=>d});class t{constructor(l,i,E){this.id=l,this.biography=i,this.name=E}}function d(a){return a.id}},3025:(C,p,r)=>{r.d(p,{Y:()=>f});var t=r(6037),d=r(5929),a=r(9154),l=r(7716),i=r(1841),E=r(1082);let f=(()=>{class n{constructor(e,o){this.http=e,this.applicationConfigService=o,this.resourceUrl=this.applicationConfigService.getEndpointFor("api/authors")}create(e){return this.http.post(this.resourceUrl,e,{observe:"response"})}update(e){return this.http.put(`${this.resourceUrl}/${(0,a.R)(e)}`,e,{observe:"response"})}partialUpdate(e){return this.http.patch(`${this.resourceUrl}/${(0,a.R)(e)}`,e,{observe:"response"})}find(e){return this.http.get(`${this.resourceUrl}/${e}`,{observe:"response"})}query(e){const o=(0,d.b)(e);return this.http.get(this.resourceUrl,{params:o,observe:"response"})}delete(e){return this.http.delete(`${this.resourceUrl}/${e}`,{observe:"response"})}addAuthorToCollectionIfMissing(e,...o){const s=o.filter(t.E);if(s.length>0){const c=e.map(g=>(0,a.R)(g));return[...s.filter(g=>{const u=(0,a.R)(g);return null!=u&&!c.includes(u)&&(c.push(u),!0)}),...e]}return e}}return n.\u0275fac=function(e){return new(e||n)(l.LFG(i.eN),l.LFG(E.y))},n.\u0275prov=l.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},6622:(C,p,r)=>{r.d(p,{f:()=>f});var t=r(6037),d=r(5929),a=r(6949),l=r(7716),i=r(1841),E=r(1082);let f=(()=>{class n{constructor(e,o){this.http=e,this.applicationConfigService=o,this.resourceUrl=this.applicationConfigService.getEndpointFor("api/themes")}create(e){return this.http.post(this.resourceUrl,e,{observe:"response"})}update(e){return this.http.put(`${this.resourceUrl}/${(0,a.S)(e)}`,e,{observe:"response"})}
1partialUpdate(e){return this.http.patch(`${this.resourceUrl}/${(0,a.S)(e)}`,e,{observe:"response"})}find(e){return this.http.get(`${this.resourceUrl}/${e}`,{observe:"response"})}query(e){const o=(0,d.b)(e);return this.http.get(this.resourceUrl,{params:o,observe:"response"})}delete(e){return this.http.delete(`${this.resourceUrl}/${e}`,{observe:"response"})}addThemeToCollectionIfMissing(e,...o){const s=o.filter(t.E);if(s.length>0){const c=e.map(g=>(0,a.S)(g));return[...s.filter(g=>{const u=(0,a.S)(g);return null!=u&&!c.includes(u)&&(c.push(u),!0)}),...e]}return e}}return n.\u0275fac=function(e){return new(e||n)(l.LFG(i.eN),l.LFG(E.y))},n.\u0275prov=l.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},6949:(C,p,r)=>{r.d(p,{Q:()=>t,S:()=>d});class t{constructor(l,i){this.id=l,this.name=i}}function d(a){return a.id}},486:(C,p,r)=>{r.d(p,{A:()=>h});var t=r(7716),d=r(4728),a=r(8821),l=r(5469),i=r(8583),E=r(4996);function f(e,o){if(1&e){const s=t.EpF();t.TgZ(0,"ngb-alert",4),t.NdJ("closed",function(){t.CHM(s);const m=t.oxw().$implicit;return t.oxw().close(m)}),t._uU(1,"\n "),t._UZ(2,"pre",5),t._uU(3,"\n "),t.qZA()}if(2&e){const s=t.oxw().$implicit;t.Q6J("type",s.type),t.xp6(2),t.Q6J("innerHTML",s.message,t.oJD)}}function n(e,o){if(1&e&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.YNc(2,f,4,2,"ngb-alert",3),t._uU(3,"\n "),t.qZA()),2&e){const s=o.$implicit,c=t.oxw();t.Q6J("ngClass",c.setClasses(s)),t.xp6(2),t.Q6J("ngIf",s.message)}}let h=(()=>{class e{constructor(s,c,m){this.alertService=s,this.eventManager=c,this.alerts=[],this.errorListener=c.subscribe("quickFictionsApp.error",g=>{const u=g.content;this.addErrorAlert(u.message,u.key,u.params)}),this.httpErrorListener=c.subscribe("quickFictionsApp.httpError",g=>{var u,M;const _=g.content;switch(_.status){case 0:this.addErrorAlert("Server not reachable","error.server.not.reachable");break;case 400:{const T=_.headers.keys();let A=null,O=null;for(const v of T)v.toLowerCase().endsWith("app-error")?A=_.headers.get(v):v.toLowerCase().endsWith("app-params")&&(O=_.headers.get(v));if(A){const v=O?{entityName:m.instant(`global.menu.entities.${O}`)}:void 0;this.addErrorAlert(A,A,v)}else if(""!==_.error&&_.error.fieldErrors){const v=_.error.fieldErrors;for(const D of v){["Min","Max","DecimalMin","DecimalMax"].includes(D.message)&&(D.message="Size");const P=D.field.replace(/\[\d*\]/g,"[]"),U=m.instant(`quickFictionsApp.${D.objectName}.${P}`);this.addErrorAlert(`Error on field "${U}"`,`error.${D.message}`,{fieldName:U})}}else""!==_.error&&_.error.message?this.addErrorAlert(null!==(u=_.error.detail)&&void 0!==u?u:_.error.message,_.error.message,_.error.params):this.addErrorAlert(_.error,_.error);break}case 404:this.addErrorAlert("Not found","error.url.not.found");break;default:""!==_.error&&_.error.message?this.addErrorAlert(null!==(M=_.error.detail)&&void 0!==M?M:_.error.message,_.error.message,_.error.params):this.addErrorAlert(_.error,_.error)}})}setClasses(s){const c={"jhi-toast":Boolean(s.toast)};return s.position?Object.assign(Object.assign({},c),{[s.position]:!0}):c}ngOnDestroy(){this.eventManager.destroy(this.errorListener),this.eventManager.destroy(this.httpErrorListener)}close(s){var c;null===(c=s.close)||void 0===c||c.call(s,this.alerts)}addErrorAlert(s,c,m){this.alertService.addAlert({type:"danger",message:s,translationKey:c,translationParams:m},this.alerts)}}return e.\u0275fac=function(s){return new(s||e)(t.Y36(d.c),t.Y36(a.Q),t.Y36(l.sK))},e.\u0275cmp=t.Xpm({type:e,selectors:[["jhi-alert-error"]],decls:5,vars:1,consts:[["role","alert",1,"alerts"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"type","closed",4,"ngIf"],[3,"type","closed"],[3,"innerHTML"]],template:function(s,c){1&s&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,n,4,2,"div",1),t._uU(3,"\n"),t.qZA(),t._uU(4,"\n")),2&s&&(t.xp6(2),t.Q6J("ngForOf",c.alerts))},directives:[i.sg,i.mk,i.O5,E.xm],encapsulation:2}),e})()},9003:(C,p,r)=>{r.d(p,{w:()=>f});var t=r(7716),d=r(4728),a=r(8583),l=r(4996);function i(n,h){if(1&n){const e=t.EpF();t.TgZ(0,"ngb-alert",4),t.NdJ("closed",function(){t.CHM(e);const s=t.oxw().$implicit;return t.oxw().close(s)}),t._uU(1,"\n "),t._UZ(2,"pre",5),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("type",e.type),t.xp6(2),t.Q6J("innerHTML",e.message,t.oJD)}}function E(n,h){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.YNc(2,i,4,2,"ngb-alert",3),t._uU(3,"\n "),t.qZA()),2&n){const e=h.$implicit,o=t.oxw();t.Q6J("ngClass",o.setClasses(e)),t.xp6(2),t.Q6J("ngIf",e.message)}}let f=(()=>{class n{constructor(e){this.alertService=e,this.alerts=[]}ngOnInit(){this.alerts=this.alertService.get()}setClasses(e){const o={"jhi-toast":Boolean(e.toast)};return e.position?Object.assign(Object.assign({},o),{[e.position]:!0}):o}ngOnDestroy(){this.alertService.clear()}close(e){var o;null===(o=e.close)||void 0===o||o.call(e,this.alerts)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.c))},n.\u0275cmp=t.Xpm({type:n,selectors:[["jhi-alert"]],decls:5,vars:1,consts:[["role","alert",1,"alerts"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"type","closed",4,"ngIf"],[3,"type","closed"],[3,"innerHTML"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,E,4,2,"div",1),t._uU(3,"\n"),t.qZA(),t._uU(4,"\n")),2&e&&(t.xp6(2),t.Q6J("ngForOf",o.alerts))}
1,directives:[a.sg,a.mk,a.O5,l.xm],encapsulation:2}),n})()},1408:(C,p,r)=>{r.d(p,{T:()=>f});var t=r(9765),d=r(6782),a=r(9577),l=r(9976),i=r(7716),E=r(1427);let f=(()=>{class n{constructor(e){this.sort=e,this.sortIcon=l.CmM,this.sortAscIcon=l.foy,this.sortDescIcon=l.u9C,this.destroy$=new t.xQ,e.predicateChange.pipe((0,d.R)(this.destroy$)).subscribe(()=>this.updateIconDefinition()),e.ascendingChange.pipe((0,d.R)(this.destroy$)).subscribe(()=>this.updateIconDefinition())}onClick(){this.iconComponent&&this.sort.sort(this.jhiSortBy)}ngAfterContentInit(){this.updateIconDefinition()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIconDefinition(){if(this.iconComponent){let e=this.sortIcon;this.sort.predicate===this.jhiSortBy&&(e=this.sort.ascending?this.sortAscIcon:this.sortDescIcon),this.iconComponent.icon=e.iconName,this.iconComponent.render()}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E.b,1))},n.\u0275dir=i.lG2({type:n,selectors:[["","jhiSortBy",""]],contentQueries:function(e,o,s){if(1&e&&i.Suo(s,a.BN,5),2&e){let c;i.iGM(c=i.CRH())&&(o.iconComponent=c.first)}},hostBindings:function(e,o){1&e&&i.NdJ("click",function(){return o.onClick()})},inputs:{jhiSortBy:"jhiSortBy"}}),n})()},1427:(C,p,r)=>{r.d(p,{b:()=>d});var t=r(7716);let d=(()=>{class a{constructor(){this.predicateChange=new t.vpe,this.ascendingChange=new t.vpe,this.sortChange=new t.vpe}get predicate(){return this._predicate}set predicate(i){this._predicate=i,this.predicateChange.emit(i)}get ascending(){return this._ascending}set ascending(i){this._ascending=i,this.ascendingChange.emit(i)}sort(i){this.ascending=i!==this.predicate||!this.ascending,this.predicate=i,this.predicateChange.emit(i),this.ascendingChange.emit(this.ascending),this.sortChange.emit({predicate:this.predicate,ascending:this.ascending})}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275dir=t.lG2({type:a,selectors:[["","jhiSort",""]],inputs:{predicate:"predicate",ascending:"ascending"},outputs:{predicateChange:"predicateChange",ascendingChange:"ascendingChange",sortChange:"sortChange"}}),a})()}}]);
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.