{"version":3,"sources":["webpack:///./src/views/MegaCheck.vue?24ff","webpack:///./src/views/MegaCheck.vue?9022","webpack:///src/views/MegaCheck.vue","webpack:///./src/views/MegaCheck.vue?0588","webpack:///./src/views/MegaCheck.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_v","_s","$t","ref","server","staticRenderFns","FilePondPluginFileValidateType","FilePondPluginFileValidateSize","FilePondPluginImagePreview","components","vueFilePond","FilePond","data","mounted","process","fieldName","file","metadata","load","error","progress","abort","transfer","options","reader","axios","method","url","base64","name","onUploadProgress","then","catch","console","component"],"mappings":"+IAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,OAAO,CAACF,EAAG,SAAS,CAACA,EAAG,eAAe,CAACJ,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,uBAAuBL,EAAG,cAAc,CAACA,EAAG,YAAY,CAACM,IAAI,OAAOJ,MAAM,CAAC,KAAO,OAAO,aAAaN,EAAIS,GAAG,aAAa,kBAAiB,EAAM,uBAAsB,EAAM,eAAe,QAAQ,sBAAsB,CACtb,oEACA,4BAA6B,OAAST,EAAIW,OAAO,gBAAgB,OAAO,sBAAsBX,EAAIS,GAAG,qBAAqB,8BAA8BT,EAAIS,GAAG,2BAA2B,gCAAgCT,EAAIS,GAAG,6BAA6B,qBAAqBT,EAAIS,GAAG,oBAAoB,wBAAwBT,EAAIS,GAAG,sBAAsB,wBAAwBT,EAAIS,GAAG,uBAAuB,iCAAiCT,EAAIS,GAAG,+BAA+B,gCAAgCT,EAAIS,GAAG,8BAA8B,8BAA8BT,EAAIS,GAAG,4BAA4B,qCAAqCT,EAAIS,GAAG,kCAAkC,0BAA0BT,EAAIS,G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!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MegaCheck.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-container',{attrs:{\"fluid\":\"\"}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('b-card',[_c('b-card-title',[_vm._v(_vm._s(_vm.$t(\"Mega File Check\")))]),_c('b-card-body',[_c('file-pond',{ref:\"pond\",attrs:{\"name\":\"test\",\"label-idle\":_vm.$t('labelIdle'),\"allow-multiple\":false,\"allow-image-preview\":false,\"allow-remove\":\"false\",\"accepted-file-types\":[\n              'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n              'application/vnd.ms-excel' ],\"server\":_vm.server,\"max-file-size\":'12MB',\"label-invalid-field\":_vm.$t('labelInvalidField'),\"label-file-waiting-for-size\":_vm.$t('labelFileWaitingForSize'),\"label-file-size-not-available\":_vm.$t('labelFileSizeNotAvailable'),\"label-file-loading\":_vm.$t('labelFileLoading'),\"label-file-load-error\":_vm.$t('labelFileLoadError'),\"label-file-processing\":_vm.$t('labelFileProcessing'),\"label-file-processing-complete\":_vm.$t('labelFileProcessingComplete'),\"label-file-processing-aborted\":_vm.$t('labelFileProcessingAborted'),\"label-file-processing-error\":_vm.$t('labelFileProcessingError'),\"label-file-processing-revert-error\":_vm.$t('labelFileProcessingRevertError'),\"label-file-remove-error\":_vm.$t('labelFileRemoveError'),\"label-tap-to-cancel\":_vm.$t('labelTapToCancel'),\"label-tap-to-retry\":_vm.$t('labelTapToRetry'),\"label-tap-to-undo\":_vm.$t('labelTapToUndo'),\"label-button-remove-item\":_vm.$t('labelButtonRemoveItem'),\"label-button-abort-item-load\":_vm.$t('labelButtonAbortItemLoad'),\"label-button-retry-item-load\":_vm.$t('labelButtonRetryItemLoad'),\"label-button-abort-item-processing\":_vm.$t('labelButtonAbortItemProcessing'),\"label-button-undo-item-processing\":_vm.$t('labelButtonUndoItemProcessing'),\"label-button-retry-item-processing\":_vm.$t('labelButtonRetryItemProcessing'),\"label-button-process-item\":_vm.$t('labelButtonProcessItem'),\"label-max-file-size-exceeded\":_vm.$t('labelMaxFileSizeExceeded'),\"label-max-file-size\":_vm.$t('labelMaxFileSize'),\"label-max-total-file-size-exceeded\":_vm.$t('labelMaxTotalFileSizeExceeded'),\"label-max-total-file-size\":_vm.$t('labelMaxTotalFileSize'),\"label-file-type-not-allowed\":_vm.$t('labelFileTypeNotAllowed'),\"image-validate-size-label-format-error\":_vm.$t('imageValidateSizeLabelFormatError'),\"image-validate-size-label-image-size-too-small\":_vm.$t('imageValidateSizeLabelImageSizeTooSmall'),\"image-validate-size-label-image-size-too-big\":_vm.$t('imageValidateSizeLabelImageSizeTooBig'),\"image-validate-size-label-expected-min-size\":_vm.$t('imageValidateSizeLabelExpectedMinSize'),\"image-validate-size-label-expected-max-size\":_vm.$t('imageValidateSizeLabelExpectedMaxSize'),\"image-validate-size-label-image-resolution-too-low\":_vm.$t('imageValidateSizeLabelImageResolutionTooLow'),\"image-validate-size-label-image-resolution-too-high\":_vm.$t('imageValidateSizeLabelImageResolutionTooHigh'),\"image-validate-size-label-expected-min-resolution\":_vm.$t('imageValidateSizeLabelExpectedMinResolution'),\"image-validate-size-label-expected-max-resolution\":_vm.$t('imageValidateSizeLabelExpectedMaxResolution')}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <b-container fluid>\n    <b-row>\n      <b-col cols=\"12\">\n        <b-card>\n          <b-card-title>{{ $t(\"Mega File Check\") }}</b-card-title>\n          <b-card-body>\n            <file-pond\n              ref=\"pond\"\n              name=\"test\"\n              :label-idle=\"$t('labelIdle')\"\n              :allow-multiple=\"false\"\n              :allow-image-preview=\"false\"\n              allow-remove=\"false\"\n              :accepted-file-types=\"[\n                'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n                'application/vnd.ms-excel',\n              ]\"\n              :server=\"server\"\n              :max-file-size=\"'12MB'\"\n              :label-invalid-field=\"$t('labelInvalidField')\"\n              :label-file-waiting-for-size=\"$t('labelFileWaitingForSize')\"\n              :label-file-size-not-available=\"$t('labelFileSizeNotAvailable')\"\n              :label-file-loading=\"$t('labelFileLoading')\"\n              :label-file-load-error=\"$t('labelFileLoadError')\"\n              :label-file-processing=\"$t('labelFileProcessing')\"\n              :label-file-processing-complete=\"\n                $t('labelFileProcessingComplete')\n              \"\n              :label-file-processing-aborted=\"$t('labelFileProcessingAborted')\"\n              :label-file-processing-error=\"$t('labelFileProcessingError')\"\n              :label-file-processing-revert-error=\"\n                $t('labelFileProcessingRevertError')\n              \"\n              :label-file-remove-error=\"$t('labelFileRemoveError')\"\n              :label-tap-to-cancel=\"$t('labelTapToCancel')\"\n              :label-tap-to-retry=\"$t('labelTapToRetry')\"\n              :label-tap-to-undo=\"$t('labelTapToUndo')\"\n              :label-button-remove-item=\"$t('labelButtonRemoveItem')\"\n              :label-button-abort-item-load=\"$t('labelButtonAbortItemLoad')\"\n              :label-button-retry-item-load=\"$t('labelButtonRetryItemLoad')\"\n              :label-button-abort-item-processing=\"\n                $t('labelButtonAbortItemProcessing')\n              \"\n              :label-button-undo-item-processing=\"\n                $t('labelButtonUndoItemProcessing')\n              \"\n              :label-button-retry-item-processing=\"\n                $t('labelButtonRetryItemProcessing')\n              \"\n              :label-button-process-item=\"$t('labelButtonProcessItem')\"\n              :label-max-file-size-exceeded=\"$t('labelMaxFileSizeExceeded')\"\n              :label-max-file-size=\"$t('labelMaxFileSize')\"\n              :label-max-total-file-size-exceeded=\"\n                $t('labelMaxTotalFileSizeExceeded')\n              \"\n              :label-max-total-file-size=\"$t('labelMaxTotalFileSize')\"\n              :label-file-type-not-allowed=\"$t('labelFileTypeNotAllowed')\"\n              :image-validate-size-label-format-error=\"\n                $t('imageValidateSizeLabelFormatError')\n              \"\n              :image-validate-size-label-image-size-too-small=\"\n                $t('imageValidateSizeLabelImageSizeTooSmall')\n              \"\n              :image-validate-size-label-image-size-too-big=\"\n                $t('imageValidateSizeLabelImageSizeTooBig')\n              \"\n              :image-validate-size-label-expected-min-size=\"\n                $t('imageValidateSizeLabelExpectedMinSize')\n              \"\n              :image-validate-size-label-expected-max-size=\"\n                $t('imageValidateSizeLabelExpectedMaxSize')\n              \"\n              :image-validate-size-label-image-resolution-too-low=\"\n                $t('imageValidateSizeLabelImageResolutionTooLow')\n              \"\n              :image-validate-size-label-image-resolution-too-high=\"\n                $t('imageValidateSizeLabelImageResolutionTooHigh')\n              \"\n              :image-validate-size-label-expected-min-resolution=\"\n                $t('imageValidateSizeLabelExpectedMinResolution')\n              \"\n              :image-validate-size-label-expected-max-resolution=\"\n                $t('imageValidateSizeLabelExpectedMaxResolution')\n              \"\n            />\n          </b-card-body>\n        </b-card> </b-col\n    ></b-row>\n  </b-container>\n</template>\n\n<script>\n// Import Vue FilePond\nimport vueFilePond from \"vue-filepond\";\n\n// Import FilePond styles\nimport \"filepond/dist/filepond.min.css\";\n\n// Import FilePond plugins\n// Please note that you need to install these plugins separately\n\n// Import image preview plugin styles\nimport \"filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css\";\n\n// Import image preview and file type validation plugins\nimport FilePondPluginFileValidateType from \"filepond-plugin-file-validate-type\";\nimport FilePondPluginFileValidateSize from \"filepond-plugin-file-validate-size\";\nimport FilePondPluginImagePreview from \"filepond-plugin-image-preview\";\n/// /import // FilePondPluginPdfPreview from \"filepond-plugin-pdf-preview\"\n// Create component\n\nconst FilePond = vueFilePond(\n  FilePondPluginFileValidateType,\n  FilePondPluginFileValidateSize,\n  FilePondPluginImagePreview\n  /// /// FilePondPluginPdfPreview,\n);\nexport default {\n  components: {\n    vueFilePond,\n    FilePond,\n  },\n  data() {\n    return {\n      server: null,\n    };\n  },\n  mounted() {\n    this.server = {\n      process: (\n        fieldName,\n        file,\n        metadata,\n        load,\n        error,\n        progress,\n        abort,\n        transfer,\n        options\n      ) => {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n\n        const self = this;\n        reader.onload = function () {\n          axios({\n            method: \"post\",\n            url: `https://api.tsm.u-sell.app/api/mega/check`,\n            // url: `http://localhost:3000/api/mega/check`,\n            data: { base64: reader.result, name: file.name },\n            onUploadProgress: (e) => {\n              // updating progress indicator\n              progress(e.lengthComputable, e.loaded, e.total);\n            },\n          })\n            .then((response) => {\n              // passing the file id to FilePond\n\n              // self.res.attachments.push({\n              //   file: response.data.data[0],\n              //   type: \"others\",\n              // });\n              load(true);\n            })\n            .catch((thrown) => {\n              console.log(thrown);\n              error(true)\n            });\n        };\n      },\n    };\n  },\n};\n</script>\n\n<style>\n.filepond--credits {\n  display: none !important;\n}\n\n.filepond--file-action-button.filepond--action-revert-item-processing {\n  display: none !important;\n}\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MegaCheck.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MegaCheck.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MegaCheck.vue?vue&type=template&id=3eb8d16a&\"\nimport script from \"./MegaCheck.vue?vue&type=script&lang=js&\"\nexport * from \"./MegaCheck.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MegaCheck.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}