@para-ui/core 3.0.108-rc → 3.0.109-rc.1
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/AutoBox/index.js +5 -5
- package/AutoTips/index.js +5 -5
- package/Breadcrumbs/index.js +7 -7
- package/Button/index.js +8 -8
- package/ButtonGroup/index.js +8 -8
- package/Carousel/index.js +4 -4
- package/Cascader/index.js +7 -7
- package/Checkbox/index.js +4 -4
- package/CheckboxGroup/index.js +4 -4
- package/Collapse/index.js +1 -1
- package/CollapseBox/index.js +4 -4
- package/CollapseLayout/index.js +6 -6
- package/ComboSelect/index.js +14 -14
- package/Container/index.js +1 -1
- package/DatePicker/index.js +10 -10
- package/Desktop/index.js +10 -10
- package/DragVerify/index.js +6 -6
- package/Drawer/index.js +8 -8
- package/Dropdown/index.js +3 -3
- package/DynamicMultiBox/index.js +15 -15
- package/Empty/index.js +3 -3
- package/Form/index.js +15 -15
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +14 -14
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +4 -4
- package/HelperText/index.js +1 -1
- package/InputLang/index.js +11 -11
- package/InputNumber/index.js +4 -4
- package/Label/index.js +4 -4
- package/Loading/index.js +1 -1
- package/Menu/index.js +5 -5
- package/Message/index.js +4 -4
- package/Modal/index.js +10 -10
- package/MultiBox/index.js +10 -10
- package/Notification/index.js +3 -3
- package/OperateBtn/index.js +9 -9
- package/PageHeader/index.js +9 -9
- package/Pagination/index.js +11 -11
- package/ParauiProvider/index.js +3 -3
- package/PasswordRules/index.js +3 -3
- package/PopConfirm/index.js +8 -8
- package/Popover/index.js +5 -5
- package/Progress/index.js +2 -2
- package/Querying/index.js +3 -3
- package/README.md +5 -0
- package/Radio/index.js +4 -4
- package/RadioGroup/index.js +4 -4
- package/Search/index.js +9 -9
- package/Select/index.js +11 -11
- package/SelectInput/index.js +11 -11
- package/Selector/index.js +11 -11
- package/SelectorPicker/index.js +12 -12
- package/SingleBox/index.js +10 -10
- package/Slider/index.js +6 -6
- package/Split/index.js +4 -4
- package/Status/index.js +1 -1
- package/Stepper/index.js +3 -3
- package/Switch/index.js +6 -6
- package/Table/index.js +12 -12
- package/Tabs/index.js +9 -9
- package/Tag/index.js +7 -7
- package/TextEditor/index.js +5 -5
- package/TextField/index.js +8 -8
- package/TimePicker/index.js +10 -10
- package/Timeline/index.js +4 -4
- package/Title/index.js +1 -1
- package/ToggleButton/index.js +9 -9
- package/Tooltip/index.js +4 -4
- package/Transfer/index.js +13 -13
- package/Tree/index.js +12 -12
- package/Upload/index.js +12 -12
- package/_verture/{closestPolyfill-49e97b3d.js → closestPolyfill-af1e3129.js} +8 -8
- package/_verture/{closestPolyfill-90a19df1.js → closestPolyfill-c45cda78.js} +8 -8
- package/_verture/{defineProperty-be679077.js → defineProperty-7aa4e7b0.js} +1 -1
- package/_verture/{defineProperty-f7cb281d.js → defineProperty-e2de1981.js} +1 -1
- package/_verture/{index-e0c15d9f.js → index-0b16a77e.js} +2 -2
- package/_verture/{index-127e0720.js → index-76c48610.js} +4 -4
- package/_verture/{index-6b5f88ed.js → index-7cb40909.js} +4 -4
- package/_verture/{index-da038dc9.js → index-a63894d0.js} +2 -2
- package/_verture/{intl-96a3c25d.js → intl-4ad778ba.js} +1 -1
- package/_verture/{intl-a5344504.js → intl-519338cb.js} +1 -1
- package/_verture/{modalContext-25bdd4b7.js → modalContext-2256753f.js} +4 -4
- package/_verture/{modalContext-d40303c2.js → modalContext-fc6309c5.js} +4 -4
- package/_verture/{slicedToArray-05da7080.js → slicedToArray-545d9fcd.js} +1 -1
- package/_verture/{slicedToArray-fea2a1a7.js → slicedToArray-94962ec5.js} +1 -1
- package/_verture/{toConsumableArray-4a603738.js → toConsumableArray-295100d6.js} +1 -1
- package/_verture/{toConsumableArray-b8e4f7d0.js → toConsumableArray-a444c3ba.js} +1 -1
- package/_verture/{utils-2b30b1cc.js → utils-2e9c05bc.js} +1 -1
- package/_verture/{utils-60cb0e7a.js → utils-5e4b0846.js} +1 -1
- package/index.d.ts +0 -2
- package/index.js +20 -21
- package/package.json +1 -1
- package/umd/AutoTips.js +1 -1
- package/locale/en-US.d.ts +0 -165
- package/locale/index.d.ts +0 -331
- package/locale/index.js +0 -336
- package/locale/zh-CN.d.ts +0 -165
- package/umd/locale.js +0 -1
- /package/_verture/{constant-639effd0.js → constant-4091d66f.js} +0 -0
- /package/_verture/{constant-9dc123b1.js → constant-60484ff1.js} +0 -0
- /package/_verture/{index-05f00099.js → index-1fdf8def.js} +0 -0
- /package/_verture/{index-5bf1b9b3.js → index-6faec6b4.js} +0 -0
- /package/_verture/{index-e3bf331f.js → index-c8575171.js} +0 -0
- /package/_verture/{index-20dc0398.js → index-ef1e15e8.js} +0 -0
- /package/_verture/{sortable.esm-09c4e773.js → sortable.esm-2593ef9b.js} +0 -0
- /package/_verture/{sortable.esm-4ed6ef0e.js → sortable.esm-c0270144.js} +0 -0
- /package/_verture/{tslib.es6-1e7524ac.js → tslib.es6-24e733a1.js} +0 -0
- /package/_verture/{tslib.es6-e31e0057.js → tslib.es6-b07fd47a.js} +0 -0
- /package/_verture/{typeof-5af3ec60.js → typeof-3d6c2390.js} +0 -0
- /package/_verture/{typeof-c7bb0a4e.js → typeof-99c4c2af.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-12e75c02.js → unsupportedIterableToArray-2fb1516b.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-1978a63d.js → unsupportedIterableToArray-e9a428c9.js} +0 -0
- /package/_verture/{useFormatMessage-5c658276.js → useFormatMessage-45bb2ce2.js} +0 -0
- /package/_verture/{useFormatMessage-9128f6d4.js → useFormatMessage-5777ad0a.js} +0 -0
- /package/_verture/{useGlobalProps-478a4b64.js → useGlobalProps-be263385.js} +0 -0
- /package/_verture/{useGlobalProps-651d4933.js → useGlobalProps-fbb58670.js} +0 -0
- /package/_verture/{usePopupContainer-074e0a5e.js → usePopupContainer-09af2ab3.js} +0 -0
- /package/_verture/{usePopupContainer-1308836f.js → usePopupContainer-b086ca46.js} +0 -0
- /package/_verture/{util-07f96303.js → util-2a5a3b41.js} +0 -0
- /package/_verture/{util-290a4155.js → util-d56ad080.js} +0 -0
package/index.js
CHANGED
|
@@ -17,12 +17,12 @@ export { default as DatePicker } from './DatePicker/index.js';
|
|
|
17
17
|
export { Desktop } from './Desktop/index.js';
|
|
18
18
|
export { DragVerify } from './DragVerify/index.js';
|
|
19
19
|
export { Drawer } from './Drawer/index.js';
|
|
20
|
-
export { D as Dropdown } from './_verture/index-
|
|
20
|
+
export { D as Dropdown } from './_verture/index-0b16a77e.js';
|
|
21
21
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
22
22
|
export { default as Empty } from './Empty/index.js';
|
|
23
23
|
export { default as Form } from './Form/index.js';
|
|
24
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
24
|
+
export { F as FormItem } from './_verture/index-7cb40909.js';
|
|
25
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-fc6309c5.js';
|
|
26
26
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
27
27
|
export { default as Help } from './Help/index.js';
|
|
28
28
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -68,43 +68,42 @@ export { Title } from './Title/index.js';
|
|
|
68
68
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
69
69
|
export { Tooltip } from './Tooltip/index.js';
|
|
70
70
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
71
|
-
export { T as Tree } from './_verture/closestPolyfill-
|
|
71
|
+
export { T as Tree } from './_verture/closestPolyfill-af1e3129.js';
|
|
72
72
|
export { default as Upload } from './Upload/index.js';
|
|
73
|
-
|
|
74
|
-
import './_verture/
|
|
75
|
-
import './_verture/unsupportedIterableToArray-12e75c02.js';
|
|
73
|
+
import './_verture/slicedToArray-545d9fcd.js';
|
|
74
|
+
import './_verture/unsupportedIterableToArray-e9a428c9.js';
|
|
76
75
|
import 'react/jsx-runtime';
|
|
77
76
|
import 'react';
|
|
78
77
|
import 'react-dom';
|
|
79
78
|
import '@paraview/lib';
|
|
80
|
-
import './_verture/constant-
|
|
79
|
+
import './_verture/constant-60484ff1.js';
|
|
81
80
|
import '@para-ui/icons/More';
|
|
82
|
-
import './_verture/toConsumableArray-
|
|
81
|
+
import './_verture/toConsumableArray-295100d6.js';
|
|
83
82
|
import '@para-ui/icons/Return';
|
|
84
|
-
import './_verture/useFormatMessage-
|
|
83
|
+
import './_verture/useFormatMessage-45bb2ce2.js';
|
|
85
84
|
import '@para-ui/core/GlobalContext';
|
|
86
|
-
import './_verture/typeof-
|
|
87
|
-
import './_verture/tslib.es6-
|
|
85
|
+
import './_verture/typeof-99c4c2af.js';
|
|
86
|
+
import './_verture/tslib.es6-b07fd47a.js';
|
|
88
87
|
import 'clsx';
|
|
89
88
|
import '@para-ui/icons/LoadingF';
|
|
90
89
|
import '@para-ui/icons/Forbid';
|
|
91
90
|
import '@para-ui/icons/Down';
|
|
92
|
-
import './_verture/defineProperty-
|
|
91
|
+
import './_verture/defineProperty-7aa4e7b0.js';
|
|
93
92
|
import 'react-slick';
|
|
94
|
-
import './_verture/index-
|
|
93
|
+
import './_verture/index-6faec6b4.js';
|
|
95
94
|
import 'rc-cascader';
|
|
96
95
|
import '@para-ui/icons/Right';
|
|
97
96
|
import '@para-ui/icons/Loading';
|
|
98
97
|
import 'rc-collapse';
|
|
99
98
|
import 'react-transition-group';
|
|
100
|
-
import './_verture/util-
|
|
99
|
+
import './_verture/util-2a5a3b41.js';
|
|
101
100
|
import '@para-ui/icons/DoubleLeft';
|
|
102
101
|
import '@para-ui/icons/DoubleRight';
|
|
103
102
|
import '@para-ui/icons/Search';
|
|
104
103
|
import '@para-ui/icons/Close';
|
|
105
104
|
import '@para-ui/icons/CloseCircle';
|
|
106
|
-
import './_verture/utils-
|
|
107
|
-
import './_verture/useGlobalProps-
|
|
105
|
+
import './_verture/utils-2e9c05bc.js';
|
|
106
|
+
import './_verture/useGlobalProps-be263385.js';
|
|
108
107
|
import 'rc-picker/es/generate/dayjs';
|
|
109
108
|
import 'rc-picker';
|
|
110
109
|
import '@para-ui/icons/Calendar';
|
|
@@ -115,16 +114,16 @@ import '@para-ui/icons/SortRight';
|
|
|
115
114
|
import '@para-ui/icons/Check';
|
|
116
115
|
import 'rc-drawer';
|
|
117
116
|
import 'rc-dropdown';
|
|
118
|
-
import './_verture/usePopupContainer-
|
|
117
|
+
import './_verture/usePopupContainer-b086ca46.js';
|
|
119
118
|
import 'dayjs';
|
|
120
119
|
import '@para-ui/icons/Panel';
|
|
121
120
|
import '@para-ui/icons/PlusCircleF';
|
|
122
121
|
import '@para-ui/icons/Delete';
|
|
123
122
|
import '@para-ui/icons/Drag';
|
|
124
|
-
import './_verture/sortable.esm-
|
|
123
|
+
import './_verture/sortable.esm-c0270144.js';
|
|
125
124
|
import '@para-ui/icons/LinkGroup';
|
|
126
|
-
import './_verture/intl-
|
|
127
|
-
import './_verture/index-
|
|
125
|
+
import './_verture/intl-519338cb.js';
|
|
126
|
+
import './_verture/index-ef1e15e8.js';
|
|
128
127
|
import '@para-ui/icons/Help';
|
|
129
128
|
import '@para-ui/icons/Application';
|
|
130
129
|
import 'rc-input-number';
|
package/package.json
CHANGED
package/umd/AutoTips.js
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/function Z(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case l:case f:case i:case u:case a:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case h:case m:case c:return t;default:return e}}case r:return e}}}function x(t){return Z(t)===f}e.isMemo=function(t){return Z(t)===m}},59864:function(t,e,n){"use strict";t.exports=n(69921)},91033:function(t,e,n){"use strict";var o=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,o){return t[0]===e&&(n=o,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),o=this.__entries__[n];return o&&o[1]},e.prototype.set=function(e,n){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,o=t(n,e);~o&&n.splice(o,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];t.call(e,r[1],r[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},u=2;var c=20,s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,f=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,o=!1,r=0;function i(){n&&(n=!1,t()),o&&s()}function c(){a(i)}function s(){var t=Date.now();if(n){if(t-r<u)return;o=!0}else n=!0,o=!1,setTimeout(c,e);r=t}return s}(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),p=function(t,e){for(var n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},v=w(0,0,0,0);function m(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+m(t["border-"+n+"-width"])}),0)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return v;var o=d(t).getComputedStyle(t),r=function(t){for(var e={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=t["padding-"+r];e[r]=m(i)}return e}(o),i=r.left+r.right,a=r.top+r.bottom,u=m(o.width),c=m(o.height);if("border-box"===o.boxSizing&&(Math.round(u+i)!==e&&(u-=h(o,"left","right")+i),Math.round(c+a)!==n&&(c-=h(o,"top","bottom")+a)),!function(t){return t===d(t).document.documentElement}(t)){var s=Math.round(u+i)-e,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return w(r.left,r.top,u,c)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return r?g(t)?function(t){var e=t.getBBox();return w(0,0,e.width,e.height)}(t):y(t):v}function w(t,e,n,o){return{x:t,y:e,width:n,height:o}}var Z=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=b(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),x=function(t,e){var n,o,r,i,a,u,c,s=(o=(n=e).x,r=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(u.prototype),p(c,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),c);p(this,{target:t,contentRect:s})},O=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Z(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new x(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new o,C=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),o=new O(e,n,this);E.set(this,o)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var T=void 0!==i.ResizeObserver?i.ResizeObserver:C;e.default=T},29697:function(t,e,n){var o=n(93379),r=n(67921);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},89034:function(t,e,n){var o=n(93379),r=n(2565);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},42560:function(t,e,n){var o=n(93379),r=n(9929);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);t.exports=r.locals||{}},93379:function(t,e,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],c=e.base?i[0]+e.base:i[0],s=n[c]||0,l="".concat(c," ").concat(s);n[c]=s+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:h(p,e),references:1}),o.push(l)}return o}function s(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=f(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var v=null,m=0;function h(t,e){var n,o,r;if(e.singleton){var i=m++;n=v||(v=s(e)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=s(e),o=d.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var r=u(n[o]);a[r].references--}for(var i=c(t,e),s=0;s<n.length;s++){var l=u(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},37464:function(t,e,n){"use strict";n.d(e,{W:function(){return o},Z:function(){return r}});var o="paraui-v3",r="component"},77918:function(t,e,n){"use strict";n.d(e,{default:function(){return T}});var o=n(8156),r=n.n(o),i=n(79483),a=n(24375),u=n(86010),c=n(37464);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){s(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0},v=[0,0];function m(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function h(t){var e=t.arrowWidth,n=void 0===e?4:e,o=t.horizontalArrowShift,r=void 0===o?16:o,i=t.verticalArrowShift,u=void 0===i?8:i,c=t.autoAdjustOverflow,s=t.arrowPointAtCenter,p={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(r+n),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(u+n)]},topRight:{points:["br","tc"],offset:[r+n,-8]},rightTop:{points:["tl","cr"],offset:[8,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[r+n,8]},rightBottom:{points:["bl","cr"],offset:[8,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(r+n),8]},leftBottom:{points:["br","cl"],offset:[-8,u+n]}};return Object.keys(p).forEach((function(t){var e,n;p[t]=s?f(l({},p[t]),{overflow:m(c),targetOffset:v}):f(l({},a.Ct[t]),{offset:(e=t,n=b(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}},{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:m(c)}),p[t].ignoreShake=!0})),p}var y=function(t,e){var n={},o=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete o[e])})),{picked:n,omitted:o}};function g(t){var e=r().isValidElement(t)?t:r().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=y(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=n.picked,i=n.omitted,a=f(l({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=f(l({},i),{pointerEvents:"none"}),p=r().cloneElement(e,{style:s,className:null});return r().createElement("span",{style:a,className:(0,u.Z)(e.props.className,"".concat(c.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function b(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}n(42560);function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},x.apply(this,arguments)}function O(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){u=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=r().forwardRef((function(t,e){var n,o=E(r().useState(t.defaultVisible),2),a=o[0],s=o[1],l=r().useRef(),f=r().useRef(),p=E(r().useState([0,0]),2),d=p[0],v=p[1];r().useEffect((function(){var e;("visible"in t||"open"in t)&&s(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var m=function(){var e=t.title;return!e&&0!==e},y=function(){var e=t.builtinPlacements,n=t.arrowPointAtCenter,o=t.autoAdjustOverflow;return e||h({arrowPointAtCenter:n,autoAdjustOverflow:o})},w=t.prefixCls,C=void 0===w?"".concat(c.Z,"-tooltip"):w,T=t.getPopupContainer,k=t.overlayClassName,S=t.overlayInnerStyle,P=t.overlayStyle,M=t.children,j=t.title,_=t.placement,A=t.isPopover,D=t.followCursor,L=t.maxWidth,R=O(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth"]),N=a;"visible"in t||"open"in t||!m()||(N=!1);var H=(0,u.Z)(!A&&"".concat(c.W,"-tooltip"),k,!t.arrow&&"".concat(c.W,"-tooltip-hide-arrow")),V=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Z(t,e,n[e])}))}return t}({},P);return L&&(V.maxWidth=L),r().createElement(i.Z,x({},R,{prefixCls:C,placement:D?"top":b(_),overlayClassName:H,getTooltipContainer:T,ref:e||f,builtinPlacements:y(),overlay:j,visible:N,align:{targetOffset:d},onVisibleChange:function(e){var n;("visible"in t||"open"in t||s(!m()&&e),m())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=y(),o=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(o){var r=t.getBoundingClientRect(),i={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?i.top="".concat(r.height-e.offset[1],"px"):(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),o.indexOf("left")>=0||o.indexOf("Right")>=0?i.left="".concat(r.width-e.offset[0],"px"):(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:V,overlayInnerStyle:S,arrowContent:t.arrow?r().createElement("span",{className:"".concat(c.Z,"-tooltip-arrow-content")}):null,motion:{motionName:"".concat(c.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),D?r().createElement("div",{style:{display:"inline-block"},ref:l,onMouseMove:function(t){if(l.current){var e,n,o,r,i=(null===(e=null===(n=f.current)||void 0===n||null===(o=n.popupRef)||void 0===o||null===(r=o.current)||void 0===r?void 0:r.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,u=l.current.getBoundingClientRect(),c=u.x,s=u.y,p=u.width,d=t.clientX-(c+p/2),m=t.clientY-s+i+a;setTimeout((function(){v([-d,-m])}))}}},g(M)):g(M))}));C.displayName="Tooltip",C.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!1,defaultVisible:!1,followCursor:!1};var T=C},58543:function(t){"use strict";t.exports=n},8156:function(e){"use strict";e.exports=t},47111:function(t){"use strict";t.exports=e},30907:function(t,e,n){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}n.d(e,{Z:function(){return o}})},83878:function(t,e,n){"use strict";function o(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return o}})},97326:function(t,e,n){"use strict";function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return o}})},15861:function(t,e,n){"use strict";function o(t,e,n,o,r,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(o,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function u(t){o(a,r,i,u,c,"next",t)}function c(t){o(a,r,i,u,c,"throw",t)}u(void 0)}))}}n.d(e,{Z:function(){return r}})},15671:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return o}})},43144:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(67343);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(0,o.Z)(r.key),r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29388:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var o=n(61120),r=n(78814),i=n(82963);function a(t){var e=(0,r.Z)();return function(){var n,r=(0,o.Z)(t);if(e){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(67343);function r(t,e,n){return(e=(0,o.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},87462:function(t,e,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o.apply(this,arguments)}n.d(e,{Z:function(){return o}})},61120:function(t,e,n){"use strict";function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}n.d(e,{Z:function(){return o}})},60136:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(89611);function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,o.Z)(t,e)}},78814:function(t,e,n){"use strict";function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:function(){return o}})},31902:function(t,e,n){"use strict";function o(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(u.push(o.value),u.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return u}}n.d(e,{Z:function(){return o}})},25267:function(t,e,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return o}})},1413:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(4942);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},45987:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(63366);function r(t,e){if(null==t)return{};var n,r,i=(0,o.Z)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},63366:function(t,e,n){"use strict";function o(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}n.d(e,{Z:function(){return o}})},82963:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(71002),r=n(97326);function i(t,e){if(e&&("object"===(0,o.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}},74165:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(71002);function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15
|
-
r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var r=e&&e.prototype instanceof v?e:v,a=Object.create(r.prototype),u=new k(o||[]);return i(a,"_invoke",{value:O(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function m(){}function h(){}var y={};l(y,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,u)&&(y=b);var w=h.prototype=v.prototype=Object.create(y);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,a,u,c){var s=p(t[i],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,o.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return P()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var c=p(t,e,n);if("normal"===c.type){if(o=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=p(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function S(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=h,i(w,"constructor",{value:h,configurable:!0}),i(h,"constructor",{value:m,configurable:!0}),m.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},Z(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new x(f(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},Z(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return a.type="throw",a.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,d):this.complete(a)},complete:function(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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}},89611:function(t,e,n){"use strict";function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}n.d(e,{Z:function(){return o}})},93324:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var o=n(83878),r=n(31902),i=n(40181),a=n(25267);function u(t,e){return(0,o.Z)(t)||(0,r.Z)(t,e)||(0,i.Z)(t,e)||(0,a.Z)()}},35512:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(71002);function r(t,e){if("object"!==(0,o.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==(0,o.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(71002),r=n(35512);function i(t){var e=(0,r.Z)(t,"string");return"symbol"===(0,o.Z)(e)?e:String(e)}},71002:function(t,e,n){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n.d(e,{Z:function(){return o}})},40181:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(30907);function r(t,e){if(t){if("string"==typeof t)return(0,o.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(t,e):void 0}}}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return o[t](n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{AutoTipsMultiline:function(){return s},default:function(){return p}});var t=i(8156),e=i.n(t),n=i(77918),o=i(37464),r=i(58543);i(29697);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){u=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=function(r){var i=r.children,a=r.arrow,u=void 0!==a&&a,s=r.placement,l=void 0===s?"bottom-start":s,f=r.tips,p=void 0===f?"":f,d=r.className,v=void 0===d?"":d,m=r.interactive,h=void 0===m||m,y=r.tipMaxWidth,g=r.line,b=void 0===g?2:g,w=r.refresh,Z=r.style,x=(0,t.useRef)(null),O=(0,t.useRef)([]),E=c((0,t.useState)(),2),C=E[0],T=E[1],k=(0,t.useRef)({line:b,tips:p});k.current.line=b,k.current.tips=p;var S=c((0,t.useState)(""),2),P=S[0],M=S[1];(0,t.useEffect)((function(){return window.addEventListener("resize",_),function(){window.removeEventListener("resize",_)}}),[]),(0,t.useEffect)((function(){_()}),[i,w]);var j,_=function(){var t;if(i){for(var e=[],n=!1,o=(null==x||null===(t=x.current)||void 0===t?void 0:t.clientWidth)||0,r=0,a=0,u=0;u<O.current.length;u++){var c=O.current[u].offsetWidth;if((r+=c)>o){if(!(e.length<k.current.line-1)){n=!0,M(k.current.tips||i),e.push(i.slice(a,i.length));break}e.push(i.slice(a,u)),a=u,r=c,u===O.current.length-1&&(e.length<k.current.line-1||(n=!0,M(k.current.tips||i)),e.push(i.slice(a,i.length)))}else u===O.current.length-1&&e.push(i.slice(a,i.length))}T({lineArr:e,showTooltip:n})}},A=(0,t.useMemo)((function(){return O.current=[],e().createElement("div",{className:"hidden"},null==i?void 0:i.split("").map((function(t,n){return e().createElement("span",{ref:function(t){return t&&O.current.push(t)},key:n},t)})))}),[i]);return e().createElement("div",{ref:x,className:(j=o.W+"-auto-tips-multiline",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(j+=" "+o.W+"-auto-tips-multiline-safari"),v&&(j+=" "+v),j),style:Z},e().createElement(n.default,{arrow:u,title:P,placement:l,interactive:h,boundariesElement:"viewport",overlayClassName:o.W+"-auto-tips-multiline-tooltip",maxWidth:y||(x&&x.current?x.current.offsetWidth:0)},e().createElement("div",{className:"auto-tips-multiline-content-box"},e().createElement("div",{className:"auto-tips-multiline-content"},null==C?void 0:C.lineArr.map((function(t,n){var o="line-text";return n===C.lineArr.length-1&&(o+=" last-line"),e().createElement("div",{className:o,key:n},t)}))),A)))};i(89034);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){u=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=function(i){var a=i.children,u=i.arrow,c=void 0!==u&&u,s=i.placement,l=void 0===s?"bottom-start":s,p=i.tips,d=void 0===p?"":p,v=i.className,m=void 0===v?"":v,h=i.beyondText,y=void 0===h||h,g=i.interactive,b=void 0===g||g,w=i.tipMaxWidth,Z=i.style,x=(0,t.useRef)(),O=(0,t.useRef)(),E=f((0,t.useState)(""),2),C=E[0],T=E[1];(0,t.useEffect)((function(){T(d)}),[d]);var k;return e().createElement("div",{ref:x,className:(k=o.W+"-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(k+=" "+o.W+"-auto-tips-safari"),m&&(k+=" "+m),k),onMouseOver:function(){var t="",e=x.current,n=e.getBoundingClientRect(),o=O.current.getBoundingClientRect();x.current&&((0,r.isIE)()?n.width>o.width&&(t=d||(y?e.innerText:a)):o.width>n.width&&(t=d||(y?e.innerText:a))),T(t)},style:Z},e().createElement(n.default,{arrow:c,title:C,placement:l,interactive:b,boundariesElement:"viewport",overlayClassName:o.W+"-auto-tips-tooltip",maxWidth:w||500},e().createElement("div",{className:"auto-tips-content",ref:O},a)))}}(),a}()}));
|
|
15
|
+
r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var r=e&&e.prototype instanceof v?e:v,a=Object.create(r.prototype),u=new k(o||[]);return i(a,"_invoke",{value:O(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function m(){}function h(){}var y={};l(y,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,u)&&(y=b);var w=h.prototype=v.prototype=Object.create(y);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,a,u,c){var s=p(t[i],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,o.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return P()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var c=p(t,e,n);if("normal"===c.type){if(o=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=p(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function S(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=h,i(w,"constructor",{value:h,configurable:!0}),i(h,"constructor",{value:m,configurable:!0}),m.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},Z(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new x(f(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},Z(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return a.type="throw",a.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,d):this.complete(a)},complete:function(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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}},89611:function(t,e,n){"use strict";function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}n.d(e,{Z:function(){return o}})},93324:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var o=n(83878),r=n(31902),i=n(40181),a=n(25267);function u(t,e){return(0,o.Z)(t)||(0,r.Z)(t,e)||(0,i.Z)(t,e)||(0,a.Z)()}},35512:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(71002);function r(t,e){if("object"!==(0,o.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==(0,o.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var o=n(71002),r=n(35512);function i(t){var e=(0,r.Z)(t,"string");return"symbol"===(0,o.Z)(e)?e:String(e)}},71002:function(t,e,n){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n.d(e,{Z:function(){return o}})},40181:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var o=n(30907);function r(t,e){if(t){if("string"==typeof t)return(0,o.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(t,e):void 0}}}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return o[t](n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{AutoTipsMultiline:function(){return s},default:function(){return p}});var t=i(8156),e=i.n(t),n=i(77918),o=i(37464),r=i(58543);i(29697);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){u=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=function(r){var i=r.children,a=r.arrow,u=void 0!==a&&a,s=r.placement,l=void 0===s?"bottom-start":s,f=r.tips,p=void 0===f?"":f,d=r.className,v=void 0===d?"":d,m=r.interactive,h=void 0===m||m,y=r.tipMaxWidth,g=r.line,b=void 0===g?2:g,w=r.refresh,Z=r.style,x=(0,t.useRef)(null),O=(0,t.useRef)([]),E=c((0,t.useState)(),2),C=E[0],T=E[1],k=(0,t.useRef)({line:b,tips:p});k.current.line=b,k.current.tips=p;var S=c((0,t.useState)(""),2),P=S[0],M=S[1];(0,t.useEffect)((function(){return window.addEventListener("resize",_),function(){window.removeEventListener("resize",_)}}),[]),(0,t.useEffect)((function(){_()}),[i,w]);var j,_=function(){var t;if(i){for(var e=[],n=!1,o=(null==x||null===(t=x.current)||void 0===t?void 0:t.clientWidth)||0,r=0,a=0,u=0;u<O.current.length;u++){var c=O.current[u].offsetWidth;if((r+=c)>o){if(!(e.length<k.current.line-1)){n=!0,M(k.current.tips||i),e.push(i.slice(a,i.length));break}e.push(i.slice(a,u)),a=u,r=c,u===O.current.length-1&&(e.length<k.current.line||(n=!0,M(k.current.tips||i)),e.push(i.slice(a,i.length)))}else u===O.current.length-1&&e.push(i.slice(a,i.length))}T({lineArr:e,showTooltip:n})}},A=(0,t.useMemo)((function(){return O.current=[],e().createElement("div",{className:"hidden"},null==i?void 0:i.split("").map((function(t,n){return e().createElement("span",{ref:function(t){return t&&O.current.push(t)},key:n},t)})))}),[i]);return e().createElement("div",{ref:x,className:(j=o.W+"-auto-tips-multiline",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(j+=" "+o.W+"-auto-tips-multiline-safari"),v&&(j+=" "+v),j),style:Z},e().createElement(n.default,{arrow:u,title:P,placement:l,interactive:h,boundariesElement:"viewport",overlayClassName:o.W+"-auto-tips-multiline-tooltip",maxWidth:y||(x&&x.current?x.current.offsetWidth:0)},e().createElement("div",{className:"auto-tips-multiline-content-box"},e().createElement("div",{className:"auto-tips-multiline-content"},null==C?void 0:C.lineArr.map((function(t,n){var o="line-text";return n===C.lineArr.length-1&&(o+=" last-line"),e().createElement("div",{className:o,key:n},t)}))),A)))};i(89034);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){u=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=function(i){var a=i.children,u=i.arrow,c=void 0!==u&&u,s=i.placement,l=void 0===s?"bottom-start":s,p=i.tips,d=void 0===p?"":p,v=i.className,m=void 0===v?"":v,h=i.beyondText,y=void 0===h||h,g=i.interactive,b=void 0===g||g,w=i.tipMaxWidth,Z=i.style,x=(0,t.useRef)(),O=(0,t.useRef)(),E=f((0,t.useState)(""),2),C=E[0],T=E[1];(0,t.useEffect)((function(){T(d)}),[d]);var k;return e().createElement("div",{ref:x,className:(k=o.W+"-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(k+=" "+o.W+"-auto-tips-safari"),m&&(k+=" "+m),k),onMouseOver:function(){var t="",e=x.current,n=e.getBoundingClientRect(),o=O.current.getBoundingClientRect();x.current&&((0,r.isIE)()?n.width>o.width&&(t=d||(y?e.innerText:a)):o.width>n.width&&(t=d||(y?e.innerText:a))),T(t)},style:Z},e().createElement(n.default,{arrow:c,title:C,placement:l,interactive:b,boundariesElement:"viewport",overlayClassName:o.W+"-auto-tips-tooltip",maxWidth:w||500},e().createElement("div",{className:"auto-tips-content",ref:O},a)))}}(),a}()}));
|
package/locale/en-US.d.ts
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
Breadcrumbs: {
|
|
3
|
-
back: string;
|
|
4
|
-
};
|
|
5
|
-
Button: {
|
|
6
|
-
moreActions: string;
|
|
7
|
-
};
|
|
8
|
-
Cascader: {
|
|
9
|
-
placeholder: string;
|
|
10
|
-
};
|
|
11
|
-
ComboSelect: {
|
|
12
|
-
searchPlaceholder: string;
|
|
13
|
-
cancel: string;
|
|
14
|
-
ok: string;
|
|
15
|
-
fullPath: string;
|
|
16
|
-
pleaseSelect: string;
|
|
17
|
-
selected: string;
|
|
18
|
-
};
|
|
19
|
-
DatePicker: {
|
|
20
|
-
lang: {
|
|
21
|
-
placeholder: string;
|
|
22
|
-
yearPlaceholder: string;
|
|
23
|
-
quarterPlaceholder: string;
|
|
24
|
-
monthPlaceholder: string;
|
|
25
|
-
weekPlaceholder: string;
|
|
26
|
-
rangePlaceholder: string;
|
|
27
|
-
rangeYearPlaceholder: string;
|
|
28
|
-
rangeMonthPlaceholder: string;
|
|
29
|
-
rangeWeekPlaceholder: string;
|
|
30
|
-
today: string;
|
|
31
|
-
now: string;
|
|
32
|
-
ok: string;
|
|
33
|
-
};
|
|
34
|
-
timePickerLocale: {};
|
|
35
|
-
placeholder: string;
|
|
36
|
-
yearPlaceholder: string;
|
|
37
|
-
quarterPlaceholder: string;
|
|
38
|
-
monthPlaceholder: string;
|
|
39
|
-
weekPlaceholder: string;
|
|
40
|
-
rangePlaceholder: string;
|
|
41
|
-
rangeYearPlaceholder: string;
|
|
42
|
-
rangeMonthPlaceholder: string;
|
|
43
|
-
rangeWeekPlaceholder: string;
|
|
44
|
-
today: string;
|
|
45
|
-
now: string;
|
|
46
|
-
ok: string;
|
|
47
|
-
};
|
|
48
|
-
DragVerify: {
|
|
49
|
-
tryAgain: string;
|
|
50
|
-
swipe: string;
|
|
51
|
-
};
|
|
52
|
-
Drawer: {
|
|
53
|
-
cancel: string;
|
|
54
|
-
ok: string;
|
|
55
|
-
};
|
|
56
|
-
DynamicMultiBox: {
|
|
57
|
-
add: string;
|
|
58
|
-
titleForm: string;
|
|
59
|
-
default: string;
|
|
60
|
-
noData: string;
|
|
61
|
-
};
|
|
62
|
-
Empty: {
|
|
63
|
-
noData: string;
|
|
64
|
-
click: string;
|
|
65
|
-
refresh: string;
|
|
66
|
-
};
|
|
67
|
-
FormItem: {
|
|
68
|
-
choseFile: string;
|
|
69
|
-
unEmpty: string;
|
|
70
|
-
maxLength: string;
|
|
71
|
-
minLength: string;
|
|
72
|
-
unRule: string;
|
|
73
|
-
minValue: string;
|
|
74
|
-
maxValue: string;
|
|
75
|
-
};
|
|
76
|
-
Modal: {
|
|
77
|
-
cancel: string;
|
|
78
|
-
ok: string;
|
|
79
|
-
};
|
|
80
|
-
MultiBox: {
|
|
81
|
-
add: string;
|
|
82
|
-
};
|
|
83
|
-
OperateBtn: {
|
|
84
|
-
more: string;
|
|
85
|
-
};
|
|
86
|
-
Pagination: {
|
|
87
|
-
total: string;
|
|
88
|
-
linePerPage: string;
|
|
89
|
-
currentPage: string;
|
|
90
|
-
jumpTo: string;
|
|
91
|
-
page: string;
|
|
92
|
-
};
|
|
93
|
-
PopConfirm: {
|
|
94
|
-
cancel: string;
|
|
95
|
-
ok: string;
|
|
96
|
-
};
|
|
97
|
-
Querying: {
|
|
98
|
-
querying: string;
|
|
99
|
-
};
|
|
100
|
-
Select: {
|
|
101
|
-
searchPlaceholder: string;
|
|
102
|
-
selected: string;
|
|
103
|
-
};
|
|
104
|
-
Selector: {
|
|
105
|
-
root: string;
|
|
106
|
-
selectAll: string;
|
|
107
|
-
seeMore: string;
|
|
108
|
-
selected: string;
|
|
109
|
-
pleaseEnter: string;
|
|
110
|
-
searchResult: string;
|
|
111
|
-
detail: string;
|
|
112
|
-
child: string;
|
|
113
|
-
};
|
|
114
|
-
SelectorPicker: {
|
|
115
|
-
selected: string;
|
|
116
|
-
select: string;
|
|
117
|
-
};
|
|
118
|
-
SingleBox: {
|
|
119
|
-
add: string;
|
|
120
|
-
};
|
|
121
|
-
Table: {
|
|
122
|
-
empty: string;
|
|
123
|
-
determine: string;
|
|
124
|
-
restoreDefault: string;
|
|
125
|
-
serial: string;
|
|
126
|
-
loadMore: string;
|
|
127
|
-
refresh: string;
|
|
128
|
-
selectNum: string;
|
|
129
|
-
selectAll: string;
|
|
130
|
-
};
|
|
131
|
-
Tabs: {
|
|
132
|
-
confirmDelete: string;
|
|
133
|
-
};
|
|
134
|
-
TextEditor: {
|
|
135
|
-
please: string;
|
|
136
|
-
};
|
|
137
|
-
Transfer: {
|
|
138
|
-
left: string;
|
|
139
|
-
right: string;
|
|
140
|
-
allCheck: string;
|
|
141
|
-
inVertCheck: string;
|
|
142
|
-
searchPlaceholder: string;
|
|
143
|
-
leftBtnTips: string;
|
|
144
|
-
rightBtnTips: string;
|
|
145
|
-
};
|
|
146
|
-
Tree: {
|
|
147
|
-
loadMore: string;
|
|
148
|
-
add: string;
|
|
149
|
-
edit: string;
|
|
150
|
-
disabled: string;
|
|
151
|
-
delete: string;
|
|
152
|
-
};
|
|
153
|
-
Upload: {
|
|
154
|
-
uploadError: string;
|
|
155
|
-
uploading: string;
|
|
156
|
-
clickUploadFile: string;
|
|
157
|
-
dragFileUpload: string;
|
|
158
|
-
add: string;
|
|
159
|
-
edit: string;
|
|
160
|
-
disabled: string;
|
|
161
|
-
delete: string;
|
|
162
|
-
editImage: string;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
export default _default;
|