{
  "version": 3,
  "sources": ["../src/image-file.ts"],
  "sourcesContent": ["/**\n * ImageFile class.\n *\n * Small wrapper around the `File` class to hold\n * information about current dimensions and original\n * dimensions, in case the image was resized.\n */\nexport class ImageFile extends File {\n\twidth = 0;\n\theight = 0;\n\toriginalWidth? = 0;\n\toriginalHeight? = 0;\n\n\tget wasResized() {\n\t\treturn (\n\t\t\t( this.originalWidth || 0 ) > this.width ||\n\t\t\t( this.originalHeight || 0 ) > this.height\n\t\t);\n\t}\n\n\tconstructor(\n\t\tfile: File,\n\t\twidth: number,\n\t\theight: number,\n\t\toriginalWidth?: number,\n\t\toriginalHeight?: number\n\t) {\n\t\tsuper( [ file ], file.name, {\n\t\t\ttype: file.type,\n\t\t\tlastModified: file.lastModified,\n\t\t} );\n\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.originalWidth = originalWidth;\n\t\tthis.originalHeight = originalHeight;\n\t}\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,YAAN,cAAwB,KAAK;AAAA,EACnC,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,gBAAiB;AAAA,EACjB,iBAAkB;AAAA,EAElB,IAAI,aAAa;AAChB,YACG,KAAK,iBAAiB,KAAM,KAAK,UACjC,KAAK,kBAAkB,KAAM,KAAK;AAAA,EAEtC;AAAA,EAEA,YACC,MACA,OACA,QACA,eACA,gBACC;AACD,UAAO,CAAE,IAAK,GAAG,KAAK,MAAM;AAAA,MAC3B,MAAM,KAAK;AAAA,MACX,cAAc,KAAK;AAAA,IACpB,CAAE;AAEF,SAAK,QAAQ;AACb,SAAK,SAAS;AACd,SAAK,gBAAgB;AACrB,SAAK,iBAAiB;AAAA,EACvB;AACD;",
  "names": []
}
