{ "version": 3, "sources": ["src/app/_models/common/i-has-cast.ts"], "sourcesContent": ["import {Person} from \"../metadata/person\";\r\n\r\nexport interface IHasCast {\r\n writerLocked: boolean;\r\n coverArtistLocked: boolean;\r\n publisherLocked: boolean;\r\n characterLocked: boolean;\r\n pencillerLocked: boolean;\r\n inkerLocked: boolean;\r\n imprintLocked: boolean;\r\n coloristLocked: boolean;\r\n lettererLocked: boolean;\r\n editorLocked: boolean;\r\n translatorLocked: boolean;\r\n teamLocked: boolean;\r\n locationLocked: boolean;\r\n languageLocked: boolean;\r\n\r\n writers: Array;\r\n coverArtists: Array;\r\n publishers: Array;\r\n characters: Array;\r\n pencillers: Array;\r\n inkers: Array;\r\n imprints: Array;\r\n colorists: Array;\r\n letterers: Array;\r\n editors: Array;\r\n translators: Array;\r\n teams: Array;\r\n locations: Array;\r\n}\r\n\r\nexport function hasAnyCast(entity: IHasCast | null | undefined): boolean {\r\n if (entity === null || entity === undefined) return false;\r\n\r\n return entity.writers.length > 0 ||\r\n entity.coverArtists.length > 0 ||\r\n entity.publishers.length > 0 ||\r\n entity.characters.length > 0 ||\r\n entity.pencillers.length > 0 ||\r\n entity.inkers.length > 0 ||\r\n entity.imprints.length > 0 ||\r\n entity.colorists.length > 0 ||\r\n entity.letterers.length > 0 ||\r\n entity.editors.length > 0 ||\r\n entity.translators.length > 0 ||\r\n entity.teams.length > 0 ||\r\n entity.locations.length > 0;\r\n}\r\n"], "mappings": "AAiCM,SAAUA,EAAWC,EAAmC,CAC5D,OAAIA,GAAW,KAAqC,GAE7CA,EAAOC,QAAQC,OAAS,GAC7BF,EAAOG,aAAaD,OAAS,GAC7BF,EAAOI,WAAWF,OAAS,GAC3BF,EAAOK,WAAWH,OAAS,GAC3BF,EAAOM,WAAWJ,OAAS,GAC3BF,EAAOO,OAAOL,OAAS,GACvBF,EAAOQ,SAASN,OAAS,GACzBF,EAAOS,UAAUP,OAAS,GAC1BF,EAAOU,UAAUR,OAAS,GAC1BF,EAAOW,QAAQT,OAAS,GACxBF,EAAOY,YAAYV,OAAS,GAC5BF,EAAOa,MAAMX,OAAS,GACtBF,EAAOc,UAAUZ,OAAS,CAC9B", "names": ["hasAnyCast", "entity", "writers", "length", "coverArtists", "publishers", "characters", "pencillers", "inkers", "imprints", "colorists", "letterers", "editors", "translators", "teams", "locations"] }