ht-components 2.1.0 → 2.2.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/lib/HTTimeline.js CHANGED
@@ -1 +1 @@
1
- !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],n);else{var t,i="object"==typeof exports?n(require("react"),require("antd")):n(e.React,e.antd);for(t in i)("object"==typeof exports?exports:e)[t]=i[t]}}(window,function(t,i){return r={1:function(e,n){e.exports=t},2:function(e,n){e.exports=i},220:function(e,n,t){"use strict";t.r(n);function i(e){return r.a.createElement("div",{className:"HT-timeline-components"},r.a.createElement(a.Timeline,e))}var o=t(1),r=t.n(o),a=t(2);t(221);i.HTItem=a.Timeline.Item,n.default=i},221:function(e,n,t){var i=t(3),t=t(222),o={insert:"head",singleton:!1};i(t="string"==typeof(t=t.__esModule?t.default:t)?[[e.i,t,""]]:t,o);e.exports=t.locals||{}},222:function(e,n,t){(n=t(4)(!1)).push([e.i,".HT-timeline-components .ant-timeline .ant-timeline-item {\n /* 默认 */\n /* 蓝色 等待 */\n /* 绿色 成功 */\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-tail {\n left: 7.5px;\n border-left: 2px solid #e9ebf1;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head {\n width: 16px;\n height: 16px;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-blue {\n background-color: #E9EBF1;\n border: 1px solid #E9EBF1;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-blue2 {\n background: #ffffff;\n border: 1px solid #144fff;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-green {\n background: #10C388;\n border: 1px solid #10C388;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-content {\n top: -3px;\n margin: 0 0 0 26px;\n}\n",""]),e.exports=n},3:function(e,n,o){"use strict";var t,i,c=function(){return t=void 0===t?Boolean(window&&document&&document.all&&!window.atob):t},r=(i={},function(e){if(void 0===i[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}i[e]=n}return i[e]}),l=[];function s(e){for(var n=-1,t=0;t<l.length;t++)if(l[t].identifier===e){n=t;break}return n}function u(e,n){for(var t={},i=[],o=0;o<e.length;o++){var r=e[o],a=n.base?r[0]+n.base:r[0],c=t[a]||0,u="".concat(a," ").concat(c),a=(t[a]=c+1,s(u)),c={css:r[1],media:r[2],sourceMap:r[3]};-1!==a?(l[a].references++,l[a].updater(c)):l.push({identifier:u,updater:function(n,e){var t,i,o;{var r;o=e.singleton?(r=b++,t=p=p||f(e),i=m.bind(null,t,r,!1),m.bind(null,t,r,!0)):(t=f(e),i=function(e,n,t){var i=t.css,o=t.media,t=t.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media");t&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */"));if(e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,t,e),function(){var e=t;null!==e.parentNode&&e.parentNode.removeChild(e)})}return i(n),function(e){e?e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap||i(n=e):o()}}(c,n),references:1}),i.push(u)}return i}function f(e){var n=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce&&(i=o.nc)&&(t.nonce=i),Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])}),"function"==typeof e.insert)e.insert(n);else{var i=r(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}a=[];var a,d=function(e,n){return a[e]=n,a.filter(Boolean).join("\n")};function m(e,n,t,i){var t=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;e.styleSheet?e.styleSheet.cssText=d(n,t):(i=document.createTextNode(t),(t=e.childNodes)[n]&&e.removeChild(t[n]),t.length?e.insertBefore(i,t[n]):e.appendChild(i))}var p=null,b=0;e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=c());var a=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<a.length;n++){var t=s(a[n]);l[t].references--}for(var e=u(e,r),i=0;i<a.length;i++){var o=s(a[i]);0===l[o].references&&(l[o].updater(),l.splice(o,1))}a=e}}}},4:function(e,n,t){"use strict";e.exports=function(t){var u=[];return u.toString=function(){return this.map(function(e){var n=function(e,n){var t=e[1]||"",i=e[3];if(!i)return t;if(n&&"function"==typeof btoa)return e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(i),n=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}),[t].concat(n).concat([e]).join("\n");return[t].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},u.i=function(e,n,t){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(t)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);t&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),u.push(c))}},u}}},a={},o.m=r,o.c=a,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)o.d(t,i,function(e){return n[e]}.bind(null,i));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=220).default;function o(e){var n;return(a[e]||(n=a[e]={i:e,l:!1,exports:{}},r[e].call(n.exports,n,n.exports,o),n.l=!0,n)).exports}var r,a});
1
+ !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],n);else{var t,i="object"==typeof exports?n(require("react"),require("antd")):n(e.React,e.antd);for(t in i)("object"==typeof exports?exports:e)[t]=i[t]}}(window,function(t,i){return r={1:function(e,n){e.exports=t},2:function(e,n){e.exports=i},235:function(e,n,t){"use strict";t.r(n);function i(e){return r.a.createElement("div",{className:"HT-timeline-components"},r.a.createElement(a.Timeline,e))}var o=t(1),r=t.n(o),a=t(2);t(236);i.HTItem=a.Timeline.Item,n.default=i},236:function(e,n,t){var i=t(3),t=t(237),o={insert:"head",singleton:!1};i(t="string"==typeof(t=t.__esModule?t.default:t)?[[e.i,t,""]]:t,o);e.exports=t.locals||{}},237:function(e,n,t){(n=t(4)(!1)).push([e.i,".HT-timeline-components {\n display: inline-block;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item {\n /* 默认 */\n /* 蓝色 等待 */\n /* 绿色 成功 */\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-tail {\n left: 7.5px;\n border-left: 2px solid #e9ebf1;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head {\n width: 16px;\n height: 16px;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-blue {\n background-color: #E9EBF1;\n border: 1px solid #E9EBF1;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-blue2 {\n background: #ffffff;\n border: 1px solid #144fff;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-head-green {\n background: #10C388;\n border: 1px solid #10C388;\n}\n.HT-timeline-components .ant-timeline .ant-timeline-item .ant-timeline-item-content {\n top: -3px;\n margin: 0 0 0 26px;\n}\n",""]),e.exports=n},3:function(e,n,o){"use strict";var t,i,c=function(){return t=void 0===t?Boolean(window&&document&&document.all&&!window.atob):t},r=(i={},function(e){if(void 0===i[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}i[e]=n}return i[e]}),u=[];function s(e){for(var n=-1,t=0;t<u.length;t++)if(u[t].identifier===e){n=t;break}return n}function l(e,n){for(var t={},i=[],o=0;o<e.length;o++){var r=e[o],a=n.base?r[0]+n.base:r[0],c=t[a]||0,l="".concat(a," ").concat(c),a=(t[a]=c+1,s(l)),c={css:r[1],media:r[2],sourceMap:r[3]};-1!==a?(u[a].references++,u[a].updater(c)):u.push({identifier:l,updater:function(n,e){var t,i,o;{var r;o=e.singleton?(r=b++,t=p=p||f(e),i=m.bind(null,t,r,!1),m.bind(null,t,r,!0)):(t=f(e),i=function(e,n,t){var i=t.css,o=t.media,t=t.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media");t&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */"));if(e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,t,e),function(){var e=t;null!==e.parentNode&&e.parentNode.removeChild(e)})}return i(n),function(e){e?e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap||i(n=e):o()}}(c,n),references:1}),i.push(l)}return i}function f(e){var n=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce&&(i=o.nc)&&(t.nonce=i),Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])}),"function"==typeof e.insert)e.insert(n);else{var i=r(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}a=[];var a,d=function(e,n){return a[e]=n,a.filter(Boolean).join("\n")};function m(e,n,t,i){var t=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;e.styleSheet?e.styleSheet.cssText=d(n,t):(i=document.createTextNode(t),(t=e.childNodes)[n]&&e.removeChild(t[n]),t.length?e.insertBefore(i,t[n]):e.appendChild(i))}var p=null,b=0;e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=c());var a=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<a.length;n++){var t=s(a[n]);u[t].references--}for(var e=l(e,r),i=0;i<a.length;i++){var o=s(a[i]);0===u[o].references&&(u[o].updater(),u.splice(o,1))}a=e}}}},4:function(e,n,t){"use strict";e.exports=function(t){var l=[];return l.toString=function(){return this.map(function(e){var n=function(e,n){var t=e[1]||"",i=e[3];if(!i)return t;if(n&&"function"==typeof btoa)return e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(i),n=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}),[t].concat(n).concat([e]).join("\n");return[t].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},l.i=function(e,n,t){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(t)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);t&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),l.push(c))}},l}}},a={},o.m=r,o.c=a,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)o.d(t,i,function(e){return n[e]}.bind(null,i));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=235).default;function o(e){var n;return(a[e]||(n=a[e]={i:e,l:!1,exports:{}},r[e].call(n.exports,n,n.exports,o),n.l=!0,n)).exports}var r,a});
package/lib/HTTooltip.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],t);else{var n,r="object"==typeof exports?t(require("react"),require("antd")):t(e.React,e.antd);for(n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(n,r){return i={1:function(e,t){e.exports=n},2:function(e,t){e.exports=r},226:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(2);n(227);t.default=function(e){return o.a.createElement("div",{className:"HT-tooltip-components"},o.a.createElement(i.Tooltip,e))}},227:function(e,t,n){var r=n(3),n=n(228),o={insert:"head",singleton:!1};r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,o);e.exports=n.locals||{}},228:function(e,t,n){(t=n(4)(!1)).push([e.i,".HT-radio-components {\n display: inline-block;\n}\n",""]),e.exports=t},3:function(e,t,o){"use strict";var n,r,c=function(){return n=void 0===n?Boolean(window&&document&&document.all&&!window.atob):n},i=(r={},function(e){if(void 0===r[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=[];function f(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],c=n[a]||0,u="".concat(a," ").concat(c),a=(n[a]=c+1,f(u)),c={css:i[1],media:i[2],sourceMap:i[3]};-1!==a?(s[a].references++,s[a].updater(c)):s.push({identifier:u,updater:function(t,e){var n,r,o;{var i;o=e.singleton?(i=m++,n=v=v||l(e),r=p.bind(null,n,i,!1),p.bind(null,n,i,!0)):(n=l(e),r=function(e,t,n){var r=n.css,o=n.media,n=n.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media");n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */"));if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n,e),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)})}return r(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||r(t=e):o()}}(c,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce&&(r=o.nc)&&(n.nonce=r),Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])}),"function"==typeof e.insert)e.insert(t);else{var r=i(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}a=[];var a,d=function(e,t){return a[e]=t,a.filter(Boolean).join("\n")};function p(e,t,n,r){var n=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;e.styleSheet?e.styleSheet.cssText=d(t,n):(r=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r))}var v=null,m=0;e.exports=function(e,i){(i=i||{}).singleton||"boolean"==typeof i.singleton||(i.singleton=c());var a=u(e=e||[],i);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var n=f(a[t]);s[n].references--}for(var e=u(e,i),r=0;r<a.length;r++){var o=f(a[r]);0===s[o].references&&(s[o].updater(),s.splice(o,1))}a=e}}}},4:function(e,t,n){"use strict";e.exports=function(n){var u=[];return u.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa)return e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(r),t=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}),[n].concat(t).concat([e]).join("\n");return[n].join("\n")}(e,n);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t}).join("")},u.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),u.push(c))}},u}}},a={},o.m=i,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=226).default;function o(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var i,a});
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],t);else{var n,r="object"==typeof exports?t(require("react"),require("antd")):t(e.React,e.antd);for(n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(n,r){return i={1:function(e,t){e.exports=n},2:function(e,t){e.exports=r},241:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(2);n(242);t.default=function(e){return o.a.createElement("div",{className:"HT-tooltip-components"},o.a.createElement(i.Tooltip,e))}},242:function(e,t,n){var r=n(3),n=n(243),o={insert:"head",singleton:!1};r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,o);e.exports=n.locals||{}},243:function(e,t,n){(t=n(4)(!1)).push([e.i,".HT-radio-components {\n display: inline-block;\n}\n",""]),e.exports=t},3:function(e,t,o){"use strict";var n,r,c=function(){return n=void 0===n?Boolean(window&&document&&document.all&&!window.atob):n},i=(r={},function(e){if(void 0===r[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=[];function f(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],c=n[a]||0,u="".concat(a," ").concat(c),a=(n[a]=c+1,f(u)),c={css:i[1],media:i[2],sourceMap:i[3]};-1!==a?(s[a].references++,s[a].updater(c)):s.push({identifier:u,updater:function(t,e){var n,r,o;{var i;o=e.singleton?(i=m++,n=v=v||l(e),r=p.bind(null,n,i,!1),p.bind(null,n,i,!0)):(n=l(e),r=function(e,t,n){var r=n.css,o=n.media,n=n.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media");n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */"));if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n,e),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)})}return r(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||r(t=e):o()}}(c,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce&&(r=o.nc)&&(n.nonce=r),Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])}),"function"==typeof e.insert)e.insert(t);else{var r=i(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}a=[];var a,d=function(e,t){return a[e]=t,a.filter(Boolean).join("\n")};function p(e,t,n,r){var n=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;e.styleSheet?e.styleSheet.cssText=d(t,n):(r=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r))}var v=null,m=0;e.exports=function(e,i){(i=i||{}).singleton||"boolean"==typeof i.singleton||(i.singleton=c());var a=u(e=e||[],i);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var n=f(a[t]);s[n].references--}for(var e=u(e,i),r=0;r<a.length;r++){var o=f(a[r]);0===s[o].references&&(s[o].updater(),s.splice(o,1))}a=e}}}},4:function(e,t,n){"use strict";e.exports=function(n){var u=[];return u.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa)return e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(r),t=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}),[n].concat(t).concat([e]).join("\n");return[n].join("\n")}(e,n);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t}).join("")},u.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),u.push(c))}},u}}},a={},o.m=i,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=241).default;function o(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var i,a});
package/lib/HTTree.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],n);else{var t,r="object"==typeof exports?n(require("react"),require("antd")):n(e.React,e.antd);for(t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(window,function(t,r){return a={1:function(e,n){e.exports=t},2:function(e,n){e.exports=r},244:function(e,n,t){"use strict";t.r(n);function r(e){return a.a.createElement("div",{className:"HT-tree-components"},a.a.createElement(i.Tree,e))}var o=t(1),a=t.n(o),i=t(2);t(245),i.Tree.TreeNode;r.HTTreeNode=i.Tree.TreeNode,n.default=r},245:function(e,n,t){var r=t(3),t=t(246),o={insert:"head",singleton:!1};r(t="string"==typeof(t=t.__esModule?t.default:t)?[[e.i,t,""]]:t,o);e.exports=t.locals||{}},246:function(e,n,t){(n=t(4)(!1)).push([e.i,'.HT-tree-components {\n display: inline-block;\n}\n.HT-tree-components .ant-tree-title {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335 !important;\n}\n.HT-tree-components .ant-tree-checkbox .ant-tree-checkbox-inner {\n border: 1px solid #ececec;\n}\n.HT-tree-components .ant-tree-checkbox:hover .ant-tree-checkbox-inner {\n border: 1px solid #144fff;\n}\n.HT-tree-components .ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n border: 1px solid #144fff;\n background-color: #144fff;\n}\n.HT-tree-components .ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #ffffff;\n border-top: 0;\n border-left: 0;\n -webkit-transform: rotate(45deg) scale(1) translate(-50%, -50%);\n -ms-transform: rotate(45deg) scale(1) translate(-50%, -50%);\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: " ";\n}\n',""]),e.exports=n},3:function(e,n,o){"use strict";var t,r,c=function(){return t=void 0===t?Boolean(window&&document&&document.all&&!window.atob):t},a=(r={},function(e){if(void 0===r[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}r[e]=n}return r[e]}),u=[];function f(e){for(var n=-1,t=0;t<u.length;t++)if(u[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],i=n.base?a[0]+n.base:a[0],c=t[i]||0,s="".concat(i," ").concat(c),i=(t[i]=c+1,f(s)),c={css:a[1],media:a[2],sourceMap:a[3]};-1!==i?(u[i].references++,u[i].updater(c)):u.push({identifier:s,updater:function(n,e){var t,r,o;{var a;o=e.singleton?(a=m++,t=b=b||l(e),r=p.bind(null,t,a,!1),p.bind(null,t,a,!0)):(t=l(e),r=function(e,n,t){var r=t.css,o=t.media,t=t.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media");t&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */"));if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,t,e),function(){var e=t;null!==e.parentNode&&e.parentNode.removeChild(e)})}return r(n),function(e){e?e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap||r(n=e):o()}}(c,n),references:1}),r.push(s)}return r}function l(e){var n=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce&&(r=o.nc)&&(t.nonce=r),Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])}),"function"==typeof e.insert)e.insert(n);else{var r=a(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}return n}i=[];var i,d=function(e,n){return i[e]=n,i.filter(Boolean).join("\n")};function p(e,n,t,r){var t=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;e.styleSheet?e.styleSheet.cssText=d(n,t):(r=document.createTextNode(t),(t=e.childNodes)[n]&&e.removeChild(t[n]),t.length?e.insertBefore(r,t[n]):e.appendChild(r))}var b=null,m=0;e.exports=function(e,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=c());var i=s(e=e||[],a);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var t=f(i[n]);u[t].references--}for(var e=s(e,a),r=0;r<i.length;r++){var o=f(i[r]);0===u[o].references&&(u[o].updater(),u.splice(o,1))}i=e}}}},4:function(e,n,t){"use strict";e.exports=function(t){var s=[];return s.toString=function(){return this.map(function(e){var n=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa)return e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(r),n=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}),[t].concat(n).concat([e]).join("\n");return[t].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},s.i=function(e,n,t){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(t)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var i=0;i<e.length;i++){var c=[].concat(e[i]);t&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),s.push(c))}},s}}},i={},o.m=a,o.c=i,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=244).default;function o(e){var n;return(i[e]||(n=i[e]={i:e,l:!1,exports:{}},a[e].call(n.exports,n,n.exports,o),n.l=!0,n)).exports}var a,i});
package/lib/HTUpload.js CHANGED
@@ -1 +1 @@
1
- !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],n);else{var e,r="object"==typeof exports?n(require("react"),require("antd")):n(t.React,t.antd);for(e in r)("object"==typeof exports?exports:t)[e]=r[e]}}(window,function(e,r){return a={1:function(t,n){t.exports=e},166:function(t,n,e){"use strict";e.r(n);var r=e(1),o=e.n(r),a=e(2);e(172);n.default=function(t){return o.a.createElement("div",{className:"HT-icon-components"},o.a.createElement(a.Icon,t))}},167:function(t,n,e){"use strict";e.r(n);e(1);var r=e(2);e(174);n.default=r.message},168:function(t,n,e){"use strict";e.r(n);function r(t){return a.a.createElement("div",{className:"HT-modal-components"},a.a.createElement(i.Modal,t))}var o=e(1),a=e.n(o),i=e(2);e(176);r.info=i.Modal.info,r.success=i.Modal.success,r.error=i.Modal.error,r.warning=i.Modal.warning,r.confirm=i.Modal.confirm,n.default=r},169:function(t,n,e){"use strict";e.r(n);var r=e(1),o=e.n(r),a=e(2);e(178);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}n.default=function(t){return o.a.createElement("div",{className:"HT-progress-components"},o.a.createElement(a.Progress,i({width:80,strokeWidth:4},t)))}},172:function(t,n,e){var r=e(3),e=e(173),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},173:function(t,n,e){(n=e(4)(!1)).push([t.i,"",""]),t.exports=n},174:function(t,n,e){var r=e(3),e=e(175),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},175:function(t,n,e){(n=e(4)(!1)).push([t.i,"",""]),t.exports=n},176:function(t,n,e){var r=e(3),e=e(177),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},177:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-modal-components {\n display: inline-block;\n}\n",""]),t.exports=n},178:function(t,n,e){var r=e(3),e=e(179),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},179:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-progress-components {\n display: inline-block;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-inner {\n height: 6px;\n border-radius: 3px;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-inner .ant-progress-bg {\n height: 6px !important;\n border-radius: 3px;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #636569;\n}\n.HT-progress-components .ant-progress.ant-progress-circle .ant-progress-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #144FFF;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-text {\n color: #636569;\n}\n.HT-progress-components .ant-progress-status-normal.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-normal.ant-progress-circle .ant-progress-circle-path {\n stroke: #144FFF !important;\n}\n.HT-progress-components .ant-progress-status-success:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-success:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #10C388;\n}\n.HT-progress-components .ant-progress-status-success.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-success.ant-progress-circle .ant-progress-circle-path {\n stroke: #10C388 !important;\n}\n.HT-progress-components .ant-progress-status-exception:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-exception:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #FF3C4B;\n}\n.HT-progress-components .ant-progress-status-exception.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-exception.ant-progress-circle .ant-progress-circle-path {\n stroke: #FF3C4B !important;\n}\n",""]),t.exports=n},2:function(t,n){t.exports=r},229:function(t,n,e){var r=e(3),e=e(230),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},230:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-dragger-components {\n display: inline-block;\n}\n.HT-dragger-components .ant-upload-drag {\n width: 320px;\n height: 168px;\n background: #ffffff;\n border-radius: 4px;\n border: 1px solid #ececec;\n}\n.HT-dragger-components .ant-upload-drag:hover {\n border: 1px solid #d0dcff;\n}\n.HT-dragger-components .ant-upload-drag:active {\n background: #f3f6ff;\n border: 1px solid #144fff;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn {\n margin: 0;\n padding: 0;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-drag-icon {\n display: inline-block;\n width: 48px;\n height: 36px;\n margin-bottom: 14px;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-drag-icon > img {\n width: 100%;\n height: 100%;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n line-height: 20px;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-text > span {\n color: #144fff;\n}\n",""]),t.exports=n},231:function(t,n,e){var r=e(3),e=e(232),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},232:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-upload-components {\n display: inline-block;\n}\n.HT-upload-components .ant-upload-picture-card-wrapper {\n display: flex;\n flex-wrap: wrap;\n}\n.HT-upload-components .ant-upload-list-picture-card .ant-upload-list-picture-card-container:has(.ant-upload-list-item-uploading) {\n display: none;\n}\n.HT-upload-components .ant-upload-select-picture-card {\n border: none;\n background-color: rgba(0, 0, 0, 0);\n}\n.HT-upload-components .ant-upload-select-picture-card .ant-upload {\n padding: 0;\n}\n.HT-upload-components .img-upload-content {\n width: 104px;\n height: 104px;\n background: #fafafa;\n border-radius: 4px;\n border: 1px solid #ececec;\n display: flex;\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n}\n.HT-upload-components .img-upload-content:hover {\n border: 1px dashed #D0DCFF;\n}\n.HT-upload-components .img-upload-content:active {\n border: 1px dashed #0640ED;\n}\n.HT-upload-components .img-upload-content .upload-loading-percent {\n width: 104px;\n height: 104px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HT-upload-components .img-upload-content .upload-plus-icon {\n font-size: 24px;\n margin-top: 24px;\n}\n.HT-upload-components .img-upload-content .upload-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n margin-top: 10px;\n}\n",""]),t.exports=n},233:function(t,n,e){"use strict";e.r(n);var g=e(1),h=e.n(g),m=e(2),y=e(166),v=e(169),b=e(167),x=e(168),r=e.p+"53c2f5e1cc6c85dbf8c90b3cb760495b.png",o=(e(229),m.Upload.Dragger),w=["onChange","customRequest","onPreview"];e(231);function j(t){return(j="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})(t)}function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function H(){H=function(){return i};var i={},t=Object.prototype,s=t.hasOwnProperty,u=Object.defineProperty||function(t,n,e){t[n]=e.value},n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",e=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function a(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{a({},"")}catch(t){a=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var o,a,i,c,n=n&&n.prototype instanceof f?n:f,n=Object.create(n.prototype),r=new w(r||[]);return u(n,"_invoke",{value:(o=t,a=e,i=r,c="suspendedStart",function(t,n){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw n;return T()}for(i.method=t,i.arg=n;;){var e=i.delegate;if(e){e=function t(n,e){var r=e.method,o=n.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&n.iterator.return&&(e.method="return",e.arg=void 0,t(n,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=l(o,n.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;o=r.arg;return o?o.done?(e[n.resultName]=o.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}(e,i);if(e){if(e===p)continue;return e}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===c)throw c="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);c="executing";e=l(o,a,i);if("normal"===e.type){if(c=i.done?"completed":"suspendedYield",e.arg===p)continue;return{value:e.arg,done:i.done}}"throw"===e.type&&(c="completed",i.method="throw",i.arg=e.arg)}})}),n}function l(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}i.wrap=c;var p={};function f(){}function d(){}function g(){}var n={},h=(a(n,r,function(){return this}),Object.getPrototypeOf),h=h&&h(h(E([]))),m=(h&&h!==t&&s.call(h,r)&&(n=h),g.prototype=f.prototype=Object.create(n));function y(t){["next","throw","return"].forEach(function(n){a(t,n,function(t){return this._invoke(n,t)})})}function v(i,c){var n;u(this,"_invoke",{value:function(e,r){function t(){return new c(function(t,n){!function n(t,e,r,o){var a,t=l(i[t],i,e);if("throw"!==t.type)return(e=(a=t.arg).value)&&"object"==j(e)&&s.call(e,"__await")?c.resolve(e.__await).then(function(t){n("next",t,r,o)},function(t){n("throw",t,r,o)}):c.resolve(e).then(function(t){a.value=t,r(a)},function(t){return n("throw",t,r,o)});o(t.arg)}(e,r,t,n)})}return n=n?n.then(t,t):t()}})}function b(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function x(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(n){if(n){var e,t=n[r];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return e=-1,(t=function t(){for(;++e<n.length;)if(s.call(n,e))return t.value=n[e],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:T}}function T(){return{value:void 0,done:!0}}return u(m,"constructor",{value:d.prototype=g,configurable:!0}),u(g,"constructor",{value:d,configurable:!0}),d.displayName=a(g,o,"GeneratorFunction"),i.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a(t,o,"GeneratorFunction")),t.prototype=Object.create(m),t},i.awrap=function(t){return{__await:t}},y(v.prototype),a(v.prototype,e,function(){return this}),i.AsyncIterator=v,i.async=function(t,n,e,r,o){void 0===o&&(o=Promise);var a=new v(c(t,n,e,r),o);return i.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},y(m),a(m,o,"Generator"),a(m,r,function(){return this}),a(m,"toString",function(){return"[object Generator]"}),i.keys=function(t){var n,e=Object(t),r=[];for(n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},i.values=E,w.prototype={constructor:w,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(x),!t)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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(e){if(this.done)throw e;var r=this;function t(t,n){return a.type="throw",a.arg=e,r.next=t,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,n){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&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),x(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var e,r,o=this.tryEntries[n];if(o.tryLoc===t)return"throw"===(e=o.completion).type&&(r=e.arg,x(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:E(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},i}function T(t,n,e,r,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void e(t)}c.done?n(s):Promise.resolve(s).then(r,o)}function O(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;s=!1}else for(;!(s=(r=a.call(e)).done)&&(c.push(r.value),c.length!==n);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(t,n){var e;if(t)return"string"==typeof t?a(t,n):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,n):void 0}(t,n)||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.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function i(e){var r,o,t,a,n,i,c,s,u,l,p,f,d;if("fileList"in e)return u=O(Object(g.useState)(!1),2),r=u[0],o=u[1],u=O(Object(g.useState)(0),2),t=u[0],a=u[1],n=(u=O(Object(g.useState)(!1),2))[0],i=u[1],c=(u=O(Object(g.useState)(""),2))[0],s=u[1],u=(e.fileList||[]).filter(function(t){return"uploading"!==t.status}),l=h.a.createElement("div",{className:"img-upload-content"},r?h.a.createElement("div",{className:"upload-loading-percent"},h.a.createElement(v.default,{type:"circle",percent:t})):h.a.createElement(h.a.Fragment,null,h.a.createElement(y.default,{className:"upload-plus-icon",type:"plus"}),h.a.createElement("div",{className:"upload-text"},"点击上传"))),p=function(){c=H().mark(function t(n){return H().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.url||n.preview){t.next=4;break}t.next=3;var r=n.originFileObj;return new Promise(function(t,n){var e=new FileReader;e.readAsDataURL(r),e.onload=function(){return t(e.result)},e.onerror=function(t){return n(t)}});case 3:n.preview=t.sent;case 4:i(!0),s(n.url||n.preview);case 6:case"end":return t.stop()}},t)});var c,n=function(){var t=this,i=arguments;return new Promise(function(n,e){var r=c.apply(t,i);function o(t){T(r,n,e,o,a,"next",t)}function a(t){T(r,n,e,o,a,"throw",t)}o(void 0)})};return function(t){return n.apply(this,arguments)}}(),Object(g.useEffect)(function(){r&&t<70&&setTimeout(function(){a(t+30)},500)},[t,r]),h.a.createElement("div",{className:"HT-upload-components"},h.a.createElement(m.Upload,E({accept:"image/*",listType:"picture-card",onChange:function(t){var n;"removed"!==(null==(n=t.file)?void 0:n.status)&&(a(r?100:10),o(!r)),e.onChange&&e.onChange(t)},customRequest:function(t){if(!(t.file.size/1024/1024<2))return b.default.error("图片大小不能超过2M"),setTimeout(function(){return t.onError("上传失败")},500),!1;e.customRequest&&e.customRequest(t)},onPreview:p},(f=e,d={},Object.keys(f).map(function(t){w.includes(t)||(d[t]=f[t])}),d)),!r&&(null==u?void 0:u.length)>=(e.maxFiles||1)?null:l),h.a.createElement(x.default,{visible:n,footer:null,onCancel:function(){return i(!1)}},h.a.createElement("img",{alt:"example",style:{width:"100%"},src:c})));throw new Error("HTUpload请填写fileList")}i.HTDragger=function(t){return h.a.createElement("div",{className:"HT-dragger-components"},h.a.createElement(o,t,h.a.createElement("p",{className:"ant-upload-drag-icon"},h.a.createElement("img",{src:r})),h.a.createElement("p",{className:"ant-upload-text"},"将文件拖到此处,或",h.a.createElement("span",null,"点击上传"))))},n.default=i},3:function(t,n,o){"use strict";var e,r,c=function(){return e=void 0===e?Boolean(window&&document&&document.all&&!window.atob):e},a=(r={},function(t){if(void 0===r[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}r[t]=n}return r[t]}),u=[];function l(t){for(var n=-1,e=0;e<u.length;e++)if(u[e].identifier===t){n=e;break}return n}function s(t,n){for(var e={},r=[],o=0;o<t.length;o++){var a=t[o],i=n.base?a[0]+n.base:a[0],c=e[i]||0,s="".concat(i," ").concat(c),i=(e[i]=c+1,l(s)),c={css:a[1],media:a[2],sourceMap:a[3]};-1!==i?(u[i].references++,u[i].updater(c)):u.push({identifier:s,updater:function(n,t){var e,r,o;{var a;o=t.singleton?(a=h++,e=g=g||p(t),r=d.bind(null,e,a,!1),d.bind(null,e,a,!0)):(e=p(t),r=function(t,n,e){var r=e.css,o=e.media,e=e.sourceMap;o?t.setAttribute("media",o):t.removeAttribute("media");e&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(e))))," */"));if(t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,e,t),function(){var t=e;null!==t.parentNode&&t.parentNode.removeChild(t)})}return r(n),function(t){t?t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap||r(n=t):o()}}(c,n),references:1}),r.push(s)}return r}function p(t){var n=document.createElement("style"),e=t.attributes||{};if(void 0===e.nonce&&(r=o.nc)&&(e.nonce=r),Object.keys(e).forEach(function(t){n.setAttribute(t,e[t])}),"function"==typeof t.insert)t.insert(n);else{var r=a(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}return n}i=[];var i,f=function(t,n){return i[t]=n,i.filter(Boolean).join("\n")};function d(t,n,e,r){var e=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;t.styleSheet?t.styleSheet.cssText=f(n,e):(r=document.createTextNode(e),(e=t.childNodes)[n]&&t.removeChild(e[n]),e.length?t.insertBefore(r,e[n]):t.appendChild(r))}var g=null,h=0;t.exports=function(t,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=c());var i=s(t=t||[],a);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var e=l(i[n]);u[e].references--}for(var t=s(t,a),r=0;r<i.length;r++){var o=l(i[r]);0===u[o].references&&(u[o].updater(),u.splice(o,1))}i=t}}}},4:function(t,n,e){"use strict";t.exports=function(e){var s=[];return s.toString=function(){return this.map(function(t){var n=function(t,n){var e=t[1]||"",r=t[3];if(!r)return e;if(n&&"function"==typeof btoa)return t=function(t){t=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(t," */")}(r),n=r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}),[e].concat(n).concat([t]).join("\n");return[e].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},s.i=function(t,n,e){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(e)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var i=0;i<t.length;i++){var c=[].concat(t[i]);e&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),s.push(c))}},s}}},i={},o.m=a,o.c=i,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=233).default;function o(t){var n;return(i[t]||(n=i[t]={i:t,l:!1,exports:{}},a[t].call(n.exports,n,n.exports,o),n.l=!0,n)).exports}var a,i});
1
+ !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("antd"));else if("function"==typeof define&&define.amd)define(["react","antd"],n);else{var e,r="object"==typeof exports?n(require("react"),require("antd")):n(t.React,t.antd);for(e in r)("object"==typeof exports?exports:t)[e]=r[e]}}(window,function(e,r){return a={1:function(t,n){t.exports=e},166:function(t,n,e){"use strict";e.r(n);var r=e(1),o=e.n(r),a=e(2);e(172);n.default=function(t){return o.a.createElement("div",{className:"HT-icon-components"},o.a.createElement(a.Icon,t))}},167:function(t,n,e){"use strict";e.r(n);e(1);var r=e(2);e(174);n.default=r.message},168:function(t,n,e){"use strict";e.r(n);function r(t){return a.a.createElement("div",{className:"HT-modal-components"},a.a.createElement(i.Modal,t))}var o=e(1),a=e.n(o),i=e(2);e(176);r.info=i.Modal.info,r.success=i.Modal.success,r.error=i.Modal.error,r.warning=i.Modal.warning,r.confirm=i.Modal.confirm,n.default=r},169:function(t,n,e){"use strict";e.r(n);var r=e(1),o=e.n(r),a=e(2);e(178);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}n.default=function(t){return o.a.createElement("div",{className:"HT-progress-components"},o.a.createElement(a.Progress,i({width:80,strokeWidth:4},t)))}},172:function(t,n,e){var r=e(3),e=e(173),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},173:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-icon-components {\n display: inline-block;\n}\n",""]),t.exports=n},174:function(t,n,e){var r=e(3),e=e(175),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},175:function(t,n,e){(n=e(4)(!1)).push([t.i,"",""]),t.exports=n},176:function(t,n,e){var r=e(3),e=e(177),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},177:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-modal-components {\n display: inline-block;\n}\n",""]),t.exports=n},178:function(t,n,e){var r=e(3),e=e(179),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},179:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-progress-components {\n display: inline-block;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-inner {\n height: 6px;\n border-radius: 3px;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-inner .ant-progress-bg {\n height: 6px !important;\n border-radius: 3px;\n}\n.HT-progress-components .ant-progress:not(.ant-progress-circle) .ant-progress-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #636569;\n}\n.HT-progress-components .ant-progress.ant-progress-circle .ant-progress-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #144FFF;\n}\n.HT-progress-components .ant-progress-status-normal:not(.ant-progress-circle) .ant-progress-text {\n color: #636569;\n}\n.HT-progress-components .ant-progress-status-normal.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-normal.ant-progress-circle .ant-progress-circle-path {\n stroke: #144FFF !important;\n}\n.HT-progress-components .ant-progress-status-success:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-success:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #10C388;\n}\n.HT-progress-components .ant-progress-status-success.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-success.ant-progress-circle .ant-progress-circle-path {\n stroke: #10C388 !important;\n}\n.HT-progress-components .ant-progress-status-exception:not(.ant-progress-circle) .ant-progress-inner {\n background: #E9EBF1;\n}\n.HT-progress-components .ant-progress-status-exception:not(.ant-progress-circle) .ant-progress-bg {\n background-color: #FF3C4B;\n}\n.HT-progress-components .ant-progress-status-exception.ant-progress-circle .ant-progress-circle-trail {\n stroke: #E9EBF1 !important;\n}\n.HT-progress-components .ant-progress-status-exception.ant-progress-circle .ant-progress-circle-path {\n stroke: #FF3C4B !important;\n}\n",""]),t.exports=n},2:function(t,n){t.exports=r},247:function(t,n,e){var r=e(3),e=e(248),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},248:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-dragger-components {\n display: inline-block;\n}\n.HT-dragger-components .ant-upload-drag {\n width: 320px;\n height: 168px;\n background: #ffffff;\n border-radius: 4px;\n border: 1px solid #ececec;\n}\n.HT-dragger-components .ant-upload-drag:hover {\n border: 1px solid #d0dcff;\n}\n.HT-dragger-components .ant-upload-drag:active {\n background: #f3f6ff;\n border: 1px solid #144fff;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn {\n margin: 0;\n padding: 0;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-drag-icon {\n display: inline-block;\n width: 48px;\n height: 36px;\n margin-bottom: 14px;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-drag-icon > img {\n width: 100%;\n height: 100%;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n line-height: 20px;\n}\n.HT-dragger-components .ant-upload-drag .ant-upload-btn .ant-upload-drag-container .ant-upload-text > span {\n color: #144fff;\n}\n",""]),t.exports=n},249:function(t,n,e){var r=e(3),e=e(250),o={insert:"head",singleton:!1};r(e="string"==typeof(e=e.__esModule?e.default:e)?[[t.i,e,""]]:e,o);t.exports=e.locals||{}},250:function(t,n,e){(n=e(4)(!1)).push([t.i,".HT-upload-components {\n display: inline-block;\n}\n.HT-upload-components .ant-upload-picture-card-wrapper {\n display: flex;\n flex-wrap: wrap;\n}\n.HT-upload-components .ant-upload-list-picture-card .ant-upload-list-picture-card-container:has(.ant-upload-list-item-uploading) {\n display: none;\n}\n.HT-upload-components .ant-upload-select-picture-card {\n border: none;\n background-color: rgba(0, 0, 0, 0);\n}\n.HT-upload-components .ant-upload-select-picture-card .ant-upload {\n padding: 0;\n}\n.HT-upload-components .img-upload-content {\n width: 104px;\n height: 104px;\n background: #fafafa;\n border-radius: 4px;\n border: 1px solid #ececec;\n display: flex;\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n}\n.HT-upload-components .img-upload-content:hover {\n border: 1px dashed #D0DCFF;\n}\n.HT-upload-components .img-upload-content:active {\n border: 1px dashed #0640ED;\n}\n.HT-upload-components .img-upload-content .upload-loading-percent {\n width: 104px;\n height: 104px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.HT-upload-components .img-upload-content .upload-plus-icon {\n font-size: 24px;\n margin-top: 24px;\n}\n.HT-upload-components .img-upload-content .upload-text {\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #323335;\n margin-top: 10px;\n}\n",""]),t.exports=n},251:function(t,n,e){"use strict";e.r(n);var g=e(1),h=e.n(g),m=e(2),y=e(166),v=e(169),b=e(167),x=e(168),r=e.p+"53c2f5e1cc6c85dbf8c90b3cb760495b.png",o=(e(247),m.Upload.Dragger),w=["onChange","customRequest","onPreview"];e(249);function j(t){return(j="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})(t)}function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function H(){H=function(){return i};var i={},t=Object.prototype,s=t.hasOwnProperty,u=Object.defineProperty||function(t,n,e){t[n]=e.value},n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",e=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function a(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{a({},"")}catch(t){a=function(t,n,e){return t[n]=e}}function c(t,n,e,r){var o,a,i,c,n=n&&n.prototype instanceof f?n:f,n=Object.create(n.prototype),r=new w(r||[]);return u(n,"_invoke",{value:(o=t,a=e,i=r,c="suspendedStart",function(t,n){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw n;return T()}for(i.method=t,i.arg=n;;){var e=i.delegate;if(e){e=function t(n,e){var r=e.method,o=n.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&n.iterator.return&&(e.method="return",e.arg=void 0,t(n,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;r=l(o,n.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;o=r.arg;return o?o.done?(e[n.resultName]=o.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}(e,i);if(e){if(e===p)continue;return e}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===c)throw c="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);c="executing";e=l(o,a,i);if("normal"===e.type){if(c=i.done?"completed":"suspendedYield",e.arg===p)continue;return{value:e.arg,done:i.done}}"throw"===e.type&&(c="completed",i.method="throw",i.arg=e.arg)}})}),n}function l(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}i.wrap=c;var p={};function f(){}function d(){}function g(){}var n={},h=(a(n,r,function(){return this}),Object.getPrototypeOf),h=h&&h(h(E([]))),m=(h&&h!==t&&s.call(h,r)&&(n=h),g.prototype=f.prototype=Object.create(n));function y(t){["next","throw","return"].forEach(function(n){a(t,n,function(t){return this._invoke(n,t)})})}function v(i,c){var n;u(this,"_invoke",{value:function(e,r){function t(){return new c(function(t,n){!function n(t,e,r,o){var a,t=l(i[t],i,e);if("throw"!==t.type)return(e=(a=t.arg).value)&&"object"==j(e)&&s.call(e,"__await")?c.resolve(e.__await).then(function(t){n("next",t,r,o)},function(t){n("throw",t,r,o)}):c.resolve(e).then(function(t){a.value=t,r(a)},function(t){return n("throw",t,r,o)});o(t.arg)}(e,r,t,n)})}return n=n?n.then(t,t):t()}})}function b(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function x(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(n){if(n){var e,t=n[r];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return e=-1,(t=function t(){for(;++e<n.length;)if(s.call(n,e))return t.value=n[e],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:T}}function T(){return{value:void 0,done:!0}}return u(m,"constructor",{value:d.prototype=g,configurable:!0}),u(g,"constructor",{value:d,configurable:!0}),d.displayName=a(g,o,"GeneratorFunction"),i.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a(t,o,"GeneratorFunction")),t.prototype=Object.create(m),t},i.awrap=function(t){return{__await:t}},y(v.prototype),a(v.prototype,e,function(){return this}),i.AsyncIterator=v,i.async=function(t,n,e,r,o){void 0===o&&(o=Promise);var a=new v(c(t,n,e,r),o);return i.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},y(m),a(m,o,"Generator"),a(m,r,function(){return this}),a(m,"toString",function(){return"[object Generator]"}),i.keys=function(t){var n,e=Object(t),r=[];for(n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},i.values=E,w.prototype={constructor:w,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(x),!t)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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(e){if(this.done)throw e;var r=this;function t(t,n){return a.type="throw",a.arg=e,r.next=t,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,n){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&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),x(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var e,r,o=this.tryEntries[n];if(o.tryLoc===t)return"throw"===(e=o.completion).type&&(r=e.arg,x(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:E(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},i}function T(t,n,e,r,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void e(t)}c.done?n(s):Promise.resolve(s).then(r,o)}function O(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;s=!1}else for(;!(s=(r=a.call(e)).done)&&(c.push(r.value),c.length!==n);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(t,n){var e;if(t)return"string"==typeof t?a(t,n):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,n):void 0}(t,n)||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.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function i(e){var r,o,t,a,n,i,c,s,u,l,p,f,d;if("fileList"in e)return u=O(Object(g.useState)(!1),2),r=u[0],o=u[1],u=O(Object(g.useState)(0),2),t=u[0],a=u[1],n=(u=O(Object(g.useState)(!1),2))[0],i=u[1],c=(u=O(Object(g.useState)(""),2))[0],s=u[1],u=(e.fileList||[]).filter(function(t){return"uploading"!==t.status}),l=h.a.createElement("div",{className:"img-upload-content"},r?h.a.createElement("div",{className:"upload-loading-percent"},h.a.createElement(v.default,{type:"circle",percent:t})):h.a.createElement(h.a.Fragment,null,h.a.createElement(y.default,{className:"upload-plus-icon",type:"plus"}),h.a.createElement("div",{className:"upload-text"},"点击上传"))),p=function(){c=H().mark(function t(n){return H().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.url||n.preview){t.next=4;break}t.next=3;var r=n.originFileObj;return new Promise(function(t,n){var e=new FileReader;e.readAsDataURL(r),e.onload=function(){return t(e.result)},e.onerror=function(t){return n(t)}});case 3:n.preview=t.sent;case 4:i(!0),s(n.url||n.preview);case 6:case"end":return t.stop()}},t)});var c,n=function(){var t=this,i=arguments;return new Promise(function(n,e){var r=c.apply(t,i);function o(t){T(r,n,e,o,a,"next",t)}function a(t){T(r,n,e,o,a,"throw",t)}o(void 0)})};return function(t){return n.apply(this,arguments)}}(),Object(g.useEffect)(function(){r&&t<70&&setTimeout(function(){a(t+30)},500)},[t,r]),h.a.createElement("div",{className:"HT-upload-components"},h.a.createElement(m.Upload,E({accept:"image/*",listType:"picture-card",onChange:function(t){var n;"removed"!==(null==(n=t.file)?void 0:n.status)&&(a(r?100:10),o(!r)),e.onChange&&e.onChange(t)},customRequest:function(t){if(!(t.file.size/1024/1024<2))return b.default.error("图片大小不能超过2M"),setTimeout(function(){return t.onError("上传失败")},500),!1;e.customRequest&&e.customRequest(t)},onPreview:p},(f=e,d={},Object.keys(f).map(function(t){w.includes(t)||(d[t]=f[t])}),d)),!r&&(null==u?void 0:u.length)>=(e.maxFiles||1)?null:l),h.a.createElement(x.default,{visible:n,footer:null,onCancel:function(){return i(!1)}},h.a.createElement("img",{alt:"example",style:{width:"100%"},src:c})));throw new Error("HTUpload请填写fileList")}i.HTDragger=function(t){return h.a.createElement("div",{className:"HT-dragger-components"},h.a.createElement(o,t,h.a.createElement("p",{className:"ant-upload-drag-icon"},h.a.createElement("img",{src:r})),h.a.createElement("p",{className:"ant-upload-text"},"将文件拖到此处,或",h.a.createElement("span",null,"点击上传"))))},n.default=i},3:function(t,n,o){"use strict";var e,r,c=function(){return e=void 0===e?Boolean(window&&document&&document.all&&!window.atob):e},a=(r={},function(t){if(void 0===r[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}r[t]=n}return r[t]}),u=[];function l(t){for(var n=-1,e=0;e<u.length;e++)if(u[e].identifier===t){n=e;break}return n}function s(t,n){for(var e={},r=[],o=0;o<t.length;o++){var a=t[o],i=n.base?a[0]+n.base:a[0],c=e[i]||0,s="".concat(i," ").concat(c),i=(e[i]=c+1,l(s)),c={css:a[1],media:a[2],sourceMap:a[3]};-1!==i?(u[i].references++,u[i].updater(c)):u.push({identifier:s,updater:function(n,t){var e,r,o;{var a;o=t.singleton?(a=h++,e=g=g||p(t),r=d.bind(null,e,a,!1),d.bind(null,e,a,!0)):(e=p(t),r=function(t,n,e){var r=e.css,o=e.media,e=e.sourceMap;o?t.setAttribute("media",o):t.removeAttribute("media");e&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(e))))," */"));if(t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,e,t),function(){var t=e;null!==t.parentNode&&t.parentNode.removeChild(t)})}return r(n),function(t){t?t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap||r(n=t):o()}}(c,n),references:1}),r.push(s)}return r}function p(t){var n=document.createElement("style"),e=t.attributes||{};if(void 0===e.nonce&&(r=o.nc)&&(e.nonce=r),Object.keys(e).forEach(function(t){n.setAttribute(t,e[t])}),"function"==typeof t.insert)t.insert(n);else{var r=a(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}return n}i=[];var i,f=function(t,n){return i[t]=n,i.filter(Boolean).join("\n")};function d(t,n,e,r){var e=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;t.styleSheet?t.styleSheet.cssText=f(n,e):(r=document.createTextNode(e),(e=t.childNodes)[n]&&t.removeChild(e[n]),e.length?t.insertBefore(r,e[n]):t.appendChild(r))}var g=null,h=0;t.exports=function(t,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=c());var i=s(t=t||[],a);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var e=l(i[n]);u[e].references--}for(var t=s(t,a),r=0;r<i.length;r++){var o=l(i[r]);0===u[o].references&&(u[o].updater(),u.splice(o,1))}i=t}}}},4:function(t,n,e){"use strict";t.exports=function(e){var s=[];return s.toString=function(){return this.map(function(t){var n=function(t,n){var e=t[1]||"",r=t[3];if(!r)return e;if(n&&"function"==typeof btoa)return t=function(t){t=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(t," */")}(r),n=r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}),[e].concat(n).concat([t]).join("\n");return[e].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},s.i=function(t,n,e){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(e)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var i=0;i<t.length;i++){var c=[].concat(t[i]);e&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),s.push(c))}},s}}},i={},o.m=a,o.c=i,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=251).default;function o(t){var n;return(i[t]||(n=i[t]={i:t,l:!1,exports:{}},a[t].call(n.exports,n,n.exports,o),n.l=!0,n)).exports}var a,i});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ht-components",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "files": [