{"version":3,"sources":["webpack:///./src/views/mine/ReleaseVideo.vue","webpack:///./src/views/mine/ReleaseVideo.vue?53f1","webpack:///./src/views/mine/ReleaseVideo.vue?d0d0","webpack:///./node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/PlusOutlined.js","webpack:///./src/views/mine/ReleaseVideo.vue?0936","webpack:///./node_modules/core-js/modules/es.array.splice.js","webpack:///./node_modules/core-js/modules/es.array.slice.js"],"names":["class","style","label-col","labelCol","wrapper-col","wrapperCol","lan","$t","label","rules","size","value","form","title","placeholder","list-type","customRequest","uploadspic","beforeUpload","imgs","viewCover","img","length","src","uploadpicprogress","type","percent","width","uploads","video","fileurl","uploadprogress","ref","desc","autoSize","maxlength","onSubmit","name","components","PlaySquareOutlined","PlusOutlined","NavBottom","setup","issum","fileid","fileduration","query","id","console","log","previewImage","coverChange","info","file","then","url","beforeCoverUpload","message","error","cancelCover","removeFile","index","newFileList","slice","splice","videofile","videos","ifalowupload","jindu","toFixed","parseInt","res","beforeUploadpic","split","ifallowvideo","addEventListener","duration","fileId","beforeVideoUpload","routes","e","preventDefault","subdata","span","previewCover","render","__scopeId","_objectSpread","target","i","arguments","source","Object","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","key","_defineProperty","obj","defineProperty","configurable","writable","props","context","p","attrs","AntdIcon","displayName","inheritAttrs","$","toAbsoluteIndex","toInteger","toLength","toObject","arraySpeciesCreate","createProperty","arrayMethodHasSpeciesSupport","arrayMethodUsesToLength","HAS_SPECIES_SUPPORT","USES_TO_LENGTH","ACCESSORS","0","1","max","Math","min","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","proto","forced","start","deleteCount","insertCount","actualDeleteCount","A","k","from","to","O","this","len","actualStart","argumentsLength","TypeError","isObject","isArray","toIndexedObject","wellKnownSymbol","SPECIES","nativeSlice","end","Constructor","result","n","fin","undefined","constructor","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QN,GAAa5B,EAAI+B,EAAMnB,EAAG,IACvEkB,EAAI,EAAGlB,EAAImB,EAAKnB,IAAKkB,IAASlB,KAAKG,GAAGvB,EAAeqC,EAAQC,EAAGf,EAAEH,IAEvE,OADAiB,EAAOxI,OAASyI,EACTD","file":"js/chunk-737c53fe.6e2ffa92.js","sourcesContent":["\n\n","\nimport { defineComponent, onMounted, reactive, Ref, ref, toRaw } from \"vue\";\nimport { PlaySquareOutlined, PlusOutlined } from \"@ant-design/icons-vue\";\nimport NavBottom from \"@/components/NavBottom.vue\";\nimport { previewCover, provenimg, provenvideo } from \"@/utils/common\";\nimport { FromSend, ImgInfo, VideoInfo } from \"@/types\";\nimport { uploadflie } from \"@/utils/vod\";\nimport { setvideo, videoadd, videodetail } from \"@/api\";\nimport { useRoute } from \"vue-router\";\nimport { message } from \"ant-design-vue\";\nimport { useI18n } from \"@/utils/i18n\";\n\nexport default defineComponent({\n name: \"ReleaseWebcast\",\n components: {\n PlaySquareOutlined,\n PlusOutlined,\n NavBottom,\n },\n setup() {\n let issum= true;\n const lan: any = useI18n();\n interface FileItem {\n video: Array;\n }\n const fileList: Array = [];\n\n // 表单数据\n const form = ref({\n title: \"\",\n img: \"\",\n fileid: \"\",\n fileurl: \"\",\n fileduration: \"\",\n desc: \"\",\n video: [\"\"],\n });\n onMounted(async () => {\n if (useRoute().query.id) {\n console.log(useRoute().query.id, \"knijkdbj\");\n form.value = await videodetail(useRoute().query.id, 1);\n console.log(form.value, \"fornm\");\n }\n });\n\n // 是否显示封面预览 封面的路径\n const viewCover: Ref = ref(false),\n previewImage: Ref = ref(\"\");\n /**\n * 封面改变触发事件\n */\n function coverChange(info: ImgInfo): void {\n // console.log(info);\n // 获取预览图片\n previewCover(info.file).then((url) => (previewImage.value = url));\n viewCover.value = true;\n // form.cover = fileList;\n }\n\n /**\n * 上传封面之前的钩子\n * @param file 上传的文件\n */\n const beforeCoverUpload = (file: File): boolean => {\n console.log(file);\n const type = provenimg(file.name);\n if(!type){\n message.error(\"请重新选择\")\n }\n return false;\n };\n\n /**\n * 删除封面\n */\n function cancelCover(file: number): void {\n console.log(file);\n }\n /**\n * 删除视频列表\n * @param index 删除文件的索引\n */\n function removeFile(index: number): void {\n const newFileList = form.value.video.slice();\n newFileList.splice(index, 1);\n form.value.video = newFileList;\n }\n\n /**\n * 上传图片\n */\n const uploadpicprogress: Ref = ref(0);\n const videofile = ref();\n const videos = ref>([]);\n const ifalowupload = ref(false);\n interface AntUpload {\n action: string;\n data: unknown;\n file: File;\n }\n async function uploadspic(file: AntUpload) {\n \n const res = await uploadflie(file.file, (info: any) => {\n console.log(info);\n let jindu: number = info.percent.toFixed(2) * 100;\n jindu = parseInt(jindu + \"\");\n uploadpicprogress.value = jindu || 1;\n });\n console.log(res);\n form.value.img = res.video.url;\n \n }\n\n function beforeUploadpic(info?: any) {\n console.log(info);\n if (info.type.split(\"/\")[0] != \"image\") {\n message.error(lan.$t(\"fengmiangeshi\"));\n ifalowupload.value = false;\n return;\n } else {\n ifalowupload.value = true;\n }\n }\n\n /**\n * 上传视频\n */\n const uploadprogress: Ref = ref(0);\n const ifallowvideo = ref(false);\n async function uploads(file: AntUpload) {\n issum = false;\n console.log(file);\n videofile.value = file.file;\n uploadprogress.value = 1;\n videos.value[0].addEventListener(\"durationchange\", () => {\n console.log(videos.value[0].duration);\n form.value.fileduration = videos.value[0].duration;\n });\n const res = await uploadflie(file.file, (info: any) => {\n console.log(info);\n const jindu = info.percent.toFixed(2) * 100\n uploadprogress.value = jindu > 0 ? jindu : 1;\n });\n console.log(res);\n\n form.value.fileid = res.fileId;\n form.value.fileurl = res.video.url;\n issum = true;\n } \n\n function beforeVideoUpload(info?: any) {\n console.log(info);\n if (info.type.split(\"/\")[0] != \"video\") {\n ifallowvideo.value;\n message.error(lan.$t(\"wenjiangeshi\"));\n } else {\n ifallowvideo.value = true;\n }\n }\n\n /**\n * 表单提交\n */\n const routes = useRoute();\n const onSubmit = async (e: FromSend) => {\n if(!issum){\n message.error(lan.$t(\"shangchuanwancheng\"))\n return; \n }\n e.preventDefault();\n console.log(toRaw(form.value), 111);\n console.log(toRaw(form.value).video[0].length);\n\n console.log(routes.query, \"adsadsa\");\n const subdata = toRaw(form.value);\n if (subdata.title == \"\") {\n message.error(lan.$t(\"biaotiweikong\"));\n return;\n } else if (subdata.img == \"\") {\n message.error(lan.$t(\"fengmianweikong\"));\n return;\n } else if (subdata.fileurl == \"\") {\n message.error(lan.$t(\"wenjianweikong\"));\n } else {\n if (routes.query.id) {\n form.value.id = routes.query.id;\n console.log(\"edi\");\n setvideo(form.value);\n } else {\n videoadd(form, toRaw(form.value));\n }\n // videoadd(form, toRaw(form.value));\n }\n\n // videoadd(form, toRaw(form.value));\n };\n function beforeUpload(info?: any) {\n console.log(info);\n if (info.type.split(\"/\")[0] != \"video\") {\n ifallowvideo.value = false;\n message.error(lan.$t(\"shipinjieshaoccuowu\"));\n return;\n } else {\n ifallowvideo.value = true;\n }\n }\n function video(file: any){\n return provenvideo(file, true)\n }\n function imgs(file: any){\n return provenimg(file)\n }\n \n\n return {\n labelCol: { span: 4 },\n wrapperCol: { span: 14 },\n form,\n viewCover,\n previewImage,\n previewCover,\n coverChange,\n cancelCover,\n beforeCoverUpload,\n onSubmit,\n uploadpicprogress,\n uploadspic,\n uploadprogress,\n uploads,\n videofile,\n videos,\n removeFile,\n beforeUpload,\n ifalowupload,\n beforeVideoUpload,\n lan,\n beforeUploadpic,\n video,\n imgs\n };\n },\n});\n","import { render } from \"./ReleaseVideo.vue?vue&type=template&id=7910b216&scoped=true&bindings={}\"\nimport script from \"./ReleaseVideo.vue?vue&type=script&lang=ts\"\nexport * from \"./ReleaseVideo.vue?vue&type=script&lang=ts\"\n\nimport \"./ReleaseVideo.vue?vue&type=style&index=0&id=7910b216&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-7910b216\"\n\nexport default script","// This icon file is generated automatically.\nvar PlusOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"defs\", \"attrs\": {}, \"children\": [{ \"tag\": \"style\", \"attrs\": {} }] }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z\" } }] }, \"name\": \"plus\", \"theme\": \"outlined\" };\nexport default PlusOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport PlusOutlinedSvg from \"@ant-design/icons-svg/es/asn/PlusOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar PlusOutlined = function PlusOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": PlusOutlinedSvg\n }), null);\n};\n\nPlusOutlined.displayName = 'PlusOutlined';\nPlusOutlined.inheritAttrs = false;\nexport default PlusOutlined;","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ReleaseVideo.vue?vue&type=style&index=0&id=7910b216&lang=scss&scoped=true\"","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n"],"sourceRoot":""}