UNPKG

3.56 kBSource Map (JSON)View Raw
1{"version":3,"file":"metadata-encrypted.js","sourceRoot":"","sources":["../../../../src/models/metadata-encrypted.ts"],"names":[],"mappings":";;;;AAQA,yCAAqD;AAK9C,IAAM,SAAS,GAAf,MAAM,SAAS;IAAf;QAsCI,iCAA4B,GAAG,CAAC,CAAC,CAAC;QAClC,uBAAkB,GAAG,CAAC,CAAC,CAAC;IAEnC,CAAC;IAbG,IAAI,cAAc;QACd,OAAO,OAAO,IAAI,CAAC,eAAe,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;IACrG,CAAC;IACD,IAAI,cAAc,CAAC,MAA0B;QACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;YACjC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC;SACjC;IACL,CAAC;CAKJ,CAAA;AArCG;IAAC,IAAA,wBAAY,EAAC,QAAQ,CAAC;;yCACA;AAIvB;IAAC,IAAA,wBAAY,EAAC,SAAS,CAAC;;0CACA;AAIxB;IAAC,IAAA,wBAAY,EAAC,WAAW,CAAC;;4CACA;AAI1B;IAAC,IAAA,wBAAY,EAAC,aAAa,CAAC;;8CACA;AAI5B;IAAC,IAAA,wBAAY,EAAC,gBAAgB,CAAC;;kDACC;AAChC;IAAC,IAAA,wBAAY,EAAC,iBAAiB,CAAC;;kDACY;AA3BnC,SAAS;IADrB,IAAA,sBAAU,GAAE;GACA,SAAS,CAyCrB;AAzCY,8BAAS","sourcesContent":["// ==LICENSE-BEGIN==\n// Copyright 2017 European Digital Reading Lab. All rights reserved.\n// Licensed to the Readium Foundation under one or more contributor license agreements.\n// Use of this source code is governed by a BSD-style license\n// that can be found in the LICENSE file exposed on Github (readium) in the project repository.\n// ==LICENSE-END==\n\n// https://github.com/edcarroll/ta-json\nimport { JsonObject, JsonProperty } from \"ta-json-x\";\n\n// tslint:disable-next-line:max-line-length\n// https://github.com/readium/webpub-manifest/blob/917c83e798e3eda42b3e9d0dc92f0fef31b16211/schema/extensions/epub/properties.schema.json#L56\n@JsonObject()\nexport class Encrypted {\n\n // tslint:disable-next-line:max-line-length\n // https://github.com/readium/webpub-manifest/blob/917c83e798e3eda42b3e9d0dc92f0fef31b16211/schema/extensions/epub/properties.schema.json#L78\n @JsonProperty(\"scheme\")\n public Scheme!: string;\n\n // tslint:disable-next-line:max-line-length\n // https://github.com/readium/webpub-manifest/blob/917c83e798e3eda42b3e9d0dc92f0fef31b16211/schema/extensions/epub/properties.schema.json#L73\n @JsonProperty(\"profile\")\n public Profile!: string;\n\n // tslint:disable-next-line:max-line-length\n // https://github.com/readium/webpub-manifest/blob/917c83e798e3eda42b3e9d0dc92f0fef31b16211/schema/extensions/epub/properties.schema.json#L60\n @JsonProperty(\"algorithm\")\n public Algorithm!: string;\n\n // tslint:disable-next-line:max-line-length\n // https://github.com/readium/webpub-manifest/blob/917c83e798e3eda42b3e9d0dc92f0fef31b16211/schema/extensions/epub/properties.schema.json#L65\n @JsonProperty(\"compression\")\n public Compression!: string;\n\n // tslint:disable-next-line:max-line-length\n // https://github.com/readium/webpub-manifest/blob/7f3ccaa1604fa956fb89a16da4fe8ea730c11f9a/schema/extensions/epub/properties.schema.json#L49\n @JsonProperty(\"originalLength\")\n public OriginalLength2!: number;\n @JsonProperty(\"original-length\")\n public OriginalLength1!: number | undefined;\n get OriginalLength(): number | undefined {\n return typeof this.OriginalLength2 !== \"undefined\" ? this.OriginalLength2 : this.OriginalLength1;\n }\n set OriginalLength(length: number | undefined) {\n if (typeof length !== \"undefined\") {\n this.OriginalLength1 = undefined;\n this.OriginalLength2 = length;\n }\n }\n\n public DecryptedLengthBeforeInflate = -1;\n public CypherBlockPadding = -1;\n public CypherBlockIV: string | undefined; // Buffer | undefined;\n}\n"]}
\No newline at end of file