@para-ui/core 3.0.37 → 3.0.39

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.
Files changed (138) hide show
  1. package/AutoBox/index.js +1 -1
  2. package/AutoTips/index.js +1 -1
  3. package/Breadcrumbs/index.js +2 -2
  4. package/Button/index.js +1 -1
  5. package/ButtonGroup/index.js +1 -1
  6. package/Cascader/index.js +16 -20
  7. package/Checkbox/index.js +1 -1
  8. package/CheckboxGroup/index.js +1 -1
  9. package/CollapseBox/index.js +1 -1
  10. package/CollapseLayout/index.js +1 -1
  11. package/ComboSelect/index.js +4 -4
  12. package/DatePicker/index.js +2 -2
  13. package/Desktop/index.js +2 -2
  14. package/DragVerify/index.d.ts +50 -0
  15. package/DragVerify/index.js +264 -0
  16. package/DragVerify/lang/en_US.d.ts +5 -0
  17. package/DragVerify/lang/index.d.ts +11 -0
  18. package/DragVerify/lang/zh_CN.d.ts +5 -0
  19. package/Drawer/index.js +4 -2
  20. package/DynamicMultiBox/formItem.d.ts +14 -0
  21. package/DynamicMultiBox/index.d.ts +5 -0
  22. package/DynamicMultiBox/index.js +1312 -0
  23. package/DynamicMultiBox/interface.d.ts +161 -0
  24. package/DynamicMultiBox/rowForm.d.ts +24 -0
  25. package/Form/index.js +5 -5
  26. package/FormItem/index.js +5 -5
  27. package/FunctionModal/index.js +5 -5
  28. package/Help/index.js +1 -1
  29. package/InputLang/index.js +2 -2
  30. package/InputNumber/index.js +1 -1
  31. package/Label/index.js +1 -1
  32. package/Menu/index.js +2 -2
  33. package/Modal/index.js +1 -1
  34. package/MultiBox/index.js +2 -2
  35. package/OperateBtn/index.js +43 -45
  36. package/PageHeader/index.js +2 -2
  37. package/Pagination/index.js +2 -2
  38. package/PopConfirm/index.js +1 -1
  39. package/Popover/index.js +2 -2
  40. package/README.md +13 -0
  41. package/Radio/index.js +1 -1
  42. package/RadioGroup/index.js +1 -1
  43. package/Search/index.js +1 -1
  44. package/Select/index.js +2 -2
  45. package/SelectInput/index.js +2 -2
  46. package/Selector/index.js +290 -306
  47. package/SelectorPicker/index.js +3 -3
  48. package/SingleBox/index.js +2 -2
  49. package/Slider/index.js +1 -1
  50. package/Split/index.js +1 -1
  51. package/Switch/index.js +1 -1
  52. package/Table/index.js +48 -50
  53. package/Table/interface.d.ts +1 -1
  54. package/Tabs/index.js +1 -1
  55. package/Tag/index.js +2 -2
  56. package/TextEditor/index.js +1 -1
  57. package/TextField/index.js +1 -1
  58. package/TimePicker/index.js +2 -2
  59. package/ToggleButton/index.js +1 -1
  60. package/Tooltip/index.js +1 -1
  61. package/Transfer/index.js +3 -3022
  62. package/Tree/index.js +5 -5
  63. package/Upload/index.js +345 -361
  64. package/_verture/{index-06fea29b.js → index-beef914f.js} +3 -9
  65. package/_verture/{index-c62ad493.js → index-c2a6ba28.js} +1 -1
  66. package/_verture/{index-257f53f9.js → index-da441266.js} +162 -168
  67. package/_verture/{modalContext-c749e1c6.js → modalContext-44e0b3ea.js} +28 -30
  68. package/_verture/{slicedToArray-77980792.js → slicedToArray-708dbb18.js} +2 -6
  69. package/_verture/sortable.esm-49896035.js +3791 -0
  70. package/_verture/{toConsumableArray-87c7d895.js → toConsumableArray-57dd2e23.js} +1 -1
  71. package/index.d.ts +4 -0
  72. package/index.js +11 -8
  73. package/package.json +3 -2
  74. package/umd/AutoBox.js +7 -7
  75. package/umd/AutoTips.js +3 -3
  76. package/umd/Breadcrumbs.js +7 -7
  77. package/umd/Button.js +6 -6
  78. package/umd/ButtonGroup.js +6 -6
  79. package/umd/Carousel.js +1 -1
  80. package/umd/Cascader.js +6 -6
  81. package/umd/Checkbox.js +6 -6
  82. package/umd/CheckboxGroup.js +6 -6
  83. package/umd/Collapse.js +3 -3
  84. package/umd/CollapseLayout.js +1 -1
  85. package/umd/ColorPicker.js +1 -1
  86. package/umd/ComboSelect.js +5 -5
  87. package/umd/Container.js +1 -1
  88. package/umd/DatePicker.js +6 -6
  89. package/umd/Desktop.js +7 -7
  90. package/umd/DragVerify.js +29 -0
  91. package/umd/Drawer.js +7 -7
  92. package/umd/Dropdown.js +3 -3
  93. package/umd/DynamicMultiBox.js +54 -0
  94. package/umd/Empty.js +2 -2
  95. package/umd/Form.js +5 -5
  96. package/umd/FormItem.js +5 -5
  97. package/umd/FunctionModal.js +5 -5
  98. package/umd/Help.js +6 -6
  99. package/umd/InputLang.js +7 -7
  100. package/umd/InputNumber.js +7 -7
  101. package/umd/Label.js +5 -5
  102. package/umd/Loading.js +1 -1
  103. package/umd/Menu.js +2 -2
  104. package/umd/Message.js +2 -2
  105. package/umd/Modal.js +5 -5
  106. package/umd/MultiBox.js +7 -7
  107. package/umd/Notification.js +3 -3
  108. package/umd/OperateBtn.js +7 -7
  109. package/umd/PageHeader.js +7 -7
  110. package/umd/Pagination.js +6 -6
  111. package/umd/ParauiProvider.js +1 -1
  112. package/umd/PasswordRules.js +1 -1
  113. package/umd/PopConfirm.js +7 -7
  114. package/umd/Popover.js +3 -3
  115. package/umd/Progress.js +1 -1
  116. package/umd/Querying.js +1 -1
  117. package/umd/Radio.js +5 -5
  118. package/umd/RadioGroup.js +6 -6
  119. package/umd/Search.js +7 -7
  120. package/umd/Select.js +5 -5
  121. package/umd/SelectInput.js +5 -5
  122. package/umd/Selector.js +6 -6
  123. package/umd/SelectorPicker.js +5 -5
  124. package/umd/SingleBox.js +7 -7
  125. package/umd/Slider.js +3 -3
  126. package/umd/Stepper.js +1 -1
  127. package/umd/Switch.js +5 -5
  128. package/umd/Table.js +5 -5
  129. package/umd/Tabs.js +6 -6
  130. package/umd/Tag.js +6 -6
  131. package/umd/TextEditor.js +19 -19
  132. package/umd/TextField.js +7 -7
  133. package/umd/TimePicker.js +6 -6
  134. package/umd/ToggleButton.js +7 -7
  135. package/umd/Tooltip.js +3 -3
  136. package/umd/Transfer.js +7 -7
  137. package/umd/Tree.js +7 -7
  138. package/umd/Upload.js +8 -8
@@ -0,0 +1,29 @@
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,(function(e,r){return function(){var t={38271:function(e,r,t){(r=t(23645)(!1)).push([e.id,".paraui-v3-drag-verify{width:100%;position:relative}.paraui-v3-drag-verify>.slider-img{position:relative;border-radius:4px;overflow:hidden;line-height:0}.paraui-v3-drag-verify>.slider-img .slider-img-bg{width:100%;height:auto}.paraui-v3-drag-verify>.slider-img .slider-img-move{position:absolute;left:0;height:auto}.paraui-v3-drag-verify>.slider-move{position:relative;text-align:center;line-height:32px;height:32px;margin-top:12px}.paraui-v3-drag-verify>.slider-move>.slider-move-bg{position:absolute;left:0;right:0;top:0;background-color:rgba(171,176,185,.12);height:32px;border-radius:4px;border:1px solid rgba(171,176,185,.2)}.paraui-v3-drag-verify>.slider-move>.slider-move-mask{position:absolute;left:0;top:0;height:32px;width:2px;border-bottom-left-radius:4px;border-top-left-radius:4px}.paraui-v3-drag-verify>.slider-move>.slider-move-mask>.slider-move-box{position:absolute;top:0;left:-1px;width:32px;height:32px;background:#fff;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(171,176,185,.2)}.paraui-v3-drag-verify>.slider-move>.slider-move-mask>.slider-move-box:hover .svg-right{color:#3666d6}.paraui-v3-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:inline-block;color:rgba(46,55,67,.7)}.paraui-v3-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v3-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:none}.paraui-v3-drag-verify>.slider-move>.slider-move-text{color:rgba(46,55,67,.4);font-size:14px}.paraui-v3-drag-verify.paraui-v3-drag-verify-move>.slider-move>.slider-move-mask{border:1px solid #3666d6;border-width:1px 0 1px 1px;background-color:rgba(54,102,214,.05)}.paraui-v3-drag-verify.paraui-v3-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box{background-color:#3666d6;border-top:1px solid #3666d6;border-bottom:1px solid #3666d6;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v3-drag-verify.paraui-v3-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{color:#fff}.paraui-v3-drag-verify.paraui-v3-drag-verify-error>.slider-move>.slider-move-mask{border:1px solid #eb6054;border-width:1px 0 1px 1px;background-color:rgba(54,102,214,.05)}.paraui-v3-drag-verify.paraui-v3-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box{background-color:#eb6054;border-top:1px solid #eb6054;border-bottom:1px solid #eb6054;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v3-drag-verify.paraui-v3-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-close{display:inline-block;color:#fff}.paraui-v3-drag-verify.paraui-v3-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{display:none}.paraui-v3-drag-verify.paraui-v3-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-check{display:none}.paraui-v3-drag-verify.paraui-v3-drag-verify-success>.slider-move>.slider-move-mask{border:1px solid #53c31b;border-width:1px 0 1px 1px;background-color:rgba(83,195,27,.05)}.paraui-v3-drag-verify.paraui-v3-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box{background-color:#53c31b;border-top:1px solid #53c31b;border-bottom:1px solid #53c31b;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v3-drag-verify.paraui-v3-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v3-drag-verify.paraui-v3-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:none}.paraui-v3-drag-verify.paraui-v3-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:inline-block;color:#fff}",""]),e.exports=r},23645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var i=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([i]).join("\n")}var a,s,c;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);n&&i[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),r.push(c))}},r}},27418:function(e){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))t.call(o,l)&&(s[l]=o[l]);if(r){a=r(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},75251:function(e,r,t){"use strict";
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */t(27418);var n=t(8156),i=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),r.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,o={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)s.call(r,n)&&!c.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:a.current}}r.jsx=l,r.jsxs=l},85893:function(e,r,t){"use strict";e.exports=t(75251)},75875:function(e,r,t){var n=t(93379),i=t(38271);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};n(i,o);e.exports=i.locals||{}},93379:function(e,r,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function s(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function c(e,r){for(var t={},n=[],i=0;i<e.length;i++){var o=e[i],c=r.base?o[0]+r.base:o[0],l=t[c]||0,u="".concat(c," ").concat(l);t[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,r),references:1}),n.push(u)}return n}function l(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=o(e.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(r)}return r}var u,d=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(r,i);else{var o=document.createTextNode(i),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(o,a[r]):e.appendChild(o)}}function v(e,r,t){var n=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,m=0;function g(e,r){var t,n,i;if(r.singleton){var o=m++;t=p||(p=l(r)),n=f.bind(null,t,o,!1),i=f.bind(null,t,o,!0)}else t=l(r),n=v.bind(null,t,r),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else i()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=i());var t=c(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var i=s(t[n]);a[i].references--}for(var o=c(e,r),l=0;l<t.length;l++){var u=s(t[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=o}}}},58543:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};return function(){"use strict";i.r(o),i.d(o,{DragVerify:function(){return x},default:function(){return w}});var e=i(8156),r=i.n(e);function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}var n=i(85893);!function(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-icon-primary {\n color: #3666d6;\n}\n.paraui-icon-secondary {\n color: #3666d6;\n}\n.paraui-icon-thirdary {\n color: #3666d6;\n}\n.paraui-icon-small {\n font-size: 16px;\n}\n.paraui-icon-medium {\n font-size: 18px;\n}\n.paraui-icon-large {\n font-size: 20px;\n}');var a=function(e){var r,t,i=e.path,o=e.className,a=e.color,s=void 0===a?"primary":a,c=e.size,l=void 0===c?"small":c,u=e.dataName,d=void 0===u?"":u,f=e.style,v=
15
+ /*! *****************************************************************************
16
+ Copyright (c) Microsoft Corporation.
17
+
18
+ Permission to use, copy, modify, and/or distribute this software for any
19
+ purpose with or without fee is hereby granted.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
22
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
24
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
+ PERFORMANCE OF THIS SOFTWARE.
28
+ ***************************************************************************** */
29
+ function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["path","className","color","size","dataName","style"]);return(0,n.jsx)("svg",Object.assign({className:(t="paraui-icon",t+=" svg-icon",o&&(t+=" "+o),"primary"!==s&&"secondary"!==s&&"thirdary"!==s||(t+=" paraui-icon-"+s),l&&(t+=" paraui-icon-"+l),t),viewBox:"0 0 1024 1024","data-name":d,style:(r=Object.assign({},f),s&&"primary"!==s&&"secondary"!==s&&"thirdary"!==s&&(r.color=s),r)},v,{children:i}))},s=function(e){return(0,n.jsx)(a,Object.assign({dataName:"DoubleRight",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M476.757333 813.696a42.666667 42.666667 0 0 1 12.501334-30.165333l271.530666-271.573334-271.530666-271.488a42.666667 42.666667 0 0 1 60.330666-60.330666l301.696 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.696 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"}),(0,n.jsx)("path",{d:"M160.256 813.696a42.666667 42.666667 0 0 1 12.501333-30.165333l271.530667-271.573334-271.530667-271.488a42.666667 42.666667 0 0 1 60.330667-60.330666l301.696 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.696 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"})]})},e))},c=function(e){return(0,n.jsx)(a,Object.assign({dataName:"Close",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"M572.330667 512l183.168-183.168a42.666667 42.666667 0 0 0-60.330667-60.330667L512 451.669333 328.832 268.501333a42.666667 42.666667 0 0 0-60.330667 60.330667L451.669333 512l-183.168 183.168a42.666667 42.666667 0 1 0 60.330667 60.330667L512 572.330667l183.168 183.168a42.666667 42.666667 0 0 0 60.330667-60.330667z"})})},e))},l=function(e){return(0,n.jsx)(a,Object.assign({dataName:"Check",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("path",{d:"M854.528 283.221333a46.933333 46.933333 0 0 0-66.389333 0l-357.930667 357.973334-194.346667-194.304a46.933333 46.933333 0 0 0-66.389333 66.389333l227.541333 227.498667a46.933333 46.933333 0 0 0 66.389334 0c0.512-0.554667 0.682667-1.237333 1.194666-1.792s1.28-0.682667 1.792-1.194667l388.266667-388.266667a46.933333 46.933333 0 0 0-0.128-66.304z"})})},e))};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=function(e){var t,i,o,a,s=e.ops,c=e.i18nData,l=e.lang,d=e.params,f=e.defI18nData;if("string"==typeof s)a=s;else if("object"===u(s)){if("string"!=typeof s.id)return'i18n intl object "id" is missing';a=s.id}return void 0!==a&&void 0===(o=null===(t=c[l])||void 0===t?void 0:t[a])&&f&&(o=null===(i=f[l])||void 0===i?void 0:i[a]),"string"!=typeof o?"{".concat(a,"}"):function(e,t){if(!t)return e;var i=!1,o=(e=e.replace(/\"/g,'\\"')).replace(/\{(.*?)\}/gi,(function(e,r){return"object"===u(t[r])&&(i=!0),'",vars.'.concat(r,',"')}));return i?new Function("vars",'return ["'.concat(o,'"];'))(t).map((function(e){return(0,n.jsx)(r().Fragment,{children:e},Math.random())})):new Function("vars",'return ["'.concat(o,"\"].join('');"))(t)}(o,d)},f=i(58543),v={cancel:"取消",ok:"确定"},p=(Object.assign({},v),r().createContext({language:(0,f.GetLanguage)(),intlFormat:function(e,r){return function(e,t){var n=(0,f.GetLanguage)();return d({ops:e,i18nData:{},lang:n,params:t,defI18nData:r})}},componentsProps:{}})),m=function(e,t){var n=r().useContext(p).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)},g={zh:{tryAgain:"再试一次",swipe:"向右滑动填充拼图"},en:{tryAgain:"Try again",swipe:"Swipe right to fill puzzle"}};i(75875);function y(e,r,t,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void t(e)}s.done?r(c):Promise.resolve(c).then(n,i)}function b(e){return function(){var r=this,t=arguments;return new Promise((function(n,i){var o=e.apply(r,t);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}}var h=function(e,r){var t,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=r.call(e,a)}catch(e){o=[6,e],n=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},x=function(n){var i=n.className,o=n.style,a=n.refresh,u=n.getImgInfo,d=n.verifyData,f=n.finishVerify,v=m("DragVerify",g),p=(0,e.useRef)(null),y=(0,e.useRef)({getImgInfo:u,verifyData:d,finishVerify:f}),x="paraui-v3-drag-verify";y.current.getImgInfo=u,y.current.verifyData=d,y.current.finishVerify=f,(0,e.useEffect)((function(){return N(),j(),function(){clearTimeout(y.current.timerError),clearTimeout(y.current.timerSuccess)}}),[a]);var w,j=(w=b((function(){var e,r;return h(this,(function(t){switch(t.label){case 0:return y.current.padding=!0,[4,y.current.getImgInfo()];case 1:return e=t.sent(),r=e.data,e.err?[2,y.current.padding=!1]:(y.current.imgInfo=(null==r?void 0:r.data)||{},S(),[2])}}))})),function(){return w.apply(this,arguments)}),k=function(){var e=b((function(e,r){var t;return h(this,(function(n){switch(n.label){case 0:return[4,y.current.verifyData(e,y.current.verifyData)];case 1:return t=n.sent(),r(t||{}),[2]}}))}));return function(r,t){return e.apply(this,arguments)}}(),S=function(){var e;if(p.current){var r=document.createElement("img");r.setAttribute("src",null===(e=y.current.imgInfo)||void 0===e?void 0:e.sourceImage),r.style.display="none";var t=document.createElement("img");y.current.imgMove=t,t.className="slider-img-move",t.style.display="none";var n=p.current.querySelector(".slider-img");n&&(n.innerHTML="",n.append(r),r.onload=function(){var e;r.style.display="inline-block",t.setAttribute("src",null===(e=y.current.imgInfo)||void 0===e?void 0:e.newImage);var n=r.width;if(r.className="slider-img-bg",r.style.display="inline-block",p.current){var i=p.current.querySelector(".slider-img"),o=(null==i?void 0:i.getBoundingClientRect()).width;y.current.imgScale=n/o,null==i||i.append(t),t.onload=function(){var e;y.current.padding=!1,t.style.display="inline-block",t.width=t.width/y.current.imgScale,t.style.top=(null===(e=y.current.imgInfo)||void 0===e?void 0:e.Y)/y.current.imgScale+"px"}}},O(r,t))}},O=function(e,r){var t=p.current;if(t){var n=t.querySelector(".slider-move-box"),i=t.querySelector(".slider-move-mask"),o=t.querySelector(".slider-move"),a=t.querySelector(".slider-move-text"),s=o.getBoundingClientRect(),c=n.getBoundingClientRect().width,l=s.width;n.onmousedown=function(o){y.current.padding||(t.classList.add(x+"-move"),document.onmousemove=function(t){var s=t.pageX-o.pageX;s<0&&(s=0),s+c>e.width&&(s=e.width-c),n.style.left=s-1+"px",i.style.width=(s<2?2:s)+"px";var u=s/(l-c),d=(e.width-r.width)*u;r.style.left=d+"px",a.innerHTML=""},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.classList.remove(x+"-move"),y.current.padding=!0;var e=parseFloat(r.style.left)*y.current.imgScale;k(e,(function(e){if(e.err)return t.classList.add(x+"-error"),void(y.current.timerError=setTimeout((function(){y.current.padding=!1,N(),a.innerHTML=v({id:"tryAgain"}),y.current.finishVerify(!1,e),j()}),1e3));t.classList.add(x+"-success"),y.current.timerSuccess=setTimeout((function(){y.current.padding=!1,y.current.finishVerify(!0,e)}),1e3)}))})}}},N=function(){var e=p.current;if(e){e.classList.remove(x+"-success"),e.classList.remove(x+"-error");var r=e.querySelector(".slider-move-box"),t=e.querySelector(".slider-move-mask");e.querySelector(".slider-move-text").innerHTML=v({id:"swipe"}),r.style.left="-1px",t.style.width="0px",y.current.imgMove&&(y.current.imgMove.style.left="0px")}};return r().createElement("div",{className:function(){for(var e,r,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(r=t(e))&&(i&&(i+=" "),i+=r);return i}(x,i),style:o,ref:p},r().createElement("div",{className:"slider-img"}),r().createElement("div",{className:"slider-move"},r().createElement("div",{className:"slider-move-bg"}),r().createElement("div",{className:"slider-move-mask"},r().createElement("div",{className:"slider-move-box"},r().createElement(s,{className:"svg-right"}),r().createElement(c,{className:"svg-close"}),r().createElement(l,{className:"svg-check"}))),r().createElement("span",{className:"slider-move-text"},v({id:"swipe"}))))},w=x}(),o}()}));