Module 370244

1,089 characters · in 8177793bb7ed8b5b.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(64700),o=r(205662),a=r(702068);let i=function(e){var t=e.onClick,r=e.hsl,i=(0,o.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return n.createElement("div",{style:i.swatches},n.createElement("div",{style:i.swatch},n.createElement(a.A,{hsl:r,offset:".80",active:.1>Math.abs(r.l-.8)&&.1>Math.abs(r.s-.5),onClick:t,first:!0})),n.createElement("div",{style:i.swatch},n.createElement(a.A,{hsl:r,offset:".65",active:.1>Math.abs(r.l-.65)&&.1>Math.abs(r.s-.5),onClick:t})),n.createElement("div",{style:i.swatch},n.createElement(a.A,{hsl:r,offset:".50",active:.1>Math.abs(r.l-.5)&&.1>Math.abs(r.s-.5),onClick:t})),n.createElement("div",{style:i.swatch},n.createElement(a.A,{hsl:r,offset:".35",active:.1>Math.abs(r.l-.35)&&.1>Math.abs(r.s-.5),onClick:t})),n.createElement("div",{style:i.swatch},n.createElement(a.A,{hsl:r,offset:".20",active:.1>Math.abs(r.l-.2)&&.1>Math.abs(r.s-.5),onClick:t,last:!0})),n.createElement("div",{style:i.clear}))}}