UNPKG

12.9 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.semon=t(require("react"),require("react-dom")):e.semon=t(e.react,e["react-dom"])}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(9)()},function(e,t,n){"use strict";t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return"string"==typeof e||""===e}).map(function(e){return e.trim()}).join(" ")}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){e.exports=n(16)},,function(e,t,n){"use strict";n.r(t);var r=n(0),c=n.n(r);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=c.a.createElement("path",{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8c-16.4 12.8-16.4 37.5 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}),a=function(e){return c.a.createElement("svg",o({className:"left_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),i)};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=c.a.createElement("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z"}),u=function(e){return c.a.createElement("svg",s({className:"right_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),l)};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=c.a.createElement("path",{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6c3.2 3.2 8.4 3.2 11.6 0l43.6-43.5c3.2-3.2 3.2-8.4 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}),h=function(e){return c.a.createElement("svg",f({className:"search_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),p)};function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=c.a.createElement("path",{d:"M858.5 763.6c-18.9-44.8-46.1-85-80.6-119.5-34.5-34.5-74.7-61.6-119.5-80.6-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6-34.5 34.5-61.6 74.7-80.6 119.5C146.9 807.5 137 854 136 901.8c-.1 4.5 3.5 8.2 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60c4.5 0 8.1-3.7 8-8.2-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}),v=function(e){return c.a.createElement("svg",m({className:"user_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),y)};function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=c.a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}),b=function(e){return c.a.createElement("svg",d({className:"check-circle-fill_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),g)};function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var w=c.a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}),_=function(e){return c.a.createElement("svg",O({className:"close-circle-fill_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),w)};function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var E=c.a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"}),x=function(e){return c.a.createElement("svg",j({className:"info-circle-fill_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),E)};function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var S,T=c.a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"}),C=function(e){return c.a.createElement("svg",P({className:"warning-circle-fill_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024"},e),T)},N=n(3);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=Object(N.a)("left","right","search","user","check-circle-fill","close-circle-fill","info-circle-fill","warning-circle-fill"),M=(z(S={left:a,right:u,search:h,user:v},"check-circle-fill",b),z(S,"close-circle-fill",_),z(S,"info-circle-fill",x),z(S,"warning-circle-fill",C),S),q=n(14),k=n.n(q),B=n(1),R=n(4),I=n(2);function A(e){return(A="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})(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,H(t).apply(this,arguments))}var n,c,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(t,r["Component"]),n=t,(c=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,c=e.type,o=e.spin,i=M[c],a=Object(I.a)(t,k.a.icon,o&&k.a.spin);return r.createElement(i,{className:a,style:n,"data-type":c,viewBox:"64 64 896 896"})}}])&&V(n.prototype,c),o&&V(n,o),t}();D.displayName="Icon",D.Type=L,D.propsType={className:B.string,style:B.object,type:B.oneOf(L).isRequired,spin:B.bool,children:R.explicitNull()};var U=D;t.default=U},,,function(e,t,n){"use strict";var r=n(10);function c(){}function o(){}o.resetWarningCache=c,e.exports=function(){function e(e,t,n,c,o,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:c};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,function(e,t,n){e.exports={message:"s-message",notice:"s-notice",active:"s-active",hide:"s-hide","hide-2":"s-hide-2",error:"s-error",info:"s-info",success:"s-success",warn:"s-warn","notice-icon":"s-notice-icon"}},function(e,t,n){e.exports={icon:"s-icon",spin:"s-spin"}},,function(e,t,n){"use strict";function r(){return null}function c(){return r}r.isRequired=r,e.exports={and:c,between:c,booleanSome:c,childrenHavePropXorChildren:c,childrenOf:c,childrenOfType:c,childrenSequenceOf:c,componentWithName:c,disallowedIf:c,elementType:c,empty:c,explicitNull:c,forbidExtraProps:Object,integer:c,keysOf:c,mutuallyExclusiveProps:c,mutuallyExclusiveTrueProps:c,nChildren:c,nonNegativeInteger:r,nonNegativeNumber:c,numericString:c,object:c,or:c,range:c,requiredBy:c,restrictedProp:c,sequenceOf:c,shape:c,stringStartsWith:c,uniqueArray:c,uniqueArrayOf:c,valuesOf:c,withShape:c}},,,,,function(e,n){e.exports=t},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),c=n(21),o=n(13),i=n.n(o),a=n(6);var s=300,l={container:document.body,duration:3e3},u=document.createElement("div");function f(){u.remove(),u=document.createElement("div")}function p(e,t,n,o){var a,f,p=l.duration;(t||0===t)&&("number"==typeof t&&(p=t,n&&(a=n)),"function"==typeof t&&(a=t)),(f=l.container).contains(u)||f.appendChild(u);var h=document.createElement("div");h.classList.add(i.a.notice),h.style.transition="all ".concat(s,"ms"),o&&h.classList.add(i.a[o]);var m,y=r.createElement(r.Fragment,null,e);return c.render(y,h),u.append(h),setTimeout(function(){h.classList.add(i.a.active)},50),0!==p&&setTimeout(function(){v()},p),v;function v(){h.style.height=h.offsetHeight+"px",h.classList.add(i.a.hide),setTimeout(function(){h.classList.add(i.a["hide-2"]),setTimeout(function(){c.unmountComponentAtNode(h),h.remove()},s)},s),a&&a(),clearTimeout(m)}}u.className=i.a.message;var h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};h.notice=function(e,t,n){return p(e,t,n)},h.config=function(e){var t=e.container,n=e.duration;t&&(f(),l.container=t),n&&(l.duration=n)},h.distroy=f;[{name:"info",icon:"info-circle-fill"},{name:"error",icon:"close-circle-fill"},{name:"warn",icon:"warning-circle-fill"},{name:"success",icon:"check-circle-fill"}].forEach(function(e){h[e.name]=function(t,n,c){return p(r.createElement(r.Fragment,null,r.createElement(a.default,{type:e.icon,className:i.a["notice-icon"]}),t),n,c,e.name)}}),t.default=h}])});
\No newline at end of file