/*! For license information please see dll.219.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[219],{3285:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,o=a(3286),r=(l=o)&&l.__esModule?l:{default:l};t.default=r.default},3286:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var l=s(a(0)),o=s(a(1)),r=s(a(1032)),d=s(a(1216)),n=s(a(1247)),i=a(1101),u=s(a(3287));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Block=function(e){var t=e.onChange,a=e.onSwatchHover,o=e.hex,s=e.colors,c=e.width,f=e.triangle,p=e.styles,h=void 0===p?{}:p,x=e.className,b=void 0===x?"":x,g="transparent"===o,v=function(e,a){n.default.isValidHex(e)&&t({hex:e,source:"hex"},a)},w=(0,r.default)((0,d.default)({default:{card:{width:c,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:n.default.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" 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"}}},h),{"hide-triangle":"hide"===f});return l.default.createElement("div",{style:w.card,className:"block-picker "+b},l.default.createElement("div",{style:w.triangle}),l.default.createElement("div",{style:w.head},g&&l.default.createElement(i.Checkboard,{borderRadius:"6px 6px 0 0"}),l.default.createElement("div",{style:w.label},o)),l.default.createElement("div",{style:w.body},l.default.createElement(u.default,{colors:s,onClick:v,onSwatchHover:a}),l.default.createElement(i.EditableInput,{style:{input:w.input},value:o,onChange:v})))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"]),styles:o.default.object},c.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,i.ColorWrap)(c)},3287:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var l=n(a(0)),o=n(a(1032)),r=n(a(1278)),d=a(1101);function n(e){return e&&e.__esModule?e:{default:e}}var i=t.BlockSwatches=function(e){var t=e.colors,a=e.onClick,n=e.onSwatchHover,i=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return l.default.createElement("div",{style:i.swatches},(0,r.default)(t,(function(e){return l.default.createElement(d.Swatch,{key:e,color:e,style:i.swatch,onClick:a,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),l.default.createElement("div",{style:i.clear}))};t.default=i}}]);