(window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([["Alert"],{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),l=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,u=e.variation,f=Object(c.a)(e,["size","block","children","name","variation"]),p=u?"icon-".concat(s,"-").concat(u):"icon-".concat(s),h="undefined"!=typeof document&&document&&document.getElementById(p)?o.a.createElement(l,{id:p}):a;return o.a.createElement("svg",Object(r.a)({className:"".concat(Object(i.a)(s,u)," ").concat(n?"db":""),width:t.width,height:t.height},f),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}},1533:function(e,t,n){"use strict";n.r(t);var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),l=n(0),s=n.n(l),u=n(219),f=n(220),p=n(221),h=n(35),d=n(30),m=n(23);function b(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 v=function(e){Object(a.a)(n,e);var t=b(n);function n(e){var c;return Object(r.a)(this,n),(c=t.call(this,e)).firstElementRef=s.a.createRef(),c}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.autoClose&&this.props.onClose&&(this.timeout=setTimeout(this.props.onClose,this.props.autoClose)),this.props.focusOnOpen&&this.firstElementRef.current&&this.firstElementRef.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.onClose,r=e.action,c=e.forwardedRef,a=e.closeIconLabel,o=void 0===a?"Close":a,i="ph5 pv4 br2 ",l=!1,m="div",b="c-on-base",v=r&&r.onClick||void 0,C=r&&r.onClick&&r.label;switch(t){case"success":l=!0,i+="bg-success--faded ",m=u.a,b="c-success";break;case"error":l=!0,i+="bg-danger--faded ",m=f.a,b="c-danger";break;default:case"warning":l=!0,i+="bg-warning--faded ",m=p.a,b="c-warning"}return s.a.createElement("div",{ref:c,role:"alert",className:"vtex-alert flex justify-between t-body c-on-base ".concat(i)},s.a.createElement("div",{className:"flex-ns flex-wrap flex-grow-1 items-start"},s.a.createElement("div",{className:"flex items-start flex-grow-1 ".concat("pv3")},l&&s.a.createElement("div",{className:b},s.a.createElement(m,{block:!0,color:"currentColor",size:18})),s.a.createElement("div",{className:"".concat(l?"ph5 flex":"pr5")},this.props.children)),C&&s.a.createElement("div",{className:"flex flex-grow-1 justify-end ".concat("pv3")},s.a.createElement("div",{className:"nt4-ns nb4"},s.a.createElement(d.a,{ref:this.firstElementRef,variation:"tertiary",onClick:v},r.label)))),n&&s.a.createElement("button",{className:"vtex-alert__close-icon pointer c-on-base ph3 bg-transparent bn ".concat("pv3"),ref:C?void 0:this.firstElementRef,onClick:n,tabIndex:0},s.a.createElement(h.a,{title:o,block:!0,color:"currentColor",size:16})))}}]),n}(l.Component),C=Object(m.a)(v);t.default=C},219:function(e,t,n){"use strict";var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),l=n(0),s=n.n(l),u=n(11),f=n(2);function p(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:16,height:16},d=function(e){Object(a.a)(n,e);var t=p(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.solid,c=e.block,a=Object(f.b)(h,n);return s.a.createElement(u.a,{name:"success",variation:r?"solid":null,size:a,block:c},r?s.a.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM7 11.4L3.6 8L5 6.6L7 8.6L11 4.6L12.4 6L7 11.4Z",fill:t}):s.a.createElement(s.a.Fragment,null,s.a.createElement("path",{d:"M8 0C3.589 0 0 3.589 0 8C0 12.411 3.589 16 8 16C12.411 16 16 12.411 16 8C16 3.589 12.411 0 8 0ZM8 14C4.691 14 2 11.309 2 8C2 4.691 4.691 2 8 2C11.309 2 14 4.691 14 8C14 11.309 11.309 14 8 14Z",fill:t}),s.a.createElement("path",{d:"M3.414 6.828L-3.43323e-08 3.414L1.414 2L3.414 4L7.414 -3.43323e-08L8.828 1.414L3.414 6.828Z",transform:"translate(3.58606 4.586)",fill:t})))}}]),n}(l.PureComponent);d.defaultProps={color:"currentColor",size:16,solid:!1,block:!1},t.a=d},220:function(e,t,n){"use strict";var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),l=n(0),s=n.n(l),u=n(11),f=n(2);function p(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:16,height:16},d=function(e){Object(a.a)(n,e);var t=p(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.solid,c=e.block,a=Object(f.b)(h,n);return s.a.createElement(u.a,{name:"failure",variation:r?"solid":null,size:a,block:c},r?s.a.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM11.5 10.1L10.1 11.5L8 9.4L5.9 11.5L4.5 10.1L6.6 8L4.5 5.9L5.9 4.5L8 6.6L10.1 4.5L11.5 5.9L9.4 8L11.5 10.1Z",fill:t}):s.a.createElement(s.a.Fragment,null,s.a.createElement("path",{d:"M5.6 0L3.5 2.1L1.4 0L0 1.4L2.1 3.5L0 5.6L1.4 7L3.5 4.9L5.6 7L7 5.6L4.9 3.5L7 1.4L5.6 0Z",transform:"translate(4.5 4.5)",fill:t}),s.a.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM8 14C4.7 14 2 11.3 2 8C2 4.7 4.7 2 8 2C11.3 2 14 4.7 14 8C14 11.3 11.3 14 8 14Z",fill:t})))}}]),n}(l.PureComponent);d.defaultProps={color:"currentColor",size:16,solid:!1,block:!1},t.a=d},221:function(e,t,n){"use strict";var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),l=n(0),s=n.n(l),u=n(11),f=n(2);function p(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:16,height:16},d=function(e){Object(a.a)(n,e);var t=p(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.solid,c=e.block,a=Object(f.b)(h,n);return s.a.createElement(u.a,{name:"warning",variation:r?"solid":null,size:a,block:c},r?s.a.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM8 12C7.4 12 7 11.6 7 11C7 10.4 7.4 10 8 10C8.6 10 9 10.4 9 11C9 11.6 8.6 12 8 12ZM9 9H7V4H9V9Z",fill:t}):s.a.createElement(s.a.Fragment,null,s.a.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM8 14C4.7 14 2 11.3 2 8C2 4.7 4.7 2 8 2C11.3 2 14 4.7 14 8C14 11.3 11.3 14 8 14Z",fill:t}),s.a.createElement("path",{d:"M2 0H0V5H2V0Z",transform:"translate(7 4)",fill:t}),s.a.createElement("path",{d:"M1 2C1.55228 2 2 1.55228 2 1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2Z",transform:"translate(7 10)",fill:t})))}}]),n}(l.PureComponent);d.defaultProps={color:"currentColor",size:16,solid:!1,block:!1},t.a=d},3:function(e,t){e.exports=PropTypes},35:function(e,t,n){"use strict";var r=n(4),c=n(5),a=n(6),o=n(7),i=n(1),l=n(0),s=n.n(l),u=n(11),f=n(2);function p(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:18,height:18},d=function(e){Object(a.a)(n,e);var t=p(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=e.title,a=Object(f.b)(h,n);return s.a.createElement(u.a,{name:"close",size:a,block:r,viewBox:"0 0 18 18"},c&&s.a.createElement("title",null,c),s.a.createElement("g",{fill:t},s.a.createElement("path",{d:"M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"})))}}]),n}(l.PureComponent);d.defaultProps={color:"currentColor",size:16,block:!1},t.a=d},608: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(1533)}),e,"vtex.styleguide@9.146.13","vtex.styleguide@9.x","Alert");r.renderHotReload,r.setupHMR}.call(this,n(16)(e))}},[[608,"common",0]]]);