{"version":3,"file":"ngx-dropzone.mjs","sources":["../../../projects/ngx-dropzone/src/lib/ngx-dropzone-label.directive.ts","../../../projects/ngx-dropzone/src/lib/helpers.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone-preview/ngx-dropzone-remove-badge/ngx-dropzone-remove-badge.component.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone-preview/ngx-dropzone-preview.component.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone.service.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone/ngx-dropzone.component.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone/ngx-dropzone.component.html","../../../projects/ngx-dropzone/src/lib/ngx-dropzone-preview/ngx-dropzone-image-preview/ngx-dropzone-image-preview.component.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone-preview/ngx-dropzone-video-preview/ngx-dropzone-video-preview.component.ts","../../../projects/ngx-dropzone/src/lib/ngx-dropzone.module.ts","../../../projects/ngx-dropzone/src/public_api.ts","../../../projects/ngx-dropzone/src/ngx-dropzone.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n\tselector: 'ngx-dropzone-label'\n})\nexport class NgxDropzoneLabelDirective { }\n","\n/**\n * Coerces a data-bound value (typically a string) to a boolean.\n * Taken from https://github.com/angular/components/blob/master/src/cdk/coercion/boolean-property.ts\n */\nexport function coerceBooleanProperty(value: any): boolean\n{\n\treturn value != null && `${value}` !== 'false';\n}\n\n/**\n * Whether the provided value is considered a number.\n * Taken from https://github.com/angular/components/blob/master/src/cdk/coercion/number-property.ts\n */\nexport function coerceNumberProperty(value: any): number\n{\n\t// parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n\t// and other non-number values as NaN, where Number just uses 0) but it considers the string\n\t// '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n\treturn (!isNaN(parseFloat(value as any)) && !isNaN(Number(value))) ? Number(value) : null;\n}\n","import { Component } from '@angular/core';\n\n@Component({\n  selector: 'ngx-dropzone-remove-badge',\n  template: `\n    <svg>\n      <line x1=\"0\" y1=\"0\" x2=\"10\" y2=\"10\" />\n      <line x1=\"0\" y1=\"10\" x2=\"10\" y2=\"0\" />\n    </svg>\n  `,\n  styleUrls: ['./ngx-dropzone-remove-badge.component.scss']\n})\nexport class NgxDropzoneRemoveBadgeComponent { }\n","import { Component, Input, Output, EventEmitter, HostBinding, HostListener } from '@angular/core';\nimport { coerceBooleanProperty } from '../helpers';\nimport { SafeStyle, DomSanitizer } from '@angular/platform-browser';\n\nenum KEY_CODE {\n\tBACKSPACE = 8,\n\tDELETE = 46\n}\n\n@Component({\n\tselector: 'ngx-dropzone-preview',\n\ttemplate: `\n\t\t<ng-content select=\"ngx-dropzone-label\"></ng-content>\n\t\t<ngx-dropzone-remove-badge *ngIf=\"removable\" (click)=\"_remove($event)\">\n\t\t</ngx-dropzone-remove-badge>\n\t`,\n\tstyleUrls: ['./ngx-dropzone-preview.component.scss']\n})\nexport class NgxDropzonePreviewComponent {\n\n\tconstructor(\n\t\tprotected sanitizer: DomSanitizer\n\t) { }\n\n\tprotected _file: File;\n\n\t/** The file to preview. */\n\t@Input()\n\tset file(value: File) { this._file = value; }\n\tget file(): File { return this._file; }\n\n\t/** Allow the user to remove files. */\n\t@Input()\n\tget removable(): boolean {\n\t\treturn this._removable;\n\t}\n\tset removable(value: boolean) {\n\t\tthis._removable = coerceBooleanProperty(value);\n\t}\n\tprotected _removable = false;\n\n\t/** Emitted when the element should be removed. */\n\t@Output() readonly removed = new EventEmitter<File>();\n\n\t@HostListener('keyup', ['$event'])\n\tkeyEvent(event: KeyboardEvent) {\n\t\tswitch (event.keyCode) {\n\t\t\tcase KEY_CODE.BACKSPACE:\n\t\t\tcase KEY_CODE.DELETE:\n\t\t\t\tthis.remove();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/** We use the HostBinding to pass these common styles to child components. */\n\t@HostBinding('style')\n\tget hostStyle(): SafeStyle {\n\t\tconst styles = `\n\t\t\tdisplay: flex;\n\t\t\theight: 140px;\n\t\t\tmin-height: 140px;\n\t\t\tmin-width: 180px;\n\t\t\tmax-width: 180px;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tpadding: 0 20px;\n\t\t\tmargin: 10px;\n\t\t\tborder-radius: 5px;\n\t\t\tposition: relative;\n\t\t`;\n\n\t\treturn this.sanitizer.bypassSecurityTrustStyle(styles);\n\t}\n\n\t/** Make the preview item focusable using the tab key. */\n\t@HostBinding('tabindex') tabIndex = 0;\n\n\t/** Remove method to be used from the template. */\n\t_remove(event) {\n\t\tevent.stopPropagation();\n\t\tthis.remove();\n\t}\n\n\t/** Remove the preview item (use from component code). */\n\tremove() {\n\t\tif (this._removable) {\n\t\t\tthis.removed.next(this.file);\n\t\t}\n\t}\n\n\tprotected async readFile(): Promise<string | ArrayBuffer> {\n\t\treturn new Promise<string | ArrayBuffer>((resolve, reject) => {\n\t\t\tconst reader = new FileReader();\n\n\t\t\treader.onload = e => {\n\t\t\t\tresolve((e.target as FileReader).result);\n\t\t\t};\n\n\t\t\treader.onerror = e => {\n\t\t\t\tconsole.error(`FileReader failed on file ${this.file.name}.`);\n\t\t\t\treject(e);\n\t\t\t};\n\n\t\t\tif (!this.file) {\n\t\t\t\treturn reject('No file to read. Please provide a file using the [file] Input property.');\n\t\t\t}\n\n\t\t\treader.readAsDataURL(this.file);\n\t\t});\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nexport interface FileSelectResult {\n\n\t/** The added files, emitted in the filesAdded event. */\n\taddedFiles: File[];\n\n\t/** The rejected files, emitted in the filesRejected event. */\n\trejectedFiles: RejectedFile[];\n}\n\nexport interface RejectedFile extends File {\n\n\t/** The reason the file was rejected. */\n\treason?: RejectReason;\n}\n\nexport type RejectReason = 'type' | 'size' | 'no_multiple';\n\n/**\n * This service contains the filtering logic to be applied to\n * any dropped or selected file. If a file matches all criteria\n * like maximum size or accept type, it will be emitted in the\n * addedFiles array, otherwise in the rejectedFiles array.\n */\n@Injectable()\nexport class NgxDropzoneService {\n\n\tparseFileList(files: FileList, accept: string, maxFileSize: number, multiple: boolean): FileSelectResult {\n\n\t\tconst addedFiles: File[] = [];\n\t\tconst rejectedFiles: RejectedFile[] = [];\n\n\t\tfor (let i = 0; i < files.length; i++) {\n\t\t\tconst file = files.item(i);\n\n\t\t\tif (!this.isAccepted(file, accept)) {\n\t\t\t\tthis.rejectFile(rejectedFiles, file, 'type');\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (maxFileSize && file.size > maxFileSize) {\n\t\t\t\tthis.rejectFile(rejectedFiles, file, 'size');\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!multiple && addedFiles.length >= 1) {\n\t\t\t\tthis.rejectFile(rejectedFiles, file, 'no_multiple');\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\taddedFiles.push(file);\n\t\t}\n\n\t\tconst result: FileSelectResult = {\n\t\t\taddedFiles,\n\t\t\trejectedFiles\n\t\t};\n\n\t\treturn result;\n\t}\n\n\tprivate isAccepted(file: File, accept: string): boolean {\n\n\t\tif (accept === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst acceptFiletypes = accept.split(',').map(it => it.toLowerCase().trim());\n\t\tconst filetype = file.type.toLowerCase();\n\t\tconst filename = file.name.toLowerCase();\n\n\t\tconst matchedFileType = acceptFiletypes.find(acceptFiletype => {\n\n\t\t\t// check for wildcard mimetype (e.g. image/*)\n\t\t\tif (acceptFiletype.endsWith('/*')) {\n\t\t\t\treturn filetype.split('/')[0] === acceptFiletype.split('/')[0];\n\t\t\t}\n\n\t\t\t// check for file extension (e.g. .csv)\n\t\t\tif (acceptFiletype.startsWith(\".\")) {\n\t\t\t\treturn filename.endsWith(acceptFiletype);\n\t\t\t}\n\n\t\t\t// check for exact mimetype match (e.g. image/jpeg)\n\t\t\treturn acceptFiletype == filetype;\n\t\t});\n\n\t\treturn !!matchedFileType;\n\t}\n\n\tprivate rejectFile(rejectedFiles: RejectedFile[], file: File, reason: RejectReason) {\n\n\t\tconst rejectedFile = file as RejectedFile;\n\t\trejectedFile.reason = reason;\n\n\t\trejectedFiles.push(rejectedFile);\n\t}\n}\n","import { Component, EventEmitter, Output, Input, ViewChild, ContentChildren, QueryList, HostBinding, HostListener, Self, ElementRef } from '@angular/core';\nimport {NgxDropzoneService, RejectedFile} from '../ngx-dropzone.service';\nimport { coerceBooleanProperty, coerceNumberProperty } from '../helpers';\nimport { NgxDropzonePreviewComponent } from '../ngx-dropzone-preview/ngx-dropzone-preview.component';\n\nexport interface NgxDropzoneChangeEvent {\n  source: NgxDropzoneComponent;\n  addedFiles: File[];\n  rejectedFiles: RejectedFile[];\n}\n\n@Component({\n  selector: 'ngx-dropzone, [ngx-dropzone]',\n  templateUrl: './ngx-dropzone.component.html',\n  styleUrls: ['./ngx-dropzone.component.scss'],\n  providers: [NgxDropzoneService]\n})\nexport class NgxDropzoneComponent {\n\n  constructor(\n    @Self() private service: NgxDropzoneService\n  ) {}\n\n  /** A list of the content-projected preview children. */\n  @ContentChildren(NgxDropzonePreviewComponent, { descendants: true })\n  _previewChildren: QueryList<NgxDropzonePreviewComponent>;\n\n  get _hasPreviews(): boolean {\n    return !!this._previewChildren.length;\n  }\n\n  /** A template reference to the native file input element. */\n  @ViewChild('fileInput', { static: true }) _fileInput: ElementRef;\n\n  /** Emitted when any files were added or rejected. */\n  @Output() readonly change = new EventEmitter<NgxDropzoneChangeEvent>();\n\n  /** Set the accepted file types. Defaults to '*'. */\n  @Input() accept = '*';\n\n  /** Disable any user interaction with the component. */\n  @Input()\n  @HostBinding('class.ngx-dz-disabled')\n  get disabled(): boolean {\n    return this._disabled;\n  }\n  set disabled(value: boolean) {\n    this._disabled = coerceBooleanProperty(value);\n\n    if (this._isHovered) {\n      this._isHovered = false;\n    }\n  }\n  private _disabled = false;\n\n  /** Allow the selection of multiple files. */\n  @Input()\n  get multiple(): boolean {\n    return this._multiple;\n  }\n  set multiple(value: boolean) {\n    this._multiple = coerceBooleanProperty(value);\n  }\n  private _multiple = true;\n\n  /** Set the maximum size a single file may have. */\n  @Input()\n  get maxFileSize(): number {\n    return this._maxFileSize;\n  }\n  set maxFileSize(value: number) {\n    this._maxFileSize = coerceNumberProperty(value);\n  }\n  private _maxFileSize: number = undefined;\n\n  /** Allow the dropzone container to expand vertically. */\n  @Input()\n  @HostBinding('class.expandable')\n  get expandable(): boolean {\n    return this._expandable;\n  }\n  set expandable(value: boolean) {\n    this._expandable = coerceBooleanProperty(value);\n  }\n  private _expandable: boolean = false;\n\n  /** Open the file selector on click. */\n  @Input()\n  @HostBinding('class.unclickable')\n  get disableClick(): boolean {\n    return this._disableClick;\n  }\n  set disableClick(value: boolean) {\n    this._disableClick = coerceBooleanProperty(value);\n  }\n  private _disableClick = false;\n\n  /** Allow dropping directories. */\n  @Input()\n  get processDirectoryDrop(): boolean {\n    return this._processDirectoryDrop;\n  }\n  set processDirectoryDrop(value: boolean) {\n    this._processDirectoryDrop = coerceBooleanProperty(value);\n  }\n  private _processDirectoryDrop = false;\n\n  /** Expose the id, aria-label, aria-labelledby and aria-describedby of the native file input for proper accessibility. */\n  @Input() id: string;\n  @Input('aria-label') ariaLabel: string;\n  @Input('aria-labelledby') ariaLabelledby: string;\n  @Input('aria-describedby') ariaDescribedBy: string;\n\n  @HostBinding('class.ngx-dz-hovered')\n  _isHovered = false;\n\n  /** Show the native OS file explorer to select files. */\n  @HostListener('click')\n  _onClick() {\n    if (!this.disableClick) {\n      this.showFileSelector();\n    }\n  }\n\n  @HostListener('dragover', ['$event'])\n  _onDragOver(event) {\n    if (this.disabled) {\n      return;\n    }\n\n    this.preventDefault(event);\n    this._isHovered = true;\n  }\n\n  @HostListener('dragleave')\n  _onDragLeave() {\n    this._isHovered = false;\n  }\n\n  @HostListener('drop', ['$event'])\n  _onDrop(event) {\n    if (this.disabled) {\n      return;\n    }\n\n    this.preventDefault(event);\n    this._isHovered = false;\n\n    // if processDirectoryDrop is not enabled or webkitGetAsEntry is not supported we handle the drop as usual\n    if (!this.processDirectoryDrop || !DataTransferItem.prototype.webkitGetAsEntry) {\n      this.handleFileDrop(event.dataTransfer.files);\n\n    // if processDirectoryDrop is enabled and webkitGetAsEntry is supported we can extract files from a dropped directory\n    } else {\n      const droppedItems: DataTransferItem[] = event.dataTransfer.items;\n\n      if (droppedItems.length > 0) {\n        const droppedFiles: File[] = [];\n        const droppedDirectories = [];\n\n        // seperate dropped files from dropped directories for easier handling\n        for (let i = 0; i < droppedItems.length; i++) {\n          const entry = droppedItems[i].webkitGetAsEntry();\n          if (entry.isFile) {\n            droppedFiles.push(event.dataTransfer.files[i]);\n          } else if (entry.isDirectory) {\n            droppedDirectories.push(entry);\n          }\n        }\n\n        // create a DataTransfer\n        const droppedFilesList = new DataTransfer();\n        droppedFiles.forEach((droppedFile) => {\n          droppedFilesList.items.add(droppedFile);\n        });\n\n        // if no directory is dropped we are done and can call handleFileDrop\n        if (!droppedDirectories.length && droppedFilesList.items.length) {\n          this.handleFileDrop(droppedFilesList.files);\n        }\n\n        // if directories are dropped we extract the files from these directories one-by-one and add it to droppedFilesList\n        if (droppedDirectories.length) {\n          const extractFilesFromDirectoryCalls = [];\n\n          for (const droppedDirectory of droppedDirectories) {\n            extractFilesFromDirectoryCalls.push(this.extractFilesFromDirectory(droppedDirectory));\n          }\n\n          // wait for all directories to be proccessed to add the extracted files afterwards\n          Promise.all(extractFilesFromDirectoryCalls).then((allExtractedFiles: any[]) => {\n            allExtractedFiles.reduce((a, b) => [...a, ...b]).forEach((extractedFile: File) => {\n              droppedFilesList.items.add(extractedFile);\n            });\n\n            this.handleFileDrop(droppedFilesList.files);\n          });\n        }\n      }\n    }\n  }\n\n  private extractFilesFromDirectory(directory) {\n    async function getFileFromFileEntry(fileEntry) {\n      try {\n        return await new Promise((resolve, reject) => fileEntry.file(resolve, reject));\n      } catch (err) {\n        console.log('Error converting a fileEntry to a File: ', err);\n      }\n    }\n\n    return new Promise((resolve, reject) => {\n      const files: File[] = [];\n\n      const dirReader = directory.createReader();\n\n      // we need this to be a recursion because of this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=514087\n      const readEntries = () => {\n        dirReader.readEntries(async(dirItems) => {\n          if (!dirItems.length) {\n            resolve(files);\n          } else {\n            const fileEntries = dirItems.filter((dirItem) => dirItem.isFile);\n\n            for (const fileEntry of fileEntries) {\n              const file: any = await getFileFromFileEntry(fileEntry);\n              files.push(file);\n            }\n\n            readEntries();\n          }\n        });\n      };\n      readEntries();\n    });\n  }\n\n  showFileSelector() {\n    if (!this.disabled) {\n      (this._fileInput.nativeElement as HTMLInputElement).click();\n    }\n  }\n\n  _onFilesSelected(event) {\n    const files: FileList = event.target.files;\n    this.handleFileDrop(files);\n\n    // Reset the native file input element to allow selecting the same file again\n    this._fileInput.nativeElement.value = '';\n\n    // fix(#32): Prevent the default event behaviour which caused the change event to emit twice.\n    this.preventDefault(event);\n  }\n\n  private handleFileDrop(files: FileList) {\n    const result = this.service.parseFileList(files, this.accept, this.maxFileSize, this.multiple);\n\n    this.change.next({\n      addedFiles: result.addedFiles,\n      rejectedFiles: result.rejectedFiles,\n      source: this\n    });\n  }\n\n  private preventDefault(event: DragEvent) {\n    event.preventDefault();\n    event.stopPropagation();\n  }\n}\n","<input #fileInput type=\"file\" [id]=\"id\" [multiple]=\"multiple\" [accept]=\"accept\" [disabled]=\"disabled\"\n  (change)=\"_onFilesSelected($event)\" [attr.aria-label]=\"ariaLabel\" [attr.aria-labelledby]=\"ariaLabelledby\"\n  [attr.aria-describedby]=\"ariaDescribedBy\">\n<ng-content select=\"ngx-dropzone-label\" *ngIf=\"!_hasPreviews\"></ng-content>\n<ng-content select=\"ngx-dropzone-preview\"></ng-content>\n<ng-content></ng-content>\n","import { Component, OnInit, HostBinding, Input } from '@angular/core';\nimport { NgxDropzonePreviewComponent } from '../ngx-dropzone-preview.component';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\n@Component({\n  selector: 'ngx-dropzone-image-preview',\n  template: `\n    <img [src]=\"imageSrc\" />\n\t\t<ng-content select=\"ngx-dropzone-label\"></ng-content>\n    <ngx-dropzone-remove-badge *ngIf=\"removable\" (click)=\"_remove($event)\">\n    </ngx-dropzone-remove-badge>\n\t`,\n  styleUrls: ['./ngx-dropzone-image-preview.component.scss'],\n  providers: [\n    {\n      provide: NgxDropzonePreviewComponent,\n      useExisting: NgxDropzoneImagePreviewComponent\n    }\n  ]\n})\nexport class NgxDropzoneImagePreviewComponent extends NgxDropzonePreviewComponent implements OnInit {\n\n  constructor(\n    sanitizer: DomSanitizer\n  ) {\n    super(sanitizer);\n  }\n\n  /** The file to preview. */\n  @Input()\n  set file(value: File) {\n    this._file = value;\n    this.renderImage();\n  }\n  get file(): File { return this._file; }\n\n  /** The image data source. */\n  defaultImgLoading = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiByZ2IoMjQxLCAyNDIsIDI0Mykgbm9uZSByZXBlYXQgc2Nyb2xsIDAlIDAlOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjIyNHB4IiBoZWlnaHQ9IjIyNHB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgo8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIxNCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2U9IiM4NWEyYjYiIHN0cm9rZS1kYXNoYXJyYXk9IjIxLjk5MTE0ODU3NTEyODU1MiAyMS45OTExNDg1NzUxMjg1NTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+CiAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGR1cj0iMS4xNjI3OTA2OTc2NzQ0MTg0cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGtleVRpbWVzPSIwOzEiIHZhbHVlcz0iMCA1MCA1MDszNjAgNTAgNTAiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KPC9jaXJjbGU+CjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjEwIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2JiY2VkZCIgc3Ryb2tlLWRhc2hhcnJheT0iMTUuNzA3OTYzMjY3OTQ4OTY2IDE1LjcwNzk2MzI2Nzk0ODk2NiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjE1LjcwNzk2MzI2Nzk0ODk2NiIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj4KICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgZHVyPSIxLjE2Mjc5MDY5NzY3NDQxODRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIga2V5VGltZXM9IjA7MSIgdmFsdWVzPSIwIDUwIDUwOy0zNjAgNTAgNTAiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KPC9jaXJjbGU+CjwhLS0gW2xkaW9dIGdlbmVyYXRlZCBieSBodHRwczovL2xvYWRpbmcuaW8vIC0tPjwvc3ZnPg==';\n  imageSrc: any = this.sanitizer.bypassSecurityTrustUrl(this.defaultImgLoading);\n\n  ngOnInit() {\n    this.renderImage();\n  }\n\n  private renderImage() {\n    this.readFile()\n      .then(img => setTimeout(() => this.imageSrc = img))\n      .catch(err => console.error(err));\n  }\n}\n","import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { NgxDropzonePreviewComponent } from '../ngx-dropzone-preview.component';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Component({\n  selector: 'ngx-dropzone-video-preview',\n  template: `\n    <video *ngIf=\"sanitizedVideoSrc\" controls (click)=\"$event.stopPropagation()\">\n      <source [src]=\"sanitizedVideoSrc\" />\n    </video>\n    <ng-content select=\"ngx-dropzone-label\"></ng-content>\n    <ngx-dropzone-remove-badge *ngIf=\"removable\" (click)=\"_remove($event)\">\n    </ngx-dropzone-remove-badge>\n\t`,\n  styleUrls: ['./ngx-dropzone-video-preview.component.scss'],\n  providers: [\n    {\n      provide: NgxDropzonePreviewComponent,\n      useExisting: NgxDropzoneVideoPreviewComponent\n    }\n  ]\n})\nexport class NgxDropzoneVideoPreviewComponent extends NgxDropzonePreviewComponent implements OnInit, OnDestroy {\n\n  constructor(\n    sanitizer: DomSanitizer\n  ) {\n    super(sanitizer);\n  }\n\n  /** The video data source. */\n  sanitizedVideoSrc: SafeUrl;\n\n  private videoSrc: string;\n\n  ngOnInit() {\n    if (!this.file) {\n      console.error('No file to read. Please provide a file using the [file] Input property.');\n      return;\n    }\n\n    /**\n     * We sanitize the URL here to enable the preview.\n     * Please note that this could cause security issues!\n     **/\n    this.videoSrc = URL.createObjectURL(this.file);\n    this.sanitizedVideoSrc = this.sanitizer.bypassSecurityTrustUrl(this.videoSrc);\n  }\n\n  ngOnDestroy() {\n    URL.revokeObjectURL(this.videoSrc);\n  }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NgxDropzoneLabelDirective } from './ngx-dropzone-label.directive';\nimport { NgxDropzonePreviewComponent } from './ngx-dropzone-preview/ngx-dropzone-preview.component';\nimport { NgxDropzoneComponent } from './ngx-dropzone/ngx-dropzone.component';\nimport { NgxDropzoneImagePreviewComponent } from './ngx-dropzone-preview/ngx-dropzone-image-preview/ngx-dropzone-image-preview.component';\nimport { NgxDropzoneRemoveBadgeComponent } from './ngx-dropzone-preview/ngx-dropzone-remove-badge/ngx-dropzone-remove-badge.component';\nimport { NgxDropzoneVideoPreviewComponent } from './ngx-dropzone-preview/ngx-dropzone-video-preview/ngx-dropzone-video-preview.component';\n\n@NgModule({\n\timports: [\n\t\tCommonModule\n\t],\n\tdeclarations: [\n\t\tNgxDropzoneComponent,\n\t\tNgxDropzoneLabelDirective,\n\t\tNgxDropzonePreviewComponent,\n\t\tNgxDropzoneImagePreviewComponent,\n\t\tNgxDropzoneRemoveBadgeComponent,\n\t\tNgxDropzoneVideoPreviewComponent,\n\t],\n\texports: [\n\t\tNgxDropzoneComponent,\n\t\tNgxDropzoneLabelDirective,\n\t\tNgxDropzonePreviewComponent,\n\t\tNgxDropzoneImagePreviewComponent,\n\t\tNgxDropzoneRemoveBadgeComponent,\n\t\tNgxDropzoneVideoPreviewComponent,\n\t]\n})\nexport class NgxDropzoneModule { }\n","/*\n * Public API Surface of ngx-dropzone\n */\n\nexport * from './lib/ngx-dropzone.module';\nexport * from './lib/ngx-dropzone-label.directive';\nexport * from './lib/ngx-dropzone/ngx-dropzone.component';\nexport * from './lib/ngx-dropzone-preview/ngx-dropzone-preview.component';\nexport * from './lib/ngx-dropzone-preview/ngx-dropzone-image-preview/ngx-dropzone-image-preview.component';\nexport * from './lib/ngx-dropzone-preview/ngx-dropzone-video-preview/ngx-dropzone-video-preview.component';\nexport * from './lib/ngx-dropzone-preview/ngx-dropzone-remove-badge/ngx-dropzone-remove-badge.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAKa,yBAAyB;;sHAAzB,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACV,QAAQ,EAAE,oBAAoB;iBAC9B;;;ACHD;;;;SAIgB,qBAAqB,CAAC,KAAU;IAE/C,OAAO,KAAK,IAAI,IAAI,IAAI,GAAG,KAAK,EAAE,KAAK,OAAO,CAAC;AAChD,CAAC;AAED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