(window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([["Checkbox"],{0:function(e,t){e.exports=React},11:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(10),c=n(14),a=n(0),o=n.n(a),i=n(2),u=function(e){var t=e.id;return o.a.createElement("use",{href:"#".concat(t),xlinkHref:"#".concat(t)})},s=function(e){var t=e.size,n=e.block,a=e.children,s=e.name,l=e.variation,d=Object(c.a)(e,["size","block","children","name","variation"]),f=l?"icon-".concat(s,"-").concat(l):"icon-".concat(s),h="undefined"!=typeof document&&document&&document.getElementById(f)?o.a.createElement(u,{id:f}):a;return o.a.createElement("svg",Object(r.a)({className:"".concat(Object(i.a)(s,l)," ").concat(n?"db":""),width:t.width,height:t.height},d),h)};s.defaultProps={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",size:{width:16,height:16},block:!1,viewBox:"0 0 16 16",fill:"none",variation:null}},117:function(e,t,n){"use strict";var r=n(99),c=n(4),a=n(5),o=n(12),i=n(6),u=n(7),s=n(1),l=n(9),d=n(0),f=n.n(d),h=n(13),b=n.n(h),p=n(53),m=n(11),v=n(2);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var c=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var x={width:12,height:12},k=function(e){Object(i.a)(n,e);var t=y(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){var e=this.props,t=e.color,n=e.size,r=e.block,c=Object(v.b)(x,n);return f.a.createElement(m.a,{name:"check",size:c,block:r,viewBox:"0 0 12 12"},f.a.createElement("path",{d:"M2 5V7H10V5H2Z",fill:t}))}}]),n}(d.PureComponent);k.defaultProps={color:"currentColor",size:16,block:!1};var w=k,g=n(23);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var c=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var O=function(e){Object(i.a)(n,e);var t=j(n);function n(e){var r;return Object(c.a)(this,n),r=t.call(this,e),Object(l.a)(Object(o.a)(r),"handleChange",(function(e){return r.props.onChange?!r.props.disabled&&r.props.onChange(e):void 0})),r.myCheckbox=f.a.createRef(),r}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.myCheckbox.indeterminate=!this.props.checked&&this.props.partial}},{key:"componentDidUpdate",value:function(e){e.partial===this.props.partial&&e.checked===this.props.checked||(this.myCheckbox.indeterminate=!this.props.checked&&this.props.partial)}},{key:"render",value:function(){var e=this,t=this.props,n=t.checked,c=t.disabled,a=t.id,o=t.label,i=t.name,u=t.required,s=t.value,l=t.partial,d=t.forwardedRef;return f.a.createElement("div",{className:"vtex-checkbox__line-container flex items-start relative"+(c?"":" pointer")},f.a.createElement("div",{className:"vtex-checkbox__container relative w1 h1"+(o?" mr3":"")},f.a.createElement("div",{className:b()("vtex-checkbox__inner-container h1 w1 absolute ba bw1 br1 ",n?c?"b--disabled bg-disabled":"b--action-primary bg-action-primary":c?"b--disabled bg-muted-5 c-disabled"+(l?" b--muted-5 bg-muted-5":""):"b--muted-4 pointer",o&&"mr3"),style:{transition:"background 20ms, border 100ms",backgroundColor:l&&!n&&!c&&"#dbe9fd",borderColor:l&&!n&&!c&&"#dbe9fd"}}),f.a.createElement("div",{className:"vtex-checkbox__box-wrapper absolute w1 h1 flex o-100",style:{left:0}},f.a.createElement("div",{className:"vtex-checkbox__box absolute top-0 left-0 bottom-0 overflow-hidden w-100 flex items-center align-center justify-center ".concat(c?"c-on-disabled":"c-on-action-primary"),style:{transition:"right 110ms ease-in-out 30ms"}},n?f.a.createElement(p.a,{size:12,color:"currentColor"}):l&&f.a.createElement(w,{size:12,color:c?"#979899":"#1346d8"}))),f.a.createElement("input",{checked:n,ref:function(t){t&&(e.myCheckbox=t),"function"==typeof d?d(t):d&&"object"===Object(r.a)(d)&&(d.current=t)},className:"vtex-checkbox__input h1 w1 absolute o-0"+(c?"":" pointer"),disabled:c,required:u,id:a,name:i,onChange:this.handleChange,type:"checkbox",value:s,tabIndex:0})),o&&f.a.createElement("label",{className:"vtex-checkbox__label w-100 "+(c?"c-disabled":"c-on-base pointer"),htmlFor:a},o))}}]),n}(d.PureComponent);O.defaultProps={checked:!1,disabled:!1,required:!1,partial:!1};t.a=Object(g.a)(O)},13:function(e,t){e.exports=Classnames},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c}));var r=function(e,t){var n=e.width>=e.height;return{width:n?t:t*e.width/e.height,height:n?t*e.height/e.width:t}},c=function(e,t){return"vtex__icon-".concat(e," ").concat(t?"vtex__icon-".concat(e,"--").concat(t):"")}},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(10),c=n(0),a=n.n(c),o=n(3),i=n.n(o),u="undefined"==typeof window||void 0===window.Element?function(){}:window.Element;i.a.oneOfType([i.a.func,i.a.shape({current:i.a.instanceOf(u)})]);function s(e){var t=a.a.forwardRef((function(t,n){return a.a.createElement(e,Object(r.a)({},t,{forwardedRef:n}))}));return t.displayName=e.displayName||e.name,t}},3:function(e,t){e.exports=PropTypes},53:function(e,t,n){"use strict";var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),u=n(0),s=n.n(u),l=n(11),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(i.a)(e);if(t){var c=Object(i.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var h={width:12,height:12},b=function(e){Object(a.a)(n,e);var t=f(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.color,n=e.size,r=e.block,c=Object(d.b)(h,n);return s.a.createElement(l.a,{name:"check",size:c,block:r,viewBox:"0 0 12 12"},s.a.createElement("path",{d:"M10.8 4.4L9.4 3L5.4 7L3.4 5L2 6.4L5.4 9.8L10.8 4.4Z",fill:t}))}}]),n}(u.PureComponent);b.defaultProps={color:"currentColor",size:16,block:!1},t.a=b},755:function(e,t,n){"use strict";n.r(t),function(e){var t=n(8);n.p=Object(t.getPublicPath)("vtex.styleguide@9.146.13");var r=Object(t.register)((function(){return n(756)}),e,"vtex.styleguide@9.146.13","vtex.styleguide@9.x","Checkbox");r.renderHotReload,r.setupHMR}.call(this,n(16)(e))},756:function(e,t,n){"use strict";n.r(t);var r=n(117);t.default=r.a}},[[755,"common"]]]);