@luminati-io/uikit 6.3.34 → 6.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/umd/uikit.development.js +2790 -1561
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +14 -14
@@ -11463,6 +11463,733 @@ function withinMaxClamp(min, value, max) {
|
|
11463
11463
|
|
11464
11464
|
/***/ }),
|
11465
11465
|
|
11466
|
+
/***/ "./node_modules/@rc-component/dialog/es/Dialog/Content/MemoChildren.js":
|
11467
|
+
/*!*****************************************************************************!*\
|
11468
|
+
!*** ./node_modules/@rc-component/dialog/es/Dialog/Content/MemoChildren.js ***!
|
11469
|
+
\*****************************************************************************/
|
11470
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
11471
|
+
|
11472
|
+
"use strict";
|
11473
|
+
__webpack_require__.r(__webpack_exports__);
|
11474
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11475
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11476
|
+
/* harmony export */ });
|
11477
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
11478
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
11479
|
+
|
11480
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.memo(({
|
11481
|
+
children
|
11482
|
+
}) => children, (_, {
|
11483
|
+
shouldUpdate
|
11484
|
+
}) => !shouldUpdate));
|
11485
|
+
|
11486
|
+
/***/ }),
|
11487
|
+
|
11488
|
+
/***/ "./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js":
|
11489
|
+
/*!**********************************************************************!*\
|
11490
|
+
!*** ./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js ***!
|
11491
|
+
\**********************************************************************/
|
11492
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
11493
|
+
|
11494
|
+
"use strict";
|
11495
|
+
__webpack_require__.r(__webpack_exports__);
|
11496
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11497
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11498
|
+
/* harmony export */ });
|
11499
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11500
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11501
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11502
|
+
/* harmony import */ var _rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/ref */ "./node_modules/@rc-component/util/es/ref.js");
|
11503
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
11504
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
11505
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../context */ "./node_modules/@rc-component/dialog/es/context.js");
|
11506
|
+
/* harmony import */ var _MemoChildren__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MemoChildren */ "./node_modules/@rc-component/dialog/es/Dialog/Content/MemoChildren.js");
|
11507
|
+
/* harmony import */ var _rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11508
|
+
|
11509
|
+
|
11510
|
+
|
11511
|
+
|
11512
|
+
|
11513
|
+
|
11514
|
+
|
11515
|
+
const sentinelStyle = {
|
11516
|
+
width: 0,
|
11517
|
+
height: 0,
|
11518
|
+
overflow: 'hidden',
|
11519
|
+
outline: 'none'
|
11520
|
+
};
|
11521
|
+
const entityStyle = {
|
11522
|
+
outline: 'none'
|
11523
|
+
};
|
11524
|
+
const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardRef((props, ref) => {
|
11525
|
+
const {
|
11526
|
+
prefixCls,
|
11527
|
+
className,
|
11528
|
+
style,
|
11529
|
+
title,
|
11530
|
+
ariaId,
|
11531
|
+
footer,
|
11532
|
+
closable,
|
11533
|
+
closeIcon,
|
11534
|
+
onClose,
|
11535
|
+
children,
|
11536
|
+
bodyStyle,
|
11537
|
+
bodyProps,
|
11538
|
+
modalRender,
|
11539
|
+
onMouseDown,
|
11540
|
+
onMouseUp,
|
11541
|
+
holderRef,
|
11542
|
+
visible,
|
11543
|
+
forceRender,
|
11544
|
+
width,
|
11545
|
+
height,
|
11546
|
+
classNames: modalClassNames,
|
11547
|
+
styles: modalStyles
|
11548
|
+
} = props;
|
11549
|
+
|
11550
|
+
// ================================= Refs =================================
|
11551
|
+
const {
|
11552
|
+
panel: panelRef
|
11553
|
+
} = react__WEBPACK_IMPORTED_MODULE_3___default().useContext(_context__WEBPACK_IMPORTED_MODULE_4__.RefContext);
|
11554
|
+
const mergedRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_2__.useComposeRef)(holderRef, panelRef);
|
11555
|
+
const sentinelStartRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
11556
|
+
const sentinelEndRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
11557
|
+
react__WEBPACK_IMPORTED_MODULE_3___default().useImperativeHandle(ref, () => ({
|
11558
|
+
focus: () => {
|
11559
|
+
sentinelStartRef.current?.focus({
|
11560
|
+
preventScroll: true
|
11561
|
+
});
|
11562
|
+
},
|
11563
|
+
changeActive: next => {
|
11564
|
+
const {
|
11565
|
+
activeElement
|
11566
|
+
} = document;
|
11567
|
+
if (next && activeElement === sentinelEndRef.current) {
|
11568
|
+
sentinelStartRef.current.focus({
|
11569
|
+
preventScroll: true
|
11570
|
+
});
|
11571
|
+
} else if (!next && activeElement === sentinelStartRef.current) {
|
11572
|
+
sentinelEndRef.current.focus({
|
11573
|
+
preventScroll: true
|
11574
|
+
});
|
11575
|
+
}
|
11576
|
+
}
|
11577
|
+
}));
|
11578
|
+
|
11579
|
+
// ================================ Style =================================
|
11580
|
+
const contentStyle = {};
|
11581
|
+
if (width !== undefined) {
|
11582
|
+
contentStyle.width = width;
|
11583
|
+
}
|
11584
|
+
if (height !== undefined) {
|
11585
|
+
contentStyle.height = height;
|
11586
|
+
}
|
11587
|
+
// ================================ Render ================================
|
11588
|
+
const footerNode = footer ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11589
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-footer`, modalClassNames?.footer),
|
11590
|
+
style: {
|
11591
|
+
...modalStyles?.footer
|
11592
|
+
}
|
11593
|
+
}, footer) : null;
|
11594
|
+
const headerNode = title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11595
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-header`, modalClassNames?.header),
|
11596
|
+
style: {
|
11597
|
+
...modalStyles?.header
|
11598
|
+
}
|
11599
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11600
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-title`, modalClassNames?.title),
|
11601
|
+
id: ariaId,
|
11602
|
+
style: {
|
11603
|
+
...modalStyles?.title
|
11604
|
+
}
|
11605
|
+
}, title)) : null;
|
11606
|
+
const closableObj = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
|
11607
|
+
if (typeof closable === 'object' && closable !== null) {
|
11608
|
+
return closable;
|
11609
|
+
}
|
11610
|
+
if (closable) {
|
11611
|
+
return {
|
11612
|
+
closeIcon: closeIcon ?? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("span", {
|
11613
|
+
className: `${prefixCls}-close-x`
|
11614
|
+
})
|
11615
|
+
};
|
11616
|
+
}
|
11617
|
+
return {};
|
11618
|
+
}, [closable, closeIcon, prefixCls]);
|
11619
|
+
const ariaProps = (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__["default"])(closableObj, true);
|
11620
|
+
const closeBtnIsDisabled = typeof closable === 'object' && closable.disabled;
|
11621
|
+
const closerNode = closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("button", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11622
|
+
type: "button",
|
11623
|
+
onClick: onClose,
|
11624
|
+
"aria-label": "Close"
|
11625
|
+
}, ariaProps, {
|
11626
|
+
className: `${prefixCls}-close`,
|
11627
|
+
disabled: closeBtnIsDisabled
|
11628
|
+
}), closableObj.closeIcon) : null;
|
11629
|
+
const content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11630
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-section`, modalClassNames?.section),
|
11631
|
+
style: modalStyles?.section
|
11632
|
+
}, closerNode, headerNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11633
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-body`, modalClassNames?.body),
|
11634
|
+
style: {
|
11635
|
+
...bodyStyle,
|
11636
|
+
...modalStyles?.body
|
11637
|
+
}
|
11638
|
+
}, bodyProps), children), footerNode);
|
11639
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11640
|
+
key: "dialog-element",
|
11641
|
+
role: "dialog",
|
11642
|
+
"aria-labelledby": title ? ariaId : null,
|
11643
|
+
"aria-modal": "true",
|
11644
|
+
ref: mergedRef,
|
11645
|
+
style: {
|
11646
|
+
...style,
|
11647
|
+
...contentStyle
|
11648
|
+
},
|
11649
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className),
|
11650
|
+
onMouseDown: onMouseDown,
|
11651
|
+
onMouseUp: onMouseUp
|
11652
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11653
|
+
ref: sentinelStartRef,
|
11654
|
+
tabIndex: 0,
|
11655
|
+
style: entityStyle
|
11656
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_MemoChildren__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
11657
|
+
shouldUpdate: visible || forceRender
|
11658
|
+
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11659
|
+
tabIndex: 0,
|
11660
|
+
ref: sentinelEndRef,
|
11661
|
+
style: sentinelStyle
|
11662
|
+
}));
|
11663
|
+
});
|
11664
|
+
if (true) {
|
11665
|
+
Panel.displayName = 'Panel';
|
11666
|
+
}
|
11667
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Panel);
|
11668
|
+
|
11669
|
+
/***/ }),
|
11670
|
+
|
11671
|
+
/***/ "./node_modules/@rc-component/dialog/es/Dialog/Content/index.js":
|
11672
|
+
/*!**********************************************************************!*\
|
11673
|
+
!*** ./node_modules/@rc-component/dialog/es/Dialog/Content/index.js ***!
|
11674
|
+
\**********************************************************************/
|
11675
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
11676
|
+
|
11677
|
+
"use strict";
|
11678
|
+
__webpack_require__.r(__webpack_exports__);
|
11679
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11680
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11681
|
+
/* harmony export */ });
|
11682
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11683
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
11684
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
11685
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11686
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
11687
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
11688
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11689
|
+
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Panel */ "./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js");
|
11690
|
+
|
11691
|
+
|
11692
|
+
|
11693
|
+
|
11694
|
+
|
11695
|
+
|
11696
|
+
|
11697
|
+
const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
|
11698
|
+
const {
|
11699
|
+
prefixCls,
|
11700
|
+
title,
|
11701
|
+
style,
|
11702
|
+
className,
|
11703
|
+
visible,
|
11704
|
+
forceRender,
|
11705
|
+
destroyOnClose,
|
11706
|
+
motionName,
|
11707
|
+
ariaId,
|
11708
|
+
onVisibleChanged,
|
11709
|
+
mousePosition
|
11710
|
+
} = props;
|
11711
|
+
const dialogRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
11712
|
+
|
11713
|
+
// ============================= Style ==============================
|
11714
|
+
const [transformOrigin, setTransformOrigin] = react__WEBPACK_IMPORTED_MODULE_1__.useState();
|
11715
|
+
const contentStyle = {};
|
11716
|
+
if (transformOrigin) {
|
11717
|
+
contentStyle.transformOrigin = transformOrigin;
|
11718
|
+
}
|
11719
|
+
function onPrepare() {
|
11720
|
+
const elementOffset = (0,_util__WEBPACK_IMPORTED_MODULE_4__.offset)(dialogRef.current);
|
11721
|
+
setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
|
11722
|
+
}
|
11723
|
+
|
11724
|
+
// ============================= Render =============================
|
11725
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
11726
|
+
visible: visible,
|
11727
|
+
onVisibleChanged: onVisibleChanged,
|
11728
|
+
onAppearPrepare: onPrepare,
|
11729
|
+
onEnterPrepare: onPrepare,
|
11730
|
+
forceRender: forceRender,
|
11731
|
+
motionName: motionName,
|
11732
|
+
removeOnLeave: destroyOnClose,
|
11733
|
+
ref: dialogRef
|
11734
|
+
}, ({
|
11735
|
+
className: motionClassName,
|
11736
|
+
style: motionStyle
|
11737
|
+
}, motionRef) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Panel__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
11738
|
+
ref: ref,
|
11739
|
+
title: title,
|
11740
|
+
ariaId: ariaId,
|
11741
|
+
prefixCls: prefixCls,
|
11742
|
+
holderRef: motionRef,
|
11743
|
+
style: {
|
11744
|
+
...motionStyle,
|
11745
|
+
...style,
|
11746
|
+
...contentStyle
|
11747
|
+
},
|
11748
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, motionClassName)
|
11749
|
+
})));
|
11750
|
+
});
|
11751
|
+
Content.displayName = 'Content';
|
11752
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Content);
|
11753
|
+
|
11754
|
+
/***/ }),
|
11755
|
+
|
11756
|
+
/***/ "./node_modules/@rc-component/dialog/es/Dialog/Mask.js":
|
11757
|
+
/*!*************************************************************!*\
|
11758
|
+
!*** ./node_modules/@rc-component/dialog/es/Dialog/Mask.js ***!
|
11759
|
+
\*************************************************************/
|
11760
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
11761
|
+
|
11762
|
+
"use strict";
|
11763
|
+
__webpack_require__.r(__webpack_exports__);
|
11764
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11765
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11766
|
+
/* harmony export */ });
|
11767
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11768
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
11769
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
11770
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11771
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
11772
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
11773
|
+
|
11774
|
+
|
11775
|
+
|
11776
|
+
|
11777
|
+
const Mask = props => {
|
11778
|
+
const {
|
11779
|
+
prefixCls,
|
11780
|
+
style,
|
11781
|
+
visible,
|
11782
|
+
maskProps,
|
11783
|
+
motionName,
|
11784
|
+
className
|
11785
|
+
} = props;
|
11786
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
11787
|
+
key: "mask",
|
11788
|
+
visible: visible,
|
11789
|
+
motionName: motionName,
|
11790
|
+
leavedClassName: `${prefixCls}-mask-hidden`
|
11791
|
+
}, ({
|
11792
|
+
className: motionClassName,
|
11793
|
+
style: motionStyle
|
11794
|
+
}, ref) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11795
|
+
ref: ref,
|
11796
|
+
style: {
|
11797
|
+
...motionStyle,
|
11798
|
+
...style
|
11799
|
+
},
|
11800
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(`${prefixCls}-mask`, motionClassName, className)
|
11801
|
+
}, maskProps)));
|
11802
|
+
};
|
11803
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Mask);
|
11804
|
+
|
11805
|
+
/***/ }),
|
11806
|
+
|
11807
|
+
/***/ "./node_modules/@rc-component/dialog/es/Dialog/index.js":
|
11808
|
+
/*!**************************************************************!*\
|
11809
|
+
!*** ./node_modules/@rc-component/dialog/es/Dialog/index.js ***!
|
11810
|
+
\**************************************************************/
|
11811
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
11812
|
+
|
11813
|
+
"use strict";
|
11814
|
+
__webpack_require__.r(__webpack_exports__);
|
11815
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11816
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11817
|
+
/* harmony export */ });
|
11818
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11819
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11820
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11821
|
+
/* harmony import */ var _rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/Dom/contains */ "./node_modules/@rc-component/util/es/Dom/contains.js");
|
11822
|
+
/* harmony import */ var _rc_component_util_es_hooks_useId__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rc-component/util/es/hooks/useId */ "./node_modules/@rc-component/util/es/hooks/useId.js");
|
11823
|
+
/* harmony import */ var _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @rc-component/util/es/KeyCode */ "./node_modules/@rc-component/util/es/KeyCode.js");
|
11824
|
+
/* harmony import */ var _rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11825
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
|
11826
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
11827
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11828
|
+
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Content */ "./node_modules/@rc-component/dialog/es/Dialog/Content/index.js");
|
11829
|
+
/* harmony import */ var _Mask__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Mask */ "./node_modules/@rc-component/dialog/es/Dialog/Mask.js");
|
11830
|
+
/* harmony import */ var _rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @rc-component/util/es/warning */ "./node_modules/@rc-component/util/es/warning.js");
|
11831
|
+
|
11832
|
+
|
11833
|
+
|
11834
|
+
|
11835
|
+
|
11836
|
+
|
11837
|
+
|
11838
|
+
|
11839
|
+
|
11840
|
+
|
11841
|
+
|
11842
|
+
|
11843
|
+
const Dialog = props => {
|
11844
|
+
const {
|
11845
|
+
prefixCls = 'rc-dialog',
|
11846
|
+
zIndex,
|
11847
|
+
visible = false,
|
11848
|
+
keyboard = true,
|
11849
|
+
focusTriggerAfterClose = true,
|
11850
|
+
// scrollLocker,
|
11851
|
+
// Wrapper
|
11852
|
+
wrapStyle,
|
11853
|
+
wrapClassName,
|
11854
|
+
wrapProps,
|
11855
|
+
onClose,
|
11856
|
+
afterOpenChange,
|
11857
|
+
afterClose,
|
11858
|
+
// Dialog
|
11859
|
+
transitionName,
|
11860
|
+
animation,
|
11861
|
+
closable = true,
|
11862
|
+
// Mask
|
11863
|
+
mask = true,
|
11864
|
+
maskTransitionName,
|
11865
|
+
maskAnimation,
|
11866
|
+
maskClosable = true,
|
11867
|
+
maskStyle,
|
11868
|
+
maskProps,
|
11869
|
+
rootClassName,
|
11870
|
+
rootStyle,
|
11871
|
+
classNames: modalClassNames,
|
11872
|
+
styles: modalStyles
|
11873
|
+
} = props;
|
11874
|
+
if (true) {
|
11875
|
+
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(prop => {
|
11876
|
+
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
11877
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
11878
|
+
});
|
11879
|
+
if ('wrapClassName' in props) {
|
11880
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__.warning)(false, `wrapClassName is deprecated, please use classNames instead.`);
|
11881
|
+
}
|
11882
|
+
}
|
11883
|
+
const lastOutSideActiveElementRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
11884
|
+
const wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
11885
|
+
const contentRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
11886
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_6__.useState(visible);
|
11887
|
+
|
11888
|
+
// ========================== Init ==========================
|
11889
|
+
const ariaId = (0,_rc_component_util_es_hooks_useId__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
11890
|
+
function saveLastOutSideActiveElementRef() {
|
11891
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__["default"])(wrapperRef.current, document.activeElement)) {
|
11892
|
+
lastOutSideActiveElementRef.current = document.activeElement;
|
11893
|
+
}
|
11894
|
+
}
|
11895
|
+
function focusDialogContent() {
|
11896
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__["default"])(wrapperRef.current, document.activeElement)) {
|
11897
|
+
contentRef.current?.focus();
|
11898
|
+
}
|
11899
|
+
}
|
11900
|
+
|
11901
|
+
// ========================= Events =========================
|
11902
|
+
function onDialogVisibleChanged(newVisible) {
|
11903
|
+
// Try to focus
|
11904
|
+
if (newVisible) {
|
11905
|
+
focusDialogContent();
|
11906
|
+
} else {
|
11907
|
+
// Clean up scroll bar & focus back
|
11908
|
+
setAnimatedVisible(false);
|
11909
|
+
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
11910
|
+
try {
|
11911
|
+
lastOutSideActiveElementRef.current.focus({
|
11912
|
+
preventScroll: true
|
11913
|
+
});
|
11914
|
+
} catch (e) {
|
11915
|
+
// Do nothing
|
11916
|
+
}
|
11917
|
+
lastOutSideActiveElementRef.current = null;
|
11918
|
+
}
|
11919
|
+
|
11920
|
+
// Trigger afterClose only when change visible from true to false
|
11921
|
+
if (animatedVisible) {
|
11922
|
+
afterClose?.();
|
11923
|
+
}
|
11924
|
+
}
|
11925
|
+
afterOpenChange?.(newVisible);
|
11926
|
+
}
|
11927
|
+
function onInternalClose(e) {
|
11928
|
+
onClose?.(e);
|
11929
|
+
}
|
11930
|
+
|
11931
|
+
// >>> Content
|
11932
|
+
const contentClickRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)(false);
|
11933
|
+
const contentTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
11934
|
+
|
11935
|
+
// We need record content click incase content popup out of dialog
|
11936
|
+
const onContentMouseDown = () => {
|
11937
|
+
clearTimeout(contentTimeoutRef.current);
|
11938
|
+
contentClickRef.current = true;
|
11939
|
+
};
|
11940
|
+
const onContentMouseUp = () => {
|
11941
|
+
contentTimeoutRef.current = setTimeout(() => {
|
11942
|
+
contentClickRef.current = false;
|
11943
|
+
});
|
11944
|
+
};
|
11945
|
+
|
11946
|
+
// >>> Wrapper
|
11947
|
+
// Close only when element not on dialog
|
11948
|
+
let onWrapperClick = null;
|
11949
|
+
if (maskClosable) {
|
11950
|
+
onWrapperClick = e => {
|
11951
|
+
if (contentClickRef.current) {
|
11952
|
+
contentClickRef.current = false;
|
11953
|
+
} else if (wrapperRef.current === e.target) {
|
11954
|
+
onInternalClose(e);
|
11955
|
+
}
|
11956
|
+
};
|
11957
|
+
}
|
11958
|
+
function onWrapperKeyDown(e) {
|
11959
|
+
if (keyboard && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
|
11960
|
+
e.stopPropagation();
|
11961
|
+
onInternalClose(e);
|
11962
|
+
return;
|
11963
|
+
}
|
11964
|
+
|
11965
|
+
// keep focus inside dialog
|
11966
|
+
if (visible && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].TAB) {
|
11967
|
+
contentRef.current.changeActive(!e.shiftKey);
|
11968
|
+
}
|
11969
|
+
}
|
11970
|
+
|
11971
|
+
// ========================= Effect =========================
|
11972
|
+
(0,react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(() => {
|
11973
|
+
if (visible) {
|
11974
|
+
setAnimatedVisible(true);
|
11975
|
+
saveLastOutSideActiveElementRef();
|
11976
|
+
}
|
11977
|
+
}, [visible]);
|
11978
|
+
|
11979
|
+
// Remove direct should also check the scroll bar update
|
11980
|
+
(0,react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(() => () => {
|
11981
|
+
clearTimeout(contentTimeoutRef.current);
|
11982
|
+
}, []);
|
11983
|
+
const mergedStyle = {
|
11984
|
+
zIndex,
|
11985
|
+
...wrapStyle,
|
11986
|
+
...modalStyles?.wrapper,
|
11987
|
+
display: !animatedVisible ? 'none' : null
|
11988
|
+
};
|
11989
|
+
|
11990
|
+
// ========================= Render =========================
|
11991
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11992
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-root`, rootClassName),
|
11993
|
+
style: rootStyle
|
11994
|
+
}, (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(props, {
|
11995
|
+
data: true
|
11996
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement(_Mask__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
11997
|
+
prefixCls: prefixCls,
|
11998
|
+
visible: mask && visible,
|
11999
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_7__.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
|
12000
|
+
style: {
|
12001
|
+
zIndex,
|
12002
|
+
...maskStyle,
|
12003
|
+
...modalStyles?.mask
|
12004
|
+
},
|
12005
|
+
maskProps: maskProps,
|
12006
|
+
className: modalClassNames?.mask
|
12007
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
12008
|
+
tabIndex: -1,
|
12009
|
+
onKeyDown: onWrapperKeyDown,
|
12010
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
|
12011
|
+
ref: wrapperRef,
|
12012
|
+
onClick: onWrapperClick,
|
12013
|
+
style: mergedStyle
|
12014
|
+
}, wrapProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement(_Content__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
12015
|
+
onMouseDown: onContentMouseDown,
|
12016
|
+
onMouseUp: onContentMouseUp,
|
12017
|
+
ref: contentRef,
|
12018
|
+
closable: closable,
|
12019
|
+
ariaId: ariaId,
|
12020
|
+
prefixCls: prefixCls,
|
12021
|
+
visible: visible && animatedVisible,
|
12022
|
+
onClose: onInternalClose,
|
12023
|
+
onVisibleChanged: onDialogVisibleChanged,
|
12024
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_7__.getMotionName)(prefixCls, transitionName, animation)
|
12025
|
+
}))));
|
12026
|
+
};
|
12027
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
|
12028
|
+
|
12029
|
+
/***/ }),
|
12030
|
+
|
12031
|
+
/***/ "./node_modules/@rc-component/dialog/es/DialogWrap.js":
|
12032
|
+
/*!************************************************************!*\
|
12033
|
+
!*** ./node_modules/@rc-component/dialog/es/DialogWrap.js ***!
|
12034
|
+
\************************************************************/
|
12035
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12036
|
+
|
12037
|
+
"use strict";
|
12038
|
+
__webpack_require__.r(__webpack_exports__);
|
12039
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12040
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12041
|
+
/* harmony export */ });
|
12042
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
12043
|
+
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/portal/es/index.js");
|
12044
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
12045
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
12046
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/dialog/es/context.js");
|
12047
|
+
/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Dialog */ "./node_modules/@rc-component/dialog/es/Dialog/index.js");
|
12048
|
+
|
12049
|
+
|
12050
|
+
|
12051
|
+
|
12052
|
+
|
12053
|
+
// fix issue #10656
|
12054
|
+
/*
|
12055
|
+
* getContainer remarks
|
12056
|
+
* Custom container should not be return, because in the Portal component, it will remove the
|
12057
|
+
* return container element here, if the custom container is the only child of it's component,
|
12058
|
+
* like issue #10656, It will has a conflict with removeChild method in react-dom.
|
12059
|
+
* So here should add a child (div element) to custom container.
|
12060
|
+
* */
|
12061
|
+
|
12062
|
+
const DialogWrap = props => {
|
12063
|
+
const {
|
12064
|
+
visible,
|
12065
|
+
getContainer,
|
12066
|
+
forceRender,
|
12067
|
+
destroyOnClose = false,
|
12068
|
+
afterClose,
|
12069
|
+
panelRef
|
12070
|
+
} = props;
|
12071
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_2__.useState(visible);
|
12072
|
+
const refContext = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => ({
|
12073
|
+
panel: panelRef
|
12074
|
+
}), [panelRef]);
|
12075
|
+
react__WEBPACK_IMPORTED_MODULE_2__.useEffect(() => {
|
12076
|
+
if (visible) {
|
12077
|
+
setAnimatedVisible(true);
|
12078
|
+
}
|
12079
|
+
}, [visible]);
|
12080
|
+
|
12081
|
+
// Destroy on close will remove wrapped div
|
12082
|
+
if (!forceRender && destroyOnClose && !animatedVisible) {
|
12083
|
+
return null;
|
12084
|
+
}
|
12085
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_context__WEBPACK_IMPORTED_MODULE_3__.RefContext.Provider, {
|
12086
|
+
value: refContext
|
12087
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
12088
|
+
open: visible || forceRender || animatedVisible,
|
12089
|
+
autoDestroy: false,
|
12090
|
+
getContainer: getContainer,
|
12091
|
+
autoLock: visible || animatedVisible
|
12092
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Dialog__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
12093
|
+
destroyOnClose: destroyOnClose,
|
12094
|
+
afterClose: () => {
|
12095
|
+
afterClose?.();
|
12096
|
+
setAnimatedVisible(false);
|
12097
|
+
}
|
12098
|
+
}))));
|
12099
|
+
};
|
12100
|
+
DialogWrap.displayName = 'Dialog';
|
12101
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DialogWrap);
|
12102
|
+
|
12103
|
+
/***/ }),
|
12104
|
+
|
12105
|
+
/***/ "./node_modules/@rc-component/dialog/es/context.js":
|
12106
|
+
/*!*********************************************************!*\
|
12107
|
+
!*** ./node_modules/@rc-component/dialog/es/context.js ***!
|
12108
|
+
\*********************************************************/
|
12109
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12110
|
+
|
12111
|
+
"use strict";
|
12112
|
+
__webpack_require__.r(__webpack_exports__);
|
12113
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12114
|
+
/* harmony export */ RefContext: () => (/* binding */ RefContext)
|
12115
|
+
/* harmony export */ });
|
12116
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12117
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12118
|
+
|
12119
|
+
const RefContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
12120
|
+
|
12121
|
+
/***/ }),
|
12122
|
+
|
12123
|
+
/***/ "./node_modules/@rc-component/dialog/es/index.js":
|
12124
|
+
/*!*******************************************************!*\
|
12125
|
+
!*** ./node_modules/@rc-component/dialog/es/index.js ***!
|
12126
|
+
\*******************************************************/
|
12127
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12128
|
+
|
12129
|
+
"use strict";
|
12130
|
+
__webpack_require__.r(__webpack_exports__);
|
12131
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12132
|
+
/* harmony export */ Panel: () => (/* reexport safe */ _Dialog_Content_Panel__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
12133
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12134
|
+
/* harmony export */ });
|
12135
|
+
/* harmony import */ var _DialogWrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DialogWrap */ "./node_modules/@rc-component/dialog/es/DialogWrap.js");
|
12136
|
+
/* harmony import */ var _Dialog_Content_Panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dialog/Content/Panel */ "./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js");
|
12137
|
+
|
12138
|
+
|
12139
|
+
|
12140
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_DialogWrap__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
12141
|
+
|
12142
|
+
/***/ }),
|
12143
|
+
|
12144
|
+
/***/ "./node_modules/@rc-component/dialog/es/util.js":
|
12145
|
+
/*!******************************************************!*\
|
12146
|
+
!*** ./node_modules/@rc-component/dialog/es/util.js ***!
|
12147
|
+
\******************************************************/
|
12148
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12149
|
+
|
12150
|
+
"use strict";
|
12151
|
+
__webpack_require__.r(__webpack_exports__);
|
12152
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12153
|
+
/* harmony export */ getMotionName: () => (/* binding */ getMotionName),
|
12154
|
+
/* harmony export */ offset: () => (/* binding */ offset)
|
12155
|
+
/* harmony export */ });
|
12156
|
+
// =============================== Motion ===============================
|
12157
|
+
function getMotionName(prefixCls, transitionName, animationName) {
|
12158
|
+
let motionName = transitionName;
|
12159
|
+
if (!motionName && animationName) {
|
12160
|
+
motionName = `${prefixCls}-${animationName}`;
|
12161
|
+
}
|
12162
|
+
return motionName;
|
12163
|
+
}
|
12164
|
+
|
12165
|
+
// =============================== Offset ===============================
|
12166
|
+
function getScroll(w, top) {
|
12167
|
+
let ret = w[`page${top ? 'Y' : 'X'}Offset`];
|
12168
|
+
const method = `scroll${top ? 'Top' : 'Left'}`;
|
12169
|
+
if (typeof ret !== 'number') {
|
12170
|
+
const d = w.document;
|
12171
|
+
ret = d.documentElement[method];
|
12172
|
+
if (typeof ret !== 'number') {
|
12173
|
+
ret = d.body[method];
|
12174
|
+
}
|
12175
|
+
}
|
12176
|
+
return ret;
|
12177
|
+
}
|
12178
|
+
function offset(el) {
|
12179
|
+
const rect = el.getBoundingClientRect();
|
12180
|
+
const pos = {
|
12181
|
+
left: rect.left,
|
12182
|
+
top: rect.top
|
12183
|
+
};
|
12184
|
+
const doc = el.ownerDocument;
|
12185
|
+
const w = doc.defaultView || doc.parentWindow;
|
12186
|
+
pos.left += getScroll(w);
|
12187
|
+
pos.top += getScroll(w, true);
|
12188
|
+
return pos;
|
12189
|
+
}
|
12190
|
+
|
12191
|
+
/***/ }),
|
12192
|
+
|
11466
12193
|
/***/ "./node_modules/@rc-component/portal/es/Context.js":
|
11467
12194
|
/*!*********************************************************!*\
|
11468
12195
|
!*** ./node_modules/@rc-component/portal/es/Context.js ***!
|
@@ -13708,6 +14435,1228 @@ function getVisibleArea(initArea, scrollerList) {
|
|
13708
14435
|
return visibleArea;
|
13709
14436
|
}
|
13710
14437
|
|
14438
|
+
/***/ }),
|
14439
|
+
|
14440
|
+
/***/ "./node_modules/@rc-component/util/es/Dom/contains.js":
|
14441
|
+
/*!************************************************************!*\
|
14442
|
+
!*** ./node_modules/@rc-component/util/es/Dom/contains.js ***!
|
14443
|
+
\************************************************************/
|
14444
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
14445
|
+
|
14446
|
+
"use strict";
|
14447
|
+
__webpack_require__.r(__webpack_exports__);
|
14448
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
14449
|
+
/* harmony export */ "default": () => (/* binding */ contains)
|
14450
|
+
/* harmony export */ });
|
14451
|
+
function contains(root, n) {
|
14452
|
+
if (!root) {
|
14453
|
+
return false;
|
14454
|
+
}
|
14455
|
+
|
14456
|
+
// Use native if support
|
14457
|
+
if (root.contains) {
|
14458
|
+
return root.contains(n);
|
14459
|
+
}
|
14460
|
+
|
14461
|
+
// `document.contains` not support with IE11
|
14462
|
+
let node = n;
|
14463
|
+
while (node) {
|
14464
|
+
if (node === root) {
|
14465
|
+
return true;
|
14466
|
+
}
|
14467
|
+
node = node.parentNode;
|
14468
|
+
}
|
14469
|
+
return false;
|
14470
|
+
}
|
14471
|
+
|
14472
|
+
/***/ }),
|
14473
|
+
|
14474
|
+
/***/ "./node_modules/@rc-component/util/es/KeyCode.js":
|
14475
|
+
/*!*******************************************************!*\
|
14476
|
+
!*** ./node_modules/@rc-component/util/es/KeyCode.js ***!
|
14477
|
+
\*******************************************************/
|
14478
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
14479
|
+
|
14480
|
+
"use strict";
|
14481
|
+
__webpack_require__.r(__webpack_exports__);
|
14482
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
14483
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
14484
|
+
/* harmony export */ });
|
14485
|
+
/**
|
14486
|
+
* @ignore
|
14487
|
+
* some key-codes definition and utils from closure-library
|
14488
|
+
* @author yiminghe@gmail.com
|
14489
|
+
*/
|
14490
|
+
|
14491
|
+
const KeyCode = {
|
14492
|
+
/**
|
14493
|
+
* MAC_ENTER
|
14494
|
+
*/
|
14495
|
+
MAC_ENTER: 3,
|
14496
|
+
/**
|
14497
|
+
* BACKSPACE
|
14498
|
+
*/
|
14499
|
+
BACKSPACE: 8,
|
14500
|
+
/**
|
14501
|
+
* TAB
|
14502
|
+
*/
|
14503
|
+
TAB: 9,
|
14504
|
+
/**
|
14505
|
+
* NUMLOCK on FF/Safari Mac
|
14506
|
+
*/
|
14507
|
+
NUM_CENTER: 12,
|
14508
|
+
// NUMLOCK on FF/Safari Mac
|
14509
|
+
/**
|
14510
|
+
* ENTER
|
14511
|
+
*/
|
14512
|
+
ENTER: 13,
|
14513
|
+
/**
|
14514
|
+
* SHIFT
|
14515
|
+
*/
|
14516
|
+
SHIFT: 16,
|
14517
|
+
/**
|
14518
|
+
* CTRL
|
14519
|
+
*/
|
14520
|
+
CTRL: 17,
|
14521
|
+
/**
|
14522
|
+
* ALT
|
14523
|
+
*/
|
14524
|
+
ALT: 18,
|
14525
|
+
/**
|
14526
|
+
* PAUSE
|
14527
|
+
*/
|
14528
|
+
PAUSE: 19,
|
14529
|
+
/**
|
14530
|
+
* CAPS_LOCK
|
14531
|
+
*/
|
14532
|
+
CAPS_LOCK: 20,
|
14533
|
+
/**
|
14534
|
+
* ESC
|
14535
|
+
*/
|
14536
|
+
ESC: 27,
|
14537
|
+
/**
|
14538
|
+
* SPACE
|
14539
|
+
*/
|
14540
|
+
SPACE: 32,
|
14541
|
+
/**
|
14542
|
+
* PAGE_UP
|
14543
|
+
*/
|
14544
|
+
PAGE_UP: 33,
|
14545
|
+
// also NUM_NORTH_EAST
|
14546
|
+
/**
|
14547
|
+
* PAGE_DOWN
|
14548
|
+
*/
|
14549
|
+
PAGE_DOWN: 34,
|
14550
|
+
// also NUM_SOUTH_EAST
|
14551
|
+
/**
|
14552
|
+
* END
|
14553
|
+
*/
|
14554
|
+
END: 35,
|
14555
|
+
// also NUM_SOUTH_WEST
|
14556
|
+
/**
|
14557
|
+
* HOME
|
14558
|
+
*/
|
14559
|
+
HOME: 36,
|
14560
|
+
// also NUM_NORTH_WEST
|
14561
|
+
/**
|
14562
|
+
* LEFT
|
14563
|
+
*/
|
14564
|
+
LEFT: 37,
|
14565
|
+
// also NUM_WEST
|
14566
|
+
/**
|
14567
|
+
* UP
|
14568
|
+
*/
|
14569
|
+
UP: 38,
|
14570
|
+
// also NUM_NORTH
|
14571
|
+
/**
|
14572
|
+
* RIGHT
|
14573
|
+
*/
|
14574
|
+
RIGHT: 39,
|
14575
|
+
// also NUM_EAST
|
14576
|
+
/**
|
14577
|
+
* DOWN
|
14578
|
+
*/
|
14579
|
+
DOWN: 40,
|
14580
|
+
// also NUM_SOUTH
|
14581
|
+
/**
|
14582
|
+
* PRINT_SCREEN
|
14583
|
+
*/
|
14584
|
+
PRINT_SCREEN: 44,
|
14585
|
+
/**
|
14586
|
+
* INSERT
|
14587
|
+
*/
|
14588
|
+
INSERT: 45,
|
14589
|
+
// also NUM_INSERT
|
14590
|
+
/**
|
14591
|
+
* DELETE
|
14592
|
+
*/
|
14593
|
+
DELETE: 46,
|
14594
|
+
// also NUM_DELETE
|
14595
|
+
/**
|
14596
|
+
* ZERO
|
14597
|
+
*/
|
14598
|
+
ZERO: 48,
|
14599
|
+
/**
|
14600
|
+
* ONE
|
14601
|
+
*/
|
14602
|
+
ONE: 49,
|
14603
|
+
/**
|
14604
|
+
* TWO
|
14605
|
+
*/
|
14606
|
+
TWO: 50,
|
14607
|
+
/**
|
14608
|
+
* THREE
|
14609
|
+
*/
|
14610
|
+
THREE: 51,
|
14611
|
+
/**
|
14612
|
+
* FOUR
|
14613
|
+
*/
|
14614
|
+
FOUR: 52,
|
14615
|
+
/**
|
14616
|
+
* FIVE
|
14617
|
+
*/
|
14618
|
+
FIVE: 53,
|
14619
|
+
/**
|
14620
|
+
* SIX
|
14621
|
+
*/
|
14622
|
+
SIX: 54,
|
14623
|
+
/**
|
14624
|
+
* SEVEN
|
14625
|
+
*/
|
14626
|
+
SEVEN: 55,
|
14627
|
+
/**
|
14628
|
+
* EIGHT
|
14629
|
+
*/
|
14630
|
+
EIGHT: 56,
|
14631
|
+
/**
|
14632
|
+
* NINE
|
14633
|
+
*/
|
14634
|
+
NINE: 57,
|
14635
|
+
/**
|
14636
|
+
* QUESTION_MARK
|
14637
|
+
*/
|
14638
|
+
QUESTION_MARK: 63,
|
14639
|
+
// needs localization
|
14640
|
+
/**
|
14641
|
+
* A
|
14642
|
+
*/
|
14643
|
+
A: 65,
|
14644
|
+
/**
|
14645
|
+
* B
|
14646
|
+
*/
|
14647
|
+
B: 66,
|
14648
|
+
/**
|
14649
|
+
* C
|
14650
|
+
*/
|
14651
|
+
C: 67,
|
14652
|
+
/**
|
14653
|
+
* D
|
14654
|
+
*/
|
14655
|
+
D: 68,
|
14656
|
+
/**
|
14657
|
+
* E
|
14658
|
+
*/
|
14659
|
+
E: 69,
|
14660
|
+
/**
|
14661
|
+
* F
|
14662
|
+
*/
|
14663
|
+
F: 70,
|
14664
|
+
/**
|
14665
|
+
* G
|
14666
|
+
*/
|
14667
|
+
G: 71,
|
14668
|
+
/**
|
14669
|
+
* H
|
14670
|
+
*/
|
14671
|
+
H: 72,
|
14672
|
+
/**
|
14673
|
+
* I
|
14674
|
+
*/
|
14675
|
+
I: 73,
|
14676
|
+
/**
|
14677
|
+
* J
|
14678
|
+
*/
|
14679
|
+
J: 74,
|
14680
|
+
/**
|
14681
|
+
* K
|
14682
|
+
*/
|
14683
|
+
K: 75,
|
14684
|
+
/**
|
14685
|
+
* L
|
14686
|
+
*/
|
14687
|
+
L: 76,
|
14688
|
+
/**
|
14689
|
+
* M
|
14690
|
+
*/
|
14691
|
+
M: 77,
|
14692
|
+
/**
|
14693
|
+
* N
|
14694
|
+
*/
|
14695
|
+
N: 78,
|
14696
|
+
/**
|
14697
|
+
* O
|
14698
|
+
*/
|
14699
|
+
O: 79,
|
14700
|
+
/**
|
14701
|
+
* P
|
14702
|
+
*/
|
14703
|
+
P: 80,
|
14704
|
+
/**
|
14705
|
+
* Q
|
14706
|
+
*/
|
14707
|
+
Q: 81,
|
14708
|
+
/**
|
14709
|
+
* R
|
14710
|
+
*/
|
14711
|
+
R: 82,
|
14712
|
+
/**
|
14713
|
+
* S
|
14714
|
+
*/
|
14715
|
+
S: 83,
|
14716
|
+
/**
|
14717
|
+
* T
|
14718
|
+
*/
|
14719
|
+
T: 84,
|
14720
|
+
/**
|
14721
|
+
* U
|
14722
|
+
*/
|
14723
|
+
U: 85,
|
14724
|
+
/**
|
14725
|
+
* V
|
14726
|
+
*/
|
14727
|
+
V: 86,
|
14728
|
+
/**
|
14729
|
+
* W
|
14730
|
+
*/
|
14731
|
+
W: 87,
|
14732
|
+
/**
|
14733
|
+
* X
|
14734
|
+
*/
|
14735
|
+
X: 88,
|
14736
|
+
/**
|
14737
|
+
* Y
|
14738
|
+
*/
|
14739
|
+
Y: 89,
|
14740
|
+
/**
|
14741
|
+
* Z
|
14742
|
+
*/
|
14743
|
+
Z: 90,
|
14744
|
+
/**
|
14745
|
+
* META
|
14746
|
+
*/
|
14747
|
+
META: 91,
|
14748
|
+
// WIN_KEY_LEFT
|
14749
|
+
/**
|
14750
|
+
* WIN_KEY_RIGHT
|
14751
|
+
*/
|
14752
|
+
WIN_KEY_RIGHT: 92,
|
14753
|
+
/**
|
14754
|
+
* CONTEXT_MENU
|
14755
|
+
*/
|
14756
|
+
CONTEXT_MENU: 93,
|
14757
|
+
/**
|
14758
|
+
* NUM_ZERO
|
14759
|
+
*/
|
14760
|
+
NUM_ZERO: 96,
|
14761
|
+
/**
|
14762
|
+
* NUM_ONE
|
14763
|
+
*/
|
14764
|
+
NUM_ONE: 97,
|
14765
|
+
/**
|
14766
|
+
* NUM_TWO
|
14767
|
+
*/
|
14768
|
+
NUM_TWO: 98,
|
14769
|
+
/**
|
14770
|
+
* NUM_THREE
|
14771
|
+
*/
|
14772
|
+
NUM_THREE: 99,
|
14773
|
+
/**
|
14774
|
+
* NUM_FOUR
|
14775
|
+
*/
|
14776
|
+
NUM_FOUR: 100,
|
14777
|
+
/**
|
14778
|
+
* NUM_FIVE
|
14779
|
+
*/
|
14780
|
+
NUM_FIVE: 101,
|
14781
|
+
/**
|
14782
|
+
* NUM_SIX
|
14783
|
+
*/
|
14784
|
+
NUM_SIX: 102,
|
14785
|
+
/**
|
14786
|
+
* NUM_SEVEN
|
14787
|
+
*/
|
14788
|
+
NUM_SEVEN: 103,
|
14789
|
+
/**
|
14790
|
+
* NUM_EIGHT
|
14791
|
+
*/
|
14792
|
+
NUM_EIGHT: 104,
|
14793
|
+
/**
|
14794
|
+
* NUM_NINE
|
14795
|
+
*/
|
14796
|
+
NUM_NINE: 105,
|
14797
|
+
/**
|
14798
|
+
* NUM_MULTIPLY
|
14799
|
+
*/
|
14800
|
+
NUM_MULTIPLY: 106,
|
14801
|
+
/**
|
14802
|
+
* NUM_PLUS
|
14803
|
+
*/
|
14804
|
+
NUM_PLUS: 107,
|
14805
|
+
/**
|
14806
|
+
* NUM_MINUS
|
14807
|
+
*/
|
14808
|
+
NUM_MINUS: 109,
|
14809
|
+
/**
|
14810
|
+
* NUM_PERIOD
|
14811
|
+
*/
|
14812
|
+
NUM_PERIOD: 110,
|
14813
|
+
/**
|
14814
|
+
* NUM_DIVISION
|
14815
|
+
*/
|
14816
|
+
NUM_DIVISION: 111,
|
14817
|
+
/**
|
14818
|
+
* F1
|
14819
|
+
*/
|
14820
|
+
F1: 112,
|
14821
|
+
/**
|
14822
|
+
* F2
|
14823
|
+
*/
|
14824
|
+
F2: 113,
|
14825
|
+
/**
|
14826
|
+
* F3
|
14827
|
+
*/
|
14828
|
+
F3: 114,
|
14829
|
+
/**
|
14830
|
+
* F4
|
14831
|
+
*/
|
14832
|
+
F4: 115,
|
14833
|
+
/**
|
14834
|
+
* F5
|
14835
|
+
*/
|
14836
|
+
F5: 116,
|
14837
|
+
/**
|
14838
|
+
* F6
|
14839
|
+
*/
|
14840
|
+
F6: 117,
|
14841
|
+
/**
|
14842
|
+
* F7
|
14843
|
+
*/
|
14844
|
+
F7: 118,
|
14845
|
+
/**
|
14846
|
+
* F8
|
14847
|
+
*/
|
14848
|
+
F8: 119,
|
14849
|
+
/**
|
14850
|
+
* F9
|
14851
|
+
*/
|
14852
|
+
F9: 120,
|
14853
|
+
/**
|
14854
|
+
* F10
|
14855
|
+
*/
|
14856
|
+
F10: 121,
|
14857
|
+
/**
|
14858
|
+
* F11
|
14859
|
+
*/
|
14860
|
+
F11: 122,
|
14861
|
+
/**
|
14862
|
+
* F12
|
14863
|
+
*/
|
14864
|
+
F12: 123,
|
14865
|
+
/**
|
14866
|
+
* NUMLOCK
|
14867
|
+
*/
|
14868
|
+
NUMLOCK: 144,
|
14869
|
+
/**
|
14870
|
+
* SEMICOLON
|
14871
|
+
*/
|
14872
|
+
SEMICOLON: 186,
|
14873
|
+
// needs localization
|
14874
|
+
/**
|
14875
|
+
* DASH
|
14876
|
+
*/
|
14877
|
+
DASH: 189,
|
14878
|
+
// needs localization
|
14879
|
+
/**
|
14880
|
+
* EQUALS
|
14881
|
+
*/
|
14882
|
+
EQUALS: 187,
|
14883
|
+
// needs localization
|
14884
|
+
/**
|
14885
|
+
* COMMA
|
14886
|
+
*/
|
14887
|
+
COMMA: 188,
|
14888
|
+
// needs localization
|
14889
|
+
/**
|
14890
|
+
* PERIOD
|
14891
|
+
*/
|
14892
|
+
PERIOD: 190,
|
14893
|
+
// needs localization
|
14894
|
+
/**
|
14895
|
+
* SLASH
|
14896
|
+
*/
|
14897
|
+
SLASH: 191,
|
14898
|
+
// needs localization
|
14899
|
+
/**
|
14900
|
+
* APOSTROPHE
|
14901
|
+
*/
|
14902
|
+
APOSTROPHE: 192,
|
14903
|
+
// needs localization
|
14904
|
+
/**
|
14905
|
+
* SINGLE_QUOTE
|
14906
|
+
*/
|
14907
|
+
SINGLE_QUOTE: 222,
|
14908
|
+
// needs localization
|
14909
|
+
/**
|
14910
|
+
* OPEN_SQUARE_BRACKET
|
14911
|
+
*/
|
14912
|
+
OPEN_SQUARE_BRACKET: 219,
|
14913
|
+
// needs localization
|
14914
|
+
/**
|
14915
|
+
* BACKSLASH
|
14916
|
+
*/
|
14917
|
+
BACKSLASH: 220,
|
14918
|
+
// needs localization
|
14919
|
+
/**
|
14920
|
+
* CLOSE_SQUARE_BRACKET
|
14921
|
+
*/
|
14922
|
+
CLOSE_SQUARE_BRACKET: 221,
|
14923
|
+
// needs localization
|
14924
|
+
/**
|
14925
|
+
* WIN_KEY
|
14926
|
+
*/
|
14927
|
+
WIN_KEY: 224,
|
14928
|
+
/**
|
14929
|
+
* MAC_FF_META
|
14930
|
+
*/
|
14931
|
+
MAC_FF_META: 224,
|
14932
|
+
// Firefox (Gecko) fires this for the meta key instead of 91
|
14933
|
+
/**
|
14934
|
+
* WIN_IME
|
14935
|
+
*/
|
14936
|
+
WIN_IME: 229,
|
14937
|
+
// ======================== Function ========================
|
14938
|
+
/**
|
14939
|
+
* whether text and modified key is entered at the same time.
|
14940
|
+
*/
|
14941
|
+
isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
|
14942
|
+
const {
|
14943
|
+
keyCode
|
14944
|
+
} = e;
|
14945
|
+
if (e.altKey && !e.ctrlKey || e.metaKey ||
|
14946
|
+
// Function keys don't generate text
|
14947
|
+
keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
|
14948
|
+
return false;
|
14949
|
+
}
|
14950
|
+
|
14951
|
+
// The following keys are quite harmless, even in combination with
|
14952
|
+
// CTRL, ALT or SHIFT.
|
14953
|
+
switch (keyCode) {
|
14954
|
+
case KeyCode.ALT:
|
14955
|
+
case KeyCode.CAPS_LOCK:
|
14956
|
+
case KeyCode.CONTEXT_MENU:
|
14957
|
+
case KeyCode.CTRL:
|
14958
|
+
case KeyCode.DOWN:
|
14959
|
+
case KeyCode.END:
|
14960
|
+
case KeyCode.ESC:
|
14961
|
+
case KeyCode.HOME:
|
14962
|
+
case KeyCode.INSERT:
|
14963
|
+
case KeyCode.LEFT:
|
14964
|
+
case KeyCode.MAC_FF_META:
|
14965
|
+
case KeyCode.META:
|
14966
|
+
case KeyCode.NUMLOCK:
|
14967
|
+
case KeyCode.NUM_CENTER:
|
14968
|
+
case KeyCode.PAGE_DOWN:
|
14969
|
+
case KeyCode.PAGE_UP:
|
14970
|
+
case KeyCode.PAUSE:
|
14971
|
+
case KeyCode.PRINT_SCREEN:
|
14972
|
+
case KeyCode.RIGHT:
|
14973
|
+
case KeyCode.SHIFT:
|
14974
|
+
case KeyCode.UP:
|
14975
|
+
case KeyCode.WIN_KEY:
|
14976
|
+
case KeyCode.WIN_KEY_RIGHT:
|
14977
|
+
return false;
|
14978
|
+
default:
|
14979
|
+
return true;
|
14980
|
+
}
|
14981
|
+
},
|
14982
|
+
/**
|
14983
|
+
* whether character is entered.
|
14984
|
+
*/
|
14985
|
+
isCharacterKey: function isCharacterKey(keyCode) {
|
14986
|
+
if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
|
14987
|
+
return true;
|
14988
|
+
}
|
14989
|
+
if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
|
14990
|
+
return true;
|
14991
|
+
}
|
14992
|
+
if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
|
14993
|
+
return true;
|
14994
|
+
}
|
14995
|
+
|
14996
|
+
// Safari sends zero key code for non-latin characters.
|
14997
|
+
if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
|
14998
|
+
return true;
|
14999
|
+
}
|
15000
|
+
switch (keyCode) {
|
15001
|
+
case KeyCode.SPACE:
|
15002
|
+
case KeyCode.QUESTION_MARK:
|
15003
|
+
case KeyCode.NUM_PLUS:
|
15004
|
+
case KeyCode.NUM_MINUS:
|
15005
|
+
case KeyCode.NUM_PERIOD:
|
15006
|
+
case KeyCode.NUM_DIVISION:
|
15007
|
+
case KeyCode.SEMICOLON:
|
15008
|
+
case KeyCode.DASH:
|
15009
|
+
case KeyCode.EQUALS:
|
15010
|
+
case KeyCode.COMMA:
|
15011
|
+
case KeyCode.PERIOD:
|
15012
|
+
case KeyCode.SLASH:
|
15013
|
+
case KeyCode.APOSTROPHE:
|
15014
|
+
case KeyCode.SINGLE_QUOTE:
|
15015
|
+
case KeyCode.OPEN_SQUARE_BRACKET:
|
15016
|
+
case KeyCode.BACKSLASH:
|
15017
|
+
case KeyCode.CLOSE_SQUARE_BRACKET:
|
15018
|
+
return true;
|
15019
|
+
default:
|
15020
|
+
return false;
|
15021
|
+
}
|
15022
|
+
}
|
15023
|
+
};
|
15024
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (KeyCode);
|
15025
|
+
|
15026
|
+
/***/ }),
|
15027
|
+
|
15028
|
+
/***/ "./node_modules/@rc-component/util/es/React/isFragment.js":
|
15029
|
+
/*!****************************************************************!*\
|
15030
|
+
!*** ./node_modules/@rc-component/util/es/React/isFragment.js ***!
|
15031
|
+
\****************************************************************/
|
15032
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15033
|
+
|
15034
|
+
"use strict";
|
15035
|
+
__webpack_require__.r(__webpack_exports__);
|
15036
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15037
|
+
/* harmony export */ "default": () => (/* binding */ isFragment)
|
15038
|
+
/* harmony export */ });
|
15039
|
+
const REACT_ELEMENT_TYPE_18 = Symbol.for('react.element');
|
15040
|
+
const REACT_ELEMENT_TYPE_19 = Symbol.for('react.transitional.element');
|
15041
|
+
const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
15042
|
+
|
15043
|
+
/**
|
15044
|
+
* Compatible with React 18 or 19 to check if node is a Fragment.
|
15045
|
+
*/
|
15046
|
+
function isFragment(object) {
|
15047
|
+
return (
|
15048
|
+
// Base object type
|
15049
|
+
object && typeof object === 'object' && (
|
15050
|
+
// React Element type
|
15051
|
+
object.$$typeof === REACT_ELEMENT_TYPE_18 || object.$$typeof === REACT_ELEMENT_TYPE_19) &&
|
15052
|
+
// React Fragment type
|
15053
|
+
object.type === REACT_FRAGMENT_TYPE
|
15054
|
+
);
|
15055
|
+
}
|
15056
|
+
|
15057
|
+
/***/ }),
|
15058
|
+
|
15059
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useId.js":
|
15060
|
+
/*!***********************************************************!*\
|
15061
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useId.js ***!
|
15062
|
+
\***********************************************************/
|
15063
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15064
|
+
|
15065
|
+
"use strict";
|
15066
|
+
__webpack_require__.r(__webpack_exports__);
|
15067
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15068
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
15069
|
+
/* harmony export */ resetUuid: () => (/* binding */ resetUuid)
|
15070
|
+
/* harmony export */ });
|
15071
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
15072
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
15073
|
+
|
15074
|
+
function getUseId() {
|
15075
|
+
// We need fully clone React function here to avoid webpack warning React 17 do not export `useId`
|
15076
|
+
const fullClone = {
|
15077
|
+
...react__WEBPACK_IMPORTED_MODULE_0__
|
15078
|
+
};
|
15079
|
+
return fullClone.useId;
|
15080
|
+
}
|
15081
|
+
let uuid = 0;
|
15082
|
+
|
15083
|
+
/** @private Note only worked in develop env. Not work in production. */
|
15084
|
+
function resetUuid() {
|
15085
|
+
if (true) {
|
15086
|
+
uuid = 0;
|
15087
|
+
}
|
15088
|
+
}
|
15089
|
+
const useOriginId = getUseId();
|
15090
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useOriginId ?
|
15091
|
+
// Use React `useId`
|
15092
|
+
function useId(id) {
|
15093
|
+
const reactId = useOriginId();
|
15094
|
+
|
15095
|
+
// Developer passed id is single source of truth
|
15096
|
+
if (id) {
|
15097
|
+
return id;
|
15098
|
+
}
|
15099
|
+
|
15100
|
+
// Test env always return mock id
|
15101
|
+
if (false) {}
|
15102
|
+
return reactId;
|
15103
|
+
} :
|
15104
|
+
// Use compatible of `useId`
|
15105
|
+
function useCompatId(id) {
|
15106
|
+
// Inner id for accessibility usage. Only work in client side
|
15107
|
+
const [innerId, setInnerId] = react__WEBPACK_IMPORTED_MODULE_0__.useState('ssr-id');
|
15108
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
15109
|
+
const nextId = uuid;
|
15110
|
+
uuid += 1;
|
15111
|
+
setInnerId(`rc_unique_${nextId}`);
|
15112
|
+
}, []);
|
15113
|
+
|
15114
|
+
// Developer passed id is single source of truth
|
15115
|
+
if (id) {
|
15116
|
+
return id;
|
15117
|
+
}
|
15118
|
+
|
15119
|
+
// Test env always return mock id
|
15120
|
+
if (false) {}
|
15121
|
+
|
15122
|
+
// Return react native id or inner id
|
15123
|
+
return innerId;
|
15124
|
+
});
|
15125
|
+
|
15126
|
+
/***/ }),
|
15127
|
+
|
15128
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useMemo.js":
|
15129
|
+
/*!*************************************************************!*\
|
15130
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useMemo.js ***!
|
15131
|
+
\*************************************************************/
|
15132
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15133
|
+
|
15134
|
+
"use strict";
|
15135
|
+
__webpack_require__.r(__webpack_exports__);
|
15136
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15137
|
+
/* harmony export */ "default": () => (/* binding */ useMemo)
|
15138
|
+
/* harmony export */ });
|
15139
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
15140
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
15141
|
+
|
15142
|
+
function useMemo(getValue, condition, shouldUpdate) {
|
15143
|
+
const cacheRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef({});
|
15144
|
+
if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
15145
|
+
cacheRef.current.value = getValue();
|
15146
|
+
cacheRef.current.condition = condition;
|
15147
|
+
}
|
15148
|
+
return cacheRef.current.value;
|
15149
|
+
}
|
15150
|
+
|
15151
|
+
/***/ }),
|
15152
|
+
|
15153
|
+
/***/ "./node_modules/@rc-component/util/es/pickAttrs.js":
|
15154
|
+
/*!*********************************************************!*\
|
15155
|
+
!*** ./node_modules/@rc-component/util/es/pickAttrs.js ***!
|
15156
|
+
\*********************************************************/
|
15157
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15158
|
+
|
15159
|
+
"use strict";
|
15160
|
+
__webpack_require__.r(__webpack_exports__);
|
15161
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15162
|
+
/* harmony export */ "default": () => (/* binding */ pickAttrs)
|
15163
|
+
/* harmony export */ });
|
15164
|
+
const attributes = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
15165
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
15166
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
15167
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
15168
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
15169
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
15170
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
15171
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
15172
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
15173
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
15174
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
15175
|
+
summary tabIndex target title type useMap value width wmode wrap`;
|
15176
|
+
const eventsName = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
15177
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
15178
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
15179
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
15180
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
15181
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
15182
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`;
|
15183
|
+
const propList = `${attributes} ${eventsName}`.split(/[\s\n]+/);
|
15184
|
+
|
15185
|
+
/* eslint-enable max-len */
|
15186
|
+
const ariaPrefix = 'aria-';
|
15187
|
+
const dataPrefix = 'data-';
|
15188
|
+
function match(key, prefix) {
|
15189
|
+
return key.indexOf(prefix) === 0;
|
15190
|
+
}
|
15191
|
+
/**
|
15192
|
+
* Picker props from exist props with filter
|
15193
|
+
* @param props Passed props
|
15194
|
+
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
15195
|
+
*/
|
15196
|
+
function pickAttrs(props, ariaOnly = false) {
|
15197
|
+
let mergedConfig;
|
15198
|
+
if (ariaOnly === false) {
|
15199
|
+
mergedConfig = {
|
15200
|
+
aria: true,
|
15201
|
+
data: true,
|
15202
|
+
attr: true
|
15203
|
+
};
|
15204
|
+
} else if (ariaOnly === true) {
|
15205
|
+
mergedConfig = {
|
15206
|
+
aria: true
|
15207
|
+
};
|
15208
|
+
} else {
|
15209
|
+
mergedConfig = {
|
15210
|
+
...ariaOnly
|
15211
|
+
};
|
15212
|
+
}
|
15213
|
+
const attrs = {};
|
15214
|
+
Object.keys(props).forEach(key => {
|
15215
|
+
if (
|
15216
|
+
// Aria
|
15217
|
+
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
15218
|
+
// Data
|
15219
|
+
mergedConfig.data && match(key, dataPrefix) ||
|
15220
|
+
// Attr
|
15221
|
+
mergedConfig.attr && propList.includes(key)) {
|
15222
|
+
attrs[key] = props[key];
|
15223
|
+
}
|
15224
|
+
});
|
15225
|
+
return attrs;
|
15226
|
+
}
|
15227
|
+
|
15228
|
+
/***/ }),
|
15229
|
+
|
15230
|
+
/***/ "./node_modules/@rc-component/util/es/ref.js":
|
15231
|
+
/*!***************************************************!*\
|
15232
|
+
!*** ./node_modules/@rc-component/util/es/ref.js ***!
|
15233
|
+
\***************************************************/
|
15234
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15235
|
+
|
15236
|
+
"use strict";
|
15237
|
+
__webpack_require__.r(__webpack_exports__);
|
15238
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15239
|
+
/* harmony export */ composeRef: () => (/* binding */ composeRef),
|
15240
|
+
/* harmony export */ fillRef: () => (/* binding */ fillRef),
|
15241
|
+
/* harmony export */ getNodeRef: () => (/* binding */ getNodeRef),
|
15242
|
+
/* harmony export */ supportNodeRef: () => (/* binding */ supportNodeRef),
|
15243
|
+
/* harmony export */ supportRef: () => (/* binding */ supportRef),
|
15244
|
+
/* harmony export */ useComposeRef: () => (/* binding */ useComposeRef)
|
15245
|
+
/* harmony export */ });
|
15246
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
15247
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
15248
|
+
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/@rc-component/util/node_modules/react-is/index.js");
|
15249
|
+
/* harmony import */ var _hooks_useMemo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/useMemo */ "./node_modules/@rc-component/util/es/hooks/useMemo.js");
|
15250
|
+
/* harmony import */ var _React_isFragment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./React/isFragment */ "./node_modules/@rc-component/util/es/React/isFragment.js");
|
15251
|
+
|
15252
|
+
|
15253
|
+
|
15254
|
+
|
15255
|
+
const fillRef = (ref, node) => {
|
15256
|
+
if (typeof ref === 'function') {
|
15257
|
+
ref(node);
|
15258
|
+
} else if (typeof ref === 'object' && ref && 'current' in ref) {
|
15259
|
+
ref.current = node;
|
15260
|
+
}
|
15261
|
+
};
|
15262
|
+
|
15263
|
+
/**
|
15264
|
+
* Merge refs into one ref function to support ref passing.
|
15265
|
+
*/
|
15266
|
+
const composeRef = (...refs) => {
|
15267
|
+
const refList = refs.filter(Boolean);
|
15268
|
+
if (refList.length <= 1) {
|
15269
|
+
return refList[0];
|
15270
|
+
}
|
15271
|
+
return node => {
|
15272
|
+
refs.forEach(ref => {
|
15273
|
+
fillRef(ref, node);
|
15274
|
+
});
|
15275
|
+
};
|
15276
|
+
};
|
15277
|
+
const useComposeRef = (...refs) => {
|
15278
|
+
return (0,_hooks_useMemo__WEBPACK_IMPORTED_MODULE_2__["default"])(() => composeRef(...refs),
|
15279
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
15280
|
+
refs, (prev, next) => prev.length !== next.length || prev.every((ref, i) => ref !== next[i]));
|
15281
|
+
};
|
15282
|
+
const supportRef = nodeOrComponent => {
|
15283
|
+
if (!nodeOrComponent) {
|
15284
|
+
return false;
|
15285
|
+
}
|
15286
|
+
|
15287
|
+
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
|
15288
|
+
if (isReactElement(nodeOrComponent) && nodeOrComponent.props.propertyIsEnumerable('ref')) {
|
15289
|
+
return true;
|
15290
|
+
}
|
15291
|
+
const type = (0,react_is__WEBPACK_IMPORTED_MODULE_1__.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
15292
|
+
|
15293
|
+
// Function component node
|
15294
|
+
if (typeof type === 'function' && !type.prototype?.render && type.$$typeof !== react_is__WEBPACK_IMPORTED_MODULE_1__.ForwardRef) {
|
15295
|
+
return false;
|
15296
|
+
}
|
15297
|
+
|
15298
|
+
// Class component
|
15299
|
+
if (typeof nodeOrComponent === 'function' && !nodeOrComponent.prototype?.render && nodeOrComponent.$$typeof !== react_is__WEBPACK_IMPORTED_MODULE_1__.ForwardRef) {
|
15300
|
+
return false;
|
15301
|
+
}
|
15302
|
+
return true;
|
15303
|
+
};
|
15304
|
+
function isReactElement(node) {
|
15305
|
+
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(node) && !(0,_React_isFragment__WEBPACK_IMPORTED_MODULE_3__["default"])(node);
|
15306
|
+
}
|
15307
|
+
const supportNodeRef = node => {
|
15308
|
+
return isReactElement(node) && supportRef(node);
|
15309
|
+
};
|
15310
|
+
|
15311
|
+
/**
|
15312
|
+
* In React 19. `ref` is not a property from node.
|
15313
|
+
* But a property from `props.ref`.
|
15314
|
+
* To check if `props.ref` exist or fallback to `ref`.
|
15315
|
+
*/
|
15316
|
+
const getNodeRef = node => {
|
15317
|
+
if (node && isReactElement(node)) {
|
15318
|
+
const ele = node;
|
15319
|
+
|
15320
|
+
// Source from:
|
15321
|
+
// https://github.com/mui/material-ui/blob/master/packages/mui-utils/src/getReactNodeRef/getReactNodeRef.ts
|
15322
|
+
return ele.props.propertyIsEnumerable('ref') ? ele.props.ref : ele.ref;
|
15323
|
+
}
|
15324
|
+
return null;
|
15325
|
+
};
|
15326
|
+
|
15327
|
+
/***/ }),
|
15328
|
+
|
15329
|
+
/***/ "./node_modules/@rc-component/util/es/warning.js":
|
15330
|
+
/*!*******************************************************!*\
|
15331
|
+
!*** ./node_modules/@rc-component/util/es/warning.js ***!
|
15332
|
+
\*******************************************************/
|
15333
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15334
|
+
|
15335
|
+
"use strict";
|
15336
|
+
__webpack_require__.r(__webpack_exports__);
|
15337
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15338
|
+
/* harmony export */ call: () => (/* binding */ call),
|
15339
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
15340
|
+
/* harmony export */ note: () => (/* binding */ note),
|
15341
|
+
/* harmony export */ noteOnce: () => (/* binding */ noteOnce),
|
15342
|
+
/* harmony export */ preMessage: () => (/* binding */ preMessage),
|
15343
|
+
/* harmony export */ resetWarned: () => (/* binding */ resetWarned),
|
15344
|
+
/* harmony export */ warning: () => (/* binding */ warning),
|
15345
|
+
/* harmony export */ warningOnce: () => (/* binding */ warningOnce)
|
15346
|
+
/* harmony export */ });
|
15347
|
+
/* eslint-disable no-console */
|
15348
|
+
let warned = {};
|
15349
|
+
const preWarningFns = [];
|
15350
|
+
|
15351
|
+
/**
|
15352
|
+
* Pre warning enable you to parse content before console.error.
|
15353
|
+
* Modify to null will prevent warning.
|
15354
|
+
*/
|
15355
|
+
const preMessage = fn => {
|
15356
|
+
preWarningFns.push(fn);
|
15357
|
+
};
|
15358
|
+
|
15359
|
+
/**
|
15360
|
+
* Warning if condition not match.
|
15361
|
+
* @param valid Condition
|
15362
|
+
* @param message Warning message
|
15363
|
+
* @example
|
15364
|
+
* ```js
|
15365
|
+
* warning(false, 'some error'); // print some error
|
15366
|
+
* warning(true, 'some error'); // print nothing
|
15367
|
+
* warning(1 === 2, 'some error'); // print some error
|
15368
|
+
* ```
|
15369
|
+
*/
|
15370
|
+
function warning(valid, message) {
|
15371
|
+
if ( true && !valid && console !== undefined) {
|
15372
|
+
const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? '', 'warning'), message);
|
15373
|
+
if (finalMessage) {
|
15374
|
+
console.error(`Warning: ${finalMessage}`);
|
15375
|
+
}
|
15376
|
+
}
|
15377
|
+
}
|
15378
|
+
|
15379
|
+
/** @see Similar to {@link warning} */
|
15380
|
+
function note(valid, message) {
|
15381
|
+
if ( true && !valid && console !== undefined) {
|
15382
|
+
const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? '', 'note'), message);
|
15383
|
+
if (finalMessage) {
|
15384
|
+
console.warn(`Note: ${finalMessage}`);
|
15385
|
+
}
|
15386
|
+
}
|
15387
|
+
}
|
15388
|
+
function resetWarned() {
|
15389
|
+
warned = {};
|
15390
|
+
}
|
15391
|
+
function call(method, valid, message) {
|
15392
|
+
if (!valid && !warned[message]) {
|
15393
|
+
method(false, message);
|
15394
|
+
warned[message] = true;
|
15395
|
+
}
|
15396
|
+
}
|
15397
|
+
|
15398
|
+
/** @see Same as {@link warning}, but only warn once for the same message */
|
15399
|
+
function warningOnce(valid, message) {
|
15400
|
+
call(warning, valid, message);
|
15401
|
+
}
|
15402
|
+
|
15403
|
+
/** @see Same as {@link warning}, but only warn once for the same message */
|
15404
|
+
function noteOnce(valid, message) {
|
15405
|
+
call(note, valid, message);
|
15406
|
+
}
|
15407
|
+
warningOnce.preMessage = preMessage;
|
15408
|
+
warningOnce.resetWarned = resetWarned;
|
15409
|
+
warningOnce.noteOnce = noteOnce;
|
15410
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (warningOnce);
|
15411
|
+
|
15412
|
+
/***/ }),
|
15413
|
+
|
15414
|
+
/***/ "./node_modules/@rc-component/util/node_modules/react-is/cjs/react-is.development.js":
|
15415
|
+
/*!*******************************************************************************************!*\
|
15416
|
+
!*** ./node_modules/@rc-component/util/node_modules/react-is/cjs/react-is.development.js ***!
|
15417
|
+
\*******************************************************************************************/
|
15418
|
+
/***/ ((__unused_webpack_module, exports) => {
|
15419
|
+
|
15420
|
+
"use strict";
|
15421
|
+
/**
|
15422
|
+
* @license React
|
15423
|
+
* react-is.development.js
|
15424
|
+
*
|
15425
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
15426
|
+
*
|
15427
|
+
* This source code is licensed under the MIT license found in the
|
15428
|
+
* LICENSE file in the root directory of this source tree.
|
15429
|
+
*/
|
15430
|
+
|
15431
|
+
|
15432
|
+
|
15433
|
+
if (true) {
|
15434
|
+
(function() {
|
15435
|
+
'use strict';
|
15436
|
+
|
15437
|
+
// ATTENTION
|
15438
|
+
// When adding new symbols to this file,
|
15439
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
15440
|
+
// The Symbol used to tag the ReactElement-like types.
|
15441
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
15442
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
15443
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
15444
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
15445
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
15446
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
15447
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
15448
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
15449
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
15450
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
15451
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
15452
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
15453
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
15454
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
15455
|
+
|
15456
|
+
// -----------------------------------------------------------------------------
|
15457
|
+
|
15458
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
15459
|
+
var enableCacheElement = false;
|
15460
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
15461
|
+
|
15462
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
15463
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
15464
|
+
// issues in DEV builds.
|
15465
|
+
|
15466
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
15467
|
+
|
15468
|
+
var REACT_MODULE_REFERENCE;
|
15469
|
+
|
15470
|
+
{
|
15471
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
15472
|
+
}
|
15473
|
+
|
15474
|
+
function isValidElementType(type) {
|
15475
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
15476
|
+
return true;
|
15477
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
15478
|
+
|
15479
|
+
|
15480
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
15481
|
+
return true;
|
15482
|
+
}
|
15483
|
+
|
15484
|
+
if (typeof type === 'object' && type !== null) {
|
15485
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
15486
|
+
// types supported by any Flight configuration anywhere since
|
15487
|
+
// we don't know which Flight build this will end up being used
|
15488
|
+
// with.
|
15489
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
15490
|
+
return true;
|
15491
|
+
}
|
15492
|
+
}
|
15493
|
+
|
15494
|
+
return false;
|
15495
|
+
}
|
15496
|
+
|
15497
|
+
function typeOf(object) {
|
15498
|
+
if (typeof object === 'object' && object !== null) {
|
15499
|
+
var $$typeof = object.$$typeof;
|
15500
|
+
|
15501
|
+
switch ($$typeof) {
|
15502
|
+
case REACT_ELEMENT_TYPE:
|
15503
|
+
var type = object.type;
|
15504
|
+
|
15505
|
+
switch (type) {
|
15506
|
+
case REACT_FRAGMENT_TYPE:
|
15507
|
+
case REACT_PROFILER_TYPE:
|
15508
|
+
case REACT_STRICT_MODE_TYPE:
|
15509
|
+
case REACT_SUSPENSE_TYPE:
|
15510
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
15511
|
+
return type;
|
15512
|
+
|
15513
|
+
default:
|
15514
|
+
var $$typeofType = type && type.$$typeof;
|
15515
|
+
|
15516
|
+
switch ($$typeofType) {
|
15517
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
15518
|
+
case REACT_CONTEXT_TYPE:
|
15519
|
+
case REACT_FORWARD_REF_TYPE:
|
15520
|
+
case REACT_LAZY_TYPE:
|
15521
|
+
case REACT_MEMO_TYPE:
|
15522
|
+
case REACT_PROVIDER_TYPE:
|
15523
|
+
return $$typeofType;
|
15524
|
+
|
15525
|
+
default:
|
15526
|
+
return $$typeof;
|
15527
|
+
}
|
15528
|
+
|
15529
|
+
}
|
15530
|
+
|
15531
|
+
case REACT_PORTAL_TYPE:
|
15532
|
+
return $$typeof;
|
15533
|
+
}
|
15534
|
+
}
|
15535
|
+
|
15536
|
+
return undefined;
|
15537
|
+
}
|
15538
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
15539
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
15540
|
+
var Element = REACT_ELEMENT_TYPE;
|
15541
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
15542
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
15543
|
+
var Lazy = REACT_LAZY_TYPE;
|
15544
|
+
var Memo = REACT_MEMO_TYPE;
|
15545
|
+
var Portal = REACT_PORTAL_TYPE;
|
15546
|
+
var Profiler = REACT_PROFILER_TYPE;
|
15547
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
15548
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
15549
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
15550
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
15551
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
15552
|
+
|
15553
|
+
function isAsyncMode(object) {
|
15554
|
+
{
|
15555
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
15556
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
15557
|
+
|
15558
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
15559
|
+
}
|
15560
|
+
}
|
15561
|
+
|
15562
|
+
return false;
|
15563
|
+
}
|
15564
|
+
function isConcurrentMode(object) {
|
15565
|
+
{
|
15566
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
15567
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
15568
|
+
|
15569
|
+
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
15570
|
+
}
|
15571
|
+
}
|
15572
|
+
|
15573
|
+
return false;
|
15574
|
+
}
|
15575
|
+
function isContextConsumer(object) {
|
15576
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
15577
|
+
}
|
15578
|
+
function isContextProvider(object) {
|
15579
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
15580
|
+
}
|
15581
|
+
function isElement(object) {
|
15582
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
15583
|
+
}
|
15584
|
+
function isForwardRef(object) {
|
15585
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
15586
|
+
}
|
15587
|
+
function isFragment(object) {
|
15588
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
15589
|
+
}
|
15590
|
+
function isLazy(object) {
|
15591
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
15592
|
+
}
|
15593
|
+
function isMemo(object) {
|
15594
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
15595
|
+
}
|
15596
|
+
function isPortal(object) {
|
15597
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
15598
|
+
}
|
15599
|
+
function isProfiler(object) {
|
15600
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
15601
|
+
}
|
15602
|
+
function isStrictMode(object) {
|
15603
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
15604
|
+
}
|
15605
|
+
function isSuspense(object) {
|
15606
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
15607
|
+
}
|
15608
|
+
function isSuspenseList(object) {
|
15609
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
15610
|
+
}
|
15611
|
+
|
15612
|
+
exports.ContextConsumer = ContextConsumer;
|
15613
|
+
exports.ContextProvider = ContextProvider;
|
15614
|
+
exports.Element = Element;
|
15615
|
+
exports.ForwardRef = ForwardRef;
|
15616
|
+
exports.Fragment = Fragment;
|
15617
|
+
exports.Lazy = Lazy;
|
15618
|
+
exports.Memo = Memo;
|
15619
|
+
exports.Portal = Portal;
|
15620
|
+
exports.Profiler = Profiler;
|
15621
|
+
exports.StrictMode = StrictMode;
|
15622
|
+
exports.Suspense = Suspense;
|
15623
|
+
exports.SuspenseList = SuspenseList;
|
15624
|
+
exports.isAsyncMode = isAsyncMode;
|
15625
|
+
exports.isConcurrentMode = isConcurrentMode;
|
15626
|
+
exports.isContextConsumer = isContextConsumer;
|
15627
|
+
exports.isContextProvider = isContextProvider;
|
15628
|
+
exports.isElement = isElement;
|
15629
|
+
exports.isForwardRef = isForwardRef;
|
15630
|
+
exports.isFragment = isFragment;
|
15631
|
+
exports.isLazy = isLazy;
|
15632
|
+
exports.isMemo = isMemo;
|
15633
|
+
exports.isPortal = isPortal;
|
15634
|
+
exports.isProfiler = isProfiler;
|
15635
|
+
exports.isStrictMode = isStrictMode;
|
15636
|
+
exports.isSuspense = isSuspense;
|
15637
|
+
exports.isSuspenseList = isSuspenseList;
|
15638
|
+
exports.isValidElementType = isValidElementType;
|
15639
|
+
exports.typeOf = typeOf;
|
15640
|
+
})();
|
15641
|
+
}
|
15642
|
+
|
15643
|
+
|
15644
|
+
/***/ }),
|
15645
|
+
|
15646
|
+
/***/ "./node_modules/@rc-component/util/node_modules/react-is/index.js":
|
15647
|
+
/*!************************************************************************!*\
|
15648
|
+
!*** ./node_modules/@rc-component/util/node_modules/react-is/index.js ***!
|
15649
|
+
\************************************************************************/
|
15650
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15651
|
+
|
15652
|
+
"use strict";
|
15653
|
+
|
15654
|
+
|
15655
|
+
if (false) {} else {
|
15656
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/@rc-component/util/node_modules/react-is/cjs/react-is.development.js");
|
15657
|
+
}
|
15658
|
+
|
15659
|
+
|
13711
15660
|
/***/ }),
|
13712
15661
|
|
13713
15662
|
/***/ "./node_modules/@react-spring/animated/dist/cjs/index.js":
|
@@ -37180,7 +39129,7 @@ var prefixCls = function prefixCls(p) {
|
|
37180
39129
|
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_0___default().button.withConfig({
|
37181
39130
|
displayName: "StyledButton",
|
37182
39131
|
componentId: "sc-gbd81f-0"
|
37183
|
-
})(["display:inline-flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:disabled{cursor:not-allowed;}text-decoration:none;&:hover,&:visited,&:focus{text-decoration:none;}padding-left:", "px;padding-right:", "px;gap:", "px;height:", "px;&.", "-disabled{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}}&:not(.", "-disabled){&.", "-primary{background-color:", ";border:none;.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-secondary{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-negative{background-color:", ";border:none;.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-negative_secondary{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-positive{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-white{background-color:", ";border:1px solid ", ";.", "-text{color:", ";}.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";border:1px solid ", ";.", "-icon{color:", ";}}}}"], function (_ref) {
|
39132
|
+
})(["display:inline-flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:disabled{cursor:not-allowed;}text-decoration:none;&:hover,&:visited,&:focus{text-decoration:none;}padding-left:", "px;padding-right:", "px;gap:", "px;height:", "px;&.", "-disabled{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&.", "-ghost{border:0 none;}}&:not(.", "-disabled){&.", "-primary{background-color:", ";border:none;.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-secondary{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-negative{background-color:", ";border:none;.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-negative_secondary{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-positive{background-color:", ";border:1px solid ", ";.", "-text,.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";box-shadow:", ";}}&.", "-white{background-color:", ";border:1px solid ", ";.", "-text{color:", ";}.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";border:1px solid ", ";.", "-icon{color:", ";}}}&.", "-ghost{background-color:", ";border:0 none;.", "-text{color:", ";}.", "-icon{color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";.", "-icon{color:", ";}}}}"], function (_ref) {
|
37184
39133
|
var $size = _ref.$size,
|
37185
39134
|
$leftIcon = _ref.$leftIcon;
|
37186
39135
|
return padding.left[$size][$leftIcon ? 1 : 0];
|
@@ -37200,7 +39149,7 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_0___default().butt
|
|
37200
39149
|
return t.color.button_border_disabled;
|
37201
39150
|
}), prefixCls, prefixCls, theme(function (t) {
|
37202
39151
|
return t.color.button_text_disabled;
|
37203
|
-
}), prefixCls, prefixCls, theme(function (t) {
|
39152
|
+
}), prefixCls, prefixCls, prefixCls, theme(function (t) {
|
37204
39153
|
return t.color.button_primary_bg;
|
37205
39154
|
}), prefixCls, prefixCls, theme(function (t) {
|
37206
39155
|
return t.color.button_primary_text;
|
@@ -37272,6 +39221,18 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_0___default().butt
|
|
37272
39221
|
return t.color.button_white_border_focus;
|
37273
39222
|
}), prefixCls, theme(function (t) {
|
37274
39223
|
return t.color.button_white_text;
|
39224
|
+
}), prefixCls, theme(function (t) {
|
39225
|
+
return t.color.button_white_bg;
|
39226
|
+
}), prefixCls, theme(function (t) {
|
39227
|
+
return t.color.button_white_text;
|
39228
|
+
}), prefixCls, theme(function (t) {
|
39229
|
+
return t.color.button_white_icon;
|
39230
|
+
}), theme(function (t) {
|
39231
|
+
return t.color.button_white_bg_hover;
|
39232
|
+
}), theme(function (t) {
|
39233
|
+
return t.color.button_white_bg_focus;
|
39234
|
+
}), prefixCls, theme(function (t) {
|
39235
|
+
return t.color.button_white_text;
|
37275
39236
|
}));
|
37276
39237
|
var padding = {
|
37277
39238
|
left: {
|
@@ -40098,7 +42059,7 @@ ComboButton.displayName = 'ComboButton';
|
|
40098
42059
|
ComboButton.propTypes = {
|
40099
42060
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40100
42061
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40101
|
-
variant:
|
42062
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
40102
42063
|
size: _constants__WEBPACK_IMPORTED_MODULE_3__.PT_BUTTON_SIZE,
|
40103
42064
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_constants__WEBPACK_IMPORTED_MODULE_3__.PT_ICON_NAMES, (prop_types__WEBPACK_IMPORTED_MODULE_0___default().elementType)]),
|
40104
42065
|
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
|
@@ -40277,7 +42238,7 @@ var PT_INPUT_SHARED = {
|
|
40277
42238
|
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40278
42239
|
};
|
40279
42240
|
var PT_TOAST_POSITION = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right']);
|
40280
|
-
var PT_BUTTON_VARIANT = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']);
|
42241
|
+
var PT_BUTTON_VARIANT = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white', 'ghost']);
|
40281
42242
|
var PT_BUTTON_SIZE = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']);
|
40282
42243
|
var PT_ICON_NAMES = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.keys(_icons__WEBPACK_IMPORTED_MODULE_1__["default"]));
|
40283
42244
|
var PT_COLOR_NAMES = prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(Object.keys(_themes__WEBPACK_IMPORTED_MODULE_2__.lightTheme.color));
|
@@ -40546,12 +42507,12 @@ Drawer.propTypes = {
|
|
40546
42507
|
styles: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
40547
42508
|
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
40548
42509
|
wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
40549
|
-
|
42510
|
+
section: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
40550
42511
|
}),
|
40551
42512
|
classNames: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
40552
42513
|
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40553
42514
|
wrapper: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40554
|
-
|
42515
|
+
section: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
40555
42516
|
}),
|
40556
42517
|
zIndex: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40557
42518
|
destroyOnClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
@@ -40626,7 +42587,7 @@ var theme = function theme(cb) {
|
|
40626
42587
|
var StyledDrawer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(DrawerAdaptor).withConfig({
|
40627
42588
|
displayName: "StyledDrawer",
|
40628
42589
|
componentId: "sc-12ycvcn-0"
|
40629
|
-
})(["&.", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-left .", "-content-wrapper{top:0;bottom:0;left:0;}&-right .", "-content-wrapper{top:0;right:0;bottom:0;}&-left .", "-content{border-right:1px solid ", ";}&-right .", "-content{border-left:1px solid ", ";}}.", "{&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-
|
42590
|
+
})(["&.", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-left .", "-content-wrapper{top:0;bottom:0;left:0;}&-right .", "-content-wrapper{top:0;right:0;bottom:0;}&-left .", "-content{border-right:1px solid ", ";}&-right .", "-content{border-left:1px solid ", ";}}.", "{&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;box-shadow:", ";&-hidden{display:none;}}&-section{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], prefixCls, prefixCls, prefixCls, prefixCls, theme(function (t) {
|
40630
42591
|
return t.color.border_secondary;
|
40631
42592
|
}), prefixCls, theme(function (t) {
|
40632
42593
|
return t.color.border_secondary;
|
@@ -46423,7 +48384,8 @@ var ButtonAddInput = function ButtonAddInput(_ref) {
|
|
46423
48384
|
invalid = _ref.invalid,
|
46424
48385
|
setError = _ref.setError,
|
46425
48386
|
showInput = _ref.showInput,
|
46426
|
-
setShowInput = _ref.setShowInput
|
48387
|
+
setShowInput = _ref.setShowInput,
|
48388
|
+
hintText = _ref.hintText;
|
46427
48389
|
var onBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
46428
48390
|
onInputBlur === null || onInputBlur === void 0 || onInputBlur(evt);
|
46429
48391
|
}, [onInputBlur]);
|
@@ -46479,7 +48441,7 @@ var ButtonAddInput = function ButtonAddInput(_ref) {
|
|
46479
48441
|
},
|
46480
48442
|
invalid: invalid,
|
46481
48443
|
rightInnerContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(InputRightContent, {
|
46482
|
-
text:
|
48444
|
+
text: hintText
|
46483
48445
|
})
|
46484
48446
|
});
|
46485
48447
|
}
|
@@ -46511,7 +48473,7 @@ var InputRightContent = function InputRightContent(_ref3) {
|
|
46511
48473
|
var InputRightContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
46512
48474
|
displayName: "InputRightContentWrapper",
|
46513
48475
|
componentId: "sc-fon98s-0"
|
46514
|
-
})(["display:flex;align-items:center;gap:4px;"]);
|
48476
|
+
})(["display:flex;align-items:center;gap:4px;white-space:nowrap;"]);
|
46515
48477
|
|
46516
48478
|
/***/ }),
|
46517
48479
|
|
@@ -46681,7 +48643,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
46681
48643
|
|
46682
48644
|
/*jslint node:true, react:true*/
|
46683
48645
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
46684
|
-
var _excluded = ["id", "className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue"];
|
48646
|
+
var _excluded = ["id", "className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue", "hintText"];
|
46685
48647
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
46686
48648
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
46687
48649
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
@@ -46732,6 +48694,8 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
46732
48694
|
isItemDisabled = props.isItemDisabled,
|
46733
48695
|
defaultInputValue = props.defaultInputValue,
|
46734
48696
|
defaultValue = props.defaultValue,
|
48697
|
+
_props$hintText = props.hintText,
|
48698
|
+
hintText = _props$hintText === void 0 ? 'Add' : _props$hintText,
|
46735
48699
|
rest = _objectWithoutProperties(props, _excluded);
|
46736
48700
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
|
46737
48701
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -46871,7 +48835,8 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
46871
48835
|
onInputKeyDown: onInputKeyDown,
|
46872
48836
|
onInputShow: initInputValue,
|
46873
48837
|
invalid: invalid,
|
46874
|
-
setError: setError
|
48838
|
+
setError: setError,
|
48839
|
+
hintText: hintText
|
46875
48840
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_6__.HelperText, {
|
46876
48841
|
invalid: invalid
|
46877
48842
|
}, helperText));
|
@@ -46900,7 +48865,8 @@ TextboxList.propTypes = {
|
|
46900
48865
|
itemRenderer: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
46901
48866
|
isItemDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
46902
48867
|
defaultInputValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
46903
|
-
defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array)
|
48868
|
+
defaultValue: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
48869
|
+
hintText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)
|
46904
48870
|
};
|
46905
48871
|
|
46906
48872
|
/***/ }),
|
@@ -49211,7 +51177,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
49211
51177
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
49212
51178
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
49213
51179
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
49214
|
-
/* harmony import */ var
|
51180
|
+
/* harmony import */ var _rc_component_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/dialog */ "./node_modules/@rc-component/dialog/es/index.js");
|
49215
51181
|
// LICENSE_CODE ZON
|
49216
51182
|
|
49217
51183
|
|
@@ -49227,7 +51193,7 @@ var ModalAdaptor = function ModalAdaptor(_ref) {
|
|
49227
51193
|
var className = _ref.className,
|
49228
51194
|
modalClassName = _ref.modalClassName,
|
49229
51195
|
rest = _objectWithoutProperties(_ref, _excluded);
|
49230
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
51196
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rc_component_dialog__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
|
49231
51197
|
className: modalClassName,
|
49232
51198
|
rootClassName: className
|
49233
51199
|
}, rest));
|
@@ -49247,7 +51213,7 @@ var theme = function theme(cb) {
|
|
49247
51213
|
var StyledModal = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(ModalAdaptor).withConfig({
|
49248
51214
|
displayName: "StyledModal",
|
49249
51215
|
componentId: "sc-flnd5c-0"
|
49250
|
-
})(["&.", "-root{div[role='dialog']{margin:10vh auto 0;}}.", "{&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-
|
51216
|
+
})(["&.", "-root{div[role='dialog']{margin:10vh auto 0;}}.", "{&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;}&-section{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;margin-top:8px;inset-inline-end:16px;z-index:1;padding:4px;text-decoration:none;background:transparent;border-radius:4px;width:24px;height:24px;border:0;outline:0;cursor:pointer;svg{color:", ";}&:hover{background-color:", ";svg{color:", ";}}}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-title{display:flex;flex-direction:column;gap:", ";}&-title-wrap{display:flex;flex-direction:row;align-items:center;gap:", ";}&-body{overflow-y:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-zoom{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}}"], prefixCls, prefixCls, theme(function (t) {
|
49251
51217
|
return t.color.modal_shadow_bg;
|
49252
51218
|
}), theme(function (t) {
|
49253
51219
|
return t.color.modal2_shadow_bg;
|
@@ -51745,9 +53711,9 @@ var TableDndContext = function TableDndContext(_ref) {
|
|
51745
53711
|
row: draggedRow
|
51746
53712
|
}) : null));
|
51747
53713
|
};
|
51748
|
-
var DraggableWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(function (
|
51749
|
-
var render =
|
51750
|
-
row =
|
53714
|
+
var DraggableWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
53715
|
+
var render = props.render,
|
53716
|
+
row = props.row;
|
51751
53717
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
51752
53718
|
getRowProps = _useTableContext2.getRowProps,
|
51753
53719
|
prepareRow = _useTableContext2.prepareRow;
|
@@ -51775,18 +53741,18 @@ var DraggableWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default()
|
|
51775
53741
|
};
|
51776
53742
|
if (isDragging) style.visibility = 'hidden';
|
51777
53743
|
return render(_objectSpread(_objectSpread({
|
51778
|
-
ref: setNodeRef
|
53744
|
+
ref: (0,_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)(ref, setNodeRef)
|
51779
53745
|
}, attributes), {}, {
|
51780
53746
|
style: style
|
51781
53747
|
}), _objectSpread({
|
51782
53748
|
ref: setActivatorNodeRef
|
51783
53749
|
}, listeners));
|
51784
|
-
});
|
53750
|
+
}));
|
51785
53751
|
DraggableWrapper.displayName = 'DraggableWrapper';
|
51786
|
-
var TableDndBody = function TableDndBody(
|
51787
|
-
var
|
51788
|
-
rows =
|
51789
|
-
renderRow =
|
53752
|
+
var TableDndBody = function TableDndBody(_ref2) {
|
53753
|
+
var _ref2$rows = _ref2.rows,
|
53754
|
+
rows = _ref2$rows === void 0 ? [] : _ref2$rows,
|
53755
|
+
renderRow = _ref2.renderRow;
|
51790
53756
|
var _useRowHoverActions2 = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_6__.useRowHoverActions)(),
|
51791
53757
|
renderHoverActions = _useRowHoverActions2.renderHoverActions,
|
51792
53758
|
rowHoverEvents = _useRowHoverActions2.rowHoverEvents;
|
@@ -51794,10 +53760,10 @@ var TableDndBody = function TableDndBody(_ref3) {
|
|
51794
53760
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_2__.SortableContext, {
|
51795
53761
|
items: items,
|
51796
53762
|
strategy: _dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_2__.verticalListSortingStrategy
|
51797
|
-
}, items.map(function (
|
51798
|
-
var id =
|
51799
|
-
row =
|
51800
|
-
render =
|
53763
|
+
}, items.map(function (_ref3) {
|
53764
|
+
var id = _ref3.id,
|
53765
|
+
row = _ref3.row,
|
53766
|
+
render = _ref3.render;
|
51801
53767
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DraggableWrapper, {
|
51802
53768
|
key: id,
|
51803
53769
|
row: row,
|
@@ -54680,14 +56646,10 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
|
|
54680
56646
|
renderRow = props.renderRow,
|
54681
56647
|
index = props.index,
|
54682
56648
|
style = props.style,
|
54683
|
-
parent = props.parent
|
54684
|
-
rowHoverEvents = props.rowHoverEvents,
|
54685
|
-
draggableRows = props.draggableRows,
|
54686
|
-
id = props.id,
|
54687
|
-
_render = props.render;
|
56649
|
+
parent = props.parent;
|
54688
56650
|
// padding is needed to see the divider between rows
|
54689
56651
|
// when new rows are added
|
54690
|
-
var
|
56652
|
+
var wrapperStyle = _objectSpread(_objectSpread({}, style), {}, {
|
54691
56653
|
padding: '0.3px 0'
|
54692
56654
|
});
|
54693
56655
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.CellMeasurer, {
|
@@ -54698,77 +56660,18 @@ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo
|
|
54698
56660
|
}, function (_ref) {
|
54699
56661
|
var measure = _ref.measure,
|
54700
56662
|
registerChild = _ref.registerChild;
|
54701
|
-
if (draggableRows) {
|
54702
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_6__.DraggableWrapper, {
|
54703
|
-
key: id,
|
54704
|
-
row: row,
|
54705
|
-
render: function render(wrapperProps, dragHandleProps) {
|
54706
|
-
return _render(_objectSpread(_objectSpread({}, wrapperProps), {}, {
|
54707
|
-
style: _objectSpread(_objectSpread({}, _style), wrapperProps.style),
|
54708
|
-
measureContentSize: measure,
|
54709
|
-
registerChild: registerChild
|
54710
|
-
}), dragHandleProps);
|
54711
|
-
}
|
54712
|
-
});
|
54713
|
-
}
|
54714
56663
|
return renderRow({
|
54715
56664
|
row: row,
|
54716
56665
|
index: index,
|
54717
|
-
wrapperProps:
|
54718
|
-
style:
|
56666
|
+
wrapperProps: {
|
56667
|
+
style: wrapperStyle,
|
54719
56668
|
measureContentSize: measure,
|
54720
56669
|
registerChild: registerChild
|
54721
|
-
}
|
56670
|
+
}
|
54722
56671
|
});
|
54723
56672
|
});
|
54724
56673
|
});
|
54725
56674
|
RowRenderer.displayName = 'RowRenderer';
|
54726
|
-
var listRowRenderer = function listRowRenderer(rows, cache, renderRow, rowHoverEvents) {
|
54727
|
-
var RendererWrapper = function RendererWrapper(_ref2) {
|
54728
|
-
var key = _ref2.key,
|
54729
|
-
index = _ref2.index,
|
54730
|
-
style = _ref2.style,
|
54731
|
-
parent = _ref2.parent;
|
54732
|
-
var row = rows[index];
|
54733
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
|
54734
|
-
key: key,
|
54735
|
-
row: row,
|
54736
|
-
index: index,
|
54737
|
-
style: style,
|
54738
|
-
parent: parent,
|
54739
|
-
cache: cache,
|
54740
|
-
renderRow: renderRow,
|
54741
|
-
rowHoverEvents: rowHoverEvents
|
54742
|
-
});
|
54743
|
-
};
|
54744
|
-
return RendererWrapper;
|
54745
|
-
};
|
54746
|
-
var dndRowRenderer = function dndRowRenderer(items, cache, renderRow, rowHoverEvents) {
|
54747
|
-
var RendererWrapper = function RendererWrapper(_ref3) {
|
54748
|
-
var key = _ref3.key,
|
54749
|
-
index = _ref3.index,
|
54750
|
-
style = _ref3.style,
|
54751
|
-
parent = _ref3.parent;
|
54752
|
-
var _items$index = items[index],
|
54753
|
-
id = _items$index.id,
|
54754
|
-
row = _items$index.row,
|
54755
|
-
render = _items$index.render;
|
54756
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
|
54757
|
-
key: key,
|
54758
|
-
row: row,
|
54759
|
-
index: index,
|
54760
|
-
style: style,
|
54761
|
-
parent: parent,
|
54762
|
-
cache: cache,
|
54763
|
-
renderRow: renderRow,
|
54764
|
-
rowHoverEvents: rowHoverEvents,
|
54765
|
-
draggableRows: true,
|
54766
|
-
id: id,
|
54767
|
-
render: render
|
54768
|
-
});
|
54769
|
-
};
|
54770
|
-
return RendererWrapper;
|
54771
|
-
};
|
54772
56675
|
var listRefHandler = function listRefHandler(setListDOMRef) {
|
54773
56676
|
return function (ref) {
|
54774
56677
|
var _ref$Grid;
|
@@ -54777,11 +56680,11 @@ var listRefHandler = function listRefHandler(setListDOMRef) {
|
|
54777
56680
|
if (element instanceof window.HTMLElement) setListDOMRef(element === null || element === void 0 ? void 0 : element.firstChild);
|
54778
56681
|
};
|
54779
56682
|
};
|
54780
|
-
var VirtualizedBodyComp = function VirtualizedBodyComp(
|
54781
|
-
var rows =
|
54782
|
-
measurerCache =
|
54783
|
-
renderRow =
|
54784
|
-
onScroll =
|
56683
|
+
var VirtualizedBodyComp = function VirtualizedBodyComp(_ref2) {
|
56684
|
+
var rows = _ref2.rows,
|
56685
|
+
measurerCache = _ref2.measurerCache,
|
56686
|
+
renderRow = _ref2.renderRow,
|
56687
|
+
onScroll = _ref2.onScroll;
|
54785
56688
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
54786
56689
|
draggableRows = _useTableContext.draggableRows;
|
54787
56690
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),
|
@@ -54792,9 +56695,6 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(_ref4) {
|
|
54792
56695
|
_useState4 = _slicedToArray(_useState3, 2),
|
54793
56696
|
listDOMRef = _useState4[0],
|
54794
56697
|
setListDOMRef = _useState4[1];
|
54795
|
-
var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_7__.useRowHoverActions)(),
|
54796
|
-
renderHoverActions = _useRowHoverActions.renderHoverActions,
|
54797
|
-
rowHoverEvents = _useRowHoverActions.rowHoverEvents;
|
54798
56698
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
54799
56699
|
if (listDOMRef) listDOMRef.style.overflow = 'unset';
|
54800
56700
|
}, [listDOMRef]);
|
@@ -54810,20 +56710,19 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(_ref4) {
|
|
54810
56710
|
}, [scrollRef, onScroll]);
|
54811
56711
|
var mergedRefs = (0,_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)(setScrollRef, listRefHandler(setListDOMRef));
|
54812
56712
|
if (draggableRows) {
|
54813
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
56713
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DndRowList, {
|
54814
56714
|
ref: mergedRefs,
|
54815
56715
|
rows: rows,
|
54816
56716
|
renderRow: renderRow,
|
54817
|
-
rowHoverEvents: rowHoverEvents,
|
54818
56717
|
measurerCache: measurerCache
|
54819
|
-
})
|
56718
|
+
});
|
54820
56719
|
}
|
54821
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
56720
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowList, {
|
54822
56721
|
ref: mergedRefs,
|
54823
56722
|
rows: rows,
|
54824
|
-
|
54825
|
-
|
54826
|
-
})
|
56723
|
+
renderRow: renderRow,
|
56724
|
+
measurerCache: measurerCache
|
56725
|
+
});
|
54827
56726
|
};
|
54828
56727
|
var AutoSizerList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
54829
56728
|
var rows = props.rows,
|
@@ -54842,9 +56741,9 @@ var AutoSizerList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
54842
56741
|
maxHeight: scrollHeight,
|
54843
56742
|
width: '100%'
|
54844
56743
|
}
|
54845
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (
|
54846
|
-
var width =
|
54847
|
-
height =
|
56744
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (_ref3) {
|
56745
|
+
var width = _ref3.width,
|
56746
|
+
height = _ref3.height;
|
54848
56747
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
|
54849
56748
|
width: width,
|
54850
56749
|
height: height,
|
@@ -54859,30 +56758,91 @@ var AutoSizerList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().fo
|
|
54859
56758
|
}));
|
54860
56759
|
});
|
54861
56760
|
AutoSizerList.displayName = 'AutoSizerList';
|
54862
|
-
var
|
56761
|
+
var DndRowList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
54863
56762
|
var rows = props.rows,
|
54864
56763
|
renderRow = props.renderRow,
|
54865
|
-
rowHoverEvents = props.rowHoverEvents,
|
54866
56764
|
measurerCache = props.measurerCache;
|
56765
|
+
var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_7__.useRowHoverActions)(),
|
56766
|
+
renderHoverActions = _useRowHoverActions.renderHoverActions,
|
56767
|
+
rowHoverEvents = _useRowHoverActions.rowHoverEvents;
|
54867
56768
|
var items = (0,_dnd__WEBPACK_IMPORTED_MODULE_6__.useSortableItems)(rows, renderRow, rowHoverEvents);
|
56769
|
+
var rowRenderer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (_ref4) {
|
56770
|
+
var key = _ref4.key,
|
56771
|
+
index = _ref4.index,
|
56772
|
+
style = _ref4.style,
|
56773
|
+
parent = _ref4.parent;
|
56774
|
+
var _items$index = items[index],
|
56775
|
+
id = _items$index.id,
|
56776
|
+
row = _items$index.row,
|
56777
|
+
_render = _items$index.render;
|
56778
|
+
var dndRenderRow = function dndRenderRow(_ref5) {
|
56779
|
+
var wrapperProps = _ref5.wrapperProps;
|
56780
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_6__.DraggableWrapper, {
|
56781
|
+
key: id,
|
56782
|
+
row: row,
|
56783
|
+
render: function render(renderProps, dragHandleProps) {
|
56784
|
+
return _render(_objectSpread(_objectSpread({}, renderProps), {}, {
|
56785
|
+
style: _objectSpread(_objectSpread({}, wrapperProps.style), renderProps.style)
|
56786
|
+
}), dragHandleProps);
|
56787
|
+
}
|
56788
|
+
});
|
56789
|
+
};
|
56790
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
|
56791
|
+
key: key,
|
56792
|
+
row: row,
|
56793
|
+
index: index,
|
56794
|
+
style: style,
|
56795
|
+
parent: parent,
|
56796
|
+
cache: measurerCache,
|
56797
|
+
renderRow: dndRenderRow
|
56798
|
+
});
|
56799
|
+
}, [items]);
|
54868
56800
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_3__.SortableContext, {
|
54869
56801
|
items: items,
|
54870
56802
|
strategy: _dnd_kit_sortable__WEBPACK_IMPORTED_MODULE_3__.verticalListSortingStrategy
|
54871
56803
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AutoSizerList, {
|
54872
56804
|
ref: ref,
|
54873
56805
|
measurerCache: measurerCache,
|
54874
|
-
rowRenderer:
|
56806
|
+
rowRenderer: rowRenderer,
|
54875
56807
|
rows: items
|
54876
|
-
}));
|
56808
|
+
}), renderHoverActions());
|
56809
|
+
});
|
56810
|
+
DndRowList.displayName = 'DndRowList';
|
56811
|
+
var RowList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
56812
|
+
var rows = props.rows,
|
56813
|
+
renderRow = props.renderRow,
|
56814
|
+
measurerCache = props.measurerCache;
|
56815
|
+
var rowRenderer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (_ref6) {
|
56816
|
+
var key = _ref6.key,
|
56817
|
+
index = _ref6.index,
|
56818
|
+
style = _ref6.style,
|
56819
|
+
parent = _ref6.parent;
|
56820
|
+
var row = rows[index];
|
56821
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
|
56822
|
+
key: key,
|
56823
|
+
row: row,
|
56824
|
+
index: index,
|
56825
|
+
style: style,
|
56826
|
+
parent: parent,
|
56827
|
+
cache: measurerCache,
|
56828
|
+
renderRow: renderRow
|
56829
|
+
});
|
56830
|
+
}, [rows, renderRow]);
|
56831
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AutoSizerList, {
|
56832
|
+
ref: ref,
|
56833
|
+
measurerCache: measurerCache,
|
56834
|
+
rowRenderer: rowRenderer,
|
56835
|
+
rows: rows
|
56836
|
+
});
|
54877
56837
|
});
|
54878
|
-
|
56838
|
+
RowList.displayName = 'RowList';
|
54879
56839
|
var VirtualizedBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VirtualizedBodyComp);
|
54880
56840
|
VirtualizedBody.displayName = 'VirtualizedBody';
|
54881
56841
|
var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.List).withConfig({
|
54882
56842
|
displayName: "StyledList",
|
54883
56843
|
componentId: "sc-1mdy9tq-0"
|
54884
|
-
})(["", ""], function (
|
54885
|
-
var scrollbars =
|
56844
|
+
})(["", ""], function (_ref7) {
|
56845
|
+
var scrollbars = _ref7.theme.scrollbars;
|
54886
56846
|
return scrollbars.thin;
|
54887
56847
|
});
|
54888
56848
|
|
@@ -73920,1579 +75880,848 @@ Prism.languages.rss = Prism.languages.xml;
|
|
73920
75880
|
lookbehind: true
|
73921
75881
|
},
|
73922
75882
|
{
|
73923
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,
|
73924
|
-
alias: 'return-type',
|
73925
|
-
greedy: true,
|
73926
|
-
lookbehind: true
|
73927
|
-
},
|
73928
|
-
{
|
73929
|
-
pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,
|
73930
|
-
alias: 'type-declaration',
|
73931
|
-
greedy: true
|
73932
|
-
},
|
73933
|
-
{
|
73934
|
-
pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,
|
73935
|
-
alias: 'type-declaration',
|
73936
|
-
greedy: true,
|
73937
|
-
lookbehind: true
|
73938
|
-
},
|
73939
|
-
{
|
73940
|
-
pattern: /\b(?:parent|self|static)(?=\s*::)/i,
|
73941
|
-
alias: 'static-context',
|
73942
|
-
greedy: true
|
73943
|
-
},
|
73944
|
-
{
|
73945
|
-
// yield from
|
73946
|
-
pattern: /(\byield\s+)from\b/i,
|
73947
|
-
lookbehind: true
|
73948
|
-
},
|
73949
|
-
// `class` is always a keyword unlike other keywords
|
73950
|
-
/\bclass\b/i,
|
73951
|
-
{
|
73952
|
-
// https://www.php.net/manual/en/reserved.keywords.php
|
73953
|
-
//
|
73954
|
-
// keywords cannot be preceded by "->"
|
73955
|
-
// the complex lookbehind means `(?<!(?:->|::)\s*)`
|
73956
|
-
pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,
|
73957
|
-
lookbehind: true
|
73958
|
-
}
|
73959
|
-
],
|
73960
|
-
'argument-name': {
|
73961
|
-
pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
|
73962
|
-
lookbehind: true
|
73963
|
-
},
|
73964
|
-
'class-name': [
|
73965
|
-
{
|
73966
|
-
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
|
73967
|
-
greedy: true,
|
73968
|
-
lookbehind: true
|
73969
|
-
},
|
73970
|
-
{
|
73971
|
-
pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
|
73972
|
-
greedy: true,
|
73973
|
-
lookbehind: true
|
73974
|
-
},
|
73975
|
-
{
|
73976
|
-
pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
|
73977
|
-
greedy: true
|
73978
|
-
},
|
73979
|
-
{
|
73980
|
-
pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
|
73981
|
-
alias: 'class-name-fully-qualified',
|
73982
|
-
greedy: true,
|
73983
|
-
lookbehind: true,
|
73984
|
-
inside: {
|
73985
|
-
'punctuation': /\\/
|
73986
|
-
}
|
73987
|
-
},
|
73988
|
-
{
|
73989
|
-
pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
|
73990
|
-
alias: 'class-name-fully-qualified',
|
73991
|
-
greedy: true,
|
73992
|
-
inside: {
|
73993
|
-
'punctuation': /\\/
|
73994
|
-
}
|
73995
|
-
},
|
73996
|
-
{
|
73997
|
-
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
73998
|
-
alias: 'class-name-fully-qualified',
|
73999
|
-
greedy: true,
|
74000
|
-
lookbehind: true,
|
74001
|
-
inside: {
|
74002
|
-
'punctuation': /\\/
|
74003
|
-
}
|
74004
|
-
},
|
74005
|
-
{
|
74006
|
-
pattern: /\b[a-z_]\w*(?=\s*\$)/i,
|
74007
|
-
alias: 'type-declaration',
|
74008
|
-
greedy: true
|
74009
|
-
},
|
74010
|
-
{
|
74011
|
-
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
74012
|
-
alias: ['class-name-fully-qualified', 'type-declaration'],
|
74013
|
-
greedy: true,
|
74014
|
-
inside: {
|
74015
|
-
'punctuation': /\\/
|
74016
|
-
}
|
74017
|
-
},
|
74018
|
-
{
|
74019
|
-
pattern: /\b[a-z_]\w*(?=\s*::)/i,
|
74020
|
-
alias: 'static-context',
|
74021
|
-
greedy: true
|
74022
|
-
},
|
74023
|
-
{
|
74024
|
-
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
|
74025
|
-
alias: ['class-name-fully-qualified', 'static-context'],
|
74026
|
-
greedy: true,
|
74027
|
-
inside: {
|
74028
|
-
'punctuation': /\\/
|
74029
|
-
}
|
74030
|
-
},
|
74031
|
-
{
|
74032
|
-
pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
|
74033
|
-
alias: 'type-hint',
|
74034
|
-
greedy: true,
|
74035
|
-
lookbehind: true
|
74036
|
-
},
|
74037
|
-
{
|
74038
|
-
pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
74039
|
-
alias: ['class-name-fully-qualified', 'type-hint'],
|
74040
|
-
greedy: true,
|
74041
|
-
lookbehind: true,
|
74042
|
-
inside: {
|
74043
|
-
'punctuation': /\\/
|
74044
|
-
}
|
74045
|
-
},
|
74046
|
-
{
|
74047
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
|
74048
|
-
alias: 'return-type',
|
74049
|
-
greedy: true,
|
74050
|
-
lookbehind: true
|
74051
|
-
},
|
74052
|
-
{
|
74053
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
74054
|
-
alias: ['class-name-fully-qualified', 'return-type'],
|
74055
|
-
greedy: true,
|
74056
|
-
lookbehind: true,
|
74057
|
-
inside: {
|
74058
|
-
'punctuation': /\\/
|
74059
|
-
}
|
74060
|
-
}
|
74061
|
-
],
|
74062
|
-
'constant': constant,
|
74063
|
-
'function': {
|
74064
|
-
pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
|
74065
|
-
lookbehind: true,
|
74066
|
-
inside: {
|
74067
|
-
'punctuation': /\\/
|
74068
|
-
}
|
74069
|
-
},
|
74070
|
-
'property': {
|
74071
|
-
pattern: /(->\s*)\w+/,
|
74072
|
-
lookbehind: true
|
74073
|
-
},
|
74074
|
-
'number': number,
|
74075
|
-
'operator': operator,
|
74076
|
-
'punctuation': punctuation
|
74077
|
-
};
|
74078
|
-
|
74079
|
-
var string_interpolation = {
|
74080
|
-
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
74081
|
-
lookbehind: true,
|
74082
|
-
inside: Prism.languages.php
|
74083
|
-
};
|
74084
|
-
|
74085
|
-
var string = [
|
74086
|
-
{
|
74087
|
-
pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
|
74088
|
-
alias: 'nowdoc-string',
|
74089
|
-
greedy: true,
|
74090
|
-
inside: {
|
74091
|
-
'delimiter': {
|
74092
|
-
pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
|
74093
|
-
alias: 'symbol',
|
74094
|
-
inside: {
|
74095
|
-
'punctuation': /^<<<'?|[';]$/
|
74096
|
-
}
|
74097
|
-
}
|
74098
|
-
}
|
74099
|
-
},
|
74100
|
-
{
|
74101
|
-
pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
|
74102
|
-
alias: 'heredoc-string',
|
74103
|
-
greedy: true,
|
74104
|
-
inside: {
|
74105
|
-
'delimiter': {
|
74106
|
-
pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
|
74107
|
-
alias: 'symbol',
|
74108
|
-
inside: {
|
74109
|
-
'punctuation': /^<<<"?|[";]$/
|
74110
|
-
}
|
74111
|
-
},
|
74112
|
-
'interpolation': string_interpolation
|
74113
|
-
}
|
74114
|
-
},
|
74115
|
-
{
|
74116
|
-
pattern: /`(?:\\[\s\S]|[^\\`])*`/,
|
74117
|
-
alias: 'backtick-quoted-string',
|
74118
|
-
greedy: true
|
74119
|
-
},
|
74120
|
-
{
|
74121
|
-
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
74122
|
-
alias: 'single-quoted-string',
|
74123
|
-
greedy: true
|
74124
|
-
},
|
74125
|
-
{
|
74126
|
-
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
74127
|
-
alias: 'double-quoted-string',
|
74128
|
-
greedy: true,
|
74129
|
-
inside: {
|
74130
|
-
'interpolation': string_interpolation
|
74131
|
-
}
|
74132
|
-
}
|
74133
|
-
];
|
74134
|
-
|
74135
|
-
Prism.languages.insertBefore('php', 'variable', {
|
74136
|
-
'string': string,
|
74137
|
-
'attribute': {
|
74138
|
-
pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
|
74139
|
-
greedy: true,
|
74140
|
-
inside: {
|
74141
|
-
'attribute-content': {
|
74142
|
-
pattern: /^(#\[)[\s\S]+(?=\]$)/,
|
74143
|
-
lookbehind: true,
|
74144
|
-
// inside can appear subset of php
|
74145
|
-
inside: {
|
74146
|
-
'comment': comment,
|
74147
|
-
'string': string,
|
74148
|
-
'attribute-class-name': [
|
74149
|
-
{
|
74150
|
-
pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
|
74151
|
-
alias: 'class-name',
|
74152
|
-
greedy: true,
|
74153
|
-
lookbehind: true
|
74154
|
-
},
|
74155
|
-
{
|
74156
|
-
pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
|
74157
|
-
alias: [
|
74158
|
-
'class-name',
|
74159
|
-
'class-name-fully-qualified'
|
74160
|
-
],
|
74161
|
-
greedy: true,
|
74162
|
-
lookbehind: true,
|
74163
|
-
inside: {
|
74164
|
-
'punctuation': /\\/
|
74165
|
-
}
|
74166
|
-
}
|
74167
|
-
],
|
74168
|
-
'constant': constant,
|
74169
|
-
'number': number,
|
74170
|
-
'operator': operator,
|
74171
|
-
'punctuation': punctuation
|
74172
|
-
}
|
74173
|
-
},
|
74174
|
-
'delimiter': {
|
74175
|
-
pattern: /^#\[|\]$/,
|
74176
|
-
alias: 'punctuation'
|
74177
|
-
}
|
74178
|
-
}
|
74179
|
-
},
|
74180
|
-
});
|
74181
|
-
|
74182
|
-
Prism.hooks.add('before-tokenize', function (env) {
|
74183
|
-
if (!/<\?/.test(env.code)) {
|
74184
|
-
return;
|
74185
|
-
}
|
74186
|
-
|
74187
|
-
var phpPattern = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;
|
74188
|
-
Prism.languages['markup-templating'].buildPlaceholders(env, 'php', phpPattern);
|
74189
|
-
});
|
74190
|
-
|
74191
|
-
Prism.hooks.add('after-tokenize', function (env) {
|
74192
|
-
Prism.languages['markup-templating'].tokenizePlaceholders(env, 'php');
|
74193
|
-
});
|
74194
|
-
|
74195
|
-
}(Prism));
|
74196
|
-
|
74197
|
-
|
74198
|
-
/***/ }),
|
74199
|
-
|
74200
|
-
/***/ "./node_modules/prismjs/components/prism-python.js":
|
74201
|
-
/*!*********************************************************!*\
|
74202
|
-
!*** ./node_modules/prismjs/components/prism-python.js ***!
|
74203
|
-
\*********************************************************/
|
74204
|
-
/***/ (() => {
|
74205
|
-
|
74206
|
-
Prism.languages.python = {
|
74207
|
-
'comment': {
|
74208
|
-
pattern: /(^|[^\\])#.*/,
|
74209
|
-
lookbehind: true,
|
74210
|
-
greedy: true
|
74211
|
-
},
|
74212
|
-
'string-interpolation': {
|
74213
|
-
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
74214
|
-
greedy: true,
|
74215
|
-
inside: {
|
74216
|
-
'interpolation': {
|
74217
|
-
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
74218
|
-
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
74219
|
-
lookbehind: true,
|
74220
|
-
inside: {
|
74221
|
-
'format-spec': {
|
74222
|
-
pattern: /(:)[^:(){}]+(?=\}$)/,
|
74223
|
-
lookbehind: true
|
74224
|
-
},
|
74225
|
-
'conversion-option': {
|
74226
|
-
pattern: //,
|
74227
|
-
alias: 'punctuation'
|
74228
|
-
},
|
74229
|
-
rest: null
|
74230
|
-
}
|
74231
|
-
},
|
74232
|
-
'string': /[\s\S]+/
|
74233
|
-
}
|
74234
|
-
},
|
74235
|
-
'triple-quoted-string': {
|
74236
|
-
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
74237
|
-
greedy: true,
|
74238
|
-
alias: 'string'
|
74239
|
-
},
|
74240
|
-
'string': {
|
74241
|
-
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
74242
|
-
greedy: true
|
74243
|
-
},
|
74244
|
-
'function': {
|
74245
|
-
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
74246
|
-
lookbehind: true
|
74247
|
-
},
|
74248
|
-
'class-name': {
|
74249
|
-
pattern: /(\bclass\s+)\w+/i,
|
74250
|
-
lookbehind: true
|
74251
|
-
},
|
74252
|
-
'decorator': {
|
74253
|
-
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
74254
|
-
lookbehind: true,
|
74255
|
-
alias: ['annotation', 'punctuation'],
|
74256
|
-
inside: {
|
74257
|
-
'punctuation': /\./
|
74258
|
-
}
|
74259
|
-
},
|
74260
|
-
'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
74261
|
-
'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
74262
|
-
'boolean': /\b(?:False|None|True)\b/,
|
74263
|
-
'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
74264
|
-
'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
74265
|
-
'punctuation': /[{}[\];(),.:]/
|
74266
|
-
};
|
74267
|
-
|
74268
|
-
Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
|
74269
|
-
|
74270
|
-
Prism.languages.py = Prism.languages.python;
|
74271
|
-
|
74272
|
-
|
74273
|
-
/***/ }),
|
74274
|
-
|
74275
|
-
/***/ "./node_modules/prismjs/components/prism-ruby.js":
|
74276
|
-
/*!*******************************************************!*\
|
74277
|
-
!*** ./node_modules/prismjs/components/prism-ruby.js ***!
|
74278
|
-
\*******************************************************/
|
74279
|
-
/***/ (() => {
|
74280
|
-
|
74281
|
-
/**
|
74282
|
-
* Original by Samuel Flores
|
74283
|
-
*
|
74284
|
-
* Adds the following new token classes:
|
74285
|
-
* constant, builtin, variable, symbol, regex
|
74286
|
-
*/
|
74287
|
-
(function (Prism) {
|
74288
|
-
Prism.languages.ruby = Prism.languages.extend('clike', {
|
74289
|
-
'comment': {
|
74290
|
-
pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
|
74291
|
-
greedy: true
|
74292
|
-
},
|
74293
|
-
'class-name': {
|
74294
|
-
pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,
|
74295
|
-
lookbehind: true,
|
74296
|
-
inside: {
|
74297
|
-
'punctuation': /[.\\]/
|
74298
|
-
}
|
74299
|
-
},
|
74300
|
-
'keyword': /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,
|
74301
|
-
'operator': /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,
|
74302
|
-
'punctuation': /[(){}[\].,;]/,
|
74303
|
-
});
|
74304
|
-
|
74305
|
-
Prism.languages.insertBefore('ruby', 'operator', {
|
74306
|
-
'double-colon': {
|
74307
|
-
pattern: /::/,
|
74308
|
-
alias: 'punctuation'
|
74309
|
-
},
|
74310
|
-
});
|
74311
|
-
|
74312
|
-
var interpolation = {
|
74313
|
-
pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,
|
74314
|
-
lookbehind: true,
|
74315
|
-
inside: {
|
74316
|
-
'content': {
|
74317
|
-
pattern: /^(#\{)[\s\S]+(?=\}$)/,
|
74318
|
-
lookbehind: true,
|
74319
|
-
inside: Prism.languages.ruby
|
74320
|
-
},
|
74321
|
-
'delimiter': {
|
74322
|
-
pattern: /^#\{|\}$/,
|
74323
|
-
alias: 'punctuation'
|
74324
|
-
}
|
74325
|
-
}
|
74326
|
-
};
|
74327
|
-
|
74328
|
-
delete Prism.languages.ruby.function;
|
74329
|
-
|
74330
|
-
var percentExpression = '(?:' + [
|
74331
|
-
/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
74332
|
-
/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,
|
74333
|
-
/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,
|
74334
|
-
/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,
|
74335
|
-
/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source
|
74336
|
-
].join('|') + ')';
|
74337
|
-
|
74338
|
-
var symbolName = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;
|
74339
|
-
|
74340
|
-
Prism.languages.insertBefore('ruby', 'keyword', {
|
74341
|
-
'regex-literal': [
|
74342
|
-
{
|
74343
|
-
pattern: RegExp(/%r/.source + percentExpression + /[egimnosux]{0,6}/.source),
|
75883
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,
|
75884
|
+
alias: 'return-type',
|
74344
75885
|
greedy: true,
|
74345
|
-
|
74346
|
-
'interpolation': interpolation,
|
74347
|
-
'regex': /[\s\S]+/
|
74348
|
-
}
|
75886
|
+
lookbehind: true
|
74349
75887
|
},
|
74350
75888
|
{
|
74351
|
-
pattern:
|
74352
|
-
|
75889
|
+
pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,
|
75890
|
+
alias: 'type-declaration',
|
75891
|
+
greedy: true
|
75892
|
+
},
|
75893
|
+
{
|
75894
|
+
pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,
|
75895
|
+
alias: 'type-declaration',
|
74353
75896
|
greedy: true,
|
74354
|
-
|
74355
|
-
|
74356
|
-
|
74357
|
-
|
75897
|
+
lookbehind: true
|
75898
|
+
},
|
75899
|
+
{
|
75900
|
+
pattern: /\b(?:parent|self|static)(?=\s*::)/i,
|
75901
|
+
alias: 'static-context',
|
75902
|
+
greedy: true
|
75903
|
+
},
|
75904
|
+
{
|
75905
|
+
// yield from
|
75906
|
+
pattern: /(\byield\s+)from\b/i,
|
75907
|
+
lookbehind: true
|
75908
|
+
},
|
75909
|
+
// `class` is always a keyword unlike other keywords
|
75910
|
+
/\bclass\b/i,
|
75911
|
+
{
|
75912
|
+
// https://www.php.net/manual/en/reserved.keywords.php
|
75913
|
+
//
|
75914
|
+
// keywords cannot be preceded by "->"
|
75915
|
+
// the complex lookbehind means `(?<!(?:->|::)\s*)`
|
75916
|
+
pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,
|
75917
|
+
lookbehind: true
|
74358
75918
|
}
|
74359
75919
|
],
|
74360
|
-
'
|
74361
|
-
|
75920
|
+
'argument-name': {
|
75921
|
+
pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
|
75922
|
+
lookbehind: true
|
75923
|
+
},
|
75924
|
+
'class-name': [
|
74362
75925
|
{
|
74363
|
-
pattern:
|
74364
|
-
|
75926
|
+
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
|
75927
|
+
greedy: true,
|
75928
|
+
lookbehind: true
|
75929
|
+
},
|
75930
|
+
{
|
75931
|
+
pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
|
75932
|
+
greedy: true,
|
75933
|
+
lookbehind: true
|
75934
|
+
},
|
75935
|
+
{
|
75936
|
+
pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
|
74365
75937
|
greedy: true
|
74366
75938
|
},
|
74367
75939
|
{
|
74368
|
-
pattern:
|
75940
|
+
pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
|
75941
|
+
alias: 'class-name-fully-qualified',
|
75942
|
+
greedy: true,
|
74369
75943
|
lookbehind: true,
|
74370
|
-
|
75944
|
+
inside: {
|
75945
|
+
'punctuation': /\\/
|
75946
|
+
}
|
74371
75947
|
},
|
74372
|
-
],
|
74373
|
-
'method-definition': {
|
74374
|
-
pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,
|
74375
|
-
lookbehind: true,
|
74376
|
-
inside: {
|
74377
|
-
'function': /\b\w+$/,
|
74378
|
-
'keyword': /^self\b/,
|
74379
|
-
'class-name': /^\w+/,
|
74380
|
-
'punctuation': /\./
|
74381
|
-
}
|
74382
|
-
}
|
74383
|
-
});
|
74384
|
-
|
74385
|
-
Prism.languages.insertBefore('ruby', 'string', {
|
74386
|
-
'string-literal': [
|
74387
75948
|
{
|
74388
|
-
pattern:
|
75949
|
+
pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
|
75950
|
+
alias: 'class-name-fully-qualified',
|
74389
75951
|
greedy: true,
|
74390
75952
|
inside: {
|
74391
|
-
'
|
74392
|
-
'string': /[\s\S]+/
|
75953
|
+
'punctuation': /\\/
|
74393
75954
|
}
|
74394
75955
|
},
|
74395
75956
|
{
|
74396
|
-
pattern: /(
|
75957
|
+
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
75958
|
+
alias: 'class-name-fully-qualified',
|
74397
75959
|
greedy: true,
|
75960
|
+
lookbehind: true,
|
74398
75961
|
inside: {
|
74399
|
-
'
|
74400
|
-
'string': /[\s\S]+/
|
75962
|
+
'punctuation': /\\/
|
74401
75963
|
}
|
74402
75964
|
},
|
74403
75965
|
{
|
74404
|
-
pattern:
|
74405
|
-
alias: '
|
75966
|
+
pattern: /\b[a-z_]\w*(?=\s*\$)/i,
|
75967
|
+
alias: 'type-declaration',
|
75968
|
+
greedy: true
|
75969
|
+
},
|
75970
|
+
{
|
75971
|
+
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
75972
|
+
alias: ['class-name-fully-qualified', 'type-declaration'],
|
74406
75973
|
greedy: true,
|
74407
75974
|
inside: {
|
74408
|
-
'
|
74409
|
-
pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,
|
74410
|
-
inside: {
|
74411
|
-
'symbol': /\b\w+/,
|
74412
|
-
'punctuation': /^<<[-~]?/
|
74413
|
-
}
|
74414
|
-
},
|
74415
|
-
'interpolation': interpolation,
|
74416
|
-
'string': /[\s\S]+/
|
75975
|
+
'punctuation': /\\/
|
74417
75976
|
}
|
74418
75977
|
},
|
74419
75978
|
{
|
74420
|
-
pattern:
|
74421
|
-
alias: '
|
75979
|
+
pattern: /\b[a-z_]\w*(?=\s*::)/i,
|
75980
|
+
alias: 'static-context',
|
75981
|
+
greedy: true
|
75982
|
+
},
|
75983
|
+
{
|
75984
|
+
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
|
75985
|
+
alias: ['class-name-fully-qualified', 'static-context'],
|
74422
75986
|
greedy: true,
|
74423
75987
|
inside: {
|
74424
|
-
'
|
74425
|
-
pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,
|
74426
|
-
inside: {
|
74427
|
-
'symbol': /\b\w+/,
|
74428
|
-
'punctuation': /^<<[-~]?'|'$/,
|
74429
|
-
}
|
74430
|
-
},
|
74431
|
-
'string': /[\s\S]+/
|
75988
|
+
'punctuation': /\\/
|
74432
75989
|
}
|
74433
|
-
}
|
74434
|
-
],
|
74435
|
-
'command-literal': [
|
75990
|
+
},
|
74436
75991
|
{
|
74437
|
-
pattern:
|
75992
|
+
pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
|
75993
|
+
alias: 'type-hint',
|
75994
|
+
greedy: true,
|
75995
|
+
lookbehind: true
|
75996
|
+
},
|
75997
|
+
{
|
75998
|
+
pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
75999
|
+
alias: ['class-name-fully-qualified', 'type-hint'],
|
74438
76000
|
greedy: true,
|
76001
|
+
lookbehind: true,
|
74439
76002
|
inside: {
|
74440
|
-
'
|
74441
|
-
'command': {
|
74442
|
-
pattern: /[\s\S]+/,
|
74443
|
-
alias: 'string'
|
74444
|
-
}
|
76003
|
+
'punctuation': /\\/
|
74445
76004
|
}
|
74446
76005
|
},
|
74447
76006
|
{
|
74448
|
-
pattern:
|
76007
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
|
76008
|
+
alias: 'return-type',
|
76009
|
+
greedy: true,
|
76010
|
+
lookbehind: true
|
76011
|
+
},
|
76012
|
+
{
|
76013
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
76014
|
+
alias: ['class-name-fully-qualified', 'return-type'],
|
74449
76015
|
greedy: true,
|
76016
|
+
lookbehind: true,
|
74450
76017
|
inside: {
|
74451
|
-
'
|
74452
|
-
'command': {
|
74453
|
-
pattern: /[\s\S]+/,
|
74454
|
-
alias: 'string'
|
74455
|
-
}
|
76018
|
+
'punctuation': /\\/
|
74456
76019
|
}
|
74457
76020
|
}
|
74458
|
-
]
|
74459
|
-
|
74460
|
-
|
74461
|
-
|
74462
|
-
|
74463
|
-
|
74464
|
-
|
74465
|
-
|
74466
|
-
|
74467
|
-
|
74468
|
-
|
74469
|
-
|
74470
|
-
|
74471
|
-
|
74472
|
-
|
76021
|
+
],
|
76022
|
+
'constant': constant,
|
76023
|
+
'function': {
|
76024
|
+
pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
|
76025
|
+
lookbehind: true,
|
76026
|
+
inside: {
|
76027
|
+
'punctuation': /\\/
|
76028
|
+
}
|
76029
|
+
},
|
76030
|
+
'property': {
|
76031
|
+
pattern: /(->\s*)\w+/,
|
76032
|
+
lookbehind: true
|
76033
|
+
},
|
76034
|
+
'number': number,
|
76035
|
+
'operator': operator,
|
76036
|
+
'punctuation': punctuation
|
76037
|
+
};
|
74473
76038
|
|
74474
|
-
|
74475
|
-
|
74476
|
-
|
74477
|
-
|
74478
|
-
|
76039
|
+
var string_interpolation = {
|
76040
|
+
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
76041
|
+
lookbehind: true,
|
76042
|
+
inside: Prism.languages.php
|
76043
|
+
};
|
74479
76044
|
|
74480
|
-
|
74481
|
-
'comment': [
|
76045
|
+
var string = [
|
74482
76046
|
{
|
74483
|
-
pattern:
|
76047
|
+
pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
|
76048
|
+
alias: 'nowdoc-string',
|
76049
|
+
greedy: true,
|
74484
76050
|
inside: {
|
74485
|
-
'
|
76051
|
+
'delimiter': {
|
76052
|
+
pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
|
76053
|
+
alias: 'symbol',
|
76054
|
+
inside: {
|
76055
|
+
'punctuation': /^<<<'?|[';]$/
|
76056
|
+
}
|
76057
|
+
}
|
74486
76058
|
}
|
74487
76059
|
},
|
74488
76060
|
{
|
74489
|
-
pattern:
|
74490
|
-
|
74491
|
-
greedy: true
|
74492
|
-
|
74493
|
-
|
74494
|
-
|
74495
|
-
|
74496
|
-
|
74497
|
-
|
74498
|
-
|
74499
|
-
|
74500
|
-
|
74501
|
-
});
|
74502
|
-
|
74503
|
-
|
74504
|
-
/***/ }),
|
74505
|
-
|
74506
|
-
/***/ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js":
|
74507
|
-
/*!*************************************************************************!*\
|
74508
|
-
!*** ./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js ***!
|
74509
|
-
\*************************************************************************/
|
74510
|
-
/***/ (() => {
|
74511
|
-
|
74512
|
-
(function () {
|
74513
|
-
|
74514
|
-
if (typeof Prism === 'undefined' || typeof document === 'undefined') {
|
74515
|
-
return;
|
74516
|
-
}
|
74517
|
-
|
74518
|
-
/**
|
74519
|
-
* Plugin name which is used as a class name for <pre> which is activating the plugin
|
74520
|
-
*
|
74521
|
-
* @type {string}
|
74522
|
-
*/
|
74523
|
-
var PLUGIN_NAME = 'line-numbers';
|
74524
|
-
|
74525
|
-
/**
|
74526
|
-
* Regular expression used for determining line breaks
|
74527
|
-
*
|
74528
|
-
* @type {RegExp}
|
74529
|
-
*/
|
74530
|
-
var NEW_LINE_EXP = /\n(?!$)/g;
|
74531
|
-
|
74532
|
-
|
74533
|
-
/**
|
74534
|
-
* Global exports
|
74535
|
-
*/
|
74536
|
-
var config = Prism.plugins.lineNumbers = {
|
74537
|
-
/**
|
74538
|
-
* Get node for provided line number
|
74539
|
-
*
|
74540
|
-
* @param {Element} element pre element
|
74541
|
-
* @param {number} number line number
|
74542
|
-
* @returns {Element|undefined}
|
74543
|
-
*/
|
74544
|
-
getLine: function (element, number) {
|
74545
|
-
if (element.tagName !== 'PRE' || !element.classList.contains(PLUGIN_NAME)) {
|
74546
|
-
return;
|
74547
|
-
}
|
74548
|
-
|
74549
|
-
var lineNumberRows = element.querySelector('.line-numbers-rows');
|
74550
|
-
if (!lineNumberRows) {
|
74551
|
-
return;
|
74552
|
-
}
|
74553
|
-
var lineNumberStart = parseInt(element.getAttribute('data-start'), 10) || 1;
|
74554
|
-
var lineNumberEnd = lineNumberStart + (lineNumberRows.children.length - 1);
|
74555
|
-
|
74556
|
-
if (number < lineNumberStart) {
|
74557
|
-
number = lineNumberStart;
|
74558
|
-
}
|
74559
|
-
if (number > lineNumberEnd) {
|
74560
|
-
number = lineNumberEnd;
|
76061
|
+
pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
|
76062
|
+
alias: 'heredoc-string',
|
76063
|
+
greedy: true,
|
76064
|
+
inside: {
|
76065
|
+
'delimiter': {
|
76066
|
+
pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
|
76067
|
+
alias: 'symbol',
|
76068
|
+
inside: {
|
76069
|
+
'punctuation': /^<<<"?|[";]$/
|
76070
|
+
}
|
76071
|
+
},
|
76072
|
+
'interpolation': string_interpolation
|
74561
76073
|
}
|
74562
|
-
|
74563
|
-
var lineIndex = number - lineNumberStart;
|
74564
|
-
|
74565
|
-
return lineNumberRows.children[lineIndex];
|
74566
76074
|
},
|
74567
|
-
|
74568
|
-
|
74569
|
-
|
74570
|
-
|
74571
|
-
* This function will not add line numbers. It will only resize existing ones.
|
74572
|
-
*
|
74573
|
-
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
74574
|
-
* @returns {void}
|
74575
|
-
*/
|
74576
|
-
resize: function (element) {
|
74577
|
-
resizeElements([element]);
|
76075
|
+
{
|
76076
|
+
pattern: /`(?:\\[\s\S]|[^\\`])*`/,
|
76077
|
+
alias: 'backtick-quoted-string',
|
76078
|
+
greedy: true
|
74578
76079
|
},
|
74579
|
-
|
74580
|
-
|
74581
|
-
|
74582
|
-
|
74583
|
-
|
74584
|
-
|
74585
|
-
|
74586
|
-
|
74587
|
-
|
74588
|
-
|
74589
|
-
|
74590
|
-
assumeViewportIndependence: true
|
74591
|
-
};
|
74592
|
-
|
74593
|
-
/**
|
74594
|
-
* Resizes the given elements.
|
74595
|
-
*
|
74596
|
-
* @param {HTMLElement[]} elements
|
74597
|
-
*/
|
74598
|
-
function resizeElements(elements) {
|
74599
|
-
elements = elements.filter(function (e) {
|
74600
|
-
var codeStyles = getStyles(e);
|
74601
|
-
var whiteSpace = codeStyles['white-space'];
|
74602
|
-
return whiteSpace === 'pre-wrap' || whiteSpace === 'pre-line';
|
74603
|
-
});
|
74604
|
-
|
74605
|
-
if (elements.length == 0) {
|
74606
|
-
return;
|
74607
|
-
}
|
74608
|
-
|
74609
|
-
var infos = elements.map(function (element) {
|
74610
|
-
var codeElement = element.querySelector('code');
|
74611
|
-
var lineNumbersWrapper = element.querySelector('.line-numbers-rows');
|
74612
|
-
if (!codeElement || !lineNumbersWrapper) {
|
74613
|
-
return undefined;
|
74614
|
-
}
|
74615
|
-
|
74616
|
-
/** @type {HTMLElement} */
|
74617
|
-
var lineNumberSizer = element.querySelector('.line-numbers-sizer');
|
74618
|
-
var codeLines = codeElement.textContent.split(NEW_LINE_EXP);
|
74619
|
-
|
74620
|
-
if (!lineNumberSizer) {
|
74621
|
-
lineNumberSizer = document.createElement('span');
|
74622
|
-
lineNumberSizer.className = 'line-numbers-sizer';
|
74623
|
-
|
74624
|
-
codeElement.appendChild(lineNumberSizer);
|
74625
|
-
}
|
74626
|
-
|
74627
|
-
lineNumberSizer.innerHTML = '0';
|
74628
|
-
lineNumberSizer.style.display = 'block';
|
74629
|
-
|
74630
|
-
var oneLinerHeight = lineNumberSizer.getBoundingClientRect().height;
|
74631
|
-
lineNumberSizer.innerHTML = '';
|
74632
|
-
|
74633
|
-
return {
|
74634
|
-
element: element,
|
74635
|
-
lines: codeLines,
|
74636
|
-
lineHeights: [],
|
74637
|
-
oneLinerHeight: oneLinerHeight,
|
74638
|
-
sizer: lineNumberSizer,
|
74639
|
-
};
|
74640
|
-
}).filter(Boolean);
|
74641
|
-
|
74642
|
-
infos.forEach(function (info) {
|
74643
|
-
var lineNumberSizer = info.sizer;
|
74644
|
-
var lines = info.lines;
|
74645
|
-
var lineHeights = info.lineHeights;
|
74646
|
-
var oneLinerHeight = info.oneLinerHeight;
|
74647
|
-
|
74648
|
-
lineHeights[lines.length - 1] = undefined;
|
74649
|
-
lines.forEach(function (line, index) {
|
74650
|
-
if (line && line.length > 1) {
|
74651
|
-
var e = lineNumberSizer.appendChild(document.createElement('span'));
|
74652
|
-
e.style.display = 'block';
|
74653
|
-
e.textContent = line;
|
74654
|
-
} else {
|
74655
|
-
lineHeights[index] = oneLinerHeight;
|
74656
|
-
}
|
74657
|
-
});
|
74658
|
-
});
|
74659
|
-
|
74660
|
-
infos.forEach(function (info) {
|
74661
|
-
var lineNumberSizer = info.sizer;
|
74662
|
-
var lineHeights = info.lineHeights;
|
74663
|
-
|
74664
|
-
var childIndex = 0;
|
74665
|
-
for (var i = 0; i < lineHeights.length; i++) {
|
74666
|
-
if (lineHeights[i] === undefined) {
|
74667
|
-
lineHeights[i] = lineNumberSizer.children[childIndex++].getBoundingClientRect().height;
|
74668
|
-
}
|
76080
|
+
{
|
76081
|
+
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
76082
|
+
alias: 'single-quoted-string',
|
76083
|
+
greedy: true
|
76084
|
+
},
|
76085
|
+
{
|
76086
|
+
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
76087
|
+
alias: 'double-quoted-string',
|
76088
|
+
greedy: true,
|
76089
|
+
inside: {
|
76090
|
+
'interpolation': string_interpolation
|
74669
76091
|
}
|
74670
|
-
});
|
74671
|
-
|
74672
|
-
infos.forEach(function (info) {
|
74673
|
-
var lineNumberSizer = info.sizer;
|
74674
|
-
var wrapper = info.element.querySelector('.line-numbers-rows');
|
74675
|
-
|
74676
|
-
lineNumberSizer.style.display = 'none';
|
74677
|
-
lineNumberSizer.innerHTML = '';
|
74678
|
-
|
74679
|
-
info.lineHeights.forEach(function (height, lineNumber) {
|
74680
|
-
wrapper.children[lineNumber].style.height = height + 'px';
|
74681
|
-
});
|
74682
|
-
});
|
74683
|
-
}
|
74684
|
-
|
74685
|
-
/**
|
74686
|
-
* Returns style declarations for the element
|
74687
|
-
*
|
74688
|
-
* @param {Element} element
|
74689
|
-
*/
|
74690
|
-
function getStyles(element) {
|
74691
|
-
if (!element) {
|
74692
|
-
return null;
|
74693
|
-
}
|
74694
|
-
|
74695
|
-
return window.getComputedStyle ? getComputedStyle(element) : (element.currentStyle || null);
|
74696
|
-
}
|
74697
|
-
|
74698
|
-
var lastWidth = undefined;
|
74699
|
-
window.addEventListener('resize', function () {
|
74700
|
-
if (config.assumeViewportIndependence && lastWidth === window.innerWidth) {
|
74701
|
-
return;
|
74702
|
-
}
|
74703
|
-
lastWidth = window.innerWidth;
|
74704
|
-
|
74705
|
-
resizeElements(Array.prototype.slice.call(document.querySelectorAll('pre.' + PLUGIN_NAME)));
|
74706
|
-
});
|
74707
|
-
|
74708
|
-
Prism.hooks.add('complete', function (env) {
|
74709
|
-
if (!env.code) {
|
74710
|
-
return;
|
74711
|
-
}
|
74712
|
-
|
74713
|
-
var code = /** @type {Element} */ (env.element);
|
74714
|
-
var pre = /** @type {HTMLElement} */ (code.parentNode);
|
74715
|
-
|
74716
|
-
// works only for <code> wrapped inside <pre> (not inline)
|
74717
|
-
if (!pre || !/pre/i.test(pre.nodeName)) {
|
74718
|
-
return;
|
74719
|
-
}
|
74720
|
-
|
74721
|
-
// Abort if line numbers already exists
|
74722
|
-
if (code.querySelector('.line-numbers-rows')) {
|
74723
|
-
return;
|
74724
|
-
}
|
74725
|
-
|
74726
|
-
// only add line numbers if <code> or one of its ancestors has the `line-numbers` class
|
74727
|
-
if (!Prism.util.isActive(code, PLUGIN_NAME)) {
|
74728
|
-
return;
|
74729
76092
|
}
|
76093
|
+
];
|
74730
76094
|
|
74731
|
-
|
74732
|
-
|
74733
|
-
|
74734
|
-
|
74735
|
-
|
74736
|
-
|
74737
|
-
|
74738
|
-
|
74739
|
-
|
74740
|
-
|
74741
|
-
|
74742
|
-
|
74743
|
-
|
74744
|
-
|
74745
|
-
|
76095
|
+
Prism.languages.insertBefore('php', 'variable', {
|
76096
|
+
'string': string,
|
76097
|
+
'attribute': {
|
76098
|
+
pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
|
76099
|
+
greedy: true,
|
76100
|
+
inside: {
|
76101
|
+
'attribute-content': {
|
76102
|
+
pattern: /^(#\[)[\s\S]+(?=\]$)/,
|
76103
|
+
lookbehind: true,
|
76104
|
+
// inside can appear subset of php
|
76105
|
+
inside: {
|
76106
|
+
'comment': comment,
|
76107
|
+
'string': string,
|
76108
|
+
'attribute-class-name': [
|
76109
|
+
{
|
76110
|
+
pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
|
76111
|
+
alias: 'class-name',
|
76112
|
+
greedy: true,
|
76113
|
+
lookbehind: true
|
76114
|
+
},
|
76115
|
+
{
|
76116
|
+
pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
|
76117
|
+
alias: [
|
76118
|
+
'class-name',
|
76119
|
+
'class-name-fully-qualified'
|
76120
|
+
],
|
76121
|
+
greedy: true,
|
76122
|
+
lookbehind: true,
|
76123
|
+
inside: {
|
76124
|
+
'punctuation': /\\/
|
76125
|
+
}
|
76126
|
+
}
|
76127
|
+
],
|
76128
|
+
'constant': constant,
|
76129
|
+
'number': number,
|
76130
|
+
'operator': operator,
|
76131
|
+
'punctuation': punctuation
|
76132
|
+
}
|
76133
|
+
},
|
76134
|
+
'delimiter': {
|
76135
|
+
pattern: /^#\[|\]$/,
|
76136
|
+
alias: 'punctuation'
|
76137
|
+
}
|
76138
|
+
}
|
76139
|
+
},
|
76140
|
+
});
|
74746
76141
|
|
74747
|
-
|
74748
|
-
|
76142
|
+
Prism.hooks.add('before-tokenize', function (env) {
|
76143
|
+
if (!/<\?/.test(env.code)) {
|
76144
|
+
return;
|
74749
76145
|
}
|
74750
76146
|
|
74751
|
-
|
74752
|
-
|
74753
|
-
resizeElements([pre]);
|
74754
|
-
|
74755
|
-
Prism.hooks.run('line-numbers', env);
|
76147
|
+
var phpPattern = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;
|
76148
|
+
Prism.languages['markup-templating'].buildPlaceholders(env, 'php', phpPattern);
|
74756
76149
|
});
|
74757
76150
|
|
74758
|
-
Prism.hooks.add('
|
74759
|
-
|
74760
|
-
env.plugins.lineNumbers = true;
|
76151
|
+
Prism.hooks.add('after-tokenize', function (env) {
|
76152
|
+
Prism.languages['markup-templating'].tokenizePlaceholders(env, 'php');
|
74761
76153
|
});
|
74762
76154
|
|
74763
|
-
}());
|
74764
|
-
|
74765
|
-
|
74766
|
-
/***/ }),
|
74767
|
-
|
74768
|
-
/***/ "./node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js":
|
74769
|
-
/*!******************************************************************!*\
|
74770
|
-
!*** ./node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js ***!
|
74771
|
-
\******************************************************************/
|
74772
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
74773
|
-
|
74774
|
-
"use strict";
|
74775
|
-
__webpack_require__.r(__webpack_exports__);
|
74776
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
74777
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
74778
|
-
/* harmony export */ });
|
74779
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
74780
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
76155
|
+
}(Prism));
|
74781
76156
|
|
74782
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.memo(function (_ref) {
|
74783
|
-
var children = _ref.children;
|
74784
|
-
return children;
|
74785
|
-
}, function (_, _ref2) {
|
74786
|
-
var shouldUpdate = _ref2.shouldUpdate;
|
74787
|
-
return !shouldUpdate;
|
74788
|
-
}));
|
74789
76157
|
|
74790
76158
|
/***/ }),
|
74791
76159
|
|
74792
|
-
/***/ "./node_modules/
|
74793
|
-
|
74794
|
-
!*** ./node_modules/
|
74795
|
-
|
74796
|
-
/***/ ((
|
74797
|
-
|
74798
|
-
"use strict";
|
74799
|
-
__webpack_require__.r(__webpack_exports__);
|
74800
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
74801
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
74802
|
-
/* harmony export */ });
|
74803
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
74804
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
74805
|
-
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
74806
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
74807
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
|
74808
|
-
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
74809
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
74810
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
74811
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../context */ "./node_modules/rc-dialog/es/context.js");
|
74812
|
-
/* harmony import */ var _MemoChildren__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MemoChildren */ "./node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js");
|
74813
|
-
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
74814
|
-
|
74815
|
-
|
74816
|
-
|
74817
|
-
|
74818
|
-
|
74819
|
-
|
74820
|
-
|
74821
|
-
|
76160
|
+
/***/ "./node_modules/prismjs/components/prism-python.js":
|
76161
|
+
/*!*********************************************************!*\
|
76162
|
+
!*** ./node_modules/prismjs/components/prism-python.js ***!
|
76163
|
+
\*********************************************************/
|
76164
|
+
/***/ (() => {
|
74822
76165
|
|
74823
|
-
|
74824
|
-
|
74825
|
-
|
74826
|
-
|
74827
|
-
|
74828
|
-
}
|
74829
|
-
|
74830
|
-
|
76166
|
+
Prism.languages.python = {
|
76167
|
+
'comment': {
|
76168
|
+
pattern: /(^|[^\\])#.*/,
|
76169
|
+
lookbehind: true,
|
76170
|
+
greedy: true
|
76171
|
+
},
|
76172
|
+
'string-interpolation': {
|
76173
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
76174
|
+
greedy: true,
|
76175
|
+
inside: {
|
76176
|
+
'interpolation': {
|
76177
|
+
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
76178
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
76179
|
+
lookbehind: true,
|
76180
|
+
inside: {
|
76181
|
+
'format-spec': {
|
76182
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
76183
|
+
lookbehind: true
|
76184
|
+
},
|
76185
|
+
'conversion-option': {
|
76186
|
+
pattern: //,
|
76187
|
+
alias: 'punctuation'
|
76188
|
+
},
|
76189
|
+
rest: null
|
76190
|
+
}
|
76191
|
+
},
|
76192
|
+
'string': /[\s\S]+/
|
76193
|
+
}
|
76194
|
+
},
|
76195
|
+
'triple-quoted-string': {
|
76196
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
76197
|
+
greedy: true,
|
76198
|
+
alias: 'string'
|
76199
|
+
},
|
76200
|
+
'string': {
|
76201
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
76202
|
+
greedy: true
|
76203
|
+
},
|
76204
|
+
'function': {
|
76205
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
76206
|
+
lookbehind: true
|
76207
|
+
},
|
76208
|
+
'class-name': {
|
76209
|
+
pattern: /(\bclass\s+)\w+/i,
|
76210
|
+
lookbehind: true
|
76211
|
+
},
|
76212
|
+
'decorator': {
|
76213
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
76214
|
+
lookbehind: true,
|
76215
|
+
alias: ['annotation', 'punctuation'],
|
76216
|
+
inside: {
|
76217
|
+
'punctuation': /\./
|
76218
|
+
}
|
76219
|
+
},
|
76220
|
+
'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
76221
|
+
'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
76222
|
+
'boolean': /\b(?:False|None|True)\b/,
|
76223
|
+
'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
76224
|
+
'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
76225
|
+
'punctuation': /[{}[\];(),.:]/
|
74831
76226
|
};
|
74832
|
-
var Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().forwardRef(function (props, ref) {
|
74833
|
-
var prefixCls = props.prefixCls,
|
74834
|
-
className = props.className,
|
74835
|
-
style = props.style,
|
74836
|
-
title = props.title,
|
74837
|
-
ariaId = props.ariaId,
|
74838
|
-
footer = props.footer,
|
74839
|
-
closable = props.closable,
|
74840
|
-
closeIcon = props.closeIcon,
|
74841
|
-
onClose = props.onClose,
|
74842
|
-
children = props.children,
|
74843
|
-
bodyStyle = props.bodyStyle,
|
74844
|
-
bodyProps = props.bodyProps,
|
74845
|
-
modalRender = props.modalRender,
|
74846
|
-
onMouseDown = props.onMouseDown,
|
74847
|
-
onMouseUp = props.onMouseUp,
|
74848
|
-
holderRef = props.holderRef,
|
74849
|
-
visible = props.visible,
|
74850
|
-
forceRender = props.forceRender,
|
74851
|
-
width = props.width,
|
74852
|
-
height = props.height,
|
74853
|
-
modalClassNames = props.classNames,
|
74854
|
-
modalStyles = props.styles;
|
74855
|
-
|
74856
|
-
// ================================= Refs =================================
|
74857
|
-
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5___default().useContext(_context__WEBPACK_IMPORTED_MODULE_6__.RefContext),
|
74858
|
-
panelRef = _React$useContext.panel;
|
74859
|
-
var mergedRef = (0,rc_util_es_ref__WEBPACK_IMPORTED_MODULE_4__.useComposeRef)(holderRef, panelRef);
|
74860
|
-
var sentinelStartRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)();
|
74861
|
-
var sentinelEndRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)();
|
74862
|
-
react__WEBPACK_IMPORTED_MODULE_5___default().useImperativeHandle(ref, function () {
|
74863
|
-
return {
|
74864
|
-
focus: function focus() {
|
74865
|
-
var _sentinelStartRef$cur;
|
74866
|
-
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
74867
|
-
preventScroll: true
|
74868
|
-
});
|
74869
|
-
},
|
74870
|
-
changeActive: function changeActive(next) {
|
74871
|
-
var _document = document,
|
74872
|
-
activeElement = _document.activeElement;
|
74873
|
-
if (next && activeElement === sentinelEndRef.current) {
|
74874
|
-
sentinelStartRef.current.focus({
|
74875
|
-
preventScroll: true
|
74876
|
-
});
|
74877
|
-
} else if (!next && activeElement === sentinelStartRef.current) {
|
74878
|
-
sentinelEndRef.current.focus({
|
74879
|
-
preventScroll: true
|
74880
|
-
});
|
74881
|
-
}
|
74882
|
-
}
|
74883
|
-
};
|
74884
|
-
});
|
74885
|
-
|
74886
|
-
// ================================ Style =================================
|
74887
|
-
var contentStyle = {};
|
74888
|
-
if (width !== undefined) {
|
74889
|
-
contentStyle.width = width;
|
74890
|
-
}
|
74891
|
-
if (height !== undefined) {
|
74892
|
-
contentStyle.height = height;
|
74893
|
-
}
|
74894
|
-
// ================================ Render ================================
|
74895
|
-
var footerNode = footer ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74896
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-footer"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.footer),
|
74897
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.footer)
|
74898
|
-
}, footer) : null;
|
74899
|
-
var headerNode = title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74900
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-header"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.header),
|
74901
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.header)
|
74902
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74903
|
-
className: "".concat(prefixCls, "-title"),
|
74904
|
-
id: ariaId
|
74905
|
-
}, title)) : null;
|
74906
|
-
var closableObj = (0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function () {
|
74907
|
-
if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(closable) === 'object' && closable !== null) {
|
74908
|
-
return closable;
|
74909
|
-
}
|
74910
|
-
if (closable) {
|
74911
|
-
return {
|
74912
|
-
closeIcon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("span", {
|
74913
|
-
className: "".concat(prefixCls, "-close-x")
|
74914
|
-
})
|
74915
|
-
};
|
74916
|
-
}
|
74917
|
-
return {};
|
74918
|
-
}, [closable, closeIcon, prefixCls]);
|
74919
|
-
var ariaProps = (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_8__["default"])(closableObj, true);
|
74920
|
-
var closeBtnIsDisabled = (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(closable) === 'object' && closable.disabled;
|
74921
|
-
var closerNode = closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("button", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
74922
|
-
type: "button",
|
74923
|
-
onClick: onClose,
|
74924
|
-
"aria-label": "Close"
|
74925
|
-
}, ariaProps, {
|
74926
|
-
className: "".concat(prefixCls, "-close"),
|
74927
|
-
disabled: closeBtnIsDisabled
|
74928
|
-
}), closableObj.closeIcon) : null;
|
74929
|
-
var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74930
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-content"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.content),
|
74931
|
-
style: modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.content
|
74932
|
-
}, closerNode, headerNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
74933
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-body"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.body),
|
74934
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, bodyStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body)
|
74935
|
-
}, bodyProps), children), footerNode);
|
74936
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74937
|
-
key: "dialog-element",
|
74938
|
-
role: "dialog",
|
74939
|
-
"aria-labelledby": title ? ariaId : null,
|
74940
|
-
"aria-modal": "true",
|
74941
|
-
ref: mergedRef,
|
74942
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), contentStyle),
|
74943
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, className),
|
74944
|
-
onMouseDown: onMouseDown,
|
74945
|
-
onMouseUp: onMouseUp
|
74946
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74947
|
-
ref: sentinelStartRef,
|
74948
|
-
tabIndex: 0,
|
74949
|
-
style: entityStyle
|
74950
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_MemoChildren__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
74951
|
-
shouldUpdate: visible || forceRender
|
74952
|
-
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("div", {
|
74953
|
-
tabIndex: 0,
|
74954
|
-
ref: sentinelEndRef,
|
74955
|
-
style: sentinelStyle
|
74956
|
-
}));
|
74957
|
-
});
|
74958
|
-
if (true) {
|
74959
|
-
Panel.displayName = 'Panel';
|
74960
|
-
}
|
74961
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Panel);
|
74962
|
-
|
74963
|
-
/***/ }),
|
74964
|
-
|
74965
|
-
/***/ "./node_modules/rc-dialog/es/Dialog/Content/index.js":
|
74966
|
-
/*!***********************************************************!*\
|
74967
|
-
!*** ./node_modules/rc-dialog/es/Dialog/Content/index.js ***!
|
74968
|
-
\***********************************************************/
|
74969
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
74970
|
-
|
74971
|
-
"use strict";
|
74972
|
-
__webpack_require__.r(__webpack_exports__);
|
74973
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
74974
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
74975
|
-
/* harmony export */ });
|
74976
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
74977
|
-
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
74978
|
-
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
74979
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
74980
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
74981
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
74982
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
74983
|
-
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
74984
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util */ "./node_modules/rc-dialog/es/util.js");
|
74985
|
-
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Panel */ "./node_modules/rc-dialog/es/Dialog/Content/Panel.js");
|
74986
|
-
|
74987
|
-
|
74988
76227
|
|
76228
|
+
Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
|
74989
76229
|
|
76230
|
+
Prism.languages.py = Prism.languages.python;
|
74990
76231
|
|
74991
76232
|
|
76233
|
+
/***/ }),
|
74992
76234
|
|
76235
|
+
/***/ "./node_modules/prismjs/components/prism-ruby.js":
|
76236
|
+
/*!*******************************************************!*\
|
76237
|
+
!*** ./node_modules/prismjs/components/prism-ruby.js ***!
|
76238
|
+
\*******************************************************/
|
76239
|
+
/***/ (() => {
|
74993
76240
|
|
76241
|
+
/**
|
76242
|
+
* Original by Samuel Flores
|
76243
|
+
*
|
76244
|
+
* Adds the following new token classes:
|
76245
|
+
* constant, builtin, variable, symbol, regex
|
76246
|
+
*/
|
76247
|
+
(function (Prism) {
|
76248
|
+
Prism.languages.ruby = Prism.languages.extend('clike', {
|
76249
|
+
'comment': {
|
76250
|
+
pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
|
76251
|
+
greedy: true
|
76252
|
+
},
|
76253
|
+
'class-name': {
|
76254
|
+
pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,
|
76255
|
+
lookbehind: true,
|
76256
|
+
inside: {
|
76257
|
+
'punctuation': /[.\\]/
|
76258
|
+
}
|
76259
|
+
},
|
76260
|
+
'keyword': /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,
|
76261
|
+
'operator': /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,
|
76262
|
+
'punctuation': /[(){}[\].,;]/,
|
76263
|
+
});
|
74994
76264
|
|
74995
|
-
|
74996
|
-
|
74997
|
-
|
74998
|
-
|
74999
|
-
|
75000
|
-
|
75001
|
-
forceRender = props.forceRender,
|
75002
|
-
destroyOnClose = props.destroyOnClose,
|
75003
|
-
motionName = props.motionName,
|
75004
|
-
ariaId = props.ariaId,
|
75005
|
-
onVisibleChanged = props.onVisibleChanged,
|
75006
|
-
mousePosition = props.mousePosition;
|
75007
|
-
var dialogRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
76265
|
+
Prism.languages.insertBefore('ruby', 'operator', {
|
76266
|
+
'double-colon': {
|
76267
|
+
pattern: /::/,
|
76268
|
+
alias: 'punctuation'
|
76269
|
+
},
|
76270
|
+
});
|
75008
76271
|
|
75009
|
-
|
75010
|
-
|
75011
|
-
|
75012
|
-
|
75013
|
-
|
75014
|
-
|
75015
|
-
|
75016
|
-
|
75017
|
-
|
75018
|
-
|
75019
|
-
|
75020
|
-
|
75021
|
-
|
76272
|
+
var interpolation = {
|
76273
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,
|
76274
|
+
lookbehind: true,
|
76275
|
+
inside: {
|
76276
|
+
'content': {
|
76277
|
+
pattern: /^(#\{)[\s\S]+(?=\}$)/,
|
76278
|
+
lookbehind: true,
|
76279
|
+
inside: Prism.languages.ruby
|
76280
|
+
},
|
76281
|
+
'delimiter': {
|
76282
|
+
pattern: /^#\{|\}$/,
|
76283
|
+
alias: 'punctuation'
|
76284
|
+
}
|
76285
|
+
}
|
76286
|
+
};
|
75022
76287
|
|
75023
|
-
|
75024
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
75025
|
-
visible: visible,
|
75026
|
-
onVisibleChanged: onVisibleChanged,
|
75027
|
-
onAppearPrepare: onPrepare,
|
75028
|
-
onEnterPrepare: onPrepare,
|
75029
|
-
forceRender: forceRender,
|
75030
|
-
motionName: motionName,
|
75031
|
-
removeOnLeave: destroyOnClose,
|
75032
|
-
ref: dialogRef
|
75033
|
-
}, function (_ref, motionRef) {
|
75034
|
-
var motionClassName = _ref.className,
|
75035
|
-
motionStyle = _ref.style;
|
75036
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Panel__WEBPACK_IMPORTED_MODULE_7__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
75037
|
-
ref: ref,
|
75038
|
-
title: title,
|
75039
|
-
ariaId: ariaId,
|
75040
|
-
prefixCls: prefixCls,
|
75041
|
-
holderRef: motionRef,
|
75042
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), style), contentStyle),
|
75043
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, motionClassName)
|
75044
|
-
}));
|
75045
|
-
});
|
75046
|
-
});
|
75047
|
-
Content.displayName = 'Content';
|
75048
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Content);
|
76288
|
+
delete Prism.languages.ruby.function;
|
75049
76289
|
|
75050
|
-
|
76290
|
+
var percentExpression = '(?:' + [
|
76291
|
+
/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
76292
|
+
/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,
|
76293
|
+
/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,
|
76294
|
+
/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,
|
76295
|
+
/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source
|
76296
|
+
].join('|') + ')';
|
75051
76297
|
|
75052
|
-
|
75053
|
-
/*!**************************************************!*\
|
75054
|
-
!*** ./node_modules/rc-dialog/es/Dialog/Mask.js ***!
|
75055
|
-
\**************************************************/
|
75056
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
76298
|
+
var symbolName = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;
|
75057
76299
|
|
75058
|
-
|
75059
|
-
|
75060
|
-
|
75061
|
-
|
75062
|
-
|
75063
|
-
|
75064
|
-
|
75065
|
-
|
75066
|
-
|
75067
|
-
|
75068
|
-
|
75069
|
-
|
76300
|
+
Prism.languages.insertBefore('ruby', 'keyword', {
|
76301
|
+
'regex-literal': [
|
76302
|
+
{
|
76303
|
+
pattern: RegExp(/%r/.source + percentExpression + /[egimnosux]{0,6}/.source),
|
76304
|
+
greedy: true,
|
76305
|
+
inside: {
|
76306
|
+
'interpolation': interpolation,
|
76307
|
+
'regex': /[\s\S]+/
|
76308
|
+
}
|
76309
|
+
},
|
76310
|
+
{
|
76311
|
+
pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
|
76312
|
+
lookbehind: true,
|
76313
|
+
greedy: true,
|
76314
|
+
inside: {
|
76315
|
+
'interpolation': interpolation,
|
76316
|
+
'regex': /[\s\S]+/
|
76317
|
+
}
|
76318
|
+
}
|
76319
|
+
],
|
76320
|
+
'variable': /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
|
76321
|
+
'symbol': [
|
76322
|
+
{
|
76323
|
+
pattern: RegExp(/(^|[^:]):/.source + symbolName),
|
76324
|
+
lookbehind: true,
|
76325
|
+
greedy: true
|
76326
|
+
},
|
76327
|
+
{
|
76328
|
+
pattern: RegExp(/([\r\n{(,][ \t]*)/.source + symbolName + /(?=:(?!:))/.source),
|
76329
|
+
lookbehind: true,
|
76330
|
+
greedy: true
|
76331
|
+
},
|
76332
|
+
],
|
76333
|
+
'method-definition': {
|
76334
|
+
pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,
|
76335
|
+
lookbehind: true,
|
76336
|
+
inside: {
|
76337
|
+
'function': /\b\w+$/,
|
76338
|
+
'keyword': /^self\b/,
|
76339
|
+
'class-name': /^\w+/,
|
76340
|
+
'punctuation': /\./
|
76341
|
+
}
|
76342
|
+
}
|
76343
|
+
});
|
75070
76344
|
|
76345
|
+
Prism.languages.insertBefore('ruby', 'string', {
|
76346
|
+
'string-literal': [
|
76347
|
+
{
|
76348
|
+
pattern: RegExp(/%[qQiIwWs]?/.source + percentExpression),
|
76349
|
+
greedy: true,
|
76350
|
+
inside: {
|
76351
|
+
'interpolation': interpolation,
|
76352
|
+
'string': /[\s\S]+/
|
76353
|
+
}
|
76354
|
+
},
|
76355
|
+
{
|
76356
|
+
pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
|
76357
|
+
greedy: true,
|
76358
|
+
inside: {
|
76359
|
+
'interpolation': interpolation,
|
76360
|
+
'string': /[\s\S]+/
|
76361
|
+
}
|
76362
|
+
},
|
76363
|
+
{
|
76364
|
+
pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
|
76365
|
+
alias: 'heredoc-string',
|
76366
|
+
greedy: true,
|
76367
|
+
inside: {
|
76368
|
+
'delimiter': {
|
76369
|
+
pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,
|
76370
|
+
inside: {
|
76371
|
+
'symbol': /\b\w+/,
|
76372
|
+
'punctuation': /^<<[-~]?/
|
76373
|
+
}
|
76374
|
+
},
|
76375
|
+
'interpolation': interpolation,
|
76376
|
+
'string': /[\s\S]+/
|
76377
|
+
}
|
76378
|
+
},
|
76379
|
+
{
|
76380
|
+
pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
|
76381
|
+
alias: 'heredoc-string',
|
76382
|
+
greedy: true,
|
76383
|
+
inside: {
|
76384
|
+
'delimiter': {
|
76385
|
+
pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,
|
76386
|
+
inside: {
|
76387
|
+
'symbol': /\b\w+/,
|
76388
|
+
'punctuation': /^<<[-~]?'|'$/,
|
76389
|
+
}
|
76390
|
+
},
|
76391
|
+
'string': /[\s\S]+/
|
76392
|
+
}
|
76393
|
+
}
|
76394
|
+
],
|
76395
|
+
'command-literal': [
|
76396
|
+
{
|
76397
|
+
pattern: RegExp(/%x/.source + percentExpression),
|
76398
|
+
greedy: true,
|
76399
|
+
inside: {
|
76400
|
+
'interpolation': interpolation,
|
76401
|
+
'command': {
|
76402
|
+
pattern: /[\s\S]+/,
|
76403
|
+
alias: 'string'
|
76404
|
+
}
|
76405
|
+
}
|
76406
|
+
},
|
76407
|
+
{
|
76408
|
+
pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,
|
76409
|
+
greedy: true,
|
76410
|
+
inside: {
|
76411
|
+
'interpolation': interpolation,
|
76412
|
+
'command': {
|
76413
|
+
pattern: /[\s\S]+/,
|
76414
|
+
alias: 'string'
|
76415
|
+
}
|
76416
|
+
}
|
76417
|
+
}
|
76418
|
+
]
|
76419
|
+
});
|
75071
76420
|
|
76421
|
+
delete Prism.languages.ruby.string;
|
75072
76422
|
|
76423
|
+
Prism.languages.insertBefore('ruby', 'number', {
|
76424
|
+
'builtin': /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
|
76425
|
+
'constant': /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/
|
76426
|
+
});
|
75073
76427
|
|
76428
|
+
Prism.languages.rb = Prism.languages.ruby;
|
76429
|
+
}(Prism));
|
75074
76430
|
|
75075
|
-
var Mask = function Mask(props) {
|
75076
|
-
var prefixCls = props.prefixCls,
|
75077
|
-
style = props.style,
|
75078
|
-
visible = props.visible,
|
75079
|
-
maskProps = props.maskProps,
|
75080
|
-
motionName = props.motionName,
|
75081
|
-
className = props.className;
|
75082
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
75083
|
-
key: "mask",
|
75084
|
-
visible: visible,
|
75085
|
-
motionName: motionName,
|
75086
|
-
leavedClassName: "".concat(prefixCls, "-mask-hidden")
|
75087
|
-
}, function (_ref, ref) {
|
75088
|
-
var motionClassName = _ref.className,
|
75089
|
-
motionStyle = _ref.style;
|
75090
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
75091
|
-
ref: ref,
|
75092
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), style),
|
75093
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-mask"), motionClassName, className)
|
75094
|
-
}, maskProps));
|
75095
|
-
});
|
75096
|
-
};
|
75097
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Mask);
|
75098
76431
|
|
75099
76432
|
/***/ }),
|
75100
76433
|
|
75101
|
-
/***/ "./node_modules/
|
75102
|
-
|
75103
|
-
!*** ./node_modules/
|
75104
|
-
|
75105
|
-
/***/ ((
|
76434
|
+
/***/ "./node_modules/prismjs/components/prism-vbnet.js":
|
76435
|
+
/*!********************************************************!*\
|
76436
|
+
!*** ./node_modules/prismjs/components/prism-vbnet.js ***!
|
76437
|
+
\********************************************************/
|
76438
|
+
/***/ (() => {
|
75106
76439
|
|
75107
|
-
|
75108
|
-
|
75109
|
-
|
75110
|
-
|
75111
|
-
|
75112
|
-
|
75113
|
-
|
75114
|
-
|
75115
|
-
|
75116
|
-
|
75117
|
-
|
75118
|
-
|
75119
|
-
|
75120
|
-
|
75121
|
-
|
75122
|
-
|
75123
|
-
|
75124
|
-
|
75125
|
-
|
75126
|
-
|
76440
|
+
Prism.languages.vbnet = Prism.languages.extend('basic', {
|
76441
|
+
'comment': [
|
76442
|
+
{
|
76443
|
+
pattern: /(?:!|REM\b).+/i,
|
76444
|
+
inside: {
|
76445
|
+
'keyword': /^REM/i
|
76446
|
+
}
|
76447
|
+
},
|
76448
|
+
{
|
76449
|
+
pattern: /(^|[^\\:])'.*/,
|
76450
|
+
lookbehind: true,
|
76451
|
+
greedy: true
|
76452
|
+
}
|
76453
|
+
],
|
76454
|
+
'string': {
|
76455
|
+
pattern: /(^|[^"])"(?:""|[^"])*"(?!")/,
|
76456
|
+
lookbehind: true,
|
76457
|
+
greedy: true
|
76458
|
+
},
|
76459
|
+
'keyword': /(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,
|
76460
|
+
'punctuation': /[,;:(){}]/
|
76461
|
+
});
|
75127
76462
|
|
75128
76463
|
|
76464
|
+
/***/ }),
|
75129
76465
|
|
76466
|
+
/***/ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js":
|
76467
|
+
/*!*************************************************************************!*\
|
76468
|
+
!*** ./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js ***!
|
76469
|
+
\*************************************************************************/
|
76470
|
+
/***/ (() => {
|
75130
76471
|
|
76472
|
+
(function () {
|
75131
76473
|
|
76474
|
+
if (typeof Prism === 'undefined' || typeof document === 'undefined') {
|
76475
|
+
return;
|
76476
|
+
}
|
75132
76477
|
|
76478
|
+
/**
|
76479
|
+
* Plugin name which is used as a class name for <pre> which is activating the plugin
|
76480
|
+
*
|
76481
|
+
* @type {string}
|
76482
|
+
*/
|
76483
|
+
var PLUGIN_NAME = 'line-numbers';
|
75133
76484
|
|
76485
|
+
/**
|
76486
|
+
* Regular expression used for determining line breaks
|
76487
|
+
*
|
76488
|
+
* @type {RegExp}
|
76489
|
+
*/
|
76490
|
+
var NEW_LINE_EXP = /\n(?!$)/g;
|
75134
76491
|
|
75135
76492
|
|
76493
|
+
/**
|
76494
|
+
* Global exports
|
76495
|
+
*/
|
76496
|
+
var config = Prism.plugins.lineNumbers = {
|
76497
|
+
/**
|
76498
|
+
* Get node for provided line number
|
76499
|
+
*
|
76500
|
+
* @param {Element} element pre element
|
76501
|
+
* @param {number} number line number
|
76502
|
+
* @returns {Element|undefined}
|
76503
|
+
*/
|
76504
|
+
getLine: function (element, number) {
|
76505
|
+
if (element.tagName !== 'PRE' || !element.classList.contains(PLUGIN_NAME)) {
|
76506
|
+
return;
|
76507
|
+
}
|
75136
76508
|
|
76509
|
+
var lineNumberRows = element.querySelector('.line-numbers-rows');
|
76510
|
+
if (!lineNumberRows) {
|
76511
|
+
return;
|
76512
|
+
}
|
76513
|
+
var lineNumberStart = parseInt(element.getAttribute('data-start'), 10) || 1;
|
76514
|
+
var lineNumberEnd = lineNumberStart + (lineNumberRows.children.length - 1);
|
75137
76515
|
|
76516
|
+
if (number < lineNumberStart) {
|
76517
|
+
number = lineNumberStart;
|
76518
|
+
}
|
76519
|
+
if (number > lineNumberEnd) {
|
76520
|
+
number = lineNumberEnd;
|
76521
|
+
}
|
75138
76522
|
|
76523
|
+
var lineIndex = number - lineNumberStart;
|
75139
76524
|
|
76525
|
+
return lineNumberRows.children[lineIndex];
|
76526
|
+
},
|
75140
76527
|
|
75141
|
-
|
75142
|
-
|
75143
|
-
|
75144
|
-
|
75145
|
-
|
75146
|
-
|
75147
|
-
|
75148
|
-
|
75149
|
-
|
75150
|
-
|
75151
|
-
|
75152
|
-
wrapClassName = props.wrapClassName,
|
75153
|
-
wrapProps = props.wrapProps,
|
75154
|
-
onClose = props.onClose,
|
75155
|
-
afterOpenChange = props.afterOpenChange,
|
75156
|
-
afterClose = props.afterClose,
|
75157
|
-
transitionName = props.transitionName,
|
75158
|
-
animation = props.animation,
|
75159
|
-
_props$closable = props.closable,
|
75160
|
-
closable = _props$closable === void 0 ? true : _props$closable,
|
75161
|
-
_props$mask = props.mask,
|
75162
|
-
mask = _props$mask === void 0 ? true : _props$mask,
|
75163
|
-
maskTransitionName = props.maskTransitionName,
|
75164
|
-
maskAnimation = props.maskAnimation,
|
75165
|
-
_props$maskClosable = props.maskClosable,
|
75166
|
-
maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
|
75167
|
-
maskStyle = props.maskStyle,
|
75168
|
-
maskProps = props.maskProps,
|
75169
|
-
rootClassName = props.rootClassName,
|
75170
|
-
modalClassNames = props.classNames,
|
75171
|
-
modalStyles = props.styles;
|
75172
|
-
if (true) {
|
75173
|
-
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(function (prop) {
|
75174
|
-
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
75175
|
-
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_12__.warning)(!(prop in props), "".concat(prop, " is deprecated, please use styles instead."));
|
75176
|
-
});
|
75177
|
-
if ('wrapClassName' in props) {
|
75178
|
-
(0,rc_util_es_warning__WEBPACK_IMPORTED_MODULE_12__.warning)(false, "wrapClassName is deprecated, please use classNames instead.");
|
75179
|
-
}
|
75180
|
-
}
|
75181
|
-
var lastOutSideActiveElementRef = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)();
|
75182
|
-
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)();
|
75183
|
-
var contentRef = (0,react__WEBPACK_IMPORTED_MODULE_8__.useRef)();
|
75184
|
-
var _React$useState = react__WEBPACK_IMPORTED_MODULE_8__.useState(visible),
|
75185
|
-
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState, 2),
|
75186
|
-
animatedVisible = _React$useState2[0],
|
75187
|
-
setAnimatedVisible = _React$useState2[1];
|
76528
|
+
/**
|
76529
|
+
* Resizes the line numbers of the given element.
|
76530
|
+
*
|
76531
|
+
* This function will not add line numbers. It will only resize existing ones.
|
76532
|
+
*
|
76533
|
+
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
76534
|
+
* @returns {void}
|
76535
|
+
*/
|
76536
|
+
resize: function (element) {
|
76537
|
+
resizeElements([element]);
|
76538
|
+
},
|
75188
76539
|
|
75189
|
-
|
75190
|
-
|
75191
|
-
|
75192
|
-
|
75193
|
-
|
75194
|
-
|
75195
|
-
|
75196
|
-
|
75197
|
-
|
75198
|
-
|
75199
|
-
|
75200
|
-
|
75201
|
-
}
|
76540
|
+
/**
|
76541
|
+
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
76542
|
+
* the current viewport.
|
76543
|
+
*
|
76544
|
+
* Setting this to `true` will allow the plugin to do certain optimizations for better performance.
|
76545
|
+
*
|
76546
|
+
* Set this to `false` if you use any of the following CSS units: `vh`, `vw`, `vmin`, `vmax`.
|
76547
|
+
*
|
76548
|
+
* @type {boolean}
|
76549
|
+
*/
|
76550
|
+
assumeViewportIndependence: true
|
76551
|
+
};
|
75202
76552
|
|
75203
|
-
|
75204
|
-
|
75205
|
-
|
75206
|
-
|
75207
|
-
|
75208
|
-
|
75209
|
-
|
75210
|
-
|
75211
|
-
|
75212
|
-
|
75213
|
-
|
75214
|
-
preventScroll: true
|
75215
|
-
});
|
75216
|
-
} catch (e) {
|
75217
|
-
// Do nothing
|
75218
|
-
}
|
75219
|
-
lastOutSideActiveElementRef.current = null;
|
75220
|
-
}
|
76553
|
+
/**
|
76554
|
+
* Resizes the given elements.
|
76555
|
+
*
|
76556
|
+
* @param {HTMLElement[]} elements
|
76557
|
+
*/
|
76558
|
+
function resizeElements(elements) {
|
76559
|
+
elements = elements.filter(function (e) {
|
76560
|
+
var codeStyles = getStyles(e);
|
76561
|
+
var whiteSpace = codeStyles['white-space'];
|
76562
|
+
return whiteSpace === 'pre-wrap' || whiteSpace === 'pre-line';
|
76563
|
+
});
|
75221
76564
|
|
75222
|
-
|
75223
|
-
|
75224
|
-
|
75225
|
-
}
|
75226
|
-
}
|
75227
|
-
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(newVisible);
|
75228
|
-
}
|
75229
|
-
function onInternalClose(e) {
|
75230
|
-
onClose === null || onClose === void 0 || onClose(e);
|
75231
|
-
}
|
76565
|
+
if (elements.length == 0) {
|
76566
|
+
return;
|
76567
|
+
}
|
75232
76568
|
|
75233
|
-
|
75234
|
-
|
75235
|
-
|
76569
|
+
var infos = elements.map(function (element) {
|
76570
|
+
var codeElement = element.querySelector('code');
|
76571
|
+
var lineNumbersWrapper = element.querySelector('.line-numbers-rows');
|
76572
|
+
if (!codeElement || !lineNumbersWrapper) {
|
76573
|
+
return undefined;
|
76574
|
+
}
|
75236
76575
|
|
75237
|
-
|
75238
|
-
|
75239
|
-
|
75240
|
-
contentClickRef.current = true;
|
75241
|
-
};
|
75242
|
-
var onContentMouseUp = function onContentMouseUp() {
|
75243
|
-
contentTimeoutRef.current = setTimeout(function () {
|
75244
|
-
contentClickRef.current = false;
|
75245
|
-
});
|
75246
|
-
};
|
76576
|
+
/** @type {HTMLElement} */
|
76577
|
+
var lineNumberSizer = element.querySelector('.line-numbers-sizer');
|
76578
|
+
var codeLines = codeElement.textContent.split(NEW_LINE_EXP);
|
75247
76579
|
|
75248
|
-
|
75249
|
-
|
75250
|
-
|
75251
|
-
if (maskClosable) {
|
75252
|
-
onWrapperClick = function onWrapperClick(e) {
|
75253
|
-
if (contentClickRef.current) {
|
75254
|
-
contentClickRef.current = false;
|
75255
|
-
} else if (wrapperRef.current === e.target) {
|
75256
|
-
onInternalClose(e);
|
75257
|
-
}
|
75258
|
-
};
|
75259
|
-
}
|
75260
|
-
function onWrapperKeyDown(e) {
|
75261
|
-
if (keyboard && e.keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ESC) {
|
75262
|
-
e.stopPropagation();
|
75263
|
-
onInternalClose(e);
|
75264
|
-
return;
|
75265
|
-
}
|
76580
|
+
if (!lineNumberSizer) {
|
76581
|
+
lineNumberSizer = document.createElement('span');
|
76582
|
+
lineNumberSizer.className = 'line-numbers-sizer';
|
75266
76583
|
|
75267
|
-
|
75268
|
-
|
75269
|
-
contentRef.current.changeActive(!e.shiftKey);
|
75270
|
-
}
|
75271
|
-
}
|
76584
|
+
codeElement.appendChild(lineNumberSizer);
|
76585
|
+
}
|
75272
76586
|
|
75273
|
-
|
75274
|
-
|
75275
|
-
if (visible) {
|
75276
|
-
setAnimatedVisible(true);
|
75277
|
-
saveLastOutSideActiveElementRef();
|
75278
|
-
}
|
75279
|
-
}, [visible]);
|
76587
|
+
lineNumberSizer.innerHTML = '0';
|
76588
|
+
lineNumberSizer.style.display = 'block';
|
75280
76589
|
|
75281
|
-
|
75282
|
-
|
75283
|
-
return function () {
|
75284
|
-
clearTimeout(contentTimeoutRef.current);
|
75285
|
-
};
|
75286
|
-
}, []);
|
75287
|
-
var mergedStyle = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
75288
|
-
zIndex: zIndex
|
75289
|
-
}, wrapStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.wrapper), {}, {
|
75290
|
-
display: !animatedVisible ? 'none' : null
|
75291
|
-
});
|
76590
|
+
var oneLinerHeight = lineNumberSizer.getBoundingClientRect().height;
|
76591
|
+
lineNumberSizer.innerHTML = '';
|
75292
76592
|
|
75293
|
-
|
75294
|
-
|
75295
|
-
|
75296
|
-
|
75297
|
-
|
75298
|
-
|
75299
|
-
|
75300
|
-
|
75301
|
-
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_9__.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
|
75302
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
75303
|
-
zIndex: zIndex
|
75304
|
-
}, maskStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.mask),
|
75305
|
-
maskProps: maskProps,
|
75306
|
-
className: modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.mask
|
75307
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
75308
|
-
tabIndex: -1,
|
75309
|
-
onKeyDown: onWrapperKeyDown,
|
75310
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-wrap"), wrapClassName, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper),
|
75311
|
-
ref: wrapperRef,
|
75312
|
-
onClick: onWrapperClick,
|
75313
|
-
style: mergedStyle
|
75314
|
-
}, wrapProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(_Content__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
75315
|
-
onMouseDown: onContentMouseDown,
|
75316
|
-
onMouseUp: onContentMouseUp,
|
75317
|
-
ref: contentRef,
|
75318
|
-
closable: closable,
|
75319
|
-
ariaId: ariaId,
|
75320
|
-
prefixCls: prefixCls,
|
75321
|
-
visible: visible && animatedVisible,
|
75322
|
-
onClose: onInternalClose,
|
75323
|
-
onVisibleChanged: onDialogVisibleChanged,
|
75324
|
-
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_9__.getMotionName)(prefixCls, transitionName, animation)
|
75325
|
-
}))));
|
75326
|
-
};
|
75327
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
|
76593
|
+
return {
|
76594
|
+
element: element,
|
76595
|
+
lines: codeLines,
|
76596
|
+
lineHeights: [],
|
76597
|
+
oneLinerHeight: oneLinerHeight,
|
76598
|
+
sizer: lineNumberSizer,
|
76599
|
+
};
|
76600
|
+
}).filter(Boolean);
|
75328
76601
|
|
75329
|
-
|
76602
|
+
infos.forEach(function (info) {
|
76603
|
+
var lineNumberSizer = info.sizer;
|
76604
|
+
var lines = info.lines;
|
76605
|
+
var lineHeights = info.lineHeights;
|
76606
|
+
var oneLinerHeight = info.oneLinerHeight;
|
75330
76607
|
|
75331
|
-
|
75332
|
-
|
75333
|
-
|
75334
|
-
|
75335
|
-
|
76608
|
+
lineHeights[lines.length - 1] = undefined;
|
76609
|
+
lines.forEach(function (line, index) {
|
76610
|
+
if (line && line.length > 1) {
|
76611
|
+
var e = lineNumberSizer.appendChild(document.createElement('span'));
|
76612
|
+
e.style.display = 'block';
|
76613
|
+
e.textContent = line;
|
76614
|
+
} else {
|
76615
|
+
lineHeights[index] = oneLinerHeight;
|
76616
|
+
}
|
76617
|
+
});
|
76618
|
+
});
|
75336
76619
|
|
75337
|
-
|
75338
|
-
|
75339
|
-
|
75340
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
75341
|
-
/* harmony export */ });
|
75342
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
75343
|
-
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
75344
|
-
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/portal/es/index.js");
|
75345
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
75346
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
75347
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/rc-dialog/es/context.js");
|
75348
|
-
/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Dialog */ "./node_modules/rc-dialog/es/Dialog/index.js");
|
76620
|
+
infos.forEach(function (info) {
|
76621
|
+
var lineNumberSizer = info.sizer;
|
76622
|
+
var lineHeights = info.lineHeights;
|
75349
76623
|
|
76624
|
+
var childIndex = 0;
|
76625
|
+
for (var i = 0; i < lineHeights.length; i++) {
|
76626
|
+
if (lineHeights[i] === undefined) {
|
76627
|
+
lineHeights[i] = lineNumberSizer.children[childIndex++].getBoundingClientRect().height;
|
76628
|
+
}
|
76629
|
+
}
|
76630
|
+
});
|
75350
76631
|
|
76632
|
+
infos.forEach(function (info) {
|
76633
|
+
var lineNumberSizer = info.sizer;
|
76634
|
+
var wrapper = info.element.querySelector('.line-numbers-rows');
|
75351
76635
|
|
76636
|
+
lineNumberSizer.style.display = 'none';
|
76637
|
+
lineNumberSizer.innerHTML = '';
|
75352
76638
|
|
76639
|
+
info.lineHeights.forEach(function (height, lineNumber) {
|
76640
|
+
wrapper.children[lineNumber].style.height = height + 'px';
|
76641
|
+
});
|
76642
|
+
});
|
76643
|
+
}
|
75353
76644
|
|
76645
|
+
/**
|
76646
|
+
* Returns style declarations for the element
|
76647
|
+
*
|
76648
|
+
* @param {Element} element
|
76649
|
+
*/
|
76650
|
+
function getStyles(element) {
|
76651
|
+
if (!element) {
|
76652
|
+
return null;
|
76653
|
+
}
|
75354
76654
|
|
75355
|
-
|
75356
|
-
|
75357
|
-
* getContainer remarks
|
75358
|
-
* Custom container should not be return, because in the Portal component, it will remove the
|
75359
|
-
* return container element here, if the custom container is the only child of it's component,
|
75360
|
-
* like issue #10656, It will has a conflict with removeChild method in react-dom.
|
75361
|
-
* So here should add a child (div element) to custom container.
|
75362
|
-
* */
|
76655
|
+
return window.getComputedStyle ? getComputedStyle(element) : (element.currentStyle || null);
|
76656
|
+
}
|
75363
76657
|
|
75364
|
-
var
|
75365
|
-
|
75366
|
-
|
75367
|
-
|
75368
|
-
|
75369
|
-
|
75370
|
-
_afterClose = props.afterClose,
|
75371
|
-
panelRef = props.panelRef;
|
75372
|
-
var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__.useState(visible),
|
75373
|
-
_React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState, 2),
|
75374
|
-
animatedVisible = _React$useState2[0],
|
75375
|
-
setAnimatedVisible = _React$useState2[1];
|
75376
|
-
var refContext = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(function () {
|
75377
|
-
return {
|
75378
|
-
panel: panelRef
|
75379
|
-
};
|
75380
|
-
}, [panelRef]);
|
75381
|
-
react__WEBPACK_IMPORTED_MODULE_3__.useEffect(function () {
|
75382
|
-
if (visible) {
|
75383
|
-
setAnimatedVisible(true);
|
75384
|
-
}
|
75385
|
-
}, [visible]);
|
76658
|
+
var lastWidth = undefined;
|
76659
|
+
window.addEventListener('resize', function () {
|
76660
|
+
if (config.assumeViewportIndependence && lastWidth === window.innerWidth) {
|
76661
|
+
return;
|
76662
|
+
}
|
76663
|
+
lastWidth = window.innerWidth;
|
75386
76664
|
|
75387
|
-
|
75388
|
-
|
75389
|
-
return null;
|
75390
|
-
}
|
75391
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_context__WEBPACK_IMPORTED_MODULE_4__.RefContext.Provider, {
|
75392
|
-
value: refContext
|
75393
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
75394
|
-
open: visible || forceRender || animatedVisible,
|
75395
|
-
autoDestroy: false,
|
75396
|
-
getContainer: getContainer,
|
75397
|
-
autoLock: visible || animatedVisible
|
75398
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Dialog__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
75399
|
-
destroyOnClose: destroyOnClose,
|
75400
|
-
afterClose: function afterClose() {
|
75401
|
-
_afterClose === null || _afterClose === void 0 || _afterClose();
|
75402
|
-
setAnimatedVisible(false);
|
75403
|
-
}
|
75404
|
-
}))));
|
75405
|
-
};
|
75406
|
-
DialogWrap.displayName = 'Dialog';
|
75407
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DialogWrap);
|
76665
|
+
resizeElements(Array.prototype.slice.call(document.querySelectorAll('pre.' + PLUGIN_NAME)));
|
76666
|
+
});
|
75408
76667
|
|
75409
|
-
|
76668
|
+
Prism.hooks.add('complete', function (env) {
|
76669
|
+
if (!env.code) {
|
76670
|
+
return;
|
76671
|
+
}
|
75410
76672
|
|
75411
|
-
|
75412
|
-
|
75413
|
-
!*** ./node_modules/rc-dialog/es/context.js ***!
|
75414
|
-
\**********************************************/
|
75415
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
76673
|
+
var code = /** @type {Element} */ (env.element);
|
76674
|
+
var pre = /** @type {HTMLElement} */ (code.parentNode);
|
75416
76675
|
|
75417
|
-
|
75418
|
-
|
75419
|
-
|
75420
|
-
|
75421
|
-
/* harmony export */ });
|
75422
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
75423
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
76676
|
+
// works only for <code> wrapped inside <pre> (not inline)
|
76677
|
+
if (!pre || !/pre/i.test(pre.nodeName)) {
|
76678
|
+
return;
|
76679
|
+
}
|
75424
76680
|
|
75425
|
-
|
76681
|
+
// Abort if line numbers already exists
|
76682
|
+
if (code.querySelector('.line-numbers-rows')) {
|
76683
|
+
return;
|
76684
|
+
}
|
75426
76685
|
|
75427
|
-
|
76686
|
+
// only add line numbers if <code> or one of its ancestors has the `line-numbers` class
|
76687
|
+
if (!Prism.util.isActive(code, PLUGIN_NAME)) {
|
76688
|
+
return;
|
76689
|
+
}
|
75428
76690
|
|
75429
|
-
|
75430
|
-
|
75431
|
-
|
75432
|
-
|
75433
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
76691
|
+
// Remove the class 'line-numbers' from the <code>
|
76692
|
+
code.classList.remove(PLUGIN_NAME);
|
76693
|
+
// Add the class 'line-numbers' to the <pre>
|
76694
|
+
pre.classList.add(PLUGIN_NAME);
|
75434
76695
|
|
75435
|
-
|
75436
|
-
|
75437
|
-
|
75438
|
-
/* harmony export */ Panel: () => (/* reexport safe */ _Dialog_Content_Panel__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
75439
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
75440
|
-
/* harmony export */ });
|
75441
|
-
/* harmony import */ var _DialogWrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DialogWrap */ "./node_modules/rc-dialog/es/DialogWrap.js");
|
75442
|
-
/* harmony import */ var _Dialog_Content_Panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dialog/Content/Panel */ "./node_modules/rc-dialog/es/Dialog/Content/Panel.js");
|
76696
|
+
var match = env.code.match(NEW_LINE_EXP);
|
76697
|
+
var linesNum = match ? match.length + 1 : 1;
|
76698
|
+
var lineNumbersWrapper;
|
75443
76699
|
|
76700
|
+
var lines = new Array(linesNum + 1).join('<span></span>');
|
75444
76701
|
|
76702
|
+
lineNumbersWrapper = document.createElement('span');
|
76703
|
+
lineNumbersWrapper.setAttribute('aria-hidden', 'true');
|
76704
|
+
lineNumbersWrapper.className = 'line-numbers-rows';
|
76705
|
+
lineNumbersWrapper.innerHTML = lines;
|
75445
76706
|
|
75446
|
-
|
76707
|
+
if (pre.hasAttribute('data-start')) {
|
76708
|
+
pre.style.counterReset = 'linenumber ' + (parseInt(pre.getAttribute('data-start'), 10) - 1);
|
76709
|
+
}
|
75447
76710
|
|
75448
|
-
|
76711
|
+
env.element.appendChild(lineNumbersWrapper);
|
75449
76712
|
|
75450
|
-
|
75451
|
-
/*!*******************************************!*\
|
75452
|
-
!*** ./node_modules/rc-dialog/es/util.js ***!
|
75453
|
-
\*******************************************/
|
75454
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
76713
|
+
resizeElements([pre]);
|
75455
76714
|
|
75456
|
-
|
75457
|
-
|
75458
|
-
|
75459
|
-
|
75460
|
-
|
75461
|
-
|
75462
|
-
|
75463
|
-
|
75464
|
-
|
75465
|
-
if (!motionName && animationName) {
|
75466
|
-
motionName = "".concat(prefixCls, "-").concat(animationName);
|
75467
|
-
}
|
75468
|
-
return motionName;
|
75469
|
-
}
|
76715
|
+
Prism.hooks.run('line-numbers', env);
|
76716
|
+
});
|
76717
|
+
|
76718
|
+
Prism.hooks.add('line-numbers', function (env) {
|
76719
|
+
env.plugins = env.plugins || {};
|
76720
|
+
env.plugins.lineNumbers = true;
|
76721
|
+
});
|
76722
|
+
|
76723
|
+
}());
|
75470
76724
|
|
75471
|
-
// =============================== Offset ===============================
|
75472
|
-
function getScroll(w, top) {
|
75473
|
-
var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
|
75474
|
-
var method = "scroll".concat(top ? 'Top' : 'Left');
|
75475
|
-
if (typeof ret !== 'number') {
|
75476
|
-
var d = w.document;
|
75477
|
-
ret = d.documentElement[method];
|
75478
|
-
if (typeof ret !== 'number') {
|
75479
|
-
ret = d.body[method];
|
75480
|
-
}
|
75481
|
-
}
|
75482
|
-
return ret;
|
75483
|
-
}
|
75484
|
-
function offset(el) {
|
75485
|
-
var rect = el.getBoundingClientRect();
|
75486
|
-
var pos = {
|
75487
|
-
left: rect.left,
|
75488
|
-
top: rect.top
|
75489
|
-
};
|
75490
|
-
var doc = el.ownerDocument;
|
75491
|
-
var w = doc.defaultView || doc.parentWindow;
|
75492
|
-
pos.left += getScroll(w);
|
75493
|
-
pos.top += getScroll(w, true);
|
75494
|
-
return pos;
|
75495
|
-
}
|
75496
76725
|
|
75497
76726
|
/***/ }),
|
75498
76727
|
|
@@ -75682,7 +76911,7 @@ var DrawerPanel = function DrawerPanel(props) {
|
|
75682
76911
|
// =============================== Render ===============================
|
75683
76912
|
|
75684
76913
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
75685
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(prefixCls, "-
|
76914
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(prefixCls, "-section"), className),
|
75686
76915
|
role: "dialog",
|
75687
76916
|
ref: mergedRef
|
75688
76917
|
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(props, {
|
@@ -75946,8 +77175,8 @@ function DrawerPopup(props, ref) {
|
|
75946
77175
|
id: id,
|
75947
77176
|
containerRef: motionRef,
|
75948
77177
|
prefixCls: prefixCls,
|
75949
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.
|
75950
|
-
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), styles === null || styles === void 0 ? void 0 : styles.
|
77178
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.section),
|
77179
|
+
style: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), styles === null || styles === void 0 ? void 0 : styles.section)
|
75951
77180
|
}, (0,rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_7__["default"])(props, {
|
75952
77181
|
aria: true
|
75953
77182
|
}), eventHandlers), children);
|