enqueueScripts([function(){ (window.webpackJsonpvtex_render_runtime_8_136_1=window.webpackJsonpvtex_render_runtime_8_136_1||[]).push([["LayoutContainer"],{52:function(e,t){e.exports=__RENDER_8_RUNTIME__},568:function(e,t,n){"use strict";n.r(t),function(e){var t=n(27);n.p=Object(t.getPublicPath)("vtex.render-runtime@8.136.1");var r=Object(t.register)((function(){return n(569)}),e,"vtex.render-runtime@8.136.1","vtex.render-runtime@8.x","LayoutContainer");r.renderHotReload,r.setupHMR}.call(this,n(43)(e))},569:function(e,t,n){"use strict";n.r(t);var r=n(52);t.default=r.LayoutContainer}},[[568,"common"]]]); },function(){ !function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],p=0,f=[];pe.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})).join(" ").trim();return o.concat(c).join(" ").trim()}},function(n,t){n.exports=React},function(n,t){n.exports=__RENDER_8_RUNTIME__},,function(n,t,e){"use strict";e.r(t);var r=e(1),o=e(2),c=e(4),a=e(5);function i(n,t){return[n].concat(Object(r.a)(t)).filter((function(n){return!!n})).join("/")}var s=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.children,e=Object(a.useRuntime)(),r=e.extensions,o=Object(a.useTreePath)(),c=o.treePath,s=t?i(c,Array.isArray(t)?t:[t]):c,u=s&&r[s];return u||null},u=e(3),l=function(n){var t=function(n){var t=/[^@.]+/g,e=t.exec(n)||[null],r=Object(o.a)(e,1)[0],c=t.exec(n)||[null],a=Object(o.a)(c,1)[0],i=t.exec(n)||[null];return{vendor:r,name:a,major:Object(o.a)(i,1)[0]}}(n),e=t.vendor,r=t.name,c=t.major;return e&&r&&c&&"".concat(e,"-").concat(r,"-").concat(c,"-x")},f=function(n,t,e){return t.reduce((function(t,r){var o=!!n&&function(n){return!/^\d|[^A-z0-9-]/.test(n)}(r),c="".concat(n,"-").concat(r);return t[r]=o?e?Object(u.default)(c,e):c:"",o||console.error('Invalid CSS handle "'.concat(r,'". It should only contain letters or numbers, and should start with a letter.')),t}),{})};t.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=s(),o=e||{},a=o.props,i=void 0===a?{}:a,u=o.component,d=void 0===u?"":u,v=i.cssHandle||i.blockClass,p=Object(c.useMemo)((function(){var e=t.migrationFrom,o=l(d),c=o?[o]:[];if(e){var a=(Array.isArray(e)?e:[e]).map(l).filter((function(n){return!!n&&n!==o}));c.push.apply(c,Object(r.a)(a))}return c.map((function(t){return f(t,n,v)})).reduce((function(n,t){return n?(Object.keys(t).forEach((function(e){n[e]="".concat(n[e]," ").concat(t[e])})),n):t}),void 0)}),[v,d,n,t]);return p}},,,,,function(n,t,e){"use strict";e.r(t),function(n){var t=e(0);e.p=Object(t.getPublicPath)("vtex.css-handles@0.4.4");var r=Object(t.register)((function(){return e(7)}),n,"vtex.css-handles@0.4.4","vtex.css-handles@0.x","useCssHandles");r.renderHotReload,r.setupHMR}.call(this,e(9)(n))}],[[12,"common"]]]); },function(){ (window.webpackJsonpvtex_css_handles_0_4_4=window.webpackJsonpvtex_css_handles_0_4_4||[]).push([["applyModifiers"],{11:function(n,r,e){"use strict";e.r(r),function(n){var r=e(0);e.p=Object(r.getPublicPath)("vtex.css-handles@0.4.4");var t=Object(r.register)((function(){return e(3)}),n,"vtex.css-handles@0.4.4","vtex.css-handles@0.x","applyModifiers");t.renderHotReload,t.setupHMR}.call(this,e(9)(n))},3:function(n,r,e){"use strict";e.r(r);var t=/[^A-z0-9-]/;var s,i,o,a=new Set([]);s=function(){console.error("Invalid CSS modifiers. All modifiers should be strings, and only contain letters, numbers, or -. Found: ".concat(Array.from(a.values()).join(", "))),a.clear()},i=3e3;r.default=function(n,r){var e="string"==typeof r?[r]:r;if(!Array.isArray(e))return console.error("Invalid modifier type on `cssHandles.applyModifier`. Please use either a string or an array of strings"),n;var s=n.split(" "),i=e.map((function(n){return function(n){return"string"==typeof n&&(""!==n&&!t.test(n))}(n)?s.map((function(r){return"".concat(r,"--").concat(n)})).join(" ").trim():""})).filter((function(n){return n.length>0})).join(" ").trim();return s.concat(i).join(" ").trim()}}},[[11,"common"]]]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];s=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},16:function(t,n){t.exports=function(t){if(!t.webpackPolyfill){var n=Object.create(t);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},160:function(t,n){function e(){return t.exports=e=Object.assign||function(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},292:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(246);function o(t,n){if(t){if("string"==typeof t)return Object(r.a)(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Object(r.a)(t,n):void 0}}},36:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(246);var o=e(292);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4:function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}e.d(n,"a",(function(){return r}))},411:function(t,n,e){t.exports=e(1416)},49:function(t,n){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},5:function(t,n,e){"use strict";function r(t,n){for(var e=0;e=0||(o[e]=t[e]);return o}},528:function(t,n,e){"use strict";function r(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}e.d(n,"a",(function(){return r}))},550:function(t,n,e){"use strict";function r(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}function o(t){return function(){var n=this,e=arguments;return new Promise((function(o,i){var u=t.apply(n,e);function c(t){r(u,o,i,c,a,"next",t)}function a(t){r(u,o,i,c,a,"throw",t)}c(void 0)}))}}e.d(n,"a",(function(){return o}))},6:function(t,n,e){"use strict";function r(t,n){return(r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function o(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&r(t,n)}e.d(n,"a",(function(){return o}))},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(99),o=e(12);function i(t,n){return!n||"object"!==Object(r.a)(n)&&"function"!=typeof n?Object(o.a)(t):n}},8:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPublicPath=n.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},n.register=function(t,n,e,i,u){var c="".concat(e,"/").concat(u),a="".concat(i,"/").concat(u),f=function(){return function(t,n){try{var e=t();return e.__esModule?e.default:e.default||e}catch(t){throw new Error("An error happened while requiring the app ".concat(n,", please check your app's code.\\n").concat(t.stack))}}(t,c)};if(window[r]&&window[r].registerComponent){var l=!!window.__RENDER_LAZY__;window[r].registerComponent(n,l?f:f(),e,u,l)}else{var s=f();window[r]&&window[r].withHMR?window[o][c]=window[o][a]=window[r].withHMR(n,s):window[o][c]=window[o][a]=s}return{}},n.getPublicPath=function(t){var n=window.__hostname__,e="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(n=__RUNTIME__.assetServerPublishedHost||window.location.hostname,e=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+n+e+"".concat(t,"/public/react/")}},9:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},99:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(n,"a",(function(){return r}))}}); },function(){ (window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([[0],{2:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));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}},o=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 p}));var r=n(10),o=n(0),a=n.n(o),i=n(3),c=n.n(i),s="undefined"==typeof window||void 0===window.Element?function(){}:window.Element;c.a.oneOfType([c.a.func,c.a.shape({current:c.a.instanceOf(s)})]);function p(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}},30:function(e,t,n){"use strict";var r=n(10),o=n(4),a=n(5),i=n(12),c=n(6),s=n(7),p=n(1),u=n(9),d=n(0),l=n.n(d),h=n(48),b=n(23);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(p.a)(e);if(t){var o=Object(p.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c=t.height;return{width:n?e:e*t.width/t.height,height:n?e*t.height/t.width:e}},c=function(t,e){return"vtex__icon-".concat(t," ").concat(e?"vtex__icon-".concat(t,"--").concat(e):"")}},48:function(t,e,n){"use strict";var r=n(4),c=n(5),o=n(6),i=n(7),a=n(1),s=n(0),u=n.n(s),f=n(2),l=n(63);function p(t){var e=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(t){return!1}}();return function(){var n,r=Object(a.a)(t);if(e){var c=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var h=80*Math.PI,v=function(t){Object(o.a)(n,t);var e=p(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var t=this.props,e=t.color,n=t.size,r=t.block;return u.a.createElement("svg",{className:"".concat(l.rotate," ").concat(Object(f.a)("spinner")," ").concat(e?"":"c-action-primary"," ").concat(r?"db":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",height:n,width:n},u.a.createElement("circle",{className:"vtex-spinner_circle",cx:"50",cy:"50",fill:"none",r:40,stroke:e||"currentColor",strokeWidth:"10",strokeDasharray:"0 0 ".concat(.65*h," ").concat(h),strokeLinecap:"round",strokeDashoffset:"1"}))}}]),n}(u.a.Component);v.defaultProps={block:!1,size:40},e.a=v},63:function(t,e,n){t.exports={rotate:"vtex-styleguide-9-x-rotate","vtex-spinner-rotate":"vtex-styleguide-9-x-vtex-spinner-rotate"}}},[[1433,"common"]]]); },function(){ (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"]]]); },function(){ (window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([["IconClose"],{0:function(t,e){t.exports=React},11:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var c=n(10),r=n(14),i=n(0),o=n.n(i),a=n(2),u=function(t){var e=t.id;return o.a.createElement("use",{href:"#".concat(e),xlinkHref:"#".concat(e)})},l=function(t){var e=t.size,n=t.block,i=t.children,l=t.name,s=t.variation,f=Object(r.a)(t,["size","block","children","name","variation"]),h=s?"icon-".concat(l,"-").concat(s):"icon-".concat(l),d="undefined"!=typeof document&&document&&document.getElementById(h)?o.a.createElement(u,{id:h}):i;return o.a.createElement("svg",Object(c.a)({className:"".concat(Object(a.a)(l,s)," ").concat(n?"db":""),width:e.width,height:e.height},f),d)};l.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}},1324:function(t,e,n){"use strict";n.r(e),function(t){var e=n(8);n.p=Object(e.getPublicPath)("vtex.styleguide@9.146.13");var c=Object(e.register)((function(){return n(1325)}),t,"vtex.styleguide@9.146.13","vtex.styleguide@9.x","IconClose");c.renderHotReload,c.setupHMR}.call(this,n(16)(t))},1325:function(t,e,n){"use strict";n.r(e);var c=n(35);e.default=c.a},2:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return r}));var c=function(t,e){var n=t.width>=t.height;return{width:n?e:e*t.width/t.height,height:n?e*t.height/t.width:e}},r=function(t,e){return"vtex__icon-".concat(t," ").concat(e?"vtex__icon-".concat(t,"--").concat(e):"")}},35:function(t,e,n){"use strict";var c=n(4),r=n(5),i=n(6),o=n(7),a=n(1),u=n(0),l=n.n(u),s=n(11),f=n(2);function h(t){var e=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(t){return!1}}();return function(){var n,c=Object(a.a)(t);if(e){var r=Object(a.a)(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return Object(o.a)(this,n)}}var d={width:18,height:18},v=function(t){Object(i.a)(n,t);var e=h(n);function n(){return Object(c.a)(this,n),e.apply(this,arguments)}return Object(r.a)(n,[{key:"render",value:function(){var t=this.props,e=t.color,n=t.size,c=t.block,r=t.title,i=Object(f.b)(d,n);return l.a.createElement(s.a,{name:"close",size:i,block:c,viewBox:"0 0 18 18"},r&&l.a.createElement("title",null,r),l.a.createElement("g",{fill:e},l.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}(u.PureComponent);v.defaultProps={color:"currentColor",size:16,block:!1},e.a=v}},[[1324,"common"]]]); },function(){ (window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([[1],{101:function(e,t,a){e.exports={input:"vtex-styleguide-9-x-input",hideDecorators:"vtex-styleguide-9-x-hideDecorators",noAppearance:"vtex-styleguide-9-x-noAppearance"}},37:function(e,t,a){"use strict";var o=a(10),n=a(4),r=a(5),s=a(12),p=a(6),c=a(7),i=a(1),l=a(9),u=a(0),d=a.n(u),h=a(30),b=a(101),f=a.n(b),m=a(23);function v(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 a,o=Object(i.a)(e);if(t){var n=Object(i.a)(this).constructor;a=Reflect.construct(o,arguments,n)}else a=o.apply(this,arguments);return Object(c.a)(this,a)}}var x=function(e){Object(p.a)(a,e);var t=v(a);function a(e){var o;return Object(n.a)(this,a),o=t.call(this,e),Object(l.a)(Object(s.a)(o),"handleChange",(function(e){o.props.onChange&&o.props.onChange(e)})),Object(l.a)(Object(s.a)(o),"handleKeyPress",(function(e){o.props.onKeyPress&&o.props.onKeyPress(e)})),Object(l.a)(Object(s.a)(o),"handleKeyDown",(function(e){o.props.onKeyDown&&o.props.onKeyDown(e)})),Object(l.a)(Object(s.a)(o),"handleKeyUp",(function(e){o.props.onKeyUp&&o.props.onKeyUp(e)})),Object(l.a)(Object(s.a)(o),"handleFocus",(function(e){o.props.readOnly||(o.setState({active:!0}),o.props.onFocus&&o.props.onFocus(e))})),Object(l.a)(Object(s.a)(o),"handleBlur",(function(e){o.props.readOnly||(o.setState({active:!1}),o.props.onBlur&&o.props.onBlur(e))})),Object(l.a)(Object(s.a)(o),"handleMouseEnter",(function(e){o.props.onMouseEnter&&o.props.onMouseEnter(e)})),Object(l.a)(Object(s.a)(o),"handleMouseLeave",(function(e){o.props.onMouseLeave&&o.props.onMouseLeave(e)})),o.state={active:!1},o}return Object(r.a)(a,[{key:"componentDidMount",value:function(){"x-large"===this.props.size&&console.warn('Input: The value "x-large" for the prop "size" is deprecated. In the next major version, it will be equivalent to "large", and removed altogether in future versions'),this.props.suffixIcon&&console.warn("The prop suffixIcon is deprecated and will be removed in the next major. Please use the prop suffix instead."),this.props.prefix&&this.props.suffix&&console.warn("You should not use both prefix and suffix props in the same input. ")}},{key:"render",value:function(){for(var e=this.props,t=e.errorMessage,a=e.error,n=e.label,r=e.size,s=e.token,p=e.helpText,c=e.dataAttributes,i=e.prefix,l=e.suffix,u=e.suffixIcon,b=e.button,m=e.buttonProps,v=e.isLoadingButton,x=e.groupBottom,y=e.disabled,g=e.readOnly,O=e.testId,j=this.state.active,w=l||u,_={},E=0,K=Object.keys(c);E1&&void 0!==arguments[1])||arguments[1],r="-"===e[0],n=r&&t,a=(e=e.replace("-","")).split("."),o=a[0],i=a[1]||"";return{beforeDecimal:o,afterDecimal:i,hasNagation:r,addNegation:n}}function v(e,t,r){for(var n="",a=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||a;return n}function y(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function S(e,t,r){return Math.min(Math.max(e,t),r)}function b(e){return Math.max(e.selectionStart,e.selectionEnd)}var x={thousandSeparator:p.oneOfType([p.string,p.oneOf([!0])]),decimalSeparator:p.string,allowedDecimalSeparators:p.arrayOf(p.string),thousandsGroupStyle:p.oneOf(["thousand","lakh","wan"]),decimalScale:p.number,fixedDecimalScale:p.bool,displayType:p.oneOf(["input","text"]),prefix:p.string,suffix:p.string,format:p.oneOfType([p.string,p.func]),removeFormatting:p.func,mask:p.oneOfType([p.string,p.arrayOf(p.string)]),value:p.oneOfType([p.number,p.string]),defaultValue:p.oneOfType([p.number,p.string]),isNumericString:p.bool,customInput:p.elementType,allowNegative:p.bool,allowEmptyFormatting:p.bool,allowLeadingZeros:p.bool,onValueChange:p.func,onKeyDown:p.func,onMouseUp:p.func,onChange:p.func,onFocus:p.func,onBlur:p.func,type:p.oneOf(["text","tel","password"]),isAllowed:p.func,renderText:p.func,getInputRef:p.func},w={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:h,onChange:h,onKeyDown:h,onMouseUp:h,onFocus:h,onBlur:h,isAllowed:function(){return!0}},k=function(e){function t(e){var r,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,r=!(a=s(t).call(this,e))||"object"!=typeof a&&"function"!=typeof a?l(n):a;var o=e.defaultValue;r.validateProps();var i=r.formatValueProp(o);return r.state={value:i,numAsString:r.removeFormatting(i)},r.selectionBeforeInput={selectionStart:0,selectionEnd:0},r.onChange=r.onChange.bind(l(l(r))),r.onKeyDown=r.onKeyDown.bind(l(l(r))),r.onMouseUp=r.onMouseUp.bind(l(l(r))),r.onFocus=r.onFocus.bind(l(l(r))),r.onBlur=r.onBlur.bind(l(l(r))),r}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,r=this.state,n=this.focusedElm,a=r.value,o=r.numAsString,i=void 0===o?"":o;if(e!==t){this.validateProps();var s=this.formatNumString(i),u=void 0===t.value?s:this.formatValueProp(),l=this.removeFormatting(u),c=parseFloat(l),f=parseFloat(i);(isNaN(c)&&isNaN(f)||c===f)&&s===a&&(null!==n||u===a)||this.updateValue({formattedValue:u,numAsString:l,input:n})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,r=this.getSeparators(),n=r.decimalSeparator,a=this.getNumberRegex(!0),o="-"===e[0];o&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var i=(e=(e.match(a)||[]).join("").replace(n,".")).indexOf(".");return-1!==i&&(e="".concat(e.substring(0,i),".").concat(e.substring(i+1,e.length).replace(new RegExp(m(n),"g"),""))),o&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var r=this.props,n=r.format,a=r.decimalScale,o=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!o||0===a||t||n?"":"|"+m(o)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,r=t.thousandSeparator,n=t.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:n}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,r=void 0===t?" ":t;return"string"==typeof r?r:r[e]||" "}},{key:"getValueObject",value:function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),r=t.decimalSeparator,n=t.thousandSeparator;if(r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(n,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(r," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,r){y(e,t),setTimeout((function(){e.value===r&&y(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,r){var n=this.props,a=n.prefix,o=n.suffix,i=n.format;if(""===e)return 0;if(t=S(t,0,e.length),!i){var s="-"===e[0];return S(t,a.length+(s?1:0),e.length-o.length)}if("function"==typeof i)return t;if("#"===i[t]&&g(e[t]))return t;if("#"===i[t-1]&&g(e[t-1]))return t;var u=i.indexOf("#");t=S(t,u,i.lastIndexOf("#")+1);for(var l=i.substring(t,i.length).indexOf("#"),c=t,f=t+(-1===l?0:l);c>u&&("#"!==i[c]||!g(e[c]));)c-=1;return!g(e[f])||"left"===r&&t!==u||t-c0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,r=t.format,n=t.allowEmptyFormatting,a=e;return a=""!==e||n?"-"!==e||r?"string"==typeof r?this.formatWithPattern(a):"function"==typeof r?r(a):this.formatAsNumber(a):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,r=t.format,n=t.decimalScale,a=t.fixedDecimalScale,o=t.allowEmptyFormatting,i=this.props,s=i.value,u=void 0===s?e:s,l=i.isNumericString,c=!u&&0!==u;return c&&o&&(u=""),c&&!o?"":("number"==typeof u&&(u=u.toString(),l=!0),"Infinity"===u&&l&&(u=""),l&&!r&&"number"==typeof n&&(u=function(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=-1!==e.indexOf(".")&&t,a=d(e),o=a.beforeDecimal,i=a.afterDecimal,s=a.hasNagation,u=parseFloat("0.".concat(i||"0")).toFixed(t).split("."),l=o.split("").reverse().reduce((function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]),c=v(u[1]||"",Math.min(t,i.length),r),f=n?".":"";return"".concat(s?"-":"").concat(l).concat(f).concat(c)}(u,n,a)),l?this.formatNumString(u):this.formatInput(u))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),a&&!o&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var r=this.props,n=r.format,a=r.prefix,o=r.suffix,i=r.decimalScale,s=r.fixedDecimalScale,u=this.getSeparators().decimalSeparator;return"string"==typeof n&&"#"!==n[e]||!(n||!(e=t.length-o.length||i&&s&&t[e]===u))}},{key:"checkIfFormatGotDeleted",value:function(e,t,r){for(var n=e;nr&&a-n>r;)n++;return{start:r,end:a-n}}(t,r),v=m.start,y=m.end;if(!a&&v===y&&-1!==l.indexOf(r[h]))return r.substr(0,h)+c+r.substr(h+1,r.length);var S=a?0:i.length,b=t.length-(a?0:s.length);if(r.length>t.length||!r.length||v===y||0===h&&g===t.length||h===S&&g===b)return r;if(this.checkIfFormatGotDeleted(v,y,t)&&(r=t),!a){var x=this.removeFormatting(r),w=d(x,o),k=w.beforeDecimal,O=w.afterDecimal,P=w.addNegation,D=e1&&void 0!==arguments[1]?arguments[1]:h,n=e.formattedValue,a=e.input,o=e.numAsString,i=e.caretPos,s=this.props.onValueChange,u=this.state.value;if(a){if(!i){var l=e.inputValue||a.value,c=b(a);i=this.getCaretPosition(l,n,c)}a.value=n,this.setPatchedCaretPosition(a,i,n)}void 0===o&&(o=this.removeFormatting(n)),n!==u?this.setState({value:n,numAsString:o},(function(){s(t.getValueObject(n,o)),r()})):r()}},{key:"onChange",value:function(e){e.persist();var t=e.target,r=t.value,n=this.state,a=this.props,o=a.isAllowed,i=n.value||"",s=b(t);r=this.correctInputValue(s,i,r);var u=this.formatInput(r)||"",l=this.removeFormatting(u);o(this.getValueObject(u,l))||(u=i),this.updateValue({formattedValue:u,numAsString:l,inputValue:r,input:t},(function(){a.onChange(e)}))}},{key:"onBlur",value:function(e){var t=this.props,r=this.state,n=t.format,a=t.onBlur,o=t.allowLeadingZeros,i=r.numAsString,s=r.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!n){o||(i=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return"".concat(t?"-":"").concat(n).concat(a?".".concat(a):"")}(i));var u=this.formatNumString(i);if(u!==s)return e.persist(),void this.updateValue({formattedValue:u,numAsString:i},(function(){a(e)}))}a(e)}},{key:"onKeyDown",value:function(e){var t,r=e.target,n=e.key,a=r.selectionStart,o=r.selectionEnd,i=r.value,s=void 0===i?"":i,u=this.props,l=u.decimalScale,c=u.fixedDecimalScale,f=u.prefix,p=u.suffix,h=u.format,g=u.onKeyDown,m=(u.onValueChange,void 0!==l&&c),d=this.getNumberRegex(!1,m),v=new RegExp("-"),y="string"==typeof h;if(this.selectionBeforeInput={selectionStart:a,selectionEnd:o},"ArrowLeft"===n||"Backspace"===n?t=a-1:"ArrowRight"===n?t=a+1:"Delete"===n&&(t=a),void 0!==t&&a===o){var S=t,b=y?h.indexOf("#"):f.length,x=y?h.lastIndexOf("#")+1:s.length-p.length;if("ArrowLeft"===n||"ArrowRight"===n){var w="ArrowLeft"===n?"left":"right";S=this.correctCaretPosition(s,t,w)}else if("Delete"!==n||d.test(s[t])||v.test(s[t])){if("Backspace"===n&&!d.test(s[t]))if(a<=b+1&&"-"===s[0]&&void 0===h){var k=s.substring(1);e.persist(),this.updateValue({formattedValue:k,caretPos:S,input:r})}else if(!v.test(s[t])){for(;!d.test(s[S-1])&&S>b;)S--;S=this.correctCaretPosition(s,S,"left")}}else for(;!d.test(s[S])&&Sx)&&(e.preventDefault(),this.setPatchedCaretPosition(r,S,s)),e.isUnitTestRun&&this.setPatchedCaretPosition(r,S,s),this.props.onKeyDown(e)}else g(e)}},{key:"onMouseUp",value:function(e){var t=e.target,r=t.selectionStart,n=t.selectionEnd,a=t.value,o=void 0===a?"":a;if(r===n){var i=this.correctCaretPosition(o,r);i!==r&&this.setPatchedCaretPosition(t,i,o)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var r=e.target,n=r.selectionStart,a=r.selectionEnd,o=r.value,i=void 0===o?"":o,s=t.correctCaretPosition(i,n);s===n||0===n&&a===i.length||t.setPatchedCaretPosition(r,s,i),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,r,n=this.props,o=n.type,s=n.displayType,u=n.customInput,l=n.renderText,c=n.getInputRef,f=this.state.value,p=(e=this.props,t=x,r={},Object.keys(e).forEach((function(n){t[n]||(r[n]=e[n])})),r),h=i({},p,{type:o,value:f,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===s)return l?l(f)||null:a.a.createElement("span",i({},p,{ref:c}),f);if(u){var g=u;return a.a.createElement(g,i({},h,{ref:c}))}return a.a.createElement("input",i({},h,{ref:c}))}}])&&o(r.prototype,n),c&&o(r,c),t}(a.a.Component);k.propTypes=x,k.defaultProps=w,t.a=k}}]); }], document.currentScript.dataset.index)