{"version":3,"sources":["webpack:///./node_modules/quasar/src/utils/create-uploader-component.js","webpack:///./src/modules/main/pages/commission/components/uploadDoc.vue?ca19","webpack:///./node_modules/quasar/src/components/circular-progress/QCircularProgress.js","webpack:///./node_modules/quasar/src/components/circular-progress/use-circular-progress.js","webpack:///./src/modules/main/pages/commission/components/uploadDoc.vue?de54","webpack:///./node_modules/quasar/src/components/field/QField.js","webpack:///./src/modules/main/pages/commission/components/uploadDoc.vue","webpack:///./src/modules/main/pages/commission/components/uploadDoc.vue?1fd6","webpack:///./src/modules/main/pages/commission/components/uploadDoc.vue?8db2","webpack:///./node_modules/quasar/src/components/uploader/uploader-core.js","webpack:///./node_modules/quasar/src/components/uploader/xhr-uploader-plugin.js","webpack:///./node_modules/quasar/src/components/uploader/QUploader.js"],"names":["coreEmitsObject","getEmitsObject","coreEmits","name","props","emits","injectPlugin","createComponent","coreProps","isObject","setup","_","expose","getRenderer","radius","diameter","circumference","Math","PI","strokeDashArray","round","useCircularCommonProps","value","type","Number","default","animationSpeed","String","indeterminate","Boolean","slots","proxy","$q","getCurrentInstance","sizeStyle","useSize","svgStyle","computed","angle","lang","rtl","transform","reverse","circleStyle","instantFeedback","transition","viewBox","thickness","viewBoxAttr","normalized","between","min","max","range","strokeWidth","strokeDashOffset","dashRatio","dashGap","rounded","getCircle","offset","color","cls","h","class","style","fill","stroke","cx","cy","r","svgChild","centerColor","push","trackColor","child","showValue","fontSize","role","hMergeSlotSafely","internal","useSizeProps","validator","v","inheritAttrs","useFieldProps","tag","useFieldEmits","useField","useFieldState","requiredForAttr","tagProp","__props","dialogRef","useDialogPluginComponent","t","useI18n","onUploading","ref","file","observation","uploadUrl","baseUrlCC","closure_id","commissionNamespace","createNamespacedHelpers","authNamespace","setClosedDocUploaded","useActions","token","useState","onUploadingSuccess","then","Notify","create","message","position","getData","formData","FormData","append","uploadNF","axios","post","headers","Authorization","catch","maxFileSize","getProgressLabel","p","toFixed","useDarkProps","useFileProps","label","textColor","square","flat","bordered","noThumbnails","autoUpload","hideUploadBtn","disable","readonly","useFileEmits","getPlugin","vm","emit","isDark","useDark","updateFileStatus","status","uploadedSize","__status","__uploaded","__progress","__sizeLabel","humanStorageSize","size","__progressLabel","$forceUpdate","editable","dnd","rootRef","inputRef","state","files","queuedFiles","uploadedFiles","isAlive","vmIsDestroyed","pickFiles","addFiles","onDragover","onDragleave","processFiles","getDndNode","maxFilesNumber","maxTotalSizeNumber","useFile","getFileInput","addFilesToQueue","Object","assign","helpers","exposeApi","obj","isBusy","uploadSize","uploadProgress","uploadProgressLabel","uploadSizeLabel","canAddFiles","isUploading","multiple","length","maxFiles","maxTotalSize","canUpload","provide","uploaderKey","renderInput","classes","colorClass","watch","newVal","oldVal","reset","abort","revokeImgURLs","removeUploadedFiles","batchRemoveFiles","removeQueuedFiles","statusList","cb","removed","localFiles","filter","f","indexOf","__img","window","URL","revokeObjectURL","src","removeFile","__key","__abort","forEach","getElementsByClassName","e","fileList","fileInput","toUpperCase","startsWith","img","Image","createObjectURL","concat","upload","getBtn","show","icon","fn","data","key","iconSet","uploader","dense","onClick","QBtn","tabindex","title","accept","capture","onMousedown","stop","onChange","getHeader","header","publicApi","QSpinner","getList","list","map","backgroundImage","QIcon","negative","QCircularProgress","onBeforeUnmount","isRef","injectProp","injectMultipleProps","children","getFn","prop","url","Function","method","fieldName","Array","formFields","withCredentials","sendRaw","batch","factory","xhrs","promises","workingThreads","xhrProps","abortPromises","x","queue","slice","runFactory","performUpload","res","Error","failed","err","form","xhr","XMLHttpRequest","getProp","arg","console","error","fields","field","uploadIndex","uploadIndexSize","localUploadedSize","maxUploadSize","aborted","addEventListener","loaded","i","uploaded","onreadystatechange","readyState","open","head","setRequestHeader","send","Blob","createUploaderComponent","xhrUploaderPlugin"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2F;AAEtC;AACK;AACxB;AAElC,MAAMA,eAAe,GAAGC,4EAAc,CAACC,+EAAS,CAAC;AAElC,gEAAC;EAAE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,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAMoQ,OAAO,GAAGoB,OAAO,CAAC,SAAS,EAAEzI,KAAK,CAAC;IAEzCA,KAAK,CAAC8D,OAAO,CAAChI,IAAI,IAAI;MACpBoF,OAAO,CAAClC,gBAAgB,CAAClD,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;MAC9C,IAAIuL,OAAO,KAAK,IAAI,EAAE;QACpBiB,IAAI,CAACnL,MAAM,CAACsL,OAAO,CAAC,WAAW,EAAE3M,IAAI,CAAC,EAAEA,IAAI,EAAEA,IAAI,CAAChG,IAAI,CAAC;MAC1D;MACAgG,IAAI,CAACyM,GAAG,GAAGA,GAAG;MACdzM,IAAI,CAAC+H,OAAO,GAAG,MAAM;QAAE0E,GAAG,CAAC7F,KAAK,CAAC,CAAC;MAAC,CAAC;MACpCwG,aAAa,IAAIpN,IAAI,CAAC0D,IAAI;IAC5B,CAAC,CAAC;IAEFX,IAAI,CAAC,WAAW,EAAE;MAAEmB,KAAK;MAAEuI;IAAI,CAAC,CAAC;IACjCf,IAAI,CAACvQ,KAAK,CAACmD,IAAI,CAACmO,GAAG,CAAC;IAEpB,IAAIlB,OAAO,KAAK,IAAI,EAAE;MACpBkB,GAAG,CAACsB,IAAI,CAAC,IAAIC,IAAI,CAAC9J,KAAK,CAAC,CAAC;IAC3B,CAAC,MACI;MACHuI,GAAG,CAACsB,IAAI,CAACvB,IAAI,CAAC;IAChB;EACF;EAEA,OAAO;IACL3G,WAAW;IACXN,MAAM;IAENqB,KAAK;IACL+B;EACF,CAAC;AACH;AAEe;EACb3O,IAAI,EAAE,WAAW;EACjBC,KAAK;EACLC,KAAK;EACLC;AACF,CAAC,E;;;;;;;;;;;;ACjQD;AAAA;AAAA;AAA8E;AACtB;AAEzC8T,kJAAuB,CAACC,+DAAiB,CAAC,E","file":"js/chunk-2cce9644.1a186539.js","sourcesContent":["import { coreProps, coreEmits, getRenderer } from '../components/uploader/uploader-core.js'\n\nimport { createComponent } from './private/create.js'\nimport getEmitsObject from './private/get-emits-object.js'\nimport { isObject } from './is.js'\n\nconst coreEmitsObject = getEmitsObject(coreEmits)\n\nexport default ({ name, props, emits, injectPlugin }) => createComponent({\n name,\n\n props: {\n ...coreProps,\n ...props\n },\n\n emits: isObject(emits) === true\n ? { ...coreEmitsObject, ...emits }\n : [ ...coreEmits, ...emits ],\n\n setup (_, { expose }) {\n return getRenderer(injectPlugin, expose)\n }\n})\n","import script from \"./uploadDoc.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./uploadDoc.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./uploadDoc.vue?vue&type=style&index=0&id=76fc17c7&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src1250588209/src/flip-child-frontend/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-76fc17c7\"]])\n\nexport default __exports__\nimport QDialog from 'quasar/src/components/dialog/QDialog.js';\nimport QCard from 'quasar/src/components/card/QCard.js';\nimport QSpace from 'quasar/src/components/space/QSpace.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport QForm from 'quasar/src/components/form/QForm.js';\nimport QInput from 'quasar/src/components/input/QInput.js';\nimport QFile from 'quasar/src/components/file/QFile.js';\nimport QIcon from 'quasar/src/components/icon/QIcon.js';\nimport QCardActions from 'quasar/src/components/card/QCardActions.js';\nimport QUploader from 'quasar/src/components/uploader/QUploader.js';\nimport QField from 'quasar/src/components/field/QField.js';import ClosePopup from 'quasar/src/directives/close-popup/ClosePopup.js';\nimport qInstall from \"../../../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QDialog,QCard,QSpace,QBtn,QForm,QInput,QFile,QIcon,QCardActions,QUploader,QField});qInstall(script, 'directives', {ClosePopup});\n","import { h, computed, getCurrentInstance } from 'vue'\n\nimport useSize from '../../composables/private/use-size.js'\nimport { useCircularCommonProps } from './use-circular-progress.js'\n\nimport { createComponent } from '../../utils/private/create.js'\nimport { hMergeSlotSafely } from '../../utils/private/render.js'\nimport { between } from '../../utils/format.js'\n\nconst\n radius = 50,\n diameter = 2 * radius,\n circumference = diameter * Math.PI,\n strokeDashArray = Math.round(circumference * 1000) / 1000\n\nexport default createComponent({\n name: 'QCircularProgress',\n\n props: {\n ...useCircularCommonProps,\n\n value: {\n type: Number,\n default: 0\n },\n\n animationSpeed: {\n type: [ String, Number ],\n default: 600\n },\n\n indeterminate: Boolean\n },\n\n setup (props, { slots }) {\n const { proxy: { $q } } = getCurrentInstance()\n const sizeStyle = useSize(props)\n\n const svgStyle = computed(() => {\n const angle = ($q.lang.rtl === true ? -1 : 1) * props.angle\n\n return {\n transform: props.reverse !== ($q.lang.rtl === true)\n ? `scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${ -90 - angle }deg)`\n : `rotate3d(0, 0, 1, ${ angle - 90 }deg)`\n }\n })\n\n const circleStyle = computed(() => (\n props.instantFeedback !== true && props.indeterminate !== true\n ? { transition: `stroke-dashoffset ${ props.animationSpeed }ms ease 0s, stroke ${ props.animationSpeed }ms ease` }\n : ''\n ))\n\n const viewBox = computed(() => diameter / (1 - props.thickness / 2))\n\n const viewBoxAttr = computed(() =>\n `${ viewBox.value / 2 } ${ viewBox.value / 2 } ${ viewBox.value } ${ viewBox.value }`\n )\n\n const normalized = computed(() => between(props.value, props.min, props.max))\n\n const range = computed(() => props.max - props.min)\n const strokeWidth = computed(() => props.thickness / 2 * viewBox.value)\n const strokeDashOffset = computed(() => {\n const dashRatio = (props.max - normalized.value) / range.value\n const dashGap = props.rounded === true && normalized.value < props.max && dashRatio < 0.25\n ? strokeWidth.value / 2 * (1 - dashRatio / 0.25)\n : 0\n\n return circumference * dashRatio + dashGap\n })\n\n function getCircle ({ thickness, offset, color, cls, rounded }) {\n return h('circle', {\n class: 'q-circular-progress__' + cls + (color !== void 0 ? ` text-${ color }` : ''),\n style: circleStyle.value,\n fill: 'transparent',\n stroke: 'currentColor',\n 'stroke-width': thickness,\n 'stroke-dasharray': strokeDashArray,\n 'stroke-dashoffset': offset,\n 'stroke-linecap': rounded,\n cx: viewBox.value,\n cy: viewBox.value,\n r: radius\n })\n }\n\n return () => {\n const svgChild = []\n\n props.centerColor !== void 0 && props.centerColor !== 'transparent' && svgChild.push(\n h('circle', {\n class: `q-circular-progress__center text-${ props.centerColor }`,\n fill: 'currentColor',\n r: radius - strokeWidth.value / 2,\n cx: viewBox.value,\n cy: viewBox.value\n })\n )\n\n props.trackColor !== void 0 && props.trackColor !== 'transparent' && svgChild.push(\n getCircle({\n cls: 'track',\n thickness: strokeWidth.value,\n offset: 0,\n color: props.trackColor\n })\n )\n\n svgChild.push(\n getCircle({\n cls: 'circle',\n thickness: strokeWidth.value,\n offset: strokeDashOffset.value,\n color: props.color,\n rounded: props.rounded === true ? 'round' : void 0\n })\n )\n\n const child = [\n h('svg', {\n class: 'q-circular-progress__svg',\n style: svgStyle.value,\n viewBox: viewBoxAttr.value,\n 'aria-hidden': 'true'\n }, svgChild)\n ]\n\n props.showValue === true && child.push(\n h('div', {\n class: 'q-circular-progress__text absolute-full row flex-center content-center',\n style: { fontSize: props.fontSize }\n }, slots.default !== void 0 ? slots.default() : [ h('div', normalized.value) ])\n )\n\n return h('div', {\n class: `q-circular-progress q-circular-progress--${ props.indeterminate === true ? 'in' : '' }determinate`,\n style: sizeStyle.value,\n role: 'progressbar',\n 'aria-valuemin': props.min,\n 'aria-valuemax': props.max,\n 'aria-valuenow': props.indeterminate === true ? void 0 : normalized.value\n }, hMergeSlotSafely(slots.internal, child)) // \"internal\" is used by QKnob\n }\n }\n})\n","import { useSizeProps } from '../../composables/private/use-size.js'\n\n// also used by QKnob\nexport const useCircularCommonProps = {\n ...useSizeProps,\n\n min: {\n type: Number,\n default: 0\n },\n max: {\n type: Number,\n default: 100\n },\n\n color: String,\n centerColor: String,\n trackColor: String,\n\n fontSize: String,\n rounded: Boolean,\n\n // ratio\n thickness: {\n type: Number,\n default: 0.2,\n validator: v => v >= 0 && v <= 1\n },\n\n angle: {\n type: Number,\n default: 0\n },\n\n showValue: Boolean,\n reverse: Boolean,\n\n instantFeedback: Boolean\n}\n","export { default } 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/vue-cli-plugin-quasar/lib/loader.js.transform-quasar-imports.js!../../../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./uploadDoc.vue?vue&type=script&setup=true&lang=js\"; 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/vue-cli-plugin-quasar/lib/loader.js.transform-quasar-imports.js!../../../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./uploadDoc.vue?vue&type=script&setup=true&lang=js\"","import useField, { useFieldState, useFieldProps, useFieldEmits } from '../../composables/private/use-field.js'\n\nimport { createComponent } from '../../utils/private/create.js'\n\nexport default createComponent({\n name: 'QField',\n\n inheritAttrs: false,\n\n props: {\n ...useFieldProps,\n\n tag: {\n type: String,\n default: 'label'\n }\n },\n\n emits: useFieldEmits,\n\n setup () {\n return useField(\n useFieldState({\n requiredForAttr: false,\n tagProp: true\n })\n )\n }\n})\n","\n\n\n\n","export * from \"-!../../../../../../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-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./uploadDoc.vue?vue&type=style&index=0&id=76fc17c7&scoped=true&lang=css\"","// extracted by mini-css-extract-plugin","import { h, ref, isRef, computed, watch, provide, onBeforeUnmount, getCurrentInstance } from 'vue'\n\nimport QBtn from '../btn/QBtn.js'\nimport QIcon from '../icon/QIcon.js'\nimport QSpinner from '../spinner/QSpinner.js'\nimport QCircularProgress from '../circular-progress/QCircularProgress.js'\n\nimport useDark, { useDarkProps } from '../../composables/private/use-dark.js'\nimport useFile, { useFileProps, useFileEmits } from '../../composables/private/use-file.js'\n\nimport { stop } from '../../utils/event.js'\nimport { humanStorageSize } from '../../utils/format.js'\nimport { uploaderKey } from '../../utils/private/symbols.js'\nimport { injectProp, injectMultipleProps } from '../../utils/private/inject-obj-prop.js'\nimport { vmIsDestroyed } from '../../utils/private/vm.js'\n\nfunction getProgressLabel (p) {\n return (p * 100).toFixed(2) + '%'\n}\n\nexport const coreProps = {\n ...useDarkProps,\n ...useFileProps,\n\n label: String,\n\n color: String,\n textColor: String,\n\n square: Boolean,\n flat: Boolean,\n bordered: Boolean,\n\n noThumbnails: Boolean,\n autoUpload: Boolean,\n hideUploadBtn: Boolean,\n\n disable: Boolean,\n readonly: Boolean\n}\n\nexport const coreEmits = [\n ...useFileEmits,\n 'start', 'finish', 'added', 'removed'\n]\n\nexport function getRenderer (getPlugin, expose) {\n const vm = getCurrentInstance()\n const { props, slots, emit, proxy } = vm\n const { $q } = proxy\n\n const isDark = useDark(props, $q)\n\n function updateFileStatus (file, status, uploadedSize) {\n file.__status = status\n\n if (status === 'idle') {\n file.__uploaded = 0\n file.__progress = 0\n file.__sizeLabel = humanStorageSize(file.size)\n file.__progressLabel = '0.00%'\n return\n }\n if (status === 'failed') {\n proxy.$forceUpdate()\n return\n }\n\n file.__uploaded = status === 'uploaded'\n ? file.size\n : uploadedSize\n\n file.__progress = status === 'uploaded'\n ? 1\n : Math.min(0.9999, file.__uploaded / file.size)\n\n file.__progressLabel = getProgressLabel(file.__progress)\n proxy.$forceUpdate()\n }\n\n const editable = computed(() => props.disable !== true && props.readonly !== true)\n const dnd = ref(false)\n\n const rootRef = ref(null)\n const inputRef = ref(null)\n\n const state = {\n files: ref([]),\n queuedFiles: ref([]),\n uploadedFiles: ref([]),\n uploadedSize: ref(0),\n\n updateFileStatus,\n isAlive: () => vmIsDestroyed(vm) === false\n }\n\n const {\n pickFiles,\n addFiles,\n onDragover,\n onDragleave,\n processFiles,\n getDndNode,\n maxFilesNumber,\n maxTotalSizeNumber\n } = useFile({ editable, dnd, getFileInput, addFilesToQueue })\n\n Object.assign(state, getPlugin({\n props,\n slots,\n emit,\n helpers: state,\n exposeApi: obj => { Object.assign(state, obj) }\n }))\n\n if (state.isBusy === void 0) {\n state.isBusy = ref(false)\n }\n\n const uploadSize = ref(0)\n const uploadProgress = computed(() => (\n uploadSize.value === 0\n ? 0\n : state.uploadedSize.value / uploadSize.value\n ))\n const uploadProgressLabel = computed(() => getProgressLabel(uploadProgress.value))\n const uploadSizeLabel = computed(() => humanStorageSize(uploadSize.value))\n\n const canAddFiles = computed(() =>\n editable.value === true\n && state.isUploading.value !== true\n // if single selection and no files are queued:\n && (props.multiple === true || state.queuedFiles.value.length === 0)\n // if max-files is set and current number of files does not exceeds it:\n && (props.maxFiles === void 0 || state.files.value.length < maxFilesNumber.value)\n // if max-total-size is set and current upload size does not exceeds it:\n && (props.maxTotalSize === void 0 || uploadSize.value < maxTotalSizeNumber.value)\n )\n\n const canUpload = computed(() =>\n editable.value === true\n && state.isBusy.value !== true\n && state.isUploading.value !== true\n && state.queuedFiles.value.length !== 0\n )\n\n provide(uploaderKey, renderInput)\n\n const classes = computed(() =>\n 'q-uploader column no-wrap'\n + (isDark.value === true ? ' q-uploader--dark q-dark' : '')\n + (props.bordered === true ? ' q-uploader--bordered' : '')\n + (props.square === true ? ' q-uploader--square no-border-radius' : '')\n + (props.flat === true ? ' q-uploader--flat no-shadow' : '')\n + (props.disable === true ? ' disabled q-uploader--disable' : '')\n + (dnd.value === true ? ' q-uploader--dnd' : '')\n )\n\n const colorClass = computed(() =>\n 'q-uploader__header'\n + (props.color !== void 0 ? ` bg-${ props.color }` : '')\n + (props.textColor !== void 0 ? ` text-${ props.textColor }` : '')\n )\n\n watch(state.isUploading, (newVal, oldVal) => {\n if (oldVal === false && newVal === true) {\n emit('start')\n }\n else if (oldVal === true && newVal === false) {\n emit('finish')\n }\n })\n\n function reset () {\n if (props.disable === false) {\n state.abort()\n state.uploadedSize.value = 0\n uploadSize.value = 0\n revokeImgURLs()\n state.files.value = []\n state.queuedFiles.value = []\n state.uploadedFiles.value = []\n }\n }\n\n function removeUploadedFiles () {\n if (props.disable === false) {\n batchRemoveFiles([ 'uploaded' ], () => {\n state.uploadedFiles.value = []\n })\n }\n }\n\n function removeQueuedFiles () {\n batchRemoveFiles([ 'idle', 'failed' ], ({ size }) => {\n uploadSize.value -= size\n state.queuedFiles.value = []\n })\n }\n\n function batchRemoveFiles (statusList, cb) {\n if (props.disable === true) {\n return\n }\n\n const removed = {\n files: [],\n size: 0\n }\n\n const localFiles = state.files.value.filter(f => {\n if (statusList.indexOf(f.__status) === -1) {\n return true\n }\n\n removed.size += f.size\n removed.files.push(f)\n\n f.__img !== void 0 && window.URL.revokeObjectURL(f.__img.src)\n\n return false\n })\n\n if (removed.files.length !== 0) {\n state.files.value = localFiles\n cb(removed)\n emit('removed', removed.files)\n }\n }\n\n function removeFile (file) {\n if (props.disable) return\n\n if (file.__status === 'uploaded') {\n state.uploadedFiles.value = state.uploadedFiles.value.filter(f => f.__key !== file.__key)\n }\n else if (file.__status === 'uploading') {\n file.__abort()\n }\n else {\n uploadSize.value -= file.size\n }\n\n state.files.value = state.files.value.filter(f => {\n if (f.__key !== file.__key) {\n return true\n }\n\n f.__img !== void 0 && window.URL.revokeObjectURL(f.__img.src)\n\n return false\n })\n\n state.queuedFiles.value = state.queuedFiles.value.filter(f => f.__key !== file.__key)\n emit('removed', [ file ])\n }\n\n function revokeImgURLs () {\n state.files.value.forEach(f => {\n f.__img !== void 0 && window.URL.revokeObjectURL(f.__img.src)\n })\n }\n\n function getFileInput () {\n return inputRef.value\n || rootRef.value.getElementsByClassName('q-uploader__input')[ 0 ]\n }\n\n function addFilesToQueue (e, fileList) {\n const localFiles = processFiles(e, fileList, state.files.value, true)\n const fileInput = getFileInput()\n\n if (fileInput !== void 0 && fileInput !== null) {\n fileInput.value = ''\n }\n\n if (localFiles === void 0) return\n\n localFiles.forEach(file => {\n state.updateFileStatus(file, 'idle')\n uploadSize.value += file.size\n\n if (props.noThumbnails !== true && file.type.toUpperCase().startsWith('IMAGE')) {\n const img = new Image()\n img.src = window.URL.createObjectURL(file)\n file.__img = img\n }\n })\n\n state.files.value = state.files.value.concat(localFiles)\n state.queuedFiles.value = state.queuedFiles.value.concat(localFiles)\n emit('added', localFiles)\n props.autoUpload === true && state.upload()\n }\n\n function upload () {\n canUpload.value === true && state.upload()\n }\n\n function getBtn (show, icon, fn) {\n if (show === true) {\n const data = {\n type: 'a',\n key: icon,\n icon: $q.iconSet.uploader[ icon ],\n flat: true,\n dense: true\n }\n\n let child = void 0\n\n if (icon === 'add') {\n data.onClick = pickFiles\n child = renderInput\n }\n else {\n data.onClick = fn\n }\n\n return h(QBtn, data, child)\n }\n }\n\n function renderInput () {\n return h('input', {\n ref: inputRef,\n class: 'q-uploader__input overflow-hidden absolute-full',\n tabindex: -1,\n type: 'file',\n title: '', // try to remove default tooltip\n accept: props.accept,\n multiple: props.multiple === true ? 'multiple' : void 0,\n capture: props.capture,\n onMousedown: stop, // need to stop refocus from QBtn\n onClick: pickFiles,\n onChange: addFilesToQueue\n })\n }\n\n function getHeader () {\n if (slots.header !== void 0) {\n return slots.header(publicApi)\n }\n\n return [\n h('div', {\n class: 'q-uploader__header-content column'\n }, [\n h('div', {\n class: 'flex flex-center no-wrap q-gutter-xs'\n }, [\n getBtn(state.queuedFiles.value.length !== 0, 'removeQueue', removeQueuedFiles),\n getBtn(state.uploadedFiles.value.length !== 0, 'removeUploaded', removeUploadedFiles),\n\n state.isUploading.value === true\n ? h(QSpinner, { class: 'q-uploader__spinner' })\n : null,\n\n h('div', { class: 'col column justify-center' }, [\n props.label !== void 0\n ? h('div', { class: 'q-uploader__title' }, [ props.label ])\n : null,\n\n h('div', { class: 'q-uploader__subtitle' }, [\n uploadSizeLabel.value + ' / ' + uploadProgressLabel.value\n ])\n ]),\n\n getBtn(canAddFiles.value, 'add'),\n getBtn(props.hideUploadBtn === false && canUpload.value === true, 'upload', state.upload),\n getBtn(state.isUploading.value, 'clear', state.abort)\n ])\n ])\n ]\n }\n\n function getList () {\n if (slots.list !== void 0) {\n return slots.list(publicApi)\n }\n\n return state.files.value.map(file => h('div', {\n key: file.__key,\n class: 'q-uploader__file relative-position'\n + (props.noThumbnails !== true && file.__img !== void 0 ? ' q-uploader__file--img' : '')\n + (\n file.__status === 'failed'\n ? ' q-uploader__file--failed'\n : (file.__status === 'uploaded' ? ' q-uploader__file--uploaded' : '')\n ),\n style: props.noThumbnails !== true && file.__img !== void 0\n ? { backgroundImage: 'url(\"' + file.__img.src + '\")' }\n : null\n }, [\n h('div', {\n class: 'q-uploader__file-header row flex-center no-wrap'\n }, [\n file.__status === 'failed'\n ? h(QIcon, {\n class: 'q-uploader__file-status',\n name: $q.iconSet.type.negative,\n color: 'negative'\n })\n : null,\n\n h('div', { class: 'q-uploader__file-header-content col' }, [\n h('div', { class: 'q-uploader__title' }, [ file.name ]),\n h('div', {\n class: 'q-uploader__subtitle row items-center no-wrap'\n }, [\n file.__sizeLabel + ' / ' + file.__progressLabel\n ])\n ]),\n\n file.__status === 'uploading'\n ? h(QCircularProgress, {\n value: file.__progress,\n min: 0,\n max: 1,\n indeterminate: file.__progress === 0\n })\n : h(QBtn, {\n round: true,\n dense: true,\n flat: true,\n icon: $q.iconSet.uploader[ file.__status === 'uploaded' ? 'done' : 'clear' ],\n onClick: () => { removeFile(file) }\n })\n ])\n ]))\n }\n\n onBeforeUnmount(() => {\n state.isUploading.value === true && state.abort()\n state.files.value.length !== 0 && revokeImgURLs()\n })\n\n const publicApi = {}\n\n for (const key in state) {\n if (isRef(state[ key ]) === true) {\n injectProp(publicApi, key, () => state[ key ].value)\n }\n else { // method or non-computed prop\n publicApi[ key ] = state[ key ]\n }\n }\n\n Object.assign(publicApi, {\n upload,\n reset,\n removeUploadedFiles,\n removeQueuedFiles,\n removeFile,\n\n pickFiles,\n addFiles\n })\n\n injectMultipleProps(publicApi, {\n canAddFiles: () => canAddFiles.value,\n canUpload: () => canUpload.value,\n uploadSizeLabel: () => uploadSizeLabel.value,\n uploadProgressLabel: () => uploadProgressLabel.value\n })\n\n // expose public api (methods & computed props)\n expose({\n ...state,\n\n upload,\n reset,\n removeUploadedFiles,\n removeQueuedFiles,\n removeFile,\n\n pickFiles,\n addFiles,\n\n canAddFiles,\n canUpload,\n uploadSizeLabel,\n uploadProgressLabel\n })\n\n return () => {\n const children = [\n h('div', { class: colorClass.value }, getHeader()),\n h('div', { class: 'q-uploader__list scroll' }, getList()),\n getDndNode('uploader')\n ]\n\n state.isBusy.value === true && children.push(\n h('div', {\n class: 'q-uploader__overlay absolute-full flex flex-center'\n }, [ h(QSpinner) ])\n )\n\n const data = { ref: rootRef, class: classes.value }\n\n if (canAddFiles.value === true) {\n Object.assign(data, { onDragover, onDragleave })\n }\n\n return h('div', data, children)\n }\n}\n","import { ref, computed } from 'vue'\n\nfunction getFn (prop) {\n return typeof prop === 'function'\n ? prop\n : () => prop\n}\n\nconst props = {\n url: [ Function, String ],\n method: {\n type: [ Function, String ],\n default: 'POST'\n },\n fieldName: {\n type: [ Function, String ],\n default: () => {\n return file => file.name\n }\n },\n headers: [ Function, Array ],\n formFields: [ Function, Array ],\n withCredentials: [ Function, Boolean ],\n sendRaw: [ Function, Boolean ],\n\n batch: [ Function, Boolean ],\n factory: Function\n}\n\nconst emits = [ 'factoryFailed', 'uploaded', 'failed', 'uploading' ]\n\nfunction injectPlugin ({ props, emit, helpers }) {\n const xhrs = ref([])\n const promises = ref([])\n const workingThreads = ref(0)\n\n const xhrProps = computed(() => ({\n url: getFn(props.url),\n method: getFn(props.method),\n headers: getFn(props.headers),\n formFields: getFn(props.formFields),\n fieldName: getFn(props.fieldName),\n withCredentials: getFn(props.withCredentials),\n sendRaw: getFn(props.sendRaw),\n batch: getFn(props.batch)\n }))\n\n const isUploading = computed(() => workingThreads.value > 0)\n const isBusy = computed(() => promises.value.length !== 0)\n\n let abortPromises\n\n function abort () {\n xhrs.value.forEach(x => { x.abort() })\n\n if (promises.value.length !== 0) {\n abortPromises = true\n }\n }\n\n function upload () {\n const queue = helpers.queuedFiles.value.slice(0)\n helpers.queuedFiles.value = []\n\n if (xhrProps.value.batch(queue)) {\n runFactory(queue)\n }\n else {\n queue.forEach(file => {\n runFactory([ file ])\n })\n }\n }\n\n function runFactory (files) {\n workingThreads.value++\n\n if (typeof props.factory !== 'function') {\n performUpload(files, {})\n return\n }\n\n const res = props.factory(files)\n\n if (!res) {\n emit(\n 'factoryFailed',\n new Error('QUploader: factory() does not return properly'),\n files\n )\n workingThreads.value--\n }\n else if (typeof res.catch === 'function' && typeof res.then === 'function') {\n promises.value.push(res)\n\n const failed = err => {\n if (helpers.isAlive() === true) {\n promises.value = promises.value.filter(p => p !== res)\n\n if (promises.value.length === 0) {\n abortPromises = false\n }\n\n helpers.queuedFiles.value = helpers.queuedFiles.value.concat(files)\n files.forEach(f => { helpers.updateFileStatus(f, 'failed') })\n\n emit('factoryFailed', err, files)\n workingThreads.value--\n }\n }\n\n res.then(factory => {\n if (abortPromises === true) {\n failed(new Error('Aborted'))\n }\n else if (helpers.isAlive() === true) {\n promises.value = promises.value.filter(p => p !== res)\n performUpload(files, factory)\n }\n }).catch(failed)\n }\n else {\n performUpload(files, res || {})\n }\n }\n\n function performUpload (files, factory) {\n const\n form = new FormData(),\n xhr = new XMLHttpRequest()\n\n const getProp = (name, arg) => {\n return factory[ name ] !== void 0\n ? getFn(factory[ name ])(arg)\n : xhrProps.value[ name ](arg)\n }\n\n const url = getProp('url', files)\n\n if (!url) {\n console.error('q-uploader: invalid or no URL specified')\n workingThreads.value--\n return\n }\n\n const fields = getProp('formFields', files)\n fields !== void 0 && fields.forEach(field => {\n form.append(field.name, field.value)\n })\n\n let\n uploadIndex = 0,\n uploadIndexSize = 0,\n localUploadedSize = 0,\n maxUploadSize = 0,\n aborted\n\n xhr.upload.addEventListener('progress', e => {\n if (aborted === true) return\n\n const loaded = Math.min(maxUploadSize, e.loaded)\n\n helpers.uploadedSize.value += loaded - localUploadedSize\n localUploadedSize = loaded\n\n let size = localUploadedSize - uploadIndexSize\n for (let i = uploadIndex; size > 0 && i < files.length; i++) {\n const\n file = files[ i ],\n uploaded = size > file.size\n\n if (uploaded) {\n size -= file.size\n uploadIndex++\n uploadIndexSize += file.size\n helpers.updateFileStatus(file, 'uploading', file.size)\n }\n else {\n helpers.updateFileStatus(file, 'uploading', size)\n return\n }\n }\n }, false)\n\n xhr.onreadystatechange = () => {\n if (xhr.readyState < 4) {\n return\n }\n\n if (xhr.status && xhr.status < 400) {\n helpers.uploadedFiles.value = helpers.uploadedFiles.value.concat(files)\n files.forEach(f => { helpers.updateFileStatus(f, 'uploaded') })\n emit('uploaded', { files, xhr })\n }\n else {\n aborted = true\n helpers.uploadedSize.value -= localUploadedSize\n helpers.queuedFiles.value = helpers.queuedFiles.value.concat(files)\n files.forEach(f => { helpers.updateFileStatus(f, 'failed') })\n emit('failed', { files, xhr })\n }\n\n workingThreads.value--\n xhrs.value = xhrs.value.filter(x => x !== xhr)\n }\n\n xhr.open(\n getProp('method', files),\n url\n )\n\n if (getProp('withCredentials', files) === true) {\n xhr.withCredentials = true\n }\n\n const headers = getProp('headers', files)\n headers !== void 0 && headers.forEach(head => {\n xhr.setRequestHeader(head.name, head.value)\n })\n\n const sendRaw = getProp('sendRaw', files)\n\n files.forEach(file => {\n helpers.updateFileStatus(file, 'uploading', 0)\n if (sendRaw !== true) {\n form.append(getProp('fieldName', file), file, file.name)\n }\n file.xhr = xhr\n file.__abort = () => { xhr.abort() }\n maxUploadSize += file.size\n })\n\n emit('uploading', { files, xhr })\n xhrs.value.push(xhr)\n\n if (sendRaw === true) {\n xhr.send(new Blob(files))\n }\n else {\n xhr.send(form)\n }\n }\n\n return {\n isUploading,\n isBusy,\n\n abort,\n upload\n }\n}\n\nexport default {\n name: 'QUploader',\n props,\n emits,\n injectPlugin\n}\n","import createUploaderComponent from '../../utils/create-uploader-component.js'\nimport xhrUploaderPlugin from './xhr-uploader-plugin.js'\n\nexport default createUploaderComponent(xhrUploaderPlugin)\n"],"sourceRoot":""}