Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent e8c289a1bc
commit d7ca0676d0

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10685,34971,55545,62093,29681,30035,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10685,34971,55545,62093,29681,30035,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17961,55545,62093,38726,45646,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17961,55545,62093,38726,45646,60653,80718,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19221,55545,29681,30035,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19221,55545,29681,30035,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29681,55545,30035,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29681,55545,30035,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30035,55545,29681,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30035,55545,29681,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31870,55545,45646,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31870,55545,33436,45646,60653,80718,38139,45354,97285],{
/***/ 1894:
/*!*******************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34971,55545,62093,29681,30035,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34971,55545,62093,29681,30035,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34985,55545,45646,60653,80718,38139,15003,42980,58034,53223,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34985,55545,45646,60653,80718,38139,15003,42980,58034,53223,45354,97285],{
/***/ 6246:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38139,55545,45646,60653,80718,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38139,55545,45646,60653,80718,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38726,55545,45646,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38726,55545,45646,60653,80718,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45646,55545,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45646,55545,60653,80718,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55545,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55545,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56732,55545,45646,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56732,55545,45646,60653,80718,38139,45354,97285],{
/***/ 1894:
/*!*******************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60653,55545,45646,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60653,55545,45646,80718,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64206,55545,62093,45646,60653,80718,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64206,55545,62093,45646,60653,80718,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[70269,55545,29681,30035,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[70269,55545,33436,29681,30035,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -174,6 +174,7 @@ var _excluded = ["disabledDownload", "activeModal", "onClose"];
var Page = function Page(_ref) {
var disabledDownload = _ref.disabledDownload,
activeModal = _ref.activeModal,
@ -193,8 +194,7 @@ var Page = function Page(_ref) {
setData = _useState2[1];
var closeRef = (0,_react_17_0_2_react.useRef)();
var getOpenFile = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(id) {
var _activeModal$data;
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(data) {
var result, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -206,12 +206,12 @@ var Page = function Page(_ref) {
});
_context.next = 3;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: activeModal === null || activeModal === void 0 || (_activeModal$data = activeModal.data) === null || _activeModal$data === void 0 ? void 0 : _activeModal$data.legalDocId,
legalDocId: data === null || data === void 0 ? void 0 : data.legalDocId,
type: 1
});
case 3:
_context.next = 5;
return (0,fetch/* default */.ZP)("/api/attachments/".concat(id, "/detail.json"), {
return (0,fetch/* default */.ZP)("/api/attachments/".concat(data === null || data === void 0 ? void 0 : data.id, "/detail.json"), {
method: 'get'
});
case 5:
@ -252,79 +252,80 @@ var Page = function Page(_ref) {
};
}();
var handleDown = function handleDown() {
var _activeModal$data2;
var _activeModal$data, _props$data;
(0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: activeModal === null || activeModal === void 0 || (_activeModal$data2 = activeModal.data) === null || _activeModal$data2 === void 0 ? void 0 : _activeModal$data2.legalDocId,
legalDocId: (activeModal === null || activeModal === void 0 || (_activeModal$data = activeModal.data) === null || _activeModal$data === void 0 ? void 0 : _activeModal$data.legalDocId) || (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.legalDocId),
type: 2
});
(0,util/* downLoadLink */.Nd)("", decodeURIComponent(data === null || data === void 0 ? void 0 : data.content));
};
(0,_react_17_0_2_react.useEffect)(function () {
if ((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览") {
var _activeModal$data3;
getOpenFile(activeModal === null || activeModal === void 0 || (_activeModal$data3 = activeModal.data) === null || _activeModal$data3 === void 0 ? void 0 : _activeModal$data3.id);
if ((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览" || props !== null && props !== void 0 && props.open) {
getOpenFile((activeModal === null || activeModal === void 0 ? void 0 : activeModal.data) || (props === null || props === void 0 ? void 0 : props.data));
}
}, [activeModal === null || activeModal === void 0 ? void 0 : activeModal.title]);
return (activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: "fixed",
zIndex: 9999,
background: "rgba(0,0,0,.7)",
width: "100%",
height: "100%",
top: 0,
left: 0
},
children: [contextHolder, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewFilemodules.close,
ref: closeRef,
children: [!disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
}, [activeModal === null || activeModal === void 0 ? void 0 : activeModal.title, props === null || props === void 0 ? void 0 : props.open]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: ((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览" || (props === null || props === void 0 ? void 0 : props.open)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: "fixed",
zIndex: 9999,
background: "rgba(0,0,0,.7)",
width: "100%",
height: "100%",
top: 0,
left: 0
},
children: [contextHolder, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewFilemodules.close,
ref: closeRef,
children: [!disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: _onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: _onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
})
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
data: data === null || data === void 0 ? void 0 : data.content,
type: data === null || data === void 0 ? void 0 : data.type,
monacoEditor: {
value: monacoValueRef.current,
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
data: data === null || data === void 0 ? void 0 : data.content,
type: data === null || data === void 0 ? void 0 : data.type,
monacoEditor: {
value: monacoValueRef.current,
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onClose: function onClose() {
setData({
content: "",
type: ""
});
_onClose();
}
},
onClose: function onClose() {
setData({
content: "",
type: ""
});
_onClose();
}
})]
})]
})
});
};
/* harmony default export */ var PreviewFile = (Page);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80718,55545,45646,60653,38139,83807,45354,97285],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[80718,55545,45646,60653,38139,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -1,799 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83807,55545,45354,97285],{
/***/ 69172:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(36384);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(15436);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 38854:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_dropdown; }
});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(37586);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
var space = __webpack_require__(81327);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(47211);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const DropdownButton = props => {
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'default',
danger,
disabled,
loading,
onClick,
htmlType,
children,
className,
menu,
arrow,
autoFocus,
overlay,
trigger,
align,
open,
onOpenChange,
placement,
getPopupContainer,
href,
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
title,
buttonsRender = buttons => buttons,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
} = props,
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
const buttonPrefixCls = `${prefixCls}-button`;
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
const dropdownProps = {
menu,
arrow,
autoFocus,
align,
disabled,
trigger: disabled ? [] : trigger,
onOpenChange,
getPopupContainer: getPopupContainer || getContextPopupContainer,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
};
const {
compactSize,
compactItemClassnames
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
if ('overlay' in props) {
dropdownProps.overlay = overlay;
}
if ('open' in props) {
dropdownProps.open = open;
}
if ('placement' in props) {
dropdownProps.placement = placement;
} else {
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
}
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
disabled: disabled,
loading: loading,
onClick: onClick,
htmlType: htmlType,
href: href,
title: title
}, children);
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
};
DropdownButton.__ANT_BUTTON = true;
/* harmony default export */ var dropdown_button = (DropdownButton);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
"use client";
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
/***/ 20008:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// 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/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(36384);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(15436);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(69172);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/omit.js
var omit = __webpack_require__(62805);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/ref.js
var es_ref = __webpack_require__(76466);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(54462);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ space; }
});
// UNUSED EXPORTS: SpaceContext
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(47783);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
latestIndex: 0
});
const SpaceContextProvider = SpaceContext.Provider;
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
"use client";
const Item = _ref => {
let {
className,
index,
children,
split,
style
} = _ref;
const {
latestIndex
} = _react_17_0_2_react.useContext(SpaceContext);
if (children === null || children === undefined) {
return null;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
style: style
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${className}-split`
}, split));
};
/* harmony default export */ var space_Item = (Item);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
var space_style = __webpack_require__(2856);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
function isPresetSize(size) {
return ['small', 'middle', 'large'].includes(size);
}
function isValidGapNumber(size) {
if (!size) {
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
return false;
}
return typeof size === 'number' && !Number.isNaN(size);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
var _a, _b;
const {
getPrefixCls,
space,
direction: directionConfig
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
align,
className,
rootClassName,
children,
direction = 'horizontal',
prefixCls: customizePrefixCls,
split,
style,
wrap = false,
classNames: customClassNames,
styles
} = props,
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
const isPresetVerticalSize = isPresetSize(verticalSize);
const isPresetHorizontalSize = isPresetSize(horizontalSize);
const isValidVerticalSize = isValidGapNumber(verticalSize);
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
const childNodes = (0,toArray/* default */.Z)(children, {
keepEmpty: true
});
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
const prefixCls = getPrefixCls('space', customizePrefixCls);
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
}, className, rootClassName);
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
// Calculate latest one
let latestIndex = 0;
const nodes = childNodes.map((child, i) => {
var _a, _b;
if (child !== null && child !== undefined) {
latestIndex = i;
}
const key = child && child.key || `${itemClassName}-${i}`;
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
className: itemClassName,
key: key,
index: i,
split: split,
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
}, child);
});
const spaceContext = _react_17_0_2_react.useMemo(() => ({
latestIndex
}), [latestIndex]);
// =========================== Render ===========================
if (childNodes.length === 0) {
return null;
}
const gapStyle = {};
if (wrap) {
gapStyle.flexWrap = 'wrap';
}
if (!isPresetHorizontalSize && isValidHorizontalSize) {
gapStyle.columnGap = horizontalSize;
}
if (!isPresetVerticalSize && isValidVerticalSize) {
gapStyle.rowGap = verticalSize;
}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
ref: ref,
className: cls,
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
value: spaceContext
}, nodes)));
});
if (false) {}
const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90809,55545,29681,30035,19221,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90809,55545,29681,30035,19221,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

@ -25,7 +25,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.488a28c8.js"></script>
<script src="/react/build/umi.ec707528.js"></script>
<script src="/react/build/js/public.js"></script>
</body></html>

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,55545,70269,29681,30035,19221,90809,15003,42980,58034,53223,83807,45354,97285,29319,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,55545,70269,33436,29681,30035,19221,90809,15003,42980,58034,53223,45354,97285,29319,60846],{
/***/ 6246:
/*!*******************************************************************************************************************!*\

@ -1279,7 +1279,8 @@ var LegalDocDetailModal_Page = function Page(_ref) {
value: urlData.type,
onChange: function onChange(type) {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
type: type
type: type,
page: 1
}));
}
}), (urlData === null || urlData === void 0 ? void 0 : urlData.type) == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(descriptions/* default */.Z, {
@ -1412,7 +1413,7 @@ var LegalDocDetailModal_Page = function Page(_ref) {
},
current: urlData.page,
pageSize: urlData.limit,
total: urlData.type == 2 ? LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.download_size : LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.watch_user_size,
total: urlData.type == 2 ? LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.download_size : LegalDocDetail === null || LegalDocDetail === void 0 ? void 0 : LegalDocDetail.watch_size,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -1567,7 +1568,8 @@ var Detail_Page = function Page(_ref) {
disabled: !(0,utils/* isAdminOrTeacher */.G5)()
}, {
key: 2,
label: "发送至课程"
label: "发送至课程",
disabled: data === null || data === void 0 ? void 0 : data.is_link
}, {
key: 3,
label: "公开资源",
@ -2167,6 +2169,8 @@ var ui_customization = __webpack_require__(43369);
var utils = __webpack_require__(38561);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(77068);
// EXTERNAL MODULE: ./src/pages/LegalResources/components/PreviewFile/index.tsx + 1 modules
var PreviewFile = __webpack_require__(63938);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/SelectResModal/index.tsx
@ -2186,6 +2190,7 @@ var _excluded = ["formProps", "legalResources", "loading", "dispatch", "onOk"];
var Page = function Page(_ref) {
var _activeModal$data;
var formProps = _ref.formProps,
@ -2224,6 +2229,16 @@ var Page = function Page(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
urlData = _useState8[0],
setUrlData = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)({
open: false,
data: {
id: undefined,
legalDocId: undefined
}
}),
_useState10 = slicedToArray_default()(_useState9, 2),
previewFileData = _useState10[0],
setPreviewFileData = _useState10[1];
var ModalProps = objectSpread2_default()({
centered: true,
destroyOnClose: true,
@ -2271,6 +2286,26 @@ var Page = function Page(_ref) {
var _record$attachment2;
return (_record$attachment2 = record.attachment) === null || _record$attachment2 === void 0 ? void 0 : _record$attachment2.file_size;
}
}, {
title: '操作',
dataIndex: 'file_size',
ellipsis: true,
width: 50,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
var _record$attachment3;
setPreviewFileData({
open: true,
data: {
id: record === null || record === void 0 || (_record$attachment3 = record.attachment) === null || _record$attachment3 === void 0 ? void 0 : _record$attachment3.id,
legalDocId: record === null || record === void 0 ? void 0 : record.id
}
});
},
children: "\u67E5\u770B"
});
}
}];
var rowSelection = {
selectedRowKeys: selectedRowKeys,
@ -2321,10 +2356,10 @@ var Page = function Page(_ref) {
};
}, [LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list, ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.open]);
(0,_react_17_0_2_react.useEffect)(function () {
if (ModalProps.open) {
if (ModalProps !== null && ModalProps !== void 0 && ModalProps.open) {
getSelectFile();
}
}, [ModalProps.open, urlData]);
}, [ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.open, urlData]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, ModalProps), {}, {
children: [(activeModal === null || activeModal === void 0 || (_activeModal$data = activeModal.data) === null || _activeModal$data === void 0 ? void 0 : _activeModal$data.isLegalDirId) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
@ -2423,6 +2458,18 @@ var Page = function Page(_ref) {
});
}
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewFile/* default */.Z, {
open: previewFileData.open,
data: previewFileData.data,
onClose: function onClose() {
setPreviewFileData({
open: false,
data: {
id: undefined,
legalDocId: undefined
}
});
}
})]
}));
};

@ -1,40 +1,64 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/components/LeftMenus/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.LeftMenusItem___YxtRI {
display: flex;
align-items: center;
transition: all 0.3s;
cursor: pointer;
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/Lists/Index/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.DirectoryTree___Fec7A {
background-color: rgba(0, 0, 0, 0);
}
.LeftMenusItem___YxtRI .ArrowIcon___WycT1 {
display: block;
.DirectoryTree___Fec7A .DropdownIcon___k10xY {
transition: all 0.3s;
display: none;
}
.LeftMenusItem___YxtRI .ArrowIconActive___vhJuw {
transform: rotate(-180deg);
.DirectoryTree___Fec7A div[class~="ant-tree-treenode"] {
padding: 15px 0;
}
.LeftMenusItemActive___u2JjY,
.LeftMenusItem___YxtRI:hover {
background-color: #F8F9FA;
.DirectoryTree___Fec7A div[class~="ant-tree-treenode"]::before {
bottom: 0 !important;
}
.LeftMenusItemActive___u2JjY .LeftMenusTitle___Fnbuc,
.LeftMenusItem___YxtRI:hover .LeftMenusTitle___Fnbuc {
.DirectoryTree___Fec7A div[class~="ant-tree-treenode"]:hover::before {
background-color: #F8F9FA !important;
}
.DirectoryTree___Fec7A div[class~="ant-tree-treenode"]:hover span[class~="ant-tree-title"] {
color: #165DFF;
}
.LeftMenusItemActive___u2JjY .DropdownIcon___oMDn0,
.LeftMenusItem___YxtRI:hover .DropdownIcon___oMDn0 {
.DirectoryTree___Fec7A div[class~="ant-tree-treenode"]:hover .DropdownIcon___k10xY {
display: block;
}
.LeftMenusItem___YxtRI .DropdownIcon___oMDn0 {
transition: all 0.3s;
.DirectoryTree___Fec7A span[class~="ant-tree-switcher"] {
display: none;
}
.open___W4xwd {
.DirectoryTree___Fec7A span[class~="ant-tree-node-content-wrapper"] {
padding: 0 14px !important;
}
.DirectoryTree___Fec7A span[class~="ant-tree-indent-unit"] {
width: 14px;
}
.DirectoryTree___Fec7A span[class~="ant-tree-iconEle"] {
height: auto !important;
width: auto !important;
}
.DirectoryTree___Fec7A div[class~="ant-tree-treenode-selected"]::before {
background-color: #F8F9FA !important;
}
.DirectoryTree___Fec7A div[class~="ant-tree-treenode-selected"] span[class~="ant-tree-title"] {
color: #165DFF;
}
.DirectoryTree___Fec7A span[class~="ant-tree-node-content-wrapper"] {
display: flex;
flex-wrap: nowrap;
align-items: center;
}
.DirectoryTree___Fec7A span[class~="ant-tree-title"] {
flex: 1 1;
margin-left: 10px;
display: inline-flex;
align-items: center;
}
.ArrowIcon___Ld9PT {
display: block;
transition: all 0.3s;
}
.close___f0JOu {
display: none;
.ArrowIconActive___fhtOb {
transform: rotate(-180deg);
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\

@ -1,9 +1,9 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18654],{
/***/ 51180:
/***/ 64425:
/*!********************************************************************!*\
!*** ./src/pages/LegalResources/Lists/Index/index.tsx + 5 modules ***!
!*** ./src/pages/LegalResources/Lists/Index/index.tsx + 4 modules ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -15,6 +15,9 @@ __webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Index; }
});
// 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/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
@ -28,6 +31,9 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(44742);
;// CONCATENATED MODULE: ./src/pages/LegalResources/Lists/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"DirectoryTree":"DirectoryTree___Fec7A","DropdownIcon":"DropdownIcon___k10xY","ArrowIcon":"ArrowIcon___Ld9PT","ArrowIconActive":"ArrowIconActive___fhtOb"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(33259);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
@ -40,207 +46,14 @@ var message = __webpack_require__(8591);
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: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(43369);
// 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/_antd@5.9.0@antd/es/tree/index.js + 8 modules
var tree = __webpack_require__(22631);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(38854);
// EXTERNAL MODULE: ./node_modules/_react-beautiful-dnd@13.0.0@react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules
var react_beautiful_dnd_esm = __webpack_require__(15445);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/LeftMenus/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LeftMenusmodules = ({"LeftMenusItem":"LeftMenusItem___YxtRI","ArrowIcon":"ArrowIcon___WycT1","ArrowIconActive":"ArrowIconActive___vhJuw","LeftMenusItemActive":"LeftMenusItemActive___u2JjY","LeftMenusTitle":"LeftMenusTitle___Fnbuc","DropdownIcon":"DropdownIcon___oMDn0","open":"open___W4xwd","close":"close___f0JOu"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/LeftMenus/index.tsx
var DraggableDom = function DraggableDom(_ref) {
var value = _ref.value,
_ref$layNum = _ref.layNum,
layNum = _ref$layNum === void 0 ? 1 : _ref$layNum,
onDragEnd = _ref.onDragEnd,
isActive = _ref.isActive,
menuProps = _ref.menuProps,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
isOpen = _useState2[0],
setIsOpen = _useState2[1];
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Draggable */._l, {
index: value === null || value === void 0 ? void 0 : value.position,
draggableId: String(value === null || value === void 0 ? void 0 : value.id),
children: function children(provided) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
ref: provided.innerRef
}, provided.draggableProps), provided.dragHandleProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(LeftMenusmodules.LeftMenusItem, " ").concat(isActive == value.id ? LeftMenusmodules.LeftMenusItemActive : ""),
style: {
padding: "15px 0 15px ".concat((layNum - 1) * 9, "px")
},
onClick: function onClick() {
_umi_production_exports.history.push("/legalresources/".concat(params.legalId, "/detail"));
dispatch({
type: "legalResources/save",
payload: {
CurrentDir: value
}
});
setIsOpen(!isOpen);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont current font12 icon-xiajiantou ".concat(LeftMenusmodules.ArrowIcon, " ").concat(isOpen && LeftMenusmodules.ArrowIconActive),
style: {
marginLeft: 14
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: value.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "Onerow ml10 ".concat(LeftMenusmodules.LeftMenusTitle, " ").concat(layNum == 1 ? "blod" : ""),
style: {
flex: 1
},
children: value.name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
arrow: true,
menu: menuProps({
value: value,
layNum: layNum
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sandian current font12 mr10 ".concat(LeftMenusmodules.DropdownIcon),
style: {
color: "#999"
}
})
})]
})
})), isOpen && /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* DragDropContext */.Z5, {
onDragEnd: onDragEnd,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Droppable */.bK, {
droppableId: "".concat(value.id),
children: function children(provided) {
var _value$children;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
ref: provided.innerRef
}, provided.droppableProps), {}, {
children: [value === null || value === void 0 || (_value$children = value.children) === null || _value$children === void 0 ? void 0 : _value$children.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(DraggableDom, {
value: item,
layNum: layNum + 1,
onDragEnd: onDragEnd,
isActive: isActive,
menuProps: menuProps,
dispatch: dispatch
}, item.id);
}), provided.placeholder]
}));
}
})
})]
});
}
});
};
var LeftMenus = function LeftMenus(_ref2) {
var data = _ref2.data,
menuProps = _ref2.menuProps,
dispatch = _ref2.dispatch,
legalResources = _ref2.legalResources;
//data是内容,layNum是当前层数
var params = (0,_umi_production_exports.useParams)();
var CurrentDir = legalResources.CurrentDir;
var onDragEnd = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(result) {
var destination, source, draggableId, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
destination = result.destination, source = result.source, draggableId = result.draggableId;
console.log("onDragEnd", result);
// 拖动到不合法位置时直接返回
if (destination) {
_context.next = 4;
break;
}
return _context.abrupt("return");
case 4:
_context.next = 6;
return dispatch({
type: 'legalResources/putMoveDir',
payload: {
legalId: params.legalId,
directory_id: Number(draggableId),
parent_id: destination.droppableId === "droppableId" ? null : Number(destination.droppableId),
position: destination.index
}
});
case 6:
res = _context.sent;
if (res.status == 0) {
dispatch({
type: 'legalResources/getLegalLeftMenus',
payload: {
legalId: params.legalId
}
});
}
case 8:
case "end":
return _context.stop();
}
}, _callee);
}));
return function onDragEnd(_x) {
return _ref3.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* DragDropContext */.Z5, {
onDragEnd: onDragEnd,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Droppable */.bK, {
droppableId: "droppableId",
children: function children(provided) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
ref: provided.innerRef
}, provided.droppableProps), {}, {
children: [data === null || data === void 0 ? void 0 : data.map(function (value) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(DraggableDom, {
value: value,
onDragEnd: onDragEnd,
isActive: CurrentDir === null || CurrentDir === void 0 ? void 0 : CurrentDir.id,
dispatch: dispatch,
menuProps: menuProps
}, value.id);
}), provided.placeholder]
}));
}
})
});
};
/* harmony default export */ var components_LeftMenus = ((0,_umi_production_exports.connect)(function (_ref4) {
var legalResources = _ref4.legalResources;
return {
legalResources: legalResources
};
})(LeftMenus));
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(43369);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
@ -253,6 +66,8 @@ var tree_select = __webpack_require__(98228);
/* harmony default export */ var AddOrEditDirmodules = ({"folderWrapper":"folderWrapper___GXPxx"});
// EXTERNAL MODULE: ./src/pages/LegalResources/utils/index.tsx + 2 modules
var utils = __webpack_require__(38561);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/AddOrEditDir/index.tsx
@ -441,6 +256,8 @@ var detailBg_namespaceObject = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIA
var Page = function Page(_ref) {
var _LegalDetail$backgrou, _LegalDetail$backgrou2;
var legalResources = _ref.legalResources,
@ -555,6 +372,30 @@ var Page = function Page(_ref) {
}
});
};
var handleTreeData = function handleTreeData(data) {
var layNum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
if (data.length > 0) {
return data.map(function (item) {
return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
key: item === null || item === void 0 ? void 0 : item.id,
title: item === null || item === void 0 ? void 0 : item.name,
layNum: layNum,
children: handleTreeData(item === null || item === void 0 ? void 0 : item.children, layNum + 1),
// isLeaf: item?.children?.length == 0,
icon: function icon(props) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont font12 icon-xiajiantou ".concat(Indexmodules.ArrowIcon, " ").concat(props.expanded && Indexmodules.ArrowIconActive),
style: {
color: "#999"
}
});
}
});
});
} else {
return [];
}
};
(0,_react_17_0_2_react.useEffect)(function () {
if (LegalMenus !== null && LegalMenus !== void 0 && LegalMenus.list) {
setLegalMenusList(LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list);
@ -680,10 +521,83 @@ var Page = function Page(_ref) {
},
children: "\u65B0\u5EFA"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_LeftMenus, {
data: legalMenusList,
dispatch: dispatch,
menuProps: menuProps
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z.DirectoryTree, {
className: Indexmodules.DirectoryTree,
multiple: true,
draggable: {
icon: false
},
defaultExpandAll: true,
switcherIcon: false,
showIcon: true,
treeData: handleTreeData(legalMenusList),
onDrop: ( /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(info) {
var node, dragNode, dropPos, dropPosition, res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
node = info.node, dragNode = info.dragNode;
dropPos = info.node.pos.split('-');
dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
_context2.next = 5;
return dispatch({
type: 'legalResources/putMoveDir',
payload: {
legalId: params.legalId,
directory_id: dragNode.key,
parent_id: dropPosition == 0 ? node === null || node === void 0 ? void 0 : node.key : dropPosition == -1 ? node === null || node === void 0 ? void 0 : node.parent_id : dragNode === null || dragNode === void 0 ? void 0 : dragNode.parent_id,
position: dropPosition == 1 ? (node === null || node === void 0 ? void 0 : node.position) + 1 : dropPosition == -1 && (node === null || node === void 0 ? void 0 : node.position) > 1 ? (node === null || node === void 0 ? void 0 : node.position) - 1 : 1
}
});
case 5:
res = _context2.sent;
if (res.status == 0) {
getLegalLeftMenus();
}
console.log("====", info, dropPos, dropPosition);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function (_x) {
return _ref4.apply(this, arguments);
};
}()),
onSelect: function onSelect(keys, e) {
_umi_production_exports.history.push("/legalresources/".concat(params.legalId, "/detail"));
dispatch({
type: "legalResources/save",
payload: {
CurrentDir: e.node
}
});
},
titleRender: function titleRender(nodeData) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: nodeData.title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "multi_ellipsis1 ".concat(Indexmodules.LeftMenusTitle, " ").concat(nodeData.layNum == 1 ? "blod" : ""),
style: {
flex: 1
},
children: nodeData.title
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
arrow: true,
menu: menuProps({
value: nodeData,
layNum: nodeData.layNum
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-sandian current font12 ".concat(Indexmodules.DropdownIcon, " c-grey-999")
})
})]
});
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -706,11 +620,11 @@ var Page = function Page(_ref) {
})]
});
};
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref4) {
var user = _ref4.user,
globalSetting = _ref4.globalSetting,
legalResources = _ref4.legalResources,
loading = _ref4.loading;
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref5) {
var user = _ref5.user,
globalSetting = _ref5.globalSetting,
legalResources = _ref5.legalResources,
loading = _ref5.loading;
return {
user: user,
globalSetting: globalSetting,

@ -5947,6 +5947,29 @@ button[class~='ant-btn-default']:disabled.btn___In02G {
margin-right: 4px;
}
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/LegalResources/components/PreviewFile/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.close___uZgGc {
position: absolute;
right: 40px;
top: 40px;
z-index: 9999;
display: flex;
}
.close___uZgGc > span {
background: #4a4a4a;
color: #fff;
width: 40px;
height: 40px;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
margin-left: 10px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paths/Detail/components/Stage/Certificate/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -5193,6 +5193,225 @@ function useInterval(callback, delay) {
/***/ }),
/***/ 63938:
/*!*******************************************************************************!*\
!*** ./src/pages/LegalResources/components/PreviewFile/index.tsx + 1 modules ***!
\*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ PreviewFile; }
});
// 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/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(26965);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(14735);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./src/service/legalresources.ts
var legalresources = __webpack_require__(76145);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/PreviewFile/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var PreviewFilemodules = ({"close":"close___uZgGc"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(63834);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(33259);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/PreviewFile/index.tsx
var _excluded = ["disabledDownload", "activeModal", "onClose"];
var Page = function Page(_ref) {
var disabledDownload = _ref.disabledDownload,
activeModal = _ref.activeModal,
_onClose = _ref.onClose,
props = objectWithoutProperties_default()(_ref, _excluded);
var monacoValueRef = (0,_react_17_0_2_react.useRef)();
var _message$useMessage = message/* default */.ZP.useMessage(),
_message$useMessage2 = slicedToArray_default()(_message$useMessage, 2),
messageApi = _message$useMessage2[0],
contextHolder = _message$useMessage2[1];
var _useState = (0,_react_17_0_2_react.useState)({
content: "",
type: ""
}),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var closeRef = (0,_react_17_0_2_react.useRef)();
var getOpenFile = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(data) {
var result, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
messageApi.open({
type: "loading",
content: "预览文件加载中...",
duration: 0
});
_context.next = 3;
return (0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: data === null || data === void 0 ? void 0 : data.legalDocId,
type: 1
});
case 3:
_context.next = 5;
return (0,fetch/* default */.ZP)("/api/attachments/".concat(data === null || data === void 0 ? void 0 : data.id, "/detail.json"), {
method: 'get'
});
case 5:
result = _context.sent;
if (!((result === null || result === void 0 ? void 0 : result.status) !== -1)) {
_context.next = 14;
break;
}
if (!(result.file_type === "txt")) {
_context.next = 12;
break;
}
_context.next = 10;
return (0,fetch/* default */.ZP)(result.url, {
method: "get",
headers: {
"Content-Type": "application/xml"
}
// credentials: 'omit',
});
case 10:
res = _context.sent;
monacoValueRef.current = res;
case 12:
messageApi.destroy();
setData({
type: result.file_type,
content: env/* default */.Z.API_SERVER + result.url + "&nocredentials=true"
});
case 14:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getOpenFile(_x) {
return _ref2.apply(this, arguments);
};
}();
var handleDown = function handleDown() {
var _activeModal$data, _props$data;
(0,legalresources/* postAddFileQuantity */.Qz)({
legalDocId: (activeModal === null || activeModal === void 0 || (_activeModal$data = activeModal.data) === null || _activeModal$data === void 0 ? void 0 : _activeModal$data.legalDocId) || (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.legalDocId),
type: 2
});
(0,util/* downLoadLink */.Nd)("", decodeURIComponent(data === null || data === void 0 ? void 0 : data.content));
};
(0,_react_17_0_2_react.useEffect)(function () {
if ((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览" || props !== null && props !== void 0 && props.open) {
getOpenFile((activeModal === null || activeModal === void 0 ? void 0 : activeModal.data) || (props === null || props === void 0 ? void 0 : props.data));
}
}, [activeModal === null || activeModal === void 0 ? void 0 : activeModal.title, props === null || props === void 0 ? void 0 : props.open]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: ((activeModal === null || activeModal === void 0 ? void 0 : activeModal.title) == "文件预览" || (props === null || props === void 0 ? void 0 : props.open)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: "fixed",
zIndex: 9999,
background: "rgba(0,0,0,.7)",
width: "100%",
height: "100%",
top: 0,
left: 0
},
children: [contextHolder, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewFilemodules.close,
ref: closeRef,
children: [!disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: _onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
data: data === null || data === void 0 ? void 0 : data.content,
type: data === null || data === void 0 ? void 0 : data.type,
monacoEditor: {
value: monacoValueRef.current,
language: "txt",
onChange: function onChange() {},
options: {
readOnly: true,
fontSize: 14,
minimap: {
enabled: false
}
}
},
onClose: function onClose() {
setData({
content: "",
type: ""
});
_onClose();
}
})]
})
});
};
/* harmony default export */ var PreviewFile = (Page);
/***/ }),
/***/ 49903:
/*!**********************************************************************************!*\
!*** ./src/pages/LegalResources/components/SelectResModal/index.tsx + 1 modules ***!
@ -5243,6 +5462,8 @@ var ui_customization = __webpack_require__(43369);
var utils = __webpack_require__(38561);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(77068);
// EXTERNAL MODULE: ./src/pages/LegalResources/components/PreviewFile/index.tsx + 1 modules
var PreviewFile = __webpack_require__(63938);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/LegalResources/components/SelectResModal/index.tsx
@ -5262,6 +5483,7 @@ var _excluded = ["formProps", "legalResources", "loading", "dispatch", "onOk"];
var Page = function Page(_ref) {
var _activeModal$data;
var formProps = _ref.formProps,
@ -5300,6 +5522,16 @@ var Page = function Page(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
urlData = _useState8[0],
setUrlData = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)({
open: false,
data: {
id: undefined,
legalDocId: undefined
}
}),
_useState10 = slicedToArray_default()(_useState9, 2),
previewFileData = _useState10[0],
setPreviewFileData = _useState10[1];
var ModalProps = objectSpread2_default()({
centered: true,
destroyOnClose: true,
@ -5347,6 +5579,26 @@ var Page = function Page(_ref) {
var _record$attachment2;
return (_record$attachment2 = record.attachment) === null || _record$attachment2 === void 0 ? void 0 : _record$attachment2.file_size;
}
}, {
title: '操作',
dataIndex: 'file_size',
ellipsis: true,
width: 50,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
var _record$attachment3;
setPreviewFileData({
open: true,
data: {
id: record === null || record === void 0 || (_record$attachment3 = record.attachment) === null || _record$attachment3 === void 0 ? void 0 : _record$attachment3.id,
legalDocId: record === null || record === void 0 ? void 0 : record.id
}
});
},
children: "\u67E5\u770B"
});
}
}];
var rowSelection = {
selectedRowKeys: selectedRowKeys,
@ -5397,10 +5649,10 @@ var Page = function Page(_ref) {
};
}, [LegalMenus === null || LegalMenus === void 0 ? void 0 : LegalMenus.list, ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.open]);
(0,_react_17_0_2_react.useEffect)(function () {
if (ModalProps.open) {
if (ModalProps !== null && ModalProps !== void 0 && ModalProps.open) {
getSelectFile();
}
}, [ModalProps.open, urlData]);
}, [ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.open, urlData]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, ModalProps), {}, {
children: [(activeModal === null || activeModal === void 0 || (_activeModal$data = activeModal.data) === null || _activeModal$data === void 0 ? void 0 : _activeModal$data.isLegalDirId) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
@ -5499,6 +5751,18 @@ var Page = function Page(_ref) {
});
}
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewFile/* default */.Z, {
open: previewFileData.open,
data: previewFileData.data,
onClose: function onClose() {
setPreviewFileData({
open: false,
data: {
id: undefined,
legalDocId: undefined
}
});
}
})]
}));
};

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,55545,70269,29681,30035,19221,90809,83807,45354,97285,60846],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,55545,70269,33436,29681,30035,19221,90809,45354,97285,60846],{
/***/ 69172:
/*!*****************************************************************************************************!*\

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save