mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
128 lines
142 KiB
JavaScript
128 lines
142 KiB
JavaScript
;/*!node_modules/reactcss/lib/flattenNames.js*/
|
|
amis.define("node_modules/reactcss/lib/flattenNames",(function(e,n,t,u){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.flattenNames=void 0;var a=l(e("node_modules/lodash/isString")),d=l(e("node_modules/lodash/forOwn")),o=l(e("node_modules/lodash/isPlainObject")),s=l(e("node_modules/lodash/map"));function l(e){return e&&e.__esModule?e:{default:e}}var r=n.flattenNames=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return(0,s.default)(n,(function(n){Array.isArray(n)?e(n).map((function(e){return t.push(e)})):(0,o.default)(n)?(0,d.default)(n,(function(e,n){!0===e&&t.push(n),t.push(n+"-"+e)})):(0,a.default)(n)&&t.push(n)})),t};n.default=r}));
|
|
;/*!node_modules/reactcss/lib/mergeClasses.js*/
|
|
amis.define("node_modules/reactcss/lib/mergeClasses",(function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mergeClasses=void 0;var o=l(e("node_modules/lodash/forOwn")),a=l(e("node_modules/lodash/cloneDeep")),s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e};function l(e){return e&&e.__esModule?e:{default:e}}var u=n.mergeClasses=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.default&&(0,a.default)(e.default)||{};return n.map((function(n){var t=e[n];return t&&(0,o.default)(t,(function(e,n){r[n]||(r[n]={}),r[n]=s({},r[n],t[n])})),n})),r};n.default=u}));
|
|
;/*!node_modules/reactcss/lib/autoprefix.js*/
|
|
amis.define("node_modules/reactcss/lib/autoprefix",(function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var n,i=e("node_modules/lodash/forOwn"),s=(n=i)&&n.__esModule?n:{default:n},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};var a={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var r=t[e];return r||{extend:e}}},f=t.autoprefix=function(e){var t={};return(0,s.default)(e,(function(e,r){var o={};(0,s.default)(e,(function(e,t){var r=a[t];r?o=u({},o,r(e)):o[t]=e})),t[r]=o})),t};t.default=f}));
|
|
;/*!node_modules/reactcss/lib/components/hover.js*/
|
|
amis.define("node_modules/reactcss/lib/components/hover",(function(e,t,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u=e("node_modules/react/index"),c=(r=u)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,u;s(this,o);for(var l=arguments.length,f=Array(l),p=0;p<l;p++)f[p]=arguments[p];return r=u=i(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(f))),u.state={hover:!1},u.handleMouseOver=function(){return u.setState({hover:!0})},u.handleMouseOut=function(){return u.setState({hover:!1})},u.render=function(){return c.default.createElement(t,{onMouseOver:u.handleMouseOver,onMouseOut:u.handleMouseOut},c.default.createElement(e,a({},u.props,u.state)))},i(u,r)}return l(o,n),o}(c.default.Component)};t.default=f}));
|
|
;/*!node_modules/reactcss/lib/components/active.js*/
|
|
amis.define("node_modules/reactcss/lib/components/active",(function(e,t,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=e("node_modules/react/index"),u=(r=c)&&r.__esModule?r:{default:r};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,c;i(this,o);for(var l=arguments.length,f=Array(l),p=0;p<l;p++)f[p]=arguments[p];return r=c=s(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(f))),c.state={active:!1},c.handleMouseDown=function(){return c.setState({active:!0})},c.handleMouseUp=function(){return c.setState({active:!1})},c.render=function(){return u.default.createElement(t,{onMouseDown:c.handleMouseDown,onMouseUp:c.handleMouseUp},u.default.createElement(e,a({},c.props,c.state)))},s(c,r)}return l(o,n),o}(u.default.Component)};t.default=f}));
|
|
;/*!node_modules/reactcss/lib/loop.js*/
|
|
amis.define("node_modules/reactcss/lib/loop",(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var i={},n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];i[e]=t};return 0===e&&n("first-child"),e===t-1&&n("last-child"),(0===e||e%2==0)&&n("even"),1===Math.abs(e%2)&&n("odd"),n("nth-child",e),i}}));
|
|
;/*!node_modules/reactcss/lib/index.js*/
|
|
amis.define("node_modules/reactcss/lib/index",(function(e,o,l,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ReactCSS=o.loop=o.handleActive=o.handleHover=o.hover=void 0;var a=u(e("node_modules/reactcss/lib/flattenNames")),d=u(e("node_modules/reactcss/lib/mergeClasses")),s=u(e("node_modules/reactcss/lib/autoprefix")),n=u(e("node_modules/reactcss/lib/components/hover")),r=u(e("node_modules/reactcss/lib/components/active")),c=u(e("node_modules/reactcss/lib/loop"));function u(e){return e&&e.__esModule?e:{default:e}}o.hover=n.default,o.handleHover=n.default,o.handleActive=r.default,o.loop=c.default;var i=o.ReactCSS=function(e){for(var o=arguments.length,l=Array(o>1?o-1:0),t=1;t<o;t++)l[t-1]=arguments[t];var n=(0,a.default)(l),r=(0,d.default)(e,n);return(0,s.default)(r)};o.default=i}));
|
|
;/*!node_modules/react-color/lib/helpers/alpha.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/alpha",(function(e,t,n,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,a,r){var i=r.clientWidth,o=r.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(r.getBoundingClientRect().left+window.pageXOffset),s=u-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var g=void 0;if(g=s<0?0:s>o?1:Math.round(100*s/o)/100,t.a!==g)return{h:t.h,s:t.s,l:t.l,a:g,source:"rgb"}}else{var d=void 0;if(a!==(d=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}}));
|
|
;/*!node_modules/react-color/lib/helpers/checkboard.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/checkboard",(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={},i=t.render=function(e,t,r,n){if("undefined"==typeof document&&!n)return null;var l=n?new n:document.createElement("canvas");l.width=2*r,l.height=2*r;var i=l.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,l.width,l.height),i.fillStyle=t,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),l.toDataURL()):null};t.get=function(e,t,r,n){var a=e+"-"+t+"-"+r+(n?"-server":"");if(l[a])return l[a];var c=i(e,t,r,n);return l[a]=c,c}}));
|
|
;/*!node_modules/react-color/lib/components/common/Checkboard.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Checkboard",(function(e,r,t,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Checkboard=void 0;var n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a=e("node_modules/react/index"),d=i(a),l=i(e("node_modules/reactcss/lib/index")),s=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}(e("node_modules/react-color/lib/helpers/checkboard"));function i(e){return e&&e.__esModule?e:{default:e}}var u=r.Checkboard=function(e){var r=e.white,t=e.grey,o=e.size,i=e.renderers,u=e.borderRadius,c=e.boxShadow,f=e.children,p=(0,l.default)({default:{grid:{borderRadius:u,boxShadow:c,absolute:"0px 0px 0px 0px",background:"url("+s.get(r,t,o,i.canvas)+") center left"}}});return(0,a.isValidElement)(f)?d.default.cloneElement(f,n({},f.props,{style:n({},f.props.style,p.grid)})):d.default.createElement("div",{style:p.grid})};u.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},r.default=u}));
|
|
;/*!node_modules/react-color/lib/components/common/Alpha.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Alpha",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var 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},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e("node_modules/react/index"),s=d(i),l=d(e("node_modules/reactcss/lib/index")),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/alpha")),p=d(e("node_modules/react-color/lib/components/common/Checkboard"));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=t.Alpha=function(e){function t(){var e,n,r;c(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=u.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,l.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return s.default.createElement("div",{style:n.alpha},s.default.createElement("div",{style:n.checkboard},s.default.createElement(p.default,{renderers:this.props.renderers})),s.default.createElement("div",{style:n.gradient}),s.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.default.createElement("div",{style:n.pointer},this.props.pointer?s.default.createElement(this.props.pointer,this.props):s.default.createElement("div",{style:n.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=f}));
|
|
;/*!node_modules/react-color/lib/components/common/EditableInput.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/EditableInput",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e("node_modules/react/index"),l=u(o),s=u(e("node_modules/reactcss/lib/index"));function u(e){return e&&e.__esModule?e:{default:e}}var i=[38,40],p=1,h=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,i.indexOf(t)>-1)){var a=n.getArrowOffset(),o=38===e.keyCode?r+a:r-a;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+p++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,s.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.default.createElement("div",{style:t.wrap},l.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);t.default=h}));
|
|
;/*!node_modules/react-color/lib/helpers/hue.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/hue",(function(e,t,i,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,i,l){var n=l.clientWidth,s=l.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,r=a-(l.getBoundingClientRect().left+window.pageXOffset),u=o-(l.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var f=void 0;if(u<0)f=359;else if(u>s)f=0;else{f=360*(-100*u/s+100)/100}if(i.h!==f)return{h:f,s:i.s,l:i.l,a:i.a,source:"hsl"}}else{var c=void 0;if(r<0)c=0;else if(r>n)c=359;else{c=360*(100*r/n)/100}if(i.h!==c)return{h:c,s:i.s,l:i.l,a:i.a,source:"hsl"}}return null}}));
|
|
;/*!node_modules/react-color/lib/components/common/Hue.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Hue",(function(e,n,t,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Hue=void 0;var r=function(){function e(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(n,t,o){return t&&e(n.prototype,t),o&&e(n,o),n}}(),i=e("node_modules/react/index"),a=s(i),u=s(e("node_modules/reactcss/lib/index")),l=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(e("node_modules/react-color/lib/helpers/hue"));function s(e){return e&&e.__esModule?e:{default:e}}function f(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}var d=n.Hue=function(e){function n(){var e,t,o;f(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=o=p(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),o.handleChange=function(e){var n=l.calculateChange(e,o.props.direction,o.props.hsl,o.container);n&&"function"==typeof o.props.onChange&&o.props.onChange(n,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},p(o,t)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),r(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.direction,t=void 0===n?"horizontal":n,o=(0,u.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===t});return a.default.createElement("div",{style:o.hue},a.default.createElement("div",{className:"hue-"+t,style:o.container,ref:function(n){return e.container=n},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),a.default.createElement("div",{style:o.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:o.slider}))))}}]),n}(i.PureComponent||i.Component);n.default=d}));
|
|
;/*!node_modules/react-color/lib/components/common/Raised.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Raised",(function(e,a,d,o){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Raised=void 0;var t=l(e("node_modules/react/index")),r=l(e("node_modules/prop-types/index")),p=l(e("node_modules/reactcss/lib/index")),b=l(e("node_modules/lodash/merge"));function l(e){return e&&e.__esModule?e:{default:e}}var n=a.Raised=function(e){var a=e.zDepth,d=e.radius,o=e.background,r=e.children,l=e.styles,n=void 0===l?{}:l,s=(0,p.default)((0,b.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+a+"px "+4*a+"px rgba(0,0,0,.24)",borderRadius:d,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},n),{"zDepth-1":1===a});return t.default.createElement("div",{style:s.wrap},t.default.createElement("div",{style:s.bg}),t.default.createElement("div",{style:s.content},r))};n.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},n.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},a.default=n}));
|
|
;/*!node_modules/react-color/lib/helpers/saturation.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/saturation",(function(e,t,n,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var a=n.getBoundingClientRect(),o=a.width,i=a.height,u="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,g="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=u-(n.getBoundingClientRect().left+window.pageXOffset),r=g-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>o&&(c=o),r<0?r=0:r>i&&(r=i);var s=c/o,p=1-r/i;return{h:t.h,s:s,v:p,a:t.a,source:"hsv"}}}));
|
|
;/*!node_modules/react-color/lib/components/common/Saturation.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Saturation",(function(e,t,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=e("node_modules/react/index"),i=c(a),s=c(e("node_modules/reactcss/lib/index")),u=c(e("node_modules/lodash/throttle")),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/saturation"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,u.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,r=t.black,a=t.pointer,u=t.circle,l=(0,s.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:r,pointer:a,circle:u}},{custom:!!this.props.style});return i.default.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),i.default.createElement("div",{style:l.white,className:"saturation-white"},i.default.createElement("div",{style:l.black,className:"saturation-black"}),i.default.createElement("div",{style:l.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:l.circle}))))}}]),t}(a.PureComponent||a.Component);t.default=p}));
|
|
;/*!node_modules/tinycolor2/cjs/tinycolor.js*/
|
|
amis.define("node_modules/tinycolor2/cjs/tinycolor",(function(t,r,e,a){var n,i;n=this,i=function(){"use strict";function t(r){return t="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(r)}var r=/^\s+/,e=/\s+$/;function a(n,i){if(i=i||{},(n=n||"")instanceof a)return n;if(!(this instanceof a))return new a(n,i);var o=function(a){var n,i,o,h={r:0,g:0,b:0},s=1,f=null,u=null,l=null,c=!1,d=!1;return"string"==typeof a&&(a=function(t){t=t.replace(r,"").replace(e,"").toLowerCase();var a,n=!1;if(y[t])t=y[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(a=T.rgb.exec(t))?{r:a[1],g:a[2],b:a[3]}:(a=T.rgba.exec(t))?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=T.hsl.exec(t))?{h:a[1],s:a[2],l:a[3]}:(a=T.hsla.exec(t))?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=T.hsv.exec(t))?{h:a[1],s:a[2],v:a[3]}:(a=T.hsva.exec(t))?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=T.hex8.exec(t))?{r:w(a[1]),g:w(a[2]),b:w(a[3]),a:F(a[4]),format:n?"name":"hex8"}:(a=T.hex6.exec(t))?{r:w(a[1]),g:w(a[2]),b:w(a[3]),format:n?"name":"hex"}:(a=T.hex4.exec(t))?{r:w(a[1]+""+a[1]),g:w(a[2]+""+a[2]),b:w(a[3]+""+a[3]),a:F(a[4]+""+a[4]),format:n?"name":"hex8"}:!!(a=T.hex3.exec(t))&&{r:w(a[1]+""+a[1]),g:w(a[2]+""+a[2]),b:w(a[3]+""+a[3]),format:n?"name":"hex"}}(a)),"object"==t(a)&&(j(a.r)&&j(a.g)&&j(a.b)?(n=a.r,i=a.g,o=a.b,h={r:255*A(n,255),g:255*A(i,255),b:255*A(o,255)},c=!0,d="%"===String(a.r).substr(-1)?"prgb":"rgb"):j(a.h)&&j(a.s)&&j(a.v)?(f=H(a.s),u=H(a.v),h=function(t,r,e){t=6*A(t,360),r=A(r,100),e=A(e,100);var a=Math.floor(t),n=t-a,i=e*(1-r),o=e*(1-n*r),h=e*(1-(1-n)*r),s=a%6;return{r:255*[e,o,i,i,h,e][s],g:255*[h,e,e,o,i,i][s],b:255*[i,i,h,e,e,o][s]}}(a.h,f,u),c=!0,d="hsv"):j(a.h)&&j(a.s)&&j(a.l)&&(f=H(a.s),l=H(a.l),h=function(t,r,e){var a,n,i;function o(t,r,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(t=A(t,360),r=A(r,100),e=A(e,100),0===r)a=n=i=e;else{var h=e<.5?e*(1+r):e+r-e*r,s=2*e-h;a=o(s,h,t+1/3),n=o(s,h,t),i=o(s,h,t-1/3)}return{r:255*a,g:255*n,b:255*i}}(a.h,f,l),c=!0,d="hsl"),a.hasOwnProperty("a")&&(s=a.a)),s=x(s),{ok:c,format:a.format||d,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:s}}(n);this._originalInput=n,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function n(t,r,e){t=A(t,255),r=A(r,255),e=A(e,255);var a,n,i=Math.max(t,r,e),o=Math.min(t,r,e),h=(i+o)/2;if(i==o)a=n=0;else{var s=i-o;switch(n=h>.5?s/(2-i-o):s/(i+o),i){case t:a=(r-e)/s+(r<e?6:0);break;case r:a=(e-t)/s+2;break;case e:a=(t-r)/s+4}a/=6}return{h:a,s:n,l:h}}function i(t,r,e){t=A(t,255),r=A(r,255),e=A(e,255);var a,n,i=Math.max(t,r,e),o=Math.min(t,r,e),h=i,s=i-o;if(n=0===i?0:s/i,i==o)a=0;else{switch(i){case t:a=(r-e)/s+(r<e?6:0);break;case r:a=(e-t)/s+2;break;case e:a=(t-r)/s+4}a/=6}return{h:a,s:n,v:h}}function o(t,r,e,a){var n=[S(Math.round(t).toString(16)),S(Math.round(r).toString(16)),S(Math.round(e).toString(16))];return a&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function h(t,r,e,a){return[S(R(a)),S(Math.round(t).toString(16)),S(Math.round(r).toString(16)),S(Math.round(e).toString(16))].join("")}function s(t,r){r=0===r?0:r||10;var e=a(t).toHsl();return e.s-=r/100,e.s=k(e.s),a(e)}function f(t,r){r=0===r?0:r||10;var e=a(t).toHsl();return e.s+=r/100,e.s=k(e.s),a(e)}function u(t){return a(t).desaturate(100)}function l(t,r){r=0===r?0:r||10;var e=a(t).toHsl();return e.l+=r/100,e.l=k(e.l),a(e)}function c(t,r){r=0===r?0:r||10;var e=a(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-r/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-r/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-r/100*255))),a(e)}function d(t,r){r=0===r?0:r||10;var e=a(t).toHsl();return e.l-=r/100,e.l=k(e.l),a(e)}function g(t,r){var e=a(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,a(e)}function b(t){var r=a(t).toHsl();return r.h=(r.h+180)%360,a(r)}function m(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=a(t).toHsl(),n=[a(t)],i=360/r,o=1;o<r;o++)n.push(a({h:(e.h+o*i)%360,s:e.s,l:e.l}));return n}function p(t){var r=a(t).toHsl(),e=r.h;return[a(t),a({h:(e+72)%360,s:r.s,l:r.l}),a({h:(e+216)%360,s:r.s,l:r.l})]}function _(t,r,e){r=r||6,e=e||30;var n=a(t).toHsl(),i=360/e,o=[a(t)];for(n.h=(n.h-(i*r>>1)+720)%360;--r;)n.h=(n.h+i)%360,o.push(a(n));return o}function v(t,r){r=r||6;for(var e=a(t).toHsv(),n=e.h,i=e.s,o=e.v,h=[],s=1/r;r--;)h.push(a({h:n,s:i,v:o})),o=(o+s)%1;return h}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,a=this.toRgb();return t=a.r/255,r=a.g/255,e=a.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),a=Math.round(100*t.v);return 1==this._a?"hsv("+r+", "+e+"%, "+a+"%)":"hsva("+r+", "+e+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=n(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=n(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),a=Math.round(100*t.l);return 1==this._a?"hsl("+r+", "+e+"%, "+a+"%)":"hsla("+r+", "+e+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return o(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,r,e,a,n){var i=[S(Math.round(t).toString(16)),S(Math.round(r).toString(16)),S(Math.round(e).toString(16)),S(R(a))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*A(this._r,255))+"%",g:Math.round(100*A(this._g,255))+"%",b:Math.round(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%)":"rgba("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+h(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=a(t);e="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,a=this._a<1&&this._a>=0;return r||!a||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(e=this.toRgbString()),"prgb"===t&&(e=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(e=this.toHexString()),"hex3"===t&&(e=this.toHexString(!0)),"hex4"===t&&(e=this.toHex8String(!0)),"hex8"===t&&(e=this.toHex8String()),"name"===t&&(e=this.toName()),"hsl"===t&&(e=this.toHslString()),"hsv"===t&&(e=this.toHsvString()),e||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(p,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},a.fromRatio=function(r,e){if("object"==t(r)){var n={};for(var i in r)r.hasOwnProperty(i)&&(n[i]="a"===i?r[i]:H(r[i]));r=n}return a(r,e)},a.equals=function(t,r){return!(!t||!r)&&a(t).toRgbString()==a(r).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,r,e){e=0===e?0:e||50;var n=a(t).toRgb(),i=a(r).toRgb(),o=e/100;return a({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},a.readability=function(t,r){var e=a(t),n=a(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},a.isReadable=function(t,r,e){var n,i,o,h,s,f=a.readability(t,r);switch(i=!1,(o=e,h=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase(),s=(o.size||"small").toLowerCase(),"AA"!==h&&"AAA"!==h&&(h="AA"),"small"!==s&&"large"!==s&&(s="small"),n={level:h,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=f>=4.5;break;case"AAlarge":i=f>=3;break;case"AAAsmall":i=f>=7}return i},a.mostReadable=function(t,r,e){var n,i,o,h,s=null,f=0;i=(e=e||{}).includeFallbackColors,o=e.level,h=e.size;for(var u=0;u<r.length;u++)(n=a.readability(t,r[u]))>f&&(f=n,s=a(r[u]));return a.isReadable(t,s,{level:o,size:h})||!i?s:(e.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],e))};var y=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=a.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(y);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var e=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function k(t){return Math.min(1,Math.max(0,t))}function w(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function R(t){return Math.round(255*parseFloat(t)).toString(16)}function F(t){return w(t)/255}var C,q,N,T=(q="[\\s|\\(]+("+(C="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",N="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function j(t){return!!T.CSS_UNIT.exec(t)}return a},"object"==typeof r&&void 0!==e?e.exports=i():"function"==typeof a&&a.amd?a(i):(n="undefined"!=typeof globalThis?globalThis:n||self).tinycolor=i()}));
|
|
;/*!node_modules/react-color/lib/helpers/color.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/color",(function(e,r,t,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isvalidColorString=r.red=r.getContrastingColor=r.isValidHex=r.toState=r.simpleCheckForValidColor=void 0;var n=l(e("node_modules/lodash/each")),a=l(e("node_modules/tinycolor2/cjs/tinycolor"));function l(e){return e&&e.__esModule?e:{default:e}}r.simpleCheckForValidColor=function(e){var r=0,t=0;return(0,n.default)(["r","g","b","a","h","s","l","v"],(function(o){if(e[o]&&(r+=1,isNaN(e[o])||(t+=1),"s"===o||"l"===o)){/^\d+%$/.test(e[o])&&(t+=1)}})),r===t&&e};var i=r.toState=function(e,r){var t=e.hex?(0,a.default)(e.hex):(0,a.default)(e),o=t.toHsl(),n=t.toHsv(),l=t.toRgb(),i=t.toHex();return 0===o.s&&(o.h=r||0,n.h=r||0),{hsl:o,hex:"000000"===i&&0===l.a?"transparent":"#"+i,rgb:l,hsv:n,oldHue:e.h||r||o.h,source:e.source}};r.isValidHex=function(e){if("transparent"===e)return!0;var r="#"===String(e).charAt(0)?1:0;return e.length!==4+r&&e.length<7+r&&(0,a.default)(e).isValid()},r.getContrastingColor=function(e){if(!e)return"#fff";var r=i(e);return"transparent"===r.hex?"rgba(0,0,0,0.4)":(299*r.rgb.r+587*r.rgb.g+114*r.rgb.b)/1e3>=128?"#000":"#fff"},r.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},r.isvalidColorString=function(e,r){var t=e.replace("°","");return(0,a.default)(r+" ("+t+")")._ok}}));
|
|
;/*!node_modules/react-color/lib/components/common/ColorWrap.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/ColorWrap",(function(e,o,t,r){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ColorWrap=void 0;var n=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=function(){function e(e,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(o,t,r){return t&&e(o.prototype,t),r&&e(o,r),o}}(),l=e("node_modules/react/index"),u=p(l),c=p(e("node_modules/lodash/debounce")),i=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(e("node_modules/react-color/lib/helpers/color"));function p(e){return e&&e.__esModule?e:{default:e}}var s=o.ColorWrap=function(e){var o=function(o){function t(e){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.handleChange=function(e,t){if(i.simpleCheckForValidColor(e)){var r=i.toState(e,e.h||o.state.oldHue);o.setState(r),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,r,t),o.props.onChange&&o.props.onChange(r,t)}},o.handleSwatchHover=function(e,t){if(i.simpleCheckForValidColor(e)){var r=i.toState(e,e.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(r,t)}},o.state=n({},i.toState(e.color,0)),o.debounce=(0,c.default)((function(e,o,t){e(o,t)}),100),o}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}(t,o),a(t,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),u.default.createElement(e,n({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(e,o){return n({},i.toState(e.color,o.oldHue))}}]),t}(l.PureComponent||l.Component);return o.propTypes=n({},e.propTypes),o.defaultProps=n({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),o};o.default=s}));
|
|
;/*!node_modules/react-color/lib/helpers/interaction.js*/
|
|
amis.define("node_modules/react-color/lib/helpers/interaction",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,u=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},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=e("node_modules/react/index"),i=(o=c)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;l(this,r);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return t=n=s(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(u))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},s(n,t)}return f(r,n),a(r,[{key:"render",value:function(){return i.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},i.default.createElement(e,u({},this.props,this.state)))}}]),r}(i.default.Component)}}));
|
|
;/*!node_modules/react-color/lib/components/common/Swatch.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/Swatch",(function(e,o,t,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Swatch=void 0;var r=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c=l(e("node_modules/react/index")),a=l(e("node_modules/reactcss/lib/index")),i=e("node_modules/react-color/lib/helpers/interaction"),d=l(e("node_modules/react-color/lib/components/common/Checkboard"));function l(e){return e&&e.__esModule?e:{default:e}}var u=o.Swatch=function(e){var o=e.color,t=e.style,n=e.onClick,i=void 0===n?function(){}:n,l=e.onHover,u=e.title,s=void 0===u?o:u,f=e.children,h=e.focus,v=e.focusStyle,b=void 0===v?{}:v,m="transparent"===o,p=(0,a.default)({default:{swatch:r({background:o,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},t,h?b:{})}}),w={};return l&&(w.onMouseOver=function(e){return l(o,e)}),c.default.createElement("div",r({style:p.swatch,onClick:function(e){return i(o,e)},title:s,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(o,e)}},w),f,m&&c.default.createElement(d.default,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};o.default=(0,i.handleFocus)(u)}));
|
|
;/*!node_modules/react-color/lib/components/common/index.js*/
|
|
amis.define("node_modules/react-color/lib/components/common/index",(function(e,o,n,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=e("node_modules/react-color/lib/components/common/Alpha");Object.defineProperty(o,"Alpha",{enumerable:!0,get:function(){return b(r).default}});var c=e("node_modules/react-color/lib/components/common/Checkboard");Object.defineProperty(o,"Checkboard",{enumerable:!0,get:function(){return b(c).default}});var u=e("node_modules/react-color/lib/components/common/EditableInput");Object.defineProperty(o,"EditableInput",{enumerable:!0,get:function(){return b(u).default}});var l=e("node_modules/react-color/lib/components/common/Hue");Object.defineProperty(o,"Hue",{enumerable:!0,get:function(){return b(l).default}});var a=e("node_modules/react-color/lib/components/common/Raised");Object.defineProperty(o,"Raised",{enumerable:!0,get:function(){return b(a).default}});var d=e("node_modules/react-color/lib/components/common/Saturation");Object.defineProperty(o,"Saturation",{enumerable:!0,get:function(){return b(d).default}});var m=e("node_modules/react-color/lib/components/common/ColorWrap");Object.defineProperty(o,"ColorWrap",{enumerable:!0,get:function(){return b(m).default}});var i=e("node_modules/react-color/lib/components/common/Swatch");function b(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"Swatch",{enumerable:!0,get:function(){return b(i).default}})}));
|
|
;/*!node_modules/react-color/lib/components/alpha/AlphaPointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/alpha/AlphaPointer",(function(e,r,t,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AlphaPointer=void 0;var o=n(e("node_modules/react/index")),i=n(e("node_modules/reactcss/lib/index"));function n(e){return e&&e.__esModule?e:{default:e}}var l=r.AlphaPointer=function(e){var r=e.direction,t=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===r});return o.default.createElement("div",{style:t.picker})};r.default=l}));
|
|
;/*!node_modules/react-color/lib/components/alpha/Alpha.js*/
|
|
amis.define("node_modules/react-color/lib/components/alpha/Alpha",(function(e,r,t,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AlphaPicker=void 0;var a=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},n=c(e("node_modules/react/index")),l=c(e("node_modules/reactcss/lib/index")),i=e("node_modules/react-color/lib/components/common/index"),d=c(e("node_modules/react-color/lib/components/alpha/AlphaPointer"));function c(e){return e&&e.__esModule?e:{default:e}}var s=r.AlphaPicker=function(e){var r=e.rgb,t=e.hsl,o=e.width,d=e.height,c=e.onChange,s=e.direction,p=e.style,h=e.renderers,u=e.pointer,f=e.className,m=void 0===f?"":f,v=(0,l.default)({default:{picker:{position:"relative",width:o,height:d},alpha:{radius:"2px",style:p}}});return n.default.createElement("div",{style:v.picker,className:"alpha-picker "+m},n.default.createElement(i.Alpha,a({},v.alpha,{rgb:r,hsl:t,pointer:u,renderers:h,onChange:c,direction:s})))};s.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:d.default},r.default=(0,i.ColorWrap)(s)}));
|
|
;/*!node_modules/react-color/lib/components/block/BlockSwatches.js*/
|
|
amis.define("node_modules/react-color/lib/components/block/BlockSwatches",(function(e,t,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var a=r(e("node_modules/react/index")),c=r(e("node_modules/reactcss/lib/index")),n=r(e("node_modules/lodash/map")),d=e("node_modules/react-color/lib/components/common/index");function r(e){return e&&e.__esModule?e:{default:e}}var s=t.BlockSwatches=function(e){var t=e.colors,o=e.onClick,l=e.onSwatchHover,r=(0,c.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return a.default.createElement("div",{style:r.swatches},(0,n.default)(t,(function(e){return a.default.createElement(d.Swatch,{key:e,color:e,style:r.swatch,onClick:o,onHover:l,focusStyle:{boxShadow:"0 0 4px "+e}})})),a.default.createElement("div",{style:r.clear}))};t.default=s}));
|
|
;/*!node_modules/react-color/lib/components/block/Block.js*/
|
|
amis.define("node_modules/react-color/lib/components/block/Block",(function(e,t,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=u(e("node_modules/react/index")),a=u(e("node_modules/prop-types/index")),d=u(e("node_modules/reactcss/lib/index")),n=u(e("node_modules/lodash/merge")),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/color")),s=e("node_modules/react-color/lib/components/common/index"),c=u(e("node_modules/react-color/lib/components/block/BlockSwatches"));function u(e){return e&&e.__esModule?e:{default:e}}var p=t.Block=function(e){var t=e.onChange,o=e.onSwatchHover,l=e.hex,a=e.colors,u=e.width,p=e.triangle,f=e.styles,b=void 0===f?{}:f,x=e.className,h=void 0===x?"":x,m="transparent"===l,g=function(e,o){i.isValidHex(e)&&t({hex:e,source:"hex"},o)},y=(0,d.default)((0,n.default)({default:{card:{width:u,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:l,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:i.getContrastingColor(l),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+l+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},b),{"hide-triangle":"hide"===p});return r.default.createElement("div",{style:y.card,className:"block-picker "+h},r.default.createElement("div",{style:y.triangle}),r.default.createElement("div",{style:y.head},m&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:y.label},l)),r.default.createElement("div",{style:y.body},r.default.createElement(c.default,{colors:a,onClick:g,onSwatchHover:o}),r.default.createElement(s.EditableInput,{style:{input:y.input},value:l,onChange:g})))};p.propTypes={width:a.default.oneOfType([a.default.string,a.default.number]),colors:a.default.arrayOf(a.default.string),triangle:a.default.oneOf(["top","hide"]),styles:a.default.object},p.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,s.ColorWrap)(p)}));
|
|
;/*!node_modules/material-colors/dist/colors.js*/
|
|
amis.define("node_modules/material-colors/dist/colors",(function(f,a,e,b){var c,d;c=this,d=function(){return{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple:{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue:{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen:{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange:{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},blueGrey:{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},darkText:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},lightText:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},darkIcons:{active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},lightIcons:{active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},white:"#ffffff",black:"#000000"}},"function"==typeof b&&b.amd?b([],d):"object"==typeof a?e.exports={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple:{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue:{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen:{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange:{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},blueGrey:{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},darkText:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},lightText:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},darkIcons:{active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},lightIcons:{active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},white:"#ffffff",black:"#000000"}:c.materialColors={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple:{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue:{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen:{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange:{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},blueGrey:{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},darkText:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},lightText:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},darkIcons:{active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},lightIcons:{active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},white:"#ffffff",black:"#000000"}}));
|
|
;/*!node_modules/react-color/lib/components/circle/CircleSwatch.js*/
|
|
amis.define("node_modules/react-color/lib/components/circle/CircleSwatch",(function(e,o,t,a){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CircleSwatch=void 0;var c=l(e("node_modules/react/index")),r=e("node_modules/reactcss/lib/index"),n=l(r),i=e("node_modules/react-color/lib/components/common/index");function l(e){return e&&e.__esModule?e:{default:e}}var s=o.CircleSwatch=function(e){var o=e.color,t=e.onClick,a=e.onSwatchHover,r=e.hover,l=e.active,s=e.circleSize,d=e.circleSpacing,h=(0,n.default)({default:{swatch:{width:s,height:s,marginRight:d,marginBottom:d,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+o,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+o}}},{hover:r,active:l});return c.default.createElement("div",{style:h.swatch},c.default.createElement(i.Swatch,{style:h.Swatch,color:o,onClick:t,onHover:a,focusStyle:{boxShadow:h.Swatch.boxShadow+", 0 0 5px "+o}}))};s.defaultProps={circleSize:28,circleSpacing:14},o.default=(0,r.handleHover)(s)}));
|
|
;/*!node_modules/react-color/lib/components/circle/Circle.js*/
|
|
amis.define("node_modules/react-color/lib/components/circle/Circle",(function(e,l,r,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Circle=void 0;var c=f(e("node_modules/react/index")),t=f(e("node_modules/prop-types/index")),n=f(e("node_modules/reactcss/lib/index")),i=f(e("node_modules/lodash/map")),a=f(e("node_modules/lodash/merge")),d=function(e){if(e&&e.__esModule)return e;var l={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(l[r]=e[r]);return l.default=e,l}(e("node_modules/material-colors/dist/colors")),u=e("node_modules/react-color/lib/components/common/index"),s=f(e("node_modules/react-color/lib/components/circle/CircleSwatch"));function f(e){return e&&e.__esModule?e:{default:e}}var p=l.Circle=function(e){var l=e.width,r=e.onChange,o=e.onSwatchHover,t=e.colors,d=e.hex,u=e.circleSize,f=e.styles,p=void 0===f?{}:f,m=e.circleSpacing,h=e.className,g=void 0===h?"":h,y=(0,n.default)((0,a.default)({default:{card:{width:l,display:"flex",flexWrap:"wrap",marginRight:-m,marginBottom:-m}}},p)),_=function(e,l){return r({hex:e,source:"hex"},l)};return c.default.createElement("div",{style:y.card,className:"circle-picker "+g},(0,i.default)(t,(function(e){return c.default.createElement(s.default,{key:e,color:e,onClick:_,onSwatchHover:o,active:d===e.toLowerCase(),circleSize:u,circleSpacing:m})})))};p.propTypes={width:t.default.oneOfType([t.default.string,t.default.number]),circleSize:t.default.number,circleSpacing:t.default.number,styles:t.default.object},p.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[d.red[500],d.pink[500],d.purple[500],d.deepPurple[500],d.indigo[500],d.blue[500],d.lightBlue[500],d.cyan[500],d.teal[500],d.green[500],d.lightGreen[500],d.lime[500],d.yellow[500],d.amber[500],d.orange[500],d.deepOrange[500],d.brown[500],d.blueGrey[500]],styles:{}},l.default=(0,u.ColorWrap)(p)}));
|
|
;/*!node_modules/react-color/lib/components/chrome/ChromeFields.js*/
|
|
amis.define("node_modules/react-color/lib/components/chrome/ChromeFields",(function(e,t,l,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var n=function(){function e(e,t){for(var l=0;l<t.length;l++){var a=t[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,l,a){return l&&e(t.prototype,l),a&&e(t,a),t}}(),i=d(e("node_modules/react/index")),r=d(e("node_modules/reactcss/lib/index")),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/color")),o=d(e("node_modules/lodash/isUndefined")),p=e("node_modules/react-color/lib/components/common/index"),u=d(e("node_modules/@icons/material/UnfoldMoreHorizontalIcon"));function d(e){return e&&e.__esModule?e:{default:e}}var h=t.ChromeFields=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return l.toggleViews=function(){"hex"===l.state.view?l.setState({view:"rgb"}):"rgb"===l.state.view?l.setState({view:"hsl"}):"hsl"===l.state.view&&(1===l.props.hsl.a?l.setState({view:"hex"}):l.setState({view:"rgb"}))},l.handleChange=function(e,t){e.hex?s.isValidHex(e.hex)&&l.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?l.props.onChange({r:e.r||l.props.rgb.r,g:e.g||l.props.rgb.g,b:e.b||l.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),l.props.onChange({h:l.props.hsl.h,s:l.props.hsl.s,l:l.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),l.props.onChange({h:e.h||l.props.hsl.h,s:Number((0,o.default)(e.s)?l.props.hsl.s:e.s),l:Number((0,o.default)(e.l)?l.props.hsl.l:e.l),source:"hsl"},t))},l.showHighlight=function(e){e.currentTarget.style.background="#eee"},l.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?l.state={view:"rgb"}:l.state={view:e.view},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this,t=(0,r.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),l=void 0;return"hex"===this.state.view?l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},l,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement(u.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i.default.Component);h.defaultProps={view:"hex"},t.default=h}));
|
|
;/*!node_modules/react-color/lib/components/chrome/ChromePointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/chrome/ChromePointer",(function(e,r,o,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ChromePointer=void 0;var d=a(e("node_modules/react/index")),n=a(e("node_modules/reactcss/lib/index"));function a(e){return e&&e.__esModule?e:{default:e}}var i=r.ChromePointer=function(){var e=(0,n.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.default.createElement("div",{style:e.picker})};r.default=i}));
|
|
;/*!node_modules/react-color/lib/components/chrome/ChromePointerCircle.js*/
|
|
amis.define("node_modules/react-color/lib/components/chrome/ChromePointerCircle",(function(e,r,t,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ChromePointerCircle=void 0;var i=d(e("node_modules/react/index")),n=d(e("node_modules/reactcss/lib/index"));function d(e){return e&&e.__esModule?e:{default:e}}var l=r.ChromePointerCircle=function(){var e=(0,n.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return i.default.createElement("div",{style:e.picker})};r.default=l}));
|
|
;/*!node_modules/react-color/lib/components/chrome/Chrome.js*/
|
|
amis.define("node_modules/react-color/lib/components/chrome/Chrome",(function(e,t,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var o=h(e("node_modules/react/index")),d=h(e("node_modules/prop-types/index")),r=h(e("node_modules/reactcss/lib/index")),i=h(e("node_modules/lodash/merge")),n=e("node_modules/react-color/lib/components/common/index"),s=h(e("node_modules/react-color/lib/components/chrome/ChromeFields")),p=h(e("node_modules/react-color/lib/components/chrome/ChromePointer")),u=h(e("node_modules/react-color/lib/components/chrome/ChromePointerCircle"));function h(e){return e&&e.__esModule?e:{default:e}}var c=t.Chrome=function(e){var t=e.width,a=e.onChange,l=e.disableAlpha,d=e.rgb,h=e.hsl,c=e.hsv,m=e.hex,f=e.renderers,x=e.styles,b=void 0===x?{}:x,g=e.className,v=void 0===g?"":g,y=e.defaultView,w=(0,r.default)((0,i.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+d.r+", "+d.g+", "+d.b+", "+d.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},b),{disableAlpha:l});return o.default.createElement("div",{style:w.picker,className:"chrome-picker "+v},o.default.createElement("div",{style:w.saturation},o.default.createElement(n.Saturation,{style:w.Saturation,hsl:h,hsv:c,pointer:u.default,onChange:a})),o.default.createElement("div",{style:w.body},o.default.createElement("div",{style:w.controls,className:"flexbox-fix"},o.default.createElement("div",{style:w.color},o.default.createElement("div",{style:w.swatch},o.default.createElement("div",{style:w.active}),o.default.createElement(n.Checkboard,{renderers:f}))),o.default.createElement("div",{style:w.toggles},o.default.createElement("div",{style:w.hue},o.default.createElement(n.Hue,{style:w.Hue,hsl:h,pointer:p.default,onChange:a})),o.default.createElement("div",{style:w.alpha},o.default.createElement(n.Alpha,{style:w.Alpha,rgb:d,hsl:h,pointer:p.default,renderers:f,onChange:a})))),o.default.createElement(s.default,{rgb:d,hsl:h,hex:m,view:y,onChange:a,disableAlpha:l})))};c.propTypes={width:d.default.oneOfType([d.default.string,d.default.number]),disableAlpha:d.default.bool,styles:d.default.object,defaultView:d.default.oneOf(["hex","rgb","hsl"])},c.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,n.ColorWrap)(c)}));
|
|
;/*!node_modules/react-color/lib/components/compact/CompactColor.js*/
|
|
amis.define("node_modules/react-color/lib/components/compact/CompactColor",(function(o,e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompactColor=void 0;var n=d(o("node_modules/react/index")),a=d(o("node_modules/reactcss/lib/index")),c=function(o){if(o&&o.__esModule)return o;var e={};if(null!=o)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}(o("node_modules/react-color/lib/helpers/color")),l=o("node_modules/react-color/lib/components/common/index");function d(o){return o&&o.__esModule?o:{default:o}}var i=e.CompactColor=function(o){var e=o.color,t=o.onClick,r=void 0===t?function(){}:t,d=o.onSwatchHover,i=o.active,u=(0,a.default)({default:{color:{background:e,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:c.getContrastingColor(e),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:i,"color-#FFFFFF":"#FFFFFF"===e,transparent:"transparent"===e});return n.default.createElement(l.Swatch,{style:u.color,color:e,onClick:r,onHover:d,focusStyle:{boxShadow:"0 0 4px "+e}},n.default.createElement("div",{style:u.dot}))};e.default=i}));
|
|
;/*!node_modules/react-color/lib/components/compact/CompactFields.js*/
|
|
amis.define("node_modules/react-color/lib/components/compact/CompactFields",(function(e,t,l,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var a=p(e("node_modules/react/index")),o=p(e("node_modules/reactcss/lib/index")),i=e("node_modules/react-color/lib/components/common/index");function p(e){return e&&e.__esModule?e:{default:e}}var d=t.CompactFields=function(e){var t=e.hex,l=e.rgb,n=e.onChange,p=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),d=function(e,t){e.r||e.g||e.b?n({r:e.r||l.r,g:e.g||l.g,b:e.b||l.b,source:"rgb"},t):n({hex:e.hex,source:"hex"},t)};return a.default.createElement("div",{style:p.fields,className:"flexbox-fix"},a.default.createElement("div",{style:p.active}),a.default.createElement(i.EditableInput,{style:{wrap:p.HEXwrap,input:p.HEXinput,label:p.HEXlabel},label:"hex",value:t,onChange:d}),a.default.createElement(i.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"r",value:l.r,onChange:d}),a.default.createElement(i.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"g",value:l.g,onChange:d}),a.default.createElement(i.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"b",value:l.b,onChange:d}))};t.default=d}));
|
|
;/*!node_modules/react-color/lib/components/compact/Compact.js*/
|
|
amis.define("node_modules/react-color/lib/components/compact/Compact",(function(e,o,t,l){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Compact=void 0;var a=p(e("node_modules/react/index")),c=p(e("node_modules/prop-types/index")),r=p(e("node_modules/reactcss/lib/index")),d=p(e("node_modules/lodash/map")),n=p(e("node_modules/lodash/merge")),s=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(e("node_modules/react-color/lib/helpers/color")),u=e("node_modules/react-color/lib/components/common/index"),i=p(e("node_modules/react-color/lib/components/compact/CompactColor")),m=p(e("node_modules/react-color/lib/components/compact/CompactFields"));function p(e){return e&&e.__esModule?e:{default:e}}var f=o.Compact=function(e){var o=e.onChange,t=e.onSwatchHover,l=e.colors,c=e.hex,p=e.rgb,f=e.styles,F=void 0===f?{}:f,C=e.className,h=void 0===C?"":C,x=(0,r.default)((0,n.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},F)),_=function(e,t){e.hex?s.isValidHex(e.hex)&&o({hex:e.hex,source:"hex"},t):o(e,t)};return a.default.createElement(u.Raised,{style:x.Compact,styles:F},a.default.createElement("div",{style:x.compact,className:"compact-picker "+h},a.default.createElement("div",null,(0,d.default)(l,(function(e){return a.default.createElement(i.default,{key:e,color:e,active:e.toLowerCase()===c,onClick:_,onSwatchHover:t})})),a.default.createElement("div",{style:x.clear})),a.default.createElement(m.default,{hex:c,rgb:p,onChange:_})))};f.propTypes={colors:c.default.arrayOf(c.default.string),styles:c.default.object},f.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},o.default=(0,u.ColorWrap)(f)}));
|
|
;/*!node_modules/react-color/lib/components/github/GithubSwatch.js*/
|
|
amis.define("node_modules/react-color/lib/components/github/GithubSwatch",(function(e,o,t,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GithubSwatch=void 0;var c=d(e("node_modules/react/index")),l=e("node_modules/reactcss/lib/index"),a=d(l),i=e("node_modules/react-color/lib/components/common/index");function d(e){return e&&e.__esModule?e:{default:e}}var r=o.GithubSwatch=function(e){var o=e.hover,t=e.color,n=e.onClick,l=e.onSwatchHover,d={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},r=(0,a.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:d}},{hover:o});return c.default.createElement("div",{style:r.swatch},c.default.createElement(i.Swatch,{color:t,onClick:n,onHover:l,focusStyle:d}))};o.default=(0,l.handleHover)(r)}));
|
|
;/*!node_modules/react-color/lib/components/github/Github.js*/
|
|
amis.define("node_modules/react-color/lib/components/github/Github",(function(t,e,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Github=void 0;var a=g(t("node_modules/react/index")),l=g(t("node_modules/prop-types/index")),i=g(t("node_modules/reactcss/lib/index")),n=g(t("node_modules/lodash/map")),d=g(t("node_modules/lodash/merge")),p=t("node_modules/react-color/lib/components/common/index"),s=g(t("node_modules/react-color/lib/components/github/GithubSwatch"));function g(t){return t&&t.__esModule?t:{default:t}}var f=e.Github=function(t){var e=t.width,o=t.colors,r=t.onChange,l=t.onSwatchHover,p=t.triangle,g=t.styles,f=void 0===g?{}:g,u=t.className,h=void 0===u?"":u,c=(0,i.default)((0,d.default)({default:{card:{width:e,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},f),{"hide-triangle":"hide"===p,"top-left-triangle":"top-left"===p,"top-right-triangle":"top-right"===p,"bottom-left-triangle":"bottom-left"===p,"bottom-right-triangle":"bottom-right"===p}),m=function(t,e){return r({hex:t,source:"hex"},e)};return a.default.createElement("div",{style:c.card,className:"github-picker "+h},a.default.createElement("div",{style:c.triangleShadow}),a.default.createElement("div",{style:c.triangle}),(0,n.default)(o,(function(t){return a.default.createElement(s.default,{color:t,key:t,onClick:m,onSwatchHover:l})})))};f.propTypes={width:l.default.oneOfType([l.default.string,l.default.number]),colors:l.default.arrayOf(l.default.string),triangle:l.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:l.default.object},f.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},e.default=(0,p.ColorWrap)(f)}));
|
|
;/*!node_modules/react-color/lib/components/hue/HuePointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/hue/HuePointer",(function(e,r,t,i){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SliderPointer=void 0;var o=d(e("node_modules/react/index")),a=d(e("node_modules/reactcss/lib/index"));function d(e){return e&&e.__esModule?e:{default:e}}var n=r.SliderPointer=function(e){var r=e.direction,t=(0,a.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===r});return o.default.createElement("div",{style:t.picker})};r.default=n}));
|
|
;/*!node_modules/react-color/lib/components/hue/Hue.js*/
|
|
amis.define("node_modules/react-color/lib/components/hue/Hue",(function(e,o,t,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.HuePicker=void 0;var r=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i=c(e("node_modules/react/index")),l=c(e("node_modules/prop-types/index")),d=c(e("node_modules/reactcss/lib/index")),u=c(e("node_modules/lodash/merge")),a=e("node_modules/react-color/lib/components/common/index"),s=c(e("node_modules/react-color/lib/components/hue/HuePointer"));function c(e){return e&&e.__esModule?e:{default:e}}var p=o.HuePicker=function(e){var o=e.width,t=e.height,n=e.onChange,l=e.hsl,s=e.direction,c=e.pointer,p=e.styles,h=void 0===p?{}:p,f=e.className,m=void 0===f?"":f,v=(0,d.default)((0,u.default)({default:{picker:{position:"relative",width:o,height:t},hue:{radius:"2px"}}},h));return i.default.createElement("div",{style:v.picker,className:"hue-picker "+m},i.default.createElement(a.Hue,r({},v.hue,{hsl:l,pointer:c,onChange:function(e){return n({a:1,h:e.h,l:.5,s:1})},direction:s})))};p.propTypes={styles:l.default.object},p.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default,styles:{}},o.default=(0,a.ColorWrap)(p)}));
|
|
;/*!node_modules/react-color/lib/components/material/Material.js*/
|
|
amis.define("node_modules/react-color/lib/components/material/Material",(function(e,t,l,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var o=d(e("node_modules/react/index")),i=d(e("node_modules/reactcss/lib/index")),r=d(e("node_modules/lodash/merge")),n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/color")),p=e("node_modules/react-color/lib/components/common/index");function d(e){return e&&e.__esModule?e:{default:e}}var u=t.Material=function(e){var t=e.onChange,l=e.hex,a=e.rgb,d=e.styles,u=void 0===d?{}:d,s=e.className,c=void 0===s?"":s,x=(0,i.default)((0,r.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+l,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},u)),b=function(e,l){e.hex?n.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},l):(e.r||e.g||e.b)&&t({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,source:"rgb"},l)};return o.default.createElement(p.Raised,{styles:u},o.default.createElement("div",{style:x.material,className:"material-picker "+c},o.default.createElement(p.EditableInput,{style:{wrap:x.HEXwrap,input:x.HEXinput,label:x.HEXlabel},label:"hex",value:l,onChange:b}),o.default.createElement("div",{style:x.split,className:"flexbox-fix"},o.default.createElement("div",{style:x.third},o.default.createElement(p.EditableInput,{style:{wrap:x.RGBwrap,input:x.RGBinput,label:x.RGBlabel},label:"r",value:a.r,onChange:b})),o.default.createElement("div",{style:x.third},o.default.createElement(p.EditableInput,{style:{wrap:x.RGBwrap,input:x.RGBinput,label:x.RGBlabel},label:"g",value:a.g,onChange:b})),o.default.createElement("div",{style:x.third},o.default.createElement(p.EditableInput,{style:{wrap:x.RGBwrap,input:x.RGBinput,label:x.RGBlabel},label:"b",value:a.b,onChange:b})))))};t.default=(0,p.ColorWrap)(u)}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/PhotoshopFields.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/PhotoshopFields",(function(e,t,l,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var i=r(e("node_modules/react/index")),n=r(e("node_modules/reactcss/lib/index")),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/color")),p=e("node_modules/react-color/lib/components/common/index");function r(e){return e&&e.__esModule?e:{default:e}}var d=t.PhotoshopPicker=function(e){var t=e.onChange,l=e.rgb,a=e.hsv,r=e.hex,d=(0,n.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),u=function(e,i){e["#"]?o.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||l.r,g:e.g||l.g,b:e.b||l.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||a.h,s:e.s||a.s,v:e.v||a.v,source:"hsv"},i)};return i.default.createElement("div",{style:d.fields},i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"h",value:Math.round(a.h),onChange:u}),i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"s",value:Math.round(100*a.s),onChange:u}),i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"v",value:Math.round(100*a.v),onChange:u}),i.default.createElement("div",{style:d.divider}),i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:l.r,onChange:u}),i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:l.g,onChange:u}),i.default.createElement(p.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:l.b,onChange:u}),i.default.createElement("div",{style:d.divider}),i.default.createElement(p.EditableInput,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"#",value:r.replace("#",""),onChange:u}),i.default.createElement("div",{style:d.fieldSymbols},i.default.createElement("div",{style:d.symbol},"°"),i.default.createElement("div",{style:d.symbol},"%"),i.default.createElement("div",{style:d.symbol},"%")))};t.default=d}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle",(function(e,o,t,i){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PhotoshopPointerCircle=void 0;var r=l(e("node_modules/react/index")),n=l(e("node_modules/reactcss/lib/index"));function l(e){return e&&e.__esModule?e:{default:e}}var d=o.PhotoshopPointerCircle=function(e){var o=e.hsl,t=(0,n.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":o.l>.5});return r.default.createElement("div",{style:t.picker})};o.default=d}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/PhotoshopPointer",(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var o=l(e("node_modules/react/index")),a=l(e("node_modules/reactcss/lib/index"));function l(e){return e&&e.__esModule?e:{default:e}}var d=t.PhotoshopPointerCircle=function(){var e=(0,a.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.default.createElement("div",{style:e.pointer},o.default.createElement("div",{style:e.left},o.default.createElement("div",{style:e.leftInside})),o.default.createElement("div",{style:e.right},o.default.createElement("div",{style:e.rightInside})))};t.default=d}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/PhotoshopButton.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/PhotoshopButton",(function(e,o,t,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PhotoshopButton=void 0;var i=r(e("node_modules/react/index")),d=r(e("node_modules/reactcss/lib/index"));function r(e){return e&&e.__esModule?e:{default:e}}var a=o.PhotoshopButton=function(e){var o=e.onClick,t=e.label,n=e.children,r=e.active,a=(0,d.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:r});return i.default.createElement("div",{style:a.button,onClick:o},t||n)};o.default=a}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/PhotoshopPreviews",(function(e,t,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var n=d(e("node_modules/react/index")),l=d(e("node_modules/reactcss/lib/index"));function d(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,o=e.currentColor,r=(0,l.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:o,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.default.createElement("div",null,n.default.createElement("div",{style:r.label},"new"),n.default.createElement("div",{style:r.swatches},n.default.createElement("div",{style:r.new}),n.default.createElement("div",{style:r.current})),n.default.createElement("div",{style:r.label},"current"))};t.default=a}));
|
|
;/*!node_modules/react-color/lib/components/photoshop/Photoshop.js*/
|
|
amis.define("node_modules/react-color/lib/components/photoshop/Photoshop",(function(e,t,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),l=m(e("node_modules/react/index")),s=m(e("node_modules/prop-types/index")),i=m(e("node_modules/reactcss/lib/index")),a=m(e("node_modules/lodash/merge")),p=e("node_modules/react-color/lib/components/common/index"),d=m(e("node_modules/react-color/lib/components/photoshop/PhotoshopFields")),c=m(e("node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle")),h=m(e("node_modules/react-color/lib/components/photoshop/PhotoshopPointer")),u=m(e("node_modules/react-color/lib/components/photoshop/PhotoshopButton")),f=m(e("node_modules/react-color/lib/components/photoshop/PhotoshopPreviews"));function m(e){return e&&e.__esModule?e:{default:e}}var b=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.state={currentColor:e.hex},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this.props,t=e.styles,o=void 0===t?{}:t,r=e.className,n=void 0===r?"":r,s=(0,i.default)((0,a.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return l.default.createElement("div",{style:s.picker,className:"photoshop-picker "+n},l.default.createElement("div",{style:s.head},this.props.header),l.default.createElement("div",{style:s.body,className:"flexbox-fix"},l.default.createElement("div",{style:s.saturation},l.default.createElement(p.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:c.default,onChange:this.props.onChange})),l.default.createElement("div",{style:s.hue},l.default.createElement(p.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:h.default,onChange:this.props.onChange})),l.default.createElement("div",{style:s.controls},l.default.createElement("div",{style:s.top,className:"flexbox-fix"},l.default.createElement("div",{style:s.previews},l.default.createElement(f.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),l.default.createElement("div",{style:s.actions},l.default.createElement(u.default,{label:"OK",onClick:this.props.onAccept,active:!0}),l.default.createElement(u.default,{label:"Cancel",onClick:this.props.onCancel}),l.default.createElement(d.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(l.default.Component);b.propTypes={header:s.default.string,styles:s.default.object},b.defaultProps={header:"Color Picker",styles:{}},t.default=(0,p.ColorWrap)(b)}));
|
|
;/*!node_modules/react-color/lib/components/sketch/SketchFields.js*/
|
|
amis.define("node_modules/react-color/lib/components/sketch/SketchFields",(function(e,l,a,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SketchFields=void 0;var n=u(e("node_modules/react/index")),d=u(e("node_modules/reactcss/lib/index")),i=function(e){if(e&&e.__esModule)return e;var l={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(l[a]=e[a]);return l.default=e,l}(e("node_modules/react-color/lib/helpers/color")),r=e("node_modules/react-color/lib/components/common/index");function u(e){return e&&e.__esModule?e:{default:e}}var o=l.SketchFields=function(e){var l=e.onChange,a=e.rgb,t=e.hsl,u=e.hex,o=e.disableAlpha,s=(0,d.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),p=function(e,n){e.hex?i.isValidHex(e.hex)&&l({hex:e.hex,source:"hex"},n):e.r||e.g||e.b?l({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,a:a.a,source:"rgb"},n):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,l({h:t.h,s:t.s,l:t.l,a:e.a,source:"rgb"},n))};return n.default.createElement("div",{style:s.fields,className:"flexbox-fix"},n.default.createElement("div",{style:s.double},n.default.createElement(r.EditableInput,{style:{input:s.input,label:s.label},label:"hex",value:u.replace("#",""),onChange:p})),n.default.createElement("div",{style:s.single},n.default.createElement(r.EditableInput,{style:{input:s.input,label:s.label},label:"r",value:a.r,onChange:p,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:s.single},n.default.createElement(r.EditableInput,{style:{input:s.input,label:s.label},label:"g",value:a.g,onChange:p,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:s.single},n.default.createElement(r.EditableInput,{style:{input:s.input,label:s.label},label:"b",value:a.b,onChange:p,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:s.alpha},n.default.createElement(r.EditableInput,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*a.a),onChange:p,dragLabel:"true",dragMax:"100"})))};l.default=o}));
|
|
;/*!node_modules/react-color/lib/components/sketch/SketchPresetColors.js*/
|
|
amis.define("node_modules/react-color/lib/components/sketch/SketchPresetColors",(function(e,o,t,r){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SketchPresetColors=void 0;var l=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},n=i(e("node_modules/react/index")),a=i(e("node_modules/prop-types/index")),s=i(e("node_modules/reactcss/lib/index")),c=e("node_modules/react-color/lib/components/common/index");function i(e){return e&&e.__esModule?e:{default:e}}var d=o.SketchPresetColors=function(e){var o=e.colors,t=e.onClick,r=void 0===t?function(){}:t,a=e.onSwatchHover,i=(0,s.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!o||!o.length}),d=function(e,o){r({hex:e,source:"hex"},o)};return n.default.createElement("div",{style:i.colors,className:"flexbox-fix"},o.map((function(e){var o="string"==typeof e?{color:e}:e,t=""+o.color+(o.title||"");return n.default.createElement("div",{key:t,style:i.swatchWrap},n.default.createElement(c.Swatch,l({},o,{style:i.swatch,onClick:d,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+o.color}})))})))};d.propTypes={colors:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.shape({color:a.default.string,title:a.default.string})])).isRequired},o.default=d}));
|
|
;/*!node_modules/react-color/lib/components/sketch/Sketch.js*/
|
|
amis.define("node_modules/react-color/lib/components/sketch/Sketch",(function(e,t,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},r=h(e("node_modules/react/index")),d=h(e("node_modules/prop-types/index")),s=h(e("node_modules/reactcss/lib/index")),i=h(e("node_modules/lodash/merge")),n=e("node_modules/react-color/lib/components/common/index"),p=h(e("node_modules/react-color/lib/components/sketch/SketchFields")),c=h(e("node_modules/react-color/lib/components/sketch/SketchPresetColors"));function h(e){return e&&e.__esModule?e:{default:e}}var u=t.Sketch=function(e){var t=e.width,a=e.rgb,l=e.hex,d=e.hsv,h=e.hsl,u=e.onChange,f=e.onSwatchHover,x=e.disableAlpha,b=e.presetColors,g=e.renderers,m=e.styles,v=void 0===m?{}:m,y=e.className,E=void 0===y?"":y,w=(0,s.default)((0,i.default)({default:o({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+a.r+","+a.g+","+a.b+","+a.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},v),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},v),{disableAlpha:x});return r.default.createElement("div",{style:w.picker,className:"sketch-picker "+E},r.default.createElement("div",{style:w.saturation},r.default.createElement(n.Saturation,{style:w.Saturation,hsl:h,hsv:d,onChange:u})),r.default.createElement("div",{style:w.controls,className:"flexbox-fix"},r.default.createElement("div",{style:w.sliders},r.default.createElement("div",{style:w.hue},r.default.createElement(n.Hue,{style:w.Hue,hsl:h,onChange:u})),r.default.createElement("div",{style:w.alpha},r.default.createElement(n.Alpha,{style:w.Alpha,rgb:a,hsl:h,renderers:g,onChange:u}))),r.default.createElement("div",{style:w.color},r.default.createElement(n.Checkboard,null),r.default.createElement("div",{style:w.activeColor}))),r.default.createElement(p.default,{rgb:a,hsl:h,hex:l,onChange:u,disableAlpha:x}),r.default.createElement(c.default,{colors:b,onClick:u,onSwatchHover:f}))};u.propTypes={disableAlpha:d.default.bool,width:d.default.oneOfType([d.default.string,d.default.number]),styles:d.default.object},u.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,n.ColorWrap)(u)}));
|
|
;/*!node_modules/react-color/lib/components/slider/SliderSwatch.js*/
|
|
amis.define("node_modules/react-color/lib/components/slider/SliderSwatch",(function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var a=c(e("node_modules/react/index")),i=c(e("node_modules/reactcss/lib/index"));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.SliderSwatch=function(e){var t=e.hsl,r=e.offset,s=e.onClick,c=void 0===s?function(){}:s,d=e.active,o=e.first,l=e.last,n=(0,i.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*r+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:d,first:o,last:l});return a.default.createElement("div",{style:n.swatch,onClick:function(e){return c({h:t.h,s:.5,l:r,source:"hsl"},e)}})};t.default=d}));
|
|
;/*!node_modules/react-color/lib/components/slider/SliderSwatches.js*/
|
|
amis.define("node_modules/react-color/lib/components/slider/SliderSwatches",(function(e,t,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var s=i(e("node_modules/react/index")),d=i(e("node_modules/reactcss/lib/index")),c=i(e("node_modules/react-color/lib/components/slider/SliderSwatch"));function i(e){return e&&e.__esModule?e:{default:e}}var n=t.SliderSwatches=function(e){var t=e.onClick,a=e.hsl,l=(0,d.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return s.default.createElement("div",{style:l.swatches},s.default.createElement("div",{style:l.swatch},s.default.createElement(c.default,{hsl:a,offset:".80",active:Math.abs(a.l-.8)<i&&Math.abs(a.s-.5)<i,onClick:t,first:!0})),s.default.createElement("div",{style:l.swatch},s.default.createElement(c.default,{hsl:a,offset:".65",active:Math.abs(a.l-.65)<i&&Math.abs(a.s-.5)<i,onClick:t})),s.default.createElement("div",{style:l.swatch},s.default.createElement(c.default,{hsl:a,offset:".50",active:Math.abs(a.l-.5)<i&&Math.abs(a.s-.5)<i,onClick:t})),s.default.createElement("div",{style:l.swatch},s.default.createElement(c.default,{hsl:a,offset:".35",active:Math.abs(a.l-.35)<i&&Math.abs(a.s-.5)<i,onClick:t})),s.default.createElement("div",{style:l.swatch},s.default.createElement(c.default,{hsl:a,offset:".20",active:Math.abs(a.l-.2)<i&&Math.abs(a.s-.5)<i,onClick:t,last:!0})),s.default.createElement("div",{style:l.clear}))};t.default=n}));
|
|
;/*!node_modules/react-color/lib/components/slider/SliderPointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/slider/SliderPointer",(function(e,r,t,d){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SliderPointer=void 0;var o=n(e("node_modules/react/index")),i=n(e("node_modules/reactcss/lib/index"));function n(e){return e&&e.__esModule?e:{default:e}}var l=r.SliderPointer=function(){var e=(0,i.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.default.createElement("div",{style:e.picker})};r.default=l}));
|
|
;/*!node_modules/react-color/lib/components/slider/Slider.js*/
|
|
amis.define("node_modules/react-color/lib/components/slider/Slider",(function(e,l,t,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Slider=void 0;var d=c(e("node_modules/react/index")),s=c(e("node_modules/prop-types/index")),r=c(e("node_modules/reactcss/lib/index")),n=c(e("node_modules/lodash/merge")),a=e("node_modules/react-color/lib/components/common/index"),i=c(e("node_modules/react-color/lib/components/slider/SliderSwatches")),u=c(e("node_modules/react-color/lib/components/slider/SliderPointer"));function c(e){return e&&e.__esModule?e:{default:e}}var m=l.Slider=function(e){var l=e.hsl,t=e.onChange,o=e.pointer,s=e.styles,u=void 0===s?{}:s,c=e.className,m=void 0===c?"":c,p=(0,r.default)((0,n.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},u));return d.default.createElement("div",{style:p.wrap||{},className:"slider-picker "+m},d.default.createElement("div",{style:p.hue},d.default.createElement(a.Hue,{style:p.Hue,hsl:l,pointer:o,onChange:t})),d.default.createElement("div",{style:p.swatches},d.default.createElement(i.default,{hsl:l,onClick:t})))};m.propTypes={styles:s.default.object},m.defaultProps={pointer:u.default,styles:{}},l.default=(0,a.ColorWrap)(m)}));
|
|
;/*!node_modules/react-color/lib/components/swatches/SwatchesColor.js*/
|
|
amis.define("node_modules/react-color/lib/components/swatches/SwatchesColor",(function(e,o,r,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SwatchesColor=void 0;var l=i(e("node_modules/react/index")),c=i(e("node_modules/reactcss/lib/index")),n=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}(e("node_modules/react-color/lib/helpers/color")),a=e("node_modules/react-color/lib/components/common/index"),d=i(e("node_modules/@icons/material/CheckIcon"));function i(e){return e&&e.__esModule?e:{default:e}}var s=o.SwatchesColor=function(e){var o=e.color,r=e.onClick,t=void 0===r?function(){}:r,i=e.onSwatchHover,s=e.first,u=e.last,f=e.active,p=(0,c.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:o,marginBottom:"1px"},check:{color:n.getContrastingColor(o),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:u,active:f,"color-#FFFFFF":"#FFFFFF"===o,transparent:"transparent"===o});return l.default.createElement(a.Swatch,{color:o,style:p.color,onClick:t,onHover:i,focusStyle:{boxShadow:"0 0 4px "+o}},l.default.createElement("div",{style:p.check},l.default.createElement(d.default,null)))};o.default=s}));
|
|
;/*!node_modules/react-color/lib/components/swatches/SwatchesGroup.js*/
|
|
amis.define("node_modules/react-color/lib/components/swatches/SwatchesGroup",(function(e,t,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var l=d(e("node_modules/react/index")),n=d(e("node_modules/reactcss/lib/index")),r=d(e("node_modules/lodash/map")),c=d(e("node_modules/react-color/lib/components/swatches/SwatchesColor"));function d(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesGroup=function(e){var t=e.onClick,o=e.onSwatchHover,a=e.group,d=e.active,u=(0,n.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return l.default.createElement("div",{style:u.group},(0,r.default)(a,(function(e,n){return l.default.createElement(c.default,{key:e,color:e,active:e.toLowerCase()===d,first:0===n,last:n===a.length-1,onClick:t,onSwatchHover:o})})))};t.default=u}));
|
|
;/*!node_modules/react-color/lib/components/swatches/Swatches.js*/
|
|
amis.define("node_modules/react-color/lib/components/swatches/Swatches",(function(e,l,r,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Swatches=void 0;var o=p(e("node_modules/react/index")),n=p(e("node_modules/prop-types/index")),a=p(e("node_modules/reactcss/lib/index")),d=p(e("node_modules/lodash/map")),u=p(e("node_modules/lodash/merge")),i=function(e){if(e&&e.__esModule)return e;var l={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(l[r]=e[r]);return l.default=e,l}(e("node_modules/material-colors/dist/colors")),s=e("node_modules/react-color/lib/components/common/index"),c=p(e("node_modules/react-color/lib/components/swatches/SwatchesGroup"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.Swatches=function(e){var l=e.width,r=e.height,t=e.onChange,n=e.onSwatchHover,i=e.colors,p=e.hex,f=e.styles,g=void 0===f?{}:f,h=e.className,m=void 0===h?"":h,y=(0,a.default)((0,u.default)({default:{picker:{width:l,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},g)),b=function(e,l){return t({hex:e,source:"hex"},l)};return o.default.createElement("div",{style:y.picker,className:"swatches-picker "+m},o.default.createElement(s.Raised,null,o.default.createElement("div",{style:y.overflow},o.default.createElement("div",{style:y.body},(0,d.default)(i,(function(e){return o.default.createElement(c.default,{key:e.toString(),group:e,active:p,onClick:b,onSwatchHover:n})})),o.default.createElement("div",{style:y.clear})))))};f.propTypes={width:n.default.oneOfType([n.default.string,n.default.number]),height:n.default.oneOfType([n.default.string,n.default.number]),colors:n.default.arrayOf(n.default.arrayOf(n.default.string)),styles:n.default.object},f.defaultProps={width:320,height:240,colors:[[i.red[900],i.red[700],i.red[500],i.red[300],i.red[100]],[i.pink[900],i.pink[700],i.pink[500],i.pink[300],i.pink[100]],[i.purple[900],i.purple[700],i.purple[500],i.purple[300],i.purple[100]],[i.deepPurple[900],i.deepPurple[700],i.deepPurple[500],i.deepPurple[300],i.deepPurple[100]],[i.indigo[900],i.indigo[700],i.indigo[500],i.indigo[300],i.indigo[100]],[i.blue[900],i.blue[700],i.blue[500],i.blue[300],i.blue[100]],[i.lightBlue[900],i.lightBlue[700],i.lightBlue[500],i.lightBlue[300],i.lightBlue[100]],[i.cyan[900],i.cyan[700],i.cyan[500],i.cyan[300],i.cyan[100]],[i.teal[900],i.teal[700],i.teal[500],i.teal[300],i.teal[100]],["#194D33",i.green[700],i.green[500],i.green[300],i.green[100]],[i.lightGreen[900],i.lightGreen[700],i.lightGreen[500],i.lightGreen[300],i.lightGreen[100]],[i.lime[900],i.lime[700],i.lime[500],i.lime[300],i.lime[100]],[i.yellow[900],i.yellow[700],i.yellow[500],i.yellow[300],i.yellow[100]],[i.amber[900],i.amber[700],i.amber[500],i.amber[300],i.amber[100]],[i.orange[900],i.orange[700],i.orange[500],i.orange[300],i.orange[100]],[i.deepOrange[900],i.deepOrange[700],i.deepOrange[500],i.deepOrange[300],i.deepOrange[100]],[i.brown[900],i.brown[700],i.brown[500],i.brown[300],i.brown[100]],[i.blueGrey[900],i.blueGrey[700],i.blueGrey[500],i.blueGrey[300],i.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},l.default=(0,s.ColorWrap)(f)}));
|
|
;/*!node_modules/react-color/lib/components/twitter/Twitter.js*/
|
|
amis.define("node_modules/react-color/lib/components/twitter/Twitter",(function(e,t,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var l=u(e("node_modules/react/index")),a=u(e("node_modules/prop-types/index")),n=u(e("node_modules/reactcss/lib/index")),i=u(e("node_modules/lodash/map")),d=u(e("node_modules/lodash/merge")),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(e("node_modules/react-color/lib/helpers/color")),s=e("node_modules/react-color/lib/components/common/index");function u(e){return e&&e.__esModule?e:{default:e}}var f=t.Twitter=function(e){var t=e.onChange,o=e.onSwatchHover,r=e.hex,a=e.colors,u=e.width,f=e.triangle,c=e.styles,x=void 0===c?{}:c,h=e.className,g=void 0===h?"":h,b=(0,n.default)((0,d.default)({default:{card:{width:u,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},x),{"hide-triangle":"hide"===f,"top-left-triangle":"top-left"===f,"top-right-triangle":"top-right"===f}),m=function(e,o){p.isValidHex(e)&&t({hex:e,source:"hex"},o)};return l.default.createElement("div",{style:b.card,className:"twitter-picker "+g},l.default.createElement("div",{style:b.triangleShadow}),l.default.createElement("div",{style:b.triangle}),l.default.createElement("div",{style:b.body},(0,i.default)(a,(function(e,t){return l.default.createElement(s.Swatch,{key:t,color:e,hex:e,style:b.swatch,onClick:m,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})})),l.default.createElement("div",{style:b.hash},"#"),l.default.createElement(s.EditableInput,{label:null,style:{input:b.input},value:r.replace("#",""),onChange:m}),l.default.createElement("div",{style:b.clear})))};f.propTypes={width:a.default.oneOfType([a.default.string,a.default.number]),triangle:a.default.oneOf(["hide","top-left","top-right"]),colors:a.default.arrayOf(a.default.string),styles:a.default.object},f.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,s.ColorWrap)(f)}));
|
|
;/*!node_modules/react-color/lib/components/google/GooglePointerCircle.js*/
|
|
amis.define("node_modules/react-color/lib/components/google/GooglePointerCircle",(function(e,l,o,r){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GooglePointerCircle=void 0;var t=u(e("node_modules/react/index")),d=u(e("node_modules/reactcss/lib/index")),n=u(e("node_modules/prop-types/index"));function u(e){return e&&e.__esModule?e:{default:e}}var a=l.GooglePointerCircle=function(e){var l=(0,d.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return t.default.createElement("div",{style:l.picker})};a.propTypes={hsl:n.default.shape({h:n.default.number,s:n.default.number,l:n.default.number,a:n.default.number})},a.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}},l.default=a}));
|
|
;/*!node_modules/react-color/lib/components/google/GooglePointer.js*/
|
|
amis.define("node_modules/react-color/lib/components/google/GooglePointer",(function(e,o,t,r){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GooglePointer=void 0;var d=u(e("node_modules/react/index")),l=u(e("node_modules/reactcss/lib/index")),n=u(e("node_modules/prop-types/index"));function u(e){return e&&e.__esModule?e:{default:e}}var a=o.GooglePointer=function(e){var o=(0,l.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return d.default.createElement("div",{style:o.picker})};a.propTypes={hsl:n.default.shape({h:n.default.number,s:n.default.number,l:n.default.number,a:n.default.number})},a.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}},o.default=a}));
|
|
;/*!node_modules/react-color/lib/components/google/GoogleFields.js*/
|
|
amis.define("node_modules/react-color/lib/components/google/GoogleFields",(function(e,l,t,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GoogleFields=void 0;var a=s(e("node_modules/react/index")),r=s(e("node_modules/reactcss/lib/index")),n=function(e){if(e&&e.__esModule)return e;var l={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(l[t]=e[t]);return l.default=e,l}(e("node_modules/react-color/lib/helpers/color")),i=e("node_modules/react-color/lib/components/common/index");function s(e){return e&&e.__esModule?e:{default:e}}var d=l.GoogleFields=function(e){var l=e.onChange,t=e.rgb,o=e.hsl,s=e.hex,d=e.hsv,u=function(e,t){if(e.hex)n.isValidHex(e.hex)&&l({hex:e.hex,source:"hex"},t);else if(e.rgb){var o=e.rgb.split(",");n.isvalidColorString(e.rgb,"rgb")&&l({r:o[0],g:o[1],b:o[2],a:1,source:"rgb"},t)}else if(e.hsv){var a=e.hsv.split(",");n.isvalidColorString(e.hsv,"hsv")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==a[1]?a[1]=.01:1==a[2]&&(a[2]=.01),l({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsv"},t))}else if(e.hsl){var r=e.hsl.split(",");n.isvalidColorString(e.hsl,"hsl")&&(r[2]=r[2].replace("%",""),r[1]=r[1].replace("%",""),r[0]=r[0].replace("°",""),1==c[1]?c[1]=.01:1==c[2]&&(c[2]=.01),l({h:Number(r[0]),s:Number(r[1]),v:Number(r[2]),source:"hsl"},t))}},p=(0,r.default)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),b=t.r+", "+t.g+", "+t.b,f=Math.round(o.h)+"°, "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%",c=Math.round(d.h)+"°, "+Math.round(100*d.s)+"%, "+Math.round(100*d.v)+"%";return a.default.createElement("div",{style:p.wrap,className:"flexbox-fix"},a.default.createElement("div",{style:p.fields},a.default.createElement("div",{style:p.double},a.default.createElement(i.EditableInput,{style:{input:p.input,label:p.label},label:"hex",value:s,onChange:u})),a.default.createElement("div",{style:p.column},a.default.createElement("div",{style:p.single},a.default.createElement(i.EditableInput,{style:{input:p.input2,label:p.label2},label:"rgb",value:b,onChange:u})),a.default.createElement("div",{style:p.single},a.default.createElement(i.EditableInput,{style:{input:p.input2,label:p.label2},label:"hsv",value:c,onChange:u})),a.default.createElement("div",{style:p.single},a.default.createElement(i.EditableInput,{style:{input:p.input2,label:p.label2},label:"hsl",value:f,onChange:u})))))};l.default=d}));
|
|
;/*!node_modules/react-color/lib/components/google/Google.js*/
|
|
amis.define("node_modules/react-color/lib/components/google/Google",(function(e,o,t,l){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Google=void 0;var d=c(e("node_modules/react/index")),a=c(e("node_modules/prop-types/index")),i=c(e("node_modules/reactcss/lib/index")),r=c(e("node_modules/lodash/merge")),n=e("node_modules/react-color/lib/components/common/index"),s=c(e("node_modules/react-color/lib/components/google/GooglePointerCircle")),p=c(e("node_modules/react-color/lib/components/google/GooglePointer")),u=c(e("node_modules/react-color/lib/components/google/GoogleFields"));function c(e){return e&&e.__esModule?e:{default:e}}var f=o.Google=function(e){var o=e.width,t=e.onChange,l=e.rgb,a=e.hsl,c=e.hsv,f=e.hex,g=e.header,h=e.styles,x=void 0===h?{}:h,m=e.className,b=void 0===m?"":m,v=(0,i.default)((0,r.default)({default:{picker:{width:o,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+l.r+", "+l.g+", "+l.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},x));return d.default.createElement("div",{style:v.picker,className:"google-picker "+b},d.default.createElement("div",{style:v.head},g),d.default.createElement("div",{style:v.swatch}),d.default.createElement("div",{style:v.saturation},d.default.createElement(n.Saturation,{hsl:a,hsv:c,pointer:s.default,onChange:t})),d.default.createElement("div",{style:v.body},d.default.createElement("div",{style:v.controls,className:"flexbox-fix"},d.default.createElement("div",{style:v.hue},d.default.createElement(n.Hue,{style:v.Hue,hsl:a,radius:"4px",pointer:p.default,onChange:t}))),d.default.createElement(u.default,{rgb:l,hsl:a,hex:f,hsv:c,onChange:t})))};f.propTypes={width:a.default.oneOfType([a.default.string,a.default.number]),styles:a.default.object,header:a.default.string},f.defaultProps={width:652,styles:{},header:"Color picker"},o.default=(0,n.ColorWrap)(f)}));
|
|
;/*!node_modules/react-color/lib/index.js*/
|
|
amis.define("node_modules/react-color/lib/index",(function(e,r,o,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CustomPicker=r.GooglePicker=r.TwitterPicker=r.SwatchesPicker=r.SliderPicker=r.SketchPicker=r.PhotoshopPicker=r.MaterialPicker=r.HuePicker=r.GithubPicker=r.CompactPicker=r.ChromePicker=r.default=r.CirclePicker=r.BlockPicker=r.AlphaPicker=void 0;var c=e("node_modules/react-color/lib/components/alpha/Alpha");Object.defineProperty(r,"AlphaPicker",{enumerable:!0,get:function(){return _(c).default}});var n=e("node_modules/react-color/lib/components/block/Block");Object.defineProperty(r,"BlockPicker",{enumerable:!0,get:function(){return _(n).default}});var l=e("node_modules/react-color/lib/components/circle/Circle");Object.defineProperty(r,"CirclePicker",{enumerable:!0,get:function(){return _(l).default}});var i=e("node_modules/react-color/lib/components/chrome/Chrome");Object.defineProperty(r,"ChromePicker",{enumerable:!0,get:function(){return _(i).default}});var u=e("node_modules/react-color/lib/components/compact/Compact");Object.defineProperty(r,"CompactPicker",{enumerable:!0,get:function(){return _(u).default}});var a=e("node_modules/react-color/lib/components/github/Github");Object.defineProperty(r,"GithubPicker",{enumerable:!0,get:function(){return _(a).default}});var d=e("node_modules/react-color/lib/components/hue/Hue");Object.defineProperty(r,"HuePicker",{enumerable:!0,get:function(){return _(d).default}});var m=e("node_modules/react-color/lib/components/material/Material");Object.defineProperty(r,"MaterialPicker",{enumerable:!0,get:function(){return _(m).default}});var f=e("node_modules/react-color/lib/components/photoshop/Photoshop");Object.defineProperty(r,"PhotoshopPicker",{enumerable:!0,get:function(){return _(f).default}});var b=e("node_modules/react-color/lib/components/sketch/Sketch");Object.defineProperty(r,"SketchPicker",{enumerable:!0,get:function(){return _(b).default}});var s=e("node_modules/react-color/lib/components/slider/Slider");Object.defineProperty(r,"SliderPicker",{enumerable:!0,get:function(){return _(s).default}});var P=e("node_modules/react-color/lib/components/swatches/Swatches");Object.defineProperty(r,"SwatchesPicker",{enumerable:!0,get:function(){return _(P).default}});var p=e("node_modules/react-color/lib/components/twitter/Twitter");Object.defineProperty(r,"TwitterPicker",{enumerable:!0,get:function(){return _(p).default}});var k=e("node_modules/react-color/lib/components/google/Google");Object.defineProperty(r,"GooglePicker",{enumerable:!0,get:function(){return _(k).default}});var h=e("node_modules/react-color/lib/components/common/ColorWrap");Object.defineProperty(r,"CustomPicker",{enumerable:!0,get:function(){return _(h).default}});var g=_(i);function _(e){return e&&e.__esModule?e:{default:e}}r.default=g.default})); |