import*as e from"react";import{motion as t}from"../../../../framer-motion/dist/es/render/dom/motion.js";import{AnimatePresence as r}from"../../../../framer-motion/dist/es/components/AnimatePresence/index.js";import{chakra as n}from"../../../system/dist/esm/system.js";function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o="custom"in t?t.custom(n.svg):t(n.svg),a=t=>e.createElement(o,i({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},t),e.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"})),s=t=>e.createElement(o,i({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},t),e.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"})),c=n=>{var{open:i,children:o}=n;return e.createElement(r,{initial:!1},i&&e.createElement(t.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},o))},l=t=>{var{isIndeterminate:r,isChecked:n}=t,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["isIndeterminate","isChecked"]),o=r?s:a;return e.createElement(c,{open:n||r},e.createElement(o,i))};export{l as CheckboxIcon};
//# sourceMappingURL=checkbox-icon.js.map
