enqueueScripts([function(){ (window.webpackJsonpvtex_format_currency_0_4_1=window.webpackJsonpvtex_format_currency_0_4_1||[]).push([["FormattedCurrency"],[,function(r,e){r.exports=React},function(r,e,c){"use strict";function n(r){var e=r.intl,c=r.culture,n=r.value,t={style:"currency",currency:c.currency};return null!=c.customCurrencyDecimalDigits&&(t.minimumFractionDigits=c.customCurrencyDecimalDigits),"RON"===c.currency&&0===e.locale.indexOf("ro")?(t.currencyDisplay="name",e.formatNumber(n,t).replace(" românești","")):e.formatNumber(n,t)}c.r(e),c.d(e,"default",(function(){return n}))},,function(r,e){r.exports=__RENDER_8_RUNTIME__},function(r,e){r.exports=ReactIntl},function(r,e){r.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},function(r,e,c){"use strict";c.r(e),function(r){var e=c(0);c.p=Object(e.getPublicPath)("vtex.format-currency@0.4.1");var n=Object(e.register)((function(){return c(8)}),r,"vtex.format-currency@0.4.1","vtex.format-currency@0.x","FormattedCurrency");n.renderHotReload,n.setupHMR}.call(this,c(3)(r))},function(r,e,c){"use strict";c.r(e);var n=c(1),t=c.n(n),u=c(4),a=c(5),i=c(6),s=c.n(i),l=c(2),y=!!new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).formatToParts,o=["currencyContainer","currencyCode","currencyLiteral","currencyInteger","currencyGroup","currencyDecimal","currencyFraction","currencyInfinity","currencyMinusSign","currencyNan","currencyPlusSign","currencyPercentSign"],m={currency:"currencyCode",literal:"currencyLiteral",integer:"currencyInteger",group:"currencyGroup",decimal:"currencyDecimal",fraction:"currencyFraction",infinity:"currencyInfinity",minusSign:"currencyMinusSign",nan:"currencyNan",plusSign:"currencyPlusSign",percentSign:"currencyPercentSign"};e.default=function(r){var e=r.value,c=r.classes,n=Object(u.useRuntime)(),i=n.culture,f=(0,n.getSettings)("vtex.store"),p=Object(a.useIntl)(),g=s()(o,{classes:c}).handles;if(!y){var v=Object(l.default)({intl:p,culture:i,value:e});return t.a.createElement("span",{className:g.currencyContainer},v)}var _={style:"currency",currency:i.currency};null!=i.customCurrencyDecimalDigits&&(_.minimumFractionDigits=i.customCurrencyDecimalDigits);var d="RON"===i.currency&&0===p.locale.indexOf("ro");d&&(_.currencyDisplay="name");var N=p.formatNumberToParts(e,_).map((function(r,e){var c=m[r.type],n=g[c];return d&&"currency"===r.type?t.a.createElement("span",{key:e,className:n},"lei"):"currency"===r.type&&(null==i?void 0:i.customCurrencySymbol)&&(null==f?void 0:f.enableCustomCurrencySymbol)?t.a.createElement("span",{key:e,className:n},i.customCurrencySymbol):t.a.createElement("span",{key:e,className:n},r.value)}));return t.a.createElement("span",{className:g.currencyContainer},N)}}],[[7,"common"]]]); },function(){ (window.webpackJsonpvtex_format_currency_0_4_1=window.webpackJsonpvtex_format_currency_0_4_1||[]).push([["formatCurrency"],{2:function(r,e,c){"use strict";function t(r){var e=r.intl,c=r.culture,t=r.value,n={style:"currency",currency:c.currency};return null!=c.customCurrencyDecimalDigits&&(n.minimumFractionDigits=c.customCurrencyDecimalDigits),"RON"===c.currency&&0===e.locale.indexOf("ro")?(n.currencyDisplay="name",e.formatNumber(t,n).replace(" românești","")):e.formatNumber(t,n)}c.r(e),c.d(e,"default",(function(){return t}))},9:function(r,e,c){"use strict";c.r(e),function(r){var e=c(0);c.p=Object(e.getPublicPath)("vtex.format-currency@0.4.1");var t=Object(e.register)((function(){return c(2)}),r,"vtex.format-currency@0.4.1","vtex.format-currency@0.x","formatCurrency");t.renderHotReload,t.setupHMR}.call(this,c(3)(r))}},[[9,"common"]]]); },function(){ !function(t){function n(n){for(var r,u,a=n[0],c=n[1],f=n[2],s=0,d=[];st.length)&&(n=t.length);for(var e=0,r=new Array(n);e0;){var s=l;l=new Set,s.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){l.add(e)})))}))}return m.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"bdwrecommendation")},5:function(e,n,i){"use strict";function a(e){var n=new RegExp("(^|;)[ ]*".concat(e,"=([^;]*)")).exec(document.cookie);return n?decodeURIComponent(n[2]):null}function t(){return"yes"===localStorage.getItem("enable_script")}i.d(n,"a",(function(){return a})),i.d(n,"b",(function(){return t}))},7:function(e,n,i){"use strict";i.d(n,"a",(function(){return a}));var a="bdw_session"},8:function(e,n,i){"use strict";i.d(n,"a",(function(){return m}));var a=i(2),t=i(5),d=i(7),m=function(){if(Object(a.useSSR)())return{};var e=JSON.parse(localStorage.getItem("bdw_last_products")||"[]"),n=JSON.parse(localStorage.getItem("bdw_last_sku")||"[]"),i=localStorage.getItem("bdw_last_category"),m=JSON.parse(localStorage.getItem("bdw_user")||"{}"),l=window.bdwClientKey,s=window.bdwOff,r=localStorage.getItem("enable_script"),u=Object(t.a)(d.a),c=window.location.pathname,k=JSON.parse(localStorage.getItem("bdw_cart_products")||"[]"),v=localStorage.getItem("bdw_search_term"),o=JSON.parse(localStorage.getItem("bdw_last_products_home")||"[]"),g=JSON.parse(localStorage.getItem("bdw_last_products_mercado")||"[]"),N=JSON.parse(localStorage.getItem("bdw_user")||"[]");return l?{email:N,lastProducts:e,lastSku:n,lastCategory:i,bdwHash:l,isDebug:r,user:m,vtexCookie:u||"",path:c,bdwOff:s,cartProducts:k,queryTerm:v,lastProductsExito:o,lastProductsMercado:g}:{}}},9:function(e,n,i){"use strict";var a;i.d(n,"a",(function(){return a})),i.d(n,"b",(function(){return t})),function(e){e.USER="USER",e.CATEGORY="CATEGORY",e.PRODUCT="PRODUCT",e.TAG_GROUP="TAG_GROUP",e.CAMPAIGN="CAMPAIGN",e.GROUP="GROUP",e.ANONYMOUS_USER="ANONYMOUS_USER",e.BRAND="BRAND",e.STORE="STORE",e.NO_SEARCH="NO_SEARCH",e.SEARCH="SEARCH"}(a||(a={}));var t=function(e,n,i,t,d){return t?{type:{primary:a.ANONYMOUS_USER},values:["collection/".concat(t)]}:n&&n.length>0?{type:{primary:a.CATEGORY},values:n}:d?{type:{primary:a.ANONYMOUS_USER},values:["search/".concat(d)]}:e&&e.length>0?{type:{primary:a.PRODUCT},values:e}:i?{type:{primary:a.ANONYMOUS_USER},values:["nosearch/".concat(i)]}:{type:{primary:a.STORE}}}}}]); },function(){ (window.webpackJsonpbraindw_braindw_io_0_11_0=window.webpackJsonpbraindw_braindw_io_0_11_0||[]).push([["RecommendationShelf"],{0:function(e,t){e.exports=React},12:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.search-page-context@0.x/SearchPageContext"]},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},19:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.recommendation-context@0.x/RecommendationContext"]},2:function(e,t){e.exports=__RENDER_8_RUNTIME__},21:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r.n(i),a=r(22),o=r(14),l=r.n(o);function c(e){var t=e.withTitle,r=e.height,i=void 0===r?470:r,o=l()().isMobile,c={withTitle:{x:"5%",y:"15%",rx:"0",ry:"0",width:"90%",height:"80%"},withoutTitle:{x:"5%",y:"5%",rx:"0",ry:"0",width:"90%",height:"90%"}},d={withTitle:{y:"15%",height:"80%"},withoutTitle:{y:"5%",height:"90%"}},s={mobile:t?c.withTitle:c.withoutTitle,desktop:t?d.withTitle:d.withoutTitle};return n.a.createElement(a.a,{width:"100%",height:i,backgroundColor:"#f0f0f0",foregroundColor:"#dedede"},o?n.a.createElement(n.a.Fragment,null,t&&n.a.createElement("rect",{x:"25%",y:"5%",rx:"0",ry:"0",width:"50%",height:"6%"}),n.a.createElement("rect",{x:"5%",y:s.mobile.y,rx:"0",ry:"0",width:"90%",height:s.mobile.height})):n.a.createElement(n.a.Fragment,null,t&&n.a.createElement("rect",{x:"25%",y:"5%",rx:"0",ry:"0",width:"50%",height:"6%"}),n.a.createElement("rect",{x:"5%",y:s.desktop.y,rx:"0",ry:"0",width:"21%",height:s.desktop.height}),n.a.createElement("rect",{x:"26.75%",y:s.desktop.y,rx:"0",ry:"0",width:"21%",height:s.desktop.height}),n.a.createElement("rect",{x:"48.5%",y:s.desktop.y,rx:"0",ry:"0",width:"21%",height:s.desktop.height}),n.a.createElement("rect",{x:"70.25%",y:s.desktop.y,rx:"0",ry:"0",width:"21%",height:s.desktop.height})))}},22:function(e,t,r){"use strict";var i=r(0),n=function(){return(n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&void 0!==window.localStorage&&window.localStorage.setItem("bdw_category_filters",JSON.stringify(D));var U,H=null==I?void 0:I.id;H&&!isNaN(H)||(H=function(e){var t;if(!e)return null;var r=null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.find((function(e){return e.selected}));return r?r.id:e.id}(null===(b=null===(g=null==P?void 0:P.facets)||void 0===g?void 0:g.categoriesTrees)||void 0===b?void 0:b[0])),O=H,P.facets&&P.facets.queryArgs&&P.facets.queryArgs.map&&"productClusterIds"===P.facets.queryArgs.map&&(x=P.facets.queryArgs.query),P.data.productSearch&&0===P.data.productSearch.products.length&&I?E=I.term:P.data.productSearch&&P.data.productSearch.products.length>=1&&I&&P.variables&&"ft"==P.variables.map&&(_=I.term),w=null===(y=null==P?void 0:P.products)||void 0===y?void 0:y.slice(0,5).map((function(e){return e.productId}));var z=0;null!=P&&null!=P.variables&&null!=P.variables.selectedFacets&&P.variables.selectedFacets.length>0&&P.variables.selectedFacets.forEach((function(e){if(null!=e&&null!=e.key&&e.key.startsWith("category-")){var t=e.key.replace("category-","");!isNaN(t)&&Number.isInteger(parseFloat(t))&&(z0&&P.facets.specificationFilters.forEach((function(t){null!=t.facets&&null!=t.facets&&t.facets.length>0&&t.facets.forEach((function(t){t.key==e.key&&t.value==e.value&&(U=t.id)}))})),z=parseFloat(t))}})),null!=U&&U.length>0&&(O=U)}var K=JSON.stringify(D).replace(/[[\]&\/\\#+()$~%."*?<>{}]/g,""),W=Object(u.a)({id:j,productIds:w,categories:O,nosearch:E,collection:x,search:_,categoriesFilterString:K}),B=W.data,G=W.error,Q=W.loading,X=Object(n.useMemo)((function(){var e,t,r;if(G)return[void 0,""];var i=null===(r=null===(t=null===(e=null==B?void 0:B.bdwrecommendation)||void 0===e?void 0:e.response)||void 0===t?void 0:t.recommendations)||void 0===r?void 0:r[0].recommended;return i&&i.length>0?[i,B.bdwrecommendation.response.title,B.bdwrecommendation.response.panelEvent]:[void 0,""]}),[null==B?void 0:B.bdwrecommendation.response.recommendations,G]),$=Object(i.a)(X,3),V=$[0],Y=$[1],Z=$[2];return T||Q?k?a.a.createElement(f.a,{height:S,withTitle:0!==Y.length}):null:G||!Q&&void 0===V?(C(),null):(null==V?void 0:V.length)?a.a.createElement(s.RecommendationProvider,{shouldSendEvents:!0},a.a.createElement(o.ExtensionPoint,{id:"bdw-default-shelf",products:V,panelEvent:Z,title:Y,shelfId:j,link:B.bdwrecommendation.response.link,bdwtitle:Y,eventTitle:R})):a.a.createElement(n.Fragment,null)};p.getSchema=function(e){return{title:e.id}},t.default=p}},[[64,"common",0]]]); },function(){ !function(e){function t(t){for(var n,u,a=t[0],c=t[1],l=t[2],f=0,s=[];fe.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0?r=o[i=d]:0!==n?(i=0,r=0):e&&(r=o[i=d]),l&&l({type:"SLIDE",payload:{currentSlide:i,transform:r}}),s({type:"SLIDE",payload:{transform:r,currentSlide:i}})}}},j=function(e){var t=Object(r.useState)(!1),n=Object(g.a)(t,2),i=n[0],a=n[1],o=Object(S.useSliderGroupState)(),s=Object(S.useSliderGroupDispatch)();return Object(r.useEffect)((function(){var t=function(){null==s||s({type:"HOVER",payload:{isHovering:!0}}),a(!0)},n=function(){null==s||s({type:"HOVER",payload:{isHovering:!1}}),a(!1)};return(null==e?void 0:e.current)&&(e.current.addEventListener("mouseenter",t),e.current.addEventListener("mouseleave",n)),function(){var i=e.current;i&&(i.removeEventListener("mouseenter",t),i.removeEventListener("mouseleave",n))}}),[e,s]),(null==o?void 0:o.isHovering)?{isHovering:!0}:{isHovering:i}},T=n(14),_=n.n(T)()(X),I=_.CssHandlesProvider,M=_.useContextCssHandles,N=function(e,t){return t%e==0?"firstVisible":(t+1)%e==0?"lastVisible":""},x=function(e){return a.a.Children.toArray(a.a.Children.map(e,(function(e){return"string"==typeof e||"number"==typeof e?e:Object(r.cloneElement)(e,Object.assign(Object.assign({},e.props),{__isDuplicated:!0}))})))},C=function(e){var t=e.infinite,n=e.usePagination,s=e.centerMode,l=e.centerModeSlidesGap,d=e.totalItems,c=e.children,u=P(),f=u.slideWidth,v=u.slidesPerPage,p=u.currentSlide,m=u.isOnTouchMove,g=u.useSlidingTransitionEffect,y=u.slideTransition,h=y.speed,b=y.timing,O=y.delay,w=u.transformMap,j=u.transform,T=E(),_=Object(o.useIntl)(),I=Object(S.useSliderGroupDispatch)(),C=M(),D=C.handles,R=C.withModifiers,A=function(e){var t=e.currentSlide,n=e.slidesPerPage,i=e.totalItems,a=e.centerMode,o=Object(r.useRef)(new Set);Object(r.useEffect)((function(){for(var e=0;e=n&&t=n&&t+1=n&&t-1=r)}({index:e,currentSlide:t,slidesToShow:n,totalItems:i,centerMode:a})};return{shouldRenderItem:function(e){return o.current.has(e)||s(e)},isItemVisible:s}}({currentSlide:p,slidesPerPage:v,totalItems:d,centerMode:s}),L=A.shouldRenderItem,k=A.isItemVisible,H=t&&c?x(c).slice(0,v):[],U=(t&&c?x(c).slice(c.length-v):[]).concat(null!=c?c:[],H),G=v<=d?"".concat(100*U.length/v,"%"):"100%";return a.a.createElement("div",{"data-testid":"slider-track",className:"".concat(D.sliderTrack," flex ").concat("disabled"!==s?"":"justify-around"," relative pa0 ma0"),style:{transition:m||!g?void 0:"transform ".concat(h,"ms ").concat(b," ").concat(O,"ms"),transform:"translate3d(".concat(m?j:w[p],"%, 0, 0)"),width:G},onTransitionEnd:function(){T({type:"DISABLE_TRANSITION"}),p>=d&&(T({type:"ADJUST_CURRENT_SLIDE",payload:{currentSlide:0,transform:w[0]}}),null==I||I({type:"SLIDE",payload:{currentSlide:0,transform:w[0]}})),p<0&&(T({type:"ADJUST_CURRENT_SLIDE",payload:{currentSlide:p+d,transform:w[p+d]}}),null==I||I({type:"SLIDE",payload:{currentSlide:p+d,transform:w[p+d]}}))},"aria-atomic":"false","aria-live":"polite"},U.map((function(e,r){var o=r-(t?v:0),c={width:"".concat(f,"%"),marginLeft:"disabled"===s||l?void 0:"".concat(f/(8*v),"%"),marginRight:"disabled"===s||l?void 0:"".concat(f/(8*v),"%"),paddingLeft:"disabled"!==s&&l?l/2:void 0,paddingRight:"disabled"!==s&&l?l/2:void 0};return a.a.createElement("div",Object(i.a)({key:o},function(e){var t=e.visible,n=e.index,i=e.totalItems,r=e.intl;return n<0||n>=i?{"aria-hidden":!t,role:"none presentation"}:{"aria-hidden":!t,role:"group","aria-roledescription":"slide","aria-label":"".concat(r.formatMessage({id:"store/slider-layout.sliderTrack.aria-label"},{slide:n+1,total:i}))}}({visible:k(o),index:o,totalItems:d,intl:_}),{className:"".concat(R("slide",[N(v,o),k(o)?"visible":"hidden"])," flex relative"),"data-index":o>=0&&o0?u(i):c(i)};return a.a.createElement("div",{className:"".concat(p.paginationDotsContainer," flex absolute justify-center pa0 ma0 bottom-0 left-0 right-0"),role:"group","aria-label":"Slider pagination dots"},S.map((function(e){var n=e===H(g,s,o);return a.a.createElement("div",{className:"".concat(m("paginationDot",n?"isActive":"")," ").concat(n?"bg-emphasis":"bg-muted-3"," grow dib br-100 pa2 mr2 ml2 bw0 pointer outline-0"),style:{height:"".concat(.625,"rem"),width:"".concat(.625,"rem")},key:e,tabIndex:n?0:-1,onKeyDown:function(t){return y(t,e)},onClick:function(t){return y(t,e)},role:"button","aria-controls":t,"aria-label":"Dot ".concat(e+1," of ").concat(S.length),"data-testid":"paginationDot"})})))},G=Object(r.memo)(U),W=["sliderLayoutContainer","sliderTrackContainer"].concat(Object(v.a)(["sliderTrack","slide","slideChildrenContainer"]),Object(v.a)(["sliderLeftArrow","sliderRightArrow","sliderArrows"]),Object(v.a)(["paginationDotsContainer","paginationDot"])),z=function(e){var t=e.children,n=e.totalItems,i=e.infinite,o=void 0!==i&&i,s=e.showNavigationArrows,l=e.showPaginationDots,d=e.usePagination,c=void 0===d||d,u=e.arrowSize,f=e.fullWidth,v=e.itemsPerPage,p=e.centerMode,S=e.centerModeSlidesGap,y=M().handles,h=m()().isMobile,b=P(),O=b.label,T=void 0===O?"slider":O,_=b.slidesPerPage,I=Object(r.useRef)(null),N=function(e){var t=e.infinite,n=e.centerMode,i=E(),a=P().transform,o=w(t),s=o.goForward,l=o.goBack,d=Object(r.useState)({touchStartX:0,touchInitialTransform:a}),c=Object(g.a)(d,2),u=c[0],f=c[1];return{onTouchEnd:function(e){var t=e.changedTouches[0].clientX-u.touchStartX;Math.abs(t)>75?(t>0&&l(),t<0&&s()):i({type:"TOUCH",payload:{transform:u.touchInitialTransform,isOnTouchMove:!1}}),f({touchStartX:0,touchInitialTransform:a}),i({type:"TOUCH",payload:{isOnTouchMove:!1}})},onTouchStart:function(e){var t=e.touches[0].clientX;f({touchStartX:t,touchInitialTransform:a})},onTouchMove:function(e){var t=e.touches[0].clientX-u.touchStartX,r=u.touchInitialTransform+t/(25*("disabled"!==n?2:1));i({type:"TOUCH",payload:{transform:r,isOnTouchMove:!0}})}}}({infinite:o,centerMode:p}),x=N.onTouchEnd,D=N.onTouchStart,R=N.onTouchMove;!function(e,t){var n=P().autoplay,i=j(t).isHovering,a=(null==n?void 0:n.stopOnHover)&&i,o=w(e).goForward;Object(r.useEffect)((function(){if(n){var e=setTimeout((function(){o()}),n.timeout);return a&&clearTimeout(e),function(){return clearTimeout(e)}}}),[o,a,n])}(o,I),function(e,t){var n=P(),i=n.navigationStep,a=n.isPageNavigationStep,o=n.totalItems,s=E();Object(r.useEffect)((function(){var n=o<=t?o:t,r=a?n:i,l=function(e){s({type:"ADJUST_ON_RESIZE",payload:{shouldCorrectItemPosition:e,slidesPerPage:n,navigationStep:r}})},d=function(t){l(!t||e)};return l(!1),window.addEventListener("resize",d),function(){return window.removeEventListener("resize",d)}}),[e,s,o,t,a,i])}(o,v);var A=_>=n,L="".concat(T.toLowerCase().trim().replace(/ /g,"-"),"-items-").concat(Math.random().toString(36).substring(2,9)),H=Boolean(("always"===s||"mobileOnly"===s&&h||"desktopOnly"===s&&!h)&&!A),U=Boolean(("always"===l||"mobileOnly"===l&&h||"desktopOnly"===l&&!h)&&!A);return a.a.createElement("section",{onTouchStart:function(e){return c&&!A?D(e):null},onTouchEnd:function(e){return c&&!A?x(e):null},onTouchMove:function(e){return c&&!A?R(e):null},"aria-label":T,id:L,style:{WebkitOverflowScrolling:c?void 0:"touch",paddingLeft:f?void 0:2*u,paddingRight:f?void 0:2*u,touchAction:"pan-y"},className:"w-100 flex items-center relative ".concat(y.sliderLayoutContainer)},a.a.createElement("div",{className:"w-100 ".concat(y.sliderTrackContainer," ").concat(c?"overflow-hidden":"overflow-x-scroll"),ref:I},a.a.createElement(C,{centerMode:p,centerModeSlidesGap:S,infinite:o,totalItems:n,usePagination:c},t)),H&&c&&a.a.createElement(r.Fragment,null,a.a.createElement(k,{totalItems:n,orientation:"left",controls:L,infinite:o,arrowSize:u}),a.a.createElement(k,{totalItems:n,orientation:"right",controls:L,infinite:o,arrowSize:u})),U&&c&&a.a.createElement(G,{totalItems:n,controls:L,infinite:o}))},F=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n");return e},c=function(e){var t=e.value,n=e.children;return o.a.createElement(a.Provider,{value:t},n)};t.default={DrawerContextProvider:c,useDrawer:i}},,function(e,t){e.exports=ReactDOM},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/applyModifiers"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconClose"]},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),a=n(4);t.default=function(e){var t,n=e.children,r=null===(t=null===window||void 0===window?void 0:window.document)||void 0===t?void 0:t.body,i=Object(a.useSSR)();return!r||i?null:o.a.createPortal(n,r)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(2),i=n.n(a),c=n(8),s=n.n(c),l=["overlay"],u=function(e,t){var n=e.visible,r=e.onClick,a=e.zIndex,c=void 0===a?999:a,u=i()(l),d=n?"false":"true";return o.a.createElement("div",{ref:t,"aria-hidden":d,role:"presentation",onClick:r,style:{opacity:n?.5:0,pointerEvents:n?"auto":"none",zIndex:c},className:"".concat(s()(u.overlay,n?"visible":"")," bg-base--inverted z-999 fixed top-0 bottom-0 left-0 right-0")})};t.default=o.a.forwardRef(u)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(2),i=n.n(a),c=n(9),s=n.n(c),l=n(5),u=["closeIconButton"];t.default=function(e){var t=e.size,n=void 0===t?30:t,r=e.type,a=void 0===r?"line":r,c=e.text,d=Object(l.useDrawer)().close,f=i()(u);return o.a.createElement("button",{className:"".concat(f.closeIconButton," pa4 pointer bg-transparent transparent bn pointer"),onClick:d},null!=c?c:o.a.createElement(s.a,{size:n,type:a}))}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconMenu"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.store-drawer@0.18.1");var r=Object(t.register)((function(){return n(36)}),e,"vtex.store-drawer@0.18.1","vtex.store-drawer@0.x","Drawer");r.renderHotReload,r.setupHMR}.call(this,n(6)(e))},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(16),a=n(3),i=n(0),c=n.n(i),s=n(17),l=n(18),u=n.n(l),d=n(2),f=n.n(d),v=n(4),p=n(13),b=n.n(p),m=n(19),x=n.n(m),O=n(10),w=n(11),_=function(){var e=Object(i.useState)(!1),t=Object(a.a)(e,2),n=t[0],r=t[1],o=Object(i.useRef)("");return Object(i.useEffect)((function(){return n&&(o.current=document.body.style.overflow),document.body.style.overflow=n?"hidden":o.current,function(){n&&(document.body.style.overflow=o.current)}}),[n]),r},E=n(12),h=n(5);function g(e){return"tagName"in e}function N(e,t){if(!e||!g(e))return!1;if("A"===String(e.tagName).toUpperCase())return!0;var n=e.parentNode;return!(!n||!g(n)||"BODY"===n.tagName.toUpperCase()||t&&n===t)&&N(n,t)}var C=c.a.lazy((function(){return n.e(0).then(n.bind(null,35))})),j={isOpen:!1,hasBeenOpened:!1};function R(e,t){switch(t.type){case"open":return Object.assign(Object.assign({},e),{isOpen:!0,hasBeenOpened:!0});case"close":return Object.assign(Object.assign({},e),{isOpen:!1});default:return e}}var y=["openIconContainer","drawer","opened","closed","moving","drawerContent","childrenContainer","closeIconContainer"];function D(e){var t,n,s,l,d,p,m=e.width,g=e.header,D=e.children,I=e.customIcon,M=e.isFullWidth,P=e.maxWidth,S=void 0===P?450:P,k=e.slideDirection,z=void 0===k?"horizontal":k,B=e.backdropMode,T=void 0===B?"visible":B,W=e.renderingStrategy,U=void 0===W?"lazy":W,F=e.customPixelEventId,H=e.customPixelEventName,J=e.onVisibilityChanged,V=e.zIndex,A=void 0===V?999:V,L=f()(y),Y=x()(T),q=Boolean(Object(v.useChildBlock)({id:"drawer-trigger"})),G=Boolean(Object(v.useChildBlock)({id:"drawer-header"})),K=(t=Object(i.useReducer)(R,j),n=Object(a.a)(t,2),s=n[0],l=n[1],d=_(),p=function(e){l({type:e?"open":"close"}),d(e)},{state:s,openMenu:function(){return p(!0)},closeMenu:function(){return p(!1)}}),Q=K.state,X=K.openMenu,Z=K.closeMenu,$=Q.isOpen,ee=Q.hasBeenOpened,te=Object(i.useState)("eager"===U),ne=Object(a.a)(te,2),re=ne[0],oe=ne[1],ae=Object(i.useState)(!1),ie=Object(a.a)(ae,2),ce=ie[0],se=ie[1];b()({eventId:F,handler:X,eventName:"openDrawer"}),b()({eventId:F,handler:X,eventName:H}),Object(i.useEffect)((function(){void 0!==J&&J($)}),[J,$]);var le="horizontal"===z||"leftToRight"===z?"left":"right",ue="left"===le?"onSwipeLeft":"onSwipeRight",de=Object(i.useMemo)((function(){return{isOpen:$,open:X,close:Z}}),[$,X,Z]),fe="visible"===Y&&$;return Object(i.useEffect)((function(){($||ee||"eager"===U)&&oe(!0)}),[ee,U,oe,$]),c.a.createElement(h.DrawerContextProvider,{value:de},c.a.createElement("div",{onClick:X,role:"presentation","aria-hidden":$?"false":"true",className:"pa4 pointer ".concat(L.openIconContainer)},q?c.a.createElement(v.ExtensionPoint,{id:"drawer-trigger"}):null!=I?I:c.a.createElement(u.a,{size:20})),c.a.createElement(O.default,null,c.a.createElement(w.default,{visible:fe,onClick:Z,zIndex:A}),c.a.createElement(i.Suspense,{fallback:c.a.createElement(c.a.Fragment,null)},c.a.createElement(C,Object(r.a)({},Object(o.a)({},ue,Z),{enabled:$,position:$?"center":le,allowOutsideDrag:!0,onUpdateOffset:function(e){se(!("0%"===e||"-100%"===e))},className:"".concat(L.drawer," ").concat($?L.opened:L.closed," ").concat(ce?L.moving:""," ").concat("right"===le?"right-0":"left-0"," fixed top-0 bottom-0 bg-base z-999 flex flex-column"),style:{width:null!=m?m:M?"100%":"85%",maxWidth:S,minWidth:280,pointerEvents:$?"auto":"none",zIndex:A}}),c.a.createElement("div",{className:"".concat(L.drawerContent," overflow-y-auto"),style:{WebkitOverflowScrolling:"touch"}},G?c.a.createElement(v.ExtensionPoint,{id:"drawer-header"}):null!=g?g:c.a.createElement("div",{className:"flex ".concat(L.closeIconContainer)},c.a.createElement(E.default,null)),c.a.createElement("div",{className:"".concat(L.childrenContainer," flex flex-grow-1"),onClick:function(e){N(e.target,e.currentTarget)&&Z()}},re?D:c.a.createElement(c.a.Fragment,null)))))))}var I=Object(s.defineMessages)({title:{id:"admin/editor.drawer.title"}});D.schema={title:I.title.id};t.default=D}],[[25,"common"]]]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,d=[];st.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}))},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}))}]); },function(){ (window.webpackJsonpvtex_modal_layout_0_14_1=window.webpackJsonpvtex_modal_layout_0_14_1||[]).push([["ModalContext"],{0:function(t,e){t.exports=React},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return O}));var o=n(4),a=n(0),r=n.n(a),c={open:!1,endOfContent:!1},u=Object(a.createContext)(c),i=Object(a.createContext)((function(){}));function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"OPEN_MODAL":return Object.assign(Object.assign({},t),{open:!0});case"CLOSE_MODAL":return Object.assign(Object.assign({},t),{open:!1});case"SET_END_OF_CONTENT":return Object.assign(Object.assign({},t),{endOfContent:e.payload.endOfContent});default:return t}}function d(t){var e=t.children,n=t.initialState,d=void 0===n?void 0:n,l=Object(a.useReducer)(s,null!=d?d:c),O=Object(o.a)(l,2),v=O[0],b=O[1];return r.a.createElement(u.Provider,{value:v},r.a.createElement(i.Provider,{value:b},e))}function l(){return Object(a.useContext)(i)}function O(){var t=Object(a.useContext)(u);if(void 0===t)throw Error("useModalState must be used within a ModalStateContext");return t}},34:function(t,e,n){"use strict";n.r(e),function(t){var e=n(1);n.p=Object(e.getPublicPath)("vtex.modal-layout@0.14.1");var o=Object(e.register)((function(){return n(35)}),t,"vtex.modal-layout@0.14.1","vtex.modal-layout@0.x","ModalContext");o.renderHotReload,o.setupHMR}.call(this,n(7)(t))},35:function(t,e,n){"use strict";n.r(e);var o=n(2);e.default={useModalDispatch:o.b,ModalContextProvider:o.a}}},[[34,"common"]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{},r=n.onSuccess,a=void 0===r?d:r,s=n.onFailure,p=void 0===s?d:s,v=n.onFinish,x=void 0===v?d:v,f=n.getAutoRunArgs,g=void 0===f?function(){return null}:f,m=Object(i.useState)(null),b=Object(o.a)(m,2),w=b[0],h=b[1],O=Object(i.useState)(null),C=Object(o.a)(O,2),y=C[0],P=C[1],E=Object(i.useMemo)(g,[]),I=Object(i.useState)(!!E),j=Object(o.a)(I,2),A=j[0],S=j[1],k=Object(i.useCallback)(t,e),L=Object(i.useCallback)(function(){var t=Object(u.a)(c.a.mark((function t(){var e,n=arguments;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return P(null),S(!0),t.prev=2,t.next=5,k.apply(void 0,n);case 5:return e=t.sent,h(e),P(null),a(e),t.abrupt("return",e);case 12:return t.prev=12,t.t0=t.catch(2),P(t.t0),h(null),p(t.t0),t.abrupt("return",t.t0);case 18:return t.prev=18,S(!1),x(),t.finish(18);case 22:case"end":return t.stop()}}),t,null,[[2,12,18,22]])})));return function(){return t.apply(this,arguments)}}(),[k,p,x,a]);return Object(i.useEffect)((function(){E&&L.apply(void 0,Object(l.a)(E))}),[E,L]),[L,{value:w,error:y,loading:A}]},v=n(13),x=Object(i.createContext)(null),f=function(){var t=Object(i.useContext)(x);if(!t)throw new Error('"useProfile" must be inside a Provider');return t.profile},g=function(t){var e,n,l=t.children,s=t.useLoadingState,c=Object(i.useContext)(x),u=p((function(){return Object(a.a)()}),[],{getAutoRunArgs:function(){return c?null:[]}}),d=Object(o.a)(u,2)[1],f=d.value,g=d.loading,m=null!==(e=null==c?void 0:c.profile)&&void 0!==e?e:f,b=null!==(n=null==c?void 0:c.loading)&&void 0!==n?n:g;return s&&b?r.a.createElement("div",{"data-testid":"loading-session"},r.a.createElement(v.a,null)):r.a.createElement(x.Provider,{value:{profile:m,loading:b}},l)}},20:function(t,e,n){"use strict";n.r(e),n.d(e,"LoginSchema",(function(){return o}));var o={type:"object",properties:{optionsTitle:{title:"admin/editor.login.optionsTitle",type:"string",widget:{"ui:widget":"textarea"}},emailAndPasswordTitle:{title:"admin/editor.login.emailAndPasswordTitle",type:"string",widget:{"ui:widget":"textarea"}},accessCodeTitle:{title:"admin/editor.login.accessCodeTitle",type:"string",widget:{"ui:widget":"textarea"}},emailPlaceholder:{title:"admin/editor.login.emailPlaceholder",type:"string"},passwordPlaceholder:{title:"admin/editor.login.passwordPlaceholder",type:"string"},showPasswordVerificationIntoTooltip:{title:"admin/editor.login.showPasswordVerificationIntoTooltip.title",type:"boolean",isLayout:!0},accessCodePlaceholder:{title:"admin/editor.login.accessCodePlaceholder",type:"string"},showIconProfile:{title:"admin/editor.login.showIconProfile",type:"boolean"},iconLabel:{title:"admin/editor.login.iconLabel",type:"string"},providerPasswordButtonLabel:{title:"admin/editor.login.providerPasswordButtonLabel",type:"string"},hasIdentifierExtension:{title:"admin/editor.login.hasIdentifierExtension",type:"boolean"},termsAndConditions:{title:"admin/editor.login.termsAndConditions",type:"string",widget:{"ui:widget":"textarea"}}},dependencies:{hasIdentifierExtension:{oneOf:[{properties:{hasIdentifierExtension:{enum:[!0]},identifierPlaceholder:{title:"admin/editor.login.identifierPlaceholder",type:"string"},invalidIdentifierError:{title:"admin/editor.login.invalidIdentifierError",type:"string"}}}]}}}},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(t,e){return e.formatMessage({id:"".concat(t)})}},38:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(21),i=n(69),r=n.n(i),a=function(t){var e=Object(o.compose)(o.fromPairs,Object(o.map)(Object(o.split)("=")),Object(o.split)("&"),o.tail)(t),n=e.accountAuthCookieName,i=e.accountAuthCookieValue;if(n&&i){r.a.set(n,i,{expires:1,path:"/",secure:!0});var a=t.substring(0,t.indexOf("?"));window.history.replaceState({},document.title,a),window.location.assign(window.location.origin)}}},41:function(t,e,n){"use strict";var o=n(11),i=n.n(o),r=n(17),a=function(t){var e=(null!=t?t:{}).namespaces,n=(null!=e?e:{}).profile;if(!n)return null;var o=n.email,i=(o=void 0===o?{value:null}:o).value,r=n.firstName,a=(r=void 0===r?{value:null}:r).value,l=n.isAuthenticated,s="true"===(l=void 0===l?{value:"false"}:l).value;return s&&!i?null:{email:i,firstName:a,isAuthenticated:s}},l=function(){var t=Object(r.a)(i.a.mark((function t(){var e,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o=void 0,(null===(o=null===window||void 0===window?void 0:window.__RENDER_8_SESSION__)||void 0===o?void 0:o.sessionPromise)?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null);case 2:return e=t.sent,n=(null!=e?e:{}).response,t.abrupt("return",a(n));case 5:case"end":return t.stop()}var o}),t)})));return function(){return t.apply(this,arguments)}}();e.a=l},5:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return c}));var o="user-identifier",i="vtex.login@2.66.0",r={POPOVER:"popover",LINK:"link"},a={RIGHT:"Right",LEFT:"Left"},l=function(){var t;return(null===(t=null===window||void 0===window?void 0:window.__RUNTIME__)||void 0===t?void 0:t.rootPath)||""},s=["fastshopbrqa1","fastshopbrqa2","fastshopbr","rubimstore"],c=function(t){return s.includes(t)}},69:function(t,e,n){!function(e){if("function"==typeof define&&define.amd&&(define(e),!0),t.exports=e(),!!0){var n=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=n,o}}}((function(){function t(){for(var t=0,e={};t=0||e.indexOf("Firefox")>=0}()&&window.location?i.a.createElement(a.Suspense,{fallback:null},i.a.createElement(R.a,{skip:!0,scope:"STORE",parentAppId:l.c},i.a.createElement(S,Object(b.a)({},e,{page:t})))):null},I=function(){window&&(window.localStorage&&localStorage.setItem("gsi_auto","false"),y()&&window.google.accounts.id.disableAutoSelect())},k=n(4),M=n(26),B=n.n(M),A=n(3),D=function(){var e,t=null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.search;return t&&URLSearchParams?new URLSearchParams(t).get("__bindingAddress"):null},U=n(12),z=n.n(U),G=n(71),F=n.n(G),H=function(e){var t=e.iconSize,n=e.labelClasses,o=e.classes;return Boolean(Object(w.useChildBlock)({id:"icon-profile"}))?i.a.createElement("div",{className:z()(n,o)},i.a.createElement(w.ExtensionPoint,{id:"icon-profile",size:t})):i.a.createElement("div",{className:z()(n,o)},i.a.createElement(F.a,{size:t}))},K=function(e){var t,n,o=e.iconSize,a=e.iconLabel,r=e.hideIconLabel,c=e.labelClasses,l=e.loginButtonAsLink,s=e.onProfileIconClick,u=e.sessionProfile,d=e.showIconProfile,p=Object(k.useIntl)(),m=Object(w.useRuntime)(),v=m.history,g=m.navigate,f=null!=u?u:{},E=f.isAuthenticated,b=f.firstName,_=f.email,h=null===(t=null==v?void 0:v.location)||void 0===t?void 0:t.pathname,x=null===(n=null==v?void 0:v.location)||void 0===n?void 0:n.search,N="flex items-center ".concat(r?"nr4":""),R=a||Object(A.a)("store/login.signIn",p),C=r?i.a.createElement(i.a.Fragment,null):E?i.a.createElement("span",{className:"".concat(O.a.profile," truncate t-action--small order-1 pl4 ").concat(c," dn db-l")},Object(A.a)("store/login.hello",p)," ",null!=b?b:_):i.a.createElement("span",{className:"".concat(O.a.label," t-action--small pl4 ").concat(c," dn db-l")},R);if(l){var T=E?"store.account":"store.login";return i.a.createElement("div",{className:O.a.buttonLink},i.a.createElement(B.a,{variation:"tertiary",icon:d&&i.a.createElement(H,{iconSize:o,labelClasses:c,classes:N}),iconPosition:d?"left":"right",onClick:function(){if(window&&URLSearchParams){var e=!E&&encodeURIComponent("".concat(h).concat(x)),t=D();return g({page:T,query:new URLSearchParams(Object.assign(Object.assign({},e&&{returnUrl:e}),t&&{bindingAddress:t})).toString()})}}},C))}return i.a.createElement(B.a,{variation:"tertiary",icon:d&&i.a.createElement(H,{iconSize:o,labelClasses:c,classes:N}),iconPosition:d?"left":"right",onClick:s},i.a.createElement("div",{className:"flex pv2 items-center"},C))},V=n(72),W=n.n(V),J=n(13),q=function(e){var t=e.children,n=e.mirrorTooltipToRight;return i.a.createElement("div",{className:"".concat(O.a.box," z-max absolute"),style:n?{left:50}:{right:-50}},i.a.createElement("div",{className:"".concat(O.a.arrowUp," absolute top-0 ").concat(n?"left-0 ml3":"right-0 mr3"," shadow-3 bg-base rotate-45 h2 w2")}),i.a.createElement("div",{className:"".concat(O.a.contentContainer," shadow-3 mt3")},t))},X=n(39),Q=n(40),Y=n(27),Z=n(42),$=n(43),ee=n(28);function te(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,o=Object(ee.a)(e);if(t){var a=Object(ee.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object($.a)(this,n)}}var ne={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},oe={disabled:!1,useCapture:!0,display:ne.BLOCK},ae=function(e){Object(Z.a)(n,e);var t=te(n);function n(){var e;Object(X.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i0}),[t]),c=Object(a.useMemo)((function(){return(null!=t?t:[]).map((function(e){return e.cssClass})).filter((function(e){return e}))}),[t]),s=ue()(c),u=le()({onSuccess:Object(a.useCallback)((function(){var e;return null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.reload()}),[]),parentAppId:l.c,scope:"STORE"}),d=Object(o.a)(u,2),p=d[0],m=d[1].loading;return i.a.createElement("div",{className:"".concat(O.a.content," ").concat(O.a.content,"--accountOptions flex relative bg-base justify-around overflow-visible pa4 center items-baseline-ns items-baseline")},i.a.createElement("div",{className:"".concat(O.a.contentForm," dn ph4 ").concat(O.a.contentFormVisible," db")},i.a.createElement("div",null,i.a.createElement("div",{className:"".concat(O.a.accountOptions," items-center w-100")},i.a.createElement("div",{className:"mv4 min-h-2 b--muted-4"},r?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"".concat(O.a.accountOptionsSectionTitle," t-small b mb3")},Object(A.a)("store/login.myAccount",n)),null==t?void 0:t.map((function(e,t){var n=e.label,o=e.path,a=e.cssClass,r=new URL(o||"/",window.location.href);return i.a.createElement(w.Link,{className:"".concat(s[a]||""," db no-underline t-small c-muted-1 hover-c-action-primary pv3"),key:t,to:"".concat(r.pathname).concat(r.search).concat(r.hash)},n)}))):i.a.createElement(w.Link,{page:"store.account"},i.a.createElement("button",{className:"".concat(O.a.button," bw1 ba ttu br2 t-action--small v-mid relative pv3 ph5 t-heading-5 bg-base b--transparent c-action-primary hover-c-action-primary pointer")},i.a.createElement("span",{className:"t-action--small"},Object(A.a)("store/login.myAccount",n))))),i.a.createElement("hr",{className:"mv2 o-30"}),i.a.createElement("div",{className:"mv4 min-h-2 b--muted-4"},r?i.a.createElement(me,{className:O.a.logoutButton,onClick:function(){I(),p()},loading:m},Object(A.a)("store/login.logoutLabel",n)):i.a.createElement(re.a,{variation:"tertiary",size:"small",onClick:function(){I(),p()},isLoading:m},i.a.createElement("span",{className:"t-action--small"},Object(A.a)("store/login.logoutLabel",n))))))))},ge=i.a.lazy((function(){return Promise.all([n.e(0),n.e(2)]).then(n.bind(null,68))})),fe=function(e){var t=e.isBoxOpen,n=e.onOutSideBoxClick,o=d(),r=o.mirrorTooltipToRight,c=o.accountOptionLinks,l=Object(m.b)(),s=Object(v.b)(),u=(null!=s?s:{}).isAuthenticated;return t?i.a.createElement(W.a,null,i.a.createElement(ae,{onOutsideClick:n},i.a.createElement(q,{mirrorTooltipToRight:r},i.a.createElement(a.Suspense,{fallback:i.a.createElement(J.a,null)},u?i.a.createElement(ve,{optionLinks:c}):i.a.createElement(ge,Object(b.a)({},l,{isInitialScreenOptionOnly:!0,isHeaderLogin:!0})))))):i.a.createElement(i.a.Fragment,null)},Oe=function(){var e=d(),t=e.hideIconLabel,n=e.iconLabel,r=e.iconSize,c=e.showIconProfile,s=e.hasGoogleOneTap,u=e.googleOneTapAlignment,p=e.googleOneTapMarginTop,m=e.accountOptionsButtonBehavior,g=e.labelClasses,f=e.logInButtonBehavior,b=Object(a.useState)(!1),_=Object(o.a)(b,2),h=_[0],x=_[1],w=Object(a.useState)(!1),N=Object(o.a)(w,2),R=N[0],C=N[1],T=Object(v.b)(),P=Object(a.useCallback)((function(){window.innerWidth<640?C(!0):C(!1)}),[]);Object(a.useEffect)((function(){return window.addEventListener("resize",P),P(),function(){window.removeEventListener("resize",P)}}),[P]),Object(a.useEffect)((function(){window.location.href.indexOf("accountAuthCookieName")>0&&Object(E.a)(window.location.href)}),[]);var L=Object(a.useCallback)((function(){return x((function(e){return!e}))}),[]),y=Object(a.useCallback)((function(){return x(!1)}),[]),S=l.a.LINK,I=(null!=T?T:{}).isAuthenticated,k=R||(I?m===S:f===S);return i.a.createElement("div",{className:"".concat(O.a.container," flex items-center fr")},i.a.createElement("div",{className:"relative"},i.a.createElement(K,{onProfileIconClick:L,sessionProfile:T,hideIconLabel:t,iconLabel:n,iconSize:r,labelClasses:g,loginButtonAsLink:k,showIconProfile:c}),s&&i.a.createElement(j,{alignment:u,marginTop:p,shouldOpen:!I}),i.a.createElement(fe,{isBoxOpen:h,onOutSideBoxClick:y})))},Ee=function(e){var t=e.accountOptionsButtonBehavior,n=e.googleOneTapAlignment,o=e.googleOneTapMarginTop,a=e.hasGoogleOneTap,r=e.hideIconLabel,l=e.iconLabel,s=e.iconSize,u=e.labelClasses,d=e.logInButtonBehavior,g=e.mirrorTooltipToRight,f=e.showIconProfile,O=e.defaultOption,E=e.accessCodePlaceholder,b=e.accessCodeTitle,_=e.disabledEmailInputs,h=e.accountOptionLinks,x=e.emailAndPasswordTitle,w=e.emailPlaceholder,N=e.identifierPlaceholder,R=e.invalidIdentifierError,C=e.isInitialScreenOptionOnly,T=e.optionsTitle,P=e.passwordPlaceholder,L=e.providerPasswordButtonLabel,y=e.showPasswordVerificationIntoTooltip,S=e.termsAndConditions,j=e.blockOAuthAutoRedirect;return i.a.createElement(c.a,null,i.a.createElement(v.a,null,i.a.createElement(p,{value:{accountOptionsButtonBehavior:t,googleOneTapAlignment:n,googleOneTapMarginTop:o,hasGoogleOneTap:a,hideIconLabel:r,iconLabel:l,iconSize:s,labelClasses:u,logInButtonBehavior:d,mirrorTooltipToRight:g,showIconProfile:f,accountOptionLinks:h}},i.a.createElement(m.a,{value:{defaultOption:O,accessCodePlaceholder:E,accessCodeTitle:b,disabledEmailInputs:_,emailAndPasswordTitle:x,emailPlaceholder:w,identifierPlaceholder:N,invalidIdentifierError:R,isInitialScreenOptionOnly:C,optionsTitle:T,passwordPlaceholder:P,providerPasswordButtonLabel:L,showPasswordVerificationIntoTooltip:y,termsAndConditions:S,blockOAuthAutoRedirect:j}},i.a.createElement(Oe,null)))))};Ee.getSchema=function(){return Object.assign(Object.assign({title:"admin/editor.login.title"},g.LoginSchema),{properties:Object.assign(Object.assign({},g.LoginSchema.properties),{mirrorTooltipToRight:{title:"admin/editor.login.mirrorTooltipToRightTitle",type:"boolean",default:!1},logInButtonBehavior:{title:"admin/editor.login.logInButtonBehavior",type:"string",enum:[l.a.POPOVER,l.a.LINK],default:l.a.POPOVER},accountOptionsButtonBehavior:{title:"admin/editor.login.accountOptionsButtonBehavior",type:"string",enum:[l.a.POPOVER,l.a.LINK],default:l.a.POPOVER},accountOptionLinks:{title:"admin/editor.login.accountOptionLinks",type:"array",items:{type:"object",properties:{label:{title:"admin/editor.login.accountOptionLabelTitle",type:"string"},path:{title:"admin/editor.login.accountOptionPathTitle",type:"string"},cssClass:{title:"admin/editor.login.accountOptionCssClassTitle",type:"string"}}}},hasGoogleOneTap:{title:"admin/editor.login.googleOneTap.title",type:"boolean"},hideIconLabel:{title:"admin/editor.login.hideIconLabel",type:"boolean",default:!1}}),dependencies:Object.assign(Object.assign({},g.LoginSchema.dependencies),{hasGoogleOneTap:{oneOf:[{properties:{hasGoogleOneTap:{enum:[!0]},googleOneTapAlignment:{title:"admin/editor.login.googleOneTap.alignment",type:"string",enum:[l.b.RIGHT,l.b.LEFT],default:l.b.RIGHT},googleOneTapMarginTop:{title:"admin/editor.login.googleOneTap.marginTop",type:"string",default:"3rem"}}}]}})})},Ee.uiSchema={"ui:order":["*","hasIdentifierExtension","identifierPlaceholder","invalidIdentifierError","accountOptionLinks","hasGoogleOneTap","googleOneTapAlignment","googleOneTapMarginTop"]};var be=Ee},19:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/validations"]},21:function(e,t){e.exports=R},22:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},25:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/AuthStateLazy"]},26:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ButtonWithIcon"]},29:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/RecaptchaProvider"]},30:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useRedirectAfterLogin"]},31:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useSendAccessCode"]},32:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/AuthServiceLazy"]},4:function(e,t){e.exports=ReactIntl},49:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useGetPhoneNumberByEmail"]},50:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconArrowBack"]},51:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useLogInWithAccessKey"]},52:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useSetPassword"]},53:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconEyeSight"]},54:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useLogInWithPassword"]},55:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/RadioGroup"]},56:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useSendAccessKey"]},57:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/getAbsReturnUrl"]},58:function(e,t){e.exports=regeneratorRuntime},6:function(e,t){e.exports=__RENDER_8_RUNTIME__},67:function(e,t){e.exports=PropTypes},70:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useStartLoginAttempt"]},71:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconProfile"]},72:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},73:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-vtexid@4.x/useLogOut"]},74:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},77:function(e,t,n){"use strict";n.r(t),function(e){var t=n(15);n.p=Object(t.getPublicPath)("vtex.login@2.66.0");var o=Object(t.register)((function(){return n(163)}),e,"vtex.login@2.66.0","vtex.login@2.x","Login");o.renderHotReload,o.setupHMR}.call(this,n(34)(e))},8:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]}},[[77,"common",1]]]); },function(){ (window.webpackJsonpvtex_login_2_66_0=window.webpackJsonpvtex_login_2_66_0||[]).push([["Wrapper"],{0:function(n,t){n.exports=React},164:function(n,t,e){"use strict";e.r(t),e.d(t,"default",(function(){return i}));var r=e(0),o=e.n(r),i=function(n){var t=n.children;return o.a.createElement(o.a.Fragment,null,t)}},78:function(n,t,e){"use strict";e.r(t),function(n){var t=e(15);e.p=Object(t.getPublicPath)("vtex.login@2.66.0");var r=Object(t.register)((function(){return e(164)}),n,"vtex.login@2.66.0","vtex.login@2.x","Wrapper");r.renderHotReload,r.setupHMR}.call(this,e(34)(n))}},[[78,"common"]]]); },function(){ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=React},function(e,t,n){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:b,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:b,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:b,lheading:/^([^\n]+)\n {0,3}(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||k.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=p(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=m({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=m({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,s,a,o,l,c,u,h,p,g,d,f,b,m,v;for(e=e.replace(/^ +$/gm,"");e;)if((s=this.rules.newline.exec(e))&&(e=e.substring(s[0].length),s[0].length>1&&this.tokens.push({type:"space"})),s=this.rules.code.exec(e)){var k=this.tokens[this.tokens.length-1];e=e.substring(s[0].length),k&&"paragraph"===k.type?k.text+="\n"+s[0].trimRight():(s=s[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?s:_(s,"\n")}))}else if(s=this.rules.fences.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"code",lang:s[2]?s[2].trim():s[2],text:s[3]||""});else if(s=this.rules.heading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});else if((s=this.rules.nptable.exec(e))&&(l={type:"table",header:x(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(s[0].length),g=0;g ?/gm,""),this.token(s,t),this.tokens.push({type:"blockquote_end"});else if(s=this.rules.list.exec(e)){for(e=e.substring(s[0].length),c={type:"list_start",ordered:b=(a=s[2]).length>1,start:b?+a:"",loose:!1},this.tokens.push(c),u=[],r=!1,f=(s=s[0].match(this.rules.item)).length,g=0;g1?1===o.length:o.length>1||this.options.smartLists&&o!==a)&&(e=s.slice(g+1).join("\n")+e,g=f-1)),i=r||/\n\n(?!\s*$)/.test(l),g!==f-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),i&&(c.loose=!0),v=void 0,(m=/^\[[ xX]\] /.test(l))&&(v=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),h={type:"list_item_start",task:m,checked:v,loose:i},u.push(h),this.tokens.push(h),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(f=u.length,g=0;g?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:b,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:b,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",i.em=p(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=p(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=p(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=p(i.reflink).replace("label",i._label).getRegex(),i.normal=m({},i),i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=m({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=v(a[2],"()");if(c>-1){var h=a[0].length-(a[2].length-c)-(a[3]||"").length;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,h).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(a,{href:s.escapes(r),title:s.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),l+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),l+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),l+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),l+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),l+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=u(this.mangle(a[1]))):n=u(a[1]),l+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?l+=this.renderer.text(a[0]):l+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=u(a[0]));else{do{o=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(o!==a[0]);n=u(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),l+=this.renderer.link(r,null,n)}return l},s.escapes=function(e){return e?e.replace(s.rules._escapes,"$1"):e},s.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},s.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},s.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'
'+(n?e:u(e,!0))+"
\n":"
"+(n?e:u(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=g(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},a.prototype.image=function(e,t,n){if(null===(e=g(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e},o.prototype.link=o.prototype.image=function(e,t,n){return""+n},o.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new s(e.links,this.options),this.inlineText=new s(e.links,m({},this.options,{renderer:new o})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,h(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",s="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(){}function m(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+u(e.message+"",!0)+"
    ";throw e}}b.exec=b,k.options=k.setOptions=function(e){return m(k.defaults,e),k},k.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},k.defaults=k.getDefaults(),k.Parser=l,k.parser=l.parse,k.Renderer=a,k.TextRenderer=o,k.Lexer=r,k.lexer=r.lex,k.InlineLexer=s,k.inlineLexer=s.output,k.Slugger=c,k.parse=k,e.exports=k}(this||("undefined"!=typeof window?window:global))},function(e,t,n){"use strict";var r={"&":"&","<":"<",">":">",'"':""","'":"'"},i={"&":"&","<":"<",">":">",""":'"',"'":"'"},s=/(&|<|>|"|')/g,a=/[&<>"']/g;function o(e){return r[e]}function l(e){return i[e]}function c(e){return null==e?"":String(e).replace(a,o)}function u(e){return null==e?"":String(e).replace(s,l)}c.options=u.options={},e.exports={encode:c,escape:c,decode:u,unescape:u,version:"1.0.0-browser"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",i="__RENDER_8_COMPONENTS__",s=!("undefined"==typeof window||!window.document);s&&!window.global&&(window.global=window),window[i]=window[i]||{},t.register=function(e,t,n,s,a){var o="".concat(n,"/").concat(a),l="".concat(s,"/").concat(a),c=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,o)};if(window[r]&&window[r].registerComponent){var u=!!window.__RENDER_LAZY__;window[r].registerComponent(t,u?c:c(),n,a,u)}else{var h=c();window[r]&&window[r].withHMR?window[i][o]=window[i][l]=window[r].withHMR(t,h):window[i][o]=window[i][l]=h}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return s&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},function(e,t,n){"use strict";var r=n(6);e.exports={uris:r(["background","base","cite","href","longdesc","src","usemap"])}},function(e,t,n){"use strict";function r(e,t){return e[t]=!0,e}e.exports=function(e){return e.reduce(r,{})}},function(e,t,n){"use strict";var r=n(6);e.exports={voids:r(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},function(e,t){e.exports=ReactIntl},function(e,t,n){"use strict";var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var s="",a=0,o=0;for(a=i.index;a\s]+))?)*)\s*(\/?)\s*>/,o=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c=/^/i,h=/^<\s*\//;e.exports=function(e,t){for(var n,p=function(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}(),g=e;e;)d();function d(){n=!0,function(){"\x3c!--"===e.substr(0,4)?(i=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1):u.test(e)?(r=e.match(u),n=!1,e=e.substring(r[0].length)):h.test(e)?f(o,m):c.test(e)&&f(a,b);var r;var i;!function(){if(!n)return;var r,i=e.indexOf("<");i>=0?(r=e.substring(0,i),e=e.substring(i)):(r=e,e="");t.chars&&t.chars(r)}()}();var r=e===g;g=e,r&&(e="")}function f(t,r){var i=e.match(t);i&&(e=e.substring(i[0].length),i[0].replace(t,r),n=!1)}function b(e,n,a,o){var c={},u=i(n),h=s.voids[u]||!!o;a.replace(l,(function(e,t,n,i,s){c[t]=void 0===n&&void 0===i&&void 0===s?void 0:r.decode(n||i||s||"")})),h||p.push(u),t.start&&t.start(u,c,h)}function m(e,n){var r,s=0,a=i(n);if(a)for(s=p.length-1;s>=0&&p[s]!==a;s--);if(s>=0){for(r=p.length-1;r>=s;r--)t.end&&t.end(p[r]);p.length=s}}m()}},function(e,t,n){"use strict";var r=n(2),i=n(4),s=n(5),a=n(7);e.exports=function(e,t){var n,o=t||{};return h(),{start:function(e,t,a){var u=i(e);if(n.ignoring)return void c(u);if(-1===(o.allowedTags||[]).indexOf(u))return void c(u);if(o.filter&&!o.filter({tag:u,attrs:t}))return void c(u);l("<"),l(u),Object.keys(t).forEach((function(e){var n=t[e],a=(o.allowedClasses||{})[u]||[],c=(o.allowedAttributes||{})[u]||[];c=c.concat((o.allowedAttributes||{})["*"]||[]);var h=i(e);("class"===h&&-1===c.indexOf(h)?(n=n.split(" ").filter((function(e){return a&&-1!==a.indexOf(e)})).join(" ").trim()).length:-1!==c.indexOf(h)&&(!0!==s.uris[h]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var r=e.indexOf("?");if(-1!==r&&n>r)return!0;var i=e.indexOf("#");if(-1!==i&&n>i)return!0;return o.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(r.encode(n)),l('"')))})),l(a?"/>":">")},end:function(e){var t=i(e);-1!==(o.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l("")):u(t)},chars:function(e){!1===n.ignoring&&l(o.transformText?o.transformText(e):e)}};function l(t){e.push(t)}function c(e){a.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function u(e){n.ignoring===e&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}},function(e,t,n){"use strict";e.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').concat(e,"

    ")},I.current.strong=function(e){return'').concat(e,"")},I.current.em=function(e){return'').concat(e,"")},I.current.heading=function(e){return function(t,n){var r=function(e){return e>0&&e<=6?e:6}(n),i="".concat(e.heading," t-heading-").concat(r," ").concat(function(e,t){return 1===t?e.headingLevel1:2===t?e.headingLevel2:3===t?e.headingLevel3:4===t?e.headingLevel4:5===t?e.headingLevel5:6===t?e.headingLevel6:""}(e,r)," ").concat(A.a["heading-level-".concat(r)]);return"').concat(t,"")}}(E),I.current.link=function(e,t,n){var r,s=(r=e.split("?")).length<2?"":i(r,2)[1].includes("target=_blank")?"target=_blank":"",a=(s?e.replace(/target=_blank/,"").replace(/\?&/,"?"):e).replace(/(\?|&)$/,""),o=t?'title="'.concat(t,'"'):"",l='
    ")},I.current.html=function(e){return d()(e)},I.current.table=function(e,t){return'\n \n \n ').concat(e,'\n \n \n ').concat(t,"\n \n
    ")},I.current.tablerow=function(e){return"\n").concat(e,"\n")},I.current.tablecell=function(e,t){var n=t.header?"th":"td",r="<".concat(n,' class="').concat("th"===n?E.tableTh:E.tableTd,'"\n ').concat(t.align?' align="'.concat(t.align,'"'):"",">");return"".concat(r+e,"\n")},I.current.image=function(e,t,n){return'').concat(n,'")},I.current.list=function(e,t){var n=t?"ol":"ul";return"<".concat(n,' class="').concat(E.list," ").concat(t?E.listOrdered:"",'">').concat(e,"")},I.current.listitem=function(e){return'
  • ').concat(e,"
  • ")});var H=C(N,f,"textAlignment"),F=C(P,o,"textPosition"),G=C(L,o,"textPosition"),D=Object(l.useMemo)((function(){return p.a.setOptions({gfm:!0,breaks:!0,sanitize:!1,smartLists:!0,renderer:I.current}),b()(p()(y()({id:s,intl:T})),z)}),[s,T]);return c.a.createElement("div",{id:k,className:"".concat(E.container," flex ").concat(H," ").concat(F," ").concat(G," ").concat(M(q)," ").concat(Z(_))},c.a.createElement("div",{className:E.wrapper,dangerouslySetInnerHTML:{__html:D}}))}var H=Object(l.memo)(q);H.schema={title:"admin/editor.rich-text.title"};t.default=H}]); },function(){ !function(e){function t(t){for(var n,u,a=t[0],c=t[1],l=t[2],s=0,d=[];se.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},i=t.bailOut,n=void 0!==i&&i,a=Object(l.useState)(!1),r=Object(o.a)(a,2),s=r[0],u=r[1];return Object(l.useEffect)((function(){if(!n){var t=e.current;if(t){if(!t.complete){var i=function(){u(!0)};return t.addEventListener("load",i),function(){t.removeEventListener("load",i)}}u(!0)}}}),[e,n]),s}(X,{bailOut:!C}),Z=Object(d.useIntl)(),ee=c()(f,{migrationFrom:"vtex.store-components@3.x",classes:$}).handles,te={minWidth:w,minHeight:R,maxWidth:b,maxHeight:N},ie=Object.assign(Object.assign({},te),{height:P,width:y}),ne=null!==(r=null!==(i=null!==(t=null!=j?j:P)&&void 0!==t?t:N)&&void 0!==i?i:R)&&void 0!==r?r:"auto",oe=/(auto|inherit|initial|unset)|[^\d]/g,le=function(e){return""!==e&&e?e.toString().replace(oe,"$1"):null},ae=le(y),re=null!==(m=null!==(u=le(j))&&void 0!==u?u:le(P))&&void 0!==m?m:le(N),se=function(e){return null==e?void 0:e.toString().includes("%")},ue=!(!y||!j&&!N&&!P||se(y)||se(j)&&se(N)&&se(P)),ce=v()({id:h,intl:Z}),de=v()({id:O,intl:Z}),me=a.a.createElement("img",Object(n.a)({title:T,sizes:I,srcSet:k,src:"string"==typeof ce?ce:"",alt:"string"==typeof de?de:"",ref:X,className:ee.imageElement,loading:B,fetchpriority:K},D&&ue?{width:null!==(g=null!=ae?ae:y)&&void 0!==g?g:"auto",height:null!=re?re:"auto",style:te}:{style:ie},q?{"data-vtex-preload":"true"}:{})),ve=null!==(x=null==M?void 0:M.newTab)&&void 0!==x?x:null==M?void 0:M.openNewTab,pe=_()().push,ge="provide"===W?{id:V,name:z,creative:ce,position:F,products:[{productId:J,productName:U}]}:void 0,_e=v()({id:null==M?void 0:M.url,intl:Z}),fe=v()({id:null==M?void 0:M.attributeTitle,intl:Z}),xe=(null==M?void 0:M.url)?a.a.createElement(p.Link,{to:"string"==typeof _e?_e:"",title:"string"==typeof fe?fe:"",rel:M.attributeNofollow?"nofollow":"",target:ve?"_blank":void 0,className:ee.imageElementLink,onClick:function(){"none"!==W&&pe({event:"promotionClick",promotions:[ge]})}},me):a.a.createElement(l.Fragment,null,me);return s()({ref:X,onView:function(){"none"===W||Q||pe({event:"promoView",promotions:[ge]})},once:!0}),C?a.a.createElement("span",{className:"dib",style:{height:Y?"auto":ne}},xe):xe}var h=Object(d.defineMessages)({title:{id:"admin/editor.store-image.title"}});x.schema={title:h.title.id},x.cssHandles=f,t.default=x},,,,,,,,function(e,t,i){"use strict";i.r(t),function(e){var t=i(3);i.p=Object(t.getPublicPath)("vtex.store-image@0.23.1");var n=Object(t.register)((function(){return i(10)}),e,"vtex.store-image@0.23.1","vtex.store-image@0.x","Image");n.renderHotReload,n.setupHMR}.call(this,i(12)(e))}],[[18,"common"]]]); },function(){ !function(e){function t(t){for(var n,a,u=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var r=0,n=new Array(t);r