@ -1,5 +1,5 @@
"use strict" ;
( self [ "webpackChunk" ] = self [ "webpackChunk" ] || [ ] ) . push ( [ [ 292 , 39547, 34893 , 41165 ] , {
( self [ "webpackChunk" ] = self [ "webpackChunk" ] || [ ] ) . push ( [ [ 292 , 2805, 34893 , 86618 , 41165 ] , {
/***/ 37318 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
@ -123,6 +123,476 @@ var DigitalLabel = function DigitalLabel(_ref) {
/***/ } ) ,
/***/ 86618 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / components / MultiUpload / index . tsx + 3 modules * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
z : function ( ) { return /* binding */ coverToFileList ; } ,
Z : function ( ) { return /* binding */ MultiUpload ; }
} ) ;
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = _ _webpack _require _ _ ( 7557 ) ;
var regeneratorRuntime _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( regeneratorRuntime ) ;
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = _ _webpack _require _ _ ( 41498 ) ;
var asyncToGenerator _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( asyncToGenerator ) ;
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = _ _webpack _require _ _ ( 82242 ) ;
var objectSpread2 _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( objectSpread2 ) ;
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = _ _webpack _require _ _ ( 37205 ) ;
var toConsumableArray _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( toConsumableArray ) ;
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = _ _webpack _require _ _ ( 79800 ) ;
var slicedToArray _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( slicedToArray ) ;
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react _17 _0 _2 _react = _ _webpack _require _ _ ( 59301 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
var upload = _ _webpack _require _ _ ( 60028 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var es _message = _ _webpack _require _ _ ( 8591 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = _ _webpack _require _ _ ( 43418 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es _button = _ _webpack _require _ _ ( 3113 ) ;
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = _ _webpack _require _ _ ( 69423 ) ;
// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts
var service = _ _webpack _require _ _ ( 64602 ) ;
// EXTERNAL MODULE: ./src/assets/images/uploadImg.svg
var images _uploadImg = _ _webpack _require _ _ ( 43929 ) ;
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx _runtime = _ _webpack _require _ _ ( 37712 ) ;
; // CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx
var uploadNameSizeSeperator = ' ' ;
function bytesToSize ( bytes ) {
var sizes = [ 'Bytes' , 'KB' , 'MB' , 'GB' , 'TB' ] ;
if ( bytes == 0 ) return '0 Byte' ;
var i = parseInt ( '' + Math . floor ( Math . log ( bytes ) / Math . log ( 1024 ) ) , 10 ) ;
return ( bytes / Math . pow ( 1024 , i ) ) . toFixed ( 1 ) + ' ' + sizes [ i ] ;
}
/* harmony default export */ var SingleUpload = ( function ( _ref ) {
var _ref$value = _ref . value ,
value = _ref$value === void 0 ? [ ] : _ref$value ,
action = _ref . action ,
_onChange = _ref . onChange ,
className = _ref . className ,
_ref$maxSize = _ref . maxSize ,
maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize ,
_ref$title = _ref . title ,
title = _ref$title === void 0 ? '文件上传' : _ref$title ,
_ref$accept = _ref . accept ,
accept = _ref$accept === void 0 ? null : _ref$accept ,
_ref$tip = _ref . tip ,
tip = _ref$tip === void 0 ? undefined : _ref$tip ;
var uploadProps = {
multiple : false ,
fileList : value ,
accept : accept ,
withCredentials : true ,
beforeUpload : function beforeUpload ( file ) {
var fileSize = file . size / 1024 / 1024 ;
if ( ! ( fileSize < maxSize ) ) {
message . error ( "\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(" . concat ( maxSize , "MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20" ) ) ;
return Promise . reject ( ) ;
}
return true ;
} ,
action : "" . concat ( ENV . API _SERVER , "/api/attachments.json" ) ,
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange : function onChange ( info ) {
var _info$file ;
var fileList = _toConsumableArray ( info . fileList ) ;
fileList = fileList . map ( function ( file ) {
if ( file . name . indexOf ( uploadNameSizeSeperator ) === - 1 ) {
file . name = "" . concat ( file . name ) . concat ( uploadNameSizeSeperator ) . concat ( bytesToSize ( file . size ) ) ;
}
return _objectSpread ( { } , file ) ;
} ) ;
if ( info . file . status === 'done' && ( ( _info$file = info . file ) === null || _info$file === void 0 || ( _info$file = _info$file . response ) === null || _info$file === void 0 ? void 0 : _info$file . status ) === - 1 ) {
var _info$file2 ;
message . error ( ( _info$file2 = info . file ) === null || _info$file2 === void 0 || ( _info$file2 = _info$file2 . response ) === null || _info$file2 === void 0 ? void 0 : _info$file2 . message ) ;
_onChange ( [ ] ) ;
return ;
}
_onChange ( fileList ) ;
} ,
onRemove : function ( ) {
var _onRemove = _asyncToGenerator ( /*#__PURE__*/ _regeneratorRuntime ( ) . mark ( function _callee ( file ) {
var fileSize , id , rs ;
return _regeneratorRuntime ( ) . wrap ( function _callee$ ( _context ) {
while ( 1 ) switch ( _context . prev = _context . next ) {
case 0 :
fileSize = file . size / 1024 / 1024 ;
if ( ! ( file . status === 'uploading' ) ) {
_context . next = 3 ;
break ;
}
return _context . abrupt ( "return" , true ) ;
case 3 :
if ( fileSize < maxSize ) {
_context . next = 7 ;
break ;
}
return _context . abrupt ( "return" , true ) ;
case 7 :
id = file . response ? file . response . id : file . uid ;
if ( ! id ) {
_context . next = 15 ;
break ;
}
_context . next = 11 ;
return removeAttachment ( file . response ? file . response . id : file . id ) ;
case 11 :
rs = _context . sent ;
return _context . abrupt ( "return" , rs ) ;
case 15 :
return _context . abrupt ( "return" , true ) ;
case 16 :
case "end" :
return _context . stop ( ) ;
}
} , _callee ) ;
} ) ) ;
function onRemove ( _x ) {
return _onRemove . apply ( this , arguments ) ;
}
return onRemove ;
} ( )
} ;
function onCancel ( e ) {
e . preventDefault ( ) ;
e . stopPropagation ( ) ;
}
return /*#__PURE__*/ _jsx ( "div" , {
className : "single-upload " . concat ( className ? className : '' ) ,
children : /*#__PURE__*/ _jsxs ( Upload , _objectSpread ( _objectSpread ( { } , uploadProps ) , { } , {
children : [ /*#__PURE__*/ _jsxs ( Button
// type="primary"
, {
title : value . length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '' ,
disabled : value . length > 0
// ghost
,
className : "upload_button" ,
children : [ /*#__PURE__*/ _jsx ( "img" , {
className : "aBtn_img" ,
src : uploadImg
} ) , title ]
} ) , /*#__PURE__*/ _jsx ( "span" , {
onClick : onCancel ,
className : "upload_text" ,
children : tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927" . concat ( maxSize , "M)" )
} ) ]
} ) )
} ) ;
} ) ;
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.0@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules
var InboxOutlined = _ _webpack _require _ _ ( 34023 ) ;
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = _ _webpack _require _ _ ( 89392 ) ;
; // CONCATENATED MODULE: ./src/components/MultiUpload/index.less
// extracted by mini-css-extract-plugin
; // CONCATENATED MODULE: ./src/assets/images/disupload.png
var disupload _namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAT1JREFUSEvtljFOxDAQRT1GSKk4CFwgNGOLhmIrhIAGiQ5atuUAtGwLHRINIERFQYPsacgF4CBUkRAzyKsUq8DGToKonNbz/xtPfkYBNeBxzp0FmbX2vK8c+gqI6JSZL4JOaz1FxFkfj15A7/2xiFwuAgDgxBhzlQpNBhLRoYhci4huARkAjhDxJgWaBCSiXWa+VUqtLDH90lofIOJDDBoFEtFERB5FZLXLDAA+AWAHEZ8667oOvfdbIhIMiljnzXkNABNjzMuy+ugN20IiWmfmtyalG4j4ntjMvCwDf0wrjzQWoP8PjXNOmq72rbX3sQ6HvEPn3J5S6m7+WWTgX2yaPNLOoOaU/jaeUaGpqmqtruvtYFwUxXNZlh+xZTEKGDPvc8Pwr/k6xDBBs6mUmrZXW4JufMniLh3vluDwDTtJLJ7BMSj1AAAAAElFTkSuQmCC" ;
; // CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx
var Dragger = upload /* default */ . Z . Dragger ;
function coverToFileList ( data ) {
var rs = [ ] ;
if ( data && data . length > 0 ) {
rs = data . map ( function ( item ) {
return {
uid : item . id ,
id : item . id ,
name : item . title + uploadNameSizeSeperator + item . filesize ,
url : item . url ,
filesize : item . filesize ,
status : 'done' ,
response : {
id : item . id
}
} ;
} ) ;
}
return rs ;
}
/* harmony default export */ var MultiUpload = ( function ( _ref ) {
var value = _ref . value ,
_onChange = _ref . onChange ,
action = _ref . action ,
data = _ref . data ,
className = _ref . className ,
_ref$maxSize = _ref . maxSize ,
maxSize = _ref$maxSize === void 0 ? 5 : _ref$maxSize ,
_ref$title = _ref . title ,
title = _ref$title === void 0 ? '上传附件' : _ref$title ,
_ref$showRemoveModal = _ref . showRemoveModal ,
showRemoveModal = _ref$showRemoveModal === void 0 ? false : _ref$showRemoveModal ,
_ref$accept = _ref . accept ,
accept = _ref$accept === void 0 ? '' : _ref$accept ,
additionalText = _ref . additionalText ,
isDragger = _ref . isDragger ,
_ref$number = _ref . number ,
number = _ref$number === void 0 ? 1000 : _ref$number ,
_ref$aloneClear = _ref . aloneClear ,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear ,
_ref$tip = _ref . tip ,
tip = _ref$tip === void 0 ? '' : _ref$tip ,
_ref$tipStyle = _ref . tipStyle ,
tipStyle = _ref$tipStyle === void 0 ? { } : _ref$tipStyle ;
var _useState = ( 0 , _react _17 _0 _2 _react . useState ) ( false ) ,
_useState2 = slicedToArray _default ( ) ( _useState , 2 ) ,
disabled = _useState2 [ 0 ] ,
setDisabled = _useState2 [ 1 ] ;
var _useState3 = ( 0 , _react _17 _0 _2 _react . useState ) ( value || [ ] ) ,
_useState4 = slicedToArray _default ( ) ( _useState3 , 2 ) ,
fileList = _useState4 [ 0 ] ,
setFileList = _useState4 [ 1 ] ;
var _useState5 = ( 0 , _react _17 _0 _2 _react . useState ) ( 1 ) ,
_useState6 = slicedToArray _default ( ) ( _useState5 , 2 ) ,
nums = _useState6 [ 0 ] ,
setnums = _useState6 [ 1 ] ;
( 0 , _react _17 _0 _2 _react . useEffect ) ( function ( ) {
if ( value ) {
if ( nums === 1 ) {
setFileList ( toConsumableArray _default ( ) ( value ) ) ;
}
setnums ( 2 ) ;
if ( number === ( value === null || value === void 0 ? void 0 : value . length ) ) {
setDisabled ( true ) ;
}
}
} , [ value ] ) ;
var clearLastFile = function clearLastFile ( ) {
setTimeout ( function ( ) {
fileList . pop ( ) ;
setFileList ( toConsumableArray _default ( ) ( fileList ) ) ;
} , 500 ) ;
} ;
var uploadProps = {
multiple : true ,
disabled : false ,
accept : accept ,
withCredentials : true ,
fileList : fileList ,
// fileList: fileList?.length ? fileList : value,
beforeUpload : function beforeUpload ( file , fileArr ) {
var fileSize = file . size / 1024 / 1024 / 1024 ;
if ( fileList . concat ( fileArr ) . length > number ) {
fileList . pop ( ) ;
setFileList ( toConsumableArray _default ( ) ( fileList ) ) ;
es _message /* default */ . ZP . error ( "\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" . concat ( number , "\u4E2A\u6587\u4EF6" ) ) ;
if ( aloneClear ) {
return Promise . reject ( ) ;
}
clearLastFile ( ) ;
return false ;
}
if ( ! ( fileSize < maxSize ) ) {
es _message /* default */ . ZP . error ( "\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(" . concat ( maxSize , "GB)." ) ) ;
if ( aloneClear ) {
return Promise . reject ( ) ;
}
clearLastFile ( ) ;
return false ;
}
return true ;
} ,
data : data ,
action : action || "" . concat ( env /* default */ . Z . API _SERVER , "/api/attachments.json" ) ,
// ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
onChange : function onChange ( info ) {
var _info$file ;
if ( info . file . status === "removed" ) {
fileList = info . fileList ;
} else {
fileList = ( 0 , lodash . uniqBy ) ( [ ] . concat ( toConsumableArray _default ( ) ( info . fileList ) , toConsumableArray _default ( ) ( fileList ) ) , 'uid' ) ;
}
if ( info . file . status === 'done' && ( ( _info$file = info . file ) === null || _info$file === void 0 || ( _info$file = _info$file . response ) === null || _info$file === void 0 ? void 0 : _info$file . status ) === - 1 ) {
var _info$file2 ;
es _message /* default */ . ZP . error ( ( _info$file2 = info . file ) === null || _info$file2 === void 0 || ( _info$file2 = _info$file2 . response ) === null || _info$file2 === void 0 ? void 0 : _info$file2 . message ) ;
return ;
}
if ( fileList . length >= number ) setDisabled ( true ) ; else setDisabled ( false ) ;
setFileList ( toConsumableArray _default ( ) ( fileList ) ) ;
fileList = fileList . map ( function ( file ) {
var _file$response ;
if ( file !== null && file !== void 0 && ( _file$response = file . response ) !== null && _file$response !== void 0 && _file$response . id ) {
var _file$response2 ;
file . url = "/api/attachments/" . concat ( file === null || file === void 0 || ( _file$response2 = file . response ) === null || _file$response2 === void 0 ? void 0 : _file$response2 . id ) ;
}
if ( file . name . indexOf ( uploadNameSizeSeperator ) === - 1 ) {
file . name = "" . concat ( file . name ) . concat ( uploadNameSizeSeperator ) . concat ( bytesToSize ( file . size ) ) ;
}
return objectSpread2 _default ( ) ( { } , file ) ;
} ) ;
console . log ( 'info:' , info , fileList ) ;
_onChange ( fileList ) ;
} ,
onRemove : function ( ) {
var _onRemove = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee3 ( file ) {
var remove ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee3$ ( _context3 ) {
while ( 1 ) switch ( _context3 . prev = _context3 . next ) {
case 0 :
remove = /*#__PURE__*/ function ( ) {
var _ref2 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee ( ) {
var id , rs ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee$ ( _context ) {
while ( 1 ) switch ( _context . prev = _context . next ) {
case 0 :
id = file . response ? file . response . id : file . id ;
if ( ! id ) {
_context . next = 8 ;
break ;
}
_context . next = 4 ;
return ( 0 , service /* removeAttachment */ . JZ ) ( file . response ? file . response . id : file . uid ) ;
case 4 :
rs = _context . sent ;
return _context . abrupt ( "return" , Promise . resolve ( rs ) ) ;
case 8 :
return _context . abrupt ( "return" , true ) ;
case 9 :
case "end" :
return _context . stop ( ) ;
}
} , _callee ) ;
} ) ) ;
return function remove ( ) {
return _ref2 . apply ( this , arguments ) ;
} ;
} ( ) ;
if ( ! showRemoveModal ) {
_context3 . next = 5 ;
break ;
}
return _context3 . abrupt ( "return" , new Promise ( function ( resolve , reject ) {
modal /* default */ . Z . confirm ( {
centered : true ,
width : 530 ,
okText : '确定' ,
cancelText : '取消' ,
title : '提示' ,
content : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
className : "tc font16" ,
children : "\u662F\u5426\u786E\u8BA4\u5220\u9664?"
} ) ,
onOk : function ( ) {
var _onOk = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee2 ( ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee2$ ( _context2 ) {
while ( 1 ) switch ( _context2 . prev = _context2 . next ) {
case 0 :
_context2 . next = 2 ;
return remove ( ) ;
case 2 :
res = _context2 . sent ;
es _message /* default */ . ZP . success ( '删除成功' ) ;
resolve ( true ) ;
case 5 :
case "end" :
return _context2 . stop ( ) ;
}
} , _callee2 ) ;
} ) ) ;
function onOk ( ) {
return _onOk . apply ( this , arguments ) ;
}
return onOk ;
} ( ) ,
onCancel : function onCancel ( ) {
return resolve ( false ) ;
}
} ) ;
} ) ) ;
case 5 :
_context3 . next = 7 ;
return remove ( ) ;
case 7 :
return _context3 . abrupt ( "return" , _context3 . sent ) ;
case 8 :
case "end" :
return _context3 . stop ( ) ;
}
} , _callee3 ) ;
} ) ) ;
function onRemove ( _x ) {
return _onRemove . apply ( this , arguments ) ;
}
return onRemove ;
} ( )
} ;
function onCancel ( e ) {
e . preventDefault ( ) ;
e . stopPropagation ( ) ;
}
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : "multi-upload " . concat ( className ? className : '' ) ,
children : [ isDragger && /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( Dragger , objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , uploadProps ) , { } , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "p" , {
className : "ant-upload-drag-icon" ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( InboxOutlined /* default */ . Z , { } )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "p" , {
className : "ant-upload-text" ,
children : [ "\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64" , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "br" , { } ) , "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A" , maxSize , "MB)" , ' ' ]
} ) , additionalText ]
} ) ) , ! isDragger && /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( upload /* default */ . Z , objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , uploadProps ) , { } , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( es _button /* default */ . ZP , {
disabled : disabled ,
className : disabled ? 'disable_upload_button' : 'upload_button' ,
title : disabled ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '' ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
className : "aBtn_img" ,
src : ! disabled ? images _uploadImg /* default */ . Z : disupload _namespaceObject
} ) , title ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
onClick : onCancel ,
className : "upload_text" ,
style : objectSpread2 _default ( ) ( { } , tipStyle ) ,
children : tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927" . concat ( maxSize , "GB)" )
} ) ]
} ) ) ]
} ) ;
} ) ;
/***/ } ) ,
/***/ 41165 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / components / ReuseShixunModal / index . tsx + 1 modules * * * !
@ -4942,13 +5412,17 @@ var ShixunEditor_DragQuestions = function DragQuestions(_ref) {
/* harmony default export */ var ShixunEditor = ( ShixunEditor _DragQuestions ) ;
; // CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/components/Saveitem.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Saveitemmodules = ( { "flex_box_center" : "flex_box_center___Vhtb1" , "flex_space_between" : "flex_space_between___k2ZrJ" , "flex_box_vertical_center" : "flex_box_vertical_center___tn6Db" , "flex_box_center_end" : "flex_box_center_end___k3eNX" , "flex_box_column" : "flex_box_column___rsWbi" , "flex-col" : "flex-col___MfhxN" , "flex-row" : "flex-row___stOVW" , "justify-start" : "justify-start___DaYLB" , "justify-center" : "justify-center___ZxLhv" , "justify-end" : "justify-end___wdBQg" , "justify-evenly" : "justify-evenly___zzTLC" , "justify-around" : "justify-around___vioji" , "justify-between" : "justify-between___OoRZf" , "align-start" : "align-start___XgM_n" , "align-center" : "align-center___aHseL" , "align-end" : "align-end___udJzu" , "warp" : "warp___UlRJc" , "normalWrap" : "normalWrap___Qm4zY" , "indexTag" : "indexTag___rjJ1u" , "redio" : "redio___VW3yr" , "redioitem" : "redioitem___jAPlJ" , "redioitemyes" : "redioitemyes___VoiQ1" , "title" : "title___Dt2dl" , "titleyes" : "titleyes___Fjh3a" , "yestag" : "yestag___CXrPv" , "checkbox" : "checkbox___CgMU_" , "checkboxitem" : "checkboxitem___PpJ9n" , "checkboxitemyes" : "checkboxitemyes___pCfvZ" , "bottom" : "bottom___BqrmJ" , "bottomitem" : "bottomitem___Qk2rG" , "left" : "left___l29lW" , "right" : "right___nB1XE" , "completion" : "completion___y1m7L" , "content" : "content___AmQy4" , "items" : "items___lIt8e" , "simple" : "simple___zxJLH" , "shixunWrapper" : "shixunWrapper___kAYdL" , "shixun" : "shixun___UE6xS" , "score" : "score___Px5Fq" , "qtitle" : "qtitle___wG7Nn" , "program" : "program___gzKdL" , "combination" : "combination___R0ysn" , "qtype" : "qtype___U0Suy" }) ;
/* harmony default export */ var Saveitemmodules = ( { "flex_box_center" : "flex_box_center___Vhtb1" , "flex_space_between" : "flex_space_between___k2ZrJ" , "flex_box_vertical_center" : "flex_box_vertical_center___tn6Db" , "flex_box_center_end" : "flex_box_center_end___k3eNX" , "flex_box_column" : "flex_box_column___rsWbi" , "flex-col" : "flex-col___MfhxN" , "flex-row" : "flex-row___stOVW" , "justify-start" : "justify-start___DaYLB" , "justify-center" : "justify-center___ZxLhv" , "justify-end" : "justify-end___wdBQg" , "justify-evenly" : "justify-evenly___zzTLC" , "justify-around" : "justify-around___vioji" , "justify-between" : "justify-between___OoRZf" , "align-start" : "align-start___XgM_n" , "align-center" : "align-center___aHseL" , "align-end" : "align-end___udJzu" , "warp" : "warp___UlRJc" , "normalWrap" : "normalWrap___Qm4zY" , "indexTag" : "indexTag___rjJ1u" , "redio" : "redio___VW3yr" , "redioitem" : "redioitem___jAPlJ" , "redioitemyes" : "redioitemyes___VoiQ1" , "title" : "title___Dt2dl" , "titleyes" : "titleyes___Fjh3a" , "yestag" : "yestag___CXrPv" , "checkbox" : "checkbox___CgMU_" , "checkboxitem" : "checkboxitem___PpJ9n" , "checkboxitemyes" : "checkboxitemyes___pCfvZ" , "bottom" : "bottom___BqrmJ" , "bottomitem" : "bottomitem___Qk2rG" , "left" : "left___l29lW" , "right" : "right___nB1XE" , "completion" : "completion___y1m7L" , "content" : "content___AmQy4" , "items" : "items___lIt8e" , "simple" : "simple___zxJLH" , "shixunWrapper" : "shixunWrapper___kAYdL" , "shixun" : "shixun___UE6xS" , "score" : "score___Px5Fq" , "qtitle" : "qtitle___wG7Nn" , "program" : "program___gzKdL" , "combination" : "combination___R0ysn" , "qtype" : "qtype___U0Suy" ,"fileCss" : "fileCss___Lje_V" , "file_icon" : "file_icon___itb3n" , "filet_title" : "filet_title___Uo5Cg" , "file_size" : "file_size___V5XAW" }) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = _ _webpack _require _ _ ( 95237 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = _ _webpack _require _ _ ( 43604 ) ;
// EXTERNAL MODULE: ./node_modules/_js-base64@2.6.4@js-base64/base64.js
var base64 = _ _webpack _require _ _ ( 24334 ) ;
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = _ _webpack _require _ _ ( 97672 ) ;
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.0@@ant-design/icons/es/icons/PaperClipOutlined.js + 1 modules
var PaperClipOutlined = _ _webpack _require _ _ ( 94041 ) ;
; // CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/components/SaveItem.tsx
@ -4957,11 +5431,60 @@ var base64 = __webpack_require__(24334);
//数组对应值
var tagDotData = [ 'A. ' , 'B. ' , 'C. ' , 'D. ' , 'E. ' , 'F. ' , 'G. ' , 'H. ' , 'I. ' , 'J. ' , 'K. ' , 'L. ' , 'M. ' , 'N. ' , 'O. ' , 'P. ' , 'Q. ' , 'R. ' , 'S. ' , 'T. ' , 'U. ' , 'V. ' , 'W. ' , 'X. ' , 'Y. ' , 'Z. ' ] ;
var SaveItem _DragQuestions = function DragQuestions ( _ref ) {
var _qitem$question _choic , _qitem$question _choic2 , _qitem$standard _answe , _qitem$standard _answe2 , _qitem$shixun , _qitem$sub _exercise _q , _qitem$program _attr , _qitem$tag _discipline , _qitem$tag _discipline2 , _qitem$tag _discipline3 , _qitem$tag _discipline4 ;
var _qitem$question _choic , _qitem$question _choic2 , _qitem$standard _answe , _qitem$ attachments, _qitem$attachments4 , _qitem$attachments5 , _qitem$ standard_answe2 , _qitem$shixun , _qitem$sub _exercise _q , _qitem$program _attr , _qitem$tag _discipline , _qitem$tag _discipline2 , _qitem$tag _discipline3 , _qitem$tag _discipline4 ;
var qitem = _ref . qitem ;
var monacoValueRef = ( 0 , _react _17 _0 _2 _react . useRef ) ( ) ;
var _useState = ( 0 , _react _17 _0 _2 _react . useState ) ( {
content : "" ,
type : ""
} ) ,
_useState2 = slicedToArray _default ( ) ( _useState , 2 ) ,
previewData = _useState2 [ 0 ] ,
setPreviewData = _useState2 [ 1 ] ;
var preview = /*#__PURE__*/ function ( ) {
var _ref2 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee ( item ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee$ ( _context ) {
while ( 1 ) switch ( _context . prev = _context . next ) {
case 0 :
if ( ! ( ( item === null || item === void 0 ? void 0 : item . file _type ) === "txt" ) ) {
_context . next = 5 ;
break ;
}
_context . next = 3 ;
return ( 0 , fetch /* default */ . ZP ) ( item === null || item === void 0 ? void 0 : item . url , {
method : "get" ,
headers : {
"Content-Type" : "application/xml"
}
} ) ;
case 3 :
res = _context . sent ;
monacoValueRef . current = res ;
case 5 :
setPreviewData ( {
type : item === null || item === void 0 ? void 0 : item . file _type ,
content : item === null || item === void 0 ? void 0 : item . url
} ) ;
case 6 :
case "end" :
return _context . stop ( ) ;
}
} , _callee ) ;
} ) ) ;
return function preview ( _x ) {
return _ref2 . apply ( this , arguments ) ;
} ;
} ( ) ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Saveitemmodules . warp ,
children : [ ( ( qitem === null || qitem === void 0 ? void 0 : qitem . question _type ) === 0 || ( qitem === null || qitem === void 0 ? void 0 : qitem . question _type ) === 2 ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
@ -5033,7 +5556,26 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
} )
} ) , ( qitem === null || qitem === void 0 ? void 0 : qitem . question _type ) === 4 && /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Saveitemmodules . simple ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
children : [ ( qitem === null || qitem === void 0 || ( _qitem$attachments = qitem . attachments ) === null || _qitem$attachments === void 0 ? void 0 : _qitem$attachments . length ) > 0 && /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Saveitemmodules . fileCss ,
onClick : function onClick ( ) {
var _qitem$attachments2 ;
if ( qitem !== null && qitem !== void 0 && ( _qitem$attachments2 = qitem . attachments ) !== null && _qitem$attachments2 !== void 0 && ( _qitem$attachments2 = _qitem$attachments2 [ 0 ] ) !== null && _qitem$attachments2 !== void 0 && _qitem$attachments2 . url ) {
var _qitem$attachments3 ;
preview ( qitem === null || qitem === void 0 || ( _qitem$attachments3 = qitem . attachments ) === null || _qitem$attachments3 === void 0 ? void 0 : _qitem$attachments3 [ 0 ] ) ;
}
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : Saveitemmodules . file _icon ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( PaperClipOutlined /* default */ . Z , { } )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : Saveitemmodules . filet _title ,
children : qitem === null || qitem === void 0 || ( _qitem$attachments4 = qitem . attachments ) === null || _qitem$attachments4 === void 0 || ( _qitem$attachments4 = _qitem$attachments4 [ 0 ] ) === null || _qitem$attachments4 === void 0 ? void 0 : _qitem$attachments4 . title
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : Saveitemmodules . file _size ,
children : qitem === null || qitem === void 0 || ( _qitem$attachments5 = qitem . attachments ) === null || _qitem$attachments5 === void 0 || ( _qitem$attachments5 = _qitem$attachments5 [ 0 ] ) === null || _qitem$attachments5 === void 0 ? void 0 : _qitem$attachments5 . filesize
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : Saveitemmodules . title ,
children : "\u53C2\u8003\u7B54\u6848"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( RenderHtml /* default */ . Z , {
@ -5144,6 +5686,30 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
} )
} ) ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( PreviewAll /* default */ . Z , {
close : true ,
data : previewData === null || previewData === void 0 ? void 0 : previewData . content ,
type : previewData === null || previewData === void 0 ? void 0 : previewData . type ,
hasMask : true ,
monacoEditor : {
value : monacoValueRef . current ,
language : "txt" ,
onChange : function onChange ( ) { } ,
options : {
readOnly : true ,
fontSize : 14 ,
minimap : {
enabled : false
}
}
} ,
onImgDimensions : null ,
onClose : function onClose ( ) {
setPreviewData ( {
content : "" ,
type : ""
} ) ;
}
} ) ]
} ) ;
} ;
@ -5152,6 +5718,8 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
var UploadQuestions = _ _webpack _require _ _ ( 41351 ) ;
// EXTERNAL MODULE: ./src/components/QuestionEditor/SubjectiveQuestionEditor.tsx
var SubjectiveQuestionEditor = _ _webpack _require _ _ ( 25218 ) ;
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = _ _webpack _require _ _ ( 86618 ) ;
; // CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/components/Questions/SubjectiveQuestionEditor.tsx
@ -5164,6 +5732,7 @@ var SubjectiveQuestionEditor = __webpack_require__(25218);
var SubjectiveQuestionEditor _DragQuestions = function DragQuestions ( _ref ) {
var _exerciseitem$exercis ;
var qitem = _ref . qitem ,
@ -5181,7 +5750,8 @@ var SubjectiveQuestionEditor_DragQuestions = function DragQuestions(_ref) {
form . setFieldsValue ( objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , qitem ) , { } , {
name : qitem . question _title ,
answer _texts : qitem . standard _answer ,
repeat _answer : ! qitem . repeat _answer
repeat _answer : ! qitem . repeat _answer ,
attachment _ids : ( 0 , MultiUpload /* coverToFileList */ . z ) ( qitem === null || qitem === void 0 ? void 0 : qitem . attachments )
} ) ) ;
} , [ qitem ] ) ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
@ -5189,6 +5759,11 @@ var SubjectiveQuestionEditor_DragQuestions = function DragQuestions(_ref) {
form : form ,
colon : false ,
onFinish : function onFinish ( values ) {
var _values$attachment _id ;
values . attachment _ids = values === null || values === void 0 || ( _values$attachment _id = values . attachment _ids ) === null || _values$attachment _id === void 0 ? void 0 : _values$attachment _id . map ( function ( item ) {
var _item$response ;
return item === null || item === void 0 || ( _item$response = item . response ) === null || _item$response === void 0 ? void 0 : _item$response . id ;
} ) ;
seveeditor ( objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , qitem ) , values ) , { } , {
standard _answers : values === null || values === void 0 ? void 0 : values . answer _texts ,
question _title : values === null || values === void 0 ? void 0 : values . name
@ -9399,6 +9974,64 @@ var UploadQuestions = function UploadQuestions(_ref) {
/***/ } ) ,
/***/ 64602 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / pages / MoopCases / FormPanel / service . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
/* harmony export */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
/* harmony export */ $J : function ( ) { return /* binding */ getMoopCase ; } ,
/* harmony export */ JZ : function ( ) { return /* binding */ removeAttachment ; } ,
/* harmony export */ bN : function ( ) { return /* binding */ updateMoopCase ; } ,
/* harmony export */ jP : function ( ) { return /* binding */ addMoopCase ; } ,
/* harmony export */ rO : function ( ) { return /* binding */ getLibraryTags ; }
/* harmony export */ } ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557 ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _asyncToGenerator _js _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498 ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _asyncToGenerator _js _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _asyncToGenerator _js _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @/utils/fetch */ 82710 ) ;
function getMoopCase ( id ) {
return ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ /* .get */ . U2 ) ( "libraries/" . concat ( id , ".json" ) ) ;
}
function getLibraryTags ( ) {
return ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ /* .get */ . U2 ) ( 'library_tags.json' ) ;
}
function removeAttachment ( _x ) {
return _removeAttachment . apply ( this , arguments ) ;
}
function _removeAttachment ( ) {
_removeAttachment = _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _asyncToGenerator _js _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) ( /*#__PURE__*/ _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) ( ) . mark ( function _callee ( id ) {
var response ;
return _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) ( ) . wrap ( function _callee$ ( _context ) {
while ( 1 ) switch ( _context . prev = _context . next ) {
case 0 :
_context . next = 2 ;
return ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ /* .del */ . IV ) ( "attachments/" . concat ( id , ".json" ) ) ;
case 2 :
response = _context . sent ;
return _context . abrupt ( "return" , response . status === 0 ) ;
case 4 :
case "end" :
return _context . stop ( ) ;
}
} , _callee ) ;
} ) ) ;
return _removeAttachment . apply ( this , arguments ) ;
}
function addMoopCase ( params ) {
return ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ /* .post */ . v _ ) ( "libraries.json" , params ) ;
}
function updateMoopCase ( id , params ) {
return ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _2 _ _ /* .put */ . gz ) ( "libraries/" . concat ( id , ".json" ) , params ) ;
}
/***/ } ) ,
/***/ 20211 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / pages / Paperlibrary / Add / TitleEditor . tsx * * * !
@ -9679,6 +10312,64 @@ var SvgShengxu = function SvgShengxu(props) {
/***/ } ) ,
/***/ 43929 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / assets / images / uploadImg . svg * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
/* unused harmony export ReactComponent */
/* harmony import */ var react _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! react */ 59301 ) ;
function _createForOfIteratorHelper ( o , allowArrayLike ) { var it = typeof Symbol !== "undefined" && o [ Symbol . iterator ] || o [ "@@iterator" ] ; if ( ! it ) { if ( Array . isArray ( o ) || ( it = _unsupportedIterableToArray ( o ) ) || allowArrayLike && o && typeof o . length === "number" ) { if ( it ) o = it ; var i = 0 ; var F = function F ( ) { } ; return { s : F , n : function n ( ) { if ( i >= o . length ) return { done : true } ; return { done : false , value : o [ i ++ ] } ; } , e : function e ( _e ) { throw _e ; } , f : F } ; } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ; } var normalCompletion = true , didErr = false , err ; return { s : function s ( ) { it = it . call ( o ) ; } , n : function n ( ) { var step = it . next ( ) ; normalCompletion = step . done ; return step ; } , e : function e ( _e2 ) { didErr = true ; err = _e2 ; } , f : function f ( ) { try { if ( ! normalCompletion && it [ "return" ] != null ) it [ "return" ] ( ) ; } finally { if ( didErr ) throw err ; } } } ; }
function _unsupportedIterableToArray ( o , minLen ) { if ( ! o ) return ; if ( typeof o === "string" ) return _arrayLikeToArray ( o , minLen ) ; var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ; if ( n === "Object" && o . constructor ) n = o . constructor . name ; if ( n === "Map" || n === "Set" ) return Array . from ( o ) ; if ( n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return _arrayLikeToArray ( o , minLen ) ; }
function _arrayLikeToArray ( arr , len ) { if ( len == null || len > arr . length ) len = arr . length ; for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) arr2 [ i ] = arr [ i ] ; return arr2 ; }
var _ _defProp = Object . defineProperty ;
var _ _getOwnPropSymbols = Object . getOwnPropertySymbols ;
var _ _hasOwnProp = Object . prototype . hasOwnProperty ;
var _ _propIsEnum = Object . prototype . propertyIsEnumerable ;
var _ _defNormalProp = function _ _defNormalProp ( obj , key , value ) {
return key in obj ? _ _defProp ( obj , key , {
enumerable : true ,
configurable : true ,
writable : true ,
value : value
} ) : obj [ key ] = value ;
} ;
var _ _spreadValues = function _ _spreadValues ( a , b ) {
for ( var prop in b || ( b = { } ) ) if ( _ _hasOwnProp . call ( b , prop ) ) _ _defNormalProp ( a , prop , b [ prop ] ) ;
if ( _ _getOwnPropSymbols ) {
var _iterator = _createForOfIteratorHelper ( _ _getOwnPropSymbols ( b ) ) ,
_step ;
try {
for ( _iterator . s ( ) ; ! ( _step = _iterator . n ( ) ) . done ; ) {
var prop = _step . value ;
if ( _ _propIsEnum . call ( b , prop ) ) _ _defNormalProp ( a , prop , b [ prop ] ) ;
}
} catch ( err ) {
_iterator . e ( err ) ;
} finally {
_iterator . f ( ) ;
}
}
return a ;
} ;
var SvgUploadImg = function SvgUploadImg ( props ) {
return /* @__PURE__ */ React . createElement ( "svg" , _ _spreadValues ( {
width : 14 ,
height : 14 ,
xmlns : "http://www.w3.org/2000/svg"
} , props ) , /* @__PURE__ */ React . createElement ( "title" , null , "\u5F62\u72B6" ) , /* @__PURE__ */ React . createElement ( "path" , {
d : "M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z" ,
fill : "#3061D0" ,
fillRule : "nonzero"
} ) ) ;
} ;
/* harmony default export */ _ _webpack _exports _ _ . Z = ( "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=" ) ;
/***/ } ) ,
/***/ 43167 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / pages / Paperlibrary / Add / index . less ? modules * * * !
@ -10566,25 +11257,6 @@ if (false) {}
/* harmony default export */ var breadcrumb = ( breadcrumb _Breadcrumb ) ;
/***/ } ) ,
/***/ 60028 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / _antd @ 5.9 . 0 @ antd / es / upload / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
/* harmony import */ var _Dragger _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./Dragger */ 71409 ) ;
/* harmony import */ var _Upload _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./Upload */ 81844 ) ;
"use client" ;
const Upload = _Upload _ _WEBPACK _IMPORTED _MODULE _0 _ _ /* ["default"] */ . Z ;
Upload . Dragger = _Dragger _ _WEBPACK _IMPORTED _MODULE _1 _ _ /* ["default"] */ . Z ;
Upload . LIST _IGNORE = _Upload _ _WEBPACK _IMPORTED _MODULE _0 _ _ /* .LIST_IGNORE */ . E ;
/* harmony default export */ _ _webpack _exports _ _ . Z = ( Upload ) ;
/***/ } )
} ] ) ;